/*
 | Restaurant POS — web interface styles.
 |
 | Everything visual is driven by the tokens in :root. To restyle the app, change the tokens;
 | to restyle one restaurant, override them on <html> (see layouts/app.blade.php).
 |
 | Type: DM Sans throughout: the interface, figures on tickets and printed bills. Figures use
 | tabular numerals so columns of amounts line up.
 */

@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap;
  src: url("../fonts/dm-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap;
  src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap;
  src: url("../fonts/dm-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap;
  src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap;
  src: url("../fonts/dm-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Surfaces: the cool grey of a steel pass, white for anything you work on. */
  --bg: #EEF1F2;
  --surface: #FFFFFF;
  --surface-sunken: #F6F8F8;
  --line: #D5DBDE;
  --line-strong: #B4BEC3;

  --ink: #17212A;
  --ink-soft: #46535E;
  --ink-faint: #6B7882;

  /* One accent: curry-leaf green. Used for the primary action on a screen and for "you are here". */
  --accent: #1F6F4A;
  --accent-strong: #175538;
  --accent-wash: #E3F0E9;
  --on-accent: #FFFFFF;

  /* The rail the navigation sits on. */
  --rail: #14241C;
  --rail-ink: #C9D6CE;
  --rail-ink-strong: #FFFFFF;
  --rail-active: #24402F;

  /* Status. Always paired with a word, never colour alone. */
  --ok: #1F7A47;        --ok-wash: #E1F2E7;
  --wait: #8A5A00;      --wait-wash: #FBEFCF;
  --busy: #2C4FA8;      --busy-wash: #E3EAFA;
  --bill: #6B3FA0;      --bill-wash: #EEE5F8;
  --stop: #B3261E;      --stop-wash: #FBE4E2;
  --idle: #55626C;      --idle-wash: #E8ECEE;

  --paper: #FFFEFA;     /* thermal ticket paper */

  --radius: 6px;
  --radius-sm: 4px;
  --rail-width: 232px;
  --rail-width-collapsed: 60px;
  --topbar-height: 56px;
  --control-height: 38px;
  --gap: 16px;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  --font-mono: "DM Sans", system-ui, "Segoe UI", sans-serif;   /* same face; figures switch to tabular numerals */
  --overlay-shadow: 0 12px 40px rgba(16, 28, 22, .22), 0 2px 6px rgba(16, 28, 22, .12);
}

:root[data-theme="dark"] {
  --bg: #10171A;
  --surface: #182226;
  --surface-sunken: #131B1F;
  --line: #2B383E;
  --line-strong: #3D4C53;
  --ink: #E9EEF0;
  --ink-soft: #B4C0C6;
  --ink-faint: #8A979E;
  --accent: #4FB383;
  --accent-strong: #6CC79A;
  --accent-wash: #1B3328;
  --on-accent: #0B1611;
  --rail: #0C1310;
  --rail-active: #1D3226;
  --ok: #63C28D;   --ok-wash: #163024;
  --wait: #E3B341; --wait-wash: #33290F;
  --busy: #8FA9EE; --busy-wash: #18233F;
  --bill: #BF9BEA; --bill-wash: #2A1D3D;
  --stop: #F08A82; --stop-wash: #3A1917;
  --idle: #A3B0B7; --idle-wash: #222D32;
  --paper: #F4F1E6;
  --overlay-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}

:root[data-density="compact"] { --control-height: 32px; --gap: 12px; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-variant-numeric: tabular-nums; color: var(--ink); background: var(--bg); line-height: 1.45; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 1.467rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.133rem; line-height: 1.3; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
[x-cloak] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-faint); }
.soft { color: var(--ink-soft); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- Shell */

.shell { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .16s ease; }
.rail-collapsed .shell { grid-template-columns: var(--rail-width-collapsed) minmax(0, 1fr); }

.rail { background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.rail-head { height: var(--topbar-height); display: flex; align-items: center; gap: 10px; padding: 0 14px; flex: none; }
.rail-logo { width: 32px; height: 32px; border-radius: var(--radius); background: var(--rail-active); color: var(--rail-ink-strong); display: grid; place-items: center; font-weight: 700; flex: none; overflow: hidden; }
.rail-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rail-name { color: var(--rail-ink-strong); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 6px 8px 12px; scrollbar-width: thin; scrollbar-color: #2f4a3a transparent; }
.rail-group { margin: 14px 8px 4px; font-size: .8rem; color: #7f9488; white-space: nowrap; }
.rail-link { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: var(--radius); color: var(--rail-ink); text-decoration: none; white-space: nowrap; position: relative; }
.rail-link:hover { background: rgba(255, 255, 255, .07); color: var(--rail-ink-strong); }
.rail-link[aria-current="page"] { background: var(--rail-active); color: var(--rail-ink-strong); font-weight: 700; }
.rail-link[aria-current="page"]::before { content: ""; position: absolute; left: -8px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #7FD3A6; }
.rail-link:focus-visible { outline-color: #7FD3A6; }
.rail-foot { padding: 8px; border-top: 1px solid rgba(255, 255, 255, .08); flex: none; }
.rail-toggle { width: 100%; background: none; border: 0; cursor: pointer; }

/* Collapsed: icons only. Labels stay in the DOM for screen readers and appear as tooltips. */
.rail-collapsed .rail-name, .rail-collapsed .rail-group, .rail-collapsed .rail-label { display: none; }
.rail-collapsed .rail-head { padding: 0; justify-content: center; }
.rail-collapsed .rail-link { justify-content: center; padding: 0; }
.rail-collapsed .rail-link[aria-current="page"]::before { left: -8px; }
.rail-collapsed .rail-group-gap { height: 1px; margin: 8px 10px; background: rgba(255, 255, 255, .1); }
.rail-group-gap { display: none; }
.rail-collapsed .rail-group-gap { display: block; }
.rail-collapsed .rail { overflow: visible; }
.rail-collapsed .rail-nav { overflow: visible; }
.rail-collapsed .rail-link:hover::after, .rail-collapsed .rail-link:focus-visible::after {
  content: attr(data-label); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); z-index: 60;
  background: var(--ink); color: var(--surface); padding: 5px 9px; border-radius: var(--radius-sm); font-size: .867rem; font-weight: 400; white-space: nowrap; pointer-events: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: var(--topbar-height); background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 20px; position: sticky; top: 0; z-index: 30; }
.topbar-search { flex: 1; max-width: 440px; position: relative; }
.topbar-search .input { padding-left: 34px; background: var(--surface-sunken); }
.topbar-search > .icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--overlay-shadow); max-height: 70vh; overflow: auto; padding: 6px; z-index: 50; }
.search-group { font-size: .8rem; color: var(--ink-faint); padding: 8px 8px 2px; }
.search-hit { display: flex; justify-content: space-between; gap: 12px; padding: 7px 8px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.search-hit:hover, .search-hit:focus-visible { background: var(--accent-wash); color: var(--ink); }
.topbar-spacer { flex: 1; }
.content { padding: 22px 24px 48px; width: 100%; max-width: 1480px; }
.content-wide { max-width: none; }
.content-flush { padding: 0; max-width: none; }
.content-flush > .banner { margin: 12px 16px; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { color: var(--ink-soft); margin-top: 3px; max-width: 70ch; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius); border: 1px solid; margin-bottom: 16px; }
.banner-warn { background: var(--wait-wash); border-color: color-mix(in srgb, var(--wait) 35%, transparent); color: var(--wait); }
.banner-stop { background: var(--stop-wash); border-color: color-mix(in srgb, var(--stop) 35%, transparent); color: var(--stop); }
.banner-info { background: var(--busy-wash); border-color: color-mix(in srgb, var(--busy) 30%, transparent); color: var(--busy); }
.banner-ok { background: var(--ok-wash); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.banner a { color: inherit; font-weight: 700; }

/* ---------------------------------------------------------------- Controls */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: var(--control-height); padding: 0 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-sunken); color: var(--ink); border-color: var(--ink-faint); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn-danger { background: var(--surface); border-color: color-mix(in srgb, var(--stop) 55%, transparent); color: var(--stop); }
.btn-danger:hover { background: var(--stop-wash); color: var(--stop); border-color: var(--stop); }
.btn-danger-solid { background: var(--stop); border-color: var(--stop); color: #fff; }
.btn-danger-solid:hover { background: color-mix(in srgb, var(--stop) 85%, #000); color: #fff; }
.btn-quiet { border-color: transparent; background: transparent; font-weight: 400; }
.btn-quiet:hover { background: var(--idle-wash); border-color: transparent; }
.btn-sm { height: 30px; padding: 0 10px; font-size: .933rem; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 1.067rem; }
.btn-block { width: 100%; }
.btn-icon { width: var(--control-height); padding: 0; }
.btn-sm.btn-icon { width: 30px; }
.btn[wire\:loading], .is-busy { position: relative; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-weight: 700; font-size: .933rem; }
.field .hint { color: var(--ink-faint); font-size: .867rem; }
.field .error, .error-text { color: var(--stop); font-size: .867rem; }
.optional { font-weight: 400; color: var(--ink-faint); }
.input, .select, .textarea { width: 100%; height: var(--control-height); padding: 0 11px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.textarea { height: auto; padding: 9px 11px; min-height: 76px; resize: vertical; }
.select { padding-right: 30px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7882' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-faint); }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--stop); }
.input:disabled, .select:disabled { background: var(--surface-sunken); color: var(--ink-faint); }
.input-group { display: flex; gap: 8px; }
.input-group > .input { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 28px; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px var(--gap); }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: var(--gap); align-items: center; flex-wrap: wrap; }
.row-tight { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- Panels, tables */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-body { padding: 16px; }
.panel-foot { padding: 10px 16px; border-top: 1px solid var(--line); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.toolbar .input, .toolbar .select { width: auto; min-width: 150px; }
.toolbar .grow-input { flex: 1; min-width: 180px; max-width: 360px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-weight: 700; font-size: .867rem; color: var(--ink-soft); padding: 9px 14px; border-bottom: 1px solid var(--line); background: var(--surface-sunken); white-space: nowrap; }
.table td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: color-mix(in srgb, var(--accent-wash) 45%, transparent); }
.table .right { text-align: right; }
.table tfoot td { font-weight: 700; background: var(--surface-sunken); border-top: 1px solid var(--line-strong); border-bottom: 0; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions .btn { margin-left: 4px; }
:root[data-density="compact"] .table td, :root[data-density="compact"] .table th { padding: 6px 12px; }
.cell-title { font-weight: 700; }
.cell-sub { color: var(--ink-faint); font-size: .867rem; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--idle-wash); color: var(--idle); }
.badge-ok { background: var(--ok-wash); color: var(--ok); }
.badge-wait { background: var(--wait-wash); color: var(--wait); }
.badge-busy { background: var(--busy-wash); color: var(--busy); }
.badge-bill { background: var(--bill-wash); color: var(--bill); }
.badge-stop { background: var(--stop-wash); color: var(--stop); }
.food-mark { display: inline-block; width: 12px; height: 12px; border: 1.5px solid; border-radius: 2px; position: relative; flex: none; }
.food-mark::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.food-veg { color: #1F7A47; } .food-non_veg { color: #A8321F; } .food-egg { color: #B7791F; }

.empty { text-align: center; padding: 44px 20px; color: var(--ink-soft); }
.empty .icon { width: 30px; height: 30px; color: var(--ink-faint); margin-bottom: 8px; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .933rem; flex-wrap: wrap; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 9px 14px; border: 0; background: none; cursor: pointer; color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; }
.dl dt { color: var(--ink-faint); }
.dl dd { margin: 0; }

/* ---------------------------------------------------------------- Overlays */

.modal-backdrop { position: fixed; inset: 0; background: rgba(12, 20, 16, .5); z-index: 80; display: grid; place-items: start center; padding: 6vh 16px 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 8px; box-shadow: var(--overlay-shadow); width: 100%; max-width: 560px; }
.modal-sm { max-width: 420px; } .modal-lg { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--radius); background: var(--ink); color: var(--surface); box-shadow: var(--overlay-shadow); }
.toast-error { background: var(--stop); color: #fff; }
.toast-success .icon { color: #7FD3A6; }

.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--overlay-shadow); padding: 5px; z-index: 50; }
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: var(--radius-sm); cursor: pointer; text-align: left; color: var(--ink); text-decoration: none; }
.menu-item:hover { background: var(--idle-wash); color: var(--ink); }
.menu-note { padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* ---------------------------------------------------------------- Dashboard */

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.figure { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.figure-label { color: var(--ink-soft); font-size: .933rem; }
.figure-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.figure-note { color: var(--ink-faint); font-size: .867rem; margin-top: 2px; }
.figure-lead .figure-value { font-size: 2.133rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--gap); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 170px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.bar-fill { width: 100%; max-width: 54px; min-height: 2px; background: var(--accent); border-radius: 3px 3px 0 0; }
.bar-today .bar-fill { background: var(--accent-strong); }
.bar-value { font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bar-label { font-size: .8rem; color: var(--ink-faint); }
.split-list { display: flex; flex-direction: column; }
.split-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.split-row:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- Floor (tables) */

.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.table-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 96px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; text-decoration: none; border-left-width: 5px; }
.table-tile:hover { border-color: var(--ink-faint); color: var(--ink); }
.table-tile-name { font-weight: 700; font-size: 1.133rem; }
.table-tile { padding: 0; overflow: hidden; }
.table-tile-main { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; flex: 1; padding: 10px 12px 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; min-height: 66px; }
.table-tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0 8px 8px 12px; min-height: 30px; }
.table-tile-print { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.table-tile-print:hover { background: var(--ink); color: var(--surface); }
.seat-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; font-size: .733rem; font-weight: 700; background: var(--surface-sunken); color: var(--ink-soft); border: 1px solid var(--line); vertical-align: middle; }
.seat-tag.is-ac { background: #E4EEF8; color: #1F4E7A; border-color: #B9D0E6; }
.table-tile-meta { font-size: .867rem; color: var(--ink-soft); }
.table-tile.is-available { border-left-color: var(--ok); }
.table-tile.is-occupied { border-left-color: var(--busy); background: var(--busy-wash); }
.table-tile.is-waiting { border-left-color: var(--wait); background: var(--wait-wash); }
.table-tile.is-billing { border-left-color: var(--bill); background: var(--bill-wash); }
.table-tile.is-reserved { border-left-color: var(--idle); background: var(--idle-wash); }
.table-tile.is-cleaning { border-left-color: var(--line-strong); background: var(--surface-sunken); color: var(--ink-faint); }
.table-tile.is-selected { outline: 2px solid var(--accent); outline-offset: 1px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-soft); font-size: .867rem; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------------------------------------------------------------- POS */

.pos { display: grid; grid-template-columns: 168px minmax(0, 1fr) 380px; gap: 0; height: calc(100vh - var(--topbar-height)); background: var(--surface); }
.pos-cats { border-right: 1px solid var(--line); overflow-y: auto; padding: 10px 8px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-sunken); }
.pos-cat { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 0; border-radius: var(--radius); background: none; cursor: pointer; text-align: left; }
.pos-cat:hover { background: var(--idle-wash); }
.pos-cat[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.pos-cat-count { font-size: .8rem; opacity: .75; }
.pos-items { display: flex; flex-direction: column; min-width: 0; }
.pos-items-head { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.pos-grid { flex: 1; overflow-y: auto; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; align-content: start; }
.pos-item { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 84px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; text-align: left; }
.pos-item:hover { border-color: var(--accent); background: var(--accent-wash); }
.pos-item:active { transform: translateY(1px); }
.pos-item:disabled { opacity: .45; cursor: not-allowed; }
.pos-item-name { font-weight: 700; line-height: 1.25; display: flex; gap: 6px; align-items: baseline; }
.pos-item-price { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.pos-cart { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.pos-cart-head { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.seg button { height: 34px; border: 0; background: var(--surface); cursor: pointer; border-right: 1px solid var(--line-strong); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); font-weight: 700; }
.pos-cart-body { flex: 1; overflow-y: auto; padding: 12px; }
.pos-cart-foot { background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-cart-foot .wide { grid-column: 1 / -1; }
.kbd { font-family: var(--font-mono); font-size: .733rem; border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; opacity: .7; line-height: 1.5; }

/* The running order is drawn as the ticket it will become. This is the one decorative idea in the app. */
.ticket { background: var(--paper); color: #1b1b1b; font-family: var(--font-mono); font-size: .867rem; line-height: 1.5; padding: 14px 14px 18px; border: 1px solid #d9d6c8; border-bottom: 0; position: relative; }
.ticket::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -7px; height: 8px;
  background: linear-gradient(135deg, var(--paper) 5px, transparent 0) 0 0 / 10px 8px repeat-x, linear-gradient(225deg, var(--paper) 5px, transparent 0) 0 0 / 10px 8px repeat-x; filter: drop-shadow(0 1px 0 #d9d6c8); }
.ticket-title { text-align: center; font-weight: 600; }
.ticket-rule { border: 0; border-top: 1px dashed #8d8a7c; margin: 8px 0; }
.ticket-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; }
.ticket-line + .ticket-line { margin-top: 6px; }
.ticket-item { font-weight: 600; overflow-wrap: anywhere; }
.ticket-sub { grid-column: 1 / -1; color: #55524a; font-size: .8rem; }
.ticket-qty { display: inline-flex; align-items: center; gap: 4px; }
.ticket-qty button:not(.btn) { width: 26px; height: 26px; border: 1px solid #8d8a7c; background: transparent; border-radius: 4px; cursor: pointer; font-family: inherit; line-height: 1; color: inherit; }
.ticket-qty button:not(.btn):hover { background: #ebe7d7; }
.ticket-total { display: flex; justify-content: space-between; gap: 10px; }
.ticket-grand { font-size: 1.133rem; font-weight: 600; }
.ticket-status { font-size: .733rem; border: 1px solid #8d8a7c; border-radius: 3px; padding: 0 4px; margin-left: 6px; white-space: nowrap; }
.ticket-struck .ticket-item, .ticket-struck .ticket-amount { text-decoration: line-through; color: #8d8a7c; }
.ticket-empty { text-align: center; color: #6f6c61; padding: 22px 6px; }

/* ---------------------------------------------------------------- Kitchen display */

.kds { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.kds-col { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius); min-height: 60vh; }
.kds-col-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700; position: sticky; top: 0; }
.kds-col-body { padding: 10px; display: flex; flex-direction: column; gap: 14px; }
.kds-ticket { cursor: default; }
.kds-ticket .ticket { font-size: .933rem; border-top-width: 4px; }
.kds-ticket.is-new .ticket { border-top-color: var(--stop); }
.kds-ticket.is-preparing .ticket { border-top-color: #E0A100; }
.kds-ticket.is-ready .ticket { border-top-color: var(--ok); }
.kds-ticket.is-served .ticket { border-top-color: #8d8a7c; opacity: .75; }
.kds-ticket.is-late .kds-age { background: var(--stop); color: #fff; border-color: var(--stop); }
.kds-age { border: 1px solid #8d8a7c; border-radius: 3px; padding: 0 5px; }
.kds-qty { font-weight: 600; min-width: 2.2em; display: inline-block; }
.kds-actions { display: flex; gap: 6px; margin-top: 12px; }
.kds-actions .btn { flex: 1; font-family: var(--font); }
.kds-item-done { color: #6f6c61; text-decoration: line-through; }

/* ---------------------------------------------------------------- Guest pages and the wizard */

.guest { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 440px) 1fr; }
.guest-form { background: var(--surface); padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 20px; border-right: 1px solid var(--line); }
.guest-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.133rem; }
.guest-brand .rail-logo { background: var(--rail); }
.guest-side { background: var(--rail); color: var(--rail-ink); display: grid; place-items: center; padding: 40px; }
.guest-side .ticket { width: min(340px, 100%); transform: rotate(-1.5deg); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.guest-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .933rem; }

.wizard { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; counter-reset: step; }
.step { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius); cursor: pointer; border: 0; background: none; width: 100%; text-align: left; color: var(--ink-soft); }
.step:hover { background: var(--idle-wash); }
.step::before { counter-increment: step; content: counter(step); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; }
.step.is-done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
.step.is-current { background: var(--surface); color: var(--ink); font-weight: 700; border: 1px solid var(--line); }
.step.is-current::before { border-color: var(--accent); color: var(--accent); }
.step-optional { font-weight: 400; font-size: .8rem; color: var(--ink-faint); margin-left: auto; }
.progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }

.logo-drop { display: flex; gap: 16px; align-items: center; }
.logo-preview { width: 96px; height: 96px; border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; place-items: center; background: var(--surface-sunken); overflow: hidden; color: var(--ink-faint); flex: none; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }

/* ---------------------------------------------------------------- Management screens */

.input-group > span { align-self: center; color: var(--ink-soft); white-space: nowrap; }
.seg button { padding: 0 12px; white-space: nowrap; }

fieldset.plain { border: 0; margin: 0; min-width: 0; }
fieldset.plain:disabled { opacity: .75; }
fieldset.choices { border: 1px solid var(--line); border-radius: var(--radius); margin: 0; padding: 10px 14px 12px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
fieldset.choices > legend { font-weight: 700; font-size: .933rem; padding: 0 6px; margin-left: -6px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; }
.hint { color: var(--ink-faint); font-size: .867rem; }

.report-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.report-menu { padding: 6px; position: sticky; top: 12px; }
.report-menu-group { color: var(--ink-faint); font-size: .8rem; font-weight: 700; padding: 10px 10px 4px; }
.report-menu-item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: var(--radius); cursor: pointer; color: var(--ink); }
.report-menu-item:hover { background: var(--surface-sunken); }
.report-menu-item[aria-current="true"] { background: var(--accent-wash, var(--surface-sunken)); color: var(--accent); font-weight: 700; }
.is-loading { opacity: .55; transition: opacity .12s; }
.topbar > .soft.row-tight { white-space: nowrap; }

.audit-detail { background: var(--surface-sunken); }
.two-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.audit-detail .dl dd { overflow-wrap: anywhere; }

.tick-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.tick-list li { display: flex; align-items: center; gap: 8px; }
.tick-list li .icon { color: var(--ok); }
.tick-list li.is-off, .tick-list li.is-off .icon { color: var(--ink-faint); }
.check-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; align-items: start; }
.check-row .badge { justify-content: center; }
.figures-compact { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.figures-compact .figure { padding: 10px 12px; }
.figures-compact .figure-value { font-size: 1.2rem; }

/* ---------------------------------------------------------------- Analytics */

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--gap); }
.filters .select, .filters .input { width: auto; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi { background: var(--surface); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-label { color: var(--ink-soft); font-size: .933rem; }
.kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.15; font-variant-numeric: proportional-nums; overflow-wrap: anywhere; }
.kpi:first-child .kpi-value { font-size: 2rem; }
.kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-height: 30px; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: .867rem; font-weight: 700; color: var(--ink-soft); }
.delta.is-good { color: var(--ok); }
.delta.is-bad { color: var(--stop); }
.spark { width: 96px; height: 26px; flex: none; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.viz { position: relative; }
.viz svg { display: block; width: 100%; height: auto; overflow: visible; }
.viz-grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.viz-tick { fill: var(--ink-faint); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.viz-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-line.cur { stroke: var(--accent); }
.viz-line.prev { stroke: var(--viz-previous, #A3ABB0); }
.viz-area { fill: var(--accent); opacity: .1; }
.viz-dot, .viz-hover-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.viz-cross { stroke: var(--ink-faint); stroke-width: 1; opacity: 0; shape-rendering: crispEdges; }
.viz-cross.on { opacity: 1; }
.viz-hover-dot { opacity: 0; pointer-events: none; }
.viz-hover-dot.on { opacity: 1; }
.viz-hit, .viz-hit-col { fill: transparent; cursor: crosshair; outline: none; }
.viz-hit:focus-visible { stroke: var(--accent); stroke-width: 2; }
.viz-col { fill: var(--accent); }
.viz-hit-col { cursor: default; }
.viz-hit-col:hover { fill: var(--accent); fill-opacity: .06; }
.viz-legend { display: flex; gap: 16px; font-size: .867rem; color: var(--ink-soft); margin-bottom: 6px; }
.viz-legend span { display: inline-flex; align-items: center; gap: 6px; }
.key-line { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--accent); vertical-align: middle; flex: none; }
.key-line.prev { border-top-color: var(--viz-previous, #A3ABB0); }
.viz-tooltip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(15, 35, 25, .14); padding: 8px 10px; font-size: .867rem; min-width: 150px; }
.viz-tooltip-title { color: var(--ink-soft); margin-bottom: 4px; }
.viz-tooltip-row { display: flex; align-items: center; gap: 8px; }
.viz-tooltip-row strong { font-variant-numeric: tabular-nums; }
.viz-tooltip-row span { color: var(--ink-soft); }
.viz-table { margin-top: 10px; }
.viz-table summary { cursor: pointer; color: var(--ink-soft); font-size: .933rem; }

.addup { margin: 0; display: flex; flex-direction: column; }
.addup-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.addup-row dt { display: flex; flex-direction: column; }
.addup-row dd { margin: 0; white-space: nowrap; }
.addup-row.is-total { font-weight: 700; border-bottom-color: var(--line-strong); }
.addup-row.is-aside { color: var(--ink-soft); }

.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbar-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.hbar-label { overflow-wrap: anywhere; }
.hbar-value { font-weight: 700; white-space: nowrap; }
.hbar-share { color: var(--ink-soft); font-weight: 400; margin-left: 8px; }
.hbar-track { height: 8px; margin-top: 4px; }
.hbar-fill { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.hbar-sub { color: var(--ink-faint); font-size: .8rem; margin-top: 2px; }

/* One hue, light to dark: more orders, darker cell. */
.heat { position: relative; --heat-0: var(--surface-sunken); --heat-1: #D7EDE1; --heat-2: #A6D3BA; --heat-3: #6BB18C; --heat-4: #3A8A61; --heat-5: #1B5E3E; }
.heat-grid { display: grid; grid-template-columns: 40px repeat(var(--hours), minmax(14px, 1fr)); gap: 2px; align-items: center; }
.heat-hour { font-size: .733rem; color: var(--ink-faint); text-align: left; white-space: nowrap; overflow: visible; height: 16px; }
.heat-day { font-size: .8rem; color: var(--ink-soft); }
.heat-cell { display: block; height: 26px; border-radius: 3px; background: var(--heat-0); outline: none; }
.heat-cell[data-tip] { cursor: default; }
.heat-cell[data-tip]:hover, .heat-cell:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.heat-cell.s1 { background: var(--heat-1); } .heat-cell.s2 { background: var(--heat-2); } .heat-cell.s3 { background: var(--heat-3); }
.heat-cell.s4 { background: var(--heat-4); } .heat-cell.s5 { background: var(--heat-5); }
.heat-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: .8rem; color: var(--ink-soft); }
.heat-legend .heat-cell { width: 18px; height: 12px; }
.heat-legend span:first-child { margin-right: 4px; } .heat-legend span:last-child { margin-left: 4px; }
:root[data-theme="dark"] .heat { --heat-1: #1D3A2C; --heat-2: #24573F; --heat-3: #2F7A55; --heat-4: #4FA57A; --heat-5: #8AD1AB; }
:root[data-theme="dark"] { --viz-previous: #6E777C; }

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1180px) {
  .pos { grid-template-columns: 132px minmax(0, 1fr) 340px; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell, .rail-collapsed .shell { grid-template-columns: var(--rail-width-collapsed) minmax(0, 1fr); }
  .rail-name, .rail-group, .rail-label { display: none; }
  .rail-head { padding: 0; justify-content: center; }
  .rail-link { justify-content: center; padding: 0; }
  .rail-foot { display: none; }
  .content { padding: 16px 14px 40px; }
  .topbar { padding: 0 12px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .report-layout, .two-even { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px; }
  .kpi-value, .kpi:first-child .kpi-value { font-size: 1.2rem; overflow-wrap: normal; white-space: nowrap; }
  .kpi-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .spark { width: 100%; max-width: 120px; }
  .heat-grid { grid-template-columns: 34px repeat(var(--hours), minmax(9px, 1fr)); }
  .heat-hour { font-size: .6rem; }
  .topbar > .soft.row-tight { display: none; }
  .report-menu { position: static; display: flex; flex-wrap: wrap; gap: 2px; }
  .report-menu-group { width: 100%; }
  .report-menu-item { width: auto; }
  .wizard { grid-template-columns: 1fr; }
  .steps { flex-direction: row; overflow-x: auto; }
  .step { width: auto; white-space: nowrap; }
  .step-optional { display: none; }
  .guest { grid-template-columns: 1fr; }
  .guest-side { display: none; }
  .guest-form { padding: 28px 20px; border-right: 0; }
  .pos { grid-template-columns: 1fr; height: auto; }
  .pos-cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .pos-cat { white-space: nowrap; }
  .pos-grid { max-height: 46vh; }
  .pos-cart { border-left: 0; border-top: 1px solid var(--line); }
  .kds { grid-template-columns: repeat(4, 82vw); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- Thermal printing
 | Bills and kitchen tickets print at the roll width (58 mm or 80 mm), straight from the browser's
 | print command with no on-screen preview step. They are set in DM Sans like the rest of the app,
 | at medium weight because thin strokes print faint on a thermal head; the size is a setting.
 */
.receipt { --receipt-font: "DM Sans", "Segoe UI", Arial, sans-serif; --receipt-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; width: 72mm; margin: 0 auto; padding: 2mm 0;
  font-family: var(--receipt-font); font-size: var(--receipt-size); line-height: 1.35; color: #000; background: #fff; }
.receipt.w58 { width: 48mm; }
.receipt.size-small { --receipt-size: 10.5px; } .receipt.size-large { --receipt-size: 13.5px; }
.receipt * { font-family: inherit; }
.receipt .c { text-align: center; } .receipt .r { text-align: right; } .receipt .b { font-weight: 700; }
.receipt .big { font-size: 1.35em; font-weight: 700; }
.receipt .rule { border: 0; border-top: 1px dashed #000; margin: 1.5mm 0; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td, .receipt th { padding: .4mm 0; vertical-align: top; text-align: left; font-weight: inherit; }
.receipt th { border-bottom: 1px dashed #000; }
.receipt td.r, .receipt th.r { text-align: right; white-space: nowrap; padding-left: 1.5mm; }
.receipt .logo { max-width: 34mm; max-height: 22mm; display: block; margin: 0 auto 1.5mm; filter: grayscale(1) contrast(1.4); }
.receipt .kot-item { font-size: 1.2em; font-weight: 700; }
.print-only { display: none; }

@media print {
  @page { margin: 0; }
  html, body { background: #fff !important; }
  body > *:not(.print-only), .shell, .toasts, .modal-backdrop { display: none !important; }
  .print-only { display: block !important; }
  .receipt { margin: 0; padding: 0 2mm 6mm; }
}
:root[data-theme="dark"] .seat-tag.is-ac { background: #1C3246; color: #A9CBEB; border-color: #2D4D6B; }
