/* Theme: black / white / mustard — mustard is the only accent (2026-11-13). */
:root{
  --bg:#fafafa; --surface:#fff; --sunk:#f0f0f0; --ink:#111111; --muted:#5f6368; --line:#e0e0e0;
  --deep:#111111; --deep-2:#2b2b2b; --deep-ink:#ffffff; --accent:#e0a100; --accent-ink:#5a4100;
  --ok:#1f7a4d; --ok-bg:#e1f3e8; --warn:#9a6400; --warn-bg:#fcf0d4; --bad:#a1372c; --bad-bg:#fbe5e1;
  --r:14px; --side:252px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font:15px/1.5 var(--font);background:var(--bg);color:var(--ink)}
[hidden]{display:none!important}
button,input,select,textarea{font:inherit;color:inherit}
.muted{color:var(--muted)} .err{color:var(--bad);min-height:1.2em;margin:4px 0 0}
code{background:var(--sunk);padding:1px 6px;border-radius:6px}

/* buttons & inputs */
.btn{border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:9px 14px;cursor:pointer;font-weight:600}
.btn:hover{border-color:var(--deep)} .btn:focus-visible,.nav-item:focus-visible,.grp-btn:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 60%,transparent);outline-offset:1px}
.btn.primary{background:var(--deep);border-color:var(--deep);color:#fff} .btn.primary:hover{background:var(--deep-2)}
.btn.accent{background:var(--accent);border-color:var(--accent);color:#1c1500}
.btn.ghost{background:transparent} .btn.big{padding:13px 16px;width:100%;font-size:16px}
.btn.sm{padding:6px 10px;font-size:13px} .btn:disabled{opacity:.5;cursor:not-allowed}
/* v0.65.27.30 (team request #150): the order screen's action row — Send to kitchen / Kitchen ticket / Bill / Payment — is a grid of equal, wide-enough cells so no button's text is ever squeezed or clipped, on any screen width. Used by every order type (Dining/Tables, Cash & Carry, Pick up, Delivery) because they all share the one order panel. */
.ord-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(138px,1fr));gap:8px;margin-top:10px}
.ord-actions .btn{width:100%;white-space:normal;text-align:center;line-height:1.3;display:flex;align-items:center;justify-content:center}
.icon-btn{border:0;background:transparent;font-size:22px;cursor:pointer;padding:6px 10px;border-radius:10px}
/* v0.65.27.113 (port #5 of Boss's approved ports programme, from Kate's CellCity #205/#208): a .btn inside a table cell is a finger target, not a mouse target — the small table action buttons (Edit, Void, Adjust, Ledger…) rendered ~33px tall, fine with a mouse but unreliable to tap on a phone. Inside table cells only, every .btn now carries a 44px minimum touch target and touch-action:manipulation (no double-tap zoom delay); the label stays centred as the button grows. Buttons outside tables — dialogs, the POS, the big clock actions — are untouched. */
td .btn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;touch-action:manipulation}
input,select,textarea{width:100%;border:1.5px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--surface)}
label{font-size:13px;font-weight:600;color:var(--muted);display:block;margin:10px 0 4px}

/* login */
.login{min-height:100%;display:grid;place-items:center;padding:24px 16px;background:linear-gradient(160deg,var(--deep-2),#000000)}
.login-card{width:min(400px,100%);background:var(--surface);border-radius:20px;padding:26px 22px;box-shadow:0 20px 60px rgba(0,0,0,.25)}
.login-card h1{margin:10px 0 2px;font-size:24px}
.brand-mark{display:inline-flex;align-items:baseline;gap:1px;background:var(--deep);color:#fff;font-weight:900;border-radius:12px;padding:8px 12px;font-size:20px;letter-spacing:-.02em}
.brand-mark span{color:var(--accent);font-size:.8em} .brand-mark.sm{font-size:15px;padding:6px 9px;border-radius:10px}
.login-card .btn.big{margin-top:16px}
.demo-card{margin-top:14px;background:var(--warn-bg);border-radius:12px;padding:12px;display:grid;gap:4px;font-size:14px}
.demo-card .btn{margin-top:6px} .demo-card small{color:var(--muted)}

/* shell */
.shell{display:grid;grid-template-columns:var(--side) 1fr;min-height:100%}
.side{background:var(--deep);color:var(--deep-ink);padding:14px 10px;display:flex;flex-direction:column;gap:10px;position:sticky;top:0;height:100vh;overflow-y:auto}
.side-head{display:flex;align-items:center;gap:10px;padding:4px 6px 10px;border-bottom:1px solid rgba(255,255,255,.12)}
.side-brand{display:grid;line-height:1.2;min-width:0} .side-brand b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-brand small{color:var(--accent);font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.grp{border-radius:12px} .grp.open{background:rgba(255,255,255,.06)}
.grp-btn{width:100%;display:flex;align-items:center;gap:10px;background:transparent;border:0;color:inherit;padding:10px;border-radius:10px;cursor:pointer;font-weight:700;text-align:left}
.grp-btn:hover{background:rgba(255,255,255,.08)} .grp-btn .chev{margin-left:auto;transition:transform .15s;opacity:.7}
.grp.open .grp-btn .chev{transform:rotate(90deg)}
.grp-flat-head{cursor:default} .grp-flat-head:hover{background:transparent}
.grp-items{display:grid;gap:2px;padding:0 6px 8px 34px}
.subgrp{margin:4px 0 2px -16px}
.sub-btn{width:100%;display:flex;align-items:center;gap:8px;background:transparent;border:0;color:inherit;padding:5px 10px;border-radius:8px;cursor:pointer;font-weight:700;font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.85;text-align:left}
.sub-btn:hover{background:rgba(255,255,255,.08);opacity:1}
.sub-btn .chev{margin-left:auto;transition:transform .15s;opacity:.7}
.subgrp.open .sub-btn .chev{transform:rotate(90deg)}
/* Staff Access grant tree (v0.63.0): the picker mirrors the sidebar — section headings,
   folder rows with the item chip recipe, sub-folders indented by --d. */
.gtree{margin-top:4px;border:1px solid var(--line,#dbe3ea);border-radius:12px;padding:10px 12px;max-height:46vh;overflow:auto}
.gt-sec{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.6;margin:12px 0 3px}
.gt-sec:first-child{margin-top:0}
.gt-row{display:flex;gap:8px;align-items:center;font-weight:600;padding:3px 0;margin-left:calc(var(--d,0)*24px);cursor:pointer}
.gt-row input{width:17px;height:17px;flex:none;margin:0}
.gt-row .nav-ic.chip{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border-radius:9px;font-size:16px;line-height:1;background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 62%,var(--deep,#111111)),color-mix(in srgb,var(--ic,#2dd4bf) 38%,var(--deep,#111111)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 68%,transparent)}
.sub-items{display:grid;gap:2px;padding-left:8px}
.nav-item{display:block;text-decoration:none;color:rgba(233,242,238,.85);padding:7px 10px;border-radius:8px;font-size:14px;cursor:pointer;border:0;background:transparent;text-align:left;width:100%}
.nav-item:hover{background:rgba(255,255,255,.08);color:#fff}
.nav-item.active{background:var(--accent);color:#1c1500;font-weight:700}
.locked{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding-top:10px}
.locked h4{margin:0 8px 6px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:rgba(233,242,238,.6)}
.lock-item{display:flex;gap:8px;align-items:center;font-size:13px;color:rgba(233,242,238,.55);padding:5px 10px;border-radius:8px;cursor:pointer;border:0;background:transparent;width:100%;text-align:left}
.lock-item:hover{background:rgba(255,255,255,.06);color:rgba(233,242,238,.85)}
.side-foot{font-size:11px;color:rgba(233,242,238,.45);padding:6px 10px}
.main{min-width:0;display:flex;flex-direction:column}
.top{display:flex;align-items:center;gap:10px;padding:14px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));position:sticky;top:0;background:var(--bg);z-index:5;border-bottom:1px solid var(--line)}
.top h2{margin:0;font-size:20px} .top-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.who{font-size:13px;color:var(--muted)} .menu-btn{display:none}
.banner{margin:12px 16px 0;padding:10px 14px;border-radius:12px;background:var(--warn-bg);color:var(--warn);font-weight:600}
.view{padding:16px max(16px,env(safe-area-inset-right,0px)) 40px max(16px,env(safe-area-inset-left,0px));display:grid;gap:16px;align-content:start}
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:19}
@media (max-width:860px){
  .shell{grid-template-columns:1fr}
  .side{position:fixed;left:0;top:0;bottom:0;width:min(86vw,300px);z-index:20;transform:translateX(-102%);transition:transform .2s;height:100%}
  .side.open{transform:none}
  .menu-btn{display:inline-block} .who{display:none}
}

/* cards & tiles */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;min-width:0}
.card h3{margin:0 0 10px;font-size:16px} .card-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap} .card-head h3{margin:0}
.card-head .btn{margin-left:auto}
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:14px 16px;display:grid;gap:2px}
.tile small{color:var(--muted);font-weight:600;font-size:12.5px} .tile b{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.tile.hi{background:var(--deep);color:var(--deep-ink);border-color:var(--deep)} .tile.hi small{color:var(--accent)}
.tile.warn b{color:var(--warn)} .tile .sub{font-size:12px;color:var(--muted)}
/* KPI summary cards (v0.65.27.53, team request #170): the Purchasing pages (Purchase orders,
   Bills & Payments, Checks, and the bill dialog) build their summary boxes as .grid.kpis >
   .card.kpi, but those classes were never defined -- so each box stacked full-width and its
   label, amount and count ran together on one line with no spacing ("OverdueP0.00 bill(s)").
   They now lay out as a spaced grid of cards, label on top, big amount under it, count last,
   exactly like the .tile summaries used elsewhere. */
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.kpi{display:grid;gap:4px;align-content:start}
.kpi small{color:var(--muted);font-weight:600;font-size:12.5px}
.kpi b{font-size:22px;font-variant-numeric:tabular-nums;letter-spacing:-.01em;line-height:1.25}
.grid2{display:grid;grid-template-columns:1.3fr 1fr;gap:16px} @media(max-width:980px){.grid2{grid-template-columns:1fr}}
.bars{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;align-items:end;height:150px;padding-top:6px}
.bar{display:grid;gap:4px;justify-items:center;font-size:11px;color:var(--muted);height:100%;align-content:end}
.bar i{display:block;width:100%;max-width:36px;background:var(--deep);border-radius:6px 6px 2px 2px;min-height:3px}
.bar.today i{background:var(--accent)} .bar span{font-variant-numeric:tabular-nums}

/* lists & tables */
.tbl{overflow-x:auto} table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:9px 8px;border-bottom:1px solid var(--line);vertical-align:middle}
th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em} td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}
.pill{display:inline-block;font-size:11.5px;font-weight:700;border-radius:999px;padding:2px 8px;background:var(--sunk);color:var(--muted)}
.pill.ok{background:var(--ok-bg);color:var(--ok)} .pill.warn{background:var(--warn-bg);color:var(--warn)} .pill.bad{background:var(--bad-bg);color:var(--bad)}
.row{display:flex;align-items:center;gap:10px;min-width:0} .row > *{min-width:0}
.thumb{width:44px;height:44px;border-radius:10px;object-fit:cover;background:var(--sunk);flex:0 0 auto}
.empty{color:var(--muted);text-align:center;padding:22px}

/* product grid (POS / products) */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center} .toolbar input{flex:1;min-width:180px}
.pgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.catchips{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.catchips button{border:1.5px solid var(--c,var(--line));background:var(--surface);border-radius:999px;padding:6px 12px;cursor:pointer;font-weight:700;font-size:13px;color:var(--c,inherit)}
.catchips button.on{border-color:var(--c,var(--deep));background:var(--c,var(--deep));color:var(--ct,#fff)}
.pcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:grid;cursor:pointer;text-align:left;padding:0;position:relative}
.pcard:hover{border-color:var(--deep);box-shadow:0 6px 18px rgba(0,0,0,.10)}
.pcard img{width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--sunk);display:block}
.pcard .pbody{padding:8px 10px 10px;display:grid;gap:2px}
.pcard .pname{font-weight:700;font-size:14px;line-height:1.25} .pcard .pmeta{font-size:12px;color:var(--muted)}
.pcard .pprice{font-weight:800;font-size:15px} .pcard.out{opacity:.5}
.sample{position:absolute;top:6px;left:6px;font-size:10px;font-weight:800;background:rgba(255,255,255,.9);color:var(--muted);border-radius:6px;padding:1px 6px;letter-spacing:.04em}
.lowtag{position:absolute;top:6px;right:6px;font-size:10px;font-weight:800;background:var(--warn-bg);color:var(--warn);border-radius:6px;padding:1px 6px}
.pos{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start} @media(max-width:980px){.pos{grid-template-columns:1fr}}
.cart{position:sticky;top:76px;display:grid;gap:10px}
.cline{display:grid;grid-template-columns:40px 1fr auto;gap:8px;align-items:center;font-size:14px}
.cline img{width:40px;height:40px;border-radius:8px;object-fit:cover}
.qty{display:flex;align-items:center;gap:4px} .qty button{width:28px;height:28px;border-radius:8px;border:1px solid var(--line);background:var(--surface);cursor:pointer;font-weight:800}
.total{display:flex;justify-content:space-between;font-size:20px;font-weight:800;border-top:1px dashed var(--line);padding-top:10px}
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:6px} .seg button{border:1.5px solid var(--c,var(--line));background:var(--surface);border-radius:10px;padding:9px;cursor:pointer;font-weight:700;color:var(--c,inherit)}
.seg button.on{border-color:var(--c,var(--deep));background:var(--c,var(--deep));color:var(--ct,#fff)}
/* Toggle switch bar (v0.65.27.97, Boss's toggle ruling): the pages of a toggle group live behind this segmented switch at the TOP of the page — one pill per page, each bordered in its OWN colour with a matching dot; the current page's pill is filled with its colour (ink chosen per colour for contrast). A locked pill greys out like a locked sidebar row. */
.togbar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.tog-seg{border:1.5px solid var(--c,var(--line));background:var(--surface);border-radius:999px;padding:7px 13px;cursor:pointer;font-weight:700;color:inherit;display:inline-flex;align-items:center;gap:7px;font-size:14px}
.tog-seg .tog-dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}
.tog-seg.on{border-color:var(--c,var(--deep));background:var(--c,var(--deep));color:var(--ct,#fff)}
.tog-seg.locked{opacity:.45;cursor:not-allowed}
.grp-tog{padding:2px 0}
.form{display:grid;gap:4px} .form .two{display:grid;grid-template-columns:1fr 1fr;gap:10px} @media(max-width:520px){.form .two{grid-template-columns:1fr}}
.pre{white-space:pre-wrap;background:var(--sunk);border-radius:12px;padding:14px;font-family:ui-monospace,Menlo,monospace;font-size:13.5px}
.modlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.mod{border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;gap:6px;background:var(--surface)} .mod.off{background:var(--sunk)}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:#fff;padding:10px 16px;border-radius:12px;z-index:50;max-width:90vw;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.toast.bad{background:var(--bad)}
dialog{border:0;border-radius:16px;padding:0;width:min(520px,94vw);box-shadow:0 30px 80px rgba(0,0,0,.35)}
dialog::backdrop{background:rgba(0,0,0,.45)} .dlg{padding:18px} .dlg h3{margin:0 0 6px} .dlg-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}
@media (prefers-reduced-motion: reduce){*{transition:none!important}}

/* HR */
.avatar{display:inline-grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--deep) 14%,var(--surface));color:var(--deep);font-weight:800;flex:0 0 auto}
.kanban{display:grid;grid-template-columns:repeat(5,minmax(170px,1fr));gap:10px;overflow-x:auto;padding-bottom:4px}
.kcol{background:var(--sunk);border-radius:12px;padding:8px;display:grid;gap:6px;align-content:start;min-height:120px}
.khead{font-weight:800;font-size:13px;display:flex;justify-content:space-between;align-items:center;padding:2px 4px}
.kcard{display:flex;gap:8px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px;cursor:pointer;text-align:left;width:100%}
.kcard:hover{border-color:var(--deep)} .kcard span{display:grid;min-width:0} .kcard small{color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kempty{color:var(--muted);text-align:center;font-size:13px;padding:8px}
.alert-row{display:flex;gap:10px;align-items:center;width:100%;text-align:left;border:0;background:transparent;padding:6px 2px;cursor:pointer;border-bottom:1px solid var(--line)}
.alert-row:last-child{border-bottom:0} .alert-row:hover{background:var(--sunk)}
tr.click{cursor:pointer} tr.click:hover td{background:var(--sunk)}
dialog.wide{width:min(940px,96vw);max-height:92vh} dialog.wide .dlg{overflow:auto;max-height:90vh}
.stepper{display:flex;gap:4px;margin-top:14px;flex-wrap:wrap}
.stepper span{flex:1;min-width:84px;text-align:center;font-size:12px;font-weight:700;padding:6px 4px;border-radius:8px;background:var(--sunk);color:var(--muted)}
.stepper span.done{background:var(--ok-bg);color:var(--ok)} .stepper span.now{background:var(--deep);color:#fff}
.kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:14px} .kv span{color:var(--muted)}
.req{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:6px 0;border-bottom:1px solid var(--line)} .req:last-child{border-bottom:0}
.req > div{flex:1;min-width:0}
.timeline{display:grid;gap:10px} .tl{display:grid;grid-template-columns:14px 1fr;gap:8px}
.tl i{width:10px;height:10px;border-radius:50%;background:var(--accent);margin-top:6px}
@media (max-width:860px){.kanban{grid-template-columns:repeat(5,200px)}}

/* Manning */
.vgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.vcard{border:1px solid var(--line);border-radius:12px;padding:10px;display:grid;gap:4px;background:var(--surface)}
.vhead{display:grid;gap:2px;padding-bottom:6px;border-bottom:1px solid var(--line);margin-bottom:4px} .vhead .muted{font-size:12px}
.vrow{display:grid;grid-template-columns:110px 1fr auto;gap:8px;align-items:center;border:0;background:transparent;text-align:left;padding:5px 4px;border-radius:8px;cursor:pointer;font-size:13.5px}
.vrow:hover{background:var(--sunk)} .vrow span:first-child{color:var(--muted);font-size:12.5px}

/* v0.5 projects & marketing */
.pbar{height:8px;background:var(--sunk);border-radius:6px;overflow:hidden;margin:2px 0} .pbar i{display:block;height:100%;background:var(--ok)}
tr.click{cursor:pointer} tr.click:hover td{background:var(--sunk)} tr.click:focus-visible{outline:3px solid var(--accent)}
.tile.bad{background:var(--bad-bg)}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px} .cal .dh{font-size:11.5px;font-weight:700;color:var(--muted);text-align:center}
.cal .day{min-height:86px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:4px;font-size:12px;min-width:0}
.cal .day.off{opacity:.45} .cal .day.today{border-color:var(--deep);box-shadow:inset 0 0 0 1px var(--deep)} .cal .dn{font-weight:700;font-size:12px}
.chip{display:block;width:100%;text-align:left;border:0;border-radius:6px;padding:2px 5px;margin-top:3px;font-size:11px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:var(--sunk);color:var(--ink)}
.chip.for_review{background:var(--warn-bg);color:var(--warn)} .chip.approved,.chip.scheduled{background:var(--ok-bg);color:var(--ok)} .chip.posted{background:var(--deep);color:#fff} .chip.rejected{background:var(--bad-bg);color:var(--bad)}
.post{border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:10px} .post pre{white-space:pre-wrap;font:inherit;margin:6px 0 0;background:var(--sunk);padding:10px;border-radius:8px}
@media (max-width:700px){.cal{grid-template-columns:1fr}.cal .dh,.cal .day.off.empty{display:none}.cal .day{min-height:0}}

/* JakisAI logo (owner rule: every dashboard shows the JakisAI logo) */
.jai-login{display:flex;align-items:center;gap:10px}.jai-login img{width:64px;height:64px;display:block}
.jai-login span{font:700 26px/1 Arial,Helvetica,sans-serif;letter-spacing:-.6px;color:#111111}.jai-login span b{color:#f59e0b}
.jai-badge{flex:none;width:40px;height:40px;border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.jai-badge img{width:32px;height:32px;display:block}.jai-badge.sm{width:22px;height:22px}.jai-badge.sm img{width:18px;height:18px}
.jai-powered{display:flex;align-items:center;gap:7px;color:rgba(233,242,238,.75);text-decoration:none;font-size:12px;margin-bottom:6px}.jai-powered b{color:#f59e0b}

/* "View website" button on every dashboard (owner rule; first version by Muse in the ExporterOS demo) */
.site-pill{position:fixed;right:14px;bottom:14px;z-index:30;background:#f59e0b;color:#111;font:700 14px/1.2 system-ui,sans-serif;padding:11px 16px;border-radius:999px;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.site-pill:hover{background:#fbbf24}@media print{.site-pill{display:none}}

/* sidebar sections (operations / people / management / system) */
/* Section captions — ONE fleet standard (v0.65.27, owner verdict 2026-11-08 ~22:37:
   the three section texts — Operations / Administrative / Management — had "too
   much color, you can't even see the text"). Every install, profile or not, now
   renders the caption the same way: near-white bold text at full opacity on a
   faint light band over the deep sidebar, and the section's colour survives
   ONLY as the 4px bar at the left edge (--sec where a profile sets it, the
   fleet accent otherwise) — colour as a marker, never as the text itself.
   This rule replaces the base caption AND all four per-profile caption
   treatments (the pharmacy/restaurant coloured bands of v0.57.0 and the
   hardware/production light pills): readability first, one rule for everyone. */
.nav-sec{font-size:12px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:#fff;opacity:1;background:rgba(255,255,255,.08);border-left:4px solid var(--sec,var(--accent,#f59e0b));border-radius:0 9px 9px 0;padding:7px 10px 6px;margin:14px 0 5px;box-shadow:inset 0 1px rgba(255,255,255,.06)}
.nav-sec:first-child{margin-top:2px}

/* printing a report: only the report itself */
@media print{.side,.top,#siteBtn,.no-print,#accBar,.banner,#scrim{display:none!important}.shell{display:block}body{background:#fff}.card{box-shadow:none;border:0}.tbl{overflow:visible}}

/* ───────── Pharmacy profile presentation (v0.49.0, WS1) ─────────
   On a pharmacy-profile install the shell adds body.profile-pharmacy (static/app.js
   applyProfile). The operations screens — POS above all, then the primary controls of
   Cash shift and Time in / out — carry the OLD Theiven system's measured scale and style
   (POS measured live 2026-11-06 from /opt/theivenpharmacy/app: tiles min 250px wide with
   a 110px photo band, 16.5px names, an 18px price pill, a 400px cart, a filled 25px total
   block, a 58px pay button, 30px quantity steppers, 54px search). Same layout, old scale:
   nothing here moves a box, and NO other niche is touched — every rule is scoped under
   body.profile-pharmacy (or the page wrappers it gates). */
body.profile-pharmacy .pos{grid-template-columns:minmax(0,1fr) 400px}
@media (max-width:1100px) and (min-width:981px){body.profile-pharmacy .pos{grid-template-columns:minmax(0,1fr) 360px}}
@media (max-width:980px){body.profile-pharmacy .pos{grid-template-columns:1fr}}
body.profile-pharmacy #posq{font-size:17px;min-height:54px;padding:13px 16px;border-radius:11px}
body.profile-pharmacy #camBtn{min-height:54px;font-size:16px;padding:10px 18px}
body.profile-pharmacy .pos .pgrid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
body.profile-pharmacy .pos .pcard{border-radius:16px}
body.profile-pharmacy .pos .pcard img{aspect-ratio:auto;height:110px;object-fit:contain;background:#f7faf9}
body.profile-pharmacy .pos .pcard .pbody{padding:10px 12px 12px;gap:5px}
body.profile-pharmacy .pos .pname{font-size:16.5px}
body.profile-pharmacy .pos .pprice{font-size:18px;font-weight:750;background:color-mix(in srgb,var(--deep) 12%,transparent);color:var(--deep);padding:3px 10px;border-radius:20px;justify-self:start}
body.profile-pharmacy .pos .cline{font-size:15px}
body.profile-pharmacy .pos .cline img{width:48px;height:48px}
body.profile-pharmacy .pos .qty button{width:30px;height:30px;font-size:16px}
body.profile-pharmacy .pos .qty span{min-width:30px;text-align:center;font-weight:700}
body.profile-pharmacy .pos .total{background:var(--deep);color:#fff;border-top:0;border-radius:12px;padding:12px 14px;font-size:25px;margin-top:12px}
body.profile-pharmacy .pos .total #cartTotal{font-size:27px}
body.profile-pharmacy .pos .seg button{padding:12px 9px;font-size:16px}
body.profile-pharmacy .pos #payBtn{min-height:58px;font-size:18px}
/* Menu: item icons render at all only where a profile sets them; on the pharmacy profile the
   Operations till (always displayed, flat) and the Customers section carry BIG icons (owner:
   "big icon as agreed" — the old system's sidebar presence). */
.nav-ic{font-size:16px}
body.profile-pharmacy .grp-flat[data-g="Operations"] .nav-item{font-size:16px;font-weight:700;padding-top:10px;padding-bottom:10px}
body.profile-pharmacy .grp-flat[data-g="Operations"] .nav-ic,
body.profile-pharmacy .grp[data-g="Customers"] .nav-ic{font-size:21px}
/* Menu icon chips (v0.54.0), modelled on the old Theiven system's sidebar (v15 colour-coded
   sections + v17 individual item colours): every item icon sits on a coloured rounded chip —
   30x30, radius 9 — the item colour (--ic, set per item by the profile; the section colour is
   the fallback) mixed toward the sidebar's own deep base. The old system mixed toward its
   sidebar navy #102d3d; here the base is this sidebar's --deep (#111111) — same recipe, this
   sidebar's colour. Rows flex like the old .nav-a; the active row's chip goes full-bright. */
body.profile-pharmacy .nav-item{display:flex;align-items:center;gap:10px}
body.profile-pharmacy .nav-ic.chip{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border-radius:9px;font-size:16px;line-height:1;background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 62%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 38%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 68%,transparent);box-shadow:inset 0 1px rgba(255,255,255,.13),0 6px 16px color-mix(in srgb,var(--ic,#2dd4bf) 18%,transparent)}
body.profile-pharmacy .nav-item:hover{background:color-mix(in srgb,var(--ic,#2dd4bf) 13%,transparent)}
body.profile-pharmacy .nav-item.active .nav-ic.chip{background:linear-gradient(135deg,var(--ic,#2dd4bf),color-mix(in srgb,var(--ic,#2dd4bf) 70%,white))}
body.profile-pharmacy .grp-flat[data-g="Operations"] .nav-ic.chip,
body.profile-pharmacy .grp[data-g="Customers"] .nav-ic.chip{width:34px;height:34px;border-radius:10px;font-size:20px}
/* Section captions (v0.57.0, owner ruling 2026-11-06: Operations / Administrative /
   Management "are not readable — make it colorful"): the plain fleet caption (10.5px,
   amber, opacity .85, no band) disappears against the deep sidebar, so on this profile each
   caption sits on its own coloured band instead — the SAME recipe as the icon chips above:
   the section colour (--sec, set by the profile builder from PHARMACY_SECTION_HUES:
   ops green / people pink / mgmt amber) mixed toward --deep for the band, a full-strength
   accent bar at the left edge, and the caption text in the section colour lightened toward
   white so it stays readable on the tint (contrast ≥ 4.8 against the band, ≥ 6.4 against
   --deep, all three hues mutually distinct). Only captions carrying --sec are restyled,
   and --sec only ever arrives from the profile layer — every other install renders the
   plain caption exactly as before. */
/* Sub-folder header chips (v0.65.4, owner ruling 2026-11-07: the collapsible sub-folder
   headers — HR's Payroll / Staff Records — must read as CONTAINERS, not leaf pages):
   same icon, same hue family, but the chip's gradient mixes the hue far deeper toward
   --deep (24% / 10% instead of the leaf recipe's 62% / 38%), with a stronger inset
   shadow and no glow — a darker, muted chip. Leaf chips are untouched; the rule keys
   off .sub-btn only, so it covers exactly the sub-folder headers this profile renders
   (the HR sub-folders — this profile's only sub-folder users). */
body.profile-pharmacy .sub-btn .nav-ic.chip{background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 24%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 10%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 34%,transparent);box-shadow:inset 0 2px 6px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.05)}
/* Drug Research deep link (v0.61.0): the Operations entry lands on the Drug info page
   focused on its reference card — the card flashes once in the reference sky (#38bdf8,
   the Drug Research chip's own hue) so the eye lands where the tap aimed. */
body.profile-pharmacy .card.ref-flash{animation:refFlash 2.6s ease-out}
@keyframes refFlash{0%,55%{box-shadow:0 0 0 3px #38bdf8,0 10px 30px rgba(56,189,248,.35)}100%{box-shadow:0 0 0 0 transparent}}
/* Cash shift: the page's primary actions at the old system's large-button size (.btn.lg 48px) */
body.profile-pharmacy .phcash .btn{min-height:48px;padding:12px 18px;font-size:15.5px;border-radius:11px}
/* Time in / out: the clock action stays the biggest button on the page */
body.profile-pharmacy .tcpage .btn{min-height:48px}
body.profile-pharmacy .tcpage #go{font-size:24px;min-height:72px}

/* ───────── Restaurant profile presentation (v0.64.0) ─────────
   The pharmacy profile's presentation system (icon chips, coloured section
   captions, big floor icons), scoped to body.profile-restaurant — the flat
   Restaurant floor and the Customers group carry the BIG chips, every other
   rule mirrors the pharmacy block above with restaurant selectors. No other
   niche is touched. (The POS-scale rules above stay pharmacy-only: this
   profile's floor is the tables screen, not the retail till.) */
body.profile-restaurant .grp-flat[data-g="Restaurant"] .nav-item{font-size:16px;font-weight:700;padding-top:10px;padding-bottom:10px}
body.profile-restaurant .grp-flat[data-g="Restaurant"] .nav-ic,
body.profile-restaurant .grp[data-g="Customers"] .nav-ic{font-size:21px}
body.profile-restaurant .nav-item{display:flex;align-items:center;gap:10px}
body.profile-restaurant .nav-ic.chip{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border-radius:9px;font-size:16px;line-height:1;background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 62%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 38%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 68%,transparent);box-shadow:inset 0 1px rgba(255,255,255,.13),0 6px 16px color-mix(in srgb,var(--ic,#2dd4bf) 18%,transparent)}
body.profile-restaurant .nav-item:hover{background:color-mix(in srgb,var(--ic,#2dd4bf) 13%,transparent)}
body.profile-restaurant .nav-item.active .nav-ic.chip{background:linear-gradient(135deg,var(--ic,#2dd4bf),color-mix(in srgb,var(--ic,#2dd4bf) 70%,white))}
body.profile-restaurant .grp-flat[data-g="Restaurant"] .nav-ic.chip,
body.profile-restaurant .grp[data-g="Customers"] .nav-ic.chip{width:34px;height:34px;border-radius:10px;font-size:20px}
/* Sub-folder header chips (v0.65.4): same darker-container treatment as the pharmacy
   profile above — keys off .sub-btn only (this profile's sub-folder headers are the
   HR Payroll / Staff Records pair); leaf chips untouched. */
body.profile-restaurant .sub-btn .nav-ic.chip{background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 24%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 10%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 34%,transparent);box-shadow:inset 0 2px 6px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.05)}
/* Time in / out: the clock action stays the biggest button on the page (staff side) */
body.profile-restaurant .tcpage .btn{min-height:48px}
body.profile-restaurant .tcpage #go{font-size:24px;min-height:72px}
/* Readability pass (v0.65.5): dish + ingredient NAMES and PRICES read BIG on a phone —
   staff must not misread, older staff included (owner ruling 2026-11-07, team suggestion).
   Restaurant profile ONLY; tiles keep their photos + layout structure, type grows and the
   grid still fits with no horizontal scroll at phone width.
   (1) Order-dialog dish tiles (#mgrid .pcard): the name sits in .pname, the price inside
   .pmeta — the price span gets its own size + weight here, the name span stays one line size. */
dialog.rsto #mgrid .pcard .pname{font-size:17px;font-weight:700;line-height:1.25}
dialog.rsto #mgrid .pcard .pmeta{font-size:18px;font-weight:800;color:var(--ink,#1c2b26)}
/* (2) Menu & Recipes table (keyed by the view's page attribute, the app's own idiom):
   dish name bold, selling price bold, per-serving cost figure beside it. */
#view[data-p="rstmenu"] table{font-size:16px}
#view[data-p="rstmenu"] table td:first-child b{font-size:16px}
#view[data-p="rstmenu"] table td:nth-child(3),
#view[data-p="rstmenu"] table td:nth-child(4){font-size:16px}
#view[data-p="rstmenu"] table td:nth-child(3){font-weight:800;white-space:nowrap}
#view[data-p="rstmenu"] table td:nth-child(4){white-space:nowrap}
/* Food cost per dish rows (rstreport .req): dish name + price + cost figure. */
#view[data-p="rstreport"] .req{font-size:16px}
/* (3) Ingredients grid (Products page tiles): name + price big like the order tiles;
   .pmeta keeps the category · stock · unit line and grows with it. */
#view[data-p="products"] .pcard .pname{font-size:17px}
#view[data-p="products"] .pcard .pmeta{font-size:13.5px}
#view[data-p="products"] .pcard .pprice{font-size:18px}
/* Stock in / out rows: the moved item name reads at list size too. */
#view[data-p="stock"] table td b{font-size:16px}

/* ───────── Hardware profile presentation (v0.65.21) ─────────
   The retail-till presentation system (POS at the counter's working scale from the
   pharmacy block, coloured icon chips, coloured section captions from the
   restaurant block), scoped to body.profile-hardware — the flat Operations till
   and the Customers group carry the BIG chips. No other niche is touched. */
body.profile-hardware .pos{grid-template-columns:minmax(0,1fr) 400px}
@media (max-width:1100px) and (min-width:981px){body.profile-hardware .pos{grid-template-columns:minmax(0,1fr) 360px}}
@media (max-width:980px){body.profile-hardware .pos{grid-template-columns:1fr}}
body.profile-hardware #posq{font-size:17px;min-height:54px;padding:13px 16px;border-radius:11px}
body.profile-hardware #camBtn{min-height:54px;font-size:16px;padding:10px 18px}
body.profile-hardware .pos .pgrid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
body.profile-hardware .pos .pcard{border-radius:16px}
body.profile-hardware .pos .pcard .pbody{padding:10px 12px 12px;gap:5px}
body.profile-hardware .pos .pname{font-size:16.5px}
body.profile-hardware .pos .pprice{font-size:18px;font-weight:750;background:color-mix(in srgb,var(--deep) 12%,transparent);color:var(--deep);padding:3px 10px;border-radius:20px;justify-self:start}
body.profile-hardware .pos .cline{font-size:15px}
body.profile-hardware .pos .cline img{width:48px;height:48px}
body.profile-hardware .pos .qty button{width:30px;height:30px;font-size:16px}
body.profile-hardware .pos .qty span{min-width:30px;text-align:center;font-weight:700}
body.profile-hardware .pos .total{background:var(--deep);color:#fff;border-top:0;border-radius:12px;padding:12px 14px;font-size:25px;margin-top:12px}
body.profile-hardware .pos .total #cartTotal{font-size:27px}
body.profile-hardware .pos .seg button{padding:12px 9px;font-size:16px}
body.profile-hardware .pos #payBtn{min-height:58px;font-size:18px}
/* Product cards carry the Markup & Price Protection pill (hardware.js hwBadgePass) */
body.profile-hardware .hwtag{font-size:11px;font-weight:750;padding:1px 8px;border-radius:20px;align-self:flex-start}
body.profile-hardware .hwtag.bad{background:#fdecec;color:#b91c1c}
body.profile-hardware .hwtag.warn{background:#fff7e6;color:#b45309}
/* Sidebar: chip rows on the flat Operations till + Customers (BIG) and every other
   entry (restaurant block), scoped to this profile only */
body.profile-hardware .grp-flat[data-g="Operations"] .nav-item{font-size:16px;font-weight:700;padding-top:10px;padding-bottom:10px}
body.profile-hardware .grp-flat[data-g="Operations"] .nav-ic,
body.profile-hardware .grp[data-g="Customers"] .nav-ic{font-size:21px}
body.profile-hardware .nav-item{display:flex;align-items:center;gap:10px}
body.profile-hardware .nav-ic.chip{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:28px;height:28px;border-radius:8px;font-size:16px;line-height:1;background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 62%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 38%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 68%,transparent);box-shadow:inset 0 1px rgba(255,255,255,.13),0 6px 16px color-mix(in srgb,var(--ic,#2dd4bf) 18%,transparent)}
body.profile-hardware .nav-item:hover{background:color-mix(in srgb,var(--ic,#2dd4bf) 13%,transparent)}
body.profile-hardware .nav-item.active .nav-ic.chip{background:linear-gradient(135deg,var(--ic,#2dd4bf),color-mix(in srgb,var(--ic,#2dd4bf) 70%,white))}
body.profile-hardware .grp-flat[data-g="Operations"] .nav-ic.chip,
body.profile-hardware .grp[data-g="Customers"] .nav-ic.chip{width:34px;height:34px;border-radius:10px;font-size:20px}
body.profile-hardware .sub-btn .nav-ic.chip{width:24px;height:24px;border-radius:7px;font-size:14px;background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 24%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 10%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 34%,transparent);box-shadow:inset 0 2px 6px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.05)}
/* The time clock: staff-side, finger-sized (v0.51.2) — staff side only (owner law) */
body.profile-hardware .tcpage .btn{min-height:48px}
body.profile-hardware .tcpage #go{font-size:24px;min-height:72px}
/* ───────── Producer profile presentation (v0.65.23) ─────────
   The same presentation system as the hardware block (POS at the counter's working
   scale from the pharmacy block, coloured icon chips, coloured section captions
   from the restaurant block), scoped to body.profile-production — the flat
   Operations till and the Customers group carry the BIG chips. No other niche is
   touched. */
body.profile-production .pos{grid-template-columns:minmax(0,1fr) 400px}
@media (max-width:1100px) and (min-width:981px){body.profile-production .pos{grid-template-columns:minmax(0,1fr) 360px}}
@media (max-width:980px){body.profile-production .pos{grid-template-columns:1fr}}
body.profile-production #posq{font-size:17px;min-height:54px;padding:13px 16px;border-radius:11px}
body.profile-production #camBtn{min-height:54px;font-size:16px;padding:10px 18px}
body.profile-production .pos .pgrid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
body.profile-production .pos .pcard{border-radius:16px}
body.profile-production .pos .pcard .pbody{padding:10px 12px 12px;gap:5px}
body.profile-production .pos .pname{font-size:16.5px}
body.profile-production .pos .pprice{font-size:18px;font-weight:750;background:color-mix(in srgb,var(--deep) 12%,transparent);color:var(--deep);padding:3px 10px;border-radius:20px;justify-self:start}
body.profile-production .pos .cline{font-size:15px}
body.profile-production .pos .cline img{width:48px;height:48px}
body.profile-production .pos .qty button{width:30px;height:30px;font-size:16px}
body.profile-production .pos .qty span{min-width:30px;text-align:center;font-weight:700}
body.profile-production .pos .total{background:var(--deep);color:#fff;border-top:0;border-radius:12px;padding:12px 14px;font-size:25px;margin-top:12px}
body.profile-production .pos .total #cartTotal{font-size:27px}
body.profile-production .pos .seg button{padding:12px 9px;font-size:16px}
body.profile-production .pos #payBtn{min-height:58px;font-size:18px}
/* Sidebar: chip rows on the flat Operations till + Customers (BIG) and every other
   entry (restaurant block), scoped to this profile only */
body.profile-production .grp-flat[data-g="Operations"] .nav-item{font-size:16px;font-weight:700;padding-top:10px;padding-bottom:10px}
body.profile-production .grp-flat[data-g="Operations"] .nav-ic,
body.profile-production .grp[data-g="Customers"] .nav-ic{font-size:21px}
body.profile-production .nav-item{display:flex;align-items:center;gap:10px}
body.profile-production .nav-ic.chip{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:28px;height:28px;border-radius:8px;font-size:16px;line-height:1;background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 62%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 38%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 68%,transparent);box-shadow:inset 0 1px rgba(255,255,255,.13),0 6px 16px color-mix(in srgb,var(--ic,#2dd4bf) 18%,transparent)}
body.profile-production .nav-item:hover{background:color-mix(in srgb,var(--ic,#2dd4bf) 13%,transparent)}
body.profile-production .nav-item.active .nav-ic.chip{background:linear-gradient(135deg,var(--ic,#2dd4bf),color-mix(in srgb,var(--ic,#2dd4bf) 70%,white))}
body.profile-production .grp-flat[data-g="Operations"] .nav-ic.chip,
body.profile-production .grp[data-g="Customers"] .nav-ic.chip{width:34px;height:34px;border-radius:10px;font-size:20px}
body.profile-production .sub-btn .nav-ic.chip{width:24px;height:24px;border-radius:7px;font-size:14px;background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 24%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 10%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 34%,transparent);box-shadow:inset 0 2px 6px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.05)}
/* The time clock: staff-side, finger-sized (v0.51.2) — staff side only (owner law) */
body.profile-production .tcpage .btn{min-height:48px}
body.profile-production .tcpage #go{font-size:24px;min-height:72px}

/* ───────── Fleet profiles presentation (v0.65.27) ─────────
   The six fleet profiles (export, shop, gas, manning, projects, realestate)
   carry the SAME sidebar presentation as the pharmacy / restaurant / hardware
   blocks above — coloured icon chips (30px), the bright active chip, the
   darker sub-folder chip, and BIG chips + rows on the flat daily-operations
   group (and on Customers where the profile has one). Written ONCE here for
   all six body classes: one rule for everyone (owner verdict 2026-11-08). */
body.profile-export .nav-item, body.profile-shop .nav-item, body.profile-gas .nav-item, body.profile-manning .nav-item, body.profile-projects .nav-item, body.profile-realestate .nav-item{display:flex;align-items:center;gap:10px}
body.profile-export .nav-ic.chip, body.profile-shop .nav-ic.chip, body.profile-gas .nav-ic.chip, body.profile-manning .nav-ic.chip, body.profile-projects .nav-ic.chip, body.profile-realestate .nav-ic.chip{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border-radius:9px;font-size:16px;line-height:1;background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 62%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 38%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 68%,transparent);box-shadow:inset 0 1px rgba(255,255,255,.13),0 6px 16px color-mix(in srgb,var(--ic,#2dd4bf) 18%,transparent)}
body.profile-export .nav-item:hover, body.profile-shop .nav-item:hover, body.profile-gas .nav-item:hover, body.profile-manning .nav-item:hover, body.profile-projects .nav-item:hover, body.profile-realestate .nav-item:hover{background:color-mix(in srgb,var(--ic,#2dd4bf) 13%,transparent)}
/* Theme fix (v0.65.27.4): the active nav item keeps its mustard background
   while hovered — the per-profile :hover rules above outrank the base .active
   rule, which left black text on dark brown whenever the mouse rested on it. */
body .side .nav-item.active:hover{background:var(--accent);color:#1c1500}
body.profile-export .nav-item.active .nav-ic.chip, body.profile-shop .nav-item.active .nav-ic.chip, body.profile-gas .nav-item.active .nav-ic.chip, body.profile-manning .nav-item.active .nav-ic.chip, body.profile-projects .nav-item.active .nav-ic.chip, body.profile-realestate .nav-item.active .nav-ic.chip{background:linear-gradient(135deg,var(--ic,#2dd4bf),color-mix(in srgb,var(--ic,#2dd4bf) 70%,white))}
body.profile-export .sub-btn .nav-ic.chip, body.profile-shop .sub-btn .nav-ic.chip, body.profile-gas .sub-btn .nav-ic.chip, body.profile-manning .sub-btn .nav-ic.chip, body.profile-projects .sub-btn .nav-ic.chip, body.profile-realestate .sub-btn .nav-ic.chip{background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 24%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 10%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 34%,transparent);box-shadow:inset 0 2px 6px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.05)}
body.profile-export .grp-flat[data-g="Operations"] .nav-item, body.profile-shop .grp-flat[data-g="Operations"] .nav-item, body.profile-gas .grp-flat[data-g="Gas Station"] .nav-item, body.profile-manning .grp-flat[data-g="Manning"] .nav-item, body.profile-projects .grp-flat[data-g="Projects"] .nav-item, body.profile-realestate .grp-flat[data-g="Real Estate"] .nav-item{font-size:16px;font-weight:700;padding-top:10px;padding-bottom:10px}
body.profile-export .grp-flat[data-g="Operations"] .nav-ic, body.profile-shop .grp-flat[data-g="Operations"] .nav-ic, body.profile-gas .grp-flat[data-g="Gas Station"] .nav-ic, body.profile-manning .grp-flat[data-g="Manning"] .nav-ic, body.profile-projects .grp-flat[data-g="Projects"] .nav-ic, body.profile-realestate .grp-flat[data-g="Real Estate"] .nav-ic, body.profile-export .grp[data-g="Customers"] .nav-ic, body.profile-shop .grp[data-g="Customers"] .nav-ic{font-size:21px}
body.profile-export .grp-flat[data-g="Operations"] .nav-ic.chip, body.profile-shop .grp-flat[data-g="Operations"] .nav-ic.chip, body.profile-gas .grp-flat[data-g="Gas Station"] .nav-ic.chip, body.profile-manning .grp-flat[data-g="Manning"] .nav-ic.chip, body.profile-projects .grp-flat[data-g="Projects"] .nav-ic.chip, body.profile-realestate .grp-flat[data-g="Real Estate"] .nav-ic.chip, body.profile-export .grp[data-g="Customers"] .nav-ic.chip, body.profile-shop .grp[data-g="Customers"] .nav-ic.chip{width:34px;height:34px;border-radius:10px;font-size:20px}
/* The selling fleet profiles (export, shop) work the same till as the pharmacy
   / hardware blocks: the POS at the counter's working scale. */
body.profile-export .pos, body.profile-shop .pos{grid-template-columns:minmax(0,1fr) 400px}
@media (max-width:1100px) and (min-width:981px){body.profile-export .pos, body.profile-shop .pos{grid-template-columns:minmax(0,1fr) 360px}}
@media (max-width:980px){body.profile-export .pos, body.profile-shop .pos{grid-template-columns:1fr}}
body.profile-export #posq, body.profile-shop #posq{font-size:17px;min-height:54px;padding:13px 16px;border-radius:11px}
body.profile-export #camBtn, body.profile-shop #camBtn{min-height:54px;font-size:16px;padding:10px 18px}
body.profile-export .pos .pgrid, body.profile-shop .pos .pgrid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
body.profile-export .pos .pcard, body.profile-shop .pos .pcard{border-radius:16px}
body.profile-export .pos .pcard .pbody, body.profile-shop .pos .pcard .pbody{padding:10px 12px 12px;gap:5px}
body.profile-export .pos .pname, body.profile-shop .pos .pname{font-size:16.5px}
body.profile-export .pos .pprice, body.profile-shop .pos .pprice{font-size:18px;font-weight:750;background:color-mix(in srgb,var(--deep) 12%,transparent);color:var(--deep);padding:3px 10px;border-radius:20px;justify-self:start}
body.profile-export .pos .cline, body.profile-shop .pos .cline{font-size:15px}
body.profile-export .pos .cline img, body.profile-shop .pos .cline img{width:48px;height:48px}
body.profile-export .pos .qty button, body.profile-shop .pos .qty button{width:30px;height:30px;font-size:16px}
body.profile-export .pos .qty span, body.profile-shop .pos .qty span{min-width:30px;text-align:center;font-weight:700}
body.profile-export .pos .total, body.profile-shop .pos .total{background:var(--deep);color:#fff;border-top:0;border-radius:12px;padding:12px 14px;font-size:25px;margin-top:12px}
body.profile-export .pos .total #cartTotal, body.profile-shop .pos .total #cartTotal{font-size:27px}
body.profile-export .pos .seg button, body.profile-shop .pos .seg button{padding:12px 9px;font-size:16px}
body.profile-export .pos #payBtn, body.profile-shop .pos #payBtn{min-height:58px;font-size:18px}
/* The time clock: staff-side, finger-sized (family pattern) */
body.profile-export .tcpage .btn, body.profile-shop .tcpage .btn, body.profile-gas .tcpage .btn, body.profile-manning .tcpage .btn, body.profile-projects .tcpage .btn, body.profile-realestate .tcpage .btn{min-height:48px}
body.profile-export .tcpage #go, body.profile-shop .tcpage #go, body.profile-gas .tcpage #go, body.profile-manning .tcpage #go, body.profile-projects .tcpage #go, body.profile-realestate .tcpage #go{font-size:24px;min-height:72px}

/* ── Laundry Pack (Boss proof 2026-11-12) — machine floor visuals adapted
   from the laundryflowos concept demo (washer cards, progress, view switch). ── */
/* Laundry nav — this install sets no body.profile-* class (the laundry
   profile is not in the app.js toggle list), so the fleet chip recipe is
   written unscoped here: 30px gradient tile icon + flex row. Without it the
   generic .chip rule turns every nav icon into a full-width near-white bar
   (white-on-white sidebar, Boss report 2026-11-12). */
.nav-item{display:flex;align-items:center;gap:10px}
.nav-ic.chip{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:none;border-radius:9px;font-size:16px;line-height:1;color:#fff;background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 62%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 38%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 68%,transparent);box-shadow:inset 0 1px rgba(255,255,255,.13),0 6px 16px color-mix(in srgb,var(--ic,#2dd4bf) 18%,transparent)}
.nav-item:hover{background:color-mix(in srgb,var(--ic,#2dd4bf) 13%,transparent)}
.nav-item.active .nav-ic.chip{background:linear-gradient(135deg,var(--ic,#2dd4bf),color-mix(in srgb,var(--ic,#2dd4bf) 70%,white))}
.grp-flat[data-g="Operations"] .nav-ic.chip{width:34px;height:34px;border-radius:10px;font-size:20px}
.sub-btn .nav-ic.chip{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:none;border-radius:7px;font-size:13px;line-height:1;color:#fff;background:linear-gradient(145deg,color-mix(in srgb,var(--ic,#2dd4bf) 24%,var(--deep)),color-mix(in srgb,var(--ic,#2dd4bf) 10%,var(--deep)));border:1px solid color-mix(in srgb,var(--ic,#2dd4bf) 34%,transparent);box-shadow:inset 0 2px 6px rgba(0,0,0,.38),inset 0 1px rgba(255,255,255,.05)}
.lf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.lf-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
/* Dark realistic machine cards (reference: /var/www/laundryflowos/demo-dashboard/styles.css) */
.lf-machine{text-align:center;background:linear-gradient(160deg,rgba(20,39,60,.96),rgba(10,24,39,.94));border:1px solid #1e3a52;border-radius:20px;padding:16px;color:#e8f1f8;transition:transform .15s,border-color .15s}
.lf-machine:hover{border-color:#22d3ee;transform:translateY(-2px)}
.lf-machine h3{color:#f2f7fb}
.lf-machine .muted{color:#9db1c2}
.lf-machine .btn:not(.primary){color:var(--ink)}
.lf-machine.avail{border-color:#1e7a6e}
.lf-machine.washing,.lf-machine.drying{border-color:#155e75}
.lf-machine.ready{border-color:var(--ok)}
.lf-washer{width:96px;height:104px;margin:10px auto;padding:10px;border-radius:24px 24px 18px 18px;background:linear-gradient(145deg,#263d50,#112437);box-shadow:inset 2px 2px 0 rgba(255,255,255,.12),inset -2px -2px 0 rgba(0,0,0,.35),0 8px 18px rgba(0,0,0,.35)}
.lf-washer::before{content:"•  ·  –";display:block;height:15px;padding-right:4px;color:#8fa8b8;font-size:.7rem;text-align:right;letter-spacing:2px}
.lf-glass{width:64px;height:64px;margin:3px auto;border-radius:50%;background:radial-gradient(circle at 35% 32%,#577187,#172d43 52%,#07111e 54%);box-shadow:inset 0 0 0 2px #31495d,inset 0 0 12px rgba(0,0,0,.6);position:relative;overflow:hidden}
.lf-washer.spin .lf-glass{animation:lfspin 4s linear infinite}
.lf-washer.spin .lf-glass::after{content:"";position:absolute;left:12px;top:20px;width:38px;height:14px;border-radius:50%;background:rgba(255,255,255,.35);transform:rotate(30deg)}
.lf-glass::before{content:"";position:absolute;left:14px;top:38px;width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.28);box-shadow:18px -8px 0 rgba(255,255,255,.18),26px 10px 0 rgba(255,255,255,.12)}
@keyframes lfspin{to{transform:rotate(360deg)}}
.lf-prog{height:8px;border-radius:99px;background:rgba(255,255,255,.14);overflow:hidden;margin:8px 0 4px}
.lf-prog i{display:block;height:100%;background:linear-gradient(90deg,#2dd4bf,#22d3ee);border-radius:99px}
.lf-switch{display:flex;gap:6px;margin-bottom:12px}
.lf-sw{border:1.5px solid var(--line);border-radius:999px;padding:6px 14px;background:var(--surface);cursor:pointer;font:inherit}
.lf-sw.on{background:var(--deep);border-color:var(--deep);color:#fff}
.lf-owner{display:flex;flex-wrap:wrap;gap:16px;padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:var(--sunk);margin:10px 0}
.lf-timeline{margin:12px 0}
.lf-step{display:flex;gap:8px;align-items:center;padding:6px 0;color:var(--muted)}
.lf-step.done{color:inherit;font-weight:700}
.lf-dot{width:12px;height:12px;border-radius:50%;background:var(--line);flex:none}
.lf-step.done .lf-dot{background:var(--ok)}
/* Visual stepper — Boss 2026-11-13: the tracking progress must read in one
   glance (icons + progress bar; done checked, current pulsing, upcoming
   dimmed). Used by the in-app track result; the public /track page carries
   its own copy inline because it is a standalone page. */
.lf-steps{display:flex;position:relative;margin:10px 0 4px}
.lf-steps .lf-track{position:absolute;left:7%;right:7%;top:21px;height:6px;border-radius:3px;background:var(--line)}
.lf-steps .lf-fill{height:100%;border-radius:3px;background:var(--ok);transition:width .6s ease}
.lf-stp{flex:1;text-align:center;position:relative;z-index:1;min-width:0}
.lf-stp .lf-ic{width:42px;height:42px;margin:0 auto;border-radius:50%;background:var(--sunk);color:var(--muted);display:flex;align-items:center;justify-content:center;font-size:21px;border:3px solid var(--line);box-sizing:border-box}
.lf-stp .lf-lb{font-size:10px;line-height:1.25;color:var(--muted);margin-top:4px;display:block}
.lf-stp.done .lf-ic{background:var(--ok);border-color:var(--ok);color:#fff}
.lf-stp.done .lf-lb{color:var(--ok);font-weight:700}
.lf-stp .lf-ck{position:absolute;top:-3px;left:calc(50% + 8px);background:var(--ok);color:#fff;border:2px solid var(--surface);border-radius:50%;width:16px;height:16px;font-size:11px;line-height:13px;font-weight:800}
.lf-stp.cur .lf-ic{background:var(--ok);border-color:var(--accent);color:#fff;animation:lfpulse 1.6s ease-in-out infinite}
.lf-stp.cur .lf-lb{color:var(--ink);font-weight:800}
.lf-stp.todo .lf-ic{opacity:.5}.lf-stp.todo .lf-lb{color:var(--muted)}
@keyframes lfpulse{0%,100%{box-shadow:0 0 0 3px rgba(31,122,77,.18)}50%{box-shadow:0 0 0 9px rgba(31,122,77,.07)}}
.lf-hero{display:flex;gap:10px;align-items:center;margin-top:14px}
.lf-hero-m{flex:0 0 128px;min-width:0}.lf-hero-r{flex:1;text-align:center;min-width:0}
.lf-ready .lf-rl{font-size:11px;letter-spacing:.12em;color:var(--muted);text-transform:uppercase}
.lf-ready .lf-rt{font-size:26px;font-weight:800;color:var(--ink);line-height:1.15}
@media (prefers-reduced-motion: reduce){.lf-washer.spin .lf-glass{animation:none}.lf-stp.cur .lf-ic{animation:none}}

.pcard .pdeal{display:block;color:var(--accent-ink);font-weight:800;font-size:12px;margin-top:2px}

/* v0.65.27.83: a LOCKED sidebar entry — a page outside this staff member's grant. Shown so
   the menu reads complete; greyed at half strength and inert (no data-page, never active). */
.nav-item.locked { opacity: .5; cursor: not-allowed; filter: grayscale(.35); }
.nav-item.locked .nav-lock { float: right; font-size: 11px; }

/* ── Gas: the shift screen IS the pump (v0.65.27.120) ── */
.pumpgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.pumpcard{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.pumpwrap{position:relative;line-height:0}
.pumpwrap img{width:100%;display:block}
.pumpwrap .lcd{position:absolute;background:rgba(6,14,10,.93);color:#7dff9a;border:2px solid rgba(125,255,154,.4);border-radius:6px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:700;text-align:right;padding:0 8px;outline:none;width:auto}
.pumpwrap.diesel .lcd{left:29.5%;width:35.5%;top:35.8%;height:23.5%;font-size:clamp(15px,1.7vw,23px)}
.pumpwrap.gasoline .lcd{left:29.7%;width:38.8%;top:38%;height:28%;font-size:clamp(15px,1.7vw,23px)}
.pumpwrap .lcd:focus{border-color:#7dff9a;box-shadow:0 0 0 3px rgba(125,255,154,.25)}
.pumpmeta{padding:10px 12px 12px}
.pumpname{font-weight:800;font-size:16px}
.diff{min-height:1.3em;font-size:13.5px;margin-top:2px}
.diff.ok{color:var(--ok);font-weight:700}
.diff.bad{color:var(--bad);font-weight:800}
.ailine{color:#2563eb;font-weight:600;font-size:13.5px;min-height:1.3em}
.btn.cam{width:100%;margin-top:8px;padding:12px;font-size:15px}
.photogrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.photocard{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.photocard img{width:100%;height:180px;object-fit:cover;display:block}
.seg{display:flex;gap:6px;flex-wrap:wrap;margin:4px 0 6px}
.seg .btn.on{background:var(--deep);color:var(--deep-ink);border-color:var(--deep)}
.camovl{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:200;display:flex;align-items:center;justify-content:center;padding:14px}
.cambox{background:var(--surface);color:var(--ink);border-radius:16px;max-width:520px;width:100%;padding:14px;max-height:92vh;overflow:auto}
.cambox video{width:100%;border-radius:10px;background:#000;aspect-ratio:4/3;object-fit:cover}
.camhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.camtip{font-size:12.5px}
.savebar{position:sticky;bottom:10px;display:flex;gap:8px;margin-top:14px;z-index:4}
.savebar .btn{flex:1;padding:16px;font-size:17px}
