/* Smarttech Payroll v1.3.7 - Noction-inspired dark network analytics UI.
   Original visual design. Does not use Noction logos, files, or proprietary assets. */
:root{
  color-scheme:dark;
  --bg:#080f1e;--card:#111e33;--ink:#e7eefb;--muted:#93a8c5;--line:#263a57;
  --primary:#ff871e;--primary-soft:#39271e;--red:#e24d63;--gold:#ffb84a;
  --green:#33c59b;--shadow:0 13px 35px rgba(0,0,0,.17);
  --st-surface:#101d31;--st-raised:#16263d;--st-field:#0b172a;
}
html{background:#080f1e}
body{background:radial-gradient(ellipse at 85% -10%,#3a261d 0%,transparent 39%),#080f1e;color:var(--ink);font-family:Inter,'Segoe UI',Arial,sans-serif}
a{color:inherit}.layout{align-items:stretch}
.sidebar{width:260px;min-width:260px;background:linear-gradient(180deg,#0c1a2e 0%,#0b1526 100%)!important;border-right:1px solid #263b58!important;padding:21px 12px;box-shadow:none!important;overflow-y:auto;scrollbar-color:#6b4a33 transparent}
.sidebar .brand{padding:7px 9px 20px!important;border-bottom:1px solid #263a54;margin-bottom:14px;color:#f4f8ff!important;display:flex;gap:11px;letter-spacing:.15px;line-height:1.3}
.sidebar .brand .brand-logo{background:transparent!important;border-radius:0!important;padding:0!important;box-shadow:none!important;filter:drop-shadow(0 4px 10px rgba(0,0,0,.18))}
.sidebar .brand span{font-size:14px}.sidebar .brand small{color:#92aec9!important;font-size:10px;line-height:1.45;font-weight:500;margin-top:3px}
.sidebar .nav{display:flex;flex-direction:column;gap:3px}
.sidebar .nav a{position:relative;color:#aabbd1!important;background:transparent!important;border:1px solid transparent;border-radius:9px;padding:11px 12px;font-size:13px;font-weight:600;transition:background .15s,border-color .15s,color .15s,transform .15s}
.sidebar .nav a:hover{background:#282736!important;color:#f1f8ff!important;border-color:#6c4b34;transform:none!important}
.sidebar .nav a.active{background:linear-gradient(90deg,#49301d,#34271f)!important;border:1px solid #98602f;color:#ffba79!important;box-shadow:inset 3px 0 0 #ff8c24!important}
.main{max-width:1660px;padding:28px 34px 56px;min-width:0}
.main .top{border-bottom:1px solid #253952;padding:0 0 22px;margin-bottom:24px;gap:18px}
.main .top h1{color:#f4f8ff;font-size:25px;font-weight:800;letter-spacing:-.6px}.main .top .sub{color:#8ea7c5}
.sub,.metric .label,.metric .hint,td .muted,.smart-section-desc{color:#96a9c4}
.card{background:linear-gradient(158deg,#14253c,#111d31 82%);border:1px solid #2b3f59;border-radius:14px;box-shadow:0 10px 29px #02091024;color:#e7eefb}
.section-title{color:#f1f6ff;font-size:16px}.metric{position:relative;overflow:hidden;border-top:2px solid #f58220}
.metric .label{color:#91abc7}.metric .value{color:#f4faff;font-weight:800}.metric .hint{color:#8ca4c2}
.btn,.smart-id-action-scan{background:#182b44;border:1px solid #36516f;color:#e1edff;border-radius:9px;box-shadow:none;min-height:40px;transition:background .15s,border-color .15s,transform .15s}
.btn:hover,.smart-id-action-scan:hover{background:#224260;border-color:#46739b;filter:none;color:#fff}
.btn.primary,button.btn.primary,.st-notify-ok{background:linear-gradient(110deg,#df6417,#ff9229)!important;border-color:#ff9a38!important;color:white!important;box-shadow:0 4px 12px #e56b192b!important}
.btn.primary:hover,button.btn.primary:hover{background:#ff9d3c!important}.btn.danger{color:#ff8c9b;background:#421b2a;border-color:#774052}
.field label{color:#b7c8df}.field input,.field select,.field textarea,input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{color:#eef5ff;background:#0c192c;border:1px solid #334b69;border-radius:9px;outline:none}
input::placeholder,textarea::placeholder{color:#718eab}
.field input:focus,.field select:focus,.field textarea:focus,input:focus,select:focus,textarea:focus{border-color:#ff982b!important;outline:2px solid #ff861e2b;box-shadow:0 0 0 2px #f785221a}
input[type=file]{max-width:100%;color:#aec3df}input[type=file]::file-selector-button{background:#24405c;color:#e6f5ff;border:1px solid #426385;padding:7px 11px;border-radius:7px;margin-right:12px}
input[type=checkbox],input[type=radio]{accent-color:#ff931e}
.table-scroll{border:1px solid #263e5c;border-radius:10px;overflow:auto}table{color:#dfebfb}thead th,th{background:#162b45;color:#9bb9d7;border-bottom:1px solid #33506e;font-size:11px;text-transform:uppercase;letter-spacing:.55px}td{border-bottom:1px solid #243850}tbody tr:nth-child(even){background:#12243a}tbody tr:hover{background:#19314d}tr:last-child td{border-bottom:none}
.pill{background:#253750;color:#bad0e7}.pill.green{background:#123e34;color:#71e8bd}.pill.amber{background:#42351e;color:#f7cc78}
.notice{background:#173c36;color:#97efd2;border:1px solid #2c6657}.notice.error,.error{background:#401e2a;color:#ffb6c1;border:1px solid #6c3545}
.empty{color:#8fa6c4}.item-row select,.item-row input{background:#0c192c;color:#e3eefc;border-color:#344b65}.item-row .remove{background:#452332;color:#ff9bae}
.umk-helper,.diag-item,.diagnostic-note{background:#142a42;color:#c0d5ed;border:1px solid #304962}
.diag-item span{color:#97b1cd}.diag-item strong{color:#f2f7ff}.diagnostic-note a{color:#ffbd84}
.totals tr:last-child{color:#7ce6bc}
.login-wrap{background:radial-gradient(circle at 14% 20%,#44301f 0%,transparent 34%),radial-gradient(circle at 88% 80%,#162d53 0%,transparent 36%),#070f1e;min-height:100vh}
.login-box{background:linear-gradient(150deg,#14273f,#0d1c30);border:1px solid #2e4d6e;border-top:3px solid #f58b25;box-shadow:0 28px 80px #0007;padding:30px}
.login-box h1{color:#f4f9ff}.login-box .sub{color:#a0b5cf}.login-box .login-logo{background:transparent;border-radius:0;padding:0;max-height:150px!important;object-fit:contain;filter:drop-shadow(0 12px 26px rgba(0,0,0,.28))}
.login-box input{background:#0a182b}.login-box .btn{width:100%}
/* Keep success/error overlays readable on top of dark surfaces */
.st-notify-dialog,.db-success-dialog,.st-version-dialog{background:#14253a!important;color:#eaf4ff!important;border:1px solid #385577!important}
.st-notify-dialog h2,.db-success-dialog h2,.st-version-dialog h2{color:#fff!important}
.st-notify-brand,.st-notify-message,.db-success-dialog p,.st-version-detail{color:#b2c7e1!important}
.st-notify-ok{color:#fff!important}.db-success-dialog .db-success-meta,.st-version-warning{background:#1b344f!important;color:#c3d7ed!important}
.st-version-actions .btn{color:#e8f5ff}.st-version-icon{background:#4a3b23;color:#ffd77a}
.db-dialog{background:#13243b;color:#e6f1fd;border-color:#35506d}.db-progress-track{background:#304560}.db-step-list{border-color:#33506d}.db-step{border-color:#29435e}.db-step small{color:#acc5df}
.db-update-head .sub{color:#acc0da}.db-success-dialog .db-success-icon{background:#124536;color:#7ae8be;border-color:#28765c}
.smart-id-studio{border-color:#2f4a68;box-shadow:0 20px 45px #0004;background:#13243b}.smart-id-studio-heading{background:linear-gradient(110deg,#091b32,#163654);border-bottom-color:#f49a35}
.smart-id-studio-stage{background:radial-gradient(circle at 15% 15%,#203e60,transparent 40%),#101f33}
.smart-id-studio-footer{background:#14273e;border-top-color:#2a4661}.smart-id-studio-note strong{color:#e0edfc}.smart-id-studio-note small{color:#9fb4cd}
.smart-photo-panel{border-color:#35506d;background:#152940}.smart-section-icon{background:linear-gradient(135deg,#c75d19,#ff992f)}
.smart-id-studio-footer .smart-id-action-scan{background:#203b57;color:#dcefff;border-color:#436786}
/* Preserve printed payroll/invoices/RAB/cards as formal documents, not dark UI */
.slip,.corporate-letterhead,.rab-letterhead{color:#1c2b41}.slip{background:#fff!important;border-color:#d8dee8}.slip table,.slip th,.slip td{color:#202d3f;background:#fff}.slip table th{color:#25314c}.slip-title,.rab-title{color:#132f68}
.smart-id-card{color:white}.smart-id-front,.smart-id-back{color:white}.smart-id-brand{color:#0e1973}.smart-id-barcode,.smart-id-backcode{color:#182446;background:#fff}
@media(max-width:1000px){.sidebar{width:220px;min-width:220px}.main{padding:22px 20px 45px}}
@media(max-width:680px){.layout{display:block}.sidebar{position:static!important;width:100%;height:auto;min-width:0;padding:10px 12px}.sidebar .brand{padding:5px 6px 12px!important;margin-bottom:5px}.sidebar .nav{display:flex;flex-direction:row;overflow-x:auto;gap:5px;padding:5px 0 10px}.sidebar .nav a{flex:0 0 auto;font-size:12px;white-space:nowrap;padding:9px 11px}.main{padding:18px 12px 35px}.top{flex-direction:column;align-items:flex-start}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.split,.form-grid{grid-template-columns:1fr}.card{padding:15px}.login-box{padding:22px 18px}}
@media print{
  :root{color-scheme:light;--bg:white;--card:white;--ink:#202b3e;--muted:#607087;--line:#dae2ed}
  html,body,.layout,.main{background:white!important;color:#17243a!important}
  .sidebar,.top,.no-print{display:none!important}
  .card{background:#fff!important;color:#17243a!important;border-color:#d7e1ef!important;box-shadow:none!important}
  .slip,.slip table,.slip td,.slip th{background:white!important;color:#1f2937!important}
  .slip .highlight{background:#eef2ff!important}.slip .remaining{background:#eff8f2!important}
  .smart-id-studio-stage{background:transparent!important}.smart-id-card{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}
  .smart-id-front,.smart-id-back{background:#0a2369!important;color:white!important}
  .smart-id-brand{background:#f9fbff!important;color:#0e1973!important}
  .smart-id-barcode,.smart-id-backcode{background:#fff!important;color:#182446!important}
}

/* v1.3.7 orange accent refinements, without changing ID-card print colors */
.sidebar .nav a.active::after{content:"";position:absolute;right:12px;top:50%;width:5px;height:5px;border-radius:50%;background:#ff9b31;transform:translateY(-50%)}
.metric{border-top-color:#f58220}
.btn.primary:focus-visible,.btn:focus-visible,a:focus-visible{outline:2px solid #ffac50;outline-offset:3px}
.st-notify-ok:hover{background:#fa9a38!important}
.db-progress-fill{background:linear-gradient(90deg,#c65d1a,#f68921,#ffbf61)!important}
.login-box{border-top-color:#f58b25!important}
.smart-id-action-print{background:linear-gradient(110deg,#db6518,#ff9229)!important;border-color:#f69a43!important}
@media print{.smart-id-action-print{display:none!important}}


/* v1.3.9 — Noction-inspired dark orange polish, clearer typography and transparent official brand */
:root{--bg:#080e19;--card:#111d2c;--ink:#edf3fb;--muted:#a3b2c6;--line:#26374b;--primary:#f68b25;--primary-soft:#37281d;--st-surface:#101a29;--st-raised:#162538;--st-field:#0a1422}
html,body{scrollbar-color:#39495e #0b1524}
body{background:radial-gradient(ellipse at 97% 0%,rgba(235,109,25,.11),transparent 32%),#080e19;color:#edf3fb}
.sidebar{width:274px;min-width:274px;padding:22px 13px 18px!important;background:linear-gradient(180deg,#0c1a2a,#091422 68%,#08111e)!important;scrollbar-width:thin;scrollbar-color:#3b5069 transparent}
.sidebar .brand{display:grid!important;grid-template-columns:54px minmax(0,1fr);align-items:center!important;gap:13px!important;padding:9px 8px 21px!important;min-height:80px;max-width:none!important;overflow:visible!important}
.sidebar .brand .brand-logo{display:block!important;width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;max-height:54px!important;flex:0 0 54px!important;object-fit:contain!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 3px 7px rgba(0,0,0,.22))}
.sidebar .brand>span{display:block;min-width:0;font-size:15px!important;line-height:1.25;font-weight:800;overflow-wrap:normal;word-break:normal;letter-spacing:-.2px}
.sidebar .brand small{font-size:10.5px!important;line-height:1.45!important;color:#aabbd0!important;white-space:normal;margin-top:5px;letter-spacing:0}
.sidebar .nav{gap:4px}.sidebar .nav a{min-height:43px;padding:10px 12px;border-radius:9px;font-size:12.5px;line-height:1.3}
.sidebar .nav a.active{background:linear-gradient(95deg,rgba(232,111,28,.19),rgba(244,141,35,.10))!important;border:1px solid rgba(250,154,53,.52)!important;color:#ffbd85!important;box-shadow:inset 3px 0 0 #ff8d26!important}
.sidebar .nav a.active:after{background:#ff993d}
.main{padding:30px 36px 54px;max-width:1690px}.main .top{padding-bottom:23px;margin-bottom:25px}.main .top h1{font-size:26px;line-height:1.22;letter-spacing:-.6px}.main .top .sub{margin-top:7px;font-size:13px;color:#a7bdd6}
.card{background:#121f32;border-color:#2a405a;border-radius:14px;box-shadow:0 12px 24px rgba(0,0,0,.11)}
.metric{background:linear-gradient(145deg,#14253a,#111d2f);border:1px solid #2d4562;border-top:2px solid #ff922b;min-height:140px;padding:20px 21px}.metric .label{color:#a6bad2;font-size:12.5px}.metric .value{color:#f4f8ff;font-size:30px;margin-top:13px}.metric .hint{color:#92a8c4;font-size:11px}
.section-title{font-size:16px;letter-spacing:-.2px}
.btn.primary,button.btn.primary{background:linear-gradient(125deg,#e56e1b,#ff9429)!important;border:1px solid #ffa14c!important;box-shadow:0 3px 10px rgba(241,119,30,.14)!important}
.btn.primary:hover,button.btn.primary:hover{background:linear-gradient(125deg,#f37d23,#ffa54c)!important}
.table-scroll{border:1px solid #2b405b;border-radius:10px}thead th,th{background:#1a304a;color:#a9c6e5;border-bottom-color:#35516e}tbody tr:hover{background:#1b3048}
.login-box{border-top:3px solid #f58b25;background:linear-gradient(160deg,#17273b,#0c1727)}
.login-box .login-logo{display:block!important;width:min(100%,310px)!important;max-width:310px!important;height:190px!important;max-height:190px!important;object-fit:contain!important;padding:0!important;margin:0 auto 12px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 9px 15px rgba(0,0,0,.14))}
.setup-logo{display:block!important;width:min(100%,320px)!important;height:192px!important;max-height:192px!important;object-fit:contain!important;background:transparent!important;margin:0 auto 10px!important}
@media(max-width:1050px){.sidebar{width:238px;min-width:238px}.sidebar .brand{grid-template-columns:47px minmax(0,1fr);gap:10px!important}.sidebar .brand .brand-logo{width:47px!important;min-width:47px!important;max-width:47px!important;height:47px!important;max-height:47px!important}.main{padding:24px 21px 40px}}
@media(max-width:680px){.sidebar{width:100%!important;min-width:0!important;padding:10px 12px!important}.sidebar .brand{display:grid!important;grid-template-columns:43px minmax(0,1fr);gap:10px!important;min-height:62px;padding:3px 4px 10px!important}.sidebar .brand .brand-logo{width:43px!important;min-width:43px!important;max-width:43px!important;height:43px!important;max-height:43px!important}.sidebar .nav{gap:5px}.sidebar .nav a{min-height:38px;padding:9px 11px;font-size:12px}.main{padding:18px 12px 34px}.main .top h1{font-size:22px}.metric{min-height:122px;padding:16px}.metric .value{font-size:25px}}
@media print{html,body,.layout,.main{background:#fff!important;color:#17243a!important}.sidebar{display:none!important}.card{background:#fff!important;color:#17243a!important;border-color:#d7e1ef!important}.metric{border-color:#d7e1ef!important}.smart-id-card{background:#0a2369!important;color:#fff!important}}


/* v1.3.9 — Noction-inspired dark orange polish, clearer typography and transparent official brand */
:root{--bg:#080e19;--card:#111d2c;--ink:#edf3fb;--muted:#a3b2c6;--line:#26374b;--primary:#f68b25;--primary-soft:#37281d;--st-surface:#101a29;--st-raised:#162538;--st-field:#0a1422}
html,body{scrollbar-color:#39495e #0b1524}
body{background:radial-gradient(ellipse at 97% 0%,rgba(235,109,25,.11),transparent 32%),#080e19;color:#edf3fb}
.sidebar{width:274px;min-width:274px;padding:22px 13px 18px!important;background:linear-gradient(180deg,#0c1a2a,#091422 68%,#08111e)!important;scrollbar-width:thin;scrollbar-color:#3b5069 transparent}
.sidebar .brand{display:grid!important;grid-template-columns:54px minmax(0,1fr);align-items:center!important;gap:13px!important;padding:9px 8px 21px!important;min-height:80px;max-width:none!important;overflow:visible!important}
.sidebar .brand .brand-logo{display:block!important;width:54px!important;height:54px!important;min-width:54px!important;max-width:54px!important;max-height:54px!important;flex:0 0 54px!important;object-fit:contain!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 3px 7px rgba(0,0,0,.22))}
.sidebar .brand>span{display:block;min-width:0;font-size:15px!important;line-height:1.25;font-weight:800;overflow-wrap:normal;word-break:normal;letter-spacing:-.2px}
.sidebar .brand small{font-size:10.5px!important;line-height:1.45!important;color:#aabbd0!important;white-space:normal;margin-top:5px;letter-spacing:0}
.sidebar .nav{gap:4px}.sidebar .nav a{min-height:43px;padding:10px 12px;border-radius:9px;font-size:12.5px;line-height:1.3}
.sidebar .nav a.active{background:linear-gradient(95deg,rgba(232,111,28,.19),rgba(244,141,35,.10))!important;border:1px solid rgba(250,154,53,.52)!important;color:#ffbd85!important;box-shadow:inset 3px 0 0 #ff8d26!important}
.sidebar .nav a.active:after{background:#ff993d}
.main{padding:30px 36px 54px;max-width:1690px}.main .top{padding-bottom:23px;margin-bottom:25px}.main .top h1{font-size:26px;line-height:1.22;letter-spacing:-.6px}.main .top .sub{margin-top:7px;font-size:13px;color:#a7bdd6}
.card{background:#121f32;border-color:#2a405a;border-radius:14px;box-shadow:0 12px 24px rgba(0,0,0,.11)}
.metric{background:linear-gradient(145deg,#14253a,#111d2f);border:1px solid #2d4562;border-top:2px solid #ff922b;min-height:140px;padding:20px 21px}.metric .label{color:#a6bad2;font-size:12.5px}.metric .value{color:#f4f8ff;font-size:30px;margin-top:13px}.metric .hint{color:#92a8c4;font-size:11px}
.section-title{font-size:16px;letter-spacing:-.2px}
.btn.primary,button.btn.primary{background:linear-gradient(125deg,#e56e1b,#ff9429)!important;border:1px solid #ffa14c!important;box-shadow:0 3px 10px rgba(241,119,30,.14)!important}
.btn.primary:hover,button.btn.primary:hover{background:linear-gradient(125deg,#f37d23,#ffa54c)!important}
.table-scroll{border:1px solid #2b405b;border-radius:10px}thead th,th{background:#1a304a;color:#a9c6e5;border-bottom-color:#35516e}tbody tr:hover{background:#1b3048}
.login-box{border-top:3px solid #f58b25;background:linear-gradient(160deg,#17273b,#0c1727)}
.login-box .login-logo{display:block!important;width:min(100%,310px)!important;max-width:310px!important;height:190px!important;max-height:190px!important;object-fit:contain!important;padding:0!important;margin:0 auto 12px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;filter:drop-shadow(0 9px 15px rgba(0,0,0,.14))}
.setup-logo{display:block!important;width:min(100%,320px)!important;height:192px!important;max-height:192px!important;object-fit:contain!important;background:transparent!important;margin:0 auto 10px!important}
@media(max-width:1050px){.sidebar{width:238px;min-width:238px}.sidebar .brand{grid-template-columns:47px minmax(0,1fr);gap:10px!important}.sidebar .brand .brand-logo{width:47px!important;min-width:47px!important;max-width:47px!important;height:47px!important;max-height:47px!important}.main{padding:24px 21px 40px}}
@media(max-width:680px){.sidebar{width:100%!important;min-width:0!important;padding:10px 12px!important}.sidebar .brand{display:grid!important;grid-template-columns:43px minmax(0,1fr);gap:10px!important;min-height:62px;padding:3px 4px 10px!important}.sidebar .brand .brand-logo{width:43px!important;min-width:43px!important;max-width:43px!important;height:43px!important;max-height:43px!important}.sidebar .nav{gap:5px}.sidebar .nav a{min-height:38px;padding:9px 11px;font-size:12px}.main{padding:18px 12px 34px}.main .top h1{font-size:22px}.metric{min-height:122px;padding:16px}.metric .value{font-size:25px}}
@media print{html,body,.layout,.main{background:#fff!important;color:#17243a!important}.sidebar{display:none!important}.card{background:#fff!important;color:#17243a!important;border-color:#d7e1ef!important}.metric{border-color:#d7e1ef!important}.smart-id-card{background:#0a2369!important;color:#fff!important}}


/* v1.4.0 — NOC-inspired typographic rhythm & dense analytics columns */
:root { --noc-bg:#0c141e; --noc-side:#111a24; --noc-panel:#141f2a; --noc-panel-raised:#192735; --noc-line:#344658; --noc-text:#f2f7fc; --noc-muted:#8ea9c2; --noc-orange:#ff8d26; }
body { background:var(--noc-bg)!important; color:var(--noc-text)!important; font-size:13px; }
.layout { gap:0; }
.sidebar { width:222px!important; min-width:222px!important; padding:10px 8px 18px!important; background:var(--noc-side)!important; border-right:1px solid #34404d!important; }
.sidebar .brand { display:grid!important; grid-template-columns:35px minmax(0,1fr)!important; gap:8px!important; padding:1px 4px 13px!important; min-height:54px!important; margin-bottom:7px!important; border-bottom:1px solid #324354; }
.sidebar .brand .brand-logo { width:35px!important; height:35px!important; min-width:35px!important; max-width:35px!important; max-height:35px!important; object-fit:contain!important; }
.sidebar .brand>span { font-size:12px!important; font-weight:800; line-height:1.16!important; letter-spacing:.1px; }
.sidebar .brand small { font-size:8.7px!important; line-height:1.45!important; margin-top:3px!important; color:#91a7bc!important; }
.sidebar .nav { display:flex; flex-direction:column; gap:2px!important; }
.sidebar .nav .nav-group-label { margin:14px 7px 5px; color:#7292ac; font-size:9px; font-weight:800; letter-spacing:1px; text-transform:uppercase; line-height:1.2; }
.sidebar .nav a { display:flex; align-items:center; gap:9px; min-height:35px!important; padding:7px 9px!important; border-radius:4px!important; font-size:11.5px!important; font-weight:600!important; line-height:1.25!important; border:1px solid transparent; }
.sidebar .nav a .nav-icon { width:15px; min-width:15px; text-align:center; color:#90a9c2; }
.sidebar .nav a .nav-label { min-width:0; overflow-wrap:anywhere; }
.sidebar .nav a.active { background:#18222d!important; border-color:#38495a!important; color:#fff!important; box-shadow:inset 2px 0 0 #ff8d26!important; }
.sidebar .nav a.active .nav-icon { color:#ff962f; }
.sidebar .nav a.active::after { display:none; }
.sidebar .nav a:hover { background:#202d39!important; border-color:#3b5064!important; }
.main { width:100%; max-width:none!important; padding:18px 18px 48px!important; }
.main .top { min-height:66px; display:flex; align-items:center; border-bottom:1px solid #344658!important; padding:0 0 14px!important; margin-bottom:15px!important; }
.top-eyebrow { display:block; text-transform:uppercase; letter-spacing:1.15px; font-weight:800; color:#80a6c4; font-size:9px; line-height:1.35; margin-bottom:3px; }
.main .top h1 { font-size:21px!important; line-height:1.2!important; margin:0; color:#f7f9fd; letter-spacing:-.4px; }
.main .top .sub { font-size:11px!important; line-height:1.5; margin-top:5px!important; color:#9ab2c9!important; }
.main .top .toolbar { margin-left:auto; }
.card { padding:15px!important; border:1px solid #344658!important; border-radius:5px!important; background:var(--noc-panel)!important; box-shadow:none!important; color:#eaf3ff; }
.grid { gap:9px!important; }
.metrics { grid-template-columns:repeat(4,minmax(0,1fr)); }
.metric { min-height:99px!important; padding:14px 14px 12px!important; border-left:2px solid #3e7095!important; border-top:1px solid #344658!important; background:#141f2a!important; }
.metric .label { color:#9eb8d0!important; font-size:10px!important; text-transform:uppercase; letter-spacing:.7px; font-weight:700; line-height:1.3; }
.metric .value { margin-top:7px!important; color:#f7faff; font-size:25px!important; line-height:1.1; font-weight:800; }
.metric .hint { margin-top:4px; color:#8faac2!important; font-size:9.5px!important; line-height:1.35; }
.section-title { font-size:14px!important; line-height:1.25; margin:0 0 11px; }
.head-row { gap:12px; margin-bottom:10px; }
.table-scroll { border:1px solid #334659!important; border-radius:4px!important; }
table { table-layout:auto; font-size:11px!important; color:#dde9f7; }
th, thead th { padding:10px 11px!important; color:#9cbcd8!important; background:#1a2a3b!important; font-size:9.5px!important; letter-spacing:.55px; border-bottom:1px solid #3a526b!important; }
td { padding:9px 11px!important; border-bottom:1px solid #2d4255!important; }
tbody tr:nth-child(even) { background:#172535!important; }
tbody tr:hover { background:#1f3548!important; }
.btn { min-height:35px!important; border-radius:5px!important; padding:8px 11px!important; font-size:11px!important; }
.btn.primary { background:#df6a1a!important; border-color:#ff953d!important; box-shadow:none!important; }
.btn.primary:hover { background:#f38b2b!important; }
.field label { font-size:11px; }
.field input,.field select,.field textarea { border-radius:5px; }
.notice,.diag-item,.db-dialog,.table-scroll,.umk-helper { border-radius:5px!important; }
/* Print-specific official documents and ID cards remain unchanged. */
@media(max-width:1100px){.sidebar{width:208px!important;min-width:208px!important}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.sidebar{width:100%!important;min-width:0!important;height:auto!important;padding:9px 10px!important}.sidebar .brand{grid-template-columns:35px minmax(0,1fr)!important}.sidebar .nav{display:flex;flex-direction:row!important;overflow-x:auto;align-items:center;gap:4px!important}.sidebar .nav .nav-group-label{display:none}.sidebar .nav a{flex:0 0 auto;min-height:34px!important;white-space:nowrap}.main{padding:14px 11px 30px!important}.main .top{align-items:flex-start;gap:10px}.main .top h1{font-size:19px!important}.metrics{gap:8px!important}.metric{padding:11px!important;min-height:92px!important}.metric .value{font-size:21px!important}.card{padding:12px!important}}
@media print { :root{color-scheme:light} body,html,.layout,.main{background:#fff!important;color:#17243a!important}.card{background:#fff!important;color:#17243a!important;border-color:#dae2ec!important}.sidebar,.top,.nav-group-label{display:none!important}.slip,.rab-print,.project-paper{background:#fff!important;color:#1f2937!important}.smart-id-card{background:#0a2369!important;color:white!important} }
