/* ============================================================================
   Admin panel — design system
   Idea: a kitchen "pass". A dark steel rail on the left, clean white work area, and order tickets with a thick
   coloured status spine so the state of every order reads from across the counter.
   Colours come from Website → Admin panel look (variables below are overwritten by app.js → A.theme).
   ============================================================================ */
:root {
  --p: #e2462c; --pt: #fff; --hd: #fff; --hdt: #16202b; --nav: #16202b; --navt: #b9c3cf; --dk: #16202b;
  --bg: #e9edf1; --c: #fff; --t: #16202b; --mu: #5f6b7a; --b: #d6dde5; --in: #fff; --int: #16202b; --btn: #fff; --btnt: #16202b;
  --ok: #13834a; --bad: #d42a2a; --warn: #b8660b; --info: #1f62c9; --sf: #eef2f6; --late: #fff0ec; --rd: 12px; --fs: 15px;
  --side: 252px; --navh: #fff; --sh: 0 1px 2px rgba(22, 32, 43, .06), 0 2px 8px rgba(22, 32, 43, .04);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
html.dark { color-scheme: dark; --sh: 0 1px 2px rgba(0, 0, 0, .4); --warn: #f0a24a; --info: #6aa5ff; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.nos { overflow: hidden; }
body { margin: 0; font: 400 var(--fs)/1.5 var(--font); color: var(--t); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--info); }
h1, h2, h3, h4 { color: var(--dk); line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.45em; } h3 { font-size: 1.08em; } h4 { font-size: .98em; margin: 1.3em 0 .55em; }
p { margin: 0 0 .7em; }
code { font-size: .88em; background: var(--sf); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
small { font-size: .84em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--p) 55%, transparent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------------------------------------------------------------- text helpers */
.mu { color: var(--mu); } .sm { font-size: .86em; } .lg { font-size: 1.15em; }
.err { color: var(--bad); font-weight: 600; } .bad { color: var(--bad); } .okc { color: var(--ok); }
.sp { flex: 1; } .nw { white-space: nowrap; } .pad { padding: 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; } .stack > button:not(.big) { align-self: flex-start; }
.two, .three { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.three { grid-template-columns: repeat(3, 1fr); }
.narrow { max-width: 680px; }
@media (max-width: 640px) { .two, .three { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- buttons */
button, .btn { font: inherit; font-weight: 600; font-size: .93em; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 14px;
  border: 1px solid var(--b); border-radius: calc(var(--rd) - 2px); background: var(--btn); color: var(--btnt); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
button:hover, .btn:hover { border-color: color-mix(in srgb, var(--t) 30%, var(--b)); }
button:active, .btn:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.pri, .btn.pri { background: var(--p); color: var(--pt); border-color: var(--p); }
button.pri:hover, .btn.pri:hover { background: color-mix(in srgb, var(--p) 88%, #000); }
button.pri.ok, button.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
button.bad:not(.ghost) { background: var(--bad); border-color: var(--bad); color: #fff; }
button.ghost { background: transparent; } button.ghost.bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--b)); }
button.big, .btn.big { min-height: 50px; font-size: 1.02em; width: 100%; }
button.lnk { background: none; border: 0; min-height: 0; padding: 2px 0; color: var(--info); font-weight: 600; }
.icb { min-width: 40px; padding: 6px 10px; } .icb.on { background: var(--sf); border-color: var(--dk); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tg { min-width: 108px; } .tg.on { background: color-mix(in srgb, var(--ok) 10%, var(--c)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--b)); }
.tg.off { background: color-mix(in srgb, var(--bad) 8%, var(--c)); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--b)); }
.sbar { position: sticky; bottom: 0; padding: 12px 0 4px; margin-top: 14px; background: linear-gradient(transparent, var(--c) 30%); display: flex; gap: 8px; justify-content: flex-end; z-index: 2; }

/* ---------------------------------------------------------------- form fields */
input, select, textarea { font: inherit; color: var(--int); background: var(--in); border: 1px solid var(--b); border-radius: calc(var(--rd) - 4px); padding: 9px 11px; min-height: 42px; width: 100%; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p) 18%, transparent); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--p); flex: none; }
input[type=color] { width: 40px; height: 34px; padding: 2px; min-height: 0; cursor: pointer; flex: none; }
input[type=range] { padding: 0; min-height: 28px; border: 0; background: none; accent-color: var(--p); box-shadow: none; }
input[type=search] { -webkit-appearance: none; appearance: none; }
.fl { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fl > span:not(.afx) { font-weight: 600; font-size: .88em; color: var(--t); display: flex; flex-direction: column; }
.fl > span:not(.afx) small { font-weight: 400; color: var(--mu); }
.fl.rg b { color: var(--p); }
.afx { display: flex; flex-direction: row; align-items: stretch; min-width: 0; } .afx input { flex: 1; min-width: 0; } .afx i { font-style: normal; display: flex; align-items: center; padding: 0 10px; background: var(--sf); border: 1px solid var(--b); color: var(--mu); font-weight: 600; }
.afx i:first-child { border-radius: calc(var(--rd) - 4px) 0 0 calc(var(--rd) - 4px); border-right: 0; } .afx i:last-child { border-radius: 0 calc(var(--rd) - 4px) calc(var(--rd) - 4px) 0; border-left: 0; }
.afx input { border-radius: 0; } .afx i:first-child + input:last-child { border-radius: 0 calc(var(--rd) - 4px) calc(var(--rd) - 4px) 0; } .afx input:first-child { border-radius: calc(var(--rd) - 4px) 0 0 calc(var(--rd) - 4px); }
/* switch: label on the left, toggle on the right */
.sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; cursor: pointer; border-bottom: 1px dashed var(--b); }
.sw > span { display: flex; flex-direction: column; font-weight: 500; } .sw > span small { color: var(--mu); font-weight: 400; }
.sw input { -webkit-appearance: none; appearance: none; width: 46px; height: 26px; border-radius: 99px; background: color-mix(in srgb, var(--mu) 40%, var(--b)); border: 0; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.sw input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.sw input:checked { background: var(--ok); } .sw input:checked::after { transform: translateX(20px); }
.sw input:disabled { opacity: .5; }
.tick { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; cursor: pointer; margin-right: 12px; }
.inl { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; } .inl > input, .inl > .fl { flex: 1; min-width: 160px; }
.lbl { font-weight: 600; font-size: .88em; margin-right: 6px; }
.chk3, .dietw { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; } .chk3 .sw { flex: 1; min-width: 180px; }
.col { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border: 1px solid var(--b); border-radius: calc(var(--rd) - 4px); background: var(--c); font-size: .88em; }
.col span { flex: 1; display: flex; flex-direction: column; } .col .aut { font-style: normal; font-size: .78em; color: var(--mu); display: none; }
.col input[data-auto="1"] ~ span .aut { display: inline; } .col .icb { min-width: 30px; min-height: 30px; padding: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.cgrp { margin-top: 10px; } .cgrp > small { display: block; font-weight: 700; color: var(--mu); margin-bottom: 6px; }
.key { text-align: center; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 1.05em; }

/* ---------------------------------------------------------------- cards, chips, badges, notes */
.card { background: var(--c); border: 1px solid var(--b); border-radius: var(--rd); padding: 16px; box-shadow: var(--sh); margin-bottom: 14px; min-width: 0; }
.card.off { opacity: .62; }
.ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ch h3 { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card .sub { margin-top: -4px; font-size: .88em; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.cards > .card { margin: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; } .chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips button { border-radius: 99px; min-height: 36px; padding: 6px 14px; background: var(--c); font-weight: 600; flex: none; }
.chips button.on { background: var(--dk); color: var(--c); border-color: var(--dk); }
.chips em { font-style: normal; font-size: .8em; background: color-mix(in srgb, currentColor 14%, transparent); border-radius: 99px; padding: 0 7px; margin-left: 2px; }
.bdg { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .8em; font-weight: 600; background: var(--sf); color: var(--t); border: 1px solid var(--b); white-space: nowrap; vertical-align: middle; }
.bdg.sm { font-size: .72em; padding: 1px 7px; }
.bdg.ok { background: color-mix(in srgb, var(--ok) 12%, var(--c)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.bdg.bad { background: color-mix(in srgb, var(--bad) 10%, var(--c)); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.bdg.warn { background: color-mix(in srgb, var(--warn) 13%, var(--c)); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.bdg.info { background: color-mix(in srgb, var(--info) 10%, var(--c)); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.bdg.mu { color: var(--mu); }
.note { padding: 11px 14px; border-radius: calc(var(--rd) - 2px); background: var(--sf); border: 1px solid var(--b); margin-bottom: 12px; font-size: .92em; }
.note.warn { background: color-mix(in srgb, var(--warn) 10%, var(--c)); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.note.info { background: color-mix(in srgb, var(--info) 7%, var(--c)); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.empty { text-align: center; padding: 44px 16px; color: var(--mu); grid-column: 1 / -1; } .empty > div { font-size: 2.4em; margin-bottom: 6px; } .empty p { max-width: 420px; margin: 0 auto 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-weight: 700; font-size: .84em; }
.pill.ok, .pill.on { background: color-mix(in srgb, var(--ok) 14%, var(--c)); color: var(--ok); } .pill.bad, .pill.off { background: color-mix(in srgb, var(--bad) 12%, var(--c)); color: var(--bad); }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 6px 0; }
.row + .row { border-top: 1px solid color-mix(in srgb, var(--b) 60%, transparent); } .row.sm { font-size: .88em; padding: 3px 0; border: 0; }
.row.tot { border-top: 2px solid var(--dk) !important; margin-top: 4px; padding-top: 8px; font-size: 1.05em; }
.mtop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.mtop input[type=search], .mtop > select { max-width: 340px; flex: 1; min-width: 180px; }
.mtop h3 { margin: 0; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; } .pager .mu { margin-right: auto; }
.tbl { overflow-x: auto; border: 1px solid var(--b); border-radius: calc(var(--rd) - 2px); background: var(--c); }
.tbl table { width: 100%; border-collapse: collapse; font-size: .92em; }
.tbl th { text-align: left; font-size: .8em; color: var(--mu); font-weight: 700; padding: 10px 12px; background: var(--sf); border-bottom: 1px solid var(--b); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--b) 60%, transparent); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; } .tbl tr[data-a] { cursor: pointer; } .tbl tr[data-a]:hover td { background: var(--sf); }
.card .tbl { border: 0; }
.tips { margin: 0; padding-left: 18px; } .tips li { margin-bottom: 6px; }
.steps { padding-left: 22px; } .steps li { margin-bottom: 6px; }
details summary { cursor: pointer; font-weight: 600; } details.wopt { border: 1px dashed var(--b); border-radius: calc(var(--rd) - 2px); padding: 10px 12px; }
.dayh { margin: 18px 0 10px; display: flex; gap: 10px; align-items: baseline; }

/* KPI strip: a single line of numbers, separated by rules (not cards) */
.kpis { display: flex; flex-wrap: wrap; background: var(--c); border: 1px solid var(--b); border-radius: var(--rd); box-shadow: var(--sh); margin-bottom: 14px; overflow: hidden; }
.kpis > div { flex: 1 1 140px; padding: 12px 16px; display: flex; flex-direction: column; border-right: 1px solid var(--b); min-width: 0; }
.kpis > div:last-child { border-right: 0; }
.kpis small { color: var(--mu); font-weight: 600; font-size: .78em; } .kpis b { font-size: 1.45em; font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--dk); line-height: 1.2; }
.kpis em { font-style: normal; color: var(--mu); font-size: .8em; }
.kpis .hot { background: color-mix(in srgb, var(--p) 9%, var(--c)); } .kpis .hot b { color: var(--p); }
.kpis.big b { font-size: 1.7em; } .kpis.sm b { font-size: 1.15em; } .kpis.sm > div { padding: 8px 12px; flex-basis: 100px; }
@media (max-width: 640px) { .kpis > div { flex-basis: 50%; border-bottom: 1px solid var(--b); } }

/* chart */
.chart { overflow-x: auto; } .chart svg { display: block; width: 100%; height: auto; max-height: 220px; } .chart .base { stroke: var(--b); }
.chart .bar { fill: var(--p); opacity: .85; } .chart .bar:hover { opacity: 1; } .chart text { font-size: 10px; fill: var(--mu); }

/* ---------------------------------------------------------------- the frame: steel rail + work area */
.boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--mu); }
.spin { width: 34px; height: 34px; border: 3px solid var(--b); border-top-color: var(--p); border-radius: 50%; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--nav); color: var(--navt); display: flex; flex-direction: column; z-index: 40; border-right: 1px solid color-mix(in srgb, var(--navt) 14%, transparent); }
.brand { display: flex; gap: 11px; align-items: center; padding: 18px 16px 14px; }
.brand img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; background: #fff; flex: none; }
.brand b { display: block; color: var(--navh); font-size: 1.02em; line-height: 1.2; }
.brand small { color: var(--navt); opacity: .8; }
.snav { flex: 1; overflow-y: auto; padding: 4px 10px; scrollbar-width: thin; }
.sni { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: var(--navt); text-decoration: none; margin-bottom: 1px; position: relative; font-size: .95em; }
.sni span { width: 22px; text-align: center; font-size: 1.05em; } .sni b { font-weight: 500; flex: 1; }
.sni:hover { background: color-mix(in srgb, var(--navt) 10%, transparent); }
.sni.on { background: color-mix(in srgb, var(--navt) 16%, transparent); color: var(--navh); } .sni.on b { font-weight: 700; }
.sni.on::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--p); }
.nb { font-style: normal; background: var(--p); color: var(--pt); font-size: .72em; font-weight: 800; border-radius: 99px; padding: 1px 7px; min-width: 20px; text-align: center; }
.sfoot { padding: 10px; border-top: 1px solid color-mix(in srgb, var(--navt) 14%, transparent); } .ver { display: block; text-align: center; opacity: .5; margin-top: 4px; }
.mainw { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.tbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 22px; background: color-mix(in srgb, var(--hd) 92%, transparent); color: var(--hdt); border-bottom: 1px solid var(--b); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); min-height: 60px; }
.tbar h1 { font-size: 1.2em; margin: 0; color: var(--hdt); }
.tbar .icb { background: transparent; color: var(--hdt); }
.bsel { width: auto; max-width: 240px; min-height: 38px; font-weight: 600; }
#sndb.need { animation: pulse 1s ease-in-out infinite; border-color: var(--p); color: var(--p); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--p) 25%, transparent); } }
#openw .pill { cursor: pointer; border: 1px solid currentColor; }
.pg { padding: 20px 22px 40px; width: 100%; max-width: 1480px; }
.mob { display: none; } .bnav, .shade2 { display: none; }
.bnr { padding: 10px 22px; font-weight: 600; font-size: .92em; } .bnr.warn { background: color-mix(in srgb, var(--warn) 14%, var(--c)); color: var(--t); border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
body.ringing .tbar { box-shadow: inset 0 -3px 0 var(--p); }
@media (max-width: 900px) {
  .side { transform: translateX(-102%); transition: transform .22s ease; width: min(84vw, 300px); box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  body.sideon .side { transform: none; } body.sideon .shade2 { display: block; position: fixed; inset: 0; background: rgba(10, 15, 20, .45); z-index: 35; }
  .mainw { margin-left: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); } .mob { display: inline-flex; }
  .tbar { padding: 8px 12px; gap: 8px; } .tbar h1 { font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bsel { max-width: 140px; font-size: .88em; }
  .pg { padding: 14px 12px 30px; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--c); border-top: 1px solid var(--b); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 7px 2px 6px; text-decoration: none; color: var(--mu); font-size: .72em; position: relative; }
  .bnav a span { font-size: 1.45em; line-height: 1.2; } .bnav a b { font-weight: 600; } .bnav a.on { color: var(--p); }
  .bnav .nb { position: absolute; top: 3px; left: calc(50% + 6px); }
  .bnr { padding: 9px 12px; }
}

/* ---------------------------------------------------------------- modal, toast */
.mdl { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 15, 20, 0); transition: background .18s; }
.mdl.on { background: rgba(10, 15, 20, .5); }
.mdb { background: var(--c); color: var(--t); border-radius: calc(var(--rd) + 4px); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); transform: translateY(12px) scale(.98); opacity: 0; transition: transform .18s, opacity .18s; }
.mdl.on .mdb { transform: none; opacity: 1; }
.mdl.wide .mdb { max-width: 900px; } .mdl.full .mdb { max-width: 1200px; height: calc(100vh - 32px); }
.mdh { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px 20px; } .mdh b { flex: 1; font-size: 1.1em; color: var(--dk); } .mdh .icb { border: 0; }
.mdc { padding: 4px 20px 18px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.mdf { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--b); background: var(--sf); border-radius: 0 0 calc(var(--rd) + 4px) calc(var(--rd) + 4px); }
.cfm { font-size: 1.05em; font-weight: 500; margin: 6px 0; }
@media (max-width: 640px) { .mdl { align-items: flex-end; padding: 0; } .mdb, .mdl.full .mdb { max-height: 94vh; border-radius: 18px 18px 0 0; height: auto; } .mdl.full .mdb { height: 94vh; } .mdf { border-radius: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); } .mdf button { flex: 1; } }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--dk); color: var(--c); padding: 11px 18px; border-radius: 12px; font-weight: 600; z-index: 200; opacity: 0; pointer-events: none; transition: .2s; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { #toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ---------------------------------------------------------------- login & setup */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(1200px 500px at 50% -10%, color-mix(in srgb, var(--p) 14%, var(--bg)), var(--bg)); }
.authc { background: var(--c); border: 1px solid var(--b); border-radius: 20px; padding: 28px 26px; width: 100%; max-width: 440px; box-shadow: 0 20px 50px rgba(22, 32, 43, .12); }
.authc.wide { max-width: 620px; }
.authc h2 { margin-top: 6px; } .alogo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; display: block; margin-bottom: 10px; }
.step { color: var(--p); font-weight: 700; font-size: .84em; margin: 0; }
.apw { color: var(--mu); font-size: .8em; margin-top: 16px; }
.ownote { font-size: .88em; } .sep { border: 0; border-top: 1px solid var(--b); margin: 16px 0; }

/* ---------------------------------------------------------------- orders: tickets with a status spine */
.obar { margin-bottom: 6px; }
.otools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .otools input { flex: 1; min-width: 200px; max-width: 420px; }
.ogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.oc { --sp: var(--mu); background: var(--c); border: 1px solid var(--b); border-left: 6px solid var(--sp); border-radius: var(--rd); padding: 14px 14px 12px 15px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.oc.new { --sp: var(--p); box-shadow: 0 0 0 1px color-mix(in srgb, var(--p) 35%, transparent), 0 8px 22px color-mix(in srgb, var(--p) 16%, transparent); }
.oc.late { background: var(--late); animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 92% { transform: translateX(-3px); } 96% { transform: translateX(3px); } }
.oc.k { --sp: #e08a0b; } .oc.o { --sp: var(--info); } .oc.d { --sp: var(--ok); } .oc.unp { --sp: #8a94a3; opacity: .82; }
.och { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.och h3 { margin: 0; font-size: 1.12em; } .och h3 a { color: var(--dk); text-decoration: none; font-variant-numeric: tabular-nums; }
.st { font-size: .76em; font-weight: 800; padding: 3px 9px; border-radius: 6px; white-space: nowrap; background: var(--sf); color: var(--mu); }
.st.s-Pending, .st.s-Modified { background: var(--p); color: var(--pt); } .st.s-Confirmed, .st.s-Preparing { background: color-mix(in srgb, #e08a0b 16%, var(--c)); color: #a85f00; }
.st.s-Ready, .st.s-Outfordelivery { background: color-mix(in srgb, var(--info) 13%, var(--c)); color: var(--info); }
.st.s-Delivered, .st.s-Completed { background: color-mix(in srgb, var(--ok) 13%, var(--c)); color: var(--ok); } .st.s-Rejected, .st.s-Expired { background: color-mix(in srgb, var(--bad) 11%, var(--c)); color: var(--bad); }
html.dark .st.s-Confirmed, html.dark .st.s-Preparing { color: #f0a24a; }
.ocm { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .85em; color: var(--mu); } .ocm .lt { color: var(--bad); font-weight: 700; }
.src { font-weight: 600; color: var(--t); }
.sched { background: color-mix(in srgb, var(--info) 9%, var(--c)); border-radius: 8px; padding: 6px 10px; font-size: .9em; }
.oit { background: var(--sf); border-radius: 9px; padding: 6px 11px; font-size: .94em; }
.oit .q { display: flex; gap: 4px; } .oit .q button { min-height: 30px; min-width: 32px; padding: 0; }
.nt { color: var(--warn); font-weight: 500; } .fees { border-top: 1px dashed var(--b); margin-top: 4px; padding-top: 3px; }
.ocp { display: flex; flex-wrap: wrap; gap: 6px; }
.onote, .snote { font-size: .9em; padding: 7px 10px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 11%, var(--c)); }
.snote { background: var(--sf); border: 1px dashed var(--b); }
.oad { font-size: .88em; display: flex; flex-wrap: wrap; gap: 4px 14px; } .oad a { font-weight: 600; text-decoration: none; } .gps { color: var(--ok); font-size: .85em; }
.oac { display: flex; flex-wrap: wrap; gap: 8px; } .oac button { flex: 1 1 auto; } .oac button.pri { flex: 2 1 60%; min-height: 46px; font-size: 1em; }
.wab { display: flex; align-items: center; justify-content: center; gap: 8px; background: #1fae54; color: #fff; text-decoration: none; font-weight: 700; padding: 11px; border-radius: calc(var(--rd) - 2px); font-size: .92em; }
.wab:hover { background: #17964a; }
.odet { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; } .ocust { background: var(--sf); border-radius: var(--rd); padding: 14px; align-self: start; }
@media (max-width: 760px) { .odet { grid-template-columns: 1fr; } }
.htools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; } .htools input, .htools select { width: auto; flex: 1; min-width: 140px; }
.opr { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--b); flex-wrap: wrap; } .opr small { display: block; }
.seg { display: inline-flex; background: var(--sf); border: 1px solid var(--b); border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; min-height: 34px; padding: 5px 12px; } .seg button.on { background: var(--c); box-shadow: var(--sh); color: var(--dk); }
.seg.w { display: flex; margin: 10px 0; } .seg.w button { flex: 1; }

/* ---------------------------------------------------------------- POS + kitchen */
.pos { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.postools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; } .postools input { max-width: 360px; } .postools .qtyentry { display:flex; align-items:center; gap:5px; font-size:.86rem; color:var(--mu); } .postools .qtyentry input { width:84px; min-width:84px; padding:7px; } .pos-instructions { display:flex; gap:4px; flex-wrap:wrap; margin:5px 0; } .pos-instructions button { min-height:24px; padding:2px 6px; font-size:.72rem; border-radius:6px; }
.posg { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pi { flex-direction: column; align-items: stretch; justify-content: flex-start; text-align: left; white-space: normal; padding: 0; overflow: hidden; min-height: 92px; background: var(--c); position: relative; }
.pi img { width: 100%; height: 84px; object-fit: cover; } .pi b { padding: 8px 10px 0; font-weight: 600; line-height: 1.3; } .pi span { padding: 2px 10px 10px; color: var(--mu); font-variant-numeric: tabular-nums; }
.pi em { position: absolute; top: 6px; right: 6px; background: var(--bad); color: #fff; font-style: normal; font-size: .72em; padding: 1px 7px; border-radius: 99px; }
.pi:hover:not(:disabled) { border-color: var(--p); }
.posc { position: sticky; top: 76px; background: var(--c); border: 1px solid var(--b); border-radius: var(--rd); padding: 16px; box-shadow: var(--sh); max-height: calc(100vh - 92px); overflow-y: auto; }
.qty { display: inline-flex; align-items: center; gap: 6px; } .qty button { min-width: 32px; min-height: 32px; padding: 0; } .qty b { min-width: 18px; text-align: center; }
.bill { margin: 12px 0; padding: 10px 12px; background: var(--sf); border-radius: 9px; } .bill:empty { display: none; }
.optl { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 14px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--b); border-radius: 9px; cursor: pointer; } .opt span { flex: 1; } .opt em { font-style: normal; color: var(--mu); }
.opt:has(input:checked) { border-color: var(--p); background: color-mix(in srgb, var(--p) 6%, var(--c)); }
@media (max-width: 1000px) { .pos { grid-template-columns: 1fr; } .posc { position: static; max-height: none; } }
.kds { min-height: calc(100vh - 120px); }
.kbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-size: 1.1em; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; align-items: start; }
.kt { background: var(--c); border: 1px solid var(--b); border-top: 8px solid var(--ok); border-radius: var(--rd); box-shadow: var(--sh); display: flex; flex-direction: column; }
.kt.k2 { border-top-color: #e08a0b; } .kt.k3 { border-top-color: var(--bad); } .kt.ks-Ready { opacity: .65; }
.kt header { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px 8px; } .kt header b { font-size: 1.5em; font-variant-numeric: tabular-nums; } .kt header span { flex: 1; color: var(--mu); }
.kt header em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; } .kt.k3 header em { color: var(--bad); }
.kt ul { list-style: none; margin: 0; padding: 0 14px; font-size: 1.12em; } .kt li { padding: 7px 0; border-bottom: 1px dashed var(--b); } .kt li small { display: block; color: var(--warn); font-weight: 600; font-size: .82em; }
.kt .kn { margin: 10px 14px 0; padding: 7px 10px; background: color-mix(in srgb, var(--warn) 12%, var(--c)); border-radius: 8px; font-weight: 600; }
.kt footer .icb { flex: none; min-width: 50px; } .kbar select { width: auto; min-height: 38px; } .stn { border: 1px solid var(--b); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; } .stn .chk3 { margin-top: 6px; }
.kt .sched { margin: 0 14px 6px; } .kt footer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-top: auto; } .kt footer button { flex: 1; min-height: 50px; font-size: 1.05em; }
:fullscreen .kds { padding: 16px; background: var(--bg); }

/* ---------------------------------------------------------------- menu */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.ccard { display: flex; gap: 10px; align-items: center; border: 1px solid var(--b); border-radius: calc(var(--rd) - 2px); padding: 8px; }
.ph { width: 64px; height: 64px; padding: 0; flex: none; overflow: hidden; border-radius: 10px; background: var(--sf); font-size: 1.4em; border-style: dashed; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ci { flex: 1; min-width: 0; display: flex; flex-direction: column; } .ci b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbt { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; } .cbt button { min-height: 30px; padding: 2px 8px; font-size: .82em; }
.cth { width: 30px; height: 30px; border-radius: 7px; object-fit: cover; }
.mi { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--b) 60%, transparent); flex-wrap: wrap; }
.mi .ph { width: 56px; height: 56px; } .mi.so .mii b { text-decoration: line-through; color: var(--mu); }
.mii { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; } .mii small { font-variant-numeric: tabular-nums; }
.mprice { width: 110px; } .mpos { display: inline-flex; gap: 4px; } .mpos button { min-width: 34px; padding: 0; }
.oebox { border: 1px solid var(--b); border-radius: calc(var(--rd) - 2px); padding: 12px; background: var(--sf); }
.oer { display: grid; grid-template-columns: 1fr 120px auto auto; gap: 6px; align-items: center; margin-bottom: 6px; } .oe { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 640px) { .mi { gap: 8px; } .mi .tg { min-width: 0; } .oer { grid-template-columns: 1fr 90px auto auto; } }

/* ---------------------------------------------------------------- reviews, bookings, team, branches */
.rvtop { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.rvavg { display: flex; flex-direction: column; align-items: center; min-width: 120px; } .rvavg b { font-size: 3em; line-height: 1; color: var(--dk); }
.stars, .rvavg span { color: #f2a20c; letter-spacing: 1px; } .stars i, .rvavg span i { font-style: normal; color: var(--b); }
.rvbars { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.rvbars button { border: 0; background: none; min-height: 26px; padding: 2px 6px; display: grid; grid-template-columns: 34px 1fr 34px; gap: 10px; font-weight: 600; }
.rvbars button.on { background: var(--sf); } .rvbars i { background: var(--sf); border-radius: 99px; height: 10px; align-self: center; overflow: hidden; display: block; }
.rvbars em { display: block; height: 100%; background: #f2a20c; border-radius: 99px; }
.rv.low { border-left: 5px solid var(--bad); } .rr { background: var(--sf); border-radius: 8px; padding: 8px 10px; font-size: .92em; }
.bk.s-new { border-left: 5px solid var(--p); } .bk.s-ok { border-left: 5px solid var(--ok); } .bk.s-no, .bk.s-cancel, .bk.s-noshow { opacity: .6; }
.usr .ch h3 { font-size: 1.05em; }
.brc .ch h3 small { font-weight: 600; }
.rules h4 { padding-top: 12px; border-top: 1px solid var(--b); } .rules h4:first-child { border: 0; padding: 0; margin-top: 0; }
.zh, .zr { display: grid; grid-template-columns: 1.4fr 1fr 1fr 40px; gap: 6px; align-items: center; } .zh { font-size: .8em; font-weight: 700; color: var(--mu); margin-bottom: 4px; } .zr { margin-bottom: 6px; }
.rules .dupe { display: none; }
.hrs { display: flex; flex-direction: column; gap: 6px; }
.hday { display: grid; grid-template-columns: 110px 1fr; gap: 4px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--b) 60%, transparent); }
.hday > b { grid-row: span 2; align-self: start; padding-top: 8px; } .hrl { display: flex; flex-direction: column; gap: 6px; } .hrl:empty::before { content: "No times"; color: var(--mu); padding: 8px 0; }
.hday .lnk { justify-self: start; margin-right: 12px; font-size: .86em; }
.hr { display: flex; gap: 6px; align-items: center; } .hr input { max-width: 140px; }
@media (max-width: 560px) { .hday { grid-template-columns: 1fr; } .hday > b { grid-row: auto; padding: 0; } }
#bre .chips { margin-bottom: 8px; }

/* ---------------------------------------------------------------- settings hub (two panes) */
.hubg, .wgrid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.hubn { position: sticky; top: 76px; background: var(--c); border: 1px solid var(--b); border-radius: var(--rd); box-shadow: var(--sh); max-height: calc(100vh - 92px); display: flex; flex-direction: column; overflow: hidden; }
.hubs { padding: 10px; border-bottom: 1px solid var(--b); } .hubl { overflow-y: auto; padding: 6px; }
.hubgp > small { display: block; padding: 10px 10px 4px; color: var(--mu); font-weight: 700; font-size: .76em; }
.hubi { width: 100%; display: grid; grid-template-columns: 26px 1fr; grid-template-rows: auto auto; column-gap: 8px; text-align: left; border: 0; background: none; min-height: 0; padding: 8px 10px; border-radius: 9px; white-space: normal; font-weight: 400; }
.hubi span { grid-row: span 2; font-size: 1.15em; align-self: center; } .hubi b { font-weight: 600; font-size: .95em; } .hubi em { font-style: normal; color: var(--mu); font-size: .8em; }
.hubi:hover { background: var(--sf); } .hubi.on { background: color-mix(in srgb, var(--p) 10%, var(--c)); } .hubi.on b { color: var(--p); }
.hubnone { padding: 12px; color: var(--mu); }
.hubsec { background: var(--c); border: 1px solid var(--b); border-radius: var(--rd); box-shadow: var(--sh); padding: 20px 22px; min-width: 0; }
.hubh { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--b); }
.hubic { width: 46px; height: 46px; border-radius: 12px; background: var(--sf); display: grid; place-items: center; font-size: 1.45em; flex: none; }
.hubh h3 { margin: 0; font-size: 1.25em; } .hubh p { margin: 0; color: var(--mu); font-size: .9em; }
.hubx { display: flex; justify-content: space-between; gap: 8px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--b); } .hubx button { background: none; font-weight: 500; color: var(--mu); }
@media (max-width: 900px) {
  .hubg, .wgrid { grid-template-columns: 1fr; }
  .hubn { position: static; max-height: none; box-shadow: none; } .hubl { display: flex; overflow-x: auto; gap: 4px; padding: 6px; scrollbar-width: none; } .hubl::-webkit-scrollbar { display: none; }
  .hubgp { display: contents; } .hubgp > small { display: none; } .hubgp[hidden] { display: none; }
  .hubi { width: auto; flex: none; grid-template-columns: auto auto; grid-template-rows: auto; border: 1px solid var(--b); border-radius: 99px; padding: 6px 12px; } .hubi em { display: none; } .hubi span { grid-row: auto; font-size: 1em; }
  .hubsec { padding: 16px 14px; }
}
/* payments */
.paym { border: 1px solid var(--b); border-radius: var(--rd); padding: 4px 14px; margin-bottom: 8px; transition: border-color .15s; }
.paym .sw { border: 0; } .paym .pmb { display: none; padding: 4px 0 14px; } .paym.on { border-color: color-mix(in srgb, var(--ok) 45%, var(--b)); } .paym.on .pmb { display: flex; flex-direction: column; gap: 10px; }
/* WhatsApp */
.waqr { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; } .waqr img { width: 240px; height: 240px; background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--b); image-rendering: pixelated; }
.waqr ol { flex: 1; min-width: 200px; padding-left: 20px; } .waqr li { margin-bottom: 8px; }
.wlog pre { white-space: pre-wrap; font-size: 11px; background: var(--sf); border-radius: 8px; padding: 8px; max-height: 220px; overflow: auto; }
.msg { border: 1px solid var(--b); border-radius: calc(var(--rd) - 2px); padding: 10px 12px; } .msg[open] summary { margin-bottom: 8px; } .msg .fl > span:empty { display: none; }
.logo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; } .logo-row img { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; border: 1px solid var(--b); background: #fff; }
.tfqr { background: #fff; display: inline-block; padding: 10px; border-radius: 12px; border: 1px solid var(--b); margin: 6px 0; } .tfqr svg { display: block; width: 200px; height: 200px; } .tfqr.big svg { width: 260px; height: 260px; }
.mdc .tfqr.big { display: block; width: max-content; margin: 6px auto; }

/* ---------------------------------------------------------------- website editor */
.whero { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--c); border: 1px solid var(--b); border-radius: var(--rd); padding: 14px 18px; margin-bottom: 16px; box-shadow: var(--sh); }
.whero > div:first-child { display: flex; flex-direction: column; } .whero a { font-weight: 700; text-decoration: none; } .whero small { color: var(--mu); }
.whero .btns { margin: 0; }
.wgrid { grid-template-columns: 260px minmax(0, 1fr) 360px; }
.wsec { display: none; } .wsec.on { display: block; }
.wpv { position: sticky; top: 76px; } .wpv .card { padding: 12px; } .wpv .ch { margin-bottom: 8px; } .wpv .icb { min-height: 32px; min-width: 34px; padding: 2px 6px; }
.pvbox { border: 1px solid var(--b); border-radius: 16px; overflow: hidden; background: #fff; margin-bottom: 6px; }
.pvbox iframe { display: block; border: 0; width: 100%; height: calc(100vh - 220px); min-height: 480px; }
.pvbox.pc iframe { width: 250%; height: calc((100vh - 220px) * 2.5); transform: scale(.4); transform-origin: 0 0; margin-bottom: calc((100vh - 220px) * -1.5); }
@media (max-width: 1280px) { .wgrid { grid-template-columns: 250px minmax(0, 1fr); } .wpv { grid-column: 1 / -1; position: static; } .pvbox iframe { height: 640px; } .pvbox.pc iframe { height: 1600px; margin-bottom: -960px; } }
@media (max-width: 900px) { .wgrid { grid-template-columns: 1fr; } }
.wsb { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: none; align-items: center; gap: 12px; background: var(--dk); color: var(--c); padding: 8px 8px 8px 16px; border-radius: 99px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); font-weight: 600; }
.wsb.on { display: flex; } @media (max-width: 900px) { .wsb { bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; left: 12px; justify-content: space-between; } }
.pres { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pres button { flex-direction: column; gap: 6px; min-width: 92px; padding: 8px; background: var(--c); } .pres button i { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); margin: 0 -3px; }
.pres button > span { font-size: .8em; text-transform: capitalize; } .pres button.on { border: 2px solid var(--p); }
.pics { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pic { position: relative; width: 120px; height: 80px; border-radius: 10px; overflow: hidden; border: 1px solid var(--b); background: var(--sf); }
.pic.wide { width: 160px; height: 64px; } .pic.tall { width: 66px; height: 84px; } .pic.logo img { object-fit: contain; background: #fff; } .pic.logo.dark img { background: #555; }
.pic img { width: 100%; height: 100%; object-fit: cover; } .pic button { position: absolute; top: 4px; right: 4px; min-height: 26px; min-width: 26px; padding: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; border: 0; font-size: .8em; }
.picadd { flex-direction: column; width: 120px; height: 80px; border-style: dashed; font-size: 1.3em; gap: 0; white-space: normal; } .picadd small { font-size: .62em; font-weight: 600; }
.icg { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.icr { display: grid; grid-template-columns: 40px 1fr; gap: 4px 10px; align-items: center; border: 1px solid var(--b); border-radius: 10px; padding: 8px; }
.icp { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; background: var(--sf); border-radius: 8px; } .icp svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } .icp em { display: none; }
.icc { display: flex; gap: 4px; align-items: center; } .icc button { min-height: 32px; padding: 2px 8px; font-size: .8em; } .icc input { min-height: 32px; padding: 4px 6px; width: 70px; } .icc .icz { width: 56px; }
.shw { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 20px; }
.warnc { color: var(--warn); } .cnt { color: var(--mu); } .cnt.warn { color: var(--warn); }
.gprev { border: 1px solid var(--b); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; background: var(--c); font-family: Arial, sans-serif; }
.gprev small { color: #4d5156; } .gprev b { color: #1a0dab; font-weight: 400; font-size: 1.2em; } html.dark .gprev b { color: #8ab4f8; } .gprev span { color: #4d5156; font-size: .9em; } html.dark .gprev span, html.dark .gprev small { color: #bdc1c6; }
.smap { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; background: var(--sf); border-radius: 10px; padding: 10px 12px; } .smap small { flex-basis: 100%; color: var(--mu); }
.fqr, .lkr { border: 1px solid var(--b); border-radius: 10px; padding: 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 6px; } .fqh { display: flex; justify-content: space-between; }
.lkr { display: grid; grid-template-columns: 1fr 1.5fr 110px 36px 36px 36px; align-items: center; } .lkr .icb { min-width: 36px; padding: 0; }
@media (max-width: 640px) { .lkr { grid-template-columns: 1fr 1fr; } }
.shs { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.shr { --pc: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, var(--c) 78%, transparent 80%), conic-gradient(var(--c2) calc(var(--pc) * 1%), var(--sf) 0); flex: none; }
.shr b { font-size: 1.8em; line-height: 1; } .shr small { color: var(--mu); }
.shl { display: flex; flex-direction: column; gap: 6px; }
.shi { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--b); }
.shi > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; font-size: .85em; }
.shi.y > span { background: color-mix(in srgb, var(--ok) 15%, var(--c)); color: var(--ok); } .shi.n > span { background: color-mix(in srgb, var(--bad) 13%, var(--c)); color: var(--bad); }
.shi > div { flex: 1; display: flex; flex-direction: column; } .shi small { color: var(--mu); } .shi .btn, .shi button { min-height: 32px; padding: 4px 10px; }
.shi.y { opacity: .7; }

/* ---------------------------------------------------------------- printing the admin page itself (rare) */
@media print { .side, .tbar, .bnav, .wsb, #toast { display: none !important; } .mainw { margin: 0; } }

/* Restaurant operations upgrade */
.qbranch{border:1px solid var(--b);border-radius:12px;padding:12px;margin:10px 0;background:var(--c)}.qline{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid var(--b)}.qline>b{min-width:125px}.qseg{flex-wrap:wrap;justify-content:flex-end}.quntil{font-size:11px;color:var(--mu);padding:0 3px}.floor-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.floor-canvas{position:relative;min-height:430px;border:1px dashed var(--b);border-radius:14px;background:linear-gradient(0deg,transparent 24px,var(--b) 25px,transparent 26px),linear-gradient(90deg,transparent 24px,var(--b) 25px,transparent 26px);background-size:25px 25px;overflow:hidden}.floor-table{position:absolute;min-width:78px;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:2px solid var(--b);border-radius:13px;background:var(--c);box-shadow:0 4px 14px #0001;cursor:grab;padding:7px;touch-action:none}.floor-table:active{cursor:grabbing}.floor-table.free{border-color:var(--ok)}.floor-table.busy,.floor-table.ready,.floor-table.paid,.floor-table.printed{border-color:#dc2626;background:#fff1f2}.floor-table.cleaning{border-color:#dc2626;background:#fee2e2}.floor-table.cleaning strong,.floor-table.busy strong,.floor-table.ready strong,.floor-table.paid strong,.floor-table.printed strong{color:#b91c1c}.floor-table strong{font-size:14px}.floor-table small{font-size:11px;color:var(--mu)}.floor-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin:10px 0}.floor-stats>div,.ops-kpi{border:1px solid var(--b);border-radius:10px;padding:10px}.floor-stats b,.floor-stats small{display:block}.floor-stats small{color:var(--mu)}.floor-sections{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.floor-sections button.on{background:var(--p);color:var(--pt)}.floor-order{padding:10px;border:1px solid var(--b);border-radius:10px;margin:7px 0}.floor-order .row{display:flex;justify-content:space-between;gap:8px}.floor-order .btns{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.availability-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}.availability-card{border:1px solid var(--b);border-radius:12px;padding:14px;background:var(--c)}.availability-card h3{margin:0 0 8px}.availability-actions{display:flex;gap:6px;flex-wrap:wrap}.quick-item{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid var(--b);padding:10px 0}.quick-item small{display:block;color:var(--mu)}.bill-tools{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.bill-payments{font-size:12px;color:var(--mu)}@media(max-width:650px){.qline{align-items:flex-start;flex-direction:column}.qline>b{min-width:0}.floor-canvas{min-height:360px}.floor-table{min-width:65px;min-height:62px}}

.floor-table.reserved{border-color:#dc2626;background:#fee2e2}.floor-table.reserved strong{color:#b91c1c}

/* Bill print requested; distinct from payment-complete. */
.floor-table.printed{border-color:#7c4dca;background:#f3edff}.floor-table.printed strong{color:#6331a5}


/* Global feature search: instantly jump to a page or nested settings section. */
.admin-search-wrap{position:relative;flex:0 1 340px;width:min(340px,34vw);min-width:155px;z-index:45}
.admin-search{display:block;width:100%;min-height:38px;border:1px solid var(--b);border-radius:10px;padding:7px 12px;background:var(--in);color:var(--int);font:inherit;font-size:.88em;box-shadow:0 1px 2px #00008}
.admin-search:focus{outline:2px solid color-mix(in srgb,var(--p) 50%,transparent);outline-offset:1px}
.admin-search-results{position:absolute;left:0;right:0;top:calc(100% + 7px);max-height:min(68vh,540px);overflow:auto;background:var(--c);color:var(--t);border:1px solid var(--b);border-radius:12px;box-shadow:0 16px 40px #0003;padding:5px;z-index:100}
.admin-search-results[hidden]{display:none}
.as-result{display:flex;width:100%;text-align:left;white-space:normal;justify-content:space-between;gap:10px;align-items:center;border:0;border-radius:8px;background:transparent;color:var(--t);padding:9px 10px;min-height:52px}
.as-result:hover,.as-result:focus{background:var(--sf);border-color:transparent;outline:0}
.as-result>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.as-result b{font-size:.9em}.as-result small{font-size:.76em;color:var(--mu);font-weight:400;white-space:normal;line-height:1.35}
.as-result em{font-style:normal;font-size:.7em;color:var(--mu);white-space:nowrap}
.as-none{padding:14px;color:var(--mu);font-size:.88em}
/* Sidebar search sits immediately below the shop identity and uses the same scoped search index as the top bar. */
.admin-side-search-wrap{flex:0 0 auto;width:auto;min-width:0;margin:0 10px 9px;z-index:65}
.admin-side-search-wrap .admin-search{min-height:39px;font-size:.84em;border-color:color-mix(in srgb,var(--navt) 30%,transparent);background:color-mix(in srgb,var(--nav) 82%,white);color:var(--navh);box-shadow:none;padding:8px 10px}
.admin-side-search-wrap .admin-search::placeholder{color:color-mix(in srgb,var(--navt) 86%,transparent);opacity:1}
.admin-side-search-wrap .admin-search:focus{outline:2px solid color-mix(in srgb,var(--p) 60%,transparent);border-color:var(--p)}
.admin-side-search-results{position:fixed;left:calc(var(--side) - 7px);top:120px;width:min(390px,calc(100vw - var(--side) - 16px));max-height:min(72vh,600px);background:var(--c);color:var(--t)}
.admin-side-search-results .as-result{min-height:50px}
.admin-side-search-results:before{content:"Results";display:block;padding:6px 10px 8px;border-bottom:1px solid var(--b);font-size:.75em;color:var(--mu);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.admin-search-hit{outline:2px solid var(--p)!important;outline-offset:3px!important;scroll-margin-top:80px;transition:outline-color .2s}
@media(max-width:900px){.admin-search-wrap:not(.admin-side-search-wrap){flex-basis:230px;width:auto;min-width:130px}.admin-search{font-size:.8em;padding-inline:8px}.admin-side-search-results{left:var(--side);width:min(390px,calc(100vw - var(--side) - 8px));}}
@media(max-width:640px){.tbar h1{display:none}.admin-search-wrap:not(.admin-side-search-wrap){flex:1 1 120px;width:auto;min-width:100px}.admin-search{min-width:0}.as-result em{display:none}.admin-search-wrap:not(.admin-side-search-wrap) .admin-search-results{position:fixed;left:10px;right:10px;top:58px;width:auto}.admin-side-search-results{left:10px;right:10px;top:118px;width:auto;max-height:60vh}.admin-side-search-results .as-result{padding:8px}.admin-side-search-wrap{margin-bottom:6px}}

.floor-entity{display:inline-flex;align-items:center;gap:3px;border:1px solid var(--b);border-radius:10px;padding:2px;background:var(--c)}.floor-entity>button:first-child{border:0;background:transparent}.floor-delete{min-width:30px;min-height:30px;color:var(--bad);padding:3px}.table-label-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:7px;margin:12px 0}.table-label-list>div{border:1px solid var(--b);border-radius:8px;padding:8px;font-size:13px}
/* Direct floor-plan delete control: keeps table card clickable/draggable while the delete action stays obvious. */
.floor-node{position:absolute;left:0;top:0;z-index:1}.floor-node .floor-table{position:relative;left:auto;top:auto}.floor-node .floor-delete-table{position:absolute;top:-9px;right:-9px;z-index:4;min-width:27px;min-height:27px;padding:0;border:1px solid var(--bad);border-radius:999px;background:var(--c);color:var(--bad);font-size:19px;font-weight:800;line-height:1;box-shadow:0 2px 8px #0002}.floor-node .floor-delete-table:hover{background:var(--bad);color:#fff}

/* Brief focus indicator when global search jumps into a deeply nested settings card. */
.as-target-flash{outline:2px solid var(--p);outline-offset:3px;transition:outline-color .25s;scroll-margin-top:90px}
.as-result:focus-visible{outline:2px solid var(--p);outline-offset:-2px}

/* v3.61.0 usability: hierarchical table selectors must remain readable on small POS layouts. */
#posf .pos-table-select{display:block;width:100%;min-width:0;grid-column:1/-1}#posf .pos-table-select select{display:block;width:100%;min-width:0;max-width:100%;white-space:normal}#posf .pos-table-select option{white-space:normal}
.season-list{display:grid;gap:8px;margin-top:12px}.season-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid var(--line,#d7dfe8);border-radius:10px;padding:10px}.season-row>span{flex:1;min-width:180px}.season-row small{display:block;color:var(--muted,#64748b);margin-top:3px}.visibility-actions{align-items:center;justify-content:flex-end}.visibility-actions .mu{margin-right:auto}

/* v3.61.0: seasonal/event controls and readable table selectors */
.season-create{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto;gap:10px;align-items:end;min-width:0}.season-create>*{min-width:0}.season-create input{width:100%;min-width:0}.season-list{display:grid;gap:8px;margin-top:12px}.season-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;border:1px solid var(--line,#dbe2ea);border-radius:10px;padding:10px}.season-row small{display:block;margin-top:3px}.pos-table-select{width:100%;min-width:0}.pos-table-select select{width:100%;max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}.pos-table-select select option{white-space:normal}.pos-table-select + .covers-input,.pos-table-select ~ .covers-input{width:100%;margin-top:8px}@media(max-width:850px){.season-create{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.season-create label:first-child{grid-column:1/-1}.season-create button{grid-column:1/-1;width:100%}.season-row{grid-template-columns:minmax(0,1fr) auto}.season-row button:last-child{grid-column:2}}@media(max-width:420px){.season-create{grid-template-columns:minmax(0,1fr)}.season-create label:first-child,.season-create button{grid-column:1}}

/* Readable POS table selector and optional floor hierarchy switches. */
.pos-table-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:8px;width:100%;min-width:0}.pos-table-option{display:flex;min-width:0;min-height:68px;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;padding:10px 12px;border:1px solid var(--line,#dbe2ea);border-radius:10px;background:var(--card,#fff);color:var(--text,inherit);text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.pos-table-option b,.pos-table-option small{max-width:100%;overflow-wrap:anywhere;white-space:normal;line-height:1.35}.pos-table-option small{font-size:12px;color:var(--muted,#667085)}.pos-table-option.selected{border-color:var(--p,#0b8b50);box-shadow:0 0 0 2px color-mix(in srgb,var(--p,#0b8b50) 18%,transparent);background:color-mix(in srgb,var(--p,#0b8b50) 7%,white)}.floor-level-switches{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;padding:10px 12px;border:1px solid var(--line,#dbe2ea);border-radius:10px;background:var(--card,#fff)}.floor-level-switches small{flex:1 1 260px;color:var(--muted,#667085)}.floor-level-switches button{white-space:normal}.floor-level-switches button.on{border-color:var(--p,#0b8b50);background:color-mix(in srgb,var(--p,#0b8b50) 9%,white);color:var(--p,#0b8b50)}
@media(max-width:620px){.pos-table-options{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-table-option{padding:9px}.floor-level-switches{align-items:stretch}.floor-level-switches button{flex:1 1 120px}}

/* Compact exact-table selector in the POS billing panel. */
#posf .pos-table-select{min-width:0;width:100%;}
#posf .pos-table-select select{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:42px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.pos-submit-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;}
.pos-submit-actions>button{min-width:0;width:100%;white-space:normal;}
@media(max-width:420px){.pos-submit-actions{grid-template-columns:1fr;} }

/* v3.61.8 floor-plan repair: fit every requested table into a responsive, non-overlapping grid. */
.floor-view-tools{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:10px 0 12px;padding:10px 12px;border:1px solid var(--b);border-radius:12px;background:var(--c)}
.floor-view-tools .fl{flex:0 1 185px;min-width:135px;margin:0}
.floor-view-tools .fl input,.floor-view-tools .fl select{width:100%;box-sizing:border-box;min-width:0}
.floor-view-tools .floor-showing{align-self:center;flex:1 1 140px}
.floor-page-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.floor-page-nav button{min-height:34px;padding:5px 10px}
.floor-canvas.grid-mode{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,88px),1fr));align-content:start;align-items:start;gap:10px;padding:12px;min-height:0;height:auto;overflow:visible;background:linear-gradient(0deg,transparent 24px,var(--b) 25px,transparent 26px),linear-gradient(90deg,transparent 24px,var(--b) 25px,transparent 26px);background-size:25px 25px}
.floor-canvas.grid-mode .floor-node{position:relative!important;left:auto!important;top:auto!important;display:flex;align-items:flex-start;justify-content:center;width:100%;min-width:0;min-height:74px;box-sizing:border-box}
.floor-canvas.grid-mode .floor-node .floor-table{position:relative;left:auto;top:auto;box-sizing:border-box;width:100%;max-width:120px;min-width:0;min-height:68px;padding:6px 5px;overflow-wrap:anywhere}
.floor-canvas.grid-mode .floor-node .floor-delete-table{top:-5px;right:calc(50% - 60px)}
.floor-canvas.grid-mode>.mu{grid-column:1/-1}
.floor-canvas.free-mode{overflow:auto;min-height:430px}
@media(max-width:620px){.floor-view-tools .fl{flex:1 1 120px}.floor-canvas.grid-mode{grid-template-columns:repeat(auto-fit,minmax(min(100%,72px),1fr));gap:7px;padding:8px}.floor-canvas.grid-mode .floor-node{min-height:66px}.floor-canvas.grid-mode .floor-node .floor-table{min-height:60px}.floor-canvas.grid-mode .floor-node .floor-delete-table{right:calc(50% - 48px);top:-6px;min-width:24px;min-height:24px}}

/* v3.89 — context help, durable recovery guidance, and touch/slow-network usability. */
.admin-context-help{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;margin:0 0 14px;border:1px solid color-mix(in srgb,var(--info) 28%,var(--b));border-radius:var(--rd);background:color-mix(in srgb,var(--info) 6%,var(--c));min-width:0}
.admin-context-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.admin-context-copy strong{color:var(--dk)}.admin-context-copy span{font-size:.9em;color:var(--mu);line-height:1.4}
.admin-context-help button{flex:none}.admin-recovery-guide{border:1px solid color-mix(in srgb,var(--warn) 55%,var(--b));border-inline-start:5px solid var(--warn);background:color-mix(in srgb,var(--warn) 7%,var(--c));border-radius:var(--rd);padding:14px 16px;margin:0 0 16px;box-shadow:var(--sh)}
.admin-recovery-head{display:flex;align-items:flex-start;gap:10px}.admin-recovery-head h2{font-size:1.12em;margin:2px 0 8px;flex:1}.admin-recovery-guide p{margin:6px 0;line-height:1.45}.admin-recovery-guide ul{margin:8px 0;padding-inline-start:22px}.admin-recovery-guide li{margin:5px 0}.admin-recovery-context{border-inline-start:5px solid var(--warn)}
.netstatus{font-size:.78em;line-height:1.25;padding:6px 9px;border-radius:8px;max-width:250px;color:var(--mu);background:var(--sf);border:1px solid var(--b)}.netstatus.warn{color:var(--warn);border-color:color-mix(in srgb,var(--warn) 45%,var(--b));background:color-mix(in srgb,var(--warn) 10%,var(--c))}
.onboarding-card{margin-bottom:14px}.onboarding-progress{height:7px;border-radius:99px;background:var(--sf);border:1px solid var(--b);overflow:hidden;margin:8px 0 16px}.onboarding-progress span{display:block;height:100%;background:var(--ok);transition:width .15s ease}.onboarding-steps{display:grid;gap:0}.onboarding-step{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--b);min-width:0}.onboarding-step:first-child{border-top:0}.onboarding-check{width:36px;min-width:36px;min-height:36px;padding:0;border-radius:50%;background:var(--sf);font-weight:800}.onboarding-check.checked{background:var(--ok);border-color:var(--ok);color:#fff}.onboarding-step-copy{flex:1;min-width:0}.onboarding-step-copy h3{font-size:1em;margin:1px 0 3px}.onboarding-step-copy p{margin:0;color:var(--mu);font-size:.92em;line-height:1.45}.onboarding-step.done h3{text-decoration:line-through;text-decoration-thickness:1px;color:var(--mu)}.onboarding-step .btns{margin-top:8px}.help-support-grid{align-items:start}.help-support-grid details{border-top:1px solid var(--b);padding:10px 0}.help-support-grid details:first-of-type{margin-top:8px}.help-support-grid summary{min-height:38px;display:flex;align-items:center;cursor:pointer;line-height:1.35}.help-support-grid details p{line-height:1.5}
@media (pointer:coarse){
  button,.btn,.sni,.bnav a,.chips button,.tg,.icb{min-height:44px}
  input,select,textarea{min-height:46px}
  input[type=checkbox],input[type=radio]{width:24px;height:24px;min-height:24px}
  .sw input{width:50px;height:30px;min-height:30px}
  .sw input::after{width:24px;height:24px}
  .sw input:checked::after{transform:translateX(20px)}
  .floor-table{min-width:82px;min-height:78px}
  .tbl th,.tbl td{padding:12px 14px}
  details summary{min-height:44px}
}
@media (max-width:900px){
  .admin-context-help{align-items:flex-start}
  .admin-context-help button{min-height:44px}
  .tbar .netstatus{max-width:195px}
  .onboarding-card .ch{align-items:flex-start}
}
@media (max-width:640px){
  .admin-context-help{flex-direction:column;align-items:stretch;gap:9px;padding:12px}
  .admin-context-help button{width:100%}
  .admin-recovery-guide{padding:12px}
  .admin-recovery-guide .btns{display:grid;grid-template-columns:1fr}
  .admin-recovery-guide .btns button{width:100%;white-space:normal}
  .onboarding-step{gap:10px;padding:13px 0}
  .onboarding-check{width:40px;min-width:40px;min-height:40px}
  .onboarding-card .ch{flex-direction:column;gap:6px}
  .help-support-grid{grid-template-columns:1fr}
  .netstatus{font-size:.72em;max-width:135px;padding:5px 7px}
  .tbar{flex-wrap:wrap}
  .tbar .sp{display:none}
  .tbar .netstatus{order:10;flex:1 0 100%;max-width:none}
  .btns button{max-width:100%;white-space:normal}
  .tbl{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .cards,.ogrid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:420px){
  .pg{padding-inline:10px}
  .card{padding:12px}
  .tbar{gap:6px}
  .admin-search-wrap:not(.admin-side-search-wrap){flex-basis:calc(100% - 105px)}
  .admin-search-wrap:not(.admin-side-search-wrap) .admin-search{min-height:44px}
  .bsel{max-width:112px}
  .onboarding-progress{margin-bottom:12px}
}




/* Owner-controlled sidebar visibility: touch-friendly and responsive. */
.sidebar-section-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.sidebar-section-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:8px;margin:14px 0}.sidebar-section-option{display:flex;align-items:center;gap:12px;min-width:0;padding:12px;border:1px solid var(--b);border-radius:10px;background:var(--c);cursor:pointer}.sidebar-section-option:has(input:checked){border-color:var(--p);background:var(--sf)}.sidebar-section-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.sidebar-section-copy b{font-size:.95em;overflow-wrap:anywhere}.sidebar-section-copy small{font-size:.82em;color:var(--mu);line-height:1.35}.sidebar-section-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--b);padding-top:12px}.sidebar-section-option input{flex:none}
@media(max-width:620px){.sidebar-section-grid{grid-template-columns:1fr}.sidebar-section-footer{align-items:stretch}.sidebar-section-footer button{width:100%}}

/* Global navigation preferences: permanently reachable for Owners; role hint for other staff. */
.sfoot .sidebar-sections-pin{border:1px solid color-mix(in srgb,var(--navt) 35%,transparent);border-radius:9px;background:color-mix(in srgb,var(--navt) 8%,transparent);margin-bottom:7px}.sfoot .sidebar-sections-pin:hover{background:color-mix(in srgb,var(--navt) 15%,transparent)}.sidebar-visibility-note{display:flex;align-items:center;gap:9px;padding:9px 10px;margin-bottom:7px;color:var(--navt);opacity:.72;font-size:12px;line-height:1.35}.sidebar-visibility-note span{flex:none}

.sfoot .sidebar-sections-pin{flex-wrap:wrap}.sfoot .sidebar-readonly-label{font-size:10px;color:var(--navt);opacity:.8;white-space:nowrap;margin-left:auto}.sidebar-sections-card [disabled]{opacity:.55;cursor:not-allowed}


/* v3.102.0 UI refinement: consistent focus, interaction feedback and responsive form rhythm. */
:where(button, input, select, textarea, a, [tabindex]):focus-visible{outline:3px solid color-mix(in srgb,var(--p,#2563eb) 72%,transparent);outline-offset:2px}
:where(button,.btn,.pri,.sec2,.ghost){transition:background-color .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease}
:where(button,.btn,.pri,.sec2,.ghost):not(:disabled):active{transform:translateY(1px)}
:where(button,.btn,.pri,.sec2,.ghost):disabled{cursor:not-allowed;opacity:.58}
:where(input,select,textarea){max-width:100%;box-sizing:border-box}
:where(.card,fieldset,details){min-width:0}
@media(max-width:640px){.card{border-radius:12px}.btns, .inl{gap:8px;flex-wrap:wrap}.btns>button,.inl>button{min-height:42px}input,select,textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){:where(button,.btn,.pri,.sec2,.ghost){transition:none}}
/* sidebar groups */
.sgrp { font-size: .7em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navt); opacity: .55; padding: 14px 11px 5px; }
.snav .sgrp:first-child { padding-top: 4px; }
.sni { padding-top: 8px; padding-bottom: 8px; }
.advtabs { margin: 0 0 14px; flex-wrap: wrap; }
.advtabs button { padding: 9px 16px; }
.paygw { border: 2px solid var(--c, #e5482f); }
.paygw h3 { margin-top: 0; }
/* owner unlock bar */
.lockbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; margin: 0 0 14px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }
.lockbar.open { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.lockbar button { margin-left: auto; }
fieldset[disabled] { opacity: .6; }
/* selected section / row chip: keep its name visible (was white text on a transparent background) */
.floor-entity > button.on:first-child { background: var(--p); color: var(--pt); border-radius: 8px; font-weight: 600; }
.floor-entity > button:first-child { color: inherit; padding: 6px 10px; }
.floor-sections { align-items: center; } .floor-lbl { font-size: .78em; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--mu, #6b7280); min-width: 70px; }
.lockfs { border: 0; min-width: 0; padding: 0; margin: 0; }
[hidden] { display: none !important; }
/* phones: one column that never grows wider than the screen */
@media (max-width: 900px) { .hubg, .wgrid { grid-template-columns: minmax(0, 1fr); } .hubg > *, .wgrid > *, .hubx, .card { min-width: 0; } }
