/* ============================================= */
/* ========== CSS VARIABLES ==================== */
/* ============================================= */
:root {
    --tbl-head-bg: #012966;
    --tbl-head-color: #ffffff;
    --tbl-head-font-size: 14px;
    --tbl-head-font-weight: 500;
    --tbl-head-height: 60px;
    --tbl-head-padding: 12px 16px;
    --tbl-border-color: #e9ecef;
    --tbl-row-hover: #f8f9fa;
    --navbar-bg: #3b4043;
    --navbar-text: #f0fbf8;
    --sidebar-bg: #3b4043;
    --sidebar-text: #ffffff;
    --sidebar-hover: #767474;
    --shadow-color: rgba(0,0,0,0.1);
    --submenu-panel-bg: #545455;
    --submenu-panel-active-submenu: #3b4043;
    --active-submenu-text: #f5fcfc;
    --nav-link-active-text: #e5fdfd;
    --nav-link-active: #303132;
}

/* ============================================= */
/* ========== BODY ============================= */
/* ============================================= */
body {
    background-color: #ffffff !important;
    overflow-x: hidden;
    margin-top: 60px !important;
    box-sizing: border-box;
}

/* ============================================= */
/* ========== ACCORDION STYLES ================= */
/* ============================================= */
.accordion-header {
    color: #fdffe9 !important;
}

.accordion-btn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accordion-btn:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.accordion-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.accordion-chevron {
    color: #ffffff !important;
    font-size: 14px !important;
    transition: transform 0.2s ease;
}

.accordion-btn .bi-chevron-right,
.accordion-btn .bi-chevron-down {
    color: #ffffff !important;
    font-size: 14px !important;
}

.accordion-btn::after {
    display: none !important;
    content: none !important;
}

.accordion-btn i:first-child {
    display: inline-block !important;
}

.sub-head {
    color: #e4fdb4;
    text-align: center;
    margin-left: 10;
    letter-spacing: 0.1rem;
}

/* ============================================= */
/* ========== Z-INDEX LAYERS =================== */
/* ============================================= */
#sidebar-wrapper {
    z-index: 1000;
}

#submenu-panel {
    z-index: 999;
}

#report-sections {
    z-index: 998;
}

/* ============================================= */
/* ========== MOBILE OVERLAY =================== */
/* ============================================= */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 997;
}

.mobile-overlay.active {
    display: block;
}

/* ============================================= */
/* ========== NAVBAR =========================== */
/* ============================================= */
nav.navbar a {
    color: #cbddf5;
    padding: 10px;
}

nav.navbar a:hover {
    color: #9be6fd;
}

/* ============================================= */
/* ========== SIDEBAR WRAPPER ================== */
/* ============================================= */
#sidebar-wrapper {
    position: fixed;
    top: 90px;
    left: 0;
    width: 190px;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
    background: #2d2f31;
    z-index: 999;
    transition: width 0.5s ease, left 0.5s ease;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 15px;
    padding-bottom: 0px;
    line-height: 0.7;
}

#sidebar-wrapper.collapsed {
    width: 40px;
    position: fixed;
    top: 90px;
    left: 0;
    background: #232323;
    z-index: 999;
    transition: width 0.5s ease, left 0.5s ease;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 15px;
    padding-bottom: 0px;
}
/* ============================================= */
/* ========== SIDEBAR NAV LINKS ================ */
/* ============================================= */
#sidebar-wrapper .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-bottom: 3px !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    color: var(--sidebar-text) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease-in-out !important;
    border-radius: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

#sidebar-wrapper .nav-link i {
    font-size: 16px !important;
    color: #ffffff !important;
    min-width: 30px !important;
    text-align: center !important;
    margin-right: 3px !important;
    margin-left: -10px !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    padding: 0 !important;
    line-height: 1 !important;
}

#sidebar-wrapper .nav-link .menu-label {
    font-weight: 400 !important;
    font-size: 12px !important;
    color: inherit !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#sidebar-wrapper .nav-link:hover {
    background-color: var(--sidebar-hover) !important;
    color: #b9b8b8b7 !important;
}

#sidebar-wrapper .nav-link.active {
    background-color: #0458d3 !important;
    color: #6ffcfd !important;
    border-left: 3px solid #00fff2 !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 0px !important;
    font-weight: 600 !important;
    border-bottom: 1px solid rgb(8, 163, 253) !important;
}

#sidebar-wrapper .nav-link.active i,
#sidebar-wrapper .nav-link.active .menu-label {
    color: var(--nav-link-active-text) !important;
}

/* Active indicator on collapsed sidebar */
#sidebar-wrapper.collapsed .nav-link.active {
    position: relative;
    background-color: #0042a5 !important;
    border-left: 3px solid #00fff2 !important;
}

#sidebar-wrapper.collapsed .nav-link.active i {
    color: #d9dada !important;
}

/* ============================================= */
/* ========== COLLAPSED SIDEBAR ================ */
/* ============================================= */
#sidebar-wrapper.collapsed .menu-label,
#sidebar-wrapper.collapsed .menu-arrow {
    display: none !important;
}

#sidebar-wrapper.collapsed .nav-link {
    justify-content: flex-start !important;
    padding: 5px 0 !important;
}

#sidebar-wrapper.collapsed .nav-link i {
    margin-right: 0 !important;
    margin-left: 2px !important;
}

/* Tooltip for collapsed menu items */
#sidebar-wrapper.collapsed .nav-link {
    position: relative;
}

#sidebar-wrapper.collapsed .nav-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: #0d6efd;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: 1px solid #00fff2;
}

#sidebar-wrapper.collapsed .nav-link.active:hover::after {
    background: #0042a5;
    color: #1fffff;
}

/* ============================================= */
/* ========== SUBMENU ICON ===================== */
/* ============================================= */
.submenu_bi_icon {
    font-size: 10px !important;
    margin-right: 5px;
    margin-left: -5px;
}

/* ============================================= */
/* ========== SUBMENU PANEL ==================== */
/* ============================================= */
#submenu-panel {
    position: fixed;
    top: 90px;
    left: 190px;
    width: 200px;
    height: calc(100vh - 60px);
    max-height: calc(100vh - 90px);
    background: #454545;
    z-index: 1001;
    display: none;
    padding: 0px 0;
    /* overflow-y: auto; */
    transition: all 0.3s ease;
}

#submenu-panel[style*="display: block"] {
    display: block !important;
    z-index: 1001 !important;
}

#submenu-panel .nav-link,
#submenu-panel a {
    margin-left: 0px !important;
    display: flex !important;
    align-items: center !important;
    padding: 3px 8px !important;
    font-size: 13px !important;
    color: rgb(255, 255, 255) !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    border-radius: 5px !important;
    width: 99% !important;
    box-sizing: border-box !important;
}

#submenu-panel .nav-link:hover,
#submenu-panel a:hover {
    background-color: #3c3e40 !important;
    color: #bab9b9 !important;
}

#submenu-panel .nav-link.active-submenu,
#submenu-panel a.active-submenu {
    background-color: #3a3a3b !important;
    color: #f6ffff !important;
    font-weight: 400 !important;
    border-left: 2px solid #e6f7f7 !important;
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 0px !important;
    border-bottom: 0.3px solid #f4f6f7 !important;
    margin-left: 3px !important;
    padding: 3px 9px !important;
}

h6.text-white.fw-bold.mb-3.sub-menu-title {
    margin-bottom: 10px !important;
    font-weight: 400 !important;
    margin-bottom: 5px !important;
    font-size: 18px;
    padding: 5px 8px;
    text-align: center;
    border-bottom: 1px solid #00fce7;
}

@media (min-width: 992px) {
    #submenu-panel {
        margin-left: 1px !important;
        border-left: 1px solid #f1f5bc !important;
    }
}

#sidebar-wrapper.collapsed ~ #submenu-panel {
    left: 45px;
}

/* ============================================= */
/* ========== REPORT SECTIONS PANEL ============ */
/* ============================================= */
#report-sections {
    color: white;
    position: fixed;
    top: 90px;
    left: 1px;
    min-width: 220px !important;
    height: calc(100vh - 90px);
    max-height: calc(100vh - 90px);
    background: #515863;
    z-index: 997;
    display: none;
    padding: 10px 0;
    overflow-y: auto;
    transition: all 0.3s ease;
}

#report-sections .nav-link:hover,
#report-sections a:hover {
    background-color: rgb(88, 90, 89) !important;
    color: #a3a3a3 !important;
}

#sidebar-wrapper.collapsed ~ #report-sections {
    /*left: 39px;*/
    border-left: 1px solid #feffc9;
}

/* ============================================= */
/* ========== REPORT SECTION STYLES ============ */
/* ============================================= */
.reports-section .toggle-btn {
    background-color: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    width: 100% !important;
    text-align: left !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    margin-left: 0px !important;
}

.reports-section .toggle-btn .toggle-icon {
    font-size: 14px !important;
    color: white !important;
    margin-right: 5px;
}

.reports-section .toggle-btn span {
    font-size: 13px !important;
    color: rgb(239, 240, 230) !important;
    align-items: center;
    margin-left: -8px;
}

.report-submenu {
    margin: 3px 0 5px 5px;
    padding-left: 12px;
    border-left: 2px dotted rgba(255, 255, 255, 0.4);
    position: relative;
    min-width: 105%;
    max-width: 110%;
}

.report-submenu::before {
    display: none;
}

.report-item {
    list-style: none;
    margin: 2px 0;
    position: relative;
}

.report-item .nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 5px 8px 5px 12px !important;
    margin: 0 !important;
    font-size: 10px !important;
    color: #f0f0f0 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    position: relative;
    white-space: normal !important;
    line-height: .5 !important;
    min-height: 24px !important;
}

.report-item .nav-link::before {
    content: '├─';
    position: absolute;
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
}

.report-item .nav-link i {
    display: none !important;
}

.report-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.404) !important;
    color: #ffffff !important;
    padding-left: 1px !important;
}

.report-item:last-child .nav-link::before {
    content: '└─';
}

.report-submenu .nav-link {
    padding: 2px 2px !important;
    margin: 0px 0 !important;
    font-size: 18px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease;
    color: rgb(246 249 230) !important;
}

.report-submenu .nav-link.active {
    background-color: var(--submenu-panel-active-submenu) !important;
    color: var(--active-submenu-text) !important;
    border-left: 1px solid #f5fd89 !important;
    font-size: 10px !important;
}

.report-submenu .nav-link:not(.active-report) {
    background-color: rgb(100, 100, 98) !important;
}

.report-item .nav-link.active-report {
    background-color: #262627 !important;
    color: #92e7c7 !important;
    font-size: 12px !important;
    font-weight: bold !important;
    border-left: 3px solid #f5fd89 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.report-item .nav-link.active-report i,
.report-item .nav-link.active-report span {
    color: #ffffff !important;
    font-size: 12px !important;
}

/* ============================================= */
/* ========== MAIN CONTENT ===================== */
/* ============================================= */
#main-content {
    margin-left: 190px;
    padding: 20px;
    min-height: calc(100vh - 60px);
    transition: margin-left 0.3s ease, width 0.3s ease;
    width: calc(100% - 190px);
    box-sizing: border-box;
}

#sidebar-wrapper.collapsed ~ #main-content {
    margin-left: 45px;
    width: calc(100% - 45px);
}

#sidebar-wrapper:not(.collapsed) ~ #submenu-panel[style*="display: block"] ~ #main-content {
    margin-left: 390px;
    width: calc(100% - 390px);
}

#sidebar-wrapper.collapsed ~ #submenu-panel[style*="display: block"] ~ #main-content {
    margin-left: 36px;
    width: calc(100% - 36px);
}

#sidebar-wrapper:not(.collapsed) ~ #report-sections[style*="display: block"] ~ #main-content {
    margin-left: 405px;
    width: calc(100% - 405px);
}

#sidebar-wrapper.collapsed ~ #report-sections[style*="display: block"] ~ #main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
}

/* ============================================= */
/* ========== UNIFORM BUTTONS ================== */
/* ============================================= */
.uniform-btn {
    width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    background-color: #085bf1;
    color: #ffffff;
    border: 1px solid #fff;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.uniform-btn.active {
    width: 35px !important;
    height: 35px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    background-color: #204993;
    color: #ffffff;
    border: 1px solid #fff;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.uniform-btn:hover {
    background-color: #fbfbfc;
    color: black;
    transform: scale(1.05);
}

/* ============================================= */
/* ========== DROPDOWN MENU ==================== */
/* ============================================= */
.dropdown-menu {
    background-color: #21723a !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-menu .dropdown-item {
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #01b46f;
    color: #fff;
}

.dropdown-menu .dropdown-item:active {
    background-color: #015239;
    color: #fff;
}

.dropdown-menu .dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #ddd;
}

.custom-logout,
.custom-logout i {
    color: #f87e7e !important;
    font-size: 18px !important;
}

.custom-logout {
    color: #f86565 !important;
    font-size: 18px !important;
}

.custom-logout i {
    color: #ffd900 !important;
    font-size: 18px !important;
}

/* ============================================= */
/* ========== MISC ============================= */
/* ============================================= */
.disabled-link {
    color: #aaa !important;
    pointer-events: auto;
}

.disabled-link i {
    color: #aaa !important;
}

.menu-arrow {
    transition: transform 0.3s ease;
    margin-left: auto;
    font-size: 0.9rem;
    color: #b3cbff;
}

.menu-arrow.rotate {
    transform: rotate(180deg);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 10px;
    margin-right: 15px;
}

/* ============================================= */
/* ========== MOBILE MENU TOGGLE =============== */
/* ============================================= */
#mobile-menu-toggle {
    display: none;
}

/* ============================================= */
/* ========== DESKTOP (≥992px) ================= */
/* ============================================= */
@media (min-width: 992px) {
    #mobile-menu-toggle {
        display: none !important;
    }
}

/* ============================================= */
/* ========== TABLET/MOBILE (≤991px) =========== */
/* ============================================= */
@media (max-width: 991.98px) {
    
    body {
        margin-top: 60px !important;
    }
    
    #mobile-menu-toggle {
        display: flex !important;
    }
    
    /* Sidebar slides in from left */
    #sidebar-wrapper {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        top: 90px;
        width: 280px;
        height: calc(100vh - 90px);
        max-height: calc(100vh - 90px);
        z-index: 1000;
    }
    
    #sidebar-wrapper.mobile-active {
        transform: translateX(0);
    }
    
    /* Submenu panel slides in */
    #submenu-panel {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        top: 90px;
        left: 0 !important;
        width: 280px;
        height: calc(100vh - 90px);
        max-height: calc(100vh - 90px);
        z-index: 1001;
    }
    
    #submenu-panel.mobile-active {
        transform: translateX(0);
    }
    
    /* Report panel slides in */
    #report-sections {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        top: 90px;
        left: 0;
        width: 280px;
        height: calc(100vh - 90px);
        max-height: calc(100vh - 90px);
        z-index: 998;
    }
    
    #report-sections.mobile-active {
        transform: translateX(0);
    }
    
    /* Main content full width */
    #main-content {
        margin-left: 0 !important;
        padding: 15px;
        width: 100% !important;
    }
    
    /* Table adjustments */
    .col-lg-6, .col-lg-5 {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .filter-row-inline {
        margin-bottom: 5px;
        width: 100%;
    }
    
    .form-control {
        width: 100% !important;
    }
}

/* ============================================= */
/* ========== SMALL MOBILE (≤576px) ============ */
/* ============================================= */
@media (max-width: 576px) {
    
    body {
        margin-top: 60px !important;
    }
    
    #sidebar-wrapper,
    #submenu-panel,
    #report-sections {
        /*width: 100% !important;*/
        top: 90px;
        height: calc(100vh - 90px);
        max-height: calc(100vh - 90px);
    }
    
    #main-content {
        padding: 10px;
    }
}

/* ============================================= */
/* ========== ACTIVE TOGGLE BUTTON ============= */
/* ============================================= */
#sidebar-eye-toggle.active,
#sidebar-eye-toggle:active {
    background-color: #0a58ca !important;
    border-color: #0a58ca !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/*#sidebar-toggle-btn.active,*/
/*#sidebar-toggle-btn:active {*/
/*    background-color: #0a58ca !important;*/
/*    border-color: #0a58ca !important;*/
/*    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;*/
/*}*/


@media (max-width: 991.98px) {
    #submenu-panel.mobile-active {
        z-index: 1002 !important;
    }
}