@font-face{font-family:"Nunito Sans";src:url(/static/fonts/NunitoSans.woff2) format("woff2");font-weight:200 1000;font-style:normal;font-display:swap}@font-face{font-family:"Poppins";src:url(/static/fonts/Poppins-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:"Poppins";src:url(/static/fonts/Poppins-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:"Poppins";src:url(/static/fonts/Poppins-SemiBold.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:"Poppins";src:url(/static/fonts/Poppins-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
:root{--red:#A50021;--red-d:#530014;--black:#1c1c1e;--side:#172E32;--ink:#172E32;--bg:#F6F6F6;--line:#eceef2;--soft:#f7f8fa;--muted:#545454;--sh:0 1px 2px rgba(16,24,40,.04),0 4px 14px rgba(16,24,40,.06)}
*{box-sizing:border-box}html,body{height:100%}
body{margin:0;font-family:"Poppins","Nunito Sans","Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;font-weight:400;line-height:1.45}
a{color:var(--red)}
.app{display:flex;min-height:100vh}
.sb{width:240px;flex:0 0 240px;background:var(--side);color:#c9cbd1;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:22px 14px 16px}
.sb .logo{display:flex;align-items:center;gap:10px;padding:0 8px 22px;color:#fff;text-decoration:none}
.sb .logo img{width:44px;height:44px;border-radius:50%;background:#fff;object-fit:contain;padding:3px;box-sizing:border-box}
.sb .logo b{display:block;font-size:15px;font-weight:700;letter-spacing:.2px}.sb .logo small{display:block;font-size:11px;color:#8d9099}
.sb nav{display:flex;flex-direction:column;gap:3px;flex:1;overflow-y:auto}
.sb nav a{display:flex;align-items:center;gap:12px;color:#c9cbd1;text-decoration:none;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:400}
.sb nav a svg{width:18px;height:18px;flex:0 0 18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sb nav a:hover{background:#21404A;color:#fff}.sb nav a.on{background:var(--red);color:#fff;font-weight:600}
.sb .navh{font-size:11px;color:#6f727b;text-transform:uppercase;letter-spacing:.8px;padding:14px 12px 4px}
.sb .me{display:flex;align-items:center;gap:10px;border-top:1px solid #2e2e33;padding:14px 6px 0;margin-top:10px}
.sb .me .n{color:#fff;font-size:13.5px;font-weight:600;line-height:1.2}.sb .me .r{font-size:11px;color:#8d9099}
.sb .me a{color:#c9cbd1;text-decoration:none}.sb .me .out{white-space:nowrap;margin-left:auto;font-size:12px;padding:6px 8px;border-radius:8px;border:1px solid #3a3a40}.sb .me .out:hover{background:var(--red);border-color:var(--red);color:#fff}
.av{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#f3dcdb;color:var(--red);font-weight:700;font-size:13px;flex:0 0 36px}
.av.d{background:#3a3a40;color:#fff}.av.c1{background:#e3edff;color:#09628e}.av.c2{background:#e2f5e9;color:#0a714e}.av.c3{background:#fff1d9;color:#9a6300}.av.c4{background:#efe5ff;color:#6b3fc7}
.mainw{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;gap:16px;padding:24px 32px 6px}
.topbar .pt{font-size:28px;font-weight:600;color:var(--black);margin:0;margin-right:auto;letter-spacing:-.2px}
.search{position:relative;width:300px;max-width:40vw}.search input{width:100%;padding:10px 14px 10px 38px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:#fff!important;font-size:13.5px}
.search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;stroke:#9aa0a8;fill:none;stroke-width:2}
.bell{position:relative;display:inline-flex;width:40px;height:40px;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:12px;text-decoration:none;color:var(--ink)}
.bell svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}.bell .badge{position:absolute;top:-5px;right:-5px}
.subnav{display:flex;flex-wrap:wrap;gap:4px;padding:8px 32px 0}
.subnav a{font-size:13px;color:#555b66;text-decoration:none;padding:7px 12px;border-radius:9px;background:transparent}
.subnav a:hover{background:#eceef2;color:var(--black)}.subnav a.on{background:#fff;color:var(--red);font-weight:600;box-shadow:var(--sh)}
.subnav .mod{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.8px;align-self:center;margin-right:6px;font-weight:700}
main{padding:18px 32px 24px;width:100%;max-width:1400px}
footer{color:var(--muted);font-size:11.5px;padding:10px 32px 22px;margin-top:auto}footer a{color:var(--muted)}
.badge{background:var(--red);color:#fff;border-radius:10px;padding:0 6px;font-size:11px;margin-left:3px;font-weight:600}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:18px;box-shadow:var(--sh)}
h1,h2,h3{color:var(--black);margin:.2em 0 .6em;font-weight:600}h1{font-size:22px}h2{font-size:16px}h3{font-size:15px}
.card>h2:first-child,.card>h3:first-child,.ct{font-size:16px;font-weight:600;color:var(--black);margin:0 0 14px}
.btn{display:inline-block;background:var(--red);color:#fff;border:0;border-radius:10px;padding:9px 16px;font:600 13.5px "Poppins","Nunito Sans","Segoe UI",Arial,sans-serif;cursor:pointer;text-decoration:none}
.btn:hover{background:var(--red-d)}.btn.alt{background:#fff;color:var(--red);border:1px solid var(--red)}.btn.alt:hover{background:#fbeeee}.btn.dark{background:var(--black)}.btn.sm{padding:5px 10px;font-size:12.5px}
table{width:100%;border-collapse:collapse;font-size:13.5px}th,td{padding:10px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
th{background:transparent;color:var(--muted);font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}tbody tr:hover td{background:#fafbfc}
.tw{overflow-x:auto}
input[type=text],input[type=password],input[type=number],input[type=date],input[type=email],input[type=search],input[type=file],select,textarea{width:100%;padding:9px 11px;border:1px solid #dde0e6;border-radius:10px;font:inherit;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(165,0,33,.25);border-color:var(--red)}
textarea{min-height:64px}label{font-weight:600;font-size:12.5px;display:block;margin:8px 0 4px;color:#3a3f48}
.pill{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11.5px;background:#eef0f3;color:#3a3f48;font-weight:600;white-space:nowrap}
.pill.ok{background:#e3f6ea;color:#0a714e}.pill.warn{background:#fff3db;color:#9a6300}.pill.bad{background:#fde6e5;color:#ca1915}.pill.red{background:var(--red);color:#fff}.pill.info{background:#e5eeff;color:#09628e}
.High{background:#e3f6ea;color:#0a714e}.Moderate{background:#fff3db;color:#9a6300}.Low{background:#fde6e5;color:#ca1915}
.flash{padding:11px 14px;border-radius:12px;margin-bottom:14px;font-size:13.5px}.flash.ok{background:#e3f6ea;color:#14532d}.flash.err{background:#fde6e5;color:#530014}
.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}
.grid4{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.grid4>div{min-width:0;overflow-wrap:anywhere}.grid4 .pill{white-space:normal;line-height:1.35}
.tl{list-style:none;padding:0;margin:0;border-left:3px solid #e4e6ea;margin-left:10px}.tl li{position:relative;padding:4px 0 12px 22px}.tl li:before{content:"";position:absolute;left:-9px;top:6px;width:14px;height:14px;border-radius:50%;background:#ccc;border:2px solid #fff}
.tl li.APPROVED:before{background:#0a714e}.tl li.CURRENT:before{background:var(--red);box-shadow:0 0 0 3px #fde6e5}.tl li.SKIPPED:before{background:#bbb}
.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 18px;box-shadow:var(--sh)}.stat .n{font-size:26px;font-weight:500;color:var(--black)}.stat .l{font-size:11.5px;color:var(--muted)}
.rate{display:flex;gap:4px;flex-wrap:wrap}.rate label{margin:0;font-weight:500}.rate input{position:absolute;opacity:0;width:1px}.rate span{display:inline-block;min-width:34px;height:34px;line-height:34px;text-align:center;border:1px solid #dde0e6;border-radius:9px;cursor:pointer;padding:0 4px;background:#fff}
.rate input:checked+span{background:var(--red);color:#fff;border-color:var(--red)}.rate input:focus+span{outline:2px solid #333}
.crit td:first-child{width:38%}.desc{font-size:12px;color:var(--muted)}
.steps{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 10px}.steps span{font-size:11.5px;padding:4px 8px;border-radius:8px;background:#eef0f3}.steps span.on{background:var(--red);color:#fff}.steps span.done{background:#e3f6ea;color:#0a714e}
.muted{color:var(--muted);font-size:12.5px}.demo{background:#fff3db;border:1px dashed #c99a00;padding:6px 10px;border-radius:10px;font-size:12px;display:inline-block}
.sim{background:#eef2ff;border:1px dashed #6366f1;color:#3730a3;padding:2px 7px;border-radius:6px;font-size:11.5px}
.bar{height:20px;background:var(--red);border-radius:6px;color:#fff;font-size:12px;padding-left:6px;line-height:20px;min-width:24px}
.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;align-items:end}
.tabs a{display:inline-block;padding:8px 14px;border-radius:10px;background:#eceef2;color:#333;text-decoration:none;margin-right:4px;font-size:13px}.tabs a.on{background:var(--red);color:#fff;font-weight:600}
details summary{cursor:pointer;font-weight:600}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.tile{display:block;background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;text-decoration:none;color:var(--ink);box-shadow:var(--sh)}.tile:hover{box-shadow:0 8px 24px rgba(16,24,40,.1)}.tile .t{font-size:26px;font-weight:600;color:var(--black)}.tile .s{color:var(--muted);font-size:13px;margin-top:4px}
/* dashboard */
.kpis~.dgrid td:nth-child(5){white-space:nowrap}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:16px;margin-bottom:18px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:var(--sh);text-decoration:none;color:var(--ink);display:flex;flex-direction:column;min-height:132px}
.kpi .l{font-size:12px;color:var(--muted);font-weight:600}.kpi .n{font-size:26px;font-weight:500;color:var(--black);margin-top:auto}.kpi .s{font-size:11.5px;color:var(--muted)}
.kpi .ic{width:34px;height:34px;border-radius:10px;background:#f6e6e5;color:var(--red);display:flex;align-items:center;justify-content:center;margin-bottom:10px}.kpi .ic svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}
.kpi.big{background:var(--red);border-color:var(--red);color:#fff}.kpi.big .l,.kpi.big .s{color:rgba(255,255,255,.82)}.kpi.big .n{font-size:40px;font-weight:400;color:#fff}.kpi.big .ic{background:rgba(255,255,255,.18);color:#fff}
.dgrid{display:grid;grid-template-columns:2fr 1fr;gap:18px}.dgrid .card{margin-bottom:0}
.chead{display:flex;align-items:center;margin-bottom:12px}.chead .ct{margin:0;margin-right:auto}.chead a{font-size:12.5px;text-decoration:none;font-weight:600}
.plist{list-style:none;margin:0;padding:0}.plist li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}.plist li:last-child{border:0}
.plist .nm{font-weight:600;font-size:13.5px;color:var(--black)}.plist .sub{font-size:11.5px;color:var(--muted)}.plist .rt{margin-left:auto;text-align:right}
.dl{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.dl:last-child{border:0}
.dl .dt{width:46px;text-align:center;border-radius:12px;background:#f6e6e5;color:var(--red);padding:6px 0;flex:0 0 46px}.dl .dt b{display:block;font-size:17px;font-weight:600;line-height:1.1}.dl .dt span{font-size:10.5px;text-transform:uppercase;font-weight:700}
.empty{text-align:center;color:var(--muted);padding:26px 10px;font-size:13px}
.cal{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center;font-size:12px;margin-bottom:8px}.cal .h{color:var(--muted);font-size:11px;font-weight:600;padding:4px 0}.cal .d{padding:6px 0;border-radius:8px}.cal .d.t{background:var(--black);color:#fff}.cal .d.m{position:relative;font-weight:700;color:var(--red)}.cal .d.m:after{content:"";position:absolute;left:50%;bottom:1px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--red)}
/* login */
.lg{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}
.lg .art{background:#fff;color:#172e32;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;text-align:center}
.lg .orbit{position:relative;width:clamp(260px,36vw,440px);aspect-ratio:1;flex:none}.lg .orbit img{position:absolute;background:none;border:0;box-shadow:none;border-radius:0;height:auto}.lg .orbit .main{width:40%;left:30%;top:50%;transform:translateY(-50%)}.lg .orbit .sub{width:24%;left:50%;top:50%;filter:drop-shadow(0 2px 4px rgba(0,0,0,.45));transform:translate(-50%,-50%) rotate(calc(var(--i)*45deg - 90deg)) translate(clamp(104px,14.4vw,176px)) rotate(calc(90deg - var(--i)*45deg))}.lg .art .tagline{font-size:14px;color:#5c6370;font-style:italic;margin-top:6px}.lg .art .corp{font-size:15px;color:#172e32;margin:18px 0 0;font-weight:600}
.lg .art h1{color:#172e32;font-size:32px;font-weight:600;margin:24px 0 4px}.lg .art p{color:#5c6370;margin:2px 0}
.lg .frm{display:flex;align-items:center;justify-content:center;padding:40px;background:#2c2c30}.lg .frm .card{width:100%;max-width:400px;padding:30px;background:#fff;border:1px solid #eceef2;box-shadow:0 12px 40px rgba(0,0,0,.35);color:var(--ink)}
@media(min-width:1280px){.kpis{grid-template-columns:1.15fr repeat(4,minmax(0,1fr)) minmax(240px,1.25fr)}}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}.kpis .big{grid-column:1/-1}.kpi.proby-pend{grid-column:1/-1}.dgrid{grid-template-columns:1fr}}
@media(max-width:860px){.app{flex-direction:column}.sb{position:static;width:100%;height:auto;flex:none;padding:12px}.sb nav{flex-direction:row;flex-wrap:wrap}.sb .logo{padding-bottom:10px}.topbar,.subnav,main,footer{padding-left:14px;padding-right:14px}.lg{grid-template-columns:1fr}.search{display:none}}
@media(max-width:640px){.crit td:first-child{width:auto}.crit,.crit tbody,.crit tr,.crit td{display:block;width:100%}.crit thead{display:none}}
@media print{.sb,.topbar,.subnav,footer,form,.noprint{display:none!important}body{background:#fff}.card{border:0;box-shadow:none}}



.xbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:-4px 0 12px;font-size:13px;color:#666}.xbar .btn{padding:5px 12px;font-size:13px}table.xonly{display:none}
/* Dropdown readability fix (Windows Chrome/Edge/Firefox): force light scheme + explicit option colors */
:root{color-scheme:light}
select{color-scheme:light;color:#172e32!important;background-color:#fff!important;-webkit-text-fill-color:#172e32}
select option,select optgroup{color:#172e32!important;background-color:#fff!important;-webkit-text-fill-color:#172e32}
select option:checked,select option:hover{color:#fff!important;background-color:#a50021!important;-webkit-text-fill-color:#fff}
select option:disabled{color:#8a8f99!important}
.fbtns{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap}.fbtns .btn{white-space:nowrap}
.btn.apply{background:var(--red);color:#fff;border-color:var(--red)}
.fbtns{display:inline-flex;gap:8px;align-items:flex-end;flex-wrap:wrap}.fbtns .btn{white-space:nowrap}
.btn.apply{background:var(--red);color:#fff;border-color:var(--red)}

.subnav .sngrp{display:inline-flex;gap:2px;background:#eceef2;border-radius:11px;padding:2px}.subnav .snsep{width:1px;background:#d5d8de;margin:4px 6px}
@media(max-width:600px){.subnav .snsep{display:none}.subnav .sngrp{width:100%}}
.sb nav a.on .badge{box-shadow:0 0 0 1.5px #fff}
.pill.due{background:#CA1915;color:#fff}
/* clickable summary cards (31 Oct 2026) */
a.kpilink{display:block;color:inherit;text-decoration:none;cursor:pointer;transition:box-shadow .15s,transform .15s}
a.kpilink:hover{box-shadow:0 4px 14px rgba(0,0,0,.12);transform:translateY(-1px)}
/* QA fix 2026-10-31: wide tables scroll inside their card on phones instead of spilling off-screen; long code samples wrap */
@media(max-width:860px){main table:not(.crit){display:block;overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}}
code{overflow-wrap:anywhere}
/* iPad/phone: collapsible sidebar with hamburger (Mark, 31 Oct 2026). Desktop >1100px unchanged. */
.hamb{display:none}.sbshade{display:none}
@media(max-width:1100px){
.app{display:block}
.sb{position:fixed;top:0;left:0;bottom:0;width:270px;height:100vh;height:100dvh;padding:22px 14px 16px;z-index:1000;transform:translateX(-105%);transition:transform .22s ease;box-shadow:none;overflow-y:auto}
.sb nav{flex-direction:column;flex-wrap:nowrap}.sb .logo{padding-bottom:22px}
body.sbopen .sb{transform:none;box-shadow:4px 0 24px rgba(0,0,0,.35)}
body.sbopen .sbshade{display:block;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:999}
body.sbopen{overflow:hidden}
.hamb{display:inline-flex;position:relative;flex:0 0 40px;width:40px;height:40px;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink);cursor:pointer;padding:0}
.hamb svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round}
.hamb .hdot{position:absolute;top:-3px;right:-3px;width:11px;height:11px;border-radius:50%;background:var(--red);box-shadow:0 0 0 2px #fff}
.topbar{gap:12px;padding-left:20px;padding-right:20px}.subnav,main,footer{padding-left:20px;padding-right:20px}
.topbar .pt{font-size:24px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.search{width:240px}
}
@media(max-width:700px){.topbar,.subnav,main,footer{padding-left:14px;padding-right:14px}.topbar .pt{font-size:20px}.search{display:none}}
@media print{.hamb,.sbshade{display:none!important}}
@media(max-width:420px){.topbar .pt{font-size:18px}}
/* grid cards never let a wide table spill into the next card: scroll inside the card instead (QA 31 Oct 2026) */
.grid2>*,.grid3>*,.grid4>*{min-width:0}.grid2>.card,.grid3>.card{overflow-x:auto}
@media(max-width:700px){.topbar .pt{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.2}}
/* filter buttons sit side by side in one grid cell (31 Oct 2026) */
.filters .fbtns{flex-wrap:nowrap}.filters .fbtns .btn{margin:0}

/* QA fixes (Mark, 4 Nov 2026) */
.filters .fbtns{flex-wrap:wrap}
.tscroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
.tscroll.more{box-shadow:inset -14px 0 12px -12px rgba(0,0,0,.28)}
@media(max-width:860px){.tscroll>table{display:table!important;overflow:visible!important}}
main table td a,.chead a,main .btn.sm,.form-inbox a,.inbox a{min-height:32px;display:inline-flex;align-items:center}
@media(pointer:coarse),(max-width:860px){main table td a,.chead a,main .btn.sm,main .card li a{min-height:40px}main .btn.sm{padding-left:12px;padding-right:12px}}
@media(max-width:860px){.subnav{flex-wrap:nowrap!important;overflow-x:auto;white-space:nowrap;scrollbar-width:none;-webkit-overflow-scrolling:touch}.subnav::-webkit-scrollbar{display:none}.subnav .sngrp{flex-wrap:nowrap!important;width:auto!important;flex:none}.subnav a,.subnav .sngrp>*{flex:none}
.tabs{flex-wrap:nowrap!important;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.tabs>*{flex:none}}
@media(max-width:640px){.steps{gap:3px}
table.stk,table.stk tbody,table.stk tr,table.stk td{display:block;width:auto}table.stk tr:first-child{display:none}table.stk tr{border:1px solid var(--line);border-radius:10px;padding:6px 10px;margin-bottom:8px}table.stk td{border:0;padding:3px 0}table.stk td[data-l]:not([data-l=""]):before{content:attr(data-l) ": ";font-weight:700;color:var(--muted)}}
.gen{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.gen label{width:100%;margin:0}
main table td a{min-width:32px;justify-content:center}
main .card a:not(.btn):not(.kpi):not(.tile){display:inline-block;padding:4px 0}main table td a:not(.btn){display:inline-flex}

/* Employee Database / Resigned list cards (Mark, 6 Nov 2026) */
.empcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin:0 0 18px}
.empcard{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px 18px;box-shadow:var(--sh);min-width:0}
.empcard-top{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:0 0 6px}
.empcard-id{font-size:12.5px;font-weight:600;color:var(--red);text-decoration:none}
a.empcard-id:hover{text-decoration:underline}
.empcard-name{font-size:16px;font-weight:600;color:var(--black);line-height:1.3;margin:0 0 6px;overflow-wrap:anywhere}
.empcard-name a{color:inherit;text-decoration:none}.empcard-name a:hover{color:var(--red)}
.empcard-meta{display:flex;flex-wrap:wrap;gap:0 8px;color:var(--muted);font-size:13px;line-height:1.45;margin:0 0 10px}
.empcard-meta span:not(:last-child):after{content:"·";margin-left:8px;color:#c5c9d0}
.empcard-badges{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.empcard-badges .pill{font-size:11.5px;font-weight:500;padding:3px 8px}
@media(max-width:860px){.empcards{grid-template-columns:1fr;gap:10px}.empcard{padding:14px 16px}}

a.empcard{display:block;color:inherit;text-decoration:none;transition:box-shadow .15s,border-color .15s}
a.empcard:hover{box-shadow:0 8px 24px rgba(16,24,40,.1);border-color:#d0d5dd}
.kv{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 18px}
.kv div{min-width:0}.kv b{display:block;font-size:11.5px;color:var(--muted);font-weight:600;margin:0 0 2px}

/* CDP dashboard KPI cards are links (Mark, 6 Nov 2026) */
a.stat{display:block;color:inherit;text-decoration:none;cursor:pointer;transition:box-shadow .15s,border-color .15s}
a.stat:hover{box-shadow:0 8px 24px rgba(16,24,40,.1);border-color:#d0d5dd}
a.stat:focus{outline:2px solid var(--red);outline-offset:2px}

/* login light-dark swap */
.lg .frm .card h2{color:var(--black);font-size:28px;font-weight:600;margin:0 0 4px}
.lg .frm .card .sub{margin:0 0 16px;color:var(--muted)}
.lg .frm .card .foot{margin-top:14px;color:var(--muted)}
.lg .frm .card .foot a{color:var(--red);text-decoration:underline}
.lg .frm .card label{color:#3a3f48}
.lg .frm .card .muted{color:var(--muted)}
.lg .frm .card input[type=text],.lg .frm .card input[type=password]{background:#fff;border:1px solid #dde0e6;color:var(--ink)}
.lg .frm .card input:focus{outline:2px solid rgba(165,0,33,.25);border-color:var(--red);background:#fff}
.lg .frm .card .act{margin-top:18px}
.lg .frm .card .act .btn{width:100%;padding:11px;font-size:14px}
.lg .frm .card .flash.ok{background:#e3f6ea;color:#14532d}
.lg .frm .card .flash.err{background:#fde6e5;color:#530014}
.lg .logo-wrap{width:clamp(240px,34vw,400px);margin:0 auto}
.lg .logo-wrap img{width:100%;max-width:100%;height:auto;display:block;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;image-rendering:auto}
/* end login light-dark */

/* Progress stepper (shared across modules) */
.progress-box{margin:14px 0 16px;padding:14px 16px 8px;background:#fafbfc;border:1px solid var(--line);border-radius:14px}
.progress-hd{font-size:12px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--muted);margin:0 0 12px}
.progress{list-style:none;margin:0;padding:0;display:flex;align-items:flex-start;gap:0;overflow-x:auto}
.progress-step{position:relative;flex:1 1 0;min-width:96px;padding:0 8px 12px;text-align:center}
.progress-rail{position:absolute;top:14px;left:0;right:0;height:3px;background:#e4e6ea;z-index:0}
.progress-step:first-child .progress-rail{left:50%}
.progress-step:last-child .progress-rail{right:50%}
.progress-step.done .progress-rail,.progress-step.current .progress-rail{background:#f3d2d1}
.progress-step.done .progress-rail{background:#cfe9d7}
.progress-dot{position:relative;z-index:1;width:28px;height:28px;margin:0 auto 8px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;background:#eef0f3;color:#6b7280;border:2px solid #e4e6ea}
.progress-step.done .progress-dot{background:#e3f6ea;color:#0a714e;border-color:#b7e0c4}
.progress-step.current .progress-dot{background:var(--red);color:#fff;border-color:var(--red);box-shadow:0 0 0 4px #fde6e5}
.progress-step.stopped .progress-dot{background:#fde6e5;color:#ca1915;border-color:#f0b4b0}
.progress-check{font-size:14px;line-height:1}
.progress-label{font-size:11.5px;line-height:1.3;color:#555b66;font-weight:600}
.progress-step.current .progress-label{color:var(--black)}
.progress-step.done .progress-label{color:#0a714e}
.progress-step.stopped .progress-label{color:#ca1915}
.progress-next{font-size:11px;color:var(--red);font-weight:600;margin-top:3px;line-height:1.25}
.progress-note{font-size:10.5px;color:#ca1915;margin-top:2px}
@media(max-width:860px){
  .progress{flex-direction:column;overflow:visible}
  .progress-step{display:flex;align-items:flex-start;gap:12px;text-align:left;min-width:0;padding:0 0 16px 0}
  .progress-rail{left:13px;right:auto;width:3px;top:0;bottom:0;height:auto}
  .progress-step:first-child .progress-rail{top:14px;left:13px;right:auto}
  .progress-step:last-child .progress-rail{bottom:auto;height:14px;left:13px}
  .progress-dot{margin:0;flex:0 0 28px}
  .progress-meta{padding-top:2px}
}


/* Pending / action / due / overdue metric cards (Mark, 10 Nov 2026; shade when count > 0, for every role, 12 Nov 2026). Neutral totals stay unshaded. */
.stat.pending, a.stat.pending, .metric.pending, a.metric.pending, .erk a.pending, a.kpi.pending, .kpi.pending {
  background:#fdecec;
  border-color:#f0b4b0;
}
.stat.pending .n, a.stat.pending .n, .metric.pending .n, a.metric.pending .n, .erk a.pending .n, a.kpi.pending .n, .kpi.pending .n, .kpi.pending .breakn b, .kpi.pending b {
  color:#b3261e;
}
.kpi .breakn{display:flex;gap:6px;margin-top:auto;align-items:stretch}
.kpi .breakn a{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;text-decoration:none;color:inherit;padding:4px 6px;border-radius:8px;line-height:1.15}
.kpi .breakn a:hover{background:rgba(179,38,30,.08)}
.kpi .breakn b{font-size:22px;font-weight:500;color:var(--black)}
.kpi .breakn small{font-size:11px;color:var(--muted);font-weight:600}
.kpi.pending .breakn small{color:#8a4540}
.kpi.proby-pend{min-width:220px}
.erk a.pending { border-color:#f0b4b0; }

/* Sidebar menu scrollbar (Mark, 11 Nov 2026): thin, no arrows, transparent track, thumb on hover */
.sb, .sb nav{
  scrollbar-width:thin;
  scrollbar-color:transparent transparent;
}
.sb:hover, .sb:focus-within, .sb nav:hover, .sb nav:focus-within{
  scrollbar-color:rgba(201,203,209,.4) transparent;
}
.sb::-webkit-scrollbar, .sb nav::-webkit-scrollbar{width:5px;height:5px}
.sb::-webkit-scrollbar-button, .sb nav::-webkit-scrollbar-button{display:none!important;width:0;height:0;background:transparent}
.sb::-webkit-scrollbar-track, .sb nav::-webkit-scrollbar-track{background:transparent}
.sb::-webkit-scrollbar-thumb, .sb nav::-webkit-scrollbar-thumb{background:transparent;border-radius:8px}
.sb:hover::-webkit-scrollbar-thumb, .sb:focus-within::-webkit-scrollbar-thumb,
.sb nav:hover::-webkit-scrollbar-thumb, .sb nav:focus-within::-webkit-scrollbar-thumb{background:rgba(201,203,209,.38)}
.sb::-webkit-scrollbar-thumb:hover, .sb nav::-webkit-scrollbar-thumb:hover{background:rgba(201,203,209,.55)}
.sb::-webkit-scrollbar-corner, .sb nav::-webkit-scrollbar-corner{background:transparent}

/* MHCS-20: form grid/flex children must shrink; native date/time widgets
   (iOS/WebKit/Chrome on iPad) have a large intrinsic min-width and overflow
   into the next column (e.g. File Leave From/To/Leave type). */
form, fieldset,
.tkf, .tkbar, .pcf, .pcbar, .frm, .filters, .filterbar, .gen,
.grid2, .grid3, .grid4, .kv {
  min-width: 0;
}
.tkf > *, .tkbar > *, .tkbar label, .pcf > *, .pcbar > *, .pcbar label,
.filters > *, .filters label, .filterbar > *, .filterbar label, .gen > *,
.grid2 > *, .grid3 > *, .grid4 > *,
form > *, fieldset > *,
div[style*="grid-template"] > *, div[style*="display:grid"] > *,
div[style*="display: grid"] > * {
  min-width: 0;
}

/* Text-like controls fill the cell and never exceed it. Checkbox/radio/button stay intrinsic. */
input[type=text], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=datetime-local],
input[type=month], input[type=week], input[type=email],
input[type=search], input[type=tel], input[type=url],
input[type=file], input:not([type]), select, textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

/* Date/time: drop WebKit's large intrinsic min-width so the control can shrink. */
input[type=date],
input[type=time],
input[type=datetime-local],
input[type=month],
input[type=week] {
  display: block;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
input[type=date]::-webkit-date-and-time-value,
input[type=time]::-webkit-date-and-time-value,
input[type=datetime-local]::-webkit-date-and-time-value,
input[type=month]::-webkit-date-and-time-value,
input[type=week]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}
input[type=date]::-webkit-datetime-edit,
input[type=time]::-webkit-datetime-edit,
input[type=datetime-local]::-webkit-datetime-edit,
input[type=month]::-webkit-datetime-edit,
input[type=week]::-webkit-datetime-edit,
input[type=date]::-webkit-datetime-edit-fields-wrapper,
input[type=time]::-webkit-datetime-edit-fields-wrapper,
input[type=datetime-local]::-webkit-datetime-edit-fields-wrapper,
input[type=month]::-webkit-datetime-edit-fields-wrapper,
input[type=week]::-webkit-datetime-edit-fields-wrapper {
  min-width: 0;
  max-width: 100%;
}

/* 3-col form rows drop to 2 at tablet (iPad landscape 1024 still uses the drawer
   breakpoint of 1100px; with the sidebar in view the form is ~750px). */
@media (max-width: 1100px) {
  .tkf, .pcf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filters {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  }
}
@media (max-width: 700px) {
  .tkf, .pcf, .grid3, .grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .tkbar, .pcbar, .gen, .filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .tkbar label, .pcbar label, .filters label, .gen label {
    width: 100%;
    max-width: 100%;
  }
}

/* auto-fit tracks may shrink below their preferred min so date inputs don't force overflow */
.tkf {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.filters {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
}
.filters > * { min-width: 0; }


/* ===== Makimura HR Brand Kit 2026 (Mark, 28 Nov 2026) ===== */
:root{--maroon:#530014;--ok:#0A714E;--ok-bg:#E3F3EC;--info:#09628E;--info-bg:#E3EEF4;--bad:#CA1915;--bad-bg:#FDE6E5;--warn:#FFDE59;--teal:#0097B2}
h1,h2,h3,.topbar .pt,.card>h2:first-child,.card>h3:first-child,.ct,.lg .frm .card h2{color:var(--maroon)}
.sb nav a:hover{background:#21404A}.sb .me{border-top-color:#2A474C}.sb .me .out{border-color:#3A575D}
.sb .navh{color:#9FB0B3}.sb .logo small,.sb .me .r{color:#A9B6B8}
.lg .frm{background:#172E32}
.btn.alt:hover{background:#FBECEE}
.pill.ok,.High{background:var(--ok-bg);color:var(--ok)}
.pill.warn,.Moderate{background:var(--warn);color:#172E32}
.pill.bad,.Low{background:var(--bad-bg);color:var(--bad)}
.pill.info{background:var(--info-bg);color:var(--info)}
.flash.ok,.lg .frm .card .flash.ok{background:var(--ok-bg);color:var(--ok)}
.flash.err,.lg .frm .card .flash.err{background:var(--bad-bg);color:var(--maroon)}
.progress-step.done .progress-rail{background:#CDE7DC}
.progress-step.done .progress-dot{background:var(--ok-bg);color:var(--ok);border-color:#A9D4C3}
.progress-step.current .progress-dot{box-shadow:0 0 0 4px #F8D5DC}

/* Tiles/cards frozen to pre-brandkit styling (Mark: no changes on tiles/cards) */
.stat,.kpi,.tile{color:#1f2430}
.stat .n,.kpi .n,.tile .t,.kpi .breakn b{color:#1c1c1e}
.stat .l,.kpi .l,.kpi .s,.tile .s,.kpi .breakn small{color:#8a8f98}
.kpi .ic{background:#f6e6e5;color:#aa2624}
.kpi.big{background:#aa2624;border-color:#aa2624;color:#fff}.kpi.big .n{color:#fff}.kpi.big .s{color:rgba(255,255,255,.82)}.kpi.big .ic{background:rgba(255,255,255,.18);color:#fff}
.kpi.pending .breakn small{color:#8a4540}
.stat h1,.stat h2,.stat h3,.kpi h1,.kpi h2,.kpi h3,.tile h1,.tile h2,.tile h3{color:#1c1c1e}

/* tile-freeze-v2: tiles/cards keep pre-brandkit font and red accents (Mark, 28 Nov 2026) */
.stat,.kpi,.tile,.erk a,.metric{font-family:"Nunito Sans","Segoe UI",Arial,sans-serif}
.erk a{color:#1f2430}
.erk a:hover,.erk a.on,.edb-kpis .kpi.on{border-color:#aa2624!important}
/* .paycard icon color moved to solid-tiles section below (Mark, 29 Nov 2026) */
.nd{border-top-color:#aa2624!important}

/* ===== Solid pastel tiles by function type (Mark, 29 Nov 2026) =====
   Pastel tints of page-1 Brand Kit 2026 colours, consistent across Payroll groups. No red family.
   Green #D4EDE2 schedules/shift codes (icon #0A714E); Teal #D2EEF3 attendance/DTR (icon #0097B2);
   Blue #D6E6F0 requests/leave/calendar (icon #09628E); Yellow #F8E495 pay/money (icon #172E32);
   Lavender #DADFF2 people/team roles (icon #00167A). Titles Ink #172E32, descriptions Axis Grey #545454.
   Mapping in payroll/index.html (class pc-*). KPI/stat/metric cards unchanged. */
.paycard{background:#F8E495;border:1px solid #E2CE7E;color:#172E32}
.paycard:hover,.paycard:active{background:#E4D189;border-color:#D0BE76;box-shadow:0 8px 24px rgba(23,46,50,.12);color:#172E32}
.paycard:focus-visible{outline:2px solid #00167A;outline-offset:3px}
.paycard .ic{background:#172E32;color:#fff!important}
.paycard .t{color:#172E32}
.paycard .s{color:#545454}
.paycard .pill,.paycard .pill.red{background:#FFDE59;color:#172E32}

/* Pastel function-type colours, no red family (Mark, 29 Nov 2026).
   Green #D4EDE2 (Gov Green tint) = schedules/shift codes, icon #0A714E;
   Teal #D2EEF3 (OT Teal tint) = attendance/biometrics/DTR, icon #0097B2;
   Blue #D6E6F0 (Benefits Blue tint) = requests/leave/calendar, icon #09628E;
   Yellow #F8E495 (Icon Yellow) = pay/money, icon #172E32 (white on yellow fails AA);
   Lavender #DADFF2 (Deep Navy tint) = people/team roles, icon #00167A.
   Titles Ink #172E32, descriptions Axis Grey #545454. Badges: Yellow+Ink on cool pastels, Ink+white on yellow tiles. */
.paycard.pc-green{background:#D4EDE2;border-color:#B8D9C8;color:#172E32}
.paycard.pc-green:hover,.paycard.pc-green:active{background:#C3DACF;border-color:#A7CABB;box-shadow:0 8px 24px rgba(10,113,78,.16);color:#172E32}
.paycard.pc-green .ic{background:#0A714E;color:#fff!important}
.paycard.pc-teal{background:#D2EEF3;border-color:#B5D5DC;color:#172E32}
.paycard.pc-teal:hover,.paycard.pc-teal:active{background:#C1DADF;border-color:#A6C8CE;box-shadow:0 8px 24px rgba(0,151,178,.16);color:#172E32}
.paycard.pc-teal .ic{background:#0097B2;color:#fff!important}
.paycard.pc-blue{background:#D6E6F0;border-color:#B9CBD6;color:#172E32}
.paycard.pc-blue:hover,.paycard.pc-blue:active{background:#C4D3DC;border-color:#A9BEC9;box-shadow:0 8px 24px rgba(9,98,142,.16);color:#172E32}
.paycard.pc-blue .ic{background:#09628E;color:#fff!important}
.paycard.pc-yellow{background:#F8E495;border-color:#E2CE7E;color:#172E32}
.paycard.pc-yellow:hover,.paycard.pc-yellow:active{background:#E4D189;border-color:#D0BE76;box-shadow:0 8px 24px rgba(23,46,50,.12);color:#172E32}
.paycard.pc-yellow .ic{background:#172E32;color:#fff!important}
.paycard.pc-lavender{background:#DADFF2;border-color:#C0C6DC;color:#172E32}
.paycard.pc-lavender:hover,.paycard.pc-lavender:active{background:#C8CDDE;border-color:#B3B8CB;box-shadow:0 8px 24px rgba(0,22,122,.16);color:#172E32}
.paycard.pc-lavender .ic{background:#00167A;color:#fff!important}
.paycard .t{color:#172E32}
.paycard .s{color:#545454}
.paycard.pc-green .t,.paycard.pc-teal .t,.paycard.pc-blue .t,.paycard.pc-yellow .t,.paycard.pc-lavender .t{color:#172E32}
.paycard.pc-green .s,.paycard.pc-teal .s,.paycard.pc-blue .s,.paycard.pc-yellow .s,.paycard.pc-lavender .s{color:#545454}
.paycard.pc-yellow .pill,.paycard.pc-yellow .pill.red{background:#172E32;color:#fff}
.paycard:focus-visible{outline:2px solid #00167A;outline-offset:3px}

/* Home — Needs Your Action + employee important info (1 Dec 2026) */
.nya{border-left:5px solid #8C0F14;margin-bottom:18px}
.nya .nya-count{margin-left:auto;display:inline-block;background:#8C0F14;color:#fff;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:600;letter-spacing:.2px}
.nya-ok{padding:28px 10px;font-weight:500}
.nya-mod{margin-top:4px;padding-top:12px;border-top:1px solid var(--line)}
.nya-mod:first-of-type{border-top:0;padding-top:0}
.nya-modh{display:flex;align-items:baseline;gap:10px;margin-bottom:4px}
.nya-modh h3{margin:0;font-size:14px;font-weight:600;color:#172E32}
.nya-modh .muted{font-size:12px}
.nya-modh .nya-all{margin-left:auto;font-size:12.5px;font-weight:600;text-decoration:none;color:#8C0F14}
.nya-list{list-style:none;margin:0;padding:0}
.nya-list li{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.nya-list li:last-child{border-bottom:0}
.nya-list li.urg{background:#fdecea;margin:0 -12px;padding:9px 12px;border-radius:10px;border-bottom:0}
.nya-txt{min-width:0;flex:1}
.nya-txt .nm{font-weight:600;font-size:13.5px;color:#172E32}
.nya-txt .sub{font-size:12px;color:var(--muted);margin-top:1px}
.nya-more{margin:6px 0 0;font-size:12.5px}
.nya-more a{font-weight:600;text-decoration:none}
.kpis.info3{grid-template-columns:repeat(3,minmax(0,1fr))}
.kpis.info3 .kpi .n{margin-top:8px}
.leave-bal{font-size:15px;font-weight:500;line-height:1.45}
.leave-bal b{font-size:20px;font-weight:600;color:var(--black)}
.leave-bal small{color:var(--muted);font-weight:500}
.dgrid.home-bottom.cal-only{grid-template-columns:minmax(260px,420px)}
@media(max-width:1100px){
  .kpis.info3{grid-template-columns:1fr}
  .dgrid.home-bottom.cal-only{grid-template-columns:1fr}
}
/* ===== Tech UI 2026 (demo visual refresh, 1 Dec 2026) =====
   Looks only: typography, color, borders, shadows, radii, spacing polish, hover/focus.
   No layout-structure, wording, or component changes. Pastel payroll tiles and
   .pill.due (#CA1915 / #fff) are preserved. Original Poppins / Nunito Sans fonts are retained. */

:root{
  --red:#9E1217;
  --red-d:#6E0C10;
  --crimson:#9E1217;
  --crimson-bright:#B5161C;
  --black:#0F2024;
  --side:#0E1F23;
  --ink:#172E32;
  --bg:#F4F6F9;
  --line:rgba(15,32,36,.08);
  --soft:#F8FAFC;
  --muted:#545454;
  --sh:0 1px 2px rgba(15,32,36,.05),0 6px 16px rgba(15,32,36,.05);
  --focus:0 0 0 3px rgba(168,18,24,.12);
}

html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body{
  background-color:var(--bg);
  background-image:radial-gradient(1200px 420px at 50% -80px,rgba(255,255,255,.9),transparent 62%);
  background-attachment:fixed;
  color:var(--ink);
  font-variant-numeric:tabular-nums;
}
@media print{
  body{background:#fff!important;background-image:none!important}
}

/* Typography: tight tracking on titles & KPI numbers */
.topbar .pt,h1,.lg .frm .card h2,.lg .art h1{letter-spacing:-.02em}
.kpi .n,.stat .n,.tile .t,.kpi .breakn b,.leave-bal b,.kpi.big .n{letter-spacing:-.02em;font-variant-numeric:tabular-nums}
table,th,td,.pill,.badge,.nya-count,.cal,.dl .dt,footer,.muted{font-variant-numeric:tabular-nums}

/* Canvas & surfaces */
.card,.stat,.kpi,.tile,.empcard,.progress-box{
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--sh);
}
.card{background:#fff}
a.kpi,a.stat,a.tile,a.empcard,a.kpilink,a.metric,.paycard{
  transition:box-shadow .15s ease,border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease;
}
a.kpi:hover,a.stat:hover,a.tile:hover,a.empcard:hover,a.kpilink:hover,a.metric:hover{
  box-shadow:0 8px 24px rgba(15,32,36,.10);
  transform:translateY(-2px);
  border-color:rgba(15,32,36,.12);
}

/* Sidebar — dark ink tech nav */
.sb{
  background:linear-gradient(180deg,#0E1F23 0%,#142B30 100%);
  border-right:1px solid rgba(255,255,255,.06);
  color:#C5D0D3;
}
.sb .logo{color:#fff}
.sb .logo img{box-shadow:0 0 0 1px rgba(255,255,255,.08),0 2px 8px rgba(0,0,0,.25)}
.sb .logo b{letter-spacing:-.01em}
.sb .logo small,.sb .me .r{color:#9FB0B3}
.sb .navh{color:#8AA0A4;letter-spacing:.08em}
.sb nav a{color:#C5D0D3;border-radius:10px;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
.sb nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.sb nav a.on{
  background:#1A3338;
  color:#fff;
  font-weight:600;
  box-shadow:inset 3px 0 0 #B5161C,0 0 0 1px rgba(181,22,28,.28),0 8px 18px rgba(158,18,23,.16);
}
.sb nav a.on .badge{box-shadow:0 0 0 1.5px #1A3338}
.sb .me{
  border-top:0;
  margin-top:12px;
  padding:10px 8px;
  border-radius:12px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
}
.sb .me .out{border-color:rgba(255,255,255,.14);border-radius:8px;transition:background .15s,border-color .15s,color .15s}
.sb .me .out:hover{background:var(--crimson);border-color:var(--crimson);color:#fff}

/* Topbar & controls */
.search input{
  border-radius:12px!important;
  border:1px solid var(--line)!important;
  background:#fff!important;
  transition:box-shadow .15s ease,border-color .15s ease;
}
.search input:focus{
  outline:none!important;
  border-color:rgba(158,18,23,.4)!important;
  box-shadow:var(--focus)!important;
}
.bell,.hamb{
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  box-shadow:0 1px 2px rgba(15,32,36,.04);
  transition:box-shadow .15s ease,border-color .15s ease,transform .15s ease;
}
.bell:hover,.hamb:hover{border-color:rgba(15,32,36,.14);box-shadow:0 4px 12px rgba(15,32,36,.08)}
.badge{font-variant-numeric:tabular-nums}

/* Pill tab bars / segmented controls */
.tabs{display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px;background:#E8ECF1;border-radius:12px;padding:3px}
.tabs a{background:transparent;color:#334155;border-radius:9px;margin-right:0;transition:background .15s,color .15s,box-shadow .15s}
.tabs a:hover{background:rgba(255,255,255,.6);color:var(--black)}
.tabs a.on{background:#fff;color:var(--crimson);font-weight:600;box-shadow:0 1px 2px rgba(15,32,36,.08),0 1px 3px rgba(15,32,36,.05)}
.subnav a{border-radius:9px;transition:background .15s,color .15s,box-shadow .15s}
.subnav a:hover{background:#E8ECF1;color:var(--black)}
.subnav a.on{background:#fff;color:var(--crimson);font-weight:600;box-shadow:0 1px 2px rgba(15,32,36,.08),0 0 0 1px var(--line)}
.subnav .sngrp{background:#E8ECF1;border-radius:11px;padding:3px;gap:2px}
.steps span{border-radius:8px}
.steps span.on{background:var(--crimson);color:#fff}

/* Buttons */
.btn{
  font-family:inherit;
  background:linear-gradient(180deg,#B5161C 0%,#9E1217 100%);
  color:#fff;
  border:1px solid transparent;
  border-radius:10px;
  box-shadow:0 1px 2px rgba(15,32,36,.18),inset 0 1px 0 rgba(255,255,255,.16);
  transition:background .15s ease,box-shadow .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;
}
.btn:hover{background:linear-gradient(180deg,#9E1217 0%,#7A0E12 100%);box-shadow:0 2px 8px rgba(158,18,23,.28),inset 0 1px 0 rgba(255,255,255,.1)}
.btn.alt{
  background:#fff;
  color:var(--crimson);
  border:1px solid rgba(158,18,23,.35);
  box-shadow:none;
}
.btn.alt:hover{background:#FBECEE;border-color:var(--crimson);color:var(--crimson)}
.btn.dark{background:var(--black);background-image:none;box-shadow:none;border-color:var(--black);color:#fff}
.btn.dark:hover{background:#172E32}
.btn.apply{background:linear-gradient(180deg,#B5161C 0%,#9E1217 100%);color:#fff;border-color:transparent}

/* KPI cards */
.kpi,.stat{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}
.kpi .n,.stat .n,.kpi .breakn b{font-weight:650;color:var(--black)}
.kpi .ic{
  background:#F3E8E8;
  color:var(--crimson);
  border-radius:10px;
  box-shadow:inset 0 0 0 1px rgba(158,18,23,.08);
}
.kpi.big{
  background:linear-gradient(180deg,#B5161C 0%,#9E1217 100%);
  border-color:#9E1217;
  color:#fff;
}
.kpi.big .n{color:#fff;font-weight:650}
.kpi.big .l,.kpi.big .s{color:rgba(255,255,255,.86)}
.kpi.big .ic{background:rgba(255,255,255,.18);color:#fff;box-shadow:none}
.kpi.pending .ic{background:rgba(179,38,30,.12);color:#b3261e}

/* Data tables */
th{
  background:#F8FAFC;
  color:#64748B;
  font-size:11px;
  font-weight:650;
  letter-spacing:.06em;
  text-transform:uppercase;
  border-bottom:1px solid rgba(15,32,36,.08);
}
td{border-bottom:1px solid rgba(15,32,36,.07)}
tbody tr:hover td{background:#F8FAFC}

/* Status pills — soft tint + hairline; due stays brand danger red */
.pill{border:1px solid rgba(15,32,36,.08);font-variant-numeric:tabular-nums}
.pill.ok,.High{background:var(--ok-bg);color:var(--ok);border-color:rgba(10,113,78,.18)}
.pill.warn,.Moderate{background:var(--warn);color:#172E32;border-color:rgba(23,46,50,.12)}
.pill.bad,.Low{background:var(--bad-bg);color:var(--bad);border-color:rgba(202,25,21,.18)}
.pill.info{background:var(--info-bg);color:var(--info);border-color:rgba(9,98,142,.18)}
.pill.red{background:var(--crimson);color:#fff;border-color:var(--crimson)}
.pill.due{background:#CA1915;color:#fff;border-color:#CA1915}

/* Forms & inputs */
input[type=text],input[type=password],input[type=number],input[type=date],input[type=email],input[type=search],input[type=file],input[type=time],input[type=datetime-local],input[type=month],input[type=week],select,textarea{
  border:1px solid #D8DEE6;
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  transition:box-shadow .15s ease,border-color .15s ease;
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:rgba(158,18,23,.4);
  box-shadow:var(--focus);
}
.filters input,.filters select,.filters .btn,
.tkbar input,.tkbar select,.tkbar .btn,
.pcbar input,.pcbar select,.pcbar .btn,
.gen input,.gen select,.gen .btn,
.fbtns .btn,
.demo-switch select{
  min-height:38px;
}
select option:checked,select option:hover{background-color:#9E1217!important}

/* Login */
.lg .art{
  background:
    radial-gradient(900px 480px at 50% 0%,rgba(181,22,28,.07),transparent 55%),
    #F4F6F9;
  color:#172E32;
}
.lg .frm{background:linear-gradient(180deg,#0E1F23 0%,#142B30 100%)}
.lg .frm .card{
  border-radius:14px;
  border:1px solid rgba(15,32,36,.08);
  box-shadow:0 18px 48px rgba(0,0,0,.38);
}
.lg .frm .card h2{color:var(--maroon);letter-spacing:-.02em}
.lg .frm .card input:focus{outline:none;border-color:rgba(158,18,23,.4);box-shadow:var(--focus);background:#fff}

/* Payroll pastel tiles — keep approved pc-* colours; refine chrome only */
body .paycard{
  border-radius:14px;
  transition:box-shadow .15s ease,border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease!important;
}
body .paycard:hover,body .paycard:active{transform:translateY(-2px)}
body .paycard .ic{
  border-radius:10px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18),0 1px 2px rgba(15,32,36,.18);
}

/* Misc polish */
.nya{border-left-color:var(--crimson)}
.nya .nya-count{background:var(--crimson);font-variant-numeric:tabular-nums}
.nya-modh .nya-all{color:var(--crimson)}
.dl .dt{background:#F3E8E8;color:var(--crimson);border-radius:12px}
.erk a:hover,.erk a.on,.edb-kpis .kpi.on{border-color:var(--crimson)!important}
.nd{border-top-color:var(--crimson)!important}
.xbar .btn{min-height:32px}
.flash{border-radius:12px;border:1px solid transparent}
.flash.ok{border-color:rgba(10,113,78,.16)}
.flash.err{border-color:rgba(202,25,21,.16)}
.demo-banner{letter-spacing:.04em;box-shadow:0 2px 10px rgba(0,0,0,.2)}

/* Keep the ink nav fully on-screen below the sticky demo banner (viewport 1440x900). */
body:has(.demo-banner) .sb{height:calc(100vh - 3.6em);height:calc(100dvh - 3.6em)}
@media(max-width:1100px){
  body:has(.demo-banner) .sb{height:100vh;height:100dvh}
}
.sb .me{flex-shrink:0}
.sb .me .r{white-space:normal;line-height:1.25}
