/* DineDirect demo · MakinForU. System fonts only, no external requests. */
:root {
  --brand: #C2410C; --on-brand: #ffffff; --brand-ink: #C2410C; --brand-soft: #f9ece7; --brand-soft2: #f3d9cf; --brand-deep: #7e2a08;
  --ink: #1c1917; --ink-2: #44403c; --muted: #625b55; --line: #e7e2dc; --line-2: #f1ede8; --field: #cfc8bf;
  --bg: #efeae4; --app-bg: #f6f4f1; --ok: #15803d; --ok-ink: #14532d; --warn-ink: #78350f; --bad: #b91c1c; --focus: #1d4ed8;
  --bar: 56px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.4; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, dl, dd, ol, ul, fieldset, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
input, select, textarea { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: .92em; }
svg { flex: none; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vm { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; }
.vm.xs { width: 13px; height: 13px; vertical-align: -2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 10px; }
.noscript { padding: 24px; text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.grow { flex: 1 1 auto; }
.full { width: 100%; }
.center { text-align: center; justify-content: center; }
.sm { font-size: 13px; }

/* ---------- Demo bar ---------- */
.demobar { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 18px; background: #17120e; color: #f5f0ea; border-bottom: 1px solid #2c241d; }
.db-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.db-logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #f97316; color: #1c0d02; }
.db-name { font-size: 15px; white-space: nowrap; }
.db-by { color: #c9bfb5; font-weight: 500; }
.demo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #fde68a; color: #6b2e05; font-size: 12px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.demo-pill.sm { font-size: 11px; padding: 3px 8px; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #b45309; }
.viewswitch { display: flex; gap: 4px; padding: 3px; margin: 0 auto; background: #2a221b; border-radius: 12px; }
.vs-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 650; color: #e7dfd6; white-space: nowrap; }
.vs-btn:hover { background: #3a2f26; }
.vs-btn[aria-pressed="true"] { background: #fff; color: #1c1917; }
.db-actions { display: flex; gap: 6px; }
.db-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 9px; font-size: 13px; font-weight: 650; color: #f5f0ea; border: 1px solid #4a3d32; white-space: nowrap; }
.db-btn:hover { background: #2a221b; }
.db-reset { background: #f5f0ea; color: #1c1917; border-color: #f5f0ea; }
.db-reset:hover { background: #fff; }
.demobar :focus-visible { outline-color: #93c5fd; }

/* ---------- Stage ---------- */
.stage { display: flex; justify-content: center; align-items: flex-start; gap: 28px; padding: 18px 24px; min-height: calc(100dvh - var(--bar)); outline: none; }
.pane { min-width: 0; }
.pane-app { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.pane-admin { flex: 1 1 auto; max-width: 1400px; }
.stage[data-view="app"] .pane-admin, .stage[data-view="admin"] .pane-app { display: none; }
.pane-cap { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pane-cap .ic { width: 15px; height: 15px; }

.phone { --ph: max(560px, min(820px, calc(100dvh - var(--bar) - 66px))); position: relative; height: var(--ph); width: calc(var(--ph) * 0.4621); padding: 11px; border-radius: 54px; background: #141210; box-shadow: 0 0 0 2px #3b342e, 0 40px 80px -40px rgba(28, 20, 12, .65), 0 18px 30px -18px rgba(28, 20, 12, .4); }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 27px; border-radius: 20px; background: #000; z-index: 40; pointer-events: none; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; overflow: clip; border-radius: 44px; background: #fff; isolation: isolate; }
.phone-btn { position: absolute; width: 4px; border-radius: 3px; background: #2b2520; }
.pb-1 { left: -4px; top: 132px; height: 30px; } .pb-2 { left: -4px; top: 180px; height: 56px; } .pb-3 { right: -4px; top: 200px; height: 82px; }

.browser { height: calc(100dvh - var(--bar) - 36px); min-height: 560px; display: flex; flex-direction: column; overflow: hidden; overflow: clip; border-radius: 14px; background: #fff; border: 1px solid #d9d2ca; box-shadow: 0 30px 60px -36px rgba(28, 20, 12, .5); }
.browser-bar { flex: none; display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #f1ede8; border-bottom: 1px solid #e2dbd3; }
.bb-dots { display: flex; gap: 6px; } .bb-dots i { width: 11px; height: 11px; border-radius: 50%; background: #d4ccc3; }
.bb-url { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 4px 14px; border-radius: 8px; background: #fff; font-size: 12.5px; color: var(--ink-2); min-width: 0; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bb-url .ic { width: 13px; height: 13px; color: var(--ok); }
.admin-root { position: relative; flex: 1; min-height: 0; container: adm / inline-size; }

/* ---------- Shared bits ---------- */
.rlogo { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: 20px; flex: none; letter-spacing: -.02em; }
.rlogo.sm { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
.rlogo.lg { width: 52px; height: 52px; font-size: 24px; border-radius: 14px; }
.rlogo.xl { width: 72px; height: 72px; font-size: 32px; border-radius: 20px; margin: 0 auto 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-on { background: #16a34a; box-shadow: 0 0 0 3px #dcfce7; } .dot-off { background: #d97706; box-shadow: 0 0 0 3px #fef3c7; }
.btn-primary, .btn-ghost, .btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 12px; font-size: 15px; font-weight: 700; text-align: center; line-height: 1.15; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover:not(:disabled) { background: var(--brand-deep); color: #fff; }
.btn-primary:disabled { background: #e7e5e4; color: #57534e; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--field); }
.btn-ghost:hover:not(:disabled) { background: #f6f4f1; }
.btn-ghost:disabled { color: #78716c; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-primary.sm, .btn-ghost.sm, .btn-danger.sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-primary .ic, .btn-ghost .ic { width: 17px; height: 17px; }
.danger { color: var(--bad) !important; }
.btn-ghost.danger { border-color: #f2c4c4; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; color: var(--brand-ink); font-weight: 700; font-size: 14px; }
.link-btn.inline { padding: 0; }
.link-btn .ic { width: 16px; height: 16px; }
.link { color: var(--brand-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 2px; }
.icon-btn { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 10px; color: var(--ink-2); }
.icon-btn:hover:not(:disabled) { background: #f1ede8; }
.icon-btn:disabled { color: #a8a29e; }
.tag-best { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 750; color: #a3400a; }
.tag-best .ic { width: 13px; height: 13px; }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.tone-wait { background: #fff4e5; color: #7c2d12; } .tone-cook { background: #fef3c7; color: #713f12; } .tone-ready { background: #dcfce7; color: #14532d; }
.tone-out { background: #dbeafe; color: #1e3a8a; } .tone-done { background: #ecfdf5; color: #065f46; } .tone-bad { background: #fee2e2; color: #7f1d1d; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: #fff; font-size: 13.5px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; }
.chip.on, .chip[aria-checked="true"] { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.chip.radio { cursor: pointer; position: relative; }
.chip.radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip.radio:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.chip.radio.on .vm { filter: drop-shadow(0 0 0 #fff); }
.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: 10px; background: var(--brand); color: var(--on-brand); box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .45); overflow: hidden; }
.stepper button { width: 34px; height: 100%; display: grid; place-items: center; color: inherit; }
.stepper button:disabled { opacity: .45; }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; font-size: 15px; }
.stepper .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.stepper.sm, .stepper.lg { background: #fff; color: var(--brand-ink); border: 1px solid var(--field); box-shadow: none; }
.stepper.sm { height: 32px; } .stepper.sm button { width: 30px; }
.stepper.lg { height: 46px; border-radius: 12px; } .stepper.lg button { width: 42px; } .stepper.lg span { min-width: 28px; font-size: 16px; color: var(--ink); }
.stepper.sm span { color: var(--ink); font-size: 14px; }
.field { display: grid; gap: 6px; margin-top: 12px; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend { font-size: 13px; font-weight: 650; color: var(--ink-2); padding: 0; }
.field > legend { margin-bottom: 6px; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea, .set-row select, .rr-tbl select { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--field); border-radius: 10px; background: #fff; font-size: 15px; }
.field textarea { resize: vertical; min-height: 64px; line-height: 1.35; }
.field input:focus, .field select:focus, .field textarea:focus, .set-row select:focus, .rr-tbl select:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
.field.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.field.inline select { min-height: 36px; padding: 4px 10px; font-size: 14px; width: auto; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field-row > .field { flex: 1 1 140px; }
.field-row > .field.w-sm { flex: 0 0 110px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 14px; cursor: pointer; }
.check input, .opt input { width: 18px; height: 18px; accent-color: var(--brand-ink); margin: 0; }
.spin { display: inline-block; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #e7e5e4; border-top-color: var(--brand-ink); animation: spin .8s linear infinite; }
.spin.sm { width: 14px; height: 14px; border-width: 2px; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
.search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--field); border-radius: 12px; background: #fff; min-width: 0; }
.search .ic { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 15px; }
.search:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.sw { position: relative; display: inline-block; width: 38px; height: 22px; border-radius: 999px; background: #c9c3bc; transition: background .15s; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
[aria-checked="true"] > .sw { background: var(--ok); }
[aria-checked="true"] > .sw::after { transform: translateX(16px); }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.sw-l { min-width: 64px; text-align: left; }
.switch.on .sw-l { color: var(--ok-ink); }
.radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #a8a29e; flex: none; margin-left: auto; background: #fff; }
.on > .radio-dot, [aria-checked="true"] > .radio-dot { border-color: var(--brand-ink); background: var(--brand-ink); box-shadow: inset 0 0 0 4px #fff; }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: 14px; background: #1c1917; color: #fff; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6); animation: toastin .22s ease-out; }
.toast .ic { color: #fbbf24; margin-top: 1px; }
.toast b { display: block; font-size: 13.5px; }
.toast small { display: block; font-size: 12px; color: #d6d3d1; margin-top: 1px; }
@keyframes toastin { from { opacity: 0; transform: translateY(-8px); } }
.empty { display: grid; justify-items: center; gap: 8px; padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 36px; height: 36px; color: #a8a29e; }
.empty.big { padding-top: 70px; }
.empty b { color: var(--ink); font-size: 16px; }
.form-err { display: flex; gap: 8px; align-items: center; color: var(--bad); font-size: 13.5px; font-weight: 650; margin-top: 12px; }
.price-in { display: inline-flex; flex: none; align-items: center; gap: 4px; white-space: nowrap; height: 38px; padding: 0 10px; border: 1px solid var(--field); border-radius: 10px; background: #fff; font-weight: 650; color: var(--ink-2); }
.price-in input { width: 64px; border: 0; outline: none; background: none; font-size: 14.5px; font-weight: 700; text-align: right; color: var(--ink); -moz-appearance: textfield; }
.price-in:focus-within { outline: 3px solid var(--focus); outline-offset: 1px; }
.price-in.sm { height: 36px; } .price-in.sm input { width: 48px; }
.bill { display: grid; gap: 2px; font-size: 14px; }
.bill > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.bill dt { color: var(--ink-2); }
.bill dd { font-weight: 600; }
.bill .bill-total { border-top: 1px dashed var(--field); margin-top: 6px; padding-top: 10px; font-size: 16px; font-weight: 800; }
.bill .bill-total dt { color: var(--ink); }
.bill.sm { font-size: 13px; margin-top: 8px; }
.free { color: var(--ok); font-weight: 750; }
.kv { display: grid; text-align: left; }
.kv > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); display: flex; align-items: flex-start; gap: 6px; flex: none; }
.kv dt .ic { width: 16px; height: 16px; margin-top: 1px; }
.kv dd { font-weight: 650; text-align: right; }
.kv dd small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.sline { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px 0; font-size: 13.5px; }
.sline .vm { margin-top: 2px; }
.sline small { display: block; color: var(--muted); font-size: 12px; }
.snote { display: flex; gap: 6px; align-items: flex-start; background: #fffbeb; color: var(--warn-ink); padding: 8px 10px; border-radius: 10px; font-size: 13px; margin: 8px 0; }
.snote .ic { width: 16px; height: 16px; flex: none; }

/* ---------- Customer app ---------- */
.app { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--app-bg); font-size: 15px; }
.app-chrome { flex: none; background: #fff; }
.sbar { display: flex; justify-content: space-between; align-items: center; height: 48px; padding: 14px 30px 0 34px; font-size: 15px; font-weight: 650; }
.sbar-ic { display: flex; gap: 6px; align-items: center; } .sbar-ic svg { fill: currentColor; }
.urlbar { display: flex; align-items: center; justify-content: center; gap: 5px; height: 30px; margin: 2px 14px 6px; border-radius: 10px; background: #f1efec; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.urlbar .ic { width: 12px; height: 12px; color: var(--ok); }
.app-view { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.app-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
[data-menu-scroll] { background: #fff; }
.app-tabs { flex: none; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0 9px; font-size: 11px; font-weight: 650; color: #6b635c; }
.tab .ic { width: 22px; height: 22px; }
.tab.on { color: var(--brand-ink); }
.tab.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-ink); }
.tab-badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }

.rhead { padding: 12px 16px 6px; background: #fff; }
.rhead-top { display: flex; gap: 12px; align-items: center; }
.rhead-id { min-width: 0; }
.rname { font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.rmeta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 14px; background: #f1ede8; }
.seg-btn { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 11px; text-align: left; color: var(--ink-2); min-height: 44px; }
.seg-btn .ic { color: var(--muted); }
.seg-btn b { display: block; font-size: 14px; }
.seg-btn small { display: block; font-size: 11.5px; color: var(--muted); }
.seg-btn.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(28, 20, 12, .3); }
.seg-btn.on .ic { color: var(--brand-ink); }
.seg.slim { margin-top: 0; }
.seg.slim .seg-btn { justify-content: center; min-height: 40px; }
.addr-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 2px 6px; text-align: left; min-width: 0; }
.addr-row > .ic:first-child { color: var(--brand-ink); }
.addr-row span { flex: 1; min-width: 0; }
.addr-row b { display: block; font-size: 14px; }
.addr-row small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.addr-row.in-card { padding: 12px 0 0; }
.banner { display: flex; gap: 10px; align-items: flex-start; margin: 6px 16px 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.banner b { display: block; font-size: 14px; }
.banner small { display: block; }
.banner-warn { background: #fef3c7; border: 1px solid #fcd34d; color: var(--warn-ink); }
.hero { position: relative; margin: 6px 16px 12px; height: 124px; border-radius: 16px; overflow: hidden; background: var(--brand-deep); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; padding: 16px; max-width: 58%; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.hero-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.hero-title { font-size: 17px; font-weight: 750; line-height: 1.25; margin-top: 4px; }
.tools { display: flex; gap: 8px; padding: 0 16px 10px; background: #fff; }
.tools .search { flex: 1; gap: 6px; padding: 0 10px; }
.vegtog { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 9px; border: 1px solid var(--field); border-radius: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.catbar { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.catbar::-webkit-scrollbar, .rail::-webkit-scrollbar, .days::-webkit-scrollbar, .chips.scroll::-webkit-scrollbar, .coltabs::-webkit-scrollbar { display: none; }
.catbar .chip { min-height: 34px; }
.sec-h { display: flex; align-items: center; gap: 6px; padding: 18px 16px 6px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.sec-h .ic { color: #c2410c; }
.sec-n { font-size: 13px; color: var(--muted); font-weight: 650; }
.rail-wrap { background: #fff; }
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rcard { flex: 0 0 150px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; scroll-snap-align: start; }
.rcard-art { height: 100px; }
.rcard-art .dish, .item-art .dish, .ucard-art .dish, .sh-art .dish, .mrow-art .dish, .dr-art .dish { display: block; width: 100%; height: 100%; }
.rcard-body { padding: 8px 10px 10px; }
.rcard-name { font-size: 13.5px; font-weight: 700; margin: 4px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 700; font-size: 13.5px; }
.rcard-row .add { min-width: 64px; height: 32px; font-size: 13px; }
.rcard-row .stepper { height: 32px; } .rcard-row .stepper button { width: 26px; }
.rcard-row .soldout { padding: 5px 6px; font-size: 11px; }
.rcard.is-out .rcard-art, .item.is-out .item-art { filter: grayscale(1); opacity: .55; }
.msec { background: #fff; }
.item { display: flex; gap: 14px; padding: 14px 16px 16px; border-bottom: 1px dashed var(--line); }
.item-main { flex: 1; min-width: 0; }
.item-tags { display: flex; align-items: center; gap: 7px; }
.item-name { font-size: 16px; font-weight: 750; margin: 5px 0 2px; letter-spacing: -.01em; }
.item-price { font-size: 15px; font-weight: 650; }
.item-desc { font-size: 13px; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item.is-out .item-name, .item.is-out .item-price { color: #78716c; }
.item-side { flex: 0 0 118px; display: flex; flex-direction: column; align-items: center; }
.item-art { width: 118px; height: 108px; border-radius: 14px; overflow: hidden; }
.item-ctl { margin-top: -19px; position: relative; z-index: 1; }
.add { position: relative; min-width: 96px; height: 38px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--field); color: var(--brand-ink); font-size: 15px; font-weight: 850; letter-spacing: .03em; box-shadow: 0 6px 14px -8px rgba(28, 20, 12, .45); }
.add:hover:not(:disabled) { background: var(--brand-soft); }
.add:disabled { color: #78716c; box-shadow: none; }
.add-plus { position: absolute; top: 0; right: 6px; font-size: 13px; }
.soldout { display: inline-block; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12px; font-weight: 750; color: #7c2d12; white-space: nowrap; }
.cust-note { font-size: 11px; color: var(--muted); margin-top: 5px; }
.menu-foot { padding: 18px 16px; font-size: 12px; color: var(--muted); background: #faf8f5; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.spacer { height: 20px; } .spacer.has-cart { height: 86px; } .spacer.has-pay { height: 12px; }
.cartbar { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-radius: 14px; background: var(--brand); color: var(--on-brand); box-shadow: 0 14px 28px -12px rgba(28, 20, 12, .6); text-align: left; animation: toastin .2s ease-out; }
.cb-l b { display: block; font-size: 14px; } .cb-l small { display: block; font-size: 12px; }
.cb-r { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 15px; }

.subhead { flex: none; display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 4px 12px 4px 6px; background: #fff; border-bottom: 1px solid var(--line); }
.subhead h2 { flex: 1; font-size: 17px; font-weight: 800; }
.subhead-r { font-size: 12.5px; color: var(--muted); font-weight: 600; max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card { margin: 12px 12px 0; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.card-h { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.card-h small { font-weight: 500; color: var(--muted); }
.row-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-card .card-h { margin-bottom: 2px; }
.row-card p { font-size: 12.5px; }
.cline { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cline-main b { display: block; font-size: 14px; }
.cline-main small { display: block; font-size: 12px; color: var(--muted); }
.cline-main small.warn { color: var(--bad); font-weight: 700; }
.cline-p { font-weight: 750; font-size: 14px; min-width: 54px; text-align: right; }
.cline.is-out { opacity: .8; }
.ups { margin: 12px 0 0; }
.ups .card-h { padding: 0 16px; }
.ups .rail { padding: 0 12px 4px; }
.ucard { flex: 0 0 134px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 8px; scroll-snap-align: start; }
.ucard-art { height: 80px; border-radius: 10px; overflow: hidden; margin-bottom: 6px; }
.ucard p { font-size: 13px; font-weight: 700; margin: 3px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ok-ink); background: #f0fdf4; padding: 7px 10px; border-radius: 10px; margin-top: 8px; }
.hint .ic { width: 16px; height: 16px; }
.paylist, .gw { display: grid; gap: 8px; }
.payopt, .gw-opt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; text-align: left; background: #fff; }
.payopt > .ic { color: var(--ink-2); }
.payopt b, .gw-opt b { display: block; font-size: 14px; }
.payopt small, .gw-opt small { display: block; font-size: 12px; color: var(--muted); }
.payopt.on, .gw-opt.on { border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); }
.gw-opt .radio-dot { margin-left: 0; }
.fine { display: flex; gap: 6px; align-items: flex-start; padding: 10px 16px; font-size: 12px; color: var(--muted); }
.fine .ic { width: 14px; height: 14px; margin-top: 1px; }
.paybar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px 12px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(28, 20, 12, .45); }
.pb-total { flex: 0 1 auto; min-width: 0; }
.pb-total small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.pb-total b { display: block; font-size: 16px; font-weight: 850; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paybar .btn-primary { min-height: 48px; font-size: 14.5px; padding: 0 14px; white-space: nowrap; flex: 1 0 auto; }

.sheet-wrap { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; }
.scrim { position: absolute; inset: 0; background: rgba(20, 16, 12, .52); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: relative; max-height: 90%; display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0; animation: up .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; gap: 12px; padding: 16px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.sh-art { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; }
.sh-id { flex: 1; min-width: 0; }
.sh-id h2 { font-size: 18px; font-weight: 800; margin-top: 3px; }
.sh-id p { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-x { margin-top: -4px; }
.sheet-body { position: relative; overflow-y: auto; padding: 2px 16px 14px; }
.grp { margin-top: 14px; border: 0; padding: 0; min-width: 0; }
.grp legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 4px; font-size: 15px; font-weight: 800; }
.grp legend small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.grp legend small.req { color: #9a3412; }
.opt { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px dashed var(--line); cursor: pointer; font-size: 14.5px; }
.opt:last-child { border-bottom: 0; }
.opt.on .opt-l { font-weight: 700; }
.opt-p { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.opt:has(input:disabled) { color: #a8a29e; cursor: not-allowed; }
.sheet-foot { display: flex; gap: 12px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.sheet-pad { padding: 16px 16px 20px; }
.sh-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sh-row h2 { font-size: 18px; font-weight: 800; }
.repeat-card { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0 14px; }
.repeat-card div { flex: 1; } .repeat-card b { display: block; } .repeat-card small { display: block; color: var(--muted); font-size: 12.5px; }
.btn-row { display: flex; gap: 10px; }
.btn-col { display: grid; gap: 10px; margin-top: 14px; }
.addr-list { display: grid; gap: 8px; margin-top: 10px; }
.addr-opt { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.addr-opt span { flex: 1; } .addr-opt b { display: block; } .addr-opt small { display: block; font-size: 12.5px; color: var(--muted); }
.addr-opt.on { border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); }
.addr-opt .ok { color: var(--brand-ink); }
.testpay-badge { display: inline-flex; gap: 6px; align-items: center; margin: 10px 0 12px; padding: 6px 11px; border-radius: 999px; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; font-size: 12.5px; font-weight: 800; }
.testpay-badge .ic { width: 15px; height: 15px; }
.pay-amt { display: grid; justify-items: center; gap: 2px; padding: 16px; border-radius: 14px; background: #f6f4f1; }
.pay-amt small { font-size: 12px; color: var(--muted); font-weight: 650; }
.pay-amt b { font-size: 30px; font-weight: 850; letter-spacing: -.02em; }
.pay-amt span { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); font-weight: 650; }
.pay-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.pay-wait { display: grid; place-items: center; gap: 12px; padding: 30px 0 18px; color: var(--ink-2); font-weight: 650; }
.pay-fail { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin-bottom: 12px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; color: #7f1d1d; }
.pay-fail b { display: block; } .pay-fail small { display: block; font-size: 12.5px; }
.app-toasts { position: absolute; left: 10px; right: 10px; top: 8px; z-index: 45; display: grid; gap: 6px; pointer-events: none; }

.track-hero { margin: 12px 12px 0; padding: 16px; border-radius: 16px; }
.th-k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.track-hero h3 { font-size: 21px; font-weight: 850; letter-spacing: -.02em; margin: 4px 0 3px; }
.track-hero p { font-size: 13.5px; }
.mapbox { margin: 12px 12px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.route { display: block; width: 100%; height: auto; }
.map-cap { font-size: 11.5px; color: var(--muted); padding: 7px 12px 9px; }
.rider { display: flex; gap: 12px; align-items: center; margin: 12px 12px 0; padding: 10px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.rider > .ic { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); }
.rider div { flex: 1; min-width: 0; } .rider b { display: block; font-size: 14.5px; } .rider small { display: block; font-size: 12px; color: var(--muted); }
.steps { display: grid; }
.steps li { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 33px; bottom: -7px; width: 2px; background: #e7e5e4; }
.steps li.done:not(:last-child)::after { background: var(--ok); }
.st-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d6d3d1; background: #fff; display: grid; place-items: center; color: #fff; }
.st-dot .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.steps li.done .st-dot { background: var(--ok); border-color: var(--ok); }
.steps li.bad .st-dot { background: var(--bad); border-color: var(--bad); }
.steps li.cur .st-l { font-weight: 800; }
.st-l { font-size: 14px; } .st-t { font-size: 12.5px; color: var(--muted); }
.sim-card p { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.sim-card p .ic { color: var(--focus); margin-top: 1px; }
.sim-card .btn-ghost { width: 100%; }
.paid-line { display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 650; color: var(--ok-ink); margin: 10px 0; flex-wrap: wrap; }
.paid-line .ic { width: 16px; height: 16px; }
.tabhead { padding: 18px 16px 4px; }
.tabhead h2 { font-size: 23px; font-weight: 850; letter-spacing: -.02em; }
.tabhead p { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-top: 3px; }
.tabhead .ic { width: 15px; height: 15px; }
.app .sec-h { padding-top: 16px; }
.ocard { display: grid; gap: 6px; width: calc(100% - 24px); margin: 8px 12px 0; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.ocard.live { border-color: var(--brand-ink); box-shadow: inset 3px 0 0 var(--brand-ink); }
.oc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.oc-items { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.oc-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650; }
.oc-acts { display: flex; gap: 10px; align-items: center; }
.muted.pad { padding: 4px 16px; font-size: 13.5px; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.day { flex: 0 0 52px; display: grid; justify-items: center; gap: 1px; padding: 8px 0; border-radius: 12px; border: 1px solid var(--field); background: #fff; }
.day small { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.day b { font-size: 18px; font-weight: 800; }
.day.on { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.day.on small, .day.on .day-n { color: #fff; }
.slot-h { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 10px 0 6px; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slot { min-height: 44px; border-radius: 10px; border: 1px solid var(--field); background: #fff; font-size: 13px; font-weight: 700; display: grid; place-content: center; line-height: 1.1; }
.slot small { font-size: 10.5px; color: #9a3412; font-weight: 700; }
.slot.on { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.slot.off { background: #f5f5f4; color: #8f8780; border-style: dashed; }
.done-card { margin: 18px 12px; padding: 24px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.done-ic { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: #dcfce7; color: var(--ok); }
.done-ic.wait { background: #fef3c7; color: #b45309; }
.done-ic .ic { width: 28px; height: 28px; stroke-width: 2.4; }
.done-card h2 { font-size: 22px; font-weight: 850; }
.done-card > p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.done-card .kv { margin: 14px 0 4px; }
.done-card .fine { padding: 8px 0; }
.info-hero { text-align: center; padding: 26px 16px 6px; }
.info-hero h2 { font-size: 22px; font-weight: 850; }
.info-hero p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card p.muted { font-size: 13.5px; }

/* ---------- Dashboard ---------- */
.adm { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--app-bg); font-size: 14px; }
.adm-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.adm-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-brand b { display: block; font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-brand small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.adm-top-r { display: flex; align-items: center; gap: 8px; }
.popwrap { position: relative; }
.status-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.status-btn .dot { margin-right: 0; }
.status-btn.on { border-color: #bbf7d0; background: #f0fdf4; color: var(--ok-ink); }
.status-btn.off { border-color: #fcd34d; background: #fffbeb; color: var(--warn-ink); }
.status-btn .ic { width: 15px; height: 15px; }
.sb-s { display: none; }
.sim-s { display: none; }
.pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: 272px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(28, 20, 12, .45); }
.pop-h { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; }
.pop-it { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 8px; border-radius: 8px; font-size: 13.5px; font-weight: 600; text-align: left; }
.pop-it:hover { background: #f6f4f1; }
.pop-it.on { color: var(--ok-ink); font-weight: 800; }
.pop small { display: block; padding: 6px 8px 2px; font-size: 12px; color: var(--muted); }
.adm-body { flex: 1; min-height: 0; display: flex; }
.adm-nav { position: relative; flex: 0 0 196px; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.nav-it { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.nav-it:hover { background: #f6f4f1; }
.nav-it.on { background: var(--brand-ink); color: #fff; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: var(--bad); color: #fff; font-size: 11.5px; font-weight: 800; }
.nav-it.on .nav-badge { background: #fff; color: var(--bad); }
.adm-main { position: relative; flex: 1; min-width: 0; overflow-y: auto; padding: 18px 20px 40px; }
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-head h1 { font-size: 23px; font-weight: 850; letter-spacing: -.02em; outline: none; }
.adm-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.adm-head-r { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { position: relative; display: grid; gap: 1px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.kpi > .ic { position: absolute; top: 12px; right: 12px; color: #a8a29e; }
.kpi-l { font-size: 12.5px; color: var(--muted); font-weight: 650; padding-right: 22px; }
.kpi-v { font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.kpi small { font-size: 12px; color: var(--muted); }
.seg-s { display: inline-flex; padding: 3px; border-radius: 10px; background: #e9e4de; }
.seg-s button { min-height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.seg-s button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(28, 20, 12, .2); }
.prepctl { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); font-weight: 600; }
.prepctl > span { display: inline-flex; align-items: center; gap: 5px; margin-right: 4px; }
.prepctl > span .ic { width: 15px; height: 15px; }
.prepctl button { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; }
.prepctl button:hover:not(:disabled) { background: #f1ede8; }
.prepctl .ic { width: 15px; height: 15px; }
.prepctl b { min-width: 50px; text-align: center; color: var(--ink); }
.board { margin-bottom: 16px; }
.coltabs { display: none; }
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.col { --colc: #b91c1c; padding: 10px; border-radius: 14px; background: #ece7e1; border-top: 3px solid var(--colc); min-height: 180px; min-width: 0; }
.col-accepted { --colc: #b45309; } .col-ready { --colc: #15803d; } .col-out { --colc: #1d4ed8; }
.col-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 9px; font-size: 13.5px; font-weight: 800; }
.col-h b { padding: 1px 8px; border-radius: 999px; background: #fff; font-size: 12px; }
.col-empty { font-size: 12.5px; color: var(--muted); padding: 14px 6px; text-align: center; }
.oa { display: grid; gap: 6px; margin-bottom: 10px; padding: 10px 12px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13px; min-width: 0; }
.oa.flash { animation: flash 1.1s ease-in-out 3; }
@keyframes flash { 50% { box-shadow: 0 0 0 3px var(--brand), 0 10px 24px -12px rgba(0, 0, 0, .4); } }
.oa-head { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; text-align: left; width: 100%; border-radius: 8px; }
.oa-head b { font-size: 15px; font-weight: 850; }
.mode-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 750; }
.mode-tag .ic { width: 13px; height: 13px; }
.mode-tag.delivery { background: #dbeafe; color: #1e3a8a; } .mode-tag.pickup { background: #ede9fe; color: #4c1d95; }
.oa-ago { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.oa-cust { font-weight: 650; color: var(--ink-2); }
.oa-items { display: grid; gap: 3px; }
.oa-items li { display: flex; gap: 6px; align-items: flex-start; }
.oa-items li .vm { margin-top: 2px; }
.oa-items small { display: block; color: var(--muted); font-size: 11.5px; }
.oa-items .more { color: var(--muted); padding-left: 19px; }
.oa-note { display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; background: #fffbeb; color: var(--warn-ink); font-size: 12.5px; }
.oa-note .ic { width: 14px; height: 14px; margin-top: 1px; }
.oa-due { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; color: #92400e; }
.oa-due.late { color: var(--bad); }
.oa-due .ic, .oa-rider .ic { width: 15px; height: 15px; }
.oa-rider { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: #1e3a8a; font-weight: 600; }
.oa-rider small { color: var(--muted); font-weight: 500; }
.oa-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; padding-top: 7px; border-top: 1px dashed var(--line); }
.oa-foot b { font-size: 14.5px; font-weight: 850; }
.paytag { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.paytag.ok { background: #dcfce7; color: var(--ok-ink); } .paytag.due { background: #fef3c7; color: var(--warn-ink); } .paytag.ref { background: #f1ede8; color: var(--ink-2); }
.oa-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.oa-acts .btn-primary.sm, .oa-acts .btn-ghost.sm { min-height: 34px; padding: 0 10px; font-size: 13px; }
.finding { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.panel { margin-bottom: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; min-width: 0; }
.panel-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 16px; font-weight: 800; }
.panel-h .muted { font-size: 13px; font-weight: 650; }
.panel-hr { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.panel-hr .panel-h { margin: 0; }
.panel > p { font-size: 13.5px; color: var(--ink-2); margin-bottom: 10px; }
.tbl-wrap { position: relative; overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 750; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl td small { display: block; color: var(--muted); font-size: 12px; }
.tbl .num { text-align: right; }
.tbl tr:last-child td { border-bottom: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search.sm { height: 40px; flex: 1 1 220px; max-width: 300px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding: 2px; }
.mgroup { padding-bottom: 6px; }
.mrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) 112px 128px 40px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.mrow-art { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; }
.mrow.is-out .mrow-art { filter: grayscale(1); opacity: .55; }
.mrow-name { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mrow-name b { font-size: 14.5px; }
.mrow-main small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow-g { display: flex !important; gap: 4px; align-items: center; margin-top: 2px; }
.mrow-g .ic { width: 13px; height: 13px; }
.res-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.adm-days { margin-bottom: 14px; }
.adm-days .day { flex: 0 0 98px; }
.day-n { font-size: 11px; color: var(--muted); font-weight: 600; }
.slot-hd { font-size: 12.5px; font-weight: 800; color: var(--ink-2); margin: 14px 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.slot-hd:first-of-type { margin-top: 2px; }
.rrow { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding: 10px 8px; border-radius: 10px; }
.rr-main { flex: 1 1 240px; min-width: 0; }
.rr-tbl { flex: 0 0 148px; }
.rrow + .rrow { border-top: 1px solid var(--line-2); }
.rrow.pick { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand-ink); }
.rr-main p { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.rr-main small { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rr-main small .ic { width: 13px; height: 13px; }
.rr-main .rr-note { color: var(--warn-ink); }
.rr-tbl select { min-height: 36px; padding: 4px 8px; font-size: 13px; }
.rr-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.rrow.st-cancelled, .rrow.st-noshow { opacity: .7; }
.floor-area { font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 12px 0 6px; }
.tables { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tbl-b { display: grid; gap: 1px; justify-items: center; padding: 9px 4px; border-radius: 12px; border: 2px solid #d6d3d1; background: #fff; text-align: center; min-width: 0; }
.tbl-b b { font-size: 14px; font-weight: 850; }
.tbl-b small { font-size: 11px; color: var(--muted); }
.tbl-b span { font-size: 11.5px; font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-b.st-free { border-style: dashed; color: var(--ink-2); }
.tbl-b.st-booked { border-color: #93c5fd; background: #eff6ff; color: #1e3a8a; }
.tbl-b.st-seated { border-color: #f59e0b; background: #fffbeb; color: var(--warn-ink); }
.tbl-b.st-booked small, .tbl-b.st-seated small { color: inherit; }
.tbl-b.seats-6, .tbl-b.seats-8 { grid-column: span 2; }
.tbl-b.pick { outline: 3px solid var(--brand-ink); outline-offset: 2px; }
.legend { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-block; width: 13px; height: 13px; border-radius: 4px; border: 2px solid; margin-right: -8px; }
.lg-free { border-color: #a8a29e !important; border-style: dashed !important; } .lg-booked { border-color: #93c5fd !important; background: #eff6ff; } .lg-seated { border-color: #f59e0b !important; background: #fffbeb; }
.integ-id { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.integ-id .panel-h { margin: 0; }
.integ-id p { font-size: 13px; }
.integ-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #dbeafe; color: #1d4ed8; }
.integ-logo .ic { width: 24px; height: 24px; }
.set-grid { display: grid; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.set-row:last-child { border-bottom: 0; }
.set-row > div { min-width: 0; }
.set-row b { display: block; font-size: 14px; }
.set-row small { display: block; font-size: 12px; color: var(--muted); }
.set-row select { width: auto; min-height: 38px; padding: 4px 10px; font-size: 14px; }
.drow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.drow:last-child { border-bottom: 0; }
.drow-main { min-width: 0; }
.drow-main p { font-size: 14px; }
.drow-main small { display: block; font-size: 12.5px; color: var(--muted); }
.drow-acts { display: flex; gap: 10px; align-items: center; flex: none; }
.chain { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chain li { padding: 3px 8px; border-radius: 999px; background: #f1ede8; color: #57534e; font-size: 11.5px; font-weight: 700; }
.chain li.done { background: #dcfce7; color: var(--ok-ink); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bform { display: grid; grid-template-columns: minmax(0, 1fr); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.swatch.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.swatch-custom { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; cursor: pointer; }
.swatch-custom input { width: 36px; height: 36px; padding: 0; border: 1px solid var(--field); border-radius: 50%; background: none; cursor: pointer; }
.swatch-custom input::-webkit-color-swatch-wrapper { padding: 3px; } .swatch-custom input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.bprev { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; padding: 12px; border: 1px dashed var(--field); border-radius: 12px; }
.bprev > span:nth-child(2) { min-width: 0; }
.bprev b { display: block; } .bprev small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.bprev-btn { margin-left: auto; padding: 8px 12px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 750; white-space: nowrap; }
.drawer-wrap { position: absolute; inset: 0; z-index: 50; display: flex; justify-content: flex-end; }
.drawer { position: relative; width: min(460px, 100%); height: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: -24px 0 48px -24px rgba(28, 20, 12, .5); animation: slidein .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.drawer-wrap.dlg-sm { justify-content: center; align-items: center; padding: 16px; }
.dlg-sm .drawer { height: auto; max-height: 100%; width: min(440px, 100%); border-radius: 18px; animation: up .2s; }
.dr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.dr-head h2 { font-size: 19px; font-weight: 850; letter-spacing: -.01em; }
.dr-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.dr-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 12px 18px 20px; }
.dr-foot { display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); }
.dr-confirm { flex-wrap: wrap; background: #fef2f2; }
.dr-confirm p { display: flex; gap: 8px; align-items: flex-start; flex: 1 1 100%; font-size: 13.5px; color: #7f1d1d; }
.dr-confirm p .ic { color: var(--bad); flex: none; margin-top: 1px; }
.dr-sec { margin-top: 18px; }
.dr-sec h3 { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.dr-sec p { font-size: 14px; display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.dr-sec p .ic { width: 16px; height: 16px; margin-top: 1px; }
.dr-sec .muted.sm { font-size: 12.5px; margin-top: 6px; }
.dr-acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pay-row { display: flex; gap: 8px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.pay-row small { font-size: 12px; color: var(--muted); }
.tl { display: flex; margin-top: 4px; }
.tl li { position: relative; flex: 1; display: grid; justify-items: center; gap: 1px; padding-top: 18px; text-align: center; font-size: 12px; font-weight: 650; color: var(--muted); min-width: 0; }
.tl li::before { content: ""; position: absolute; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #d6d3d1; z-index: 1; }
.tl li::after { content: ""; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: #e7e5e4; }
.tl li:first-child::after { display: none; }
.tl li.done { color: var(--ink); }
.tl li.done::before { background: var(--ok); border-color: var(--ok); }
.tl li.done::after { background: var(--ok); }
.tl li.bad::before { background: var(--bad); border-color: var(--bad); }
.tl small { font-size: 11px; color: var(--muted); font-weight: 500; }
.dr-art { display: flex; gap: 12px; align-items: center; margin-bottom: 4px; }
.dr-art .dish { width: 64px !important; height: 64px !important; border-radius: 12px; flex: none; }
.dr-art small { font-size: 12px; color: var(--muted); }
.grp-ed { margin-bottom: 10px; padding: 4px 12px 10px; border: 1px solid var(--line); border-radius: 12px; }
.grp-ed .field-row { align-items: flex-end; }
.grp-ed .icon-btn { margin-bottom: 1px; }
.opt-ed { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.opt-ed input[type="text"] { width: 100%; min-height: 36px; padding: 4px 10px; border: 1px solid var(--field); border-radius: 8px; font-size: 14px; }
.opt-ed input[type="text"]:focus { outline: 3px solid var(--focus); outline-offset: 0; }
.opt-ed .grow { min-width: 0; }
.adm-toasts { position: absolute; right: 16px; bottom: 16px; z-index: 70; display: grid; gap: 8px; width: min(340px, calc(100% - 32px)); pointer-events: none; }
.signin { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: radial-gradient(120% 80% at 20% 0%, var(--brand-soft) 0%, var(--app-bg) 60%); }
.si-card { width: min(430px, 100%); padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(28, 20, 12, .45); }
.si-card .rlogo { margin-bottom: 12px; }
.si-h { font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.si-p { font-size: 14px; color: var(--muted); margin: 4px 0 14px; }
.demo-cred { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; font-size: 13px; }
.demo-cred .ic { margin-top: 1px; }
.demo-cred b, .demo-cred span, .demo-cred small { display: block; }
.demo-cred code { background: #fff; padding: 1px 5px; border-radius: 5px; border: 1px solid #bfdbfe; }
.demo-cred small { margin-top: 4px; font-size: 12.5px; color: #1e40af; }
.si-form .btn-primary { margin-top: 18px; }
.hide-narrow { display: inline; }

/* ---------- Dialog ---------- */
.dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.dlg.wide { width: min(780px, calc(100vw - 24px)); }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: rgba(20, 16, 12, .55); }
.dlg-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 18px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { flex: 0 1 auto; min-width: 0; font-size: 18px; font-weight: 850; letter-spacing: -.01em; }
.dlg-head .icon-btn { margin-left: auto; }
.dlg-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px 20px; font-size: 14px; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.dlg-lead { font-size: 14.5px; color: var(--ink-2); margin-bottom: 8px; }
.dlg-h { font-size: 15px; font-weight: 850; margin: 18px 0 8px; }
.dlg-body p { margin-bottom: 8px; }
.tour { display: grid; counter-reset: t; }
.tour li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); counter-increment: t; }
.tour li > span::before { content: counter(t) "."; color: var(--muted); font-weight: 700; margin-right: 6px; float: left; }
.tour li b { font-size: 14px; } .tour li small { display: block; font-size: 12px; color: var(--muted); padding-left: 20px; }
.tour .btn-ghost { flex: none; white-space: nowrap; }
.tour .btn-ghost .ic { width: 15px; height: 15px; }
ul.plain { list-style: disc; padding-left: 18px; }
ul.plain li { margin: 6px 0; }

/* ---------- Invoice ---------- */
.invoice { position: relative; font-size: 13px; color: #1c1917; }
.inv-stamp { display: inline-block; margin-bottom: 12px !important; padding: 4px 10px; border: 2px solid var(--bad); border-radius: 6px; color: var(--bad); font-size: 11.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 2px solid #1c1917; }
.inv-id { display: flex; gap: 12px; }
.inv-id h3 { font-size: 17px; font-weight: 850; }
.inv-id p, .inv-title p { font-size: 12px; color: var(--muted); margin: 0 !important; }
.inv-title { text-align: right; }
.inv-title h2 { font-size: 19px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.inv-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.inv-meta dt { font-size: 11px; color: var(--muted); font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.inv-meta dd { font-weight: 650; }
.inv-meta dd small { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.inv-to { margin: 6px 0 12px; } .inv-to p { margin: 0 !important; }
.inv-tbl { width: 100%; border-collapse: collapse; }
.inv-tbl th { background: #f6f4f1; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; text-align: left; padding: 7px 8px; }
.inv-tbl td { padding: 7px 8px; border-bottom: 1px solid #eee8e1; vertical-align: top; }
.inv-tbl td small { display: block; color: var(--muted); font-size: 11.5px; }
.inv-tbl .num { text-align: right; white-space: nowrap; }
.inv-tot { width: min(320px, 100%); margin: 10px 0 0 auto; }
.inv-tot > div { display: flex; justify-content: space-between; padding: 4px 0; }
.inv-tot .inv-grand { border-top: 2px solid #1c1917; margin-top: 4px; padding-top: 8px; font-size: 16px; font-weight: 850; }
.inv-words { font-style: italic; color: var(--ink-2); margin-top: 8px !important; }
.inv-pay { font-weight: 700; }
.inv-foot { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--field); font-size: 11.5px; color: var(--muted); }
#print-root { display: none; }

/* ---------- Dashboard narrow (container queries) ---------- */
@container adm (max-width: 1100px) {
  .adm-nav { flex-basis: 64px; padding: 12px 8px; }
  .nav-it { justify-content: center; padding: 0; position: relative; min-height: 44px; }
  .nav-it span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-it .ic { width: 21px; height: 21px; }
  .nav-badge { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; font-size: 10px; }
  .mrow { grid-template-columns: 48px minmax(0, 1fr) 104px 118px 40px; }
}
@container adm (max-width: 1100px) {
  .res-grid { grid-template-columns: minmax(0, 1fr); }
}
@container adm (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: minmax(0, 1fr); }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container adm (max-width: 520px) {
  .adm-brand > div { display: none; }
  .sb-l { display: none; }
  .sb-s { display: inline; }
}
@container adm (max-width: 700px) {
  .adm-top { padding: 8px 12px; position: relative; }
  /* The status button is not at the right edge here, so anchor the popover to the top bar instead. */
  .popwrap { position: static; }
  .pop { left: 12px; right: 12px; width: auto; max-width: 320px; margin-left: auto; top: calc(100% + 4px); }
  .adm-brand small { display: none; }
  .hide-narrow { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sim-s { display: inline; }
  .adm-body { flex-direction: column; }
  .adm-nav { flex: none; flex-direction: row; gap: 4px; padding: 6px 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .nav-it { padding: 0 12px; min-height: 38px; justify-content: flex-start; gap: 7px; }
  .nav-it span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .nav-it .ic { width: 18px; height: 18px; }
  .nav-badge { position: static; margin-left: 2px; }
  .adm-main { padding: 14px 12px 32px; }
  .adm-head h1 { font-size: 21px; }
  .kpi-v { font-size: 19px; }
  .coltabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; scrollbar-width: none; }
  .coltabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--field); background: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .coltabs button b { min-width: 20px; padding: 0 5px; border-radius: 9px; background: #efebe6; font-size: 11.5px; text-align: center; }
  .coltabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
  .coltabs button.on b { background: #fff; color: var(--ink); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .col { display: none; background: none; border-top: 0; padding: 0; min-height: 0; }
  .col.cur { display: block; }
  .col-h { display: none; }
  .mrow { display: flex; flex-wrap: wrap; gap: 8px 10px; }
  .mrow-art { width: 46px; height: 46px; }
  .mrow-main { flex: 1 1 calc(100% - 60px); min-width: 0; }
  .mrow .price-in { margin-left: 56px; }
  .mrow .icon-btn { margin-left: auto; }
  .rr-acts { justify-content: flex-start; margin-left: 0; }
  .adm-days .day { flex-basis: 82px; }
  .drow { flex-direction: column; align-items: flex-start; }
  .drawer { width: 100%; }
  .tbl th, .tbl td { padding: 8px 6px; }
  .inv-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Viewport layouts ---------- */
@media (max-width: 1179px) {
  .vs-both { display: none; }
}
@media (max-width: 900px) {
  .db-by { display: none; }
  .db-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .db-btn { width: 36px; padding: 0; justify-content: center; }
  .hide-sm { display: none; }
}
@media (max-width: 699px) {
  .demobar { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 7px 10px 8px; }
  .db-id { gap: 8px; }
  .db-logo { width: 26px; height: 26px; }
  .db-name { font-size: 14px; }
  .demo-pill { font-size: 11px; padding: 4px 8px; }
  .db-id { grid-column: 1 / -1; }
  .viewswitch { grid-column: 1; grid-row: 2; margin: 0; justify-self: start; }
  .vs-btn { height: 32px; padding: 0 10px; font-size: 13px; }
  .vs-btn .ic { width: 16px; height: 16px; }
  .db-actions { grid-column: 2; grid-row: 2; }
  .db-actions { gap: 4px; }
  .hide-m { display: none; }
  .db-btn { height: 32px; width: 32px; }
  .stage { padding: 0; gap: 0; min-height: 0; }
  .pane-app, .pane-admin { width: 100%; }
  .pane-cap { display: none; }
  .phone { width: 100%; height: calc(100dvh - var(--bar)); min-height: 480px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .phone::before, .phone-btn { display: none; }
  .phone-screen { border-radius: 0; }
  .app-chrome { display: none; }
  .browser { height: calc(100dvh - var(--bar)); min-height: 480px; border: 0; border-radius: 0; box-shadow: none; }
  .browser-bar { display: none; }
}
@media (max-width: 520px) {
  .inv-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
  .demo-pill { font-size: 10.5px; }
}
@media (min-width: 700px) {
  .app-tabs { padding-bottom: 16px; }
  .app-toasts { top: 92px; }
  .app::after { content: ""; position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 120px; height: 4px; border-radius: 3px; background: #1c1917; opacity: .85; z-index: 50; pointer-events: none; }
  .app.no-tabs .paybar { padding-bottom: 22px; }
  .app.no-tabs .app-scroll:last-child { padding-bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print: only the invoice ---------- */
@media print {
  body > * { display: none !important; }
  body.printing #print-root { display: block !important; padding: 12mm; }
  body { background: #fff; }
}
