/* Administration theme aligned with the Studex sign-in experience. */
:root{--studex-ink:#26231d;--studex-muted:#777064;--studex-line:#e5ddce;--studex-surface:#fffdf8;--studex-accent:#806943;--studex-soft:#eee6d7}
body.studex-admin{color:var(--studex-ink);font-family:Nunito,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#eee3ca}
.studex-admin #wrapper{min-height:100vh;background:linear-gradient(135deg,#fbf7ed 0%,#f2eadb 53%,#e4d5b9 100%)}
.studex-admin #content-wrapper,.studex-admin #content{background:transparent!important}
.studex-admin #content-wrapper{min-width:0}
.studex-admin .sidebar{background:rgba(255,253,248,.72)!important;border-right:1px solid var(--studex-line);min-height:100vh}
.studex-admin .sidebar .sidebar-brand{height:7rem;padding:1.4rem 1.7rem;justify-content:flex-start!important}
.studex-admin .studex-sidebar-logo{display:block;width:150px;max-width:100%;height:auto}
.studex-admin .sidebar hr.sidebar-divider{border-color:var(--studex-line);margin:.65rem 1rem}
.studex-admin .sidebar .nav-item .nav-link{color:#484238;padding:.85rem 1.4rem;font-size:.9rem;font-weight:700}
.studex-admin .sidebar .nav-item .nav-link i{color:#8a7859;font-size:.9rem;margin-right:.55rem}
.studex-admin .sidebar .nav-item .nav-link:hover,.studex-admin .sidebar .nav-item.active>.nav-link{background:#e9dfce;color:#27231d}
.studex-admin .sidebar .nav-item .nav-link[data-toggle=collapse]::after{color:#8a7859}
.studex-admin .sidebar .nav-item .collapse .collapse-inner,.studex-admin .sidebar .nav-item .collapsing .collapse-inner{background:#f8f4eb!important;border:1px solid var(--studex-line);border-radius:8px!important}
.studex-admin .sidebar .nav-item .collapse .collapse-inner .collapse-item,.studex-admin .sidebar .nav-item .collapsing .collapse-inner .collapse-item{color:#554d40;white-space:normal}
.studex-admin .sidebar .nav-item .collapse .collapse-inner .collapse-item:hover,.studex-admin .sidebar .nav-item .collapse .collapse-inner .collapse-item.active{background:#e9dfce;color:#27231d}
.studex-admin .sidebar #sidebarToggle{background:#e9dfce;color:#514735}
.studex-admin .sidebar #sidebarToggle::after{color:#514735}
.studex-admin .topbar{height:5.5rem;margin-bottom:1rem!important;padding:0 2rem;background:transparent!important;box-shadow:none!important;border-bottom:1px solid rgba(154,136,105,.2)}
.studex-admin .topbar .nav-link,.studex-admin .topbar .nav-link .text-gray-600{color:#514735!important}
.studex-admin .topbar .dropdown-menu,.studex-admin .dropdown-menu{border:1px solid var(--studex-line);border-radius:10px;box-shadow:0 12px 30px rgba(75,58,31,.12)!important}
.studex-admin .dropdown-item{color:#484238}
.studex-admin .dropdown-item:hover{background:#f4eee2}
.studex-admin .container-fluid{padding-left:2rem;padding-right:2rem}
.studex-admin .breadcrumb{background:transparent;padding:.5rem 0;margin-bottom:1.4rem;color:var(--studex-muted)}
.studex-admin .breadcrumb a{color:#66583e}.studex-admin .breadcrumb-item.active a{color:#2c2923;font-weight:700}
.studex-admin .card{border:1px solid var(--studex-line);border-radius:10px;background:rgba(255,253,248,.88);overflow:hidden}
.studex-admin .card.shadow,.studex-admin .shadow{box-shadow:0 4px 18px rgba(74,57,30,.045)!important}
.studex-admin .card-header{background:transparent;border-bottom:1px solid var(--studex-line);padding:1.15rem 1.4rem!important}
.studex-admin .card-body{padding:1.4rem}
.studex-admin .card[class*="border-left-"]{border-left:1px solid var(--studex-line)!important}
.studex-admin .card .text-primary,.studex-admin .card .text-success,.studex-admin .card .text-info{color:#68583d!important}
.studex-admin .card .text-gray-800{color:#28251f!important}
.studex-admin .card .text-gray-300{color:#c5b69b!important}
.studex-admin .card .text-xs{font-size:.76rem;letter-spacing:.04em}
.studex-admin .card .h5{font-size:1.6rem;margin-top:.45rem}
.studex-admin .table{color:#3d382f;margin-bottom:0}
.studex-admin .table th,.studex-admin .table td{border-color:#eee7dc;vertical-align:middle;padding:.85rem}
.studex-admin .table thead th{border-bottom:1px solid var(--studex-line);background:#f8f5ee;color:#786c59;font-size:.72rem;letter-spacing:.04em;text-transform:uppercase}
.studex-admin .table-bordered{border:0}.studex-admin .table-bordered th,.studex-admin .table-bordered td{border-left:0;border-right:0}
.studex-admin .form-control,.studex-admin .custom-select,.studex-admin .select2-container--default .select2-selection{border-color:#ded4c4;border-radius:6px;color:#383329}
.studex-admin .form-control:focus,.studex-admin .custom-select:focus{border-color:#aa9065;box-shadow:0 0 0 .2rem rgba(170,144,101,.15)}
.studex-admin .btn{border-radius:6px;font-weight:700}.studex-admin .btn-primary,.studex-admin .btn-info{background:#29251e;border-color:#29251e;color:#fff}
.studex-admin .btn-primary:hover,.studex-admin .btn-info:hover{background:#514735;border-color:#514735}
.studex-admin .page-item.active .page-link{background:#66573e;border-color:#66573e}.studex-admin .page-link,.studex-admin a{color:#76603d}
.studex-admin .sticky-footer{background:transparent!important;color:#8b806f;border-top:1px solid var(--studex-line)}
.studex-admin :focus-visible{outline:2px solid #907447;outline-offset:2px}
@media(min-width:768px){.studex-admin .sidebar{width:15rem!important}.studex-admin .sidebar .nav-item .nav-link{width:15rem}.studex-admin .sidebar.toggled{width:6.5rem!important}.studex-admin .sidebar.toggled .nav-item .nav-link{width:6.5rem}.studex-admin .sidebar.toggled .sidebar-brand{justify-content:center!important;padding:1rem}.studex-admin .sidebar.toggled .studex-sidebar-logo{width:70px}}
@media(max-width:767.98px){.studex-admin .sidebar .sidebar-brand{height:5.5rem;justify-content:center!important;padding:.6rem}.studex-admin .studex-sidebar-logo{width:72px}.studex-admin .sidebar .nav-item .nav-link{padding:.8rem .5rem}.studex-admin .sidebar .nav-item .nav-link i{margin-right:0}.studex-admin .container-fluid{padding-left:1rem;padding-right:1rem}.studex-admin .topbar{padding:0 1rem;height:5.5rem}.studex-admin .card-body{padding:1rem}}

/* A lighter navigation and a compact overview of orders. */
.studex-admin .sidebar{background:transparent!important;border-right:0}
.studex-admin .sidebar hr.sidebar-divider{display:none}
.studex-admin .sidebar .nav-item .nav-link{margin:2px 0;border-radius:0 8px 8px 0;font-weight:600}
.studex-admin .sidebar .nav-item .nav-link:hover,.studex-admin .sidebar .nav-item.active>.nav-link{background:rgba(153,130,91,.14)}
.studex-admin .topbar{border:0}
.studex-admin .sidebar #sidebarToggle{background:transparent}
.studex-admin .studex-orders-table{min-width:680px}
.studex-admin .studex-orders-table td{vertical-align:top;padding:1rem .85rem}
.studex-admin .studex-orders-table th:first-child,.studex-admin .studex-orders-table td:first-child{white-space:nowrap}
.studex-admin .studex-orders-table .studex-order-total,.studex-admin .studex-orders-table .studex-order-link{white-space:nowrap;font-weight:700}
.studex-admin .studex-orders-table .studex-order-link{display:inline-block;color:#584b34}
.studex-admin .studex-orders-table .studex-order-link:hover{color:#27231d;text-decoration:underline}

/* Keep navigation available while the page scrolls. */
.studex-admin .sidebar{position:sticky;top:0;align-self:flex-start;height:100vh;min-height:0;overflow-y:auto;overflow-x:hidden;flex-shrink:0}
.studex-admin .sidebar .sidebar-brand{justify-content:center!important}
.studex-admin .topbar.shadow{box-shadow:none!important}
@media(min-width:768px){
  .studex-admin .sidebar.toggled .nav-item .collapse{position:static;margin:0 .35rem;animation:none}
  .studex-admin .sidebar.toggled .nav-item .collapse .collapse-inner{min-width:0;padding:.25rem!important}
  .studex-admin .sidebar.toggled .nav-item .collapse .collapse-item{padding:.5rem .25rem;font-size:.7rem;overflow-wrap:anywhere}
}

/* Compact, consistent table actions and one set of page controls. */
.studex-admin .table .actions{display:flex;align-items:center;justify-content:flex-start;gap:.25rem;margin:0;flex-wrap:wrap}
.studex-admin .table .actions a:last-child{margin-right:0}
.studex-admin .table .actions .studex-table-action{display:inline-flex;align-items:center;justify-content:center;width:2.25rem;height:2.25rem;padding:0;margin:0;border:0;border-radius:5px;background:transparent!important;color:#806f53!important;box-shadow:none;line-height:1}
.studex-admin .table .actions .studex-table-action:hover,.studex-admin .table .actions .studex-table-action:focus{background:rgba(128,105,67,.1)!important;color:#382e20!important}
.studex-admin .table .actions .studex-table-action .icon{display:inline-flex;align-items:center;justify-content:center;padding:0;background:transparent!important;color:inherit!important}
.studex-admin .table .actions .studex-table-action .text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.studex-admin .studex-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:.3rem;margin:1.2rem 0 0}
.studex-admin .studex-pagination a{display:inline-flex;align-items:center;justify-content:center;min-width:2.25rem;height:2.25rem;padding:0 .55rem;border-radius:5px;color:#756449;text-decoration:none}
.studex-admin .studex-pagination a:hover{background:#eee6d7;color:#30271c}
.studex-admin .studex-pagination a.active{background:#806943;color:#fff;font-weight:700}

.studex-admin .studex-order-actions{display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;gap:.75rem 1.25rem;margin:0 0 1rem}
.studex-admin .studex-order-actions select{width:100%;max-width:260px}

.studex-admin .studex-order-actions .dataTables_filter{float:none;text-align:left;margin:0}
.studex-admin .studex-order-actions .dataTables_filter label{display:flex;align-items:center;gap:.5rem;margin:0}
.studex-admin .studex-order-actions .dataTables_filter input{margin-left:0}
.studex-admin .studex-order-filter-moved > .row:first-child{display:none}
@media(max-width:575.98px){.studex-admin .studex-order-actions{align-items:stretch;flex-direction:column}.studex-admin .studex-order-actions select{max-width:none}.studex-admin .studex-order-actions .dataTables_filter input{flex:1;min-width:0}}

.studex-admin .studex-sidebar-credit{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.2rem;margin-top:auto;padding:1.25rem .6rem;color:#8c7b61;font-size:.8rem;line-height:1.4;text-align:center}
.studex-admin .studex-sidebar-credit a{color:#6d5a3d;font-weight:700;white-space:nowrap}
.studex-admin .studex-credit-heart{width:22px;height:22px;flex:0 0 22px}

.studex-admin .studex-dashboard-card-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.studex-admin .studex-dashboard-card-heading>a{font-size:.8rem;font-weight:700}
.studex-admin .studex-pending-count{display:inline-block;margin-left:.3rem;color:#897659;font-size:.8rem}
.studex-admin .studex-dashboard-orders{width:100%;min-width:0}
.studex-admin .studex-dashboard-orders th,.studex-admin .studex-dashboard-orders td{padding:.8rem .5rem}
.studex-admin .studex-dashboard-orders td:nth-child(2){overflow-wrap:anywhere}
.studex-admin .studex-dashboard-orders td:first-child,.studex-admin .studex-dashboard-orders .studex-order-total{white-space:nowrap}
.studex-admin .studex-pending-list{list-style:none;margin:0;padding:0}
.studex-admin .studex-pending-list li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 0;border-bottom:1px solid var(--studex-line)}
.studex-admin .studex-pending-list li:first-child{padding-top:0}.studex-admin .studex-pending-list li:last-child{border-bottom:0;padding-bottom:0}
.studex-admin .studex-pending-person{min-width:0;display:flex;flex-direction:column;font-size:.88rem;overflow-wrap:anywhere}
.studex-admin .studex-pending-person span,.studex-admin .studex-dashboard-empty{color:var(--studex-muted);font-size:.8rem}
.studex-admin .studex-dashboard-empty{margin:0}
.studex-admin .studex-activate-button{white-space:nowrap;border:1px solid #a18a64;color:#695535;background:transparent;font-size:.8rem;padding:.45rem .65rem}
.studex-admin .studex-activate-button:hover{background:#ede5d8;color:#2d261b}

.studex-admin .studex-pending-table{width:100%;min-width:400px}
.studex-admin .studex-pending-table th,.studex-admin .studex-pending-table td{padding:.8rem .5rem;vertical-align:middle}
.studex-admin .studex-pending-date{white-space:nowrap;color:#66583e;font-size:.85rem}

.studex-admin .studex-two-factor-notice{flex:1;max-width:760px;margin:0 auto;padding:.45rem .8rem;text-align:center;border:1px solid #ddc9a5;background:#fff5df;color:#624b2d;border-radius:8px;font-size:.8rem;line-height:1.35}
.studex-admin .studex-two-factor-notice a{font-weight:800;color:#624b2d;text-decoration:underline;white-space:nowrap}

@media(max-width:767.98px){.studex-admin .topbar{height:auto;min-height:5.5rem;gap:.5rem}.studex-admin .studex-two-factor-notice{font-size:.72rem;padding:.35rem .5rem}.studex-admin .topbar .navbar-nav .nav-link{padding-left:.35rem;padding-right:.35rem}}
