/* Inter, self-hosted (latin + latin-ext for the ₹ sign) */
/* latin-ext */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20B8, U+20BA-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* the rupee sign alone: a 2 KB file, so pages that only need the ₹ do not download all of latin-ext */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-rupee.woff2) format('woff2'); unicode-range: U+20B9; }
/* latin */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Montserrat, self-hosted: the homepage and guest menu headings */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/montserrat-latin.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; }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 100 900; font-display: swap; src: url(/fonts/montserrat-latin-italic.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; }
/* Fredoka, self-hosted: the big bubbly dish names in the homepage hero */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/fredoka-latin.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; }
/* Sora, self-hosted: headings, as on falfox.com */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/fonts/sora-latin.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; }

:root {
  color-scheme: light;
  /* one primary colour (the login button red), warm neutrals */
  --brand: #0b55b8; --brand-600: #08409a; --brand-50: #eaf2fd; --brand-ink: #fff;
  --grad: #0b55b8;
  --glow: rgba(11,85,184,.28);
  --side: #fff; --side-ink: #6b6560;
  --bg: #f5f8fd; --bg-2: #e9f0fa; --card: #fff; --raised: #f8fafd; --ink: #151515; --muted: #6b6560; --faint: #a39d96;
  --line: rgba(21,21,21,.08); --line-2: rgba(21,21,21,.16);
  --ok: #15803d; --ok-bg: #e6f5ea; --warn: #b45309; --warn-bg: #fdf1dc; --bad: #b91c1c; --bad-bg: #fde8e8; --info: #8a5a00; --info-bg: #fff4dd;
  --radius: 20px; --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 26px 50px -34px rgba(140,20,45,.3); --ring: 0 0 0 4px rgba(11,85,184,.14);
  --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14.5px/1.55 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-600); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Montserrat', 'Inter', system-ui, sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; } h2 { font-size: 20px; } h3 { font-size: 16px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { display: none !important; } .muted { color: var(--muted); } .small { font-size: 13px; }

/* ---- app shell ---- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { backdrop-filter: blur(12px); background: var(--side); color: var(--side-ink); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 17px; letter-spacing: -.02em; padding: 4px 10px 20px; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); box-shadow: 0 12px 22px -10px var(--glow); display: grid; place-items: center; color: #fff; }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: 0; margin-top: -2px; }
.tabs { display: flex; flex-direction: column; gap: 2px; }
.tabs button { display: flex; align-items: center; justify-content: flex-start; gap: 11px; width: 100%; background: transparent; color: var(--side-ink); border: 0; padding: 10px 14px; border-radius: 999px; font-weight: 500; }
.tabs button:hover { background: var(--brand-50); color: var(--brand-600); } .tabs button.on { background: var(--bg-2); color: var(--brand-600); } .tabs button.on svg { color: var(--brand); }
.side .spacer { flex: 1; }
.side .logout { background: transparent; color: var(--side-ink); border: 1px solid var(--line); width: 100%; } .side .logout:hover { color: var(--brand-600); background: var(--brand-50); }
main.main { padding: 28px 32px 56px; min-width: 0; max-width: 1280px; width: 100%; }
.page-head { margin-bottom: 22px; } .page-head h1 { font-size: 26px; margin: 0; } .page-head p { margin: 2px 0 0; color: var(--muted); }
main.main .page-head { position: relative; overflow: hidden; border-radius: 26px; padding: 28px 32px; color: #fff; box-shadow: 0 24px 50px -28px rgba(0,0,0,.45); }
main.main .page-head::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(circle at 88% 50%, transparent 0 70px, rgba(255,255,255,.14) 71px 72px); -webkit-mask-image: radial-gradient(circle at 88% 50%, #000 0, transparent 70%); mask-image: radial-gradient(circle at 88% 50%, #000 0, transparent 70%); }
main.main .page-head::after { content: ''; position: absolute; right: -34px; top: 50%; translate: 0 -50%; width: 190px; height: 190px; border-radius: 50%; background: url(/img/hero-pizza.jpg) center / cover; box-shadow: 0 0 0 7px rgba(255,255,255,.94), 0 26px 44px -14px rgba(0,0,0,.5); pointer-events: none; }
main.main .page-head > * { position: relative; z-index: 1; }
main.main .page-head h1 { color: #fff; text-shadow: 0 6px 20px rgba(0,0,0,.22); } main.main .page-head p { color: rgba(255,255,255,.9); max-width: calc(100% - 170px); }
@media (max-width: 860px) { main.main .page-head { padding: 22px 20px; border-radius: 20px; } main.main .page-head::after { display: none; } main.main .page-head p { max-width: none; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 5; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 8px; overflow-x: auto; }
  .brand { padding: 0 6px 0 0; } .brand small, .side .logout span { display: none; }
  .tabs { flex-direction: row; } .tabs button { white-space: nowrap; padding: 8px 12px; } .tabs button span { display: none; } .tabs button.on span { display: inline; }
  .side .spacer { display: none; } .side .logout { width: auto; padding: 8px 10px; }
  main.main { padding: 20px 16px 48px; }
}

/* ---- "A Falfox Product" ---- */
.fx { display: block; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--muted); text-decoration: none; padding: 10px 6px 0; }
.fx b { color: var(--brand-600); font-family: 'Montserrat', 'Inter', sans-serif; } .fx:hover { text-decoration: none; color: var(--ink); }
.auth .panel .fx { text-align: left; padding: 0; }
@media (max-width: 860px) { .side .fx { display: none; } }
.hide-wide .fx { padding-top: 22px; } @media (min-width: 861px) { .hide-wide { display: none; } }

/* ---- the hero's pizza gradient (red), shared by the login page and the dashboards ---- */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #0b55b8; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #4d8fe0; }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: #06295f; }
.fx-grad, .auth, main.main .page-head { --c1: #0b55b8; --c2: #4d8fe0; --c3: #06295f; }
.fx-grad, .auth .panel, main.main .page-head { background: radial-gradient(120% 95% at 50% 22%, var(--c2) 0%, var(--c1) 50%, var(--c3) 100%); }
/* the login button and links follow the same colour */
.auth .box button.lg { background: var(--c1); box-shadow: 0 16px 28px -16px var(--c1); } .auth .box button.lg:hover { background: #08409a; filter: none; }
.auth .box a { color: var(--c1); } .auth input:focus { border-color: var(--c1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c1) 22%, transparent); }
@keyframes fxBob { 50% { transform: translateY(-12px); } }

/* ---- surfaces ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card > h3:first-child { margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat span { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; margin-bottom: 6px; } .stat b { font-size: 26px; letter-spacing: -.02em; }
.stat.hl { background: var(--brand-50); border-color: transparent; } .stat.hl b { color: var(--brand-600); } .stat.big b { font-size: 44px; line-height: 1.1; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.empty { text-align: center; color: var(--muted); padding: 28px 0; }
.note { background: var(--info-bg); color: var(--info); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin: 12px 0; }
.card-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---- forms ---- */
label { display: block; font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input:disabled { background: var(--raised); color: var(--muted); } input[type=color] { padding: 3px; height: 42px; cursor: pointer; } input[type=file] { padding: 8px; }
input[type=checkbox] { width: auto; } textarea { min-height: 84px; resize: vertical; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 16px; }
.err { color: var(--bad); margin: 12px 0 0; min-height: 1.3em; font-size: 13.5px; font-weight: 500; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 16px 0 0; } .check input { margin: 0; }

button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--grad); color: var(--brand-ink); border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s, background .15s, border-color .3s; }
button:hover, .btn:hover { background: var(--brand-600); text-decoration: none; } button:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--ring); }
button.ghost, .btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); } button.ghost:hover, .btn.ghost:hover { background: var(--raised); }
button.sm { padding: 6px 13px; font-size: 13px; border-radius: 999px; } button.lg, .btn.lg { padding: 14px 26px; font-size: 15.5px; border-radius: 999px; box-shadow: 0 10px 40px -12px var(--glow); } button.lg:hover, .btn.lg:hover { transform: translateY(-2px); }
button.danger { background: var(--bad-bg); color: var(--bad); } button.danger:hover { background: var(--bad); color: #fff; }
button.danger-solid { background: #dc2626; color: #fff; } button.danger-solid:hover { background: #b91c1c; }
button:disabled { opacity: .5; cursor: not-allowed; }

.table-wrap { overflow-x: auto; margin: 0 -22px -6px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; } th { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--raised); color: var(--muted); border: 1px solid var(--line); }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; } .pill.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; } .pill.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }

.subtabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.subtabs button { background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 9px; } .subtabs button:hover { background: var(--raised); color: var(--ink); } .subtabs button.on { background: var(--brand); color: var(--brand-ink); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.filters input { width: 260px; max-width: 100%; } .filters select { width: auto; min-width: 150px; }
.filters input:focus, .filters select:focus { box-shadow: none; border-color: var(--line); }

.modal { position: fixed; inset: 0; background: rgba(10,10,12,.55); backdrop-filter: blur(2px); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal-box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; padding: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.kv { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); } .kv:last-child { border-bottom: 0; } .kv span { color: var(--muted); flex: none; } .kv b { font-weight: 600; text-align: right; word-break: break-word; }
.confirm-box { max-width: 420px; text-align: center; } .confirm-box h3 { font-size: 19px; margin: 12px 0 6px; } .confirm-box p { margin: 0; }
.confirm-ico { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); } .confirm-ico.danger { background: var(--bad-bg); color: var(--bad); } .confirm-ico svg { width: 24px; height: 24px; }
.confirm-actions { display: flex; gap: 10px; margin-top: 22px; } .confirm-actions button { flex: 1; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 10px; z-index: 99; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,.25); max-width: 90vw; }
.secret { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; word-break: break-all; }

/* ---- dashboard: menu items ---- */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.item.off { opacity: .6; }
.thumb { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--tc, #0b55b8), color-mix(in srgb, var(--tc, #0b55b8) 55%, #000)); display: grid; place-items: center; color: rgba(255,255,255,.85); font-size: 44px; font-weight: 800; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-body .nm { font-weight: 700; } .item-body .price { font-weight: 800; color: var(--brand-600); }
.item-body .ds { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.img-pick { display: flex; gap: 14px; align-items: center; } .img-pick .thumb { width: 110px; flex: none; border-radius: 12px; font-size: 32px; }

/* ---- QR ---- */
.qr-box { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; } .qr-box img { width: 100%; max-width: 320px; height: auto; image-rendering: pixelated; }

/* ---- public pages ---- */
.nav { display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: 18px 20px; } .nav .brand { color: var(--ink); padding: 0; }
.hero { max-width: 760px; margin: 0 auto; padding: 56px 20px; text-align: center; } .hero h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -.035em; } .hero h1 em { font-style: normal; color: var(--brand); } .hero p { font-size: 18px; color: var(--muted); }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .panel { color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; border-radius: 0 40px 40px 0; }
.auth .panel::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(circle at 50% 46%, transparent 0 96px, rgba(255,255,255,.14) 97px 98px); -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 72%); mask-image: radial-gradient(circle at 50% 46%, #000 0, transparent 72%); }
.auth .panel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 60% at 50% 115%, rgba(0,0,0,.35), transparent 62%); }
.auth .panel .brand { color: #fff; } .auth .panel .brand .mark { background: #fff; color: var(--c1); box-shadow: 0 8px 22px -8px rgba(0,0,0,.4); }
.auth .panel .muted, .auth .panel small { color: rgba(255,255,255,.88); }
.auth .panel .fx { color: rgba(255,255,255,.85); } .auth .panel .fx b { color: #fff; }
.auth .panel > .lg-plate { position: absolute; z-index: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 7px rgba(255,255,255,.94), 0 30px 50px -14px rgba(0,0,0,.55); }
@media (prefers-reduced-motion: no-preference) { .lg-plate { animation: fxBob 6s ease-in-out infinite; } .lg-plate.b { animation-delay: -3s; } }
.lg-plate.a { width: 190px; height: 190px; right: 8%; top: 16%; } .lg-plate.b { width: 128px; height: 128px; right: 24%; bottom: 17%; }
.auth .panel > * { position: relative; }
.auth .panel h2 { font-size: 34px; max-width: 380px; color: #fff; text-shadow: 0 8px 24px rgba(0,0,0,.2); } .auth .panel p { color: rgba(255,255,255,.9); max-width: 360px; }
.auth .form { display: grid; place-items: center; padding: 32px 20px; } .auth .box { width: 100%; max-width: 420px; } .auth .box h1 { font-size: 28px; margin-bottom: 4px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .panel { display: none; } }
.demo { margin-top: 22px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; background: var(--raised); } .demo-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.demo-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; } .demo-row + .demo-row { border-top: 1px solid var(--line); }

/* ---- customer menu (mobile first) ---- */
body.menu-page { --theme: #0b55b8; background: var(--bg); }
.m-hero { background: var(--theme); color: #fff; text-align: center; padding: 28px 16px 26px; background-image: radial-gradient(circle at 85% 0, rgba(255,255,255,.18), transparent 55%); }
.m-hero img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 22px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.m-hero h1 { margin: 12px 0 4px; font-size: 26px; } .m-hero p { margin: 0; opacity: .92; } .m-hero .small { margin-top: 4px; opacity: .85; }
.m-bar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 12px 8px; }
.m-search { max-width: 1080px; margin: 0 auto 8px; } .m-search input { border-radius: 99px; padding: 10px 16px; }
.m-search input:focus { border-color: var(--theme); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme) 25%, transparent); }
.m-chips { max-width: 1080px; margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; } .m-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.chip:hover { background: var(--raised); } .chip.on { background: var(--theme); border-color: var(--theme); color: #fff; }
.m-wrap { max-width: 1080px; margin: 0 auto; padding: 8px 12px 48px; }
.m-sec { padding-top: 18px; scroll-margin-top: 112px; } .m-sec h2 { font-size: 19px; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; } .m-sec h2 span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .m-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .m-wrap { padding: 8px 20px 56px; } }
@media (min-width: 960px) { .m-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.m-card { align-items: stretch; justify-content: flex-start; gap: 0; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-align: left; padding: 0; color: var(--ink); display: flex; flex-direction: column; box-shadow: var(--shadow); font-weight: 400; cursor: pointer; }
.m-card:hover { background: var(--card); } .m-card .thumb { --tc: var(--theme); border-radius: 0; width: 100%; }
.m-card .b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.m-card .nm { font-weight: 700; font-size: 14.5px; line-height: 1.3; } .m-card .ds { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-card .pr { margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--theme); font-size: 15.5px; }
.m-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 40px; }
.sheet { position: fixed; inset: 0; background: rgba(10,10,12,.55); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { background: var(--card); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; max-height: 92vh; overflow: auto; animation: up .2s ease-out; }
.sheet-box .thumb { border-radius: 0; aspect-ratio: 16 / 11; --tc: var(--theme); } .sheet-body { padding: 16px 18px 24px; } .sheet-body h2 { margin: 0 0 6px; font-size: 22px; } .sheet-body .pr { font-size: 22px; font-weight: 800; color: var(--theme); margin-bottom: 10px; } .sheet-body p { color: var(--muted); margin: 0 0 16px; }
.sheet-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; padding: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; } .sheet-wrap { position: relative; width: 100%; max-width: 520px; }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-box { border-radius: 22px; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- additions on top of the reference design ---- */
.pw-row { display: flex; gap: 8px; } .pw-row input { flex: 1; min-width: 0; }
.pwcell { display: inline-flex; align-items: center; gap: 8px; }
.pwtxt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; color: var(--muted); user-select: none; }
.pwtxt.on { color: var(--ink); font-weight: 600; user-select: all; }
button.icon { padding: 5px 7px; } button.icon svg { width: 16px; height: 16px; }
.kv-grid { margin-bottom: 4px; }
/* admin console: use the full screen width (tables are wide) */
main.main.wide { max-width: none; }
main.main.wide table { font-size: 13px; }
main.main.wide th, main.main.wide td { padding-right: 10px; }
main.main.wide td .sm { padding: 5px 9px; font-size: 12px; }
main.main.wide .actions { gap: 6px; }

/* form grids: every field in a row lines up (same label height, same control height, spacing from the grid gap) */
.row { gap: 14px 16px; }
.row > div { min-width: 0; }
.row > div > label:first-child { margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
input:not([type=checkbox]):not([type=color]):not([type=file]), select { min-height: 44px; }
.pw-row { align-items: stretch; }
input[type=date] { height: 44px; }

/* ---- grid / list switch (menu items, Manage menu, guest menu) ---- */
.vtoggle { display: inline-flex; gap: 2px; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; flex: none; }
.vtoggle button { background: transparent; color: var(--muted); border: 0; padding: 6px 9px; border-radius: 7px; line-height: 0; }
.vtoggle button:hover { background: var(--raised); color: var(--ink); }
.vtoggle button.on, .vtoggle button.on:hover { background: var(--brand); color: var(--brand-ink); }
.vtoggle svg { width: 18px; height: 18px; }
body.menu-page .vtoggle button.on, body.menu-page .vtoggle button.on:hover { background: var(--theme); color: #fff; }

/* dashboard / Manage menu: one row per dish (photo | details | buttons on the right) */
.items.as-list { grid-template-columns: 1fr; gap: 10px; }
.items.as-list .item { display: grid; grid-template-columns: 104px 1fr; align-items: stretch; }
.items.as-list .thumb { aspect-ratio: auto; width: 100%; height: 100%; min-height: 104px; font-size: 30px; }
.items.as-list .item-body { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-content: center; align-items: center; padding: 10px 16px; }
.items.as-list .item-body > * { grid-column: 1; }
.items.as-list .item-foot { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0; flex-wrap: nowrap; }
@media (max-width: 640px) {
  .items.as-list .item { grid-template-columns: 88px 1fr; }
  .items.as-list .thumb { min-height: 88px; }
  .items.as-list .item-body { grid-template-columns: 1fr; padding: 10px 12px 12px; }
  .items.as-list .item-foot { grid-column: 1; grid-row: auto; margin-top: 6px; flex-wrap: wrap; }
}

/* guest menu: one row per dish (two columns on wide screens) */
.m-search { display: flex; gap: 8px; align-items: center; } .m-search input { flex: 1; min-width: 0; }
.as-list .m-grid { grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 900px) { .as-list .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.as-list .m-card { flex-direction: row; }
.as-list .m-card .thumb { width: 112px; aspect-ratio: 1; flex: none; font-size: 34px; }
.as-list .m-card .b { padding: 10px 14px; justify-content: center; }
.as-list .m-card .pr { margin-top: 4px; padding-top: 0; }

/* ---- "Add menu" popup (menu-library.js) ---- */
.lib-filters { margin-bottom: 10px; display: flex; gap: 8px; } .lib-filters input { flex: 1; min-width: 0; } .lib-filters select { width: auto; max-width: 42%; }
.lib-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; } .lib-chips::-webkit-scrollbar { display: none; }
.lib-chip { flex: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.lib-chip:hover { background: var(--raised); } .lib-chip.on, .lib-chip.on:hover { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .lib-chip.on .muted { color: inherit; opacity: .8; }
.lib-list { display: grid; gap: 8px; max-height: 46vh; overflow: auto; padding-right: 2px; }
.lib-row { display: grid; grid-template-columns: auto 56px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin: 0; font-weight: 400; cursor: pointer; background: var(--card); }
.lib-row.cat { grid-template-columns: auto 1fr auto; padding: 12px; }
.lib-row:hover { background: var(--raised); } .lib-row.sel { border-color: var(--brand); background: var(--brand-50); }
.lib-row input { margin: 0; width: 18px; height: 18px; }
.lib-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lib-main { min-width: 0; } .lib-main b { display: block; font-size: 14px; }
.lib-main .ds { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lib-price { font-weight: 800; color: var(--brand-600); }
.lib-foot { align-items: center; } .lib-foot .muted { margin-right: auto; }
@media (max-width: 560px) { .lib-row { grid-template-columns: auto 48px 1fr; } .lib-thumb { width: 48px; height: 48px; } .lib-price { grid-column: 3; } .lib-filters select { max-width: 46%; } }
/* keep the counter + "Add selected" button in view while the popup scrolls (matters on phones) */
.modal-box .lib-foot { position: sticky; bottom: -22px; z-index: 2; margin: 16px -22px -22px; padding: 14px 22px; background: var(--card); border-radius: 0 0 16px 16px; }
@media (max-width: 560px) { .lib-list { max-height: 36vh; } }

/* ---- loading feedback (see app.js) ---- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes loadbar { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.loadbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .2s; overflow: hidden; }
.loadbar::after { content: ''; position: absolute; inset: 0; width: 45%; background: linear-gradient(90deg, transparent, var(--theme, var(--brand)), transparent); animation: loadbar 1s ease-in-out infinite; }
html.is-loading .loadbar { opacity: 1; }
body.menu-page .loadbar::after { background: linear-gradient(90deg, transparent, #fff, transparent); } /* the guest menu opens on a coloured header */
.btn-loading { pointer-events: none; opacity: .85; }
.btn-loading::before { content: ''; flex: none; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.skel { background: linear-gradient(90deg, var(--line) 25%, var(--raised) 37%, var(--line) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 10px; }
.skel-row { height: 46px; margin: 10px 0; } .skel-stat { height: 84px; border-radius: var(--radius); } .skel-card { height: 270px; border-radius: 14px; }
.skel-hero { height: 190px; border-radius: 0; background-color: var(--theme, var(--brand)); background-image: linear-gradient(90deg, transparent 25%, rgba(255,255,255,.18) 37%, transparent 63%); }
.is-busy { opacity: .45; transition: opacity .15s; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .skel, .btn-loading::before, .loadbar::after { animation-duration: 3s; } }

/* ---- guest menu: red / cream restaurant design (same for every restaurant) ---- */
body.menu-page { --theme: #0b55b8; --bg: #f7f7f7; --ink: #151515; --muted: #5b5b5b; --line: #ececec; --radius: 6px; --shadow: none; --brand: #0b55b8; --brand-600: #08409a; }
body.menu-page h1, body.menu-page h2 { font-family: 'Montserrat', 'Inter', sans-serif; }
body.menu-page .m-hero { background: #fff5e9; background-image: none; color: #151515; padding: 34px 16px 30px; }
body.menu-page .m-hero img { border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 0 0 6px #0b55b8; padding: 6px; }
body.menu-page .m-hero h1 { font: italic 800 clamp(1.7rem, 6vw, 2.5rem)/1.25 'Montserrat', sans-serif; margin: 14px 0 6px; }
body.menu-page .m-hero p { color: #5b5b5b; opacity: 1; } body.menu-page .m-hero .small { color: #0b55b8; font-weight: 600; opacity: 1; }
body.menu-page .m-bar { background: #fff; }
body.menu-page .chip { border-radius: 6px; } body.menu-page .chip.on { background: #0b55b8; border-color: #0b55b8; }
body.menu-page .m-sec h2 { font-weight: 600; font-size: 1.15rem; } body.menu-page .m-sec h2 span { color: #0b55b8; }
body.menu-page .m-card { border-radius: 6px; border: 0; background: #fff; }
body.menu-page .m-card .thumb { aspect-ratio: 4 / 3; }
body.menu-page .m-card .thumb { position: relative; background: #f3e8dc; overflow: hidden; }
body.menu-page .m-card .thumb::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20,12,8,0) 55%, rgba(20,12,8,.16)); opacity: .7; }
body.menu-page .m-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
body.menu-page .m-card:hover .thumb img, body.menu-page .m-card:focus-visible .thumb img { transform: scale(1.045); filter: saturate(1.05); }
body.menu-page .m-card .b { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; row-gap: 2px; padding: 12px 14px 14px; }
body.menu-page .m-card .nm { grid-column: 1; font-weight: 700; }
body.menu-page .m-card .pr { grid-column: 2; grid-row: 1; margin: 0; padding: 0; color: #151515; font: 600 1.1rem 'Inter', sans-serif; }
body.menu-page .m-card .ds { grid-column: 1 / -1; grid-row: 2; }
body.menu-page .m-card .nm { letter-spacing: -.01em; }
body.menu-page .m-card .pr { color: #d7193f; }
body.menu-page .sheet-box .thumb img { transition: none; }
body.menu-page .m-foot { background: #0b0f12; color: #cfcfcf; padding: 30px 16px 34px; margin-top: 24px; }
body.menu-page .m-foot a { color: #fff; } body.menu-page .m-foot .fx { color: #cfcfcf; padding-top: 14px; } body.menu-page .m-foot .fx b { color: #0b55b8; }
body.menu-page .skel-hero { background-color: #fff5e9; background-image: none; }
body.menu-page .loadbar::after { background: linear-gradient(90deg, transparent, #0b55b8, transparent); }


[hidden] { display: none !important; }
/* ---- order desk (/staff): manager, kitchen, table supplier ---- */
body.staff { background: var(--bg); }
.st-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(12px, 3vw, 28px); background: var(--side); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.st-bar .brand { padding: 0; }
.st-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--ok); } .st-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(21,128,61,.18); } .st-live.off { color: var(--bad); } .st-live.off i { background: var(--bad); box-shadow: 0 0 0 4px rgba(185,28,28,.18); }
#stSound.on { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand); }
.st-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px clamp(12px, 3vw, 28px) 0; scrollbar-width: none; } .st-tabs::-webkit-scrollbar { display: none; }
.st-tabs button { flex: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; padding: 8px 14px; font-size: 13.5px; } .st-tabs button b { background: var(--bg-2); color: var(--brand-600); border-radius: 99px; padding: 0 8px; font-size: 12px; } .st-tabs button.on { background: var(--brand-50); border-color: var(--brand); color: var(--brand-600); }
.st-main { padding: 14px clamp(12px, 3vw, 28px) 60px; }
.st-cols { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
.st-main.multi .st-col { display: none; } .st-main.multi .st-col.show { display: block; } .st-main.single .st-col { display: block; }
@media (min-width: 1000px) { .st-tabs { display: none; } .st-main.multi .st-cols { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); } .st-main.multi .st-col { display: block; } .st-main.single .st-cols { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } .st-main.single .st-col { display: contents; } .st-main.single .st-col h2, .st-main.single .st-empty { grid-column: 1 / -1; } }
.st-col h2 { display: flex; align-items: center; justify-content: space-between; font-size: 14px; letter-spacing: .02em; margin: 0 0 10px; color: var(--muted); text-transform: uppercase; } .st-col h2 span { background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 0 9px; color: var(--ink); font-size: 12px; }
.st-empty { color: var(--muted); text-align: center; padding: 28px 8px; border: 1px dashed var(--line-2); border-radius: 14px; font-size: 13.5px; }
.st-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 9px; }
.st-card.s-placed { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,85,184,.14), var(--shadow); }
.st-head { display: flex; align-items: baseline; gap: 10px; } .st-no { font: 700 1.15rem 'Montserrat', sans-serif; } .st-tbl { font-weight: 700; background: var(--brand-50); color: var(--brand-600); border-radius: 8px; padding: 2px 10px; } .st-age { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 13px; color: var(--muted); } .st-age.warn { color: var(--warn); } .st-age.late { color: var(--bad); }
.st-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .st-lines li { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; } .st-lines b { min-width: 2.2em; color: var(--brand-600); } .st-lines em { flex-basis: 100%; margin-left: 2.2em; font-style: normal; font-size: 12.5px; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 1px 8px; width: fit-content; }
.st-lines.big { gap: 8px; font-size: 1.12rem; font-weight: 600; } .st-lines.big b { font-size: 1.25rem; }
.st-note { margin: 0; font-size: 13px; background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 6px 10px; }
.st-upd { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 6px 10px; font-size: 13px; } .st-upd b { text-transform: uppercase; letter-spacing: .05em; margin-right: 6px; }
.st-who { font-size: 13px; color: var(--muted); } .st-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; } .st-total span { color: var(--muted); font-size: 13px; } .st-total b { font-size: 1.1rem; } .st-total.big { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); } .st-total.big b { font-size: 1.5rem; }
.st-go { width: 100%; padding: 12px; font-size: 15px; } .st-go.lg { padding: 18px; font-size: 18px; border-radius: 14px; }
.st-row { display: flex; gap: 8px; flex-wrap: wrap; } .st-row > * { flex: 1; }
.st-done { text-align: center; font-weight: 600; color: var(--ok); background: var(--ok-bg); border-radius: 10px; padding: 8px; font-size: 13px; text-transform: capitalize; } .st-done.bad { color: var(--bad); background: var(--bad-bg); }
.st-bill { background: var(--raised); border-radius: 12px; padding: 10px 14px; margin-bottom: 4px; } .st-bill > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 14px; } .st-bill .sum { border-top: 1px dashed var(--line-2); margin-top: 4px; padding-top: 8px; font-weight: 700; }
.st-methods { display: flex; gap: 8px; } .st-methods button { flex: 1; }
.st-add { display: flex; gap: 8px; } .st-add select { flex: 1; }
.st-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); } .st-line .nm { font-weight: 600; } .st-line .nm small { display: block; color: var(--muted); font-weight: 400; } .st-line .qty { display: flex; align-items: center; gap: 8px; } .st-line .qty b { min-width: 1.6em; text-align: center; } .st-line .line-note { grid-column: 1; } .st-line .danger { grid-column: 2; }


/* ---- guest ordering (menu page): + Add, cart bar, checkout, live tracking ---- */
.m-cardwrap { position: relative; display: flex; min-width: 0; } .m-cardwrap > .m-card { flex: 1; min-width: 0; }
body.menu-page .m-cardwrap .m-card .b { padding-bottom: 58px; }
.m-ctl { position: absolute; right: 10px; bottom: 10px; z-index: 2; }
.m-add { background: #fff; color: #0b55b8; border: 1.5px solid #0b55b8; border-radius: 999px; padding: 7px 16px; font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 14px -8px rgba(11,85,184,.6); } .m-add:hover { background: #0b55b8; color: #fff; }
.m-step { display: inline-flex; align-items: center; gap: 2px; background: #0b55b8; color: #fff; border-radius: 999px; padding: 3px; box-shadow: 0 6px 14px -6px rgba(11,85,184,.7); }
.m-step button { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; border: 0; font-size: 18px; line-height: 1; box-shadow: none; } .m-step button:hover { background: rgba(255,255,255,.34); }
.m-step b { min-width: 28px; text-align: center; font-size: 14px; }
.o-sheetctl { margin: 16px 0 4px; } .o-sheetctl .m-add, .o-sheetctl .m-step { width: 100%; justify-content: center; padding: 11px; font-size: 15px; } .o-sheetctl .m-step { justify-content: space-between; padding: 6px 10px; } .o-sheetctl .m-step button { width: 38px; height: 38px; }
.sheet-box:has(.o-sheetctl) .sheet-body { padding-bottom: 20px; }
body.has-dock .m-foot { padding-bottom: 130px; }
.o-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-direction: column; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; align-items: center; }
.o-bar { pointer-events: auto; width: 100%; max-width: 520px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0b55b8; color: #fff; border: 0; border-radius: 16px; padding: 14px 18px; font-size: 15px; font-weight: 600; box-shadow: 0 18px 40px -12px rgba(11,85,184,.65); animation: dockin .5s var(--ease) both; }
.o-bar:hover { background: #08409a; } .o-bar i { font-style: normal; font-weight: 700; opacity: .95; } .o-bar b { font-size: 1.05rem; }
.o-bar.track { background: #151515; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); justify-content: flex-start; } .o-bar.track:hover { background: #000; } .o-bar.track i { margin-left: auto; } .o-bar.track .dot { width: 10px; height: 10px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 4px rgba(251,191,36,.25); animation: dotpulse 1.6s ease infinite; } .o-bar.track.s-ready .dot { background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.3); } .o-bar.track.s-served .dot { background: #60a5fa; }
@keyframes dockin { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } } @keyframes dotpulse { 50% { transform: scale(1.35); } }
.o-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,12,.58); display: flex; align-items: flex-end; justify-content: center; }
.o-box { position: relative; background: #fff; width: 100%; max-width: 520px; max-height: 92svh; overflow: auto; border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); animation: up .3s var(--ease); color: #151515; }
@media (min-width: 640px) { .o-sheet { align-items: center; } .o-box { border-radius: 22px; } }
.o-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: #f3f3f3; color: #151515; border: 0; box-shadow: none; font-size: 15px; } .o-x:hover { background: #e6e6e6; }
.o-body h2 { font: 700 1.35rem 'Montserrat', sans-serif; margin: 0 28px 4px 0; } .o-body h3 { font: 700 1.05rem 'Montserrat', sans-serif; margin: 0 0 4px; }
.o-body label { color: #151515; }
.o-line { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; } .o-line .nm small { display: block; color: #777; font-size: 12.5px; } .o-line .amt { font-weight: 700; min-width: 64px; text-align: right; } .o-line .line-note { grid-column: 1 / -1; font-size: 13px; padding: 7px 10px; }
.o-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 14px; font-size: 1.05rem; } .o-sum b { font-size: 1.4rem; }
.o-btn { width: 100%; margin-top: 10px; padding: 15px; border-radius: 14px; font-size: 16px; font-weight: 700; background: #0b55b8; color: #fff; border: 1px solid #0b55b8; box-shadow: 0 14px 28px -14px rgba(11,85,184,.7); } .o-btn:hover { background: #08409a; }
.o-btn.ghost { background: #fff; color: #151515; border-color: #ddd; box-shadow: none; } .o-btn.ghost:hover { background: #f6f6f6; } .o-btn.ghost.danger { color: #b91c1c; border-color: #f3c7c7; } .o-btn:disabled { opacity: .6; }
.o-bill { background: #f7f7f7; border-radius: 14px; padding: 12px 14px; margin: 12px 0; } .o-bill > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14.5px; } .o-bill small { display: block; color: #777; font-size: 12px; } .o-bill .sum { border-top: 1px dashed #d4d4d4; margin-top: 6px; padding-top: 9px; font-weight: 700; font-size: 1.02rem; }
.o-meta { margin: 0 34px 10px 0; color: #666; font-size: 13.5px; }
.o-state { text-align: center; padding: 14px 8px 6px; } .o-state .big { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; } .o-state h2 { margin: 0 0 4px; font-size: 1.4rem; } .o-state p { margin: 0; color: #555; }
.o-state.s-ready { background: #ecfdf3; border-radius: 16px; animation: readypop .8s var(--ease); } .o-state.s-ready h2 { color: #15803d; } .o-state.bad h2 { color: #b91c1c; }
@keyframes readypop { 0% { transform: scale(.94); } 55% { transform: scale(1.03); } 100% { transform: none; } }
.o-steps { display: flex; justify-content: space-between; list-style: none; padding: 0; margin: 18px 0 8px; position: relative; } .o-steps::before { content: ''; position: absolute; left: 8%; right: 8%; top: 13px; height: 2px; background: #e5e5e5; }
.o-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 1; font-size: 11.5px; color: #888; } .o-steps i { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid #ddd; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; z-index: 1; }
.o-steps li.done i { background: #0b55b8; border-color: #0b55b8; color: #fff; } .o-steps li.done { color: #151515; } .o-steps li.now i { border-color: #0b55b8; color: #0b55b8; box-shadow: 0 0 0 5px rgba(11,85,184,.14); } .o-steps li.now { color: #0b55b8; font-weight: 700; }
.o-body .note { background: #fff8e6; color: #92400e; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; margin: 10px 0; }
.o-pay { margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee; }
.o-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; } .o-chips button { flex: 1; min-width: 64px; display: flex; flex-direction: column; align-items: center; background: #fff; color: #151515; border: 1.5px solid #ddd; border-radius: 12px; padding: 9px 6px; font-weight: 700; font-size: 14px; box-shadow: none; } .o-chips button small { font-weight: 500; color: #777; font-size: 11.5px; } .o-chips button:hover { background: #fafafa; } .o-chips button.on { border-color: #0b55b8; background: #eaf2fd; color: #0b55b8; }
.o-custom { display: flex; gap: 8px; margin-bottom: 4px; } .o-custom input { flex: 1; } .o-custom .o-btn { width: auto; margin: 0; padding: 0 18px; } .o-custom.hidden { display: none; }
.o-banner { position: fixed; z-index: 70; top: 12px; left: 50%; translate: -50% 0; width: calc(100% - 24px); max-width: 480px; display: flex; gap: 12px; align-items: center; text-align: left; background: #15803d; color: #fff; border: 0; border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 44px -12px rgba(21,128,61,.7); animation: bannerin .6s var(--ease); } .o-banner:hover { background: #166534; } .o-banner span { font-size: 1.8rem; } .o-banner b { display: block; font-size: 1.05rem; } .o-banner small { opacity: .92; }
@keyframes bannerin { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .o-bar, .o-box, .o-banner, .o-state.s-ready { animation: none; } .o-bar.track .dot { animation: none; } }

/* ---- dashboard: table QR grid ---- */
.tq { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-top: 10px; }
.tq-i { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; } .tq-i:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; } .tq-i img { width: 100%; height: auto; border-radius: 8px; background: #fff; image-rendering: pixelated; }
tr.off td { opacity: .55; }
/* ---- login page, right side ---- */
.auth .form { position: relative; overflow: hidden; background: #f5f8fd; padding: 40px 24px; }
.auth .form::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 45% at 100% 0%, rgba(11,85,184,.11), transparent 70%), radial-gradient(45% 40% at 0% 100%, rgba(255,160,102,.16), transparent 70%), radial-gradient(circle, rgba(21,21,21,.075) 1.2px, transparent 1.7px) 0 0 / 26px 26px; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 20%, #000 88%); mask-image: radial-gradient(ellipse at 50% 50%, transparent 20%, #000 88%); }
.auth .form .box { position: relative; max-width: 450px; }
.lg-card { background: #fff; border: 1px solid rgba(21,21,21,.07); border-radius: 28px; padding: 44px 40px 32px; box-shadow: 0 44px 80px -42px rgba(140,20,45,.38), 0 1px 0 rgba(255,255,255,.9) inset; }
.lg-badge { width: 58px; height: 58px; border-radius: 19px; background: var(--c1); display: grid; place-items: center; margin-bottom: 24px; box-shadow: 0 16px 28px -14px var(--c1); } .lg-badge svg { width: 26px; height: 26px; fill: #fff; }
.auth .lg-card h1 { font: 700 2rem/1.15 'Montserrat', sans-serif; letter-spacing: -.02em; margin: 0 0 8px; color: #151515; }
.lg-sub { margin: 0 0 12px; color: #6b6560; font-size: .95rem; }
.auth .lg-card label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #3a3633; margin: 20px 0 8px; }
.lg-field { position: relative; }
.lg-field input { height: 56px; padding: 0 50px; border-radius: 16px; border: 1.5px solid #e8e4df; background: #fcfbfa; font-size: 15px; transition: border-color .2s, box-shadow .2s, background .2s; } .lg-field input::placeholder { color: #a39d96; }
.lg-field input:hover { border-color: #d8d2cb; } .auth .lg-field input:focus { background: #fff; border-color: var(--c1); box-shadow: 0 0 0 4px rgba(11,85,184,.13); }
.lg-ic { position: absolute; left: 17px; top: 50%; translate: 0 -50%; display: flex; color: #a39d96; pointer-events: none; transition: color .2s; } .lg-field:focus-within .lg-ic { color: var(--c1); }
.lg-ic svg, .lg-help svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-eye { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: #8b857e; box-shadow: none; } .lg-eye:hover { background: #f3efeb; color: #151515; } .lg-eye svg { width: 20px; height: 20px; }
.lg-submit { width: 100%; height: 56px; margin-top: 24px; border-radius: 16px; font-size: 16px; font-weight: 700; gap: 10px; transition: transform .3s var(--ease), background .2s, box-shadow .3s; } .lg-submit:hover { transform: translateY(-2px); } .lg-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); } .lg-submit:hover svg { transform: translateX(4px); }
.lg-help { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding-top: 18px; border-top: 1px dashed #e6e1dc; font-size: 13px; line-height: 1.5; color: #6b6560; } .lg-help svg { flex: none; margin-top: 1px; color: var(--c1); width: 18px; height: 18px; }
.lg-back { text-align: center; margin: 22px 0 0; font-size: 14px; font-weight: 600; } .lg-back a { color: #4a4540; } .auth .lg-back a:hover { color: var(--c1); text-decoration: none; }
@media (max-width: 860px) { .auth .form { padding: 28px 16px; min-height: 100vh; } .lg-card { padding: 34px 24px 26px; border-radius: 24px; } .auth .lg-card h1 { font-size: 1.7rem; } }
.auth .box .fx { color: #6b6560; } .auth .box .fx b { color: var(--c1); }


/* ================= app redesign: the login-page look for the admin console, dashboard and order desk ================= */
body:not(.lp):not(.menu-page) { background: var(--bg); }
.shell { position: relative; background: radial-gradient(55% 40% at 100% 0%, rgba(11,85,184,.07), transparent 70%), radial-gradient(42% 36% at 0% 100%, rgba(255,160,102,.12), transparent 70%), var(--bg); }
.shell::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(21,21,21,.055) 1.2px, transparent 1.7px) 0 0 / 26px 26px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, transparent 30%, #000 95%); mask-image: radial-gradient(ellipse at 60% 40%, transparent 30%, #000 95%); }
main.main { position: relative; z-index: 1; }
.side { z-index: 2; background: #fff; backdrop-filter: none; border-right: 1px solid var(--line); padding: 22px 16px; gap: 8px; }
.brand { font: 700 1.05rem 'Montserrat', sans-serif; letter-spacing: -.01em; }
.brand .mark { width: 40px; height: 40px; border-radius: 13px; }
.brand small { font-family: 'Inter', sans-serif; }
.tabs { gap: 4px; margin-top: 6px; }
.tabs button { border-radius: 14px; padding: 12px 14px; font-weight: 600; color: #4a4540; transition: background .2s, color .2s; }
.tabs button:hover { background: var(--raised); color: var(--ink); } .tabs button.on { background: var(--brand-50); color: var(--brand-600); } .tabs button.on svg { color: var(--brand); }
.side .logout { border-radius: 14px; font-weight: 600; } .side .logout:hover { background: var(--brand-50); color: var(--brand-600); border-color: transparent; }
.page-head { margin-bottom: 24px; } main.main .page-head { border-radius: 28px; padding: 30px 34px; }
main.main .page-head h1 { font: 700 1.9rem/1.15 'Montserrat', sans-serif; letter-spacing: -.02em; }

/* buttons: solid red, rounded like the login button */
button, .btn { border-radius: 14px; font-weight: 700; }
button.sm { border-radius: 11px; padding: 7px 14px; } button.lg, .btn.lg { border-radius: 16px; padding: 14px 26px; box-shadow: 0 16px 28px -16px var(--glow); } button.lg:hover, .btn.lg:hover { transform: translateY(-2px); }
button.ghost, .btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); } button.ghost:hover, .btn.ghost:hover { background: var(--raised); border-color: var(--faint); }
button.danger { border-radius: 11px; }

/* inputs: taller, rounded, red focus ring */
input, select, textarea { border-radius: 14px; border: 1.5px solid #e8e4df; background: #fcfbfa; padding: 11px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
input:hover, select:hover, textarea:hover { border-color: #d8d2cb; } input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--brand); box-shadow: var(--ring); }
input:not([type=checkbox]):not([type=color]):not([type=file]), select { min-height: 46px; }
label { font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #3a3633; }
.filters input:focus, .filters select:focus { box-shadow: var(--ring); border-color: var(--brand); }
input[type=checkbox] { accent-color: var(--brand); width: 18px; height: 18px; }

/* cards and stats */
.card { border-radius: 24px; padding: 26px; border-color: var(--line); }
.stats { gap: 16px; }
.stat { position: relative; border-radius: 20px; padding: 18px 20px 16px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; } .stat:hover { transform: translateY(-3px); }
.stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--faint); margin-bottom: 8px; padding-right: 44px; }
.stat b { font: 700 28px/1.1 'Montserrat', sans-serif; letter-spacing: -.02em; }
.stat::after { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 13px; background: var(--brand-50); display: grid; place-items: center; font-size: 1.15rem; }
.stat.hl { background: var(--brand); border-color: transparent; box-shadow: 0 26px 44px -26px var(--glow); } .stat.hl span { color: rgba(255,255,255,.88); } .stat.hl b { color: #fff; } .stat.hl::after { background: rgba(255,255,255,.2); }
.stat.big b { font-size: 46px; }
main.wide .stats .stat:nth-child(1)::after { content: '🏪'; } main.wide .stats .stat:nth-child(2)::after { content: '✅'; } main.wide .stats .stat:nth-child(3)::after { content: '⏸️'; } main.wide .stats .stat:nth-child(4)::after { content: '💰'; } main.wide .stats .stat:nth-child(5)::after { content: '⏳'; }
main:not(.wide) .stats .stat:nth-child(1)::after { content: '🍽️'; } main:not(.wide) .stats .stat:nth-child(2)::after { content: '✅'; } main:not(.wide) .stats .stat:nth-child(3)::after { content: '🙈'; } main:not(.wide) .stats .stat:nth-child(4)::after { content: '🏷️'; }

/* tables */
.table-wrap { margin: 0 -26px -8px; padding: 0 26px 6px; }
table { border-collapse: separate; border-spacing: 0; }
th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 700; padding: 6px 12px 12px 0; }
td { padding: 15px 12px 15px 0; } tbody tr { transition: background .2s; } tbody tr:hover td { background: #fffaf7; }
td:first-child, th:first-child { padding-left: 4px; }
.pill { padding: 3px 11px; border-radius: 99px; font-weight: 700; }
.pill.ok { background: #e3f6ea; } .pill.warn { background: #fdf0d8; } .pill.bad { background: #fde6e6; }
.toolbar h3 { font: 700 1.1rem 'Montserrat', sans-serif; }

/* dish cards in the dashboard */
.items { gap: 18px; }
.item { border-radius: 22px; transition: transform .4s var(--ease), box-shadow .4s; } .item:hover { transform: translateY(-5px); box-shadow: 0 34px 50px -30px rgba(140,20,45,.4); }
.thumb { --tc: #0b55b8 !important; background: linear-gradient(135deg, #ff7a8e, #0b55b8 55%, #d10f38); }
.item-body .nm { font-size: 15px; } .item-body .price { font: 800 16px 'Montserrat', sans-serif; color: var(--brand-600); }
.vtoggle { border-radius: 14px; } .vtoggle button { border-radius: 10px; }
.modal-box { border-radius: 26px; box-shadow: 0 50px 90px -30px rgba(60,10,25,.55); } .modal-head h3 { font: 700 1.15rem 'Montserrat', sans-serif; }
.note { border-radius: 14px; }
.qr-box { border-radius: 22px; }
@media (max-width: 860px) { .shell::before { display: none; } .side { border-right: 0; border-bottom: 1px solid var(--line); } }

/* guest menu redesign: pizza-red banner, pill controls, soft rounded cards */
body.menu-page { --bg: #f5f8fd; --radius: 20px; background: #f5f8fd; }
body.menu-page .m-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #ff4d6d 0%, #0b55b8 45%, #a50f2d 100%); color: #fff; padding: 40px 16px 46px; border-radius: 0 0 32px 32px; }
body.menu-page .m-hero::before, body.menu-page .m-hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); pointer-events: none; }
body.menu-page .m-hero::before { width: 360px; height: 360px; right: -120px; top: -140px; }
body.menu-page .m-hero::after { width: 220px; height: 220px; left: -80px; bottom: -110px; }
body.menu-page .m-hero > * { position: relative; z-index: 1; }
body.menu-page .m-hero img { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 10px 26px rgba(0,0,0,.25); }
body.menu-page .m-hero h1 { color: #fff; font-style: normal; font-weight: 800; }
body.menu-page .m-hero p { color: rgba(255,255,255,.88); }
body.menu-page .m-hero .small { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; }
body.menu-page .skel-hero { background: #0b55b8; border-radius: 0 0 32px 32px; }
body.menu-page .m-bar { background: rgba(255,250,246,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body.menu-page .chip { border-radius: 999px; } 
body.menu-page .m-card { border-radius: 20px; box-shadow: 0 10px 28px rgba(60,20,30,.08); overflow: hidden; transition: transform .2s, box-shadow .2s; }
body.menu-page .m-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11,85,184,.16); }
body.menu-page .m-foot { background: linear-gradient(160deg, #3a0612, #150308); border-radius: 28px 28px 0 0; }

/* orders & staff sub-tabs, full-width dashboard */
main.main { max-width: none; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 16px; width: fit-content; max-width: 100%; box-shadow: 0 6px 18px rgba(60,20,30,.05); }
.subtabs button { background: transparent; color: var(--muted); border: 0; border-radius: 12px; padding: 9px 18px; font-weight: 600; box-shadow: none; }
.subtabs button:hover { background: var(--brand-50); color: var(--brand); }
.subtabs button.on { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -8px rgba(11,85,184,.6); }
.card.sub-off { display: none !important; }

/* on/off switch */
.ord-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .ord-head h3 { margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { width: 48px; height: 28px; border-radius: 99px; background: #d9d3cd; position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .track { background: var(--brand); } .switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { box-shadow: var(--ring); }
.switch .state::before { content: 'Off'; color: var(--muted); } .switch input:checked ~ .state::before { content: 'On'; color: var(--brand); }

/* billing */
.bl-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.bl-bill { position: sticky; top: 16px; }
.bl-items { display: grid; gap: 4px; margin-top: 12px; max-height: 62vh; overflow: auto; }
.bl-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; } .bl-item:hover { background: var(--brand-50); }
.bl-item small { display: block; color: var(--muted); }
.bl-lines { display: grid; gap: 6px; margin: 10px 0; } .bl-lines > div { display: flex; justify-content: space-between; gap: 10px; }
.bl-filter { display: flex; gap: 14px; flex-wrap: wrap; align-items: end; } .bl-filter > div { min-width: 150px; } .bl-quick { display: flex; gap: 8px; }
.stats.plain .stat::after { display: none; } .stats.plain .stat small { font-size: 12px; font-weight: 600; line-height: 1.5; display: block; }
@media (max-width: 860px) { .bl-grid { grid-template-columns: 1fr; } .bl-bill { position: static; } }
.bl-bill .card-foot button { white-space: nowrap; }
a.btn.disabled, a.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
select:disabled, input:disabled { opacity: .55; cursor: not-allowed; background: var(--bg-2); }

/* track my order */
.o-findbtn { position: absolute !important; top: 14px; right: 14px; z-index: 2; background: rgba(255,255,255,.95); color: #0b55b8; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; box-shadow: 0 6px 16px rgba(0,0,0,.18); cursor: pointer; }
.o-refresh { background: var(--brand-50, #eaf2fd); color: #0b55b8; border: 0; border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 12px; cursor: pointer; margin-left: 6px; }
.o-card { border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-top: 12px; background: #fff; }
.o-card-h, .o-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.o-pill { padding: 4px 10px; border-radius: 999px; background: #eaf2fd; color: #08409a; font-weight: 700; font-size: 12px; } .o-pill.s-paid { background: #e6f7ec; color: #12823b; } .o-pill.s-cancelled { background: #eee; color: #666; }
.o-results { margin-top: 16px; }

/* billing: category tabs and product grid */
.bl-cats { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; } .bl-cats::-webkit-scrollbar { display: none; }
.bl-cats button { flex: none; background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-weight: 600; box-shadow: none; }
.bl-cats button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.bl-items { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-top: 12px; }
.bl-item { flex-direction: column; align-items: stretch; justify-content: space-between; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.bl-item.in { border-color: var(--brand); background: var(--brand-50); }
.bl-item .bl-nm b { display: block; } .bl-item .bl-nm small { display: block; margin-top: 2px; font-weight: 700; color: var(--brand); }
.bl-item > button, .bl-item > .m-step { align-self: flex-start; }

/* billing: select-only product cards with photos, quantities in the bill */
button.bl-item { width: 100%; text-align: left; justify-content: flex-start; align-items: stretch; padding: 0; gap: 0; color: var(--ink); overflow: hidden; box-shadow: none; display: flex; flex-direction: column; cursor: pointer; }
button.bl-item:hover { transform: none; border-color: var(--brand); }
.bl-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #ff7a8e, #0b55b8 55%, #d10f38); color: #fff; font: 800 2rem 'Montserrat', sans-serif; overflow: hidden; }
.bl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-tick { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-style: normal; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
button.bl-item .bl-nm { padding: 10px 12px 12px; }
.bl-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; } .bl-line .bl-ln small { display: block; color: var(--muted); } .bl-amt { min-width: 64px; text-align: right; }

.o-tablebadge { display: inline-block; margin-top: 10px; padding: 6px 16px; border-radius: 999px; background: #fff; color: #0b55b8; font-weight: 800; font-size: 15px; box-shadow: 0 8px 18px rgba(0,0,0,.2); }
.o-body input[readonly] { background: #f1ece7; color: #151515; font-weight: 700; cursor: not-allowed; }
.lib-all { margin: 8px 2px 6px; font-weight: 600; }

/* AR */
.ar-btn { display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 4px; background: #fff; color: #0b55b8; border: 2px solid #0b55b8; border-radius: 999px; padding: 10px 18px; font-weight: 700; cursor: pointer; }
.arv { position: fixed; inset: 0; z-index: 200; background: #1b0a10; color: #fff; display: flex; flex-direction: column; }
.arv-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); } .arv-top small { display: block; opacity: .75; }
.arv-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; cursor: pointer; padding: 0; }
.arv-stage { position: relative; flex: 1; min-height: 0; } .arv-stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; background: radial-gradient(circle at 50% 40%, #5a1424, #1b0a10 70%); }
.arv-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; opacity: .85; z-index: 1; pointer-events: none; }
.arv-go { position: absolute; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); background: #0b55b8; color: #fff; border: 0; border-radius: 999px; padding: 14px 24px; font: 700 16px 'Inter', sans-serif; box-shadow: 0 12px 26px rgba(11,85,184,.5); white-space: nowrap; cursor: pointer; }
.arv-foot { padding: 0 16px max(14px, env(safe-area-inset-bottom)); } .arv-note { margin: 0; text-align: center; opacity: .8; font-size: 13px; }

/* Generate 3D model: button, progress bar and message */
.g3d { margin: 0 0 10px; } .g3d-bar { height: 10px; border-radius: 99px; background: rgba(127,127,127,.2); overflow: hidden; margin: 10px 0 6px; } .g3d-bar.hidden { display: none; }
.g3d-bar i { display: block; height: 100%; width: 0; background: var(--theme, #0b55b8); border-radius: inherit; transition: width .8s ease; }

/* Select all / delete selected on the dish lists */
.bulk { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 12px; } .bulk.hidden { display: none; } .bulk .check { margin: 0; font-weight: 600; } .bulk [data-bdel].hidden { display: none; } .bulk [data-bdel] { margin-left: auto; }
.items .item { position: relative; } .item .pick { position: absolute; top: 8px; left: 8px; z-index: 2; margin: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.92); box-shadow: 0 1px 6px rgba(0,0,0,.25); cursor: pointer; }
.item .pick input { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: var(--tc, #0b55b8); } .item.picked { outline: 2px solid var(--tc, #0b55b8); outline-offset: -2px; }

/* Category "View" popup */
.cv-list { display: grid; gap: 8px; max-height: 60vh; overflow: auto; } .cv-row { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line, rgba(127,127,127,.25)); border-radius: 12px; } .cv-row.off { opacity: .6; }
.cv-img { width: 52px; height: 52px; flex: none; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: rgba(127,127,127,.15); font-weight: 800; } .cv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-main { flex: 1; min-width: 0; } .cv-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cv-side { text-align: right; flex: none; }

/* Add menu: category chips scroll with arrows, wheel or drag */
.lib-chipbar { display: flex; align-items: center; gap: 6px; } .lib-chipbar .lib-chips { flex: 1; min-width: 0; cursor: grab; scroll-behavior: auto; user-select: none; overscroll-behavior-x: contain; }
.lib-arr { flex: none; width: 30px; height: 30px; padding: 0; margin-bottom: 8px; border-radius: 50%; background: var(--card); color: var(--ink); border: 1px solid var(--line); font-size: 18px; line-height: 1; }
.lib-arr:hover { background: var(--raised); } @media (pointer: coarse) { .lib-arr { display: none; } }

/* Your order: price and quantity stepper line up on the right, one above the other, on every row */
.o-line { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; align-items: start; }
.o-line .nm { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.o-line .amt { grid-column: 2; grid-row: 1; min-width: 0; text-align: right; justify-self: end; }
.o-line .m-step { grid-column: 2; grid-row: 2; justify-self: end; }
.o-line .line-note { grid-row: 3; }

/* Counter billing: fills the window, two cards of the same height, only the lists scroll */
.bl-grid { align-items: stretch; }
.bl-grid > .card { display: flex; flex-direction: column; min-height: 0; overflow: hidden; margin: 0; }
.bl-bill { position: static; }
.bl-grid .bl-items { flex: 1; min-height: 0; max-height: none; overflow: auto; align-content: start; grid-auto-rows: max-content; } /* max-content: rows must not shrink to nothing inside a fixed-height box */
.bl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .bl-head h3 { margin: 0; }
.bl-grid .bl-lines { flex: 1; min-height: 70px; overflow: auto; margin: 10px 0; align-content: start; display: grid; gap: 4px; }
.bl-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px 30px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bl-line .m-step { justify-self: end; } .bl-line .bl-amt { min-width: 0; text-align: right; }
.bl-rm { width: 30px; height: 30px; padding: 0; border-radius: 50%; background: transparent; color: #b91c1c; border: 1px solid #f3c7c7; box-shadow: none; font-size: 13px; line-height: 1; } .bl-rm:hover { background: #fdecec; }
.bl-cust { flex: none; border-top: 1px solid var(--line); padding-top: 4px; } .bl-cust label { margin-top: 8px; } .bl-cust .err { min-height: 0; }
.bl-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; margin-top: 8px; border-top: 1px dashed var(--line); }
.bl-total { display: flex; flex-direction: column; line-height: 1.15; } .bl-total span { color: var(--muted); font-size: 13px; } .bl-total b { font-size: 1.7rem; }
.bl-foot #blGo { padding: 14px 26px; font-size: 16px; font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) { .bl-grid .bl-items { max-height: 55vh; flex: none; } .bl-grid .bl-lines { flex: none; max-height: 40vh; } }
.bl-grid .bl-items { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }

/* billing line: quantity, amount and remove sit together, flush with the right edge */
.bl-line { display: flex; align-items: center; gap: 10px; }
.bl-line .bl-ln { flex: 1; min-width: 0; }
.bl-ctl { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: none; }
.bl-ctl .bl-amt { min-width: 64px; text-align: right; }
/* selected-dish check: primary circle with a white check */
.bl-tick { background: var(--brand); color: #fff; border: 2px solid #fff; box-sizing: border-box; font-size: 14px; }
/* the bill column is wide enough for a line; if a line still doesn't fit, quantity / amount / remove drop to their own row, flush right */
.bl-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); }
.bl-line { flex-wrap: wrap; row-gap: 6px; } .bl-line .bl-ln { flex: 1 1 150px; }
.bl-grid .bl-lines { overflow-x: hidden; }
@media (max-width: 860px) { .bl-grid { grid-template-columns: 1fr; } }
/* compact customer fields so the bill lines get the room */
.bl-cust label { margin: 6px 0 3px; font-size: 12px; } .bl-cust input { padding: 8px 12px; } .bl-cust .row { gap: 8px; }
.bl-cust .st-methods button { padding: 8px 10px; } .bl-foot { padding-top: 8px; margin-top: 6px; } .bl-total b { font-size: 1.5rem; } .bl-foot #blGo { padding: 12px 22px; }
.bl-grid .bl-lines { min-height: 110px; }

/* the restaurant's own logo in the dashboard corner */
.brand .mark.has-logo { background: #fff; border: 1px solid var(--line); box-shadow: none; overflow: hidden; padding: 2px; width: 40px; height: 40px; border-radius: 12px; } .brand .mark.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* QR standee request: design samples */
.sd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-bottom: 14px; }
.sd-opt { display: flex; flex-direction: column; gap: 6px; padding: 8px; margin: 0; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; background: var(--card); } .sd-opt.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50, rgba(11,85,184,.12)); }
.sd-opt input { position: absolute; opacity: 0; pointer-events: none; } .sd-name { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.sd-card { aspect-ratio: 3 / 4; border-radius: 10px; padding: 10px 8px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; overflow: hidden; background: var(--tc); color: #fff; }
.sd-top { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; line-height: 1.2; } .sd-top b { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-logo { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
.sd-scan { font-weight: 800; font-size: 12px; line-height: 1.2; } .sd-scan span { font-weight: 500; font-size: 9.5px; opacity: .85; }
.sd-qr { width: 62%; aspect-ratio: 1; background: #fff; border-radius: 8px; padding: 4px; } .sd-qr img { width: 100%; height: 100%; display: block; }
.sd-foot { font-size: 8px; opacity: .7; letter-spacing: .08em; text-transform: uppercase; }
.sd-clean { background: #fff; color: #151515; border: 1px solid #e5e5e5; border-top: 6px solid var(--tc); } .sd-clean .sd-qr { border: 1px solid #eee; }
.sd-dark { background: #121212; color: #f3e3b0; } .sd-dark .sd-top b, .sd-dark .sd-scan { color: #d4af37; } .sd-dark .sd-qr { border: 2px solid #d4af37; }
.sd-acrylic { background: linear-gradient(160deg, #e9f2ff, #ffffff 60%, #dbe8ff); color: #14213d; border: 3px solid #cfe0ff; box-shadow: inset 0 0 0 4px rgba(255,255,255,.7); } .sd-acrylic .sd-qr { border: 1px solid #cfe0ff; }
.sd-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; } .sd-row .sd-qty { margin-top: 4px; } .sd-total { text-align: right; } .sd-total b { display: block; font-size: 1.6rem; }
.sd-req { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* standee popup: designs on the left, quantity and address on the right, so nothing needs scrolling */
.sd-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.sd-left .sd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.sd-opt { padding: 6px; gap: 4px; } .sd-name { flex-direction: column; gap: 0; font-size: 12px; } .sd-name span { color: var(--muted); }
.sd-desc { margin: 0 0 6px; min-height: 2.6em; }
.sd-right .row { gap: 8px; } .sd-right label { margin: 10px 0 4px; } .sd-right input { padding: 9px 12px; } .sd-right .card-foot { margin-top: 12px; }
.sd-reqs { max-height: 92px; overflow: auto; } .sd-req { padding: 5px 0; font-size: 13px; }
@media (max-width: 780px) { .sd-wrap { grid-template-columns: 1fr; } .sd-left .sd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sd-left .sd-card { padding: 7px 5px; } .sd-left .sd-top { font-size: 8px; gap: 2px; } .sd-left .sd-top b { font-size: 9.5px; } .sd-left .sd-logo { width: 22px; height: 22px; border-radius: 6px; }
.sd-left .sd-scan { font-size: 8.5px; } .sd-left .sd-scan span { font-size: 6.5px; } .sd-left .sd-qr { width: 70%; padding: 3px; border-radius: 6px; } .sd-left .sd-foot { font-size: 6px; }
/* billing: the Pick items card is narrower, the Bill card gets the larger share */
.bl-grid { grid-template-columns: minmax(0, .8fr) minmax(360px, 1fr); }
@media (max-width: 860px) { .bl-grid { grid-template-columns: 1fr; } }

/* billing category tabs: arrows at both ends */
.bl-catbar { display: flex; align-items: center; gap: 6px; } .bl-catbar .bl-cats { flex: 1; min-width: 0; cursor: grab; user-select: none; overscroll-behavior-x: contain; padding-bottom: 4px; }
.bl-catbar .lib-arr { margin: 8px 0 0; } .bl-catbar .lib-arr.hidden { display: none; } .bl-catbar .lib-arr:disabled { opacity: .35; cursor: default; }
@media (pointer: coarse) { .bl-catbar .lib-arr { display: none; } }

/* categories as a grid of cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.cat-thumbs { display: grid; gap: 3px; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--brand), var(--brand-600, #d10f38)); }
.cat-thumbs.n1 { grid-template-columns: 1fr; } .cat-thumbs.n2 { grid-template-columns: 1fr 1fr; } .cat-thumbs.n3, .cat-thumbs.n4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr 1fr; } .cat-thumbs.n3 img:first-child { grid-row: 1 / span 2; }
.cat-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; } .cat-letter { display: grid; place-items: center; color: #fff; font: 800 2.2rem 'Montserrat', sans-serif; grid-column: 1 / -1; }
.cat-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .cat-info b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.cat-card .actions { margin-top: auto; gap: 6px; flex-wrap: wrap; }

/* poster designer */
.pz-wrap { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pz-prev { background: #ececec; border-radius: 12px; padding: 8px; } .pz-prev canvas { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pz-tpls { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; } .pz-tpl { padding: 4px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: none; display: flex; flex-direction: column; gap: 4px; align-items: stretch; font-size: 10.5px; font-weight: 600; line-height: 1.15; }
.pz-tpl canvas { width: 100%; height: auto; display: block; border-radius: 5px; } .pz-tpl.on { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50, rgba(11,85,184,.12)); } .pz-tpl:hover { transform: none; }
.pz-side label { margin: 10px 0 4px; } .pz-side input:not([type=checkbox]):not([type=color]) { padding: 9px 12px; } .pz-side .row { gap: 8px; }
.pz-opts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
@media (max-width: 780px) { .pz-wrap { grid-template-columns: 1fr; } .pz-prev { max-width: 300px; margin: 0 auto; } }

/* "on your table" preview of the chosen standee */
.sd-scene { position: relative; height: 178px; border-radius: 12px; overflow: hidden; margin: 2px 0 8px; background: #efe6da; isolation: isolate; }
.sd-wall { position: absolute; inset: 0 0 46% 0; background: linear-gradient(180deg, #f6efe4, #e6d9c6); }
.sd-table { position: absolute; inset: 54% 0 0 0; background: linear-gradient(180deg, #b78655 0%, #9a6b3f 55%, #7f5530 100%); box-shadow: inset 0 6px 10px rgba(0,0,0,.18); }
.sd-table::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 38px); }
.sd-stand { position: absolute; left: 50%; bottom: 17%; transform: translateX(-50%); width: 82px; z-index: 3; }
.sd-standcard { transform: perspective(300px) rotateX(-6deg); transform-origin: bottom; filter: drop-shadow(0 10px 8px rgba(0,0,0,.35)); } .sd-standcard .sd-card { aspect-ratio: 3 / 3.9; padding: 5px 4px; border-radius: 6px; }
.sd-standcard .sd-top { font-size: 5px; gap: 1px; } .sd-standcard .sd-top b { font-size: 6.5px; } .sd-standcard .sd-logo { width: 14px; height: 14px; border-radius: 4px; } .sd-standcard .sd-scan { font-size: 6px; } .sd-standcard .sd-scan span { font-size: 4.5px; } .sd-standcard .sd-qr { width: 66%; padding: 2px; border-radius: 4px; } .sd-standcard .sd-foot { font-size: 4px; }
.sd-base { height: 7px; margin: 0 -6px; border-radius: 3px; background: linear-gradient(180deg, #d9d2c8, #a79f93); box-shadow: 0 5px 6px rgba(0,0,0,.35); }
.sd-scene[data-d="acrylic"] .sd-base { height: 11px; background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(170,205,255,.6)); border: 1px solid rgba(255,255,255,.9); }
.sd-scene[data-d="acrylic"] .sd-standcard { box-shadow: 0 0 0 2px rgba(255,255,255,.7); border-radius: 8px; }
.sd-scene[data-d="dark"] .sd-base { background: linear-gradient(180deg, #3a3a3a, #111); }
.sd-plate { position: absolute; left: 14%; bottom: 14%; width: 62px; height: 20px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #fff 0 45%, #e4e4e4 46% 100%); box-shadow: 0 4px 6px rgba(0,0,0,.3); z-index: 2; }
.sd-cup { position: absolute; right: 17%; bottom: 20%; width: 26px; height: 24px; border-radius: 3px 3px 12px 12px; background: linear-gradient(90deg, #fff, #dcdcdc); box-shadow: 0 4px 5px rgba(0,0,0,.3); z-index: 2; } .sd-cup i { position: absolute; right: -9px; top: 5px; width: 11px; height: 11px; border: 3px solid #e9e9e9; border-left: 0; border-radius: 0 9px 9px 0; }
.sd-glass { position: absolute; right: 31%; bottom: 17%; width: 14px; height: 34px; border-radius: 2px 2px 4px 4px; background: linear-gradient(90deg, rgba(255,255,255,.65), rgba(255,255,255,.2)); border: 1px solid rgba(255,255,255,.7); z-index: 2; }
.sd-tag { position: absolute; left: 8px; top: 7px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #7a6a52; z-index: 4; }
.sd-mine summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 4px 0; } .sd-mine.hidden { display: none; }

/* standee popup: standees / stickers tabs and sticker designs */
.sd-kinds { margin: 0 0 8px; } .sd-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 62%; }
.sd-sticker { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--tc); color: #fff; text-align: center; padding: 6px; overflow: hidden; }
.sd-sticker b { font-size: 8.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sd-sticker span { font-size: 6.5px; opacity: .9; }
.sd-sticker .sd-qr { width: 64%; } .sd-sticker-round { border-radius: 50%; padding: 10px; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--tc); } .sd-sticker-square { border-radius: 10px; }
.sd-scene[data-d^="sticker"] .sd-base { display: none; } .sd-scene[data-d^="sticker"] .sd-stand { bottom: 9%; width: 96px; }
.sd-scene[data-d^="sticker"] .sd-standcard { transform: perspective(260px) rotateX(58deg) rotateZ(-8deg); transform-origin: center; filter: drop-shadow(0 6px 5px rgba(0,0,0,.4)); }
.sd-scene[data-d^="sticker"] .sd-standcard .sd-sticker b { font-size: 7px; } .sd-scene[data-d^="sticker"] .sd-standcard .sd-sticker span { font-size: 5px; }

.sd-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px 16px; } .sd-price { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; }
.sd-price-in { display: flex; align-items: center; gap: 4px; } .sd-price-in input { width: 100px; padding: 7px 10px; text-align: right; }

.sd-kinds { display: flex; gap: 8px; background: none; padding: 0; box-shadow: none; border: 0; }
.sd-kinds button { flex: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 13px; box-shadow: none; }
.sd-kinds button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.pz-tabs { display: flex; gap: 6px; margin: 10px 0 0; } .pz-tabs button { flex: none; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-weight: 600; font-size: 13px; box-shadow: none; } .pz-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pz-style input[type=color] { width: 100%; height: 36px; padding: 2px; } .pz-style input[type=range] { padding: 0; height: 24px; accent-color: var(--brand); } .pz-style select { padding: 8px 10px; } .pz-style label small { font-weight: 500; }
.pz-align { display: flex; gap: 4px; } .pz-align button { flex: 1; padding: 7px 0; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-size: 16px; line-height: 1; } .pz-align button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pz-tpl span { font-size: 9.5px; }

.pz-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 4px; } .pz-colors label { margin: 0 0 3px; font-size: 11.5px; } .pz-style input[type=color] { height: 30px; }
.pz-sliders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 2px; } .pz-sliders label { font-size: 11.5px; } .pz-style .row label { font-size: 12px; margin: 8px 0 3px; }

/* standee popup, round two: real table photo, aligned total, sticker colours */
.sd-scene { height: 236px; background: #2a1d14 url(/img/table-scene.jpg) 50% 80% / cover no-repeat; border-radius: 12px; }
.sd-scene .sd-wall, .sd-scene .sd-table, .sd-scene .sd-plate, .sd-scene .sd-cup, .sd-scene .sd-glass, .sd-scene .sd-stand { display: none; }
.sd-spot { position: absolute; left: 79%; bottom: 8%; width: 76px; transform: translateX(-50%); z-index: 3; }
.sd-spot::after { content: ''; position: absolute; left: -8%; right: -8%; bottom: -6px; height: 12px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%); z-index: -1; }
.sd-spot .sd-base { margin: 0 -4px; }
.sd-scene .sd-tag { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); left: 10px; top: 8px; }
.sd-credit { position: absolute; right: 8px; bottom: 6px; font-size: 9px; color: rgba(255,255,255,.8); text-shadow: 0 1px 3px rgba(0,0,0,.8); z-index: 4; text-decoration: none; } .sd-credit:hover { text-decoration: underline; }
.sd-scene[data-d^="sticker"] .sd-spot { width: 66px; bottom: 5%; } .sd-scene[data-d^="sticker"] .sd-spot .sd-base { display: none; }
.sd-qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 600; }
.sd-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--brand-50, #eaf2fd); } .sd-sum span { color: var(--muted); font-weight: 600; } .sd-sum b { font-size: 1.7rem; line-height: 1; }
.sd-right .card-foot { margin-top: 12px; }
.sd-colours { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; } .sd-colours.hidden { display: none; }
.sd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 999px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-size: 12px; font-weight: 600; } .sd-chip.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-50, rgba(11,85,184,.15)); } .sd-chip:hover { transform: none; }
.sd-chip i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); background: #0b55b8; } .sd-chip.c-clean i { background: #fff; } .sd-chip.c-dark i { background: #121212; box-shadow: inset 0 0 0 2px #d4af37; } .sd-chip.c-acrylic i { background: linear-gradient(160deg, #cfe0ff, #fff); }
/* stickers wear the standee colour schemes */
.sd-sticker.sd-c-classic { background: var(--tc); color: #fff; } .sd-sticker.sd-c-clean { background: #fff; color: #151515; border: 2px solid #e5e5e5; box-shadow: inset 0 -5px 0 var(--tc); }
.sd-sticker.sd-c-dark { background: #121212; color: #d4af37; } .sd-sticker.sd-c-dark .sd-qr { border: 2px solid #d4af37; }
.sd-sticker.sd-c-acrylic { background: linear-gradient(160deg, #e9f2ff, #fff 60%, #dbe8ff); color: #14213d; border: 2px solid #cfe0ff; }
.sd-sticker-round.sd-c-classic { border: 3px solid #fff; box-shadow: 0 0 0 2px var(--tc); } .sd-sticker-round.sd-c-dark { border: 3px solid #d4af37; box-shadow: none; }

/* guest menu: open now, contact buttons, hours, Wi-Fi */
.m-open { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.08); font-size: 12.5px; font-weight: 700; } .m-open.on { background: #e6f7ec; color: #12823b; } .m-open:not(.on) { background: #f1f1f1; color: #666; }
.m-info { max-width: 720px; margin: 8px auto 0; padding: 0 16px; display: grid; gap: 10px; }
.m-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; } .m-act { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #151515; font-weight: 600; font-size: 13.5px; text-decoration: none; } .m-act:hover { border-color: var(--theme, #0b55b8); color: var(--theme, #0b55b8); }
.m-hours { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 10px 14px; font-size: 14px; } .m-hours summary { cursor: pointer; font-weight: 700; } .m-hours div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid #f0f0f0; } .m-hours div:first-of-type { margin-top: 8px; }
.m-wifi { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; background: #fff; } .m-wifi span { color: var(--muted); font-weight: 600; } .m-wifi button { padding: 5px 12px; border-radius: 999px; background: var(--brand-50, #eaf2fd); color: #08409a; border: 0; box-shadow: none; font-size: 12.5px; font-weight: 700; }
.m-legal { text-align: center; color: var(--muted); font-size: 12px; }

/* restaurant details: opening hours editor */
.hours-grid { display: grid; gap: 6px; } .hours-row { display: grid; grid-template-columns: 96px 130px 24px 130px auto; align-items: center; gap: 8px; } .hours-row b { font-size: 14px; } .hours-row span { text-align: center; color: var(--muted); } .hours-row input[type=time] { padding: 8px 10px; } .hours-row .check { margin: 0; }
@media (max-width: 640px) { .hours-row { grid-template-columns: 1fr 1fr 16px 1fr; } .hours-row b { grid-column: 1 / -1; } .hours-row .check { grid-column: 1 / -1; } }
.hours-grid.off { opacity: .45; pointer-events: none; }

/* tax lines: guest cart, counter billing */
.o-fee, .bl-fees > div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #555; padding: 3px 0; } .bl-fees { flex: none; margin-top: 6px; } .bl-fees:empty { display: none; }

.bl-fees { font-size: 12px; color: #666; line-height: 1.35; text-align: right; margin-top: 6px; } .bl-grid .bl-lines { min-height: 64px; }
/* short screens: tighter customer fields so the bill lines keep their room */
.bl-cust label { margin: 4px 0 2px; font-size: 11.5px; } .bl-cust input { padding: 6px 10px; font-size: 14px; } .bl-cust .st-methods button { padding: 6px 10px; } .bl-grid .bl-lines { min-height: 92px; margin: 6px 0; }
.bl-head h3 { font-size: 16px; }

/* category popup: grid / list switch */
.cv-bar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.cv-list.as-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cv-list.as-grid .cv-row { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.cv-list.as-grid .cv-img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; font-size: 1.8rem; }
.cv-list.as-grid .cv-main { padding: 8px 10px 0; } .cv-list.as-grid .cv-main .small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cv-list.as-grid .cv-side { text-align: left; padding: 4px 10px 10px; display: flex; justify-content: space-between; align-items: center; }

/* paying on the POS machine: waiting popup */
.pos-wait { text-align: center; padding: 6px 0 10px; } .pos-pulse { font-size: 3rem; line-height: 1; animation: posPulse 1.6s ease-in-out infinite; } .pos-amt { font-size: 2.2rem; font-weight: 800; margin: 6px 0; } .pos-wait p { margin: 4px 0 10px; color: var(--muted); } .pos-st { font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 12px; background: var(--brand-50, #eaf2fd); display: inline-block; }
@keyframes posPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .pos-pulse { animation: none; } }

/* products with the admin's own picture */
.sd-prodcard { aspect-ratio: 3 / 3.4; border-radius: 8px; overflow: hidden; background: #f3f3f3; display: grid; place-items: center; } .sd-prodcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-scene[data-d="custom-sticker"] .sd-spot { width: 66px; bottom: 5%; } .sd-scene[data-d="custom-sticker"] .sd-spot .sd-base { display: none; }
.sd-scene[data-d="custom-sticker"] .sd-standcard { transform: perspective(260px) rotateX(58deg) rotateZ(-8deg); transform-origin: center; filter: drop-shadow(0 6px 5px rgba(0,0,0,.4)); }
.sd-scene.pic .sd-standcard .sd-prodcard { aspect-ratio: 3 / 3.6; border: 3px solid #fff; border-radius: 6px; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.sd-scene.pic[data-d="custom-sticker"] .sd-standcard .sd-prodcard { aspect-ratio: 1; border-radius: 50%; border-width: 2px; }

/* admin: standee and sticker products */
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 12px; }
.sp-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.sp-img { aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--brand), var(--brand-600, #d10f38)); color: #fff; display: grid; place-items: center; align-content: center; text-align: center; } .sp-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .sp-img span { font: 800 2.4rem 'Montserrat', sans-serif; } .sp-img small { opacity: .8; font-size: 11px; }
.sp-body { padding: 10px 12px 12px; display: grid; gap: 6px; } .sp-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; } .sp-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sp-price { font-weight: 800; font-size: 1.15rem; color: var(--brand-600, #d10f38); }
/* many products: one row that scrolls sideways, so the popup keeps fitting the window */
.sd-left .sd-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc(25% - 6px); overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.sd-left .sd-grid.two { grid-auto-columns: calc(31% - 4px); max-width: none; }
.sd-left .sd-opt { min-width: 0; }

/* admin: setup control */
.su-h { margin: 18px 0 6px; font-size: 16px; } .su-group { border: 1px solid var(--line); border-radius: 14px; margin: 0 0 12px; overflow: hidden; } .su-gname { padding: 8px 14px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: rgba(127,127,127,.08); }
.su-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); } .su-row.is-off .su-name b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.su-name { min-width: 0; } .su-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; } .su-seg button { background: var(--card); color: var(--ink); border: 0; border-radius: 0; padding: 6px 12px; font-size: 12.5px; font-weight: 600; box-shadow: none; border-right: 1px solid var(--line); } .su-seg button:last-child { border-right: 0; } .su-seg button:hover { transform: none; } .su-seg button.on { background: var(--brand); color: #fff; } .su-seg button.on.off { background: #444; }
.su-lim { display: flex; gap: 8px; align-items: center; } .su-lim input { width: 90px; padding: 7px 10px; text-align: right; }
@media (max-width: 640px) { .su-row { flex-direction: column; align-items: flex-start; } }

.feat-off { display: none !important; }
.items.no-pick .pick { display: none; }

.su-chips { display: flex; flex-wrap: wrap; gap: 8px; } .su-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13.5px; font-weight: 600; } .su-chip button { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 0; background: rgba(127,127,127,.15); color: var(--ink); box-shadow: none; font-size: 11px; line-height: 1; } .su-chip button:hover { background: #fdecec; color: #b91c1c; transform: none; }

/* admin: plans and pricing matrix */
.su-matrix { width: 100%; border-collapse: collapse; min-width: 640px; } .su-matrix th, .su-matrix td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; } .su-matrix th:first-child, .su-matrix td:first-child { text-align: left; min-width: 220px; }
.su-pn { font-weight: 700; text-align: center; padding: 7px 8px; } .su-pp { display: grid; gap: 4px; margin-top: 6px; } .su-pp label { font-size: 11.5px; font-weight: 600; margin: 0; text-align: left; } .su-pp input { padding: 6px 8px; margin-top: 2px; }
.su-gr td { background: rgba(127,127,127,.08); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left !important; } .su-core { color: var(--muted); font-size: 12.5px; } .su-matrix input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }
.su-matrix th { min-width: 150px; } .su-matrix input[type=radio], .su-matrix input[type=checkbox] { width: 18px; height: 18px; padding: 0; margin: 0; accent-color: var(--brand); flex: none; }
.su-matrix th .check { display: flex; align-items: center; gap: 6px; font-size: 12px; } .su-pp input { width: 100%; padding: 6px 8px; font-size: 13px; } .su-pn { width: 100%; }

/* the Food Lens logo in the apps */
.brand .mark .fl-mark { width: 76%; height: 76%; object-fit: contain; display: block; }
.brand .brand-logo { height: 32px; width: auto; display: block; } .brand-sub { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); letter-spacing: 0; margin: 2px 0 0 2px; }
.side .brand:has(.brand-logo) { flex-direction: column; align-items: flex-start; gap: 0; }
.m-pow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 4px; color: var(--muted); font-size: 12px; text-decoration: none; } .m-pow img { height: 22px; width: auto; display: block; }

.sd-foot img { height: 8px; width: auto; display: inline-block; vertical-align: middle; opacity: .9; } .sd-left .sd-foot img { height: 6px; } .sd-standcard .sd-foot img { height: 4px; }

/* admin: restaurant logo field and the QR sticker preview */
.logo-edit { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-prev { display: grid; place-items: center; width: 120px; height: 64px; border: 1px dashed var(--line, #ccc); border-radius: 10px; background: #fff; overflow: hidden; }
.logo-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-edit input[type=file] { flex: 1; min-width: 160px; }
.sticker-prev { display: grid; place-items: center; } .sticker-prev img { display: block; width: min(100%, 70vh); aspect-ratio: 1; border-radius: 16px; box-shadow: 0 14px 36px -16px rgba(0,0,0,.5); }
.sticker-load { display: grid; place-items: center; align-content: center; gap: 14px; width: min(100%, 70vh); aspect-ratio: 1; border-radius: 16px; background: #f6f6f6; color: #666; font-size: .9rem; }
.sticker-load i { width: 38px; height: 38px; border-radius: 50%; border: 4px solid #e2e2e2; border-top-color: var(--red, #0b55b8); animation: spin .8s linear infinite; }

/* ---- guest menu on phones (Android and iOS): timing pill, bigger touch targets, keyboard-safe sheets, calm scrolling ---- */
html { -webkit-tap-highlight-color: transparent; }
body.menu-page button, body.menu-page a, body.menu-page select, body.menu-page summary { touch-action: manipulation; } /* no double-tap zoom or tap delay */
body.menu-page .m-card, body.menu-page .m-add, body.menu-page .m-step, body.menu-page .chip, body.menu-page .o-bar, body.menu-page .m-open { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.menu-page .m-card:active { transform: scale(.985); } body.menu-page .m-card { transition: transform .12s ease; }
body.menu-page .m-add:active, body.menu-page .o-btn:active, body.menu-page .o-bar:active, body.menu-page .chip:active { transform: scale(.97); }
/* restaurant timing: a tappable pill in the header */
body.menu-page .m-open { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 8px 8px 12px; border: 0; font-family: inherit; font-size: 13.5px; cursor: pointer; max-width: 100%; text-align: left; }
.m-open svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-open > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.m-open i { font-style: normal; flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.75); }
.m-hsheet { padding-top: 22px; } .m-hsheet h2 { margin: 0 40px 10px 0; } .m-hsheet .m-open { margin: 0 0 12px; pointer-events: none; }
.m-hlist { display: grid; } .m-hlist div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); font-size: 15px; }
.m-hlist .today { background: #fff5e9; border-radius: 10px; padding-inline: 10px; border-top-color: transparent; font-weight: 700; } .m-hlist .today em { font-style: normal; font-size: 11px; background: #0b55b8; color: #fff; padding: 2px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; }
/* the search and category bar */
body.menu-page .m-bar { padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
body.menu-page .m-sec { scroll-margin-top: calc(var(--barh, 112px) + 6px); }
body.menu-page .m-chips { scroll-snap-type: x proximity; overscroll-behavior-x: contain; } body.menu-page .chip { scroll-snap-align: center; min-height: 40px; }
body.menu-page .m-wrap { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
body.menu-page .m-foot { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  /* 16px text in a field stops iPhones zooming the page when it is tapped */
  body.menu-page input, body.menu-page select, body.menu-page textarea { font-size: 16px; }
  body.menu-page .m-search input { min-height: 46px; }
  body.menu-page .m-step button { width: 36px; height: 36px; } body.menu-page .m-step b { min-width: 24px; }
  body.menu-page .m-add { padding: 9px 18px; min-height: 38px; }
  body.menu-page .sheet-close, body.menu-page .o-x { width: 42px; height: 42px; }
  body.menu-page .o-sheetctl .m-step button { width: 44px; height: 44px; }
  body.menu-page .o-btn { min-height: 50px; }
  body.menu-page .m-act { padding: 11px 18px; }
}
/* sheets: sized to what is visible (not under the keyboard or browser bars), contained scrolling, safe areas */
body.menu-page .sheet-box { max-height: min(92dvh, calc(var(--vvh, 100dvh) * .96)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
body.menu-page .o-box { max-height: min(92dvh, calc(var(--vvh, 100dvh) * .96)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding-bottom: 120px; }
body.menu-page .sheet, body.menu-page .o-sheet { overscroll-behavior: contain; }
body.kb-open .o-dock { display: none; } /* the bottom order bar steps aside while the keyboard is open */
@media (prefers-reduced-motion: reduce) { body.menu-page .m-card, body.menu-page .m-card:active { transition: none; transform: none; } .sheet-box { animation: none; } }

/* dashboard: Payment tab (UPI ID and QR code) */
.upi-qr { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.upi-prev { display: grid; place-items: center; width: 168px; height: 168px; border: 1px dashed var(--line-2); border-radius: 16px; background: #fff; overflow: hidden; flex: none; }
.upi-prev img { width: 100%; height: 100%; object-fit: contain; display: block; }
.upi-side { flex: 1; min-width: 220px; display: grid; gap: 10px; align-content: start; }
/* guest menu: paying by UPI */
.o-upi { display: grid; gap: 0; }
.o-upi-box { text-align: center; background: #f7f7f7; border-radius: 16px; padding: 16px 14px; margin-top: 10px; }
.o-upi-box img { width: min(240px, 70%); height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 14px; padding: 8px; display: block; margin: 0 auto 8px; }
.o-upi-box p { margin: 4px 0; }
.o-upi-id { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; } .o-upi-id b { word-break: break-all; }
.o-copy { padding: 5px 12px; min-height: 32px; font-size: 13px; border-radius: 999px; background: #fff; color: #151515; border: 1px solid #ddd; box-shadow: none; } .o-copy:hover { background: #f0f0f0; }

/* demo restaurant banner (a marketing member's practice restaurant) */
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #fff4dd; border: 1px solid #f3d9a0; color: #7a4a00; }
.demo-bar > div { display: grid; gap: 2px; min-width: 0; } .demo-bar b { font-size: 14px; letter-spacing: .02em; text-transform: uppercase; } .demo-bar span { font-size: 13.5px; }

/* profile menu: name + designation of whoever is signed in */
.profile-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; color: var(--ink, #1b1b1f); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; font-weight: 600; }
.profile-btn:hover { background: var(--brand-50); }
.pf-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 inherit; font-style: normal; color: #fff; background: linear-gradient(135deg, #0b55b8, #4d8fe0); } .pf-av.big { width: 56px; height: 56px; font-size: 19px; }
.pf-tx { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; } .pf-tx b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pf-tx small { font-size: 11px; font-weight: 500; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-card { display: flex; align-items: center; gap: 14px; } .pf-card div { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .pf-card b { font-size: 17px; } .pf-card span { color: var(--brand-600); font-weight: 600; font-size: 13px; } .pf-card small { color: var(--muted); overflow-wrap: anywhere; }
.pf-act { display: flex; gap: 10px; justify-content: space-between; margin-top: 14px; }
.st-tools .profile-btn { width: auto; max-width: 210px; padding: 5px 10px 5px 6px; }
@media (max-width: 860px) { .side .profile-btn { width: auto; padding: 4px; border-radius: 50%; } .side .profile-btn .pf-tx { display: none; } .st-tools .profile-btn .pf-tx small { display: none; } }
.demo-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fff7e0; color: #6b4a00; font-size: 13px; }

.st-cat { margin: 18px 0 6px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .st-dish { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); } .st-dish button { min-width: 84px; }
.st-ask { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: #fff7e0; color: #6b4a00; display: flex; flex-direction: column; gap: 6px; font-size: 14px; } .st-ask b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tb-card { margin-bottom: 10px; padding: 14px 16px; } .tb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; } .tb-top b { font-size: 17px; } .tb-top .pill { margin-left: auto; } .tb-bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; } .tb-bot > b { font-size: 20px; } .tb-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px clamp(12px, 3vw, 28px) 0; } .st-filter input { flex: 1 1 220px; min-width: 0; } .st-filter select { flex: 0 1 190px; min-width: 0; }

/* order desk, simple version: one scrolling list, a popup per order */
.st-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px clamp(12px, 3vw, 28px) 0; scrollbar-width: none; } .st-chips::-webkit-scrollbar { display: none; }
.st-chips button { flex: none; display: inline-flex; align-items: center; gap: 8px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; padding: 9px 16px; font-size: 14px; border-radius: 999px; } .st-chips button b { background: var(--bg-2); color: var(--brand-600); border-radius: 99px; padding: 0 8px; font-size: 12px; } .st-chips button.on { background: var(--brand); color: #fff; border-color: var(--brand); } .st-chips button.on b { background: rgba(255,255,255,.25); color: #fff; }
.st-filter { padding-bottom: 2px; } .st-filter input, .st-filter select { height: 46px; }
.st-main.list { padding-top: 14px; } .st-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.st-row-card { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); font-weight: 500; }
.st-row-card.s-placed { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,85,184,.12), var(--shadow); }
.rw-t { flex: none; width: 58px; height: 58px; border-radius: 14px; background: var(--brand-50); color: var(--brand-600); display: grid; place-content: center; text-align: center; font: 700 20px/1 'Montserrat', sans-serif; font-style: normal; } .rw-t small { display: block; font-size: 10px; font-weight: 600; line-height: 1.2; font-family: inherit; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 2px; color: var(--muted); }
.rw-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .rw-m b { font-size: 15px; } .rw-m b em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; } .rw-m small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-f { display: flex; flex-wrap: wrap; gap: 5px; } .rw-f u { text-decoration: none; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--bg-2); color: var(--ink); } .rw-f u.new { background: var(--brand); color: #fff; } .rw-f u.warn { background: var(--warn-bg); color: var(--warn); } .rw-f u.ok { background: #dcfce7; color: var(--ok); } .rw-f u.bad { background: #fee2e2; color: var(--bad); } .rw-f u.ready { background: #dcfce7; color: var(--ok); } .rw-f u.confirmed { background: #e0ecff; color: #1d4ed8; }
.rw-r { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; } .rw-amt { font-size: 16px; }
.st-dishes { width: 100%; } .st-pop .st-card { margin: 0; box-shadow: none; border: 0; padding: 0; }
@media (max-width: 560px) { .rw-t { width: 48px; height: 48px; font-size: 18px; } }

.embed .st-bar { display: none; }
.to-frame { display: block; width: 100%; height: calc(100vh - 200px); min-height: 560px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }

/* the search, filter and chips stay in view while the list scrolls */
.st-fix { position: sticky; top: var(--sth, 0); z-index: 15; background: var(--bg); padding-bottom: 10px; box-shadow: 0 8px 14px -14px rgba(0,0,0,.35); }
/* hide / show dishes: image cards like the menu */
.dc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .dc-top p { margin: 0; }
.st-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 12px; }
button.dc { display: flex !important; flex-direction: column !important; align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important; text-align: left; padding: 0 !important; overflow: hidden; background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); font-weight: 500; }
.dc-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--brand-50); } .dc-img img { width: 100%; height: 100%; object-fit: cover; display: block; } .dc-img > i { position: absolute; inset: 0; display: grid; place-items: center; font: 700 34px 'Montserrat', sans-serif; font-style: normal; color: var(--brand-600); }
.dc-img u { position: absolute; top: 8px; left: 8px; text-decoration: none; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #dcfce7; color: var(--ok); }
.dc.off .dc-img img { filter: grayscale(1); opacity: .45; } .dc.off .dc-img u { background: #fee2e2; color: var(--bad); } .dc.off .dc-b b { color: var(--muted); text-decoration: line-through; }
.dc-b { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; } .dc-b b { font-size: 14px; line-height: 1.25; } .dc-b small { color: var(--muted); font-size: 13px; }
.st-dgrid.as-list { grid-template-columns: 1fr; gap: 8px; } .st-dgrid.as-list button.dc { flex-direction: row !important; align-items: center !important; } .st-dgrid.as-list .dc-img { width: 84px; flex: none; aspect-ratio: 1; } .st-dgrid.as-list .dc-b { flex: 1; padding: 8px 14px; }

/* table billing: one tile per table */
.tt-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tt { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tt.pay { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,85,184,.12), var(--shadow); } .tt.bill { border-color: #f3c36b; } .tt.free { background: transparent; box-shadow: none; border-style: dashed; opacity: .75; }
.tt-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .tt-h b { font: 700 1.25rem 'Montserrat', sans-serif; } .tt-amt { font: 700 1.7rem 'Montserrat', sans-serif; margin-top: 4px; }
.tt-act { display: flex; gap: 8px; margin-top: 10px; } .tt-act button { flex: 1; }
.tb-paid { padding: 6px 16px; } .tbp { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .tbp:last-child { border: 0; } .tbp .tbp-a { margin-left: auto; }
.tbb-o { padding: 12px 0; border-bottom: 1px dashed var(--line-2); } .tbb-o:last-of-type { border: 0; } .tbb-h { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 6px; }
.tbb-t { width: 100%; border-collapse: collapse; font-size: 14px; } .tbb-t td { padding: 4px 0; vertical-align: top; } .tbb-t td:nth-child(n+2) { text-align: right; white-space: nowrap; padding-left: 14px; color: var(--muted); } .tbb-t td:last-child { color: var(--ink); font-weight: 600; } .tbb-t small { display: block; color: var(--warn); }
.tbb-s { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14px; color: var(--muted); } .tbb-s.tot { color: var(--ink); font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; } .tbb-s.grand { color: var(--ink); font: 700 1.3rem 'Montserrat', sans-serif; border-top: 2px solid var(--ink); margin-top: 8px; padding-top: 12px; }
.wt-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-bottom: 6px; }

/* grocery: brand and weight on a product, weight chips, the checkout choices */
.bw { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.m-wt { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; } .m-wt button { padding: 4px 9px !important; font-size: 12px !important; border-radius: 999px !important; background: #fff !important; color: var(--ink) !important; border: 1.5px solid var(--line-2) !important; box-shadow: none !important; min-height: 0 !important; } .m-wt button.on { background: var(--brand-50) !important; border-color: var(--brand) !important; color: var(--brand-600) !important; }
.o-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 4px; } .o-seg label, .o-opt { margin: 0; cursor: pointer; } .o-seg input, .o-opt input { position: absolute; opacity: 0; pointer-events: none; }
.o-seg span, .o-opt span { display: block; text-align: center; padding: 12px 10px; border: 1.5px solid var(--line-2); border-radius: 14px; font-weight: 700; font-size: 14.5px; background: #fff; } .o-seg input:checked + span, .o-opt input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); }
.o-opts { display: grid; gap: 8px; margin-top: 6px; } .o-opt span { text-align: left; padding: 13px 16px; }

.st-addr { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--brand-50); color: var(--ink); font-size: 14px; line-height: 1.45; }
.st-paytag { padding: 8px 12px; border-radius: 10px; font-weight: 700; font-size: 13.5px; } .st-paytag.ok { background: #dcfce7; color: var(--ok); } .st-paytag.warn { background: var(--warn-bg); color: var(--warn); }
.st-payset { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; } .st-payset b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); width: 100%; } .st-payset label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin: 0; cursor: pointer; } .st-payset input { accent-color: var(--brand); }

body.menu-page .m-cardwrap.has-wt .m-card .b { padding-bottom: 142px; } .m-cardwrap.has-wt .m-ctl { left: 10px; display: flex; flex-direction: column; align-items: flex-end; } .m-cardwrap.has-wt .m-wt { align-self: stretch; margin: 0 0 6px; }
.st-payset input[type=radio] { width: 18px !important; height: 18px !important; padding: 0 !important; margin: 0 !important; flex: none; box-shadow: none !important; }

/* the payment app chooser */
.o-apps { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.5); }
.o-apps-box { width: min(480px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.5); animation: oAppsUp .22s ease-out; }
@keyframes oAppsUp { from { transform: translateY(40px); opacity: .4; } }
.o-apps-h { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; } .o-apps-h b { display: block; font: 800 1.35rem 'Montserrat', sans-serif; } .o-apps-h small { color: var(--muted); }
.o-apps-x { background: var(--bg-2, #f2f2f2) !important; color: var(--ink) !important; width: 36px; height: 36px; padding: 0 !important; border-radius: 50% !important; box-shadow: none !important; }
.o-apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.o-apps-grid .o-app { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 6px !important; background: transparent !important; color: var(--ink) !important; box-shadow: none !important; border: 0 !important; padding: 6px 2px !important; font-size: 12px; font-weight: 600; text-align: center; }
.o-app i { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; font: 800 20px 'Montserrat', sans-serif; font-style: normal; } .o-app span { line-height: 1.2; }
.o-apps-alt { margin-top: 14px; text-align: center; } .o-apps-alt img { border-radius: 12px; border: 1px solid var(--line); }
.st-lines .rk { font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--brand-50); color: var(--brand-600); border-radius: 6px; padding: 1px 7px; margin-left: 6px; white-space: nowrap; }

.side .soep-logo { display: block; width: 100%; max-width: 190px; height: auto; margin: 6px 10px 14px; border-radius: 10px; }
@media (max-width: 860px) { .side .soep-logo { display: none; } }
