/* EDMS NEZ — "Clean Indigo": white sidebar with icons, soft cards on a cool grey page, indigo accent */
:root{
  --bg:#eceef5; --side:#f5f6fb; --surface:#ffffff; --sunk:#f6f7fb; --hover:#f1f3f9; --ink:#1e2235; --ink-2:#3b4058; --muted:#5b6177; --line:#e6e8f0; --line-2:#dfe2ec;
  --accent:#1f4f8f; --accent-ink:#163c70; --accent-soft:#e8eef8; --accent-soft-2:#c9d7ee; --on-accent:#ffffff; --gold:#e3a21a; --gold-soft:#fdf3dc;
  --ok:#067647; --ok-soft:#e7f6ee; --warn:#a15c07; --warn-soft:#fef3e2; --bad:#b42318; --bad-soft:#fdecea;
  --shadow:0 1px 0 rgba(30,34,53,.04),0 2px 4px rgba(30,34,53,.07),0 10px 24px rgba(30,34,53,.07); --raise:inset 0 1px 0 rgba(255,255,255,.9),0 1px 2px rgba(30,34,53,.08),0 3px 8px rgba(30,34,53,.06); --edge:#d5d9e6; --shadow-lg:0 10px 40px rgba(30,34,53,.18);
  --r:14px; --r-sm:10px;
  --f-body:Inter,system-ui,"Segoe UI",Roboto,sans-serif; --f-mono:"JetBrains Mono",ui-monospace,Consolas,monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#0c0e16; --side:#12141f; --raise:inset 0 1px 0 rgba(255,255,255,.05),0 1px 2px rgba(0,0,0,.5),0 3px 8px rgba(0,0,0,.35); --edge:#2c3145; --surface:#171a26; --sunk:#141722; --hover:#1e2232; --ink:#e8eaf3; --ink-2:#c3c7d6; --muted:#9aa0b6; --line:#262a3b; --line-2:#2f3447;
  --accent:#7aa7e6; --accent-ink:#a8c6f0; --accent-soft:#1b2a44; --accent-soft-2:#2c4470; --on-accent:#0c1220; --gold:#f0b43c; --gold-soft:#3a2d12;
  --ok:#4ade80; --ok-soft:#14301f; --warn:#fbbf24; --warn-soft:#352a12; --bad:#f87171; --bad-soft:#3a1a1a;
  --shadow:inset 0 1px 0 rgba(255,255,255,.04),0 2px 4px rgba(0,0,0,.4),0 10px 24px rgba(0,0,0,.3); --shadow-lg:0 10px 40px rgba(0,0,0,.5); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0c0e16; --side:#12141f; --raise:inset 0 1px 0 rgba(255,255,255,.05),0 1px 2px rgba(0,0,0,.5),0 3px 8px rgba(0,0,0,.35); --edge:#2c3145; --surface:#171a26; --sunk:#141722; --hover:#1e2232; --ink:#e8eaf3; --ink-2:#c3c7d6; --muted:#9aa0b6; --line:#262a3b; --line-2:#2f3447;
  --accent:#7aa7e6; --accent-ink:#a8c6f0; --accent-soft:#1b2a44; --accent-soft-2:#2c4470; --on-accent:#0c1220; --gold:#f0b43c; --gold-soft:#3a2d12;
  --ok:#4ade80; --ok-soft:#14301f; --warn:#fbbf24; --warn-soft:#352a12; --bad:#f87171; --bad-soft:#3a1a1a;
  --shadow:inset 0 1px 0 rgba(255,255,255,.04),0 2px 4px rgba(0,0,0,.4),0 10px 24px rgba(0,0,0,.3); --shadow-lg:0 10px 40px rgba(0,0,0,.5); color-scheme:dark}

*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased;
  padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
#root{min-height:100%;display:grid}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1,h2,h3{text-wrap:balance}
.mono{font-family:var(--f-mono);font-size:.92em}
.num{font-variant-numeric:tabular-nums}
.boot,.loading{padding:40px 16px;text-align:center;color:var(--muted)}

/* logo */
.logo{width:38px;height:38px;border-radius:10px;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;font-weight:700;font-size:12.5px;letter-spacing:.02em;flex:none}
.logo.lg{width:52px;height:52px;border-radius:14px;font-size:16px}

/* buttons & inputs */
.btn{border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);padding:9px 16px;border-radius:var(--r-sm);font-weight:600;font-size:14px;display:inline-flex;gap:8px;align-items:center;justify-content:center;white-space:nowrap;min-height:40px;transition:background .15s,border-color .15s}
.btn:hover{background:var(--hover)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn.primary:hover{background:var(--accent-ink);border-color:var(--accent-ink)}
.btn.ok{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.btn.bad{color:var(--bad)}
.btn.sm{padding:6px 12px;font-size:13px;min-height:34px;border-radius:8px}
.btn.lg{min-height:46px;font-size:15px}
.btn:disabled{opacity:.55;cursor:not-allowed}
.link{background:none;border:0;padding:0;color:var(--accent);font-weight:500;text-decoration:none;font-size:13.5px}
.link.bad{color:var(--bad)}
.link:hover{text-decoration:underline}
.field{display:grid;gap:6px}
.field label{font-size:13px;font-weight:600;color:var(--ink-2)}
.input,select.input,textarea.input{width:100%;padding:10px 13px;border:1px solid var(--line-2);border-radius:var(--r-sm);background:var(--surface);transition:border-color .15s,box-shadow .15s}
.input:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px var(--accent-soft)}
.input::placeholder{color:var(--muted)}
.msg,.err,.okmsg{font-size:13.5px;padding:10px 12px;border-radius:var(--r-sm)}
.msg{background:var(--warn-soft);color:var(--ink)}
.err{background:var(--bad-soft);color:var(--bad)}
.okmsg{background:var(--ok-soft);color:var(--ok)}

/* login */
.login{min-height:100%;display:grid;grid-template-rows:1fr auto}
.login-main{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:48px;padding-block:40px;
  padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.login-card{flex:0 1 440px;background:var(--surface);border-radius:18px;box-shadow:var(--shadow);border:1px solid var(--line)}
.login-head{padding:26px 28px 6px;display:flex;gap:14px;align-items:center}
.login-head h1{margin:0;font-size:18px;line-height:1.3;font-weight:700}
.login-head p{margin:2px 0 0;font-size:13px;color:var(--muted)}
.login-body{padding:18px 28px 28px;display:grid;gap:16px}
.login-body .link{justify-self:center}

/* footer */
.foot{grid-column:1/-1;border-top:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:12.5px;overflow:hidden;white-space:nowrap}
.foot-text{padding:11px 16px;text-align:center;white-space:normal}

/* app shell: icon rail that opens on hover or with the menu button */
.app{min-height:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto;padding-left:76px;transition:padding-left .22s ease}
.app:has(.side:hover),.app:has(.side:focus-within),.app:has(.side.open){padding-left:256px}
.side{position:fixed;left:0;top:0;bottom:0;z-index:12;width:76px;background:var(--side);border-right:1px solid var(--line);
  padding:calc(18px + env(safe-area-inset-top,0px)) 12px calc(14px + env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));
  display:flex;flex-direction:column;gap:18px;overflow:hidden auto;scrollbar-width:none;-ms-overflow-style:none;transition:width .22s ease,box-shadow .22s ease}
.side::-webkit-scrollbar{display:none}
.side:hover,.side:focus-within,.side.open{width:256px}
.side-scrim{display:none}
.brand{display:flex;gap:11px;align-items:center;padding:0 7px;min-width:max-content}
.brand b{display:block;font-size:15px;font-weight:700}
.brand span{display:block;font-size:12px;color:var(--muted)}
.navlist{display:flex;flex-direction:column;gap:8px}
.nav{position:relative;display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:6px 10px 6px 6px;border-radius:12px;color:var(--ink-2);font-size:14px;font-weight:500;white-space:nowrap;
  background:var(--surface);border:1px solid var(--edge);box-shadow:var(--raise);
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease,color .16s ease,border-color .16s ease}
.nav .ic{flex:none;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);transition:background .16s ease,color .16s ease}
.nav:hover{color:var(--ink);border-color:var(--accent-soft-2);transform:translateX(3px) scale(1.03);box-shadow:0 2px 6px rgba(30,34,53,.1),0 10px 24px rgba(31,79,143,.18);z-index:1}
.nav:hover .ic{background:var(--accent);color:var(--on-accent)}
.nav.on{background:linear-gradient(180deg,var(--accent),var(--accent-ink));border-color:var(--accent-ink);color:var(--on-accent);font-weight:600;box-shadow:0 2px 0 rgba(0,0,0,.08),0 8px 18px rgba(31,79,143,.32)}
.nav.on .ic{background:rgba(255,255,255,.18);color:var(--on-accent)}
.nav .count{margin-left:auto;background:var(--bad);color:#fff;border-radius:10px;font-size:11px;font-weight:700;padding:1px 7px}
.side .brand>div:last-child,.nav .lbl,.me-text{opacity:0;transition:opacity .15s ease}
.side:hover .brand>div:last-child,.side:hover .nav .lbl,.side:hover .me-text,
.side:focus-within .brand>div:last-child,.side:focus-within .nav .lbl,.side:focus-within .me-text,
.side.open .brand>div:last-child,.side.open .nav .lbl,.side.open .me-text{opacity:1}
.side:not(:hover):not(:focus-within):not(.open) .nav .count{position:absolute;top:-5px;left:30px;padding:0 5px;font-size:10px}
.me{margin-top:auto;display:flex;gap:10px;align-items:center;padding:12px 6px 0;border-top:1px solid var(--line);min-width:max-content}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--accent-soft);color:var(--accent-ink);display:grid;place-items:center;font-weight:700;font-size:12.5px;flex:none}
.me-text b{display:block;font-size:13px;font-weight:600;white-space:nowrap}
.me-text span{display:block;font-size:11.5px;color:var(--muted)}
.content{min-width:0;display:flex;flex-direction:column}
.topbar{display:flex;align-items:center;gap:12px;padding:14px max(16px,32px,env(safe-area-inset-right,0px)) 14px 32px}
#menu{display:none}
.tb-left{color:var(--muted);font-size:13px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tb-right{margin-left:auto;display:flex;gap:8px;align-items:center}
.iconbtn{width:40px;height:40px;border-radius:var(--r-sm);border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);display:grid;place-items:center;position:relative;transition:transform .16s ease,box-shadow .16s ease}
.iconbtn:hover,.tb-right .btn:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(30,34,53,.12)}
.badge{position:absolute;top:-6px;right:-6px;background:var(--bad);color:#fff;font-size:10.5px;font-weight:700;border-radius:9px;min-width:18px;height:18px;display:grid;place-items:center;padding:0 4px}
.main{padding:6px max(16px,32px,env(safe-area-inset-right,0px)) 40px 32px;min-width:0}
.crumb{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.crumb h2{margin:0;font-size:26px;font-weight:700;letter-spacing:-.01em}
.crumb .sub{color:var(--muted);font-size:14px;width:100%;max-width:90ch}
.back{border:1px solid var(--line-2);background:var(--surface);border-radius:8px;padding:6px 11px;font-size:13px;font-weight:500;color:var(--ink-2);transition:transform .16s ease}
.back:hover{background:var(--hover);transform:translateX(-2px)}
@media (hover:none),(max-width:860px){
  .app,.app:has(.side:hover),.app:has(.side:focus-within),.app:has(.side.open){padding-left:0}
  #menu{display:grid}
  .side{width:272px;max-width:85vw;transform:translateX(-102%);transition:transform .22s ease;box-shadow:none}
  .side:hover,.side:focus-within{width:272px}
  .side.open{transform:none;box-shadow:var(--shadow-lg)}
  .side .brand>div:last-child,.nav .lbl,.me-text{opacity:1}
  .side-scrim{position:fixed;inset:0;z-index:11;background:rgba(15,17,30,.42)}
  body.side-open .side-scrim{display:block}
  .side:not(:hover):not(:focus-within):not(.open) .nav .count{position:static;padding:1px 7px;font-size:11px}
}
@media (max-width:860px){
  .tb-right .btn span{display:none}
  .topbar,.main{padding-left:16px;padding-right:16px}
  .crumb h2{font-size:22px}
}
@media (prefers-reduced-motion:reduce){.app,.side,.nav,.iconbtn,.card,.back{transition:none}.nav:hover{transform:none}}

/* cards */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;margin-bottom:28px}
.card{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r);box-shadow:var(--shadow);padding:18px 20px 16px;text-align:left;display:flex;flex-direction:column;gap:6px;color:var(--ink);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.card::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--tone,var(--accent))}
.card[data-tone="indigo"]{--tone:#1f4f8f;--tone-soft:#e8eef8}
.card[data-tone="sky"]{--tone:#0284c7;--tone-soft:#e0f2fe}
.card[data-tone="green"]{--tone:#059669;--tone-soft:#dcfce7}
.card[data-tone="amber"]{--tone:#d97706;--tone-soft:#fef3c7}
.card[data-tone="rose"]{--tone:#e11d48;--tone-soft:#ffe4e6}
.card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.cic{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex:none;background:color-mix(in srgb,var(--tone,var(--accent)) 14%,transparent);color:var(--tone,var(--accent));box-shadow:inset 0 0 0 1px rgba(0,0,0,.04)}
button.card:hover{border-color:var(--tone,var(--accent));transform:translateY(-4px);box-shadow:0 4px 8px rgba(30,34,53,.08),0 16px 34px rgba(30,34,53,.14)}
.card .k{font-size:13px;color:var(--muted);font-weight:600}
.card .v{font-size:30px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.15;letter-spacing:-.01em}
.card .h{font-size:12.5px;color:var(--muted)}
.card .go{display:none}  /* cards open on click; no "Open →" line */
.card[data-tone="violet"]{--tone:#7c3aed}
.sec-h{font-size:16px;font-weight:600;margin:4px 0 12px;display:flex;align-items:center;gap:8px}
.badge-inline{display:inline-block;background:var(--accent-soft);color:var(--accent-ink);border-radius:10px;padding:1px 8px;font-size:12px;font-weight:700}
.chips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.chip{border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);border-radius:20px;padding:7px 14px;font-size:13.5px;font-weight:500}
.chip:hover{background:var(--hover)}
.chip.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}

/* table */
.sheet{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r);box-shadow:var(--shadow);overflow:hidden}
.tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line)}
.tools .input{width:auto;flex:1 1 220px;padding:9px 12px}
.tools select.input{flex:0 1 190px}
.tools .meta{font-size:13px;color:var(--muted);margin-left:auto}
.tw{overflow-x:auto}
table{border-collapse:collapse;width:100%;font-size:14px}
th{position:sticky;top:0;background:var(--sunk);text-align:left;font-weight:600;font-size:12px;color:var(--muted);letter-spacing:.02em;padding:10px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:11px 16px;border-bottom:1px solid var(--line);white-space:nowrap;color:var(--ink-2)}
td:first-child{color:var(--ink)}
tbody tr:last-child td{border-bottom:0}
td.n,th.n{text-align:right;font-variant-numeric:tabular-nums}
td.wrap{white-space:normal;min-width:200px}
td.fit{min-width:110px;overflow-wrap:anywhere;line-height:1.35}
tbody tr.click{cursor:pointer}
tbody tr.click:hover{background:var(--hover)}
tfoot td{font-weight:700;background:var(--sunk);border-top:1px solid var(--line);color:var(--ink)}
.pager{display:flex;gap:8px;align-items:center;justify-content:flex-end;padding:10px 16px;font-size:13px;color:var(--muted);border-top:1px solid var(--line)}
.empty{padding:36px;text-align:center;color:var(--muted)}
.pill{display:inline-block;border-radius:20px;padding:2px 10px;font-size:12px;font-weight:600}
.pill.ok{background:var(--ok-soft);color:var(--ok)}
.pill.warn{background:var(--warn-soft);color:var(--warn)}
.pill.bad{background:var(--bad-soft);color:var(--bad)}
.changes{display:grid;gap:2px;font-size:13px;white-space:normal}
.changes del{color:var(--bad)}.changes ins{color:var(--ok);text-decoration:none;font-weight:600}

/* drawer */
.scrim{position:fixed;inset:0;background:rgba(15,17,30,.42);z-index:20;backdrop-filter:blur(2px)}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(580px,100%);background:var(--surface);z-index:21;display:flex;flex-direction:column;box-shadow:var(--shadow-lg);
  padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px);padding-right:env(safe-area-inset-right,0px)}
.dh{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:flex-start}
.dh h3{margin:0;font-size:19px;font-weight:700}
.dh p{margin:3px 0 0;color:var(--muted);font-size:13px}
.dh .x{margin-left:auto}
.db{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:18px 22px;display:flex;flex-direction:column;gap:14px}
.db>*{flex-shrink:0}
.db:focus{outline:none}
body.drawer-open{overflow:hidden}
/* desktop: centred window, 70% of the screen */
@media (min-width:861px){
  .drawer{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:70vw;max-width:1280px;height:min(88vh,900px);border-radius:18px;overflow:hidden;padding:0}
  .facts.icons{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
}
.df{padding:14px 22px;border-top:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap;align-items:center}
details.grp{border:1px solid var(--edge);border-radius:var(--r-sm);overflow:hidden;background:var(--surface)}
details.grp summary{padding:12px 14px;font-weight:600;cursor:pointer;display:flex;justify-content:space-between;gap:8px;background:var(--sunk)}
details.grp summary span{font-weight:400;color:var(--muted);font-size:12.5px}
dl.kv{margin:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
dl.kv dt,dl.kv dd{margin:0;padding:9px 14px;border-top:1px solid var(--line);font-size:13.5px;min-width:0;overflow-wrap:anywhere}
dl.kv dt{color:var(--muted)}
dl.kv dd{color:var(--ink)}
.editgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
.editgrid label,.editgrid .cell{padding:7px 14px;border-top:1px solid var(--line);font-size:13.5px;min-width:0}
.editgrid label{color:var(--muted);display:flex;align-items:center}
.editgrid .input{padding:7px 10px}
.form{display:grid;gap:16px;max-width:680px}
.form .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:540px){.form .row,dl.kv,.editgrid{grid-template-columns:minmax(0,1fr)}dl.kv dd,.editgrid .cell{border-top:0;padding-top:0}}
.panel{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r);box-shadow:var(--shadow);padding:22px}
.note{font-size:13px;color:var(--muted)}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.secret{font-family:var(--f-mono);font-size:19px;padding:12px 14px;border:1px dashed var(--accent);border-radius:var(--r-sm);background:var(--accent-soft);color:var(--accent-ink);user-select:all}
.enr-table input{width:84px;padding:6px 8px;text-align:right}
.list{display:grid;gap:10px}
.li{transition:transform .16s ease,box-shadow .16s ease;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r);box-shadow:var(--shadow);padding:14px 18px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.li .t{font-weight:600}
.li .s{font-size:13px;color:var(--muted)}
.tag{font-size:11.5px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;border-radius:6px;padding:3px 8px;background:var(--accent-soft);color:var(--accent-ink)}
.pockets{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-bottom:20px}
.pkt{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r);box-shadow:var(--shadow);padding:16px;text-align:left;display:grid;gap:4px}
.pkt:hover{border-color:var(--accent-soft-2)}
.pkt.on{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.pkt b{font-size:20px;font-weight:700}
.pkt span{font-size:12.5px;color:var(--muted)}
.facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin-bottom:24px}
.facts div{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-sm);padding:12px 16px;box-shadow:var(--raise)}
.facts span{display:block;font-size:12px;color:var(--muted);font-weight:500;margin-bottom:2px}
.facts b{font-weight:600}

/* notifications & toast */
.notes{position:fixed;top:calc(env(safe-area-inset-top,0px) + 64px);right:max(16px,env(safe-area-inset-right,0px));width:min(320px,calc(100% - 32px));background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-lg);z-index:15;max-height:52vh;overflow:auto}
.notes h4{margin:0;padding:9px 12px;border-bottom:1px solid var(--line);font-size:13px;position:sticky;top:0;background:var(--surface);z-index:1;display:flex;justify-content:space-between;align-items:center}
.nt{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);padding:8px 12px;font-size:12.5px;line-height:1.35;background:var(--surface);color:var(--ink);cursor:pointer}
.nt b{font-size:12.5px}.nt div{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--ink-2)}
.notes .link{font-size:12px}
.nt:hover{background:var(--hover)}
.nt.unread{background:var(--accent-soft)}
.nt small{color:var(--muted);display:block;margin-top:2px;font-size:11px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom,0px) + 56px);background:var(--ink);color:var(--bg);padding:12px 18px;border-radius:var(--r-sm);z-index:30;font-size:14px;max-width:calc(100% - 32px);box-shadow:var(--shadow-lg)}

.li:hover{transform:translateY(-2px);box-shadow:0 4px 8px rgba(30,34,53,.08),0 14px 30px rgba(30,34,53,.12)}
.chip{box-shadow:var(--raise)}

/* quick search */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gsearch{position:relative;margin-left:auto;flex:0 1 380px;min-width:220px}
.gsearch>svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.gsearch .input{padding-left:40px;min-height:44px;border-color:var(--edge);box-shadow:var(--raise)}
.gres{position:absolute;top:calc(100% + 6px);right:0;width:min(520px,calc(100vw - 32px));max-height:min(70vh,520px);overflow:auto;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r);box-shadow:var(--shadow-lg);z-index:14;padding:6px}
.ghead{font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:8px 10px 4px}
.gitem{display:flex;gap:10px;align-items:center;width:100%;text-align:left;border:0;background:none;padding:8px 10px;border-radius:10px;color:var(--ink)}
.gitem:hover,.gitem:focus{background:var(--hover);outline:none}
.gic{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);flex:none}
.gtx{min-width:0}.gtx b{display:block;font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gtx small{display:block;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gempty{padding:14px;color:var(--muted);font-size:13.5px}
@media (max-width:860px){.gsearch{order:5;flex:1 1 100%;margin-left:0}}

/* data collection panel & type pills */
.ewin{margin-bottom:18px;display:grid;gap:12px}
.ewin-top{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}
.ewin h3{margin:0 0 4px;font-size:16px}
.ewin .note{margin:0;max-width:80ch}
.ewin-miss{display:flex;flex-wrap:wrap;gap:6px}
.pill[data-tone]{background:color-mix(in srgb,var(--tone) 14%,transparent);color:var(--tone)}
.pill[data-tone="green"]{--tone:#059669}.pill[data-tone="amber"]{--tone:#b45309}.pill[data-tone="sky"]{--tone:#0369a1}
.pill[data-tone="violet"]{--tone:#7c3aed}.pill[data-tone="rose"]{--tone:#be123c}.pill[data-tone="indigo"]{--tone:#1f4f8f}
:root[data-theme="dark"] .pill[data-tone]{filter:brightness(1.5)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pill[data-tone]{filter:brightness(1.5)}}

/* MCD header (top of every page) */
.logo-img{width:42px;height:42px;object-fit:contain;flex:none}
.login-head .logo-img{width:56px;height:56px}
.topbar{position:relative;background:var(--surface);border-bottom:0;padding-top:10px;padding-bottom:12px;margin-bottom:22px;box-shadow:0 1px 0 var(--line)}
.topbar::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:4px;background:linear-gradient(90deg,#1d4ed8 0%,var(--accent) 55%,var(--gold) 55.4%,var(--gold) 100%)}
.tb-left.mcd{display:flex;align-items:center;gap:14px;overflow:visible;white-space:normal;color:var(--ink)}
.mcd-logo{display:none}
.mcd-name{display:grid;line-height:1.15}
.mcd-name b{font-family:"Noto Sans Devanagari",var(--f-body);font-size:22px;font-weight:700;color:var(--accent-ink)}
.mcd-name span{font-size:14px;font-weight:600;color:var(--ink)}
.mcd-div{width:1px;align-self:stretch;background:var(--line-2);margin:2px 4px}
.mcd-dept{display:flex;align-items:center;gap:8px;font-weight:600;font-size:16px;color:var(--accent)}
.mcd-dept svg{width:22px;height:22px}
.side .brand .logo-img{width:40px;height:40px}
@media (max-width:860px){.mcd-name b{font-size:17px}.mcd-name span{font-size:12px}.mcd-div,.mcd-dept{display:none}}
@media (max-width:1100px) and (min-width:861px){.mcd-dept span{display:none}}

/* drawer details: avatar, icon facts with gold edge, section headers */
.avatar-lg{width:56px;height:56px;border-radius:50%;background:var(--accent);color:var(--on-accent);display:grid;place-items:center;flex:none;box-shadow:0 4px 12px rgba(31,79,143,.3)}
.avatar-lg svg{width:28px;height:28px}
.dh{align-items:center;gap:14px}
.dh-t{min-width:0}
.dh h3{font-size:21px}
.dh .x{gap:6px}
.facts.icons{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}
.facts.icons>div{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;box-shadow:var(--raise),inset 0 -3px 0 var(--gold);border-radius:12px}
.fic{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);flex:none}
.fic svg{width:20px;height:20px}
.ft{min-width:0;display:block}
.ft>span{display:block;font-size:12.5px;color:var(--muted);margin-bottom:2px}
.ft b{display:block;font-size:15px;overflow-wrap:anywhere}
details.grp summary{align-items:center;gap:10px;list-style:none;background:var(--accent-soft);padding:12px 14px}
details.grp summary::-webkit-details-marker{display:none}
details.grp summary b{font-weight:700;color:var(--ink)}
details.grp summary .gi{color:var(--accent);display:grid}
details.grp summary .cnt{margin-left:auto;background:var(--surface);border-radius:12px;padding:2px 10px;font-size:12px;color:var(--muted)}
details.grp summary .chev{display:grid;color:var(--muted);transition:transform .15s ease}
details.grp summary .cnt+.chev{margin-left:0}
details.grp summary b+.chev{margin-left:auto}
details.grp[open] summary .chev{transform:rotate(90deg)}
.df .btn{min-height:44px}

.check{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--ink-2)}
.check input{width:18px;height:18px;accent-color:var(--accent)}

/* Save / Cancel bar at the bottom of long edit forms (stays in view while scrolling) */
.savebar{position:sticky;bottom:0;z-index:4;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end;margin-top:16px;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--surface);border:1px solid var(--edge);border-radius:var(--r);box-shadow:0 -6px 20px rgba(30,34,53,.12)}
.savebar>span{margin-right:auto;min-width:0}
.savebar .btn{min-height:46px;min-width:120px}
@media (max-width:540px){.savebar .btn{flex:1 1 0}}

/* leave backups */
.savebar-top{display:flex;justify-content:flex-end;margin:-6px 0 14px}
.tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}
.tier .tier-h{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px}
.tier .list{max-height:320px;overflow:auto}
.tier .li{padding:10px 14px;flex-wrap:nowrap}.tier .li .t{font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.req{color:var(--muted);font-weight:500}

/* leave account tabs */
.sec-h{margin:0 0 12px;font-size:16px;font-weight:700}
.lbal{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;margin-bottom:22px}
.lb{position:relative;overflow:hidden;text-align:left;display:flex;flex-direction:column;gap:4px;padding:16px 16px 14px;background:var(--surface);border:1px solid var(--edge);border-radius:14px;box-shadow:var(--shadow);color:var(--ink);transition:transform .16s ease,box-shadow .16s ease,border-color .16s}
.lb::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:var(--tone,var(--accent))}
.lb[data-tone="indigo"]{--tone:#1f4f8f}.lb[data-tone="green"]{--tone:#059669}.lb[data-tone="amber"]{--tone:#d97706}.lb[data-tone="rose"]{--tone:#e11d48}.lb[data-tone="sky"]{--tone:#0284c7}
.lb:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg)}
.lb.on{border-color:var(--tone);box-shadow:0 0 0 2px var(--tone),var(--shadow)}
.lb-n{font-size:13px;font-weight:600;color:var(--muted)}
.lb-bar{display:block;height:6px;border-radius:3px;background:var(--sunk);margin-top:6px;overflow:hidden}.lb-bar i{display:block;height:100%;background:var(--tone)}
.tscroll{overflow-x:auto}
#rules summary{cursor:pointer;padding:2px 0}
.enr-table td .input[type=number]{width:120px}

.lr-pick{display:grid;grid-template-columns:repeat(2,minmax(0,200px));gap:12px;margin-bottom:20px}
@media (max-width:540px){.lr-pick{grid-template-columns:repeat(2,minmax(0,1fr))}}
.lb-c{font-size:11px;font-weight:600;color:var(--muted);opacity:.8;margin-left:2px}
.enr-table td .input[type=number]{width:96px}

.snap{display:block;padding:10px 14px}
.snap summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;list-style:none}
.snap summary::-webkit-details-marker{display:none}
.snap summary::before{content:"▸";color:var(--muted)}.snap[open] summary::before{content:"▾"}
.snap-files{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.snap-files .btn{min-height:34px}

/* slim leave tabs */
.lbal{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.lb{gap:3px;padding:9px 12px 8px;border-radius:10px}
.lb::before{height:3px}
.lb-n{font-size:12.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.lb-row{display:flex;justify-content:space-between;gap:8px;font-size:12.5px;color:var(--muted)}
.lb-row b{font-size:15px;color:var(--ink);font-weight:800}.lb-row small{font-size:11px}
.lb-bar{height:3px;margin-top:3px}
@media (max-width:540px){.lbal{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.lb{padding:8px 10px 7px}.lb-n{font-size:12px}.lb-row{font-size:12px}.lb-row b{font-size:14px}}

/* password eye */
.pw-wrap{position:relative}
.pw-wrap .input{padding-right:48px;width:100%}
.pw-eye{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:40px;height:40px;display:grid;place-items:center;border:0;background:transparent;color:var(--muted);border-radius:8px;cursor:pointer}
.pw-eye:hover{color:var(--ink);background:var(--sunk)}
.pw-eye:focus-visible{outline:2px solid var(--accent);outline-offset:1px}

.fgrid{display:grid;grid-template-columns:minmax(150px,1.2fr) repeat(3,minmax(130px,1fr)) auto;gap:12px;align-items:end}
.fgrid .field{margin:0}.fgrid-btn .btn{min-width:110px;min-height:44px}
@media (max-width:860px){.fgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.fgrid .field:first-child{grid-column:1/-1}.fgrid-btn{grid-column:1/-1}.fgrid-btn .btn{width:100%}}

a.tel{color:var(--accent);font-weight:600;text-decoration:none;white-space:nowrap}
a.tel::before{content:"\260E\FE0E";margin-right:5px;font-size:.9em;opacity:.8}
a.tel:hover{text-decoration:underline}

.fgrid5{grid-template-columns:repeat(2,minmax(110px,.8fr)) minmax(110px,.8fr) minmax(180px,1.6fr) minmax(160px,1.2fr) auto}
.fgrid5 .fgrid-btn .btn{min-width:84px}
@media (max-width:860px){.fgrid5{grid-template-columns:repeat(2,minmax(0,1fr))}.fgrid5 .field:first-child{grid-column:auto}.fgrid5 .field:nth-child(4),.fgrid5 .field:nth-child(5),.fgrid5 .fgrid-btn{grid-column:1/-1}}

/* type-to-find school */
.combo{position:relative}
.combo-list{position:absolute;z-index:30;left:0;right:0;top:100%;margin:4px 0 0;padding:4px;list-style:none;background:var(--surface);border:1px solid var(--edge);border-radius:10px;box-shadow:var(--shadow-lg);max-height:300px;overflow:auto}
.combo-list li{padding:9px 10px;border-radius:8px;cursor:pointer;font-size:14px;display:flex;justify-content:space-between;gap:10px}
.combo-list li.on,.combo-list li:hover{background:var(--sunk)}
.combo-list li.none{color:var(--muted);cursor:default}
.combo-list .mono{color:var(--muted);font-size:12.5px}

/* small password window for opening the other panel */
@media (min-width:861px){.drawer:has(#pp){width:min(460px,92vw);height:auto;max-height:90vh}}
@media (min-width:861px){.drawer:has(#dl-msg){width:min(560px,92vw);height:auto;max-height:90vh}}

/* ===== employee profile (9 Nov 2026): one-line facts, section tiles, tabs ===== */
.facts.icons.oneline{grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:10px;margin-bottom:18px}
.facts.icons.oneline>div{padding:10px 12px;gap:10px;align-items:center}
.facts.icons.oneline .fic{width:30px;height:30px;border-radius:8px}
.facts.icons.oneline .fic svg{width:17px;height:17px}
.facts.icons.oneline .ft>span{font-size:11.5px;margin-bottom:1px}
.facts.icons.oneline .ft b{font-size:13.5px;line-height:1.3}
@media (max-width:860px){.facts.icons.oneline{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:340px){.facts.icons.oneline{grid-template-columns:minmax(0,1fr)}}
.phead{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.phead h3{margin:0;font-size:20px}
.phead p{margin:2px 0 0;color:var(--muted)}
.phead .btn{margin-left:auto}
.ptiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px;background:var(--surface);border:1px solid var(--edge);border-radius:12px;padding:8px 12px}
.ptiles[hidden],.ppanel[hidden],.pbody[hidden]{display:none}
.ptile{display:flex;align-items:center;gap:12px;width:100%;padding:13px 8px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--ink);font:inherit;font-size:15px;text-align:left;cursor:pointer;border-radius:8px}
.ptile:hover,.ptile:focus-visible{background:var(--accent-soft)}
.pti{display:grid;place-items:center;color:var(--muted);flex:none}
.pti svg{width:20px;height:20px}
.ptt{flex:1;min-width:0}
.ptc{font-size:12px;color:var(--muted);background:var(--sunk);border-radius:10px;padding:2px 8px}
.ptile .chev{display:grid;color:var(--muted)}
.ptile .chev svg{width:16px;height:16px}
@media (max-width:640px){.ptiles{grid-template-columns:minmax(0,1fr)}}
.ptabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;margin-bottom:12px;border-bottom:1px solid var(--line);scrollbar-width:thin}
.ptab{flex:none;border:1px solid var(--edge);background:var(--surface);color:var(--ink);font:inherit;font-size:13px;padding:6px 12px;border-radius:999px;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.ptab svg{width:15px;height:15px}
.ptab.on{background:var(--accent);border-color:var(--accent);color:#fff}
.ptab.back{background:var(--sunk)}
.pbody{border:1px solid var(--edge);border-radius:12px;overflow:hidden;background:var(--surface)}
.pbody .ph{display:flex;align-items:center;gap:10px;margin:0;padding:12px 14px;font-size:15px;background:var(--accent-soft)}
.pbody .ph .pti{color:var(--accent)}
.psub{margin:0;padding:10px 14px 6px;font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--accent);border-top:1px solid var(--line)}
.pbody .ph+.psub{border-top:0}
.pbody dl.kv dd.cell{padding:6px 14px}

.df .df-end{margin-left:auto}
/* admin home: three equal cards only (9 Nov 2026) */
.cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:700px){.cards.three{grid-template-columns:minmax(0,1fr)}}
/* filter-only toolbars (Schools, HOS): all filters on one line on desktop */
@media (min-width:861px){
  .tools.fo{flex-wrap:nowrap;gap:6px}
  .tools.fo select.input{flex:1 1 0;min-width:0;padding:8px 26px 8px 10px;font-size:13px;text-overflow:ellipsis}
  .tools.fo .btn{padding-left:10px;padding-right:10px}
  .tools.fo .btn,.tools.fo .meta{flex:none;white-space:nowrap}
}
/* filter-only toolbars on smaller laptop screens: shorter CSV button, record count shown next to the page numbers */
.pager .pg-n{display:none}
@media (min-width:861px) and (max-width:1279px){
  .tools.fo .lg,.tools.fo .meta{display:none}
  .tools.fo ~ .tw ~ .pager .pg-n{display:inline}
}
/* many filters (Employees): neat grid - 6 per row, CSV and Print in a last column; record count next to the page numbers */
.tools.fg{display:grid;grid-template-columns:repeat(var(--fgc),minmax(0,1fr)) auto;gap:8px}
.tools.fg select.input{width:100%;min-width:0;flex:none;padding:8px 22px 8px 9px;font-size:13px;text-overflow:ellipsis}
.tools.fg [data-x]{grid-column:-2/-1;grid-row:1}
.tools.fg [data-print]{grid-column:-2/-1;grid-row:2}
.tools.fg .btn{width:100%;justify-content:center}
.tools.fg .meta,.tools.fg .lg{display:none}
.tools.fg [data-x],.tools.fg [data-print]{min-width:64px}
.tools.fg ~ .tw ~ .pager .pg-n{display:inline}
@media (min-width:861px) and (max-width:1279px){.tools.fg{grid-template-columns:repeat(4,minmax(0,1fr)) auto}}
@media (max-width:860px){
  .tools.fg{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tools.fg [data-x],.tools.fg [data-print]{grid-column:auto;grid-row:auto}
}
/* filter bars in the portal colours: light navy band, navy-edged dropdowns, a chosen filter turns navy, CSV / Print as navy buttons */
.tools{background:linear-gradient(180deg,var(--accent-soft),var(--surface));border-bottom:1px solid var(--accent-soft-2)}
.tools select.input{border-color:var(--accent-soft-2);color:var(--accent-ink);font-weight:600;background-color:var(--surface);box-shadow:inset 3px 0 0 var(--gold)}
.tools select.input:hover{border-color:var(--accent)}
.tools select.input:focus{border-color:var(--accent);outline:2px solid var(--accent-soft-2);outline-offset:0}
.tools select.input.on{background-color:var(--accent);border-color:var(--accent);color:var(--on-accent);box-shadow:inset 3px 0 0 var(--gold)}
.tools select.input option{background:var(--surface);color:var(--ink);font-weight:400}
.tools [data-x],.tools [data-print]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.tools [data-x]:hover,.tools [data-print]:hover{background:var(--accent-ink);border-color:var(--accent-ink)}
/* table heading row in the portal colours on every page: navy band, white text, gold line under it */
th{background:var(--accent);color:var(--on-accent);font-weight:700;border-bottom:2px solid var(--gold)}
th a,th button{color:inherit}
/* wide number tables (Students): tighter cells so S. No. to Total fit on one screen */
table.compact th,table.compact td{padding:9px 8px;font-size:13px}
table.compact th:first-child,table.compact td:first-child{padding-left:14px}
table.compact td.fit{min-width:140px}
table.compact th{white-space:normal;line-height:1.2;vertical-align:bottom}
table.compact th.n{min-width:34px}
table.dense th,table.dense td{padding:8px 5px;font-size:12px}
table.dense th{font-size:11px}
table.dense td.fit{min-width:120px}
table.dense th,table.dense td{padding:8px 4px}
table.dense th:first-child,table.dense td:first-child{padding-left:8px}
table.dense td.fit{min-width:110px}
.li[hidden],#lq-none[hidden]{display:none}
.chips .xl-btn{margin-left:auto}
/* ===== Employees page (10 Nov 2026): Add employee, Filters / Desired data buttons ===== */
.chip.add{display:inline-flex;align-items:center;gap:6px;background:var(--gold);border-color:var(--gold);color:#1b1300;font-weight:700}
.chip.add svg{width:16px;height:16px}
.chip.add:hover{filter:brightness(.95)}
.emp-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.emp-bar .grow{flex:1}
.emp-bar .btn{display:inline-flex;align-items:center;gap:6px}
.emp-bar .btn svg{width:16px;height:16px}
.emp-bar .btn.on{background:var(--accent-soft);border-color:var(--accent);color:var(--accent-ink)}
.cnt-b{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--gold);color:#1b1300;font-size:12px;font-weight:700}
.cnt-b[hidden]{display:none}
#t .tools[hidden]{display:none}
.pick-panel{background:var(--surface);border:1px solid var(--accent-soft-2);border-left:4px solid var(--gold);border-radius:12px;padding:12px;margin:0 0 12px}
.pick-panel[hidden]{display:none}
.pick-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;align-items:start}
@media (max-width:1279px){.pick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.pick-grid{grid-template-columns:minmax(0,1fr)}}
details.pick{position:relative;border:1px solid var(--accent-soft-2);border-radius:10px;background:var(--surface)}
details.pick>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:9px 10px;cursor:pointer;font-weight:700;color:var(--accent-ink);font-size:13px;box-shadow:inset 3px 0 0 var(--gold);border-radius:10px}
details.pick>summary::-webkit-details-marker{display:none}
details.pick[open]>summary{background:var(--accent);color:var(--on-accent);border-radius:10px 10px 0 0}
details.pick[open] .pti{color:var(--on-accent)}
.pk-t{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pk-n{font-size:11px;font-weight:600;opacity:.85;white-space:nowrap}
.pk-body{position:absolute;z-index:30;left:0;right:0;top:100%;min-width:240px;max-height:340px;overflow:auto;background:var(--surface);border:1px solid var(--accent);border-top:0;border-radius:0 0 10px 10px;box-shadow:var(--shadow);padding:6px 4px}
.pk-all{padding:4px 8px 6px;font-size:12px;color:var(--muted)}
.pk-all .link{background:none;border:0;color:var(--accent);font:inherit;font-weight:700;cursor:pointer;padding:0}
.pk-i{display:flex;gap:8px;align-items:flex-start;padding:6px 8px;border-radius:6px;font-size:13px;cursor:pointer}
.pk-i:hover{background:var(--accent-soft)}
.pk-i input{margin-top:2px;accent-color:var(--accent)}
.pick-foot{display:flex;align-items:center;gap:8px;margin-top:10px}
.pick-foot .note{flex:1}
.pick-foot .btn{display:inline-flex;align-items:center;gap:6px}
.pick-foot .btn svg{width:16px;height:16px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:12px 14px}
@media (max-width:640px){.grid2{grid-template-columns:minmax(0,1fr)}}
.grid2 .field[hidden]{display:none}
.group-box{border:1px solid var(--edge);border-radius:12px;overflow:hidden;background:var(--surface)}
.group-box .ph{display:flex;align-items:center;gap:10px;margin:0;padding:12px 14px;font-size:15px;background:var(--accent-soft)}
.group-box .ph .pti{color:var(--accent)}
.ok-box{padding:6px 2px}
.ok-box .big{font-size:22px;font-weight:700;letter-spacing:.04em;background:var(--accent-soft);display:inline-block;padding:6px 12px;border-radius:8px}
.pk-body{position:static;min-width:0;max-height:300px;border:0;border-top:1px solid var(--accent-soft-2);border-radius:0 0 10px 10px;box-shadow:none}
/* filter grid without CSV / Print buttons (Employees): exactly 6 per row (4 on smaller laptops) */
.tools.fg:not(:has([data-x])):not(:has([data-print])){grid-template-columns:repeat(var(--fgc),minmax(0,1fr))}
@media (min-width:861px) and (max-width:1279px){.tools.fg:not(:has([data-x])):not(:has([data-print])){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:860px){.tools.fg:not(:has([data-x])):not(:has([data-print])){grid-template-columns:repeat(2,minmax(0,1fr))}}
.btn.primary.gold{background:var(--gold);border-color:var(--gold);color:#1b1300}
.note-list{margin:8px 0 0;padding-left:18px;color:var(--muted);font-size:13.5px}
.note-list li{margin:4px 0}
.pill.neu-in{background:var(--gold);color:#1b1300;font-size:11px;margin-left:4px;white-space:nowrap}
/* Employees page (11 Nov 2026): Add employee at the right, Clear / Show next to Download, Download menu, no sideways scroll in Desired data */
.chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.chips .grow{flex:1}
.pk-acts{display:inline-flex;gap:8px}
.pk-acts[hidden]{display:none}
.pk-acts .btn{display:inline-flex;align-items:center;gap:6px}
.pk-acts .btn svg{width:16px;height:16px}
.pk-body{overflow-x:hidden;overflow-y:auto}
.pk-i span{min-width:0;overflow-wrap:anywhere}
.dl-wrap{position:relative;display:inline-flex}
#xldl .chev,#xldl svg:last-child{width:14px;height:14px;transform:rotate(90deg)}
.dl-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:40;min-width:290px;background:var(--surface);border:1px solid var(--accent-soft-2);border-radius:12px;box-shadow:var(--shadow);padding:6px;display:flex;flex-direction:column;gap:4px}
.dl-menu[hidden]{display:none}
.dl-i{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;background:none;border:0;border-left:3px solid var(--gold);border-radius:8px;padding:9px 12px;cursor:pointer;font:inherit;color:var(--ink)}
.dl-i:hover,.dl-i:focus-visible{background:var(--accent-soft)}
.dl-i b{color:var(--accent-ink)}
.dl-i small{color:var(--muted);font-size:12px}
/* Dormant employee / closed school notice (11 Nov 2026) */
.dorm-box{background:var(--bad-soft);border:1px solid color-mix(in srgb,var(--bad) 30%,transparent);border-left:4px solid var(--bad);border-radius:var(--r-sm);padding:10px 12px;margin:0 0 12px;font-size:13.5px}
.dorm-box b{color:var(--bad)}
.dorm-box .note{margin-top:4px}
.nowrap{white-space:nowrap}
/* drawer footers (17 Nov 2026): laptop = one tidy line for the employee window; phone = even two-column grid */
@media (min-width:861px){
  .df .btn{padding-inline:11px;font-size:13.5px;gap:6px;min-height:42px}
  .df:has([data-dormant]),.df:has([data-restore]){flex-wrap:nowrap;gap:6px;padding-inline:16px}
  .df:has([data-dormant]) .btn,.df:has([data-restore]) .btn{padding-inline:10px;font-size:13px;flex:0 1 auto}
}
@media (min-width:861px) and (max-width:1180px){.df:has([data-dormant]) .btn svg,.df:has([data-restore]) .btn svg{display:none}}
@media (max-width:860px){
  .df{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 16px calc(14px + env(safe-area-inset-bottom))}
  .df>.btn{width:100%;min-width:0;white-space:normal;text-align:center;line-height:1.2;padding-inline:8px;margin:0}
  .df>.btn:last-child:nth-child(odd){grid-column:1/-1}
  .df>:not(.btn){grid-column:1/-1;margin:0}
  .df .df-end{margin-left:0}
}

/* Settings tab (Admin) */
.st-box{display:grid;gap:14px;max-width:820px}
.lk{position:relative}
.lk-list{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-sm);box-shadow:var(--shadow-2,0 8px 24px rgba(0,0,0,.14));max-height:320px;overflow:auto}
.lk-i{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);padding:9px 12px;cursor:pointer;color:var(--ink)}
.lk-i:last-child{border-bottom:0}
.lk-i:hover,.lk-i:focus-visible{background:var(--hover)}
.lk-i span{font-size:12.5px;color:var(--muted)}
.lk-none{padding:10px 12px}
.st-card{border:1px solid var(--edge);border-radius:var(--r-sm);padding:14px;display:grid;gap:12px;background:var(--surface)}
.st-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-start}
.st-head h4{margin:0 0 2px;font-size:18px}
.st-pills{display:flex;gap:6px;flex-wrap:wrap}
.st-btns{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:860px){.st-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.st-btns .btn{white-space:normal;line-height:1.2}.st-btns .btn:last-child:nth-child(odd){grid-column:1/-1}}
.chips .chip{display:inline-flex;align-items:center;gap:7px}

/* round search chip (18 Nov 2026): a round icon that opens into a search box */
.gsearch,.sq{position:relative;transition:flex-basis .2s ease}
.sq{flex:1 1 220px;min-width:40px}
.sq>svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.sq .input{width:100%;padding-left:38px;border-radius:999px}
.gsearch .input{border-radius:999px}
.gsearch:not(:focus-within):has(.input:placeholder-shown){flex:0 0 44px;min-width:44px;width:44px}
.sq:not(:focus-within):has(.input:placeholder-shown){flex:0 0 40px;width:40px}
.gsearch:not(:focus-within) .input:placeholder-shown,.sq:not(:focus-within) .input:placeholder-shown{padding:0;cursor:pointer;color:transparent;caret-color:transparent}
.gsearch:not(:focus-within) .input:placeholder-shown::placeholder,.sq:not(:focus-within) .input:placeholder-shown::placeholder{color:transparent}
@media (max-width:860px){.gsearch:not(:focus-within):has(.input:placeholder-shown){order:0;margin-left:auto}}
.emp-bar.nb{margin:0}
.crumb .emp-bar.nb{margin-left:8px}
@media (max-width:860px){
  .crumb .emp-bar.nb{margin-left:0}
  .crumb .emp-bar.nb .btn{padding:9px 12px;min-height:44px}
  .crumb .emp-bar.nb .btn>span:not(.cnt-b){display:none}
  .chips #sdl>span,.chips #spr>span{display:none}
  .chips #sdl,.chips #spr{padding:8px 11px}
}

/* Settings → Dropdown lists */
.ls-wrap{display:grid;grid-template-columns:240px minmax(0,1fr);gap:16px;align-items:start}
.ls-nav{display:grid;gap:6px}
.ls-i{display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;border:1px solid var(--line-2);background:var(--surface);color:var(--ink-2);border-radius:var(--r-sm);padding:10px 12px;font-weight:500}
.ls-i:hover{background:var(--hover)}.ls-i.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.ls-i i{width:8px;height:8px;border-radius:50%;background:var(--gold);flex:none}
.ls-edit{display:grid;gap:12px;max-width:640px}.ls-edit h4{margin:0;font-size:18px}.ls-edit .note{margin:0}
.ls-vals{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:var(--r-sm)}
.ls-vals li{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid var(--line)}.ls-vals li:last-child{border-bottom:0}
.ls-t{flex:1;min-width:0;overflow-wrap:anywhere}
.ls-add{display:flex;gap:8px}.ls-add .input{flex:1}
.ls-msg{min-height:1.2em;font-size:13.5px;color:var(--muted)}.ls-msg.bad{color:var(--danger,#b42318)}
@media (max-width:860px){.ls-wrap{grid-template-columns:1fr}.ls-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.ls-vals li{flex-wrap:wrap}.ls-t{flex-basis:100%}}

/* top bar of every page: Back, search chip, page buttons (18 Nov 2026) */
.crumb{display:block}
.crumb .tbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.crumb h2{margin:0 0 6px}
.crumb .sub{margin-bottom:4px}
.tbar .gsearch{margin-left:0;order:0}
.tbar .gres{right:auto;left:0}
.tbar .gsearch:focus-within,.tbar .gsearch:has(.input:not(:placeholder-shown)){flex:0 1 380px}
.tbar .emp-bar.nb,.crumb .emp-bar.nb{margin:0}
.tbar .back{min-height:44px;padding:0 14px;border-radius:999px}
.tbar .chip{min-height:44px;display:inline-flex;align-items:center;gap:7px}
@media (max-width:860px){
  .tbar .gsearch,.tbar .gsearch:not(:focus-within):has(.input:placeholder-shown){order:0;margin-left:0}
  .tbar .gsearch:focus-within{flex:1 1 100%;order:9}
  .crumb .emp-bar.nb .btn>span:not(.cnt-b){display:inline}
  .crumb .emp-bar.nb .btn{padding:0 14px}
}

/* 18 Nov (2): top-bar buttons on the RIGHT; Add employee = round plus chip */
.crumb .tbar{justify-content:flex-end}
.tbar .gres{left:auto;right:0}
.tbar .chip.add.io{width:44px;height:44px;padding:0;justify-content:center;border-radius:50%}
.tbar .chip.add.io svg{width:20px;height:20px}

/* 18 Nov (3): heading and top-bar buttons on ONE row (no empty row above the heading) */
.crumb{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
.crumb h2{margin:0}
.crumb .tbar{margin:0 0 0 auto}
.crumb .sub{width:100%;margin:0}
@media (max-width:860px){
  .crumb .emp-bar.nb .btn>span:not(.cnt-b){display:none}
  .crumb .emp-bar.nb .btn{width:44px;padding:0;justify-content:center;border-radius:50%}
  .tbar .back{padding:0 12px}
}

/* 18 Nov (4): no description line under page headings; Employees: group chips + Filters / Desired data / Download / Print in ONE row, Download & Print as round icon chips */
.emp-top{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;margin-bottom:14px}
.emp-top>.chips{margin:0}
.emp-top>.emp-bar{margin:0 0 0 auto;flex-wrap:nowrap}
.btn.ico-chip{width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;justify-content:center}
.btn.ico-chip svg{width:19px;height:19px;margin:0}
@media (max-width:860px){.emp-top>.emp-bar{margin-left:0;width:100%}.emp-top>.emp-bar .dl-wrap{margin-left:auto}}
#xldl.ico-chip svg{transform:none;width:19px;height:19px}
.tbar .tb-btn{min-height:44px;border-radius:999px;padding:0 18px}

/* 18 Nov (5): Download / Print in every table toolbar = round icon chips (all panels) */
.tools .ico-chip,.tools.fg .ico-chip{min-width:44px;width:44px;justify-self:end}
.chips .ico-chip{flex:none}
.tools .sq .input{height:44px;min-height:44px}.tools .sq:not(:focus-within):has(.input:placeholder-shown){flex:0 0 44px;width:44px}.tools .sq>svg{left:13px}

/* Absentee Statement / LOP grid (19 Nov 2026) */
.att-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:14px}
.att-bar .chips{margin:0}
.att-bar .att-m{margin:0 0 0 auto;min-width:190px}
.att-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px 16px;align-items:flex-end;margin-bottom:12px}
.att-head h3{margin:0 0 4px;font-size:18px}
.att-sum{display:flex;gap:6px;flex-wrap:wrap}
.att-scroll{overflow:auto;border:1px solid var(--edge);border-radius:var(--r-sm);background:var(--surface);max-height:70vh}
table.att{border-collapse:separate;border-spacing:0;font-size:13px;min-width:100%}
table.att th,table.att td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:3px 4px;text-align:center;white-space:nowrap}
table.att thead th{position:sticky;top:0;z-index:2;background:var(--accent);color:var(--on-accent);font-weight:600;padding:6px 4px}
table.att th.dc{min-width:34px;line-height:1.1}
table.att th.dc small{display:block;font-size:10px;font-weight:500;opacity:.85}
table.att th.dc.sun{background:var(--accent-ink)}
table.att td.nm,table.att th.nm{text-align:left;position:sticky;left:0;z-index:1;background:var(--surface);min-width:170px;max-width:220px;white-space:normal}
table.att thead th.nm{z-index:3;background:var(--accent)}
table.att td.dg{text-align:left;color:var(--muted);font-size:12px;max-width:130px;white-space:normal}
table.att td.num{text-align:right}
table.att td.lopc{font-weight:700}
table.att td.lopc.has{color:var(--danger,#b42318)}
.ac{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:26px;padding:0 3px;border-radius:6px;font:600 12px/1 inherit;border:1px solid transparent;background:transparent;color:var(--ink)}
button.ac{cursor:pointer}
button.ac:hover,button.ac:focus-visible{border-color:var(--accent);outline:none;background:var(--hover)}
.ac.t-p{color:#1d4ed8}
.ac.t-off{color:var(--muted);background:color-mix(in srgb,var(--muted) 12%,transparent)}
.att-dz{text-align:center;font-weight:600;color:var(--indigo,#3b4cca);background:color-mix(in srgb,var(--indigo,#3b4cca) 8%,transparent);letter-spacing:.3px;white-space:nowrap}
.ac.t-lv{color:#b45309;background:color-mix(in srgb,#f59e0b 14%,transparent)}
.ac.t-lop{color:#fff;background:#c0392b}
.ac.s-leave{text-decoration:underline dotted;text-underline-offset:3px}
.ac.s-mark{box-shadow:inset 0 0 0 2px currentColor}
.ac.t-lop.s-mark{box-shadow:inset 0 0 0 2px #7f1d1d}
:root[data-theme="dark"] .ac.t-p{color:#93c5fd}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ac.t-p{color:#93c5fd}}
.att-legend{display:flex;flex-wrap:wrap;gap:6px 14px;margin:12px 0 6px;font-size:12.5px;color:var(--muted)}
.att-legend span{display:inline-flex;align-items:center;gap:5px}
.att-legend .ac{min-width:26px;height:22px}
.att-submit{display:grid;gap:10px;margin-top:12px}
.att-submit .chk{display:flex;gap:10px;align-items:flex-start;font-size:13.5px}
.att-submit .chk input{margin-top:3px;width:18px;height:18px;flex:none}
.att-pop{position:absolute;z-index:80;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-sm);box-shadow:0 10px 30px rgba(0,0,0,.22);padding:10px;display:grid;gap:8px}
.att-pop-h{display:flex;justify-content:space-between;gap:8px;font-size:13px}
.att-pop-h span{color:var(--muted)}
.att-pop-g{display:grid;grid-template-columns:repeat(6,1fr);gap:5px}
.att-pop-g .ac{height:34px;width:100%;border:1px solid var(--line)}
.att-pop-g .ac.on{outline:2px solid var(--accent);outline-offset:1px}
.att-cnt{margin:0 0 10px}
.hol-f{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:10px;align-items:end}
.hol-y{display:flex;gap:10px;align-items:center}
.hol-y .input{width:auto}
.ls-vals li .ac{flex:none}
@media (max-width:860px){.hol-f{grid-template-columns:1fr 1fr}.att-bar .att-m{margin-left:0;width:100%}}
.att-bar .chip.on .note{color:inherit;opacity:.85}
@media (max-width:860px){table.att td.dg,table.att th.dg,table.att td:nth-child(2),table.att th:nth-child(2){display:none}table.att td.nm,table.att th.nm{min-width:120px}}

/* Round 3 (19 Nov 2026): chip row + buttons stay tidy when the sidebar is open / at 100-125 % zoom.
   Chips wrap inside their own column; the buttons stay together at the top right.
   When the row is narrow, Filters / Desired data become round icon chips (label in the tooltip). */
.emp-top{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px 14px;margin-bottom:14px;container-type:inline-size}
.emp-top>.chips{flex-wrap:wrap;margin:0}
.emp-top>.emp-bar{margin:0;justify-self:end;display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
@container (max-width:1180px){
  .emp-bar #ef>span:not(.cnt-b),.emp-bar #edd>span:not(.cnt-b){display:none}
  .emp-bar #ef,.emp-bar #edd{width:44px;height:44px;min-height:44px;padding:0;justify-content:center;border-radius:50%;position:relative}
  .emp-bar #ef .cnt-b,.emp-bar #edd .cnt-b{position:absolute;top:-4px;right:-4px}
}
@media (max-width:860px){
  .emp-top{grid-template-columns:1fr}
  .emp-top>.emp-bar{justify-self:end}
}
/* Absentee: 8 category chips in two groups (19 Nov 2026) */
.att-bar{align-items:flex-end}
.att-grps{display:grid;gap:8px}
.att-grp{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.att-gl{font-weight:700;font-size:13px;min-width:150px;color:var(--ink-2)}
.att-gl small{display:block;font-weight:500;color:var(--muted);font-size:11.5px}
.att-grp .chips{margin:0}
.att-sum{align-items:center}
.att-edmsg{margin:0 0 10px}
@media (max-width:860px){.att-gl{min-width:0;width:100%}}
/* Absentee (19 Nov 2026, review): two group buttons; status pills left, Print / Edit at the right end */
.att-gbs{display:flex;gap:10px;flex-wrap:wrap}
.btn.att-gb{min-height:44px;border-radius:999px;padding:0 22px;font-weight:700;font-size:15px}
.btn.att-gb.on{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.att-grps{gap:12px}
.att-head{align-items:center}
.att-head>div:first-child{flex:1 1 100%}
.att-acts{margin-left:auto;display:flex;gap:8px;align-items:center}
/* group buttons open their chip row with a short slide, no reload (19 Nov 2026) */
.att-grps{gap:0}
.att-chips{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .25s ease,opacity .2s ease,margin-top .25s ease;margin-top:0}
.att-chips>.chips{overflow:hidden;min-height:0;margin:0;padding:2px}
.att-chips.open{grid-template-rows:1fr;opacity:1;margin-top:10px}
.att-chips:not(.open){pointer-events:none}
@media (prefers-reduced-motion:reduce){.att-chips{transition:none}}
.att-chips>.chips{padding:0}.att-chips.open>.chips{padding:2px}
/* LOP sheet (19 Nov 2026) */
.lop-sum{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:4px 0 8px}
.lop-sum .pill{font-size:13.5px}
button.pill.lop-ns{cursor:pointer;border:0}
.lop-pay{margin-left:auto;display:inline-flex;gap:8px;align-items:center;font-size:13.5px;flex-wrap:wrap}
.lop-pay .input{width:130px;min-height:36px}
.lop-nsl{margin:0 0 10px;font-size:13px;line-height:1.6}
.lop-rule{margin:0 0 10px}
.lopv{color:var(--danger,#b42318)}
.lop-tick{display:inline-flex;padding:6px;cursor:pointer}
.lop-tick input{width:20px;height:20px;accent-color:var(--accent)}
/* Bill tracker (19 Nov 2026) */
.bt-scroll{overflow:auto;border:1px solid var(--edge);border-radius:var(--r-sm);background:var(--surface)}
table.bt{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}
table.bt th,table.bt td{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:6px;vertical-align:middle}
table.bt thead th,table.bt tr:first-child th,table.bt tr:nth-child(2) th{background:var(--accent);color:var(--on-accent);font-weight:600;text-align:center}
table.bt th.bt-c{min-width:118px;font-size:12px;line-height:1.2}
table.bt th.bt-p{text-align:left;min-width:190px;background:var(--surface);color:var(--ink);position:sticky;left:0;z-index:1}
table.bt tr:first-child th.bt-p{background:var(--accent);color:var(--on-accent)}
.bt-da{display:block;font-size:12.5px;color:var(--muted);font-weight:600}
.bt-ed{float:right;margin-top:-28px}
.bt-ed svg{width:15px;height:15px}
.bt-in{margin:6px 0;min-height:36px}
td.bt-x{text-align:center;color:var(--muted)}
.bt-b{display:flex;flex-direction:column;gap:2px;width:100%;min-height:52px;justify-content:center;align-items:flex-start;text-align:left;border-radius:10px;border:1px solid var(--line-2);background:var(--surface);color:var(--ink);padding:6px 9px;cursor:pointer}
.bt-b:hover,.bt-b:focus-visible{border-color:var(--accent);outline:none}
.bt-b small{color:var(--muted);font-size:11.5px}
.bt-st{font-weight:700;font-size:12.5px}
.bt-b.st-prepared_on,.bt-b.st-bc_on,.bt-b.st-ddo_on{background:color-mix(in srgb,#f59e0b 14%,var(--surface));border-color:color-mix(in srgb,#f59e0b 45%,transparent)}
.bt-b.st-da_on{background:color-mix(in srgb,#16a34a 14%,var(--surface));border-color:color-mix(in srgb,#16a34a 45%,transparent)}
.bt-b.st-ret{background:color-mix(in srgb,#dc2626 14%,var(--surface));border-color:color-mix(in srgb,#dc2626 50%,transparent)}
.bt-steps{display:grid;gap:10px;margin-bottom:12px}
.bt-step{display:grid;grid-template-columns:1fr 170px;gap:10px;align-items:center}
.bt-ret{margin:6px 0 12px;display:flex;gap:8px;align-items:center}
.att-cnt{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;justify-content:space-between;margin:0 0 10px}

/* ===== New absentee flow (20 Nov 2026): blanks, documents, approval, daily attendance ===== */
.ac.t-blank{background:transparent;border:1px dashed var(--line-2);color:var(--muted)}
button.ac.t-blank:hover{border-style:solid}
.ac.s-paste{}
.att td.today,.att th.today{background:color-mix(in srgb,var(--gold) 14%,transparent)}
.att td.nm .nm-w{display:flex;align-items:center;justify-content:space-between;gap:6px}
.att td.nm .nm-b{display:inline-flex;gap:4px;flex:none}
.att-plus,.att-doc{display:inline-flex;align-items:center;justify-content:center;gap:2px;height:24px;min-width:24px;padding:0 4px;border-radius:6px;border:1px solid var(--edge);background:var(--surface);color:var(--accent);cursor:pointer;font:600 11.5px/1 inherit}
.att-plus svg,.att-doc svg{width:14px;height:14px}
.att-plus:hover,.att-doc:hover,.att-plus:focus-visible,.att-doc:focus-visible{background:var(--accent-soft);border-color:var(--accent);outline:none}
.att-doc{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 40%,var(--edge))}
.att-info{margin:0 0 12px}
.doc-l{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.doc-l li{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--sunk)}
.doc-l li .ac{min-width:26px;height:22px}
.doc-b{display:flex;gap:6px;flex:none}
.hol-h{margin:18px 0 8px;font-size:14px}
.da-top{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:flex-end;margin-bottom:10px}
.da-top .field{margin:0;min-width:180px}
.da-sum,.da-res{display:flex;flex-wrap:wrap;gap:6px}
.da-days{display:flex;flex-wrap:wrap;gap:4px;margin:0 0 12px}
.da-day{width:40px;height:40px;display:grid;place-items:center;align-content:center;border:1px solid var(--edge);border-radius:8px;background:var(--surface);color:var(--ink);font:700 13px/1 inherit;cursor:pointer;padding:0}
.da-day small{font:500 9.5px/1 inherit;color:var(--muted);margin-top:2px}
.da-day.done{background:var(--ok-soft);border-color:color-mix(in srgb,var(--ok) 45%,var(--edge))}
.da-day.sun{color:var(--bad)}
.da-day.on{outline:2px solid var(--accent);outline-offset:1px}
.da-day:disabled{opacity:.4;cursor:default}
.da-paste{margin:0 0 12px;display:grid;gap:10px}
.da-paste summary{cursor:pointer}
.da-paste textarea{font-family:var(--f-mono);font-size:12.5px;width:100%}
.da-bad ul{max-height:200px;overflow:auto;margin:6px 0 0;padding-left:18px;font-size:12px}
.da-pa{display:inline-flex;gap:4px}
.da-pa .ac{min-width:30px;height:26px;cursor:pointer}
/* Leave Record (HOS, 20 Nov 2026): every leave type on one page, centred, two-line headings */
.crumb h2 .h2n{display:block;font-size:13px;font-weight:500;color:var(--muted);margin-top:4px;letter-spacing:0}
.crumb h2 .h2o{display:block;font-size:14px;font-weight:700;color:var(--ink-2);letter-spacing:0;margin-bottom:4px}
.al-per{display:flex;gap:8px;margin-left:auto}
.al-per .input{width:auto;min-width:130px}
.al-t .tools{align-items:center}
.al-t .tools .meta{display:none}
.al-legend{display:flex;flex-wrap:wrap;gap:4px 16px}
.al-legend b{color:var(--ink-2);margin-right:3px}
.al-gb{display:flex;gap:8px;flex-wrap:wrap}
.al-t .tw table{table-layout:fixed;width:100%}
.al-t .tw th,.al-t .tw td{padding:8px 3px;font-size:12.5px}
.al-t .tw th{font-size:12.5px;white-space:nowrap;vertical-align:middle}
.al-t .tw th{line-height:1.25;text-align:center}
.al-t .tw th:nth-child(1),.al-t .tw td:nth-child(1){width:54px;text-align:center}
.al-t .tw th:nth-child(2),.al-t .tw td:nth-child(2){padding-left:8px}
.al-t .tw th:nth-child(2),.al-t .tw td:nth-child(2){width:86px;text-align:left}
.al-t .tw th:nth-child(3),.al-t .tw td:nth-child(3){width:170px;text-align:left;white-space:normal}
.al-t .tw td.n{text-align:center;white-space:nowrap}
.al-t .al-0{color:var(--muted)}
.al-t .al-na{color:var(--muted);opacity:.55}
.al-t .al-sl{color:var(--muted);margin:0 3px}
.al-t .al-l{color:var(--ok)}
.tbar .sq .input{height:44px;min-height:44px}.tbar .sq:not(:focus-within):has(.input:placeholder-shown){flex:0 0 44px;width:44px}.tbar .sq>svg{left:13px}
.tbar .sq:focus-within,.tbar .sq:has(.input:not(:placeholder-shown)){flex:0 1 280px;width:280px}
.al-div{width:1px;align-self:stretch;background:var(--line-2);margin:4px 4px}
.al-gb .chip{min-height:40px}
.al-pick{max-width:520px;margin-bottom:12px}
.al-b .tw th:nth-child(3),.al-b .tw td:nth-child(3){width:auto}
.al-b .tw th:nth-child(n+4),.al-b .tw td:nth-child(n+4){width:160px}
/* Absentee (20 Nov 2026): month box beside Add holiday / Print; GPF / NPS tag under the designation */
.att-acts{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.att-acts .att-m,.att-cnt .att-m,.lop-sum .att-m{margin:0;min-width:230px;width:auto}
.att-cnt{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center}
.att-cnt .att-m{order:2;margin-left:auto}
.att .dg .cat-t{display:block;font-size:10px;font-weight:700;color:var(--accent);letter-spacing:.02em}
.att-m{display:flex;gap:8px}
.att-m .input{width:auto;min-width:0}
.att-acts .att-m,.att-cnt .att-m,.lop-sum .att-m{min-width:0}
.crumb h2 .h2o{font-size:15px}
.crumb h2 .h2o .h2o-m{font-weight:500;color:var(--muted);font-size:13px}
/* Absentee grid (20 Nov 2026): narrower day boxes so 16th–31st fit in one frame; Pension column; orders in the last column */
table.att th,table.att td{padding:3px 2px}
table.att th.dc{min-width:30px;width:30px}
table.att td .ac{min-width:26px;height:24px;padding:0 2px;font-size:11.5px}
table.att td.nm,table.att th.nm{min-width:150px;max-width:190px;padding-left:6px}
table.att td.dg{max-width:96px;font-size:11.5px;line-height:1.2}
table.att td.pn,table.att th.pn{font-size:11.5px;font-weight:700;color:var(--accent);min-width:44px}
table.att thead th.pn{color:var(--on-accent)}
table.att td.dcs,table.att th.dcs{min-width:64px}
table.att td.dcs .nm-b{display:inline-flex;gap:4px;justify-content:center}
/* NPS / GPF buttons (20 Nov 2026) */
.att-pen{display:flex;gap:8px;flex-wrap:wrap}
.att-pen .chip{min-height:38px;min-width:86px;justify-content:center}
.att-cnt>.note{order:0;flex:1 1 100%}
.att-cnt .att-pen{order:1}
.att-sum{align-items:center}
.att-sum .att-pen{margin-right:6px}
/* Absentee (20 Nov 2026): no up-down scrollbar on the sheet (the page scrolls); Documents column set apart at the right edge */
.att-scroll{max-height:none;overflow-x:auto;overflow-y:visible}
table.att td.dcs,table.att th.dcs{position:sticky;right:0;z-index:1;background:var(--surface);border-left:6px solid var(--bg);box-shadow:-6px 0 8px -6px rgba(30,34,53,.25);min-width:84px}
table.att thead th.dcs{z-index:3;background:var(--accent)}
.att-eye{display:inline-flex;align-items:center;justify-content:center;gap:3px;height:26px;min-width:30px;padding:0 6px;border-radius:7px;border:1px solid var(--edge);background:var(--surface);color:var(--muted);cursor:pointer;font:700 11.5px/1 inherit}
.att-eye svg{width:16px;height:16px}
.att-eye.has{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 45%,var(--edge))}
.att-eye.has:hover,.att-eye.has:focus-visible{background:var(--ok-soft);outline:none}
.att-eye:disabled{opacity:.45;cursor:default}
/* 20 Nov 2026: S. No. and LOP in the middle of their columns; Leave Record group buttons above the table */
table.att td.num,table.att th.num{text-align:center}
.al-top{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px}
.al-gb .chip{min-height:40px}
.al-t .tw th:last-child,.al-t .tw td:last-child{width:96px;text-align:center}

/* Order pending (owner, 21 Nov 2026): OP code, and a red corner on a leave day that has no order on the line */
.ac.t-op{color:#9a3412;background:color-mix(in srgb,#fb923c 22%,transparent);border:1px dashed #ea580c}
.ac.pd{position:relative}
.ac.pd::after{content:"";position:absolute;top:1px;right:1px;width:0;height:0;border-top:7px solid #dc2626;border-left:7px solid transparent;border-top-right-radius:5px}
.pend-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
@media print{.ac.pd::after{display:none}}
.pend-sub{display:block;font-weight:400}
.pend-tabs{margin:0 0 12px}
.do-onote{margin:-6px 0 12px}
.ac.t-duty{color:#fff;background:#0f766e}
.ac.t-duty.s-mark{box-shadow:inset 0 0 0 2px #134e4a}
.sub-warn ul{margin:6px 0 6px 18px;padding:0}
.sub-msg p{margin:0 0 12px;line-height:1.6}
.att-subn{margin-top:10px}
.ac.pd.vf::after{border-top-color:#0284c7}
.po-act{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.po-act .att-eye{text-decoration:none}
.pill.nw{white-space:nowrap}
/* Notifications page (21 Nov 2026) */
.nt-f{margin:0 0 12px}
.nt-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.nt-i{display:flex;align-items:stretch;gap:8px;background:var(--surface);border:1px solid var(--line, #e3e6ef);border-radius:12px}
.nt-i.unread{border-color:var(--accent);box-shadow:inset 3px 0 0 var(--accent)}
.nt-go{flex:1;display:flex;gap:12px;align-items:flex-start;text-align:left;background:none;border:0;padding:12px 14px;cursor:pointer;color:var(--ink);font:inherit;border-radius:12px}
.nt-go[data-nolink]{cursor:default}
.nt-go:hover,.nt-go:focus-visible{background:var(--hover);outline:none}
.nt-dot{width:8px;height:8px;border-radius:50%;margin-top:6px;flex:none;background:transparent}
.nt-i.unread .nt-dot{background:var(--accent)}
.nt-tx{display:grid;gap:3px}
.nt-tx span{color:var(--ink)}
.nt-tx small{color:var(--muted)}
.nt-x{align-self:center;margin-right:10px}
/* Daily Attendance: Sundays, second Saturdays and holidays (owner, 22 Nov 2026) */
.da-day.fx{background:color-mix(in srgb,#b45309 14%,var(--surface));border-color:color-mix(in srgb,#b45309 55%,var(--edge));color:#92400e}
.da-day.fx small{color:#92400e;font-weight:700}
.da-day.fx.on{outline:2px solid #92400e;outline-offset:1px}
.da-fixed{display:flex;gap:14px;align-items:center;margin:0 0 12px;padding:14px 18px;border-radius:12px;background:#92400e;color:#fff;box-shadow:0 2px 10px rgba(146,64,14,.35)}
.da-fixed-k{flex:none;min-width:44px;height:44px;padding:0 8px;display:grid;place-items:center;border-radius:10px;background:#fff;color:#92400e;font:800 15px/1 inherit}
.da-fixed b{display:block;font-size:16px}
.da-fixed span{font-size:13px;opacity:.92}
/* Add document: order or leave application (owner, 23 Nov 2026) */
.doc-kind{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 12px}
.doc-kind .btn{justify-content:center;min-height:52px;font-size:15px;font-weight:700}
@media (max-width:560px){.doc-kind{grid-template-columns:1fr}}
/* Online start / Submit window (owner, 23 Nov 2026) */
.att-paper{border-left:4px solid var(--muted,#64748b)}
.att-closed{border-left:4px solid #b91c1c;color:#7f1d1d;background:color-mix(in srgb,#b91c1c 7%,var(--surface))}
.doc-list li.la-off{opacity:.6}.doc-list li.la-off b{text-decoration:line-through}
