/* Executive theme: navy, white cards, soft blue-grey canvas, gold accent. */
:root{
  --navy:#0f2557; --navy-2:#1b3a7a; --ink:#0f1b33; --muted:#64748b; --line:#e6ebf3; --line-2:#eef2f8;
  --bg:#f3f6fb; --card:#ffffff; --soft:#eef3fb; --gold:#c8a24a;
  --ok:#15803d; --ok-soft:#e7f6ec; --warn:#b45309; --warn-soft:#fdf3e2; --bad:#c62828; --bad-soft:#fdecec;
  --font:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
a{color:var(--navy-2)}
h1,h2{margin:0;letter-spacing:-.015em;color:var(--navy);font-weight:800}
h1{font-size:clamp(26px,3.2vw,38px);line-height:1.1}
h2{font-size:clamp(18px,1.6vw,21px)}
p{margin:6px 0 0}
.muted{color:var(--muted)}
.eyebrow{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:800;margin-bottom:6px}

/* sidebar */
.side{position:fixed;inset:0 auto 0 0;width:264px;background:#ffffff;border-right:1px solid var(--line);padding:20px 14px;display:flex;flex-direction:column;z-index:40;overflow-y:auto}
.brand{display:flex;align-items:center;gap:12px;padding:4px 8px 18px;border-bottom:1px solid var(--line);margin-bottom:8px}
.brand b{display:block;font-size:16px;font-weight:800;color:var(--navy);line-height:1.2}
.brand small{color:var(--muted);font-size:12.5px}
.mark{width:44px;height:44px;border-radius:13px;background:var(--navy);color:#ffffff;display:grid;place-items:center;font-weight:800;font-size:16px;box-shadow:inset 0 -3px 0 var(--gold);flex:none}
.side-group{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#94a3b8;font-weight:800;padding:16px 12px 6px}
.side-link{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;color:#1e293b;text-decoration:none;font-size:14.5px;font-weight:500;margin:1px 0}
.side-link svg{width:19px;height:19px;color:#64748b;flex:none}
.side-link:hover{background:var(--soft)}
.side-link.on{background:#e8eefa;color:var(--navy);font-weight:700;box-shadow:inset 0 0 0 1px #d7e1f3}
.side-link.on svg{color:var(--navy)}
.side-foot{margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
.side-scrim{display:none}
.shell{margin-left:264px;min-height:100vh}

/* top bar */
.topbar{display:flex;align-items:center;gap:14px;padding:14px 28px;background:#ffffff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
.burger{width:44px;height:44px;border-radius:12px;border:0;background:var(--soft);color:var(--navy);display:grid;place-items:center;cursor:pointer;padding:0}
.burger svg{width:22px;height:22px}
.crumbs{font-size:15px;color:var(--muted);display:flex;gap:10px;align-items:center;white-space:nowrap;overflow:hidden}
.crumbs i{font-style:normal;color:#cbd5e1}
.crumbs b{color:var(--navy);font-weight:700}
.top-right{margin-left:auto;display:flex;align-items:center;gap:16px}
.pill-live{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;color:var(--navy);border:1px solid var(--line);border-radius:999px;padding:7px 14px;background:#ffffff;white-space:nowrap}
.pill-live i{width:8px;height:8px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 3px #dcfce7}
.pill-live.off i{background:#d92d20;box-shadow:0 0 0 3px #fee4e2}
.who{display:flex;align-items:center;gap:10px;padding-left:16px;border-left:1px solid var(--line)}
.av{width:42px;height:42px;border-radius:12px;background:#e8eefa;color:var(--navy);display:grid;place-items:center;font-weight:800;font-size:14px}
.wn{display:flex;flex-direction:column;line-height:1.2}
.wn b{font-size:14.5px}
.wn small{font-size:12.5px;color:var(--muted)}

/* page */
.page{max-width:1500px;margin:0 auto;padding:30px clamp(16px,2.6vw,40px) 64px;display:flex;flex-direction:column;gap:22px}
.head.split{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap}
.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:22px 24px;box-shadow:0 1px 2px rgba(15,37,87,.04),0 8px 24px -18px rgba(15,37,87,.18)}
.card.flush{padding:0;overflow:auto}
.card-h{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid var(--line);flex-wrap:wrap}

/* hero banner */
.hero{background:linear-gradient(135deg,var(--navy) 0%,var(--navy-2) 100%);color:#ffffff;border-radius:22px;padding:32px 36px;display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:center;box-shadow:0 18px 40px -24px rgba(15,37,87,.6);position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;right:-80px;top:-80px;width:260px;height:260px;border-radius:50%;border:44px solid rgba(255,255,255,.05)}
.hero .eyebrow{color:#e7c873}
.hero .big{font-size:clamp(44px,6vw,68px);font-weight:800;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.hero .big small{font-size:clamp(16px,1.6vw,20px);font-weight:600;letter-spacing:0;color:#d6e0f5}
.hero .sub{color:#d6e0f5;margin-top:10px}
.hero-side{position:relative;z-index:1}
.hero-side .row{justify-content:flex-end}
.hero input{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.25);color:#ffffff;color-scheme:dark}
.hbar{height:12px;border-radius:999px;background:rgba(255,255,255,.14);overflow:hidden;display:flex;margin-top:18px}
.hbar span{height:100%}
.hbar .a,.hleg i.a{background:linear-gradient(90deg,#e7c873,var(--gold))}
.hbar .p,.hleg i.p{background:rgba(231,200,115,.45)}
.hleg{display:flex;gap:18px;flex-wrap:wrap;margin-top:10px;font-size:13px;color:#d6e0f5}
.hleg i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}

/* stat cards */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.kpis.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.kpi{background:#ffffff;border:1px solid var(--line);border-radius:18px;padding:22px 24px;box-shadow:0 1px 2px rgba(15,37,87,.04);text-decoration:none;color:inherit;display:block}
.kpi.link:hover{border-color:#cdd9ef;background:#fafcff}
.kpi .label{font-size:15px;font-weight:600;color:#334155}
.kpi .v{font-size:clamp(24px,2.4vw,34px);font-weight:800;margin-top:8px;line-height:1.1;color:var(--navy);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.kpi .v.warnc{color:var(--warn)}
.kpi .s{font-size:13.5px;color:var(--muted);margin-top:8px}

.chip{display:inline-block;font-size:12px;font-weight:700;border-radius:999px;padding:2px 10px;white-space:nowrap}
.chip.ok{background:var(--ok-soft);color:var(--ok)} .chip.bad{background:var(--bad-soft);color:var(--bad)} .chip.warn{background:var(--warn-soft);color:var(--warn)}
.bad{color:var(--bad)}

/* tables */
table{border-collapse:collapse;width:100%;font-size:14.5px}
th{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:800;text-align:left;padding:12px 16px;background:#f8fafd;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:11px 16px;border-bottom:1px solid var(--line-2);white-space:nowrap;vertical-align:middle}
tr:last-child td{border-bottom:0}
tbody tr:hover td{background:#fafcff}
td.num{font-variant-numeric:tabular-nums;text-align:right} th + th.d,td.d{text-align:center}
table.sheet th.d,table.sheet td.d{padding:9px 0;min-width:26px;text-align:center;border-left:1px solid var(--line-2)}
table.sheet td.P{background:#e8eefa;color:var(--navy);font-weight:800;font-size:12.5px}
table.sheet th:nth-last-child(-n+3),table.sheet td:nth-last-child(-n+3){text-align:right;border-left:1px solid var(--line)}
tr.total td{background:#f8fafd;font-weight:800;color:var(--navy);border-top:2px solid var(--gold)}

/* forms */
input,select{font:inherit;padding:9px 12px;border:1px solid #d5ddea;border-radius:10px;background:#ffffff;color:var(--ink);min-height:40px}
input:focus,select:focus{outline:2px solid #c9d6f2;border-color:var(--navy-2)}
label{display:block;font-size:12.5px;font-weight:700;color:#475569}
label input,label select{display:block;margin-top:4px}
.btn{font:inherit;font-weight:700;background:var(--navy);color:#ffffff;border:1px solid var(--navy);border-radius:10px;padding:9px 16px;min-height:40px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}
.btn:hover{background:var(--navy-2)}
.btn.ghost{background:#ffffff;color:var(--navy);border-color:#d5ddea}
.btn.ghost:hover{background:var(--soft)}
.btn.gold{background:var(--gold);border-color:var(--gold);color:#1c1503}
.btn.wide{width:100%;justify-content:center;margin-top:14px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
td form{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
td form input{min-height:36px;padding:6px 10px}
td form .btn{min-height:36px;padding:6px 12px}

/* login */
body.bare .page{padding-top:12vh}
.login{max-width:400px;width:100%;margin:0 auto}
.login-title{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.login-title .eyebrow{margin:0}
.login label input{width:100%}

@media (min-width:1000px){.burger{display:none}}
@media (max-width:1100px){.kpis,.kpis.three{grid-template-columns:1fr 1fr}}
@media (max-width:999px){
  .shell{margin-left:0}
  .side{transform:translateX(-100%);transition:transform .2s ease;box-shadow:0 10px 40px rgba(15,37,87,.18)}
  body.nav-open .side{transform:none}
  body.nav-open .side-scrim{display:block;position:fixed;inset:0;background:rgba(15,27,51,.35);z-index:39}
  .topbar{padding:10px 14px}
  .pill-live,.wn{display:none}
  .hero{grid-template-columns:1fr;padding:24px}
  .hero-side .row{justify-content:flex-start}
}
@media (max-width:520px){.kpis.three{grid-template-columns:1fr}.crumbs span,.crumbs i{display:none}}

/* compact month grid and one-line register rows */
table.sheet th,table.sheet td{padding:9px 10px}
td form{flex-wrap:nowrap}
td form input[name=name]{width:190px} td form input[name=trade]{width:120px} td form input[name=contractor]{width:160px}
td form input[name=site_name]{width:260px}
td form label{display:flex;align-items:center;gap:5px;white-space:nowrap}
td form label input{margin:0;min-height:0}

th.r{text-align:right}
.row.end{justify-content:flex-end;flex-wrap:nowrap}
.btn.sm{min-height:34px;padding:5px 12px;font-size:13.5px}
.hero .big{white-space:nowrap}

.kpis.two{grid-template-columns:1fr 1fr;align-items:stretch}
@media (max-width:900px){.kpis.two{grid-template-columns:1fr}}
.flash{padding:12px 16px;border-radius:12px;font-weight:500;border:1px solid}
.flash.ok{background:var(--ok-soft);color:#14532d;border-color:#c9ebd4}
.flash.bad{background:var(--bad-soft);color:#7f1d1d;border-color:#f5c6c6}
.chip.navy{background:#e8eefa;color:var(--navy);font-size:13px;padding:4px 12px;margin:0 4px 6px 0}
.notes{margin:10px 0 0;padding-left:20px;color:#334155} .notes li{margin:4px 0}
input[type=file]{padding:7px;max-width:100%}
td form input[name=cnic]{width:170px}

.syncbar{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.syncbar > div{flex:1;min-width:260px}

/* site labor cards */
.cardpages{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}
table.cardgrid th{text-align:center;padding:10px 6px;line-height:1.25}
table.cardgrid th small{display:block;font-size:13px;letter-spacing:0;text-transform:none;color:var(--navy);font-weight:700;margin-top:2px}
table.cardgrid td{padding:5px 6px;text-align:center;border-left:1px solid var(--line-2)}
table.cardgrid td:first-child{border-left:0}
table.cardgrid input[type=number]{width:100%;min-width:60px;max-width:120px;min-height:36px;padding:5px 8px;text-align:center;font-variant-numeric:tabular-nums;font-weight:600}
table.cardgrid td.dno{font-weight:800;color:var(--navy);width:56px;background:#f8fafd}
table.cardgrid tr.off{display:none}
.pbox{display:inline-block;margin:0;cursor:pointer}
.pbox input{position:absolute;opacity:0;pointer-events:none}
.pbox span{display:grid;place-items:center;width:40px;height:36px;border-radius:9px;border:1px solid #d5ddea;color:#cbd5e1;font-weight:800;background:#ffffff;user-select:none}
.pbox input:checked + span{background:var(--navy);border-color:var(--navy);color:#ffffff}
.totals{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px;position:sticky;bottom:10px;z-index:5;box-shadow:0 10px 30px -12px rgba(15,37,87,.35)}
.totals .label{font-size:13px;font-weight:600;color:#334155}.totals .label small{color:var(--muted)}
.totals .v{font-size:clamp(18px,2vw,26px);font-weight:800;color:var(--navy);font-variant-numeric:tabular-nums;margin-top:4px}
.totals .net{border-left:2px solid var(--gold);padding-left:16px}
.hero select{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.25);color:#ffffff;color-scheme:dark}
@media (max-width:900px){.cardpages{grid-template-columns:1fr}.cardpages .pg1{order:1}.cardpages .pg2{order:2}.totals{grid-template-columns:repeat(3,minmax(0,1fr))}.totals .net{border-left:0;padding-left:0}}

/* QR card scanning */
.flash.warnf{background:var(--warn-soft);color:#7c2d12;border-color:#f3d9a8}
table.cardgrid td.unsure{background:#fdf3e2;box-shadow:inset 0 0 0 2px #f59e0b}

/* three-letter brand mark */
.mark{font-size:13.5px;letter-spacing:.02em}
.login-title .mark{font-size:15px}
.meter{height:8px;background:#edf1f7;border-radius:999px;overflow:hidden;display:flex;min-width:60px}
.meter span{display:block;height:100%}
.meter .a{background:var(--navy-2)}

/* live camera scanning */
.camwrap{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:18px;align-items:start}
.camview{position:relative;background:#0b1220;border-radius:18px;overflow:hidden;min-height:220px}
.camview video{display:block;width:100%;height:auto}
.camview canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.camhint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);background:rgba(15,27,51,.82);color:#ffffff;font-weight:700;padding:8px 16px;border-radius:999px;font-size:14.5px;white-space:nowrap;max-width:92%;overflow:hidden;text-overflow:ellipsis}
.camnums{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}
.camnums div{background:var(--soft);border-radius:12px;padding:10px 12px}
.camnums span{display:block;font-size:12px;color:var(--muted);font-weight:700}
.camnums b{font-size:20px;color:var(--navy);font-variant-numeric:tabular-nums}
@media (max-width:900px){.camwrap{grid-template-columns:1fr}}
[hidden]{display:none!important}

/* ---------- phone attendance: supervisor screen ---------- */
body.supb{background:var(--bg);min-height:100vh}
body.noscroll{overflow:hidden}
.sup-top{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;background:var(--navy);color:#ffffff}
.sup-brand{display:flex;align-items:center;gap:10px;min-width:0}
.sup-brand .mark{width:38px;height:38px;border-radius:11px;background:#ffffff;color:var(--navy);font-size:12px}
.sup-brand b{display:block;font-size:16px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sup-brand small{color:#c9d5ee;font-size:12.5px}
.sup-out{color:#ffffff;font-weight:700;font-size:14px;text-decoration:none;border:1px solid rgba(255,255,255,.35);border-radius:9px;padding:6px 10px;white-space:nowrap}
.sup{max-width:720px;margin:0 auto;padding:12px 12px 90px}
.sup-date{font-weight:800;color:var(--navy);font-size:17px;margin:4px 2px 10px}
.sup-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.sup-stats div{background:#ffffff;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.sup-stats b{display:block;font-size:24px;color:var(--navy);line-height:1.1}
.sup-stats span{font-size:12.5px;color:var(--muted);font-weight:600}
.sup-tools{display:flex;gap:8px;margin:10px 0;position:sticky;top:58px;z-index:10;background:var(--bg);padding:4px 0}
.sup-tools input{flex:1;min-height:46px;font-size:16px}
.sup-tools .btn{min-height:46px}
.lab{display:flex;align-items:center;gap:10px;background:#ffffff;border:1px solid var(--line);border-left:5px solid #cbd5e1;border-radius:14px;padding:10px;margin-bottom:8px}
.lab.st-in{border-left-color:#16a34a}.lab.st-out{border-left-color:#64748b}
.lab-pic{width:46px;height:46px;border-radius:12px;overflow:hidden;background:var(--soft);display:grid;place-items:center;flex:none;color:var(--navy);font-weight:800;font-size:18px}
.lab-pic img{width:100%;height:100%;object-fit:cover}
.lab-main{flex:1;min-width:0}
.lab-main b{display:block;font-size:16px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lab-main small{display:block;color:var(--muted);font-size:12.5px}
.lab-t{font-size:13.5px;font-weight:700;color:#334155;margin-top:2px}
.lab-btns{display:flex;gap:6px;flex:none}
.lab-btns button{font:inherit;font-weight:800;font-size:15px;width:58px;height:48px;border-radius:12px;border:1px solid #d5ddea;background:#ffffff;color:var(--navy)}
.lab-btns button.go{background:var(--navy);border-color:var(--navy);color:#ffffff}
.lab-btns button[data-k=out].go{background:#b45309;border-color:#b45309}
.sup-foot{font-size:13px;margin-top:14px}
.psheet{position:fixed;inset:0;z-index:50;background:#0b1220;color:#ffffff;display:flex;flex-direction:column}
.psheet[hidden]{display:none}
.psheet .sheet-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;background:var(--navy)}
.psheet.k-out .sheet-head{background:#92400e}
.psheet .sheet-head b{display:block;font-size:17px}.psheet .sheet-head span{font-size:13px;color:#dbe4f5}
.psheet .x{font:inherit;font-size:20px;width:44px;height:44px;border-radius:12px;border:0;background:rgba(255,255,255,.15);color:#ffffff}
.cam-box{position:relative;flex:1;display:grid;place-items:center;overflow:hidden;background:#000000}
.cam-box video,.cam-box img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain}
.cam-msg{position:absolute;left:12px;right:12px;bottom:12px;text-align:center;background:rgba(15,27,51,.85);border-radius:12px;padding:10px;font-weight:600;font-size:14px}
.cam-msg[hidden]{display:none}
.cam-row{display:flex;align-items:center;justify-content:space-around;gap:10px;padding:14px;background:#0b1220}
.cam-row[hidden]{display:none}
.cam-row .btn.ghost{background:transparent;color:#ffffff;border-color:rgba(255,255,255,.4)}
.shutter{width:74px;height:74px;border-radius:50%;border:5px solid #ffffff;background:#ffffff;box-shadow:inset 0 0 0 4px #0b1220}
.shutter:active{transform:scale(.94)}
.btn.big{min-height:52px;font-size:17px;flex:1;justify-content:center}
.psheet#aadddd{background:var(--bg);color:var(--ink)}
.sheet-body{padding:16px;display:flex;flex-direction:column;gap:12px;max-width:560px;width:100%;margin:0 auto}
.sheet-body input{width:100%;min-height:48px;font-size:16px}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:60;background:#14532d;color:#ffffff;font-weight:700;padding:12px 18px;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.25);max-width:92vw}
.toast.bad{background:#991b1b}
.toast[hidden]{display:none}

/* ---------- phone attendance: office review ---------- */
table.phone-t td{vertical-align:top;white-space:normal}
.pm{display:flex;gap:8px;align-items:flex-start}
.pm img{width:46px;height:46px;object-fit:cover;border-radius:8px;border:1px solid var(--line);display:block}
.pm small{display:block;color:var(--muted);font-size:12px}
.flagline{color:var(--warn);font-size:12.5px;font-weight:700;margin-top:4px}
details.fix summary{list-style:none;cursor:pointer}
details.fix summary::-webkit-details-marker{display:none}
details.fix[open] form{margin-top:10px;min-width:300px}
details.fix input[type=time]{width:120px}
label.inl{display:flex;align-items:center;gap:6px}
label.inl input{min-height:0;width:auto}
/* ---- supervisor / project manager portal ---- */
.ptabs{display:flex;align-items:center;gap:4px;padding:8px 10px;background:#ffffff;border-bottom:1px solid var(--line);overflow-x:auto;-webkit-overflow-scrolling:touch}
.ptabs a{white-space:nowrap;text-decoration:none;color:var(--muted);font-weight:700;font-size:14px;padding:8px 12px;border-radius:9px;display:inline-flex;align-items:center;gap:6px}
.ptabs a.on{background:#e8eefa;color:var(--navy)}
.psite select{min-height:36px;padding:4px 8px;font-weight:700;color:var(--navy);max-width:180px;margin-right:4px}
.pmain{max-width:1100px;margin:0 auto;padding:16px clamp(12px,2.4vw,28px) 60px;display:flex;flex-direction:column;gap:14px}
.phead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px}
.phead h1{font-size:clamp(19px,3.2vw,26px)}
.phead input{min-height:38px}
.kpis.pk{gap:10px}
.kpis.pk .kpi{padding:12px 14px}
.kpis.pk .kpi .v{font-size:clamp(20px,3vw,28px);margin-top:4px}
@media (max-width:700px){.kpis.pk{grid-template-columns:1fr 1fr}}
.tscroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.nowrap{white-space:nowrap}
.splitline{font-size:12.5px;color:var(--navy-2);font-weight:600;margin-top:4px;max-width:340px}
.side-link{position:relative}
.side-badge{font-style:normal;background:#d97706;color:#ffffff;border-radius:999px;font-size:11.5px;font-weight:800;padding:1px 7px;margin-left:auto;line-height:1.5}
.ptabs .side-badge{margin-left:0}
.attn{display:flex;flex-direction:column;gap:8px}
.attn-i{display:block;padding:11px 16px;border-radius:12px;text-decoration:none;font-size:14.5px;border:1px solid}
.attn-i.warn{background:var(--warn-soft);color:#7c4a03;border-color:#f3dcae}
.attn-i.bad{background:var(--bad-soft);color:#7f1d1d;border-color:#f5c6c6}
.apv{padding:14px 16px}
.apv-h{display:flex;justify-content:space-between;align-items:center;gap:10px}
.apv-t{display:flex;gap:14px;margin:12px 0;flex-wrap:wrap}
.apv-t small{display:block;color:var(--muted);font-size:12px;font-weight:600}
.apv-t b{font-size:18px;color:var(--navy)}
.apv-f{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}
fieldset.pick{border:1px solid var(--line);border-radius:12px;padding:8px 14px 10px;display:flex;flex-wrap:wrap;gap:6px 18px;min-width:260px;flex:1}
fieldset.pick legend{font-size:13px;font-weight:700;color:var(--muted);padding:0 4px}
fieldset.pick label.inl,label.inl{display:flex;align-items:center;gap:6px;margin:0;font-weight:600}
label.inl input{width:auto;margin:0;min-height:0}
body.portal .card{border-radius:16px}
.phone-t td:nth-child(6){min-width:200px}
body.portal .phone-t td:nth-child(6){min-width:220px}
/* ---- sign-in page ---- */
body.lg{background:#ffffff;min-height:100vh}
.lg-wrap{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);min-height:100vh;min-height:100dvh}
.lg-hero{position:relative;overflow:hidden;background:radial-gradient(120% 90% at 0% 0%,#1d3f86 0%,#0f2557 55%,#0a1a40 100%);color:#ffffff;padding:44px clamp(32px,5vw,72px);display:flex;flex-direction:column}
.lg-grid{position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:44px 44px;mask-image:radial-gradient(90% 80% at 70% 40%,#000000 0%,transparent 75%);-webkit-mask-image:radial-gradient(90% 80% at 70% 40%,#000000 0%,transparent 75%)}
.lg-hero::after{content:"";position:absolute;right:-120px;bottom:-120px;width:380px;height:380px;border-radius:50%;border:1px solid rgba(200,162,74,.35);box-shadow:0 0 0 60px rgba(200,162,74,.05),0 0 0 120px rgba(200,162,74,.03)}
.lg-brand,.lg-mbrand{display:flex;align-items:center;gap:12px;position:relative}
.lg-brand b,.lg-mbrand b{display:block;font-size:16px;font-weight:800;line-height:1.2}
.lg-brand small{color:rgba(255,255,255,.7);font-size:12.5px}
.lg-hero .mark{background:#ffffff;color:var(--navy);box-shadow:inset 0 -3px 0 var(--gold)}
.lg-copy{position:relative;margin:auto 0;max-width:520px;padding:40px 0}
.lg-kicker{font-size:12px;letter-spacing:.16em;text-transform:uppercase;font-weight:800;color:var(--gold)}
.lg-copy h1{color:#ffffff;font-size:clamp(28px,3.1vw,42px);line-height:1.12;margin:14px 0 30px;letter-spacing:-.02em}
.lg-points{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:18px}
.lg-points li{display:flex;gap:14px;align-items:flex-start}
.lg-points svg{width:40px;height:40px;padding:9px;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#e9d39c;flex:none}
.lg-points b{display:block;font-size:15.5px}
.lg-points span{color:rgba(255,255,255,.68);font-size:14px}
.lg-foot{position:relative;color:rgba(255,255,255,.5);font-size:12.5px}
.lg-panel{display:flex;align-items:center;justify-content:center;padding:40px 24px;background:#ffffff}
.lg-form{width:100%;max-width:380px}
.lg-mbrand{display:none;margin-bottom:28px}
.lg-mbrand small{color:var(--muted);font-size:12.5px}
.lg-mbrand b{color:var(--navy)}
.lg-form h2{font-size:30px;letter-spacing:-.02em}
.lg-form>.muted{margin:6px 0 26px;font-size:14.5px}
.lg-err{display:flex;align-items:center;gap:10px;background:var(--bad-soft);color:#991b1b;border:1px solid #f5c6c6;border-radius:12px;padding:11px 14px;font-weight:600;font-size:14px;margin-bottom:18px}
.lg-err svg{width:20px;height:20px;flex:none}
.lg-f{display:block;margin-bottom:16px}
.lg-f>span{display:block;font-size:13.5px;font-weight:700;color:var(--ink);margin-bottom:7px}
.lg-in{position:relative;display:flex;align-items:center}
.lg-in>svg{position:absolute;left:14px;width:19px;height:19px;color:#94a3b8;pointer-events:none}
.lg-in input{width:100%;height:50px;margin:0;padding:0 46px 0 44px;border:1.5px solid #dbe3ef;border-radius:12px;font:inherit;font-size:15.5px;color:var(--ink);background:#f8fafd;transition:border-color .15s,box-shadow .15s,background .15s}
.lg-in input::placeholder{color:#a3afc2}
.lg-in input:focus{outline:none;border-color:var(--navy-2);background:#ffffff;box-shadow:0 0 0 4px rgba(27,58,122,.12)}
.lg-in:focus-within>svg{color:var(--navy-2)}
.lg-eye{position:absolute;right:6px;width:38px;height:38px;border:0;background:none;border-radius:9px;display:grid;place-items:center;color:#94a3b8;cursor:pointer;padding:0;min-height:0}
.lg-eye svg{width:20px;height:20px}
.lg-eye:hover,.lg-eye.on{color:var(--navy);background:var(--soft)}
.lg-caps{font-size:13px;color:var(--warn);font-weight:600;margin:-6px 0 12px}
.lg-btn{width:100%;height:52px;margin-top:6px;border:0;border-radius:12px;background:var(--navy);color:#ffffff;font:inherit;font-size:16px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px -8px rgba(15,37,87,.6),inset 0 -3px 0 var(--gold);transition:transform .1s,background .15s}
.lg-btn:hover{background:var(--navy-2)}
.lg-btn:active{transform:translateY(1px)}
.lg-btn:disabled{opacity:.75;cursor:wait}
.lg-help{margin-top:22px;font-size:13px;color:var(--muted);line-height:1.6;text-align:center}
@media (max-width:860px){
  .lg-wrap{grid-template-columns:1fr}
  .lg-hero{display:none}
  .lg-panel{align-items:flex-start;padding:48px 22px 32px;background:linear-gradient(180deg,#f3f6fb 0,#ffffff 220px)}
  .lg-mbrand{display:flex}
}
.otline{font-size:12.5px;font-weight:700;margin-top:4px}
.otline.warn{color:#b45309}.otline.ok{color:var(--ok)}.otline.bad{color:var(--bad)}
.otform{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;border-top:1px solid var(--line);padding-top:12px}
.otform label{font-size:13px;font-weight:700;color:var(--muted);display:flex;flex-direction:column;gap:5px;margin:0}
.otform>input[name=note]{flex:1;min-width:170px;min-height:44px}
.otstep{display:inline-flex;align-items:center;border:1.5px solid #dbe3ef;border-radius:11px;overflow:hidden;background:#ffffff}
.otstep button{width:42px;height:42px;border:0;background:var(--soft);color:var(--navy);font-size:20px;font-weight:800;cursor:pointer;padding:0;min-height:0}
.otstep input{width:66px;height:42px;border:0;text-align:center;font-size:17px;font-weight:800;color:var(--navy);margin:0;min-height:0;-moz-appearance:textfield}
.otstep input::-webkit-outer-spin-button,.otstep input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.otbtns{display:flex;gap:8px;margin-left:auto}
.otbtns .btn{min-width:96px}
/* ---- shifts ---- */
.shgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.shcard{padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.shtop{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.shtop b{font-size:17px;color:var(--navy)}
.shtime{font-size:26px;font-weight:800;color:var(--ink);letter-spacing:-.02em;margin-top:2px}
.shbar{position:relative;height:10px;border-radius:99px;background:repeating-linear-gradient(90deg,#eef2f8 0 calc(25% - 1px),#dbe3ef calc(25% - 1px) 25%)}
.shbar i{position:absolute;top:0;bottom:0;border-radius:99px;background:linear-gradient(90deg,var(--navy-2),var(--navy));box-shadow:inset 0 -2px 0 var(--gold)}
.shfacts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px 12px;margin:0}
.shfacts dt{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}
.shfacts dd{margin:2px 0 0;font-weight:700;color:var(--ink);font-size:14.5px}
.shuse{display:flex;flex-wrap:wrap;gap:6px;border-top:1px solid var(--line);padding-top:12px}
.shprev{margin:14px 0 0;padding:12px 14px;background:var(--soft);border-radius:12px;font-size:14px;color:var(--ink)}
.sh-chip{font-size:12.5px;color:var(--muted)}
.shiftline{margin:-4px 0 4px;font-size:14px;color:var(--ink)}
/* ---- users from the machine ---- */
.fetchwait{display:flex;gap:16px;align-items:center}
.spin{width:30px;height:30px;border-radius:50%;border:3px solid #dbe3ef;border-top-color:var(--navy);animation:spin 1s linear infinite;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
.mu-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:14px;background:#ffffff;border:1px solid var(--line);border-radius:14px;padding:10px 14px;margin-bottom:12px;box-shadow:0 6px 20px -12px rgba(15,37,87,.35)}
.mu-bar .btn{margin-left:auto}
.mu-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:12px}
.mu-card{padding:14px 16px;border:1.5px solid var(--line);transition:border-color .15s,box-shadow .15s}
.mu-card.on{border-color:var(--navy-2);box-shadow:0 0 0 3px rgba(27,58,122,.08)}
.mu-card.bad{border-color:#f5c6c6}
.mu-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.mu-h b{font-size:16px;color:var(--navy)}
.mu-f{display:grid;grid-template-columns:1fr 1fr;gap:8px 10px}
.mu-f label{margin:0;font-size:12.5px}
.mu-f .w2{grid-column:span 2}
.mu-f input,.mu-f select{width:100%}
.mu-foot{margin-top:8px;text-align:right}
.linkbtn{background:none;border:0;color:var(--muted);font:inherit;font-size:13px;text-decoration:underline;cursor:pointer;padding:0;min-height:0}
.linkbtn:hover{color:var(--bad)}
/* ---- payroll ---- */
.paygrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}
.paycard{padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.paycard.on{border-color:var(--navy-2);box-shadow:0 0 0 3px rgba(27,58,122,.08)}
.pay-h{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.pay-h b{display:block;font-size:16.5px;color:var(--navy)}.pay-h small{color:var(--muted);font-size:12.5px}
.pay-last{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border-radius:11px;background:var(--soft);text-decoration:none;color:var(--ink);font-size:13.5px}
.pay-last .v{font-weight:800;color:var(--navy);font-size:15px;white-space:nowrap}
.pay-more{font-size:13px;text-decoration:none;color:var(--muted);align-self:flex-end}
.payform{margin-top:14px;display:flex;flex-direction:column;gap:12px}
.seg{display:inline-flex;border:1.5px solid #dbe3ef;border-radius:12px;padding:3px;gap:3px;align-self:flex-start;background:#f8fafd}
.seg label{margin:0;cursor:pointer}.seg input{position:absolute;opacity:0;pointer-events:none}
.seg span{display:block;padding:8px 18px;border-radius:9px;font-weight:700;color:var(--muted);font-size:14px}
.seg input:checked+span{background:var(--navy);color:#ffffff;box-shadow:inset 0 -2px 0 var(--gold)}
.quick{display:flex;gap:6px;flex-wrap:wrap;align-self:flex-end}
/* ---- laborer photos ---- */
.codecell{display:flex;align-items:center;gap:10px}
.av{position:relative;width:40px;height:40px;border-radius:50%;flex:none;display:grid;place-items:center;background:#e8eefa;color:var(--navy);font-weight:800;font-size:15px;overflow:visible;border:0;padding:0;min-height:0}
.av img{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}
.av.sm{width:30px;height:30px;font-size:12.5px}
button.av{cursor:pointer;box-shadow:0 0 0 2px #ffffff,0 0 0 3px #dbe3ef;transition:box-shadow .15s}
button.av:hover{box-shadow:0 0 0 2px #ffffff,0 0 0 3px var(--navy-2)}
button.av i{position:absolute;right:-3px;bottom:-3px;width:17px;height:17px;border-radius:50%;background:var(--navy);color:#ffffff;font-style:normal;font-size:11px;font-weight:800;display:grid;place-items:center;box-shadow:0 0 0 2px #ffffff;line-height:1}
button.av:not(.has){background:#f3f6fb;border:1.5px dashed #b8c4d6}
.av.sm i{width:14px;height:14px;font-size:9.5px}
.lp-wrap{position:fixed;inset:0;z-index:100;background:rgba(10,26,64,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.lp-wrap[hidden]{display:none}
body.lp-open{overflow:hidden}
.lp-box{background:#ffffff;border-radius:20px;width:100%;max-width:400px;padding:18px 18px 16px;box-shadow:0 30px 60px -20px rgba(0,0,0,.45)}
.lp-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.lp-h b{font-size:17px;color:var(--navy)}
.lp-x{border:0;background:var(--soft);width:36px;height:36px;border-radius:10px;font-size:16px;cursor:pointer;min-height:0;padding:0}
.lp-pic{aspect-ratio:1;border-radius:16px;background:#f3f6fb;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line)}
.lp-pic img{width:100%;height:100%;object-fit:cover}
.lp-none{color:var(--muted);font-weight:600}
.lp-msg{margin:10px 0 0;font-size:14px;font-weight:600;color:var(--ok)}
.lp-msg.bad{color:var(--bad)}
.lp-btns{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.lp-btns .btn{flex:1 1 140px;justify-content:center;text-align:center;cursor:pointer}
.lp-btns .lp-del{flex-basis:100%}
.lp-btns .dis{opacity:.5;pointer-events:none}
.lp-note{margin:10px 0 0;font-size:12.5px;color:var(--muted)}
.cam-who{display:flex;gap:10px;align-items:center}
.cam-ref{width:44px;height:44px;border-radius:50%;overflow:hidden;flex:none;box-shadow:0 0 0 2px #ffffff}
.cam-ref img{width:100%;height:100%;object-fit:cover}
/* ---- employees ---- */
.emp-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:14px 16px}
.emp-filters select{min-height:44px;width:auto;min-width:150px}
.emp-q{position:relative;flex:1 1 280px;margin:0;display:block}
.emp-q svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#94a3b8}
.emp-q input{width:100%;padding-left:40px;min-height:44px;margin:0}
.emp-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:#f6f8fc;border:1px solid var(--line);border-radius:14px;padding:6px 10px}
.emp-tabs{display:flex;gap:4px;overflow-x:auto}
.emp-tabs a{display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:10px;text-decoration:none;color:var(--muted);font-weight:700;font-size:14.5px;white-space:nowrap;border-bottom:3px solid transparent}
.emp-tabs a em{font-style:normal;background:#e3eaf6;color:var(--navy);border-radius:7px;padding:1px 8px;font-size:13.5px;font-weight:800}
.emp-tabs a.on{color:var(--ink);border-bottom-color:#43e4af;border-radius:10px 10px 0 0}
.emp-tabs a.on em{background:#dbe6f7}
.emp-tools{display:flex;align-items:center;gap:6px}
.emp-tools select{min-height:38px;width:auto;padding:4px 8px}
.iconbtn{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:var(--muted);text-decoration:none}
.iconbtn svg{width:19px;height:19px}
.iconbtn:hover,.iconbtn.on{background:#ffffff;color:var(--navy);box-shadow:0 1px 3px rgba(15,37,87,.12)}
.emp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.emp-card{background:#ffffff;border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px rgba(15,37,87,.05);display:flex;flex-direction:column;transition:box-shadow .15s,transform .15s}
.emp-card:hover{box-shadow:0 10px 26px -14px rgba(15,37,87,.35);transform:translateY(-1px)}
.emp-card.inactive{opacity:.62}
.emp-top{display:flex;align-items:center;gap:14px;padding:16px 18px;border-bottom:1px solid var(--line)}
.emp-av{position:relative;flex:none;display:inline-block}
.emp-av .dot{position:absolute;right:1px;bottom:1px;width:14px;height:14px;border-radius:50%;background:#cbd5e1;box-shadow:0 0 0 2.5px #ffffff;z-index:2}
.emp-av .dot.on{background:#22c55e}.emp-av .dot.off{background:#ef4444}
.codecell .emp-av .dot{width:10px;height:10px;right:-1px;bottom:-1px}
.emp-who{flex:1;min-width:0;text-decoration:none;color:inherit;display:flex;flex-direction:column;gap:3px}
.emp-who b{font-size:17px;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.emp-who span{color:var(--muted);font-size:14.5px}
.emp-who small{color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.emp-go{color:var(--muted);text-decoration:none;font-size:20px;padding:6px}
.emp-go:hover{color:var(--navy)}
.emp-meta{display:grid;grid-template-columns:1.1fr 1fr 1.1fr;gap:8px;padding:12px 18px 14px}
.emp-meta div{min-width:0}.emp-meta div:nth-child(2){text-align:center}.emp-meta div:last-child{text-align:right}
.emp-meta small{display:block;color:var(--muted);font-size:13px;margin-bottom:3px}
.emp-meta b{font-weight:500;font-size:14.5px;color:var(--ink);display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.av.lg{width:62px;height:62px;font-size:22px}
.av.xl{width:112px;height:112px;font-size:40px}
.av.lg i{width:20px;height:20px;font-size:12px;right:-2px;bottom:-2px}
.emp-av .av.lg i{right:auto;left:-2px}
.av.xl i{width:28px;height:28px;font-size:15px;right:2px;bottom:2px}
tr.dim{opacity:.6}
.pager{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.pager a{padding:7px 12px;border-radius:9px;border:1px solid var(--line);background:#ffffff;text-decoration:none;color:var(--ink);font-weight:600;font-size:14px}
.pager a.on{background:var(--navy);color:#ffffff;border-color:var(--navy)}
.pager .muted{margin-right:auto;font-size:14px}
.emp-hero{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.emp-id{flex:1;min-width:220px}
.emp-id h1{font-size:clamp(24px,3vw,32px)}
.emp-code{font-size:16px;font-weight:700;color:var(--navy);margin-top:4px}
.emp-role{color:var(--muted);margin-top:4px;font-size:15px}
.emp-acts{display:flex;gap:8px;flex-wrap:wrap}
.emp-cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:16px}
.emp-dl{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;margin:12px 0 0}
.emp-dl dt{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}
.emp-dl dd{margin:2px 0 0;font-weight:600;font-size:15px}
.ecal{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:14px}
.ecal b{font-size:11.5px;color:var(--muted);text-align:center;font-weight:700;text-transform:uppercase}
.ecal a{position:relative;aspect-ratio:1.25;border-radius:9px;display:grid;place-items:center;text-decoration:none;font-weight:700;font-size:14px;color:var(--ink);background:#f3f6fb;border:1px solid transparent}
.ecal a i{position:absolute;bottom:2px;right:4px;font-style:normal;font-size:10px;font-weight:800}
.ecal a i.approved{color:#15803d}.ecal a i.pending{color:#b45309}.ecal a i.rejected{color:#b91c1c;text-decoration:line-through}
.ecal .full{background:#dcfce7;color:#14532d}.ecal .half{background:#fef3c7;color:#78350f}.ecal .off{background:#e0e7ff;color:#312e81}
.ecal .wait{background:#ffedd5;color:#9a3412}.ecal .abs{background:#ffffff;border-color:#eef2f7;color:#94a3b8}.ecal .fut{background:transparent;color:#cbd5e1;pointer-events:none}
.ecal .none{background:#fee2e2;color:#7f1d1d}
.ecal .td{box-shadow:0 0 0 2px var(--navy)}
.ecal-key{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:10px;font-size:12.5px;color:var(--muted)}
.ecal-key span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px;background:#f3f6fb}
.ecal-key .full::before{background:#dcfce7}.ecal-key .half::before{background:#fef3c7}.ecal-key .off::before{background:#e0e7ff}.ecal-key .wait::before{background:#ffedd5}.ecal-key .abs::before{background:#ffffff;border:1px solid #e2e8f0}
.ecal-key span:last-child::before{display:none}.ecal-key i{font-style:normal;font-weight:800;color:#15803d}
@media (max-width:640px){.emp-cols{grid-template-columns:1fr}.emp-dl{grid-template-columns:1fr}}
/* ---- attendance logs ---- */
.logs-t td{vertical-align:middle}
.logs-t .dayrow td{background:#f6f8fc;font-weight:800;color:var(--navy);font-size:13px;letter-spacing:.02em;padding-top:9px;padding-bottom:9px}
.lt{font-size:16px;font-variant-numeric:tabular-nums;color:var(--ink)}
.lthumb{width:40px;height:40px;border-radius:9px;object-fit:cover;display:block}
.lnote{max-width:260px;font-size:13.5px;color:#475569}
.src{display:inline-block;font-size:12.5px;font-weight:700;padding:2px 9px;border-radius:999px;background:#eef2f8;color:#334155}
.src-machine{background:#e0f2fe;color:#075985}.src-phone{background:#ebfcf6;color:#21b685}.src-manual{background:#fef3c7;color:#92400e}
.src-admin{background:#fee2e2;color:#991b1b}.src-log{background:#dcfce7;color:#166534}.src-import{background:#e0e7ff;color:#3730a3}
/* ---- sync keys ---- */
.keybox{border:2px solid var(--gold)}
.keyrow{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap}
.keyrow code{flex:1;min-width:260px;background:var(--soft);padding:12px 14px;border-radius:10px;font-size:14.5px;word-break:break-all;color:var(--navy);font-weight:700}
ol.steps{margin:12px 0 0 20px;padding:0;display:flex;flex-direction:column;gap:8px;font-size:14.5px}
.pushsites{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-top:14px}

/* ================= Theme v23: purple workspace (icon rail + module panel) ================= */
:root{
  --navy:#21c891; --navy-2:#169a6e; --ink:#1f2a37; --muted:#6b7a86; --line:#e8ebf0; --line-2:#f1f3f6;
  --bg:#f7f8fa; --card:#ffffff; --soft:#edfdf8; --gold:#16a085;
  --brand:#35dca5; --brand-d:#169a6e; --brand-soft:#eafcf6; --green:#1aa37a;
  --font:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
}
body{font-size:14px;color:#4b5a66;background:var(--bg)}
h1,h2{color:#2b3640;font-weight:700;letter-spacing:-.01em}
h1{font-size:clamp(22px,2vw,26px)}
h2{font-size:16px}
.eyebrow{color:var(--brand);letter-spacing:.08em;font-weight:700}
a{color:var(--brand)}
.strip{position:fixed;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,var(--brand-d),var(--brand));z-index:60}

/* left icon rail */
.rail{position:fixed;inset:0 auto 0 0;width:88px;background:#ffffff;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:center;padding:16px 6px 12px;gap:4px;z-index:45;overflow-y:auto}
.rail-logo{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:13px;color:var(--brand);border:2px solid var(--brand);text-decoration:none;margin:4px 0 14px;letter-spacing:.02em}
.rail-link{position:relative;width:74px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 2px;border-radius:10px;text-decoration:none;color:#6b7a86;font-size:11.5px;text-align:center;line-height:1.15}
.rail-link svg{width:22px;height:22px;color:#8a96a3}
.rail-link:hover{background:#f3fdfa;color:var(--brand)}
.rail-link.on{background:var(--brand-soft);color:var(--brand);font-weight:600}
.rail-link.on svg{color:var(--brand)}
.rail-dot{position:absolute;top:6px;right:20px;width:8px;height:8px;border-radius:50%;background:#ef5b3a;border:2px solid #ffffff}
.rail-out{margin-top:auto}

/* module panel */
.side{left:88px;width:232px;padding:22px 12px;border-right:1px solid var(--line);background:#ffffff;top:5px}
.side .brand,.side .side-foot{display:none}
.side-title{display:flex;justify-content:space-between;align-items:center;padding:2px 12px 14px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.side-title b{font-size:16px;color:#2b3640;font-weight:700}
.side-x{display:none;border:0;background:none;font-size:24px;color:var(--muted);cursor:pointer}
.side-mod{display:none}.side-mod.on{display:block}
.side-mod .side-group{display:none}
.side-link{padding:11px 14px;border-radius:9px;color:#4b5a66;font-size:14px;font-weight:500;gap:14px}
.side-link svg{width:19px;height:19px;color:#7b8794}
.side-link:hover{background:#f4fdfa}
.side-link.on{background:var(--brand-soft);color:var(--brand);font-weight:600;box-shadow:none}
.side-link.on svg{color:var(--brand)}
.side-badge{background:#ef5b3a}
.shell{margin-left:88px;padding-top:5px}
body.has-sub .shell{margin-left:320px}
body:not(.has-sub) .side{display:none}

/* top bar */
.topbar{padding:10px 26px;border-bottom:1px solid var(--line);top:5px;min-height:62px}
.crumbs{display:none}
.top-search{display:flex;align-items:center;gap:8px;border:1px solid #dfe3e8;border-radius:8px;padding:0 12px;height:40px;width:min(340px,40vw);background:#ffffff}
.top-search svg{width:17px;height:17px;color:#8a96a3;flex:none}
.top-search input{border:0;outline:0;font:inherit;font-size:14px;width:100%;background:transparent;padding:0;min-height:0;box-shadow:none}
.top-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}
.pill-live{color:#2b3640;font-weight:600;font-size:13px;border-color:#e3e7ec}
.bell{position:relative;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;color:#6b7a86;text-decoration:none}
.bell:hover{background:#f3f4f6}
.bell svg{width:21px;height:21px}
.bell em{position:absolute;top:1px;right:0;min-width:18px;height:18px;border-radius:9px;background:#ef5b3a;color:#ffffff;font-style:normal;font-size:10.5px;font-weight:700;display:grid;place-items:center;padding:0 4px;border:2px solid #ffffff}
.who{border-left:0;padding-left:4px}
.av{border-radius:50%;background:var(--brand-soft);color:var(--brand);font-weight:700}

/* page, headings, cards */
.page{max-width:1560px;padding:22px clamp(14px,2vw,28px) 60px;gap:18px}
.head h1{color:#2b3640}
.head .muted{font-size:13.5px;max-width:900px}
.card,.kpi{border:0;border-radius:10px;box-shadow:0 0 10px 5px rgba(145,158,171,.12)}
.card-h{padding:14px 20px;border-bottom:1px dashed #e3e7ec}
.card-h h2,.card>h2:first-child{font-size:15.5px;font-weight:600;color:#2b3640}

/* buttons */
.btn{background:var(--brand-d);border-color:var(--brand-d);border-radius:7px;font-weight:600;font-size:13.5px;min-height:36px;padding:7px 14px;gap:6px}
.btn:hover{background:var(--brand);border-color:var(--brand)}
.btn.ghost{background:#ffffff;color:var(--brand-d);border-color:#cff5e8}
.btn.ghost:hover{background:var(--brand-soft)}
.btn.gold{background:var(--green);border-color:var(--green);color:#ffffff}
.btn.gold:hover{background:#15906b}
.btn.sm{min-height:32px;font-size:13px}

/* inputs */
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{border-radius:7px;border-color:#dfe3e8}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--brand)!important;box-shadow:0 0 0 3px var(--brand-soft)}

/* tables */
table{font-size:13.5px}
th{background:#f4f6f8;color:#3d4852;font-size:13px;letter-spacing:0;text-transform:none;font-weight:600;border-bottom:0;padding:13px 16px}
td{border-bottom:1px solid #eef0f3}
tbody tr:hover td,tr:hover>td{background:#fbf9ff}

/* dashboard tiles: soft colours with a short accent line, like a drill-down board */
.kpi{position:relative;padding:20px 22px 18px;background:#eef3f1}
.kpi::before{content:"";position:absolute;left:22px;top:12px;width:16px;height:2px;border-radius:2px;background:#3f8f6c}
.kpi .label{font-size:15px;font-weight:600;color:#2b3640}
.kpi .v{font-size:clamp(20px,1.8vw,26px);color:#5d6b76;font-weight:600;margin-top:4px}
.kpi.link::after{content:"›";position:absolute;right:22px;top:50%;transform:translateY(-50%);font-size:22px;color:#6b7a86}
.kpi.link:hover{background:#e6eeea;border:0}
.kpis>.kpi:nth-child(6n+2){background:#f1eeec}.kpis>.kpi:nth-child(6n+2)::before{background:#8a7d74}
.kpis>.kpi:nth-child(6n+3){background:#eef1fd}.kpis>.kpi:nth-child(6n+3)::before{background:#5468d4}
.kpis>.kpi:nth-child(6n+4){background:#f9ecec}.kpis>.kpi:nth-child(6n+4)::before{background:#c94a4a}
.kpis>.kpi:nth-child(6n+5){background:#eaf4fb}.kpis>.kpi:nth-child(6n+5)::before{background:#3d9bd3}
.kpis>.kpi:nth-child(6n){background:#eefaf6}.kpis>.kpi:nth-child(6n)::before{background:#4fc49d}
.hero{background:linear-gradient(120deg,var(--brand-d) 0%,var(--brand) 100%);border-radius:12px;box-shadow:0 14px 34px -22px rgba(22,154,110,.7)}
.hero .btn.ghost{color:var(--brand-d)}

/* chips & pills */
.chip{font-weight:600;border-radius:6px}

/* supervisor portal & login */
.sup-top{background:linear-gradient(90deg,var(--brand-d),var(--brand))!important}
.ptabs a.on{color:var(--brand)!important;border-color:var(--brand)!important}
body.lg .mark,.mark{background:var(--brand-d);box-shadow:inset 0 -3px 0 #9af0d4}

@media (max-width:999px){
  .shell,body.has-sub .shell{margin-left:0}
  .rail{transform:translateX(-100%);transition:transform .2s ease}
  .side{left:0;transform:translateX(-100%)}
  body.nav-open .rail{transform:none}
  body.nav-open .side{display:block;transform:none;left:88px;width:min(232px,calc(100vw - 88px))}
  body.nav-open .side-scrim{z-index:40}
  .side-x{display:block}
  .top-search{width:auto;flex:1}
  .topbar{padding:8px 12px}
}
@media print{.rail,.strip,.side,.topbar{display:none!important}.shell,body.has-sub .shell{margin:0!important;padding:0!important}}

/* drill-down tiles and people lists */
.drill .card-h{border-bottom:1px dashed #e3e7ec}
.drill .card-h select,.drill .card-h input{min-height:36px;padding:5px 10px;font-size:13.5px}
.tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;padding:18px 20px 20px}
.tile{position:relative;display:flex;flex-direction:column;gap:2px;padding:24px 40px 16px 16px;border-radius:8px;text-decoration:none;background:#e7efec;min-height:78px}
.tile i{position:absolute;left:16px;top:12px;width:16px;height:2px;border-radius:2px;background:#3f8f6c}
.tile b{font-size:15px;font-weight:600;color:#2b3640}
.tile span{font-size:14px;color:#6b7a86}
.tile::after{content:"›";position:absolute;right:16px;top:50%;transform:translateY(-50%);font-size:22px;color:#4b5a66}
.tile:hover{filter:brightness(.97)}
.tile.t1{background:#e5f0e4}.tile.t1 i{background:#4c9a4c}
.tile.t2{background:#f3e0de}.tile.t2 i{background:#c94a4a}
.tile.t3{background:#e5f7f1}.tile.t3 i{background:#5bc4a1}
.tile.t4{background:#f7e3f0}.tile.t4 i{background:#c4509a}
.tile.t5{background:#e6f1fb}.tile.t5 i{background:#3d9bd3}
.tile.t6{background:#fdf1e2}.tile.t6 i{background:#e3962e}
.tile.t7{background:#fdeee9}.tile.t7 i{background:#e0663f}
.tile.t8{background:#e3e9fb}.tile.t8 i{background:#5468d4}
.tile.t9{background:#ecebe9}.tile.t9 i{background:#8a7d74}
.plist-b{max-height:420px;overflow:auto}
.prow{display:flex;align-items:center;gap:12px;padding:10px 20px;text-decoration:none;border-bottom:1px solid #f1f3f6}
.prow:hover{background:#fbf9ff}
.prow .av.sm{width:36px;height:36px}
.pn{display:flex;flex-direction:column;line-height:1.25;min-width:0;flex:1}
.pn b{font-size:14px;color:#2b3640;font-weight:600}
.pn small{font-size:11.5px;color:#8a96a3}
.prow em{font-style:normal;font-size:12px;font-weight:600;border-radius:6px;padding:4px 10px;white-space:nowrap}
.prow em.early{background:#e3f4ea;color:#1f7a4d}
.prow em.late{background:#fde8e4;color:#b3412a}
@media (max-width:1200px){.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.tiles{grid-template-columns:1fr 1fr;padding:14px}.tile{padding:22px 30px 12px 12px}.tile i{left:12px}}
.card.drill{padding:0}
.av img{aspect-ratio:1/1;height:auto!important}
.lg-hero{background:radial-gradient(120% 90% at 0% 0%,#4ce5b3 0%,#1fc48e 50%,#13835e 100%)}
.lg-hero::after{border-color:rgba(255,255,255,.25);box-shadow:0 0 0 60px rgba(255,255,255,.05),0 0 0 120px rgba(255,255,255,.03)}
.lg-hero .mark{background:#ffffff;color:var(--brand-d);box-shadow:none}
.lg-hero .eyebrow{color:#dbfaf0}
.lg-btn{background:var(--brand-d);box-shadow:0 8px 20px -8px rgba(22,154,110,.6);border-radius:8px;font-weight:700}
.lg-btn:hover{background:var(--brand)}
@media (max-width:999px){body.nav-open .side{z-index:44}}
body.lg .lg-hero .mark{background:#ffffff;color:var(--brand-d);box-shadow:none}

/* add employee form */
.addemp{display:flex;flex-direction:column;gap:18px}
.addemp .card>h2{margin-bottom:16px;padding-bottom:12px;border-bottom:1px dashed #e3e7ec}
.fgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px;align-items:start}
.fgrid label,.fgrid .lbl{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#3d4852}
.fgrid label input,.fgrid label select{width:100%;min-height:42px}
.fgrid small{font-weight:400;font-size:12px}
.fgrid .span2{grid-column:span 2}
.ae-photo{grid-row:span 2;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.ae-photo p{font-size:12px;margin:0;max-width:220px}
.ae-pic{width:132px;height:132px;border-radius:50%;border:2px dashed #bdf3e1;background:var(--brand-soft);display:grid;place-items:center;cursor:pointer;overflow:hidden;position:relative}
.ae-pic input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ae-pic img{width:100%;height:100%;object-fit:cover}
.ae-pic span{display:flex;flex-direction:column;align-items:center;color:var(--brand);font-size:34px;font-weight:300;line-height:1}
.ae-pic span small{font-size:12px;font-weight:600;margin-top:4px}
.ae-sites{display:flex;flex-wrap:wrap;gap:8px 18px;padding:8px 0}
.ae-sites .ck{flex-direction:row;align-items:center;gap:8px;font-weight:500}
.ae-bar{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:14px 0;background:linear-gradient(transparent,var(--bg) 30%)}
@media (max-width:900px){.fgrid{grid-template-columns:1fr 1fr}.ae-photo{grid-column:span 2;grid-row:auto}}
@media (max-width:560px){.fgrid{grid-template-columns:1fr}.fgrid .span2,.ae-photo{grid-column:auto}}
.ae-sites input[type=checkbox]{width:18px;height:18px;min-height:0;margin:0;accent-color:var(--brand)}

/* punch requests */
.prq-form>h2{margin-bottom:16px;padding-bottom:12px;border-bottom:1px dashed #e3e7ec}
.prq-form #prq-find{margin-bottom:6px}
.fgrid .span3{grid-column:1/-1}
.seg{display:inline-flex;border:1px solid #dfe3e8;border-radius:8px;overflow:hidden;margin-top:6px;flex-wrap:wrap}
.seg label{display:block;cursor:pointer}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg span{display:block;padding:9px 18px;font-weight:600;font-size:13.5px;color:#4b5a66;border-right:1px solid #dfe3e8}
.seg label:last-child span{border-right:0}
.seg input:checked+span{background:var(--brand-soft);color:var(--brand)}
.seg input:focus-visible+span{outline:2px solid var(--brand);outline-offset:-2px}
.prq-bar{display:flex;align-items:center;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid #eef0f3;flex-wrap:wrap}
.prq-bar .ck,.prq-bulk .ck{display:inline-flex;align-items:center;gap:8px;font-weight:600;font-size:13.5px;color:#3d4852}
.prq-list .emp-tabs{padding:0 18px}
.prq-filter{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:14px 18px;border-bottom:1px solid #eef0f3}
.prq-filter input[type=search]{flex:1;min-width:200px}
.prq-filter .inl{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#6b7a86}
.prq-bulk{display:flex;gap:10px;align-items:center;padding:10px 18px;background:#fbf9ff;border-bottom:1px solid #eef0f3}
.prq-t td{vertical-align:middle}
.prq-t input[type=checkbox],.prq-bulk input[type=checkbox],.prq-bar input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:var(--brand)}
.muted.sm{font-size:12px}
.prq-cta{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}

/* time sheet */
.ts-filter{display:flex;flex-direction:column;gap:12px;padding:16px 18px}
.ts-quick{display:flex;gap:6px;flex-wrap:wrap}
.ts-quick a{padding:7px 14px;border-radius:7px;background:#f4f6f8;color:#4b5a66;text-decoration:none;font-weight:600;font-size:13px}
.ts-quick a.on,.ts-quick a:hover{background:var(--brand-soft);color:var(--brand)}
.ts-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.ts-row .inl{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#6b7a86}
.ts-row input[type=search]{flex:1;min-width:180px}
.ts-row .ck{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:#3d4852}
.ts-row .ck input{width:17px;height:17px;min-height:0;accent-color:var(--brand)}
.ts-sum{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.ts-sum>span:not(.ts-views){background:#ffffff;border-radius:8px;padding:9px 14px;font-size:13px;color:#6b7a86;box-shadow:0 0 10px 5px rgba(145,158,171,.08)}
.ts-sum b{color:#2b3640;font-size:14.5px;margin-right:3px}
.ts-views{margin-left:auto;display:flex;gap:4px}
.ts-views a{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;color:#8a96a3;background:#ffffff;border:1px solid #e3e7ec}
.ts-views a.on{color:var(--brand);background:var(--brand-soft);border-color:#cff5e8}
.ts-views svg{width:18px;height:18px}
.ts-wrap{max-height:calc(100vh - 230px);overflow:auto}
table.ts{border-collapse:separate;border-spacing:0;font-size:12.5px;min-width:100%}
.ts th{position:sticky;top:0;z-index:2;text-align:center;font-size:12px;padding:8px 6px;white-space:nowrap;line-height:1.25}
.ts th span{display:block;font-size:11px;color:#8a96a3;font-weight:600}
.ts th.today{background:var(--brand-soft);color:var(--brand)}
.ts th.sun span{color:#c94a4a}
.ts .ts-name{position:sticky;left:0;z-index:1;background:#ffffff;min-width:210px;max-width:240px;text-align:left;border-right:1px solid #eef0f3}
.ts th.ts-name{z-index:3;background:#f4f6f8}
.ts .ts-name a{text-decoration:none}
.ts td{padding:6px;border-bottom:1px solid #f1f3f6}
.ts td.tc{position:relative;min-width:66px;text-align:center;line-height:1.25;border-left:1px solid #f4f5f7}
.tc .ti,.tc .to{display:block;font-variant-numeric:tabular-nums;font-weight:600}
.tc .to{color:#6b7a86;font-weight:500}
.tc .ti.late{color:#c0392b}.tc .to.early{color:#d35400}
.tc em{display:block;font-style:normal;font-size:10.5px;font-weight:700;color:#1f7a4d}
.tc.full{background:#eef8f1}.tc.half{background:#fdf6e7}.tc.bad{background:#fdeeee}.tc.pend{background:#edfdf8}
.tc.abs i{font-style:normal;font-weight:700;color:#c4cbd3}
.tc .pdot,.ts-legend .pdot,.tc .mdot,.ts-legend .mdot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#35dca5}
.tc .mdot,.ts-legend .mdot{background:#e3962e}
.tc .pdot,.tc .mdot{position:absolute;top:4px;right:4px}
.tc .pdot+.mdot{right:13px}
tbody tr:hover td.tc.full{background:#e3f3e8}
.ts-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:#6b7a86}
.ts-legend span{display:inline-flex;align-items:center;gap:6px}
.ts-legend i{display:inline-block;width:14px;height:14px;border-radius:4px}
.ts-legend i.full{background:#dff1e5}.ts-legend i.half{background:#fbeccc}.ts-legend i.bad{background:#fadcdc}.ts-legend i.abs{background:#eef0f3}
.ts-legend .lt{color:#c0392b}.ts-legend .el{color:#d35400}
@media (max-width:640px){.ts .ts-name{min-width:150px}.ts .ts-name .av{display:none}.ts-sum>span:not(.ts-views){padding:7px 10px}}

/* face photo for machines */
.ae-pics{display:flex;gap:18px;justify-content:center}
.ae-pics>div{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:12px;color:#3d4852}
.ae-pic.face{border-radius:16px;border-color:#9fd3b8;background:#ecf8f1}
.ae-pic.face span{color:#1f7a4d}
.ae-photo .ck{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;flex-direction:row}
.ae-photo .ck input{width:16px;height:16px;min-height:0;accent-color:var(--brand)}
.bioph{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.bioph-pic img,.bioph-empty{width:150px;height:190px;border-radius:14px;object-fit:cover;background:#f1f3f6;display:grid;place-items:center;color:#8a96a3;font-size:13px;border:1px solid #e3e7ec}
.bioph-body{flex:1;min-width:260px}
.bioph .btn input{display:none}
.ae-pics .ae-pic{width:112px;height:112px}

/* machines */
.mc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}
.mc-card{display:flex;flex-direction:column;gap:14px;text-decoration:none;color:inherit;padding:18px 20px;transition:box-shadow .15s}
.mc-card:hover{box-shadow:0 0 0 2px var(--brand-soft),0 0 10px 5px rgba(145,158,171,.15)}
.mc-top{display:flex;align-items:center;gap:12px}
.mc-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;flex:none;background:#f1f3f6;color:#8a96a3}
.mc-icon.on{background:#e3f4ea;color:#1f7a4d}.mc-icon.off{background:#fde8e4;color:#b3412a}
.mc-icon svg{width:22px;height:22px}
.mc-nm{flex:1;min-width:0;display:flex;flex-direction:column}
.mc-nm b{font-size:15.5px;color:#2b3640}.mc-nm small{color:#8a96a3;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:#f7f8fa;border-radius:10px;padding:10px}
.mc-stats div,.mc-facts div{display:flex;flex-direction:column;gap:2px}
.mc-stats small,.mc-facts small{font-size:11.5px;color:#8a96a3}
.mc-stats b{font-size:17px;color:#2b3640}
.mc-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px}
.mc-go{margin-left:auto;font-size:18px;color:var(--brand)}
.mc-hero{display:flex;gap:18px;align-items:flex-start;flex-wrap:wrap}
.mc-hero .mc-icon{width:60px;height:60px;border-radius:16px}
.mc-id{flex:1;min-width:240px}.mc-id h1{margin:0}
.mc-facts{display:grid;grid-template-columns:repeat(4,minmax(110px,1fr));gap:12px 18px;flex:2;min-width:300px}
.mc-facts b{font-size:14.5px;color:#2b3640;word-break:break-word}
.mc-acts form{display:flex;gap:8px;flex-wrap:wrap}
.mc-bulk{flex-wrap:wrap}.mc-bulk select{min-height:32px;padding:4px 8px;font-size:13px}
.mc-t input[type=checkbox],.mc-bulk input[type=checkbox]{width:17px;height:17px;min-height:0;accent-color:var(--brand)}
.chip.dim{background:#f1f3f6;color:#8a96a3}
.mc-log summary{cursor:pointer;padding:4px 0}
.mc-log code{font-size:11.5px;white-space:pre-wrap;word-break:break-all;color:#4b5a66}
.mc-raw{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.mc-raw span{background:#f4f6f8;border-radius:6px;padding:5px 9px;font-size:12px;display:flex;flex-direction:column}
.mc-raw small{color:#8a96a3;font-size:10.5px}
@media (max-width:640px){.mc-facts{grid-template-columns:1fr 1fr}.mc-stats{grid-template-columns:1fr 1fr}}

/* office name (Head Office / South Office) */
.office-title{display:flex;flex-direction:column;line-height:1.15;padding-right:14px;margin-right:4px;border-right:1px solid var(--line);white-space:nowrap}
.office-title b{font-size:17px;font-weight:800;color:var(--brand-d);letter-spacing:-.01em}
.office-title small{font-size:11px;color:#8a96a3}
.rail-office{margin:-10px 0 12px;font-size:10.5px;font-weight:800;letter-spacing:.06em;color:#ffffff;background:var(--brand);border-radius:6px;padding:2px 7px}
@media (max-width:640px){.office-title small{display:none}.office-title b{font-size:15px}.office-title{padding-right:10px}}
.lg-office{display:inline-block;margin-bottom:12px;padding:6px 14px;border-radius:8px;background:var(--brand-soft);color:var(--brand-d);font-weight:800;font-size:15px;letter-spacing:.01em}
.mc-mode h2{margin:0 0 12px}
.mc-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mc-opt{display:flex;flex-direction:column;gap:6px;padding:14px 16px;border:2px solid #e3e7ec;border-radius:12px;cursor:pointer;position:relative}
.mc-opt input{position:absolute;opacity:0}
.mc-opt b{font-size:14.5px;color:#2b3640}
.mc-opt span:not(.chip){font-size:13px;color:#6b7a86;line-height:1.45}
.mc-opt.on{border-color:var(--brand);background:var(--brand-soft)}
.mc-opt:focus-within{outline:2px solid var(--brand);outline-offset:2px}
.mc-mail{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.mc-mail h2{margin:0;font-size:15.5px}
.linkbtn{background:none;border:0;color:var(--brand);text-decoration:underline;cursor:pointer;font:inherit;padding:0}
@media (max-width:760px){.mc-modes{grid-template-columns:1fr}}
.ae-mode{padding:12px 14px;border-radius:10px;font-size:13px;line-height:1.5;color:#3d4852}
.ae-mode.portal{background:#ecf8f1;border:1px solid #bfe5cf}
.ae-mode.machine{background:#fff7e6;border:1px solid #f3dcaa}
.mepage{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.me-qr{width:150px;height:150px;flex:none;background:#ffffff;border:1px solid #e3e7ec;border-radius:12px;padding:6px}
.me-qr svg{width:100%;height:100%}
.me-body{flex:1;min-width:260px}
.me-link{display:flex;gap:8px}.me-link input{flex:1;font-size:12.5px;color:#4b5a66;background:#f7f8fa}

/* ===== permanent staff ===== */
.emp .pmain{max-width:760px;margin:0 auto}
.emp-today{display:flex;flex-direction:column;gap:14px}
.emp-date{display:flex;flex-direction:column}.emp-date b{font-size:18px;color:#2b3640}.emp-date span{font-size:13px;color:#6b7a86}
.emp-io{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.emp-io>div{background:#f3fdfa;border-radius:12px;padding:12px 14px}
.emp-io small{display:block;color:#6b7a86;font-size:12px}.emp-io b{font-size:24px;color:#2b3640}
.emp-io .ok b{color:#16794a}.emp-io em{display:inline-block;margin-top:4px;font-style:normal;font-size:12px;font-weight:700;color:#b3412a}
.emp-big{width:100%;min-height:64px;font-size:19px;border-radius:14px;background:linear-gradient(135deg,#16794a,#1aa37a);border-color:#16794a}
.emp-big.out{background:linear-gradient(135deg,#169a6e,#35dca5);border-color:#169a6e}
.emp-big:disabled{opacity:.75}
.emp-log{display:flex;flex-wrap:wrap;gap:6px}.emp-log span{font-size:12px;background:#f4f6f8;border-radius:6px;padding:4px 8px;color:#4b5a66}
.emp-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:8px;text-align:center}
.emp-stats div{background:#f3fdfa;border-radius:12px;padding:10px 4px}.emp-stats b{display:block;font-size:20px;color:#2b3640}.emp-stats small{font-size:11.5px;color:#6b7a86}
.emp-cut{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:12px}
.emp-cut div{display:flex;justify-content:space-between;gap:8px;padding:9px 12px;border-radius:10px;background:#fbf7f1;font-size:13px}
.emp-cut .tot{background:#fde8e4;color:#7a2a1a}
.emp-months{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px}
.emp-months a{flex:none;padding:7px 14px;border-radius:20px;background:#ffffff;color:#4b5a66;text-decoration:none;font-weight:600;font-size:13px;box-shadow:0 2px 8px -6px rgba(0,0,0,.3)}
.emp-months a.on{background:var(--brand-d);color:#ffffff}
.emp-leave{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.emp-leave div{background:#f3fdfa;border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.emp-leave b{font-size:13.5px;color:#2b3640}.emp-leave .big{font-size:26px;font-weight:800;color:var(--brand-d)}.emp-leave small{font-size:12px;color:#6b7a86}
.emp-team{display:flex;flex-direction:column}.emp-team>div{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:10px 0;border-bottom:1px solid #f0f1f4}
.emp-team small{grid-column:1;color:#8a96a3;font-size:12px}.emp-team span{grid-row:1/3;grid-column:2;align-self:center;font-size:13px}
.emp-days td{vertical-align:middle}
.emp-form .fgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.emp-form .ck{flex-direction:row!important;align-items:center;gap:8px}
@media (max-width:560px){.emp-form .fgrid{grid-template-columns:1fr}.emp-form .span3{grid-column:auto}}
.staff-sum h2{display:flex;gap:10px;align-items:center}
.staff-edit .card{margin-bottom:0}
.ae-type .seg span{padding:10px 16px}
/* salary slip */
.slip-staff{background:#ffffff;border:1px solid #e3e7ec;border-radius:12px;padding:18px 20px;font-size:13.5px;color:#2b3640}
.ss-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--brand-d);padding-bottom:10px;margin-bottom:12px}
.ss-head b{font-size:18px;display:block}.ss-head small{color:#6b7a86}.ss-m{font-size:16px;font-weight:800;color:var(--brand-d)}
.ss-who{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:12px}.ss-who small{display:block;color:#8a96a3;font-size:11px}.ss-who b{font-size:13.5px}
.ss-att{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:#4b5a66;background:#f7f8fa;border-radius:8px;padding:8px 10px;margin-bottom:12px}
.ss-t{width:100%;border-collapse:collapse}.ss-t th{background:#f0fbf7;text-align:left;padding:7px 10px;font-size:12.5px}.ss-t td{padding:7px 10px;border-bottom:1px solid #f0f1f4}
.ss-t .num{text-align:right}.ss-t tr.net td{font-size:15px;background:#ecf8f1;border-top:2px solid #16794a}
.ss-foot{color:#8a96a3;font-size:11.5px;margin:10px 0 0}
@media (max-width:560px){.ss-who{grid-template-columns:1fr 1fr}}
/* geofences */
.fence-grid{display:grid;grid-template-columns:minmax(280px,380px) 1fr;gap:16px;align-items:stretch}
.fence-grid .fl{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;margin-bottom:10px}
.fence-grid input[type=range]{accent-color:var(--brand)}
#fmap{height:100%;min-height:420px;border-radius:10px}
@media (max-width:900px){.fence-grid{grid-template-columns:1fr}#fmap{min-height:320px}}
/* staff payroll */
.sp-adj{display:flex;gap:4px;flex-wrap:wrap}.sp-adj input{width:92px;min-height:32px;padding:4px 8px;font-size:12.5px}.sp-adj input:last-child{width:120px}
.sp-t td{vertical-align:middle}
.ws-switch{display:inline-flex;background:#f1f3f6;border-radius:9px;padding:3px;gap:2px;margin-right:8px}
.ws-switch a{padding:7px 16px;border-radius:7px;text-decoration:none;font-weight:700;font-size:13.5px;color:#6b7a86}
.ws-switch a.on{background:#ffffff;color:var(--brand-d);box-shadow:0 1px 4px rgba(0,0,0,.12)}
@media (max-width:640px){.ws-switch a{padding:6px 10px;font-size:12.5px}}

/* ===== staff app (installable) ===== */
.emp-map{position:relative;border-radius:16px;overflow:hidden;border:1px solid #e3e7ec;background:#eef0f3}
#emap{height:min(46vh,380px);width:100%}
.emap-off{display:grid;place-items:center;height:100%;color:#6b7a86;font-size:13px;padding:20px;text-align:center}
.emap-st{position:absolute;left:10px;right:56px;top:10px;z-index:500;border-radius:12px;padding:10px 14px;font-weight:700;font-size:14px;box-shadow:0 4px 14px -6px rgba(0,0,0,.35);background:#ffffff;color:#4b5a66}
.emap-st.ok{background:#16794a;color:#ffffff}.emap-st.bad{background:#ffffff;color:#b3412a;border:2px solid #f3c2b7}.emap-st.wait{background:#ffffff;color:#6b7a86}
.emap-me{position:absolute;right:10px;top:10px;z-index:500;width:40px;height:40px;border-radius:12px;border:0;background:#ffffff;font-size:20px;color:#2f6fed;box-shadow:0 4px 14px -6px rgba(0,0,0,.35);cursor:pointer}
.emap-tip{font-weight:700;font-size:11.5px}
.emp-big:disabled{background:#c7cbd3!important;border-color:#c7cbd3!important;opacity:1}
.app-install{display:flex;align-items:center;gap:12px;background:#ffffff;border-radius:14px;padding:10px 12px;box-shadow:0 6px 20px -12px rgba(20,90,67,.4);margin-bottom:12px;border:1px solid #e6fbf4}
.app-install img{width:42px;height:42px;border-radius:10px}
.app-install div{flex:1;display:flex;flex-direction:column}.app-install small{color:#6b7a86;font-size:12px}
.app-x{border:0;background:none;font-size:22px;color:#8a96a3;cursor:pointer;padding:0 4px}
.emp-tabbar a{display:inline-flex;align-items:center;gap:6px}
.emp-tabbar svg{width:18px;height:18px}
@media (max-width:700px){
  body.emp{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  body.emp .sup-top{padding-top:calc(10px + env(safe-area-inset-top))}
  .emp-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:1000;display:flex;justify-content:space-around;background:#ffffff;border-top:1px solid #e3e7ec;padding:6px 4px calc(6px + env(safe-area-inset-bottom));margin:0;overflow:visible;box-shadow:0 -6px 18px -12px rgba(0,0,0,.25)}
  .emp-tabbar a{flex:1;flex-direction:column;gap:2px;font-size:10.5px;padding:4px 2px;border:0!important;border-radius:10px;text-align:center;position:relative;min-width:0;color:#6b7a86}
  .emp-tabbar a.on{color:var(--brand-d);background:var(--brand-soft)}
  .emp-tabbar svg{width:22px;height:22px}
  .emp-tabbar .side-badge{position:absolute;top:0;right:14%;margin:0}
  .emp-big{position:sticky;bottom:calc(80px + env(safe-area-inset-bottom));z-index:900}
}
.app-card{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.app-card>div:last-child{flex:1;min-width:260px}
.emp-form .ck input[type=checkbox],.fgrid label.ck input[type=checkbox]{width:18px!important;height:18px;min-height:0!important;flex:none;accent-color:var(--brand)}.fgrid label.ck{flex-direction:row!important;align-items:center;justify-content:flex-start}
.fpick #fmap2{height:260px;width:100%}
.fopt{display:flex;gap:6px;align-items:center;margin-top:6px}.fopt select,.fopt input{min-height:30px;padding:3px 6px;font-size:12.5px}.fopt input{width:80px}

/* ================= Accounts ================= */
.acc-t td{white-space:normal}
.acc-t td.nowrap,.acc-t td.num{white-space:nowrap}
.acc-t .num,th.num{text-align:right}
.acc-t tr.grp td{background:#f5fcfa;font-weight:700;color:#2b3640;font-size:12.5px;letter-spacing:.02em}
.acc-t tr.tot td{font-weight:800;color:#2b3640;border-top:2px solid #d9dee6;background:#fbfbfd}
.acc-t tr.tot.net td{background:#eafcf6;color:var(--brand-d)}
.acc-t tr.sub td{font-weight:600;border-top:1px solid #e3e7ec}
.acc-t tr.dim td{opacity:.55}
.acc-t tr.vfirst td{border-top:1px solid #dfe3ea}
.neg{color:var(--bad)!important}.okc{color:var(--ok)}
.acc-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.acc-tiles.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.acc-tile{position:relative;display:flex;flex-direction:column;gap:2px;padding:16px 18px;border-radius:10px;background:#ffffff;border:1px solid var(--line);border-left:4px solid #16a085;text-decoration:none;color:inherit;box-shadow:0 1px 2px rgba(16,24,40,.04)}
.acc-tile small{font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#6b7a86}
.acc-tile b{font-size:clamp(20px,2vw,26px);font-weight:800;color:#2b3640;letter-spacing:-.01em}
.acc-tile span{font-size:12.5px;color:#8a97a3}
a.acc-tile:hover{box-shadow:0 4px 14px rgba(16,24,40,.08)}
.acc-tile.t1{border-left-color:#35dca5}.acc-tile.t2{border-left-color:#1aa37a}.acc-tile.t3{border-left-color:#e0475b}
.acc-tile.t4{border-left-color:#2f80ed}.acc-tile.t5{border-left-color:#f2994a}.acc-tile.t6{border-left-color:#27ae60}.acc-tile.t7{border-left-color:#51e0b1}
.acc-bars{display:flex;align-items:flex-end;gap:8px;height:190px;padding:10px 4px 0}
.acc-bar{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;text-decoration:none}
.acc-bar span{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.acc-bar i{display:block;width:42%;max-width:16px;border-radius:4px 4px 0 0;min-height:2px}
.acc-bar i.in,.hleg i.in{background:#1aa37a}.acc-bar i.out,.hleg i.out{background:#e0475b}
.acc-bar small{font-size:11.5px;color:#8a97a3}
.hleg{display:flex;gap:6px;align-items:center;font-size:12.5px;color:#6b7a86}.hleg i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-left:8px}
.acc-heads{display:flex;flex-direction:column;gap:10px}
.acc-heads div{display:grid;grid-template-columns:1fr auto;gap:2px 10px;font-size:13.5px}
.acc-heads i{grid-column:1/-1;height:6px;border-radius:6px;background:linear-gradient(90deg,#35dca5,#8fefcf)}
.meter i{display:block;height:100%;background:#1aa37a;border-radius:999px}.meter i.bad{background:#e0475b}
.rep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.rep-card{display:flex;flex-direction:column;gap:4px;text-decoration:none;color:inherit;padding:18px 20px;border-left:4px solid var(--brand)}
.rep-card b{font-size:15px;color:#2b3640}
.rep-card:hover{box-shadow:0 4px 14px rgba(16,24,40,.08)}
.filters{padding:12px 16px;align-items:center}
.filters input,.filters select{min-height:38px}
label.inl{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:#6b7a86}
.seg a{padding:7px 14px;border-radius:9px;text-decoration:none;color:#4b5a66;font-weight:600;font-size:13.5px}
.seg a.on{background:#ffffff;color:var(--brand-d);box-shadow:0 1px 3px rgba(16,24,40,.1)}
.vt-seg{margin-bottom:14px;flex-wrap:wrap}
.vlines td{padding:6px 8px}
.vlines input,.vlines select{width:100%;min-height:36px}
.vlines input.num{text-align:right;min-width:110px}
.vlines input.bad{border-color:var(--bad);background:#fff6f6}
.vlines .iconbtn{width:30px;height:30px;border-radius:8px;border:1px solid var(--line);background:#ffffff;cursor:pointer;font-size:18px;line-height:1;color:#8a97a3}
.vded{margin-top:14px;padding:14px 16px;border-radius:10px;background:#f8fefc;border:1px dashed #cdf6e8}
.vded h3{margin:0 0 10px;font-size:14px;color:#2b3640}
.vnet{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:12px;font-size:13.5px;color:#6b7a86}
.vnet b{color:#2b3640}.vnet .big{margin-left:auto;font-size:16px}.vnet .big b{color:var(--brand-d);font-size:18px}
.vp-meta{display:flex;flex-wrap:wrap;gap:12px 32px}
.vp-meta small{display:block;font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:#8a97a3;font-weight:700}
.acc-age{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.acc-age div{background:#f7f8fa;border-radius:8px;padding:10px 12px}.acc-age small{display:block;color:#8a97a3;font-size:12px}.acc-age b{font-size:17px;color:#2b3640}
.vprint{max-width:190mm;margin:0 auto;padding:10mm 0;font-size:13px;color:#1f2a37}
.vp-head{display:flex;justify-content:space-between;align-items:flex-end;border-bottom:3px solid #169a6e;padding-bottom:10px;margin-bottom:14px}
.vp-head b{font-size:20px;display:block}.vp-head small{color:#6b7a86}.vp-t{text-align:right}
.vp-lines{margin-top:14px;font-size:13px}.vp-lines th{background:#eafcf6}.vp-lines td{white-space:normal;padding:8px 10px;border-bottom:1px solid #e5e7eb}.vp-lines .num{text-align:right}
.vp-lines tr.tot td{font-weight:800;border-top:2px solid #333333}
.vp-words,.vp-nar{margin-top:12px}.vp-words small,.vp-nar small{display:block;color:#8a97a3;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.vp-sign{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:60px}.vp-sign div{border-top:1px solid #333333;padding-top:6px;font-size:12px;color:#4b5a66}
@media (max-width:1100px){.acc-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.acc-tiles,.acc-tiles.three{grid-template-columns:1fr}.acc-age{grid-template-columns:repeat(2,1fr)}.acc-bars{height:150px}}
@media print{.rail,.side,.topbar,.strip,.noprint,.side-scrim{display:none!important}.shell{margin:0!important}.page{padding:0!important}.card{box-shadow:none;border:1px solid #dddddd}}
.acc-t a b{white-space:nowrap}
.vform textarea{font:inherit;width:100%}
.emp-acc{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.emp-acc a{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:10px;text-decoration:none;color:inherit;background:#ffffff}
.emp-acc a:hover{box-shadow:0 4px 14px rgba(16,24,40,.08)}
.emp-acc small{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#6b7a86}.emp-acc b{font-size:18px;color:#2b3640}.emp-acc span{font-size:12px;color:#8a97a3}
#tplt input,#tplt select{min-height:34px}

/* ===== employee (staff app) sign-in ===== */
body.elg{margin:0;min-height:100vh;background:radial-gradient(1200px 600px at 10% -10%,#4ae5b2 0,#169a6e 45%,#0f674a 100%);font-family:'Manrope',system-ui,sans-serif;color:#1f2937}
.elg-wrap{max-width:440px;margin:0 auto;padding:28px 18px 24px;min-height:100vh;box-sizing:border-box;display:flex;flex-direction:column;gap:18px}
.elg-top{display:flex;align-items:center;gap:12px;color:#ffffff}.elg-top b{display:block;font-size:18px}.elg-top small{opacity:.8;font-size:13px}
.elg-logo{width:52px;height:52px;border-radius:14px;box-shadow:0 6px 18px rgba(0,0,0,.25)}
.elg-card{background:#ffffff;border-radius:20px;padding:20px 20px 16px;box-shadow:0 20px 50px rgba(8,52,38,.35)}
.elg-tabs{display:flex;background:#effbf7;border-radius:12px;padding:4px;margin-bottom:16px}.elg-tabs a{flex:1;text-align:center;padding:9px 6px;border-radius:9px;text-decoration:none;color:#5b4b7a;font-weight:600;font-size:13.5px}
.elg-tabs a.on{background:#ffffff;color:#169a6e;box-shadow:0 1px 4px rgba(22,154,110,.15)}
.elg-form h1{font-size:22px;margin:4px 0 4px;color:#164032}.elg-form .muted{margin:0 0 14px;font-size:13.5px}
.elg-form .lg-f{display:block;margin-bottom:12px}.elg-form .lg-f>span{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:#374151}
.elg-form .lg-f small{display:block;margin-top:5px;font-size:12px}
.elg-foot{text-align:center;color:rgba(255,255,255,.7);font-size:12px;margin-top:auto}
.lg-switch{display:flex;align-items:center;gap:10px;margin-top:14px;padding:12px 14px;border:1px dashed #cdf3e6;border-radius:12px;text-decoration:none;color:#3b6b5b;font-size:13px;background:#f8fefc}
.lg-switch svg{width:22px;height:22px;flex:0 0 22px;color:#169a6e}.lg-switch b{color:#164032}

/* ===== staff app: check-ins kept on the phone without internet ===== */
.emp-off{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#fff6e5;border:1px solid #f3d9a4;color:#6b4a00;font-size:13px;line-height:1.45}
.emp-oq{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#eef4ff;border:1px solid #c9d9fb;color:#1f3b73;font-size:13px;display:flex;flex-direction:column;gap:4px}
.emp-oq span{font-weight:600}.emp-oq span::before{content:"⏳ "}.emp-oq small{color:#4d6390;font-size:12px}
.flash.warn{background:#fff6e5;border-color:#f3d9a4;color:#6b4a00}
.btn.danger{background:#b42318;border-color:#b42318;color:#ffffff}.btn.danger:hover{background:#912018}

/* ===== approval hierarchy ===== */
.aflow-h{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:10px}.aflow-n{flex:1;min-width:200px;font-weight:700;font-size:15px}
.aflow-steps{margin:8px 0 0;padding-left:22px;display:flex;flex-direction:column;gap:6px}.aflow-steps li{display:flex;gap:8px;flex-wrap:wrap}.aflow-steps select{max-width:280px}
.aflow-dept,.aflow-emp{margin-top:8px;display:flex;flex-direction:column;gap:4px}.aflow-dept[hidden],.aflow-emp[hidden],.aflow-k[hidden]{display:none}
.aflow label.row,.aflow-dept label{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;font-weight:500;font-size:13.5px;margin:0}
.aflow input[type=checkbox]{width:16px!important;height:16px!important;min-height:0!important;margin:0;padding:0;flex:0 0 16px;box-shadow:none}
.aflow-dept{align-items:flex-start}.aflow .fgrid{margin-bottom:12px}

/* ===== staff app polish ===== */
header.emp-top{padding:12px 14px calc(12px) 14px;background:linear-gradient(120deg,#138861,#28d99f)}
header.emp-top .av{width:42px;height:42px;border:2px solid rgba(255,255,255,.7);flex:0 0 42px}
header.emp-top .sup-brand b{font-size:16.5px}header.emp-top .sup-brand small{display:block;color:#ddfaf0;font-size:12px;line-height:1.35}
header.emp-top .emp-hello{color:#bdf6e3!important;font-size:11.5px!important;text-transform:uppercase;letter-spacing:.06em;font-weight:700}
.emp-out{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#ffffff;background:rgba(255,255,255,.14);flex:0 0 40px}
.emp-out svg{width:20px;height:20px}.emp-out:active{background:rgba(255,255,255,.25)}
.emp-form .seg{display:grid;grid-template-columns:repeat(4,1fr);width:100%;box-sizing:border-box}
.emp-form .seg span{padding:9px 4px;text-align:center;font-size:13.5px}
.emp-reqs{padding:0 0 6px}.emp-reqs .card-h{padding:16px 16px 6px}
.emp-filter{display:flex;gap:6px;padding:0 16px 10px;border-bottom:1px solid #eef0f4}
.emp-filter a{padding:6px 12px;border-radius:20px;background:#f1faf7;color:#5b4b7a;text-decoration:none;font-weight:600;font-size:13px}
.emp-filter a.on{background:var(--brand-d,#169a6e);color:#ffffff}.emp-filter em{font-style:normal;background:#ffffff;color:#169a6e;border-radius:10px;padding:0 6px;margin-left:4px;font-size:11.5px}
.rq-card{display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid #f0f1f5}.rq-card:last-of-type{border-bottom:0}
.rq-ic{width:36px;height:36px;border-radius:10px;background:#f1faf7;display:grid;place-items:center;font-size:17px;flex:0 0 36px}
.rq-card.ok .rq-ic{background:#e8f6ee}.rq-card.bad .rq-ic{background:#fdecea}.rq-card.warn .rq-ic{background:#fff6e5}
.rq-b{flex:1;min-width:0}.rq-t{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.rq-t b{font-size:14px;line-height:1.35}
.rq-t .chip{flex:none;white-space:nowrap}
.rq-r{margin-top:4px;font-size:13.5px;color:#374151;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.rq-m{margin-top:4px;font-size:12px;color:#8a94a3}.rq-x{margin-top:8px}
.emp-empty{padding:22px 16px;color:#8a94a3;text-align:center;font-size:14px}
.emp-more{display:block;text-align:center;padding:12px;font-weight:700;color:#169a6e;text-decoration:none;border-top:1px solid #f0f1f5}
.emp-days{width:100%}.emp-days td:last-child{white-space:normal}.emp-days td:last-child .chip{display:inline-block;margin:2px 2px 2px 0}
.emp-days td:last-child a.sm{display:inline-block;margin-top:2px}
.slip-t{width:100%;border-collapse:collapse;margin-top:10px}.slip-t td,.slip-t th{padding:10px 12px;text-align:left}.slip-t .r{text-align:right;white-space:nowrap}
.slip-t th[colspan]{background:#f4fbf9;color:#3b6b5b;font-size:12.5px;text-transform:uppercase;letter-spacing:.05em}
.slip-t tr+tr td{border-top:1px solid #f0f1f5}.slip-t tr.net th{background:#169a6e;color:#ffffff;font-size:16px}
.emp-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
@media (max-width:420px){.emp-days th:nth-child(2),.emp-days td:nth-child(2){font-size:13px}.emp-days td,.emp-days th{padding:10px 8px}}
/* staff requests (office) */
.sr-t td{vertical-align:top}.sr-reason{min-width:200px;max-width:320px}.sr-reason>div{overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:4px}
.sr-chain{min-width:150px}.sr-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:3px}
.sr-steps li{position:relative;padding-left:18px;font-size:12.5px;color:#8a94a3;white-space:nowrap}
.sr-steps li::before{content:"○";position:absolute;left:0;top:0;font-size:12px}
.sr-steps li.ok{color:#1f7a45}.sr-steps li.ok::before{content:"✓";font-weight:800}
.sr-steps li.bad{color:#b42318}.sr-steps li.bad::before{content:"✗";font-weight:800}
.sr-steps li.now{color:#92400e;font-weight:700}.sr-steps li.now::before{content:"●";color:#f59e0b}
.sr-t td{white-space:normal}.sr-t td:nth-child(3){min-width:170px;max-width:230px}.sr-t td:last-child{min-width:110px}
.sr-t td:last-child .chip{white-space:nowrap}
/* staff payroll: adjustments on one line */
.sp-adj{display:grid!important;grid-template-columns:86px 86px minmax(110px,1fr);gap:6px;align-items:center;min-width:300px}
.sp-adj input{width:100%!important;min-width:0;height:34px;padding:4px 8px;font-size:13px;margin:0}
.sp-adj{grid-template-columns:70px 70px 96px;min-width:248px}
.sp-t td:first-child{white-space:normal;min-width:170px;max-width:230px}.sp-t th,.sp-t td{padding-left:10px;padding-right:10px}
#sched label.row{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:8px;font-weight:600;font-size:14px;margin:0}
#sched input[type=checkbox]{width:18px!important;height:18px!important;min-height:0!important;margin:0;padding:0;flex:0 0 18px;box-shadow:none}
.sp-adj{grid-template-columns:76px 76px 96px;min-width:260px}
.sp-pchip{display:inline-block;margin-top:5px;text-decoration:none;font-size:12px}.sp-pend td{background:#fffcf3}

/* ===== employee cards: white card, photo left, name / code / designation, three facts below ===== */
.emp-grid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}
.emp-card{border:1px solid #eef0f4;border-radius:10px;box-shadow:0 1px 3px rgba(16,24,40,.06)}
.emp-card .emp-top{background:none;padding:22px 22px 18px;gap:16px;align-items:center;border-bottom:1px solid #eef0f4}
.emp-card .emp-av .av.lg{width:64px;height:64px;font-size:22px;background:#2a7f8a;color:#ffffff;box-shadow:none}
.emp-card .emp-av .av.lg img{border-radius:50%}
.emp-card .emp-av .dot{width:15px;height:15px;right:0;bottom:0;box-shadow:0 0 0 2.5px #ffffff}
.emp-card .emp-who{gap:4px}
.emp-card .emp-who b{font-size:17px;font-weight:500;color:#1f2937}
.emp-card .emp-who span,.emp-card .emp-who small{font-size:14.5px;color:#6b7280}
.emp-card .emp-go{font-size:20px;color:#374151;align-self:center}
.emp-card .emp-meta{grid-template-columns:1fr 1.15fr 1.1fr;gap:6px;padding:14px 16px 16px}
.emp-card .emp-meta div,.emp-card .emp-meta div:nth-child(2),.emp-card .emp-meta div:last-child{text-align:center}
.emp-card .emp-meta small{font-size:13.5px;color:#6b7280;margin-bottom:6px}
.emp-card .emp-meta b{font-size:14.5px;font-weight:400;color:#1f2937}
.emp-card.inactive .emp-who b::after{content:" · inactive";color:#b91c1c;font-size:12.5px;font-weight:500}

.emp-card .emp-who b{white-space:normal;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.emp-card .emp-meta{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;column-gap:10px}
.emp-card .emp-meta b{white-space:normal;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.emp-card .emp-meta div:last-child b{white-space:nowrap;display:block}

/* ===== staff app: the check-in map opens in a sheet, only when he taps Check in ===== */
.emp-sheet{position:fixed;inset:0;z-index:1000;display:flex;align-items:flex-end;justify-content:center}
.emp-sheet[hidden]{display:none}
.emp-sheet-bg{position:absolute;inset:0;background:rgba(15,23,42,.45);animation:shFade .2s ease}
.emp-sheet-card{position:relative;width:100%;max-width:560px;background:#ffffff;border-radius:20px 20px 0 0;padding:14px 16px calc(18px + env(safe-area-inset-bottom));box-shadow:0 -12px 40px rgba(15,23,42,.25);animation:shUp .25s ease}
.emp-sheet-h{display:flex;align-items:center;justify-content:space-between;margin:0 0 10px}.emp-sheet-h b{font-size:17px}
.emp-sheet-x{width:36px;height:36px;border-radius:50%;border:0;background:#f1f5f9;font-size:22px;line-height:1;color:#334155;cursor:pointer}
.emp-sheet .emp-map{margin:0 0 12px}.emp-sheet #emap{height:min(52vh,380px)}
body.sheet-open{overflow:hidden}
@media (min-width:700px){.emp-sheet{align-items:center}.emp-sheet-card{border-radius:20px}}
@keyframes shUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}@keyframes shFade{from{opacity:0}to{opacity:1}}

/* geofence: who can check in here */
.fw-mode{display:flex;gap:16px;flex-wrap:wrap;font-weight:500}.fw-mode label{display:flex;align-items:center;gap:6px;cursor:pointer}.fw-mode input{width:auto;margin:0}
.fw-box{border:1px solid var(--line,#e3e6ea);border-radius:10px;margin-top:6px;overflow:hidden}.fw-box[hidden]{display:none}
.fw-tools{display:flex;gap:6px;flex-wrap:wrap;padding:8px;background:#f7f8fa;border-bottom:1px solid var(--line,#e3e6ea)}.fw-tools .fw-q{flex:1;min-width:120px}.fw-tools select{max-width:150px}
.fw-list{max-height:260px;overflow:auto}
.fw-e{display:flex;align-items:center;gap:9px;padding:7px 10px;border-bottom:1px solid #f0f1f3;cursor:pointer;font-weight:400}.fw-e[hidden]{display:none}.fw-e:hover{background:#f8fefc}
.fw-e input{width:16px;height:16px;margin:0;flex:none;accent-color:var(--brand)}.fw-e small{display:block;font-size:11.5px}.fw-e b{font-size:13px}
.fw-av{width:28px;height:28px;border-radius:50%;background:#e8fcf5;color:#35dca5;display:grid;place-items:center;font-weight:700;font-size:12px;flex:none}
.fw-n{color:var(--brand)}.fw-flash{animation:fwf 1.6s ease}#femps{padding:6px;margin-left:-6px;margin-right:-6px}@keyframes fwf{0%,40%{box-shadow:0 0 0 3px #b2f2dd;border-radius:10px}100%{box-shadow:none}}
.fw-chips{display:flex;flex-wrap:wrap;gap:4px;max-width:340px}.fw-chip{display:inline-flex;align-items:center;gap:2px;background:#e8fcf5;color:#21926d;border-radius:999px;padding:2px 4px 2px 9px;font-size:12px;margin:0}
.fw-chip button{border:0;background:none;color:#5cc4a2;cursor:pointer;font-size:14px;line-height:1;padding:0 4px;border-radius:50%}.fw-chip button:hover{background:#cef8ea;color:#16805d}
.lg-note{display:flex;align-items:flex-start;gap:10px;background:#eefdf8;color:#16805d;border:1px solid #cef8ea;border-radius:12px;padding:12px 14px;font-weight:500;font-size:14px;line-height:1.45;margin-bottom:18px}.lg-note svg{width:20px;height:20px;flex:none;margin-top:1px}
/* Staff › Devices */
.dv-rule{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 18px}
.dv-sw{display:flex;align-items:center;gap:12px;cursor:pointer}.dv-sw input{display:none}.dv-sw i{width:42px;height:24px;border-radius:999px;background:#d6d9de;position:relative;flex:none;transition:.2s}
.dv-sw i:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#ffffff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
.dv-sw input:checked+i{background:var(--brand)}.dv-sw input:checked+i:after{left:21px}.dv-sw small{display:block;font-weight:400}
.dv-n{font-style:normal;opacity:.7;margin-left:3px}
.dv-dev{display:flex;align-items:center;gap:9px;padding:2px 0}.dv-dev small,.dv-req small{display:block;font-size:12px}.dv-ic{font-size:18px}.dv-x{margin-left:auto}
.dv-req{background:#fff8eb;border:1px solid #f3dcae;border-radius:10px;padding:8px 10px;max-width:320px}
.dv-hist>td{background:#fafbfc;padding:8px 14px 12px}.dv-ht{width:100%;font-size:13px}.dv-ht th{font-size:12px;background:none}
.dv-t td:last-child{white-space:normal;width:150px}.dv-t td:last-child .btn,.dv-t td:last-child form{display:block;width:100%;margin:3px 0;text-align:center}
.dv-req{max-width:260px}.dv-ht td:last-child{width:auto}
.ri-pick{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-bottom:1px solid #f0f1f3;cursor:pointer}.ri-pick input{width:18px;height:18px;margin-top:2px;flex:none;accent-color:var(--brand)}.ri-pick small{display:block;margin-top:2px}
.fw-chip.fw-away{background:#f1f2f4;color:#6b7280;padding:2px 9px;font-style:italic}
.fz-h{display:flex;align-items:center;gap:8px;margin:6px 0 4px;font-size:13px}.ae-sites .ck.fz-on{background:#eefdf8;border-radius:8px}
/* Assistant */
.ag-wrap{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}@media(max-width:1000px){.ag-wrap{grid-template-columns:1fr}}
.ag-chat{display:flex;flex-direction:column;height:calc(100vh - 230px);min-height:460px;padding:0;overflow:hidden}
.ag-log{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:10px;background:#fafbfc}
.ag-m{max-width:85%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.5}.ag-m p{margin:0 0 6px}.ag-m p:last-child{margin:0}.ag-m ul,.ag-m ol{margin:4px 0 6px;padding-left:20px}
.ag-m table{font-size:13px;margin:6px 0}.ag-m th,.ag-m td{padding:4px 8px}
.ag-m.me{align-self:flex-end;background:var(--brand);color:#ffffff;border-bottom-right-radius:4px;white-space:pre-wrap}
.ag-m.bot{align-self:flex-start;background:#ffffff;border:1px solid #e8eaee;border-bottom-left-radius:4px}
.ag-m.err{align-self:flex-start;background:#fdecec;color:#991b1b;border:1px solid #f5c6c6}
.ag-m.done{align-self:flex-start;background:#e8f7ef;color:#0f6b43;border:1px solid #bfe7d1;font-weight:600}
.ag-m.confirm{align-self:flex-start;background:#fff8eb;border:1px solid #f3dcae;max-width:90%}.ag-ch{margin-top:6px;padding:8px 10px;background:#ffffff;border-radius:8px;border:1px solid #f1e3c4}
.ag-hello{margin:auto;text-align:center;max-width:560px;color:#4b5563}.ag-sugg{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:12px}.ag-sugg .chip{cursor:pointer;border:1px solid #d8f9ee;background:#f3fdfa;color:#21926d;padding:6px 12px;font-size:13px}
.ag-in{display:flex;gap:8px;padding:12px;border-top:1px solid #eceef2;background:#ffffff}.ag-in textarea{flex:1;resize:none;border:1px solid #dfe2e7;border-radius:12px;padding:10px 12px;font:inherit;font-size:14px;max-height:140px}
.ag-foot{display:flex;justify-content:space-between;align-items:center;padding:0 12px 10px;background:#ffffff}
.ag-dots i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8bdac0;margin:0 2px;animation:agd 1s infinite}.ag-dots i:nth-child(2){animation-delay:.15s}.ag-dots i:nth-child(3){animation-delay:.3s}@keyframes agd{0%,80%,100%{opacity:.25}40%{opacity:1}}
.ag-act{border-top:1px solid #f0f1f3;padding:8px 0;font-size:13px}.ag-act:first-of-type{border-top:0}.ok-t{color:#0f6b43}
.ag-side .fl{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;margin-bottom:10px}.ag-side input[type=password],.ag-side select{width:100%;box-sizing:border-box}
.ag-side label.row{display:flex;align-items:center;font-weight:400}
/* staff app: notifications */
.emp-bell{position:relative;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;color:#ffffff;background:rgba(255,255,255,.14);margin-left:auto;margin-right:6px}.emp-bell svg{width:20px;height:20px}
.emp-bell em{position:absolute;top:-4px;right:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#ef4444;color:#ffffff;font:700 11px/18px system-ui;text-align:center;font-style:normal}
.emp-bell.on{background:rgba(255,255,255,.28)}
.push-ask .push-ic{font-size:26px;line-height:1}
.push-state{font-size:14px;line-height:1.5}
.note-list .note-i{display:flex;gap:10px;padding:12px 16px;border-bottom:1px solid #f0f1f3}.note-list .note-i:last-child{border-bottom:0}
.note-i p{margin:2px 0 4px;font-size:14px;color:#374151}.note-i b{font-size:14.5px}.note-dot{width:8px;height:8px;border-radius:50%;margin-top:7px;flex:none;background:transparent}.note-i.new .note-dot{background:#43e4af}.note-i.new{background:#f8fefc}
.emp .nt-ck{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;font-weight:500;font-size:15px;margin:10px 0}.emp .nt-ck input{width:20px!important;height:20px;margin:0;flex:none;accent-color:#169a6e}
.emp-big.emp-done,.emp-big.emp-done:disabled{background:#e6f1ed!important;color:#7b7590!important;box-shadow:none!important;cursor:not-allowed;filter:saturate(.4);opacity:.85;border-color:transparent!important}
.bad-t{color:#b91c1c}
.sp-cutb{border:1px solid #d8f9ee;background:#f3fdfa;color:#21926d;border-radius:8px;padding:3px 9px;font:inherit;font-weight:700;cursor:pointer}.sp-cutb.on{background:#21926d;color:#ffffff}
.sp-cuts>td{background:#fbfaff;padding:6px 14px 12px!important}.sp-ct{width:auto;min-width:520px;max-width:760px;font-size:13px;border-collapse:collapse}.sp-ct td:nth-child(2){white-space:normal}.sp-ct th{background:none;font-size:12px;color:#6b7280;text-align:left}.sp-ct td,.sp-ct th{padding:4px 8px;border-bottom:1px solid #edf7f4}
.slip-cuts ul{margin:4px 0 0;padding-left:18px;font-size:12.5px}.slip-cuts li{margin:2px 0}
.br-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;align-items:start}
.br-tab{display:inline-flex;align-items:center;gap:8px;background:#eef0f4;border-radius:10px 10px 0 0;padding:8px 14px;font-size:13px;min-width:220px;border:1px solid #dfe2e7;border-bottom:0}.br-tab img{width:16px;height:16px}.br-tab i{margin-left:auto;font-style:normal;color:#8a8f98}
.br-sizes{display:flex;gap:22px;align-items:flex-end;margin:16px 0 6px}.br-sizes figure{margin:0;text-align:center}.br-sizes figcaption{font-size:11.5px;color:#6b7280;margin-top:4px}.br-sizes img{display:block;margin:0 auto;background:repeating-conic-gradient(#f1f1f1 0 25%,#ffffff 0 50%) 50%/12px 12px;border-radius:8px}
/* staff dashboard: tile details */
.tile.on{outline:2px solid #169a6e;outline-offset:2px}
.sd-tbl{width:100%;border-collapse:collapse;font-size:14px}
.sd-tbl th{text-align:left;font-size:12px;font-weight:600;color:#6b7a86;text-transform:uppercase;letter-spacing:.03em;padding:10px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.sd-tbl td{padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:middle;white-space:nowrap}
.sd-tbl tr:last-child td{border-bottom:0}
.sd-tbl small{font-size:12px}
.sd-who{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit}
.sd-who span{display:flex;flex-direction:column}.sd-who small{color:#6b7a86}
.sd-st{font-style:normal;font-size:13px;padding:3px 8px;border-radius:6px;background:#eef1f4;color:#4b5a66}
.sd-st.late{background:#fdecec;color:#a12a2a}.sd-st.early{background:#e5f0e4;color:#2f6b2f}
#detail{scroll-margin-top:90px}
/* staff app: My profile */
a.emp-me{text-decoration:none;color:inherit;border-radius:12px;padding:2px 6px 2px 2px;margin-left:-2px}
a.emp-me:active,a.emp-me.on{background:rgba(255,255,255,.14)}
.pf-head{display:flex;align-items:center;gap:16px}
.pf-head .av{width:64px;height:64px;font-size:24px;flex:0 0 auto}
.pf-head h2{margin:0 0 2px}.pf-head p{margin:0 0 6px}
.pf-id{display:inline-block;font-size:13px;font-weight:600;padding:3px 10px;border-radius:999px;background:#ebfbf6;color:#169a6e}
.pf h2{margin-bottom:6px}
.pf-r{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:11px 0;border-top:1px solid var(--line)}
.pf-r:first-of-type{border-top:0}
.pf-r span{color:#6b7a86;font-size:14px;flex:0 0 auto}
.pf-r b{font-weight:600;text-align:right;font-size:15px;min-width:0;overflow-wrap:anywhere}
.pf-r b small{font-weight:400}
/* check-in sheet: location help */
.emap-help{text-align:left;margin:8px 0 4px;padding-left:20px;font-size:13.5px;line-height:1.45;color:#3d4a55}
.emap-help li{margin:4px 0}
.emap-retry{margin-top:6px}
.emp-big.emp-wait,.emp-big.emp-wait:disabled{background:#e6f1ed!important;color:#7b7590!important;box-shadow:none!important;cursor:not-allowed;filter:saturate(.4);opacity:.85;border-color:transparent}
/* accounts: usual expense heads of a vendor / payable */
.acc-map{margin-top:14px;padding-top:12px;border-top:1px dashed var(--line)}
.acc-map h3{margin:0 0 2px;font-size:15px}
.map-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.map-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 6px 5px 10px;border-radius:999px;background:#ebfbf6;color:#13835e;font-size:13px}
.map-chip button{border:0;background:rgba(22,154,110,.12);color:#169a6e;border-radius:50%;width:20px;height:20px;line-height:18px;cursor:pointer;font-size:14px;padding:0}
.vmap{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0 6px;font-size:13.5px}
.vmap .vmap-h{cursor:pointer;border:1px solid #cbf3e6;background:#f3fdfa;color:#169a6e;border-radius:999px;padding:4px 10px;font-size:13px}
.vmap .vmap-h:hover{background:#e6fbf4}
/* ---------- accounts dashboard charts ---------- */
.ad-row{display:grid;gap:16px;margin-bottom:16px}
.ad-row.ad-21{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.ad-row.ad-11{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media (max-width:1100px){.ad-row.ad-21,.ad-row.ad-11{grid-template-columns:minmax(0,1fr)}}
.ad-row>.card{margin:0}
.ad-card .card-h{align-items:flex-start;gap:12px}
.ad-card .card-h h2{margin:0}
.ad-leg{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:12.5px;color:#4b5a66;white-space:nowrap}
.ad-leg .sw{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
.sw.in{background:#257de0}.sw.out{background:#f47230}.sw.net{height:3px;width:14px;border-radius:2px;background:#2b3640;vertical-align:2px}
.ad-stats{display:flex;flex-wrap:wrap;gap:6px 22px;margin:4px 0 12px;font-size:13px;color:#6b7a86}
.ad-stats b{color:#1d2731;font-size:15px;margin-left:4px;font-variant-numeric:tabular-nums}
.ad-svg{width:100%;height:auto;display:block;overflow:visible;font-family:inherit}
.ad-grid{stroke:#e9edf1;stroke-width:1}
.ad-base{stroke:#b9c2ca;stroke-width:1}
.ad-ax{font-size:11px;fill:#6b7a86;font-variant-numeric:tabular-nums}
.ad-lab{font-size:12px;font-weight:600;fill:#1d2731}
.ad-in{fill:#257de0}.ad-out{fill:#f47230}
.ad-net{fill:none;stroke:#2b3640;stroke-width:2;stroke-linejoin:round}
.ad-netd{fill:#2b3640;stroke:#ffffff;stroke-width:2}
.ad-hit{fill:transparent;cursor:pointer}
.ad-hit:hover{fill:rgba(37,125,224,.06)}
.ad-tbl{margin-top:10px;font-size:13px}
.ad-tbl summary{cursor:pointer;color:#169a6e;font-weight:500;padding:4px 0}
.ad-tbl table{margin-top:8px}
.ad-big{font-size:28px;font-weight:700;color:#1d2731;font-variant-numeric:tabular-nums;margin:2px 0 6px;line-height:1.2}
.ad-big small{display:block;font-size:12.5px;font-weight:500;margin-top:2px}
.ad-spark{margin:4px 0 10px}
.ad-area{fill:rgba(37,125,224,.10)}
.ad-cash{fill:none;stroke:#257de0;stroke-width:2;stroke-linejoin:round}
.ad-cashd{fill:#257de0;stroke:#ffffff;stroke-width:2}
.ad-accts>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:8px 0;border-top:1px solid var(--line);font-size:14px}
.ad-accts span small{display:block;font-size:11.5px;color:#8a96a0}
.ad-accts b{font-variant-numeric:tabular-nums}
.ag-leg{margin:0 0 10px}
.sw.ag0,.ag0{background:#84b9f3}.sw.ag1,.ag1{background:#338ced}.sw.ag2,.ag2{background:#1b64be}.sw.ag3,.ag3{background:#0e3d7e}
.ag-row{display:grid;grid-template-columns:minmax(110px,30%) minmax(0,1fr) auto;align-items:center;gap:12px;padding:7px 0;border-top:1px solid var(--line);font-size:14px}
.ag-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ag-n small{display:block;font-size:11.5px;color:#8a96a0}
.ag-bar{display:flex;gap:2px;height:14px}
.ag-bar i{display:block;height:100%;min-width:2px}
.ag-bar i:first-child{border-radius:4px 0 0 4px}.ag-bar i:last-child{border-radius:0 4px 4px 0}.ag-bar i:only-child{border-radius:4px}
.ag-row b{font-variant-numeric:tabular-nums;text-align:right;min-width:90px}
.hb-r{display:grid;grid-template-columns:minmax(120px,34%) minmax(0,1fr) 92px 38px;align-items:center;gap:10px;padding:6px 0;font-size:14px}
.hb-n{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-t{height:12px;background:#f1f4f7;border-radius:4px;overflow:hidden}
.hb-t i{display:block;height:100%;background:#257de0;border-radius:4px}
.hb-r b{font-variant-numeric:tabular-nums;text-align:right}
.hb-r small{color:#6b7a86;text-align:right;font-variant-numeric:tabular-nums}
.ad-latest td{padding:9px 14px;vertical-align:top}
.vt{display:inline-block;min-width:30px;text-align:center;font-size:11px;font-weight:700;letter-spacing:.03em;padding:3px 6px;border-radius:6px;background:#eef1f4;color:#4b5a66}
.vt-in{background:#e6f0fc;color:#1b5fb3}.vt-out{background:#fdeee6;color:#a2440f}
.ad-tip{position:fixed;z-index:999;pointer-events:none;background:#1d2731;color:#ffffff;border-radius:8px;padding:8px 10px;font-size:12.5px;box-shadow:0 6px 20px rgba(0,0,0,.18);min-width:170px}
.ad-tip b{display:block;margin-bottom:4px}
.ad-tip div{display:flex;justify-content:space-between;gap:14px}
.ad-tip span{color:#c3ccd4}.ad-tip em{font-style:normal;font-variant-numeric:tabular-nums}
@media (max-width:760px){.top-search{display:none}}
@media (max-width:760px){.who .wn{display:none}.top-right{gap:8px}}
@media (max-width:600px){.topbar{flex-wrap:wrap;padding:10px 14px;row-gap:8px}.topbar .ws-switch{order:5;width:100%;margin:0;display:flex}.topbar .ws-switch a{flex:1;text-align:center}}
@media (max-width:560px){.acc-tiles,.acc-tiles.three{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.acc-tile{padding:12px 12px!important}.acc-tile b{font-size:19px!important}.acc-tile small{font-size:10.5px!important}.ad-stats{gap:4px 14px}.hb-r{grid-template-columns:minmax(90px,34%) minmax(0,1fr) 80px;}.hb-r small{display:none}.ag-row{grid-template-columns:minmax(90px,32%) minmax(0,1fr) auto}.ag-row b{min-width:0}}
@media (max-width:560px){.ad-ax{font-size:21px}.ad-lab{font-size:22px}.ad-alt{display:none}.ad-svg .ad-netd{r:6}}
/* ---------- accounts dashboard: Odoo-style journal cards ---------- */
.oj-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:16px;margin-bottom:16px}
@media (max-width:560px){.oj-grid{grid-template-columns:minmax(0,1fr)}}
.oj-card{background:#ffffff;border:1px solid #dee2e6;border-radius:6px;display:flex;flex-direction:column;box-shadow:0 1px 2px rgba(0,0,0,.04);transition:box-shadow .15s}
.oj-card:hover{box-shadow:0 4px 14px rgba(0,0,0,.08)}
.oj-h{display:flex;justify-content:space-between;align-items:flex-start;padding:14px 16px 6px}
.oj-t{font-size:17px;font-weight:700;color:#1f2937;text-decoration:none}
.oj-t:hover{color:#714b67}
.oj-h small{display:block;font-size:12px;color:#8a96a0;margin-top:1px}
.oj-more{color:#8a96a0;text-decoration:none;font-size:20px;line-height:1;padding:2px 6px;border-radius:4px}
.oj-more:hover{background:#f3f4f6;color:#1f2937}
.oj-body{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;padding:6px 16px 10px;align-items:start}
.oj-btns{display:flex;flex-direction:column;gap:6px;min-width:128px}
.oj-btn{display:block;text-align:center;background:#714b67;color:#ffffff!important;font-weight:600;font-size:13.5px;padding:7px 12px;border-radius:4px;text-decoration:none;border:1px solid #714b67}
.oj-btn:hover{background:#5f3e56}
.oj-btn2{display:block;text-align:center;background:#ffffff;color:#374151!important;font-weight:500;font-size:13px;padding:6px 12px;border-radius:4px;text-decoration:none;border:1px solid #d1d5db}
.oj-btn2:hover{background:#f3f4f6}
.oj-stats a{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding:4px 0;text-decoration:none;color:#017e84;font-size:13.5px;border-bottom:1px dotted #e5e7eb}
.oj-stats a:last-child{border-bottom:0}
.oj-stats a:hover span{text-decoration:underline}
.oj-stats b{color:#1f2937;font-variant-numeric:tabular-nums;white-space:nowrap}
.oj-stats a.warn span{color:#b45309}.oj-stats a.warn b{color:#b45309}
.oj-graph{display:block;width:100%;height:auto;padding:0 16px 10px;box-sizing:border-box;overflow:visible;margin-top:auto}
.oj-base{stroke:#e5e7eb;stroke-width:1}
.oj-b1{fill:#c9b8d0}.oj-b2{fill:#714b67}
.oj-line{fill:none;stroke:#714b67;stroke-width:2;stroke-linejoin:round}
.oj-area{fill:rgba(113,75,103,.10)}
.oj-ax{font-size:10.5px;fill:#8a96a0}
.oj-strip{display:flex;flex-wrap:wrap;align-items:center;gap:8px 26px;background:#ffffff;border:1px solid #dee2e6;border-radius:6px;padding:12px 16px;margin-bottom:22px;font-size:13.5px}
.oj-strip span{font-weight:700;color:#1f2937}.oj-strip span small{font-weight:400;color:#8a96a0;margin-left:6px}
.oj-strip a{color:#6b7280;text-decoration:none}.oj-strip a b{color:#1f2937;margin-left:5px;font-variant-numeric:tabular-nums}
.oj-strip a:hover b{color:#714b67}
.oj-sec{font-size:13px;text-transform:uppercase;letter-spacing:.08em;color:#8a96a0;margin:6px 0 12px;font-weight:700}
.oj-empty{margin:auto 16px 14px;padding:22px 0;text-align:center;color:#9ca3af;font-size:13px;border-top:1px dashed #e5e7eb}
/* ---------- Home: Odoo-style app launcher ---------- */
body.bare:has(.oh){background:linear-gradient(160deg,#f5eff4 0%,#eef0f7 55%,#e8f2f3 100%);min-height:100vh}
body.bare:has(.oh) main.page{max-width:none;padding:0;margin:0}
.oh{min-height:100vh;display:flex;flex-direction:column}
.oh-top{display:flex;justify-content:space-between;align-items:center;padding:14px 28px}
.oh-brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#1f2937}
.oh-brand img,.oh-logo{width:40px;height:40px;border-radius:10px;object-fit:cover}
.oh-logo{display:grid;place-items:center;background:#714b67;color:#ffffff;font-weight:800;font-size:13px}
.oh-brand b,.oh-user b{display:block;font-size:15px}.oh-brand small,.oh-user small{display:block;font-size:12px;color:#6b7280}
.oh-user{display:flex;align-items:center;gap:10px}
.oh-user .av{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#ebfcf6;color:#21b685;font-weight:700;font-size:13px}
.oh-out{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;color:#6b7280;margin-left:4px}
.oh-out:hover{background:rgba(0,0,0,.05);color:#1f2937}.oh-out svg{width:20px;height:20px}
.oh-main{flex:1;width:100%;max-width:980px;margin:0 auto;padding:28px 24px 60px;text-align:center}
.oh-main h1{font-size:28px;margin:10px 0 4px;color:#1f2937}
.oh-sub{color:#6b7280;margin:0 0 18px}
.oh-find{display:block;width:min(420px,100%);margin:0 auto 30px;padding:11px 16px;border:1px solid #d9d4dd;border-radius:999px;background:#ffffff;font:inherit;font-size:15px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.oh-find:focus{outline:2px solid #714b67;outline-offset:1px}
.oh-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:26px 16px}
.oh-app{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none;color:#1f2937;padding:10px 6px;border-radius:14px;transition:background .15s}
.oh-app:hover{background:rgba(255,255,255,.7)}
.oh-app:hover .oh-ic{transform:translateY(-2px);box-shadow:0 10px 22px rgba(0,0,0,.18)}
.oh-ic{position:relative;width:76px;height:76px;border-radius:18px;display:grid;place-items:center;color:#ffffff;box-shadow:0 4px 12px rgba(0,0,0,.12);transition:transform .15s,box-shadow .15s}
.oh-ic svg{width:36px;height:36px;stroke-width:1.8}
.oh-ic em{position:absolute;top:-6px;right:-6px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#dc2626;color:#ffffff;font-style:normal;font-size:12px;font-weight:700;display:grid;place-items:center;border:2px solid #ffffff}
.oh-app b{font-size:14.5px;font-weight:600}
.oh-app small{font-size:12px;color:#6b7280;line-height:1.3;max-width:150px}
.oh-ic.c1{background:linear-gradient(135deg,#f59e0b,#d97706)}.oh-ic.c2{background:linear-gradient(135deg,#69e9bf,#28d99f)}.oh-ic.c3{background:linear-gradient(135deg,#875a7b,#5f3e56)}
.oh-ic.c4{background:linear-gradient(135deg,#14b8a6,#0f766e)}.oh-ic.c5{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.oh-ic.c6{background:linear-gradient(135deg,#f97316,#c2410c)}
.oh-ic.c7{background:linear-gradient(135deg,#06b6d4,#0e7490)}.oh-ic.c8{background:linear-gradient(135deg,#ec4899,#be185d)}.oh-ic.c9{background:linear-gradient(135deg,#22c55e,#15803d)}
.oh-ic.c10{background:linear-gradient(135deg,#63e9bd,#22ce95)}.oh-ic.c11{background:linear-gradient(135deg,#0ea5e9,#0369a1)}.oh-ic.c12{background:linear-gradient(135deg,#64748b,#334155)}
@media (max-width:560px){.oh-top{padding:12px 16px}.oh-user span:not(.av){display:none}.oh-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 6px}.oh-ic{width:62px;height:62px;border-radius:16px}.oh-ic svg{width:30px;height:30px}.oh-app small{display:none}.oh-main h1{font-size:23px}}
/* the "all apps" button in the top bar of every page */
.apps-btn{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;color:#5b6570;flex:none}
.apps-btn:hover{background:#f1f3f6;color:#714b67}.apps-btn svg{width:22px;height:22px}
.oh-ic.c13{background:linear-gradient(135deg,#10b981,#047857)}.oh-ic.c14{background:linear-gradient(135deg,#ef4444,#b91c1c)}.oh-ic.c15{background:linear-gradient(135deg,#eab308,#a16207)}
/* accounts users */
.role-help{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
@media (max-width:700px){.role-help{grid-template-columns:1fr}}
.role-help div{background:#f8f7fa;border:1px solid #ece8f0;border-radius:8px;padding:9px 11px;font-size:12.5px;color:#4b5563}
.role-help b{display:block;color:#1f2937;font-size:13px;margin-bottom:2px}
.role-chip{display:inline-block;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:#eef1f4;color:#374151}
.role-chip.r-manager{background:#f3e8f0;color:#714b67}.role-chip.r-accountant{background:#e6f4f5;color:#017e84}
.sup-acc td{vertical-align:top}
.sup-edit td{background:#f8fbfa}
.sup-how{margin:6px 0 0;padding-left:18px;font-size:14px;line-height:1.6;color:#374151}
/* supervisor app: Home, account statements, requisitions */
.ph-sec{display:flex;justify-content:space-between;align-items:baseline;font-size:15px;margin:18px 0 8px;color:#1f2937}
.ph-sec a{font-size:13px;font-weight:600}
.ph-acc{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
@media (max-width:560px){.ph-acc{grid-template-columns:minmax(0,1fr)}}
.ph-tile{display:flex;flex-direction:column;gap:2px;background:#ffffff;border:1px solid var(--line);border-left:4px solid #714b67;border-radius:12px;padding:11px 13px;text-decoration:none;color:inherit}
.ph-tile.pt-loan{border-left-color:#b45309}.ph-tile.pt-payroll{border-left-color:#017e84}
.ph-tile small{font-size:12px;font-weight:700;color:#6b7280;text-transform:uppercase;letter-spacing:.04em}
.ph-tile b{font-size:21px;color:#1f2937;font-variant-numeric:tabular-nums}
.ph-tile span{font-size:12px;color:#6b7280}
.ph-act{display:flex;flex-wrap:wrap;gap:8px}.ph-act .btn{flex:1 1 140px;text-align:center}
.pa-big{display:flex;flex-direction:column;gap:2px}.pa-big small{color:#6b7280;font-size:12.5px}.pa-big b{font-size:30px;font-variant-numeric:tabular-nums}.pa-big span{color:#6b7280;font-size:13px}
.pa-row{display:flex;justify-content:space-between;gap:12px;padding:11px 16px;border-top:1px solid var(--line)}
.pa-row:first-child{border-top:0}
.pa-row b{font-size:14.5px}.pa-row small{display:block;color:#6b7280;font-size:12px;margin-top:2px}
.pa-amt{text-align:right;white-space:nowrap}.pa-amt b{font-variant-numeric:tabular-nums}
.pa-amt b{display:block}.pa-amt small.chip{display:inline-block;margin-top:4px}
.rq-lines{margin-top:10px}.rq-h,.rq-l{display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:8px}
.rq-h span{font-size:12.5px;font-weight:600;color:#6b7280}.rq-l{margin-top:6px}
.rq-top{display:flex;justify-content:space-between;align-items:center}
.rq-item{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-top:1px dashed var(--line);font-size:14px}
/* bills from photos */
.bill-up{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.bill-drop{flex:1 1 360px;display:flex;flex-direction:column;gap:2px;border:2px dashed #cdbfd8;border-radius:12px;padding:16px 18px;background:#f9fcfb;cursor:pointer;position:relative}
.bill-drop:hover{border-color:#714b67;background:#f6f0f5}
.bill-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.bill-drop b{color:#714b67}.bill-drop span{font-size:12.5px;color:#6b7280}.bill-drop em{font-style:normal;font-size:12.5px;color:#1f2937;margin-top:4px}
.bill-th{display:grid;place-items:center;width:54px;height:66px;border-radius:6px;overflow:hidden;background:#f3f4f6;border:1px solid var(--line);color:#6b7280;font-size:12px;font-weight:700;text-decoration:none}
.bill-th img{width:100%;height:100%;object-fit:cover}
.bill-t td{vertical-align:middle}
.bill-rev{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;align-items:start;border-left:4px solid #714b67}
@media (max-width:640px){.bill-rev{grid-template-columns:1fr}}
.bill-rev-img{display:block;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#f3f4f6;min-height:120px}
.bill-rev-img img{width:100%;display:block}.bill-rev-img span{display:grid;place-items:center;height:120px;color:#714b67;font-weight:600}
.bill-rev h2{margin:0}
.bill-warn{margin:0;padding-left:18px;color:#92400e;font-size:13.5px;line-height:1.5}
.pj-sups{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:6px}
/* approval chains */
.ap-lv{margin:4px 0 12px;padding-left:22px}.ap-lv li{margin:6px 0}.ap-lv li>*{vertical-align:middle}.ap-lv select{max-width:300px;display:inline-block;width:auto}.ap-lv .iconbtn{display:inline-flex;margin-left:6px}
.ap-types{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;margin:4px 0 12px}.ap-types label{display:inline-flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-weight:500;font-size:13.5px}.ap-types input{width:auto;margin:0}
.sup-acts{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.sup-acc td:first-child{min-width:240px}.sup-acts form{margin:0}.sup-acc td:nth-child(2){max-width:110px;white-space:normal}
.ph-tile.pt-other{border-left-color:#43e4af}.ph-tile small{overflow-wrap:anywhere}

/* ===== To do (office) ===== */
.todo{padding:0 0 6px}.todo .card-h{padding:16px 18px 10px}
.todo-i{display:flex;gap:14px;align-items:center;padding:12px 18px;border-top:1px solid var(--line,#eef0f4)}
.todo-ic{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;font-size:18px;flex:0 0 38px;background:#f1faf7}
.todo-i.bad .todo-ic{background:#fdecea}.todo-i.warn .todo-ic{background:#fff6e5}.todo-i.info .todo-ic{background:#eef4ff}
.todo-b{flex:1;min-width:0}.todo-b b{display:block;font-size:14.5px}.todo-b small{display:block;color:#6b7280;font-size:12.5px;margin-top:2px;overflow-wrap:anywhere}
.todo-a{display:flex;gap:6px;flex:none;flex-wrap:wrap;justify-content:flex-end}
.todo-clear{padding:6px 18px 14px;color:#1f7a45;font-weight:600;margin:0}
@media (max-width:640px){.todo-i{flex-wrap:wrap}.todo-a{width:100%;justify-content:flex-start;padding-left:52px}}
/* ===== staff app: today's status line ===== */
.emp-status{display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:14px;margin:10px 0 12px;border:1px solid}
.emp-status .es-ic{font-size:22px;flex:none}.emp-status b{display:block;font-size:15px;line-height:1.3}.emp-status small{display:block;font-size:12.5px;margin-top:2px;line-height:1.4}
.emp-status.ok{background:#ecf8f1;border-color:#bfe6cf;color:#14532d}.emp-status.warn{background:#fff6e5;border-color:#f3d9a4;color:#6b4a00}
.emp-status.bad{background:#fdecea;border-color:#f5c2bd;color:#7f1d1d}.emp-status.info{background:#eef4ff;border-color:#c9d9fb;color:#1f3b73}.emp-status.off{background:#f2faf7;border-color:#dcf3eb;color:#2f6352}
/* notifications list */
a.note-i{text-decoration:none;color:inherit}.note-i{display:flex;gap:12px;align-items:flex-start}.note-ic{font-size:19px;flex:none;width:28px;text-align:center;margin-top:2px}
.note-go{margin-left:auto;align-self:center;font-size:22px;color:#a3a9b6;padding-left:6px}
.sr-ctx{margin-top:4px;font-size:12px;color:#4b5563;background:#f6f7fb;border-radius:6px;padding:4px 7px;display:inline-block}
.sr-one{display:flex;gap:6px;margin-top:8px}.btn.xs{padding:4px 10px;font-size:12.5px;min-height:0;height:auto;line-height:1.4}

/* ===== Close the month ===== */
.cl-prog{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.cl-bar{flex:1;min-width:200px;height:10px;border-radius:6px;background:#eaf4f1;overflow:hidden}.cl-bar i{display:block;height:100%;background:linear-gradient(90deg,#28d99f,#22a06b)}
.cl-step{padding:0}.cl-h{display:flex;gap:14px;align-items:center;padding:16px 18px;flex-wrap:wrap}
.cl-n{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:#f1faf7;color:#169a6e;flex:none}
.cl-step.ok .cl-n{background:#22a06b;color:#ffffff}.cl-step.ok{opacity:.92}
.cl-h>div:nth-child(2){flex:1;min-width:220px}.cl-h b{display:block;font-size:15.5px}.cl-h small{display:block;color:#6b7280;font-size:13px;margin-top:3px}
.cl-a{display:flex;gap:6px;flex-wrap:wrap}.bad-t{color:#b42318;font-weight:700}
.cl-body{padding:0 18px 14px 66px}.cl-body ul{margin:0;padding-left:16px;font-size:13.5px;color:#374151;max-height:220px;overflow:auto}.cl-body li{margin:3px 0}
.cl-pay{display:flex;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #f0f1f5;flex-wrap:wrap}.cl-pay>div{flex:1;min-width:180px}.cl-pay small{display:block;color:#6b7280}
@media (max-width:640px){.cl-body{padding-left:18px}}

/* ===== payroll run → correct → run again → finalise ===== */
.pr-life{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.pr-life form{margin:0}
.pr-steps{display:flex;gap:0;list-style:none;margin:0;padding:0;counter-reset:s}.pr-steps li{counter-increment:s;padding:6px 14px 6px 10px;font-size:13px;font-weight:600;color:#8a94a3;position:relative}
.pr-steps li::before{content:counter(s);display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#eaf4f1;color:#6b7280;font-size:11.5px;margin-right:6px}
.pr-steps li.on{color:#169a6e}.pr-steps li.on::before{background:#169a6e;color:#ffffff}.pr-steps li.done{color:#1f7a45}.pr-steps li.done::before{content:"✓";background:#22a06b;color:#ffffff}
.pr-steps li+li::after{content:"";position:absolute;left:-4px;top:50%;width:8px;border-top:2px solid #e2e0ea}
.pr-chg{border:1px solid #f3d9a4;background:#fffaf0}.pr-chg ul{margin:10px 0 0;padding-left:18px;font-size:13.5px}.pr-chg li{margin:5px 0}.pr-chg form{display:inline}
.pr-chgrow td{background:#fffaf0}.chip.xs{font-size:11px;padding:1px 7px;margin-top:4px;display:inline-block}
.pr-att{display:block;font-size:12px;margin-top:4px}
.pr-attfix{background:#fbfaff;border:1px solid #e8f8f3;border-radius:10px;padding:10px 12px;margin-bottom:10px}
.pr-fix{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;border-top:1px solid #edf6f3;margin:0}
.pr-fix .pr-fd{min-width:150px}.pr-fix .pr-fd b{display:block;font-size:13.5px}.pr-fix .pr-fd small{color:#b45309;font-size:12px}
.pr-fix label{display:flex!important;flex-direction:row!important;gap:4px;align-items:center;margin:0;font-size:12.5px;font-weight:600}.pr-fix input[type=time]{width:110px;height:34px;padding:4px 6px}
.pr-fix input[name=note]{flex:1;min-width:180px;height:34px}.pr-fix select{height:34px;width:auto}.pr-fix .pr-rr{font-weight:500;color:#4b5563}.pr-fix input[type=checkbox]{width:16px!important;height:16px!important;min-height:0}
.pr-fix{display:grid!important;grid-template-columns:150px 128px 128px minmax(150px,1fr) 140px auto auto;gap:8px;align-items:center}
.pr-fix input[type=time]{width:100%!important}.pr-fix select{width:100%!important}.pr-fix input[name=note]{min-width:0}
@media (max-width:1100px){.pr-fix{grid-template-columns:150px 1fr 1fr;}.pr-fix input[name=note]{grid-column:1/-1}}

/* ================= Night shift: generated dark layer (theme_gen.py) ================= */
html[data-theme=dark] .side{background:#2a2927}
html[data-theme=dark] .side-group{color:#667b99}
html[data-theme=dark] .side-link{color:#8ca1c5}
html[data-theme=dark] .side-link svg{color:#9d9b95}
html[data-theme=dark] .side-link.on{background:#1c212c;box-shadow:inset 0 0 0 1px #3a4250}
html[data-theme=dark] .topbar{background:#2a2927}
html[data-theme=dark] .pill-live{background:#2a2927}
html[data-theme=dark] .pill-live i{box-shadow:0 0 0 3px #32543e}
html[data-theme=dark] .pill-live.off i{box-shadow:0 0 0 3px #54322f}
html[data-theme=dark] .av{background:#1c212c}
html[data-theme=dark] .hero::after{border:44px solid rgba(62,62,60,.05)}
html[data-theme=dark] .hero input{background:rgba(42,41,39,.1);border-color:rgba(62,62,60,.25)}
html[data-theme=dark] .hbar{background:rgba(42,41,39,.14)}
html[data-theme=dark] .kpi{background:#2a2927}
html[data-theme=dark] .kpi.link:hover{border-color:#3c4452;background:#1c1c1a}
html[data-theme=dark] .kpi .label{color:#afbccf}
html[data-theme=dark] th{background:#1e1e1c}
html[data-theme=dark] tbody tr:hover td{background:#1c1c1a}
html[data-theme=dark] table.sheet td.P{background:#1c212c}
html[data-theme=dark] tr.total td{background:#1e1e1c}
html[data-theme=dark] input,html[data-theme=dark] select{border:1px solid #40454e;background:#2a2927}
html[data-theme=dark] input:focus,html[data-theme=dark] select:focus{outline:2px solid #3a4254}
html[data-theme=dark] label{color:#a1aebf}
html[data-theme=dark] .btn.ghost{background:#2a2927;border-color:#40454e}
html[data-theme=dark] .btn.gold{color:#eec762}
html[data-theme=dark] .flash.ok{color:#73dd9d;border-color:#3e5245}
html[data-theme=dark] .flash.bad{color:#df7272;border-color:#563838}
html[data-theme=dark] .chip.navy{background:#1c212c}
html[data-theme=dark] .notes{color:#afbccf}
html[data-theme=dark] table.cardgrid td.dno{background:#1e1e1c}
html[data-theme=dark] .pbox span{border:1px solid #40454e;background:#2a2927}
html[data-theme=dark] .totals .label{color:#afbccf}
html[data-theme=dark] .hero select{background:rgba(42,41,39,.1);border-color:rgba(62,62,60,.25)}
html[data-theme=dark] .flash.warnf{color:#e98968;border-color:#5d513b}
html[data-theme=dark] table.cardgrid td.unsure{background:#30281a}
html[data-theme=dark] .meter{background:#1f2228}
html[data-theme=dark] .sup-brand .mark{background:#2a2927}
html[data-theme=dark] .sup-out{border:1px solid rgba(62,62,60,.35)}
html[data-theme=dark] .sup-stats div{background:#2a2927}
html[data-theme=dark] .lab{background:#2a2927;border-left:5px solid #44494f}
html[data-theme=dark] .lab.st-out{border-left-color:#7c7b73}
html[data-theme=dark] .lab-t{color:#afbccf}
html[data-theme=dark] .lab-btns button{border:1px solid #40454e;background:#2a2927}
html[data-theme=dark] .psheet .x{background:rgba(42,41,39,.15)}
html[data-theme=dark] .cam-row .btn.ghost{border-color:rgba(62,62,60,.4)}
html[data-theme=dark] .shutter{border:5px solid #3e3e3c;background:#2a2927}
html[data-theme=dark] .ptabs{background:#2a2927}
html[data-theme=dark] .ptabs a.on{background:#1c212c}
html[data-theme=dark] .attn-i.warn{color:#fbb756;border-color:#5c513a}
html[data-theme=dark] .attn-i.bad{color:#df7272;border-color:#563838}
html[data-theme=dark] body.lg{background:#2a2927}
html[data-theme=dark] .lg-hero .mark{background:#2a2927}
html[data-theme=dark] .lg-points svg{background:rgba(42,41,39,.08);border:1px solid rgba(62,62,60,.12)}
html[data-theme=dark] .lg-panel{background:#2a2927}
html[data-theme=dark] .lg-err{color:#e56c6c;border:1px solid #563838}
html[data-theme=dark] .lg-in>svg{color:#667b99}
html[data-theme=dark] .lg-in input{border:1.5px solid #3d434d;background:#1e1e1c}
html[data-theme=dark] .lg-in input::placeholder{color:#667a99}
html[data-theme=dark] .lg-in input:focus{background:#2a2927}
html[data-theme=dark] .lg-eye{color:#667b99}
html[data-theme=dark] .otline.warn{color:#f79e5a}
html[data-theme=dark] .otstep{border:1.5px solid #3d434d;background:#2a2927}
html[data-theme=dark] .shbar{background:repeating-linear-gradient(90deg,#1d2128 0 calc(25% - 1px),#272c33 calc(25% - 1px) 25%)}
html[data-theme=dark] .spin{border:3px solid #3d434d}
html[data-theme=dark] .mu-bar{background:#2a2927}
html[data-theme=dark] .mu-card.bad{border-color:#563838}
html[data-theme=dark] .seg{border:1.5px solid #3d434d;background:#1e1e1c}
html[data-theme=dark] .av{background:#1c212c}
html[data-theme=dark] button.av{box-shadow:0 0 0 2px #3e3e3c,0 0 0 3px #3d434d}
html[data-theme=dark] button.av:hover{box-shadow:0 0 0 2px #3e3e3c,0 0 0 3px var(--navy-2)}
html[data-theme=dark] button.av i{box-shadow:0 0 0 2px #3e3e3c}
html[data-theme=dark] button.av:not(.has){background:#1a1e25;border:1.5px dashed #484d54}
html[data-theme=dark] .lp-box{background:#2a2927}
html[data-theme=dark] .lp-pic{background:#1a1e25}
html[data-theme=dark] .cam-ref{box-shadow:0 0 0 2px #3e3e3c}
html[data-theme=dark] .emp-q svg{color:#667b99}
html[data-theme=dark] .emp-bar{background:#1f1f1d}
html[data-theme=dark] .emp-tabs a em{background:#20262e}
html[data-theme=dark] .emp-tabs a.on em{background:#212833}
html[data-theme=dark] .iconbtn:hover,html[data-theme=dark] .iconbtn.on{background:#2a2927}
html[data-theme=dark] .emp-card{background:#2a2927}
html[data-theme=dark] .emp-av .dot{background:#33383e;box-shadow:0 0 0 2.5px #3e3e3c}
html[data-theme=dark] .pager a{background:#2a2927}
html[data-theme=dark] .ecal a{background:#1a1e25}
html[data-theme=dark] .ecal a i.approved{color:#6ae799}
html[data-theme=dark] .ecal a i.pending{color:#f79e5a}
html[data-theme=dark] .ecal a i.rejected{color:#e86868}
html[data-theme=dark] .ecal .full{background:#1c3324;color:#73dd9d}
html[data-theme=dark] .ecal .half{background:#3f381f;color:#ec9665}
html[data-theme=dark] .ecal .off{background:#181e32;color:#827fd1}
html[data-theme=dark] .ecal .wait{background:#382b1b;color:#ed8664}
html[data-theme=dark] .ecal .abs{background:#2a2927;border-color:#3a4048;color:#667b99}
html[data-theme=dark] .ecal .none{background:#311919;color:#df7272}
html[data-theme=dark] .ecal-key span::before{background:#1a1e25}
html[data-theme=dark] .ecal-key .full::before{background:#1c3324}
html[data-theme=dark] .ecal-key .half::before{background:#3f381f}
html[data-theme=dark] .ecal-key .off::before{background:#181e32}
html[data-theme=dark] .ecal-key .wait::before{background:#382b1b}
html[data-theme=dark] .ecal-key .abs::before{background:#2a2927;border:1px solid #3d434a}
html[data-theme=dark] .ecal-key i{color:#6ae799}
html[data-theme=dark] .logs-t .dayrow td{background:#1f1f1d}
html[data-theme=dark] .lnote{color:#a1aebf}
html[data-theme=dark] .src{background:#1d2128;color:#afbccf}
html[data-theme=dark] .src-machine{background:#192832;color:#5ac0f6}
html[data-theme=dark] .src-phone{background:#192b25;color:#6ce4bd}
html[data-theme=dark] .src-manual{background:#3f381f;color:#f09761}
html[data-theme=dark] .src-admin{background:#311919;color:#e56c6c}
html[data-theme=dark] .src-log{background:#1c3324;color:#71e09b}
html[data-theme=dark] .src-import{background:#181e32;color:#7f79d8}
html[data-theme=dark] body{color:#b3b2ad}
html[data-theme=dark] h1,html[data-theme=dark] h2{color:#c0cbd5}
html[data-theme=dark] .rail{background:#2a2927}
html[data-theme=dark] .rail-link{color:#9c9b94}
html[data-theme=dark] .rail-link svg{color:#86857c}
html[data-theme=dark] .rail-link:hover{background:#20201e}
html[data-theme=dark] .rail-dot{border:2px solid #3e3e3c}
html[data-theme=dark] .side{background:#2a2927}
html[data-theme=dark] .side-title b{color:#c0cbd5}
html[data-theme=dark] .side-link{color:#b3b2ad}
html[data-theme=dark] .side-link svg{color:#919088}
html[data-theme=dark] .side-link:hover{background:#201f1d}
html[data-theme=dark] .top-search{border:1px solid #464645;background:#2a2927}
html[data-theme=dark] .top-search svg{color:#86857c}
html[data-theme=dark] .pill-live{color:#c0cbd5;border-color:#404448}
html[data-theme=dark] .bell{color:#9c9b94}
html[data-theme=dark] .bell:hover{background:#232220}
html[data-theme=dark] .bell em{border:2px solid #3e3e3c}
html[data-theme=dark] .head h1{color:#c0cbd5}
html[data-theme=dark] .card,html[data-theme=dark] .kpi{box-shadow:0 0 10px 5px rgba(162,161,154,.12)}
html[data-theme=dark] .card-h{border-bottom:1px dashed #404448}
html[data-theme=dark] .card-h h2,html[data-theme=dark] .card>h2:first-child{color:#c0cbd5}
html[data-theme=dark] .btn.ghost{background:#2a2927;border-color:#38544a}
html[data-theme=dark] input:not([type=checkbox]):not([type=radio]):not([type=file]),html[data-theme=dark] select,html[data-theme=dark] textarea{border-color:#464645}
html[data-theme=dark] th{background:#1e2023;color:#bfbeba}
html[data-theme=dark] td{border-bottom:1px solid #424241}
html[data-theme=dark] tbody tr:hover td,html[data-theme=dark] tr:hover>td{background:#1d1d1b}
html[data-theme=dark] .kpi{background:#262523}
html[data-theme=dark] .kpi .label{color:#c0cbd5}
html[data-theme=dark] .kpi .v{color:#a7a69f}
html[data-theme=dark] .kpi.link::after{color:#9c9b94}
html[data-theme=dark] .kpi.link:hover{background:#262c29}
html[data-theme=dark] .kpis>.kpi:nth-child(6n+2){background:#272724}
html[data-theme=dark] .kpis>.kpi:nth-child(6n+3){background:#181b2a}
html[data-theme=dark] .kpis>.kpi:nth-child(6n+4){background:#291d1d}
html[data-theme=dark] .kpis>.kpi:nth-child(6n+5){background:#1b242b}
html[data-theme=dark] .kpis>.kpi:nth-child(6n){background:#1b2824}
html[data-theme=dark] body.lg .mark,html[data-theme=dark] .mark{box-shadow:inset 0 -3px 0 #3d6055}
html[data-theme=dark] .drill .card-h{border-bottom:1px dashed #404448}
html[data-theme=dark] .tile{background:#262b29}
html[data-theme=dark] .tile b{color:#c0cbd5}
html[data-theme=dark] .tile span{color:#9c9b94}
html[data-theme=dark] .tile::after{color:#b3b2ad}
html[data-theme=dark] .tile.t1{background:#262d25}
html[data-theme=dark] .tile.t2{background:#312523}
html[data-theme=dark] .tile.t3{background:#1f2d29}
html[data-theme=dark] .tile.t4{background:#2f1f29}
html[data-theme=dark] .tile.t5{background:#1b252e}
html[data-theme=dark] .tile.t6{background:#30261a}
html[data-theme=dark] .tile.t7{background:#2d1d18}
html[data-theme=dark] .tile.t8{background:#1c212f}
html[data-theme=dark] .tile.t9{background:#2b2a27}
html[data-theme=dark] .prow{border-bottom:1px solid #3c4045}
html[data-theme=dark] .prow:hover{background:#1d1d1b}
html[data-theme=dark] .pn b{color:#c0cbd5}
html[data-theme=dark] .pn small{color:#86857c}
html[data-theme=dark] .prow em.early{background:#222e27;color:#75dca9}
html[data-theme=dark] .prow em.late{background:#2f1d19;color:#de8573}
html[data-theme=dark] .lg-hero::after{border-color:rgba(62,62,60,.25);box-shadow:0 0 0 60px rgba(62,62,60,.05),0 0 0 120px rgba(62,62,60,.03)}
html[data-theme=dark] .lg-hero .mark{background:#2a2927}
html[data-theme=dark] body.lg .lg-hero .mark{background:#2a2927}
html[data-theme=dark] .addemp .card>h2{border-bottom:1px dashed #404448}
html[data-theme=dark] .fgrid label,html[data-theme=dark] .fgrid .lbl{color:#bfbeba}
html[data-theme=dark] .ae-pic{border:2px dashed #3a584e}
html[data-theme=dark] .prq-form>h2{border-bottom:1px dashed #404448}
html[data-theme=dark] .seg{border:1px solid #464645}
html[data-theme=dark] .seg span{color:#b3b2ad;border-right:1px solid #464645}
html[data-theme=dark] .prq-bar{border-top:1px solid #424241}
html[data-theme=dark] .prq-bar .ck,html[data-theme=dark] .prq-bulk .ck{color:#bfbeba}
html[data-theme=dark] .prq-filter{border-bottom:1px solid #424241}
html[data-theme=dark] .prq-filter .inl{color:#9c9b94}
html[data-theme=dark] .prq-bulk{background:#1d1d1b;border-bottom:1px solid #424241}
html[data-theme=dark] .ts-quick a{background:#1e2023;color:#b3b2ad}
html[data-theme=dark] .ts-row .inl{color:#9c9b94}
html[data-theme=dark] .ts-row .ck{color:#bfbeba}
html[data-theme=dark] .ts-sum>span:not(.ts-views){background:#2a2927;color:#9c9b94;box-shadow:0 0 10px 5px rgba(162,161,154,.08)}
html[data-theme=dark] .ts-sum b{color:#c0cbd5}
html[data-theme=dark] .ts-views a{color:#86857c;background:#2a2927;border:1px solid #404448}
html[data-theme=dark] .ts-views a.on{border-color:#38544a}
html[data-theme=dark] .ts th span{color:#86857c}
html[data-theme=dark] .ts th.sun span{color:#d77979}
html[data-theme=dark] .ts .ts-name{background:#2a2927;border-right:1px solid #424241}
html[data-theme=dark] .ts th.ts-name{background:#1e2023}
html[data-theme=dark] .ts td{border-bottom:1px solid #3c4045}
html[data-theme=dark] .ts td.tc{border-left:1px solid #41413f}
html[data-theme=dark] .tc .to{color:#9c9b94}
html[data-theme=dark] .tc .ti.late{color:#df7c71}
html[data-theme=dark] .tc .to.early{color:#ff9752}
html[data-theme=dark] .tc em{color:#75dca9}
html[data-theme=dark] .tc.full{background:#1d2820}
html[data-theme=dark] .tc.half{background:#2e2719}
html[data-theme=dark] .tc.bad{background:#2a1818}
html[data-theme=dark] .tc.pend{background:#182a24}
html[data-theme=dark] .tc.abs i{color:#cecdc9}
html[data-theme=dark] tbody tr:hover td.tc.full{background:#232e26}
html[data-theme=dark] .ts-legend{color:#9c9b94}
html[data-theme=dark] .ts-legend i.full{background:#253129}
html[data-theme=dark] .ts-legend i.half{background:#3c3320}
html[data-theme=dark] .ts-legend i.bad{background:#331e1e}
html[data-theme=dark] .ts-legend i.abs{background:#262523}
html[data-theme=dark] .ts-legend .lt{color:#df7c71}
html[data-theme=dark] .ts-legend .el{color:#ff9752}
html[data-theme=dark] .ae-pics>div{color:#bfbeba}
html[data-theme=dark] .ae-pic.face{border-color:#495b52;background:#1e2922}
html[data-theme=dark] .ae-pic.face span{color:#75dca9}
html[data-theme=dark] .bioph-pic img,html[data-theme=dark] .bioph-empty{background:#202225;color:#86857c;border:1px solid #404448}
html[data-theme=dark] .mc-card:hover{box-shadow:0 0 0 2px var(--brand-soft),0 0 10px 5px rgba(162,161,154,.15)}
html[data-theme=dark] .mc-icon{background:#202225;color:#86857c}
html[data-theme=dark] .mc-icon.on{background:#222e27;color:#75dca9}
html[data-theme=dark] .mc-icon.off{background:#2f1d19;color:#de8573}
html[data-theme=dark] .mc-nm b{color:#c0cbd5}
html[data-theme=dark] .mc-nm small{color:#86857c}
html[data-theme=dark] .mc-stats{background:#201f1d}
html[data-theme=dark] .mc-stats small,html[data-theme=dark] .mc-facts small{color:#86857c}
html[data-theme=dark] .mc-stats b{color:#c0cbd5}
html[data-theme=dark] .mc-facts b{color:#c0cbd5}
html[data-theme=dark] .chip.dim{background:#202225;color:#86857c}
html[data-theme=dark] .mc-log code{color:#b3b2ad}
html[data-theme=dark] .mc-raw span{background:#1e2023}
html[data-theme=dark] .mc-raw small{color:#86857c}
html[data-theme=dark] .office-title small{color:#86857c}
html[data-theme=dark] .mc-opt{border:2px solid #404448}
html[data-theme=dark] .mc-opt b{color:#c0cbd5}
html[data-theme=dark] .mc-opt span:not(.chip){color:#9c9b94}
html[data-theme=dark] .ae-mode{color:#bfbeba}
html[data-theme=dark] .ae-mode.portal{background:#1e2922;border:1px solid #415449}
html[data-theme=dark] .ae-mode.machine{background:#2f2717;border:1px solid #5d523b}
html[data-theme=dark] .me-qr{background:#2a2927;border:1px solid #404448}
html[data-theme=dark] .me-link input{color:#b3b2ad;background:#201f1d}
html[data-theme=dark] .emp-date b{color:#c0cbd5}
html[data-theme=dark] .emp-date span{color:#9c9b94}
html[data-theme=dark] .emp-io>div{background:#20201e}
html[data-theme=dark] .emp-io small{color:#9c9b94}
html[data-theme=dark] .emp-io b{color:#c0cbd5}
html[data-theme=dark] .emp-io .ok b{color:#6ce4ab}
html[data-theme=dark] .emp-io em{color:#de8573}
html[data-theme=dark] .emp-log span{background:#1e2023;color:#b3b2ad}
html[data-theme=dark] .emp-stats div{background:#20201e}
html[data-theme=dark] .emp-stats b{color:#c0cbd5}
html[data-theme=dark] .emp-stats small{color:#9c9b94}
html[data-theme=dark] .emp-cut div{background:#27221a}
html[data-theme=dark] .emp-cut .tot{background:#2f1d19;color:#e18370}
html[data-theme=dark] .emp-months a{background:#2a2927;color:#b3b2ad}
html[data-theme=dark] .emp-leave div{background:#20201e}
html[data-theme=dark] .emp-leave b{color:#c0cbd5}
html[data-theme=dark] .emp-leave small{color:#9c9b94}
html[data-theme=dark] .emp-team>div{border-bottom:1px solid #424240}
html[data-theme=dark] .emp-team small{color:#86857c}
html[data-theme=dark] .slip-staff{background:#2a2927;border:1px solid #404448;color:#c0cbd5}
html[data-theme=dark] .ss-head small{color:#9c9b94}
html[data-theme=dark] .ss-who small{color:#86857c}
html[data-theme=dark] .ss-att{color:#b3b2ad;background:#201f1d}
html[data-theme=dark] .ss-t th{background:#1a2722}
html[data-theme=dark] .ss-t td{border-bottom:1px solid #424240}
html[data-theme=dark] .ss-t tr.net td{background:#1e2922}
html[data-theme=dark] .ss-foot{color:#86857c}
html[data-theme=dark] .ws-switch{background:#202225}
html[data-theme=dark] .ws-switch a{color:#9c9b94}
html[data-theme=dark] .ws-switch a.on{background:#2a2927}
html[data-theme=dark] .emp-map{border:1px solid #404448;background:#262523}
html[data-theme=dark] .emap-off{color:#9c9b94}
html[data-theme=dark] .emap-st{background:#2a2927;color:#b3b2ad}
html[data-theme=dark] .emap-st.bad{background:#2a2927;color:#de8573;border:2px solid #5a403a}
html[data-theme=dark] .emap-st.wait{background:#2a2927;color:#9c9b94}
html[data-theme=dark] .emap-me{background:#2a2927;color:#5f91f1}
html[data-theme=dark] .emp-big:disabled{background:#42413c!important;border-color:#4d4d4b!important}
html[data-theme=dark] .app-install{background:#2a2927;border:1px solid #335046}
html[data-theme=dark] .app-install small{color:#9c9b94}
html[data-theme=dark] .app-x{color:#86857c}
html[data-theme=dark] .acc-t tr.grp td{background:#201f1d;color:#c0cbd5}
html[data-theme=dark] .acc-t tr.tot td{color:#c0cbd5;border-top:2px solid #42464b;background:#1d1d1b}
html[data-theme=dark] .acc-t tr.tot.net td{background:#192c26}
html[data-theme=dark] .acc-t tr.sub td{border-top:1px solid #404448}
html[data-theme=dark] .acc-t tr.vfirst td{border-top:1px solid #414449}
html[data-theme=dark] .acc-tile{background:#2a2927}
html[data-theme=dark] .acc-tile small{color:#9c9b94}
html[data-theme=dark] .acc-tile b{color:#c0cbd5}
html[data-theme=dark] .acc-tile span{color:#86857c}
html[data-theme=dark] .acc-bar small{color:#86857c}
html[data-theme=dark] .hleg{color:#9c9b94}
html[data-theme=dark] .rep-card b{color:#c0cbd5}
html[data-theme=dark] label.inl{color:#9c9b94}
html[data-theme=dark] .seg a{color:#b3b2ad}
html[data-theme=dark] .seg a.on{background:#2a2927}
html[data-theme=dark] .vlines input.bad{background:#1e1e1c}
html[data-theme=dark] .vlines .iconbtn{background:#2a2927;color:#86857c}
html[data-theme=dark] .vded{background:#1e1d1b;border:1px dashed #37554b}
html[data-theme=dark] .vded h3{color:#c0cbd5}
html[data-theme=dark] .vnet{color:#9c9b94}
html[data-theme=dark] .vnet b{color:#c0cbd5}
html[data-theme=dark] .vp-meta small{color:#86857c}
html[data-theme=dark] .acc-age div{background:#201f1d}
html[data-theme=dark] .acc-age small{color:#86857c}
html[data-theme=dark] .acc-age b{color:#c0cbd5}
html[data-theme=dark] .vprint{color:#90a6c0}
html[data-theme=dark] .vp-head small{color:#9c9b94}
html[data-theme=dark] .vp-lines th{background:#192c26}
html[data-theme=dark] .vp-lines td{border-bottom:1px solid #454543}
html[data-theme=dark] .vp-lines tr.tot td{border-top:2px solid #353431}
html[data-theme=dark] .vp-words small,html[data-theme=dark] .vp-nar small{color:#86857c}
html[data-theme=dark] .vp-sign div{border-top:1px solid #353431;color:#b3b2ad}
html[data-theme=dark] .emp-acc a{background:#2a2927}
html[data-theme=dark] .emp-acc small{color:#9c9b94}
html[data-theme=dark] .emp-acc b{color:#c0cbd5}
html[data-theme=dark] .emp-acc span{color:#86857c}
html[data-theme=dark] body.elg{color:#90a4c0}
html[data-theme=dark] .elg-card{background:#2a2927}
html[data-theme=dark] .elg-tabs{background:#1a2823}
html[data-theme=dark] .elg-tabs a{color:#a294bd}
html[data-theme=dark] .elg-tabs a.on{background:#2a2927;color:#67e9be}
html[data-theme=dark] .elg-form h1{color:#7ed3b6}
html[data-theme=dark] .elg-form .lg-f>span{color:#b3bccb}
html[data-theme=dark] .lg-switch{border:1px dashed #3a534b;color:#8fc1b1;background:#1e1d1b}
html[data-theme=dark] .lg-switch svg{color:#67e9be}
html[data-theme=dark] .lg-switch b{color:#7ed3b6}
html[data-theme=dark] .emp-off{background:#302717;border:1px solid #5e533b;color:#ffca52}
html[data-theme=dark] .emp-oq{background:#151d2b;border:1px solid #343f58;color:#7698da}
html[data-theme=dark] .emp-oq small{color:#8e9fc3}
html[data-theme=dark] .flash.warn{background:#302717;border-color:#5e533b;color:#ffca52}
html[data-theme=dark] header.emp-top .av{border:2px solid rgba(62,62,60,.7)}
html[data-theme=dark] .emp-out{background:rgba(42,41,39,.14)}
html[data-theme=dark] .emp-out:active{background:rgba(42,41,39,.25)}
html[data-theme=dark] .emp-filter{border-bottom:1px solid #3d4046}
html[data-theme=dark] .emp-filter a{background:#1b2622;color:#a294bd}
html[data-theme=dark] .emp-filter em{background:#2a2927;color:#67e9be}
html[data-theme=dark] .rq-card{border-bottom:1px solid #3d3f45}
html[data-theme=dark] .rq-ic{background:#1b2622}
html[data-theme=dark] .rq-card.ok .rq-ic{background:#202b25}
html[data-theme=dark] .rq-card.bad .rq-ic{background:#2c1a18}
html[data-theme=dark] .rq-card.warn .rq-ic{background:#302717}
html[data-theme=dark] .rq-r{color:#b3bccb}
html[data-theme=dark] .rq-m{color:#86857c}
html[data-theme=dark] .emp-empty{color:#86857c}
html[data-theme=dark] .emp-more{color:#67e9be;border-top:1px solid #3d3f45}
html[data-theme=dark] .slip-t th[colspan]{background:#20201e;color:#8fc1b1}
html[data-theme=dark] .slip-t tr+tr td{border-top:1px solid #3d3f45}
html[data-theme=dark] .sr-steps li{color:#86857c}
html[data-theme=dark] .sr-steps li.ok{color:#75dca0}
html[data-theme=dark] .sr-steps li.bad{color:#eb6f66}
html[data-theme=dark] .sr-steps li.now{color:#f09761}
html[data-theme=dark] .sr-steps li.now::before{color:#f8bd58}
html[data-theme=dark] .sp-pend td{background:#1f1f1d}
html[data-theme=dark] .emp-card{border:1px solid #3d4046}
html[data-theme=dark] .emp-card .emp-top{border-bottom:1px solid #3d4046}
html[data-theme=dark] .emp-card .emp-av .dot{box-shadow:0 0 0 2.5px #3e3e3c}
html[data-theme=dark] .emp-card .emp-who b{color:#90a4c0}
html[data-theme=dark] .emp-card .emp-who span,html[data-theme=dark] .emp-card .emp-who small{color:#9e9d96}
html[data-theme=dark] .emp-card .emp-go{color:#b3bccb}
html[data-theme=dark] .emp-card .emp-meta small{color:#9e9d96}
html[data-theme=dark] .emp-card .emp-meta b{color:#90a4c0}
html[data-theme=dark] .emp-card.inactive .emp-who b::after{color:#e86868}
html[data-theme=dark] .emp-sheet-card{background:#2a2927}
html[data-theme=dark] .emp-sheet-x{background:#1c2126;color:#afbccf}
html[data-theme=dark] .fw-box{border:1px solid var(--line,#454544)}
html[data-theme=dark] .fw-tools{background:#201f1d;border-bottom:1px solid var(--line,#454544)}
html[data-theme=dark] .fw-e{border-bottom:1px solid #424240}
html[data-theme=dark] .fw-e:hover{background:#1e1d1b}
html[data-theme=dark] .fw-av{background:#1a2d26;color:#6be5bd}
html[data-theme=dark] .fw-chip{background:#1a2d26;color:#72dfbb}
html[data-theme=dark] .fw-chip button{color:#80d1b6}
html[data-theme=dark] .fw-chip button:hover{background:#223b33;color:#6be6bd}
html[data-theme=dark] .lg-note{background:#182a24;color:#6be6bd;border:1px solid #36554b}
html[data-theme=dark] .dv-sw i{background:#373733}
html[data-theme=dark] .dv-sw i:after{background:#2a2927}
html[data-theme=dark] .dv-req{background:#2d2415;border:1px solid #5c513a}
html[data-theme=dark] .dv-hist>td{background:#1e1d1b}
html[data-theme=dark] .ri-pick{border-bottom:1px solid #424240}
html[data-theme=dark] .fw-chip.fw-away{background:#242421;color:#9e9d96}
html[data-theme=dark] .ae-sites .ck.fz-on{background:#182a24}
html[data-theme=dark] .ag-log{background:#1e1d1b}
html[data-theme=dark] .ag-m.bot{background:#2a2927;border:1px solid #444442}
html[data-theme=dark] .ag-m.err{background:#2b1818;color:#e56c6c;border:1px solid #563838}
html[data-theme=dark] .ag-m.done{background:#1f2b25;color:#67eab1;border:1px solid #405549}
html[data-theme=dark] .ag-m.confirm{background:#2d2415;border:1px solid #5c513a}
html[data-theme=dark] .ag-ch{background:#2a2927;border:1px solid #554d3b}
html[data-theme=dark] .ag-hello{color:#b4b3ae}
html[data-theme=dark] .ag-sugg .chip{border:1px solid #355349;background:#20201e;color:#72dfbb}
html[data-theme=dark] .ag-in{border-top:1px solid #3e4146;background:#2a2927}
html[data-theme=dark] .ag-in textarea{border:1px solid #464645}
html[data-theme=dark] .ag-foot{background:#2a2927}
html[data-theme=dark] .ag-act{border-top:1px solid #424240}
html[data-theme=dark] .ok-t{color:#67eab1}
html[data-theme=dark] .emp-bell{background:rgba(42,41,39,.14)}
html[data-theme=dark] .emp-bell.on{background:rgba(42,41,39,.28)}
html[data-theme=dark] .note-list .note-i{border-bottom:1px solid #424240}
html[data-theme=dark] .note-i p{color:#b3bccb}
html[data-theme=dark] .note-i.new{background:#1e1d1b}
html[data-theme=dark] .emp .nt-ck input{accent-color:#67e9be}
html[data-theme=dark] .emp-big.emp-done,html[data-theme=dark] .emp-big.emp-done:disabled{background:#242c29!important;color:#95938c!important}
html[data-theme=dark] .bad-t{color:#e86868}
html[data-theme=dark] .sp-cutb{border:1px solid #355349;background:#20201e;color:#72dfbb}
html[data-theme=dark] .sp-cuts>td{background:#1c1c1a}
html[data-theme=dark] .sp-ct th{color:#9e9d96}
html[data-theme=dark] .sp-ct td,html[data-theme=dark] .sp-ct th{border-bottom:1px solid #3a4944}
html[data-theme=dark] .br-tab{background:#212327;border:1px solid #464645}
html[data-theme=dark] .br-tab i{color:#8a8981}
html[data-theme=dark] .br-sizes figcaption{color:#9e9d96}
html[data-theme=dark] .br-sizes img{background:repeating-conic-gradient(#252523 0 25%,#2a2927 0 50%) 50%/12px 12px}
html[data-theme=dark] .sd-tbl th{color:#9c9b94}
html[data-theme=dark] .sd-who small{color:#9c9b94}
html[data-theme=dark] .sd-st{background:#212427;color:#b3b2ad}
html[data-theme=dark] .sd-st.late{background:#2b1818;color:#db7575}
html[data-theme=dark] .sd-st.early{background:#262d25;color:#87ca87}
html[data-theme=dark] a.emp-me:active,html[data-theme=dark] a.emp-me.on{background:rgba(42,41,39,.14)}
html[data-theme=dark] .pf-id{background:#1a2b26;color:#67e9be}
html[data-theme=dark] .pf-r span{color:#9c9b94}
html[data-theme=dark] .emap-help{color:#bebdb9}
html[data-theme=dark] .emp-big.emp-wait,html[data-theme=dark] .emp-big.emp-wait:disabled{background:#242c29!important;color:#95938c!important}
html[data-theme=dark] .map-chip{background:#1a2b26;color:#68e9be}
html[data-theme=dark] .map-chip button{color:#67e9be}
html[data-theme=dark] .vmap .vmap-h{border:1px solid #3a544b;background:#20201e;color:#67e9be}
html[data-theme=dark] .vmap .vmap-h:hover{background:#1b2e27}
html[data-theme=dark] .ad-leg{color:#b3b2ad}
html[data-theme=dark] .ad-stats{color:#9c9b94}
html[data-theme=dark] .ad-stats b{color:#92a8bf}
html[data-theme=dark] .ad-base{stroke:#85837a}
html[data-theme=dark] .ad-net{stroke:#c0cbd5}
html[data-theme=dark] .ad-tbl summary{color:#67e9be}
html[data-theme=dark] .ad-big{color:#92a8bf}
html[data-theme=dark] .ad-cash{stroke:#67a4e9}
html[data-theme=dark] .ad-accts span small{color:#87867e}
html[data-theme=dark] .ag-n small{color:#87867e}
html[data-theme=dark] .hb-t{background:#1f2225}
html[data-theme=dark] .hb-r small{color:#9c9b94}
html[data-theme=dark] .vt{background:#212427;color:#b3b2ad}
html[data-theme=dark] .vt-in{background:#1a232e;color:#68a2e8}
html[data-theme=dark] .vt-out{background:#2e2019;color:#f09460}
html[data-theme=dark] .ad-tip span{color:#cecdc9}
html[data-theme=dark] .oj-card{background:#2a2927;border:1px solid #474645}
html[data-theme=dark] .oj-t{color:#90a4c0}
html[data-theme=dark] .oj-t:hover{color:#bd9bb4}
html[data-theme=dark] .oj-h small{color:#87867e}
html[data-theme=dark] .oj-more{color:#87867e}
html[data-theme=dark] .oj-more:hover{background:#232220;color:#90a4c0}
html[data-theme=dark] .oj-btn2{background:#2a2927;color:#b3bccb!important;border:1px solid #4a4a49}
html[data-theme=dark] .oj-btn2:hover{background:#232220}
html[data-theme=dark] .oj-stats a{color:#53f6fe;border-bottom:1px dotted #454543}
html[data-theme=dark] .oj-stats b{color:#90a4c0}
html[data-theme=dark] .oj-stats a.warn span{color:#f79e5a}
html[data-theme=dark] .oj-stats a.warn b{color:#f79e5a}
html[data-theme=dark] .oj-base{stroke:#e9e9e7}
html[data-theme=dark] .oj-line{stroke:#bd9bb4}
html[data-theme=dark] .oj-strip{background:#2a2927;border:1px solid #474645}
html[data-theme=dark] .oj-strip span{color:#90a4c0}
html[data-theme=dark] .oj-strip span small{color:#87867e}
html[data-theme=dark] .oj-strip a{color:#9e9d96}
html[data-theme=dark] .oj-strip a b{color:#90a4c0}
html[data-theme=dark] .oj-strip a:hover b{color:#bd9bb4}
html[data-theme=dark] .oj-sec{color:#87867e}
html[data-theme=dark] .oj-empty{color:#85837a;border-top:1px dashed #454543}
html[data-theme=dark] body.bare:has(.oh){background:linear-gradient(160deg,#262025 0%,#1e2027 55%,#222a2b 100%)}
html[data-theme=dark] .oh-brand{color:#90a4c0}
html[data-theme=dark] .oh-brand small,html[data-theme=dark] .oh-user small{color:#9e9d96}
html[data-theme=dark] .oh-user .av{background:#192b25;color:#6ce4bd}
html[data-theme=dark] .oh-out{color:#9e9d96}
html[data-theme=dark] .oh-out:hover{color:#90a4c0}
html[data-theme=dark] .oh-main h1{color:#90a4c0}
html[data-theme=dark] .oh-sub{color:#9e9d96}
html[data-theme=dark] .oh-find{border:1px solid #4a4948;background:#2a2927}
html[data-theme=dark] .oh-app{color:#90a4c0}
html[data-theme=dark] .oh-app:hover{background:rgba(42,41,39,.7)}
html[data-theme=dark] .oh-ic em{border:2px solid #3e3e3c}
html[data-theme=dark] .oh-app small{color:#9e9d96}
html[data-theme=dark] .apps-btn{color:#aaa9a3}
html[data-theme=dark] .apps-btn:hover{background:#202225;color:#bd9bb4}
html[data-theme=dark] .role-help div{background:#201f1d;border:1px solid #433f47;color:#b4b3ae}
html[data-theme=dark] .role-help b{color:#90a4c0}
html[data-theme=dark] .role-chip{background:#212427;color:#b3bccb}
html[data-theme=dark] .role-chip.r-manager{background:#2b2229;color:#bd9bb4}
html[data-theme=dark] .role-chip.r-accountant{background:#212c2c;color:#53f6fe}
html[data-theme=dark] .sup-edit td{background:#1f1e1c}
html[data-theme=dark] .sup-how{color:#b3bccb}
html[data-theme=dark] .ph-sec{color:#90a4c0}
html[data-theme=dark] .ph-tile{background:#2a2927}
html[data-theme=dark] .ph-tile small{color:#9e9d96}
html[data-theme=dark] .ph-tile b{color:#90a4c0}
html[data-theme=dark] .ph-tile span{color:#9e9d96}
html[data-theme=dark] .pa-big small{color:#9e9d96}
html[data-theme=dark] .pa-big span{color:#9e9d96}
html[data-theme=dark] .pa-row small{color:#9e9d96}
html[data-theme=dark] .rq-h span{color:#9e9d96}
html[data-theme=dark] .bill-drop{border:2px dashed #4d4752;background:#1e1e1c}
html[data-theme=dark] .bill-drop:hover{background:#261f25}
html[data-theme=dark] .bill-drop b{color:#bd9bb4}
html[data-theme=dark] .bill-drop span{color:#9e9d96}
html[data-theme=dark] .bill-drop em{color:#90a4c0}
html[data-theme=dark] .bill-th{background:#232220;color:#9e9d96}
html[data-theme=dark] .bill-rev-img{background:#232220}
html[data-theme=dark] .bill-rev-img span{color:#bd9bb4}
html[data-theme=dark] .bill-warn{color:#f09761}
html[data-theme=dark] .todo-i{border-top:1px solid var(--line,#3d4046)}
html[data-theme=dark] .todo-ic{background:#1b2622}
html[data-theme=dark] .todo-i.bad .todo-ic{background:#2c1a18}
html[data-theme=dark] .todo-i.warn .todo-ic{background:#302717}
html[data-theme=dark] .todo-i.info .todo-ic{background:#151d2b}
html[data-theme=dark] .todo-b small{color:#9e9d96}
html[data-theme=dark] .todo-clear{color:#75dca0}
html[data-theme=dark] .emp-status.ok{background:#1e2922;border-color:#415449;color:#73dd9d}
html[data-theme=dark] .emp-status.warn{background:#302717;border-color:#5e533b;color:#ffca52}
html[data-theme=dark] .emp-status.bad{background:#2c1a18;border-color:#593b39;color:#df7272}
html[data-theme=dark] .emp-status.info{background:#151d2b;border-color:#343f58;color:#7698da}
html[data-theme=dark] .emp-status.off{background:#1b2522;border-color:#3a4e47;color:#89c7b3}
html[data-theme=dark] .note-go{color:#85837a}
html[data-theme=dark] .sr-ctx{color:#b4b3ae;background:#201f1d}
html[data-theme=dark] .cl-bar{background:#212a27}
html[data-theme=dark] .cl-n{background:#1b2622;color:#67e9be}
html[data-theme=dark] .cl-h small{color:#9e9d96}
html[data-theme=dark] .bad-t{color:#eb6f66}
html[data-theme=dark] .cl-body ul{color:#b3bccb}
html[data-theme=dark] .cl-pay{border-top:1px solid #3d3f45}
html[data-theme=dark] .cl-pay small{color:#9e9d96}
html[data-theme=dark] .pr-steps li{color:#86857c}
html[data-theme=dark] .pr-steps li::before{background:#212a27;color:#9e9d96}
html[data-theme=dark] .pr-steps li.on{color:#67e9be}
html[data-theme=dark] .pr-steps li.done{color:#75dca0}
html[data-theme=dark] .pr-steps li+li::after{border-top:2px solid #434149}
html[data-theme=dark] .pr-chg{border:1px solid #5e533b;background:#20201e}
html[data-theme=dark] .pr-chgrow td{background:#20201e}
html[data-theme=dark] .pr-attfix{background:#1c1c1a;border:1px solid #374c46}
html[data-theme=dark] .pr-fix{border-top:1px solid #3b4843}
html[data-theme=dark] .pr-fix .pr-fd small{color:#f79e5a}
html[data-theme=dark] .pr-fix .pr-rr{color:#b4b3ae}
@media (max-width:860px){html[data-theme=dark] .lg-panel{background:linear-gradient(180deg,#1a1e25 0,#2a2927 220px)}}
@media (max-width:700px){html[data-theme=dark] .emp-tabbar{background:#2a2927;border-top:1px solid #404448}html[data-theme=dark] .emp-tabbar a{color:#9c9b94}}

/* night: schedule & time sheet pages (their own <style>) */
html[data-theme=dark] .sc-btn{color:#ffffff!important}
html[data-theme=dark] .sc-btn.pu{background:#0f6e56!important}
html[data-theme=dark] .sc-btn.rd{background:#d9534f!important}
html[data-theme=dark] .sc-btn.gr{background:#36a374!important}
html[data-theme=dark] .sc-btn.vi{background:#1d9e75!important}
html[data-theme=dark] .sc-btn.gh{background:#2a2927!important;color:#66eac9!important;border:1px solid #3b524b!important}
html[data-theme=dark] .sc-meta{color:#a5a49d!important}
html[data-theme=dark] .sc-leg{color:#a5a49d!important}
html[data-theme=dark] .sc-grid{border:1px solid #464645!important;background:#2a2927!important}
html[data-theme=dark] .sc-t{color:#a5a49d!important}
html[data-theme=dark] .sc-t th,html[data-theme=dark] .sc-t td{border-right:1px solid #444342!important;border-bottom:1px solid #444342!important}
html[data-theme=dark] .sc-t .nm{background:#2a2927!important}
html[data-theme=dark] .sc-t thead th{background:#222220!important}
html[data-theme=dark] .sc-rng{background:#0f6e56!important;color:#ffffff!important}
html[data-theme=dark] .sc-rng a{color:#ffffff!important}
html[data-theme=dark] .sc-t th.dh{color:#a5a49d!important}
html[data-theme=dark] .sc-t th.dh.today{background:#3d3c38!important}
html[data-theme=dark] .sc-t th.dh.hol{color:#a8a7a1!important}
html[data-theme=dark] .sc-wk{background:#2f2e2b!important;box-shadow:inset -1px 0 5px -2px #9a9891!important;color:#a5a49d!important}
html[data-theme=dark] .sc-emp b{color:#f3f3f2!important}
html[data-theme=dark] .sc-emp small{color:#a5a49d!important}
html[data-theme=dark] .sc-emp .h{color:#a5a49d!important}
html[data-theme=dark] .sc-t td.c.today{background:#3d3c38!important}
html[data-theme=dark] .sc-t td.c.hol{background:#232220!important}
html[data-theme=dark] .sc-t td.c:hover{background:#201f1d!important}
html[data-theme=dark] .sc-t td.c.sel{outline:2px solid #0f6e56!important;background:#192c26!important}
html[data-theme=dark] .sc-sh{background:#2a2927!important;color:#f3f3f2!important;border-left:4px solid #008f35!important;box-shadow:0 0 0 1px #444342!important}
html[data-theme=dark] .sc-sh.def{background:#1e1e1c!important}
html[data-theme=dark] .sc-off{background:#36c2aa!important;border:1px solid #289d89!important;color:#ffffff!important}
html[data-theme=dark] .sc-off:before{background:#2a2927!important}
html[data-theme=dark] .sc-off.rest{background:#4f5b9a!important;border-color:#3c4678!important}
html[data-theme=dark] .sc-off.hl{background:#9aa5ad!important;border-color:#8d8b83!important}
html[data-theme=dark] .sc-act{background:rgba(42,41,39,.85)!important}
html[data-theme=dark] .sc-act a{background:#2a2927!important;box-shadow:0 1px 3px rgba(0,0,0,.2)!important;color:#66eac9!important}
html[data-theme=dark] .sc-act a.x{color:#e07470!important}
html[data-theme=dark] .sc-plus{color:#a6d6c6!important}
html[data-theme=dark] .sc-pager a,html[data-theme=dark] .sc-pager span{border:1px solid #464645!important;color:#66eac9!important;background:#2a2927!important}
html[data-theme=dark] .sc-pager .on{background:#0f6e56!important;color:#ffffff!important;border-color:#0f6e56!important}
html[data-theme=dark] .sc-filter{background:#2a2927!important;border:1px solid #464645!important}
html[data-theme=dark] .sc-bar{background:#0f6e56!important;color:#ffffff!important}
html[data-theme=dark] dialog.sc-dlg{box-shadow:0 20px 60px rgba(15,23,42,.35)!important}
html[data-theme=dark] dialog.sc-dlg::backdrop{background:rgba(15,23,42,.5)!important}
html[data-theme=dark] .sc-dh{border-bottom:1px solid #434342!important}
html[data-theme=dark] .sc-dh h3{color:#a5a49d!important}
html[data-theme=dark] .sc-dh h3 b{color:#c5c5c1!important}
html[data-theme=dark] .sc-steps:before{border-top:1px solid #474641!important}
html[data-theme=dark] .sc-steps i{border:2px solid #0f6e56!important;background:#2a2927!important;color:#66eac9!important}
html[data-theme=dark] .sc-steps i.on{background:#0f6e56!important;color:#ffffff!important}
html[data-theme=dark] .sc-row:nth-child(odd){background:#222220!important}
html[data-theme=dark] .sc-row>span{color:#a5a49d!important}
html[data-theme=dark] .sc-row>span em{color:#e07470!important}
html[data-theme=dark] .sc-foot{border-top:1px solid #434342!important}
html[data-theme=dark] .sc-emps{border:1px solid #434342!important}
html[data-theme=dark] .sc-emps label{border-bottom:1px solid #424140!important}
html[data-theme=dark] .sc-btn{color:#ffffff!important}
html[data-theme=dark] .sc-btn.pu{background:#0f6e56!important}
html[data-theme=dark] .sc-btn.rd{background:#d9534f!important}
html[data-theme=dark] .sc-btn.gr{background:#36a374!important}
html[data-theme=dark] .sc-btn.vi{background:#1d9e75!important}
html[data-theme=dark] .sc-btn.gh{background:#2a2927!important;color:#66eac9!important;border:1px solid #3b524b!important}
html[data-theme=dark] .ts-bar{background:#2a2927!important;border:1px solid #444342!important}
html[data-theme=dark] .ts-bar h2{color:#90a4c0!important}
html[data-theme=dark] .ts-f{background:#2a2927!important;border:1px solid #444342!important}
html[data-theme=dark] .ts-meta{color:#a5a49d!important}
html[data-theme=dark] .ec{background:#2a2927!important;border:1px solid #434341!important;box-shadow:0 1px 2px rgba(16,24,40,.04)!important}
html[data-theme=dark] .ec .ring{background:conic-gradient(var(--c) calc(var(--p)*1%),#2c2c29 0)!important}
html[data-theme=dark] .ec .ring .av{border:2px solid #3e3e3c!important}
html[data-theme=dark] .ec .badge{background:#2a2927!important;box-shadow:0 1px 3px rgba(0,0,0,.12)!important}
html[data-theme=dark] .ec .nm{color:#cecdca!important}
html[data-theme=dark] .ec .nm small{color:#a19f99!important}
html[data-theme=dark] .ec .pb{background:#33322f!important}
html[data-theme=dark] .ec .td{color:#f3f3f2!important}
html[data-theme=dark] .ec .td label{color:#a19f99!important}
html[data-theme=dark] .ec .mb small{color:#a19f99!important}
html[data-theme=dark] .mb.present{background:rgba(68,157,68,.12)!important;color:#86cb86!important}
html[data-theme=dark] .mb.absent{background:rgba(255,86,48,.08)!important;color:#ff7152!important}
html[data-theme=dark] .mb.leave{background:rgba(145,158,171,.12)!important;color:#85837a!important}
html[data-theme=dark] .mb.early{background:rgba(0,171,85,.08)!important;color:#52ffa8!important}
html[data-theme=dark] .mb.late{background:rgba(255,171,0,.08)!important;color:#ffc652!important}
html[data-theme=dark] .mb.more{background:rgba(37,99,235,.08)!important;color:#608df0!important}
html[data-theme=dark] .ec .go{color:#85837a!important}
html[data-theme=dark] .ms-pop{background:#2a2927!important;box-shadow:0 12px 36px rgba(15,23,42,.22)!important;color:#cecdca!important}
html[data-theme=dark] .ms-pop p{color:#a19f99!important}
html[data-theme=dark] .ms-pop .gg div{background:#21211f!important}
html[data-theme=dark] .ms-pop .gg b{color:#90a4c0!important}
html[data-theme=dark] .ms-pop .gg small{color:#a19f99!important}
html[data-theme=dark] .ts-pager a{border:1px solid #464645!important;color:#66eac9!important;background:#2a2927!important}
html[data-theme=dark] .ts-pager .on{background:#0f6e56!important;color:#ffffff!important;border-color:#0f6e56!important}
html[data-theme=dark] .tsp-bg{background:rgba(15,23,42,.45)!important}
html[data-theme=dark] .tsp{background:#2a2927!important;box-shadow:-10px 0 40px rgba(15,23,42,.2)!important}
html[data-theme=dark] .tsp-head{background:#192a24!important}
html[data-theme=dark] .tsp-pic .av{border:3px solid #3e3e3c!important}
html[data-theme=dark] .tsp-nm{color:#90a4c0!important}
html[data-theme=dark] .tsp-code{background:#2a2927!important;color:#cecdca!important}
html[data-theme=dark] .tsp-sub{color:#b4b3ae!important}
html[data-theme=dark] .tsp-score .ring{background:conic-gradient(var(--c) calc(var(--p)*1%),#2c2c29 0)!important}
html[data-theme=dark] .tsp-score .ring span{background:#2a2927!important}
html[data-theme=dark] .tsp-score small{color:#a19f99!important}
html[data-theme=dark] .tsp-x{background:#555555!important;color:#ffffff!important}
html[data-theme=dark] .tsp-box{border:1px solid #444342!important}
html[data-theme=dark] .tsp-box summary{color:#cecdca!important}
html[data-theme=dark] .tsp-f label{color:#cecdca!important}
html[data-theme=dark] .tsp-f em{color:#e07470!important}
html[data-theme=dark] .tsp-f .rg b{background:#282725!important}
html[data-theme=dark] .tsp-sum div{background:#21211f!important}
html[data-theme=dark] .tsp-sum b{color:#90a4c0!important}
html[data-theme=dark] .tsp-sum small{color:#a19f99!important}
html[data-theme=dark] .tsp-leg{color:#c2c1bd!important}
html[data-theme=dark] .tsp-leg i,html[data-theme=dark] .tsp-t i.lg{color:#ffffff!important}
html[data-theme=dark] .tsp-t th{color:#cecdca!important;border-bottom:1px solid #434342!important}
html[data-theme=dark] .tsp-t td{border-bottom:1px solid #424240!important;color:#c2c1bd!important}
html[data-theme=dark] .tsp-t td em{color:#9d9c95!important}
html[data-theme=dark] .tsp-chip{color:#ffffff!important}
html[data-theme=dark] .ic.rd{border-color:#d9534f!important}
html[data-theme=dark] .ic.gn{border-color:#5cb85c!important;color:#86ca86!important}
html[data-theme=dark] .ic.pu{border-color:#0f6e56!important}
html[data-theme=dark] .ic.in{border-color:#5bc0de!important}
html[data-theme=dark] .tsp-logs td{background:#1d1d1b!important}
html[data-theme=dark] .tse{background:rgba(15,23,42,.5)!important}
html[data-theme=dark] .tse-card{background:#2a2927!important}
html[data-theme=dark] .tse-pic{background:#222220!important}
html[data-theme=dark] .tse-info div{background:#222220!important}
html[data-theme=dark] .tse-info span{color:#a5a49d!important}
html[data-theme=dark] .tse-info b{color:#c2c1bd!important}
html[data-theme=dark] .sc-dh{border-bottom:1px solid #434342!important}
html[data-theme=dark] .sc-dh h3{color:#a5a49d!important}
html[data-theme=dark] .sc-dh h3 b{color:#c5c5c1!important}
html[data-theme=dark] .sc-row:nth-child(odd){background:#222220!important}
html[data-theme=dark] .sc-row>span{color:#a5a49d!important}
html[data-theme=dark] .sc-row>span em{color:#e07470!important}
html[data-theme=dark] .sc-row input[readonly]{background:#282725!important}
html[data-theme=dark] .sc-foot{border-top:1px solid #434342!important}
/* ================= Night shift theme (light + night), v61 ================= */
:root{
  --brand:#1D9E75; --brand-d:#0F6E56; --brand-soft:#E1F5EE; --navy:#0F6E56; --navy-2:#0F6E56; --green:#1D9E75;
  --amber:#BA7517; --amber-soft:#FAEEDA;
  --bg:#F4F3EF; --card:#fff; --soft:#EFEEE9; --line:#E4E2DA; --line-2:#EFEEE9; --ink:#2C2C2A; --muted:#6E6D66;
  --side:#2C2C2A; --side-2:#232321; --side-t:#C9C7BF; --side-m:#8B8A83; --side-on:#085041; --side-on-t:#E1F5EE;
  --font:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
html[data-theme=dark]{
  --brand:#5DCAA5; --brand-d:#1D9E75; --brand-soft:#0E3A30; --navy:#9FE1CB; --navy-2:#9FE1CB; --green:#5DCAA5;
  --amber:#FAC775; --amber-soft:#3A2D14;
  --bg:#1C1C1A; --card:#262624; --soft:#2F2F2C; --line:#3A3A37; --line-2:#302F2D; --ink:#F1EFE8; --muted:#A3A29B;
  --side:#232321; --side-2:#1A1A18;
  --ok-soft:#173226; --warn-soft:#3A2D14; --bad-soft:#3B1D1B;
  color-scheme:dark;
}
body{font-family:var(--font);color:#45443F;background:var(--bg);font-feature-settings:"tnum" 1}
h1,h2,.card-h h2,.card>h2:first-child,.head h1,.side-title b{color:var(--ink)}
h1{font-weight:800;letter-spacing:-.02em}
a{color:var(--brand-d)}
.eyebrow{color:var(--brand-d)}
.strip{display:none}
.shell{padding-top:0}.side,.topbar{top:0}

/* one charcoal sidebar (rail + module panel read as one block) */
html[data-theme] .rail{background:var(--side-2);border-right:0}
html[data-theme] .rail-logo{color:#5DCAA5;border-color:#5DCAA5;border-radius:12px}
html[data-theme] .rail-link{color:var(--side-m)}html[data-theme] .rail-link svg{color:var(--side-m)}
html[data-theme] .rail-link:hover{background:#33332F;color:#F1EFE8}html[data-theme] .rail-link:hover svg{color:#F1EFE8}
html[data-theme] .rail-link.on{background:var(--side-on);color:var(--side-on-t)}html[data-theme] .rail-link.on svg{color:#5DCAA5}
html[data-theme] .rail-dot{border-color:var(--side-2);background:#EF9F27}
html[data-theme] .side{background:var(--side);border-right:1px solid #3A3A37}
html[data-theme] .side-title{border-bottom-color:#3A3A37}html[data-theme] .side-title b{color:#F1EFE8}
html[data-theme] .side-link{color:var(--side-t)}html[data-theme] .side-link svg{color:var(--side-m)}
html[data-theme] .side-link:hover{background:#353532;color:#F1EFE8}
html[data-theme] .side-link.on{background:var(--side-on);color:var(--side-on-t)}html[data-theme] .side-link.on svg{color:#5DCAA5}
html[data-theme] .side-badge{background:#EF9F27;color:#2C2C2A}
html[data-theme] .side-x{color:#C9C7BF}

/* top bar */
html[data-theme] .topbar{background:var(--card);border-bottom:1px solid var(--line)}
html[data-theme] .top-search{background:var(--bg);border-color:var(--line)}
html[data-theme] .top-search input{color:var(--ink)}
html[data-theme] .bell{color:var(--muted)}html[data-theme] .bell:hover{background:var(--soft)}html[data-theme] .bell em{background:#EF9F27;color:#2C2C2A;border-color:var(--card)}
html[data-theme] .pill-live{background:var(--card);color:var(--ink);border-color:var(--line)}
html[data-theme] .av{background:var(--brand-soft);color:var(--brand-d)}
html[data-theme] .theme-tg{width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:var(--card);color:var(--ink);display:grid;place-items:center;cursor:pointer;padding:0;flex:none}
html[data-theme] .theme-tg:hover{background:var(--soft)}html[data-theme] .theme-tg svg{width:18px;height:18px}
html[data-theme] .theme-tg .mo{display:none}html[data-theme=dark] .theme-tg .su{display:none}html[data-theme=dark] .theme-tg .mo{display:block}

/* cards: flat, a hairline, no glow */
html[data-theme] .card,html[data-theme] .kpi{background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:none}
html[data-theme] .card-h{border-bottom:1px solid var(--line)}
html[data-theme] .drill .card-h{border-bottom:1px solid var(--line)}

/* number tiles: neutral card, a coloured tick, big tabular number */
html[data-theme] .kpi,html[data-theme] .kpis>.kpi:nth-child(n){background:var(--card)}
html[data-theme] .kpi::before{width:3px;height:auto;top:14px;bottom:14px;left:0;border-radius:0 3px 3px 0;background:var(--brand)}
html[data-theme] .kpi .label{font-size:13px;font-weight:600;color:var(--muted)}
html[data-theme] .kpi .v{color:var(--ink);font-weight:800;font-size:clamp(22px,2vw,28px);letter-spacing:-.02em}
html[data-theme] .kpi.link:hover,html[data-theme] .kpis>.kpi.link:hover{background:var(--soft);border:1px solid var(--line)}
html[data-theme] .kpis>.kpi:nth-child(6n+2)::before{background:#BA7517}
html[data-theme] .kpis>.kpi:nth-child(6n+3)::before{background:#378ADD}
html[data-theme] .kpis>.kpi:nth-child(6n+4)::before{background:#E24B4A}
html[data-theme] .kpis>.kpi:nth-child(6n+5)::before{background:#888780}
html[data-theme] .kpis>.kpi:nth-child(6n)::before{background:#639922}

/* buttons */
.btn{background:var(--brand-d);border-color:var(--brand-d);color:#fff;border-radius:8px}
.btn:hover{background:#0B5A46;border-color:#0B5A46}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.ghost:hover{background:var(--soft)}
.btn.gold{background:#EF9F27;border-color:#EF9F27;color:#2C2C2A}.btn.gold:hover{background:#E08C10}
html[data-theme=dark] .btn{background:#1D9E75;border-color:#1D9E75;color:#04241D}
html[data-theme=dark] .btn:hover{background:#5DCAA5;border-color:#5DCAA5}
html[data-theme=dark] .btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
html[data-theme=dark] .btn.ghost:hover{background:var(--soft)}
html[data-theme=dark] .btn.gold{background:#EF9F27;border-color:#EF9F27;color:#2C2C2A}
html[data-theme=dark] .btn.danger,html[data-theme=dark] .btn.bad{background:#A32D2D;border-color:#A32D2D;color:#fff}

/* tables & inputs */
th{background:var(--soft);color:var(--ink)}
td{border-bottom:1px solid var(--line-2)}
tbody tr:hover td,tr:hover>td{background:var(--bg)}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{background:var(--card);color:var(--ink);border-color:var(--line)}
input:focus,select:focus,textarea:focus{border-color:var(--brand)!important;box-shadow:0 0 0 3px var(--brand-soft)}
html[data-theme=dark] input:not([type=checkbox]):not([type=radio]):not([type=file]),html[data-theme=dark] select,html[data-theme=dark] textarea{background:#1F1F1D;color:var(--ink);border-color:#44443F}
html[data-theme=dark] ::placeholder{color:#77766F}

/* hero, headers of the phone apps: charcoal with a teal edge, both modes */
html[data-theme] .hero{background:linear-gradient(120deg,#04342C,#0F6E56);box-shadow:none}
html[data-theme] .sup-top,html[data-theme] header.emp-top{background:#2C2C2A!important;border-bottom:2px solid #1D9E75}
html[data-theme] header.emp-top .sup-brand small{color:#B4B2A9}
html[data-theme] .ptabs a.on{color:var(--brand)!important;border-color:var(--brand)!important}
html[data-theme] .mark,html[data-theme] body.lg .mark{background:#2C2C2A;box-shadow:inset 0 -3px 0 #1D9E75;color:#5DCAA5}
html[data-theme] .chip{border-radius:6px}

/* "waiting" things read amber everywhere */
.chip.warn,.pill.warn{background:var(--amber-soft);color:var(--amber)}

/* night: surfaces the generated layer can't know about */
html[data-theme=dark] body{color:#D3D1C7}
html[data-theme=dark] .muted,html[data-theme=dark] small.muted{color:var(--muted)}
html[data-theme=dark] hr{border-color:var(--line)}
html[data-theme=dark] img.lab-photo,html[data-theme=dark] .av img{filter:none}
html[data-theme=dark] [style*="background:#fff"],html[data-theme=dark] [style*="background: #fff"],html[data-theme=dark] [style*="background:#ffffff"],html[data-theme=dark] [style*="background:white"]{background:var(--card)!important}
html[data-theme=dark] [style*="background:#f"],html[data-theme=dark] [style*="background:#e"],html[data-theme=dark] [style*="background: #f"]{background:var(--soft)!important}
html[data-theme=dark] [style*="color:#333"],html[data-theme=dark] [style*="color:#444"],html[data-theme=dark] [style*="color:#1f2937"],html[data-theme=dark] [style*="color:#000"],html[data-theme=dark] [style*="color:#2b3640"],html[data-theme=dark] [style*="color:#4b5a66"]{color:var(--ink)!important}
html[data-theme=dark] [style*="color:#616f77"],html[data-theme=dark] [style*="color:#637381"],html[data-theme=dark] [style*="color:#6b7280"],html[data-theme=dark] [style*="color:#888"],html[data-theme=dark] [style*="color:#999"],html[data-theme=dark] [style*="color:#666"]{color:var(--muted)!important}
html[data-theme=dark] [style*="border:1px solid #e"],html[data-theme=dark] [style*="border-bottom:1px solid #e"]{border-color:var(--line)!important}
html[data-theme=dark] svg text{fill:currentColor}

/* ================= Folded sections (ui.js) ================= */
.fold-h{cursor:pointer;user-select:none}
.fold-h .fold-c{margin-left:auto;width:28px;height:28px;border-radius:8px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer;flex:none;padding:0}
.fold-h .fold-c:hover{background:var(--soft);color:var(--ink)}
.fold-h .fold-c svg{width:16px;height:16px;transition:transform .15s}
.card h2.fold-h,.card h3.fold-h{display:flex;align-items:center;gap:10px}
.fold-n{font-size:12px;font-weight:600;color:var(--muted);background:var(--soft);border-radius:20px;padding:1px 9px;white-space:nowrap}
.card.folded .fold-b{display:none}
.card.folded .fold-c svg{transform:rotate(-90deg)}
.card.folded>.card-h{border-bottom:0}
.card.folded:not(.flush){padding-top:14px;padding-bottom:14px}
.card.folded:not(.flush) h2.fold-h,.card.folded:not(.flush) h3.fold-h{margin:0}
.card:not(.folded) .fold-n{display:none}
.fold-bar{display:flex;justify-content:flex-end;gap:6px;margin:-6px 0 -8px}
.fold-bar button{border:0;background:none;color:var(--muted);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;padding:4px 8px;border-radius:6px}
.fold-bar button:hover{background:var(--soft);color:var(--ink)}
tr.fold-more{display:none}
table.show-all tr.fold-more{display:table-row}
.fold-all{display:block;width:100%;border:0;border-top:1px solid var(--line);background:transparent;color:var(--brand-d);font:inherit;font-size:13px;font-weight:700;padding:10px;cursor:pointer}
.fold-all:hover{background:var(--soft)}
html[data-theme=dark] .fold-all{color:var(--brand)}
@media print{.fold-b{display:block!important}tr.fold-more{display:table-row!important}.fold-all,.fold-bar,.fold-c,.theme-tg{display:none!important}}
.theme-tg.on-dark{background:transparent;border-color:rgba(255,255,255,.25);color:#F1EFE8}
.theme-tg.on-dark:hover{background:rgba(255,255,255,.08)}
.sup-top .theme-tg{margin-left:8px}
/* drill-down tiles: quiet card, coloured edge, big number */
html[data-theme] .tile,html[data-theme] .tile.t1,html[data-theme] .tile.t2,html[data-theme] .tile.t3,html[data-theme] .tile.t4,html[data-theme] .tile.t5,html[data-theme] .tile.t6,html[data-theme] .tile.t7,html[data-theme] .tile.t8,html[data-theme] .tile.t9{background:var(--bg);border:1px solid var(--line);padding:14px 34px 14px 18px;border-radius:10px;overflow:hidden}
html[data-theme] .tile i{left:0;top:12px;bottom:12px;width:3px;height:auto;border-radius:0 3px 3px 0}
html[data-theme] .tile b{font-size:12.5px;font-weight:600;color:var(--muted)}
html[data-theme] .tile span{font-size:24px;font-weight:800;color:var(--ink);letter-spacing:-.02em;line-height:1.2}
html[data-theme] .tile::after{color:var(--muted)}
html[data-theme] .tile:hover{filter:none;background:var(--soft)}
html[data-theme] .tile.on{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
html[data-theme] .top-search input{border:0!important;background:transparent!important;box-shadow:none!important}
/* staff & office sign-in: charcoal with a teal glow, both modes */
html[data-theme] body.elg{background:radial-gradient(900px 520px at 12% -12%,#0F6E56 0,#1f3a33 38%,#232321 75%)}
html[data-theme] header.emp-top .theme-tg,html[data-theme] .sup-top .theme-tg{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#F1EFE8}
html[data-theme] .mc-acts .mc-del{color:#A32D2D;border-color:#F09595;margin-left:auto}
html[data-theme] .mc-acts .mc-del:hover{background:#FCEBEB}
html[data-theme=dark] .mc-acts .mc-del{color:#F09595;border-color:#791F1F}
html[data-theme=dark] .mc-acts .mc-del:hover{background:#3B1D1B}
/* scheduling: delete all shifts of one employee */
.sc-emp{position:relative}
.sc-xall{flex:none;width:26px;height:26px;border-radius:6px;border:1px solid transparent;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer;padding:0;opacity:0;transition:opacity .12s}
.sc-xall svg{width:15px;height:15px}
.sc-t tr:hover .sc-xall,.sc-xall:focus{opacity:1}
.sc-xall:hover{color:#A32D2D;border-color:#F09595;background:#FCEBEB}
html[data-theme=dark] .sc-xall:hover{color:#F09595;border-color:#791F1F;background:#3B1D1B}
@media (hover:none){.sc-xall{opacity:1}}
.sa-opts label{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;margin-top:8px;cursor:pointer}
.sa-opts label span{flex:1}
.sa-opts label em{font-style:normal;font-size:12.5px;font-weight:700;color:var(--muted);background:var(--soft);border-radius:20px;padding:1px 9px}
.sa-opts label:has(input:checked){border-color:#E24B4A;background:#FCEBEB}
html[data-theme=dark] .sa-opts label:has(input:checked){border-color:#A32D2D;background:#3B1D1B}
.sa-opts label.none{opacity:.45;cursor:default}
.sc-xall{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:var(--card)}
/* ===== Attendance › Shift Time Settings ===== */
.ss-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.ss-card{position:relative;padding:16px 18px 14px;overflow:hidden}
.ss-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--sc)}
.ss-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.ss-top b{display:block;font-size:15px;color:var(--ink)}.ss-top small{color:var(--muted);font-size:12px}
.ss-n{font-size:20px;font-weight:800;color:var(--ink);text-align:right;line-height:1.1;white-space:nowrap}.ss-n small{display:block;font-size:11px;font-weight:600;color:var(--muted)}
.ss-time{font-size:22px;font-weight:800;color:var(--ink);letter-spacing:-.02em;margin:10px 0 6px}.ss-time i{font-style:normal;color:var(--muted);font-weight:500;margin:0 4px}
.ss-facts{list-style:none;padding:0;margin:0 0 12px;font-size:13px;color:var(--muted);display:grid;gap:2px}
.ss-acts{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.ss-acts form{margin-left:auto}
.ss-del{color:#A32D2D}.ss-del:disabled{opacity:.4;cursor:not-allowed}
html[data-theme=dark] .ss-del{color:#F09595}
.ss-form .ss-fg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;margin-top:14px}
.ss-fg label{display:flex;flex-direction:column;gap:5px;font-size:13px}.ss-fg label>span,.ss-off>span{font-weight:600;color:var(--ink)}
.ss-fg small{color:var(--muted);font-size:12px}
.ss-fg .w2{grid-column:span 2}.ss-fg .w3{grid-column:1/-1}
.ss-fg input[type=color]{height:40px;padding:3px;width:72px}
.ss-off{display:flex;flex-direction:column;gap:6px;font-size:13px}.ss-off>div{display:flex;flex-wrap:wrap;gap:6px}
.ss-off label{flex-direction:row;align-items:center;gap:6px;border:1px solid var(--line);border-radius:8px;padding:7px 12px;cursor:pointer}
.ss-off label:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}
.ss-more{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}.ss-more summary{cursor:pointer;font-weight:600;font-size:13.5px;color:var(--ink)}
.ss-ck{flex-direction:row!important;align-items:center;gap:8px!important;font-size:13px}
.ss-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.ss-bar{display:flex;gap:8px;flex-wrap:wrap;padding:14px 20px 0}.ss-bar input[type=search]{flex:1;min-width:200px}
.ss-give{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 20px;padding:10px 14px;border-radius:10px;background:var(--brand-soft);font-size:13.5px;color:var(--ink)}
.ss-give select{min-width:260px}.ss-give .btn{margin-left:auto}
.ss-t td{vertical-align:middle}.ss-t tbody tr{cursor:pointer}
.ss-emp{display:flex;align-items:center;gap:10px}.ss-emp .av{width:32px;height:32px;flex:0 0 32px;font-size:12px}.ss-emp b{display:block;color:var(--ink)}.ss-emp small{color:var(--muted);font-size:12px}
.ss-chip{display:inline-flex;flex-direction:column;border-left:3px solid var(--sc);padding:1px 0 1px 9px;line-height:1.25;font-weight:600;color:var(--ink)}
.ss-chip small{font-weight:500;color:var(--muted);font-size:12px}
@media (max-width:900px){.ss-form .ss-fg{grid-template-columns:1fr 1fr}.ss-fg .w2{grid-column:1/-1}}
@media (max-width:560px){.ss-form .ss-fg{grid-template-columns:1fr}.ss-give select{min-width:0;flex:1}}
.ss-give .ss-ck{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:6px;white-space:nowrap;margin:0}
.ss-give .ss-ck input{width:auto;min-height:0;margin:0}
.ss-t th input,.ss-t td input[type=checkbox]{width:16px;height:16px;min-height:0;margin:0;box-shadow:none}
/* payroll setup: attendance cuts */
.pr-auto{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--brand-d);background:var(--brand-soft);border-radius:6px;padding:5px 10px}
html[data-theme=dark] .pr-auto{color:var(--brand)}
.pr-warn{margin-top:6px;font-size:12.5px;color:#854F0B;background:#FAEEDA;border-radius:6px;padding:6px 10px;max-width:640px}
html[data-theme=dark] .pr-warn{color:#FAC775;background:#3A2D14}
.prc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.prc-pol{border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;background:var(--card)}
.prc-pol.on{border-color:var(--brand);box-shadow:inset 3px 0 0 var(--brand)}
.prc-h b{display:block;color:var(--ink);font-size:14.5px}.prc-h small{display:block;color:var(--muted);font-size:12.5px;line-height:1.4;margin-top:2px}
.prc-np{display:flex;flex-wrap:wrap;gap:10px;padding:10px;border-radius:8px;background:var(--bg)}
.prc-np label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:600;color:var(--ink)}
.prc-np[hidden]{display:none}
.prc-grid{align-items:start}
.prc-pol{min-width:0}
.prc-pol>select,.prc-np select,.prc-np input{flex:none;width:100%;max-width:100%;min-height:38px;height:auto;box-sizing:border-box}
.prc-np label{flex:1 1 120px;min-width:0}
.prc-np .row select{width:auto;flex:1}
.prc-np .row input{width:80px!important;flex:none}
.prc-pol select,.prc-pol input{min-width:0!important;width:100%!important}
.prc-np .row input{width:80px!important}
.prc-h{min-width:0;overflow-wrap:anywhere}
.prc-pol select,.prc-pol input,.prc-np label{box-sizing:border-box!important}
.prc-np .row{flex-wrap:nowrap;min-width:0}.prc-np .row select{min-width:0!important;width:auto!important;flex:1 1 0}
.prc-np label:first-child{flex-basis:100%}
/* Payroll › Deductions summary */
.ds-f{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;padding:14px 18px}
.ds-f label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:600;color:var(--ink)}
.ds-f .ds-ck{flex-direction:row;align-items:center;gap:8px;padding-bottom:10px}
.ds-ck input[type=checkbox]{width:16px;height:16px;min-height:0}
.ds-wrap{display:grid;grid-template-columns:minmax(320px,440px) 1fr;gap:16px;align-items:start}
.ds-text{position:sticky;top:84px}
.ds-text textarea{display:block;width:100%;min-height:520px;border:0!important;border-radius:0 0 12px 12px;padding:14px 18px;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;background:var(--bg)!important;color:var(--ink)!important;resize:vertical;box-shadow:none!important}
.ds-list{display:flex;flex-direction:column;gap:14px;min-width:0}
.ds-list .card-h{gap:10px}
.ds-t td{vertical-align:top}.ds-t td small{display:block;color:var(--muted);font-size:12px}
.ds-t .r{text-align:right;white-space:nowrap}
.ds-t tr.ds-first td{border-top:1px solid var(--line)}
.ds-t tr td{border-bottom:0}
.ds-t .ds-n{font-weight:600;color:var(--ink)}
.ds-t tr.ds-tot td{font-weight:700;color:var(--ink);padding-top:2px}
.ds-t tr.ds-tot td:nth-child(2){text-align:right;color:var(--muted);font-weight:600}
@media (max-width:1000px){.ds-wrap{grid-template-columns:1fr}.ds-text{position:static}}
.ds-text .card-h{padding:14px 18px}
/* inside the IAA Staff app (iPhone / Android) */
.native-only{display:none}
html.native-app .native-only{display:block}
html.native-app #appInstall,html.native-app .app-install:not(.push-ask){display:none!important}
html.native-app body{-webkit-user-select:none;user-select:none}
html.native-app input,html.native-app textarea{-webkit-user-select:text;user-select:text}
/* Assistant settings: Claude or OmniRoute */
.ai-prov{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 12px}
.ai-prov label{display:flex;gap:8px;align-items:flex-start;border:1px solid var(--line);border-radius:10px;padding:10px;cursor:pointer}
.ai-prov label:has(input:checked){border-color:var(--brand);background:var(--brand-soft)}
.ai-prov input{width:auto;margin-top:3px}.ai-prov b{display:block;font-size:14px;color:var(--ink)}.ai-prov small{color:var(--muted);font-size:12px;line-height:1.35}
.ai-box[hidden],.prq-bar [hidden]{display:none!important}
.ai-warn{color:#854F0B;background:#FAEEDA;border-radius:8px;padding:8px 10px;margin:4px 0 0}
html[data-theme=dark] .ai-warn{color:#FAC775;background:#3A2D14}

/* ---------- roles: team board in the staff app, view-only office portal ---------- */
.tm-days{display:flex;gap:6px}
.tm-days a{padding:4px 10px;border-radius:16px;background:#f1faf7;color:#0F6E56;text-decoration:none;font-weight:700;font-size:13px}
.tm-tiles{margin-bottom:6px}
.tm-tiles a{display:block;background:#f3fdfa;border-radius:12px;padding:10px 4px;text-decoration:none;border:2px solid transparent}
.tm-tiles a.on{border-color:var(--brand-d,#169a6e)}
.tm-tiles a b{display:block;font-size:20px;color:#2b3640}
.tm-tiles a small{font-size:11.5px;color:#6b7a86}
.tm-list>a{display:grid;grid-template-columns:1fr auto;gap:2px 10px;padding:10px 0;border-bottom:1px solid #f0f1f4;color:inherit;text-decoration:none}
.tm-list>a small{grid-column:1;color:#8a96a3;font-size:12px}
.tm-list>a>span{grid-row:1/3;grid-column:2;align-self:center;font-size:13px;text-align:right}
.tm-list .tm-t{color:#6b7a86;font-size:12px;white-space:nowrap}
.emp-of .emp-filter{padding:0;border:0;flex-wrap:wrap}
.ro-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between;padding:10px 14px;margin:0 0 14px;border-radius:12px;background:#fff7e6;border:1px solid #f1d9a6;color:#6b4e12;font-size:14px}
form.ro-form button[disabled],form.ro-form input[type=submit][disabled]{opacity:.45;cursor:not-allowed}
[data-theme=dark] .tm-days a{background:#20201e;color:#5DCAA5}
[data-theme=dark] .tm-tiles a{background:#20201e}
[data-theme=dark] .tm-tiles a b{color:#F1EFE8}
[data-theme=dark] .tm-tiles a small,[data-theme=dark] .tm-list>a small,[data-theme=dark] .tm-list .tm-t{color:#86857c}
[data-theme=dark] .tm-list>a{border-bottom-color:#424240}
[data-theme=dark] .ro-bar{background:#2a2414;border-color:#5a4a22;color:#f0d9a0}

/* ---------- bulk review of requests ---------- */
.rv{max-width:820px}
.rv-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;margin:0 0 12px;border-radius:12px;background:#ffffff;box-shadow:0 4px 14px -10px rgba(0,0,0,.4)}
.rv-sum{font-weight:600;font-size:14px}
.rv-all{display:flex;gap:6px}
.rv-card{background:#ffffff;border-radius:14px;padding:14px 16px;margin:0 0 12px;border:2px solid transparent;box-shadow:0 2px 10px -8px rgba(0,0,0,.35)}
.rv-card.is-a{border-color:#1D9E75}
.rv-card.is-r{border-color:#d9534f}
.rv-h{display:flex;align-items:center;gap:10px}
.rv-ic{font-size:20px}
.rv-who{flex:1;min-width:0}.rv-who b{display:block}.rv-who small{color:#8a96a3;font-size:12px}
.rv-what{margin:10px 0 6px;font-weight:600}
.rv-reason{font-size:15px;line-height:1.5;padding:10px 12px;border-radius:10px;background:#f6f7f5;white-space:normal;word-break:break-word}
.rv-meta{margin:8px 0 0;color:#6b7a86;font-size:12.5px}
.rv-dec{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0 8px}
.rv-dec label{cursor:pointer}
.rv-dec input{position:absolute;opacity:0;pointer-events:none}
.rv-dec span{display:inline-block;padding:8px 14px;border-radius:20px;border:1px solid #d8dde3;font-weight:600;font-size:14px}
.rv-a input:checked+span{background:#1D9E75;border-color:#1D9E75;color:#fff}
.rv-r input:checked+span{background:#d9534f;border-color:#d9534f;color:#fff}
.rv-s input:checked+span{background:#eef0f2;border-color:#c9ced4}
.rv-dec input:focus-visible+span{outline:2px solid #0F6E56;outline-offset:2px}
.rv-note{width:100%}
.rv-foot{display:flex;justify-content:flex-end;gap:10px;margin:6px 0 24px}
[data-theme=dark] .rv-bar,[data-theme=dark] .rv-card{background:#262624}
[data-theme=dark] .rv-reason{background:#1c1c1a}
[data-theme=dark] .rv-who small,[data-theme=dark] .rv-meta{color:#86857c}
[data-theme=dark] .rv-dec span{border-color:#4a4a47}
[data-theme=dark] .rv-s input:checked+span{background:#3a3a37;border-color:#5a5a56}
.rv-card.is-b{border-color:#d99a1f}
.rv-b input:checked+span{background:#d99a1f;border-color:#d99a1f;color:#fff}
.rv-to{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;margin:0 0 8px;font-size:14px}
.rv-to label{display:inline-flex;gap:6px;align-items:center;cursor:pointer}
.rq-back{margin:6px 0;padding:8px 10px;border-radius:10px;background:#fff7e6;color:#6b4e12;font-size:13.5px}
.rq-resend{display:flex;gap:6px;margin:6px 0 0}.rq-resend input{flex:1;min-width:0}
[data-theme=dark] .rq-back{background:#2a2414;color:#f0d9a0}
.frad-row{display:flex;align-items:center;gap:6px}
.frad-pre{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0 2px}

/* ================= Accounts: QuickBooks-style theme (light mode), v66 =================
   QuickBooks green actions, link blue, charcoal text on a light grey page, white cards,
   tabs of the current area across the top (the side panel only opens on phones), "+ New" menu. */
html[data-theme=light] body.qb{
  --qb-green:#2CA01C; --qb-green-d:#108000; --qb-green-soft:#E6F4E3; --qb-blue:#0077C5; --qb-text:#393A3D; --qb-text-2:#6B6C72; --qb-line:#D4D7DC; --qb-line-2:#E3E5E8;
  --brand:#2CA01C; --brand-d:#108000; --brand-soft:#E6F4E3; --navy:#393A3D; --navy-2:#0077C5; --green:#2CA01C;
  --bg:#F4F5F8; --card:#fff; --soft:#F4F5F8; --line:#E3E5E8; --line-2:#ECEEF1; --ink:#393A3D; --muted:#6B6C72;
  --side:#fff; --side-2:#2E3133; --side-t:#393A3D; --side-m:#B9BBBF; --side-on:#3C4044; --side-on-t:#fff;
  --amber:#C25700; --amber-soft:#FFF1E0;
  --font:"Avenir Next","Avenir","Nunito Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  font-family:var(--font);color:var(--qb-text);font-size:14px;font-feature-settings:"tnum" 1,"lnum" 1;
}
html[data-theme=light] body.qb a{color:var(--qb-blue)}
html[data-theme=light] body.qb h1{font-weight:700;font-size:24px;letter-spacing:-.01em;color:var(--qb-text)}
html[data-theme=light] body.qb h2{font-weight:700;font-size:16px;color:var(--qb-text)}
html[data-theme=light] body.qb .eyebrow{color:var(--qb-text-2);font-weight:600;letter-spacing:.04em;font-size:12px}
html[data-theme=light] body.qb .head p.muted,html[data-theme=light] body.qb .head .muted{font-size:13.5px}
/* left rail: charcoal, white icons, the open area marked with a green bar */
html[data-theme=light] body.qb .rail{background:var(--side-2)}
html[data-theme=light] body.qb .rail-logo{color:#fff;border:0;background:var(--qb-green);border-radius:50%;font-size:12px}
html[data-theme=light] body.qb .rail-link{color:var(--side-m);border-radius:6px}
html[data-theme=light] body.qb .rail-link svg{color:var(--side-m)}
html[data-theme=light] body.qb .rail-link:hover{background:#3A3E42;color:#fff}html[data-theme=light] body.qb .rail-link:hover svg{color:#fff}
html[data-theme=light] body.qb .rail-link.on{background:var(--side-on);color:#fff;box-shadow:inset 3px 0 0 var(--qb-green)}
html[data-theme=light] body.qb .rail-link.on svg{color:#fff}
/* the side panel becomes the tab strip on wide screens */
@media (min-width:1000px){
  html[data-theme=light] body.qb .side{display:none}
  html[data-theme=light] body.qb.has-sub .shell{margin-left:88px}
}
html[data-theme=light] body.qb .side{background:#fff;border-right:1px solid var(--qb-line-2)}
html[data-theme=light] body.qb .side-title b{color:var(--qb-text)}
html[data-theme=light] body.qb .side-link{color:var(--qb-text)}html[data-theme=light] body.qb .side-link svg{color:var(--qb-text-2)}
html[data-theme=light] body.qb .side-link:hover{background:var(--bg)}
html[data-theme=light] body.qb .side-link.on{background:var(--qb-green-soft);color:var(--qb-green-d);box-shadow:inset 3px 0 0 var(--qb-green)}
html[data-theme=light] body.qb .side-link.on svg{color:var(--qb-green-d)}
/* top bar */
html[data-theme=light] body.qb .topbar{background:#fff;border-bottom:1px solid var(--qb-line-2);min-height:60px;padding-top:10px;padding-bottom:10px}
html[data-theme=light] body.qb .office-title b{color:var(--qb-text);font-weight:700}
html[data-theme=light] body.qb .office-title small{color:var(--qb-text-2)}
html[data-theme=light] body.qb .top-search{background:var(--bg);border:1px solid transparent;border-radius:20px}
html[data-theme=light] body.qb .top-search:focus-within{background:#fff;border-color:var(--qb-line)}
html[data-theme=light] body.qb .av{background:#E3E5E8;color:var(--qb-text)}
.qb-new{position:relative}
.qb-new>summary{list-style:none;cursor:pointer}.qb-new>summary::-webkit-details-marker{display:none}
html[data-theme] body.qb .qb-new>summary.btn{border-radius:20px;padding:7px 18px;font-weight:700;min-height:36px}
.qb-new-m{position:absolute;right:0;top:calc(100% + 8px);z-index:80;background:var(--card);border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 32px rgba(0,0,0,.16);padding:16px 18px;display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:4px 22px;min-width:520px}
.qb-new-m b{display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:2px 0 8px}
.qb-new-m a{display:block;padding:6px 0;color:var(--ink)!important;text-decoration:none;font-size:14px}
.qb-new-m a:hover{color:var(--brand-d)!important;text-decoration:underline}
@media (max-width:700px){.qb-new-m{grid-template-columns:1fr;min-width:220px}}
/* the area's pages as tabs (QuickBooks "app carousel") */
.qb-tabs{display:flex;align-items:stretch;gap:2px;background:var(--card);border-bottom:1px solid var(--line);padding:0 28px;overflow-x:auto;scrollbar-width:none}
.qb-tabs::-webkit-scrollbar{display:none}
.qb-area{display:flex;align-items:center;font-size:15px;font-weight:700;color:var(--ink);padding:0 22px 0 0;margin-right:8px;border-right:1px solid var(--line);white-space:nowrap}
.qb-tabs a{display:flex;align-items:center;padding:13px 14px 11px;color:var(--muted)!important;text-decoration:none;font-weight:600;font-size:14px;white-space:nowrap;border-bottom:3px solid transparent}
.qb-tabs a:hover{color:var(--ink)!important;border-bottom-color:var(--line)}
.qb-tabs a.on{color:var(--ink)!important;border-bottom-color:var(--brand)}
html[data-theme=dark] .qb-tabs a.on{border-bottom-color:var(--brand)}
@media (max-width:999px){.qb-tabs{padding:0 14px}.qb-area{display:none}}
/* page, cards, number tiles */
html[data-theme=light] body.qb .page{max-width:1440px}
html[data-theme=light] body.qb .card,html[data-theme=light] body.qb .kpi{border:1px solid var(--qb-line-2);border-radius:8px;box-shadow:0 1px 2px rgba(0,0,0,.04)}
html[data-theme=light] body.qb .acc-tile{border:1px solid var(--qb-line-2);border-left:1px solid var(--qb-line-2);border-radius:8px;box-shadow:0 1px 2px rgba(0,0,0,.04);padding:16px 18px}
html[data-theme=light] body.qb .acc-tile small{text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;color:var(--qb-text-2)}
html[data-theme=light] body.qb .acc-tile b{color:var(--qb-text);font-weight:700;font-size:26px}
html[data-theme=light] body.qb .acc-tile::after{content:"";position:absolute;left:18px;right:18px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:var(--qb-line-2)}
html[data-theme=light] body.qb .acc-tile.t0::after,html[data-theme=light] body.qb .acc-tile.t1::after,html[data-theme=light] body.qb .acc-tile.t2::after,html[data-theme=light] body.qb .acc-tile.t6::after{background:var(--qb-green)}
html[data-theme=light] body.qb .acc-tile.t3::after,html[data-theme=light] body.qb .acc-tile.t5::after{background:#FF8000}html[data-theme=light] body.qb .acc-tile.t4::after{background:var(--qb-blue)}
html[data-theme=light] body.qb .kpi::before{display:none}
/* buttons: green primary, white secondary with a grey border, 4px corners */
html[data-theme=light] body.qb .btn{background:var(--qb-green);border-color:var(--qb-green);color:#fff;border-radius:4px;font-weight:700}
html[data-theme=light] body.qb .btn:hover{background:var(--qb-green-d);border-color:var(--qb-green-d)}
html[data-theme=light] body.qb .btn.ghost{background:#fff;color:var(--qb-text);border:1px solid #8D9096}
html[data-theme=light] body.qb .btn.ghost:hover{background:var(--bg);border-color:var(--qb-text)}
html[data-theme=light] body.qb .btn.sm{border-radius:4px}
/* tables: white, bold header, hairlines, light hover, numbers right */
html[data-theme=light] body.qb table th,html[data-theme=light] body.qb .acc-t th{background:#fff;color:var(--qb-text);font-weight:700;font-size:12.5px;letter-spacing:0;text-transform:none;border-bottom:1px solid var(--qb-line)}
html[data-theme=light] body.qb .acc-t td{border-bottom:1px solid var(--qb-line-2);padding-top:11px;padding-bottom:11px}
html[data-theme=light] body.qb tbody tr:hover td,html[data-theme=light] body.qb .acc-t tr:hover>td{background:#F4F5F8}
html[data-theme=light] body.qb .acc-t tr.tot td{background:#fff;border-top:2px solid var(--qb-text);font-weight:700}
/* inputs */
html[data-theme=light] body.qb input:not([type=checkbox]):not([type=radio]):not([type=file]),html[data-theme=light] body.qb select,html[data-theme=light] body.qb textarea{border:1px solid #8D9096;border-radius:4px}
html[data-theme=light] body.qb input:focus,html[data-theme=light] body.qb select:focus,html[data-theme=light] body.qb textarea:focus{border-color:var(--qb-blue)!important;box-shadow:0 0 0 2px rgba(0,119,197,.25)}
/* status: green paid / orange waiting / red problem, as small rounded labels */
html[data-theme=light] body.qb .chip{border-radius:12px;font-weight:600;font-size:12px;padding:2px 10px}
html[data-theme=light] body.qb .chip.ok{background:#E6F4E3;color:#108000}
html[data-theme=light] body.qb .chip.warn{background:#FFF1E0;color:#C25700}
html[data-theme=light] body.qb .chip.bad{background:#FDECEA;color:#C9361E}
html[data-theme=light] body.qb .chip.dim{background:#ECEEF1;color:#6B6C72}
/* segmented filters read as QuickBooks pill filters */
html[data-theme=light] body.qb .seg{background:transparent;border:0;gap:6px;padding:0}
html[data-theme=light] body.qb .seg a{border:1px solid var(--qb-line);background:#fff;border-radius:16px;color:var(--qb-text);padding:5px 14px}
html[data-theme=light] body.qb .seg a.on{background:var(--qb-text);border-color:var(--qb-text);color:#fff!important;box-shadow:none}
html[data-theme=light] body.qb .flash.ok{background:#E6F4E3;border-color:#BFE3B8;color:#0B5C00}
/* QuickBooks theme: the dashboard cards and charts */
html[data-theme=light] body.qb .oj-card{border-color:var(--qb-line-2);border-radius:8px}
html[data-theme=light] body.qb .oj-t{color:var(--qb-text)}html[data-theme=light] body.qb .oj-t:hover{color:var(--qb-blue)}
html[data-theme=light] body.qb .oj-btn{background:var(--qb-green);border-color:var(--qb-green);font-weight:700}
html[data-theme=light] body.qb .oj-btn:hover{background:var(--qb-green-d);border-color:var(--qb-green-d)}
html[data-theme=light] body.qb .oj-btn2{border-color:#8D9096;color:var(--qb-text)!important;font-weight:600}
html[data-theme=light] body.qb .oj-stats a{color:var(--qb-blue)}
html[data-theme=light] body.qb .oj-stats b{color:var(--qb-text)}
html[data-theme=light] body.qb .oj-stats a.warn span,html[data-theme=light] body.qb .oj-stats a.warn b{color:#C25700}
html[data-theme=light] body.qb .oj-b1{fill:#A6DD9C}html[data-theme=light] body.qb .oj-b2{fill:var(--qb-green)}
html[data-theme=light] body.qb .oj-line{stroke:var(--qb-green)}html[data-theme=light] body.qb .oj-area{fill:rgba(44,160,28,.10)}
html[data-theme=light] body.qb .oj-strip{border-color:var(--qb-line-2);border-radius:8px}
html[data-theme=light] body.qb .oj-strip a:hover b{color:var(--qb-blue)}
html[data-theme=light] body.qb .bill-drop:hover{border-color:var(--qb-green);background:var(--qb-green-soft)}
html[data-theme=light] body.qb .bill-drop b,html[data-theme=light] body.qb .bill-rev-img span{color:var(--qb-green-d)}
html[data-theme=light] body.qb .bill-rev{border-left-color:var(--qb-green)}
html[data-theme=light] body.qb .apps-btn:hover{color:var(--qb-green-d)}
html[data-theme=light] body.qb .role-chip.r-manager{background:var(--qb-green-soft);color:var(--qb-green-d)}
html[data-theme=light] body.qb .ad-in{fill:var(--qb-green)}
html[data-theme=light] body.qb .ad-out{fill:#0D7FA5}
html[data-theme=light] body.qb .ad-cash{stroke:var(--qb-blue)}html[data-theme=light] body.qb .ad-cashd{fill:var(--qb-blue)}
html[data-theme=light] body.qb .ad-area{fill:rgba(0,119,197,.08)}
html[data-theme=light] body.qb .ad-net,html[data-theme=light] body.qb .ad-netd{stroke:var(--qb-text)}html[data-theme=light] body.qb .ad-netd{fill:var(--qb-text);stroke:#fff}
html[data-theme=light] body.qb .sw.in{background:var(--qb-green)}html[data-theme=light] body.qb .sw.out{background:#0D7FA5}html[data-theme=light] body.qb .sw.net{background:var(--qb-text)}
html[data-theme=light] body.qb .hb-t i{background:var(--qb-green)}

/* ===== Accounts dashboard: financial position (cash, bank, receivables, payables, trade balance) ===== */
.fp-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:14px}
.fp-tile{position:relative;display:flex;flex-direction:column;gap:3px;padding:15px 18px 16px;background:var(--card);border:1px solid var(--line);border-radius:8px;text-decoration:none!important;color:var(--ink)!important;overflow:hidden}
.fp-tile:hover{border-color:var(--muted)}
.fp-tile::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--line)}
.fp-tile small{font-size:13px;font-weight:600;color:var(--muted)}
.fp-tile b{font-size:clamp(20px,1.7vw,25px);font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.fp-tile span{font-size:12.5px;color:var(--muted)}
.fp-cash::before{background:#2CA01C}.fp-bank::before{background:#0077C5}.fp-rec::before{background:#0D7FA5}.fp-pay::before{background:#FF8000}
.fp-net{background:var(--soft)}.fp-net.fp-pos::before{background:#108000}.fp-net.fp-neg::before{background:#D52B1E}
.fp-net.fp-pos b{color:#108000}
.fp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:26px}
.fp-card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:14px 16px;min-width:0}
.fp-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding-bottom:10px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.fp-h a{color:var(--ink)!important;text-decoration:none}.fp-h a:hover b{text-decoration:underline}
.fp-h b{font-size:15px;font-variant-numeric:tabular-nums}
.fp-t{width:100%;border-collapse:collapse;font-size:13.5px}
.fp-t th{background:transparent!important;font-size:11.5px;font-weight:700;color:var(--muted)!important;text-align:left;padding:4px 0;border-bottom:1px solid var(--line)}
.fp-t th.num{text-align:right}
.fp-t td{padding:6px 0;border-bottom:1px solid var(--line-2);vertical-align:top}
.fp-t tr:last-child td{border-bottom:0}
.fp-t td:first-child{padding-right:10px;overflow-wrap:anywhere}
.fp-t td.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;padding-left:10px}
.fp-t a{color:var(--ink)!important;text-decoration:none}.fp-t a:hover{color:var(--brand-d)!important;text-decoration:underline}
.fp-t tr:hover td{background:transparent!important}
.fp-late{color:#C25700!important;font-weight:600}
.fp-age{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--line-2);margin:6px 0 8px}
.fp-age i{display:block;height:100%}
.fp-agek{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--muted);margin-bottom:8px}
.fp-agek i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px;vertical-align:0}
.fp-agek b{color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
.a0_30{background:#2CA01C}.a31_60{background:#F2C200}.a61_90{background:#FF8000}.a90p{background:#D52B1E}
.fp-tb .fp-side td{font-weight:700;color:var(--ink);padding-top:9px}
.fp-tb .fp-netr td{border-top:2px solid var(--ink);font-weight:800;font-size:14.5px;padding-top:9px}
.fp-tbc{grid-column:span 1}
@media (max-width:1300px){.fp-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}.fp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.fp-tiles,.fp-grid{grid-template-columns:minmax(0,1fr)}}
html[data-theme=dark] .fp-net.fp-pos b{color:#5DCAA5}
.fp-t{table-layout:fixed}
.fp-t th.num,.fp-t td.num{width:100px}
.fp-t tr:first-child th.num:last-child,.fp-t td.num:last-child{width:108px}
.fp-t td:first-child{white-space:normal!important;overflow-wrap:anywhere;word-break:break-word;line-height:1.35}.fp-t td:first-child a{white-space:normal!important}
.fp-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.fp-grid>.fp-card{grid-column:span 2}.fp-grid>.fp-card.fp-half{grid-column:span 3}
@media (max-width:1300px){.fp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fp-grid>.fp-card,.fp-grid>.fp-card.fp-half{grid-column:span 1}.fp-grid>.fp-tbc{grid-column:span 2}}
@media (max-width:700px){.fp-grid{grid-template-columns:minmax(0,1fr)}.fp-grid>.fp-card,.fp-grid>.fp-tbc{grid-column:span 1}}
@media (max-width:700px){.fp-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.fp-tile{padding:12px 13px}.fp-tile b{font-size:19px}.fp-tile.fp-net{grid-column:span 2}}

/* ===== level-wise statements: balance sheet, trial balance, general ledger ===== */
.lvtab th.c{text-align:center;border-left:1px solid #e3e7ec}
.lvtab tr.hid{display:none}
.lvtab tr.l0 td{background:#eef2f6;font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:12px;color:#2b3640}
.lvtab tr.l1 td{font-weight:800;background:#f3f6f9;border-top:1px solid #d9dee6;color:#1f2937;font-size:14px}
.lvtab tr.l2 td{font-weight:700;color:#2b3640}
.lvtab tr.l3 td{font-weight:600}
.lvtab tr.l4 td{color:#4b5a66;font-size:13px}
.lvtab td.ind2{padding-left:26px}.lvtab td.ind3{padding-left:44px}.lvtab td.ind4{padding-left:64px}
.lvtab tr.tg{cursor:pointer}.lvtab tr.tg:hover td{background:#f7faf9}
.lvtab i.tw{display:inline-block;width:16px;margin-left:-18px;font-style:normal;color:#8a97a3;font-size:11px}
.lvtab i.tw::before{content:"▸"}.lvtab tr.open i.tw::before{content:"▾"}
.lvtab tr.tot td{font-size:14px;border-top:2px solid #2b3640;border-bottom:3px double #2b3640}
.gl-acc{margin-bottom:14px}.gl-acc .card-h h2{font-size:15px}
.acc-t.gl td{vertical-align:top}
html[data-theme=dark] .lvtab tr.l0 td,html[data-theme=dark] .lvtab tr.l1 td{background:#1d2530;color:#e6e9ee}
html[data-theme=dark] .lvtab tr.l2 td,html[data-theme=dark] .lvtab tr.l3 td{color:#dfe4ea}
@media print{.lvtab tr.tg i.tw{display:none}.gl-acc{break-inside:avoid-page}}
.filters .ck{display:inline-flex;flex-direction:row;align-items:center;gap:7px;font-size:13.5px;font-weight:600;color:#3d4852}
.bs-side{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}
.bs-side .card{margin:0}.bs-side .lvtab td.ind4{padding-left:52px}
@media (max-width:1000px){.bs-side{grid-template-columns:1fr}}
@media print{.bs-side{grid-template-columns:1fr 1fr;gap:8px}.bs-side .acc-t td,.bs-side .acc-t th{font-size:10.5px;padding:4px 6px}}
.rights-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px 18px;padding:12px 14px;border:1px solid var(--line,#e3e7ec);border-radius:10px;background:#fafbfc}
.rights-grid>div{display:flex;flex-direction:column;gap:6px}.rights-grid b{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#6b7a86}
.rights-grid .ck{display:flex;align-items:flex-start;gap:8px;font-weight:500;font-size:13.5px;line-height:1.35}.rights-grid .ck input{margin-top:2px}
.rights-grid.dim{opacity:.6}
.role-chip.r-storekeeper{background:#fff4e0;color:#8a5a00}
html[data-theme=dark] .rights-grid{background:#1a212b;border-color:#2b3440}
/* supervisor portal: progress of his projects */
.pj-prog{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
.pp-card{display:flex;flex-direction:column;gap:10px;margin:0}
.pp-h b{display:block;font-size:15.5px}.pp-h small{color:#6b7a86;font-size:12.5px}
.pp-row small{display:block;color:#6b7a86;font-size:12px;margin-top:3px}
.pp-l{display:flex;justify-content:space-between;font-size:13px;color:#3d4852;margin-bottom:4px}.pp-l b{font-weight:700}
.pp-bar{height:8px;border-radius:6px;background:#e9edf1;overflow:hidden}.pp-bar i{display:block;height:100%;background:#1d9e75;border-radius:6px}
.pp-bar.warn i{background:#d9822b}.pp-bar.bad i{background:#c0392b}
.pp-f{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:13px;border-top:1px solid #eef1f4;padding-top:8px}.pp-f a{font-weight:600}.pp-f span{margin-left:auto;color:#8a5a00}
html[data-theme=dark] .pp-bar{background:#2b3440}html[data-theme=dark] .pp-f{border-color:#2b3440}html[data-theme=dark] .pp-l{color:#dfe4ea}
