/* SMART Repair: white workspace, ink menu and the website's electric blue. */
:root {
  --bg:#f5f6f8; --bg-2:#eef2f6; --panel:#fff; --panel-solid:#fff;
  --raise:#edf3f8; --line:#dce1e7; --line-hi:#8cb7d9;
  --brand-blue:#0aa3ff; --cyan:#0069ab; --blue:#0069ab;
  --magenta:#4262ad; --lime:#207344; --amber:#89560b; --red:#bb2843;
  --text:#0b0d10; --muted:#59626e; --dim:#65707d; --glow:none;
  --radius:16px; --rail-w:208px; --top-h:82px;
  --f-head:system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-body:system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:ui-monospace,Menlo,monospace;
  color-scheme:light;
}
body { background:var(--bg); font-size:14px; }
button,input,select,textarea { font:inherit; color:inherit; }
button:disabled { cursor:not-allowed; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid #087bbc; outline-offset:3px;
}
.grid-bg,.panel.hud::before,.panel.hud::after { display:none; }
.app,.app.hana-off { grid-template:var(--top-h) minmax(0,1fr) / var(--rail-w) minmax(0,1fr); grid-template-areas:"top top" "rail view"; }
.topbar { background:#fff; padding:0 28px; gap:24px; backdrop-filter:none; }
.brand-name { font-size:24px; letter-spacing:-1px; font-weight:800; white-space:nowrap; }
.brand-name b { color:var(--brand-blue); margin:0; text-shadow:none; }
.brand-sub { font:500 10px var(--f-mono); letter-spacing:.12em; text-transform:uppercase; margin-top:8px; }
.sys { justify-content:flex-start; margin-left:16px; }
.sys .chip:not(:first-child) { display:none; }
.chip { background:#f6f8fa; color:var(--muted); padding:7px 10px; }
.dot.on,.dot.warn { box-shadow:none; }
.clock { gap:4px; }
#clock-time { font:600 14px var(--f-body); color:var(--text); text-shadow:none; }
#clock-date { font-size:10px; }
.top-right { margin-left:auto; gap:16px; }
.who { background:white; font-family:var(--f-body); letter-spacing:0; padding:9px 12px; }
.who small { display:none; }
.hana-toggle { background:#fff; color:var(--text); border-color:#0b0d10; font:600 12px var(--f-body); letter-spacing:0; padding:10px 15px; }
.hana-toggle:hover,.hana-toggle[aria-expanded=true] { background:#edf6fc; }
.mini-orb { background:var(--brand-blue); width:8px; height:8px; box-shadow:none; animation:none; }

/* The website's numbered black menu, adapted to everyday store navigation. */
.rail { background:#0b0d10; padding:27px 14px; gap:7px; border:0; }
.rail::before { content:"WORKSPACE"; color:#8f9aa8; font:10px var(--f-mono); letter-spacing:.18em; padding:0 14px 18px; }
.rail::after { content:"SMART POS\A" attr(data-store); white-space:pre-line; margin-top:auto; padding:28px 14px 8px; font:10px/1.9 var(--f-mono); color:#8f9aa8; }
.rail a { flex-direction:row; justify-content:flex-start; gap:13px; padding:14px 13px; font:600 14px var(--f-body); color:#c8cfd7; letter-spacing:-.15px; text-transform:none; border-radius:10px; }
.rail a svg { display:block; flex:none; width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.7; color:#8f9aa8; transition:color .15s; }
.rail a:hover svg { color:#fff; }
.rail a[aria-current=page] svg { color:var(--cyan); }
.nav-number { font:10px var(--f-mono); color:#66beef; letter-spacing:.03em; }
.rail a:hover { background:#19212c; color:#fff; }
.rail a[aria-current=page] { background:#fff; color:#0b0d10; }
.rail a[aria-current=page] .nav-number { color:var(--cyan); }
.rail a[aria-current=page]::before { display:none; }
.rail .badge { position:static; margin-left:auto; background:#243448; color:#bbdfff; height:auto; min-width:20px; font:600 10px/20px var(--f-mono); border-radius:6px; }
.rail a[aria-current=page] .badge { background:#e8f4ff; color:var(--cyan); }
.view { padding:34px clamp(20px,3vw,48px) 40px; scroll-padding:20px; }
.view-head { margin-bottom:28px; align-items:center; }
.view-head h1 { font:750 clamp(30px,3vw,42px)/1.1 var(--f-head); letter-spacing:-1.8px; text-transform:none; }
.view-head h1 small { font:400 14px/1.6 var(--f-body); letter-spacing:0; margin-top:12px; }
.view-head p { font-size:14px; margin:12px 0 0; }
.panel { box-shadow:0 3px 14px #0b0d1003; backdrop-filter:none; }
.kicker { color:var(--cyan); font-size:10px; letter-spacing:.15em; }
.btn { border-radius:999px; background:#fff; border-color:#b4bec9; color:var(--text); font:600 13px/1.4 var(--f-body); letter-spacing:0; text-transform:none; padding:10px 17px; text-decoration:none; min-height:40px; }
.btn:hover { background:#edf5fb; border-color:#8daac0; }
.btn.primary { background:#0b0d10; border-color:#0b0d10; color:#fff; box-shadow:none; }
.btn.primary:hover { background:#253346; filter:none; }
.btn.ghost { color:#4f5d6a; background:transparent; }
.btn.magenta { background:#edf3fc; border-color:#a6bbd9; }
.btn:disabled { opacity:.5; }
.tag { border-radius:999px; padding:4px 8px; letter-spacing:.025em; background:#f6f8fa; font-size:10px; }
.tag.ok { background:#edf7f0; border-color:#b9dbc5; color:#226b40; }
.tag.warn,.tag.example { background:#fff6e6; border-color:#ecd3a4; color:#80500d; }
.tag.bad { background:#fff0f3; border-color:#e7b5c0; color:#a52740; }
.field,.search { background-color:#f9fafb; border-color:#ccd3dc; border-radius:10px; }
.field { padding:11px 12px; min-height:44px; }
.field:focus,.search:focus-within { border-color:#157bb4; box-shadow:0 0 0 3px #0aa3ff12; }
.field::placeholder,.search input::placeholder { color:#6d7681; }
.f,.directory-toolbar label { font-size:13px; font-weight:500; }
.f .field { font-weight:400; }
.fh { font:400 12px/1.65 var(--f-body); color:var(--muted); }
.fl,.sub,.parts-used legend { letter-spacing:.06em; }
.tabs button { background:#fff; letter-spacing:0; }
.tabs button[aria-pressed=true] { background:#0b0d10; border-color:#0b0d10; color:#fff; }
.stat { padding:20px; }
.stat .v { font-size:30px; letter-spacing:-1px; margin-top:12px; }
.stat .k { font:500 12px var(--f-body); text-transform:none; letter-spacing:0; }
.stat .v.cyan { color:var(--text); }
.stats { gap:16px; margin-bottom:24px; }

/* Register and tickets use the same light cards and numbered blue cues. */
.intake-flow { grid-template-columns:minmax(0,1fr) 300px; gap:24px; }
.intake-main { gap:20px; }
.intake-step,.intake-summary,.ticket-section,.ticket-payment,.ticket-list,.ticket-title { padding:24px; }
.step-heading h2 { font-size:18px; letter-spacing:-.4px; }
.step-number { border:0; background:#e9f4fd; color:var(--cyan); padding:9px; border-radius:50%; font-size:11px; }
.step-muted .step-number { background:#f0f2f5; }
.selected-customer { background:#f3f8fc; border-color:#c5dced; padding:14px; border-radius:12px; }
.customer-avatar { background:#dceeff; color:#175c8b; font-size:18px; font-weight:700; }
.device-choice,.repair-choice { background:#fff; border-radius:12px; }
.device-choice { min-height:84px; justify-content:center; }
.device-choice[aria-pressed=true] { background:#eaf5fd; border-color:#0b83c6; color:#075684; }
.device-choice:disabled { opacity:.5; }
/* Register step 02: category → brand → model */
.device-cats { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:8px; }
.device-cat { display:flex; flex-direction:column; align-items:flex-start; gap:4px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; font-weight:600; text-align:left; }
.device-cat small { color:var(--muted); font-weight:400; font-size:12px; }
.device-brands { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; padding-top:14px; border-top:1px solid var(--line); }
.device-brand { padding:8px 16px; border:1px solid var(--line); border-radius:999px; background:#fff; font-weight:600; font-size:13px; }
.device-cat[aria-pressed=true] { background:#eaf5fd; border-color:#0b83c6; color:#075684; }
.device-brand[aria-pressed=true] { background:#0b83c6; border-color:#0b83c6; color:#fff; }
.device-cat:hover,.device-brand:hover { border-color:var(--cyan); }
.device-cat:disabled,.device-brand:disabled { opacity:.5; }
.device-models { margin-top:14px; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); }
.device-models .device-choice { min-height:52px; padding:10px 12px; font-size:14px; }
.device-cats ~ .muted { margin-top:14px; }
/* Inventory: one separate box per category (icon, name, item count, stock status) over that category's list. */
.stock-boxes { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:16px; margin-bottom:22px; }
.stock-box { display:flex; flex-direction:column; align-items:center; gap:6px; padding:22px 14px 18px; border:1.5px solid transparent; border-radius:16px; background:#fff; box-shadow:0 2px 12px #0b0d100d; font:inherit; color:var(--text); text-align:center; cursor:pointer; transition:border-color .15s, box-shadow .15s, transform .15s; }
.stock-box svg { width:58px; height:58px; margin-bottom:6px; fill:none; stroke:#0a84d0; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.stock-box svg .bg { fill:#e5f3fd; }
.stock-box svg .dot { fill:#0a84d0; stroke:none; }
.stock-box strong { font-size:16px; font-weight:800; line-height:1.25; }
.stock-box .n { color:#0a84d0; font-size:17px; font-weight:800; }
.stock-box small { font-size:12px; font-weight:600; color:var(--muted); }
.stock-box small .ok { color:#16834a; } .stock-box small .warn { color:#b86e00; } .stock-box small .bad { color:#c62f3a; }
.stock-box:hover { box-shadow:0 6px 20px #0b0d1016; transform:translateY(-1px); }
.stock-box[aria-pressed=true] { border-color:#0a84d0; background:#f3faff; box-shadow:0 0 0 3px #0a84d01f, 0 6px 20px #0b0d1012; }
.stock-box:focus-visible { outline:3px solid #0a84d066; outline-offset:2px; }
.stock-bar h2 { margin:0; font-size:19px; }
@media (prefers-reduced-motion: reduce) { .stock-box { transition:none; } .stock-box:hover { transform:none; } }
/* Stock → Add bulk: one grid row per new part. */
dialog.bulk-dialog { width:min(1000px,calc(100vw - 24px)); max-width:none; }
.bulk-dialog .ed-head .fh { margin:6px 0 0; max-width:640px; }
.bulk-head,.bulk-row { display:grid; grid-template-columns:28px minmax(160px,2fr) minmax(170px,2fr) 92px 92px 40px; gap:8px; align-items:center; }
.bulk-head.costs,.bulk-rows.costs .bulk-row { grid-template-columns:28px minmax(150px,2fr) minmax(160px,2fr) 86px 86px 96px 40px; }
.bulk-head { font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); padding:0 2px; }
.bulk-rows { display:flex; flex-direction:column; gap:8px; }
.bulk-row { padding:6px 2px; border-radius:10px; }
.bulk-row .field { width:100%; min-width:0; }
.bulk-row label { display:block; min-width:0; }
.bulk-l { display:none; }
.bulk-n { font:600 12px var(--f-mono); color:var(--muted); text-align:center; }
.bulk-x { width:36px; padding:6px 0; font-size:18px; line-height:1; }
.bulk-row.bad { background:#fdecee; box-shadow:inset 0 0 0 1.5px #c62f3a66; }
.bulk-more { display:flex; align-items:center; gap:14px; }
/* Inbox: Customer leads | Owners inbox, and the Owners inbox notices. */
.inbox-switch { display:inline-flex; gap:4px; padding:4px; margin-bottom:14px; border:1px solid var(--line); border-radius:999px; background:#f3f6f9; }
.inbox-switch button { padding:8px 16px; border:0; border-radius:999px; background:none; font:inherit; font-weight:700; font-size:13px; color:var(--muted); cursor:pointer; }
.inbox-switch button[aria-pressed=true] { background:#fff; color:#075684; box-shadow:0 1px 6px #0b0d1014; }
.inbox-switch .n { margin-left:6px; font:600 11px var(--f-mono); }
.owner-note { display:block; padding:18px 20px; }
.on-head { display:flex; gap:12px; align-items:center; margin-bottom:12px; }
.on-title { font-weight:800; font-size:16px; }
.on-head .fh { margin:2px 0 0; }
.owner-note .table-wrap { border:1px solid var(--line); border-radius:12px; overflow:auto; }
.on-parts th,.on-parts td { padding:10px 14px; }
.model-search { margin-top:14px; }
.repair-choice { padding:18px; }
.repair-choice strong { font-variant-numeric:tabular-nums; }
.add-mark { background:#eaf5fd; border-radius:50%; width:28px; height:28px; line-height:28px; text-align:center; }
.intake-summary { border-top:3px solid var(--brand-blue); gap:16px; }
.intake-summary h2 { font-size:23px; letter-spacing:-.8px; }
.draft-subtotal strong { font-size:23px; letter-spacing:-.8px; }
.ticket-desk { grid-template-columns:260px minmax(0,1fr); gap:24px; }
.ticket-list { padding:18px; }
.ticket-link { border-radius:12px; background:#fff; }
.ticket-link.selected { background:#edf6fd; border-color:#8cb7d9; }
.ticket-title h2 { font-size:27px; letter-spacing:-.9px; }
.ticket-payment { border-top:3px solid var(--brand-blue); }
.balance { color:var(--text); letter-spacing:-1.8px; font-variant-numeric:tabular-nums; }
/* Owner tools under the bill: this ticket's prices and tax. */
.bill-tools { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 6px; }
.ticket-item small s, .price-line small { color:var(--muted); }
.price-line span { display:flex; gap:6px; align-items:baseline; }
.qty button,.step button,.x,.pad button { background:#f1f4f8; }
.qty button { width:32px; height:32px; }
.flow-error,.err,.gate-err,#customer-dialog .customer-error { color:#a5203b; }
.pending-ticket { background:#fff8e9; }
.customer-directory { overflow:hidden; }
.directory-toolbar { display:flex; align-items:end; gap:20px; padding:24px; border-bottom:1px solid var(--line); }
.directory-toolbar label { flex:1; max-width:440px; display:grid; gap:8px; }
.directory-count { margin-left:auto; color:var(--muted); font-size:12px; padding-bottom:14px; white-space:nowrap; }
table.hud th { background:#f8fafc; border-bottom:1px solid var(--line); padding:15px 18px; }
table.hud td { padding:16px 18px; }
table.hud tr:hover td { background:#f5faff; }
.table-wrap { border-radius:var(--radius); }
.meter { background:#e3e8ef; }
.meter i,.meter.low i { box-shadow:none; }
.svc,.svc.placeholder,.card,.parts-check,.svc-wrap .edit { background:#fff; }
.svc .price { color:var(--text); }
.svc .name { letter-spacing:-.3px; }
.ch-icon,.thread .ai { background:#eef7ff; border-color:#c5dced; }
.thread .who { background:transparent; }
.appt { background:#edf2fc; }

/* An on-demand assistant drawer leaves the full counter workspace available. */
.hana,.app.hana-off .hana {
  position:fixed; grid-area:auto; top:calc(var(--top-h) + 16px); right:16px; bottom:16px;
  width:min(360px,calc(100vw - 32px)); border:1px solid var(--line); border-radius:20px;
  background:#fff; box-shadow:0 20px 70px #0b0d1033; z-index:40;
  transform:translateX(calc(100% + 24px)); visibility:hidden; pointer-events:none;
  transition:transform .2s,visibility .2s;
}
.app.hana-open .hana { transform:none; visibility:visible; pointer-events:auto; }
.hana-head { position:relative; padding:28px 20px 20px; }
.hana-close { position:absolute; top:8px; right:8px; border:0; padding:0; width:30px; min-height:30px; font-size:20px; }
.orb { width:66px; height:66px; background:#0b0d10; border-radius:50%; }
.orb .ring,.orb .core { stroke:var(--brand-blue); }
.orb .core { filter:none; fill:#0a283d; animation:none; }
.orb-label { font-size:9px; letter-spacing:1px; text-shadow:none; }
.hana-title { font-size:20px; letter-spacing:-.7px; }
.hana-title span { font:400 12px var(--f-body); letter-spacing:0; }
.hana-state { font:400 11px var(--f-body); color:var(--muted); }
.hana-quick button { background:#f6f8fa; font:500 12px var(--f-body); text-transform:none; letter-spacing:0; padding:10px; border-radius:999px; }
.hana-feed { padding-top:16px; }
.msg { background:#f6f8fa; line-height:1.65; border:0; border-radius:12px; }
.msg.warn { background:#fff5e5; color:#684710; }
.msg.ok { background:#eef7f1; }
.msg.user { background:#e6f3ff; }
.hana-input input { background:#f7f9fb; font-size:14px; border-radius:999px; }
/* SMART Bot Assist: dark, larger text; bold blue prices; AI replies marked with a blue edge. */
.msg { color:var(--text); font-size:14px; }
.msg .price { color:#0069ab; }
.msg .li::before { background:var(--brand-blue); box-shadow:none; }
.msg.ai { background:#eef7ff; box-shadow:inset 3px 0 0 var(--brand-blue); }
.msg.ai time { color:#0069ab; }
.msg.typing { background:#f6f8fa; }
.msg.typing i { background:var(--brand-blue); box-shadow:none; }
.hana-sound { position:absolute; top:8px; right:44px; margin:0; width:30px; height:30px; border:0; border-radius:50%; background:#f6f8fa; color:#0069ab; }
.hana-sound:hover { background:#edf6fc; }
.hana-sound.muted { color:#8b97a3; }
.hana-input button { background:#0b0d10; color:#fff; border-radius:50%; }
.toast { background:#0b0d10; color:white; border:0; box-shadow:0 8px 28px #0b0d1024; letter-spacing:0; }
dialog.editor { background:#fff; border:1px solid var(--line); border-radius:20px; box-shadow:0 30px 80px #0b0d1033; }
dialog.editor::backdrop { background:#0b0d1066; backdrop-filter:blur(3px); }
.ed-head h2 { text-transform:none; letter-spacing:-.6px; }
.gate { background:#f5f6f8; }
.gate-card { padding:32px; border-radius:24px; box-shadow:0 20px 70px #0b0d100c; }
.gate-brand { letter-spacing:-1px; }
.gate h2 { letter-spacing:-.5px; }
.gate-brand b { color:var(--cyan); }
@media (max-width:1100px) {
  :root { --rail-w:180px; }
  .topbar { padding:0 22px; gap:16px; }
  .sys { margin-left:0; }
  .view { padding:28px 22px; }
  .intake-flow { grid-template-columns:minmax(0,1fr) 260px; gap:16px; }
  .ticket-desk { grid-template-columns:220px minmax(0,1fr); gap:16px; }
  .ticket-title { flex-wrap:wrap; }
}
@media (max-width:900px) {
  .intake-flow { grid-template-columns:1fr; }
  .intake-summary { position:static; }
  .clock { display:none; }
  .ticket-desk { grid-template-columns:1fr; }
  .ticket-links { max-height:220px; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  :root { --top-h:72px; }
  .app,.app.hana-off { grid-template:var(--top-h) minmax(0,1fr) 70px / minmax(0,1fr); grid-template-areas:"top" "view" "rail"; }
  .topbar { padding:0 16px; gap:10px; }
  .brand-name { font-size:19px; letter-spacing:-.7px; }
  .brand-sub { display:block; font-size:8px; letter-spacing:.08em; margin-top:5px; }
  .top-right { gap:8px; }
  .who { display:none; }
  .who:not([hidden]) { display:block; max-width:70px; font-size:11px; padding:6px; border:0; }
  .hana-toggle { padding:9px 10px; font-size:11px; }
  .view { padding:24px 16px 32px; }
  .view-head { margin-bottom:24px; gap:18px; }
  .view-head h1 { font-size:34px; letter-spacing:-1.4px; }
  .view-head h1 small { font-size:13px; }
  .rail { padding:6px; gap:4px; flex-direction:row; justify-content:flex-start; overflow-x:auto; }
  .rail::before,.rail::after,.nav-number { display:none; }
  .rail a { flex:0 0 76px; padding:6px 4px; flex-direction:column; justify-content:center; gap:3px; font-size:10px; border-radius:10px; }
  .rail a svg { display:block; width:18px; height:18px; }
  .rail .badge { position:absolute; right:4px; top:1px; min-width:14px; font-size:8px; line-height:14px; border-radius:4px; }
  .intake-step,.intake-summary,.ticket-section,.ticket-payment,.ticket-title { padding:18px; }
  .step-heading { gap:9px; }
  .step-heading h2 { font-size:17px; }
  .step-heading .btn { padding:8px 12px; font-size:12px; }
  .device-grid,.device-cats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .stock-boxes { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .stock-box { padding:16px 8px 14px; }
  .bulk-head { display:none; }
  .bulk-row,.bulk-rows.costs .bulk-row { grid-template-columns:1fr 1fr; padding:12px 10px; border:1px solid var(--line); position:relative; }
  .bulk-row label:nth-of-type(1),.bulk-row label:nth-of-type(2) { grid-column:1 / -1; }
  .bulk-l { display:block; font-size:11px; font-weight:700; color:var(--muted); margin-bottom:3px; }
  .bulk-n { position:absolute; top:8px; right:48px; }
  .bulk-x { position:absolute; top:4px; right:4px; }
  .bulk-row label:nth-of-type(1) { padding-right:70px; }
  .stock-box svg { width:44px; height:44px; }
  .stock-box strong { font-size:14px; }
  .stock-box .n { font-size:15px; }
  .directory-toolbar { padding:18px; flex-wrap:wrap; gap:10px; }
  .directory-toolbar label { flex-basis:100%; }
  .directory-count { margin:0; padding:0; }
  .hana,.app.hana-off .hana { top:calc(var(--top-h) + 8px); right:8px; bottom:78px; width:calc(100vw - 16px); }
  .toast { bottom:86px; max-width:calc(100vw - 24px); }
}
@media (max-width:360px) { .who:not([hidden]) { max-width:48px; } .brand-name { font-size:17px; } }

/* SMART Bot (formerly HANA): the robot in the top-bar button and inside the panel's rings */
.mini-bot { width:24px; height:24px; object-fit:contain; flex:none; }
.orb-label img { width:60px; height:60px; object-fit:contain; }
.hana-quick button[hidden] { display:none; }
.msg-links { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.msg-links a, .msg-links button { font:600 12px var(--f-body); padding:6px 10px; border-radius:999px; border:1px solid #cfd8e3; background:#fff; color:#0b0d10; cursor:pointer; text-decoration:none; }
.msg-links a:hover, .msg-links button:hover { border-color:var(--cyan); color:var(--cyan); }

/* SMART Repair logo (assets/smart-repair-logo.png) */
.brand-mark { display:block; height:30px; width:auto; }
.gate-brand img { height:30px; width:auto; }
.gate-brand b { font:700 13px var(--f-mono); letter-spacing:.14em; color:var(--brand-blue); border:1px solid currentColor; border-radius:6px; padding:3px 7px; margin-left:4px; }
@media (max-width:760px) { .brand-mark { height:22px; } }
@media (max-width:360px) { .brand-mark { height:18px; } }

/* Store switch (Hamilton / Whitehall) in the top bar */
.store-switch { flex-shrink:0; display:inline-flex; gap:2px; padding:3px; border:1px solid var(--line); border-radius:999px; background:#f3f6f9; justify-self:start; }
.store-switch[hidden] { display:none; }
.store-switch button { border:0; background:none; padding:7px 14px; border-radius:999px; font:600 13px var(--f-body, inherit); color:var(--muted); cursor:pointer; }
.store-switch button[aria-pressed=true] { background:#0b83c6; color:#fff; box-shadow:0 1px 3px rgb(11 131 198 / .35); }
.store-switch button:not([aria-pressed=true]):hover { color:var(--text); background:#e6eef5; }
.store-switch.busy { opacity:.6; pointer-events:none; }
@media (max-width: 760px) {
  /* Phones: the switch gets its own full-width row under the logo. */
  .app:has(.store-switch:not([hidden])) { --top-h:118px; }
  .topbar:has(.store-switch:not([hidden])) { flex-wrap:wrap; align-content:center; row-gap:10px; padding-top:8px; padding-bottom:8px; }
  .store-switch { order:9; flex-basis:100%; }
  .topbar:has(.store-switch:not([hidden])) .sys { display:none; }
  .topbar:has(.store-switch:not([hidden])) .brand { flex:1 1 0; min-width:0; }
  .topbar:has(.store-switch:not([hidden])) .brand-mark { max-width:100%; height:auto; }
  .topbar:has(.store-switch:not([hidden])) .top-right { flex-shrink:0; }
  .store-switch button { flex:1; padding:8px 10px; font-size:13px; }
}

/* Paid tickets: one tap to mark the repair completed (status Collected). */
.btn.quick-checkout { width:100%; justify-content:center; margin:6px 0 2px; background:#16a34a; border-color:#15803d; color:#fff; font-weight:700; }
.btn.quick-checkout:hover { background:#15803d; }
.btn.complete { width:100%; justify-content:center; background:#16a34a; border-color:#15803d; color:#fff; font-weight:700; font-size:15px; padding:14px; margin:4px 0 6px; }
.btn.complete:hover { background:#15803d; }
.cancelled-note { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:14px 16px; margin-bottom:12px; background:#fff5f5; border-color:#f1c4bf; }
.cancelled-note strong { color:#a52740; }
.cancelled-note p { margin:2px 0 0; color:#6b4b50; font-size:13px; }
.btn.cancel-ticket { width:100%; justify-content:center; margin-top:10px; }
.btn.danger-fill { background:#b42318; border-color:#b42318; color:#fff; }
.btn.danger-fill:hover { background:#912018; }
fieldset.plain { border:0; padding:0; margin:0; min-width:0; }
.completed-note { margin:4px 0 10px; padding:12px; border-radius:12px; background:#edf7f0; border:1px solid #b9dbc5; color:#1f6b3d; font-weight:700; text-align:center; }

/* Stock: parts with no count yet show ∞ */
.meter.unlimited i { background:#c9d6e2; }
.infinite { font-size:18px; line-height:1; color:#0b83c6; }

/* Customers: block / delete, and the Deleted & blocked section */
.customer-danger { margin-left:auto; display:flex; gap:8px; }
.btn.danger { color:#b42318; border-color:#f1c4bf; }
.btn.danger:hover { background:#fdecea; border-color:#e5978f; }
.customer-flag { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:10px 12px; border-radius:12px; margin:0 0 14px; font-weight:600; background:#fdecea; border:1px solid #f1c4bf; color:#8a1c12; }
.customer-flag.deleted { background:#f3f5f8; border-color:#d8dee6; color:#3f4a56; }
.customers-removed { margin-top:18px; }
.customers-removed h2 { font-size:17px; margin:0; }
.removed-help { padding:0 18px; margin:0 0 6px; font-size:13px; }
.removed-actions { display:flex; gap:8px; justify-content:flex-end; }
.customer-result.blocked { opacity:.6; cursor:not-allowed; }

/* Team: online light */
.member-name { display:flex; align-items:center; gap:8px; }
.presence { width:10px; height:10px; border-radius:50%; background:#c4ccd5; flex:0 0 10px; }
.presence.on { background:#16a34a; box-shadow:0 0 0 3px rgb(22 163 74 / .18), 0 0 8px rgb(22 163 74 / .6); }
.presence-text { display:block; margin:3px 0 0 18px; font-size:12px; color:var(--muted); }
.presence-text.on { color:#15803d; font-weight:600; }

/* Developer screen */
.dev-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; margin-bottom:16px; }
.dev-kv { display:flex; justify-content:space-between; gap:12px; padding:7px 0; border-bottom:1px solid var(--line); font-size:13px; }
.dev-kv span { color:var(--muted); }
.dev-kv b { font-variant-numeric:tabular-nums; text-align:right; overflow-wrap:anywhere; }
/* Developer → SMART Bot training */
.bot-train { margin-bottom:16px; }
.bot-train > .fh { margin:6px 0 12px; max-width:760px; }
.bot-grid { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:28px; }
.bot-key { display:flex; gap:8px; margin:12px 0 4px; }
.bot-key .field { flex:1; min-width:0; }
.bot-check { display:flex; align-items:center; gap:10px; margin:12px 0 0; font-weight:600; font-size:14px; }
.bot-check input { width:18px; height:18px; accent-color:#0069ab; }
.bot-field { display:grid; gap:6px; margin-top:14px; font-size:13px; font-weight:600; color:var(--muted); }
.bot-field textarea { font:14px/1.55 var(--f-body); color:var(--text); min-height:220px; }
.bot-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; }
.bot-ask { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; margin-top:22px; align-items:end; }
.bot-ask .kicker, .bot-ask input { grid-column:1/-1; }
.bot-test { display:grid; gap:10px; margin-top:12px; }
.bot-test > div { padding:12px 14px; border-radius:12px; background:#f6f8fa; }
.bot-test > div:last-child { background:#eef7ff; box-shadow:inset 3px 0 0 var(--brand-blue); }
.bot-test p { margin:6px 0 0; white-space:pre-line; font-size:14px; line-height:1.55; }
.ok-note { color:#207344 !important; font-weight:600; }
@media (max-width:900px) { .bot-grid { grid-template-columns:1fr; } }
.dev-log { max-height:420px; overflow:auto; margin:10px 0 0; padding:14px; border-radius:12px; background:#0d1520; color:#cfe3f4; font:12px/1.55 var(--f-mono, ui-monospace, monospace); white-space:pre-wrap; }
/* Reports → customer → history */
.link-btn { background:none; border:0; padding:0; font:inherit; color:#0a6fd6; cursor:pointer; text-decoration:underline; text-decoration-style:dotted; text-underline-offset:3px; }
.link-btn:hover { color:#0757a8; text-decoration-style:solid; }
.history-ticket, .history-sale { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; padding:12px 0; border:0; border-bottom:1px solid var(--line); background:none; text-align:left; font:inherit; color:inherit; }
.history-ticket { cursor:pointer; border-radius:8px; }
.history-ticket:hover { background:#f3f8fd; }
.history-ticket span, .history-sale span { display:flex; flex-direction:column; gap:2px; min-width:0; }
.history-ticket small, .history-sale small { color:var(--muted); }
.history-amount { align-items:flex-end; font-weight:700; flex:none; }
.history-ticket-wrap { border-bottom:1px solid var(--line); }
.history-ticket-wrap .history-ticket { border-bottom:0; }
.history-ticket[aria-expanded="true"] { background:#f3f8fd; }
.ticket-preview { margin:0 0 14px; padding:14px 16px; border:1px solid #d7e6f3; border-radius:12px; background:#fbfdff; }
.ticket-preview h4 { margin:14px 0 6px; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.preview-grid { display:grid; gap:2px; }
.preview-row { display:flex; justify-content:space-between; gap:12px; padding:4px 0; }
.preview-grid .preview-row > span:first-child { color:var(--muted); }
.preview-total { border-top:1px solid var(--line); margin-top:4px; padding-top:8px; font-weight:700; }
.preview-text { margin:0; white-space:pre-wrap; }
.ticket-preview .btn { margin-top:12px; }
.ticket-preview p.muted { margin:0; }
/* Customer profile → problem reported & repair notes per ticket */
.repair-note-card { padding:12px 0; border-bottom:1px solid var(--line); }
.repair-note-head { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; }
.repair-note-head small { color:var(--muted); }
.repair-note-head .btn { margin-left:auto; }
.repair-note { margin-top:8px; }
.repair-note > span { display:block; font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
.repair-note p { margin:2px 0 0; }
/* Customer profile → Developer (developers only) */
.dev-box { margin-top:18px; padding:12px 16px; border:1px dashed #b9c6d3; border-radius:12px; background:#f7f9fb; }
.dev-box h3 { margin-top:0; }
.dev-box .preview-row > span:first-child { color:var(--muted); }
/* Reports → Day: the day's sales list. */
.daily-list { margin-top:16px; }
.daily-list .daily-time { white-space:nowrap; }
.daily-list td .fh { margin:3px 0 0; }
.daily-list tfoot td { border-top:1px solid var(--line); padding:14px 18px; }
.daily-list .link-btn { text-align:left; }
.daily-sub { margin:26px 0 4px; font-size:19px; display:flex; align-items:center; gap:8px; }
.daily-sub .n { font:600 12px var(--f-mono); color:var(--muted); }
.report-acts { display:flex; gap:8px; flex-wrap:wrap; }
