:root {
  --accent: #E0602B;
  --accent-ink: #B9461A;
  --accent-soft: #FCE9E0;
  --navy: #0F2739;
  --ink: #0F2739;
  --muted: #4A5D72;
  --paper: #FAF7F2;
  --card: #FFFFFF;
  --line: rgba(15, 39, 57, .08);
  --line-2: rgba(15, 39, 57, .14);
  --shadow: 0 1px 2px rgba(15, 39, 57, .05);
  --shadow-lg: 0 16px 48px rgba(15, 39, 57, .18);
  --green: #1F7A4D; --green-bg: #E3F3EA;
  --amber: #9A5B00; --amber-bg: #FDF0D5;
  --red: #B42318; --red-bg: #FDE6E4;
  --blue: #1D5C99; --blue-bg: #E2EDF8;
  --grey: #4A5D72; --grey-bg: #EEF1F4;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --r: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/24px Manrope, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--ink); background: var(--paper); overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
h3 { font-size: 17px; line-height: 24px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.ic { flex: none; display: block; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; line-height: 16px; }
.accent { color: var(--accent-ink); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.r { text-align: right; }
.center { text-align: center; display: flex; justify-content: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.err { color: var(--red); background: var(--red-bg); border-radius: 12px; padding: 8px 12px; font-weight: 600; font-size: 14px; }
.grow { flex: 1 1 240px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .15s var(--ease), background-color .15s, box-shadow .15s, opacity .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(224, 96, 43, .3); }
.btn-primary:hover:not(:disabled) { background: var(--accent-ink); }
.btn-ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { background: var(--paper); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #1b3a52; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #8f1c13; }
.danger-text { color: var(--red) !important; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 52px; font-size: 16px; }
.btn-xl { min-height: 56px; font-size: 17px; width: 100%; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); transition: background-color .15s, color .15s; }
.icon-btn:hover:not(:disabled) { background: rgba(15, 39, 57, .06); color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
.link:hover { text-decoration: underline; }
.link.sm { font-size: 13px; min-height: 28px; }

/* Pills, chips */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.pill-green { color: var(--green); background: var(--green-bg); }
.pill-amber { color: var(--amber); background: var(--amber-bg); }
.pill-red { color: var(--red); background: var(--red-bg); }
.pill-blue { color: var(--blue); background: var(--blue-bg); }
.pill-grey { color: var(--grey); background: var(--grey-bg); }
.pill-accent { color: var(--accent-ink); background: var(--accent-soft); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips.scroll-x::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(15, 39, 57, .08); font-size: 12px; }
.chip.active .chip-n, .seg-btn.active .chip-n { background: rgba(255, 255, 255, .2); }

/* Layout */
.layout { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 24px 16px 16px; z-index: 40; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 24px; }
.brand b { display: block; font-size: 16px; line-height: 20px; }
.brand small { color: rgba(255, 255, 255, .6); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: rgba(255, 255, 255, .78); font-weight: 600; border: 0; background: none; width: 100%; text-align: left; transition: background-color .15s, color .15s; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active { background: var(--accent); color: #fff; }
.side-foot { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.me { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.me b { display: block; font-size: 14px; line-height: 20px; }
.me small { color: rgba(255, 255, 255, .6); font-size: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.demo-by { font-size: 12px; color: rgba(255, 255, 255, .45); padding: 0 8px; }
.settings .demo-by, .demo-by.center { color: var(--muted); }
.main { flex: 1; margin-left: 248px; min-width: 0; display: flex; flex-direction: column; }
.strip { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 4px 48px 4px 16px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; position: relative; min-height: 36px; text-align: center; flex-wrap: wrap; }
.strip .link { font-size: 13px; text-decoration: underline; min-height: 28px; }
.strip-x { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--accent-ink); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.strip-x:hover { background: rgba(224, 96, 43, .12); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 12px 32px; min-height: 72px; background: rgba(250, 247, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 24px; line-height: 32px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hamburger { display: none; margin-left: -8px; color: var(--ink); }
.top-right { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.user-chip span { font-weight: 600; font-size: 14px; }
.user-chip small { color: var(--muted); font-size: 12px; }
.content { padding: 24px 32px 48px; display: flex; flex-direction: column; gap: 24px; max-width: 1440px; width: 100%; }
.scrim { display: none; }
.show-sm { display: none; }
.show-xs { display: none; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; min-width: 0; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.card-head .muted { font-size: 14px; line-height: 20px; margin-top: 2px; }
.card-head.pad { padding: 24px 24px 0; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; }
.kpi-label { color: var(--muted); font-weight: 600; font-size: 13px; }
.kpi-val { font-size: 26px; line-height: 34px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 13px; line-height: 18px; }
.kpi small.up { color: var(--green); }
.kpi small.down { color: var(--red); }
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.grid-1-1 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.now-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 8px; margin: 0 -8px; border-radius: 12px; transition: background-color .15s; }
.now-row:hover { background: var(--paper); }
.now-row span:nth-child(2) { flex: 1; }
.now-row b { font-size: 20px; font-variant-numeric: tabular-nums; }
.now-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.sub-h { font-size: 13px; color: var(--muted); font-weight: 600; margin: 16px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.pay-row { display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--line); }
.pay-row:last-child { border-bottom: 0; }
.pay-row > span:first-child { flex: 1; font-weight: 600; }
.pay-row small { color: var(--muted); font-size: 13px; }
.pay-row b { font-variant-numeric: tabular-nums; min-width: 104px; text-align: right; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.rank li:last-child { border-bottom: 0; }
.rank.compact li { min-height: 44px; padding: 8px 0; }
.rank.compact .rank-name { white-space: normal; line-height: 20px; }
.rank-no { width: 24px; color: var(--muted); font-weight: 700; text-align: center; flex: none; }
.rank li:first-child .rank-no { color: var(--accent-ink); }
.rank-name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-qty { color: var(--muted); font-size: 14px; white-space: nowrap; }
.rank b { min-width: 96px; text-align: right; }
.food { flex: none; display: block; }
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 12px; min-height: 56px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; padding: 0 8px; margin: 0 -8px; border-radius: 10px; transition: background-color .15s; }
.mini-row:hover { background: var(--paper); }
.mini-row:last-child { border-bottom: 0; }
.mini-no { font-weight: 700; color: var(--muted); font-size: 14px; width: 56px; }
.mini-main { flex: 1; min-width: 0; }
.mini-main b, .mini-main small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-main small { color: var(--muted); font-size: 13px; line-height: 18px; }
.mini-row > b { min-width: 96px; text-align: right; }

/* Chart */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .grid { stroke: rgba(15, 39, 57, .07); }
.chart .axis { fill: var(--muted); font-size: 12px; font-family: Manrope, sans-serif; }
.chart .cursor { stroke: rgba(15, 39, 57, .25); stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2.5px solid var(--accent); pointer-events: none; opacity: 0; transition: opacity .15s; }
.chart-tip { position: absolute; left: 0; top: 0; background: var(--navy); color: #fff; border-radius: 10px; padding: 6px 12px; pointer-events: none; opacity: 0; transition: opacity .15s; white-space: nowrap; box-shadow: var(--shadow-lg); }
.chart-tip b { display: block; font-size: 15px; line-height: 20px; }
.chart-tip span { font-size: 12px; color: rgba(255, 255, 255, .7); }

/* Toolbar, tables floor */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--green); } .dot-blue { background: var(--blue); } .dot-accent { background: var(--accent); } .dot-red { background: var(--red); }
.zone-h { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: -8px; }
.floor { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 16px; }
.table-card { position: relative; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 16px 20px; display: flex; flex-direction: column; gap: 8px; min-height: 148px; box-shadow: var(--shadow); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.table-card { padding: 16px; }
.table-card.st-free { border-color: rgba(31, 122, 77, .28); background: #F6FBF8; }
.table-card.st-ordering { border-color: rgba(29, 92, 153, .28); background: #F5F9FD; }
.table-card.st-eating { border-color: rgba(224, 96, 43, .30); background: #FFF8F4; }
.table-card.st-bill { border-color: rgba(180, 35, 24, .30); background: #FFF7F6; }
.table-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 39, 57, .1); }
.t-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.t-top b { font-size: 18px; }
.t-seats { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.t-info { display: flex; flex-direction: column; gap: 2px; margin-top: auto; font-size: 13px; line-height: 18px; }
.t-total { font-size: 18px; font-weight: 700; line-height: 24px; font-variant-numeric: tabular-nums; }
.t-k { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; margin-top: 2px; }
.k-new, .k-draft { color: var(--blue); } .k-cooking { color: var(--amber); } .k-ready { color: var(--green); } .k-served { color: var(--muted); }

/* Empty */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 48px 16px; color: var(--muted); }
.empty.small { padding: 24px 16px; }
.empty .ic { color: rgba(15, 39, 57, .3); }
.span-all { grid-column: 1 / -1; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea, .search input, .cat-row input, .cat-add input, .cat-add select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus, .cat-row input:focus, .cat-add input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(224, 96, 43, .15); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5D72' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field select:disabled { background-color: var(--paper); color: var(--muted); }
.field.inline { margin: 0; }
.field.inline.sm select { min-height: 36px; border-radius: 10px; font-size: 14px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 40px; }
.filters { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px; }
.filters .field.inline { flex: 0 1 180px; }
.filters .btn { flex: none; }
.r-period { align-self: flex-end; font-size: 14px; padding-bottom: 10px; }
.summary-line { display: flex; gap: 24px; align-items: center; color: var(--muted); font-size: 14px; margin: -8px 0; flex-wrap: wrap; }
.summary-line b { color: var(--ink); }
.summary-line .accent { color: var(--accent-ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 40px; height: 24px; border-radius: 999px; background: #CBD3DC; position: relative; transition: background-color .2s; flex: none; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--muted); }
.switch.big em { color: var(--ink); font-size: 15px; }

/* Data table */
.table-card-wrap { padding: 0; overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { position: sticky; top: 0; background: #FCFBF8; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); z-index: 1; }
.tbl th.r { text-align: right; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background-color .12s; }
.tbl tbody tr:hover { background: #FDFBF8; }
.tbl tbody tr[data-open] { cursor: pointer; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tfoot td { border-top: 2px solid var(--line-2); border-bottom: 0; background: #FCFBF8; }
.tbl td.act { white-space: nowrap; }
.tbl td.act .icon-btn { width: 40px; height: 40px; }
.scroll-y { max-height: 560px; overflow-y: auto; }
.dish { display: flex; align-items: center; gap: 12px; }

/* New order (POS) */
.page-new { padding-bottom: 24px; }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.pos-menu { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.item-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; box-shadow: var(--shadow); transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.item-card .food { width: 100%; height: auto; aspect-ratio: 1.45; }
.item-card:hover:not(:disabled) { border-color: var(--accent); box-shadow: 0 6px 18px rgba(15, 39, 57, .08); }
.item-card:active:not(:disabled) { transform: scale(.97); }
.item-card.pop { animation: pop .3s var(--ease); }
@keyframes pop { 40% { transform: scale(.95); } 100% { transform: scale(1); } }
.item-card.off { opacity: .5; cursor: not-allowed; }
.item-name { font-weight: 600; font-size: 14px; line-height: 20px; min-height: 40px; }
.item-price { font-weight: 700; color: var(--accent-ink); font-size: 14px; }
.item-card.off .item-price { color: var(--red); }
.in-cart { position: absolute; top: 8px; right: 8px; min-width: 28px; height: 28px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; padding: 0 6px; box-shadow: 0 2px 6px rgba(224, 96, 43, .4); }
.cart { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 120px); overflow-y: auto; }
.cart-head { display: flex; align-items: center; justify-content: space-between; }
.cart-close { display: none; }
.seg { display: flex; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; }
.seg-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border: 0; border-radius: 10px; background: none; font-weight: 600; font-size: 14px; color: var(--muted); transition: background-color .15s, color .15s; white-space: nowrap; padding: 0 8px; }
.seg-btn.active { background: var(--navy); color: #fff; }
.seg-btn:disabled { opacity: .4; cursor: not-allowed; }
.cart-who .field:last-child { margin-bottom: 0; }
.cart-lines { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line.sent { opacity: .7; }
.cl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.cl-main b { font-size: 14px; line-height: 20px; }
.cl-main small { color: var(--muted); font-size: 12px; line-height: 16px; }
.cl-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-note { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; padding: 0 8px; margin-top: 4px; line-height: 20px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.stepper button { width: 40px; height: 40px; border: 0; background: #fff; display: grid; place-items: center; color: var(--ink); }
.stepper button:hover { background: var(--paper); }
.stepper span { min-width: 28px; text-align: center; font-weight: 700; }
.qty-fixed { font-weight: 700; color: var(--muted); min-height: 40px; display: flex; align-items: center; }
.totals { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.totals span:first-child { color: var(--muted); }
.totals .grand { font-size: 18px; font-weight: 700; padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line-2); }
.totals .grand span:first-child { color: var(--ink); }
.cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cart-actions .btn { padding: 0 10px; }
.span-2 { grid-column: 1 / -1; }
.cart-actions .clear { justify-content: center; color: var(--muted); }
.cart-bar { display: none; }

/* Kitchen */
.page-kitchen { max-width: none; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.k-tabs { display: none; }
.kboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.kcol { display: flex; flex-direction: column; gap: 16px; background: rgba(15, 39, 57, .035); border-radius: 20px; padding: 16px; min-height: 320px; }
.kcol header { display: flex; align-items: center; gap: 8px; padding: 0 4px; }
.kcol header h3 { font-size: 18px; }
.kcol-new header h3 { color: var(--blue); } .kcol-cooking header h3 { color: var(--amber); } .kcol-ready header h3 { color: var(--green); }
.ticket { background: #fff; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(15, 39, 57, .06); padding: 16px; display: flex; flex-direction: column; gap: 12px; border-top: 5px solid var(--blue); animation: rise .35s var(--ease); }
.kcol-cooking .ticket { border-top-color: #E0A21B; }
.kcol-ready .ticket { border-top-color: var(--green); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.tk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tk-no { display: block; font-size: 22px; line-height: 28px; }
.tk-where { font-weight: 600; color: var(--muted); font-size: 15px; }
.tk-timer { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; padding: 4px 12px; border-radius: 10px; background: var(--grey-bg); }
.tk-timer.warn { background: var(--amber-bg); color: var(--amber); }
.tk-timer.late { background: var(--red-bg); color: var(--red); }
.tk-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tk-lines li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 24px; }
.tk-q { min-width: 32px; height: 32px; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.tk-lines b { display: block; padding-top: 4px; }
.tk-note { display: inline-block; font-style: normal; font-weight: 700; font-size: 14px; color: var(--red); background: var(--red-bg); border-radius: 6px; padding: 0 8px; margin-top: 4px; }

/* Delivery */
.dlist { display: flex; flex-direction: column; gap: 16px; }
.dcard { display: flex; flex-direction: column; gap: 8px; }
.dc-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dc-top b { font-size: 17px; display: block; }
.dc-top small { color: var(--muted); font-size: 13px; }
.dc-addr { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.dc-addr .ic { color: var(--muted); margin-top: 3px; }
.dc-items { color: var(--muted); font-size: 14px; }
.steps { list-style: none; padding: 0; margin: 8px 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; line-height: 16px; }
.steps li i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #CBD3DC; background: #fff; z-index: 1; }
.steps li::before { content: ''; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: #CBD3DC; }
.steps li:first-child::before { display: none; }
.steps li.done i { background: var(--green); border-color: var(--green); }
.steps li.done::before, .steps li.now::before { background: var(--green); }
.steps li.now i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 4px rgba(224, 96, 43, .18); }
.steps li.now { color: var(--ink); }
.dc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.dc-money { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-money b { font-size: 18px; }
.dc-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rider-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; padding: 0 8px; margin: 0 -8px; border-radius: 10px; width: calc(100% + 16px); }
.rider-row:hover { background: var(--paper); }
.rider-row > span:nth-child(2) { flex: 1; }
.rider-row b { display: block; font-size: 14px; line-height: 20px; }
.rider-row small { color: var(--muted); font-size: 12px; }

/* Menu */
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: 10px; border: 2px solid; opacity: .75; transition: transform .15s var(--ease); }
.swatch.active { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--navy); }
.dish-preview { display: flex; justify-content: center; margin-bottom: 16px; }
.cat-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.cat-row { display: flex; align-items: center; gap: 12px; }
.cat-row small { color: var(--muted); white-space: nowrap; font-size: 13px; width: 64px; }
.cat-add { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-add input { flex: 1 1 160px; width: auto; }
.cat-add select { flex: 0 1 140px; width: auto; }

/* Settings */
.settings { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.settings form .card-head:not(:first-child) { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.set-row .field.inline { width: 120px; flex-direction: row; align-items: center; gap: 8px; }
.set-row .field.inline span { white-space: nowrap; }
.form-foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.danger-card { border-color: rgba(180, 35, 24, .2); }

/* Receipt */
.receipt-page { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.receipt-page .back { align-self: flex-start; }
.receipt { width: 100%; max-width: 380px; background: #fff; padding: 32px 24px; border-radius: 4px; box-shadow: 0 4px 24px rgba(15, 39, 57, .1); font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; line-height: 20px; position: relative; }
.receipt::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 6px, #fff 6.5px) 0 0 / 12px 8px repeat-x; }
.rc-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.rc-biz { font-family: Manrope, sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.rc-title { text-align: center; font-weight: 700; margin: 16px 0 8px; padding: 8px 0; border-top: 1px dashed #999; border-bottom: 1px dashed #999; }
.rc-meta { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; margin-bottom: 12px; }
.rc-meta span:nth-child(even) { text-align: right; }
.rc-meta .full { grid-column: 1 / -1; text-align: left !important; }
.rc-lines { border-top: 1px dashed #999; padding-top: 8px; }
.rc-line { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.rc-line small { display: block; color: #555; font-size: 12px; }
.rc-tot { border-top: 1px dashed #999; margin-top: 8px; padding-top: 8px; }
.rc-tot div { display: flex; justify-content: space-between; }
.rc-grand { font-size: 16px; font-weight: 700; padding: 8px 0; margin: 4px 0; border-top: 1px dashed #999; border-bottom: 1px dashed #999; }
.rc-foot { margin-top: 24px; gap: 4px; }
.rc-foot small { color: #666; font-size: 11px; }

/* Modal */
body.modal-open { overflow: hidden; }
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(15, 39, 57, .45); opacity: 0; transition: opacity .2s var(--ease); }
.modal { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; opacity: 0; transform: translateY(12px) scale(.98); transition: transform .25s var(--ease), opacity .2s var(--ease); }
.modal-wrap.in .modal-scrim { opacity: 1; }
.modal-wrap.in .modal { opacity: 1; transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px 24px; }
.modal-head h2 { font-size: 20px; line-height: 28px; }
.modal-body { padding: 8px 24px 16px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.od-head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.meta { margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.meta div { min-width: 0; }
.meta dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.meta dd { margin: 0; font-weight: 600; font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.lines { border-top: 1px solid var(--line); margin-bottom: 12px; }
.line-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-total { display: flex; flex-direction: column; align-items: center; padding: 16px; background: var(--paper); border-radius: 14px; margin-bottom: 16px; }
.pay-total span { color: var(--muted); font-weight: 600; font-size: 13px; }
.pay-total b { font-size: 32px; line-height: 40px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.pay-total small { color: var(--muted); }
.pay-methods { margin-bottom: 16px; }
.pay-methods .seg-btn { min-height: 48px; }
.quick { margin: -4px 0 16px; }
.change { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--green-bg); color: var(--green); font-weight: 600; }
.change b { font-size: 20px; }
.chips.wrap { margin: 12px 0 16px; }

/* Toast */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: 14px; opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast .ic { color: #7ED6A5; }
.toast-error .ic { color: #FFB4A8; }
.toast-btn { background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 8px; min-height: 32px; padding: 0 12px; font-weight: 700; }
.toast-btn:hover { background: rgba(255, 255, 255, .24); }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login-art { background: var(--navy); color: #fff; padding: 48px; display: flex; flex-direction: column; gap: 40px; position: relative; overflow: hidden; }
.login-art::before { content: ''; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(224, 96, 43, .45), transparent 65%); right: -180px; bottom: -160px; }
.login-brand { display: flex; align-items: center; gap: 12px; position: relative; }
.login-brand b { display: block; font-size: 20px; }
.login-brand small { color: rgba(255, 255, 255, .6); }
.login-copy { position: relative; max-width: 440px; margin-top: auto; }
.login-copy h2 { font-size: 36px; line-height: 44px; margin-bottom: 16px; }
.login-copy p { color: rgba(255, 255, 255, .72); font-size: 17px; line-height: 28px; }
.login-ill { position: relative; width: 100%; max-width: 420px; }
.login-art .demo-by { position: relative; padding: 0; }
.login-panel { display: grid; place-items: center; padding: 48px 24px; }
.login-card { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.login-card h1 { font-size: 32px; line-height: 40px; }
.label-sm { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.role-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); transition: border-color .15s, transform .2s var(--ease), box-shadow .2s; min-height: 44px; }
.role-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 39, 57, .08); }
.role-card b { display: block; }
.role-card small { color: var(--muted); font-size: 13px; line-height: 18px; display: block; }
.role-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.toggle-form { align-self: center; margin-top: 8px; min-height: 44px; }
.login-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 10px; }
.eye:hover { color: var(--ink); }
.login-form .tiny { margin-top: 12px; }
.login-form .err { margin-bottom: 12px; }

/* Responsive */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2-1, .grid-1-1, .settings { grid-template-columns: minmax(0, 1fr); }
  .pos { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  body.drawer-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 39, 57, .45); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
  body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .hamburger { display: inline-grid; }
  .topbar { padding: 8px 16px; min-height: 64px; gap: 8px; }
  .topbar h1 { font-size: 20px; line-height: 28px; }
  .content { padding: 16px 16px 40px; gap: 16px; }
  .user-chip span, .user-chip small { display: none; }
  .user-chip { padding: 4px; }
  .hide-sm { display: none !important; }
  .show-sm { display: inline-flex; }
  .pos { grid-template-columns: minmax(0, 1fr); padding-bottom: 72px; }
  .cart { position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 88vh; border-radius: 20px 20px 0 0; z-index: 60; transform: translateY(105%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .cart.open { transform: none; }
  .cart-close { display: inline-grid; }
  .cart-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; min-height: 56px; padding: 0 20px; border: 0; border-radius: 16px; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 8px 24px rgba(224, 96, 43, .4); }
  .cart-bar span:nth-child(2) { flex: 1; text-align: left; }
  .cb-n { min-width: 28px; height: 28px; border-radius: 999px; background: rgba(255, 255, 255, .25); display: grid; place-items: center; padding: 0 8px; }
  .k-tabs { display: flex; }
  .kboard { grid-template-columns: minmax(0, 1fr); }
  .kcol { display: none; min-height: 0; padding: 12px; }
  .kcol.show { display: flex; }
  .kcol header { display: none; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { padding: 24px; gap: 16px; }
  .login-copy { margin-top: 0; }
  .login-copy h2 { font-size: 24px; line-height: 32px; margin-bottom: 8px; }
  .login-copy p { font-size: 15px; line-height: 24px; }
  .login-ill, .login-art .demo-by { display: none; }
  .login-panel { padding: 24px 16px 48px; place-items: start center; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .kpi { padding: 16px; }
  .kpi-val { font-size: 20px; line-height: 28px; }
  .card { padding: 16px; }
  .card-head.pad { padding: 16px 16px 0; }
  .hide-xs { display: none; }
  .filters .field.inline { flex: 1 1 140px; }
  .filters .search { flex-basis: 100%; }
  .summary-line { gap: 12px; margin: -4px 0; }
  .floor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .table-card { min-height: 136px; padding: 12px 12px 12px 16px; }
  .t-top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .legend { display: none; }
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .role-grid { grid-template-columns: minmax(0, 1fr); }
  .meta { grid-template-columns: minmax(0, 1fr); }
  .modal-wrap { place-items: end stretch; padding: 0; }
  .modal { max-width: none; border-radius: 20px 20px 0 0; max-height: 92vh; }
  .modal-head { padding: 12px 8px 4px 16px; }
  .modal-body { padding: 8px 16px 16px; }
  .modal-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
  .modal-foot .btn { flex: 1 1 auto; }
  .rank-qty { display: none; }
  .rank-name { white-space: normal; line-height: 20px; }
  .rank li { padding: 6px 0; }
  .strip { font-size: 12px; line-height: 18px; gap: 4px 8px; padding: 6px 44px 6px 12px; text-align: left; justify-content: flex-start; }
  .strip .link { font-size: 12px; min-height: 24px; }
  .mini-row .pill { display: none; }
  .steps li span { font-size: 11px; }
  .dc-actions { width: 100%; }
  .dc-actions .field.inline { flex: 1 1 100%; }
  .dc-actions .btn { flex: 1 1 auto; }
  .set-row .field.inline { width: auto; }
  /* stacked card tables */
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tfoot, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; min-height: 28px; }
  .tbl td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 13px; font-weight: 600; text-align: left; flex: none; }
  .tbl td > div { text-align: right; }
  .tbl td.act { justify-content: flex-end; padding-top: 8px; }
  .tbl td.act:empty { display: none; }
  .tbl tfoot tr { border-top: 2px solid var(--line-2); }
  .tbl tfoot td { border: 0; background: none; }
  .show-xs { display: inline; }
  .orders-tbl tr { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
  .orders-tbl td { grid-column: 1 / -1; }
  .orders-tbl td[data-l="Order"] { grid-column: 1; font-size: 16px; }
  .orders-tbl td[data-l="Customer or table"] { grid-column: 2; flex-direction: column; align-items: flex-end; gap: 0; font-weight: 600; }
  .orders-tbl td[data-l="Order"]::before, .orders-tbl td[data-l="Customer or table"]::before { display: none; }
  .orders-tbl td[data-l="Type"] { display: none; }
  .daily-tbl tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; }
  .daily-tbl td[data-l="Date"], .daily-tbl td[data-l="Period"] { grid-column: 1 / 3; grid-row: 1; justify-content: flex-start; }
  .daily-tbl td[data-l="Date"]::before, .daily-tbl td[data-l="Period"]::before, .daily-tbl td[data-l="Total"]::before { display: none; }
  .daily-tbl td[data-l="Total"] { grid-column: 3; grid-row: 1; }
  .daily-tbl td[data-l="Cash"] { grid-column: 1; grid-row: 2; } .daily-tbl td[data-l="GCash"] { grid-column: 2; grid-row: 2; } .daily-tbl td[data-l="Card"] { grid-column: 3; grid-row: 2; }
  .daily-tbl td[data-l="Orders"] { display: none; }
  .daily-tbl td[data-l="Cash"], .daily-tbl td[data-l="GCash"], .daily-tbl td[data-l="Card"] { flex-direction: column; align-items: flex-start; gap: 0; font-size: 13px; line-height: 18px; }
  .daily-tbl td[data-l="Cash"]::before, .daily-tbl td[data-l="GCash"]::before, .daily-tbl td[data-l="Card"]::before { font-size: 11px; }
  .menu-tbl td[data-l="Dish"]::before { display: none; }
  .menu-tbl td[data-l="Dish"] { justify-content: flex-start; }
  .menu-tbl tr { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; }
  .menu-tbl td { grid-column: 1 / -1; }
  .scroll-y { max-height: none; }
  #toasts { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }
  .toast { transform: translateY(-12px); }
}
@media print {
  .sidebar, .topbar, .strip, .no-print, #toasts, .scrim { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; }
  body { background: #fff; }
  .receipt { box-shadow: none; max-width: 80mm; padding: 0; }
  .receipt::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.line-row .line-note { display: flex; width: fit-content; }

/* Shared demo strip colours: identical on every EulClavie demo */
.strip { background: #FFF6E5; color: #6B4A00; border-bottom: 1px solid rgba(183, 121, 31, .22); font-size: 13px; line-height: 20px; font-weight: 500; }
.strip .ic, .strip > svg { color: #6B4A00; }
.strip .link { color: #6B4A00; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; }
.strip .link:hover { background: rgba(183, 121, 31, .12); }
.strip .strip-x { color: #6B4A00; text-decoration: none; background: none; }
.strip .strip-x:hover { background: rgba(183, 121, 31, .14); color: #6B4A00; }
