body {
    color: #333;
}

.bg-wismilak {
    background-color: #006837 !important;
}

.btn-arja {
    /* background-color: #C5A901; */
    color: #FFF;
    border: none;
    text-shadow: 
        -1px -1px 0 #0A663A,
        1px -1px 0 #0A663A,
        -1px 1px 0 #0A663A,
        1px 1px 0 #0A663A;
}

.btn-arja:hover {
    background-color: #A68B01; /* Darker blue on hover */
    color: #fff; /* White text on hover */
}

.btn-arja:focus, .btn-arja:active {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5); /* Enhanced blue shadow */
}

.bg-arja {
    background-color: #d6b900;
}

.text-arja {
    color: white;
    text-shadow: 
        -1px -1px 0 #0A663A,
        1px -1px 0 #0A663A,
        -1px 1px 0 #0A663A,
        1px 1px 0 #0A663A;
}
  
.text-wismilak {
    color: #149a5a !important;
    transition: color 0.3s ease;
}

.text-wismilak:hover {
    color: #0A663A !important; /* Lighter or darker shade */
}

.nav-link.text-wismilak i {
    color: #149a5a !important;
    transition: color 0.3s ease;
}
.nav-link.text-wismilak:hover i {
    color: #149a5a !important;
}   

.collapse-item {
    color: #333 !important;
}

.collapse-item:hover {
    background-color: #DDD !important;
}

.active {
    color: #333 !important;
}

.text-disabled {
    color: #b7b9cc !important;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  position: relative;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .4px;
  line-height: 1;
}
 
.brand-sub {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  font-weight: 400;
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-top: 1px;
}

.datepicker-wrapper {
    display: flex; 
    align-items: center; 
    height: 38px; 
    border: 1px solid #ced4da; 
    border-radius: 0.25rem; 
    box-sizing: border-box;
}

.datepicker {
    flex: 1; 
    border: none; 
    outline: none; 
    height: 100%; 
    padding: 0.375rem;
    border: 1px solid #d1d3e2;
}

.datepicker-icon {
    cursor: pointer; 
    color: #6c757d; 
    padding: 0 0.5rem; 
    font-size: 1rem;
}

.modal-header {
  background-color: #f6c23e;
  /* color: #006837; */
}




@media (min-width: 768px) {
    .topbar {
        height: 3.375rem;
    }
    .sidebar .sidebar-brand {
        height: 3.375rem
    }
    .sidebar.toggled {
        width: 3.5rem !important;
    }

    .sidebar.toggled .nav-item .nav-link span {
        display: none;
        text-align: left !important;
    }

    .sidebar.toggled .nav-item .nav-link {
        width: 3.5rem;
        
    }

    .sidebar .sidebar-heading {
        text-align: center;
        padding: 0 0rem;
    }

    .sidebar #sidebarToggle {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .sidebar.toggled .nav-item .collapse {
        left: calc(3rem + 1.5rem / 2);
    }

    .sidebar.toggled .nav-item .collapse {
        z-index: 5;
    }

    #content-wrapper {
        height: auto;
    }
}





/* =============================================
   RESET & VARIABLES
============================================= */
:root {
    --green-dark:        #0a5230;
    --green-mid:         #0f6b3e;
    --green-light:       #1a9a5c;
    --green-pale:        #e8f5ee;
    --green-border:      #a7d4b8;
    --sidebar-width:     240px;
    --sidebar-collapsed: 68px;
    --topbar-height:     60px;
    --text-main:         #111827;
    --text-muted:        #6b7280;
    --text-light:        #9ca3af;
    --border:            #e5e7eb;
    --bg-page:           #f3f6f4;
}

/* =============================================
   WRAPPER
============================================= */
#wrapper {
    background: var(--green-dark);
}

/* =============================================
   SIDEBAR — base
   visibility: hidden mencegah flash saat load
   sidebar-ready menampilkannya kembali via JS
============================================= */
#accordionSidebar {
    visibility: hidden;
    background: var(--green-dark) !important;
    border-right: none !important;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    list-style: none;
    margin: 0;
    padding-left: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}

#accordionSidebar.sidebar-ready {
    visibility: visible;
}

#accordionSidebar::-webkit-scrollbar { display: none; }

#accordionSidebar::after {
    content: '';
    display: block;
    flex: 1;
    min-height: 24px;
    background: var(--green-dark);
    pointer-events: none;
}

/* =============================================
   COLLAPSE — selalu ke bawah
============================================= */
#accordionSidebar .nav-item .collapse,
#accordionSidebar .nav-item .collapsing {
    position: static !important;
    float: none !important;
    left: unset !important;
    right: unset !important;
    top: unset !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    min-width: unset !important;
    width: 100% !important;
}

#accordionSidebar .nav-item .collapse:not(.show) {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

#accordionSidebar .nav-item .collapse.show {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

#accordionSidebar .nav-item .collapsing {
    height: 0 !important;
    overflow: hidden !important;
    transition: height 0.2s ease !important;
}

/* =============================================
   SIDEBAR ELEMENTS — base
============================================= */
#accordionSidebar .sidebar-divider {
    border-top: 1px solid rgba(255,255,255,0.07) !important;
    margin: 6px 16px !important;
}

#accordionSidebar .sidebar-heading {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    padding: 10px 20px 4px;
    white-space: nowrap;
    overflow: hidden;
}

#accordionSidebar .nav-item {
    list-style: none;
}

#accordionSidebar .nav-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    color: rgba(255,255,255,0.65) !important;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
    text-decoration: none;
}

#accordionSidebar .nav-link span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#accordionSidebar .nav-link i {
    text-align: center;
    font-size: 13px;
    flex-shrink: 0;
}

#accordionSidebar .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}

#accordionSidebar .nav-item.active > .nav-link {
    background: rgba(255,255,255,0.15);
    color: #fff !important;
}

#accordionSidebar .nav-link .fa-angle-down {
    margin-left: auto;
    font-size: 11px;
    transition: transform 0.2s;
    flex-shrink: 0;
    width: auto !important;
}

#accordionSidebar .nav-link[aria-expanded="true"] .fa-angle-down {
    transform: rotate(180deg);
}

#accordionSidebar .nav-link::after,
#accordionSidebar .nav-link.collapsed::after {
    display: none !important;
    content: none !important;
}

/* =============================================
   BRAND — base
============================================= */
.sidebar-brand {
    height: 64px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.sidebar-brand-icon img {
    height: 36px !important;
    width: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    padding: 4px;
    flex-shrink: 0;
}

.sidebar-brand .brand-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
}

.sidebar-brand .brand-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2px;
}

/* =============================================
   COLLAPSE INNER
============================================= */
.collapse-inner {
    background: transparent !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.collapse-header {
    font-size: 9px !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    color: rgba(255,255,255,0.25) !important;
    padding: 4px 14px 6px !important;
    margin: 0 !important;
}

.collapse-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 20px !important;
    font-size: 12.5px !important;
    color: rgba(255,255,255,0.55) !important;
    border-radius: 8px !important;
    margin: 1px 6px !important;
    text-decoration: none;
    transition: all 0.15s;
    position: relative;
    white-space: nowrap;
}

.collapse-item::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
    transition: background 0.15s;
}

.collapse-item:hover {
    background: rgba(255,255,255,0.08) !important;
    color: #fff !important;
}

.collapse-item:hover::before { background: var(--green-light); }

.collapse-item.active {
    background: rgba(255,255,255,0.12) !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.collapse-item.active::before {
    background: #4ade80;
    box-shadow: 0 0 6px rgba(74,222,128,0.6);
}

.collapse-item.text-disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* =============================================
   TOGGLE BUTTON
============================================= */
#sidebarToggle {
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.1) !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 12px auto 16px;
    cursor: pointer;
    transition: background 0.15s;
    flex-shrink: 0;
}

#sidebarToggle:hover { background: rgba(255,255,255,0.2) !important; }

#sidebarToggle::before {
    content: '‹';
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s;
    display: block;
}

/* =============================================
   CONTENT WRAPPER — base
============================================= */
#content-wrapper {
    min-height: 100vh;
    background: var(--bg-page);
}

/* =============================================
   TOPBAR
============================================= */
.topbar {
    height: var(--topbar-height) !important;
    background: #fff !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06) !important;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 99;
}

.topbar .navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto !important;
}

.topbar .nav-item .nav-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--text-muted) !important;
    background: transparent;
    transition: all 0.15s;
    position: relative;
    padding: 0 !important;
}

.topbar .nav-item .nav-link:hover {
    background: var(--green-pale);
    color: var(--green-mid) !important;
}

.topbar .nav-item .nav-link i { font-size: 15px; width: auto !important; }

.topbar .badge-counter {
    position: absolute;
    top: 4px; right: 4px;
    font-size: 9px; font-weight: 700;
    min-width: 16px; height: 16px;
    padding: 0 4px; border-radius: 8px;
    background: #dc2626 !important;
    color: #fff; display: flex;
    align-items: center; justify-content: center;
    line-height: 1; border: 2px solid #fff;
}

.topbar-divider { width: 1px; height: 28px; background: var(--border); margin: 0 8px; }

.topbar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 5px 10px !important; border-radius: 10px;
    cursor: pointer; transition: background 0.15s;
    width: auto !important; height: auto !important;
}

.topbar-user:hover { background: var(--green-pale) !important; }
.topbar-user .user-name { font-size: 13px; font-weight: 600; color: var(--text-main); line-height: 1; }
.topbar-user .user-role { font-size: 10.5px; color: var(--text-light); margin-top: 1px; }
.topbar-user .user-avatar { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; border: 2px solid var(--green-border); }
.topbar-user .user-chevron { font-size: 10px; color: var(--text-light); width: auto !important; }

.topbar .dropdown-menu {
    border: 1.5px solid var(--border) !important; border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    padding: 6px !important; min-width: 180px; margin-top: 6px !important;
}

.topbar .dropdown-item {
    border-radius: 8px; font-size: 13px; padding: 8px 12px;
    color: var(--text-main); display: flex; align-items: center;
    gap: 8px; transition: background 0.12s;
}

.topbar .dropdown-item:hover { background: var(--green-pale); color: var(--green-mid); }
.topbar .dropdown-item i { width: 16px !important; text-align: center; color: var(--text-light); font-size: 12px; }
.topbar .dropdown-divider { margin: 4px 0; border-color: var(--border); }

.topbar .dropdown-list {
    border: 1.5px solid var(--border) !important; border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
    overflow: hidden; padding: 0 !important; min-width: 300px;
}

.topbar .dropdown-list .dropdown-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light)) !important;
    padding: 12px 16px !important; font-size: 12px !important;
    font-weight: 700 !important; letter-spacing: 0.5px; color: #fff !important;
}

.topbar .dropdown-list .dropdown-item {
    border-radius: 0 !important; border-bottom: 1px solid var(--border);
    padding: 10px 16px !important; gap: 10px;
}

.topbar .dropdown-list .dropdown-item:last-child { border-bottom: none; }
.topbar .dropdown-list-image img { width: 36px; height: 36px; border-radius: 9px; }
.topbar .dropdown-list-image .status-indicator {
    width: 8px; height: 8px; border: 2px solid #fff;
    border-radius: 50%; position: absolute; bottom: 0; right: 0;
}

/* =============================================
   FOOTER
============================================= */
.sticky-footer { background: #fff !important; border-top: 1px solid var(--border); padding: 14px 24px; }
.sticky-footer .copyright { font-size: 12px; color: var(--text-light); }

/* =============================================
   MODALS
============================================= */
#logoutModal .modal-content,
#disclaimerModal .modal-content {
    border: none; border-radius: 16px;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

#logoutModal .modal-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    padding: 16px 24px; border: none;
}

#disclaimerModal .modal-header {
    background: linear-gradient(135deg, #78350f, #d97706);
    padding: 16px 24px; border: none;
}

#logoutModal .modal-title,
#disclaimerModal .modal-title { font-size: 15px; font-weight: 600; color: #fff; }

#logoutModal .modal-body,
#disclaimerModal .modal-body { padding: 20px 24px; font-size: 13px; color: var(--text-muted); }

#disclaimerModal .modal-body { line-height: 1.7; }

#logoutModal .modal-footer,
#disclaimerModal .modal-footer { padding: 12px 24px 16px; border-top: 1px solid var(--border); gap: 8px; }

#disclaimerModal .modal-footer { justify-content: center; }

#logoutModal .btn-cancel-logout {
    background: #fff; border: 1.5px solid var(--border);
    color: var(--text-muted); border-radius: 8px;
    padding: 8px 18px; font-size: 13px; font-weight: 500;
}

#logoutModal .btn-logout {
    background: linear-gradient(135deg, var(--green-dark), var(--green-light));
    border: none; color: #fff; border-radius: 8px;
    padding: 8px 20px; font-size: 13px; font-weight: 600;
    box-shadow: 0 2px 8px rgba(15,107,62,0.3);
}

#disclaimerModal .btn-agree {
    background: linear-gradient(135deg, #78350f, #d97706);
    border: none; color: #fff; border-radius: 8px;
    padding: 9px 28px; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 7px;
    box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}

/* =============================================
   SIDEBAR OVERLAY
============================================= */
#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1049;
    backdrop-filter: blur(1px);
}

.modal-header .close {
    color: #fff;
    opacity: 1;
}

/* Sticky Table */
/* ===== FREEZE THEAD ONLY ===== */
.table-freeze-head thead tr:nth-child(1) th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #0a5230;
    box-shadow: inset 0 -1px 0 #dee2e6;
}

.table-freeze-head thead tr:nth-child(2) th {
    position: sticky;
    z-index: 3;
    background: #0a5230;
    box-shadow: inset 0 -1px 0 #dee2e6;
}

.table-freeze-head thead tr th a {
    color: #fff;
}


/* ===== FREEZE FIRST COLUMN ONLY ===== */
.table-responsive .table-freeze-col td:first-child,
.table-responsive .table-freeze-col th:first-child {
    position: sticky;
    left: -1px;
    z-index: 5;
    background: inherit;
    box-shadow: 2px 0 6px rgba(0,0,0,0.08);
    border-right: 1px solid #dee2e6;
}

/* ===== FREEZE BOTH (THEAD + FIRST COLUMN) ===== */
.table-freeze-both thead tr:nth-child(1) th {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f8f9fa;
    box-shadow: inset 0 -1px 0 #dee2e6;
}

.table-freeze-both thead tr:nth-child(2) th {
    position: sticky;
    z-index: 3;
    background: #f8f9fa;
    box-shadow: inset 0 -1px 0 #dee2e6;
}

.table-freeze-both thead tr:nth-child(1) th:first-child,
.table-freeze-both thead tr:nth-child(2) th:first-child {
    z-index: 6;
    position: sticky;
    left: -1px;
}

.table-responsive .table-freeze-both td:first-child,
.table-responsive .table-freeze-both th:first-child {
    position: sticky;
    left: -1px;
    z-index: 5;
    background: inherit;
    box-shadow: 2px 0 6px rgba(0,0,0,0.08);
    border-right: 1px solid #dee2e6;
}

/* th-flex: wrapper dalam th, bukan th itu sendiri yang position relative */
.th-flex {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Filter dropdown pakai fixed agar keluar dari sticky container */
.filter-dropdown {
    display: none;
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    min-width: 220px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.filter-dropdown.open {
    display: block;
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
}

.filter-options label:hover {
    background: #f1f5f9;
}

.filter-icon {
    cursor: pointer;
    font-size: 11px;
    color: #94a3b8;
    padding: 2px 4px;
    border-radius: 3px;
    transition: color 0.15s;
}

.filter-icon.active {
    color: #0d6efd; /* atau warna aktif sesuai tema kamu */
}



/* =============================================
   MOBILE (< 768px)
============================================= */
@media (max-width: 767px) {

    #wrapper {
        overflow-x: hidden !important;
        width: 100% !important;
        background: var(--bg-page) !important;
    }

    #accordionSidebar {
        width: 260px !important;
        min-width: 260px !important;
        transform: translateX(-100%) !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1050 !important;
    }

    /* Saat mobile-open: geser masuk */
    #wrapper.mobile-open #accordionSidebar {
        transform: translateX(0) !important;
    }

    #wrapper.mobile-open #sidebarOverlay {
        display: block !important;
    }

    /* Selalu full sidebar di mobile */
    #accordionSidebar .brand-name,
    #accordionSidebar .brand-sub,
    #accordionSidebar .sidebar-heading,
    #accordionSidebar .nav-link span,
    #accordionSidebar .nav-link .fa-angle-down,
    #accordionSidebar .collapse-inner {
        display: revert !important;
    }

    .sidebar-brand { padding: 0 20px !important; justify-content: flex-start !important; }
    .sidebar-brand-text { display: block !important; }

    #accordionSidebar .nav-item { margin: 2px 10px !important; width: auto !important; }

    #accordionSidebar .nav-link {
        padding: 10px 14px !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        white-space: nowrap;
    }

    #accordionSidebar .nav-link i { width: 18px !important; font-size: 13px !important; }

    #content-wrapper {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transition: none !important;
    }

    #sidebarToggle { display: none !important; }
    .topbar { padding: 0 12px !important; }

    .toolbar-wrap {
        flex-wrap: nowrap !important; overflow-x: auto !important;
        gap: 8px !important; padding-bottom: 4px !important;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }

    .toolbar-wrap::-webkit-scrollbar { display: none; }
    .toolbar-left { flex-wrap: nowrap !important; flex-shrink: 0 !important; }
    .btn-toolbar { white-space: nowrap !important; flex-shrink: 0 !important; }

    .competence-table-wrap {
        overflow-x: auto !important; -webkit-overflow-scrolling: touch; max-width: 100% !important;
    }

    #workshop { min-width: 560px !important; }
    .container-fluid[style] { padding: 14px 12px !important; }
    .main-card-body { padding: 14px !important; }
    .page-header-text .title { font-size: 15px !important; }
    .collapse-item { white-space: normal !important; line-height: 1.5 !important; }
}

/* =============================================
   DESKTOP (>= 768px)
   Rule desktop HARUS di sini agar menang
   atas rule mobile di atas
============================================= */
@media (min-width: 768px) {

    .topbar { padding: 0 24px !important; }

    /* Base desktop sidebar */
    #accordionSidebar {
        width: var(--sidebar-width) !important;
        min-width: var(--sidebar-width) !important;
        transform: translateX(0) !important;
        transition: width 0.25s ease, min-width 0.25s ease !important;
    }

    #content-wrapper {
        margin-left: var(--sidebar-width);
        transition: margin-left 0.25s ease;
    }

    /* ── Expanded ── */
    #wrapper:not(.toggled) #accordionSidebar {
        width: var(--sidebar-width) !important;
        min-width: var(--sidebar-width) !important;
    }

    #wrapper:not(.toggled) .sidebar-brand {
        padding: 0 20px !important;
        justify-content: flex-start !important;
    }

    #wrapper:not(.toggled) .sidebar-brand-text { display: block !important; }

    #wrapper:not(.toggled) #accordionSidebar .brand-name,
    #wrapper:not(.toggled) #accordionSidebar .brand-sub,
    #wrapper:not(.toggled) #accordionSidebar .sidebar-heading {
        display: block !important;
    }

    #wrapper:not(.toggled) #accordionSidebar .nav-item {
        margin: 2px 10px !important;
        width: auto !important;
    }

    #wrapper:not(.toggled) #accordionSidebar .nav-link {
        padding: 10px 14px !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        white-space: nowrap;
        overflow: visible;
    }

    #wrapper:not(.toggled) #accordionSidebar .nav-link i {
        width: 18px !important;
        font-size: 13px !important;
        flex-shrink: 0;
    }

    #wrapper:not(.toggled) #accordionSidebar .nav-link span {
        display: block !important;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #wrapper:not(.toggled) #accordionSidebar .nav-link .fa-angle-down {
        display: inline-block !important;
        width: auto !important;
    }

    #wrapper:not(.toggled) #content-wrapper {
        margin-left: var(--sidebar-width) !important;
    }

    /* ── Toggled (icon-only) ── */
    #wrapper.toggled #accordionSidebar {
        width: var(--sidebar-collapsed) !important;
        min-width: var(--sidebar-collapsed) !important;
        overflow-x: hidden !important;
    }

    #wrapper.toggled #accordionSidebar .brand-name,
    #wrapper.toggled #accordionSidebar .brand-sub,
    #wrapper.toggled #accordionSidebar .sidebar-heading,
    #wrapper.toggled #accordionSidebar .nav-link span,
    #wrapper.toggled #accordionSidebar .nav-link .fa-angle-down,
    #wrapper.toggled #accordionSidebar .collapse-inner {
        display: none !important;
    }

    #wrapper.toggled #accordionSidebar .collapse.show { display: none !important; }
    #wrapper.toggled .sidebar-brand { padding: 0 !important; justify-content: center !important; }
    #wrapper.toggled .sidebar-brand-text { display: none !important; }

    #wrapper.toggled #accordionSidebar .nav-item {
        margin: 2px 6px !important;
        width: auto !important;
    }

    #wrapper.toggled #accordionSidebar .nav-link {
        padding: 10px 0 !important;
        justify-content: center !important;
        gap: 0 !important;
        position: relative;
    }

    #wrapper.toggled #accordionSidebar .nav-link i {
        width: 100% !important;
        text-align: center;
        font-size: 15px !important;
    }

    #wrapper.toggled #accordionSidebar .nav-link[data-label]:hover::after {
        content: attr(data-label);
        position: absolute;
        left: calc(var(--sidebar-collapsed) - 6px);
        top: 50%;
        transform: translateY(-50%);
        background: var(--green-dark);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        white-space: nowrap;
        padding: 6px 12px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        z-index: 999;
        pointer-events: none;
    }

    #wrapper.toggled #accordionSidebar .sidebar-divider { margin: 6px 10px !important; }
    #wrapper.toggled #sidebarToggle::before { transform: rotate(180deg); }
    #wrapper.toggled #content-wrapper { margin-left: var(--sidebar-collapsed) !important; }
}

/* =============================================
   TABLET (768–991px)
============================================= */
@media (min-width: 768px) and (max-width: 991px) {
    :root { --sidebar-width: 200px; }
}
