:root{--navy:#10233f;--blue:#2563eb;--bg:#f5f7fb;--border:#e6eaf0}
*{box-sizing:border-box}
html,body{margin:0;padding:0;width:100%;max-width:100%;overflow-x:hidden}
body{background:var(--bg);color:#1f2937;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.app-shell{display:flex;min-height:100vh;width:100%}
.sidebar{width:255px;min-width:255px;height:100vh;min-height:100vh;background:var(--navy);color:#fff;position:fixed;left:0;top:0;z-index:1050;overflow:hidden;padding:12px 12px 10px!important;display:flex;flex-direction:column}
.brand{display:block;text-align:center;padding:4px 4px 18px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:18px}
.sidebar-logo{width:128px;height:128px;object-fit:contain;display:block;margin:0 auto 10px}
.brand-text b{display:block;font-size:17px;line-height:1.2}.brand-text small,.user-mini small{display:block;color:#aebbd0;font-size:11px;margin-top:3px}
.nav{display:flex;flex-direction:column;flex-wrap:nowrap;width:100%;padding:0 4px 14px;min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.28) transparent} .nav::-webkit-scrollbar{width:6px}.nav::-webkit-scrollbar-track{background:transparent}.nav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.28);border-radius:8px}.nav::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.45)}.nav-label{font-size:10px;color:#8fa2bf;letter-spacing:1px;margin:15px 8px 4px}.nav-link{display:flex;align-items:center;gap:0;color:#dbe6f5;border-radius:9px;padding:10px 12px;text-decoration:none;white-space:nowrap}.nav-link:hover,.nav-link.active{background:#1f4b7a;color:#fff}.nav-link i{width:24px;min-width:24px}.sidebar-bottom{position:static;left:auto;right:auto;bottom:auto;flex:0 0 auto;background:var(--navy);padding:10px 4px 0;border-top:1px solid rgba(255,255,255,.08)}.user-mini{display:flex;gap:9px;align-items:center;font-size:13px;min-width:0}.user-mini>i{font-size:25px;flex:0 0 auto}.user-info{min-width:0;overflow:hidden}.user-info>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-info small{display:block}
.content{width:calc(100% - 255px);margin-left:255px;min-width:0}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--border);padding:14px 28px;display:flex;justify-content:space-between;align-items:center;gap:15px}.topbar-left{display:flex;align-items:center;min-width:0;gap:10px}.topbar-brand{display:flex;align-items:center;gap:12px;min-width:0}.topbar-title-wrap{min-width:0}.header-logo{width:46px;height:46px;object-fit:contain;flex:0 0 auto}.topbar-name{font-size:12px;color:#64748b;font-weight:600;line-height:1.1;margin-bottom:2px}.topbar h4{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.date-now{color:#6b7280;white-space:nowrap;font-size:13px}
.container-fluid{max-width:100%}.card{border:0;border-radius:14px;box-shadow:0 4px 18px rgba(20,35,60,.05)}.stat{padding:20px}.stat .icon{width:44px;height:44px;border-radius:12px;background:#edf5ff;display:grid;place-items:center;font-size:21px;color:var(--blue)}.stat h3{margin:8px 0 0;font-weight:800}.table>thead th{font-size:12px;color:#64748b;text-transform:uppercase;background:#f8fafc}.badge-soft{background:#eef2ff;color:#334155}.progress{height:9px}.login-wrap{min-height:100vh;background:#eef3f9;display:grid;place-items:center;padding:16px}.login-card{width:min(430px,100%);padding:32px;border-radius:18px}.brand-login{color:var(--navy)}.form-control,.form-select{padding:10px 12px;border-radius:9px}.btn{border-radius:9px}.filter-bar{background:#fff;border-radius:14px;padding:15px;box-shadow:0 4px 18px rgba(20,35,60,.05)}
.mobile-menu-btn{display:none;border:0;background:#fff;color:var(--navy);font-size:23px;padding:5px 9px;border-radius:8px;line-height:1}.mobile-menu-btn:hover{background:#f1f5f9}.sidebar-overlay{display:none}
.table-scroll-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:10px}.table-scroll-wrap>.table{min-width:680px;margin-bottom:0}
img{max-width:100%}
@media(max-width:991.98px){
 .sidebar{left:-280px;width:270px;min-width:270px;transition:left .25s ease;box-shadow:10px 0 30px rgba(0,0,0,.18);overflow:hidden}
 .sidebar.mobile-open{left:0}.sidebar-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:1040;opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}.sidebar-overlay.show{opacity:1;visibility:visible}
 .content{width:100%;margin-left:0}.mobile-menu-btn{display:inline-flex;align-items:center;justify-content:center}.topbar{height:auto;min-height:70px;padding:12px 15px}.topbar h4{font-size:18px}.topbar-name{font-size:11px}.date-now{font-size:11px}.container-fluid.p-4{padding:15px!important}.sidebar-logo{width:115px;height:115px}
}
@media(max-width:575.98px){.nav{padding-left:0;padding-right:0}.sidebar-bottom{padding-left:0;padding-right:0}.header-logo{width:38px;height:38px}.topbar{min-height:62px;padding:10px 11px;gap:7px}.topbar h4{font-size:16px}.date-now{display:none}.container-fluid.p-4{padding:11px!important}.card{border-radius:12px!important}.panel,.stat-card{padding:15px!important}.filter-bar{padding:11px!important}.btn{font-size:13px}.table-scroll-wrap>.table{min-width:650px}.login-wrap{padding:12px}.login-card{padding:25px 18px}.sidebar{width:255px;min-width:255px;left:-265px}}
@media(min-width:992px){.sidebar-overlay{display:none!important}}
