/* ============================================================
   Project Hub — operations UI
   Cool neutrals, one restrained blue, hairline borders,
   mono ID chips, no decoration that doesn't inform.
   ============================================================ */
:root{
  --bg:#DFE3E9; --surface:#FFFFFF; --headbg:#161C26; --headink:#B9C2CE;
  --line:#E5E8EC; --line2:#CBD2DA;
  --ink:#14181F; --ink2:#414A56; --muted:#68727F; --faint:#98A2B3;
  --accent:#2F54D6; --accent-d:#2140AC; --accent-bg:#EEF2FD;
  --danger:#C22A20; --danger-bg:#FCEEEC;
  --green:#0B7A46; --green-bg:#EAF6EF;
  --amber:#B54708; --amber-bg:#FDF3E7;
  --r:8px; --rs:6px;
  --sh:0 1px 3px rgba(16,24,40,.10),0 1px 2px rgba(16,24,40,.06);
  --mono:ui-monospace,"SF Mono","Cascadia Mono","Segoe UI Mono",Consolas,monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
/* the light page bg fills the whole viewport (short pages included). The dark
   header itself covers the phone status-bar safe area — root stays light so a
   short desktop page never shows a black void below its content. */
body{min-height:100vh}
/* the page itself never scrolls sideways — wide tables scroll inside their own box */
html,body{overflow-x:clip}
#directoryBody .panel,#adminBody{overflow-x:auto}
body{background-image:linear-gradient(180deg,#D8DDE5 0%,#E2E6EC 320px,#E4E8ED 100%);background-attachment:fixed;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  font-size:13.5px;line-height:1.5;color:var(--ink);background:var(--bg)}
button{font:inherit;color:inherit;background:none;border:none;cursor:pointer}
input,select,textarea{font:inherit;color:var(--ink)}
h1,h2,h3{font-weight:600;letter-spacing:-.01em}
h2{font-size:17px}
h3{font-size:14.5px}
a{color:var(--accent);text-decoration:none}
.hidden{display:none!important}
svg{flex:none;vertical-align:-2px}

#app{max-width:min(1760px,95vw);margin:0 auto;padding:0 28px 60px}

/* ---------- top bar ---------- */
.top{display:flex;align-items:center;justify-content:space-between;
  background:var(--headbg);margin:0 calc(50% - 50vw) 24px;
  padding:calc(13px + env(safe-area-inset-top)) 22px 13px;   /* fill the status-bar area on an installed phone app */
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset,0 2px 10px rgba(10,14,20,.25)}
.topleft{display:flex;align-items:center;gap:14px}
/* a clear, always-there Back button on every page (dark header, so light chip) */
.topback{display:inline-flex;align-items:center;gap:6px;padding:8px 15px 8px 12px;border-radius:10px;
  border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff;
  font-weight:650;font-size:13px;line-height:1;cursor:pointer;transition:background .12s,border-color .12s}
.topback:hover{background:rgba(255,255,255,.22);border-color:rgba(255,255,255,.45)}
.topback:active{transform:translateY(1px)}
.topback.hidden{display:none}
@media (max-width:760px){ .topback span{display:none} .topback{padding:8px 11px} .topleft{gap:8px} }
.brand{display:flex;align-items:center;gap:9px}
.mark{width:34px;height:34px;color:#fff;
  display:flex;align-items:center;justify-content:center}
.mark svg{width:32px;height:32px}
.bt h1{font-size:15px;font-weight:650;line-height:1.15;color:#fff}
.bv{font-size:11px;color:#5B6674;font-family:var(--mono)}
.topright{display:flex;gap:2px}
.btn.nav{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:none;
  background:transparent;color:var(--headink);font-weight:500;font-size:13px;border-radius:var(--rs)}
.btn.nav:hover{background:rgba(255,255,255,.09);color:#fff}
.btn.nav svg{color:#7E8896}
.btn.nav:hover svg{color:#fff}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:var(--rs);
  border:1px solid var(--line2);background:var(--surface);color:var(--ink2);
  font-size:13px;font-weight:500;transition:background .1s,border-color .1s}
.btn:hover{background:#F2F4F7;border-color:var(--faint)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;box-shadow:0 1px 2px rgba(47,84,214,.35)}
.btn.primary:hover{background:var(--accent-d);border-color:var(--accent-d)}
.btn.danger{background:var(--surface);border-color:#EBC8C4;color:var(--danger)}
.btn.danger:hover{background:var(--danger-bg)}
.btn.tiny{padding:4px 9px;font-size:12px}
.btn.tiny.iemoji{padding:3px 6px;font-size:13px;line-height:1}
.asub-sel{font-size:11.5px;padding:3px 6px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);max-width:130px}
.ntshare.on{background:var(--amber-bg);border-radius:6px}
.recwrap{display:flex;flex-direction:column;gap:2px;margin-top:6px}
.recrow{display:flex;align-items:baseline;gap:10px;padding:7px 8px;border-radius:var(--rs);font-size:13px}
.recrow:nth-child(odd){background:var(--bg)}
.rec-ic{flex:none;font-size:13px}
.rec-at{flex:none;width:150px;color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}
.rec-tx{color:var(--ink2);min-width:0}
.rec-who{color:var(--muted)}
.rec-links{display:inline-flex;flex-wrap:wrap;gap:2px 10px;margin-left:8px}
.rec-links a{font-size:12px;color:var(--accent);text-decoration:none;white-space:nowrap}
.rec-links a:hover{text-decoration:underline}
.insprow{display:flex;align-items:center;gap:10px;padding:8px 6px;border-bottom:1px solid var(--line);font-size:13px}
.insprow:last-child{border-bottom:none}
.insp-at{flex:none;width:84px;color:var(--muted);font-family:var(--mono);font-size:12px}
.insp-open{text-align:left;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.insp-by{flex:none;color:var(--faint);font-size:12px}
.aghist{display:flex;align-items:center;gap:10px;padding:8px 6px;border-bottom:1px solid var(--line);font-size:13px}
.aghist:last-child{border-bottom:none}
.ag-when{flex:none;width:84px;color:var(--muted);font-family:var(--mono);font-size:12px}
.ag-tx{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.orline{display:flex;align-items:center;gap:12px;color:var(--faint);font-size:11.5px;font-weight:650;
  text-transform:uppercase;letter-spacing:.05em;margin:14px 0}
.orline::before,.orline::after{content:"";flex:1;border-top:1px solid var(--line)}
.rec-dispute .rec-tx{color:var(--danger);font-weight:600}
.ghost{background:none;border:none;color:var(--accent);font-weight:500;padding:0}
.ghost:hover{text-decoration:underline}
.ghost.tiny{font-size:12.5px}
.iconb{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;
  border-radius:var(--rs);color:var(--muted);transition:background .1s,color .1s}
.iconb:hover{background:#EDEFF3;color:var(--ink)}
/* text-labeled variant of the square iconb (e.g. Subs / Export in a job pane header) — auto width */
.iconb-txt{width:auto;padding:0 10px;font-size:12px;font-weight:600;border:1px solid var(--line2);border-radius:var(--rs)}
.alert-date-txt{font-family:inherit;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
/* v9.96: a solid button, not grey text — owner: "make this button a solid button please" */
.back{display:inline-flex;align-items:center;gap:4px;color:#fff;font-size:12.5px;
  font-weight:600;margin-bottom:14px;padding:6px 12px;border-radius:var(--rs);
  background:var(--accent);border:1px solid var(--accent);box-shadow:0 1px 2px rgba(47,84,214,.35)}
.back:hover{background:var(--accent-d);border-color:var(--accent-d);color:#fff}
.back[hidden]{display:none!important}        /* v9.42: a page-level back gives way to the screen's own one */

/* ---------- alerts ---------- */
.alertbox{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--amber);
  border-radius:var(--r);box-shadow:var(--sh);margin-bottom:20px;overflow:hidden}
.alertbox-head{display:flex;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid var(--line);
  font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.alertbox-body{padding:10px 14px;color:var(--faint);font-size:12px}
.alert-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;
  padding:0 5px;border-radius:9px;background:var(--amber);color:#fff;font-size:10.5px;font-weight:700}
.alert-count:empty{display:none}
.alert-horizon{margin-left:auto;font-size:11px;padding:2px 6px}
.alertbox.has-alerts .alertbox-body{padding:6px 8px}
.alertrow{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:var(--rs);cursor:pointer}
.alertrow:hover{background:#F2F4F8}
.alertrow+.alertrow{margin-top:1px}
.alert-date{flex:none;font-family:var(--mono,monospace);font-size:11px;font-weight:650;color:var(--muted);
  background:#EDEFF3;border-radius:4px;padding:2px 6px;min-width:52px;text-align:center}
.alert-title{color:var(--ink);font-size:12.5px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.alert-store{color:var(--faint);font-size:11.5px;white-space:nowrap}
.alert-store.lead{color:var(--ink);font-weight:650;font-size:12.5px;flex:none}   /* store leads the alert */
.alert-when{margin-left:auto;flex:none;font-size:11px;font-weight:600;color:var(--muted)}
.alert-when.soon{color:var(--amber)}
.alert-when.bad{color:var(--danger)}
/* a Requests item in the alerts feed: brand stripe + an emoji marker in the date slot */
.alert-req{padding-left:6px}
.alert-reqic{background:transparent;font-size:14px;min-width:22px;padding:0}
.alert-showall{display:block;width:100%;margin-top:6px;padding:7px;border:none;
  border-top:1px solid var(--line);background:none;color:var(--accent-d);
  font-size:12px;font-weight:650;cursor:pointer;border-radius:0 0 var(--rs) var(--rs)}
.alert-showall:hover{background:#F2F4F8}

/* ---------- DOMAIN SELECTOR (header tile + dropdown): Restaurants · 3-I · SmarterSafe ---------- */
.domainsel{position:relative;margin-left:6px}
.domainbtn{display:inline-flex;align-items:center;gap:9px;padding:6px 12px 6px 11px;cursor:pointer;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:10px;
  color:#fff;font:inherit;transition:background .12s,border-color .12s}
.domainbtn:hover,.domainbtn.open{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.32)}
.domainbtn .domain-dot{width:9px;height:9px;border-radius:50%;background:var(--dc,#3b5bdb);flex:none;box-shadow:0 0 0 2px rgba(255,255,255,.12)}
.domain-cur{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;min-width:0}
.domain-lbl{font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--headink)}
.domain-name{font-size:13.5px;font-weight:650;color:#fff;white-space:nowrap;max-width:200px;overflow:hidden;text-overflow:ellipsis}
.domain-chev{color:var(--headink);flex:none;transition:transform .15s}
.domainbtn.open .domain-chev{transform:rotate(180deg)}
.domain-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;
  border-radius:9px;background:#E0453A;color:#fff;font-size:10.5px;font-weight:700;line-height:1;flex:none}
.domain-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:200;min-width:270px;
  max-width:calc(100vw - 24px);
  background:var(--surface);border:1px solid var(--line2);border-radius:12px;
  box-shadow:0 12px 32px -8px rgba(20,24,31,.35),0 2px 8px rgba(20,24,31,.12);padding:6px;overflow:hidden}
/* PHONES: the switcher button sits mid-header, so an anchored 270px panel runs off the
   right edge (counts + badges clipped). Pin it to the viewport instead — full usable
   width, nothing cut off, thumb-sized rows. */
@media(max-width:760px){
  .domain-menu{position:fixed;left:12px;right:12px;top:calc(var(--hdr-b) + 6px);   /* v11.21: from the header's real bottom (was 58px + the inset) */
    min-width:0;width:auto;overflow-y:auto;overscroll-behavior:contain;
    max-height:max(160px,calc(var(--vvh) - var(--hdr-b) - 16px - env(safe-area-inset-bottom,0px)))}
  .domain-item{padding:12px 10px}
}
.domain-menu-hd{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--faint);padding:8px 10px 6px}
.domain-item{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border:none;background:none;
  border-radius:8px;cursor:pointer;font:inherit;text-align:left;color:var(--ink);transition:background .1s}
.domain-item:hover{background:#F2F4F7}
.domain-item.active{background:var(--accent-bg)}
.domain-item .domain-dot{width:10px;height:10px;border-radius:50%;background:var(--dc,#3b5bdb);flex:none}
.domain-item-name{font-size:14px;font-weight:600;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.domain-item-n{font-size:11.5px;color:var(--muted);flex:none}
.domain-check{color:var(--accent-d);font-weight:700;flex:none}
.domain-menu-ft{border-top:1px solid var(--line);margin-top:4px;padding-top:4px}
.domain-manage{width:100%;padding:8px 10px;border:none;background:none;border-radius:8px;cursor:pointer;
  font:inherit;font-size:12.5px;font-weight:600;color:var(--accent-d);text-align:left}
.domain-manage:hover{background:var(--accent-bg)}
@media(max-width:760px){ .domain-lbl{display:none} .domain-name{max-width:120px} .domainbtn{padding:7px 10px} }

/* the 3-I attention badge (draws / new progress / compliance) — a red pill that leads you down the tree */
.notifdot{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;
  margin-left:6px;border-radius:9px;background:#E0453A;color:#fff;font-size:10.5px;font-weight:700;line-height:1;
  vertical-align:middle;box-shadow:0 1px 2px rgba(224,69,58,.4)}
.pt-name .notifdot{margin-left:8px}

/* ---------- workspace settings (Settings > Workspaces) ---------- */
.wslist{display:flex;flex-direction:column;gap:6px;margin:6px 0}
.wsrow{display:flex;align-items:center;gap:8px;padding:8px 10px;background:var(--surface);
  border:1px solid var(--line);border-radius:8px}
.wsrow-grip{cursor:grab;color:var(--faint);font-size:12px;letter-spacing:-2px;user-select:none}
.wsrow-color{width:30px;height:26px;padding:0;border:1px solid var(--line2);border-radius:6px;background:none;cursor:pointer;flex:none}
.wsrow-name{flex:1;min-width:0;font-weight:600}
.wsrow-n{font-size:11.5px;color:var(--muted);flex:none;white-space:nowrap}
/* v8.95 — on a phone the unit row wraps: the name box had shrunk to 26px and the
   reorder/delete buttons sat off-screen (phone audit C) */
@media(max-width:760px){
  .wsrow{flex-wrap:wrap;row-gap:6px}
  .wsrow-name{flex:1 1 calc(100% - 110px);min-width:120px}
  .wsrow-kind{flex:1 1 100%;max-width:none}
}
.iconb.danger:hover{background:#FDECEC;color:#C0392B}
.iconb:disabled{opacity:.3;cursor:default;background:none}
.wscos{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:8px;margin:8px 0 4px}
.wsco{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:8px 12px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.wsco-name{display:flex;align-items:center;gap:8px;min-width:0;font-weight:550;font-size:13px}
.wsco-name span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wsco-sel{flex:none;max-width:150px;padding:5px 8px;border:1px solid var(--line2);border-radius:6px;background:var(--surface);font-size:12.5px}
.calwstog{margin-left:6px}
.calwstog.on{background:var(--accent-bg);border-color:var(--accent);color:var(--accent-d);font-weight:600}

/* the header Directory opens a clean, full-width people list — hide the Stores side panel */
#homeView.dir-only .cosidebar{display:none}
#homeView.dir-only .homemain{padding-left:calc(50vw - 50% + 28px)}
/* the 3-I domain dashboard: one column stack that FILLS the content width (like the restaurant
   dashboard) — every band lines up at the same left+right edges, no side gutter. Generous vertical
   rhythm (scoped to .svc-dash so the restaurant dashboard is untouched). */
.svc-dash{display:flex;flex-direction:column;gap:16px;margin-top:10px}
/* MONEY KPI command bar — a row of stat cards across the top of the service dashboard */
.svc-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
@media(max-width:1250px){.svc-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.svc-kpis{grid-template-columns:repeat(2,1fr)}}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh);
  padding:11px 14px;display:flex;flex-direction:column;gap:4px;min-width:0}
.kpi-lbl{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi-val{font-size:19px;font-weight:750;color:var(--ink);line-height:1.05;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi-val.green{color:#1E7A4E}
.kpi-val.red{color:#C0392B}
.kpi-val.amberv{color:#B45309}
.kpi-sub{font-size:12px;font-weight:600;color:var(--muted);margin-left:5px}
.kpi-attn{border-color:#E0453A;box-shadow:0 0 0 1px rgba(224,69,58,.22),var(--sh)}
.svc-dash .portalhdr{margin:0 0 14px}
/* tiles fill the full row width (auto-fit stretches them to the edges) */
.svc-dash .portalgrid{margin-top:0;gap:12px;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
/* ...but a company with only ONE service shouldn't become a full-width bar — cap the lone tile */
.svc-dash .portalgrid:has(.portaltile:only-child){grid-template-columns:minmax(260px,460px);justify-content:start}
.svc-dash .portaltile{min-height:118px;padding:14px 16px 12px;gap:5px}
.svc-dash .alertbox{margin:0}
.svc-dash .alertbox-head{padding:9px 14px}
.svc-dash .alertbox-body{padding:10px 12px}
.svc-dash .dashsec{padding:12px 14px}
.svc-dash .dashsec-hd{margin:-12px -14px 11px}   /* v8.37 — bleed by this card's padding */
.svc-dash .dashco{padding:9px 10px}
.svc-dash .uprow{padding:9px 8px}
/* the two lower boxes fill the full dashboard width, evenly (Upcoming | Active jobs) */
.dashcols.dashcols-2{grid-template-columns:1fr 1fr;gap:14px;max-width:none;margin:0}
@media(max-width:900px){ .dashcols.dashcols-2{grid-template-columns:1fr} }

/* ---------- classification directory (3-I/KES) ---------- */
.dir-actions{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 14px}
.dir-grp{margin-bottom:16px}
.dir-grp-hd{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.06em;color:var(--muted);padding:2px 2px 7px;border-bottom:1px solid var(--line);margin-bottom:6px}
.dir-grp-n{font-size:11px;font-weight:700;color:var(--faint);background:var(--bg);border-radius:9px;padding:0 7px;min-width:16px;text-align:center}
.dir-empty{margin:4px 2px 2px;font-size:12.5px}
.dir-kind{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;padding:1px 5px;border-radius:4px;vertical-align:middle}
.dir-kind.sub{background:#EEF2FD;color:#2140AC}
.dir-kind.staff{background:#EAF7F0;color:#1E7A4E}
.subpick-av.staff{background:#EAF7F0;color:#1E7A4E}
.dir-clssel{flex:none;max-width:130px;padding:4px 6px;border:1px solid var(--line2);border-radius:6px;background:var(--surface);font-size:12px;color:var(--ink2)}
.invsubtag{display:inline-block;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:1px 5px;border-radius:4px;background:#EAF7F0;color:#1E7A4E;vertical-align:middle}
/* v7.31: the Reports page is a CATALOGUE (owner: "there should be a genuine layout of
   types of reports and stuff with a search bar... two tiles, send and generate. and there
   should be a little settings on that report line thats specific to that"). One row per
   report type; the row expands to its PDFs and the two tiles; the gear is per-report. */
.repsearch{width:100%;box-sizing:border-box;padding:9px 13px;border:1px solid var(--line2,#DFE3E8);
  border-radius:8px;background:var(--surface);font-size:13.5px;color:var(--ink);margin-bottom:12px}
.replist{display:flex;flex-direction:column;gap:9px}
.reprow{background:var(--surface);border:1px solid var(--line2,#E3E6EA);border-radius:10px;overflow:hidden}
.reprow.open{border-color:var(--muted)}
.rephead{display:flex;align-items:center;gap:12px;padding:13px 15px;cursor:pointer}
.rephead:hover{background:var(--surface2,#FAFBFC)}
/* v9.00 — on a report's OWN page the header is not a control any more (nothing to open or
   collapse), so it must not look like one */
.reppage .rephead{cursor:default}
.reppage .rephead:hover{background:transparent}
.repicon{width:34px;height:34px;flex:none;border-radius:8px;background:#EEF2FF;color:#3949AB;
  display:flex;align-items:center;justify-content:center}
.repmeta{flex:1;min-width:0}
.reptitle{display:block;font-weight:600;font-size:14px;color:var(--ink)}
.repsub{display:block;font-size:12.5px;color:var(--ink3,#8A9099);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.repdot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;vertical-align:middle}
.repauto{display:inline-block;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;
  padding:1px 5px;border-radius:4px;background:#FAEEDA;color:#854F0B;vertical-align:middle;margin-left:6px}
.rstitle{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid var(--line2,#DFE3E8);
  border-radius:7px;background:var(--surface);font-size:13.5px;color:var(--ink)}
.repgear{flex:none;background:none;border:none;color:var(--ink3,#8A9099);font-size:16px;padding:5px 7px;
  border-radius:6px;cursor:pointer;line-height:1}
.repgear:hover{background:var(--line);color:var(--ink)}
.repchev{flex:none;color:var(--ink3,#8A9099);font-size:10px}
.replink1{text-decoration:none;display:inline-flex;align-items:center;margin-right:6px}
/* v9.13 — title cards: a group holds its reports; unfolded rows sit inside it */
.reprow.repgroup{border-color:var(--line,#CFD4DA)}
.reprow.repgroup>.rephead .reptitle{font-weight:700;font-size:15px}
.repgroupbody{display:flex;flex-direction:column;gap:8px;padding:4px 12px 12px 38px;border-top:1px solid var(--line2,#E3E6EA)}
.repgroupbody .reprow{background:var(--surface2,#FAFBFC)}
.repgen-sm{flex:none;border:1px solid var(--accent,#2B6CB0);background:var(--accent,#2B6CB0);color:#fff;border-radius:8px;padding:6px 12px;font-weight:600;font-size:12.5px;cursor:pointer}
.repgen-sm:disabled{opacity:.55;cursor:default}
/* v9.55 — Cancel beside a running Generate: a quiet outline, red on hover */
.repcancel{flex:none;border:1px solid #d9dde3;background:#fff;color:#7a1f1f;border-radius:8px;padding:6px 10px;font-weight:600;font-size:12.5px;cursor:pointer;margin-left:6px}
.repcancel:hover{border-color:#c0392b;background:#fff5f4}
.repcancel:disabled{opacity:.55;cursor:default}
.reptiles>.repcancel{align-self:flex-start;margin:0 0 6px}
.reprow.repgroup>.rephead .repchev{font-size:13px}
/* v9.16 — drag a row to reorder it inside its group */
.repgroupbody .reprow[draggable="true"]{cursor:grab}
.repgroupbody .reprow.repdragging{opacity:.45}
.repgroupbody .reprow.repdropabove{box-shadow:0 -3px 0 0 var(--accent,#2C5CE6)}
.repgroupbody .reprow.repdropbelow{box-shadow:0 3px 0 0 var(--accent,#2C5CE6)}
.repbody{border-top:1px solid var(--line);background:var(--surface2,#FAFBFC);padding:13px 15px}
.repsechd{font-size:11px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3,#8A9099);margin-bottom:9px}
.repgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:6px}
.repfile{display:flex;align-items:center;gap:8px;border:1px solid var(--line2,#E3E6EA);border-radius:7px;
  padding:7px 10px;background:var(--surface);font-size:13px;cursor:pointer}
.repname{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.replink{font-size:12px;color:var(--accent,#2F6FED);text-decoration:none;flex:none}
/* the two tiles */
/* v8.82 — the truthful last-run block (when · auto/manual · who it went to) */
.replast{margin:2px 0 10px;padding:8px 10px;border:1px solid var(--line2,#D5D9DE);
  border-radius:8px;background:var(--surface2,#FAFBFC);font-size:12px;
  color:var(--ink2,#4A5058);display:flex;flex-direction:column;gap:4px}
.rlf-row{line-height:1.5}
.rlf-k{display:inline-block;min-width:66px;font-weight:600;color:var(--ink3,#8A9099);
  text-transform:uppercase;font-size:10.5px;letter-spacing:.04em}
.rlf-ok{color:#1E9E63}
.rlf-bad{color:#b3261e;font-weight:600}
.rlf-note{color:var(--ink3,#8A9099)}
.rlf-tools{margin-top:4px}.rlf-tools .replinkbtn{font-size:11.5px;color:var(--ink3,#8A9099)}

.reptiles{display:flex;gap:9px;margin-top:14px;flex-wrap:wrap}
.reptile{flex:1;min-width:170px;text-align:left;background:var(--surface);border:1px solid var(--line2,#D5D9DE);
  border-radius:9px;padding:11px 13px;cursor:pointer;color:var(--ink);font:inherit}
/* v8.81 — DIRECT CHILD ONLY. The bare descendant selector also caught a <b> INSIDE the
   subtitle span (v8.79's "emailed to <b>you only</b>, never the list") and turned it
   into a full-width block, so the tile rendered ", never the list" alone on its own
   line, leading with a comma. Emphasis inside the span stays inline bold. */
.reptile>b{display:block;font-size:13.5px;font-weight:600}
.reptile span{display:block;font-size:11.5px;color:var(--ink3,#8A9099);margin-top:2px}
.reptile:hover:not(:disabled){border-color:var(--muted)}
.reptile:disabled{opacity:.55;cursor:default}
/* v7.32: the loud tile is GENERATE, not Send. Generating again is free and repeatable;
   an email cannot be unsent, so it must not be the thing the eye wants to press. */
.reptile.primary{background:var(--accent,#2F6FED);border-color:var(--accent,#2F6FED);color:#fff}
.reptile.primary span{color:rgba(255,255,255,.82)}
.reptile.primary:disabled{opacity:.45}
.reptile.quiet{background:var(--surface);border-color:var(--line2,#D5D9DE)}
.reptile.quiet:hover:not(:disabled){border-color:var(--muted);background:var(--surface2,#FAFBFC)}
/* recipient editor rows — real inputs, because a prompt() can only ever hold one line */
/* v7.41 SHOW ME AROUND — the tour runs over the real page, so everything here is fixed to
   the viewport rather than to any container. The ring is a BORDER and the dim is a plain
   rgba spread shadow: one unsupported colour function in a shared declaration would
   otherwise wipe out both and leave an invisible tour. */
/* THE MASK — four panes around the highlighted thing, leaving a real hole over it.
   This replaces the old giant box-shadow, which dimmed the page but blocked nothing: he
   could click Upcoming or In Progress straight through it, navigate away, and the tour
   would be stranded. Making the card click-through fixed one complaint and caused this
   one. The right answer is neither — block everywhere EXCEPT the thing being pointed at,
   so the only click available is the one the step is asking for. */
.tourmask{position:fixed;z-index:9990;background:rgba(9,14,24,.55);pointer-events:auto;
  opacity:0;transition:opacity .25s}
.tourmask.on{opacity:1}
.tourlens{position:fixed;z-index:9998;border-radius:10px;pointer-events:none;opacity:0;
  border:2px solid #2F54D6;box-shadow:0 0 18px 2px rgba(47,84,214,.5);
  transition:left .4s cubic-bezier(.33,.9,.28,1),top .4s cubic-bezier(.33,.9,.28,1),
    width .4s cubic-bezier(.33,.9,.28,1),height .4s cubic-bezier(.33,.9,.28,1),opacity .25s}
.tourlens.nudge{animation:tournudge .45s ease}
@keyframes tournudge{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
/* CLICK-THROUGH except for its own buttons (owner: "i cant click on the screen and go to
   random places whiel the tutorial is running"). The dim never blocked anything — it's a
   box-shadow on a pointer-events:none element — but the CARD did, and when it landed over
   the companies rail he physically could not click the company the step was asking for.
   Placement tries hard not to overlap; this makes it not matter if it ever does. Relay
   stays entirely usable with the tour open. */
.tourcard{position:fixed;z-index:9999;width:min(340px,calc(100vw - 24px));opacity:0;
  pointer-events:none;
  background:var(--surface);border:1px solid var(--line2);border-radius:12px;
  padding:13px 15px;box-shadow:0 16px 44px rgba(10,16,28,.3);
  transition:left .4s cubic-bezier(.33,.9,.28,1),top .4s cubic-bezier(.33,.9,.28,1),opacity .25s}
.tourcard button{pointer-events:auto}
.tourcard .tk{margin:0 0 3px;font-family:var(--mono,monospace);font-size:10px;
  letter-spacing:.08em;text-transform:uppercase;color:var(--accent,#2F54D6)}
.tourcard h3{margin:0 0 4px;font-size:15px;font-weight:650;color:var(--ink)}
.tourcard .tb{margin:0;font-size:13px;line-height:1.5;color:var(--ink2)}
.tourcard .tf{display:flex;gap:6px;justify-content:flex-end;align-items:center;margin-top:11px}
.tourcard .tw{margin-right:auto;font-size:11px;color:var(--accent,#2F54D6);font-weight:600}
/* while a step is waiting for a real click, the ring breathes — the page underneath is
   still fully clickable (the dim is a box-shadow on a pointer-events:none element, so it
   never eats a click; only the small card does, and it is placed clear of its target) */
.tourlens.waiting{animation:tourpulse 1.5s ease-in-out infinite}
@keyframes tourpulse{
  0%,100%{box-shadow:0 0 18px 2px rgba(47,84,214,.5)}
  50%    {box-shadow:0 0 26px 7px rgba(47,84,214,.9)}
}
@media (prefers-reduced-motion:reduce){ .tourlens.waiting{animation:none} }

.rephint{font-size:11.5px;color:var(--ink3,#8A9099);line-height:1.6;margin:9px 2px 0}
.replinkbtn{background:none;border:none;padding:2px 0;font:inherit;color:var(--accent,#2F6FED);
  text-decoration:underline;cursor:pointer}
.rstocc{flex:none;width:62px;padding:7px 6px;border:1px solid var(--line2,#DFE3E8);border-radius:7px;
  background:var(--surface);font-size:12.5px;color:var(--ink2)}
.rsrow{display:flex;gap:7px;align-items:center;margin-bottom:7px}
.rsrow input{flex:1;min-width:0;padding:7px 9px;border:1px solid var(--line2,#DFE3E8);border-radius:7px;
  background:var(--surface);font-size:13px;color:var(--ink)}
.rsrow .rsname{max-width:28%}
.rsdel{flex:none;background:none;border:none;color:var(--ink3,#8A9099);cursor:pointer;padding:5px 7px;
  border-radius:6px;font-size:13px}
.rsdel:hover{background:var(--line);color:#D14343}

/* v7.28: the "same vendor — combine?" suggestion on an invoice row. Same chip shape as
   .invsubtag so it reads as one of the row's tags, blue rather than green because it's an
   offer to act, not a statement of fact. .off = a real match that CAN'T be combined (a
   draw, or a different pay source) — shown greyed with the reason in the tooltip, because
   silently hiding it would leave him wondering if Relay had even noticed. */
.combtag{display:inline-block;font:inherit;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:1px 5px;border-radius:4px;background:#EEF2FF;color:#3949AB;border:1px solid #C9D2F5;vertical-align:middle;cursor:pointer}
.combtag:hover:not(:disabled){background:#E0E7FF}
.combtag:disabled{opacity:.6;cursor:default}
.combtag.off{background:var(--surface2,#F3F4F6);color:var(--ink3,#8A9099);border-color:var(--line2,#E3E6EA);cursor:help}
.asub-row{display:flex;align-items:center;gap:8px;padding:8px 4px;border-bottom:1px solid var(--line);font-size:13.5px;cursor:pointer}
.asub-row:last-child{border-bottom:none}
/* width:auto REQUIRED — inside a .field, the generic ".field input{width:100%}" (for text
   inputs) blows a checkbox/radio up to the full row and shoves its label to the far edge.
   The ".field .asub-row" variant is NOT redundant: the generic rule is declared LATER in
   this file, so at equal specificity it would win — this higher-specificity selector is
   what actually protects checklists that live inside a .field (Add-subcontractor dialog). */
.asub-row input,.field .asub-row input{margin:0;flex:none;width:auto}
.asub-row span{flex:1;min-width:0;text-align:left}
@media(max-width:760px){ .dir-clssel{max-width:104px;font-size:11px} }

/* ---------- company sidebar ---------- */
.homebody{display:flex;align-items:stretch;gap:0;
  margin:-24px calc(50% - 50vw) 0;min-height:calc(100vh - 58px)}
.cosidebar{width:252px;flex:none;background:var(--surface);border-right:1px solid var(--line);
  padding:14px 10px;transition:width .15s ease;
  padding-left:calc(50vw - 50% + 10px)}
.cosb-in{position:sticky;top:14px}
.cosb-head{display:flex;align-items:center;justify-content:space-between;padding:5px 6px 7px}
.cosb-lbl{font-size:10.5px;font-weight:650;text-transform:uppercase;letter-spacing:.07em;color:var(--faint)}
.cosb-toggle{width:24px;height:24px}
.cosb-list{display:flex;flex-direction:column;gap:2px}
.coitem{display:flex;align-items:center;gap:10px;width:100%;padding:8px 9px;border-radius:var(--rs);
  color:var(--ink2);font-size:13px;font-weight:500;text-align:left;transition:background .1s}
.coitem:hover{background:#F2F4F7;color:var(--ink)}
.coitem.active{background:var(--accent-bg);color:var(--accent-d);font-weight:600;
  box-shadow:inset 2.5px 0 0 var(--accent)}
.coitem-logo{width:24px;height:24px;object-fit:contain;border-radius:5px;border:1px solid var(--line);
  background:#fff;flex:none}
.coitem-init{width:24px;height:24px;border-radius:5px;background:#E6E9EF;color:var(--muted);
  font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none;
  font-family:var(--mono)}
.coitem.active .coitem-init{background:var(--accent);color:#fff}
.coitem-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.coitem-n{font-family:var(--mono);font-size:10.5px;color:var(--faint);background:#EDEFF3;
  padding:0 6px;border-radius:8px;line-height:16px;flex:none}
.coitem.active .coitem-n{background:var(--accent);color:#fff}
.coitem-add{color:var(--muted);margin-top:6px;border-top:1px solid var(--line);border-radius:0 0 var(--rs) var(--rs);padding-top:10px}
.coitem-add:hover{color:var(--accent)}
.coitem[draggable]{cursor:grab}
.coitem.dragging{opacity:.35}
.coitem.dragover{box-shadow:inset 0 2px 0 var(--accent)}
/* collapsed rail */
.cosidebar.collapsed{width:calc(50vw - 50% + 66px)}
.cosidebar.collapsed .coitem-name,.cosidebar.collapsed .coitem-n,.cosidebar.collapsed .cosb-lbl{display:none}
/* collapsed: just the logo, centered — drop the ›/count so it isn't cramped against the arrow */
.cosidebar.collapsed .coitem>svg:last-child{display:none}
.cosidebar.collapsed .coitem{justify-content:center;padding:8px 0;gap:0}
.cosidebar.collapsed .cosb-head{justify-content:center;padding:5px 0 7px}
.homemain{flex:1;min-width:0;padding:22px 28px 40px;padding-right:calc(50vw - 50% + 28px)}
@media(max-width:900px){
  .homebody{flex-direction:column;margin-top:-18px;min-height:0}
  .cosidebar{width:100%!important;border-right:none;border-bottom:1px solid var(--line);
    padding:10px 14px}
  .cosb-list{flex-direction:row;flex-wrap:wrap}
  .coitem{width:auto}
  .homemain{padding:16px 14px 30px}
  /* a COLLAPSED rail makes no sense once the sidebar is a horizontal strip: the icon-only
     styles (no labels, 0 side padding) squished every store into overlapping dots. On narrow
     windows the rail always renders fully labeled, and the collapse toggle goes away. */
  .cosidebar.collapsed .coitem-name,.cosidebar.collapsed .coitem-n,.cosidebar.collapsed .cosb-lbl{display:initial}
  .cosidebar.collapsed .coitem{justify-content:flex-start;padding:8px 9px;gap:10px}
  .cosidebar.collapsed .coitem>svg:last-child{display:initial}
  .cosidebar.collapsed .cosb-head{justify-content:space-between;padding:5px 6px 7px}
  .cosb-toggle{display:none}
}

/* ---------- store toolbar ---------- */
.store-toolbar{display:flex;align-items:center;justify-content:space-between;
  margin-bottom:14px;gap:12px;flex-wrap:wrap}
.st-left{display:flex;align-items:baseline;gap:10px}
.st-count{color:var(--faint);font-size:12px;font-family:var(--mono)}
.st-right{display:flex;align-items:center;gap:8px}
.st-right input[type=search]{padding:7px 11px;border:1px solid var(--line2);border-radius:var(--rs);
  font-size:13px;min-width:250px;background:var(--surface)}
.st-right input[type=search]:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
.filtersel{padding:7px 9px;border:1px solid var(--line2);border-radius:var(--rs);font-size:13px;
  background:var(--surface);color:var(--ink2);cursor:pointer}
.viewtoggle{display:inline-flex;border:1px solid var(--line2);border-radius:var(--rs);overflow:hidden}
.vt{display:inline-flex;align-items:center;padding:6px 9px;color:var(--faint);background:var(--surface)}
.vt.active{background:#EDEFF3;color:var(--ink)}

/* ---------- store cards ---------- */
.storegrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:1100px){.storegrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:680px){.storegrid{grid-template-columns:1fr}}
/* ---- PHONE HOME: company tiles + search (rendered only by renderDashboardMobile) ---- */
.cotilegrid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.cotile{display:flex;flex-direction:column;align-items:flex-start;gap:7px;position:relative;
  background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--coc,var(--accent));
  border-radius:var(--r);padding:14px 13px;text-align:left;box-shadow:0 1px 2px rgba(16,22,34,.05)}
.cotile:active{background:var(--accent-bg)}
.cotile-mark .coitem-logo,.cotile-mark .coitem-init{width:40px;height:40px;border-radius:10px;font-size:15px}
.cotile-name{font-size:14.5px;font-weight:700;color:var(--ink);line-height:1.2}
.cotile-n{font-size:12px;color:var(--muted)}
.cotile-n b{color:var(--ink2)}
.cotile-go{position:absolute;top:12px;right:10px;color:var(--faint)}
.m-search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);
  border-radius:12px;padding:0 13px;margin-bottom:12px}
.m-search svg{color:var(--faint);flex:none;width:17px;height:17px}
.m-search input{flex:1;border:none;background:transparent;padding:12px 0;font-size:15px;color:var(--ink);outline:none}
.m-hd{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);margin:15px 2px 9px}
.storetile{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:14px 15px;box-shadow:var(--sh);cursor:pointer;display:flex;flex-direction:column;gap:10px;
  transition:border-color .12s,box-shadow .15s,transform .15s}
.storetile:hover{border-color:var(--line2);box-shadow:0 6px 18px rgba(16,24,40,.11),0 2px 5px rgba(16,24,40,.06);transform:translateY(-2px)}
.tile-head{display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin:-14px -15px 0;padding:11px 15px;background:linear-gradient(180deg,#F1F4FA,#EDF1F8);
  border-bottom:1px solid var(--line);border-radius:calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0}
.tile-head-main{display:flex;align-items:center;gap:10px;min-width:0}
.tile-logo{width:30px;height:30px;flex:none;object-fit:contain;border-radius:6px;background:#fff;
  border:1px solid var(--line);padding:2px}
.tile-name{font-size:14px;font-weight:600;line-height:1.3}
.tile-co{font-size:10.5px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;
  color:var(--accent);margin-top:2px}
.tile-edit{opacity:0}
.storetile:hover .tile-edit{opacity:1}
/* v7.07 (owner: "i have to double click open job for it to open"). ROOT CAUSE: the card
   REVEALS its edit button + lifts on :hover; on a touchscreen the FIRST tap only triggers
   that hover state, so a SECOND tap is needed to actually open. On touch devices there is
   no real hover — kill every hover-state change so the first tap opens immediately. */
@media (hover:none), (max-width:760px){
  .storetile:hover{transform:none;box-shadow:var(--sh);border-color:var(--line)}
  .storetile .tile-edit{opacity:1}
}
.tile-block{padding-top:2px;font-size:12.5px}
.tile-block + .tile-block{border-top:1px solid var(--line);padding-top:9px}
.tile-block-lbl{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;
  color:var(--faint);margin-bottom:4px}
.tile-addr{color:var(--ink2);line-height:1.45}
.tile-line{color:var(--ink2);line-height:1.55;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tile-line b{color:var(--ink);font-weight:600}
.tile-line.dim{color:var(--faint);font-size:11.5px}
.tile-line svg{color:var(--faint);width:13px;height:13px}
.tile-dm.none{color:var(--faint);font-style:italic;font-size:12px}
/* v7.06 (owner): a clear "Open" button on each card — MOBILE ONLY (taps are easy to
   miss on a dense card; on desktop the whole card is the click target). Bubbles to the
   card's own single-tap open handler, so it opens the job/store in one press. */
.tile-open{display:none}
.sr-open{display:none}
@media(max-width:760px){
  .tile-open{display:flex;width:100%;justify-content:center;margin-top:2px;padding:11px;font-size:14px;border-radius:10px}
  .storerow{flex-wrap:wrap}
  .sr-open{display:flex;justify-content:center;flex:1 0 100%;order:99;margin-top:6px;padding:10px;font-size:13.5px}
}
/* status shown in the card background (tint + colored left edge) */
.storetile.st-green{border-left:4px solid var(--green);background:linear-gradient(0deg,rgba(22,137,90,.05),rgba(22,137,90,.05)),var(--surface)}
.storetile.st-blue{border-left:4px solid var(--accent);background:linear-gradient(0deg,rgba(39,67,168,.05),rgba(39,67,168,.05)),var(--surface)}
.storetile.st-amber{border-left:4px solid var(--amber);background:linear-gradient(0deg,rgba(191,120,20,.06),rgba(191,120,20,.06)),var(--surface)}
.storetile.st-red{border-left:4px solid var(--danger);background:linear-gradient(0deg,rgba(207,46,34,.05),rgba(207,46,34,.05)),var(--surface)}
.storetile.st-gray{border-left:4px solid var(--muted);background:linear-gradient(0deg,rgba(120,130,150,.05),rgba(120,130,150,.05)),var(--surface)}
.storerow.st-green{box-shadow:inset 3px 0 0 var(--green)}
.storerow.st-blue{box-shadow:inset 3px 0 0 var(--accent)}
.storerow.st-amber{box-shadow:inset 3px 0 0 var(--amber)}
.storerow.st-red{box-shadow:inset 3px 0 0 var(--danger)}
.storerow.st-gray{box-shadow:inset 3px 0 0 var(--muted)}
/* money block on roofing job cards */
.tile-money .tm-row{display:flex;justify-content:space-between;align-items:baseline;line-height:1.7}
.tile-money .tm-k{color:var(--ink2);font-size:12px}
.tile-money .tm-v{font-family:var(--mono);font-weight:650;font-size:13px}
.tile-money .tm-v.green{color:var(--green)}
.tile-money .tm-v.red{color:var(--danger)}
.tile-foot{display:flex;gap:6px;margin-top:auto;padding-top:2px}
.mintag{font-size:11px;font-family:var(--mono);color:var(--muted);background:#EDEFF3;
  padding:1px 7px;border-radius:4px}
.mintag.green{background:var(--green-bg);color:var(--green)}

/* list rows */
.storelist{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  overflow:hidden;box-shadow:var(--sh)}
.storerow{display:flex;align-items:center;padding:10px 14px;border-bottom:1px solid var(--line);
  cursor:pointer;gap:10px}
.storerow:last-child{border-bottom:none}
.storerow:hover{background:#FAFBFC}
.sr-name{font-weight:550;font-size:13px;display:inline-flex;align-items:center;gap:7px}
.sr-logo{width:18px;height:18px;flex:none;object-fit:contain;border-radius:4px;background:#fff;border:1px solid var(--line)}
.sr-co{font-size:11px;color:var(--faint);margin-left:auto;margin-right:8px;font-family:var(--mono)}
.storerow .iconb{opacity:0}
.storerow:hover .iconb{opacity:1}

.empty{color:var(--faint);font-size:13px;padding:14px 2px}
.empty-hero{text-align:center;padding:70px 20px;background:var(--surface);
  border:1px dashed var(--line2);border-radius:var(--r)}
.empty-hero h3{font-size:17px;margin-bottom:6px}
.empty-hero p{color:var(--muted);max-width:420px;margin:0 auto 18px;font-size:13px}

/* ---------- panel ---------- */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--sh);padding:16px}

/* ---------- forms ---------- */
.field{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;min-width:0}
/* CLAUDE.md gotcha: an author display: rule beats the hidden attribute, so pair them */
.field[hidden]{display:none!important}
.field label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.field input,.field select,.field textarea{padding:8px 10px;border:1px solid var(--line2);
  border-radius:var(--rs);font-size:13.5px;background:var(--surface);width:100%;min-width:0}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3px var(--accent-bg)}
.field input:disabled{background:#F2F4F7;color:var(--faint)}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.frow3{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}
/* v8.90 — the typography hierarchy was INVERTED (owner: "the text is weirdly
   formatted"): a section header was 10.5px faint, a field LABEL 11px, and body 12px —
   so the group heading was the SMALLEST, palest text and read the same as a field name.
   Kept uppercase (some panels' strings rely on it) but a section header now clearly
   outranks a field label: bigger, bolder, darker ink. Body text gets real line-height. */
.formsec{font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.06em;
  color:var(--ink2);margin:18px 0 9px;padding-bottom:5px;border-bottom:1px solid var(--line)}
.formsec:first-child{margin-top:0}
.hint{font-size:12px;color:var(--muted);line-height:1.45}
.radio-line{display:flex;gap:9px;align-items:flex-start;font-size:13px;color:var(--ink2);
  margin:9px 0;line-height:1.4;cursor:pointer}
/* width:auto is REQUIRED — the generic ".field input{width:100%}" rule (for text inputs) would
   otherwise blow the radio button up to the full row width and crush the label into one column. */
.radio-line input{flex:none;width:auto;margin:3px 0 0}
.radio-line span{flex:1;min-width:0}
.radio-line b{color:var(--ink)}
.svc-picker{display:flex;flex-direction:column;gap:10px}
.svc-pick{display:flex;align-items:center;gap:13px;width:100%;text-align:left;cursor:pointer;
  padding:14px 15px;border:1.5px solid var(--line);border-radius:var(--rl,14px);background:var(--surface);transition:all .12s}
.svc-pick:hover{border-color:var(--accent);background:var(--accent-bg)}
.svc-pick .sp-ic{font-size:26px;flex:none}
.svc-pick .sp-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.svc-pick .sp-name{font-size:16px;font-weight:700;color:var(--ink)}
.svc-pick .sp-kind{font-size:12px;color:var(--faint)}
.svc-pick .sp-go{flex:none;color:var(--faint)}
.checkrow{display:flex;align-items:center;gap:7px;font-size:13px;color:var(--ink2);margin:8px 0}
.chainprev{background:var(--bg);border:1px solid var(--line);border-radius:var(--rs);
  padding:8px 11px;font-size:12.5px;color:var(--ink2);margin-top:2px}
.chainprev b{color:var(--ink)}
/* "Visible to" reminder audience picker (account login users) */
.visto{gap:8px;background:var(--bg);border:1px solid var(--line);border-radius:var(--rs);padding:11px 12px}
.visto>label{display:flex;align-items:baseline;gap:8px}
.vtsub{font-size:11px;font-weight:400;text-transform:none;letter-spacing:0;color:var(--faint)}
.vckrow{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink2);cursor:pointer;padding:3px 0}
.vckrow input{width:auto;flex:none;margin:0}
.visto .muted{color:var(--faint);font-size:12px;padding:3px 1px}
.vtplist{max-height:180px;overflow:auto;border:1px solid var(--line);border-radius:var(--rs);
  padding:6px 9px;background:var(--surface)}
.vtprev{font-size:12px;color:var(--ink2);background:var(--surface);border:1px dashed var(--line2);
  border-radius:var(--rs);padding:7px 10px}
.vtprev.vtempty{color:var(--danger,#dc2626);border-color:var(--danger,#dc2626);border-style:solid}
.vtnote{font-size:11px;color:var(--faint);line-height:1.4}
/* all-day checkbox + reminder chips + event actions (v4.33) */
.ckrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--ink2);cursor:pointer;margin:-4px 0 12px}
.ckrow input{width:auto;flex:none;margin:0}
.remchips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px;min-height:22px}
.remchip{display:inline-flex;align-items:center;gap:2px;background:var(--accent-bg);color:var(--accent-d);
  border-radius:14px;padding:3px 4px 3px 11px;font-size:12px;font-weight:600}
.remchip .remx{border:none;background:none;color:var(--accent-d);font-size:15px;line-height:1;cursor:pointer;
  padding:0 5px;border-radius:50%}
.remchip .remx:hover{background:rgba(0,0,0,.10)}
.remnone{font-size:12px;color:var(--faint)}
select.remadd{max-width:220px}
.evactions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}
.evactions .danger{margin-left:auto}
.chainprev .dim{color:var(--faint)}
.dim{color:var(--faint)}

/* v11.07 - the Permit Intelligence tab's + Add permit type / + Add inspection type, and the store tick list after it */
.pi-pane .pi-addtype{display:flex;width:100%;align-items:center;justify-content:center;gap:6px;margin:2px 0 12px;padding:11px 14px;
  border:1.5px dashed #b9c9da;border-radius:12px;background:transparent;color:var(--pi-accent);font:inherit;font-weight:600;cursor:pointer}
.pi-pane .pi-addtype:hover{background:#eef4fb;border-color:var(--pi-accent)}
.pi-pane .permit-line .plright .act.quiet{border:1px solid #cfd8e3;padding:0 10px}
.pi-pane .permit-line .plright .act.quiet:hover,.pi-pane .pb-actions .act.quiet:hover{color:var(--pi-bad);border-color:var(--pi-bad);background:#fff}
.modalcard.pi-pick{max-width:620px}
.pi-pick-body{margin-top:10px}
.pi-pick-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 2px 6px;font-size:13px;color:var(--ink2)}
.pi-pick-tools label{display:inline-flex;align-items:center;gap:7px;cursor:pointer}
.pi-pick-list{max-height:min(46vh,440px);overflow-y:auto;border:1px solid var(--line2);border-radius:var(--r);background:var(--surface)}
.pi-pick-list.tall{height:min(46vh,440px)}
.pi-pick-row{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid var(--line);cursor:pointer}
.pi-pick-row[hidden]{display:none!important}
.pi-pick-row:hover{background:#F6F8FB}
.pi-pick-row input{width:17px;height:17px;flex:none;margin:0}
.pi-pick-row.has{cursor:default;background:#FAFBFC}
.pi-pick-row.has .pi-pick-txt{opacity:.7}
.pi-pick-txt{display:flex;flex-direction:column;min-width:0;flex:1}
.pi-pick-txt b{font-weight:600;font-size:13.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pi-pick-txt span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pi-pick-tag{flex:none;font-size:11.5px;font-weight:600;border-radius:20px;padding:2px 9px;background:#EDEFF3;color:var(--muted)}
.pi-pick-tag.ok{background:var(--green-bg);color:var(--green)}
.pi-pick-none{padding:14px;color:var(--muted);font-size:13px;margin:0}
.pi-pick-err{margin:10px 0 0;color:var(--danger);background:var(--danger-bg);border-radius:var(--rs);padding:8px 11px;font-size:13px}
.pi-pick-skips{margin:6px 0 0;padding-left:20px;font-size:13px;line-height:1.7;color:var(--ink2)}
@media(max-width:720px){ .pi-pick-list,.pi-pick-list.tall{height:auto;max-height:52vh} }
/* v11.20 - Record an inspection: the report first, Permit Intelligence's reading, the boxes under it */
.modalcard.pi-recm{max-width:560px}
.pi-recdrop{display:flex;align-items:center;gap:10px;margin-top:12px;padding:14px 16px;border:1.5px dashed #b9c9da;border-radius:12px;
  background:#f8fafd;cursor:pointer;min-width:0}
.pi-recdrop:hover{border-color:var(--accent);background:#eef4fb}
.pi-recdrop-ic{font-size:20px;flex:none}
.pi-recdrop-t{flex:1;min-width:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pi-recdrop-s{flex:none;font-size:12.5px;color:var(--accent);font-weight:600}
.pi-recprev{margin-top:10px;border:1px solid var(--line2);border-radius:10px;background:#f3f5f8;max-height:320px;overflow:auto;display:flex;justify-content:center}
.pi-recprev[hidden]{display:none!important}
.pi-recprev img,.pi-recprev canvas{display:block;max-width:100%;height:auto}
.pi-recprev-card{display:flex;align-items:center;gap:10px;padding:14px 16px;width:100%;box-sizing:border-box;min-width:0}
.pi-recprev-ic{font-size:24px;flex:none}
.pi-recprev-nm{display:flex;flex-direction:column;min-width:0;font-size:13px}
.pi-recprev-nm b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pi-recprev-nm span{color:var(--muted);font-size:12px}
.pi-recread{margin-top:10px;border-radius:var(--rs);padding:9px 12px;font-size:13.5px;line-height:1.45}
.pi-recread[hidden],.pi-recread-d[hidden]{display:none!important}
.pi-recread.busy,.pi-recread.info{background:#eef4fb;color:#215a97}
.pi-recread.ok{background:var(--green-bg);color:var(--green)}
.pi-recread.warn{background:#fff6e5;color:#8a5300}
.pi-recread-t{font-weight:600}
.pi-recread-d{font-size:12.5px;opacity:.9;margin-top:2px}
.pi-recfields{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin-top:12px}
.pi-recfields label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--ink2);min-width:0}
.pi-recfields label.pi-ai-l span::after{content:" · read by AI";color:#2b6fb5;font-weight:600}
.pi-select.pi-ai{background:#eef6ff;border-color:#8db7e6}
/* a phone (390 x 844): the report's preview stays short and Date | Result share a row, so after the read the three boxes and
   Save are on screen together - he checks the AI's result and score without scrolling */
@media(max-width:560px){ .pi-recfields{grid-template-columns:1fr 1fr} .pi-recfields label[data-pirl="score"]{grid-column:1 / -1}
  .pi-recprev{max-height:150px} .pi-recm .modalbody{padding:14px 16px} .pi-recm .confirm-msg{font-size:13px} }
/* ---------- modal ---------- */
.overlay{position:fixed;inset:0;background:rgba(16,24,32,.45);display:none;
  align-items:flex-start;justify-content:center;padding:8vh 16px;z-index:100}
.overlay.open{display:flex}
.modalcard{background:var(--surface);border-radius:10px;width:100%;max-width:520px;
  box-shadow:0 20px 50px rgba(16,24,40,.25);max-height:84vh;display:flex;flex-direction:column}
.modalcard.mini{max-width:420px}
.modalhead{display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;border-bottom:1px solid var(--line)}
.modalhead h3{font-size:14.5px}
.x{color:var(--faint);font-size:15px;width:26px;height:26px;border-radius:var(--rs);
  display:flex;align-items:center;justify-content:center}
.x:hover{background:#EDEFF3;color:var(--ink)}
.modalbody{padding:18px;overflow-y:auto}
.modalfoot{display:flex;justify-content:flex-end;gap:8px;padding:13px 18px;border-top:1px solid var(--line)}
.confirm-msg{font-size:13.5px;color:var(--ink2);line-height:1.55}
.prompt-input{width:100%;padding:8px 10px;border:1px solid var(--line2);border-radius:var(--rs);
  font-size:13.5px;margin-top:10px}
.prompt-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}

/* ---------- toast ---------- */
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);
  background:var(--ink);color:#fff;padding:9px 16px;border-radius:var(--rs);font-size:13px;
  box-shadow:0 6px 20px rgba(16,24,40,.3);z-index:200}
.toast.err{background:var(--danger)}

/* ---------- store workspace header ---------- */
.jobcardhead{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--sh);padding:18px 20px;margin-bottom:16px;display:flex;
  justify-content:space-between;gap:20px}
.jh-id{font-family:var(--mono);font-size:11.5px;color:var(--muted);margin-bottom:3px}
.jh-left h2{font-size:19px;margin-bottom:3px}
.jh-addr{color:var(--muted);font-size:12.5px}
.jh-tags{display:flex;align-items:center;gap:12px;margin-top:11px}
.tag{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:550;
  padding:4px 10px;border-radius:20px;border:1px solid var(--line2);cursor:pointer}
.jst-dot{width:7px;height:7px;border-radius:50%}
.jobstatustoggle.is-complete{background:var(--green-bg);border-color:#BFE3CE;color:var(--green)}
.jobstatustoggle.is-complete .jst-dot{background:var(--green)}
.jobstatustoggle.is-incomplete{background:var(--amber-bg);border-color:#EFD5B5;color:var(--amber)}
.jobstatustoggle.is-incomplete .jst-dot{background:var(--amber)}

/* ---------- sub tabs ---------- */
/* v7.52: this bar had no overflow handling, so on a 375px phone it clipped. With his four
   store tabs the bar is 516px wide in a 328px box: Memos and the "Tabs" gear sat entirely
   past the edge, unhittable, and the page does not scroll sideways to reach them. The scroll
   fix already existed at .pane-tabs — but that is the DESKTOP pane bar (.ptab); a phone goes
   through #subtabs (.stab) and never sees it. Applied where phones actually land.
   -webkit-overflow-scrolling keeps the momentum flick iOS users expect. */
.subtabs{display:flex;gap:0;align-items:center;border-bottom:1px solid var(--line);margin-bottom:16px;
  flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
  scrollbar-width:none}
.subtabs::-webkit-scrollbar{display:none}
.subtabs>*{flex:0 0 auto}
.stab{display:inline-flex;align-items:center;gap:6px;padding:8px 13px;margin-bottom:-1px;
  color:var(--muted);font-size:13px;font-weight:500;border-bottom:2px solid transparent}
.stab:hover{color:var(--ink)}
.stab.active{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}
.stab-memos{margin-left:8px}
.stab-gear{margin-left:auto;color:var(--faint);font-size:12.5px}
.stab-gear:hover{color:var(--accent)}

/* ---------- tab content / file tree ---------- */
.galtools{display:flex;align-items:center;justify-content:space-between;gap:12px;
  flex-wrap:wrap;margin-bottom:12px}
.dlbar{display:flex;align-items:center;gap:10px}
.lbl{font-weight:600;font-size:13.5px}
.tab-count{font-size:11.5px;font-family:var(--mono);color:var(--faint)}
.chip{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--accent);
  font-weight:500;cursor:pointer}
.chip:hover{text-decoration:underline}
.headbtns{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tabsearch{padding:6px 10px;border:1px solid var(--line2);border-radius:var(--rs);
  font-size:12.5px;min-width:160px}
.tabsearch:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
/* phones: the tab toolbar stacks instead of overflowing off-screen — search full width,
   the action buttons wrap and grow to fill the row so they're easy to tap */
@media(max-width:760px){
  .galtools{flex-direction:column;align-items:stretch;gap:10px}
  .headbtns{width:100%}
  .headbtns .tabsearch{flex:1 1 100%;min-width:0;order:-1}
  .headbtns .btn{flex:1 1 auto;justify-content:center}
}
.invdrop{display:flex;align-items:center;justify-content:center;gap:8px;
  border:1.5px dashed var(--line2);border-radius:var(--rs);padding:13px;color:var(--faint);
  font-size:12.5px;margin-bottom:12px;transition:border-color .12s,background .12s}
.invdrop-ic{display:flex;color:var(--faint)}
.dropzone-hot{border-color:var(--accent)!important;background:var(--accent-bg)}
.nodetree{display:flex;flex-direction:column}
.nt-node{--depth:0}
.nt-row{display:flex;align-items:center;gap:8px;padding:7px 8px;padding-left:calc(8px + var(--depth)*22px);
  border-radius:var(--rs)}
.nt-row:hover{background:#F7F8FA}
.nt-caret{display:inline-flex;color:var(--faint);width:18px;height:18px;align-items:center;
  justify-content:center;transition:transform .12s}
.nt-caret.open{transform:rotate(90deg)}
.nt-caret-spacer{width:18px;flex:none}
.nt-title{font-weight:550;font-size:13px;cursor:text}
.nt-title:hover{color:var(--accent)}
.nt-file{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12.5px;max-width:340px}
.nt-file:hover .nt-fname{color:var(--accent);text-decoration:underline}
.nt-fname{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nt-nofile{color:var(--faint);font-size:12px;font-style:italic}
.nt-acts{margin-left:auto;display:flex;gap:2px;opacity:0}
.nt-row:hover .nt-acts{opacity:1}
.nt-kids.collapsed{display:none}
.extb{font-family:var(--mono);font-size:9px;font-weight:700;letter-spacing:.03em;
  padding:2px 5px;border-radius:4px;line-height:1}
.extb-red{background:#FCEBEA;color:#B42318}
.extb-blue{background:#EAF0FC;color:#1D4ED8}
.extb-green{background:var(--green-bg);color:var(--green)}
.extb-purple{background:#F3EBFC;color:#7526C9}
.extb-gray{background:#EDEFF3;color:var(--muted)}

/* upload modal picker */
.dropzone{border:1.5px dashed var(--line2);border-radius:var(--rs);padding:22px;text-align:center;
  color:var(--faint);font-size:13px;cursor:pointer;margin-bottom:12px;transition:border-color .12s}
.dropzone:hover,.dropzone.drag{border-color:var(--accent);background:var(--accent-bg);color:var(--accent)}
.filepreview{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.filepreview img{max-width:76px;max-height:76px;border-radius:var(--rs);border:1px solid var(--line)}
.fp-icon{display:flex}
.fp-name{font-size:12.5px;color:var(--ink2);word-break:break-all}

/* ---------- memos ---------- */
.memowrap{display:flex;flex-direction:column;gap:10px}
.memoadd{display:flex;gap:8px;align-items:flex-start}
.memoadd textarea{flex:1;padding:9px 11px;border:1px solid var(--line2);border-radius:var(--rs);
  font-size:13px;min-height:64px;resize:vertical}
.memoadd textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
/* v10.91 - a note box big enough to write in on a phone (owner: "Make the field boxes big enough to make sense"): full width,
   taller, 16px text (iOS zooms the page into anything smaller), the Add button under it */
@media (max-width:760px){
  .memoadd{flex-direction:column;align-items:stretch}
  .memoadd textarea{width:100%;box-sizing:border-box;font-size:16px;min-height:120px;padding:12px 13px}
  .memoadd .btn{align-self:flex-end;min-width:120px;min-height:42px}
  .pi-nform textarea{font-size:16px;min-height:110px}
  .pi-select,.pi-linkbox input{font-size:16px;min-height:42px}
  .pi-nform label{flex-basis:100%}
}
.memo{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:12px 36px 12px 14px;box-shadow:var(--sh)}
.mtext{font-size:13px;white-space:pre-wrap}
.mts{font-size:11px;font-family:var(--mono);color:var(--faint);margin-top:6px}
.mdel{position:absolute;top:9px;right:9px;color:var(--faint);width:22px;height:22px;
  border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:11px}
.mdel:hover{background:var(--danger-bg);color:var(--danger)}

/* ---------- section headers (directory/map/etc) ---------- */
.siteshead{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.siteshead-actions{display:flex;align-items:center;gap:10px}

/* ---------- directory ---------- */
/* v7.52: same clip as .subtabs — on a phone "Appearance" sat past the right edge, so the
   theme switch was desktop-only. */
.dirtabs{display:flex;gap:0;border-bottom:1px solid var(--line);margin-bottom:16px;
  flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
  scrollbar-width:none}
.dirtabs::-webkit-scrollbar{display:none}
.dirtabs>*{flex:0 0 auto}
.dirtab{padding:8px 13px;margin-bottom:-1px;color:var(--muted);font-size:13px;font-weight:500;
  border-bottom:2px solid transparent}
.dirtab.active{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}
.dir-actionbar{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.dirtable,#trashTableWrap table{width:100%;border-collapse:collapse}
.dirtable th,#trashTableWrap th{text-align:left;font-size:10.5px;font-weight:600;
  text-transform:uppercase;letter-spacing:.05em;color:var(--faint);
  padding:8px 10px;border-bottom:1px solid var(--line)}
.dirtable td,#trashTableWrap td{padding:9px 10px;border-bottom:1px solid var(--line);font-size:13px;
  color:var(--ink2)}
.dirtable tr:last-child td,#trashTableWrap tr:last-child td{border-bottom:none}
.dirtable tr:hover td,#trashTableWrap tr:hover td{background:#FAFBFC}
td.vend{font-weight:550;color:var(--ink)}
td.num,.num{font-family:var(--mono);font-size:12px}
td.c,th.c{text-align:center}
td.r,th.r{text-align:right}
.rowacts{display:inline-flex;gap:2px;justify-content:flex-end}
/* v7.73 — the "Send set-up email" pill on an Admin user row.
   It sits alongside three icon buttons, so it reads as an ACTION rather than another
   icon: bordered, in the accent colour, with the row's vertical rhythm. It only ever
   renders while that person still owes us a password, so a row full of settled users
   looks exactly as it did before. */
.rowacts .setupbtn{align-self:center;margin-right:6px;white-space:nowrap;cursor:pointer;
  font:600 12px/1 inherit;padding:7px 11px;border-radius:999px;
  background:var(--accent-soft,#EAF0FF);color:var(--accent,#2C5CE6);
  border:1px solid var(--accent-line,#C6D6FF)}
.rowacts .setupbtn:hover:not(:disabled){background:var(--accent,#2C5CE6);color:#fff}
.rowacts .setupbtn:disabled{opacity:.6;cursor:default}
@media (max-width:760px){.rowacts .setupbtn{font-size:11px;padding:6px 9px}}
.rolegroup{margin-bottom:20px}
.rolehdr{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:650;
  text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:8px}
.rolen{font-family:var(--mono);font-size:10.5px;color:var(--faint);background:#EDEFF3;
  padding:0 6px;border-radius:8px;line-height:16px}
.rolehdr .dir-blockboss{margin-left:auto;font-size:12px;text-transform:none;letter-spacing:0;
  font-weight:500;color:var(--ink2);max-width:240px;padding:4px 8px}
/* PWA "install to home screen" hint — dismissible, once */
.install-hint{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));
  z-index:9000;display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:var(--surface);border:1px solid var(--line2);border-radius:12px;
  box-shadow:0 10px 34px rgba(0,0,0,.20);padding:11px 13px;font-size:13px;color:var(--ink2)}
.install-hint .ih-msg{line-height:1.35}
.install-hint .ih-acts{display:flex;gap:6px;flex:none;align-items:center}
@media(min-width:640px){.install-hint{left:auto;max-width:440px}}
/* read-only "other stores in your org" section (DM/DO/DMO see the whole list) */
.ro-sechdr{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:650;
  text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:24px 0 8px}
.ro-note{font-weight:400;text-transform:none;letter-spacing:0;color:var(--faint);font-size:11.5px}
.ro-tbl td.vend{color:var(--ink2)}          /* muted a touch — it's reference only */
.daysleft{font-family:var(--mono);font-size:11.5px;color:var(--muted)}
.daysleft.soon{color:var(--danger);font-weight:600}

/* ---------- settings ---------- */
.settings-intro{font-size:13px;color:var(--muted);margin-bottom:14px;max-width:640px;line-height:1.55}
.settings-foot{display:flex;justify-content:flex-end;gap:8px;margin-top:16px;
  padding-top:14px;border-top:1px solid var(--line)}
/* -- */
/* confusion-audit copy fixes */
.memberscope{background:var(--accent-bg);border:1px solid var(--line2);border-radius:10px;
  padding:10px 13px;margin:0 0 12px;font-size:13px;color:var(--ink2);line-height:1.5}
.nt-noai{font-size:10.5px;color:var(--faint);border:1px solid var(--line);border-radius:6px;
  padding:1px 6px;white-space:nowrap;cursor:help}

/* Reminders settings page — one place for who-gets-notified */
.rem-hero{margin-bottom:14px}
.rem-hero h3{margin:0 0 4px;font-size:16px;color:var(--ink)}
.rem-hero p{font-size:13px;color:var(--muted);line-height:1.55;max-width:700px;margin:0}
.rem-note{background:var(--amber-bg);border:1px solid var(--line2);border-radius:10px;
  padding:12px 14px;font-size:12.5px;line-height:1.55;color:var(--ink2);margin-bottom:14px;max-width:700px}
.rem-legend{margin:6px 0 10px;font-size:12px}
.tabgrp-hd{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);margin:16px 0 6px;padding-bottom:4px;border-bottom:1px solid var(--line)}
.remlist{display:flex;flex-direction:column;gap:8px}
.remrow{display:grid;grid-template-columns:220px 1fr;gap:16px;align-items:start;
  padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.remtab{display:flex;flex-direction:column;gap:3px}
.remtab-name{font-weight:650;font-size:14px;color:var(--ink)}
.remtab-who{font-size:11.5px;color:var(--accent);font-weight:650}
.remtab-who.all{color:var(--muted);font-weight:500}
.remroles{display:flex;flex-wrap:wrap;gap:7px}
.remchip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border:1px solid var(--line2);
  border-radius:999px;font-size:12.5px;cursor:pointer;user-select:none;background:var(--bg);color:var(--ink2)}
.remchip.on{border-color:var(--accent);background:var(--accent-bg);color:var(--accent-d);font-weight:650}
.remchip input{margin:0}
.rem-cal{margin-top:18px;padding:14px;border:1px dashed var(--line2);border-radius:12px;background:var(--bg)}
.rem-cal h4{margin:0 0 4px;font-size:14px;color:var(--ink)}
.rem-cal p{margin:0;font-size:12.5px;color:var(--muted);line-height:1.55;max-width:700px}
@media(max-width:640px){.remrow{grid-template-columns:1fr;gap:8px}}
/* ---- Permits tab: type banners + current/renewal grid ---- */
.pt-tools{margin:10px 0 2px}
.pt-tools .tabsearch{width:min(360px,100%)}
.pt-list{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.pt-banner{border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden}
.pt-banner.pt-empty{background:var(--bg)}
.pt-head{display:flex;align-items:center;gap:8px;padding:7px 11px;cursor:pointer;
  flex-wrap:wrap;min-height:38px}
.pt-head.pt-noexp{cursor:default}
.pt-head[data-pt]:hover{background:var(--accent-bg)}
.pt-caret{display:inline-flex;transition:transform .15s;color:var(--muted);flex-shrink:0}
.pt-caret.open{transform:rotate(90deg)}
.pt-caret-spacer{width:14px;flex-shrink:0}
.pt-name{font-weight:650;font-size:13.5px;color:var(--ink)}
.pt-exp{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.pt-exp.pt-late{color:var(--danger);font-weight:650}
.pt-inup{padding:2px 9px}
.pt-spring{flex:1}
.pt-body{border-top:1px solid var(--line)}
.pt-body.collapsed{display:none}
.pt-tbl{width:100%;border-collapse:collapse;font-size:13px;table-layout:auto}
.pt-tbl thead th{text-align:left;font-size:9.5px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:var(--faint);padding:6px 9px 4px;border-bottom:1px solid var(--line)}
.pt-tbl thead th.ptc-acth{text-align:right}
.pt-tbl td{padding:9px;border-bottom:1px solid var(--line);vertical-align:middle}
.pt-tbl tr:last-child td{border-bottom:none}
.ptc-row{font-weight:650;color:var(--ink);white-space:nowrap;width:96px}
/* let the browser distribute the row's slack across the data columns instead of
   dumping it all into File (which squished Permit # to a wrapping 1% column) */
.ptc-num{font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap;padding-right:22px}
.ptc-exp{font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap;padding-right:22px}
.ptc-exp.pt-late{color:var(--danger);font-weight:650}
.ptc-file{width:40%}                        /* holds the chips; keeps num/exp roomy */
.ptfiles{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.ptc-act{white-space:nowrap;text-align:right}
.pt-tbl thead th.ptc-num,.pt-tbl thead th{white-space:nowrap}
.ptblank td{color:var(--muted)}
/* file chips + row actions: copied 1:1 from the roofing invoice table (.rhinv) */
.pt-tbl .filechip{display:inline-flex;align-items:center;gap:4px;background:#f6f8fb;
  border:1px solid var(--line2);border-radius:7px;padding:2px 4px 2px 8px}
.pt-tbl .filechip .flink{color:#0a66c2;cursor:pointer;font-weight:600;font-size:12px;text-decoration:none}
.pt-tbl .filechip .flink:hover{text-decoration:underline;color:var(--accent)}
.pt-tbl .filemini{background:transparent;border:none;color:var(--faint);font-size:11px;
  cursor:pointer;padding:0 1px;line-height:1;border-radius:4px}
.pt-tbl .filemini.del:hover{color:var(--danger)}
.pt-tbl .rowacts{display:flex;gap:6px;justify-content:flex-end}
.pt-tbl .rowacts .iconb{background:none;border:1px solid var(--line2);border-radius:6px;
  padding:4px 8px;font-size:14px;color:var(--muted);line-height:1;cursor:pointer}
.pt-tbl .rowacts .iconb:hover{border-color:var(--accent);color:var(--accent);background:none}
.ptchip{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:600;
  padding:3px 10px;border-radius:8px;background:var(--bg);border:1px solid var(--line2);color:var(--ink2);
  text-decoration:none;white-space:nowrap}
.ptchip.add{border-style:dashed;cursor:pointer;color:var(--muted);background:none}
.ptchip.add:hover{border-color:var(--accent);color:var(--accent)}
.nofile{color:var(--faint)}
.pt-mini{padding:2px 9px;font-size:11.5px}
@media(max-width:640px){
  .pt-tbl thead{display:none}
  .pt-tbl,.pt-tbl tbody,.pt-tbl tr,.pt-tbl td{display:block;width:auto}
  .pt-tbl tr{border:1px solid var(--line);border-radius:9px;margin:0 0 8px;padding:4px 10px;background:var(--surface)}
  .pt-tbl td{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px dashed var(--line);padding:6px 0}
  .pt-tbl tr td:last-child{border-bottom:none}
  .pt-tbl td::before{content:attr(data-label);font-size:11px;font-weight:700;color:var(--faint)}
  .ptc-row{width:auto;font-size:13px}
  .ptc-row::before{content:"Row"}
  .ptc-act{text-align:left}
  .pt-tbl .rowacts .iconb{width:32px;height:32px;font-size:16px}
}
.pt-lbl{font-size:9.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
.pt-main{font-weight:650;font-size:12.5px;color:var(--ink);word-break:break-word}
.pt-sub{font-size:12px;color:var(--ink2)}
.pt-sub.pt-late,.pt-sub.pt-late b{color:var(--danger)}
.pt-none{font-size:12.5px;color:var(--muted);font-style:italic}
.pt-links{display:flex;align-items:center;gap:10px;margin-top:2px}
.pdflink{color:var(--accent);font-weight:650;font-size:12.5px;text-decoration:underline;text-underline-offset:2px}
.pdflink:hover{color:var(--accent-d)}
.pt-otherhdr{margin:16px 0 6px;font-size:12.5px;font-weight:650;color:var(--muted)}
.pt-readhdr{margin:16px 0 6px;font-size:12.5px;font-weight:650;color:var(--accent);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.pt-readhdr .dim{font-weight:500}
.pt-readhdr svg{flex:none;animation:pt-pulse 1.3s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.pt-readhdr svg{animation:none}}
@keyframes pt-pulse{0%,100%{opacity:.4}50%{opacity:1}}
/* history modal */
.pth-list{display:flex;flex-direction:column;gap:8px;max-height:56vh;overflow:auto}
.pth-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;border:1px solid var(--line);
  border-radius:9px;padding:9px 11px;font-size:13px}
.pth-title{font-weight:650;min-width:0;overflow-wrap:anywhere}
.pth-ends{color:var(--ink2);font-size:12px}
.pth-acts{margin-left:auto;display:flex;align-items:center;gap:9px}
.pth-pay{min-width:0;overflow-wrap:anywhere}
.pt-histbtn{border:1px solid var(--line2);background:var(--surface);flex-shrink:0}
.pt-banner.pt-offb{opacity:.55}
.pt-tools{display:flex;align-items:center;gap:8px}
.rowacts .rpbtn{font-size:15px;font-weight:700}
/* home: Set up card (missing permit checklist lines) */
.setupbox{border:1px solid var(--amber);background:var(--amber-bg);border-radius:12px;
  padding:12px 14px;margin:14px 0}
.setupbox-head{font-weight:700;font-size:14px;color:var(--amber);display:flex;align-items:center;gap:8px;margin-bottom:8px}
.setupbox-body{display:flex;flex-direction:column;gap:6px}
.setuprow{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;cursor:pointer;
  padding:7px 9px;border-radius:8px;background:var(--surface)}
.setuprow:hover{background:var(--accent-bg)}
.setup-store{font-weight:650;font-size:13px;white-space:nowrap}
.setup-miss{display:flex;flex-wrap:wrap;gap:4px}
.pth-pays{flex-basis:100%;display:flex;flex-direction:column;gap:4px;margin-top:3px;
  padding:6px 9px;background:var(--bg);border-radius:7px}
.pth-pay{font-size:12.5px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
/* event form: role chips in "Visible to" */
.vtroles{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:7px}
.vtroles:empty{display:none}
.vtrole{padding:4px 11px;border:1px solid var(--line2);border-radius:999px;background:var(--bg);
  font-size:12.5px;cursor:pointer;color:var(--ink2)}
.vtrole.on{border-color:var(--accent);background:var(--accent-bg);color:var(--accent-d);font-weight:650}


/* role editor: company dropdowns with their tabs/services inside */
.rolecob{border:1px solid var(--line);border-radius:10px;margin-bottom:6px;background:var(--surface)}
.rolecob-hd{display:flex;align-items:center;gap:9px;padding:8px 12px;cursor:pointer;list-style:none}
.rolecob-hd::-webkit-details-marker{display:none}
.rolecob-hd::before{content:"▸";color:var(--muted);font-size:11px;transition:transform .15s}
.rolecob[open] .rolecob-hd::before{transform:rotate(90deg)}
.rolecob-name{font-weight:650;font-size:13.5px}
.rolecob-body{padding:2px 12px 10px;border-top:1px dashed var(--line)}
.rolecob-sub{font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);margin:8px 0 3px}
/* permit-types modal: per-type scope row + inline store picker */
.ptt-row{border:1px solid var(--line);border-radius:10px;margin-bottom:7px;background:var(--surface)}
.ptt-row.ptt-off{opacity:.62}
.ptt-head{display:flex;align-items:center;gap:9px;padding:9px 11px}
.ptt-name{font-weight:650;font-size:13.5px;flex:1}
.ptt-count{border:1px solid var(--line2);background:var(--bg);border-radius:999px;padding:3px 12px;
  font-size:12px;font-weight:600;color:var(--accent-d);cursor:pointer;white-space:nowrap}
.ptt-count.off{color:var(--muted)}
.ptt-count:hover{background:var(--accent-bg)}
.ptt-panel{border-top:1px dashed var(--line);padding:8px 12px;display:flex;flex-direction:column;gap:5px}
.ptt-rad{display:flex;align-items:center;gap:8px;font-size:13px;cursor:pointer}
.ptt-pick{max-height:200px;overflow:auto;border:1px solid var(--line);border-radius:8px;
  margin-top:4px;padding:4px 8px;background:var(--bg)}
.ptt-add{display:flex;gap:8px;margin-top:10px}
.ptt-add input{flex:1}
@media(max-width:760px){.ptt-add{flex-wrap:wrap}.ptt-add input{flex:1 1 100%}}   /* v8.95 — "+ Add" clipped at 390 (phone audit F) */
.ticrow.ticsub{margin-left:22px;font-size:12.5px}
/* directory: give-login key button */
.iconb.ivkey{color:var(--accent)}
@media(max-width:640px){.pt-grid{grid-template-columns:1fr}}
.colist{display:flex;flex-direction:column;gap:8px}
.corow{display:flex;align-items:center;gap:13px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r);padding:11px 13px}
.co-logo{width:40px;height:40px;object-fit:contain;border-radius:var(--rs);
  border:1px solid var(--line);background:#fff;flex:none}
.co-logo-ph{width:40px;height:40px;border-radius:var(--rs);border:1px dashed var(--line2);
  display:flex;align-items:center;justify-content:center;font-size:9px;color:var(--faint);
  flex:none;text-align:center}
.co-main{flex:1;display:flex;flex-direction:column;gap:1px}
.co-name{font-size:13.5px;font-weight:600;border:1px solid transparent;border-radius:var(--rs);
  padding:3px 7px;background:transparent}
.co-name:hover,.co-name:focus{border-color:var(--line2);background:var(--bg);outline:none}
.co-sub{font-size:11px;font-family:var(--mono);color:var(--faint);padding-left:7px}
.co-acts{display:flex;align-items:center;gap:6px}
.tabrows{display:flex;flex-direction:column;gap:6px}
.tabrow{display:flex;align-items:center;gap:8px;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--rs);padding:7px 9px}
.tabname{flex:1;border:1px solid var(--line2);border-radius:var(--rs);padding:6px 9px;font-size:13px}
.tabname:focus{outline:none;border-color:var(--accent)}
.deftoggle{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--ink2);
  white-space:nowrap;cursor:pointer}
.dangerzone{margin-top:28px;padding-top:16px;border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:7px;align-items:flex-start}
.dz-lbl{font-size:10.5px;font-weight:650;text-transform:uppercase;letter-spacing:.07em;color:var(--danger)}
/* v8.98 — the upload link ON each permit banner: click to copy */
.pt-linkchip{display:inline-flex;align-items:center;gap:5px;text-decoration:none;
  padding:3px 9px;border:1px solid var(--line2);border-radius:999px;background:var(--bg);
  color:var(--muted);font-size:11.5px;cursor:pointer;flex:0 1 auto;min-width:0}
.pt-linkchip:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-bg)}
/* plain left-to-right: `direction:rtl` put the ellipsis at the front but REVERSED the
   segments, so the link read "u/~tok/host" — a link shown backwards is worse than a
   truncated one. It ellipsises at the end like any other address. */
.pt-linkurl{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
@media(max-width:760px){.pt-linkchip{max-width:100%;order:99;flex-basis:100%;justify-content:flex-start}}
/* v8.98 — Reminders: tick PEOPLE (Restaurants); the permit upload-link modal */
.rp-dd{position:relative;display:inline-block}
.rp-menu{position:absolute;z-index:40;top:calc(100% + 4px);left:0;min-width:270px;max-height:280px;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:4px}
.rp-menu.hidden{display:none!important}
.rp-item{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;cursor:pointer;font-size:13px}
.rp-item:hover{background:var(--bg)} .rp-name{font-weight:600} .rp-mail{margin-left:auto;color:var(--muted);font-size:11.5px}
.rempeople{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap}
.rem-legacy{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  font-size:12.5px;line-height:1.45;padding:8px 11px;margin:6px 0 0;border-radius:9px;
  background:#FFF7E6;border:1px solid #F0D9A8;color:#6B4E10}
.rem-legacy.spent{background:var(--bg);border-color:var(--line);color:var(--muted)}
.rem-legacy .btn{flex:none;margin-left:auto}
.rp-chips{display:flex;gap:6px;flex-wrap:wrap;align-items:center;min-height:28px}
.remchip.person{cursor:default}
.plink-hist{display:flex;flex-direction:column;gap:4px;max-height:220px;overflow:auto}
.plink-row{display:grid;grid-template-columns:128px 1fr 2fr;gap:8px;font-size:12.5px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;align-items:center}
.plink-row.no{border-color:#e6b3b3;background:#fff5f5} .plink-when{color:var(--muted)} .plink-who{font-weight:600}
@media(max-width:600px){.plink-row{grid-template-columns:1fr;gap:2px}}
/* v8.97 — Admin → Edit user → "Access by business unit": one block per unit */
.uacc-list{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.uacc{border:1px solid var(--line);border-radius:10px;padding:8px 10px;background:var(--bg)}
.uacc-hd{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.uacc-hd .filtersel{max-width:260px}
.uacc-body{margin-top:6px;border-top:1px dashed var(--line);padding-top:6px}
.uacc-body[hidden]{display:none!important}
.uacc-row{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:4px 0}
.uacc-lbl{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.05em;color:var(--ink2);min-width:56px}
.ticrow.inline{display:inline-flex;padding:4px 8px;gap:6px;background:transparent;border:1px solid var(--line);border-radius:8px;font-size:12.5px}
.ticklist{display:flex;flex-direction:column;gap:6px;margin-top:6px}
.ticrow{display:flex;align-items:center;gap:9px;padding:9px 11px;background:var(--bg);
  border:1px solid var(--line);border-radius:var(--rs);font-size:13.5px;cursor:pointer}
/* v7.05 per-store permit tracker: a ticked (shown-here) row reads as active */
.ptrk-row.on{border-color:var(--green2,#2E9E6B);background:rgba(46,158,107,.07)}
.ptrk-row .mintag{font-weight:500}

/* ---------- map ---------- */
.mapwrap{display:flex;height:calc(100vh - 230px);min-height:440px;border:1px solid var(--line);
  border-radius:var(--r);overflow:hidden;box-shadow:var(--sh)}
.mappanel{width:264px;flex:none;background:var(--surface);border-right:1px solid var(--line);overflow-y:auto}
.mp-head{padding:13px 14px 7px;font-size:10.5px;font-weight:650;text-transform:uppercase;
  letter-spacing:.07em;color:var(--faint)}
.mp-co{border-bottom:1px solid var(--line)}
.mp-co.hidden-co{opacity:.45}
.mp-co-head{display:flex;align-items:center;gap:7px;padding:8px 11px}
.mp-eye{display:inline-flex;color:var(--faint);width:24px;height:24px;align-items:center;
  justify-content:center;border-radius:4px}
.mp-eye:hover{background:#EDEFF3;color:var(--ink)}
.mp-logo{width:20px;height:20px;object-fit:contain;border-radius:3px;flex:none}
.mp-logo-ph{width:20px;height:20px;border-radius:3px;background:#EDEFF3;flex:none}
.mp-co-name{font-weight:600;font-size:12.5px;flex:1}
.mp-co-n{font-family:var(--mono);font-size:10.5px;color:var(--faint)}
.mp-caret{display:inline-flex;color:var(--faint);transition:transform .12s}
.mp-caret.closed{transform:rotate(-90deg)}
.mp-stores{padding-bottom:6px}
.mp-stores.collapsed{display:none}
.mp-store{padding:5px 12px 5px 42px;font-size:12.5px;color:var(--ink2);cursor:pointer}
.mp-store:hover{background:#F7F8FA;color:var(--accent)}
.mp-empty{padding:3px 12px 3px 42px;font-size:11.5px;color:var(--faint);font-style:italic}
.mapcanvas{flex:1;position:relative}
.mapcanvas.loadingmap::after{content:"Locating stores…";position:absolute;top:12px;left:50%;
  transform:translateX(-50%);z-index:500;background:var(--ink);color:#fff;padding:5px 14px;
  border-radius:20px;font-size:12px;font-weight:500}
.logopin{background:transparent;border:none}
.pinwrap{display:flex;flex-direction:column;align-items:center}
.pinlogo{width:24px;height:24px;object-fit:contain;background:#fff;border:1px solid var(--ink);
  border-radius:5px;box-shadow:0 1px 5px rgba(16,24,40,.3)}
.pindot{width:12px;height:12px;border-radius:50%;background:var(--accent);border:2px solid #fff;
  box-shadow:0 1px 4px rgba(16,24,40,.35)}
.pinstem{width:1.5px;height:7px;background:var(--ink)}
/* clustering: a count bubble stands in for a group of overlapping store pins */
.clusterwrap{background:transparent;border:none;cursor:pointer}
.cluster-bubble{min-width:28px;height:28px;padding:0 7px;border-radius:15px;background:#1f3a5f;color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;line-height:1;
  border:2px solid #fff;box-shadow:0 2px 6px rgba(16,24,40,.45);font-variant-numeric:tabular-nums}
.cluster-bubble:hover{background:#264b7a}
.mappop{font-size:12.5px;line-height:1.55}
.mappop a{font-weight:550}

/* ---------- calendar ---------- */
.calwrap{display:flex;gap:14px;align-items:flex-start}
.calmain{flex:1;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--sh);overflow:hidden}
/* v7.52: no flex-wrap meant "+ Add event" and the search box were pushed off a 375px
   screen — you could not add or search a calendar event from a phone at all. The mobile
   rule that puts search on its own row (.calsearchwrap{flex:1 1 100%;order:5}) was written
   long ago but was inert, because wrapping was never enabled. One missing declaration. */
.caltop{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;
  gap:16px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.calnav{display:flex;align-items:center;gap:4px}
.calnav .iconb{font-size:17px;width:30px;height:30px}
.caltitlewrap{position:relative}
.caltitle{font-size:18px;font-weight:650;background:var(--surface);border:1px solid var(--line);cursor:pointer;color:var(--ink);
  display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:9px;box-shadow:var(--sh)}
.caltitle:hover{border-color:var(--accent);color:var(--accent)}
.caltitle .caret{font-size:12px;color:var(--muted)}
.caltitle:hover .caret{color:var(--accent)}
/* calendar event search */
.calsearchwrap{position:relative;margin-left:auto;margin-right:10px}
.calsearch{font-size:13.5px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;
  background:var(--surface);min-width:260px}
.calsearch:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
.calsearch-res{position:absolute;top:calc(100% + 5px);right:0;left:auto;z-index:40;
  width:min(460px,88vw);max-height:min(560px,68vh);overflow-y:auto;
  background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 32px rgba(16,24,40,.22)}
.calsearch-res.hidden{display:none}
.calsearch-item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 14px;text-align:left;
  border-bottom:1px solid var(--line);font-size:14px}
.calsearch-item:last-child{border-bottom:none}
.calsearch-item:hover{background:var(--bg)}
.calsearch-item .csi-date{font-family:var(--mono);font-size:12px;color:var(--muted);flex:none;width:98px}
.calsearch-item .csi-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.calsearch-empty{padding:12px;font-size:12.5px;color:var(--muted);text-align:center}
.calpick{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);z-index:30;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px rgba(16,24,40,.22);
  padding:12px;width:264px}
.calpick-yr{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.calpick-yr span{font-weight:700;font-size:15px}
.calpick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.calpick-mo{padding:9px 0;font-size:13px;font-weight:600;border:1px solid var(--line);border-radius:8px;
  background:var(--surface);color:var(--ink2);cursor:pointer;transition:.1s}
.calpick-mo:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-bg)}
.calpick-mo.active{background:var(--accent);border-color:var(--accent);color:#fff}
.calpick-yrbtn{display:inline-flex;align-items:center;gap:4px;font-weight:700;font-size:15px;
  background:none;border:none;cursor:pointer;color:var(--ink);padding:4px 8px;border-radius:8px}
.calpick-yrbtn:hover{background:var(--accent-bg);color:var(--accent)}
.calpick-yrbtn .caret{font-size:10px;color:var(--faint)}
.calpick-yrs .calpick-mo{padding:11px 0}
.calgrid{display:grid;grid-template-columns:repeat(7,1fr)}
.calhead{border-bottom:1px solid var(--line);background:#FAFBFC}
.caldow{padding:8px 10px;font-size:11px;font-weight:650;text-transform:uppercase;
  letter-spacing:.05em;color:var(--faint);text-align:right}
.calcell{min-height:max(118px,calc((100vh - 380px)/6));border-right:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:6px;cursor:pointer;overflow:hidden}
.calcell:nth-child(7n){border-right:none}
.calcell:hover{background:#FAFBFC}
.calcell.empty{background:#FAFBFC;cursor:default}
.caldaynum{font-size:13px;font-family:var(--mono);color:var(--muted);text-align:right;padding:1px 4px}
.calcell.today .caldaynum{background:var(--accent);color:#fff;border-radius:50%;width:22px;height:22px;
  display:inline-flex;align-items:center;justify-content:center;margin-left:auto;font-weight:600}
.calevs{display:flex;flex-direction:column;gap:2px;margin-top:2px}
.calchip{font-size:11.5px;background:var(--accent-bg);color:var(--accent-d);border-left:2px solid var(--accent);
  border-radius:3px;padding:2px 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.7}
.chiptime{font-family:var(--mono);font-size:9.5px;margin-right:3px;opacity:.8}
.calchip.allday{background:var(--accent);color:#fff;border-left:none;font-weight:600}
.calchip .evlock{font-size:9px;margin-right:2px}
.calchip.ev-restricted{border-left-style:dashed}
.calmore{font-size:10px;color:var(--faint);font-weight:600;padding-left:4px}
.calside{width:300px;flex:none;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--sh);padding:14px}
.calside-hd{font-size:10.5px;font-weight:650;text-transform:uppercase;letter-spacing:.07em;
  color:var(--faint);margin-bottom:8px}
.uprow{display:flex;gap:11px;padding:8px 5px;border-radius:var(--rs);cursor:pointer;align-items:center}
.uprow:hover{background:#F7F8FA}
.update{flex:none;width:38px;text-align:center;background:var(--bg);border:1px solid var(--line);
  border-radius:var(--rs);padding:3px 0}
.upmo{display:block;font-size:8.5px;font-weight:700;text-transform:uppercase;color:var(--accent);
  letter-spacing:.04em}
.upday{display:block;font-size:16px;font-weight:650;font-family:var(--mono);line-height:1.1}
.upmain{min-width:0}
.uptitle{font-weight:550;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.upmeta{font-size:11px;color:var(--faint);font-family:var(--mono)}
/* ---------- money breakdown ---------- */
.kpirow{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.kpi{flex:1;min-width:150px;background:var(--surface);border:1px solid var(--line);border-radius:12px;
  padding:16px 20px;box-shadow:var(--sh)}
.kpi .kv{font-size:26px;font-weight:750;font-family:var(--mono);letter-spacing:-.02em}
.kpi .kv.green{color:var(--green)}
.kpi .kv.red{color:var(--danger)}
.kpi .kl{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-top:3px}
.seg{display:inline-flex;background:var(--bg);border:1px solid var(--line);border-radius:9px;padding:2px}
.segbtn{font-size:12.5px;font-weight:600;color:var(--muted);padding:6px 13px;border-radius:7px}
.segbtn.active{background:var(--surface);color:var(--ink);box-shadow:var(--sh)}
.bkpanel{margin-bottom:16px}
.bkhead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.bkhead h3{font-size:14.5px;font-weight:700}
.bkhead h3 .sub{font-size:12px;font-weight:500;color:var(--faint)}
.bkhead-tot{font-size:12.5px;font-family:var(--mono);color:var(--ink2)}
.bkhead-tot .green{color:var(--green)}.bkhead-tot .red{color:var(--danger)}
.bktable td,.bktable th{white-space:nowrap}
.taxpill{font-size:10px;font-weight:700;padding:1px 8px;border-radius:9px;text-transform:uppercase;letter-spacing:.3px}
.taxpill.tax-Taxed{background:#fdeee6;color:var(--amber)}
.taxpill.tax-Non-Taxed{background:var(--green-bg);color:var(--green)}
/* multi-view toggle above the store windows */
.mvbar{display:flex;justify-content:flex-end;padding:0 2px 8px}
.mvtog{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--muted);
  cursor:pointer;user-select:none;background:var(--surface);border:1px solid var(--line);
  border-radius:20px;padding:5px 12px;box-shadow:var(--sh)}
.mvtog input{accent-color:var(--accent);width:14px;height:14px;margin:0}
.mvbar+.panes{height:calc(100vh - 168px)}
/* ---------- floating assistant (bottom-right bubble + pop-out) ---------- */
#astDock{position:fixed;right:22px;bottom:calc(22px + env(safe-area-inset-bottom));z-index:640}
#astDock.hidden{display:none}
#astBubble{width:56px;height:56px;border-radius:50%;background:var(--ink,#161C26);color:#C9A03D;border:none;
  box-shadow:0 6px 22px rgba(16,24,40,.38);cursor:pointer;display:flex;align-items:center;justify-content:center;
  transition:transform .1s}
#astBubble:hover{transform:scale(1.07)}
#astBubble.hidden{display:none}
#astBubble svg{width:26px;height:26px}
#astPanel{position:fixed;right:22px;bottom:calc(22px + env(safe-area-inset-bottom));width:min(392px,calc(100vw - 28px));
  height:min(560px,calc(100vh - 110px));background:var(--surface,#fff);border:1px solid var(--line,#dde);
  border-radius:16px;box-shadow:0 14px 44px rgba(16,24,40,.32);display:flex;flex-direction:column;overflow:hidden}
#astPanel.hidden{display:none}
.astp-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;
  background:#161C26;color:#fff;flex:none}
.astp-title{display:flex;align-items:center;gap:8px;font-weight:650;font-size:13.5px}
.astp-title svg{color:#C9A03D;width:17px;height:17px}
.astp-acts{display:flex;gap:2px}
.astp-acts .iconb{color:#fff;opacity:.8;width:27px;height:27px;font-size:13px}
.astp-acts .iconb:hover{opacity:1;background:rgba(255,255,255,.14)}
#astPanel .astlog{flex:1;overflow-y:auto;padding:12px;min-height:0}
#astPanel .astsuggest{padding:4px 12px 0;display:flex;flex-wrap:wrap;gap:6px;flex:none}
#astPanel .astbar{padding:10px 12px;border-top:1px solid var(--line,#dde);display:flex;gap:8px;flex:none;margin-top:6px}
#astPanel .astbar textarea{flex:1;resize:none;min-height:38px}
@media(max-width:760px){
  #astDock{right:12px;bottom:12px}
  #astPanel{right:8px;bottom:8px;width:calc(100vw - 16px);height:min(72vh,560px)}
}
/* calendar page stretches to the window instead of the narrow app column */
#calendarView{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding:0 clamp(16px,3vw,44px)}
/* company logo on calendar items — tells whose event it is at a glance */
.evlogo{width:15px;height:15px;object-fit:contain;border-radius:3px;background:#fff;
  border:1px solid var(--line);display:inline-block;vertical-align:-3px;margin-right:4px}
@media(max-width:900px){.calside{display:none}}

/* ---------- upload progress overlay ---------- */
.uploadov{background:rgba(16,24,32,.55)}
.upcard{background:var(--surface);border-radius:10px;padding:28px 32px;min-width:320px;
  display:flex;flex-direction:column;align-items:center;gap:12px;
  box-shadow:0 20px 50px rgba(16,24,40,.3);margin:auto}
.upspin{width:26px;height:26px;border:3px solid var(--line);border-top-color:var(--accent);
  border-radius:50%;animation:spin .8s linear infinite}
.upspin.spinfast{animation-duration:.45s}
@keyframes spin{to{transform:rotate(360deg)}}
.uptitle{font-weight:600;font-size:14px}
.upbarwrap{width:100%;height:5px;background:var(--line);border-radius:3px;overflow:hidden}
.upbar{height:100%;background:var(--accent);border-radius:3px;transition:width .15s}
.uppct{font-family:var(--mono);font-size:12px;color:var(--muted)}
.upnote{font-size:11.5px;color:var(--faint)}

/* vendor dropdown (legacy, kept minimal) */
.vendwrap{display:flex;gap:8px}
.vdrop{position:relative;flex:1}
.vdrop-input{width:100%;padding:8px 28px 8px 10px;border:1px solid var(--line2);border-radius:var(--rs)}
.vdrop-caret{position:absolute;right:4px;top:4px;color:var(--faint);width:24px;height:24px}
.vdrop-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--surface);
  border:1px solid var(--line2);border-radius:var(--rs);box-shadow:0 8px 24px rgba(16,24,40,.12);
  max-height:200px;overflow-y:auto;z-index:50}
.vdrop-opt{padding:7px 11px;font-size:13px;cursor:pointer}
.vdrop-opt:hover,.vdrop-opt.hot{background:var(--accent-bg)}
.vdrop-empty{padding:9px 11px;font-size:12px;color:var(--faint)}

/* focus visibility + reduced motion */
:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
/* v8.90 — the fresh-relaunch flash guard: the head script hides the shell until boot
   decides to stay (reveal) or redirect to /login (navigate away). */
html.relay-prelogin body{visibility:hidden}
/* v8.92 — Admin Users row actions: four BOXED buttons, identical on every row so they
   line up column-for-column (no conditional fifth button; nowrap so nothing folds). */
.rowacts-box{display:flex;gap:6px;flex-wrap:nowrap;justify-content:flex-end;align-items:center}
/* v8.95 — inside the phone's stacked Admin cards the four buttons wrap instead of the
   fourth clipping through the card edge (phone audit E) */
@media(max-width:820px){.rowacts-box{flex-wrap:wrap;justify-content:flex-start;row-gap:6px}}
.btn.boxed{background:var(--surface);border:1px solid var(--line2);color:var(--ink2);
  border-radius:6px;white-space:nowrap;box-shadow:none}
.btn.boxed:hover{background:var(--wash,#F2F3F5);border-color:var(--muted)}
.btn.boxed.dgr{color:var(--danger,#C5221F);border-color:#EBC8C4}
.btn.boxed.dgr:hover{background:var(--danger-bg,#FCEBEA)}
/* v8.93 — a reminder role chip that belongs to another business unit (ticked before the
   per-unit filter existed): shown flagged so it can be unticked, never silently counted */
.remchip.foreign{border-style:dashed;opacity:.85}
/* v8.90 — labeled selects on a company row (Business unit + Group) */
.co-field{display:flex;flex-direction:column;gap:2px}
.co-field-lbl{font-size:10.5px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:var(--ink3,#8A9099)}
/* v8.84 — the avatar menu's nav rows are the MOBILE stand-ins for the top-bar buttons
   (owner: "only when theyre not on the top bar, then show it here"). On desktop the top
   bar shows them, so the menu copies hide; the 760px block below turns them back on
   exactly when the top-bar nav collapses. .hidden (workspace/role gating) still wins
   everywhere — it is display:none!important. */
.top.has-user .ud-nav{display:none}
/* v8.95 — the six-button bar + avatar needs ~920px; between 761 and ~910px (an iPad in
   portrait is 768) the avatar and Requests sat OFF-SCREEN with no way to scroll to them
   (phone audit A). The bar's nav collapses into the avatar menu from 920px down, not 760. */
@media(max-width:920px){
  .top.has-user .topright > .btn.nav{display:none}
  .top.has-user .ud-nav{display:flex}
  .top.has-user .topright{gap:6px}
  .top.has-user .topright > #settingsBtn,
  .top.has-user .topright > #archiveBtn{display:inline-flex;padding:6px}
}
/* v8.86 — the workspace unit-kind selector */
.wsrow-kind{font-size:12px;max-width:220px}
/* v8.84 — the tutorial chooser's two stacked options */
.tutpick{display:flex;flex-direction:column;gap:8px}
.tutopt{display:block;text-align:left;padding:10px 12px}
.tutopt>b{display:block;font-size:13.5px}
.tutopt>span{display:block;font-size:11.5px;color:var(--ink3,#8A9099);margin-top:2px;white-space:normal}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
@media(max-width:760px){
  #app{padding:0 14px 40px}
  /* v8.95 — the phone audit's tap-target + stacking fixes (G/H/I/J/K/L) */
  .btn.tiny{padding:9px 12px;min-height:40px}          /* every small action ≥40px tall */
  .iconb{width:40px;height:40px}
  .x{width:40px;height:40px;font-size:18px}
  .replink,.loginlink,.replinkbtn{display:inline-block;padding:10px 4px}
  .back{min-height:40px;display:inline-flex;align-items:center}
  .deftoggle{min-height:36px;display:inline-flex;align-items:center}
  .formsec{font-size:13.5px}                            /* H: outrank the 16px iOS inputs' pull */
  .overlay{z-index:1300;padding-top:calc(8vh + env(safe-area-inset-top))}   /* J: a modal above the sticky header */
  body.has-install-hint #app{padding-bottom:110px}      /* I: the install hint no longer covers page footers */
  .dirtabs{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;
    mask-image:linear-gradient(90deg,#000 88%,transparent);-webkit-mask-image:linear-gradient(90deg,#000 88%,transparent)}   /* K: a visible fade says "swipe" */
  .alert-title{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3}   /* L: alerts wrap instead of "Health Permit expired 40…" */
  /* pin the header so scrolling never slides it up under the phone status bar */
  .top{position:sticky;top:0;z-index:1200;margin:0 calc(50% - 50vw) 18px;padding:calc(11px + env(safe-area-inset-top)) 14px 11px}
  .frow,.frow3{grid-template-columns:1fr}
  .st-right input[type=search]{min-width:150px}
  /* nav on mobile: keep a tiny label under each icon (so they're identifiable) and
     keep the notification badge visible as a corner dot (the old rule hid BOTH) */
  .topright{gap:1px}
  .btn.nav{flex-direction:column;gap:2px;padding:5px 6px;position:relative}
  .topright .btn.nav>span:not(.navbadge){display:block;font-size:8.5px;line-height:1;font-weight:600;white-space:nowrap}
  .btn.nav .navbadge{position:absolute;top:1px;right:4px;margin:0;min-width:14px;height:14px;padding:0 3px;font-size:9px}
  /* DECLUTTER the phone top bar: when there's an avatar menu to hold them, the inline
     nav moves INTO that menu (so the header is just Back · logo · avatar). Local mode
     has no avatar, so its nav stays inline. */
  .top.has-user .topright > .btn.nav{display:none}
  .top.has-user .ud-nav{display:flex}
  .top.has-user .topright{gap:6px}
  /* v7.40: Settings and Archive left the avatar menu (owner wanted just his six daily
     destinations there, with Settings "in the banner"). But the rule above hides every
     banner button on a phone — which would have made Settings, Archive and therefore Trash
     unreachable from a phone entirely. So these two come BACK on mobile, icon-only: the
     label is what costs width, not the button. */
  .top.has-user .topright > #settingsBtn,
  .top.has-user .topright > #archiveBtn{display:inline-flex;padding:6px}
  .top.has-user .topright > #settingsBtn > span:not(.navbadge),
  .top.has-user .topright > #archiveBtn > span:not(.navbadge){display:none}
  /* phone home is tile-first (renderDashboardMobile) — the company sidebar is the
     duplicate, so hide it; the main column then spans full width */
  .cosidebar{display:none}
  .cotilegrid{gap:10px}
  /* an opened job/store goes FULL-PAGE instead of a floating popped-out card:
     break out of the #app side padding, drop the card chrome, let the page scroll */
  .panes{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);gap:0}
  .mvbar+.panes,.panes{height:auto}
  .pane{border-radius:0;border-left:none;border-right:none;box-shadow:none;max-height:none;min-height:calc(100vh - 150px)}
  .pane-head{border-radius:0;position:sticky;top:0;z-index:5}
  .calsearch{min-width:0;width:100%}
  .calsearchwrap{margin-right:0;flex:1 1 100%;order:5}
}

/* ===== map distance / route mode ===== */
.maptools{position:absolute;top:12px;right:12px;z-index:1100;display:flex;gap:8px}
.maptools .btn{box-shadow:0 2px 8px rgba(16,24,40,.18)}
.mapstatuswrap{position:relative}
.mapstatusmenu{position:absolute;top:calc(100% + 6px);right:0;z-index:1200;min-width:190px;
  background:var(--surface);border:1px solid var(--line);border-radius:10px;
  box-shadow:0 10px 30px rgba(16,24,40,.22);padding:8px}
.mapstatusmenu.hidden{display:none}
.mapstatusmenu .msm-hd{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;
  color:var(--faint);padding:2px 6px 6px}
.mapstatusmenu .msm-row{display:flex;align-items:center;gap:8px;padding:6px 6px;border-radius:6px;
  font-size:13px;cursor:pointer}
.mapstatusmenu .msm-row:hover{background:var(--bg)}
.mapstatusmenu .msm-row input{accent-color:var(--accent);width:15px;height:15px;margin:0}
.msdot{width:11px;height:11px;border-radius:50%;flex:none;box-shadow:0 0 0 1px rgba(0,0,0,.1)}
.btn.on{background:var(--accent);border-color:var(--accent);color:#fff}
.routesum{position:absolute;top:54px;right:12px;z-index:1100;background:var(--surface);
  border:1px solid var(--line);border-radius:var(--r);box-shadow:0 6px 20px rgba(16,24,40,.15);
  padding:11px 13px;width:230px;font-size:12.5px}
.rs-head{font-size:10.5px;font-weight:650;text-transform:uppercase;letter-spacing:.06em;
  color:var(--faint);margin-bottom:7px}
.rs-stops{display:flex;flex-direction:column;gap:4px;margin-bottom:8px;max-height:170px;overflow-y:auto}
.rs-stop{display:flex;align-items:center;gap:7px;color:var(--ink2)}
.rs-n{width:16px;height:16px;border-radius:50%;background:var(--accent);color:#fff;
  font-size:9.5px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;
  font-family:var(--mono);flex:none}
.rs-total{font-family:var(--mono);font-weight:600;font-size:13px;border-top:1px solid var(--line);
  padding-top:7px;margin-bottom:8px}
.stopchipwrap{background:none;border:none}
.stopchip{width:20px;height:20px;border-radius:50%;background:var(--accent);color:#fff;
  font-size:10px;font-weight:700;font-family:var(--mono);display:flex;align-items:center;
  justify-content:center;border:2px solid #fff;box-shadow:0 1px 5px rgba(16,24,40,.4)}
.routelabel{background:var(--surface);border:1px solid var(--accent);border-radius:6px;
  color:var(--ink);font-family:var(--mono);font-size:11.5px;font-weight:600;
  padding:3px 8px;box-shadow:0 2px 8px rgba(16,24,40,.18)}
.routelabel::before{border-top-color:var(--accent)}

/* ===== v3.60: drill-down panel, panes, rich rows ===== */
.pnl-back{display:flex;align-items:center;gap:5px;width:100%;padding:7px 9px;color:var(--muted);
  font-size:12px;font-weight:600;border-radius:var(--rs);text-align:left}
.pnl-back:hover{background:#F2F4F7;color:var(--ink)}
.pnl-title{font-size:13.5px;font-weight:650;padding:4px 9px 10px;border-bottom:1px solid var(--line);
  margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.coitem>svg:last-child{color:var(--faint)}
.cosidebar.collapsed .pnl-title,.cosidebar.collapsed .pnl-back{display:none}
/* store windows (panes) */
.panes{display:grid;gap:14px;min-width:0}
.panes.n1{grid-template-columns:minmax(0,1fr)}
.panes.n2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.panes.n3,.panes.n4{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.pane{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--sh);display:flex;flex-direction:column;min-height:300px;max-height:82vh;min-width:0}
/* a solo store/job fills the height so it reads as a full view, not a floating box */
.panes.n1 .pane{min-height:calc(100vh - 188px);max-height:none}
.pane-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;
  padding:11px 14px;background:linear-gradient(180deg,#F1F4FA,#EDF1F8);
  border-bottom:1px solid var(--line);border-radius:calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0}
.pane-name{font-weight:650;font-size:14px}
.scopechip{display:inline-block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;
  color:var(--accent-d,#2743A8);background:var(--accent-bg);border-radius:6px;padding:1px 7px;vertical-align:1px;margin-left:4px}
.pane-sub{display:block;font-size:11.5px;color:var(--muted);margin-top:1px}
.startchip{color:var(--text);font-weight:600;cursor:pointer;border-bottom:1px dotted var(--muted)}
.startchip.unset{color:var(--muted);font-weight:500;font-style:italic}
.startchip-in{font:inherit;font-size:11.5px;padding:0 4px;border:1px solid var(--line,#ccc);border-radius:4px;background:var(--bg,#fff);color:var(--text)}
.invtbl td.invdate{white-space:nowrap;font-size:12px}
.pane-acts{display:flex;gap:2px}
.pane-x:hover{background:var(--danger-bg);color:var(--danger)}
.pane-tabs{display:flex;gap:0;border-bottom:1px solid var(--line);padding:0 8px;flex-wrap:wrap}
.ptab{padding:7px 11px;margin-bottom:-1px;color:var(--muted);font-size:12.5px;font-weight:500;
  border-bottom:2px solid transparent}
.ptab:hover{color:var(--ink)}
.ptab.active{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}
.ptab-add{color:var(--faint);font-size:14px}
.ptab-add:hover{color:var(--accent)}
.pane-body{padding:11px 14px;overflow-y:auto;flex:1}
.pane-tools{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.pane-tools .btn{margin-left:auto}
.pane-drop{display:flex;align-items:center;justify-content:center;gap:7px;
  border:1.5px dashed var(--line2);border-radius:var(--rs);padding:8px;color:var(--faint);
  font-size:11.5px;margin-bottom:8px}
/* richer list rows */
.storerow{display:grid;grid-template-columns:110px 1fr 150px 150px 70px auto auto;
  align-items:center;gap:12px}
.sr-addr{color:var(--ink2);font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sr-phone{color:var(--ink2);font-size:12px;font-family:var(--mono);display:flex;align-items:center;gap:5px}
.sr-phone svg{color:var(--faint);width:12px;height:12px}
.sr-dm{font-size:12px;color:var(--ink2)}
.sr-dm b{font-size:9.5px;color:var(--faint);font-weight:700;letter-spacing:.04em;margin-right:3px}
@media(max-width:1000px){.storerow{grid-template-columns:100px 1fr auto auto}.sr-phone,.sr-dm,.sr-co{display:none}}
@media(max-width:900px){.panes.n2,.panes.n3,.panes.n4{grid-template-columns:1fr}}

/* store status */
.mintag.st-green{background:var(--green-bg);color:var(--green)}
.mintag.st-amber{background:var(--amber-bg);color:var(--amber)}
.mintag.st-red{background:var(--danger-bg);color:var(--danger)}
.mintag.st-gray{background:#EDEFF3;color:var(--muted)}
.mintag.st-dev{background:#EDE7FA;color:#6D3BD1}
.storetile.st-dev{border-left:4px solid #6D3BD1;background:linear-gradient(0deg,rgba(109,59,209,.05),rgba(109,59,209,.05)),var(--surface)}
.storerow.st-dev{box-shadow:inset 3px 0 0 #6D3BD1}
.pane-status{padding:4px 6px;font-size:11.5px;font-weight:600;border-radius:6px}
.pane-status.st-dev{color:#6D3BD1;border-color:#D6C8F4;background:#EDE7FA}
/* CONFIDENTIAL — only the specific closing/sale items are masked (per-item), never a whole box */
.confbtn{margin-left:auto}
/* GLOBAL NETWORK PROGRESS BAR — a slim indeterminate bar at the very top whenever any request
   is in flight (esp. slow cloud ops: delete, upload, save) so it's obvious something's happening */
body.net-busy::before{content:"";position:fixed;top:0;left:0;right:0;height:3px;z-index:99999;
  background:linear-gradient(90deg,transparent,var(--accent),transparent);
  background-size:38% 100%;background-repeat:no-repeat;animation:netbar 1.1s linear infinite;pointer-events:none}
@keyframes netbar{0%{background-position:-38% 0}100%{background-position:138% 0}}
/* a button mid-action (bulk delete) shows it's working */
.btn.busy{opacity:.75;pointer-events:none}
.confbtn.on{color:var(--green)!important;border-color:#BFE3CE!important;background:var(--green-bg)!important}
.confmask{font-family:var(--mono);font-size:11px;color:#6D3BD1;background:#EDE7FA;border-radius:6px;padding:1px 7px;white-space:nowrap}
/* BUILD SITE (superintendent) panel */
.devpanel{background:linear-gradient(180deg,#FBF9FF,#F5F1FC);border:1px solid #E4DAF6;border-radius:12px;padding:14px 16px;margin-bottom:12px}
.devp-hd{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:13px}
.devp-badge{font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.03em;color:#6D3BD1;background:#EDE7FA;border-radius:999px;padding:4px 11px}
.devp-tgt,.devp-sup{color:var(--muted)}
.devp-sup b,.devp-tgt b{color:var(--ink)}
.devp-note{margin-top:8px;font-size:13px;color:var(--muted);line-height:1.5}
.devp-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}
.devp-datewrap{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.devp-date{padding:5px 8px;border:1px solid #D9D6E0;border-radius:7px}
.devp-audit{margin-top:12px;border-top:1px solid #E4DAF6;padding-top:8px}
.devp-audit summary{cursor:pointer;font-size:12px;color:var(--muted);font-weight:600}
.devp-alist{margin-top:8px;max-height:220px;overflow:auto}
.devp-arow{display:grid;grid-template-columns:120px 92px 1fr;gap:8px;font-size:12px;padding:4px 0;border-bottom:1px solid #EFEAF9}
.devp-awhen{font-family:var(--mono);color:var(--faint)}
.devp-awho{font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.devp-aact{color:var(--muted)}
/* public upload link modal */
.uplink-box{display:flex;gap:8px;align-items:center}
.uplink-box input{flex:1;min-width:0;padding:9px 11px;border:1px solid #D9D6E0;border-radius:9px;font-size:12.5px;font-family:var(--mono);background:#F7F6FA;color:var(--ink)}
/* subcontractor panel — neat contact cards */
.subx{display:flex;gap:12px;align-items:flex-start;border:1px solid var(--line);border-radius:12px;padding:12px 13px;margin-bottom:10px;background:var(--surface);box-shadow:var(--sh)}
.subx-av{width:40px;height:40px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:15px;color:#fff}
.subx-main{flex:1;min-width:0}
.subx-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.subx-name{font-weight:650;font-size:14.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.subx-co{color:var(--muted);font-size:12.5px;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.subx-tag{flex:none;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;border-radius:20px;padding:3px 9px}
.subx-tag.login{background:var(--accent-bg);color:var(--accent-d)}
.subx-tag.link{background:var(--amber-bg);color:var(--amber)}
.subx-acts{display:flex;gap:6px;margin-top:10px;flex-wrap:wrap;align-items:center}
.subx-acts .btn{padding:7px 11px;font-size:12.5px}
.subx-ic{padding:7px 9px!important}
.subx-ic.subx-del:hover{color:var(--danger);border-color:var(--danger);background:var(--danger-bg)}
.subx-meta{color:var(--faint);font-size:11.5px;margin-top:7px}
.subx-add{border:1px dashed var(--line2);border-radius:12px;padding:14px 13px 13px;background:#FAFBFC}
.subx-add .field{margin:0 0 9px}
.subx-was{border:1px solid #CFE0FB;background:var(--accent-bg);border-radius:12px;padding:12px 13px;margin-bottom:14px}
.subx-live{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line);font-size:12.5px;color:var(--ink2);cursor:pointer}
.subx-live input{width:16px;height:16px;accent-color:var(--accent);flex:none}
.subx-signed{background:var(--green-bg);border:1px solid #CFE9DA;color:var(--green);border-radius:10px;padding:10px 12px;font-size:12.5px;line-height:1.45;margin-bottom:12px}
.subx-forms{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
/* per-sub filing cabinet (Directory → Subcontractors) */
.dirbar{margin:4px 0 12px}
.dirbar .searchbig{width:100%;padding:11px 14px;border:1px solid var(--line2);border-radius:10px;font-size:14px;background:var(--surface);color:var(--ink)}
.subpick{display:flex;flex-direction:column;gap:8px}
.subpick-row{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;cursor:pointer;box-shadow:var(--sh)}
.subpick-row:hover{border-color:var(--line2);background:#fbfcfe}
.subpick-av{width:38px;height:38px;border-radius:50%;flex:none;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
.subpick-main{flex:1;min-width:0;display:flex;flex-direction:column}
.subpick-name{font-weight:650;font-size:14.5px}.subpick-co{color:var(--muted);font-size:12.5px}
.subpick-jobs{color:var(--faint);font-size:12px;white-space:nowrap;display:inline-flex;align-items:center;gap:5px}.subpick-go{color:var(--faint);font-size:18px}
.subpick-jobline{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-top:5px}
.subpick-job{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;color:var(--ink,#14181F)}
.subpick-job.dim{color:var(--faint);font-weight:500}
.subpick-tile{font-size:10.5px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;padding:2px 7px;border-radius:6px;border:1px solid transparent}
.subpick-tile.t-roof{background:#E8EEFF;color:#2743B0;border-color:#D3DEFF}
.subpick-tile.t-oil{background:#FBF0DD;color:#8A5A16;border-color:#F0DEBE}
.subpick-tile.t-gen{background:#EAF1EC;color:#2C6B45;border-color:#D6E6DB}
.subpick-tile.off{filter:grayscale(.55);opacity:.75}
.subpick-more{font-size:11.5px;color:var(--faint);font-weight:600}
.subpick-rm{appearance:none;flex:none;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--faint);cursor:pointer;padding:0}
.subpick-rm:hover{color:#B42318;border-color:#F3C6C0;background:#FEF3F2}
.subpick-rm svg{width:15px;height:15px}
.subpick-rm:disabled{opacity:.5;cursor:default}
.subpick-row.arch{opacity:.74}
.subpick-arch{display:inline-block;margin-left:8px;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.02em;color:#B54708;background:#FDF3E7;border:1px solid #F6E2C6;padding:1px 6px;border-radius:6px;vertical-align:middle}
.selin{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink,#14181F);font-size:14px;font-family:inherit}
.selin:focus{outline:none;border-color:var(--accent)}
/* Subs-tab review — collapsible per-sub rows (forms status · progress reports · files · draws) */
.srrow{border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-bottom:10px;overflow:hidden;box-shadow:var(--sh)}
.srrow.open{border-color:var(--line2)}
.srhead{display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer;user-select:none}
.srhead:hover{background:#fbfcfe}
.srav{flex:none;width:34px;height:34px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:13px}
.srmain{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.srname{font-weight:650;font-size:14.5px}.srco{color:var(--muted);font-size:12.5px}
.srchips{display:flex;flex-wrap:wrap;gap:6px;margin-top:3px}
.srchip{font-size:11px;font-weight:650;padding:2px 8px;border-radius:20px;white-space:nowrap}
.srchip.ok{background:#EAF6EF;color:#0B7A46}.srchip.no{background:#FDF3E7;color:#B54708}
.srmeta{color:var(--faint);font-size:12px;white-space:nowrap;text-align:right}
.srcaret{flex:none;color:var(--faint);font-size:12px;width:14px;text-align:center}
.srbody{padding:0 14px 14px;border-top:1px solid var(--line)}
.srsec{margin-top:14px}
.srsechd{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);font-weight:700;margin-bottom:8px}
.srform{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid var(--line);font-size:13.5px}
.srform:first-of-type{border-top:0}
.srnone{color:var(--faint);font-size:13px;margin:0;padding:4px 0}
.srprog{border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin-bottom:8px;background:#fbfcfd}
.srprog-h{font-size:13px}.srstat{font-size:11px;font-weight:700;color:#2743B0;background:#EDF2FF;border-radius:20px;padding:1px 8px}
.srprog-t{font-size:13.5px;margin-top:5px;line-height:1.45;white-space:pre-wrap}
.srprog.srpend ul,.srprog.srpend .srprog-t{opacity:.55}
.srhist{margin-top:7px;font-size:12.5px;color:var(--muted)}.srhist summary{cursor:pointer;user-select:none}
.srprev{border-left:2px solid var(--line);margin:6px 0 0 4px;padding:2px 0 2px 10px;white-space:pre-wrap;font-size:12.5px}
.srdelreq{margin-top:8px;font-size:12.5px;color:var(--amber);background:var(--amber-bg);border-radius:8px;padding:7px 10px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.srbul{margin:6px 0 0;padding-left:18px;font-size:13px;color:var(--ink2,#3A4351)}
.srphotos{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.srphotos a{display:block;width:64px;height:64px;border-radius:8px;overflow:hidden;border:1px solid var(--line)}
.srphotos img{width:100%;height:100%;object-fit:cover}
.srdraw{display:flex;align-items:center;gap:10px;padding:7px 0;border-top:1px solid var(--line);font-size:13.5px}
.srdraw:first-of-type{border-top:0}.srdamt{font-weight:600}
.srdstat{font-size:11px;font-weight:700;padding:1px 8px;border-radius:20px;background:#EEF1F5;color:#475467;text-transform:capitalize}
.srdl{font-size:12.5px;font-weight:650;color:var(--accent);text-decoration:none;margin-left:auto}.srdl+.srdl{margin-left:10px}
.srfile{display:block;font-size:13.5px;color:var(--accent);text-decoration:none;padding:6px 0;border-top:1px solid var(--line)}
.srfile:first-of-type{border-top:0}
.subs-sec{margin-top:26px}
.subx-need{font-size:12px;font-weight:600;margin-top:8px;padding:5px 10px;border-radius:8px}
.subx-need.warn{background:#FDF3E7;color:#B54708;border:1px solid #F6E2C6}
.subx-need.ok{background:#EAF6EF;color:#0B7A46;border:1px solid #C9EBD6}
.alertrow.alert-subcomp{cursor:pointer}
.livedot{width:7px;height:7px;border-radius:50%;background:#22b07d;display:inline-block;box-shadow:0 0 0 3px rgba(34,176,125,.16)}
.fil-head{margin:6px 0 14px}
.filjob{border:1px solid var(--line);border-radius:12px;margin-bottom:14px;overflow:hidden;background:var(--surface);box-shadow:var(--sh)}
.filjob-h{padding:11px 14px;border-bottom:1px solid var(--line);font-size:14px;background:#fafbfc}
.fil-row{display:flex;align-items:center;gap:11px;padding:11px 14px;border-top:1px solid var(--line)}
.fil-row:first-of-type{border-top:0}
.fil-row.missing{opacity:.7}
.fil-ic{font-size:18px;flex:none}
.fil-main{flex:1;min-width:0;display:flex;flex-direction:column}
.fil-main b{font-size:13.5px;font-weight:600}.fil-meta{font-size:11.5px;color:var(--muted);margin-top:1px}
.cbadge{font-size:10px;font-weight:700;border-radius:20px;padding:1px 7px;margin-left:4px}
.cbadge.ok{background:var(--green-bg);color:var(--green)}
.cbadge.no{background:#F2F4F8;color:var(--muted)}
.cbadge.warn{background:var(--amber-bg);color:var(--amber)}
/* keep the floating ✨ Assistant button clear of any open modal's controls */
body.modal-open #astBubble{display:none!important}
.btn.danger{background:var(--danger,#c0392b);color:#fff;border-color:transparent}
.pane-status.st-green{color:var(--green);border-color:#BFE3CE;background:var(--green-bg)}
.pane-status.st-amber{color:var(--amber);border-color:#EFD5B5;background:var(--amber-bg)}
.pane-status.st-red{color:var(--danger);border-color:#EBC8C4;background:var(--danger-bg)}
.pane-status.st-gray{color:var(--muted)}

/* ===== v3.62: full-height panes, dashboard, panel slide ===== */
.homemain{display:flex;flex-direction:column}
#storeArea{display:flex;flex-direction:column;flex:1;min-height:0}
.panes{flex:1;min-height:0;height:calc(100vh - 128px)}
.panes .pane{max-height:none;min-height:0}
.panes.n1{grid-template-columns:minmax(0,1fr);grid-template-rows:1fr}
.panes.n2{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr}
.panes.n3{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr 1fr}
.panes.n3 .pane:nth-child(3){grid-column:1/-1}
.panes.n4{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr 1fr}
/* panel slide animations */
@keyframes slideFwd{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}
@keyframes slideBack{from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:none}}
.cosb-in.slide-fwd{animation:slideFwd .18s ease}
.cosb-in.slide-back{animation:slideBack .18s ease}
/* dashboard */
.statgrid{display:grid;grid-template-columns:repeat(8,1fr);gap:10px;margin-bottom:16px}
@media(max-width:1200px){.statgrid{grid-template-columns:repeat(4,1fr)}}
.statcard{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--sh);padding:13px 15px}
.stat-v{font-family:var(--mono);font-size:22px;font-weight:650;line-height:1.1}
.stat-v.green2{color:var(--green)}
.stat-v.amber2{color:var(--amber)}
.stat-v.red2{color:var(--danger)}
.stat-l{font-size:10.5px;font-weight:650;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);margin-top:3px}
.dashcols{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px;align-items:start}
@media(max-width:1100px){.dashcols{grid-template-columns:1fr}}
/* v8.37 — "no real title cards on all modals? fix it"
   Alerts had a proper header bar (.dashtabs: its own background, a rule under it, running
   the full width of the card) and every other card had a small grey caption floating in
   the padding. Side by side, only one of them looked like a card with a title. The header
   bleeds out to the card edges now and wears the same background and rule as Alerts, so
   Companies / Sales / In progress / Upcoming all read the same way. Done here rather than
   in the markup so every .dashsec on the dashboard AND the service domain gets it at
   once — there is no second place to keep in step. */
.dashsec{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--sh);padding:13px 15px}
.dashsec-hd{display:flex;align-items:center;justify-content:space-between;gap:8px;
  font-size:12.5px;font-weight:650;letter-spacing:.01em;color:var(--ink);
  margin:-13px -15px 12px;padding:9px 14px;background:#FAFBFC;
  border-bottom:1px solid var(--line);border-radius:var(--r) var(--r) 0 0}
.dashcolist{display:flex;flex-direction:column;gap:2px}
.dashco{display:flex;align-items:center;gap:10px;width:100%;padding:8px 9px;border-radius:var(--rs);
  font-size:13px;text-align:left;color:var(--ink2)}
.dashco:hover{background:#F2F4F7;color:var(--ink)}
.dashco-n{flex:1;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashco-c{font-size:11.5px;font-family:var(--mono);color:var(--muted)}
.cotile.cotile-empty .cotile-n{color:var(--muted);font-style:italic}   /* v9.47: a company with no stores yet */
.dashco-c b{color:var(--green)}

/* ===== v3.63: directory search + pane drag/maximize ===== */
.dirsearch{padding:7px 11px;border:1px solid var(--line2);border-radius:var(--rs);
  font-size:12.5px;min-width:280px;background:var(--surface)}
.dirsearch:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
.pane-t[draggable="true"]{cursor:grab}
.pane-t[draggable="true"]:active{cursor:grabbing}
.pane.pane-dragging{opacity:.55}
.pane.pane-swap-target{outline:2px dashed var(--accent);outline-offset:-2px}

/* ===== v3.64: full-width search, sidebar character, map tools, status history ===== */
/* search bars span the available width */
.st-right{flex:1;justify-content:flex-end}
.st-right input[type=search]{flex:1;max-width:none;min-width:200px}
.dirsearch{flex:1;min-width:220px;max-width:none}

/* sidebar: subtle depth + colored identity */
.cosidebar{background:linear-gradient(180deg,#FBFCFE 0%,#F5F7FA 100%)}
.cosb-lbl{display:inline-flex;align-items:center;gap:7px;color:var(--muted)}
.cosb-lbl::before{content:"";width:3px;height:11px;border-radius:2px;background:var(--accent)}
.coitem{border:1px solid transparent}
.coitem:hover{background:#EEF1F6;border-color:var(--line)}
.coitem.active{border-color:transparent}
.pnl-title{font-size:14px;font-weight:650;color:var(--ink);padding:2px 6px 8px;
  border-bottom:1px solid var(--line);margin-bottom:6px}
.pnl-back{color:var(--muted);font-size:12px;font-weight:550;display:inline-flex;align-items:center;
  gap:3px;padding:4px 6px 8px}
.pnl-back:hover{color:var(--accent)}
.stdot{width:8px;height:8px;border-radius:50%;flex:none;box-shadow:0 0 0 2.5px var(--surface)}
.sd-green{background:var(--green)}
.sd-amber{background:var(--amber)}
.sd-red{background:var(--danger)}
.sd-gray{background:#9AA3AF}

/* status history (in the status modal) */
.sthist{display:flex;flex-direction:column;gap:5px;max-height:170px;overflow-y:auto}
.sthist-row{display:flex;align-items:center;gap:9px;font-size:12px}
.sthist-date{font-family:var(--mono);color:var(--muted);flex:none}
.sthist-note{color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sthist-x{opacity:.55}
.sthist-x .mintag,.sthist-x .sthist-date{text-decoration:line-through}
.sthist-tag{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;
  color:var(--faint);border:1px solid var(--line2);border-radius:5px;padding:1px 5px;flex:none}
.sthist-tag.sched{color:var(--accent-d);border-color:var(--accent)}
.confadvise{background:var(--accent-bg);border:1px solid var(--accent);border-radius:8px;
  padding:7px 10px;color:var(--accent-d)}
.calchip.ev-conf{border-left:3px solid var(--danger)}
.bkportal{margin:0 0 14px}
/* ---------- Requests / Approvals ---------- */
#requestsBody{max-width:860px}
.reqsec{margin-bottom:18px}
.reqsec-hd{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--faint);margin:0 0 8px}
.reqrow{display:flex;align-items:center;gap:12px;justify-content:space-between;background:var(--surface);
  border:1px solid var(--line);border-radius:10px;padding:11px 14px;margin-bottom:8px;cursor:pointer}
.reqrow:hover{border-color:var(--accent)}
.reqrow.needsme{background:var(--accent-bg)}   /* brand colour owns the left stripe; needs-you gets a tint */
.req-brandbar{height:5px;border-radius:3px;margin:0 0 14px}
.reqttl{font-weight:650;color:var(--ink);font-size:13.5px}
.reqsub{font-size:12px;color:var(--muted);margin-top:2px;font-variant-numeric:tabular-nums}
.reqside{flex:none;display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.rate-display{display:flex;align-items:center;justify-content:center;gap:16px;background:var(--bg);border-radius:10px;padding:14px;margin:4px 0 12px}
.rate-box{text-align:center}
.rate-amt{font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
.chain-ttl{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--faint);margin:14px 0 8px}
.chain-step{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:8px;margin-bottom:5px;background:var(--bg);font-size:12.5px}
.chain-step.cs-done{background:var(--green-bg)}
.chain-step.cs-pend{background:var(--accent-bg)}
.chain-step.cs-bad{background:#fdeceb}
.chain-step .cs-ic{width:22px;height:22px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;background:var(--line);color:var(--muted)}
.chain-step.cs-done .cs-ic{background:var(--green);color:#fff}
.chain-step.cs-pend .cs-ic{background:var(--accent);color:#fff}
.chain-step.cs-bad .cs-ic{background:var(--danger);color:#fff}
.reqnote{width:100%;padding:9px 11px;border:1.5px solid var(--line2);border-radius:8px;margin:12px 0 8px;font-size:13px}
.reqacts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.btn.reqok{background:var(--green);color:#fff;border-color:var(--green)}
.reqfoot{display:flex;gap:8px;align-items:center;margin-top:14px;flex-wrap:wrap}
.type-btn{padding:10px;border:1.5px solid var(--line2);border-radius:8px;background:var(--bg);color:var(--ink);font-weight:650;cursor:pointer}
.type-btn.sel-r{background:var(--green);border-color:var(--green);color:#fff}
.type-btn.sel-d{background:var(--danger);border-color:var(--danger);color:#fff}
/* store "Forms" pseudo-tab + Requests page: form tiles inline, then the list */
.storeforms{padding:2px 0}
.sf-intro{font-size:12.5px;color:var(--muted);margin:0 0 12px}
.storeforms .formtiles{margin:0 0 4px;max-width:720px}
.sf-list{margin-top:18px}
.reqfile{margin-bottom:22px}
.reqfile .formtiles{max-width:720px;margin-top:8px}
/* Admin console entry card at the top of Settings (its top-nav button was retired) */
.adminlink{display:flex;align-items:center;gap:12px;width:100%;text-align:left;cursor:pointer;
  background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:14px;
  transition:border-color .12s,box-shadow .12s}
.adminlink:hover{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
.adminlink .al-ic{width:38px;height:38px;flex:none;border-radius:10px;display:flex;align-items:center;justify-content:center;
  background:var(--accent-bg);color:var(--accent)}
.adminlink .al-body{display:flex;flex-direction:column;gap:1px;flex:1;min-width:0}
.adminlink .al-body b{font-size:14px;color:var(--ink)}
.adminlink .al-body .dim{font-size:12px;color:var(--muted)}
.adminlink .al-arrow{flex:none;color:var(--faint);font-size:18px;font-weight:600}
/* Requests: form-type tile picker + form character */
.reqpick-intro{font-size:13px;color:var(--muted);margin:0 0 12px}
.formtiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:2px 0}
.formtile{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;cursor:pointer;
  padding:18px 16px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);
  transition:transform .1s,border-color .12s,box-shadow .12s}
.formtile:hover{box-shadow:0 8px 20px rgba(0,0,0,.10);transform:translateY(-2px)}
.formtile.ft-pay:hover{border-color:var(--green)}
.formtile.ft-vac:hover{border-color:var(--accent)}
.formtile .ft-ic{font-size:30px;line-height:1}
.formtile .ft-name{font-weight:700;font-size:15px;color:var(--ink)}
.formtile .ft-sub{font-size:12px;color:var(--muted);line-height:1.35}
.reqhead{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;margin-bottom:14px}
.reqhead .rh-ic{font-size:26px;line-height:1;flex:none}
.reqhead .rh-tx{display:flex;flex-direction:column;gap:1px}
.reqhead .rh-tx b{font-size:14px;color:var(--ink)}
.reqhead .rh-tx .dim{font-size:12px;color:var(--muted)}
.reqhead-pay{background:var(--green-bg)}
.reqhead-vac{background:var(--accent-bg)}
.rq-delta{font-weight:700;font-size:13.5px;font-variant-numeric:tabular-nums;margin:-4px 0 6px;padding:0 2px;min-height:1px}
.rq-delta:empty{display:none}
.rq-delta.up{color:var(--green)}
.rq-delta.down{color:var(--danger)}
.rq-delta.vac.up{color:var(--accent)}
.req-ic{margin-right:5px}
.co-swatch{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:var(--muted);cursor:pointer}
.co-swatch input[type=color]{width:26px;height:26px;padding:0;border:1px solid var(--line);border-radius:6px;background:none;cursor:pointer}
.mgr-store{font-weight:600}
/* every Directory role table shares one fixed column grid so Name/Phone/…/Stores line up */
.people-tbl{table-layout:fixed}
.people-tbl th:nth-child(1),.people-tbl td:nth-child(1){width:22%}
.people-tbl th:nth-child(2),.people-tbl td:nth-child(2){width:14%}
.people-tbl th:nth-child(3),.people-tbl td:nth-child(3){width:20%}
.people-tbl th:nth-child(4),.people-tbl td:nth-child(4){width:17%}
.people-tbl th:nth-child(5),.people-tbl td:nth-child(5){width:13%}
.people-tbl th:nth-child(6),.people-tbl td:nth-child(6){width:14%}
/* clip the text columns, but NEVER the actions cell (up to 4 admin buttons) */
.people-tbl td:nth-child(-n+5){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.people-tbl td:nth-child(6){overflow:visible}
.rate-display.rd-vac .rd-date{font-size:15px}
@media (max-width:520px){.formtiles{grid-template-columns:1fr}}

/* map: address tools + temporary pins */
.mp-tools{padding:10px 12px 12px;border-bottom:1px solid var(--line);background:#FAFBFD}
.mp-tools .mp-head{padding:0}
.mp-input{width:100%;padding:7px 10px;border:1px solid var(--line2);border-radius:var(--rs);
  font-size:12.5px;background:var(--surface);margin:7px 0 8px}
.mp-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
.mp-btnrow{display:flex;align-items:center;gap:6px}
.mp-arrow{color:var(--faint);font-size:12px;flex:none}
.mp-tosel{flex:1;min-width:0;font-size:12px;padding:5px 6px}
.mp-pinrow{display:flex;align-items:center;gap:7px;font-size:12px;color:var(--ink2);
  padding:5px 2px 0}
.mp-pinlbl{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-pinx{width:20px;height:20px}
.tp-mini{width:9px;height:9px;border-radius:50%;background:#C2410C;flex:none;
  box-shadow:0 0 0 2px #F6D9CB}
.tp-dot{width:16px;height:16px;border-radius:50%;background:#C2410C;border:2.5px solid #fff;
  box-shadow:0 1px 4px rgba(0,0,0,.35);margin:0 auto}
.tp-stem{background:#C2410C!important}
.routelabel .rl-leg{color:var(--accent);font-family:var(--mono);margin-right:3px}
.addrlabel{border-color:#C2410C}
.rs-leg{font-size:10.5px;font-family:var(--mono);color:var(--muted);padding:0 0 2px 26px}
.rs-n-from{background:#C2410C!important}

/* ===== v3.65: full-screen map, directions builder, In-progress status ===== */
/* map fills the screen */
.mapwrap{margin:-24px calc(50% - 50vw) -60px;height:calc(100vh - 58px);min-height:520px;
  border:none;border-radius:0}
.mappanel{width:300px;display:flex;flex-direction:column}
.mappanel>.mp-tools{flex:none}
.mp-topbar{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid var(--line);
  background:var(--surface)}
.mp-homelink{display:inline-flex;align-items:center;gap:3px;color:var(--muted);font-size:12px;font-weight:550}
.mp-homelink:hover{color:var(--accent)}
.mp-title{font-size:13px;font-weight:650;color:var(--ink)}
.mp-hint{font-weight:400;text-transform:none;letter-spacing:0;color:var(--faint);font-size:10.5px;margin-left:auto}
.mp-opt{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--muted);margin-top:8px;cursor:pointer}
.mp-store{display:flex;align-items:center;gap:6px}
.mp-store-n{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mp-addroute{width:20px;height:20px;flex:none;opacity:0;transition:opacity .1s}
.mp-store:hover .mp-addroute{opacity:1}
.mp-addroute:hover{color:var(--accent)}
/* In progress = blue */
.mintag.st-blue{background:var(--accent-bg);color:var(--accent-d,#2743A8)}
.pane-status.st-blue{color:var(--accent-d,#2743A8);border-color:#C4CFF2;background:var(--accent-bg)}
.sd-blue{background:var(--accent)}
.stat-v.blue2{color:var(--accent)}
.statgrid{grid-template-columns:repeat(auto-fit,minmax(108px,1fr))}
/* side panel: show/hide closed stores */
.pnl-showall{display:block;width:100%;text-align:center;margin-top:8px;padding:6px 8px;
  border-top:1px dashed var(--line2);color:var(--faint);font-size:11.5px;font-weight:550}
.pnl-showall:hover{color:var(--accent)}
/* map search + directions builder */
.mp-searchrow{display:flex;align-items:center;gap:6px}
.mp-searchrow .mp-input{margin:0;flex:1}
.mp-searchbtn{width:31px;height:31px;flex:none;border:1px solid var(--line2);background:var(--surface)}
.mp-searchbtn:hover{border-color:var(--accent);color:var(--accent)}
.mp-dirhead{margin-top:12px}
.mp-stoprow{display:flex;align-items:center;gap:7px;margin:6px 0}
.mp-stoprow .mp-input{margin:0;flex:1}
.mp-stopn{flex:none;background:#C2410C}
.rs-n-dir{background:#C2410C!important}
.stopchip-dir{background:#C2410C}
#mpPins{margin-top:4px}

/* ===== v3.70: user menu + mobile map drawer ===== */
.usermenu{position:relative;margin-left:8px}
.useravatar{position:relative;width:30px;height:30px;border-radius:50%;background:var(--accent);color:#fff;
  font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;
  border:2px solid rgba(255,255,255,.25);cursor:pointer}
.useravatar:hover{border-color:rgba(255,255,255,.55)}
/* when the top nav is tucked into the avatar menu (mobile), surface pending items */
.useravatar.has-alerts::after{content:"";position:absolute;top:-2px;right:-2px;width:10px;height:10px;
  border-radius:50%;background:var(--danger);border:2px solid var(--headbg)}
.ud-nav{display:none}                       /* desktop: the nav lives inline in the top bar */
.ud-nav:hover{color:var(--accent)!important;background:var(--accent-bg)!important}
.ud-nav .navbadge{position:static;margin-left:auto}
.ud-sep{height:1px;background:var(--line);margin:4px 0}
.userdrop{position:absolute;right:0;top:38px;background:var(--surface);border:1px solid var(--line);
  border-radius:10px;box-shadow:0 10px 34px rgba(10,15,25,.25);min-width:220px;z-index:3000;
  overflow:hidden}
.ud-email{padding:11px 14px;font-size:12px;font-family:var(--mono);color:var(--muted);
  border-bottom:1px solid var(--line);word-break:break-all}
.ud-item{display:flex;align-items:center;gap:8px;width:100%;padding:10px 14px;
  font-size:13px;font-weight:550;color:var(--ink2);text-align:left}
.ud-item:hover{background:#F2F4F8;color:var(--danger)}
.mp-mobiletoggle{display:none;position:absolute;top:12px;left:52px;z-index:1150;
  background:var(--surface);box-shadow:0 2px 10px rgba(10,15,25,.2)}
@media(max-width:820px){
  .mp-mobiletoggle{display:inline-flex}
  .mapwrap{position:relative}
  .mappanel{position:absolute;left:0;top:0;bottom:0;z-index:1400;width:min(86vw,330px);
    transform:translateX(-102%);transition:transform .18s ease;box-shadow:6px 0 24px rgba(10,15,25,.25)}
  .mapwrap.panel-open .mappanel{transform:none}
}

/* ===== v3.68: cloud mode ===== */

/* ===== v3.69: admin console + map regeo ===== */
.mp-regeo{display:block;margin-top:9px;color:var(--faint);font-size:11px}
.mp-regeo:hover{color:var(--accent)}
#adminBody .ticrow{display:flex;align-items:center;gap:8px}
.mappop-links{margin-top:6px;padding-top:6px;border-top:1px solid var(--line);line-height:1.8}
.addrlink,.tellink{color:inherit;text-decoration:none;border-bottom:1px dotted var(--line2)}
.addrlink:hover,.tellink:hover{color:var(--accent);border-bottom-color:var(--accent)}
.mp-hint2{font-size:10.5px;color:var(--faint);margin-top:4px}

/* ===== v3.77: account & 2FA ===== */
.mfa-qr{width:250px;height:250px;margin:6px 0;border:1px solid var(--line);border-radius:10px;
  background:#fff;display:flex;align-items:center;justify-content:center}
.mfa-qr img{width:100%;height:100%;display:block;image-rendering:pixelated}
.mono{font-family:var(--mono);font-size:11.5px;word-break:break-all;background:#EDEFF3;
  padding:2px 5px;border-radius:4px}

/* ===== v3.82: Google Maps engine ===== */
.gm-center{transform:translateY(50%)}
.gm-label{background:#fff;border:1px solid var(--line2);border-radius:6px;padding:2px 7px;
  box-shadow:0 1px 4px rgba(10,15,25,.18);white-space:nowrap;transform:translateY(-6px)}
.gm-style .mappop{font-family:inherit;font-size:12.5px;line-height:1.5}

/* ===== v3.74: mobile drawer close + mobile directory cards ===== */
.mp-topbar{position:sticky;top:0;z-index:25}
.mp-drawerclose{display:none;margin-left:auto;width:28px;height:28px;flex:none}
@media(max-width:820px){
  .mp-drawerclose{display:inline-flex;background:#EDEFF3;border-radius:50%}
  /* directory tables become stacked cards on phones */
  .dirtable thead{display:none}
  .dirtable,.dirtable tbody,.dirtable tr,.dirtable td{display:block;width:100%}
  .dirtable tr{border:1px solid var(--line);border-radius:10px;margin-bottom:10px;
    padding:10px 12px;background:var(--surface)}
  .dirtable td{border:none;padding:2.5px 0;text-align:left}
  .dirtable td.r .rowacts{justify-content:flex-start}
  .dirtable td.vend{font-size:14px;font-weight:650}
  .dirtable select{max-width:100%}
  /* people cards: clean labeled rows like the permit table, and SHED the desktop
     fixed-% column widths that leaked in and clipped values (a store name was
     squashed to ~35px — that's what made the Stores value unreadable on a phone) */
  .people-tbl td{display:flex;justify-content:space-between;align-items:center;gap:12px;
    padding:6px 0;border-bottom:1px dashed var(--line);text-align:left}
  .people-tbl td:nth-child(-n+6){width:auto}
  .people-tbl td:nth-child(-n+5){overflow:visible;white-space:normal;text-overflow:clip}
  .people-tbl tr td:last-child{border-bottom:none}
  .people-tbl td[data-k]::before{content:attr(data-k);font-size:11px;font-weight:700;
    color:var(--faint);text-transform:uppercase;letter-spacing:.03em;flex:none}
  .people-tbl td[data-k=""]::before{content:none}      /* name + actions carry no label */
  .people-tbl td.vend{font-size:15px;font-weight:700;justify-content:flex-start}
  .people-tbl td.cempty{display:none}
  .people-tbl td.r{justify-content:flex-start}
  .people-tbl td .mgr-store{text-align:right}
  .dir-actionbar{flex-wrap:wrap}
  .dirsearch{min-width:100%}
}

/* ===== v3.66: lean dashboard ===== */
.dashstrip{font-size:12.5px;color:var(--muted);margin-bottom:12px;font-family:var(--mono)}
.dashstrip b{color:var(--accent)}

/* ===== v3.83: map inner container, pick route, competitor pins, suggestions ===== */
.mapinner{position:absolute;inset:0;z-index:0}
@media(max-width:820px){
  /* stack the map buttons down the right edge so they never cover the drawer toggle */
  .maptools{flex-direction:column;align-items:flex-end}
}
/* gray letter-pins for other people's locations (nearby brand search) —
   deliberately nothing like your solid logo pins */
.otherpinwrap{background:transparent;border:none}
.otherdot{width:21px;height:21px;border-radius:50%;background:#374151;border:2px solid #fff;
  color:#fff;font-size:11.5px;font-weight:800;font-family:var(--mono);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 2px 6px rgba(16,24,40,.5)}
.otherstem{background:#374151!important;width:2px!important;height:8px!important}
/* your own pins of the searched brand glow blue so yours vs theirs reads instantly */
.pin-hl{filter:drop-shadow(0 0 4px rgba(47,84,214,.95)) drop-shadow(0 0 10px rgba(47,84,214,.7))}
.pin-hl .pinlogo,.pin-hl .pindot{border-color:var(--accent)}
/* busy pill shown on the map while a search or route is running */
.mapbusy{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:1150;
  display:flex;align-items:center;gap:9px;background:var(--ink);color:#fff;
  padding:7px 16px;border-radius:20px;font-size:12.5px;font-weight:550;
  box-shadow:0 4px 14px rgba(16,24,40,.3);white-space:nowrap;max-width:90%;
  overflow:hidden;text-overflow:ellipsis}
.mapbusy::before{content:"";width:13px;height:13px;flex:none;border-radius:50%;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  animation:spin .7s linear infinite}
.mp-chip:disabled{opacity:.45;cursor:default}

/* ===== v3.87: pins that cut through Google Maps noise ===== */
/* a white glow separates every pin from roads/labels underneath */
.pinwrap{filter:drop-shadow(0 0 2.5px rgba(255,255,255,.95)) drop-shadow(0 1px 3px rgba(16,24,40,.4))}
.pinlogo{width:30px;height:30px;border:2px solid var(--ink);border-radius:8px;
  box-shadow:0 2px 7px rgba(16,24,40,.45)}
.pindot{width:16px;height:16px;border-width:2.5px}
.pinstem{width:2px;height:8px}

/* ===== v3.88: clickable temp-pin rows + drop-pin mode ===== */
.mp-pinrow{cursor:pointer}
.mp-pinrow:hover{background:#F1F3F7;border-radius:6px}
.pop-nm{font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.05em;
  color:#6B7280;background:#F1F2F5;border-radius:4px;padding:1px 5px;vertical-align:1px}
/* brand quick-pick chips in the map panel */
.mp-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.mp-chip{font-size:11px;font-weight:550;padding:3px 9px;border:1px solid var(--line2);
  border-radius:20px;background:var(--surface);color:var(--ink2);cursor:pointer}
.mp-chip:hover{border-color:var(--accent);color:var(--accent)}
/* our own suggestions dropdown (replaces the browser's native list) */
.sugbox{position:fixed;z-index:4000;background:var(--surface);border:1px solid var(--line2);
  border-radius:10px;box-shadow:0 10px 30px rgba(16,24,40,.16);overflow:hidden;
  max-height:290px;overflow-y:auto}
.sug-item{display:flex;align-items:center;gap:8px;padding:7px 10px;cursor:pointer}
.sug-item:hover,.sug-item.sel{background:var(--accent-bg)}
.sug-tag{flex:none;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;
  border-radius:4px;padding:2px 5px}
.sug-store{background:var(--accent-bg);color:var(--accent-d)}
.sug-addr{background:#F1F2F5;color:#6B7280}
.sug-txt{min-width:0;display:flex;flex-direction:column}
.sug-main{font-size:12.5px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sug-sub{font-size:11px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===== v3.89: Relay rebrand + themes ===== */
/* Themes override the palette variables; no theme attribute = Classic (original). */
html[data-theme=relay]{
  --accent:#A87E2F; --accent-d:#8A6524; --accent-bg:#F6EFDD;
  --headbg:#0F1E3C; --headink:#C2CBDE; --bg:#E1E4EB}
html[data-theme=relay] body{background-image:linear-gradient(180deg,#D9DEE7 0%,#E3E7EE 320px,#E5E9EF 100%)}
html[data-theme=royal]{
  --accent:#6D28D9; --accent-d:#581FB4; --accent-bg:#F1EAFD;
  --headbg:#1D1433; --headink:#C8BFDF; --bg:#E4E1EC}
html[data-theme=royal] body{background-image:linear-gradient(180deg,#DDD8E8 0%,#E5E1EE 320px,#E7E3F0 100%)}
html[data-theme=emerald]{
  --accent:#0E7C5B; --accent-d:#0A6147; --accent-bg:#E5F3EE;
  --headbg:#0D231B; --headink:#B7CCC2; --bg:#DFE7E3}
html[data-theme=emerald] body{background-image:linear-gradient(180deg,#D6E0DB 0%,#E0E8E4 320px,#E2E9E5 100%)}
html[data-theme=burgundy]{
  --accent:#9B2C3B; --accent-d:#7E1F2D; --accent-bg:#F9ECEE;
  --headbg:#26121A; --headink:#D3BFC5; --bg:#E9E2E4}
html[data-theme=burgundy] body{background-image:linear-gradient(180deg,#E0D6D9 0%,#E9E1E3 320px,#EBE4E6 100%)}
/* theme picker cards in Settings -> Appearance */
.themegrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px;margin-top:6px}
.themecard{display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:12px;
  background:var(--surface);border:1.5px solid var(--line2);border-radius:10px;
  cursor:pointer;text-align:left;transition:border-color .1s,box-shadow .1s}
.themecard:hover{border-color:var(--faint)}
.themecard.sel{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
.tc-prev{width:100%;height:44px;border-radius:7px;margin-bottom:6px;position:relative}
.tc-dot{position:absolute;right:9px;bottom:9px;width:16px;height:16px;border-radius:50%;
  border:2px solid rgba(255,255,255,.85)}
.tc-name{font-size:13px;font-weight:650}
.tc-desc{font-size:11.5px;color:var(--faint)}

/* ===== v3.90: assistant chat ===== */
.astwrap{max-width:780px;margin:0 auto}
.astlog{display:flex;flex-direction:column;gap:10px;min-height:300px;max-height:58vh;overflow-y:auto;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--sh);padding:16px;margin-bottom:12px}
.astmsg{max-width:82%;padding:9px 13px;border-radius:12px;font-size:13.5px;line-height:1.55;
  overflow-wrap:break-word}
.astmsg.user{align-self:flex-end;background:var(--accent);color:#fff;border-bottom-right-radius:4px}
.astmsg.assistant{align-self:flex-start;background:var(--accent-bg);color:var(--ink);border-bottom-left-radius:4px}
.astmsg.thinking{color:var(--faint);font-style:italic;background:var(--bg)}
.astwelcome{color:var(--muted);font-size:13px;line-height:1.65}
.astbar{display:flex;gap:8px;align-items:flex-end}
.astbar textarea{flex:1;resize:none;padding:10px 12px;border:1px solid var(--line2);
  border-radius:10px;background:var(--surface);font-size:13.5px;max-height:120px}
.astbar textarea:focus{outline:none;border-color:var(--accent)}
.astsuggest{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
@media(max-width:760px){.astmsg{max-width:94%}.astlog{max-height:50vh}}

/* ===== v3.91: AI document reader ===== */
.nt-ai{color:var(--accent)}
.nt-ai:hover{background:var(--accent-bg);color:var(--accent-d)}
.aidoc-sum{margin:10px 2px 4px;font-size:13px;line-height:1.6;color:var(--ink2)}
.aidoc-date{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);
  border-radius:8px;margin-top:7px;background:var(--surface)}
.aidoc-when{font-family:var(--mono);font-weight:650;font-size:12.5px;flex:none}
.aidoc-lbl{flex:1;font-size:12.5px;color:var(--ink2);overflow:hidden;text-overflow:ellipsis}

/* ===== v3.92: automatic document intelligence ===== */
.nt-ai{color:var(--faint)}          /* not read yet */
.nt-ai.done{color:var(--accent)}    /* read — tap to view */
.docsum{font-size:12px;color:var(--muted);max-width:340px}

/* ===== v3.93: doc preview + adaptive fields + live reading state ===== */
.aidoc-wrap{display:grid;grid-template-columns:1.85fr 1fr;gap:16px}
.aidoc-prevcol{display:flex;flex-direction:column;gap:8px;min-width:0}
.aidoc-bar{display:flex;gap:8px;flex:none}
.aidoc-prev{background:var(--bg);border:1px solid var(--line);border-radius:8px;overflow:auto;min-height:80vh;flex:1}
.aidoc-frame{width:100%;height:100%;min-height:80vh;border:none}
.aidoc-img{width:100%;height:auto;display:block}
.aidoc-info{min-width:0;overflow-y:auto;max-height:84vh}
.aidoc-head{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.aidoc-fields{display:flex;flex-direction:column;gap:4px}
.aidoc-field{display:flex;gap:10px;padding:5px 9px;background:var(--bg);border-radius:6px;font-size:12.5px}
.af-lbl{flex:none;width:132px;color:var(--faint);font-weight:600}
.af-val{color:var(--ink2);overflow-wrap:anywhere}
.mintag.st-red{background:var(--danger-bg);color:var(--danger)}
.mintag.st-amber{background:var(--amber-bg);color:var(--amber)}
.nt-ai.scanning{color:var(--amber);animation:aipulse 1s ease-in-out infinite}
@keyframes aipulse{50%{opacity:.3}}
.modalcard:has(.aidoc-wrap){max-width:1320px;width:96vw}
@media(max-width:820px){
  .aidoc-wrap{grid-template-columns:1fr}
  .aidoc-prev{min-height:62vh}
  .aidoc-frame{min-height:62vh}
  .aidoc-info{max-height:none}
}
/* ---------- compliance page + nav badge + calendar permit chips ---------- */
.navbadge{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;
  padding:0 5px;margin-left:5px;border-radius:9px;background:var(--danger,#dc2626);color:#fff;
  font-size:10.5px;font-weight:700;line-height:1;vertical-align:1px}
.navbadge.hidden{display:none}
.calchip.cmp{font-weight:600}
.calchip.cmp.cmp-ok{background:#E7F3EC;color:#1a7a48;border-left:2px solid #1e8a57}
.calchip.cmp.cmp-no{background:#FBEBE9;color:#b23125;border-left:2px solid #c0392b}
.calchip.cmp .cmp-exp{font-family:var(--mono);font-size:9px;opacity:.75}
.callegend{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:10px 14px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.callegend .lg-item{display:inline-flex;align-items:center;gap:6px}
.callegend .lg-dot{width:10px;height:10px;border-radius:3px}
.callegend .lg-green{background:#1e8a57}.callegend .lg-red{background:#c0392b}.callegend .lg-gold{background:#BC8A34}
.callegend .lg-hint{margin-left:auto;color:var(--faint);font-size:11.5px}
.update.up-ok{background:#E7F3EC;color:#1a7a48}.update.up-no{background:#FBEBE9;color:#b23125}
.up-okt{color:#1e8a57;font-weight:600}.up-not{color:#c0392b;font-weight:600}
.mintag.st-amber{background:#FBF0DC;color:#a5710f}
#complianceBody{margin-top:8px}
.cmp-top{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:14px}
.cmp-seg{display:inline-flex;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:3px}
.cmp-seg .segbtn{border:none;background:none;font-size:12.5px;font-weight:600;color:var(--muted);padding:6px 12px;border-radius:7px;cursor:pointer}
.cmp-seg .segbtn b{font-family:var(--mono);margin-left:3px}
.cmp-seg .segbtn.active{background:var(--accent-bg);color:var(--accent)}
.cmp-seg .segbtn.seg-expired.active{background:#FBEBE9;color:#c0392b}
.cmp-seg .segbtn.seg-expiring.active{background:#FBF0DC;color:#a5710f}
.cmp-seg .segbtn.seg-active.active{background:#E7F3EC;color:#1e8a57}
.cmp-top .filtersel{max-width:180px}
.cmp-top .calsearch{min-width:200px}
.cmp-list{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.cmp-row{display:grid;grid-template-columns:92px 1.5fr 1fr 148px 150px 70px;gap:12px;align-items:center;
  padding:11px 14px;border-bottom:1px solid var(--line);cursor:pointer;font-size:13.5px}
.cmp-row:last-child{border-bottom:none}
.cmp-row:hover{background:var(--bg)}
.cmp-store{font-weight:650;display:flex;flex-direction:column;min-width:0}
.cmp-co{font-size:11px;font-weight:500;color:var(--faint)}
.cmp-type{color:var(--ink2)}
.cmp-ends{font-family:var(--mono);font-size:12.5px;display:flex;flex-direction:column}
.cmp-when{font-size:10.5px;color:var(--faint)}
.cmp-when.expired{color:var(--danger,#dc2626)} .cmp-when.expiring{color:#a5710f}
.cmp-norenew{font-size:11px;color:var(--faint)}
.cmp-pdf{justify-self:start}
@media(max-width:760px){
  .cmp-row{grid-template-columns:1fr auto;gap:4px 10px}
  .cmp-type,.cmp-renew{grid-column:1/-1}
}

/* ===== v3.94: documents grouped by store ===== */
.rolehdr.docstore{display:flex;align-items:center;gap:8px;cursor:pointer;border-radius:6px;padding:6px 8px}
.rolehdr.docstore:hover{background:var(--accent-bg);color:var(--accent-d)}

/* ===== v3.95: iPhone pass — nothing may force the page wider than the screen ===== */
@media(max-width:760px){
  /* the store filters row was the overflow culprit: search 200px + two selects
     + buttons on one line. Let it wrap; search takes its own full line. */
  .st-right{flex-wrap:wrap;justify-content:flex-start;width:100%}
  .st-right input[type=search]{flex:1 1 100%;min-width:0;max-width:none}
  .st-right select{flex:1 1 auto;min-width:0;max-width:46vw}
  /* stack the company-stores toolbar (title on top, controls full-width below) */
  .store-toolbar{flex-direction:column;align-items:stretch;gap:10px}
  /* Alerts box sizes to its content (so a DM with 1 alert isn't a big empty card);
     capped with an internal scroll so a long list can't swallow the whole screen. */
  .alertbox-body{max-height:56vh;overflow-y:auto}
  .siteshead{flex-wrap:wrap;gap:10px}
  .dir-actionbar{flex-wrap:wrap}
  .dir-actionbar .dirsearch{flex:1 1 100%;min-width:0}
  /* calendar fits the width instead of forcing it */
  .calcell{min-height:54px;padding:2px}
  .caldow{padding:5px 3px;font-size:9px}
  .caldaynum{font-size:10.5px}
  .calcell.today .caldaynum{width:18px;height:18px}
  .calchip{font-size:9px;padding:1px 3px}
  .calmore{font-size:9px}
  /* header + modals + settings */
  .top{padding:calc(11px + env(safe-area-inset-top)) 10px 11px}
  .topright{flex-wrap:wrap;justify-content:flex-end;gap:0}
  .modalcard{max-width:96vw}
  .themegrid{grid-template-columns:1fr 1fr}
  .docsum{max-width:none}
  .rolehdr.docstore{flex-wrap:wrap}
  .astlog{padding:12px}
  /* belt & suspenders: never allow sideways scroll of the page itself */
  html,body{overflow-x:clip}
}

/* ===== v3.96: document stacks (current / upcoming / history) ===== */
.stackcard{background:var(--surface);border:1px solid var(--line);border-radius:10px;
  padding:10px 12px;margin-bottom:10px;box-shadow:var(--sh)}
.stack-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:7px;font-size:13px}
.stack-doc{display:flex;align-items:center;gap:9px;padding:6px 4px;border-top:1px solid var(--line);
  font-size:12.5px;flex-wrap:wrap}
.stack-doc .sd-name{font-weight:550;min-width:0;overflow-wrap:anywhere}
.stack-doc .sd-date{margin-left:auto;font-family:var(--mono);font-size:11.5px;color:var(--muted)}
.stack-doc .btn{flex:none}
.stack-histtog{margin-top:6px;color:var(--faint);font-size:11.5px}
.stack-hist .stack-doc{opacity:.75}
.mintag.st-green2{background:var(--green-bg);color:var(--green)}

/* ===== v4.00: iOS input zoom fix + storage meter ===== */
@media(max-width:760px){
  /* iOS zooms the page when focusing any input under 16px — never let it */
  input,select,textarea{font-size:16px!important}
  .astbar textarea{min-width:0}
}
.storemeter{display:flex;align-items:center;gap:10px;padding:9px 12px;margin-bottom:12px;
  background:var(--surface);border:1px solid var(--line);border-radius:8px}
.storemeter .sm-bar{flex:1;height:7px;background:var(--line);border-radius:4px;overflow:hidden;min-width:80px}
.storemeter .sm-bar span{display:block;height:100%;background:var(--green);border-radius:4px}
.storemeter.warn .sm-bar span{background:var(--amber)}
.storemeter.crit .sm-bar span{background:var(--danger)}
.storemeter .sm-txt{font-size:12px;color:var(--muted);white-space:nowrap}
@media(max-width:760px){.storemeter{flex-wrap:wrap}.storemeter .sm-txt{white-space:normal}}

/* ===== v4.01: tab company assignment + groups ===== */
.tabrow{flex-wrap:wrap}
.tabrow .tabco{max-width:190px;font-size:12px}
.corow .filtersel{max-width:170px;font-size:12px;flex:none}
@media(max-width:760px){
  .tabrow .tabco{max-width:none;flex:1 1 100%}
  .corow{flex-wrap:wrap}
  .corow .filtersel{max-width:none;flex:1 1 100%}
}

/* ===== v4.03: portals — named sections inside a company ===== */
.portalhdr{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;
  text-transform:uppercase;letter-spacing:.07em;color:var(--muted);
  margin:18px 2px 10px;padding-bottom:6px;border-bottom:2px solid var(--accent-bg)}
.portalhdr:first-of-type{margin-top:4px}
/* company "Sub Documents" folder (3-I onboarding forms) */
.subdocs-sec{margin-top:26px}
.subdocs-note{font-weight:400;text-transform:none;letter-spacing:0;color:var(--faint);font-size:11.5px}
.subdocs-list{display:flex;flex-direction:column;gap:3px;margin-top:2px}
.subdoc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:9px 12px;background:var(--surface);border:1px solid var(--line);border-radius:9px}
.subdoc-link{color:var(--ink2);font-size:13px;font-weight:550;text-decoration:none;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.subdoc-link:hover{color:var(--accent)}
.subdoc-del{color:var(--faint)}
.subdoc-del:hover{color:var(--danger)}
.pnl-portal{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;
  color:var(--faint);padding:9px 9px 3px}

/* ===== v4.04: image lightbox + mobile pane polish ===== */
.lightbox{position:fixed;inset:0;z-index:6000;background:rgba(10,14,22,.92);
  display:none;align-items:center;justify-content:center}
.lightbox.open{display:flex}
.lb-img{max-width:92vw;max-height:80vh;object-fit:contain;border-radius:6px;
  box-shadow:0 10px 40px rgba(0,0,0,.5)}
.lb-x{position:absolute;top:14px;right:16px;color:#fff;font-size:22px;width:44px;height:44px;
  border-radius:50%;background:rgba(255,255,255,.12)}
.lb-del{position:absolute;top:14px;left:16px;color:#fff;width:44px;height:44px;border-radius:50%;
  background:rgba(220,38,38,.30);display:flex;align-items:center;justify-content:center}
.lb-del:hover{background:rgba(220,38,38,.6)}
.lb-del svg{width:20px;height:20px}
.lb-nav{position:absolute;top:50%;transform:translateY(-50%);color:#fff;font-size:34px;
  width:52px;height:72px;border-radius:10px;background:rgba(255,255,255,.10)}
.lb-nav:hover{background:rgba(255,255,255,.22)}
.lb-prev{left:10px}.lb-next{right:10px}
.lb-meta{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);
  display:flex;gap:14px;align-items:center;color:#D9DEE7;font-size:12.5px;
  background:rgba(0,0,0,.45);padding:7px 16px;border-radius:18px;max-width:92vw}
.lb-meta a{color:#9DB4F5}
.lb-count{font-family:var(--mono);font-weight:650;color:#fff}
@media(max-width:760px){
  .pane-tabs{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .pane-tabs::-webkit-scrollbar{display:none}
  .pane-head{flex-wrap:wrap;gap:6px}
  .pane{max-height:none}
  .lb-nav{width:42px;height:60px;font-size:28px}
}

/* ===== v4.04b: ledger (RoofHub-style money table) ===== */
.lg-scope{border:1px solid var(--line2);border-radius:6px;padding:3px 8px;font-size:12px;width:130px}
.ledgertable td.num{font-family:var(--mono);white-space:nowrap}
.ledgertable .lg-totals td{border-top:2px solid var(--line2);background:#FAFBFD}
.lg-out{color:var(--danger)}
.lg-unpaid td:first-child{box-shadow:inset 3px 0 0 var(--danger)}
.tblwrap{overflow-x:auto}

/* ===== v4.05: calm file tree, especially on phones ===== */
.nt-kidcount{font-size:10.5px;color:var(--faint);font-family:var(--mono);flex:none;
  background:var(--bg);border-radius:9px;padding:1px 8px}
@media(max-width:760px){
  .nt-fname{display:none}          /* the title already says the name */
  .nt-row{padding:7px 2px;gap:7px}
  .nt-title{white-space:normal;line-height:1.35}
  .nt-acts{margin-left:auto}
}

/* ===== v4.06: photo gallery grids + portal header row fix ===== */
.photogrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:8px;margin-top:4px}
.pg-thumb{aspect-ratio:1;background-size:cover;background-position:center;border-radius:8px;
  border:1px solid var(--line);cursor:pointer;background-color:var(--bg);position:relative}
.pg-thumb:hover{outline:2px solid var(--accent);outline-offset:1px}
/* v5.44: bulk photo select (marquee on desktop, long-press on mobile) */
.pg-thumb.sel{outline:3px solid var(--accent,#2f6df6);outline-offset:-3px}
.pg-thumb.sel::after{content:"✓";position:absolute;top:5px;left:5px;width:22px;height:22px;border-radius:50%;
  background:var(--accent,#2f6df6);color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:800;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.gal-marquee{position:fixed;z-index:6500;border:1.5px solid var(--accent,#2f6df6);
  background:rgba(47,109,246,.16);pointer-events:none;border-radius:2px}
.galdel{background:var(--bad,#dc2626)!important;border-color:var(--bad,#dc2626)!important;color:#fff!important}
.galdel:hover{filter:brightness(1.06)}
@media(max-width:760px){
  .photogrid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px}
  .pnl-portal{flex:1 1 100%;padding:9px 4px 2px}   /* portal label gets its own row */
}

/* ===== v4.07: portal tiles (Roofing / Oil records open like pages) ===== */
/* service tiles: calm cards — clear name, one line of numbers, nothing shouting */
.portalgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin-top:8px}
.portaltile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-height:118px;
  background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);
  border-radius:var(--r);box-shadow:var(--sh);padding:16px 18px 13px;cursor:pointer;text-align:left;
  transition:transform .08s,box-shadow .08s}
.portaltile:hover{transform:translateY(-1px);box-shadow:0 4px 14px rgba(16,24,40,.13)}
.pt-name{font-size:17px;font-weight:700}
.pt-n{font-size:12px;color:var(--muted);font-family:var(--mono)}
.pt-go{margin-top:auto;padding-top:10px;font-size:12px;font-weight:600;color:var(--accent);display:inline-flex;align-items:center;gap:3px}
.pnl-portalpill .coitem-init{background:var(--accent-bg);color:var(--accent-d);border-radius:6px;
  width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
@media(max-width:760px){.portalgrid{grid-template-columns:1fr 1fr}}

/* ===== v5.06: pull-to-refresh indicator (phones/PWA) ===== */
.ptr{position:fixed;top:calc(8px + env(safe-area-inset-top,0px));left:50%;z-index:1600;
  width:34px;height:34px;border-radius:50%;background:var(--surface,#fff);
  border:1px solid var(--line,#e5e7eb);box-shadow:0 5px 16px rgba(10,15,25,.20);
  display:flex;align-items:center;justify-content:center;color:var(--accent,#2f6df6);
  transform:translate(-50%,-52px);opacity:0;pointer-events:none;
  transition:transform .22s ease, opacity .18s ease}
.ptr.show{opacity:1}
.ptr.ready{background:var(--accent,#2f6df6);color:#fff;border-color:transparent}
.ptr svg{width:17px;height:17px;transition:none}
.ptr.spin svg{animation:ptrspin .7s linear infinite;transform:none!important}
@keyframes ptrspin{to{transform:rotate(360deg)}}

/* ===== v5.08: in-app full-screen file viewer (PDFs + images) ===== */
.fs-lock{overflow:hidden}
.fsviewer{position:fixed;inset:0;z-index:3000;display:flex;flex-direction:column;background:#2b2f36}
.fsbar{flex:0 0 auto;display:flex;align-items:center;gap:8px;
  padding:calc(9px + env(safe-area-inset-top,0px)) 12px 9px;
  background:var(--surface,#fff);border-bottom:1px solid var(--line,#e5e7eb)}
.fsname{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42vw}
.fsspring{flex:1 1 auto}
.fsbar .btn.tiny{white-space:nowrap}
.fsbody{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;background:#3a3f47}
.fsframe{width:100%;height:100%;border:0;background:#fff}
/* v5.30: a scaled, fit-to-width document — anchored top-left, the body scrolls */
.fsbody.fsdoc{display:block;overflow:auto;position:relative;-webkit-overflow-scrolling:touch}
.fsbody.fsdoc .fsframe{position:absolute;top:0;left:0}
.fszlbl{color:var(--muted,#6b7280);font-size:12px;min-width:38px;text-align:center;font-variant-numeric:tabular-nums}
.fsbar .fszout,.fsbar .fszin{min-width:30px;font-weight:700}
.fsimg{max-width:100%;max-height:100%;object-fit:contain}
/* v6.59: the REAL multi-page PDF preview — every page a canvas in one scrollable column */
.fspdfscroll{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;
  background:#3a3f47;padding:10px 0 calc(16px + env(safe-area-inset-bottom,0px))}
.fspdfinner{width:100%;margin:0 auto;transition:width .15s ease}
.fspdfinner canvas{display:block;width:calc(100% - 16px);height:auto;margin:0 auto 12px;
  background:#fff;box-shadow:0 2px 12px rgba(0,0,0,.45);border-radius:2px}
.fspdfnote{color:#c8cdd4;font-size:12.5px;text-align:center;margin:4px 0 0}
.fspagecount{color:var(--muted,#6b7280);font-size:12px;white-space:nowrap}
/* v8.95 — the viewer's filename keeps a readable minimum and the wordy button goes
   icon-only on a phone (the name had collapsed to "D…" — phone audit D) */
.fsname{flex:0 1 auto;min-width:72px}
@media(max-width:760px){
  .fsname{max-width:32vw} .fsbar .fsdl{display:none} .fsbar .fszlbl{display:none}
  /* the bar must never push ✕ past the edge: wordy button goes icon-only, tight paddings,
     and the bar may wrap as a last resort */
  .fsbar{flex-wrap:wrap;gap:6px;padding-left:8px;padding-right:8px}
  .fsbar .btn.tiny{padding:9px 8px;min-height:40px}
  .fsbar .fsopen{font-size:0;padding:9px 10px}
  .fsbar .fsopen::after{content:"↗";font-size:15px;line-height:1}
  .fsx{margin-left:auto}
}

/* ===== v5.11: insurance $ amount on the Insurance Doc box ===== */
.docslot-amt{display:flex;align-items:center;gap:8px;margin:8px 0 2px}
.docslot-amt .da-lbl{font-size:11px;color:var(--muted,#6b7280);text-transform:uppercase;letter-spacing:.04em;white-space:nowrap}
.docslot-amt .da-in{flex:1 1 auto;min-width:0;width:100%;padding:5px 9px;border:1px solid var(--line,#e5e7eb);
  border-radius:7px;font-size:14px;font-family:var(--mono,ui-monospace,monospace);background:var(--surface,#fff)}
.docslot-amt .da-in:focus{outline:none;border-color:var(--accent,#2f6df6)}

/* ===== v5.12: subcontractor stripped job page + admin sub-uploads ===== */
.subjob{max-width:760px;margin:4px auto 30px;padding:0 4px}
.subjob-contract{background:var(--accent-bg,#eef3ff);color:var(--accent-d,#1f4bbd);border:1px solid var(--line,#e5e7eb);
  border-radius:10px;padding:12px 16px;font-size:15px;margin-bottom:16px}
.subjob-sec{background:var(--surface,#fff);border:1px solid var(--line,#e5e7eb);border-radius:12px;
  box-shadow:var(--sh,0 1px 3px rgba(16,24,40,.06));padding:16px 18px;margin-bottom:14px}
.subjob-h{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:700;margin-bottom:2px}
.subjob-n{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;
  background:var(--accent,#2f6df6);color:#fff;font-size:13px;font-weight:700;flex:0 0 auto}
.subjob-forms,.subjob-ups{display:flex;flex-direction:column;gap:7px;margin-top:10px}
.subjob-form,.subjob-uplink{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid var(--line,#e5e7eb);
  border-radius:8px;background:var(--bg-soft,#f7f8fa);color:var(--ink,#111827);text-decoration:none;font-size:14px;font-weight:600}
.subjob-form:hover,.subjob-uplink:hover{border-color:var(--accent,#2f6df6)}
.subjob-up{display:flex;align-items:center;gap:10px}
.subjob-up .subjob-uplink{flex:1 1 auto;min-width:0}
.subjob-upat{font-size:12px;white-space:nowrap}
.subups-admin{margin-top:14px;border-top:1px dashed var(--line,#e5e7eb);padding-top:12px}
.subups-hdr{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#6b7280);margin-bottom:8px}
.subups-n{display:inline-block;background:var(--accent,#2f6df6);color:#fff;border-radius:10px;padding:0 7px;font-size:11px;margin-left:4px}
.subups-list{display:flex;flex-direction:column;gap:6px}
.subup-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13.5px}
.subup-link{color:var(--accent-d,#1f4bbd);text-decoration:none;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* v5.15: sub agreement e-sign */
.subjob-terms{display:grid;gap:6px;margin:10px 0 14px;padding:12px 14px;background:var(--bg-soft,#f7f8fa);border:1px solid var(--line,#e5e7eb);border-radius:10px}
.subjob-terms>div{display:flex;justify-content:space-between;gap:14px;font-size:13.5px}
.subjob-terms>div>span{color:var(--muted,#6b7280)}
.subjob-terms>div>b{text-align:right}
.subjob-chk{display:flex;align-items:flex-start;gap:8px;margin:10px 0 12px;font-size:13.5px;cursor:pointer}
.subjob-sigfield{font-family:"Segoe Script","Snell Roundhand","Brush Script MT",cursive;font-size:20px}
.subjob-signrow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}
.subjob-n.done{background:var(--good,#16a34a)}
.subjob-sec.signed{background:var(--good-bg,#ecfdf3);border-color:var(--good,#16a34a)}
.subjob-locked{opacity:.5;pointer-events:none}
/* v5.21: sub tabbed job page */
.subjob-sec .headbtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.subagform .subjob-sec{margin-bottom:14px}
.subjob-forms,.subjob-ups{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.subjob-form{color:var(--accent-d,#1f4bbd);text-decoration:none;font-weight:600}
.subjob-up{display:flex;align-items:center;gap:10px;font-size:13.5px}
.subjob-uplink{color:var(--accent-d,#1f4bbd);text-decoration:none;font-weight:600;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.paidbadge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:700;background:var(--line,#e5e7eb);color:var(--muted,#6b7280)}
.paidbadge.on{background:var(--good-bg,#ecfdf3);color:var(--good,#16a34a)}
.subup-agacts{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap}
/* v5.32: the "agreement signed" line — a tidy green banner, not text shoved left */
.subup-agree{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 14px;
  padding:9px 14px;border:1px solid var(--good,#16a34a);background:var(--good-bg,#ecfdf3);
  border-radius:10px;font-size:13.5px;margin-bottom:8px}
.subup-agree-main{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 320px}
.subup-agree-ic{flex-shrink:0;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;
  color:var(--good,#16a34a);border:1px solid var(--good,#16a34a);border-radius:5px;padding:1px 6px;line-height:1.5}
/* an agreement left by a former/deleted subcontractor — kept as a record, shown neutral (not green) */
.subup-orphan{border-color:var(--line2,#d5d9e0);background:var(--surface2,#f6f7f9)}
.subup-orphan .subup-agree-ic{color:var(--muted,#6b7280);border-color:var(--line2,#c7ccd4)}
.subup-orphan-note{flex:1 1 100%;font-size:12px;color:var(--muted,#6b7280);margin:-2px 0 0}
/* v5.23: sub home (jobs-only dashboard) */
.subhome{display:flex;flex-direction:column;gap:14px}
.subhome-hd{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--muted,#6b7280);margin-top:2px}
.subjobtile{align-items:flex-start;text-align:left}
.subjt-addr{font-size:12.5px;color:var(--muted,#6b7280);margin-top:2px}
.subjt-badge{display:inline-block;margin-top:8px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700}
.subjt-badge.ok{background:var(--good-bg,#ecfdf3);color:var(--good,#16a34a)}
.subjt-badge.todo{background:#fff4e5;color:#b26a00}
.alert-subform .alert-title{font-weight:600}
/* v5.24: roofing job Forms tab (sub paperwork hub) */
.roofforms{display:flex;flex-direction:column;gap:14px;padding:4px 2px}
.rfsec{border:1px solid var(--line,#e5e7eb);border-radius:10px;padding:12px 14px;background:var(--card,#fff)}
.rfsec-hd{font-size:13px;font-weight:700;margin-bottom:2px}
.rfsec .headbtns{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.rfsec .subjob-ups{margin-top:8px}
/* v5.34: Subs tab = agreement banner + stacked "Forms" / "Other documents" groups */
.subup-agree-wait{border-color:var(--line,#e5e7eb);background:var(--bg-soft,#f7f8fa)}
.rf-group{border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:12px 14px 14px;background:var(--card,#fff)}
.rf-grouphd{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#6b7280);
  padding-bottom:8px;margin-bottom:4px;border-bottom:1px solid var(--line,#eef0f3)}
.rf-sub{margin-top:12px}
.rf-sub:first-of-type{margin-top:6px}
.rf-subhd{font-size:13px;font-weight:700;margin-bottom:2px}
.subjob-uplink.is-dim{opacity:.6;pointer-events:none;background:transparent;border-style:dashed}
.sf-blank{white-space:nowrap;flex:0 0 auto;text-decoration:none}
.subjob-up .sf-blank{margin-left:auto}
.sfchk-acts .sf-blank{margin-left:2px}
/* v5.26: in-app viewer — no-preview panel (docx/xlsx) */
.fsnopreview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:40px 24px;height:100%;max-width:440px;margin:0 auto}
.fsnp-ic{font-size:52px}
.fsnp-name{font-size:16px;font-weight:700;word-break:break-word}
.fsnp-btns{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:6px}
/* v9.68 — a spreadsheet drawn in the in-app viewer: one tab per sheet, the workbook's own
   header band / zebra / bold carried over, numbers right-aligned and the frozen rows sticky */
.fssheet{width:100%;height:100%;display:flex;flex-direction:column;background:#fff;font-size:13px}
.shtabs{flex:0 0 auto;display:flex;gap:2px;overflow-x:auto;background:#eef0f3;border-bottom:1px solid #d7dbe0;
  padding:0 6px;-webkit-overflow-scrolling:touch}
.shtabs:empty{display:none}
.shtab{flex:0 0 auto;border:0;background:transparent;padding:9px 12px;font:inherit;font-size:12.5px;
  color:#4b5563;cursor:pointer;border-bottom:2px solid transparent;white-space:nowrap}
.shtab.on{color:#111827;font-weight:700;background:#fff;border-bottom-color:#2F5597}
.shwrap{flex:1 1 auto;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;background:#fff}
.shscroll{min-width:100%;padding-bottom:calc(18px + env(safe-area-inset-bottom,0px))}
.shtable{border-collapse:separate;border-spacing:0;table-layout:fixed;background:#fff;min-width:100%}
.shtable td{border-right:1px solid #e8eaee;border-bottom:1px solid #e8eaee;padding:5px 8px;
  vertical-align:top;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  font-variant-numeric:tabular-nums;color:#1f2937}
.shtable tr.shhead td{position:sticky;top:0;z-index:2;white-space:normal}
.shtable tr.shblank td{height:10px;border-bottom-color:transparent}
.shtable tr[style*="--shlvl"] td:first-child{padding-left:calc(8px + var(--shlvl,0)*14px)}
.shnote{color:#6b7280;font-size:12px;padding:10px 12px;margin:0}
.shfail{padding:36px 24px;text-align:center;color:#374151}
.shfail p{margin:0 0 12px}
@media (max-width:760px){ .shtable td{padding:6px 7px} .shtab{padding:10px 11px} }
/* v5.28: sub required-forms checklist */
.sfchk{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.sfchk-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line,#e5e7eb);border-radius:10px;background:var(--card,#fff)}
.sfchk-row.ok{background:var(--good-bg,#ecfdf3);border-color:var(--good,#16a34a)}
.sfchk-ic{width:24px;height:24px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:50%;font-weight:800;font-size:14px;background:var(--line,#e5e7eb);color:var(--muted,#6b7280)}
.sfchk-row.ok .sfchk-ic{background:var(--good,#16a34a);color:#fff}
.sfchk-main{flex:1;display:flex;flex-direction:column;min-width:0}
.sfchk-t{font-weight:650;font-size:14px}
.sfchk-s{font-size:12px;color:var(--muted,#6b7280)}
.sfchk-acts{display:flex;flex-wrap:wrap;gap:6px;flex-shrink:0}
.sfchk-count{font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px;background:#fff4e5;color:#b26a00}
.sfchk-count.all{background:var(--good-bg,#ecfdf3);color:var(--good,#16a34a)}
/* v8.69 — Add sub / Add overseer, under the People on Job heading */
.rf-peopleacts{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 12px}
.ovrow{display:flex;align-items:center;gap:10px;padding:7px 8px;border:1px solid var(--line);border-radius:10px;margin-bottom:6px;font-size:13.5px}
.ovrow .ov-nm{flex:1;min-width:0}

/* v6.92: blue unpaid-invoices badge on job tiles/rows — blue means money still owed */
.unpaidb{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;
  padding:0 5px;margin-left:6px;border-radius:9px;background:#2F6DF6;color:#fff;
  font-size:11px;font-weight:700;line-height:1;vertical-align:2px;flex:none}

/* v6.94: the sub's Status badge learns the partial state (amber, matches the admin view) */
.paidbadge.part{background:#FDF0DC;color:#B45309}

/* v6.97: directory filters — status multi-select menu */
.stmulti{position:relative;display:inline-block}
.stmulti .stbtn{cursor:pointer;white-space:nowrap}
.stmenu{position:absolute;right:0;top:calc(100% + 6px);z-index:80;min-width:180px;
  background:#fff;border:1px solid var(--line,#d6dbe4);border-radius:10px;
  box-shadow:0 12px 34px rgba(10,15,30,.18);padding:8px;display:flex;flex-direction:column;gap:2px}
.stmenu label{display:flex;align-items:center;gap:8px;font-size:13px;padding:6px 8px;border-radius:6px;cursor:pointer}
.stmenu label:hover{background:#f4f6fa}
.stmenu .stall{margin-top:6px}

/* v6.98: permits pane on phones — thumb-sized buttons that wrap instead of clipping */
@media(max-width:760px){
  .pt-head{flex-wrap:wrap;row-gap:6px}
  .pt-head .pt-histbtn,.pt-head .pt-inup{padding:8px 12px}
  .pt-tools{flex-wrap:wrap;gap:8px}
  .pt-tools .tabsearch{flex:1 1 100%}
  .ptc-act .rowacts{flex-wrap:wrap;justify-content:flex-end;row-gap:6px}
  .ptfiles{flex-wrap:wrap;row-gap:6px}
  .pane-drop{padding:18px 12px}
}
.ptt-pin{margin-bottom:6px;border-bottom:1px dashed var(--line,#d6dbe4);padding-bottom:8px}

/* v6.99: directory header filters + map panel accordions */
.dirtable th{vertical-align:top}
.th-f{display:block;font-weight:400;font-size:12px;margin-top:4px;max-width:140px;text-transform:none;letter-spacing:0}
.th-st{position:relative}
.th-st .stmenu{left:0;right:auto;text-transform:none;letter-spacing:0;font-weight:400}
.mp-acchead{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:none;border:0;
  border-top:1px solid var(--line,#e3e7ee);padding:11px 4px;font-size:13px;font-weight:700;cursor:pointer;color:inherit}
.mp-acchead .mp-hint{font-weight:400}
.mp-accar{margin-left:auto;color:#8a93a3}
.mp-accbody{padding:0 4px 10px}
.mp-accbody.collapsed{display:none}

/* v7.02: the directory filter band — one uniform strip under the headers */
.dirfilters th{padding:6px 8px 10px;background:transparent;border-bottom:1px solid var(--line,#e3e7ee)}
.dirfilters .filtersel.th-f{display:block;width:100%;max-width:none;margin:0;font-weight:400;font-size:12.5px;text-transform:none;letter-spacing:0}
.dirfilters .th-st{position:relative;display:block}
.dirfilters .th-st .stbtn{width:100%;text-align:left}
.dirfilters .th-st .stmenu{left:auto;right:0;top:calc(100% + 4px);min-width:190px}

/* v7.03: THE close bug — .stmenu sets display:flex, which beat the hidden attribute.
   The menu was closing in JS all along; CSS kept it visible. Never again. */
.stmenu[hidden]{display:none!important}
/* little filter button beside a column title + its compact popover */
.thf{position:relative;display:inline-block;margin-left:5px;vertical-align:middle}
.thfbtn{border:1px solid var(--line,#d6dbe4);background:#fff;border-radius:5px;width:20px;height:20px;
  line-height:1;font-size:10px;color:#68727f;cursor:pointer;padding:0}
.thfbtn:hover{border-color:#9aa4b5;color:#333}
.thfbtn.on{background:#2F54D6;border-color:#2F54D6;color:#fff}
.thfmenu{left:0;right:auto;top:calc(100% + 5px);max-height:280px;overflow:auto;min-width:185px;
  font-weight:400;text-transform:none;letter-spacing:0}
.thfmenu.right{left:auto;right:0}
.thfopt{display:block;width:100%;text-align:left;background:none;border:0;padding:6px 9px;
  border-radius:6px;font-size:13px;cursor:pointer;color:inherit}
.thfopt:hover{background:#f4f6fa}
.thfopt.sel{font-weight:700;color:#2F54D6}

/* ---------- v7.22: Back above the card, not in the header (owner: "i dont think it
   should be in the relay button. it should be above the store card no?") ----------
   Two homes, one at a time: the page-level .backbar strip just under the header for
   full-page views (directory, portal lists, settings…), and #paneBack on the card's
   own Multi-view row whenever a store/job window is open. updateBackBtn hides the
   strip in that case so there are never two Backs on screen. */
/* v7.29: .backbar (the page-level Back strip) is gone — it pushed the company sidebar
   down on the dashboard. Only the card's own Multi-view Back remains. */
.mvbar .topback{border:1px solid var(--line2);background:var(--surface);color:var(--ink2);
  box-shadow:0 1px 2px rgba(20,24,31,.06)}
.mvbar .topback:hover{border-color:var(--muted);color:var(--ink);background:var(--surface)}
/* card top row: Back left, Multi-view right, same line */
.mvbar{justify-content:space-between;align-items:center}
.mvbar .topback{padding:5px 12px 5px 9px;border-radius:9px;font-size:12.5px}
/* the company sidebar tucks under the header via its -24px pull, always — the strip that
   used to cancel it (and cut the sidebar off) no longer exists */

/* v7.54: a row carrying several invoices lists each number with its own amount, so you can
   tell which is which without opening the line (owner: "just like you listed the invoice
   numbers, cna u list the totals of each invoice?"). Pairs left-to-right rather than as two
   parallel stacks — no counting down two columns to work out which figure belongs to which
   number. Only renders when every invoice states an amount. */
.invsplit{line-height:1.5}
.invsplit-r{display:flex;gap:8px;align-items:baseline;justify-content:space-between;max-width:230px}
.invsplit-n{font-variant-numeric:tabular-nums}
.invsplit-a{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}


/* v7.75 — a permit that has been silenced at one store.
   He was explicit: "should be visible, but its silent with a muted button." So the row
   keeps its place, its files and its real expiry date; only the volume changes. The
   banner desaturates slightly so a muted permit reads as parked rather than urgent, and
   the status chip is neutral grey — never the red "Expired" it would otherwise carry,
   because shouting about a permit he has deliberately switched off IS the bug. */
.pt-banner.pt-muted{opacity:.72}
.pt-banner.pt-muted:hover{opacity:1}
.pt-banner.pt-muted .pt-exp{color:var(--muted,#6B7280); text-decoration:line-through}
.mintag.st-grey{background:#EEF0F3; color:#4B5563; border:1px solid #D9DDE3}
.pt-mute{white-space:nowrap}
.pt-mute.is-muted{color:#4B5563; font-weight:600}


/* v7.79 — the dashboard he described twice: Alerts and Set-up sharing the top row,
   companies as tiles in the wide left column, Upcoming and In progress stacked right. */
.dashtoprow{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start;margin-bottom:14px}
.dashtoprow>:only-child{grid-column:1/-1}   /* nothing to set up -> Alerts takes the row */
.dashtoprow .alertbox,.dashtoprow .setupbox{margin:0;height:100%}
.dashcols2{display:grid;grid-template-columns:1.6fr 1fr;gap:14px;align-items:start}
.dashleft,.dashright{display:flex;flex-direction:column;gap:14px}
/* v8.36 — the dashboard is a real grid, two cells per row (owner: "i want the dashboard
   reoganied so that the [heights] of all modals are in line, same with the width").
   Before this each column was its own independent stack, so Alerts ended 110px above the
   Companies card beside it and In-progress started 100px above Sales — the two columns
   drifted further apart the further down you looked. Now every row is one grid row: the
   cards in it share a top edge, a bottom edge and a height, and both columns keep the
   same two vertical edges all the way down. The column ORDER and their 1.6/1 proportions
   are deliberately untouched — v7.86 swapped them and got "HIDEOUS… REVERT" on sight. */
.dashcols2{align-items:stretch}
.dashcell{min-width:0;display:flex;flex-direction:column;gap:14px}
.dashcell>*{margin-bottom:0}
/* the cards in a cell SHARE the slack, so a short right-hand column reaches the bottom of
   the tall card beside it instead of leaving a ragged step. Spread rather than dumped on
   the last card: giving Upcoming every spare pixel makes a two-event box the biggest
   thing on the page. */
.dashcell>*{flex:1 1 auto;min-height:0}
/* a long list must scroll inside its own card rather than stretch the whole row: 40
   alerts should not leave a 900px white gap beside them */
.dashcell .alertbox-body,.dashcell .setupbox-body{max-height:min(46vh,520px);overflow:auto}
.cotilegrid-desk{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.setup-q{max-width:180px}
.setuprow.setup-overflow{display:none}
@media(max-width:1100px){
  .dashtoprow{grid-template-columns:1fr}
  .dashcols2{grid-template-columns:1fr}
}


/* v7.80 — Download lives beside the gear on the report row, where he asked for it the
   first time. A quiet bordered button, not another loud tile. */
.repdl{flex:none;font:600 12.5px/1 inherit;padding:7px 11px;border-radius:8px;cursor:pointer;
  background:var(--surface);color:var(--ink);border:1px solid var(--line2,#D5D9DE);white-space:nowrap}
.repdl:hover:not(:disabled){border-color:var(--accent,#2C5CE6);color:var(--accent,#2C5CE6)}
.repdl:disabled{opacity:.45;cursor:default}


/* v7.81 — the permit-health ring beside the company tiles.
   Tiles go 4 across (his call: "4 on top 4 on bottom makes sense"); the ring takes the
   freed right edge. Colours are the app's existing status hues, and the no-permits
   segment BLINKS — his word — unless the OS asks for reduced motion, where it falls back
   to a dashed stroke so the distinction survives without movement. */
.cobody{display:flex;gap:18px;align-items:flex-start}
.cobody .cotilegrid-desk{flex:1;grid-template-columns:repeat(4,minmax(0,1fr))}
.ringwrap{flex:none;width:210px;display:flex;flex-direction:column;gap:10px;align-items:center;
  padding:6px 2px}
.permring{width:150px;height:150px;transform:rotate(-90deg)}
.ring-seg{fill:none;stroke-width:17;stroke-linecap:butt}
.rg-ok{stroke:#1E8E3E}.rg-exp{stroke:#E8710A}.rg-red{stroke:#C5221F}
.rg-none{stroke:#C5221F;animation:ringblink 1.1s steps(2,start) infinite}
.ring-big{transform:rotate(90deg);transform-origin:70px 70px;font:700 30px/1 inherit;
  fill:var(--ink);text-anchor:middle}
.ring-sub{transform:rotate(90deg);transform-origin:70px 70px;font:600 11px/1 inherit;
  fill:var(--ink3,#8A9099);text-anchor:middle;letter-spacing:.06em;text-transform:uppercase}
.ringkey{display:flex;flex-direction:column;gap:5px;width:100%}
/* v8.90 — the number and its label are their own columns and the row aligns to the TOP,
   so a label that wraps (e.g. "expiring in 30 days, or no date set") no longer leaves the
   big number floating in the vertical middle of two lines. Numbers right-align in a fixed
   column so 8 and 49 line up; the label takes the rest and wraps cleanly. */
.ringkey-row{display:flex;align-items:flex-start;gap:8px;font:500 12.5px/1.35 inherit;
  background:none;border:none;color:var(--ink);cursor:pointer;text-align:left;padding:5px 6px;
  border-radius:7px;width:100%}
.ringkey-row:hover{background:var(--wash,#F2F3F5)}
.ringkey-row .ringdot{margin-top:4px}
.ringkey-n{font-variant-numeric:tabular-nums;font-weight:700;min-width:24px;text-align:right;flex:none}
.ringkey-t{flex:1;min-width:0}
.ringdot{width:10px;height:10px;border-radius:50%;flex:none}
.ringdot.rg-ok{background:#1E8E3E}.ringdot.rg-exp{background:#E8710A}
.ringdot.rg-red{background:#C5221F}
.ringdot.rg-none{background:#C5221F;animation:ringblink 1.1s steps(2,start) infinite}
@keyframes ringblink{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){
  .rg-none,.ringdot.rg-none{animation:none;stroke-dasharray:4 3}
  .ringdot.rg-none{outline:2px dashed #C5221F;outline-offset:1px;background:transparent}
}
.flash-target{transition:box-shadow .3s;box-shadow:0 0 0 3px var(--accent,#2C5CE6)}
@media(max-width:1400px){.cobody .cotilegrid-desk{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.cobody{flex-direction:column}.ringwrap{width:100%;flex-direction:row;justify-content:flex-start}}


/* v7.83 — the dashboard store finder and the company name in the store header. */
.dashstrip{display:flex;align-items:center;gap:16px}
/* v7.84 ("search bar ugly. i want it to stretch out to 1 temp closed") — the finder now
   fills the whole gap from the strip's text to the right edge instead of sitting as a
   small box in the corner. */
.dashstrip>span:first-child{white-space:nowrap}
.dash-spring{display:none}
.dashfind{position:relative;flex:1}
.dashfind input{width:100%}
.dashfind-list{position:absolute;right:0;top:calc(100% + 4px);z-index:60;min-width:320px;
  background:var(--surface);border:1px solid var(--line2,#D5D9DE);border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);overflow:hidden}
.dashfind-hit{display:flex;justify-content:space-between;gap:14px;width:100%;padding:9px 12px;
  background:none;border:none;border-bottom:1px solid var(--line);cursor:pointer;
  font:500 13px/1.3 inherit;color:var(--ink);text-align:left}
.dashfind-hit:last-child{border-bottom:0}
.dashfind-hit:hover{background:var(--wash,#F2F3F5)}
.dashfind-hit span{color:var(--ink3,#8A9099);white-space:nowrap}
.dashfind-none{padding:10px 12px;font-size:13px;color:var(--ink3,#8A9099)}
.pane-co{font:600 11px/1 inherit;color:var(--ink3,#6B7280);background:var(--wash,#F2F3F5);
  border:1px solid var(--line);border-radius:999px;padding:3px 8px;vertical-align:2px;
  margin-left:6px;white-space:nowrap}


/* v7.85 — compliance column titles + the permit number under the type. */
.cmp-headrow{background:none;border:none;cursor:default;padding:2px 14px 6px;
  font:650 10.5px/1 inherit;letter-spacing:.09em;text-transform:uppercase;
  color:var(--ink3,#8A9099)}
.cmp-headrow:hover{background:none}
.cmp-no{display:block;font:500 11.5px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color:var(--ink3,#8A9099);margin-top:2px;word-break:break-all}
@media(max-width:760px){.cmp-headrow{display:none}}


/* v7.86 — the Sales Recorder card + the layout swap. The top row no longer stretches
   its two cards to equal height, so expanding Set-up (now in the left column anyway)
   can never inflate Alerts again. */
.dashtoprow .alertbox,.dashtoprow .setupbox,.dashtoprow .dashsec{margin:0;height:auto}
.dashtoprow{align-items:start}
.salestats{display:flex;gap:18px;align-items:baseline;font-size:13px;margin:2px 0 8px}
.salestats .dim{color:var(--ink3,#8A9099);font-size:11.5px;margin-left:auto}
.saleschart{width:100%;height:120px;display:block}
#salesCard .dashsec-hd{justify-content:flex-start;flex-wrap:wrap}   /* v8.37 — bleed/bar inherited */

/* v7.88 — "stores gone quiet" strip in the Sales card: abruptly-stopped stores with a
   one-click closed date, matched to the Relay store. */
#salesQuiet{margin-top:10px}
.quiet-hd{font-size:12.5px;font-weight:600;margin:4px 0 6px}
.quiet-hd .dim{font-weight:400}
.quiet-row{display:flex;align-items:center;gap:10px;padding:6px 8px;border:1px solid var(--line,#e6e8ee);border-radius:8px;margin-bottom:6px;font-size:13px}
.quiet-name{font-weight:600}
.quiet-spring{flex:1}
.quiet-row .quiet-status{font-size:12px;padding:3px 6px;border-radius:6px;border:1px solid var(--line,#e6e8ee)}

/* ============================================================
   v7.89 — THE SALES VIEW (Reports) + its compact dashboard twin
   Owner: "what kind of shitty chart is this? no x and y axis? no hoverability, no
   stores, no what r the random peaks, i cant even tell. 30 day minimum? no weekly
   view? no past week sales visibility." — so: real axes, gridlines, a hover target
   per bucket, a by-store table, and windows down to a single week.
   ============================================================ */
.slcard{background:var(--surface);border:1px solid var(--line);border-radius:12px;
  box-shadow:var(--sh);padding:14px 16px 16px;margin-bottom:16px}
.slcard>.dashsec-hd{font-weight:700;font-size:14.5px}   /* v8.37 — bleed/bar inherited */
/* v8.50 — the Sales header folds the section away, like the report above it. It has to
   LOOK like a control or nobody finds it: pointer, hover tint, and the same chevron the
   report row uses, pushed to the right edge. */
.slcard-hd{cursor:pointer;user-select:none}
.slcard-hd:hover{color:var(--accent,#2C5CE6)}
.slcard-hd:focus-visible{outline:2px solid var(--accent,#2C5CE6);outline-offset:2px}
.slcard-hd .repchev{display:inline;margin-left:auto}
/* Folded, the header IS the card. The v8.37 title bar bleeds out to the card edges with a
   negative margin, so left as-is a folded card is a bar with the card's 16px bottom
   padding hanging under it — 1px of space above the title and 16 below. Collapsing the
   padding and closing the bar's corners makes it read as one deliberate strip instead.
   A browser without :has() just keeps the old uneven padding, which is only cosmetic. */
.slcard:has(>.slcard-hd:only-child){padding:0}
.slcard:has(>.slcard-hd:only-child)>.slcard-hd{margin:0;border-bottom:0;
  border-radius:var(--r)}
.slbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.slpills{display:inline-flex;gap:4px;flex-wrap:wrap;background:var(--accent-bg);
  border:1px solid var(--line);border-radius:999px;padding:3px}
.slpill{font-size:12px;padding:4px 11px;border-radius:999px;color:var(--ink2);white-space:nowrap}
.slpill:hover{background:#fff}
.slpill.on{background:var(--accent);color:#fff;font-weight:600}
.slcmp{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;color:var(--ink2)}

/* v8.37 — "the change thing is ugly. formating is not nice."
   flex-end bottom-aligned the blocks, and Change was one line taller than its
   neighbours, so its label sat above theirs. Align from the top instead, give every
   value row the same height, and the labels line up across the row and the numbers
   line up under them. */
.slkpi{display:flex;gap:26px;flex-wrap:wrap;align-items:flex-start;margin-bottom:12px}
.slkpi-b{display:flex;flex-direction:column;gap:3px;min-width:0}
.slkpi-l{font-size:11px;letter-spacing:.03em;text-transform:uppercase;color:var(--faint);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.slkpi-v{display:flex;align-items:baseline;gap:8px;min-height:26px}
.slkpi-b b{font-size:20px;letter-spacing:-.02em;line-height:1.15}
.slkpi-b .slkpi-sm{font-size:12.5px;font-weight:500;color:var(--muted)}
/* The scope/date block is reference, not a headline. It flows with the rest rather than
   being pushed right with margin-left:auto — on the narrow dashboard card that auto
   margin forced it onto a line of its own, which is the same kind of stray-looking row
   the Change block was making. */
.slkpi-scope .slkpi-l,.slkpi-scope .slkpi-sm{color:var(--muted)}
.slkpi-b.sl-up b{color:var(--green)} .slkpi-b.sl-down b{color:var(--danger)}
td.sl-up,.sl-up{color:var(--green)} td.sl-down,.sl-down{color:var(--danger)}

.sllegend{display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--muted);margin-bottom:2px}
.sllg{width:11px;height:11px;border-radius:3px;display:inline-block}
.sllg-cur{background:var(--accent)} .sllg-py{background:#C7CEDA;margin-left:12px}

.slchart-wrap{position:relative;width:100%}
.slchart{width:100%;height:auto;display:block;overflow:visible}
.sl-grid{stroke:var(--line);stroke-width:1}
.sl-axis{stroke:var(--line2);stroke-width:1}
.sl-ylbl{fill:var(--faint);font-size:11px;text-anchor:end}
.sl-xlbl{fill:var(--muted);font-size:11px;text-anchor:middle}
.sl-bar{fill:var(--accent)} .sl-bar-py{fill:#C7CEDA}
.sl-line{fill:none;stroke:var(--accent);stroke-width:2;stroke-linejoin:round}
.sl-line-py{fill:none;stroke:#B9C2D0;stroke-width:1.6;stroke-dasharray:5 4}
.sl-hit{fill:transparent;cursor:crosshair}
.sl-hit:hover{fill:rgba(47,84,214,.05)}
.sl-guide{stroke:var(--accent);stroke-width:1;stroke-dasharray:3 3;opacity:.6;pointer-events:none}
.sltip{position:absolute;top:6px;background:#161C26;color:#fff;border-radius:8px;
  padding:7px 10px;font-size:12px;line-height:1.45;pointer-events:none;z-index:5;
  box-shadow:0 4px 14px rgba(16,24,40,.24);white-space:nowrap}
.sltip[hidden]{display:none!important}
.sltip b{display:block;font-size:12.5px}
.sltip-scope{display:block;color:#98A2B3;font-size:11px}
.sltip-v{display:block;font-weight:600;font-size:14px;margin-top:2px}
.sltip-py,.sltip-d{display:block;font-size:11.5px;color:#C7CEDA}
.sltip-d.sl-up{color:#6FDCA4} .sltip-d.sl-down{color:#FF9E93}

.slsechd{font-weight:700;font-size:13px;margin:16px 0 6px}
.slsechd .dim{font-weight:400;color:var(--faint)}
.sltable{width:100%;border-collapse:collapse;font-size:13px}
.sltable th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.03em;
  color:var(--faint);font-weight:600;padding:5px 8px;border-bottom:1px solid var(--line)}
.sltable th.r,.sltable td.r{text-align:right}
.sltable td{padding:5px 8px;border-bottom:1px solid var(--line)}
.sltable td.dim{color:var(--faint)}
.sltable tbody tr{cursor:pointer}
.sltable tbody tr:hover{background:var(--accent-bg)}
.slfull{margin-top:10px}
/* v9.96 — Sales | Food cost tabs (the card header and the page's fold header), the date
   range that moved up beside them, the Date by switch, and the food tables */
.sltabs{display:inline-flex;gap:2px}
.sltab{font-size:13px;font-weight:600;padding:3px 10px;border-radius:999px;color:var(--muted);cursor:pointer}
.sltab:hover{color:var(--ink);background:var(--accent-bg)}
.sltab.on{background:var(--accent);color:#fff}
.slrange{font-size:11.5px;font-weight:500;color:var(--muted);margin-left:8px;white-space:nowrap}
.sl-salesonly[hidden]{display:none!important}
.slbasis{display:inline-flex;align-items:center;gap:6px}
.slbasis-l{font-size:12px;color:var(--muted)}
.slfoodnote{margin:4px 0 8px;font-size:12px}
.sltable.slfood td button.ghost{font-size:13px}
.sltable.slinv tbody tr{cursor:default}
.modalcard.slinvcard{width:min(680px,94vw);max-width:680px}
.sltable.slinv td{white-space:nowrap}
.modalcard.slinvcard .modalbody{overflow-x:auto}
.sltable.slinv tfoot td{padding:6px 8px;border-top:1px solid var(--line2)}
@media(max-width:760px){
  .slkpi{gap:16px}.slkpi-b b{font-size:17px}
  .slpills{width:100%;justify-content:flex-start}
}

/* v7.89 — ONE box on the right with a toggle, his call: "we have 1 rectangle box with
   both alerts and set up on the right, if plausible, or you can make it one with a
   toggle between alerts and set up. and under that in progress then upcoming?"
   The tab strip IS the header — the per-tab controls ride on it, so there's no second
   header row inside the panes. */
.dashtabbox{background:var(--surface);border:1px solid var(--line);border-radius:12px;
  box-shadow:var(--sh);overflow:hidden}
.dashtabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:6px 10px;
  border-bottom:1px solid var(--line);background:#FAFBFC}
.dashtab{font-size:13px;font-weight:600;color:var(--muted);padding:5px 10px;border-radius:8px;
  display:inline-flex;align-items:center;gap:6px}
.dashtab:hover{background:#fff;color:var(--ink)}
.dashtab.on{background:var(--accent-bg);color:var(--accent-d)}
.dashtabs .dtabtools{display:inline-flex;align-items:center;gap:6px}
.dashtabs .dtabtools[hidden]{display:none!important}
.dashtabpane[hidden]{display:none!important}
/* the panes keep their ids/classes (alerts state, the tour, the ring key all target
   them) but lose their own frame — the box around them is the frame now */
.dashtabbox .alertbox,.dashtabbox .setupbox{border:0;border-left:0;border-radius:0;
  margin:0;box-shadow:none;background:transparent;padding:0}
.dashtabbox .setupbox{padding:10px 12px 12px}
.dashtabbox .alertbox-body{padding:10px 12px}
.dashtabbox.flash-target,.dashtabbox .flash-target{outline:2px solid var(--accent)}
.dtabsub{font-size:12px;color:var(--faint);margin:0 0 8px}
.dashtabs .setup-q{max-width:150px}
@media(max-width:900px){ .dashtabs .setup-q{max-width:110px} }

/* .dash-spring is display:none globally (it exists for the dashboard strip on mobile) —
   turn it back on where v7.89 uses it to push tools to the right edge. */
#salesCard .dashsec-hd .dash-spring,.slbar .dash-spring,.dashtabs .dash-spring{
  display:block;flex:1 1 auto;min-width:0}
.slnote{color:var(--amber);margin-left:10px}

/* ══ v7.90 ══
   "I liked my colro coding on set up module being that weird yellow thing. i think
   incorporating that to the alerts is a good thing since it would catch teh eye."
   The Set-up amber now carries across to Alerts: the tab wears it, and the box gets the
   amber wash whenever there is actually something to look at. An empty "all clear" stays
   quiet on purpose — colour that's always on stops being a signal. */
.dashtab[data-dtab="alerts"].on{background:var(--amber-bg);color:var(--amber)}
.dashtab[data-dtab="setup"].on{background:var(--amber-bg);color:var(--amber)}
/* v8.37 — "alerts is not same color throughout?" It wasn't: the amber sat on the tab
   strip and on the .alertbox pane, but the pane only wraps the alert ROWS — so once the
   rows ran out, the rest of the card fell back to white and the colour stopped halfway
   down. The wash goes on the CARD now, so the whole thing is one colour, with the amber
   edge running its full height. */
.dashtabbox:has(.alertbox.has-alerts){background:var(--amber-bg);
  box-shadow:var(--sh),inset 3px 0 0 0 var(--amber)}
.dashtabbox:has(.alertbox.has-alerts) .dashtabs{background:transparent;
  border-bottom-color:rgba(180,120,10,.18)}
.dashtabbox .alertbox.has-alerts{background:transparent;box-shadow:none}
.dashtab .alert-count:not(:empty){background:var(--amber);color:#fff;border-radius:999px;
  padding:0 6px;font-size:11px;min-width:18px;text-align:center}

/* the multi-company picker — a native <select multiple> needs ctrl-click to keep a
   selection, which is not a thing anyone should have to know */
.slmulti{position:relative;display:inline-block}
.slmulti-btn{cursor:pointer;text-align:left;min-width:150px}
.slmulti-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:70;min-width:220px;
  max-height:320px;overflow:auto;background:var(--surface);border:1px solid var(--line2);
  border-radius:10px;box-shadow:0 8px 24px rgba(16,24,40,.16);padding:6px}
.slmulti-menu[hidden]{display:none!important}
.slmulti-row{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:6px;
  font-size:13px;cursor:pointer}
.slmulti-row:hover{background:var(--accent-bg)}
.slmulti-all{display:block;width:100%;text-align:left;padding:5px 8px;border-radius:6px;
  font-size:12.5px;color:var(--accent);border-bottom:1px solid var(--line);margin-bottom:4px}
.slpills-chart{background:var(--surface);border:1px solid var(--line)}

/* the hover readout names both series and shows the shape each is drawn in */
.sltip-row{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:12px}
.sltip-row b{margin-left:auto;font-size:13px}
.sltip-nm{color:#C7CEDA}
.sltip-none{color:#98A2B3}
.sltip-sw{width:11px;height:11px;border-radius:3px;flex:none}
.sltip-sw.sw-cur{background:var(--accent)} .sltip-sw.sw-py{background:#C7CEDA}
.sltip-sw.sw-line{height:0;border-radius:0;border-top:2px solid var(--accent);width:14px}
.sltip-sw.sw-py.sw-line{border-top:2px dashed #C7CEDA;background:none}
.sllg-line{height:0;border-radius:0;border-top:2px solid var(--accent);width:15px}
.sllg-line.sllg-py{border-top:2px dashed #B9C2D0;background:none}
.sl-dot{fill:var(--accent)}

/* a report opened as its own page */
/* v8.11 — "When I open a report on mobile I can't click out of it?"
   The way out existed; it just scrolled off the top. A report page is a header, a run
   button, a list of PDFs and a chart — on a phone that is several screens, and once
   "← All reports" is above the fold the only exit is the browser's back gesture, which
   leaves the app entirely. It sticks to the top of the pane now. */
.repback{margin-bottom:10px;position:sticky;top:0;z-index:12;
  background:var(--card);border:1px solid var(--line);box-shadow:0 2px 8px rgba(16,24,40,.10)}
@media (max-width:760px){
  .repback{display:block;width:100%;text-align:left;padding:10px 12px;font-size:14px}
}
.replist.reppage .reprow{border-color:var(--line2)}
/* v7.91: the chevron and the pointer stay on the report page — the header collapses
   the report body so the chart below can have the screen ("Daily reports generate and
   pdf viewer isnt collapisble anymore?") */
.replist.reppage .repchev{display:inline}
/* the toolbar wraps onto as many rows as it needs; the actions always finish the row */
.slbar-end{display:inline-flex;gap:8px;align-items:center;margin-left:auto}
/* the CSS trap this codebase keeps hitting: an author display: rule beats the hidden
   attribute, so anything hidden by JS must say so explicitly */
.slcmp[hidden]{display:none!important}
.sl-bar.sl-part,.sl-bar-py.sl-part{opacity:.45}
.sltip-part{display:block;font-size:11px;color:#E8A33D;margin-top:2px}
/* v7.92: the dollar difference beside the percentage — a 0.0% that is really -$93 on
   $574K should not need a calculator to understand */
.slkpi-delta{font-size:12px;font-weight:600;opacity:.85}
/* v7.92: how fresh the recorder is — he compared a Relay week against a corporate report
   run a day later and reasonably expected them to agree. */
.slstale{font-size:11.5px;color:var(--amber);background:var(--amber-bg);
  border:1px solid var(--amber);border-radius:8px;padding:6px 10px;margin:0 0 10px}
/* v8.36 — the same line, green while the daily pull is keeping up. It only turns amber
   (.slstale) when the recorder has actually fallen behind, and then it says WHY rather
   than telling him to go and import a file. */
.slfresh{display:flex;align-items:center;gap:8px;flex-wrap:wrap;line-height:1.45}
.slfresh-ok{font-size:11.5px;color:#1E6B33;background:#EDF7EF;border:1px solid #BFE3C8;
  border-radius:8px;padding:6px 10px;margin:0 0 10px}
.slfresh-warn{color:var(--amber);font-weight:600}
.slfresh .slsyncnow{margin-left:auto;flex:none}
/* v7.93 — same-store comparison: name the stores that were left out, so the number is
   never quietly different from the one on his corporate report. */
.slsame{font-size:11.5px;color:var(--ink2);background:var(--accent-bg);
  border:1px solid var(--line);border-radius:8px;padding:6px 10px;margin:6px 0 10px}
.slsame-x{font-weight:600;cursor:help;border-bottom:1px dotted var(--line2)}
.slcmp[hidden]{display:none!important}

/* v7.95 — the scheduler line on Reports: did today's automatic run happen, and if not why */
.repsched{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 4px;
  padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);
  font-size:12.5px;color:var(--ink2)}
.repsched[hidden]{display:none!important}
.repsched-dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--faint)}
.repsched-dot.ok{background:var(--green)} .repsched-dot.bad{background:var(--danger)}
.repsched-dot.due{background:var(--amber)} .repsched-dot.wait{background:var(--faint)}
.repsched-dot.off{background:var(--line2)}
.repsched-msg{font-weight:500}
.repsched-at{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.repsched-at input{font:inherit;padding:3px 6px;border:1px solid var(--line);border-radius:6px}

/* v7.96 — choiceModal: stacked buttons, each with the consequence written under it.
   The email-collision box used to be Cancel / Reuse, and "Reuse" quietly meant "give this
   new person the old contractor's signed paperwork". A choice that costs that much has to
   say so on the button. */
.choicelist{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.choicebtn{display:flex;flex-direction:column;gap:3px;text-align:left;width:100%;
  padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:var(--card);
  cursor:pointer;font:inherit;color:inherit}
.choicebtn:hover{border-color:var(--accent);background:var(--hover)}
.choicebtn-t{font-weight:650;font-size:14px}
.choicebtn-h{font-size:12.5px;line-height:1.45;color:var(--muted)}

/* v8.00 — the Agreement row under a contractor absorbed the green banner's detail
   (owner: "the agreement signed being in two places is confusing to me. make it one under
   the sub drop down. no green sub signed banner"). Secondary weight so the row still reads
   as one line, not two competing ones. */
.srag-meta{margin-left:8px;font-size:12px;color:var(--muted);font-weight:400}
@media (max-width:620px){
  .srag-meta{display:block;margin:2px 0 0}
}

/* v8.00 — the multi-store recap that REPLACES the single-store address fields.
   Owner: "the addresses and breakdowns would obviously dissapear since it woul dbe way too
   much info and instead it would just list the stores with teh address next to it in
   whole." So: store number bold, full address beside it, one line each. */
.msrecap{border:1px solid var(--line);border-radius:9px;padding:10px 12px;margin:0 0 12px;
  background:var(--card2,var(--card))}
.msrecap-hd{font-size:12.5px;font-weight:650;margin-bottom:6px}
.msrecap-row{display:flex;gap:10px;align-items:baseline;padding:3px 0;font-size:13px;
  border-top:1px solid var(--line-soft,var(--line))}
.msrecap-row:first-of-type{border-top:0}
.msrecap-row b{min-width:64px;flex:none}
.msrecap-row span{color:var(--muted);font-size:12.5px}

/* v8.05 — THE STORE PICKERS LAID OUT PROPERLY.
   Owner, looking at the multi-store picker: "what is thsi formatting? why does this keep
   happening". Root cause, and it is documented five lines above the rule that caused it:
   the generic `.field input{width:100%}` (meant for text boxes) also matches a CHECKBOX.
   The picker lives inside a .field, so every checkbox stretched to the full row, shoving the
   store number to the right edge and crushing the address into a wrapped column. The same
   comment already warns about this for radio buttons — `width:auto is REQUIRED` — and I
   reused .checkrow without carrying that guard over.
   Explicit grid so the number and the address line up in real columns instead of relying on
   whatever flex the borrowed class happened to apply. */
.mspick, .storepick{display:grid !important;
  grid-template-columns:auto minmax(56px,auto) 1fr;
  align-items:baseline;gap:10px;margin:0 0 2px;padding:5px 4px;border-radius:7px;
  font-size:13px;color:var(--ink2);cursor:pointer}
.mspick:hover, .storepick:hover{background:var(--hover,rgba(0,0,0,.03))}
.mspick input[type=checkbox], .storepick input[type=checkbox]{
  width:16px !important;height:16px;flex:none;margin:0;align-self:center}
.mspick b, .storepick b{font-variant-numeric:tabular-nums;white-space:nowrap}
.mspick span, .storepick span{font-size:12.5px;color:var(--faint);line-height:1.35}
@media (max-width:520px){
  .mspick, .storepick{grid-template-columns:auto 1fr}
  .mspick span, .storepick span{grid-column:2}
}

/* v8.06 — select several jobs, trash them together. */
.storetile.selmode{position:relative}
.tilesel{position:absolute;top:8px;left:8px;z-index:3;background:var(--card);
  border:1px solid var(--line);border-radius:6px;padding:3px 4px;line-height:0;cursor:pointer}
.tilesel input{width:16px !important;height:16px;margin:0;cursor:pointer}
.storetile.selon{outline:2px solid var(--accent);outline-offset:-2px}
.selbar{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(18px + env(safe-area-inset-bottom));
  z-index:60;display:flex;align-items:center;gap:8px;background:var(--card);
  border:1px solid var(--line);border-radius:12px;padding:9px 12px;
  box-shadow:0 8px 28px rgba(16,24,40,.22)}
.selbar-n{font-size:13px;font-weight:650;margin-right:2px;white-space:nowrap}
@media (max-width:520px){ .selbar{left:12px;right:12px;transform:none;justify-content:center;flex-wrap:wrap} }

/* v8.07 — the store list on a job (one job, many places). */
.jobstores{padding:12px 14px}
.jst-hd{display:flex;align-items:baseline;gap:8px;font-size:13.5px;margin-bottom:8px}
.jst-tot{font-weight:700;font-variant-numeric:tabular-nums}
.jst-list{display:flex;flex-direction:column}
.jst-row{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:baseline;
  padding:6px 0;border-top:1px solid var(--line-soft,var(--line));font-size:13px}
.jst-row:first-child{border-top:0}
.jst-row b{font-variant-numeric:tabular-nums}
.jst-addr{color:var(--muted)}
.jst-price{font-variant-numeric:tabular-nums;color:var(--ink2)}
@media (max-width:560px){
  .jst-row{grid-template-columns:56px 1fr;row-gap:2px}
  .jst-price{grid-column:2;color:var(--muted);font-size:12.5px}
}

/* v8.08 — the store strip on the pre/post-work photo tabs. */
.photostores{display:flex;align-items:center;gap:6px;flex-wrap:wrap;
  padding:8px 10px;margin:0 0 8px;background:var(--bg);border:1px solid var(--line);border-radius:9px}
.ps-lbl{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--faint);
  font-weight:650;margin-right:2px}
.photostores .btn{font-variant-numeric:tabular-nums}

/* v8.09 — One store / Several stores toggle + the picker rows. */
.segtog{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden;margin:2px 0 0}
.segtog .seg{background:var(--card);border:0;padding:7px 13px;font:inherit;font-size:13px;
  color:var(--ink2);cursor:pointer}
.segtog .seg+.seg{border-left:1px solid var(--line)}
.segtog .seg.on{background:var(--accent);color:#fff;font-weight:650}
.mstag{font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--ink2);
  background:var(--bg);border:1px solid var(--line);border-radius:5px;padding:1px 5px;white-space:nowrap}
.mspick.just{background:var(--accent-tint,rgba(47,84,214,.12))}
.mspick{grid-template-columns:auto minmax(56px,auto) auto 1fr !important}
@media (max-width:520px){ .mspick{grid-template-columns:auto auto 1fr !important} }

/* v8.28 — the merged Photos tab: store tiles + before/after sections */
.admphgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:10px}
.admpstile{display:flex;flex-direction:column;gap:4px;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:12px 14px;cursor:pointer;text-align:left;font:inherit;color:inherit}
.admpstile:hover{border-color:#2F54D6}
.admpstile b{font-size:14px}
.admpstile span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}

/* v8.29 — the title-card link menus (signing link / portal): Copy · Open · Revoke */
.srlinks{display:flex;gap:6px;flex:none;align-items:center;margin-right:10px}
.lnkmenu{position:absolute;z-index:220;min-width:240px;background:var(--card,#fff);border:1px solid var(--line);
  border-radius:10px;box-shadow:0 10px 32px rgba(16,24,40,.18);padding:5px;display:flex;flex-direction:column}
.lnkmenu-hd{font-size:11.5px;color:var(--muted);padding:7px 10px 6px;border-bottom:1px solid var(--line);margin-bottom:4px;line-height:1.4}
.lnkmenu-it{display:block;width:100%;text-align:left;background:none;border:0;border-radius:7px;
  padding:8px 10px;font:inherit;font-size:13px;color:inherit;cursor:pointer}
.lnkmenu-it:hover{background:var(--bg)}
.lnkmenu-it.danger{color:#B42318}
.lnkmenu-it.danger:hover{background:#FDECEC}

/* v8.30 — a nicknamed job shows its own name beside the nickname, quietly */
.jobrealname{font-size:12px;font-weight:500;color:var(--muted);letter-spacing:0}
h2#dName .jobrealname{font-size:13px}
.pane-name .jobrealname{font-size:11.5px}

/* ══ v8.37 ══ region shortcuts on the Sales card
   "i also want the dallas (rr and iic) and houston (gcj) filters on the homepage modal."
   The homepage card had no filters at all, so this is its whole control strip — it sits
   above the figures and stays out of the way. On the full Sales view the same pills ride
   in front of the company picker as a shortcut for the two groupings he actually thinks
   in. */
.slbar-compact{margin:0 0 10px}
.slregions{background:var(--accent-bg)}

/* v8.74 - "N files shared with Relay" strip, under the header, on every view */
.sharebar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:9px 16px;background:#EEF2FF;border-bottom:1px solid #C7D2FE;color:#1E3A8A;
  font-size:13.5px;font-weight:600}
.sharebar[hidden]{display:none!important}
.sharebar .sb-n{margin-right:auto;min-width:0}
.sharebar .sb-names{font-weight:400;color:#3730A3;display:block;font-size:12.5px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:min(60vw,540px)}
.sharestep{margin:0 0 12px}
.sharecrumb{font-size:12.5px;color:var(--muted);margin:0 0 10px;text-transform:none}
.sharecrumb b{color:var(--ink2)}
.sharepick{display:flex;flex-direction:column;gap:7px;max-height:52vh;overflow:auto}
.sharepick button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  padding:11px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface);
  font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
.sharepick button:hover{border-color:var(--accent);background:var(--danger-bg,#F8FAFF)}
.sharepick .sp-sub{display:block;font-weight:400;font-size:12.5px;color:var(--muted)}
.sharepick .sp-go{margin-left:auto;color:var(--muted)}

/* v8.75 - the Notifications screen */
.nt-verdict{padding:11px 13px;border-radius:10px;font-size:13.5px;line-height:1.55;margin-bottom:14px}
.nt-verdict.ok{background:#ECFDF3;border:1px solid #A6F4C5;color:#054F31}
.nt-verdict.bad{background:#FEF3F2;border:1px solid #FDA29B;color:#912018}
.nt-row{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;
  padding:9px 2px;border-bottom:1px solid var(--line);font-size:13.5px}
.nt-row:last-child{border-bottom:none}
.nt-what{flex:1;min-width:200px}
.nt-when{display:block;font-size:12.5px;color:var(--muted);font-weight:400}
.nt-last{font-size:12.5px;text-align:right;min-width:180px}
.nt-ok{color:#0B7A46}
.nt-bad{color:var(--danger)}
.nt-vars{margin:6px 0 6px 14px;font-size:13px;line-height:1.9}
.nt-vars code{background:var(--line);padding:2px 6px;border-radius:5px;font-size:12.5px}

.nt-note{margin:10px 0 2px;padding:10px 12px;border-radius:9px;font-size:13px;line-height:1.55;
  background:#FFFAEB;border:1px solid #FEC84B;color:#93370D}

/* v8.77 — "Remove the ghost white box." The schedule strip and the sales section used to
   be separately-bordered white panels stacked under the report card; nested inside it they
   are plain sections of one card, separated by a hairline rather than a gap and a border. */
.repbody #repSchedMount,.repbody #repSalesMount{margin:0}
.repbody .repsched{border:0;background:transparent;border-radius:0;
  padding:10px 0 2px;margin:8px 0 0;border-top:1px solid var(--line)}
.repbody .slcard{border:0;background:transparent;border-radius:0;padding:0;
  margin:6px 0 0;border-top:1px solid var(--line)}
.repbody .slcard>.slcard-hd{margin-top:8px}
.repbody #repSalesWrap{margin:0}
/* the by-store tick */
.sltable th.slhcell,.sltable td.slhcell{width:28px;padding-left:2px;padding-right:2px;text-align:center}
.sltable td.slhcell input{cursor:pointer;margin:0}
.sltable tr.slrow-off td{color:var(--muted)}
.sltable tr.slrow-off .sloff{font-size:11.5px;color:var(--muted);border:1px solid var(--line2);
  border-radius:20px;padding:1px 7px;margin-left:6px;white-space:nowrap}
.slofnote{text-transform:none;margin:8px 0 0}

/* v8.78 — a tick with an explanation under it, not squeezed beside it */
.ckrow-stack{display:grid;grid-template-columns:auto 1fr;gap:3px 9px;align-items:start;
  width:100%;margin:-2px 0 11px}
.ckrow-stack input{margin-top:2px}
.ckrow-stack .ckttl{font-weight:600;color:var(--ink)}
.ckrow-stack .vtsub{grid-column:2;margin:0;text-transform:none;font-size:12.5px;line-height:1.45;color:var(--muted)}
/* v8.78 — the days either side of the month, so the first row is never half empty */
.calcell.othermonth{background:#FAFBFC}
.calcell.othermonth .caldaynum{color:var(--faint)}
.calcell.othermonth .calmore{color:var(--muted);font-size:11.5px}
.rp-item.rp-none{opacity:.72}
.rp-item.rp-none .rp-mail{color:#b45309;font-style:italic}
/* v8.99 — Users list: ONE resolved answer to "what can this person see", per unit */
.uacc-cell{display:flex;flex-direction:column;gap:3px;max-width:520px}
.uacc-sum{font-size:12px;line-height:1.4;color:var(--ink2)}
.uacc-sum b{color:var(--ink)}
.uacc-sum.st-g{color:var(--ok,#0E7C5B)}
/* v9.00 — the Send-link recipient picker */
.plink-who{display:flex;flex-direction:column;gap:5px;max-height:230px;overflow:auto}
.plink-who .ticrow{gap:9px}

/* v9.22 — report groups */
.repnewgroup{margin:10px 0 0 4px}
.repgroupover>.rephead{outline:2px dashed var(--accent,#3b6fd8);outline-offset:-2px;border-radius:10px}
.gsdays{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:4px}
.gsdays label{display:flex;align-items:center;gap:5px;font-size:13px}
.bell-list .uprow.bell-new .uptitle{font-weight:700}    /* v9.44: a reminder not looked at yet */
.gslater{display:flex;align-items:flex-start;gap:8px;margin:4px 2px;font-size:13px;line-height:1.35;cursor:pointer}
.gslater input{margin-top:2px;flex:0 0 auto}
.gstimes{display:flex;flex-wrap:wrap;gap:6px}
.gstime{display:inline-flex;align-items:center;gap:6px;padding:3px 8px;border:1px solid var(--line,#d9dde3);border-radius:999px;font-size:13px;background:#fff}
.gstime button{border:0;background:none;cursor:pointer;color:#888;font-size:12px;padding:0}
.rsinherit{background:#f6f7f9;border-radius:8px;padding:2px 10px 8px;margin-top:6px}
/* v9.23 — title cards are pages; groups are sections inside them */
.reprow.rephomecard>.rephead{cursor:pointer}
.reprow.rephomehead{margin-bottom:6px}
.reprow.rephomehead>.rephead{cursor:default}
.reptoolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 10px 4px}
.reptoolbar .repnewgroup{margin:0}
.reprow.repsection{margin-bottom:10px}
.reprow.repsection>.rephead .reptitle{font-size:14px}
.repsechead{margin:14px 0 6px 6px}
.rephomerows>.repgroupbody{padding-left:12px;border-top:0}
.repdrophint{padding:14px 8px;border:1px dashed var(--line,#CFD4DA);border-radius:8px;margin:2px 0}
.replist.rephome .repchev{display:inline}
/* v9.24 — group sections fold on their header */
.reprow.repsection>.rephead{cursor:pointer}
.reprow.repsection>.rephead .repchev{font-size:13px}
/* v10.06 — a group inside a group: one small step in per level (any depth stays readable on a
   phone), the folder's header drags the whole folder, a view row (Food cost % of sales) opens a page */
.repgroupbody .repgroupbody{padding-left:14px}
.repgroupbody>.reprow.repsection{margin-bottom:0}
.reprow.repsection>.rephead[draggable="true"]{cursor:grab}
.reprow.repsection.repdragging{opacity:.45}
.reprow.repview>.rephead{cursor:pointer}
@media(max-width:600px){.repgroupbody{padding-left:14px}.repgroupbody .repgroupbody{padding-left:8px;padding-right:6px}}
/* v9.26 — the viewer's Close lives at the far LEFT (owner: "the x button to get out of the
   report is right under the x button for the application… i keep accidentally closing the
   program!"). Nothing that closes a file sits under the window's own ✕ any more. */
.fsbar .fsx{order:-1;font-weight:600;white-space:nowrap}
/* v9.35 — Sales by company (the dashboard card + the full view) */
.slco-hd{margin-top:4px}
.sltable.slco{margin-bottom:10px}
.sltable.slco tr.on td{background:var(--accent-bg);font-weight:600}
.sltable.slco tr.on td:first-child{box-shadow:inset 3px 0 0 var(--accent)}
/* v9.35 — Lease agreements: one card per lease, key points in a grid */
.lease-list{display:flex;flex-direction:column;gap:12px;margin-top:10px}
.lease-card{border:1px solid var(--line);border-radius:10px;background:var(--surface);padding:12px 14px}
.lease-hd{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lease-title{font-weight:700;font-size:14px;cursor:text}
.lease-note{font-size:12.5px;color:var(--muted);margin:8px 0 0}
.lease-note.st-red{color:var(--danger)}
.lease-sum{font-size:13px;color:var(--ink2);margin:10px 0 0;line-height:1.45}
.lease-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px 18px;margin-top:12px}
.lease-kv{display:flex;flex-direction:column;gap:2px;min-width:0}
.lease-k{font-size:10.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--faint);font-weight:600}
.lease-v{font-size:13px;color:var(--ink);word-break:break-word}
.lease-sched{margin-top:10px;font-size:13px}
.lease-sched summary{cursor:pointer;color:var(--accent-d,#2743A8);font-weight:600}
.lease-dates{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px}
.lease-kids{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.calchip.cmp.cmp-opt{background:var(--amber-bg);color:var(--amber)}
@media(max-width:760px){ .lease-grid{grid-template-columns:1fr 1fr} }
/* v9.37 — the reminders bell (phone only; the desktop has the Upcoming card) */
.bellmenu{position:relative;display:block;margin-left:6px}   /* v10.24 - the desktop's too: the upcoming lives here now */
.bellbtn{position:relative;width:34px;height:34px;border-radius:50%;background:transparent;color:#fff;border:none;
  display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.92}
.bellbtn:hover{background:rgba(255,255,255,.12)}
.bellcount{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;
  background:var(--danger);color:#fff;font-size:10.5px;font-weight:700;line-height:16px;text-align:center;
  border:1px solid var(--headbg);box-sizing:border-box}
.bellcount[hidden]{display:none!important}
.belldrop{position:fixed;left:10px;right:10px;top:calc(var(--hdr-b) + 6px);background:var(--surface);border:1px solid var(--line);   /* v11.21: was 58px from the top of the screen - under the status bar on an installed iPhone */
  border-radius:12px;box-shadow:0 10px 34px rgba(10,15,25,.25);z-index:3000;overflow:hidden;color:var(--ink)}
.bellmenu{flex:none}
.bellbtn svg{width:22px;height:22px}
.belldrop[hidden]{display:none!important}
/* v10.24 - on a desktop the list drops from the bell (top right), not across the whole width */
@media(min-width:921px){ .belldrop{position:absolute;left:auto;right:0;top:calc(100% + 10px);width:400px} }
.bell-hd{display:flex;align-items:center;gap:8px;padding:11px 12px;font-weight:700;font-size:13.5px;border-bottom:1px solid var(--line)}
.bell-hd .dim{font-weight:400;font-size:12px}
.bell-hd .confbtn{margin-left:auto}
.bell-list{max-height:min(60vh,420px);overflow:auto;padding:4px 12px}
.bell-list .uprow{cursor:pointer}
.bell-list .empty{padding:14px 0}
.bell-cal{border-top:1px solid var(--line);color:var(--accent)!important;font-weight:600}
@media(max-width:920px){ .bellmenu{display:block} }
/* v11.20 - the bell is a NOTIFICATIONS inbox, with Reminders as its second tab */
.bell-tabs{display:flex;border-bottom:1px solid var(--line)}
.bell-tab{flex:1 1 0;min-width:0;min-height:42px;padding:0 8px;background:none;border:0;border-bottom:2px solid transparent;font:inherit;
  font-weight:600;font-size:13.5px;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}
.bell-tab.on{color:var(--ink);border-bottom-color:var(--accent)}
.bell-tabn{display:inline-block;min-width:18px;padding:0 5px;border-radius:9px;background:var(--danger);color:#fff;font-size:11px;
  line-height:18px;text-align:center;box-sizing:border-box}
.bell-tabn[hidden]{display:none!important}
.bell-hd .nf-all{margin-left:auto;white-space:nowrap}
.bell-hd .nf-all:disabled{color:var(--muted);text-decoration:none;cursor:default}
.bell-list{overscroll-behavior:contain}
.nf-list{padding:2px 12px}
.nfrow{display:flex;gap:10px;width:100%;min-height:48px;padding:10px 2px;text-align:left;background:none;border:0;
  border-bottom:1px solid var(--line);font:inherit;color:inherit;cursor:pointer;box-sizing:border-box}
.nfrow:last-child{border-bottom:0}
.nfrow:hover{background:var(--accent-bg)}
.nf-dot{flex:0 0 8px;height:8px;margin-top:6px;border-radius:50%}
.nfrow.nf-unread .nf-dot{background:var(--accent)}
.nfrow.nf-unread .nf-title{font-weight:700}
.nf-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.nf-title,.nf-body{overflow-wrap:anywhere}
.nf-title{font-size:13.5px;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nf-body{font-size:12.5px;color:var(--muted)}   /* not clamped: a failed report's line carries its fix (v11.16, up to 600 chars) */
.nf-when{font-size:11.5px;color:var(--faint)}
.nf-state{margin:0;padding:14px 0;font-size:13px}
.nf-err{color:var(--danger)}
.nf-err .btn{margin-top:6px}
/* v9.37 — the phone home's Reports tile */
.reptile-m{width:100%;margin-bottom:4px}
.reptile-m-ic{background:#EEF2FF;color:#3949AB}
.reptile-m-ic svg{width:20px;height:20px}
/* v9.37 — report rows on a phone (owner: "Unoptimized"): the title gets its own line, the
   View / Download buttons sit underneath it full width, the blurb wraps instead of "c…" */
@media(max-width:760px){
  .rephead{flex-wrap:wrap;gap:8px 10px;padding:12px 12px}
  .rephead .repmeta{flex:1 1 calc(100% - 110px);min-width:0}
  .rephead .repsub{white-space:normal;overflow:visible;text-overflow:clip}
  .rephead .repgear,.rephead .repchev{order:2}
  .rephead .repdl,.rephead .replink1,.rephead .repgen-sm{order:5;flex:1 1 calc(50% - 5px);margin:0;
    display:inline-flex;align-items:center;justify-content:center;min-height:40px}
  .rephead .repgen-sm{flex-basis:100%}
}
/* v9.61 — the Sales card on the phone home: sits under the companies with the same gap the
   tiles keep; the by-company table and the KPI row already wrap at 760px */
#mSales{margin-top:16px}
#mSales:empty{display:none}
#mSales #salesCard{margin-bottom:0}
.slco-lbl-s{display:none}
@media(max-width:760px){
  /* the by-company table on a phone: Company · this week · Change (the Last-year column is the
     one that pushed Change off the right edge), and the week header without its parenthetical */
  #mSales .slco td:first-child{max-width:40vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #mSales .slco th:nth-child(3),#mSales .slco td:nth-child(3){display:none}
  .slco-lbl-l{display:none}.slco-lbl-s{display:inline}
  /* v9.96 — the food table on a phone: Company · Food cost · % of sales */
  #mSales .slfoodco th:nth-child(4),#mSales .slfoodco td:nth-child(4){display:none}
}


/* ═══════════ v9.85 — RESIDENTIAL REAL ESTATE: the empty unit's own Home ═══════════
   Deliberately plain: this page exists to say what the unit is and that nothing is in it
   yet. On RELAY'S OWN tokens (--surface / --line2 / --ink / --ink2 / --muted / --accent),
   never the Real Estate module's (--card / --text-2 / --btn-bg are defined under .re-app
   and nowhere else), so it follows his theme — Relay, Royal, Emerald, Burgundy. */
.resi-shell{max-width:980px;margin:0 auto;padding:28px 20px 48px}
.resi-hd{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.resi-hd h1{margin:0;font-size:26px;letter-spacing:-.02em;color:var(--ink)}
.resi-pill{display:inline-flex;align-items:center;padding:4px 11px;border-radius:999px;
  background:var(--accent-bg);border:1px solid var(--line2);color:var(--accent-d);
  font-size:12px;font-weight:600;white-space:nowrap}
.resi-lead{margin:12px 0 26px;font-size:15px;line-height:1.55;color:var(--ink2)}
.resi-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(248px,1fr));gap:14px}
.resi-fact{background:var(--surface);border:1px solid var(--line2);border-radius:var(--r);
  padding:16px 18px;box-shadow:var(--sh)}
.resi-fact h3{margin:0 0 8px;font-size:11.5px;font-weight:700;text-transform:uppercase;
  letter-spacing:.07em;color:var(--muted)}
.resi-fact p{margin:0;font-size:13.5px;line-height:1.6;color:var(--ink2)}
.resi-fact b{color:var(--ink)}
.resi-lock{max-width:620px;margin:0 auto;padding:64px 20px;text-align:center}
.resi-lock-icon{font-size:40px;line-height:1}
.resi-lock h2{margin:14px 0 10px;font-size:20px;color:var(--ink)}
.resi-lock p{margin:0;font-size:13.5px;line-height:1.65;color:var(--ink2)}
.resi-lock b{color:var(--ink)}
@media (max-width:700px){
  .resi-shell{padding:18px 14px 40px}
  .resi-hd h1{font-size:21px}
  .resi-facts{grid-template-columns:1fr}
}


/* ═══════════ v9.86 — POPEYES FOOD SAFETY: the submissions and one paper ═══════════
   Relay's own tokens, so it follows his theme like every other page on Reports. */
.fslist{display:flex;flex-direction:column;gap:9px}
.fswrap{display:block}
.fsmail{flex:0 0 auto;white-space:nowrap}
.fsfwdbtns{display:flex;gap:8px;align-items:center}
/* v9.89 — the list reads as a table: one grid shared by the column titles and every row,
   so a figure always sits under its own heading. */
/* The action columns are FIXED, not auto: an auto column sizes to its contents, so the
   header (whose last spans are empty) and a row (with buttons in them) computed different
   widths and every figure drifted left of its own title. */
.fsgrid,.fsrow{display:grid;align-items:center;gap:12px;
  grid-template-columns:minmax(130px,1.5fr) minmax(96px,0.9fr) 112px 52px 118px 74px 86px 26px 10px}
/* The titles ride inside an invisible copy of a row's own box, so the two line up by
   construction rather than by a tuned pixel count. */
.fshdrwrap{background:none;border-color:transparent;border-radius:0;overflow:visible}
.fshdr{display:grid;align-items:center;gap:12px;
  grid-template-columns:minmax(130px,1.5fr) minmax(96px,0.9fr) 112px 52px 118px 74px 86px 26px 10px;
  padding:4px 15px 6px;font-size:11.5px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--muted)}
.fsrow{cursor:pointer;padding:13px 15px}
.fsrow:hover{background:var(--surface2,#FAFBFC)}
.fsrow .fsname{font-weight:600;color:var(--ink);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fsrow .fsstore{color:var(--muted);font-weight:600;font-size:12.5px}
.fsrow .fsscore{font-variant-numeric:tabular-nums;color:var(--ink2);font-weight:600;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.fsrow .fsat,.fsrow .fslang,.fsrow .fsun{color:var(--muted);font-size:12.5px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.fsrow .fsun{font-variant-numeric:tabular-nums}
.fsrow .fslink,.fsrow .fsmail{justify-self:stretch;width:100%}
.fsrow .fsdel{justify-self:center}
/* amber = this paper still has to reach somebody; the reason is on the button's title */
.fsmail-todo{border-color:var(--amber,#B7791F)!important;color:var(--amber,#B7791F)!important}
.fssent{font-size:12px;font-weight:600;white-space:nowrap;padding:3px 9px;border-radius:999px;border:1px solid var(--line2)}
.fssent.fs-ok{color:var(--green);background:var(--green-bg);border-color:var(--green-bg)}
.fssent.fs-bad{color:var(--amber);background:var(--amber-bg);border-color:var(--amber-bg)}
.fslist .repsearch{margin:10px 0 4px}
.fspaper{padding:4px 2px 40px}
.fshead{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap}
.fshactions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.fshead h2{font-size:21px;margin:0 0 2px}
.fshead .fsstore{color:var(--muted);font-size:15px;font-weight:600}
.fssubhead{margin:0;color:var(--ink2);font-size:14px}
.fssentline{margin:8px 0 0;font-size:13px;font-weight:600}
.fssentline.fs-ok{color:var(--green)}
.fssentline.fs-bad{color:var(--amber)}
.fssummary{border-collapse:collapse;margin:16px 0 4px}
.fssummary .fsk{padding:3px 16px 3px 0;color:var(--muted);font-size:13px}
.fssummary .fsv{padding:3px 0;font-weight:600;font-size:13.5px}
.fssec{margin:22px 0 0;border-top:1px solid var(--line2);padding-top:14px}
.fssec h3{font-size:16px;margin:0 0 12px}
.fssecscore{color:var(--muted);font-weight:600;font-size:13.5px}
.fsq{margin:0 0 12px;padding:9px 12px;border-radius:var(--rs);background:var(--surface);border:1px solid var(--line2);border-left-width:3px}
.fsq-ok{border-left-color:var(--green)}
.fsq-no{border-left-color:var(--danger)}
.fsqq{font-size:14px;margin:0 0 5px}
.fsqa,.fsqc{font-size:13px;color:var(--ink2);line-height:1.5}
.fsqa span,.fsqc span{color:var(--muted);display:inline-block;min-width:72px}
.fsfwd{margin:28px 0 0;border-top:1px solid var(--line2);padding-top:16px;max-width:620px}
.fsfield{display:block;margin:0 0 10px}
.fsfield>span{display:block;font-size:12.5px;color:var(--ink2);margin:0 0 4px}
.fsfield input{width:100%;padding:8px 10px;border:1px solid var(--line2);border-radius:var(--rs);background:var(--surface);color:var(--ink);font-size:14px}
.fsfield input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-bg)}
.fssends{margin:8px 0 0;padding-left:18px;font-size:13px;color:var(--ink2);line-height:1.7}
/* the address box opened from a row sits UNDER it, inside the same card, full width */
.fsfwd-row{margin:0;border-top:1px solid var(--line2);border-radius:0;padding:14px 15px 16px;background:var(--bg);max-width:none}
.fsfwd-row .fsfield{max-width:520px}
@media (max-width:700px){
  /* Narrow keeps ALL SIX of the things he asked for - it drops the columns, not the facts.
     Hiding Lang and Unanswered here would have lost two of them below 700px. */
  .fshdr{display:none}
  .fsrow{display:flex;flex-wrap:wrap;row-gap:8px;gap:10px;align-items:center}
  .fsrow .fsname{flex:1 0 100%;white-space:normal}
  .fsrow .fslink{margin-left:auto;width:auto}
  .fsrow .fsmail{width:auto}
  .fspaper{padding:4px 0 32px}
  .fsqa span,.fsqc span{min-width:0;margin-right:5px}
}


/* ═══ v9.87 — the quiz link at the top of the food-safety page, and a row he can clear ═══
   Owner: "i want to see popeeys food safety. and the link to teh quiz. then i wanna see teh
   submissions." On Relay's own tokens (NEVER the Real Estate module's — those live under
   .re-app and fall through to their hard-coded fallbacks everywhere else: the v9.85 bug). */
.fsquiz{display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:12px 14px;margin:0 0 10px;background:var(--surface);border:1px solid var(--line2);
  border-radius:var(--r)}
.fsquiz-edit{display:block}
/* `hidden` alone does nothing here: it works through the UA stylesheet, and .siteshead's own
   display:flex is a class rule that beats it — so the heading stayed on screen. */
.siteshead[hidden]{display:none}
.fsquiz-edit .fsfield{margin:0 0 8px}
.fsquiz-edit .hint{margin:8px 0 0}
.fsquizurl{flex:1 1 220px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:12.5px;color:var(--muted)}
.fsdel{flex:0 0 auto;width:26px;height:26px;line-height:1;border:0;border-radius:6px;cursor:pointer;
  background:transparent;color:var(--muted);font-size:14px}
.fsdel:hover{background:#FDECEC;color:#C0392B}
@media(max-width:760px){
  .fsquiz{gap:8px}
  .fsquizurl{flex-basis:100%;order:3}
}
/* On a phone the v9.86 row wrapped where it liked: the name broke over two lines and the
   score was drawn across it. Give the name the whole first line and let the score, the flag,
   Email and ✕ share the second. */
@media(max-width:700px){
  /* On a phone the grid becomes two lines: who they are, then their figures and the
     buttons — nothing hangs off the edge and nothing needs a sideways scroll. */
  /* A phone has no room for nine columns, so the row becomes three plain bands: who they
     are, what they scored and left, then the buttons. Nothing is dropped and nothing hangs
     off the edge. */
  /* Four placed bands, not free wrapping: who, what they scored, their figures, the
     buttons. Every one of his six facts is still here — the columns go, the facts stay. */
  .fshdr{display:none}
  .fsrow{display:grid;grid-template-columns:auto auto 1fr;row-gap:7px;column-gap:10px;
    align-items:center}
  .fsrow .fsname{grid-column:1/-1;white-space:normal}
  .fsrow .fsscore{grid-column:1/-1}
  .fsrow .fsat{grid-column:1}
  .fsrow .fslang{grid-column:2}
  .fsrow .fsun{grid-column:3}
  .fsrow .fsat,.fsrow .fslang,.fsrow .fsun{font-size:12px}
  .fsrow .fslink{grid-column:1;width:auto;justify-self:start}
  .fsrow .fsmail{grid-column:2;width:auto;justify-self:start}
  .fsrow .fsdel{grid-column:3;justify-self:end}
  /* `.replist.rephome .repchev{display:inline}` is 0,3,0 and beats a plain `.fsrow .repchev`
     whatever the order — measured, not guessed. Match its weight to win. */
  .replist .fsrow .repchev{display:none}
  /* and no auto margin on the ✕: at 390px it pushed it onto a line of its own */
  .fsrow .fsdel{margin-left:0}
}

/* === v9.93 - the score card on a food-safety paper ==================================
   Owner: "the score per section and a grand total ... it needs ot be a nice visually
   appealing layout". On Relay's own tokens, never a hard-coded colour: a band is green
   at 90%+, amber from 75%, red below - the same reading as the rest of the app. The
   card owns every class it uses, prefixed fssc-: .fsbar is ALREADY the file viewer's
   toolbar (.fszout / .fszin live in it) and a rule down here would have flattened it to an
   8px strip, and .fs-ok / .fs-bad already mean something on .fssent and .fssentline. */
.fssc{margin:16px 0 4px;padding:14px 16px 10px;background:var(--surface);
  border:1px solid var(--line2);border-radius:var(--r);box-shadow:var(--sh);max-width:720px}
.fssctop{display:flex;align-items:center;gap:16px;flex-wrap:wrap;
  padding:0 0 12px;border-bottom:1px solid var(--line)}
.fsscbig{font-size:34px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.fsscbig.fssc-ok{color:var(--green)}.fsscbig.fssc-mid{color:var(--amber)}
.fsscbig.fssc-low{color:var(--danger)}
.fsscsub{margin:5px 0 0;color:var(--muted);font-size:13px}
.fsscstars{margin-left:auto;color:var(--amber);font-size:20px;letter-spacing:2px;line-height:1}
.fsscbars{padding:10px 0 0}
.fsscrow{display:grid;grid-template-columns:minmax(120px,1fr) minmax(90px,200px) 74px 54px;
  align-items:center;gap:12px;padding:5px 0}
.fsscname{font-size:13.5px;color:var(--ink);min-width:0}
.fsscbar{height:8px;border-radius:999px;background:var(--line);overflow:hidden}
.fsscbar i{display:block;height:8px;border-radius:999px}
.fsscbar i.fssc-ok{background:var(--green)}.fsscbar i.fssc-mid{background:var(--amber)}
.fsscbar i.fssc-low{background:var(--danger)}
.fsscnum{font-size:13px;color:var(--ink2);text-align:right;font-variant-numeric:tabular-nums}
.fsscpct{font-size:13px;font-weight:700;text-align:right;font-variant-numeric:tabular-nums}
.fsscpct.fssc-ok{color:var(--green)}.fsscpct.fssc-mid{color:var(--amber)}
.fsscpct.fssc-low{color:var(--danger)}
.fssctotal{margin-top:6px;padding-top:10px;border-top:1px solid var(--line2)}
.fssctotal .fsscname{font-weight:800;letter-spacing:.04em;font-size:12px;
  text-transform:uppercase;color:var(--ink)}
.fssctotal .fsscnum{font-weight:700;color:var(--ink)}
@media (max-width:700px){
  /* the figures stay - only the columns go */
  .fsscrow{grid-template-columns:1fr 74px 54px;row-gap:4px}
  .fsscname{grid-column:1 / -1}
  .fsscbar{grid-column:1}
  .fsscbig{font-size:30px}
}

/* v10.02 — Sales & costs (Reports page): its controls, tiles, the store table that opens to its items */
.cs-page{display:flex;flex-direction:column;gap:12px}
.cs-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:2px 0}
.cs-sel{border:1px solid var(--line2);border-radius:var(--rs);background:var(--surface);padding:6px 9px;font-size:13px}
.cs-to{color:var(--muted)}
.cs-grow{flex:1}
.cs-notes{color:var(--muted);font-size:12.5px;line-height:1.55}
.cs-warn{background:var(--amber-bg);color:var(--amber);border:1px solid #F5D9B8;border-radius:var(--r);padding:9px 12px;font-size:12.5px;line-height:1.55}
.cs-bad{color:var(--danger)}
.cs-mute{color:var(--muted);font-size:12.5px;font-weight:400}
/* v10.07 — an invoice the Invoice Processor couldn't read: "no data", amber, never a $0 */
.cs-nd{display:inline-block;padding:1px 7px;border-radius:999px;background:var(--amber-bg);color:var(--amber);font-size:11px;font-weight:600;white-space:nowrap}
.cs-nd-note{margin:2px 0 8px;color:var(--amber);font-size:12.5px}
.cs-nd-cell{color:var(--amber);font-size:12.5px}
.cs-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.cs-kpi{min-width:0;padding:12px 14px}
.cs-kpi .kv{font-size:21px}
.cs-ks{font-size:12px;color:var(--ink2);margin-top:2px}
.cs-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh)}
.cs-tbl{width:100%;border-collapse:collapse;font-size:13px}
.cs-tbl th{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);text-align:left;padding:9px 10px;border-bottom:1px solid var(--line);white-space:nowrap;background:var(--accent-bg)}
.cs-tbl td{padding:8px 10px;border-bottom:1px solid var(--line);white-space:nowrap;color:var(--ink)}
.cs-tbl .num{text-align:right;font-family:var(--mono);font-size:12.5px}
.cs-tbl .cs-p{color:var(--ink2)}
.cs-srow{cursor:pointer}
.cs-srow:hover td{background:#F6F8FB}
.cs-srow.open td{background:var(--accent-bg)}
.cs-caret{display:inline-block;width:12px;color:var(--muted)}
.cs-open>td{background:#FAFBFD;padding:6px 10px 12px 28px;white-space:normal}
.cs-open .cs-tbl{background:var(--surface);border:1px solid var(--line);border-radius:var(--rs)}
.cs-tot td{font-weight:700;background:#F3F5F8;border-bottom:0}
.cs-desc{white-space:normal!important;min-width:220px}
.cs-itemno{color:var(--faint);font-family:var(--mono);font-size:11.5px}
.cs-cat{color:var(--muted);font-size:12px}
.cs-line{font-size:11px;font-weight:650;padding:1px 8px;border-radius:9px;background:#EEF0F3;color:var(--ink2)}
.cs-line-food{background:var(--green-bg);color:var(--green)}
.cs-line-paper{background:var(--accent-bg);color:var(--accent-d)}
.cs-line-supplies{background:var(--amber-bg);color:var(--amber)}
.cs-h{font-size:14.5px;font-weight:700;margin-top:6px}
@media (max-width:700px){.cs-kpi .kv{font-size:18px}.cs-tbl td,.cs-tbl th{padding:7px 8px}}
/* ═══ v10.08 — Sales & costs, rebuilt: titled boxes with depth, % pills, the item explorer ═══ */
.cs-hero{display:flex;align-items:center;gap:12px;padding:18px 20px;border-radius:14px;color:#fff;
  background:linear-gradient(120deg,#1B2B6B 0%,#2F54D6 60%,#4C78F0 100%);box-shadow:0 10px 24px rgba(33,64,172,.22)}
.cs-hero-l{flex:1;min-width:0}
.cs-hero-t{display:flex;align-items:center;gap:8px;font-size:19px;font-weight:750;letter-spacing:-.01em}
.cs-hero-s{font-size:12.5px;opacity:.85;margin-top:3px}
.cs-refresh{border:0;background:rgba(255,255,255,.16);color:#fff;border-radius:10px;width:34px;height:34px;font-size:17px;cursor:pointer}
.cs-refresh:hover{background:rgba(255,255,255,.28)}
.cs-refresh.spin{animation:csspin 1s linear infinite}   /* v10.29 - earlier numbers on screen, fresh ones on their way */
@keyframes csspin{to{transform:rotate(360deg)}}
.cs-load{padding:40px;text-align:center;color:var(--muted)}
.cs-kpis2{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}
/* v10.29 - Sales + Labor alone: the two tiles stacked small on the left, the chart beside them; more tiles ticked: every
   tile the same width in one row, the chart underneath (owner, 11/2) */
.cs-top{display:grid;grid-template-columns:250px minmax(0,1fr);gap:12px;align-items:stretch}   /* v10.55 - owner: "the sales and labor modal could be slimmer": the chart takes the room */
.cs-top .cs-kpis-side{grid-template-columns:1fr;grid-auto-rows:1fr}
.cs-top .cs-k{padding:11px 14px 10px}
.cs-top .cs-k-v{font-size:20px;margin-top:6px}
.cs-top-chart{min-width:0;display:flex;flex-direction:column}
.cs-top-chart .cs-sec{margin-top:0}
.cs-top-chart .cs-chart{flex:1;display:flex;flex-direction:column}
.cs-top-chart .cs-ch-svg{margin:auto 0}
/* v10.32 - the chart in its own card, like the Sales and Labor tiles */
.cs-chartcard{--k:#2F54D6;--kb:#EEF2FD;border-radius:14px;padding:14px 16px 8px;
  box-shadow:0 1px 2px rgba(16,24,40,.06),0 6px 16px rgba(16,24,40,.06)}
.cs-chartcard::before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:var(--k,#2F54D6);border-radius:13px 13px 0 0}
.cs-chart-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.cs-chart-t{font-size:14px;font-weight:750;color:var(--ink);letter-spacing:-.005em}
.cs-chartcard .cs-ch-legend{margin-left:auto;padding:0 2px}
.cs-chart-s{font-size:12px;color:var(--muted);margin:0 0 4px}
.cs-kpis2.cs-kpis-row{grid-template-columns:repeat(var(--n,6),minmax(0,1fr))}
@media (max-width:1000px){.cs-top{grid-template-columns:1fr}.cs-top .cs-kpis-side{grid-template-columns:1fr 1fr;grid-auto-rows:auto}.cs-kpis2.cs-kpis-row{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}}
.cs-k{--k:#2F54D6;--kb:#EEF2FD;position:relative;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 16px 13px;
  box-shadow:0 1px 2px rgba(16,24,40,.06),0 6px 16px rgba(16,24,40,.06);overflow:hidden;min-width:0}
.cs-k::before{content:"";position:absolute;left:0;top:0;right:0;height:4px;background:var(--k,#2F54D6)}
.cs-k-sales{--k:#2F54D6;--kb:#EEF2FD}.cs-k-food{--k:#16A34A;--kb:#E8F7EE}.cs-k-paper{--k:#7C3AED;--kb:#F1EAFD}
.cs-k-supplies{--k:#D97706;--kb:#FDF3E3}.cs-k-labor{--k:#0891B2;--kb:#E3F5F9}.cs-k-prime{--k:#DB2777;--kb:#FCE8F2}
.cs-k-top{display:flex;align-items:center;gap:8px}
.cs-k-ic{width:28px;height:28px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--kb,#EEF2FD);color:var(--k,#2F54D6)}
.cs-k-t{font-size:14px;font-weight:750;color:var(--ink);letter-spacing:-.005em}
.cs-k-v{font-family:var(--mono);font-size:23px;font-weight:700;margin-top:10px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-k-pct{margin-top:6px;font-size:12.5px;color:var(--muted)}
.cs-k-pct b{font-size:17px;color:var(--k,#2F54D6);font-weight:800;margin-right:2px}
.cs-k-bar{height:6px;border-radius:9px;background:var(--kb,#EEF2FD);margin-top:6px;overflow:hidden}
.cs-k-bar i{display:block;height:100%;border-radius:9px;background:var(--k,#2F54D6)}
.cs-k-sub{font-size:12px;color:var(--muted);margin-top:6px}
.cs-sec{margin-top:8px}
.cs-sec-t{font-size:16px;font-weight:750;color:var(--ink)}
.cs-sec-s{font-size:12.5px;color:var(--muted);margin-top:2px}
.cs-strong{font-weight:700}
.cs-sname{font-weight:600}
.cs-pc{padding-top:5px!important;padding-bottom:5px!important}
.cs-pp{display:inline-block;min-width:52px;text-align:center;padding:2px 8px;border-radius:999px;font-family:var(--mono);font-size:12px;font-weight:700;background:#F1F3F6;color:var(--ink2)}
.cs-pp-food{background:#E8F7EE;color:#15803D}.cs-pp-paper{background:#F1EAFD;color:#6D28D9}.cs-pp-supplies{background:#FDF3E3;color:#B45309}
.cs-pp-labor{background:#E3F5F9;color:#0E7490}.cs-pp-prime{background:#FCE8F2;color:#BE185D}
.cs-pp.hot{background:#FDE7E7;color:#B42318;box-shadow:inset 0 0 0 1px #F7C1C1}
.cs-pp.cool{background:#E6F4FF;color:#175CD3;box-shadow:inset 0 0 0 1px #C3DEFA}
.cs-legend{margin:-4px 2px 0}.cs-legend .cs-pp{min-width:0;font-size:11px}
.cs-stores tbody tr:nth-child(even):not(.cs-open):not(.cs-tot) td{background:#FBFCFE}
.cs-fbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px;box-shadow:var(--sh)}
.cs-fq{flex:1 1 260px;min-width:0;border:1px solid var(--line2);border-radius:9px;padding:8px 11px;font-size:13.5px;background:var(--surface)}
.cs-fbtn{border:1px solid var(--line2);background:var(--surface);border-radius:9px;padding:7px 11px;font-size:13px;cursor:pointer;white-space:nowrap}
.cs-fbtn.on{border-color:var(--accent);background:var(--accent-bg);color:var(--accent-d);font-weight:650}
.cs-chk{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink2);white-space:nowrap}
.cs-pickwrap{position:relative}
.cs-pick{position:absolute;z-index:30;top:calc(100% + 6px);left:0;width:300px;max-height:360px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px rgba(16,24,40,.18);padding:8px}
.cs-pick-top{display:flex;gap:6px;align-items:center;padding:2px 2px 8px;border-bottom:1px solid var(--line);margin-bottom:4px}
.cs-pick-row{display:flex;align-items:center;gap:8px;padding:7px 6px;border-radius:8px;font-size:13px;cursor:pointer}
.cs-pick-row:hover{background:#F4F6FA}.cs-pick-row span:first-of-type{flex:1}
.cs-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:8px 2px}
.cs-chip{border:0;background:var(--accent-bg);color:var(--accent-d);border-radius:999px;padding:3px 10px;font-size:12px;font-weight:650;cursor:pointer}
.cs-irow{cursor:pointer}.cs-irow:hover td{background:#F6F8FB}.cs-irow.open td{background:var(--accent-bg)}
.cs-ipct{min-width:120px}
.cs-ibar{display:inline-block;vertical-align:middle;width:56px;height:6px;border-radius:9px;background:#EEF0F4;margin-right:8px;overflow:hidden}
.cs-ibar i{display:block;height:100%;background:linear-gradient(90deg,#4C78F0,#2F54D6);border-radius:9px}
.cs-grow-h td{background:#F3F5FA;border-top:1px solid var(--line)}
.cs-more{margin-top:8px}
.cs-det{display:flex;flex-direction:column;gap:10px;padding:4px 0}
.cs-det-st{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 10px}
.cs-det-h{display:flex;gap:14px;align-items:baseline;font-size:13px;margin-bottom:4px}
.cs-det-h span{font-family:var(--mono);font-size:12.5px}
.cs-det-t{width:100%;border-collapse:collapse;font-size:12.5px}
.cs-det-t td{padding:4px 6px;border-top:1px solid var(--line)}
.cs-pdf{font-weight:650;white-space:nowrap}
.cs-cboxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;margin:4px 0 10px}
.cs-cbox{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;border:1px solid var(--line);background:var(--surface);border-radius:10px;padding:8px 10px;cursor:pointer;box-shadow:var(--sh)}
.cs-cbox span{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.cs-cbox b{font-family:var(--mono);font-size:14px}.cs-cbox em{font-style:normal;font-size:11.5px;color:var(--accent-d)}
.cs-cbox.on{border-color:var(--accent);background:var(--accent-bg)}
.cs-tabs{margin-bottom:8px}
.cs-spanel>td{padding:12px 14px 16px 22px!important;background:#F7F9FD!important}
@media (max-width:700px){.cs-k-v{font-size:19px}.cs-hero{padding:14px}.cs-pick{width:min(300px,86vw)}.cs-fq{flex-basis:100%}}
@media (max-width:520px){.cs-kpis2{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cs-k{padding:11px 12px}.cs-k-v{font-size:16px;margin-top:8px}.cs-k-pct b{font-size:14px}.cs-k-t{font-size:13px}}

/* v10.09 — the brand switch is two real buttons; a tile per company; company rows in the store table */
.cs-brands{display:flex;gap:8px}
.cs-brandbtn .bs{display:none}
/* v10.46 - the (i) on every figure, and its explanation */
.cs-i{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;border:1px solid var(--line2);background:var(--surface);color:var(--ink2);font:italic 700 11px/1 Georgia,serif;cursor:pointer;padding:0;margin-left:5px;vertical-align:middle;flex:none}
.cs-i:hover{border-color:var(--accent);color:var(--accent-d)}
.cs-hero .cs-i{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.5);color:#fff}
.cs-late{display:inline-block;margin-left:8px;padding:1px 8px;border-radius:999px;background:#FFE9A8;color:#5A3B00;font-weight:700}
.cs-hero-run{margin-top:3px;font-weight:600}
.cs-infopop{position:fixed;z-index:9999;width:min(320px,calc(100vw - 16px));background:var(--ink);color:#fff;border-radius:10px;padding:10px 12px;font-size:13px;line-height:1.4;box-shadow:0 8px 24px rgba(0,0,0,.28)}
.cs-infopop b{display:block;margin-bottom:3px}
/* v10.46 - the phone: everything in line (owner: "Fix literally all the buttons stacking badly and not in line on phone view") */
@media (max-width:700px){
  .cs-brands{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px}
  .cs-brandbtn{padding:9px 2px;font-size:13px;white-space:nowrap;min-width:0;text-align:center}
  .cs-brandbtn .bl{display:none}.cs-brandbtn .bs{display:inline}
  .cs-bar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .cs-bar .cs-desk,.cs-bar .cs-grow{display:none!important}
  .cs-bar .cs-sel,.cs-vswrap,.cs-vsbtn{width:100%;min-width:0}
  .cs-vslbl{display:none}
  .cs-fbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
  .cs-fbar .cs-fq{grid-column:1/-1;width:100%}
  .cs-fbar>*{width:100%;min-width:0;margin:0}
  .sosbox .dashsec-hd{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}   /* v10.54 - two switches: the second takes its own row */
  .sosbox .dashsec-hd>span:first-child{white-space:nowrap}
  .sos-sub,.sos-when{display:none}
  .sos-views{flex:none;margin-left:0}.sos-views button{white-space:nowrap}
  .sos-days{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}
  .sos-days button{flex:none;white-space:nowrap}
  .cs-ch-legend{font-size:11px}
}
.cs-brandbar{margin:0 0 12px}            /* v10.44 - the brand buttons above speed of service, always in the same place */
.cs-brandbtn{border:1.5px solid var(--accent);background:var(--surface);color:var(--accent-d);font-weight:700;font-size:14px;
  padding:8px 16px;border-radius:9px;cursor:pointer;box-shadow:var(--sh)}
.cs-brandbtn:hover{background:var(--accent-bg)}
.cs-brandbtn.on{background:var(--accent);color:#fff;box-shadow:0 4px 12px rgba(47,84,214,.28)}
.cs-cotiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.cs-cotile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;background:var(--surface);
  border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:12px;padding:12px 14px;cursor:pointer;
  box-shadow:0 1px 2px rgba(16,24,40,.06),0 6px 16px rgba(16,24,40,.05)}
.cs-cotile:hover{border-color:var(--accent)}
.cs-cotile.on{background:var(--accent-bg);border-color:var(--accent);box-shadow:0 0 0 2px var(--accent)}
.cs-co-n{font-weight:750;font-size:14px;color:var(--ink)}
.cs-co-s{font-size:12px;color:var(--muted)}
.cs-co-v{font-family:var(--mono);font-size:19px;font-weight:700;color:var(--ink);margin-top:2px}
.cs-co-p{display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
.cs-co-p i{font-style:normal;font-size:11.5px;font-weight:650;padding:2px 7px;border-radius:999px;background:#F1F3F6;color:var(--ink2)}
.cs-co-p i.f{background:#E8F7EE;color:#15803D}.cs-co-p i.p{background:#F1EAFD;color:#6D28D9}
.cs-co-p i.s{background:#FDF3E3;color:#B45309}.cs-co-p i.l{background:#E3F5F9;color:#0E7490}
.cs-corow{cursor:pointer}
.cs-corow td{background:#EEF2FB!important;font-weight:700;border-top:2px solid var(--line)}
/* v10.39 - a company row stands out from its stores (owner: "comapanies with dropdowns should be bolded or a diff color") */
.cs-corow td{background:#DFE7FB!important;color:var(--accent-d);border-top:2px solid var(--line2)}
.cs-corow td:first-child{box-shadow:inset 4px 0 0 var(--accent);font-size:13.5px}
.cs-corow .cs-caret{color:var(--accent);font-size:13px}
.cs-corow:hover td{background:#D3DEFA!important}
@media (max-width:520px){.cs-brandbtn{padding:7px 11px;font-size:13px}.cs-cotiles{grid-template-columns:1fr 1fr}}

/* v10.09 — McLane's extra accounts get their own colours */
.cs-k-produce{--k:#0D9488;--kb:#E0F5F2}.cs-k-noninv{--k:#475569;--kb:#EEF1F5}.cs-k-fees{--k:#DB2777;--kb:#FCE8F2}
.cs-pp-produce{background:#E0F5F2;color:#0F766E}.cs-pp-noninv{background:#EEF1F5;color:#334155}.cs-pp-fees{background:#FCE8F2;color:#BE185D}
.cs-co-p i.k-food{background:#E8F7EE;color:#15803D}.cs-co-p i.k-paper{background:#F1EAFD;color:#6D28D9}
.cs-co-p i.k-supplies{background:#FDF3E3;color:#B45309}.cs-co-p i.k-labor{background:#E3F5F9;color:#0E7490}
.cs-co-p i.k-produce{background:#E0F5F2;color:#0F766E}.cs-co-p i.k-noninv{background:#EEF1F5;color:#334155}.cs-co-p i.k-fees{background:#FCE8F2;color:#BE185D}

/* v10.10 — the % of sales beside every dollar figure */
.cs-ofs{display:block;font-style:normal;font-size:10.5px;font-weight:600;color:var(--accent-d);opacity:.85;line-height:1.2;margin-top:1px}
.cs-co-v .cs-ofs{display:inline;margin-left:8px;font-size:12px}
.cs-det-ln td,.cs-det-st td{background:#F7F9FD;font-size:12.5px}
.cs-det-st td{font-weight:700;border-top:1px solid var(--line)}
.cs-det-in{padding-left:30px!important}.cs-det-in2{padding-left:46px!important}

/* v10.10 — rename pencil beside every report / folder / card title */
.repren{border:0;background:transparent;color:var(--muted);font-size:13px;margin-left:6px;padding:1px 5px;border-radius:6px;cursor:pointer;opacity:.55}
.repren:hover,.repren:focus-visible{opacity:1;background:var(--accent-bg);color:var(--accent-d)}

/* v10.11 — the business unit's gear, its Users screen, role pills, the store picker, the key */
#domainSel{display:flex;align-items:center;gap:6px}
.domaingear{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#e5e7eb;cursor:pointer}
.domaingear:hover,.domaingear:focus-visible{background:rgba(255,255,255,.16);color:#fff}
.urole{display:inline-block;font-size:11.5px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--accent-bg);color:var(--accent-d);white-space:nowrap}
.urole-admin{background:#1f2937;color:#fff}
.urole-dmo{background:#ede9fe;color:#5b21b6}
.urole-do{background:#dbeafe;color:#1e40af}
.urole-dm{background:#dcfce7;color:#166534}
.urole-manager{background:#fef3c7;color:#92400e}
.urole-other,.urole-franchisee{background:#f1f5f9;color:#334155}
.unote{font-size:11.5px;color:var(--muted);font-weight:400;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.uu-tbl tr.sel td{background:var(--accent-bg)}
.uu-tbl td.c,.uu-tbl th.c{width:28px;text-align:center}
.ivkey.ukey-off{opacity:.45}
.ivkey.ukey-on{color:#15803d}
.ivkey.ukey-pend{color:#b45309}
.ivkey-inline svg{vertical-align:-3px}
.ukey-acts{display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 10px}
.upf{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:10px;padding:4px 8px}
.upf-co{border-bottom:1px solid var(--line);padding:6px 0}
.upf-co:last-child{border-bottom:0}
/* v10.12 - owner: "cant hide stores". .upf-list sets display:grid, and an author display rule beats the
   hidden attribute (the CLAUDE.md gotcha) - so the fold flipped `hidden` and nothing moved */
.upf-list[hidden],.upf-co[hidden],.upf-st[hidden]{display:none!important}
.upf-hd{display:flex;align-items:center;gap:10px}
.upf-colbl{display:flex;align-items:center;gap:8px;flex:1;margin:0;cursor:pointer}
.upf-list{padding:4px 0 2px 24px;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:2px 12px}
.upf-st{display:flex;align-items:center;gap:6px;margin:0;padding:3px 6px;border-radius:6px;font-size:13px;cursor:pointer}
.upf-st:hover{background:var(--accent-bg)}
.upf-st[hidden]{display:none}
/* a role that only reads Reports never sees Generate / Send / Cancel / the report settings */
body.rep-ro [data-repgen],body.rep-ro [data-repsend],body.rep-ro [data-repgengroup],body.rep-ro [data-repcancel],
body.rep-ro [data-repset],body.rep-ro [data-repgset],body.rep-ro .repren{display:none!important}
@media (max-width:760px){.upf-list{grid-template-columns:1fr}.unote{max-width:160px}}

/* v10.12 - the sign-in email confirmation */
.signin-sent .ss-big{font-size:16px;color:#15803d;margin:2px 0 10px}
.signin-sent .ss-list{margin:0;padding-left:18px;line-height:1.6;color:var(--ink)}

/* v10.12 - a store-team role (RVP / DO / DM / Manager) has no In progress or Upcoming, so the Companies and Sales
   cards take the full width instead of sitting beside an empty column (owner, on Rudy's home: "to the full width") */
.dashcols2.dash-solo{grid-template-columns:1fr}
.dashcols2.dash-solo>.dashcell.dashright:empty{display:none}

/* v10.13 - Office staff, and "You vs the other DMs" on the Sales card */
.urole-office{background:#e0f2fe;color:#075985}
.sltable.slpeer tr.slpeer-me td{background:var(--accent-soft,#eef2ff);font-weight:600}
.slpeer-you{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:var(--accent,#2b50d8);color:#fff;
  font-size:11px;font-weight:700;vertical-align:1px}
/* a store team reads reports - no new groups, no dragging */
body.rep-ro .reptoolbar,body.rep-ro #repNewGroup{display:none!important}

/* v10.13 - "Hi, <name>" beside the avatar, so you can see who is signed in */
.hi-name{color:#e2e8f0;font-weight:600;font-size:13.5px;white-space:nowrap;margin:0 4px 0 10px;align-self:center}
.hi-name[hidden]{display:none!important}
@media (max-width:760px){.hi-name{font-size:12.5px;margin-left:6px}}

/* ===== v11.21 - THE PHONE HEADER IS ONE ROW, AND NOTHING THAT DROPS FROM IT GOES UNDER THE STATUS BAR =====
   Owner, 11/13, two screenshots of the installed iPhone app: "Fix this formatting. I'm tired of it going above and beyond the
   top." (the bell's panel over the time and the battery) + "Fix the bell and icon being weirdly formatted." (the R avatar wrapped
   onto a second line under the bell and "Hi, Raheem") + "Just fix it all bro".
   --hdr-b is the header's REAL bottom edge, measured by hdrMeasure() in app.js when a panel opens and whenever the window or the
   header changes size; --vvh is the visible height. The values here are only the fallback for the moment before that runs: a phone
   header is 11 + 38 + 11px under the status bar (env(safe-area-inset-top) - 59px on his phone). Every panel that drops from the
   header starts under --hdr-b and is capped at what is left above the home indicator; it scrolls inside, never off the screen. */
:root{--hdr-b:calc(60px + env(safe-area-inset-top,0px));--vvh:100vh}
@supports(height:100dvh){:root{--vvh:100dvh}}
.ud-hi{display:none;padding:11px 14px 0;font-size:14px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ud-hi[hidden]{display:none!important}
/* the bell's panel on a phone / tablet: the tabs and "Choose what you're told" stay put, the list between them scrolls */
@media(max-width:920px){
  .belldrop{display:flex;flex-direction:column;
    max-height:max(160px,calc(var(--vvh) - var(--hdr-b) - 16px - env(safe-area-inset-bottom,0px)))}
  .belldrop>*{flex:none}
  .belldrop>.bell-list{flex:1 1 auto;min-height:0}
}
@media(max-width:760px){
  /* ONE ROW: logo + version, the unit picker, its gear, the bell, the avatar - all on the bell's line. The picker is the one that
     gives way (its name ends in "…"); the greeting moves into the avatar menu (#udHi). */
  .top.has-user{flex-wrap:nowrap;gap:6px}
  .top.has-user .topleft{flex:1 1 auto;min-width:0}
  .top.has-user .brand{flex:none;gap:7px}
  .top.has-user #domainSel{flex:0 1 auto;min-width:0;margin-left:0}
  .top.has-user .domainbtn{flex:0 1 auto;min-width:0;gap:7px}
  .top.has-user .domain-cur{flex:0 1 auto;min-width:0;align-items:stretch}
  .top.has-user .domain-name{max-width:150px}
  .top.has-user .domaingear{flex:none}
  .top.has-user .topright{flex:none;flex-wrap:nowrap;align-items:center;gap:6px}
  /* the greeting: in the menu until hdrFit() (app.js) has measured the row, so it can never wrap it; then in the bar wherever it fits
     (v10.13 - "I also want a Hi (person) at the top so i know whos logged in") and in the menu (.hi-out) where it does not */
  .top.has-user:not(.hdr-fit) .hi-name{display:none!important}
  .top.has-user:not(.hdr-fit) .ud-hi{display:block}
  .top.has-user:not(.hdr-fit) .ud-hi:not([hidden])+.ud-email{padding-top:2px}
  .top.has-user .hi-name{font-size:12px;margin:0 0 0 -2px}   /* the bell's round button already has 6px of air inside it */
  .top.has-user .bellmenu,.top.has-user .usermenu{margin-left:0}
  .top.has-user .useravatar{width:34px;height:34px}       /* a 34px tap target, the bell's size */
  /* the avatar menu hung 38px under the avatar INSIDE a header pinned to the top of the screen, so on a short phone its last rows
     (Account & security, Sign out) sat below the bottom edge with no way to scroll to them */
  .top.has-user .userdrop{position:fixed;left:auto;right:10px;top:calc(var(--hdr-b) + 6px);max-width:calc(100vw - 20px);
    max-height:max(160px,calc(var(--vvh) - var(--hdr-b) - 16px - env(safe-area-inset-bottom,0px)));
    overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  /* a modal is capped to what is left between the status bar and the home indicator (its body scrolls inside) */
  .overlay{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .modalcard{max-height:100%}
  /* the "saved ✓ / failed" line clears the home indicator, and shows above an open modal (it sat under the modal's backdrop) */
  .toast{bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:5000}
  /* a 3-I job's own header (its name and Back) stuck at the top of the SCREEN - under the app's header and the status bar, where it
     could not be seen or tapped; it sticks under the app's header now */
  .pane-head{top:var(--hdr-b)}
  #astDock{bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  #astPanel{bottom:calc(8px + env(safe-area-inset-bottom,0px));
    max-height:calc(var(--vvh) - var(--hdr-b) - 16px - env(safe-area-inset-bottom,0px))}
}
@media(max-width:360px){
  /* 320-360px: the same row, tighter */
  .top.has-user{gap:4px}
  .top.has-user .topleft,.top.has-user .brand{gap:6px}
  .top.has-user #domainSel{gap:4px}
  .top.has-user .domainbtn{gap:6px;padding:7px 8px}
  .top.has-user .topright{gap:4px}
}
/* ===== v11.21 (the independent check's round) - what the first pass missed =====
   THE BAR FITS ITS SCREEN, WHATEVER IS ON IT. The nav folded into the avatar menu only at 920px and below, but Restaurants' bar
   (8 destinations since v10.00 added Exams and Checklists, + the picker, the bell, "Hi" and the avatar) needs ~1290px - so from 921 to
   1279 wide (his iPhone held sideways is 932-956, an iPad 1024-1180) the bell and the avatar sat past the right edge with no way to
   reach them. hdrFit() in app.js measures the row and sets: .nav-out - the nav does not fit, it is in the avatar menu (the same rows
   the phone uses); .hi-out - the greeting does not fit, it heads the avatar menu instead. A desktop where it all fits is unchanged. */
.top.has-user.nav-out .topright > .btn.nav{display:none}
.top.has-user.nav-out .ud-nav{display:flex}
.top.has-user.nav-out .topright{gap:6px}
.top.has-user.hi-out .hi-name{display:none!important}
.top.has-user.hi-out .ud-hi{display:block}
.top.has-user.hi-out .ud-hi:not([hidden])+.ud-email{padding-top:2px}
/* a notch iPhone held sideways: the notch / Dynamic Island is at one SIDE (env(safe-area-inset-left/right) = 59px) - the logo or the
   avatar sat under it. env() is 0 on every other screen, so nothing else moves. */
:root{--top-px:22px;--hdr-h:calc(60px + env(safe-area-inset-top,0px))}
@media(max-width:760px){:root{--top-px:10px}}
.top{padding-left:max(var(--top-px),env(safe-area-inset-left,0px));padding-right:max(var(--top-px),env(safe-area-inset-right,0px))}
@media(max-width:920px){ .belldrop{left:calc(10px + env(safe-area-inset-left,0px));right:calc(10px + env(safe-area-inset-right,0px))} }
@media(max-width:760px){
  .top.has-user .userdrop{right:calc(10px + env(safe-area-inset-right,0px))}
  .domain-menu{left:calc(12px + env(safe-area-inset-left,0px));right:calc(12px + env(safe-area-inset-right,0px))}
}
/* the assistant's button and panel keep off the notch side too */
#astDock,#astPanel{right:calc(22px + env(safe-area-inset-right,0px))}
@media(max-width:760px){ #astDock{right:calc(12px + env(safe-area-inset-right,0px))} #astPanel{right:calc(8px + env(safe-area-inset-right,0px))} }
/* the panels that hang from the bell / the avatar on a wider screen (a phone sideways is 440px tall): capped to what is left above
   the bottom edge, the list / the rows scroll inside. On a desktop the cap is far below them, so they look as they did. */
@media(min-width:921px){
  .belldrop{display:flex;flex-direction:column;
    max-height:max(160px,calc(var(--vvh) - var(--hdr-b) - 16px - env(safe-area-inset-bottom,0px)))}
  .belldrop>*{flex:none}
  .belldrop>.bell-list{flex:1 1 auto;min-height:0}
}
@media(min-width:761px){
  .top.has-user .userdrop{max-height:max(160px,calc(var(--vvh) - var(--hdr-b) - 16px - env(safe-area-inset-bottom,0px)));
    overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
}
/* THE PHOTO VIEWER (openLightbox): its close and delete buttons were 14px from the top of the SCREEN - under the clock and the
   battery - and its caption / counter / "full size" 16px from the bottom, under the home indicator. The photo itself is kept clear of
   both rows (on a desktop the 80vh it always had is the smaller number, so it is unchanged there). */
.lb-x{top:calc(14px + env(safe-area-inset-top,0px));right:calc(16px + env(safe-area-inset-right,0px))}
.lb-del{top:calc(14px + env(safe-area-inset-top,0px));left:calc(16px + env(safe-area-inset-left,0px))}
.lb-prev{left:calc(10px + env(safe-area-inset-left,0px))}
.lb-next{right:calc(10px + env(safe-area-inset-right,0px))}
.lb-meta{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.lb-img{max-height:min(80vh,calc(100vh - 2 * env(safe-area-inset-top,0px) - 116px),calc(100vh - 2 * env(safe-area-inset-bottom,0px) - 98px))}
/* THE MAP fills what is under the header. It assumed a 58px header (100vh - 58px), but an installed iPhone's is 119px: the map ran 55px
   past the bottom of the screen and 34px more under the home indicator, and a finger on the map pans the map, not the page - so the
   bottom of "Stores & tools" and the map's own controls could not be reached. --hdr-h is the header's measured height (app.js). */
@media(max-width:760px){
  .mapwrap{margin-top:-18px;margin-bottom:-40px;height:calc(var(--vvh) - var(--hdr-h) - env(safe-area-inset-bottom,0px));min-height:240px}
}
@media(min-width:761px) and (max-height:520px){     /* a phone sideways: its 520px minimum was taller than the screen */
  .mapwrap{height:calc(var(--vvh) - var(--hdr-h) - env(safe-area-inset-bottom,0px));min-height:240px}
}

/* v10.14 - the Sales card: companies as checkboxes, drop-downs, the people side by side */
.slcos{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;width:100%;padding:2px 0 6px}
.slcos-l{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#64748b)}
.slco-chk{display:inline-flex;align-items:center;gap:6px;font-size:13px;cursor:pointer;white-space:nowrap}
.slco-chk input{width:15px;height:15px;margin:0}
.slcustom{display:inline-flex;align-items:center;gap:6px}
.slcustom input[type=date]{padding:5px 8px;border:1px solid var(--line,#d6dbe3);border-radius:8px;font:inherit;font-size:12.5px}
.slcmp-sel{display:inline-flex;align-items:center;gap:6px}
.slcos-cap{text-align:center;font-size:12.5px;color:var(--muted,#64748b);padding:4px 8px 10px}
.slpeerchart{display:flex;align-items:flex-end;justify-content:space-around;gap:18px;padding:18px 8px 6px;
  border-bottom:1px solid var(--line,#e2e8f0);overflow-x:auto;min-height:290px}
.spc-g{display:flex;flex-direction:column;align-items:center;min-width:110px;flex:1 1 0}
.spc-bars{display:flex;align-items:flex-end;gap:8px;height:240px}
.spc-col{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}
.spc-v{font-size:11.5px;font-weight:600;white-space:nowrap;margin-bottom:4px}
.spc-v.dim{font-weight:500}
.spc-b{width:46px;border-radius:5px 5px 0 0}
/* v10.22 — the MBM row's files, and its Earlier runs list */
.mbmfiles{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.mbmfiles .btn[hidden]{display:none!important}
.fcvendors{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
@media (max-width:520px){.fcvendors{grid-template-columns:1fr}}
.repsub.fcwhole{white-space:normal;overflow:visible;text-overflow:clip}
.fcinfo-t{width:100%;border-collapse:collapse;margin:8px 0 12px;font-size:13px}
.fcinfo-t th{text-align:left;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--ink3,#8A9099);padding:6px 8px;border-bottom:1px solid var(--line,#E3E7EC)}
.fcinfo-t td{padding:7px 8px;border-bottom:1px solid var(--line,#E3E7EC);vertical-align:top}
.fcvendors label.fcvendor{display:flex;align-items:center;gap:8px;margin:0;font-weight:400;font-size:13px;text-transform:none;letter-spacing:0;color:var(--ink,#14181F)}
.fcvendors label.fcvendor input[type=checkbox]{width:16px;height:16px;flex:none;margin:0;padding:0;box-shadow:none}
.fcinfo{margin:0 0 10px 18px;font-size:13px;color:var(--ink2,#3a3f46)}
.mbmfiles:empty{display:none}
.mbmruns{width:100%;border-collapse:collapse;font-size:13px}
.mbmruns th,.mbmruns td{padding:7px 8px;border-bottom:1px solid var(--line,#e6e8ee);text-align:left;vertical-align:top}
.mbmruns th.num,.mbmruns td.num{text-align:right;white-space:nowrap}
.mbmacts{white-space:nowrap;text-align:right}
.mbmacts .btn{margin-left:4px}
/* v10.20 — the Labor tab (Jack today so far, hourly) */
.opscheck{margin:4px 0 10px;padding:8px 10px;border:1px solid var(--line,#e6e8ee);border-radius:6px;font-size:13px;line-height:1.5}
.opscheck .btn{margin-left:6px}
.opstable td,.opstable th{white-space:nowrap}
/* v10.19 — the food cost graph, one bar per store (% of its own sales) */
.slfoodbars{display:flex;flex-direction:column;gap:5px;padding:6px 0 10px}
.sfb-row{display:grid;grid-template-columns:minmax(90px,170px) 1fr 52px 96px;align-items:center;gap:10px;font-size:13px;cursor:default}
.sfb-row[data-slstore]{cursor:pointer}
.sfb-n{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sfb-t{height:14px;background:var(--line,#e6e8ee);border-radius:3px;overflow:hidden}
.sfb-t i{display:block;height:100%;background:var(--accent,#2b50d8);border-radius:3px}
.sfb-t i.over{background:var(--bad,#c62828)}
.sfb-p{text-align:right;font-weight:600}
.sfb-v{text-align:right}
@media (max-width:640px){.sfb-row{grid-template-columns:minmax(70px,110px) 1fr 46px}.sfb-v{display:none}}
.spc-b.cur{background:var(--accent,#2b50d8)}
.spc-b.py{background:#c9d0db}
.spc-g.me .spc-b.cur{background:#1d3fb8;box-shadow:0 0 0 2px #fff,0 0 0 4px rgba(43,80,216,.35)}
.spc-n{margin-top:8px;font-weight:700;font-size:13px;text-align:center}
.spc-s{font-size:11.5px;color:var(--muted,#64748b);text-align:center;margin-top:2px}
.slinv-view{margin-left:6px}

/* v10.24 — the left nav's company tiles (boxed, like the home page's were) */
.cosb-list.conav{gap:8px}
.coitem.conav-tile{display:grid;grid-template-columns:30px 1fr;grid-template-rows:auto auto;column-gap:10px;row-gap:2px;align-items:center;
  padding:10px 11px;background:#fff;border:1px solid var(--line);border-left:3px solid var(--coc,#64748B);border-radius:10px;
  box-shadow:0 1px 2px rgba(16,24,40,.05)}
.coitem.conav-tile .conav-mark{grid-row:1 / span 2;display:flex;align-items:center;justify-content:center}
.coitem.conav-tile .conav-mark .coitem-logo,.coitem.conav-tile .conav-mark .coitem-init{width:30px;height:30px}
.coitem.conav-tile .coitem-name{font-weight:650;color:var(--ink);font-size:13px;white-space:normal;line-height:1.25;overflow:visible}
.coitem.conav-tile .coitem-n{background:none;padding:0;font-family:inherit;font-size:11.5px;color:var(--muted);line-height:1.3;border-radius:0}
.coitem.conav-tile .coitem-n b{color:var(--ink);font-weight:700}
.coitem.conav-tile:hover{background:#F8FAFC;border-color:#CBD2DA;border-left-color:var(--coc,#64748B)}
.coitem.conav-tile.active{background:var(--accent-bg);border-color:var(--accent);border-left-color:var(--coc,var(--accent));box-shadow:none}
.coitem.conav-tile.active .coitem-n{background:none;color:var(--accent-d)}
.cosidebar.collapsed .coitem.conav-tile{display:flex;justify-content:center;padding:8px 0;border-left-width:1px}
@media(max-width:900px){ .coitem.conav-tile{width:auto;min-width:180px} .cosidebar.collapsed .coitem.conav-tile{display:grid;padding:10px 11px} }
/* v10.24 — the home page's Sales & costs card */
.dashsec.sosbox{margin-top:14px}
/* v10.25 - the week before (tiles, store table, chart) and % of sales on the chart */
.cs-cmp{margin-top:4px;font-size:12px;font-weight:600;color:var(--muted)}
.cs-cmp.up{color:#15803D}.cs-cmp.down{color:#B91C1C}
.cs-cmp span{font-weight:500;color:var(--muted)}
.cs-chg{display:block;font-style:normal;font-size:11px;font-weight:600;color:var(--muted)}
/* v10.33 - an opened store's source documents */
.cs-docs{list-style:none;padding:0;margin:6px 0 2px}
.cs-shot{display:block;margin:0 0 12px;text-decoration:none;color:inherit}
.cs-shot-t{font-weight:700;margin:0 0 4px}
.cs-shot-n{font-size:12.5px;color:var(--ink);background:#FFF6CC;border-radius:6px;padding:4px 8px;margin:0 0 6px;line-height:1.35}
.cs-shot img,.cs-shot canvas{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px;background:#fff}
.cs-docs li{display:flex;align-items:baseline;gap:10px;padding:3px 0;flex-wrap:wrap}
.cs-doc{color:var(--accent,#2F54D6);font-weight:600;text-decoration:none;cursor:pointer}
.cs-doc:hover{text-decoration:underline}
.cs-doc-d{font-size:12px;color:var(--muted)}
.cs-doc-none{color:var(--muted);font-size:12.5px}
.cs-chg.up{color:#15803D}.cs-chg.down{color:#B91C1C}
.cs-ch-prev{fill:none;stroke:#94A3B8;stroke-width:1.5;stroke-dasharray:4 3}
.cs-ch-pct{font-size:12px;font-weight:700;fill:#0E7490}.cs-ch-pct.prev{fill:#5B9FB0;font-weight:600}
.cs-ch-pct.inbar,.cs-ch-pct.prev.inbar{fill:#fff}
.cs-ch-rowlbl{font-size:10.5px;font-weight:700}   /* v10.56 - Today's rows under the hours */
.cs-ch-lg-prev{background:transparent!important;border:1.5px dashed #94A3B8}
.dashsec.sosbox[hidden]{display:none!important}
.sos-key i{display:inline-block;width:9px;height:9px;border-radius:50%;margin:0 3px 0 6px;vertical-align:-1px}
/* v10.28 — the group settings window, his layout: no text, the schedule on one line */
.gsbody .formsec{margin-top:14px}
.gsbody > .formsec:first-child{margin-top:0}
.gsbody .gsauto{display:flex;align-items:center;gap:9px;margin-top:14px;font-weight:600}
#gsToWrap[hidden]{display:none!important}
#gsToWrap .btn{margin-top:8px}
.gsline{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.gsline .gsdays{display:flex;flex-wrap:wrap;gap:10px}
.gsline .gstimes{display:inline-flex;flex-wrap:wrap;gap:6px}
.gsline .gstimes:empty{display:none}
.gsline .gsaddt{display:inline-flex;align-items:center;gap:6px}
.gsline .gsaddt input{max-width:130px}
.gsline .gslater{display:inline-flex;align-items:center;gap:6px}
/* v10.27 - HME's Multi Store report colors: each time a pill in HME's own goal shade */
.sos-pill{display:inline-block;min-width:38px;padding:1px 6px;border-radius:5px;font-weight:700;font-size:12px;text-align:center;color:#fff;background:#94A3B8}
.sos-g-a{background:#00B04C!important;color:#fff}.sos-g-b{background:#F4D216!important;color:#1F2937!important}
.sos-g-c{background:#E35454!important;color:#fff}.sos-g-d{background:#B40000!important;color:#fff}
.sos-g-e{background:#540202!important;color:#fff}.sos-g-n{background:#E5E7EB!important;color:#1F2937!important}
/* v10.98 - window time 95-119 seconds (owner: "SOS 0-95 green 95-120 light red 120+ red") */
.sos-w-l{background:#F7A1A1!important;color:#7F1D1D!important}
/* v10.99 - an hour HME hasn't posted window time for yet: a dash where the pill goes, no grey lane total (owner: "Why's there still grey? What does that mean??") */
.sos-wait{display:inline-block;min-width:44px;font-weight:700;font-size:12px;line-height:18px;text-align:center;color:var(--faint,#98A2B3)}
.sostable .sos-dim{color:var(--muted)}
.sos-cars{display:block;font-style:normal;font-size:10.5px;color:var(--muted);margin-top:1px}
.sos-sales{display:block;font-style:normal;font-size:10.5px;font-weight:600;color:var(--ink2);margin-bottom:2px}
.sostable.sos-hours td,.sostable.sos-hours th{padding:5px 4px;text-align:center}
.sostable.sos-hours .sos-store{text-align:left}
/* v10.29 - owner on the By hour view: "fix the formatting, lin eveerythign up" - `.sostable td.num` (right) used to win over
   the centered hour columns, so each hour's pill and its car count sat right of its heading; now every hour column is the
   same width and its heading, pill and count share one centre line */
.sostable.sos-hours{table-layout:fixed}
/* v10.31 - the hour view's days, Monday to today */
.sos-days{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 8px}
.sos-days button{border:1px solid var(--line);background:var(--surface);color:var(--ink2);border-radius:999px;padding:3px 11px;font-size:12px;cursor:pointer}
.sos-days button.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.sostable.sos-hours th.sos-store,.sostable.sos-hours td.sos-store{width:150px}
.sostable.sos-hours td.num,.sostable.sos-hours th{text-align:center}
.sostable.sos-hours .sos-pill{min-width:44px}
/* v10.37 - the hour view scrolls sideways (owner: "I wan the hourly pos scrollable pls" + "Too congested"): app.js gives the
   table a min-width of the store names + 68px an hour, so past the screen it scrolls inside .sos-scroll; the store names
   stay pinned on the left, a soft edge showing the hours slide under them */
.sostable.sos-hours td,.sostable.sos-hours th{padding:6px 6px}
.sostable.sos-hours .sos-store{position:sticky;left:0;z-index:1;background:var(--surface);box-shadow:6px 0 6px -6px rgba(15,23,42,.18)}
@media (max-width:600px){
  .sostable.sos-hours th.sos-store,.sostable.sos-hours td.sos-store{width:96px}
}
.sos-scroll{-webkit-overflow-scrolling:touch}
.sos-views{display:inline-flex;border:1px solid var(--line);border-radius:7px;overflow:hidden;margin-left:10px}
.sos-views button{border:0;background:transparent;padding:3px 10px;font-size:12px;font-weight:600;color:var(--ink2);cursor:pointer}
.sos-views button.on{background:var(--accent-bg,#EEF2FF);color:var(--accent-d,#1E3A8A)}
.sos-sub{font-weight:500;color:var(--muted);margin-left:6px;font-size:12px}
.sos-when{font-size:12px;font-weight:600;color:var(--ink2)}
.sos-what{margin:2px 0 8px;font-size:13.5px;color:var(--ink2)}   /* v10.54 - owner: "this is by window time? can you make that apparent?" */
.sos-what b{color:var(--ink);font-weight:800}
.sos-export-btn{margin-left:10px;font-size:12px;font-weight:600;padding:4px 10px;border:1px solid var(--line,#d6dbe3);border-radius:6px;background:var(--card,#fff);color:inherit;cursor:pointer}
.sos-export{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:4px 0 10px;font-size:13px}
.sos-export input[type=date]{font:inherit;padding:4px 6px;border:1px solid var(--line,#d6dbe3);border-radius:6px;margin-left:4px}
.sos-export-note{color:var(--muted,#6b7280);font-size:12px}
.sos-long{display:inline-block;border:0;background:none;padding:2px 4px;margin:1px 0 0 -4px;font-size:15px;line-height:1;color:#b42318;cursor:pointer}
.sos-long-what{display:block;font-size:11px;font-weight:700;color:#b42318;white-space:normal}
.sos-long-what[hidden]{display:none!important}
.sos-proof{display:block;font-size:11px;font-weight:600;color:var(--accent-d,#1E3A8A);text-decoration:underline;margin-top:1px}
.sos-scroll{overflow-x:auto}
.sostable{width:100%;border-collapse:collapse;font-size:13px}
.sostable th{font-size:11.5px;font-weight:650;color:var(--muted);padding:5px 8px;text-align:right;border-bottom:1px solid var(--line)}
.sostable td{padding:7px 8px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.sostable td.num{text-align:right}
.sostable .sos-store{text-align:left;white-space:nowrap}
.sostable td.sos-none{text-align:center;color:var(--muted);font-size:12px}
.sos-foot{margin:8px 2px 0;font-size:11.5px;color:var(--muted)}
.sos-err{color:#B45309}
.sostable .linklike{background:none;border:none;padding:0;font:inherit;font-weight:600;color:var(--ink);cursor:pointer;text-align:left}
.sostable .linklike:hover{color:var(--accent-d);text-decoration:underline}
.dashsec.homecs{background:transparent;border:none;box-shadow:none;padding:0;margin-top:14px}
.dashalerts{margin-top:14px}
/* a long Alerts / Set-up list scrolls inside its box instead of pushing Sales & costs down the page */
.dashalerts .alertbox-body,.dashalerts .setupbox-body{max-height:min(46vh,520px);overflow:auto}
.homecs .slquiet:empty{display:none}
.cs-vswrap{position:relative;display:inline-flex;align-items:center;gap:6px}
.cs-vslbl{font-size:12.5px;font-weight:650;color:var(--muted)}
.cs-vsbtn{cursor:pointer;font-weight:600;min-width:120px;text-align:left}
.cs-vspanel{position:absolute;top:calc(100% + 6px);left:52px;z-index:40;min-width:250px;max-height:60vh;overflow:auto;background:#fff;
  border:1px solid var(--line2);border-radius:12px;box-shadow:0 12px 32px rgba(16,24,40,.16);padding:8px}
.cs-vstop{display:flex;gap:6px;padding:2px 2px 8px;border-bottom:1px solid var(--line);margin-bottom:4px}
.cs-vsrow{display:flex;align-items:center;gap:9px;padding:7px 8px;border-radius:8px;font-size:13px;cursor:pointer}
.cs-vsrow:hover{background:#F2F4F7}
.cs-vsdot{width:10px;height:10px;border-radius:3px;flex:none}
.cs-chart{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px 6px;position:relative}
/* v10.29 - the hover card: a day this week beside the same day last week (owner: "if i hover over it then i wanna see
   this week and alst week show up") */
.cs-ch-tip{position:absolute;z-index:5;pointer-events:none;background:#fff;border:1px solid var(--line);border-radius:10px;
  box-shadow:0 8px 24px rgba(15,23,42,.16);padding:10px 12px;font-size:12.5px;color:var(--ink);white-space:nowrap}
.cs-ch-tip[hidden]{display:none!important}
.cs-src{padding:10px 4px 6px;font-size:13px;color:var(--ink2)}
.cs-src-t{font-weight:600;color:var(--ink);margin-bottom:4px}
.cs-src ul{margin:0;padding-left:18px}
.cs-src li{margin:2px 0}
.cs-tip-h{font-weight:700;margin-bottom:6px}
.cs-tip-h span{font-weight:500;color:var(--muted,#64748b)}
.cs-tip-t{border-collapse:collapse}
.cs-tip-t th{font-weight:600;font-size:11px;color:var(--muted,#64748b);text-align:right;padding:0 0 4px 14px}
.cs-tip-t td{padding:3px 0 3px 14px;text-align:right;font-variant-numeric:tabular-nums}
.cs-tip-t td:first-child{text-align:left;padding-left:0;font-weight:600}
.cs-tip-t td i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px;vertical-align:0}
.cs-tip-t small{color:var(--muted,#64748b);font-size:11px;margin-left:3px}
.cs-tip-t .up{color:#15803d;font-weight:600}
.cs-tip-t .down{color:#b91c1c;font-weight:600}
.cs-ch-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12.5px;color:var(--muted);padding:0 4px 6px}
.cs-ch-lg{display:inline-flex;align-items:center;gap:6px}
.cs-ch-lg i{width:11px;height:11px;border-radius:3px;display:inline-block}
.cs-ch-svg{width:100%;height:auto;display:block}
.cs-ch-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;display:flex;align-items:flex-start}
.cs-ch-scroll .cs-ch-svg{max-width:none;flex:none}
/* v10.48 - the dollars stay put while the hours slide under them, like SOS's store names */
.cs-ch-yaxis{position:sticky;left:0;z-index:1;flex:none;display:block;height:auto;background:var(--surface);box-shadow:6px 0 6px -6px rgba(15,23,42,.18)}
.cs-warn-doc{font-weight:700;text-decoration:underline;color:inherit;white-space:nowrap}
.cs-ch-grid{stroke:#E5E8EE;stroke-width:1}
.cs-ch-ax{font-size:13px;fill:#7A8494}
.cs-ch-hit{fill:transparent}
.cs-ch-hit:hover{fill:rgba(47,84,214,.06)}

/* v10.63 - Qu's stores Jack's total doesn't count */
.cs-qx-sign{border:0;background:none;padding:0 4px;margin-left:2px;font-size:15px;line-height:1;color:#b42318;cursor:pointer}
.cs-open-sign{display:block;border:0;background:none;padding:4px 0 0;margin:0;font:inherit;font-size:12px;font-weight:600;color:#b42318;cursor:pointer;text-align:left}
.cs-open-flag{color:#b42318;cursor:help;font-size:13px}
.cs-qx{border:1px solid #f3c7c1;background:#fff7f6;border-radius:10px;padding:12px 14px;margin:0 0 12px;font-size:13px}
.cs-qx-h{margin-bottom:8px}
.cs-qx-t{width:100%;border-collapse:collapse}
.cs-qx-t th,.cs-qx-t td{text-align:left;padding:6px 8px;border-top:1px solid #f1d6d2;vertical-align:top}
.cs-qx-t th{font-size:11px;text-transform:uppercase;color:#7a4a44;border-top:0}
.cs-qx-t .num{text-align:right}
/* v10.64 - a newer Relay is live */
/* v10.87 - below the phone's status bar / Dynamic Island (owner: "Update hidden behind my island??"), and it wraps on a phone */
.relay-newver{position:fixed;top:calc(10px + env(safe-area-inset-top, 0px));left:50%;transform:translateX(-50%);z-index:9999;max-width:calc(100vw - 24px);box-sizing:border-box;text-align:center;background:#1d4ed8;color:#fff;padding:9px 14px;border-radius:10px;font-size:14px;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.relay-newver button{margin:0 2px;font:inherit;font-weight:700;padding:3px 10px;border-radius:6px;border:0;background:#fff;color:#1d4ed8;cursor:pointer}

/* v10.65 - one hour, store by store */
.cs-ch-tap{cursor:pointer;text-decoration:underline;text-decoration-style:dotted}
/* v11.09 - a range's day, tappable; the store's day-by-day Proof */
.cs-ch-day{cursor:pointer}
.cs-ch-day.on{fill:rgba(47,84,214,.10)}
.cs-day-hint{margin:6px 2px 0;font-size:12px}
.cs-pdays{margin:0 0 10px}
.cs-pdays-l{display:flex;flex-wrap:wrap;gap:6px}
.cs-pday{display:inline-block;padding:3px 9px;border:1px solid var(--line,#d6dbe3);border-radius:999px;font-size:12px;text-decoration:none;color:var(--accent,#2f54d6);background:var(--card,#fff)}
.cs-pday:hover{border-color:var(--accent,#2f54d6)}
.cs-pday.off{color:var(--muted,#6b7280);border-style:dashed}
.cs-hr{border:1px solid var(--line,#d6dbe3);border-radius:10px;background:var(--card,#fff);padding:10px 12px;margin:10px 0 0;font-size:13px}
.cs-hr-h{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.cs-hr-x{margin-left:auto;border:0;background:none;font-size:18px;line-height:1;cursor:pointer;color:inherit}
.cs-hr-t{width:100%;border-collapse:collapse}
.cs-hr-t th,.cs-hr-t td{padding:5px 8px;border-top:1px solid var(--line,#e5e7eb);text-align:left}
.cs-hr-t th{font-size:11px;text-transform:uppercase;color:var(--muted,#6b7280);border-top:0}
.cs-hr-t .num{text-align:right}
.cs-hr-t tfoot td{font-weight:700}
.cs-qx-c{margin-bottom:8px;line-height:1.5}

/* v10.82 - a Popeyes day far short on the clock, in the labor flag's table */
.cs-open .cs-open-short td{color:var(--danger)}
/* v10.81 — the Permit Intelligence tab on a restaurant store. v10.90 — Permit Intelligence's OWN store page, in its own colours
   (owner, 11/7: "I like this layout. I want the same" + three tiles for Permits / Inspections / Notes - Flags). Everything is
   scoped to .pi-pane so none of it touches the rest of Relay. */
.pi-pane{--pi-bg:#eef3f8;--pi-ink:#16324f;--pi-ink2:#5b6a7a;--pi-line:#dbe4ee;--pi-accent:#2b6fb5;--pi-accent-dk:#215a97;
  --pi-ok:#1f9e6e;--pi-ok-bg:#e5f4ec;--pi-warn:#b07d1e;--pi-warn-bg:#f6eed8;--pi-bad:#c8443a;--pi-bad-bg:#f7e4e1;--pi-need:#657688;--pi-need-bg:#e7edf4;
  --pi-shadow:0 1px 2px rgba(22,50,79,.05),0 6px 20px rgba(22,50,79,.07);background:var(--pi-bg);color:var(--pi-ink)}
.pi-pane .panelhead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.pi-pane .muted{color:var(--pi-ink2)}
.pi-intro{margin:2px 0 14px;font-size:13px}
.pi-pane .chip{display:inline-flex;align-items:center;gap:5px;border-radius:20px;padding:2px 10px;font-size:12px;font-weight:600;white-space:nowrap}
.pi-pane .chip.active{background:var(--pi-ok-bg);color:var(--pi-ok)}
.pi-pane .chip.expiring{background:var(--pi-warn-bg);color:var(--pi-warn)}
.pi-pane .chip.expired{background:var(--pi-bad-bg);color:var(--pi-bad)}
.pi-pane .chip.needed,.pi-pane .chip.required{background:var(--pi-need-bg);color:var(--pi-need)}
.pi-pane .chip.unread{background:#e6edf4;color:#2f4f77}
.pi-pane .act,.pi-pane .viewlink{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 12px;border-radius:8px;border:1px solid #cfd8e3;
  background:#fff;color:var(--pi-ink);font:inherit;font-size:13px;font-weight:600;line-height:1;text-decoration:none;cursor:pointer;white-space:nowrap}
.pi-pane .act:hover,.pi-pane .viewlink:hover{background:#eef4fb;border-color:var(--pi-accent);color:var(--pi-accent)}
.pi-pane .viewlink{color:var(--pi-accent)}
.pi-pane .act.primary{background:var(--pi-accent);border-color:var(--pi-accent);color:#fff}
.pi-pane .act.primary:hover{background:var(--pi-accent-dk);border-color:var(--pi-accent-dk);color:#fff}
.pi-pane .act.quiet{border-color:transparent;background:transparent;color:var(--pi-ink2)}
.pi-pane .empty{color:var(--pi-ink2);padding:14px 4px}
/* the three tiles */
.pi-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.pi-tile{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"ic t n" "s s s";align-items:center;gap:8px 10px;text-align:left;
  background:#fff;border:1px solid var(--pi-line);border-radius:14px;padding:16px;box-shadow:var(--pi-shadow);cursor:pointer;font:inherit;color:var(--pi-ink);
  transition:transform .12s,box-shadow .12s,border-color .12s}
.pi-tile:hover{transform:translateY(-1px);border-color:var(--pi-accent);box-shadow:0 2px 4px rgba(22,50,79,.06),0 10px 26px rgba(22,50,79,.12)}
.pi-tile-ic{grid-area:ic;font-size:22px;width:42px;height:42px;border-radius:12px;background:#eef4fb;display:flex;align-items:center;justify-content:center}
.pi-tile-t{grid-area:t;font-size:17px;font-weight:700}
.pi-tile-n{grid-area:n;font-size:22px;font-weight:800;color:var(--pi-accent)}
.pi-tile-s{grid-area:s;display:flex;gap:6px;flex-wrap:wrap;font-size:12.5px}
.pi-sub{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.pi-sub h3{margin:0;font-size:18px}
/* Permits: PI's permit block */
.pi-pane .pblock{background:#fff;border:1px solid var(--pi-line);border-left-width:4px;border-radius:12px;padding:12px 14px 6px;margin-bottom:10px;box-shadow:var(--pi-shadow)}
.pi-pane .pblock.c-needed,.pi-pane .pblock.c-required{border-left-color:#7a7267}.pi-pane .pblock.c-active{border-left-color:#2f7d4f}.pi-pane .pblock.c-unread{border-left-color:#4f6f96}
.pi-pane .pblock.c-expiring{border-left-color:#9a6a1a}.pi-pane .pblock.c-expired{border-left-color:#b2402f}
.pi-pane .pb-hd{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pi-pane .pb-hd .pln{font-weight:700;font-size:16px}
.pi-pane .pb-exp{font-size:13px;color:var(--pi-ink2)}
.pi-pane .pb-actions{margin-left:auto;display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.pi-pane .ptbl{width:100%;border-collapse:collapse;margin-top:8px;font-size:13.5px}
.pi-pane .ptbl th{text-align:left;font-size:10.5px;text-transform:uppercase;letter-spacing:.5px;color:var(--pi-ink2);font-weight:700;padding:6px 8px;border-bottom:1px solid var(--pi-line)}
.pi-pane .ptbl td{padding:8px;border-bottom:1px solid var(--pi-line);vertical-align:middle}
.pi-pane .ptbl tr:last-child td{border-bottom:none}
.pi-pane .ptbl .rowlbl{font-weight:600;width:80px}
.pi-pane .ptbl .filecell{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pi-pane .ptbl .tr-right{text-align:right;white-space:nowrap}
.pi-pane .ptbl tr.renew td{color:var(--pi-ink2)}
.pi-pane .ptbl .starts{color:var(--pi-ink2);font-size:12px}
.pi-linkbox{display:flex;flex-direction:column;gap:4px;margin:8px 0;font-size:12.5px}
.pi-linkbox input{width:100%;box-sizing:border-box;padding:8px 10px;border:1px solid #cfd8e3;border-radius:8px;font:inherit;font-size:13px;background:#f6f9fc}
.pi-hist{margin:8px 0 2px}
.pi-pane .pnotes{border-top:1px solid var(--pi-line);margin-top:4px;padding:10px 0 8px}
.pi-pane .pn-hd{display:flex;align-items:center;gap:8px;font-size:10.5px;text-transform:uppercase;letter-spacing:.5px;color:var(--pi-ink2);font-weight:700;margin-bottom:8px}
.pi-pane .pn-hd .chip{text-transform:none;letter-spacing:0;font-size:11.5px}
.pi-pane .pn-count{background:#e6edf4;color:var(--pi-ink);border-radius:20px;padding:0 7px;font-size:11px}
.pi-pane .pnotes .noterow{box-shadow:none;border-radius:10px;margin-bottom:6px}
/* Inspections: PI's inspection lines */
.pi-pane .insp-block{margin-bottom:8px}
.pi-pane .permit-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 16px;border:1px solid var(--pi-line);border-radius:12px;background:#fff;box-shadow:var(--pi-shadow);cursor:pointer}
.pi-pane .permit-line .pl-main{display:flex;align-items:center;gap:10px}
.pi-pane .permit-line .pln{font-weight:600;font-size:15px}
.pi-pane .permit-line .caret{color:var(--pi-ink2);font-size:12px}
.pi-pane .permit-line .pl-meta{display:flex;gap:8px;flex-wrap:wrap}
.pi-pane .permit-line .plright{margin-left:auto;display:flex;align-items:center;gap:12px}
.pi-pane .pmeta{display:inline-flex;align-items:center;gap:5px;background:#eef3f8;border:1px solid var(--pi-line);border-radius:8px;padding:3px 9px;font-size:12.5px}
.pi-pane .pmeta .pmk{color:var(--pi-ink2);font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;font-weight:700}
.pi-pane .insp-hist{margin:2px 0 10px 14px;border-left:2px solid var(--pi-line);padding-left:12px}
.pi-pane .ihist-row{display:flex;align-items:center;gap:12px;padding:9px 13px;border:1px solid var(--pi-line);border-radius:10px;background:#fff;margin-top:6px}
.pi-pane .ihist-d{font-weight:600;font-size:13.5px}
.pi-pane .ihist-b{color:var(--pi-ink2);font-size:12px}
.pi-pane .ihist-t{color:#8a5300;font-size:12px;margin-top:2px}   /* v11.20 - a box a person typed over the report */
.pi-pane .iright{display:flex;align-items:center;gap:12px;margin-left:auto}
.pi-pane .res-pass{color:var(--pi-ok);font-weight:700}.pi-pane .res-fail{color:var(--pi-bad);font-weight:700}
/* Notes / Flags: PI's notes list */
.pi-pane .notes-hd{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:6px}
.pi-pane .mtabs{display:flex;gap:2px;border-bottom:1px solid var(--pi-line);flex:1;min-width:0}
.pi-pane .mtab{background:none;border:none;padding:7px 12px 9px;font:inherit;font-style:italic;font-weight:500;font-size:16px;color:var(--pi-ink2);border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer}
.pi-pane .mtab.on{color:var(--pi-ink);border-bottom-color:var(--pi-accent)}
.pi-pane .mtab .count{margin-left:5px;font-style:normal;font-size:11px;background:#e6edf4;border-radius:20px;padding:0 7px}
.pi-pane .mtab .count.hot{background:var(--pi-bad);color:#fff}
.pi-pane .notes-sub{margin:0 0 12px;font-size:13px}
.pi-pane .notelist{display:flex;flex-direction:column;gap:8px}
.pi-pane .noterow{background:#fff;border:1px solid var(--pi-line);border-left:4px solid #cfd8e3;border-radius:12px;box-shadow:var(--pi-shadow)}
.pi-pane .noterow.flagged{border-left-color:var(--pi-bad)}
.pi-pane .nt-top{padding:10px 14px;cursor:pointer}
.pi-pane .nt-store{font-size:13px;margin-bottom:4px}
.pi-pane .nt-ptype{color:var(--pi-ink2);font-weight:600}
.pi-pane .nt-line{display:flex;align-items:center;gap:8px;min-width:0}
.pi-pane .nt-prev{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.pi-pane .noterow.open .nt-prev{white-space:pre-wrap;overflow:visible;word-break:break-word}
.pi-pane .nt-caret{color:var(--pi-ink2);font-size:12px;flex:none}
.pi-pane .nt-meta{color:var(--pi-ink2);font-size:12px;margin-top:3px}
.pi-pane .nt-body{padding:0 14px 12px;display:flex;flex-direction:column;gap:10px}
.pi-pane .nt-files{display:flex;gap:8px;flex-wrap:wrap}
/* the inline forms (note / edit / record) */
.pi-nform{display:flex;flex-direction:column;gap:8px;background:#f6f9fc;border:1px solid var(--pi-line);border-radius:10px;padding:10px;margin:8px 0}
.pi-nform textarea{width:100%;box-sizing:border-box;padding:9px 11px;border:1px solid #cfd8e3;border-radius:8px;font:inherit;resize:vertical;background:#fff}
.pi-nform label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--pi-ink2);flex:1 1 140px}
.pi-nform label.pi-flag{flex-direction:row;align-items:center;gap:5px;font-size:13px;flex:none}
.pi-row{display:flex;align-items:center;gap:10px;width:100%;min-width:0;flex-wrap:wrap}
.pi-row .act.primary{margin-left:auto}
.pi-select{padding:8px 10px;border:1px solid #cfd8e3;border-radius:8px;background:#fff;font:inherit;color:inherit;box-sizing:border-box;width:100%}
.pi-attach{cursor:pointer}
.pi-files{font-size:12.5px;flex:1 1 60px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--pi-ink2)}
@media (max-width:760px){
  .pi-tiles{grid-template-columns:1fr}
  .pi-pane .pb-actions{margin-left:0;width:100%}
  .pi-pane .ptbl thead{display:none}
  .pi-pane .ptbl tbody tr{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:9px 0;border-bottom:1px solid var(--pi-line)}
  .pi-pane .ptbl tbody tr:last-child{border-bottom:none}
  .pi-pane .ptbl td{padding:0;border:none}
  .pi-pane .ptbl .rowlbl{width:64px;flex:none}
  .pi-pane .ptbl .filecell{flex-basis:100%;padding-left:76px}
  .pi-pane .ptbl .tr-right{margin-left:auto}
  .pi-pane .permit-line .plright{margin-left:0}
}

/* v11.04 - a store whose saved DO isn't the one its DM sits under */
.dir-clash{color:#B45309;font-weight:700;cursor:help;margin-left:4px}

/* v11.06 - one exam / checklist submission, opened in Relay (xr-*) */
.xr-click{cursor:pointer}
.xr-click:hover{background:#F6F8FB}
.xr-card{background:var(--surface,#fff);border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:0 0 12px;text-transform:none;letter-spacing:normal}
.xr-card .dim,.xr-card span{text-transform:none;letter-spacing:normal}
.xr-head .dim{font-size:13px;margin-top:4px}
.xr-headrow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-weight:700}
.xr-store a{font-weight:700}
.xr-mail{font-size:12.5px;margin-top:6px}
.xr-bad{color:var(--danger)}
.xr-chip{display:inline-block;font-size:11.5px;font-weight:700;border-radius:20px;padding:2px 9px;white-space:nowrap}
.xr-chip.ok{background:var(--green-bg);color:var(--green)}
.xr-chip.warn{background:var(--amber-bg);color:var(--amber)}
.xr-chip.bad{background:var(--danger-bg);color:var(--danger)}
.xr-score{text-align:left}
.xr-pct{font-size:34px;font-weight:800;line-height:1.1;margin-bottom:2px}
.xr-pct.ok{color:var(--green)} .xr-pct.warn{color:var(--amber)} .xr-pct.bad{color:var(--danger)}
.xr-verdict{margin-top:6px;font-weight:700} .xr-verdict.ok{color:var(--green)} .xr-verdict.bad{color:var(--danger)}
.xr-secs{margin-top:12px;display:flex;flex-direction:column;gap:7px}
.xr-srow{display:grid;grid-template-columns:minmax(120px,1.2fr) 2fr auto;gap:10px;align-items:center;font-size:13px}
.xr-sname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xr-bar{height:8px;border-radius:5px;background:#EDEFF3;overflow:hidden;display:block}
.xr-bar i{display:block;height:100%;border-radius:5px}
.xr-bar i.ok{background:var(--green)} .xr-bar i.warn{background:var(--amber)} .xr-bar i.bad{background:var(--danger)}
.xr-snum{color:var(--muted);white-space:nowrap}
.xr-sec{font-weight:700;display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}
.xr-sec .dim{font-weight:500;font-size:12.5px}
.xr-q{padding:9px 0;border-top:1px solid var(--line)}
.xr-q[hidden],.xr-psec[hidden]{display:none!important}
.xr-qhead{display:flex;gap:8px;align-items:flex-start}
.xr-qn{color:var(--muted);flex:none;min-width:24px}
.xr-qt{flex:1;min-width:0}
.xr-ans{margin:4px 0 0 32px;font-size:13.5px}
.xr-right{color:var(--green)}
.xr-item{display:flex;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.xr-tick{flex:none;width:22px;height:22px;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}
.xr-tick.ok{background:var(--green-bg);color:var(--green)} .xr-tick.no{background:var(--danger-bg);color:var(--danger)}
.xr-itxt{flex:1;min-width:0}
.xr-note{margin-top:3px;font-size:13px;color:var(--ink2);background:#F6F8FB;border-radius:8px;padding:5px 8px;white-space:pre-wrap}
@media(max-width:720px){ .xr-srow{grid-template-columns:1fr auto} .xr-bar{grid-column:1/-1;order:3} .xr-ans{margin-left:0} }

/* v11.08 - each result section a dropdown, and the All / Wrong / Right filter (xr-*) */
.xr-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px}
.xr-tools .repsearch{flex:1 1 220px;margin:0}
.xr-filter{display:inline-flex;border:1px solid var(--line2);border-radius:10px;overflow:hidden;background:var(--surface,#fff)}
.xr-fbtn{font:inherit;font-size:13px;padding:8px 12px;border:0;background:var(--surface,#fff);color:var(--ink2);cursor:pointer;white-space:nowrap;min-height:36px}
.xr-filter .xr-fbtn+.xr-fbtn{border-left:1px solid var(--line2)}
.xr-fbtn b{font-weight:700;margin-left:2px}
.xr-fbtn.on{background:var(--ink,#14181F);color:#fff}
.xr-openall{border:1px solid var(--line2);border-radius:10px}
details.xr-psec{padding:0}
details.xr-psec>summary.xr-sum{list-style:none;cursor:pointer;padding:13px 16px;display:flex;align-items:center;gap:10px;-webkit-tap-highlight-color:transparent}
details.xr-psec>summary.xr-sum::-webkit-details-marker{display:none}
details.xr-psec>summary.xr-sum::before{content:"";flex:none;width:7px;height:7px;margin:0 2px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(-45deg);transition:transform .15s}
details.xr-psec[open]>summary.xr-sum::before{transform:rotate(45deg)}
details.xr-psec>summary.xr-sum:hover{background:#F6F8FB;border-radius:12px}
.xr-stitle{flex:1;min-width:0;font-weight:700}
.xr-smeta{display:flex;align-items:center;gap:8px;flex:none}
.xr-qs{padding:0 16px 6px}
@media(max-width:720px){
  .xr-filter{flex:1 1 100%;order:2}.xr-filter .xr-fbtn{flex:1;padding:8px 6px}
  .xr-openall{order:3;margin-left:auto}
  .xr-sscore{display:none}
}

/* v11.12 - notifications: the settings toggles and the one-time ask */
.pushpref{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid var(--line,#e5e7eb);cursor:pointer;font-size:14px}
.pushpref input{width:18px;height:18px;flex:none}
.pushask{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:9000;display:flex;align-items:center;gap:8px;
  padding:10px 12px;border-radius:12px;background:var(--card,#fff);color:var(--ink,#111);box-shadow:0 8px 24px rgba(0,0,0,.18);border:1px solid var(--line,#d6dbe3);font-size:14px}
.pushask span{flex:1}
.pushask[hidden]{display:none!important}

/* v11.20 - a store with no DO of its own says, under its DO box, how the reports still reach one ("via Jose Huerta → Yolanda Martinez") */
.dir-via{font-size:11.5px;color:var(--muted);line-height:1.35;margin-top:3px;max-width:240px;cursor:help}
.dir-via[hidden],#us_dovia[hidden]{display:none!important}
/* v11.20 - the "+ Add a DM… / + Add a DO…" card: a same-name warning and a refusal, said inside the card */
.adp-dup{margin:8px 0 0;padding:8px 10px;border-radius:var(--rs);background:#FFF7E6;color:#7A4B00;font-size:13px;line-height:1.5}
.adp-dup .btn{margin-left:6px}
.adp-err{margin:8px 0 0;padding:8px 10px;border-radius:var(--rs);background:var(--danger-bg);color:var(--danger);font-size:13px;line-height:1.5}
.adp-dup[hidden],.adp-err[hidden]{display:none!important}
/* v11.20 - under Reports-to in the person box: what the choice changes (who stops / starts seeing which store, the reports' DO), said before Save */
.rt-fx{margin:8px 0 0;padding:8px 10px;border-radius:var(--rs);font-size:13px;line-height:1.5;background:#F4F6F9;color:var(--ink,#111)}
.rt-fx ul{margin:4px 0 0;padding-left:18px}
.rt-fx li{margin:2px 0}
.rt-fx.busy{color:var(--muted)}
.rt-fx.warn{background:#FFF7E6;color:#7A4B00}
.rt-fx.err{background:var(--danger-bg);color:var(--danger)}
.rt-fx[hidden]{display:none!important}
