﻿body {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.5;
    color: #263244;
    /*text-align: left;*/
    background-color: #fff;
}



.card-header {
    padding: 0.75rem 1.25rem;
}



.card-title {
    float: left;
    font-size: 0.9rem;
    font-weight: 400;
    margin: 0;
}

.fas, .bi {
    /* icon sizing handled per context */
}

.gj-checkbox-md input[type=checkbox]:checked + span:after {
    top: 1px;
}

.nav-sidebar .nav-link > .right, .nav-sidebar .nav-link > p > .right {
    transform: scale(-1);
}

#matrixForm .select2-container {
    width: 100% !important;
}

.card-header::after, .card-body::after, .card-footer::after {
    display: none;
}

.dropdown-item-title {
    text-wrap: wrap;
}


/* Button/form sizing handled by erp-theme.css */

h5 {
    font-size: 1rem;
}

.mx-1 {
    margin: 0 1px;
}

.table-bordered thead th {
    /*  border-bottom: 2px solid #dee2e6;
    border-top: 2px solid #dee2e6;*/
}

th {
    white-space: nowrap;
    position:relative;
    background-color:whitesmoke;
}

th i {
    font-size: 10px;
    opacity: 0.6;
        
    position:absolute;
    right:5px;
    top:10px;
}


/* Reports Style */


.report-table-dashed {
    border-collapse: collapse;
    font-size: 14px;
    width: 100%;
}

.report-table-dashed td,
.report-table-dashed th {
padding: 6px 10px;
}

/* LEVELS */
.level-0 td {
    font-weight: 700;
    background-color: #f8f9fa;
    padding-left: 5px;
}

.level-1 td {
    padding-left: 25px;
}

.level-2 td {
    padding-left: 45px;
}

.level-3 td {
    padding-left: 65px;
}

.level-0 {
    font-weight: 700;
    padding-left: 5px;
}

.level-1 {
    padding-left: 25px;
}

.level-2 {
    padding-left: 45px;
}

.level-3 {
    padding-left: 65px;
}

/* ACCOUNT CODE */
.account_number {
    color: #6c757d;
    /*    font-weight: 700;*/
    font-size: 13px;
}

/* AMOUNTS */
.amount {
    text-align: right;
    white-space: nowrap;
}

/* SECTION HEADERS */
.report-table-dashed--head th {
    background-color: #074D31;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
}

/* SUB TOTAL */
.sub-total th,
.sub-total td {
    border-top: 2px solid #dee2e6;
    font-weight: 700;
    background-color: #f1f3f5;
}

/* NET INCOME */
.section-net th,
.section-net td {
    border-top: 3px double #000;
    font-size: 16px;
    font-weight: 800;
    background-color: #f1f3f5;
}


/* Reports Style */

/* PDF header hidden on screen */
/* Hidden normally */
.pdf-only {
    display: none;
}

/* Visible ONLY during PDF export */
body.pdf-export .pdf-only {
    display: block;
}

/* Force page break AFTER assets */
body.pdf-export .pdf-page-break {
    page-break-after: always;
    break-after: page;
}

body.pdf-export table,
body.pdf-export tr {
    page-break-inside: avoid;
    break-inside: avoid;
    border-left:0px;
}

/* Blur effect for main modal when child modal is open */
#form-modal.blur-background .modal-content {
    filter: blur(3px);
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* Ensure child modal appears above main modal */
#child-modal {
    z-index: 1060; /* Higher than default modal z-index (1050) */
}

#form-modal {
    z-index: 1050;
}

/* Center child modal backdrop */
#child-modal .modal-backdrop {
    z-index: 1055;
}

/* Optional: Darken the area between modals */
.child-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1055;
    display: none;
}

.child-modal-backdrop.show {
    display: block;
}



.brand-image {

    max-height: 50px;

}


.fs-1 {
    font-size: 1.5rem !important;
}
.fs-4 {
        font-size: 2.5rem !important;
}
.small-box > .small-box-footer {
    font-size: 13px;
}
.main-sidebar, .main-sidebar::before {
    width: 260px;
}

/* ============================================
   1. Remove card-body padding ONLY when it has a table
   ============================================ */
/*.card-body:has(> .table-responsive),
.card-body:has(> table) {
    padding-inline: 0;
}*/
/*.table.data-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    border-left: none;
    border-right: none;
}

.table.data-table tbody td {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
}*/

/* ============================================
   3. Badges داخل الجدول فقط — خلفية فاتحة زي الصورة
   ============================================ */
/*.table.data-table .badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;*/ /* pill shape */
/*}

.table.data-table .badge-success {
    background-color: #d4edda;
    color: #155724;
}

.table.data-table .badge-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.table.data-table .badge-warning {
    background-color: #fff3cd;
    color: #856404;
}

.table.data-table .badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.table.data-table .badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
}*/
div.dataTables_wrapper div.dataTables_info {
    padding-inline-start: 1.25rem;
}
div.dataTables_wrapper div.dataTables_paginate {
        padding-inline-end: 1.25rem;
}
