*{box-sizing:border-box}
body{margin:0;font-family:Inter,system-ui,-apple-system,sans-serif;background:#F4F6FA;color:#16203A;font-size:14px;line-height:1.45}
a{color:#13235B}a:hover{color:#0B1640}
h1{margin:0;font-size:26px;font-weight:700}
h2{margin:0 0 12px;font-size:18px}
.muted{color:#4F5A73}.muted-light{color:#C9D2EC;font-size:12px}
.shell{display:flex;flex-wrap:wrap;min-height:100vh}
.side{flex:1 1 220px;max-width:260px;background:#13235B;color:#fff;padding:22px 14px;display:flex;flex-direction:column;gap:6px}
.brand{display:flex;align-items:center;gap:10px;padding:0 8px 18px}
.logo{width:36px;height:36px;border-radius:10px;background:#F5B800;color:#13235B;display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0}
.brand-name{font-weight:700;font-size:17px}.brand-sub{font-size:12px;color:#C9D2EC}
.nav-links{display:flex;flex-direction:column;gap:4px}
.nav-links a{display:flex;align-items:center;min-height:44px;padding:0 14px;border-radius:10px;color:#E3E8F6;text-decoration:none}
.nav-links a:hover{background:#1E3175;color:#fff}
.nav-links a.on{background:#F5B800;color:#13235B;font-weight:600}
.nav-user{margin-top:18px;padding:14px;border-top:1px solid #2A3C7E;display:flex;flex-direction:column;gap:2px}
.link-light{background:none;border:0;color:#F5B800;font:inherit;padding:6px 0;cursor:pointer;text-align:left}
.menu-toggle{display:none}
.content{flex:999 1 560px;min-width:0;padding:26px 30px 40px;display:flex;flex-direction:column;gap:20px}
.head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}
.head .sub{font-size:14px;color:#4F5A73;margin-top:4px}
.actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.card{background:#fff;border:1px solid #E2E7F1;border-radius:14px;padding:20px}
.grid-kpi{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px}
.kpi{background:#fff;border:1px solid #E2E7F1;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:4px}
.kpi .l{font-size:13px;color:#4F5A73}.kpi .v{font-size:28px;font-weight:700;color:#13235B}.kpi .s{font-size:12px;color:#4F5A73}
.row{display:flex;flex-wrap:wrap;gap:18px}
.col-2{flex:2 1 560px;min-width:0}.col-1{flex:1 1 300px;min-width:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 18px;border-radius:10px;border:1px solid #CDD4E4;background:#fff;color:#13235B;font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.btn:hover{border-color:#13235B}
.btn-primary{background:#13235B;border-color:#13235B;color:#fff}.btn-primary:hover{background:#0B1640;color:#fff}
.btn-yellow{background:#F5B800;border-color:#F5B800;color:#13235B}
.btn-danger{color:#9B1C1C;border-color:#F3B4B4}
.btn-sm{min-height:36px;padding:0 12px;font-size:13px}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse}
th{text-align:left;color:#4F5A73;font-size:12px;text-transform:uppercase;letter-spacing:.04em;padding:10px 8px;border-bottom:1px solid #E2E7F1;white-space:nowrap}
td{padding:11px 8px;border-bottom:1px solid #EEF1F7;vertical-align:middle}
tr:hover td{background:#FAFBFE}
.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.b-new{background:#E3E9FB;color:#13235B}.b-good{background:#DDF5E6;color:#11643A}.b-warn{background:#FFF3CC;color:#8A5A00}
.b-bad{background:#FDE2E2;color:#9B1C1C}.b-done{background:#13235B;color:#fff}.b-muted{background:#EEF0F4;color:#4F5A73}
.tabs{display:flex;flex-wrap:wrap;gap:8px}
.tab{display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid #CDD4E4;background:#fff;color:#13235B;font-weight:600;font-size:13px;text-decoration:none}
.tab.on{background:#13235B;border-color:#13235B;color:#fff}
label.f{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#4F5A73;font-weight:500}
input[type=text],input[type=tel],input[type=email],input[type=password],input[type=search],input[type=number],input[type=date],input[type=time],input[type=datetime-local],select,textarea{min-height:44px;border:1px solid #CDD4E4;border-radius:10px;padding:0 12px;font:inherit;color:#16203A;background:#fff;width:100%}
textarea{padding:10px 12px;min-height:90px;resize:vertical}
input:focus,select:focus,textarea:focus,.btn:focus-visible,a:focus-visible{outline:3px solid #F5B800;outline-offset:1px}
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.flash{padding:12px 16px;border-radius:10px;font-weight:500}
.flash-ok{background:#DDF5E6;color:#11643A}.flash-err{background:#FDE2E2;color:#9B1C1C}.flash-warn{background:#FFF3CC;color:#6B4A00}
.pager{display:flex;gap:16px;align-items:center;justify-content:flex-end;padding-top:12px}
.timeline{display:flex;flex-direction:column;gap:0}
.tl{padding:10px 0;border-bottom:1px solid #EEF1F7;display:flex;flex-direction:column;gap:2px}
.tl .t{font-size:12px;color:#4F5A73}
.list-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #EEF1F7}
.pill{font-size:12px;font-weight:600;color:#8A5A00;background:#FFF3CC;border-radius:999px;padding:4px 10px;white-space:nowrap}
.bars{display:grid;grid-template-columns:repeat(var(--n,12),minmax(0,1fr));gap:10px;align-items:end;height:200px}
.bar{display:flex;flex-direction:column;justify-content:flex-end;height:100%;gap:6px}
.bar .stack{flex:1;display:flex;flex-direction:column;justify-content:flex-end}
.bar .nc{background:#F5B800;border-radius:4px 4px 0 0}.bar .c{background:#13235B;border-radius:0 0 4px 4px}
.bar .lbl{font-size:12px;color:#4F5A73;text-align:center}
.legend{display:flex;gap:16px;font-size:13px;color:#4F5A73}.legend span{display:flex;align-items:center;gap:6px}
.sw{width:12px;height:12px;border-radius:3px;display:inline-block}
.drop{position:relative;border:2px dashed #B9C3DB;border-radius:12px;padding:28px 16px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;background:#F8FAFE}
.check{display:flex;align-items:center;gap:10px;min-height:40px}
.check input{width:18px;height:18px}
.imp-bar{background:#F5B800;color:#13235B;padding:8px 16px;font-weight:600;font-size:13px}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:#13235B}
.login-card{background:#fff;border-radius:16px;padding:32px;width:100%;max-width:400px;display:flex;flex-direction:column;gap:16px}
.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}
audio{height:36px;max-width:240px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media (max-width:820px){
  .side{max-width:none;flex-basis:100%;padding:12px 14px}
  .brand{padding-bottom:6px}
  .menu-toggle{display:inline-flex;align-self:flex-start;min-height:40px;padding:0 14px;border-radius:10px;border:1px solid #2A3C7E;background:#1E3175;color:#fff;font:inherit}
  .nav-links{display:none}.nav-links.open{display:flex}
  .content{padding:18px 14px 30px}
}
