/* ASKITCHEN Order Pad v3 — design tokens copied from Service Pad (KAIRO Core Design, ASKITCHEN logo).
   Layout copied from the Claude Design mockup v43: a 232 px sidebar that collapses to a 64 px icon rail (collapsed by default
   below 1280 px), a top bar with a ☰ menu below 600 px, line cards below 1300 px; staff get one 390 px phone column.
   Fonts are served from this app (OFL-1.1), so the strict CSP needs no outside host. */
@font-face{font-family:'Cinzel';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/cinzel-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Cinzel';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/cinzel-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Cinzel';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/cinzel-latin-700-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-latin-400-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-latin-500-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-latin-600-normal.woff2) format('woff2')}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/inter-latin-700-normal.woff2) format('woff2')}
:root{
  --bg:#F4F2EA; --surface:#FCFBF7; --sunken:#EAE6DA; --fg:#1E2120; --muted:#5B5E57;
  --line:#DEDACD; --line-strong:#C3BDAE;
  --primary:#274037; --primary-hover:#1C302A; --on-primary:#F4F2EA;
  --accent:#4E6A52; --accent-soft:#E2E9DD;
  --red:#A23B2C; --red-soft:#F5E3DD; --amber:#875A16; --amber-soft:#F3E7D0;
  --blue:#3E5C74; --blue-soft:#E2E8EC; --green:#3F6B45; --green-soft:#E1EADC;
  --ink:#1E2120; --on-ink:#F4F2EA;
  --shadow:0 1px 2px rgba(30,33,32,.04), 0 4px 14px rgba(30,33,32,.05);
  --phone-shadow:0 18px 40px rgba(30,33,32,.16);
  --backdrop:rgba(15,23,21,.52);
  --f-title:'Cinzel', 'Trajan Pro', Georgia, serif;
  --f-body:'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#0F1715; --surface:#15201D; --sunken:#1C2925; --fg:#F4F2EA; --muted:#C8B99A;
    --line:#24342F; --line-strong:#33483F;
    --primary:#C7A463; --primary-hover:#D6B677; --on-primary:#0F1715;
    --accent:#A9BDA7; --accent-soft:#1F3029;
    --red:#E39A8C; --red-soft:#3A1F1A; --amber:#E2B56E; --amber-soft:#35291A;
    --blue:#A9C0D2; --blue-soft:#1C2A33; --green:#9CC79F; --green-soft:#1B2E22;
    --ink:#F4F2EA; --on-ink:#0F1715;
    --shadow:none; --phone-shadow:0 18px 40px rgba(0,0,0,.45); --backdrop:rgba(0,0,0,.62);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#0F1715; --surface:#15201D; --sunken:#1C2925; --fg:#F4F2EA; --muted:#C8B99A;
  --line:#24342F; --line-strong:#33483F;
  --primary:#C7A463; --primary-hover:#D6B677; --on-primary:#0F1715;
  --accent:#A9BDA7; --accent-soft:#1F3029;
  --red:#E39A8C; --red-soft:#3A1F1A; --amber:#E2B56E; --amber-soft:#35291A;
  --blue:#A9C0D2; --blue-soft:#1C2A33; --green:#9CC79F; --green-soft:#1B2E22;
  --ink:#F4F2EA; --on-ink:#0F1715;
  --shadow:none; --phone-shadow:0 18px 40px rgba(0,0,0,.45); --backdrop:rgba(0,0,0,.62);
  color-scheme:dark;
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:14px/1.45 var(--f-body);font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
h1,h2,h3{margin:0;font-weight:600;text-wrap:balance}
.t-title{font-family:var(--f-title)}
.muted{color:var(--muted)}
.s15{font-size:15px} .s13{font-size:13px} .s12{font-size:12px} .b{font-weight:600} .r{text-align:right}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;overflow-wrap:anywhere}
.num{text-align:right;font-variant-numeric:tabular-nums}
.ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.row{display:flex;align-items:center;gap:8px}
.row.sb{justify-content:space-between;gap:12px}
.col{display:flex;flex-direction:column}
.wrap{flex-wrap:wrap}
.grow{flex:1 1 auto;min-width:0}
.stack{display:flex;flex-direction:column;gap:12px}
.lab,.grp{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.lg-d{display:none}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .lg-l{display:none}:root:not([data-theme="light"]) .lg-d{display:inline-block}}
:root[data-theme="dark"] .lg-l{display:none}
:root[data-theme="dark"] .lg-d{display:inline-block}

/* ---------- buttons, inputs ---------- */
.btn{height:44px;padding:0 18px;border-radius:10px;border:1px solid var(--line-strong);background:var(--surface);font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;color:var(--fg)}
.btn:hover{border-color:var(--muted)}
.btn.pri{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.btn.pri:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.btn:disabled,.btn.pri:disabled{opacity:.45;cursor:not-allowed}
.btn.sm{height:36px;padding:0 14px;font-size:13px}
.btn.xs{height:34px;padding:0 12px;font-size:13px}
.btn.tall{height:48px}
.btn.dashed{border-style:dashed}
.btn.danger{color:var(--red)}
.btn.dash{border-style:dashed;background:transparent;color:var(--accent);font-weight:600}
.btn.link{border:none;background:none;padding:0;height:auto;color:var(--accent);font-weight:500;text-decoration:underline;text-underline-offset:3px}
.btn.link.mute{color:var(--muted)}
.btn.link.ulink{display:block;max-width:100%;margin-top:2px;font-size:12px;font-weight:400;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration-color:var(--line-strong)}
.btn.block{width:100%}
.lnk{color:var(--fg);text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-strong);font-size:13px;background:none;border:0;padding:0;font-family:inherit;cursor:pointer;white-space:nowrap}
.ico{width:36px;height:36px;border-radius:10px;border:1px solid var(--line-strong);background:var(--surface);display:inline-flex;align-items:center;justify-content:center;color:var(--fg);flex:0 0 auto;padding:0}
.ico svg{width:18px;height:18px}
.ico.sm{width:32px;height:32px}
.in{height:44px;width:100%;padding:0 14px;border-radius:10px;border:1px solid var(--line-strong);background:var(--surface);font-size:15px;color:var(--fg)}
.in::placeholder{color:var(--muted);opacity:.8}
.in.sm{height:40px;font-size:13px;padding:0 10px}
.in.qty{height:40px;width:96px;text-align:right;font-weight:600;font-size:15px;padding:0 12px}
.in.warn{border-color:var(--amber)}
.in:disabled{background:var(--sunken);color:var(--muted);border-color:var(--line);cursor:not-allowed;opacity:1}   /* 1.5d r1: a box locked while an approval is being sent */
.field{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:var(--muted)}
.field .hint{font-weight:400;font-size:12px}
.seg{display:flex;gap:4px;width:100%}
.seg button{flex:1 1 0;height:44px;border-radius:10px;border:1px solid var(--line-strong);background:var(--surface);font-weight:600;font-size:14px;padding:0 10px;white-space:nowrap}
.seg button.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
/* EN | ID and Light | Dark */
.mini{display:inline-flex;background:var(--sunken);border-radius:10px;padding:3px;gap:2px;flex:0 0 auto}
.mini button{height:26px;padding:0 10px;border:0;border-radius:8px;background:transparent;font-size:12px;font-weight:600;color:var(--fg);display:inline-flex;align-items:center}
.mini button.on{background:var(--accent-soft)}
.help{height:36px;padding:0 16px 0 10px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);font-size:14px;font-weight:600;display:inline-flex;align-items:center;gap:8px;color:var(--fg);white-space:nowrap;flex:0 0 auto}
.help i{font-style:normal;width:22px;height:22px;border-radius:50%;background:var(--sunken);display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}

/* ---------- chips, notes ---------- */
.chip{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;background:var(--sunken);color:var(--muted);vertical-align:middle}
.chip.cb{height:24px;padding:0 9px}
.chip.blue{background:var(--blue-soft);color:var(--blue)}
.chip.sage{background:var(--accent-soft);color:var(--accent)}
.chip.amber{background:var(--amber-soft);color:var(--amber)}
.chip.red{background:var(--red-soft);color:var(--red)}
.chip.green{background:var(--green-soft);color:var(--green)}
.chip.ink{background:var(--ink);color:var(--on-ink)}
.note{border-radius:12px;padding:12px 16px;font-size:14px;line-height:1.45;background:var(--sunken)}
.note b{font-weight:600}
.note.blue{background:var(--blue-soft);color:var(--blue)}
.note.amber{background:var(--amber-soft);color:var(--amber)}
.note.red{background:var(--red-soft);color:var(--red)}
.note.green{background:var(--green-soft);color:var(--green)}
.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);flex:0 0 7px}
.dot.amber{background:var(--amber)} .dot.red{background:var(--red)} .dot.blue{background:var(--blue)}

/* ---------- desk: sidebar (232 px, or a 64 px icon rail), page ---------- */
.desk{min-height:100%;display:flex;flex-direction:column}
.shell{display:grid;grid-template-columns:232px minmax(0,1fr);flex:1 1 auto;align-items:start}
.shell.col{grid-template-columns:64px minmax(0,1fr)}
.side{background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:16px 12px 18px;position:sticky;top:0;height:100vh;overflow:hidden auto}
.shell.col .side{padding:16px 10px 18px}
.side .hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px 0 8px;min-height:30px}
.side .hd img{height:24px;width:auto;vertical-align:middle}
.side .hd .lgo,.side .hd .mk{display:inline-flex;align-items:center}
.shell.col .side .hd{flex-direction:column;gap:10px;padding:0}
.shell.col .side .hd img{height:18px}
.side .chev{width:30px;height:30px;border:0;background:transparent;margin-left:auto}
.shell.col .side .chev{margin:0}
.side .chev:hover{background:var(--sunken)}
.sname{font-family:var(--f-title);font-size:15px;font-weight:600;letter-spacing:.03em;padding:2px 8px 0}
.side .nb{width:100%;margin-top:14px}
.side .nb .plus{font-size:20px;line-height:1}
.shell.col .side .nb{width:44px;padding:0;margin-left:auto;margin-right:auto}
.side .lb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side .grp{padding:0 10px;margin:14px 0 6px}
.side .shc.sep{height:1px;background:var(--line);margin:8px 6px}
.shell.col .side .lb,.shell.col .side .hc{display:none}
.nav{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;height:36px;padding:0 10px;border:0;border-radius:10px;background:transparent;font-size:14px;color:var(--fg);text-align:left;font-family:inherit}
.nav:hover{background:var(--sunken)}
.nav.on{background:var(--accent-soft)}
.nav .l2{display:flex;align-items:center;gap:10px;min-width:0}
.nav svg{width:20px;height:20px;flex:0 0 auto}
.shell.col .side .nav{justify-content:center;padding:0}
.cnt{font-size:12px;font-weight:700;color:var(--red);background:var(--red-soft);border-radius:6px;padding:1px 7px}
.cnt.a{color:var(--amber);background:var(--amber-soft)}
.sfoot{border-top:1px solid var(--line);padding-top:10px;display:flex;flex-direction:column;gap:6px}
.erpl{display:flex;align-items:center;gap:8px;min-height:32px;padding:0 8px;border-radius:10px;border:0;background:transparent;font-size:12px;color:var(--muted);width:100%;text-align:left;font-family:inherit}
button.erpl:hover{background:var(--sunken)}
.erpl.ro{cursor:default}
.erpl b{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.erpl .st{display:inline-flex;align-items:center;gap:7px}
.erpl .st>span{white-space:nowrap}                 /* dot and site code stay on one line, also when a time is shown */
.erpl .dot{margin-right:4px;vertical-align:1px}
.erpl .tm{margin-left:auto}
.erpl.bk{gap:8px}
.nav.pers{height:48px}
.nav.pers .lb{display:flex;flex-direction:column;line-height:1.3}
.nav.pers .lb b{font-size:13px;font-weight:600}
.nav.pers .lb .muted{font-size:12px;overflow:hidden;text-overflow:ellipsis}
.av{width:30px;height:30px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:12px;flex:none}
.av.sm{width:28px;height:28px}
.persrow{display:flex;align-items:center;gap:2px}
.persrow .nav.pers{flex:1 1 auto;min-width:0}
.persrow .lo{flex:none;height:32px;padding:0 10px;border-radius:8px;border:0;background:transparent;color:var(--muted);font-size:12px;font-weight:600;font-family:inherit;white-space:nowrap;cursor:pointer}
.persrow .lo:hover{background:var(--sunken);color:var(--fg)}
.pager{justify-content:space-between}
/* phones: top bar + ☰ menu */
.topbar{display:none;position:sticky;top:0;z-index:30;height:54px;background:var(--surface);border-bottom:1px solid var(--line);align-items:center;gap:10px;padding:0 12px}
.topbar>img{height:18px;width:auto;flex:none}
.topbar .tbt{font-size:15px;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .tbp{height:36px;width:36px;padding:0;font-size:18px;margin-left:auto;flex:none}
.menu{position:absolute;top:100%;left:0;right:0;background:var(--surface);border-bottom:1px solid var(--line);box-shadow:0 12px 30px rgba(0,0,0,.15);padding:8px;display:flex;flex-direction:column;gap:2px;max-height:calc(100dvh - 54px);overflow:auto}
.menu .nav{height:44px;padding:0 12px}                 /* 1.2c (Fin): left-aligned like the sidebar, counts at the right end */
.menu .grp.mg{padding:10px 12px 4px}
.menu .mfoot{border-top:1px solid var(--line);margin-top:6px;padding:10px 12px 2px;display:flex;align-items:center;gap:8px}
.menu .mfoot .help{margin-left:auto}
.menu .muser{padding:6px 12px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.menu .mwho{display:inline-flex;align-items:center;gap:10px;border:0;background:transparent;padding:0;text-align:left;color:var(--fg);font-family:inherit;line-height:1.35}
.ov{position:fixed;inset:0;background:rgba(30,33,32,.55);z-index:29}
/* page */
.mn{min-width:0;padding:20px 20px 24px;display:flex;flex-direction:column;gap:16px}
.ph{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ph h1{font-family:var(--f-title);font-size:26px;font-weight:600;letter-spacing:.03em;line-height:1.2}
.ph p{margin:4px 0 0;color:var(--muted);font-size:14px}
.ph .acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:none}
.mn>.grp.sec{margin-top:4px}
.mn>.card+.after,.mn>.after{margin-top:-6px}
.mn>.grp+.card,.mn>.grp+.cards{margin-top:-8px}
body.shot .foot{position:static}

/* ---------- cards, tabs, pills, rows ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:var(--shadow)}
.card.tight{padding:14px 16px}
.card.flush,.card.list{padding:0;overflow:hidden}
.card.empty{padding:20px;color:var(--muted);text-align:center}
.card.sunk{background:var(--sunken);border-color:var(--sunken);box-shadow:none;padding:12px 16px}
.wr{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.wr:last-child{border-bottom:0}
.wr>div:first-child{flex:1 1 260px}
.wr.erow{padding:14px 18px}
/* tabs (a segmented bar) — counts in red; branch pills — counts in green */
.tabs{display:inline-flex;flex-wrap:wrap;gap:2px;padding:4px;border-radius:10px;background:var(--sunken)}
.tabs button{height:36px;display:inline-flex;align-items:center;gap:6px;padding:0 14px;border:0;border-radius:8px;background:transparent;font-size:14px;font-weight:600;color:var(--fg);white-space:nowrap}
.tabs button.on{background:var(--surface);box-shadow:var(--shadow)}
.tabs button .c{font-weight:700;color:var(--red)}
.tabs button .c.n{font-weight:600;color:var(--muted)}                 /* 1.3b: a plain count (Requests by month) — not work waiting */
.btabs{display:flex;flex-wrap:wrap;gap:8px}
.btabs button{height:36px;display:inline-flex;align-items:center;gap:6px;padding:0 14px;border-radius:999px;border:1px solid var(--line-strong);background:var(--surface);font-size:14px;font-weight:600;white-space:nowrap;color:var(--fg)}
.btabs button.on{border-color:var(--accent);background:var(--accent-soft)}
.btabs button .c{font-weight:700;color:var(--green)}
.scroll-x{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tr{display:grid;gap:12px;align-items:center;padding:11px 14px;border-bottom:1px solid var(--line);font-size:14px;min-width:0}
.tr:last-child{border-bottom:none}
.tr.th{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding-top:12px;padding-bottom:12px;background:var(--sunken)}
button.tr{width:100%;border:none;border-bottom:1px solid var(--line);background:transparent;text-align:left;color:var(--fg)}
button.tr:hover{background:var(--sunken)}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
.gcard{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:14px;border:1px solid var(--line);background:var(--surface);text-align:left;box-shadow:var(--shadow);color:var(--fg);font-family:inherit}
.gcard:hover{border-color:var(--line-strong)}
.gcard .t{font-size:16px;font-weight:600;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.gcard .s{font-size:13px;color:var(--muted)}
.gcard.bad{border:1px dashed var(--red);background:transparent;box-shadow:none}
.freec{padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.freec .frow{padding:10px 0 0;margin-top:6px;border-top:1px solid var(--line)}
.rq{padding:12px 14px 12px 16px;display:flex;flex-direction:column;gap:6px}
.rq .rqn{font-size:15px}
.rq .rqq{font-size:20px;font-weight:700}
.bar{height:8px;border-radius:4px;background:var(--sunken);overflow:hidden;display:flex}
.bar i{display:block;height:100%}
.bar i.a{background:var(--accent)} .bar i.r{background:var(--red)}
.kv2{display:flex;justify-content:space-between;gap:12px;font-size:13px}
.kv2 span:first-child{color:var(--muted)}
.kv2>:last-child{white-space:nowrap;text-align:right}
.whchg{display:flex;flex-direction:column;gap:2px;font-size:13px;padding:6px 0;border-bottom:1px solid var(--line)}
.whchg:last-child{border-bottom:0}
.big{font-size:24px;font-weight:700;line-height:1.2}

/* ---------- order lines (a table on wide screens, cards below 1300 px) ---------- */
.lines .tr{grid-template-columns:minmax(200px,1.8fr) 70px 72px 76px 70px minmax(170px,1.6fr) 168px 112px;align-items:start;padding:14px 12px}
.lines .tr.th{align-items:center;padding:12px}
.it-n{font-size:15px;font-weight:600;line-height:1.35}
.it-m{font-size:12px;color:var(--muted)}
.fact{font-size:15px;font-weight:600}
.fact.unk{font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--amber);line-height:1.3}
.why{font-size:12px;color:var(--muted);margin-top:4px;line-height:1.4}
.warn2{font-size:12px;color:var(--amber);margin-top:4px}
.qcell{display:flex;flex-direction:column;gap:6px}
.qcell small{font-size:12px;color:var(--muted)}
.ghead .gt{font-size:20px;font-weight:600;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.gfoot{padding:18px 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:24px}
.gfoot .gtot{font-size:26px;font-weight:700;margin-top:4px}
.foot{position:sticky;bottom:0;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,340px);gap:16px;align-items:start;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:0 -6px 20px rgba(0,0,0,.06)}

/* ---------- ready checklist ---------- */
.ready{display:flex;flex-direction:column;gap:10px}
.ready .rh{display:flex;justify-content:space-between;align-items:center}
.rk{display:flex;align-items:center;gap:10px;font-size:14px;min-height:22px;border:none;background:none;padding:0;text-align:left;color:var(--fg);font-family:inherit}
.rk i{flex:0 0 20px;width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-size:11px;font-weight:700}
.rk.ok i{background:var(--green-soft);color:var(--green)}
.rk.no i{border:2px solid var(--red)}
.rk.no{color:var(--red);cursor:pointer}
.rk.no:hover span{text-decoration:underline}
.why-off{font-size:12px;color:var(--muted)}

/* ---------- modal, drawer, toast ---------- */
.modal{position:fixed;inset:0;z-index:50;background:var(--backdrop);display:flex;align-items:flex-start;justify-content:center;padding:8vh 16px 16px;overflow:auto}
.modal.abs{position:absolute;padding:16px}
.dlg{position:relative;width:min(520px,100%);background:var(--surface);border-radius:16px;padding:24px;display:flex;flex-direction:column;gap:14px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.dlg.wide{width:min(720px,100%)}
.dlg h2{font-family:var(--f-title);font-size:20px;letter-spacing:.02em;padding-right:36px}
.dlg .x{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:18px;border:none;background:var(--sunken);font-size:18px;line-height:1;color:var(--fg)}
.modal.abs.sheet{align-items:flex-end;padding:0}
.modal.abs.sheet .dlg{width:100%;border-radius:18px 18px 0 0;max-height:92%;overflow:auto}
.dacts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.drawer{position:fixed;top:0;right:0;bottom:0;z-index:60;width:min(420px,100%);background:var(--surface);border-left:1px solid var(--line);padding:22px 24px;overflow:auto;display:flex;flex-direction:column;gap:14px;box-shadow:-12px 0 40px rgba(0,0,0,.12)}
.drawer h2{font-family:var(--f-title);font-size:22px}
.drawer ol,.drawer ul{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.drawer dl{margin:0;display:flex;flex-direction:column;gap:8px}
.drawer dt{font-weight:600}
.drawer dd{margin:0;color:var(--muted);font-size:13px}
.toast .tact{color:var(--on-ink);text-decoration:underline;margin-left:10px;font-weight:600;font-size:14px}
.it-m.sp{display:block;margin-top:2px}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:70;max-width:min(560px,calc(100% - 32px));background:var(--ink);color:var(--on-ink);border-radius:12px;padding:11px 16px;font-size:14px;box-shadow:0 10px 30px rgba(0,0,0,.25)}

/* ---------- sign in ---------- */
.signin{min-height:100%;display:flex;align-items:center;justify-content:center;padding:32px 16px}
.signbox{width:min(380px,100%);display:flex;flex-direction:column;gap:16px}
.signbox .lgw{display:flex;flex-direction:column;align-items:center;gap:6px;padding-bottom:10px}
.signbox .lgw img{height:40px;width:auto}
.signbox .lgw b{font-family:var(--f-title);font-size:26px;font-weight:600;letter-spacing:.03em}
.signbox .lgw small{font-size:11px;font-weight:700;letter-spacing:.18em;color:var(--muted)}

/* ---------- staff phone (one 390 px column) ---------- */
.stage{display:flex;justify-content:center;padding:0;min-height:100%;background:var(--sunken)}
.phone{position:relative;width:min(390px,100%);height:100dvh;min-height:560px;overflow:hidden;background:var(--bg);box-shadow:0 0 0 1px var(--line);display:flex;flex-direction:column}
.pbar{background:var(--surface);border-bottom:1px solid var(--line);padding:18px 16px 16px;display:flex;flex-direction:column;gap:14px}
.pbar .top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pbar .top img{height:18px;width:auto}
.pbar .ttl{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.pbar .ttl b{font-family:var(--f-title);font-size:22px;font-weight:600;letter-spacing:.03em}
.pbar .ttl .muted{font-size:15px}
.pbody{flex:1 1 auto;min-height:0;overflow:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.irow{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px 14px 14px 16px;border-radius:14px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);text-align:left;color:var(--fg);font-family:inherit}
.irow .grow{display:flex;flex-direction:column;gap:1px}
.irow .nm{font-size:16px;line-height:1.35}
.irow .add{flex:0 0 auto;height:40px;padding:0 16px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:15px;font-weight:700;display:inline-flex;align-items:center;white-space:nowrap}
.btn.ask{border-radius:12px}
.pbody .rq .rqn{font-size:16px}
.basket{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:var(--surface);border-top:1px solid var(--line);font-size:16px}
.pnav{display:flex;background:var(--surface);border-top:1px solid var(--line)}
.pnav button{flex:1 1 0;height:60px;border:0;border-top:3px solid transparent;background:transparent;font-size:15px;font-weight:600;color:var(--fg)}
.pnav button.on{border-top-color:var(--accent)}
.stepper{display:flex;align-items:center;gap:8px}
.stepper button{flex:0 0 52px;height:52px;border-radius:12px;border:1px solid var(--line-strong);background:var(--surface);font-size:22px;color:var(--accent)}
.stepper .in{height:52px;text-align:center;font-size:22px;font-weight:700}
.sent{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:48px 20px 20px;flex:1 1 auto}
.sent .ok{width:64px;height:64px;border-radius:32px;background:var(--green-soft);color:var(--green);display:flex;align-items:center;justify-content:center}

/* ---------- new request (desk) ---------- */
.ordergrid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start}
.itemgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:8px}
.basketcard{position:sticky;top:16px}
.mbasket{display:none}

/* ---------- app-only bars ---------- */
.topbars{position:sticky;top:0;z-index:40;display:flex;flex-direction:column}
.vbar{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 16px;background:var(--ink);color:var(--on-ink);font-size:13px}
.vbar .btn{height:30px;font-size:12px;background:transparent;color:var(--on-ink);border-color:var(--on-ink)}
.rbar{padding:7px 16px;text-align:center;background:var(--red);color:var(--on-primary);font-size:12px;font-weight:700;letter-spacing:.08em}
.nbar{padding:7px 16px;text-align:center;background:var(--amber-soft);color:var(--amber);font-size:13px}
.boot{min-height:100dvh;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.dl{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;font-size:13px}
.dl dt{color:var(--muted)} .dl dd{margin:0;text-align:right}
.sitegrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.sitegrid .dl{grid-template-columns:1fr;gap:0}
.sitegrid .dl dt{font-size:11px;margin-top:6px}
.sitegrid .dl dd{text-align:left}

/* ---------- 1.1a: checklist facts, Why less?, checked lines, variances, approvals ---------- */
.who{display:flex;flex-direction:column;gap:1px}
.who b{font-size:13px}
.facts{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--muted);padding-top:8px;border-top:1px solid var(--line)}
.linesw{min-width:1040px}
.whyl{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:600;color:var(--muted)}
select.in{appearance:none;-webkit-appearance:none;padding-right:28px;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.cls .cl{display:grid;grid-template-columns:minmax(220px,2fr) minmax(170px,1.2fr) minmax(200px,1.4fr) 140px;gap:12px;align-items:start;padding:12px 16px;border-bottom:1px solid var(--line)}
.cls .cl:last-child{border-bottom:none}
.cl-q{display:flex;flex-direction:column;gap:2px;font-size:13px}
.cl-f{display:flex;flex-direction:column;gap:2px}
.vrows{display:flex;flex-direction:column;gap:4px}
.vrow{display:flex;align-items:baseline;gap:8px;font-size:13px;color:var(--fg)}
.vrow .dot{flex:0 0 7px;transform:translateY(-1px)}
.vdet{font-size:13px}
.vdet summary{cursor:pointer;color:var(--muted);display:flex;align-items:center;gap:6px;list-style:none;min-height:28px}
.vdet summary::-webkit-details-marker{display:none}
.vdet[open] summary{margin-bottom:6px}
ul.plain{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:4px;font-size:13px}
.acctcard{max-width:520px}
.apc{padding:16px 18px;display:flex;flex-direction:column;gap:12px;border-color:var(--amber)}
.mn>.apc+.apc{margin-top:-4px}
.apt{font-size:16px;font-weight:600;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.apt.s15{font-size:15px}
.apv{font-size:22px;font-weight:700}
.selfrow{border-top:1px solid var(--line);padding-top:10px}
.drow{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;width:100%;text-align:left;color:var(--fg);font-family:inherit}
.drow:hover{border-color:var(--line-strong)}
.mn>.drow+.drow{margin-top:-6px}

/* ---------- responsive (the mockup's breakpoints: 1299 · 899 · 599) ---------- */
@media (max-width: 1299px){
  .tabs button{min-height:44px}
  .mini button{min-height:36px}
  .btn.xs,.btn.sm{height:44px}
  .ico{width:44px;height:44px}
  .ico.sm{width:32px;height:32px}
  .side .chev{width:30px;height:30px}
  /* order lines become cards: item · final qty · estimate on top, the four facts below, the check across */
  .lines.scroll-x{overflow-x:visible}
  .lines .linesw{min-width:0}
  .lines .tr.th{display:none}
  .lines .tr{grid-template-columns:repeat(12,minmax(0,1fr));gap:10px 12px;padding:14px 16px}
  .lines .tr>.c-item{grid-area:1 / 1 / auto / 8}
  .lines .tr>.qcell{grid-area:1 / 8 / auto / 11}
  .lines .tr>:nth-child(8){grid-area:1 / 11 / auto / 13;text-align:right}
  .lines .tr>:nth-child(2){grid-column:1 / 4}
  .lines .tr>:nth-child(3){grid-column:4 / 7}
  .lines .tr>:nth-child(4){grid-column:7 / 10}
  .lines .tr>:nth-child(5){grid-column:10 / 13}
  .lines .tr>.c-check{grid-column:1 / 13}
  .lines .tr>[data-l]::before{content:attr(data-l);display:block;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
  .cls .cl{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr)}
  .cls .cl>.cl-i{grid-column:1 / -1}
}
@media (max-width: 1100px){ .ordergrid{grid-template-columns:minmax(0,1fr) 320px} .foot{grid-template-columns:1fr} }
@media (max-width: 899px){
  .mn{padding:16px}
  .ordergrid{grid-template-columns:minmax(0,1fr)}
  .basketcard{display:none}
  .mbasket{display:flex;position:sticky;bottom:0;z-index:6;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;margin:0 -16px -16px;background:var(--surface);border-top:1px solid var(--line)}
  /* Users: each person on one wrapped line, the buttons underneath */
  .users.scroll-x{overflow-x:visible}
  .users .usersw{min-width:0!important}
  .users .tr.th{display:none!important}
  .users .tr{display:flex!important;flex-wrap:wrap;gap:6px 14px;padding:12px 16px;align-items:center}
  .users .tr>*{display:flex;align-items:center}
  .users .tr>:last-child{flex-basis:100%}
  .users .tr>:first-child{flex-direction:column;align-items:flex-start;gap:0}   /* 1.5a.1: the ERPNext line sits under the name, not glued to it */
  .users .uacts{flex-wrap:wrap;gap:8px}
  .cls .cl{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .cls .cl>.cl-e{text-align:left}
}
@media (max-width: 599px){
  .shell,.shell.col{grid-template-columns:minmax(0,1fr)}
  .side{display:none}
  .topbar{display:flex}
  .mn .pctl{display:none}
  .mn>.ph{flex-wrap:wrap}
  .stage{padding:0;min-height:0}
  .dlg{padding:20px}
  .modal{padding-top:16px}
  .foot{position:static}
  .lines .tr>.c-item{grid-column:1 / 13}
  .lines .tr>.qcell{grid-area:auto / 1 / auto / 7}
  .lines .tr>:nth-child(8){grid-area:auto / 7 / auto / 13}
  .lines .tr>:nth-child(2),.lines .tr>:nth-child(3),.lines .tr>:nth-child(4),.lines .tr>:nth-child(5){grid-column:span 6}
  .cls .cl{grid-template-columns:minmax(0,1fr)}
  .cl-f{flex-direction:row;flex-wrap:wrap;gap:2px 14px}
  .trb .it-ph{display:block;margin-top:4px}
}
/* touch screens: every control at least 44 px high */
@media (pointer: coarse){
  .btn.sm,.btn.xs,.in.sm,.tabs button,.btabs button,.help,.mini button{min-height:44px}
  .mini button{padding:0 12px}
  .vdet summary{min-height:44px}
  .lnk{min-height:44px}
}
@media (prefers-reduced-motion: no-preference){ .btn,.nav,.gcard,.tabs button{transition:background-color .15s, border-color .15s, color .15s} }
/* Settings › Warehouses (1.1a.3) */
.whl .whrow{align-items:center;gap:12px}
.whl .whrow .grow{flex:1 1 260px}
.ck{flex:none;width:24px;height:24px;border-radius:7px;border:1.5px solid var(--line-strong);background:var(--surface);display:inline-flex;align-items:center;justify-content:center;padding:0;cursor:pointer;color:var(--on-primary)}
.ck.on{background:var(--primary);border-color:var(--primary)}
.ck svg{width:16px;height:16px}
.ck:disabled{opacity:.45;cursor:not-allowed}
.whl .in.sm{height:34px;width:auto;padding-right:30px}
.whl select[data-in=whBranch]{min-width:130px}
.whl select[data-in=whRole]{min-width:220px}
.savebar{position:sticky;bottom:12px;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;border-radius:14px;background:var(--surface);border:1px solid var(--line-strong);box-shadow:var(--shadow)}

.rnum{width:76px !important;text-align:center}
/* 1.2 · Stock check, Items, Suppliers */
.stockgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:18px;align-items:start}
.stockgrid>aside{position:sticky;top:12px}
.irow.on{border-color:var(--accent);background:var(--accent-soft)}
.sqb{box-shadow:none}
.sqb.mine{border-color:var(--accent)}
.sq-n{font-size:20px;font-weight:700}
.trb{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;color:var(--fg);font-family:inherit;cursor:pointer}
.trb:hover{background:var(--sunken)}
.filt .in.sm{width:auto;min-width:150px}
.filt select[data-k=price].in.sm{min-width:240px}   /* 1.4a: "Selling price, no buying price" fits */
/* 1.4a Settings › Buying price lists: the inputs keep their own width (a date box never stretches across the card) */
.plrow .in.sm{width:auto}
.it-ph{display:none}   /* 1.4a: on a phone the price column is off-screen, so the price (and why there is none) sits under the name */
.plrow input[type=date].in.sm{width:170px}
.pladd select.in.sm{width:auto;min-width:240px;max-width:360px}
@media (max-width: 899px){ .stockgrid{grid-template-columns:minmax(0,1fr)} .stockgrid>aside{position:static} }   /* 1.5l: one line with .ordergrid — the desk is two-column from 900 px (app.js DESK2) */
.why.hint{color:var(--blue)}
.why.muted{color:var(--muted)}
.sgb{margin-top:6px}
.lnk.mn-l{display:block;margin-top:4px;font-size:12px;color:var(--muted)}
.bcard{box-shadow:none}
.bcard.over{border-color:var(--red)}
.bd-n{font-size:22px;font-weight:700}
/* 1.2 · Home */
.tiles{display:grid;grid-template-columns:repeat(var(--tc,4),minmax(0,1fr));gap:12px}
@media (max-width: 1100px){ .tiles{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width: 700px){ .tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px} .tile{padding:10px 12px} .tile .tn{font-size:22px} .tile .tl{font-size:13px} }
.tile{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:14px 16px;text-align:left;color:var(--fg);font-family:inherit;cursor:pointer;box-shadow:none}
.tile .tn{font-size:28px;font-weight:700;line-height:1.1;color:var(--muted)}
.tile.live .tn{color:var(--fg)}
.tile.warn .tn{color:var(--amber)}
.tile .tl{font-size:14px;font-weight:600}
.tile .ts{font-size:12px;color:var(--muted)}
.tile:hover,.tile2:hover{border-color:var(--line-strong)}
.tile2{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;color:var(--fg);font-family:inherit;cursor:pointer;padding:14px 16px}
.tile2 .bar{width:100%}
.hgrid{grid-template-columns:minmax(120px,1.4fr) repeat(5,minmax(80px,1fr))}
.hc-n{justify-self:end;min-width:36px;height:30px;border-radius:8px;border:0;background:transparent;font-weight:600;color:var(--muted);font-family:inherit;cursor:pointer}
.hc-n.on{background:var(--accent-soft);color:var(--accent)}

/* ---------- 1.2b: slim order lines — the row, and a drop-down for every explanation ---------- */
.lines .ln{border-bottom:1px solid var(--line)}
.lines .ln:last-child{border-bottom:none}
.lines .ln>.tr{border-bottom:none;align-items:center;padding-top:10px;padding-bottom:10px}
.lines .ln.open{background:color-mix(in srgb,var(--sunken) 45%,transparent)}
.lmore{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;background:none;border:0;padding:0;text-align:left;color:var(--fg);font-family:inherit;cursor:pointer;min-width:0}
.lm-t{display:flex;align-items:center;gap:6px;min-width:0}
.lm-t .it-n{overflow:hidden;text-overflow:ellipsis}
.chev2{width:16px;height:16px;flex:none;color:var(--muted);transition:transform .15s}
.lmore[aria-expanded="true"] .chev2{transform:rotate(180deg)}
.lmore:hover .it-n{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-strong)}
.lm-m{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px}
.lm-m .chip{height:19px;font-size:10px;padding:0 6px}
.lm-m .cust{color:var(--fg);font-weight:600}
.qrow{display:flex;align-items:center;gap:6px}
.qrow .qty{width:72px;flex:none}
.qrow .sgb{margin-top:0;white-space:nowrap}
.ldet{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 28px;padding:2px 12px 16px 12px}
.lds{display:flex;flex-direction:column;gap:2px;min-width:0}
.lds .lab{margin:0 0 2px}
.lds .why{margin-top:2px}
.lnk.sm2{font-size:12px;color:var(--muted)}
.lines .c-check .chip{height:20px;font-size:10.5px;padding:0 6px}
/* below 1300 px a line is a compact card: item · final qty · estimate, then the four numbers and the chips on one strip */
@media (max-width: 1299px){
  .lines .ln>.tr{padding-top:12px;padding-bottom:12px;gap:8px 12px;align-items:start}
  .lines .ln>.tr>.c-item{grid-area:1 / 1 / auto / 7}
  .lines .ln>.tr>.qcell{grid-area:1 / 7 / auto / 11}
  .lines .ln>.tr>:nth-child(8){grid-area:1 / 11 / auto / 13;text-align:right}
  .lines .ln>.tr>:nth-child(2){grid-column:1 / 3}
  .lines .ln>.tr>:nth-child(3){grid-column:3 / 5}
  .lines .ln>.tr>:nth-child(4){grid-column:5 / 7}
  .lines .ln>.tr>:nth-child(5){grid-column:7 / 9}
  .lines .ln>.tr>.c-check{grid-column:9 / 13}
  .lines .ln>.tr>.num:not(:nth-child(8)){text-align:left}
  .lines .ln>.tr>.num .it-m{display:inline;margin-left:4px}
  .lines .ln>.tr>.qcell::before,.lines .ln>.tr>:nth-child(8)::before{display:none}
  .lines .ln>.tr>.c-check.empty{visibility:hidden}
  .ldet{padding:0 16px 16px}
}
@media (max-width: 899px){ .ldet{grid-template-columns:minmax(0,1fr);gap:10px} }
@media (max-width: 599px){
  .lines .ln>.tr>.c-item{grid-column:1 / 13}
  .lines .ln>.tr>.qcell{grid-area:auto / 1 / auto / 8}
  .lines .ln>.tr>:nth-child(8){grid-area:auto / 8 / auto / 13}
  .lines .ln>.tr>:nth-child(2){grid-column:1 / 4}
  .lines .ln>.tr>:nth-child(3){grid-column:4 / 7}
  .lines .ln>.tr>:nth-child(4){grid-column:7 / 10}
  .lines .ln>.tr>:nth-child(5){grid-column:10 / 13}
  .lines .ln>.tr>.c-check{grid-column:1 / 13}
  .lines .ln>.tr>.c-check.empty{display:none}
}

/* ---------- 1.2b: Home — budget first, small charts (inline SVG, colours from the theme) ---------- */
.hbud{display:flex;flex-direction:column;gap:14px}
.hb-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:28px;align-items:start}
.hb-grid.one{grid-template-columns:minmax(0,1fr)}
.hb-sum{display:flex;flex-direction:column;gap:2px}
.hb-big{font-size:30px;font-weight:700;line-height:1.15;letter-spacing:-.01em}
.hb-ch{display:flex;flex-direction:column;gap:6px}
.ch{display:block;width:100%}
.chm{height:150px;border-bottom:1px solid var(--line)}
.chm .lim{stroke:var(--line-strong);stroke-width:1}
.chm .pace{stroke:var(--muted);stroke-width:1.2;stroke-dasharray:5 5}
.chm .area{fill:var(--accent-soft);opacity:.7}
.chm .cum{fill:none;stroke:var(--accent);stroke-width:2.2;stroke-linejoin:round}
.chm .cum.over{stroke:var(--red)}
.chm .now{stroke:var(--line);stroke-width:1}
.lg{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}
.lg span{display:inline-flex;align-items:center;gap:6px}
.lg i{display:inline-block;width:16px;height:0;border-top:2.2px solid var(--accent)}
.lg i.l2{border-top:1.2px dashed var(--muted)}
.lg i.l3{border-top:1px solid var(--line-strong)}
/* the branch rows share one grid, so every bar starts and ends at the same place */
.hbrs{display:grid;grid-template-columns:auto minmax(80px,1fr) auto;gap:10px 14px;align-items:center}
.hbr{display:contents;font-size:13px}
.hbr>*{font-size:13px}
.hbr-n{font-weight:600}
.hbr-v{white-space:nowrap;text-align:right}
.hbar{position:relative;display:block;height:10px;border-radius:5px;background:var(--sunken);overflow:visible}
.hbar i{position:absolute;left:0;top:0;bottom:0;border-radius:5px;background:var(--accent)}
.hbar i.a2{background:var(--amber)}
.hbar i.r{background:var(--red)}
.hbar .pm{position:absolute;top:-3px;bottom:-3px;width:2px;margin-left:-1px;background:var(--fg);opacity:.55;border-radius:1px}
.hbar em{position:absolute;left:8px;top:-3px;font-style:normal;font-size:11px;color:var(--muted)}
.hbar.sm{height:6px}
.kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;padding:0}
.kpi{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-left:1px solid var(--line);min-width:0}
.kpi:first-child{border-left:0}
.kv{font-size:24px;font-weight:700;line-height:1.15}
.kl{font-size:13px;font-weight:600}
.ks{font-size:11px;color:var(--muted)}
.hgrid2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.mc{display:flex;flex-direction:column;gap:6px}
.mc .ch{height:46px}
.ch .b0{fill:var(--line)}
.ch .b1{fill:var(--accent);opacity:.55}
.ch .b2{fill:var(--accent)}
.ch.appr .b1{fill:var(--ink);opacity:.45} .ch.appr .b2{fill:var(--ink)}
.ch.recv .b1{fill:var(--blue);opacity:.5} .ch.recv .b2{fill:var(--blue)}
.trow{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(60px,1fr);gap:14px;align-items:center;width:100%;background:none;border:0;padding:4px 0;text-align:left;color:var(--fg);font-family:inherit;cursor:pointer}
.trow:hover .ell{text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--line-strong)}
.tr-n{display:flex;flex-direction:column;min-width:0}
.s14{font-size:14px}
@media (max-width: 1100px){ .kpis{grid-template-columns:repeat(3,minmax(0,1fr))} .kpi:nth-child(4){border-left:0} .kpi:nth-child(n+4){border-top:1px solid var(--line)} }
@media (max-width: 899px){ .hb-grid,.hgrid2{grid-template-columns:minmax(0,1fr)} .hb-grid{gap:18px} }
@media (max-width: 599px){ .kpis{grid-template-columns:repeat(2,minmax(0,1fr))} .kpi:nth-child(4){border-left:1px solid var(--line)} .kpi:nth-child(odd){border-left:0} .kpi:nth-child(n+3){border-top:1px solid var(--line)} .hbrs{grid-template-columns:auto minmax(0,1fr)} .hbr-v{grid-column:1 / -1;text-align:left;margin-top:-6px} .hb-big{font-size:26px} }

/* ---------- 1.2c: one pager for every list (10 a page) ---------- */
.pager .pgn{min-width:52px;text-align:center}
.pager.loose{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:8px 14px}
/* 1.2d: the code step at sign-in, the authenticator set-up, devices */
.codein{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:20px;letter-spacing:.22em;text-align:center}
.codein::placeholder{letter-spacing:.12em;font-size:15px}
.signbox.enroll{width:min(420px,100%)}
.signbox .steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:14px;line-height:1.45}
.qr{align-self:center;width:220px;height:220px;border-radius:12px;background:#fff;padding:6px;border:1px solid var(--line)}
.keyline{font-size:14px;letter-spacing:.06em;background:var(--sunken);border-radius:10px;padding:10px 12px;user-select:all;-webkit-user-select:all}
.rcgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rcgrid .rc{font-size:15px;letter-spacing:.06em;background:var(--sunken);border-radius:10px;padding:10px 12px;display:flex;gap:10px;align-items:center;justify-content:center}
.rcgrid .rc i{font-style:normal;color:var(--muted);font-size:11px}
.dot.sage{background:var(--accent)}
.devcard .wr.da{flex-wrap:nowrap;align-items:flex-start;gap:12px}
.devcard .wr.da>.dot{margin-top:6px}
@media (max-width:599px){.devcard .wr.da{flex-wrap:wrap}.devcard .wr.da>.row{width:100%;justify-content:flex-end}}

/* ---------- 1.3a · ERP POs, the Equipment budget ---------- */
.eprow{align-items:flex-start}
.eprow .r{display:flex;flex-direction:column;align-items:flex-end;text-align:right}
.epr{margin-top:6px;line-height:1.45;overflow-wrap:anywhere}
.epgrid{grid-template-columns:minmax(200px,2fr) repeat(4,minmax(70px,1fr))}
.eplink{border-color:color-mix(in srgb,var(--amber) 45%,var(--line))}
.eplink .b{color:var(--amber)}
.epx{border-color:color-mix(in srgb,var(--amber) 35%,var(--line));margin:16px 0 12px;scroll-margin-top:76px}   /* 1.5g r1 (GPT G2): the offset is on the element scrolled to — its title clears the sticky bar */
/* 1.5g: the card's title is its fold button (below Orders' own lists) */
.epx .exh{width:100%;border:0;background:transparent;color:var(--fg);font:inherit;text-align:left;cursor:pointer;justify-content:flex-start;flex-wrap:nowrap;align-items:flex-start;gap:10px}
.epx .exh[aria-expanded="false"]{border-bottom:0}
.epx .exh .lt-ar{margin-top:3px}
.epx .exh:hover{background:color-mix(in srgb,var(--fg) 3%,transparent)}
@media (min-width:600px){.epx .eprow,.epx .pager{padding-left:40px}}   /* the rows line up under the title, as a supplier's lines do */
textarea.in.ta{height:auto;min-height:76px;padding:10px 14px;line-height:1.45;resize:vertical;font-family:inherit}
select.in.whbud{width:200px;flex:none}
select.in.whbud.eqp{border-color:color-mix(in srgb,var(--sage, var(--blue)) 60%,var(--line-strong));font-weight:600}
@media (max-width: 600px){ .eprow{flex-wrap:wrap} .eprow .r{flex-direction:row;align-items:center;gap:10px;width:100%;justify-content:space-between;text-align:left} .eprow .r>div{margin-top:0!important} }
.nw{white-space:nowrap}
.btabs button:disabled{opacity:1;cursor:default}
@media (max-width: 600px){ .ph-hide{display:none} }
@media (max-width: 600px){ .eprow .r .ev{text-align:left} }
/* ---------- 1.5c (Fin, 19 Oct): lists that open in place — Requests per sent list, To check per supplier, checked orders ---------- */
.lt{margin-top:2px}
.lt-h,.lt-r{display:grid;align-items:center;gap:12px;padding:12px 16px}
.lt-h{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;border-bottom:1px solid var(--line);padding-top:10px;padding-bottom:10px}
.lt-r{width:100%;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--fg);font:inherit;font-size:14px;text-align:left;cursor:pointer;scroll-margin-top:76px}
.lt-r:hover{background:var(--sunken)}
.lt-r.open{background:var(--sunken)}
.lt-r:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.lt > .lt-r:last-child,.lt > .lt-fold:last-child{border-bottom:0}
.lt-ar{color:var(--muted);font-size:12px;width:14px;display:inline-block}
.lt-st{display:flex;flex-direction:column;gap:2px;min-width:0}
.lt-chips{gap:6px}
.lt-fold{padding:10px 16px 16px 42px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--sunken) 45%,transparent);display:flex;flex-direction:column;gap:12px}
.lt-rq{grid-template-columns:14px minmax(0,1.5fr) minmax(0,1.2fr) minmax(0,1.6fr) minmax(0,1fr)}
.lt-rq.brc{grid-template-columns:14px minmax(0,1.4fr) minmax(0,.7fr) minmax(0,1.2fr) minmax(0,1.6fr) minmax(0,1fr)}
.lt-sup{grid-template-columns:14px minmax(0,1.8fr) minmax(0,.8fr) minmax(0,.6fr) minmax(0,1.2fr) minmax(0,1.2fr)}
/* 1.5m.2: To check's Leader column — short: a check and a name, "Changed", or "Not confirmed" */
.tmk{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tmk.ok{color:var(--green)} .tmk.ch{color:var(--amber)} .tmk.muted{font-weight:500}
.lt-sup.bad b{color:var(--red)}
.lt-sup .span2{grid-column:span 2}
.rqf{gap:0}
.rqa{gap:8px 12px;padding:10px 0 2px;align-items:center}   /* 1.5f: archive / restore under an opened list */
.rqi{display:grid;grid-template-columns:96px minmax(0,2fr) minmax(0,1fr) 60px minmax(0,1.4fr);gap:12px;align-items:center;padding:9px 0;border-bottom:1px dashed var(--line);font-size:14px}
/* 1.5m r1: Team orders — each item line starts under a rule, so its "Asked" reads as the line's, not the card's */
.tml{margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.rqi:last-child{border-bottom:0}
.rqi-n{display:flex;flex-direction:column;gap:2px;min-width:0}
.rqi-q{font-size:16px;text-align:right}
.rqi-s{gap:6px}
.rqi-k{grid-column:2 / -1;font-size:13px}
/* 1.5a.2a: a removed item stays in its list, greyed; a corrected quantity shows what was sent, struck through */
.rqi.gone > *:not(.rqi-k){opacity:.55}
.rqi-was{font-weight:400;margin-right:2px}
.rqi-fx{padding:6px 10px}
.rqi.ph{grid-template-columns:minmax(0,1fr) auto;row-gap:4px;grid-template-areas:"id id" "n q" "s s" "k k"}
.rqi.ph > .mono{grid-area:id} .rqi.ph .rqi-n{grid-area:n} .rqi.ph .rqi-q{grid-area:q} .rqi.ph .rqi-s{grid-area:s} .rqi.ph .rqi-k{grid-area:k}
.rql{padding:0;gap:0;overflow:hidden;flex-shrink:0}
.rql-h{display:flex;flex-direction:column;gap:6px;width:100%;padding:12px 14px 12px 16px;border:0;background:transparent;color:var(--fg);font:inherit;text-align:left;cursor:pointer;scroll-margin-top:12px}
.rql.open .rql-h{background:var(--sunken)}
.rql .lt-fold{padding:6px 14px 12px 16px;border-bottom:0}
.gfold{padding:12px 16px 16px;background:var(--bg)}
.gfold .ghead{margin:0}
.cfold{margin-top:10px;padding:12px 0 0;background:transparent;border-bottom:0;border-top:1px solid var(--line)}
.cfold .foot{position:static;box-shadow:none}
.card.drow.open{border-bottom-left-radius:0;border-bottom-right-radius:0}
.card.dfold{margin-top:-16px;border-top:0;border-top-left-radius:0;border-top-right-radius:0;padding:4px 18px 16px}
.apc,.card.drow{scroll-margin-top:76px}
@media (max-width:760px){
  .lt-h{display:none}
  .lt-r,.lt-rq,.lt-rq.brc,.lt-sup{grid-template-columns:14px minmax(0,1fr);row-gap:6px}
  .lt-sup .tmk:empty{display:none}                                    /* 1.5m.2: no empty Leader line on the phone */
  .lt-r > :not(.lt-ar){grid-column:2}
  .lt-fold{padding-left:16px}
  .rqi{grid-template-columns:minmax(0,1fr) auto;row-gap:4px;grid-template-areas:"id id" "n q" "w q" "s s" "k k"}
  .rqi > .mono{grid-area:id} .rqi .rqi-n{grid-area:n} .rqi > span.muted.s13{grid-area:w} .rqi .rqi-q{grid-area:q;align-self:center} .rqi .rqi-s{grid-area:s} .rqi .rqi-k{grid-area:k}
}
/* 1.5h: supplier item groups — the group of a check / an order beside its supplier (a name, so never uppercased), a group's section
   inside a supplier on To check, and the rows of the item-groups editor */
.chip.grp{text-transform:none;letter-spacing:0;font-weight:600;background:transparent;border:1px solid var(--line-strong);color:var(--fg);max-width:240px;overflow:hidden;text-overflow:ellipsis;display:inline-block;line-height:20px}
.gsec-h{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:18px 2px 8px;padding-top:12px;border-top:1px solid var(--line)}
.gsec-h b{font-size:16px}
.sgrow .in.sm,.sgrow .btn,.sgbulk .in.sm,.sgbulk .btn{height:38px;min-height:38px}
.sgbulk{align-items:center}
.sgbulk .in.sm{width:auto;flex:0 1 260px;min-width:150px}
/* 1.5h (Fin: "a simple table"): the item-groups editor — item | group, the groups together with a quiet heading row */
.sgt .tr{grid-template-columns:minmax(0,1fr) minmax(150px,240px)}
.sgt .tr.sg-h{display:block;background:var(--sunken);padding-top:8px;padding-bottom:8px;font-size:13px}
.sgt select.chg{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
/* 1.5a.2b: History — time, then what happened */
.hxl .wr.hx{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;align-items:baseline;justify-content:initial}
@media (max-width:560px){.hxl .wr.hx{grid-template-columns:1fr;gap:2px}}

/* 1.5a.3: the cancel preview */
ul.cxl{margin:0;padding-left:18px}
ul.cxl li{margin:2px 0;font-size:14px;line-height:1.45}
/* 1.5j: Buy from our company */
.mvbar{justify-content:flex-end;gap:12px;align-items:center;margin:0 0 10px}
.mvck{display:flex;align-items:center;gap:10px;background:none;border:0;padding:0;color:inherit;font:inherit;cursor:pointer;text-align:left;min-width:0;flex:1 1 220px}
.mvck .box{flex:none;width:18px;height:18px;border:1.5px solid var(--muted);border-radius:5px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;line-height:1}
.mvck.on .box{background:var(--accent);border-color:var(--accent);color:var(--on-ink)}
.mvck:disabled{cursor:default;opacity:.6}
.mvr{padding:10px 16px;border-bottom:1px solid var(--line)}
.mvr:last-child{border-bottom:0}
.mvr .mvck{width:100%;align-items:flex-start}
.mvr .mvck .box{margin-top:2px}
.mvn{display:flex;flex-direction:column;gap:3px;min-width:0}
.mvs{color:var(--fg)}
.mvsum ul{margin:6px 0 8px;padding-left:18px}
.mvsum li{margin:2px 0}

/* 1.4c: My brands — the three trend periods side by side */
.tr3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
/* 1.6a Stock count: the phone bar with six tabs (Count shows while a count is open); the review's aligned columns on the desk */
.pnav button{position:relative}
.pnav button .cnt{position:absolute;top:5px;right:4px;margin:0;font-size:10.5px;line-height:15px;padding:0 5px;border-radius:8px}   /* 1.6a: the open-count number sits on the tab's corner, never taking the label's width */
.scg{display:grid;gap:10px;align-items:start;padding:10px 16px;border-bottom:1px solid var(--line)}
.scg:last-child{border-bottom:0}
.scg.h{font-size:12px;color:var(--muted);font-weight:600;padding:9px 16px;background:var(--surface-2,transparent)}
.scg .n{text-align:right;font-variant-numeric:tabular-nums}
.scg .acts{display:flex;gap:4px;justify-content:flex-end;flex-wrap:wrap}
/* 1.6a.1 (Fin, 12 Nov): the Staff phone's Account is a round button with the person's initial, beside Help — the bottom bar keeps five
   tabs with Opname always among them */
.pme{width:36px;height:36px;border-radius:50%;border:1px solid var(--line-strong);background:var(--surface);padding:0;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;cursor:pointer}
.pme .av{width:28px;height:28px}
.pme.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
