/* ---------- Font ---------- */
/* Heebo (SIL Open Font License), served from this app instead of Google Fonts: no extra
   connections to two Google hosts before text can render, and it keeps working on a
   kiosk whose internet is down. One variable file per script covers every weight;
   the browser downloads only the scripts a page actually uses. */
@font-face {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/heebo-hebrew.woff2') format('woff2');
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/heebo-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/heebo-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;
}
/* Russian: Heebo has no Cyrillic. Roboto (Apache License 2.0), the typeface Heebo was
   drawn from, has - so Russian text matches the Hebrew and Latin around it. */
@font-face {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/roboto-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Design tokens ---------- */
/* Brand colors as given by the owner: gold #a07d32 (the logo wordmark) and pink #f4c9c3
   (the wash color around the logo), plus white. Token NAMES are kept as-is (--cream,
   --caramel, --chocolate, --gold...) even though they no longer describe literal
   cream/caramel/chocolate hues, since every rule in this file already themes off these
   variables - only the values needed to change to re-skin the whole site+admin from
   this one block.
   --gold is the owner's exact hex, used only where WCAG's contrast rules don't bind it
   (the logo artwork itself, and the one UI-component border below that only needs 3:1,
   which it clears at 3.84:1). --accent/--accent-dark are a deliberately darker shade of
   the SAME gold hue (same hue angle, just less lightness) - they carry every piece of
   actual UI text and every button background that sits under text, so they're picked to
   clear 4.5:1 against white at ANY size/weight (--accent measures ~4.65:1, --accent-dark
   ~5.8:1) rather than relying on every future use of them happening to be large/bold
   enough for the lower 3:1 threshold. This is the one deliberate departure from "the
   owner's exact hex everywhere" - done for real WCAG 2.0 AA / ת"י 5568 compliance on
   text a customer actually reads, not a stylistic choice. */
:root {
    --cream: #ffffff;
    --cream-deep: #f7d8d3;
    --caramel-light: #f4c9c3;
    --caramel: #e4a9a0;
    --caramel-dark: #cf8880;
    --chocolate: #4a3a1a;
    --accent: #8f7029;
    --accent-dark: #6f5720;
    --peach: #f6b3ab;
    --ink: #3a2c1f;
    --ink-soft: #7a6852;
    /* Darkened from a brighter green/red so status badges and alerts (which sit on pale
       tinted backgrounds, not white) clear 4.5:1 - the originals measured as low as
       2.84:1 on their own badge backgrounds. */
    --success: #1c6b3c;
    --danger: #a52a1f;
    --warning: #d99a2b;
    --warning-dark: #8a5a12;
    --caramel-tint: #fcecea;
    --surface: #ffffff;
    --border: #f8dbd7;
    /* The logo wordmark's exact gold, as given by the owner - reserved for the border
       below (a UI component, 3:1 threshold) and any future purely-decorative/logo-
       adjacent use. Never use this for text; use --accent/--accent-dark for that. */
    --gold: #a07d32;
    --gold-dark: #7d6127;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow: 0 8px 24px rgba(74, 58, 26, 0.08);
    /* Strong ease-out for anything entering or responding to a press; the drawer curve
       for sheets/bars that slide on and off screen. */
    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-drawer: cubic-bezier(.32, .72, 0, 1);
    /* .top-bar's own padding+logo already compute to this; pinned here so the
       fullscreen home hero's height calc below can't silently drift out of sync with it. */
    --topbar-height: 62px;
}

/* ---------- Optional viewer accessibility preferences ---------- */
/* These three are OPTIONAL extras a visitor turns on themselves via the accessibility
   button (Shared/AccessibilityMenu.razor) - distinct from the always-on baseline
   accessibility work (labels, alt text, roles, keyboard nav, focus trapping) elsewhere
   in this file, which never depends on any of these three attributes and is identical
   for every visitor regardless of what they choose here. */

/* Larger text: every font-size in this file is in rem, which is relative to THIS
   element's font-size - bumping it once here scales the entire site proportionally
   without touching another rule. */
html[data-font-size="large"] { font-size: 19px; }

/* High contrast: re-maps the same tokens every rule in this file already themes off,
   so it reaches every surface without a second set of overrides per component. Pure
   black/white with no soft mid-tones, and a darker gold that still reads as "the brand"
   while clearing a much wider contrast margin than the default palette. */
html[data-contrast="high"] {
    --cream: #ffffff;
    --cream-deep: #ffffff;
    --caramel-light: #ffffff;
    --caramel: #000000;
    --caramel-dark: #000000;
    --chocolate: #000000;
    --accent: #5c4720;
    --accent-dark: #3d2f15;
    --peach: #ffffff;
    --ink: #000000;
    --ink-soft: #000000;
    --success: #0b4d26;
    --danger: #7a1c12;
    --warning-dark: #5c3a0c;
    --caramel-tint: #ffffff;
    --surface: #ffffff;
    --border: #000000;
    --shadow: 0 0 0 1.5px #000000;
}
html[data-contrast="high"] * { border-color: currentColor; }

/* Reduced motion: same effect as the OS-level prefers-reduced-motion query below, but
   triggerable on a kiosk where a visitor can't reach their own device's OS settings. */
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Heebo', 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
    /* Stops the touch-swipe "rubber band" bounce at the top/bottom of a page - on a
       kiosk this reads as an unwanted, uncontrolled scroll even on screens whose real
       content never overflows (Home, the order-type/phone steps). Scrolling itself is
       untouched on pages that actually need it (Menu, Admin tables). */
    overscroll-behavior: none;
}

/* No highlighting anywhere - the kiosk and the admin panel (on an iPad too): a drag
   across the screen or a long press used to paint text blue, and photos/links could be
   dragged around like files. Typing fields keep normal selection (the cursor and the
   on-screen keyboard depend on it). */
body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
}
img, a { -webkit-user-drag: none; }

/* WebView2/Chromium paints a translucent grey-black flash behind any tappable element
   on touch-down by default (the "black shadow" behind buttons/cards on tap) - this is
   the standard reset for it. touch-action: manipulation also drops the ~300ms tap
   delay and the double-tap-to-zoom gesture, neither of which belong on a kiosk. */
* {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

h1, h2, h3, h4 { font-weight: 700; color: var(--chocolate); margin: 0 0 .4em; text-wrap: balance; }

a { color: var(--accent-dark); text-underline-offset: .2em; }

button { font-family: inherit; }
input, textarea { caret-color: var(--accent); }

/* Browser-drawn surfaces still carry the design - theme them, don't leave them default. */
::selection { background: var(--accent); color: white; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Visually hidden but still reachable by screen readers/keyboard focus - used for
   labels tied to placeholder-only inputs, and for the skip link below before it's
   focused. Never use display:none/visibility:hidden for these, which would hide them
   from assistive tech too, not just visually.
   !important because this is a utility that has to win against any component rule:
   ".field input" (width:100%, padding) out-specified it on Blazor's InputFile, which
   renders the class on the <input> itself - the "hidden" file picker became a
   full-width absolute element and pushed the admin Banners page 460px sideways. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Lets keyboard users jump straight past the header/nav to the actual page content,
   instead of tabbing through every nav link first on every single page load - required
   for WCAG 2.4.1 (Bypass Blocks). Hidden like .sr-only until it receives focus (the
   first Tab press on any page), then pops into view at the top of the screen. */
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    z-index: 2000;
}
.skip-link:focus {
    position: fixed;
    inset-inline-start: 16px;
    top: 16px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--accent);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

/* ---------- Accessibility preferences button/menu ---------- */
/* Left side regardless of RTL (the rest of the UI mirrors for Hebrew, but a floating
   utility control benefits from a fixed, predictable corner every visitor can learn
   once) - inset-inline-start would flip with dir="rtl", so this uses a physical
   left/bottom position on purpose. */
.a11y-fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: transform .12s ease;
}
.a11y-fab .icon { width: 1.6rem; height: 1.6rem; }
/* On a phone-width screen a full-width sheet reaches the bottom corner, where this
   button sat on top of the "add to cart" price - it steps aside while a sheet is open. */
@media (max-width: 640px) {
    body:has(.modal-backdrop-custom) .a11y-fab { display: none; }
}
.a11y-fab:active { transform: scale(.92); }

.a11y-panel {
    position: fixed;
    left: 16px;
    bottom: 76px;
    width: min(300px, calc(100vw - 32px));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 48px rgba(74, 58, 26, .16);
    padding: 18px;
    z-index: 1000;
    /* Grows out of the button it belongs to (bottom-left corner), not from its center. */
    transform-origin: bottom left;
    animation: a11y-panel-in .2s var(--ease-out);
}
@keyframes a11y-panel-in {
    from { opacity: 0; transform: translateY(6px) scale(.97); }
}
.a11y-panel h2 { font-size: 1.05rem; margin: 0 0 12px; }
.a11y-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 8px;
    border: none;
    background: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
    cursor: pointer;
    text-align: start;
}
.a11y-option:not(:last-child) { margin-bottom: 4px; }
html.mouse-on .a11y-option:hover { background: var(--cream-deep); }
.a11y-option .icon { width: 1.2rem; height: 1.2rem; flex-shrink: 0; color: var(--accent); }
.a11y-option-label { flex: 1; }
.a11y-option[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.a11y-option-check { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--accent); visibility: hidden; }
.a11y-option[aria-pressed="true"] .a11y-option-check { visibility: visible; }

.a11y-lang-row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.a11y-lang-label { display: block; font-size: .82rem; color: var(--ink-soft); margin-bottom: 8px; }
.a11y-lang-options { display: flex; gap: 6px; }
.a11y-lang-btn {
    flex: 1;
    padding: 8px 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: inherit;
    font-size: .85rem;
    cursor: pointer;
}
.a11y-lang-btn.active { background: var(--accent); border-color: var(--accent); color: white; font-weight: 700; }

/* This runs on a touchscreen kiosk - scrolling happens by swipe, so a scrollbar is
   just a stray line on screen rather than a useful affordance. Scrolling itself is
   untouched; only the drawn thumb/track disappears. */
::-webkit-scrollbar { width: 0; height: 0; display: none; }
* { scrollbar-width: none; }

/* Prices read in the brand gold everywhere by default; buttons that already paint
   themselves gold/accent with white text (.btn-primary, .cart-fab) override this back
   to white below so the price stays legible against its own background instead of
   disappearing into it. */
.money { font-variant-numeric: tabular-nums; color: var(--accent); }
.btn-primary .money, .cart-fab .money { color: inherit; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Custom on-screen keyboard (see js/virtual-keyboard.js) ---------- */
body.vkbd-open .choice-screen, body.vkbd-open .modal-sheet {
    /* --vkbd-panel-lift is computed in virtual-keyboard.js from real measured geometry
       (how much of the real visible card the keyboard would actually cover), not a
       guessed constant - see updatePanelLift() there for why it measures .choice-panel
       (the actual visible card) but sets/applies the result here, on .choice-screen
       (its outer centering wrapper), instead of on .choice-panel directly: applying it
       to .choice-panel found a second real bug, also confirmed via an actual Playwright
       run - .choice-panel has its own `animation: choice-panel-in ... both` entrance
       animation, and that `both` fill mode permanently pins the animation's own
       `transform: translateY(0)` forever after it finishes. Animation-origin transforms
       always win over a regular rule's, at any specificity, so the lift silently never
       moved anything no matter what the CSS variable held. .choice-screen has no such
       animation, so it's free to actually carry this transform. */
    transform: translateY(calc(-1 * var(--vkbd-panel-lift, 0px)));
    transition: transform .22s cubic-bezier(.22,1,.36,1);
}
.choice-screen, .modal-sheet { transition: transform .22s cubic-bezier(.22,1,.36,1); }

/* Safety net for a panel taller than the room actually available above the keyboard
   (confirmed via testing: the card-payment step, with four stacked fields plus
   explanatory text, is one - the lift above is deliberately capped so it can never
   push a panel's top off-screen, which means a too-tall panel's BOTTOM can stay
   partly behind the keyboard instead. Capping height and letting it scroll here
   turns that into "scroll to reach it", not "permanently unreachable either way".
   --vkbd-available-height is set on .choice-screen (this rule's own selector), and
   .choice-panel reads it straight off its parent via normal CSS inheritance. */
body.vkbd-open .choice-panel {
    max-height: var(--vkbd-available-height, none);
    overflow-y: auto;
}

/* Ordinary pages (staff sign-in, admin): room under the page for the keyboard, so the
   field's form can be scrolled up above it (scrollFieldAboveKeyboard in the script). */
body.vkbd-page { padding-bottom: var(--vkbd-height, 0px); }
/* Typing in a pop-up window: it sits on top of the keyboard and fits the room above it,
   scrolling its own content, so its buttons stay visible (scrollFieldAboveKeyboard). */
body.vkbd-in-sheet .modal-backdrop-custom { padding-bottom: var(--vkbd-height, 0px); }
body.vkbd-in-sheet .modal-sheet {
    transform: none;
    max-height: calc(100dvh - var(--vkbd-height, 0px) - 8px);
}

/* Keyboard-open compact layout (virtual-keyboard.js adds .vkbd-compact before it
   measures the lift): tighter spacing everywhere, and on the card step the lines that
   aren't needed while typing are hidden, so the whole form - charge button included -
   fits above the keyboard instead of needing to be scrolled. */
body.vkbd-compact .choice-panel { padding-block: 14px; }
body.vkbd-compact .choice-title { font-size: 1.75rem; }
body.vkbd-compact .choice-panel:has(.card-form) > .choice-subtitle,
body.vkbd-compact .card-form-head,
body.vkbd-compact .card-form-note { display: none; }
body.vkbd-compact .choice-panel:has(.card-form) .choice-title { font-size: 1.45rem; margin-bottom: 8px; }
body.vkbd-compact .card-form .field { margin-bottom: 10px; }
body.vkbd-compact .card-form .field label { margin-bottom: 4px; }
body.vkbd-compact .field input.kiosk-input { min-height: 50px; }
body.vkbd-compact .card-form .btn-lg { padding-block: 14px; }
/* A short screen (a laptop's browser: 630-720px tall; a kiosk screen held sideways, 864):
   the keyboard leaves about 320-550px, and the phone step (365px, more with the texts' line)
   and the card form scrolled inside their card, or ran off the top. Tighter still, so they
   fit whole - nothing hidden. */
@media (max-height: 900px) {
    body.vkbd-compact .choice-panel { padding-block: 8px; }
    body.vkbd-compact .choice-title { font-size: 1.5rem; margin-bottom: 4px; }
    body.vkbd-compact .choice-subtitle { font-size: .95rem; line-height: 1.4; margin-bottom: 10px; }
    body.vkbd-compact .choice-pickup-notice { font-size: .82rem; line-height: 1.35; padding: 6px 10px; margin: -4px auto 8px; }
    body.vkbd-compact .choice-pickup-notice .icon { width: 16px; height: 16px; margin-top: 1px; }
    body.vkbd-compact .choice-phone-form { gap: 8px; }
    body.vkbd-compact .choice-phone-input,
    body.vkbd-compact .choice-text-input { min-height: 56px; }
    body.vkbd-compact .choice-panel .btn-lg { padding-block: 13px; font-size: 1.15rem; }
    body.vkbd-compact .choice-back { min-height: 40px; padding-block: 4px; }
    body.vkbd-compact .field input.kiosk-input { min-height: 46px; }
    body.vkbd-compact .card-form .field { margin-bottom: 8px; }
}
/* The shortest, with the keyboard open (a laptop's browser, 632px: the step gets 316px) - a
   little tighter again; the phone step ran 16px over inside its card (2026-11-06). */
@media (max-height: 680px) {
    body.vkbd-compact .choice-subtitle { margin-bottom: 6px; }
    body.vkbd-compact .choice-phone-input { min-height: 50px; }
    body.vkbd-compact .choice-panel .btn-lg { padding-block: 10px; }
    body.vkbd-compact .choice-back { min-height: 36px; }
}
/* A short screen without our keyboard (an iPhone SE: 553px; a laptop's browser: 632px): the
   phone step carries the "ready" SMS notice and, with the texts on, a two-line note about
   the receipt - it ran 16-42px past the screen (2026-11-06). Tighter, nothing hidden. */
@media (max-height: 700px) {
    .choice-panel:has(.choice-pickup-notice) > .choice-subtitle { font-size: .95rem; line-height: 1.4; margin-bottom: 10px; }
    .choice-panel .choice-pickup-notice { font-size: .85rem; line-height: 1.35; padding: 7px 10px; margin-bottom: 10px; }
    .choice-panel .choice-pickup-notice .icon { width: 16px; height: 16px; margin-top: 1px; }
}
/* Staff sign-in: tight enough that the whole card - fields, button and the way back to
   the kiosk - fits above the keyboard on a 16:9 screen. */
body.vkbd-compact .login-screen { padding-top: 16px; }
body.vkbd-compact .login-card { padding-block: 22px 14px; }
body.vkbd-compact .login-logo { height: 34px; margin-bottom: 10px; }
body.vkbd-compact .login-sub { margin-bottom: 14px; }
body.vkbd-compact .login-back { margin-top: 8px; }

/* Sized from the screen itself, so it takes about the same share of any screen - a
   1024x600 tablet, an iPad either way round, the laptop kiosk, the 32" portrait kiosk,
   a wide monitor: keys follow the screen's height (and width on a narrow one), and the
   keyboard stops widening past a comfortable reach on very wide screens. About 40% of
   a short screen's height at most, much less on a tall one. */
.vkbd {
    --vkbd-gap: clamp(5px, .9vh, 12px);
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 4000;
    background: var(--chocolate);
    padding: var(--vkbd-gap) max(10px, calc((100vw - 1500px) / 2)) calc(var(--vkbd-gap) + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: var(--vkbd-gap);
    transform: translateY(100%);
    /* Hidden (not just parked below the fold) while closed: translateY(100%) still
       left its upward drop shadow bleeding into the bottom of every kiosk screen as a
       grey haze, and left its keys reachable by Tab. visibility flips only after the
       slide-out finishes, and instantly on open (see .vkbd.open). */
    visibility: hidden;
    transition: transform .22s var(--ease-drawer), visibility 0s linear .22s;
    /* The page is dir="rtl", and flexbox lays out "row" children start-to-end in
       whatever direction the container inherits - so every key row was silently
       rendering mirrored (last key first) even though the JS builds each row in a
       plain, deliberate left-to-right physical order (matching a real keyboard).
       Forcing ltr here, on the one container that owns all of it, fixes every row at
       once regardless of the app's own text direction. */
    direction: ltr;
}
.vkbd.open {
    transform: translateY(0);
    visibility: visible;
    transition: transform .22s var(--ease-drawer), visibility 0s;
    /* The faint inset line reads as a lit top edge on the bar itself - the same
       kind of subtle depth cue the keys get - without hardcoding a color that
       would fight the high-contrast theme's pure-black override of --chocolate. */
    box-shadow: 0 -8px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.07);
}

.vkbd-rows { display: flex; flex-direction: column; gap: var(--vkbd-gap); }
.vkbd-row { display: flex; justify-content: center; gap: var(--vkbd-gap); }
.vkbd-row-bottom { margin-top: 2px; }

.vkbd-key {
    /* No max-width - flex:1 with no cap genuinely fills the row's full width instead
       of a narrow strip of keys centered in a lot of empty bar (a real complaint from
       testing on the actual kiosk screen). min-width is still a floor so a long row
       (the Hebrew home row, 10 keys) never gets uncomfortably thin. */
    flex: 1;
    min-width: 40px;
    /* 68px on the 864px-tall kiosk, as before; smaller on a short screen, bigger on a
       tall one. */
    height: clamp(40px, min(8vw, 7.8vh), 108px);
    border: none;
    border-radius: clamp(8px, 1.4vh, var(--radius-md));
    background: linear-gradient(180deg, #ffffff 0%, #f2ebdd 100%);
    color: var(--ink);
    font-size: clamp(1.05rem, min(2.9vw, 3vh), 1.75rem);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: manipulation;
    /* A raised keycap: a hard drop shadow reads as the key's own thickness, and
       the inset top highlight reads as light catching its face. Pressing it
       drops the key onto that shadow and collapses it to 1px, like the keycap
       physically bottoming out - real tactile feedback instead of a flat color
       swap, and free (no extra assets, just two shadow layers + a transform). */
    box-shadow: 0 3px 0 rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.6);
    transition: transform .08s ease, box-shadow .08s ease, background .12s ease;
}
.vkbd-key.is-pressed {
    background: var(--cream-deep);
    transform: translateY(3px);
    box-shadow: 0 0 0 rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.6);
}
.vkbd-key-wide { flex: 1.8; }
.vkbd-key-space { flex: 5; }
.vkbd-key-done, .vkbd-key-active {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 3px 0 var(--accent-dark), inset 0 1px 0 rgba(255,255,255,.3);
}
/* Caps lock (shift tapped twice): a bar under the arrow tells it apart from shift-once. */
.vkbd-key-lock { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.vkbd-key-done.is-pressed, .vkbd-key-active.is-pressed {
    background: var(--accent-dark);
    box-shadow: 0 0 0 var(--accent-dark), inset 0 1px 0 rgba(255,255,255,.3);
}

/* Numeric fields (PIN codes, quantities, phone digits) only ever have 1-3 keys
   per row, versus 7-10 for the letter layouts - the shared flex:1 rule that
   makes letter keys a sane size stretched each digit into a huge rectangle
   instead, worst of all on the lone "0" row, which filled the entire bar edge
   to edge. A numeric pad reads right as compact buttons, like a real phone
   dial pad, sized generously widthwise since it only ever has to share the bar
   with one other row width (never 10 keys). Height is deliberately NOT given
   the same treatment: numeric fields stack 5 rows (4 digit rows + the
   backspace/done row) versus the letter layout's 4, so extra height here is
   worth far more screen space per pixel. A taller version of this (76px keys,
   14px gaps) measured at 462px tall on this kiosk's actual 1536x864 screen -
   53% of the whole display - and left too little room for the phone/card
   steps' card above it, cutting their heading text off at the top even with a
   correct keyboard-clearing lift (confirmed via an actual Playwright run at
   that exact resolution, not a guess). */
.vkbd-numeric .vkbd-key {
    flex: 0 1 clamp(110px, min(24vw, 26vh), 240px);
    /* 5 rows: kept a little shorter than letter keys (about 50px on the kiosk). */
    height: clamp(38px, min(7vw, 6vh), 92px);
    font-size: clamp(1.1rem, min(3vw, 3.2vh), 1.8rem);
}
.vkbd-numeric .vkbd-row-bottom .vkbd-key-wide {
    flex: 0 1 clamp(140px, min(31vw, 33vh), 300px);
}

/* ---------- Idle-timeout "still here?" warning (see js/idle-redirect.js) ---------- */
.idle-warning {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(42, 32, 25, .55);
    backdrop-filter: blur(2px);
    animation: backdrop-in .25s ease-out;
}
.idle-warning-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 32px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.idle-warning-card p { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--ink); }

/* ---------- Icon system (replaces emoji glyphs) ---------- */
.icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.2em;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ---------- Loading spinner ---------- */
.loading-row { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); padding: 12px 0; }
.spinner {
    width: 20px; height: 20px; border-radius: 50%;
    border: 3px solid var(--border); border-top-color: var(--caramel);
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}
.spinner-on-accent { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Layout shells ---------- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
/* The order page's confetti (ConfettiBurst) flies to the screen's edges and past them - the
   page mustn't grow sideways with it (a touch screen could then be dragged left and right). */
.app-shell:has(.order-done) { overflow-x: clip; }

.top-bar {
    background: linear-gradient(120deg, var(--peach) 0%, var(--cream-deep) 65%);
    color: var(--chocolate);
    min-height: var(--topbar-height);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 14px rgba(74, 58, 26, 0.08);
    position: relative;
    z-index: 1;
}

.top-bar .brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.top-bar .brand img { height: 30px; width: auto; display: block; }

.top-bar-links {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}
.a11y-link {
    color: var(--ink-soft);
    font-size: .82rem;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--ink-soft) 45%, transparent);
    text-underline-offset: 3px;
    white-space: nowrap;
    /* A bigger finger target without changing how the link reads - the negative margin
       cancels the padding in layout, so .top-bar stays exactly --topbar-height tall
       (every full-screen page subtracts that exact value from the viewport). */
    padding: 13px 6px;
    margin: -13px -6px;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 80px;
}

/* ---------- Buttons ---------- */
/* .btn is also used on <a> (the homepage hero CTA, "back to menu" links) alongside
   <button> - reset the anchor-only defaults so both look identical. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 22px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s var(--ease-out), box-shadow .15s ease, opacity .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; }

.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--accent); color: white; }
.btn-secondary { background: var(--cream-deep); color: var(--chocolate); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: white; }
/* Row-level and secondary admin actions ("מוכן", "החזר כספי", test print) - present
   but quiet, so the one filled button on a row (סמן כשולם) stays the obvious one. */
.btn-outline { background: var(--surface); color: var(--chocolate); border: 1.5px solid var(--border); }
.btn-outline:active:not(:disabled) { background: var(--caramel-tint); }
.btn-sm { min-height: 40px; padding: 8px 14px; gap: 6px; font-size: .9rem; border-radius: var(--radius-sm); }

/* Guarded behind a real-hover check: on a touchscreen, tapping a button fires this
   with no matching "pointer left" event to clear it, so it visually sticks - one
   button stays highlighted after being tapped while its identical sibling doesn't.
   Kiosk/phone users never see :hover at all now; a mouse still does.
   And only once the mouse has really moved (`html.mouse-on`, js/input-mode.js): a
   touch-screen laptop has a touchpad too, so it passes this check, and its parked cursor
   lit up the dish under it with nobody touching anything. */
@media (hover: hover) {
    html.mouse-on .btn-primary:hover:not(:disabled) { background: var(--accent-dark); }
    html.mouse-on .btn-secondary:hover:not(:disabled) { background: color-mix(in srgb, var(--cream-deep) 80%, var(--caramel)); }
    html.mouse-on .btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 85%, black); }
    html.mouse-on .btn-outline:hover:not(:disabled) { background: var(--caramel-tint); border-color: var(--caramel); }
}

.btn-ghost { background: transparent; color: var(--ink-soft); padding: 8px 12px; }

.btn-lg { padding: 22px 30px; font-size: 1.35rem; border-radius: var(--radius-lg); width: 100%; }

/* ---------- Cards / menu grid ---------- */
/* The whole /menu route (see Menu.razor's wrapping <div class="menu-page">) is locked
   to exactly the viewport minus the topbar and the .container's own top/bottom padding
   - the same technique .choice-screen uses - so the page itself can never scroll. Its
   two children split that fixed height via flexbox (h1 shrink-to-fit, the rest fills
   whatever's left) instead of each guessing its own pixel budget, which is what a
   previous, hand-guessed max-height on the rail/grid actually failed to account for. */
.menu-page {
    display: flex;
    flex-direction: column;
    /* Runs to the very bottom of the screen: the negative margin cancels .container's
       80px bottom padding, which used to sit under the dish list as a white band that
       hid the next row of dishes while scrolling. */
    height: calc(100dvh - var(--topbar-height) - var(--banner-height) - 24px);
    margin-bottom: -80px;
    overflow: hidden;
}
/* Room at the end of the list so the last row can scroll up clear of the floating
   cart button instead of ending underneath it. */
.menu-scroll-area { padding-bottom: 104px; }
/* The kiosk is a wide 1536px landscape screen - the site-wide 1100px column left
   ~220px of empty margin on each side of the dishes and fit only three cards a row.
   The menu alone gets a wider column: four cards a row, more of each category
   visible before any scrolling. */
main.container:has(> .menu-page) { max-width: 1340px; }
.menu-page > .menu-head { flex: 0 0 auto; }
/* The title, and the customer's "cancel order" at the other end of the same line. */
.menu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-head h1 { min-width: 0; }
/* A white pill with the x in a soft red circle: easy to find, but not shouting over
   the dishes - leaving is allowed, not suggested. */
.menu-cancel-btn {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 50px; padding: 6px 18px 6px 8px; margin-bottom: .4em;
    padding-inline: 8px 18px;
    border-radius: 999px; border: 1px solid color-mix(in srgb, var(--danger) 18%, var(--border));
    background: var(--surface); color: var(--danger);
    box-shadow: 0 1px 2px rgba(74, 58, 26, .06), 0 8px 20px -10px rgba(165, 42, 31, .35);
    font-family: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: transform .16s var(--ease-out), box-shadow .2s ease, background-color .15s ease;
}
.menu-cancel-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: color-mix(in srgb, var(--danger) 11%, var(--surface));
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .15s ease;
}
.menu-cancel-btn .icon { width: 16px; height: 16px; }
.menu-cancel-btn:active { transform: scale(.96); box-shadow: 0 1px 2px rgba(74, 58, 26, .06); }
.menu-cancel-btn:active .menu-cancel-icon { transform: rotate(90deg); background: var(--danger); color: white; }
@media (hover: hover) {
    html.mouse-on .menu-cancel-btn:hover .menu-cancel-icon { transform: rotate(90deg); }
}
/* Its question, in the middle of the screen over a dimmed menu. */
.menu-cancel-backdrop {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(40, 28, 10, .45);
}
.menu-cancel-backdrop .menu-cancel-dialog { /* outranks .cart-cancel-confirm, further down */
    width: 100%; max-width: 480px; padding: 30px 26px 24px; gap: 16px;
    align-items: center;
    font-size: 1.35rem; font-weight: 700; color: var(--chocolate);
    background: var(--surface); /* white, so "no, keep it" (cream) stands out from it */
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px -20px rgba(40, 28, 10, .45);
}
.menu-cancel-dialog .cart-cancel-confirm-actions { width: 100%; margin-top: 6px; }
/* The question's badge: the same x as the button, in its red circle, bigger. */
.menu-cancel-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: color-mix(in srgb, var(--danger) 11%, var(--surface));
    color: var(--danger);
}
.menu-cancel-badge .icon { width: 26px; height: 26px; }
.menu-page > .loading-row, .menu-page > .empty-state, .menu-page > .menu-layout {
    flex: 1 1 auto;
    min-height: 0;
}

/* Menu page layout: a circular category rail down the side (start side in RTL, so the
   right edge) next to the product grid - the McTouch-kiosk pattern of a photo-round per
   category rather than a row of text pills. */
.menu-layout {
    display: flex;
    align-items: stretch;
    gap: 28px;
}

.menu-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* "X was taken out of your cart" - the menu changed under an open order (Menu.razor). */
.menu-notice {
    margin: 0 0 12px; padding: 12px 18px; border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--warning) 16%, var(--surface)); color: var(--warning-dark);
    font-weight: 600; font-size: 1.05rem;
    animation: menu-notice-in 220ms var(--ease-out);
}
@keyframes menu-notice-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .menu-notice { animation: none; } }
.menu-content > h2 { flex: 0 0 auto; margin-bottom: 16px; }

/* A screen that shows the menu only (OrderingAccess.IsMenuOnly): where to order instead,
   under the title - and no floating cart button to leave room for under the dishes. */
.menu-only-hint {
    flex: 0 0 auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--caramel-tint);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 1.05rem;
}
.menu-only .menu-scroll-area { padding-bottom: 24px; }
.menu-only-hint .icon, .view-only-hint .icon { width: 1.2em; height: 1.2em; }

/* Wraps just the product grid/empty-state, not the <h2> category title above it - the
   title stays put while only the dishes underneath scroll. Fills whatever height
   .menu-content has left after its own h2, via the flex column above. */
.menu-scroll-area {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.menu-scroll-area::-webkit-scrollbar { display: none; }

.category-rail {
    flex: 0 0 108px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
}
.category-rail::-webkit-scrollbar { display: none; }

/* .category-circle, .product-card, .cart-fab and .modifier-row are real <button>
   elements (keyboard/touch accessible), so their native button chrome needs resetting
   to the look these classes already define. */
.category-circle, .product-card, .cart-fab, .modifier-row {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    text-align: start;
    color: inherit;
}

.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 4px;
    background: none;
    border: none;
    text-decoration: none;
    cursor: pointer;
}

.category-circle .circle-thumb {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, var(--caramel-light) 0%, var(--caramel) 100%);
    color: rgba(74, 58, 26, .6);
    border: 3px solid transparent;
    box-shadow: var(--shadow);
    transition: transform .15s ease, border-color .15s ease;
    overflow: hidden;
}
.category-circle .circle-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-circle .circle-thumb .icon { width: 2rem; height: 2rem; }

.category-circle .circle-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-align: center;
    line-height: 1.25;
}

@media (hover: hover) {
    html.mouse-on .category-circle:hover .circle-thumb { transform: translateY(-2px); }
}

.category-circle.active .circle-thumb {
    border-color: var(--gold);
    transform: scale(1.08);
}
.category-circle.active .circle-label { color: var(--chocolate); font-weight: 800; }

@media (max-width: 720px) {
    .menu-layout { flex-direction: column; }
    .category-rail {
        /* The base rule's "flex: 0 0 108px" sizes the rail's WIDTH on desktop, where
           .menu-layout is a row and the rail is its own column. Down here .menu-layout
           switches to a column, so that same flex-basis would instead pin the rail's
           HEIGHT to 108px - too short for a circle plus a wrapped two-line label -
           forcing an unwanted vertical scrollbar inside the horizontal strip. Reset the
           basis so height is content-driven again. */
        flex: 0 0 auto;
        flex-direction: row;
        width: 100%;
        min-width: 0; /* a flex item's default min-width:auto would let this grow to fit
                          all circles and push the whole page into horizontal overflow -
                          overflow-x:auto on this element only scrolls once min-width is pinned */
        overflow-x: auto;
        overflow-y: hidden;
        position: static;
        padding: 2px 2px 10px;
        gap: 22px;
    }
    .category-circle { width: auto; flex: 0 0 auto; }
    /* Room for two lines on every one: a name that wraps ("המיוחדים שלנו") makes its
       tile no taller than the rest of the row. */
    .category-circle .circle-label { width: 84px; min-height: 2.5em; }
    /* Stacked, the dishes column has to be allowed to be shorter than its dishes (a
       flex item won't shrink below its content otherwise) - or .menu-scroll-area grows
       to the whole list, .menu-page cuts it off, and nothing scrolls. */
    .menu-content { flex: 1 1 auto; min-height: 0; }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}
/* An upright screen bigger than a phone - the 32" kiosk (864px wide once the kiosk
   program zooms it), an iPad held upright: three dishes a row. The 220px minimum above
   fit only two there (the category rail takes ~140px), each card half the screen wide. */
@media (orientation: portrait) and (min-width: 700px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    transition: transform .12s ease, box-shadow .12s ease;
}

@media (hover: hover) {
    html.mouse-on .product-card:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(61, 43, 31, 0.15); }
}
.product-card.sold-out, .product-card:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.product-card .thumb {
    height: 140px;
    background: linear-gradient(150deg, var(--caramel-light) 0%, var(--caramel) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(74, 58, 26, .6);
}
.product-card .thumb .icon { width: 2.6rem; height: 2.6rem; }

.product-card .body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; text-align: start; }
.product-card .name { font-weight: 700; font-size: 1.06rem; margin-bottom: 4px; color: var(--chocolate); }
.product-card .desc { color: var(--ink-soft); font-size: .9rem; line-height: 1.45; flex: 1; }
.product-card .price { color: var(--accent); font-weight: 800; font-size: 1.05rem; margin-top: 10px; }
.product-card:active:not(:disabled) { transform: scale(.98); }

/* ---------- Homepage ---------- */
/* Full-bleed: break out of .container's max-width and side padding so the attract-loop
   carousel spans the entire screen edge to edge, like a real kiosk splash screen,
   instead of sitting in a boxed-in card. The negative top margin cancels .container's
   own top padding (24px) so it also sits flush under the top bar. */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--peach) 0%, var(--cream-deep) 55%, var(--cream) 100%);
    padding: 56px 28px;
    text-align: center;
    margin: -24px calc(50% - 50vw) 48px;
}

/* The home page is nothing but this splash screen - it fills the entire viewport
   (the negative bottom margin cancels .container's own 80px bottom padding) with its
   content centered, rather than sitting in a shorter banner above other page content. */
.hero-fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--topbar-height) - var(--banner-height));
    min-height: calc(100dvh - var(--topbar-height) - var(--banner-height));
    margin-bottom: -80px;
}

/* The attract-loop carousel (see Home.razor) sits behind .hero-content. Plain gradient
   above is the fallback shown until any promo image is uploaded from Admin > Banners. */
.hero-photos { position: absolute; inset: 0; z-index: 0; container-type: size; }
.hero-carousel { position: absolute; inset: 0; }
/* Every photo is shown whole, on any screen (the owner, 2026-10-29: on the kiosk the
   photos were cut down to their middle and the dish didn't show). Covering the screen
   cut the sides off an upright photo on the kiosk and most of it on other shapes; now
   the photo is fitted inside the screen (::after), and whatever room is left around it
   is filled by a blurred copy of the same photo (::before), so there are no bars. Both
   are the slide's own photo (inherit), so they fade in and out with it. The slide's
   own background is sized to nothing - only its two layers paint. */
.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-size: 0 0;
    background-repeat: no-repeat;
    opacity: 0;
}
.hero-slide::before,
.hero-slide::after {
    content: '';
    position: absolute;
    background-image: inherit;
    background-repeat: no-repeat;
    background-position: center;
}
.hero-slide::before {
    inset: -48px;
    background-size: cover;
    filter: blur(24px) brightness(.9);
}
.hero-slide::after { inset: 0; background-size: contain; }
.hero-slide.active { opacity: 1; }
/* The slideshow only fades - nothing moves - so it keeps running with "reduced motion"
   on, whether from Windows' own setting (off by default on many PCs) or the kiosk's
   accessibility menu. The general reduced-motion rule (top of this file) cuts every
   animation to one 0.01ms run, which froze the home screen on its first photo. These
   win over it on specificity (an earlier rule here showed only the first photo under
   reduced motion - that was the freeze); the duration comes from Home.razor. */
.hero-carousel .hero-slide {
    animation-duration: var(--slideshow-duration) !important;
    animation-iteration-count: infinite !important;
}
/* Upright photos where the room for them is upright, wide ones where it's wide (Home.razor -
   only when there are both): measured on the photos' own box, not the screen, so the menu
   screen's photo strip (wide, even on an upright screen) gets the wide ones too. The
   photo that fits the room's shape fills most of it. A hidden loop's photos aren't
   downloaded. Browsers without container queries go by the screen. */
@container (orientation: portrait) { .hero-carousel-wide { display: none; } }
@container (orientation: landscape) { .hero-carousel-upright { display: none; } }
@supports not (container-type: size) {
    @media (orientation: portrait) { .hero-carousel-wide { display: none; } }
    @media (orientation: landscape) { .hero-carousel-upright { display: none; } }
}
/* A photo that is nearly the room's own shape fills it edge to edge (the owner,
   2026-10-29: on the kiosk the blurred strips above and below the upright photo looked
   like it was cut). An upright photo (2:3) in a room at least 5:9 wide - the kiosk's
   864x1466 - loses at most ~11% of its width, background only; a wide one (3:2) in a
   room 13:10 to 17:10 at most ~13%. Further from its shape (a phone, a very wide screen)
   it stays whole, with the blurred fill around it. */
@container (orientation: portrait) and (min-aspect-ratio: 5/9) {
    .hero-carousel-upright .hero-slide::after { background-size: cover; }
}
@container (orientation: landscape) and (min-aspect-ratio: 13/10) and (max-aspect-ratio: 17/10) {
    .hero-carousel-wide .hero-slide::after { background-size: cover; }
}
/* A room wider than that (a laptop or a TV, 16:9): the wide photo stays whole, full
   height in the middle, and the room on either side is its own side edge carried on
   outward - the left edge stretched across the slide's own background, the right edge
   across ::before - with the photo's sides fading into it. The blurred copy showed
   there as two pale strips (the user, 2026-11-01: "there are still borders"). */
@container (orientation: landscape) and (min-aspect-ratio: 17/10) {
    .hero-carousel-wide .hero-slide {
        background-size: 4000% 100%;
        background-position: left center;
    }
    .hero-carousel-wide .hero-slide::before {
        inset: 0 0 0 50%;
        filter: none;
        background-size: 4000% 100%;
        background-position: right center;
    }
    .hero-carousel-wide .hero-slide::after {
        inset: 0 auto 0 50%;
        width: 150cqh;             /* the wide photos are 3:2 */
        transform: translateX(-50%);
        background-size: cover;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
    }
}

/* The tall upright kiosk (the user, 2026-11-01: "fix the cut picture"): the upright
   photos are close-ups whose plates are already cut off at their own edges, and
   filling the screen cut them further. Here the wide photos - each a whole dish on the
   shoot's plain peach backdrop - are shown instead, the whole dish standing on the
   bottom of the screen. Above it the backdrop simply carries on: the room is filled
   with the photo's own top edge, stretched up and softened (::before), and the
   photo's top fades into it - so there's no frame or band anywhere (the user, same
   day: "I don't want them to have borders"). The wordmark and the button move up
   into the room above the dish (.hero-fullscreen below). */
@media (orientation: portrait) and (min-width: 700px) and (min-height: 1000px) {
    .hero-fullscreen .hero-carousel-wide { display: block; }
    .hero-fullscreen .hero-carousel-upright { display: none; }
    .hero-fullscreen .hero-carousel-wide .hero-slide::before {
        background-size: 100% 4000%;
        background-position: center top;
        filter: blur(36px);
    }
    .hero-fullscreen .hero-carousel-wide .hero-slide::after {
        inset: auto 0 0 0;
        height: 66.7vw;            /* the wide photos are 3:2 */
        background-size: cover;
        background-position: center bottom;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 24%);
    }
    .hero-fullscreen.hero-has-photo { align-items: flex-start; padding-top: 9vh; }
    /* The shade sits behind the wordmark and the button, at the top; the dish below
       stays bright. (.hero repeated: outranks the general shade rule further down.) */
    .hero.hero-fullscreen.hero-has-photo::before {
        background: linear-gradient(180deg, rgba(36, 24, 12, .62) 0%, rgba(36, 24, 12, .45) 38%, rgba(36, 24, 12, 0) 58%);
    }
}

/* A scrim so wordmark/tagline/button stay legible over a photo instead of the flat
   gradient - only added once a real photo is behind them. */
.hero.hero-has-photo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    /* The centered pool of shade sits exactly behind the wordmark and tagline: the
       gold logo was landing on the photo's mid-tones (tan on tan) and its small
       "SOMETHING SWEET" line all but disappeared. */
    background:
        radial-gradient(ellipse 48% 46% at 50% 50%, rgba(36, 24, 12, .55) 0%, rgba(36, 24, 12, 0) 100%),
        linear-gradient(180deg, rgba(58, 44, 31, .35) 0%, rgba(58, 44, 31, .68) 100%);
}
.hero.hero-has-photo .hero-word { filter: drop-shadow(0 2px 16px rgba(20, 12, 4, .5)); }

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.hero .hero-word {
    width: min(360px, 80%);
    height: auto;
    margin: 0;
}

.hero .hero-tagline {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 46ch;
    margin: 0;
}
.hero.hero-has-photo .hero-tagline { color: rgba(255, 255, 255, .92); }

.kosher-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: .85rem;
    padding: 6px 16px;
    border-radius: 999px;
}

.hero .hero-actions { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .btn-lg { width: auto; min-width: 260px; }

/* ---------- Menu-only start page (Home.razor, OrderingAccess.IsMenuOnly) ----------
   A screen on the wall or an iPad on the counter: the restaurant's photos, and a cream
   menu card with the categories to step straight into. Upright screens stack the card
   under the photos (overlapping them, rounded like a card laid on top); wide screens
   put it beside them, on the reading side. Full-bleed and exactly one screen tall,
   like .hero-fullscreen - nothing scrolls. */
.menu-welcome {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--topbar-height) - var(--banner-height));
    height: calc(100dvh - var(--topbar-height) - var(--banner-height));
    margin: -24px calc(50% - 50vw) -80px;
    overflow: hidden;
    background: var(--surface);
}
.menu-welcome-photo {
    position: relative;
    order: -1;
    flex: 1 1 auto;
    min-height: 22%;
    background: linear-gradient(160deg, var(--peach) 0%, var(--cream-deep) 60%, var(--caramel-tint) 100%);
}
/* Shade at the photo's lower edge, so the card's rounded top reads against any photo. */
.menu-welcome.has-photo .menu-welcome-photo::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 30%;
    z-index: 1;
    background: linear-gradient(180deg, rgba(58, 44, 31, 0) 0%, rgba(58, 44, 31, .28) 100%);
    pointer-events: none;
}
.menu-welcome-panel {
    position: relative;
    z-index: 2;
    flex: 0 1 auto;
    min-height: 0;
    margin-top: -36px;
    padding: 34px clamp(20px, 5vw, 56px) 30px;
    border-radius: 32px 32px 0 0;
    background: var(--surface);
    box-shadow: 0 -12px 40px rgba(58, 44, 31, .16);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
    scrollbar-width: none;
}
.menu-welcome-panel > * { animation: menu-welcome-rise .52s var(--ease-out) both; }
.menu-welcome-panel > :nth-child(2) { animation-delay: .06s; }
.menu-welcome-panel > :nth-child(3) { animation-delay: .12s; }
.menu-welcome-panel > :nth-child(4) { animation-delay: .18s; }
.menu-welcome-panel > :nth-child(n+5) { animation-delay: .24s; }
@keyframes menu-welcome-rise { from { opacity: 0; transform: translateY(12px); } }

.menu-welcome-logo { width: clamp(150px, 26vmin, 250px); height: auto; margin: 0 0 6px; }
.menu-welcome-title {
    margin: 0;
    font-size: clamp(2.1rem, 6.2vmin, 3.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--chocolate);
    text-wrap: balance;
}
.menu-welcome-tagline {
    margin: 10px 0 0;
    max-width: 40ch;
    font-size: clamp(1rem, 2.3vmin, 1.3rem);
    line-height: 1.5;
    color: var(--ink-soft);
    text-wrap: balance;
}
.menu-welcome-eyebrow {
    margin: clamp(18px, 3vmin, 30px) 0 14px;
    font-size: clamp(.85rem, 1.7vmin, 1rem);
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--gold-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}
/* Short gold rules either side of "pick a category". */
.menu-welcome-eyebrow::before, .menu-welcome-eyebrow::after {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: color-mix(in srgb, var(--gold) 55%, transparent);
}

/* Five to a row (four on a phone); a short last row stays centred. The panel follows the
   page's direction, so the first category sits at the reading start in every language. */
.menu-welcome-categories {
    --cols: 5;
    --gap-x: clamp(8px, 1.6vmin, 18px);
    width: 100%;
    max-width: 760px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(14px, 2.2vmin, 22px) var(--gap-x);
}
.menu-welcome-category {
    flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap-x)) / var(--cols));
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    animation: menu-welcome-tile .46s var(--ease-out) both;
    animation-delay: calc(.2s + var(--i, 0) * 35ms);
}
@keyframes menu-welcome-tile { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.menu-welcome-thumb {
    width: min(118px, 100%);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, var(--caramel-light) 0%, var(--caramel) 100%);
    color: rgba(74, 58, 26, .6);
    border: 4px solid var(--surface);
    box-shadow: 0 0 0 1.5px var(--border), 0 10px 22px rgba(74, 58, 26, .14);
    transition: transform .16s var(--ease-out), box-shadow .16s ease;
}
.menu-welcome-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-welcome-thumb .icon { width: 40%; height: 40%; }
.menu-welcome-category:active .menu-welcome-thumb { transform: scale(.95); }
.menu-welcome-category:focus-visible { outline: none; }
.menu-welcome-category:focus-visible .menu-welcome-thumb { box-shadow: 0 0 0 3px var(--gold), 0 10px 22px rgba(74, 58, 26, .14); }
@media (hover: hover) {
    html.mouse-on .menu-welcome-category:hover .menu-welcome-thumb { transform: translateY(-3px); }
}
.menu-welcome-label {
    font-size: clamp(.82rem, 1.75vmin, 1.05rem);
    font-weight: 700;
    line-height: 1.25;
    text-wrap: balance;
}

.menu-welcome-cta { width: auto; min-width: min(360px, 100%); margin-top: clamp(20px, 3.4vmin, 34px); }
.menu-welcome-foot {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.menu-welcome-pay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--caramel-tint);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: .85rem;
}
.menu-welcome-pay .icon, .menu-welcome-foot .kosher-badge .icon { width: 1.1em; height: 1.1em; }

/* Wide screens (a TV on the wall): the card beside the photos, full height. */
@media (orientation: landscape) and (min-width: 900px) {
    .menu-welcome { flex-direction: row; }
    .menu-welcome-photo { order: 0; min-height: 0; }
    .menu-welcome.has-photo .menu-welcome-photo::after { display: none; }
    .menu-welcome-panel {
        flex: 0 0 clamp(440px, 44%, 680px);
        margin-top: 0;
        border-radius: 0;
        box-shadow: 0 0 40px rgba(58, 44, 31, .16);
        justify-content: center;
    }
}
/* A phone held upright: the same two rows of five, smaller, so the whole card fits. */
@media (max-width: 560px) {
    .menu-welcome-photo { min-height: 16%; }
    .menu-welcome-panel { margin-top: -28px; padding: 22px 16px 18px; border-radius: 26px 26px 0 0; }
    .menu-welcome-logo { width: 120px; margin-bottom: 2px; }
    .menu-welcome-title { font-size: 1.85rem; }
    .menu-welcome-tagline { margin-top: 6px; font-size: .92rem; line-height: 1.45; }
    .menu-welcome-eyebrow { margin: 14px 0 10px; font-size: .8rem; }
    .menu-welcome-categories { --gap-x: 6px; row-gap: 12px; }
    .menu-welcome-category { gap: 6px; }
    .menu-welcome-thumb { border-width: 3px; box-shadow: 0 0 0 1px var(--border), 0 6px 14px rgba(74, 58, 26, .14); }
    .menu-welcome-label { font-size: .72rem; }
    .menu-welcome-cta { margin-top: 16px; padding: 15px 24px; font-size: 1.15rem; }
    .menu-welcome-foot { margin-top: 12px; gap: 8px; }
    .menu-welcome-foot .kosher-badge, .menu-welcome-pay { font-size: .78rem; padding: 5px 12px; }
}
/* The kiosk-sized screens: bigger everything (like the home screen's own sizes). */
@media (min-width: 700px) and (min-height: 1000px) {
    .menu-welcome-cta { min-width: 380px; padding: 26px 52px; font-size: 1.5rem; }
    .menu-welcome-foot .kosher-badge, .menu-welcome-pay { font-size: 1rem; padding: 8px 20px; }
}
/* With motion reduced, nothing waits for a delay that no longer leads to anything. */
@media (prefers-reduced-motion: reduce) {
    .menu-welcome-panel > *, .menu-welcome-category { animation-delay: 0s !important; }
}
html[data-motion="reduced"] .menu-welcome-panel > *, html[data-motion="reduced"] .menu-welcome-category { animation-delay: 0s !important; }

/* The showcase (OrderingAccess): someone looking from outside the restaurant. */
/* A fixed height, like the top bar, so the full-screen pages (.hero-fullscreen,
   .choice-screen) can subtract it - they used to run that much past the bottom of the
   screen for a visitor, which cut "המשך" off on a phone. */
:root { --banner-height: 0px; }
:root:has(.demo-banner) { --banner-height: 36px; }
.demo-banner {
    background: var(--chocolate);
    color: var(--cream);
    font-size: .9rem;
    font-weight: 600;
    height: var(--banner-height);
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Start-order wizard (dine-in/takeaway, receipt) ---------- */
/* This screen is the very first thing every customer taps after "התחלת הזמנה" -
   it sets the tone for the whole kiosk, so it gets real presence: soft drifting
   color blobs behind the panel, a step-dot progress read, big icon-badged
   buttons, and a staggered entrance instead of a flat instant render. */
.choice-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Full-bleed, exactly like .hero-fullscreen: the negative margins cancel .container's
       side/top/bottom padding so this fills the whole screen under the top bar, and a
       fixed height (not min-height) means none of these steps can ever scroll.
       It used to be a 480px column, which clipped the two background glows into
       hard-edged pale rectangles either side of the card; now they clip only at the
       real screen edges. */
    height: calc(100dvh - var(--topbar-height) - var(--banner-height));
    margin: -24px calc(50% - 50vw) -80px;
    padding: 0 20px;
    /* clip, not hidden: an overflow:hidden box can still be scrolled programmatically,
       and focusing the phone input did exactly that - every later step (the phone
       confirmation) rendered shifted sideways and cut off at one edge. */
    overflow: clip;
}
.choice-blob {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    /* A solid disc under a heavy blur, not a radial-gradient: the gradient's hard stop
       at transparent showed as faint concentric ring lines on these very light colors. */
    filter: blur(90px);
    /* Parked in the screen's corners, well away from the card, so it reads as warm
       ambient light rather than the "pink smudge behind the input" it was reported as
       when it sat right behind the panel. */
    opacity: .5;
    pointer-events: none;
    animation: choice-blob-drift 10s ease-in-out infinite alternate;
}
.choice-blob-a {
    width: 420px;
    height: 420px;
    top: -170px;
    inset-inline-start: -130px;
    background: var(--peach);
}
.choice-blob-b {
    width: 380px;
    height: 380px;
    bottom: -170px;
    inset-inline-end: -130px;
    background: var(--caramel-light);
    animation-delay: -5s;
}
@keyframes choice-blob-drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(18px, 22px) scale(1.12); }
}

.choice-steps {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}
.choice-step {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--border);
    /* Only the color fades; the active dot's width changes instantly (animating width
       forces layout, and scaleX would stretch the rounded ends into an oval). */
    transition: background-color .25s ease;
}
.choice-step.active { width: 26px; background: var(--accent); }
.choice-step.done { background: var(--caramel); }

.choice-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    /* Fully opaque on purpose - a translucent version of this still let the pink/peach
       blob color show through behind the text (reported twice now as "a faint pink
       block"). A solid surface guarantees none of it can bleed through, at the cost of
       the blobs only being visible where they spill past the panel's own edges. */
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    box-shadow: 0 1px 2px rgba(74, 58, 26, .04), 0 12px 36px rgba(74, 58, 26, .08);
    animation: choice-panel-in .45s var(--ease-out) both;
}
@keyframes choice-panel-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.choice-title { font-size: 2.1rem; margin: 0 0 10px; }
.choice-title + .choice-actions { margin-top: 14px; }
/* "סה"כ לתשלום: ₪35.00" - the label stays in the heading color, only the amount
   carries the gold price color every other price in the kiosk uses. */
.checkout-total { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .3em; }
/* Bottom margin trimmed from 30px: on a numeric-keyboard step (phone), every bit of
   the card's own natural height adds directly to how far it has to shift up to clear
   the keyboard - confirmed by measuring the real, on-screen shift with the keyboard
   open (170px) versus what the name step needs (0px), on this kiosk's actual 1536x864
   screen. This alone doesn't fully close that gap (see the numeric keyboard's own
   height, and .choice-back below, for the rest), but every trimmed pixel here is one
   less pixel the phone/card steps have to jump when the keyboard opens. */
.choice-subtitle { color: var(--ink-soft); font-size: 1.05rem; margin: -4px 0 18px; }
.choice-phone-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-dark);
    font-variant-numeric: tabular-nums;
    margin: 0 0 30px;
}
/* The customer's consent to an SMS receipt (StartOrder, סעיף 18ב(ג)): readable, not loud. */
.choice-consent {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.45;
    max-width: 34em;
    margin: -16px auto 22px;
    text-wrap: balance;
}
/* Under it, the privacy line (StartOrder, חוק הגנת הפרטיות סעיף 11): smaller still, a note. */
.choice-privacy-note {
    color: var(--ink-soft);
    font-size: .82rem;
    line-height: 1.4;
    max-width: 38em;
    margin: -14px auto 20px;
    text-wrap: balance;
}
/* The phone step: the "ready" SMS, and that an order left waiting gets cold (StartOrder).
   A note to read once, set apart from the instructions - not an error. */
.choice-pickup-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 34em;
    margin: -6px auto 18px;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--warning) 12%, var(--surface));
    color: var(--warning-dark);
    font-size: .95rem;
    line-height: 1.45;
    text-align: start;
}
.choice-pickup-notice .icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
/* The website's checkout (WebOrdering): takeaway, and about when it'll be ready - a quiet
   fact above the card button, in the accent's own colour. */
.web-pickup-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: -6px auto 20px;
    padding: 8px 16px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 10%, var(--surface));
    color: var(--accent-dark);
    font-weight: 600;
    font-size: .98rem;
    text-wrap: balance;
}
.web-pickup-note .icon { flex-shrink: 0; width: 18px; height: 18px; }

.choice-actions {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}
.choice-btn {
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-height: 88px;
    padding: 16px 26px;
    border-radius: var(--radius-lg);
    border: none;
    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .2s ease, background .15s ease;
}
.choice-btn:active { transform: scale(0.97); }
.choice-btn-primary { background: var(--accent); color: white; }
.choice-btn-secondary { background: var(--surface); color: var(--chocolate); border: 1.5px solid var(--border); }
@media (hover: hover) {
    html.mouse-on .choice-btn-primary:hover { background: var(--accent-dark); box-shadow: 0 12px 28px rgba(74, 58, 26, 0.16); }
    html.mouse-on .choice-btn-secondary:hover { background: var(--cream-deep); box-shadow: 0 12px 28px rgba(74, 58, 26, 0.12); }
}
.choice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
}
.choice-icon .icon { width: 26px; height: 26px; }
.choice-btn-secondary .choice-icon { background: var(--cream-deep); color: var(--accent-dark); }
.choice-label { flex: 1; text-align: start; }
/* A choice with a line under its name ("קבלה ירוקה" / "נשלחת ב-SMS לנייד"). */
.choice-text { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; }
.choice-text .choice-label { flex: none; }
.choice-sublabel { font-size: .95rem; font-weight: 500; opacity: .85; }

.choice-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    /* Slim padding (it adds directly to the phone/order-type steps' natural height,
       which the keyboard has to clear) but still a 44px-tall finger target. */
    min-height: 44px;
    padding: 8px 14px;
    transition: background-color .15s ease, color .15s ease;
}
.choice-back:active:not(:disabled) { background: var(--caramel-tint); color: var(--chocolate); }
.choice-back:disabled { opacity: .5; cursor: default; }
.choice-phone-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.choice-phone-row {
    position: relative;
    display: flex;
    align-items: center;
}
.choice-phone-row .choice-icon-static {
    position: absolute;
    inset-inline-start: 8px;
    width: 44px;
    height: 44px;
    background: var(--cream-deep);
    color: var(--accent-dark);
}
.choice-phone-row .choice-icon-static .icon { width: 22px; height: 22px; }
.choice-phone-input {
    width: 100%;
    min-height: 68px;
    padding: 0 20px 0 20px;
    padding-inline-start: 66px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 1.3rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    font-family: inherit;
    color: var(--ink);
}
.choice-phone-input:focus { outline: none; border-color: var(--accent); }

.choice-text-input {
    width: 100%;
    min-height: 68px;
    padding: 0 20px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    font-size: 1.3rem;
    text-align: center;
    font-family: inherit;
    color: var(--ink);
}
.choice-text-input:focus { outline: none; border-color: var(--accent); }

.choice-error { color: var(--danger); font-size: .9rem; margin: -8px 0 0; text-align: center; }
/* Keeps one line's worth of space even when empty (see StartOrder's phone step). */
.choice-error-slot { min-height: 1.4em; margin: -6px 0 -4px; }

/* ---------- Card payment form (Shared/CardPaymentPanel.razor) ---------- */
.card-form { width: 100%; display: flex; flex-direction: column; text-align: start; }
.card-form-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.card-form-title { margin: 0; font-size: 1.2rem; }
.card-sim-badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--warning) 18%, var(--surface));
    color: var(--warning-dark);
    font-size: .78rem;
    font-weight: 700;
}
.card-form-note { margin: 0 0 14px; color: var(--ink-soft); font-size: .86rem; line-height: 1.5; }
.card-form .field { margin-bottom: 14px; }
.card-form .field label { font-size: .92rem; color: var(--chocolate); }
.card-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card-form .btn-lg { margin-top: 4px; }

/* Paying on the kiosk's card terminal (TerminalPaymentPanel): the card goes on the
   terminal, so this only says what to do and waits - a card with a soft pulse. */
.terminal-pay { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.terminal-pay .card-form-head { align-self: stretch; }
.terminal-visual { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin: 6px 0 2px; }
.terminal-icon {
    position: relative; z-index: 1;
    width: 104px; height: 104px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--accent); color: white;
    box-shadow: 0 10px 28px rgba(138, 106, 26, .32);
}
.terminal-icon .icon { width: 48px; height: 48px; }
.terminal-pulse {
    position: absolute; inset: 14px; border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 35%, transparent);
    animation: terminal-pulse 1.8s cubic-bezier(.22, 1, .36, 1) infinite;
}
.terminal-visual.is-charging .terminal-pulse { animation-duration: .9s; }
@keyframes terminal-pulse {
    from { transform: scale(.8); opacity: .9; }
    to { transform: scale(1.35); opacity: 0; }
}
.terminal-instruction { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--chocolate); text-wrap: balance; }
.terminal-status { margin: 0; display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.terminal-pay .alert { align-self: stretch; }

/* Paying in Tranzila's own window (TranzilaPaymentPanel). Tall enough for its form and
   PinPad choice without scrolling inside the frame. */
.tranzila-pay { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tranzila-pay .card-form-head { align-self: stretch; }
.tranzila-pay .alert { align-self: stretch; }
.tranzila-form { display: none; }
/* Time left to tap the card on the reader (TranzilaPaymentPanel.TapTime): a thin bar that
   runs down; the inline animation-duration is the time. */
.tap-timer { width: min(100%, 360px); height: 6px; border-radius: 99px; background: var(--cream-deep); overflow: hidden; }
.tap-timer-fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); transform-origin: right; animation: tap-timer-run linear forwards; }
[dir=ltr] .tap-timer-fill { transform-origin: left; }
@keyframes tap-timer-run { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .tap-timer { display: none; } }
/* Exactly the room the screen has left under the total and above "back" (~280px with
   the bars), so the step itself never scrolls - 62% of the screen ran past the bottom on a
   phone and on a laptop. On a small phone that leaves Tranzila's own page a short window,
   and it scrolls inside it; not under 300px. */
.tranzila-frame {
    width: 100%; border: 1px solid var(--border);
    height: clamp(300px, calc(100dvh - var(--topbar-height) - var(--banner-height) - 280px), 640px);
    border-radius: var(--radius-md); background: var(--surface);
}
.terminal-hint { margin: -6px 0 0; color: var(--ink-soft); font-size: 1rem; text-wrap: balance; }
/* With the reader the window holds only Tranzila's reader choice (its total is hidden -
   ours is above): Tranzila's own size for it (370 x 455), no frame, the panel's own white,
   so it reads as part of the page. What the screen has left under the pulsing card. */
.tranzila-frame.is-reader {
    width: min(100%, 400px); border: 0; background: transparent;
    height: clamp(240px, calc(100dvh - var(--topbar-height) - var(--banner-height) - 520px), 455px);
}

/* Kiosk-scale text field: the same weight as the name/phone inputs, so the card step
   doesn't suddenly drop to the admin panel's smaller form fields. */
.field input.kiosk-input {
    min-height: 58px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--ink);
    font-size: 1.2rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}

/* ---------- Payment callout (cash at the register) ---------- */
/* Amber, the app's "needs attention" semantic color - distinct from the gold brand
   accent - because an unpaid cash order is exactly that: nothing reaches the kitchen
   until it's paid (see ReceiptPrinterService). */
.pay-callout {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 22px 18px;
    margin-bottom: 18px;
    border-radius: var(--radius-lg);
    background: color-mix(in srgb, var(--warning) 11%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--surface));
    text-align: center;
}
.pay-callout-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--warning) 24%, var(--surface));
    color: var(--warning-dark);
}
.pay-callout-icon .icon { width: 24px; height: 24px; }
.pay-callout-title { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--chocolate); }
.pay-callout-amount.money { margin: 0; font-size: 2rem; font-weight: 800; color: var(--warning-dark); }
.pay-callout-body { margin: 0; color: var(--ink-soft); line-height: 1.55; }
.pay-callout-due { margin-bottom: 0; }

/* ---------- Order confirmation (Pages/OrderStatus.razor) ---------- */
/* The one celebratory beat in the whole flow: the ring and check draw themselves in,
   then the title and name rise in a short stagger. Everything else stays still. */
.order-done {
    max-width: 520px;
    margin: 4px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.order-done-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.order-done-hero > * { animation: done-rise .5s var(--ease-out) both; }
.order-done-hero > :nth-child(2) { animation-delay: .12s; }
.order-done-hero > :nth-child(3) { animation-delay: .18s; }
.order-done-hero > :nth-child(4) { animation-delay: .24s; }
.order-done-hero > :nth-child(5) { animation-delay: .3s; }
@keyframes done-rise { from { opacity: 0; transform: translateY(8px); } }

.order-done-mark { display: block; width: 78px; height: 78px; margin-bottom: 4px; }
.order-done-mark svg { display: block; width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.order-done-mark circle {
    fill: color-mix(in srgb, var(--success) 10%, var(--surface));
    stroke: var(--success);
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: done-draw .55s var(--ease-out) .05s forwards;
}
.order-done-mark path {
    stroke: var(--success);
    stroke-width: 3.5;
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
    animation: done-draw .35s var(--ease-out) .42s forwards;
}
@keyframes done-draw { to { stroke-dashoffset: 0; } }

.order-done-title { margin: 0; font-size: 2.2rem; }
/* The number to wait for (Order.PickupNumber): the biggest thing on the page. */
.order-done-number { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0 2px; }
.order-done-number-label { color: var(--ink-soft); font-size: 1rem; font-weight: 600; }
.order-done-number-value {
    min-width: 3.4ch; padding: 4px 28px; border-radius: var(--radius-lg); text-align: center;
    background: var(--accent); color: #fff; font-size: clamp(3.4rem, 9vmin, 5.2rem); font-weight: 800; line-height: 1.1;
    font-variant-numeric: tabular-nums; box-shadow: 0 8px 22px rgba(143, 112, 41, .28);
}
.order-done-name { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.order-done-name-label { color: var(--ink-soft); font-size: .95rem; }
.order-done-name-value {
    padding: 8px 28px;
    border-radius: 999px;
    background: var(--caramel-tint);
    color: var(--chocolate);
    font-size: 1.7rem;
    font-weight: 800;
}
.order-done-hint { margin: 2px 0 0; color: var(--ink-soft); }

.order-summary {
    width: 100%;
    padding: 4px 20px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.order-summary .cart-line-price { font-weight: 700; }
.order-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 14px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--chocolate);
}
.order-summary-total .money { font-size: 1.3rem; }

.order-done-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.order-countdown { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.order-countdown-stop {
    min-height: 44px;
    padding: 6px 8px;
    background: none;
    border: none;
    color: var(--accent-dark);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ---------- Modal ---------- */
/* The "click a dish, customize it" sheet - the single highest-traffic screen in the
   whole kiosk flow, so it gets the most design attention: a tall hero photo, a fixed
   header/footer with only the middle scrolling, and selection controls with an
   unmistakable pressed state (this runs on a touchscreen with no hover to lean on). */
.modal-backdrop-custom {
    position: fixed; inset: 0; background: rgba(42, 32, 25, .6);
    display: flex; align-items: flex-end; justify-content: center; z-index: 1000;
    animation: backdrop-in .22s ease-out;
    backdrop-filter: blur(2px);
}
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
/* Tapping the dimmed area closes the window - but iPhone Safari sends no tap from a plain
   area unless it looks tappable, so on an iPhone it did nothing. The window itself keeps
   the normal cursor. */
.modal-backdrop-custom, .editor-backdrop { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.modal-backdrop-custom > *, .editor-backdrop > * { cursor: auto; }

.modal-sheet {
    position: relative;
    background: var(--surface);
    width: 100%;
    max-width: 700px;
    max-height: 94vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: sheet-in .32s cubic-bezier(.2, .8, .3, 1);
    box-shadow: 0 -20px 60px rgba(42, 32, 25, .3);
}
@keyframes sheet-in {
    from { transform: translateY(28px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 640px) {
    .modal-backdrop-custom { align-items: center; }
    .modal-sheet { border-radius: var(--radius-lg); }
    .modal-drag-handle { display: none; }
    @keyframes sheet-in {
        from { transform: translateY(12px) scale(.98); opacity: 0; }
        to { transform: translateY(0) scale(1); opacity: 1; }
    }
}

/* The cart is a full-screen view rather than a bottom sheet - there's a lot to show once a
   line carries its own photo and description, and it's the last stop before checkout. Wins
   over the width/min-width:640px rules above via source order + a more specific selector. */
.cart-sheet.cart-sheet-full {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
}

/* A native-feeling "swipe to dismiss" hint on the phone/kiosk bottom-sheet layout. */
.modal-drag-handle {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--chocolate);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
    transition: transform .12s ease, background .12s ease;
    z-index: 2;
}
.modal-close .icon { width: 1.3rem; height: 1.3rem; }
@media (hover: hover) {
    html.mouse-on .modal-close:hover { background: white; }
}
.modal-close:active { transform: scale(.92); }

/* Only this middle section scrolls - the photo stays put above it and the price/CTA
   footer stays reachable below it no matter how many modifier groups a dish has. */
.modal-scroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.modal-body { padding: 26px 28px 8px; }

.modal-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.modal-title-row h2 { margin: 0; font-size: 1.85rem; }
.modal-base-price {
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 1.3rem;
}
.modal-desc { color: var(--ink-soft); margin: 8px 0 0; line-height: 1.6; font-size: 1.05rem; }
.dish-out-note { margin: 10px 0 0; padding: 8px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning-dark); font-size: 1rem; line-height: 1.45; }
/* Allergens in the dish window: what it contains as chips, what the picked add-ons bring
   marked "+", traces and the ask-the-staff line quieter under them. */
.dish-allergens { margin: 12px 0 0; padding: 10px 12px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.dish-allergens-title { font-size: .78rem; font-weight: 800; letter-spacing: .02em; color: var(--ink-soft); }
.dish-allergens-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .95rem; color: var(--ink); line-height: 1.4; }
.dish-allergens-label { font-weight: 700; color: var(--chocolate); }
.allergen-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--caramel-tint); color: var(--chocolate); font-weight: 700; font-size: .88rem; }
.allergen-chip.is-added { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-dark); }
.dish-allergens-may { color: var(--ink-soft); }
.dish-allergens-note { margin: 0; font-size: .8rem; color: var(--ink-soft); line-height: 1.45; }
.modal-image-disclaimer { color: var(--ink-soft); margin: 6px 0 0; font-size: .78rem; text-align: left; font-weight: 700; }

.modifier-group {
    margin: 24px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.modifier-group:first-of-type { border-top: none; padding-top: 0; margin-top: 20px; }
.modifier-group .group-title {
    font-weight: 800;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    color: var(--chocolate);
}
.modifier-group .required-badge {
    color: var(--warning-dark);
    background: color-mix(in srgb, var(--warning) 18%, transparent);
    font-size: .82rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}
.group-hint {
    margin: -8px 0 14px;
    font-size: .9rem;
    color: var(--ink-soft);
}
/* "Pick up to 6 in total · 2 chosen" - the count is what the customer acts on. */
.group-hint-limit { font-weight: 700; color: var(--chocolate); }
.group-hint-limit.is-full { color: var(--accent-dark); }
.group-hint + .group-hint { margin-top: -10px; }

/* A modifier group can now run to a couple dozen add-ons (sauces, toppings, fruit) - two
   columns keeps that scrollable instead of a very long single-column list. */
.modifier-options { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 520px) {
    /* Below this, two columns squeeze longer sauce/topping names (e.g. "ממרח שוקולד
       אגוזי לוז") into an awkward mid-word wrap - most phone widths stay single-column. */
    .modifier-options { grid-template-columns: 1fr 1fr; }
}

/* The real kiosk screen - genuinely large and tall, not just "wider than a phone".
   Three columns plus a taller sheet surfaces far more of a long topping list (sauces,
   toppings, fruit...) up front, so there's much less scrolling to reach "הוספה לסל". */
@media (min-width: 900px) and (min-height: 700px) {
    .modal-sheet { max-width: 900px; max-height: 96vh; }
    .modifier-options { grid-template-columns: 1fr 1fr 1fr; }
}

/* Kiosk-sized touch target (56px) with an explicit checkbox/radio indicator - there's
   no hover state to lean on for "what will happen if I tap this", so selected vs not
   has to read instantly from color, border and the indicator shape alone. */
.modifier-row {
    display: flex; align-items: center; gap: 14px;
    width: 100%; min-height: 64px;
    padding: 12px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface);
    cursor: pointer; font-size: 1.1rem; font-family: inherit; color: var(--ink);
    text-align: start;
    transition: border-color .12s ease, background .12s ease, transform .08s ease, box-shadow .12s ease;
}
.modifier-row:active { transform: scale(.98); }
.modifier-row.selected {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
    box-shadow: 0 2px 10px rgba(138, 106, 26, .18);
}
.modifier-row:disabled {
    cursor: not-allowed;
    opacity: .45;
}
.modifier-row:disabled:active { transform: none; }

.modifier-name { flex: 1; min-width: 0; }
/* Under a choice the dish always serves beside it (Modifier.AlwaysOnSide): read before
   it's picked. */
.modifier-side-note {
    display: block;
    width: fit-content;
    margin-top: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--warning) 16%, var(--surface));
    color: var(--warning-dark);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
}
.modifier-price { color: var(--ink-soft); font-size: 1rem; flex-shrink: 0; }
.modifier-row.selected .modifier-price { color: var(--accent-dark); }
.modifier-price-free { color: var(--success); font-weight: 700; }

.modifier-indicator {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--border);
    transition: border-color .12s ease, background .12s ease, transform .18s cubic-bezier(.22,1,.36,1);
}
/* Multi-select groups (toppings, sauces): a checkbox that fills with a checkmark. */
.modifier-row.is-check .modifier-indicator { border-radius: 8px; color: white; }
.modifier-row.is-check.selected .modifier-indicator {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
}
.modifier-row.is-check .modifier-indicator .icon { width: 16px; height: 16px; stroke-width: 3; }
/* Single-select groups (size, קצר/ארוך): a radio dot instead of a checkmark. */
.modifier-row.is-radio .modifier-indicator { border-radius: 50%; }
.modifier-row.is-radio.selected .modifier-indicator { border-color: var(--accent); border-width: 2px; }
.modifier-row.is-radio.selected .modifier-indicator::after {
    content: '';
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    animation: radio-pop .18s ease-out;
}
@keyframes radio-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* "רטבים בצד" (ProductCustomizeModal): one button above the sauces - all the picked sauces
   go beside the dish. A full-width row the size of an option, so a finger finds it. */
.modifier-cell { display: flex; flex-direction: column; min-width: 0; }
.sauces-side-toggle {
    display: flex; align-items: center; gap: 12px;
    width: 100%; min-height: 56px; margin: 0 0 12px;
    padding: 10px 18px;
    border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: var(--radius-md);
    background: var(--surface); color: var(--accent-dark);
    font-family: inherit; font-size: 1rem; font-weight: 700; text-align: start;
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease, transform .1s ease;
}
.sauces-side-toggle:active { transform: scale(.98); }
.sauces-side-toggle.is-on {
    border-style: solid; border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 14%, var(--surface));
}
.sauces-side-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sauces-side-hint { font-size: .85rem; font-weight: 500; color: var(--ink-soft); animation: side-in 180ms var(--ease-out); }
.side-toggle-box {
    flex-shrink: 0; width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--accent); border-radius: 7px;
    color: transparent; background: var(--surface);
    transition: background .12s ease, color .12s ease;
}
.sauces-side-toggle.is-on .side-toggle-box { background: var(--accent); color: white; }
.side-toggle-box .icon { width: 15px; height: 15px; stroke-width: 3; }
@keyframes side-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .sauces-side-hint { animation: none; } }
/* The kiosk's phone step: a printed receipt instead of the SMS one (StartOrder). */
.choice-paper-toggle { margin: 0 0 14px; }

.qty-row {
    display: flex; align-items: center; justify-content: space-between;
    margin: 8px 0 20px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.qty-label { font-weight: 800; font-size: 1.2rem; color: var(--chocolate); }

.qty-stepper { display: flex; align-items: center; gap: 20px; }
.qty-stepper button {
    width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid var(--border);
    background: var(--surface); font-size: 1.7rem; cursor: pointer; color: var(--chocolate);
    display: flex; align-items: center; justify-content: center; font-family: inherit;
    line-height: 1;
    transition: background .12s ease, transform .08s ease, border-color .12s ease;
}
@media (hover: hover) {
    html.mouse-on .qty-stepper button:hover:not(:disabled) { background: var(--cream-deep); border-color: var(--caramel); }
}
.qty-stepper button:active:not(:disabled) { transform: scale(.92); background: var(--cream-deep); border-color: var(--caramel); }
.qty-stepper button:disabled { opacity: .4; cursor: not-allowed; }
.qty-value { font-weight: 800; font-size: 1.5rem; min-width: 1.8ch; text-align: center; font-variant-numeric: tabular-nums; }

/* Fixed footer: the primary action is always one tap away regardless of how far down
   the modifier list scrolls. */
.modal-footer {
    flex: 0 0 auto;
    padding: 16px 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.btn-add-to-cart { justify-content: space-between; }
/* The menu only: nothing to add - where to pay instead. */
.view-only-footer { display: flex; align-items: center; justify-content: center; }
.view-only-hint {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--caramel-tint);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 1.1rem;
}
/* What a dish can come with, to read (ProductCustomizeModal ViewOnly): a quiet list,
   nothing that looks tappable. */
.modifier-static-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 0 20px;
}
.modifier-static {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px dashed var(--border);
    font-size: 1rem;
}
.modifier-static .modifier-name { color: var(--ink); font-weight: 600; }
.modifier-static .modifier-price { color: var(--ink-soft); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Dish sheet (Shared/ProductCustomizeModal.razor) ---------- */
/* The photo keeps its real 3:2 proportions so the whole dish is visible (the old
   full-width 260px-tall strip cropped most of it away), and the type/controls are a
   step smaller - the sheet was built at a scale that made it feel crowded. */
.product-sheet { max-width: 640px; }
.product-close { top: 14px; inset-inline-start: 14px; inset-inline-end: auto; width: 44px; height: 44px; }
.product-layout { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.product-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    max-height: 38vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, var(--caramel-light) 0%, var(--caramel) 100%) center / cover no-repeat;
    color: rgba(74, 58, 26, .6);
}
.product-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A dish photo that isn't wide (upright, square) or is a long panorama would lose most of
   the dish covering a wide frame - the menu card's or this window's. It's shown whole
   instead, and the frame around it is filled with a blurred copy of the same photo (the
   frame's own background-image, inherited and sized to nothing itself). Which photos:
   ImageOptimizer.ShowWhole. The menu card sets its fit inline. */
.photo-whole { position: relative; overflow: hidden; background-size: 0 0 !important; }
.photo-whole::before {
    content: '';
    position: absolute;
    inset: -24px;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(16px) brightness(.92);
}
.photo-whole img { position: relative; object-fit: contain; }
.product-photo .icon { width: 4rem; height: 4rem; }
.product-info { padding: 18px 22px 2px; }
.product-options { padding: 4px 22px 8px; }

.product-sheet .modal-title-row h2 { font-size: 1.5rem; }
.product-sheet .modal-base-price { font-size: 1.15rem; }
.product-sheet .modal-desc { font-size: .98rem; line-height: 1.55; margin-top: 6px; }
.product-sheet .modifier-group { margin: 18px 0; padding-top: 16px; }
.product-sheet .modifier-group:first-of-type { margin-top: 12px; }
.product-sheet .modifier-group .group-title { font-size: 1.02rem; margin-bottom: 10px; }
.product-sheet .modifier-options { gap: 8px; }
.product-sheet .modifier-row { min-height: 52px; padding: 8px 14px; gap: 12px; font-size: .98rem; }
.product-sheet .modifier-indicator { width: 24px; height: 24px; }
.product-sheet .modifier-row.is-radio.selected .modifier-indicator::after { width: 12px; height: 12px; }
.product-sheet .modifier-price { font-size: .9rem; }
.product-sheet .qty-row { margin: 4px 0 10px; padding-top: 16px; }
.product-sheet .qty-label { font-size: 1.02rem; }
.product-sheet .qty-stepper { gap: 16px; }
.product-sheet .qty-stepper button { width: 48px; height: 48px; font-size: 1.4rem; }
.product-sheet .qty-value { font-size: 1.25rem; }
.product-sheet .modal-footer { padding: 14px 22px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.product-sheet .btn-add-to-cart { padding: 15px 24px; font-size: 1.15rem; border-radius: var(--radius-md); }

/* Wide screens (the kiosk): photo and details on one side, options on the other,
   each scrolling on its own, "add to cart" across the bottom. Landscape only - on a
   portrait screen the two columns came out narrow and squeezed, so it keeps the
   photo-on-top layout (enlarged in "Screen sizes" below). */
@media (min-width: 900px) and (min-height: 600px) and (orientation: landscape) {
    .modal-sheet.product-sheet {
        width: calc(100% - 64px);
        max-width: 1060px;
        height: min(88vh, 780px);
        max-height: none;
        border-radius: var(--radius-lg);
    }
    .product-layout { display: grid; grid-template-columns: minmax(340px, 40%) 1fr; overflow: hidden; }
    .product-media {
        overflow-y: auto;
        padding: 20px;
        background: color-mix(in srgb, var(--caramel-tint) 45%, var(--surface));
        border-inline-end: 1px solid var(--border);
    }
    .product-photo { max-height: none; border-radius: var(--radius-md); box-shadow: 0 6px 18px rgba(74, 58, 26, .12); }
    .product-close { top: 30px; inset-inline-start: 30px; }
    .product-info { padding: 18px 4px 0; }
    .product-options { overflow-y: auto; padding: 20px 26px 12px; }
    .product-options .modifier-options { grid-template-columns: 1fr 1fr; }
}
.modal-footer-row { display: flex; gap: 12px; }
/* "Please choose ..." right above "add to cart", and the choice it's about outlined. */
.add-to-cart-error { margin: 0 0 10px; color: var(--danger); font-weight: 700; text-align: center; animation: add-error-in .18s var(--ease-out); }
@keyframes add-error-in { from { opacity: 0; transform: translateY(4px); } }
.modifier-group.is-missing .group-title { color: var(--danger); }
.modifier-group.is-missing .modifier-row { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); }
/* Or just the options one of which is needed (milk or white chocolate on the original pancake). */
.modifier-row.is-missing { border-color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .add-to-cart-error { animation: none; } }
.modal-footer-row .btn { flex: 1; }

/* ---------- Cart drawer ---------- */
/* The same height and distance from the bottom as the accessibility button (.a11y-fab)
   in the corner: the two sit on one line. */
.cart-fab {
    position: fixed; bottom: 16px; inset-inline: 0; margin: 0 auto; width: fit-content;
    height: 52px;
    background: var(--accent); color: white; padding: 0 22px 0 26px; border-radius: 999px;
    box-shadow: 0 10px 28px rgba(138, 106, 26, .35); font-weight: 700; font-size: 1.05rem; cursor: pointer; z-index: 900;
    display: flex; align-items: center; gap: 10px; border: none;
    transition: transform .15s cubic-bezier(.22,1,.36,1), background .15s ease, box-shadow .15s ease;
    animation: cart-fab-in .3s cubic-bezier(.22,1,.36,1);
}
@keyframes cart-fab-in {
    from { transform: scale(.85) translateY(6px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}
@media (hover: hover) {
    html.mouse-on .cart-fab:hover { background: var(--accent-dark); box-shadow: 0 12px 32px rgba(138, 106, 26, .42); }
}
.cart-fab:active { transform: scale(.96); }
/* A dish on its way into the cart (js/fly-to-cart.js): a copy of its photo, above
   everything, never in the way of a tap. */
.fly-to-cart { position: fixed; z-index: 3000; pointer-events: none; }
/* Starts as an exact, invisible copy of the photo it lifts off (square corners, no frame,
   nothing behind the picture) - the rounding, shadow and white ring come in as it flies
   (fly-to-cart.js). With them from the first frame, a white-framed square showed up on
   the photo before the flight began. */
.fly-to-cart-chip {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
    will-change: transform;
}
.fly-to-cart-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fly-to-cart-chip.is-icon {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, var(--caramel-light) 0%, var(--caramel) 100%);
    color: rgba(74, 58, 26, .6);
}
.fly-to-cart-chip.is-icon .icon { width: 40%; height: 40%; }
.fly-to-cart-count {
    position: absolute; bottom: 10px; inset-inline-end: 10px;
    background: var(--accent); color: white;
    border-radius: 999px; padding: 4px 12px;
    font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums;
    box-shadow: 0 4px 12px rgba(74, 58, 26, .3);
}
.cart-fab-badge {
    background: rgba(255, 255, 255, .3);
    border-radius: 999px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

/* Plain order-summary row used by Checkout and OrderStatus (name+modifiers on one
   side, line total pinned to the far edge) - simpler than the cart drawer's .cart-item,
   which has a thumbnail and its own qty/remove controls. */
.cart-line { display: flex; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-line .modifiers { color: var(--ink-soft); font-size: .85rem; }

/* The cart re-uses the same sheet/header/footer shell as the product-customize modal
   (shared visual language) but has no hero image, so its own header takes that slot. */
.cart-header {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border);
}
.cart-header h2 { margin: 0; font-size: 1.5rem; }
.cart-header-close { position: static; box-shadow: none; background: var(--cream-deep); }
.cart-header-close .icon { width: 1.1rem; height: 1.1rem; }
@media (hover: hover) {
    html.mouse-on .cart-header-close:hover { background: var(--border); }
}

.cart-empty {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 20px 24px 40px; text-align: center;
}
.cart-empty-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--cream-deep); color: var(--caramel-dark);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.cart-empty-icon .icon { width: 2rem; height: 2rem; }
.cart-empty-title { font-weight: 800; font-size: 1.15rem; color: var(--chocolate); margin: 0; }
.cart-empty-sub { color: var(--ink-soft); margin: 0 0 14px; }

.cart-lines { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 0 auto; width: 100%; }
/* The full-screen cart's header spans the whole screen while its lines and footer sit
   in a 720px column - line the title and close button up with that column's edges
   instead of the screen's. */
.cart-sheet-full .cart-header { padding-inline: max(24px, calc((100% - 672px) / 2)); }
/* Named .cart-item (not .cart-line) - Checkout and OrderStatus already use .cart-line
   for their own simpler order-summary rows and this needs a different layout. */
.cart-item {
    display: flex; gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    animation: cart-item-in .22s ease-out;
}
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }
@keyframes cart-item-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cart-line-thumb {
    flex: 0 0 auto;
    width: 92px; height: 92px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(150deg, var(--caramel-light) 0%, var(--caramel) 100%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(74, 58, 26, .6);
}
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-thumb .icon { width: 2.2rem; height: 2.2rem; }

.cart-line-body { flex: 1; min-width: 0; }
.cart-line-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cart-line-name { font-weight: 700; font-size: 1.05rem; }
.cart-line-price { font-weight: 800; color: var(--accent); flex-shrink: 0; }
.cart-line-desc { color: var(--ink-soft); font-size: .9rem; line-height: 1.5; margin: 4px 0 0; }
.cart-line-modifiers { color: var(--ink-soft); font-size: .88rem; margin-top: 4px; }

.cart-line-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }

.qty-stepper-sm { gap: 12px; }
/* 44px is the de-facto minimum comfortable touch target on a kiosk (WCAG's own AA
   target-size rule doesn't formally apply until 2.2, but this runs on a touchscreen
   today) - was 36px, easy to mis-tap next to its neighbor. */
.qty-stepper-sm button { width: 44px; height: 44px; font-size: 1.15rem; }
.qty-stepper-sm .qty-value { font-size: 1rem; min-width: 1.4ch; }

.cart-line-remove {
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: transparent; color: var(--ink-soft); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .12s ease, color .12s ease, transform .08s ease;
}
.cart-line-remove .icon { width: 1.1rem; height: 1.1rem; }
.cart-line-remove:active { transform: scale(.9); background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
@media (hover: hover) {
    html.mouse-on .cart-line-remove:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
}
/* "עריכה": the dish's choices again, and "שכפול": one more of it as its own dish (CartDrawer) -
   beside the bin, away from the quantity. */
.cart-line-edit { margin-inline-start: auto; }
.cart-line-edit, .cart-line-copy {
    min-height: 44px; padding: 0 14px;
    display: flex; align-items: center; gap: 6px;
    border: 1.5px solid var(--border); border-radius: 999px;
    background: var(--surface); color: var(--accent-dark);
    font-family: inherit; font-size: .95rem; font-weight: 700; cursor: pointer;
    transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.cart-line-edit .icon, .cart-line-copy .icon { width: 1rem; height: 1rem; }
.cart-line-edit:active, .cart-line-copy:active { transform: scale(.96); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
@media (hover: hover) {
    html.mouse-on :is(.cart-line-edit, .cart-line-copy):hover { border-color: var(--accent); }
}
.cart-line-error { margin: 8px 0 0; color: var(--danger); font-size: .88rem; font-weight: 600; line-height: 1.45; }
/* A phone: no room for all four on one row - the quantity and the bin on the first, "עריכה" and
   "שכפול" side by side under them, each half the width. */
@media (max-width: 520px) {
    .cart-line-actions .cart-line-remove { order: 1; margin-inline-start: auto; }
    .cart-line-actions :is(.cart-line-edit, .cart-line-copy) { order: 2; flex: 1 1 calc(50% - 4px); margin-inline-start: 0; justify-content: center; }
}

/* The note for the kitchen (CartDrawer): one quiet dashed button until it's asked for. */
.cart-note { padding: 0 24px 24px; max-width: 720px; margin: 0 auto; width: 100%; }
.cart-note-add {
    width: 100%; min-height: 56px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 1.5px dashed var(--border); border-radius: var(--radius-md);
    background: transparent; color: var(--ink-soft);
    font-family: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
    transition: transform 120ms ease-out, border-color 120ms ease, color 120ms ease;
}
.cart-note-add .icon { width: 1.1rem; height: 1.1rem; }
.cart-note-add:active { transform: scale(.98); border-color: var(--accent); color: var(--accent); }
.cart-note-label { display: block; font-weight: 700; margin-bottom: 8px; }
.cart-note-input {
    width: 100%; min-height: 96px; resize: none;
    padding: 12px 16px;
    border: 1.5px solid var(--border); border-radius: var(--radius-md);
    background: var(--surface); color: var(--ink);
    font-family: inherit; font-size: 1.1rem; line-height: 1.5;
}
.cart-note-input:focus { outline: none; border-color: var(--accent); }
.admin-order-note { display: block; margin-top: 4px; font-weight: 700; color: var(--warning-dark); white-space: pre-line; }

.cart-footer { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; width: 100%; }
.cart-total-row { display: flex; align-items: baseline; justify-content: space-between; font-weight: 700; font-size: 1.05rem; color: var(--ink-soft); }
.cart-total-amount { font-size: 1.4rem; font-weight: 800; color: var(--accent); }

.cart-cancel-link {
    background: none; border: none; cursor: pointer;
    color: var(--danger); font-family: inherit; font-weight: 700; font-size: .95rem;
    min-height: 44px; padding: 6px; text-align: center;
}
.cart-cancel-confirm {
    display: flex; flex-direction: column; gap: 12px;
    text-align: center; color: var(--ink);
    background: var(--cream-deep);
    border-radius: var(--radius-md);
    padding: 16px;
}
.cart-cancel-confirm-actions { display: flex; gap: 12px; }
.cart-cancel-confirm-actions .btn { flex: 1; }

/* ---------- Status badges ---------- */
.status-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.status-new { background: #fde7c8; color: var(--warning-dark); }
.status-preparing { background: #dce7f5; color: #2a5ba0; }
.status-ready { background: #d9f0e0; color: var(--success); }
.status-completed { background: #efe9e2; color: #5c4a36; }
.status-cancelled { background: #f6d6d1; color: var(--danger); }
/* Outlined rather than filled: "waiting on the register" is a pending state, not a
   stage of preparation, and should read differently from the filled status pills. */
.status-awaiting { background: var(--surface); color: var(--warning-dark); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--warning) 70%, var(--surface)); }
.status-unpaid { background: #efe9e2; color: #5c4a36; }

/* An order's own number is an identity tag, not a status - an outline (not a filled
   pastel like the status pills above) keeps it visually distinct from them while still
   reading as a clear, scannable chip in a busy row. */
/* The customer's pickup number on the dashboard (Order.PickupNumber) - what staff call out. */
.pickup-number-badge {
    display: inline-block; min-width: 3.2ch; padding: 3px 12px; border-radius: 999px; text-align: center;
    background: var(--accent); color: #fff; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums;
}
.order-number-badge {
    display: inline-block; padding: 5px 13px; border-radius: 999px; font-weight: 700;
    font-size: .85rem; border: 1.5px solid var(--border); color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label, .field .field-label { display: block; font-weight: 600; margin-bottom: 6px; }
/* A <label for=fileInput> styled as the visible file-picker trigger (see the
   sr-only InputFile pattern used for photo uploads) is not a field caption - the
   plain rule above would otherwise stretch it full-width and override .btn's own
   sizing, since ".field label" (element+class) outweighs ".btn" (class alone). */
.field label.btn { display: inline-flex; width: auto; margin-bottom: 0; }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); font-size: 1rem; font-family: inherit;
    background: var(--surface); color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink-soft) 75%, transparent); }
.field-help { margin: 6px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; }
/* A setting that matters for the books (Settings: the cash drawer). */
.settings-warning { color: var(--warning-dark); font-weight: 600; margin-bottom: 10px; }

/* The browser's own file-picker button ("Choose File" / "No file chosen") is styled
   through this pseudo-element rather than hidden-input-plus-fake-label trick - keeps
   the native file dialog, drag-drop and keyboard behavior intact while looking like
   the rest of the design system instead of raw OS chrome. */
input[type=file] { font-family: inherit; font-size: .88rem; color: var(--ink-soft); cursor: pointer; }
input[type=file]::file-selector-button {
    font-family: inherit; font-weight: 600; font-size: .85rem;
    padding: 9px 16px; margin-inline-end: 12px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--chocolate);
    cursor: pointer; transition: background .12s ease, border-color .12s ease, transform .08s ease;
}
input[type=file]::file-selector-button:active { transform: scale(.97); }
@media (hover: hover) {
    html.mouse-on input[type=file]:hover::file-selector-button { background: var(--cream-deep); border-color: var(--caramel); }
}

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.alert-danger { background: #fbe3e0; color: var(--danger); }
.alert-success { background: #dff2e6; color: var(--success); }
/* Worth noticing, not an error - e.g. a price that changed while paying (Checkout). */
.alert-info { background: color-mix(in srgb, var(--warning) 16%, var(--surface)); color: var(--warning-dark); font-weight: 600; }

/* ---------- Empty states ---------- */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 20px;
    color: var(--ink-soft);
    text-align: center;
}
.empty-state .icon { width: 2.4rem; height: 2.4rem; opacity: .5; }
.empty-state p { margin: 0; font-size: 1.05rem; }

/* ---------- Admin stat cards ---------- */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
/* One card alone (the dashboard's "waiting now", on the workers' account) keeps a card's
   width instead of a full-width bar. */
.stat-cards.is-single { grid-template-columns: minmax(0, 280px); }
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.stat-card .stat-icon {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: var(--cream-deep); color: var(--accent-dark);
    display: flex; align-items: center; justify-content: center;
}
.stat-card .stat-icon .icon { width: 1.3rem; height: 1.3rem; }
.stat-card .stat-label { color: var(--ink-soft); font-size: .85rem; font-weight: 600; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--chocolate); margin-top: 2px; }

/* ---------- Admin ---------- */
/* Operate-mode surface: staff at a desk with a keyboard and mouse, running this all
   day - so density, consistency and instantly-scannable state win over any of the
   customer kiosk's touch-first presence. One accent, used only for the active nav
   item, primary actions and selection state; everything else stays neutral. */
.admin-shell { display: flex; min-height: 100vh; background: var(--cream); }

.admin-nav {
    width: 232px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    /* A solid colour under the gradient: Safari on an iPhone (iOS 26) paints the strip behind the
       clock in the colour of the bar at the top - a gradient alone gives it none, and it showed
       the page through instead (the owner's screenshot, 2026-11-21). */
    background: var(--chocolate) linear-gradient(185deg, var(--chocolate) 0%, #3a2d16 100%);
    color: rgba(255, 255, 255, .82);
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 20px;
    color: var(--cream);
    font-weight: 800;
    font-size: 1.05rem;
}
.admin-nav-brand small { display: block; font-weight: 500; font-size: .72rem; opacity: .65; letter-spacing: .02em; }
.admin-nav-brand-mark { display: block; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }

.admin-nav-links { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-foot { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }

.admin-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
    color: inherit;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    transition: background .12s ease, color .12s ease;
}
.admin-nav a .icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; opacity: .85; }
.admin-nav a:hover { background: rgba(255,255,255,.08); color: var(--cream); }
.admin-nav a.active {
    background: rgba(255,255,255,.14);
    color: var(--cream);
    box-shadow: inset 3px 0 0 var(--gold);
}
html[dir="rtl"] .admin-nav a.active { box-shadow: inset -3px 0 0 var(--gold); }
.admin-nav a.active .icon { opacity: 1; color: var(--gold); }
.admin-nav-foot a { font-size: .85rem; opacity: .75; }
.admin-nav-foot a:hover { opacity: 1; }
/* Who is signed in (above "החלפת משתמש"). */
.admin-nav-user { display: flex; flex-direction: column; gap: 1px; padding: 6px 12px 8px; font-size: .78rem; min-width: 0; }
.admin-nav-user-label { opacity: .6; }
.admin-nav-user-name { opacity: .9; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: end; }

.admin-content { flex: 1; min-width: 0; padding: 30px 36px 60px; }

/* Phone-width admin (checking orders from a phone away from the counter): the fixed
   232px sidebar would leave the content a sliver, so it becomes a scrollable top strip. */
@media (max-width: 760px) {
    .admin-shell { flex-direction: column; }
    .admin-nav {
        position: sticky;
        top: 0;
        z-index: 20;
        width: 100%;
        height: auto;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 10px 12px;
        overflow-x: auto;
    }
    .admin-nav-brand { padding: 0 4px 0 10px; }
    .admin-nav-brand small { display: none; }
    .admin-nav-links, .admin-nav-foot { flex-direction: row; gap: 2px; }
    .admin-nav-foot { margin-top: 0; padding-top: 0; border-top: none; }
    .admin-nav a { padding: 9px 10px; white-space: nowrap; }
    .admin-nav-user { display: none; }
    .admin-content { padding: 20px 16px 48px; }
}

/* Page title + one-line context, replacing a bare <h1> across every admin screen. */
.admin-page-head { margin-bottom: 22px; }
.admin-page-head h1 { margin: 0 0 4px; font-size: 1.5rem; }
.admin-page-head p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; max-width: 75ch; }
/* The dashboard's new-order bell; until a touch unlocks the sound it stands out, so the
   iPad isn't left silent by accident. */
.chime-toggle { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.chime-toggle.chime-locked { border-color: var(--warning); color: var(--warning-dark); background: color-mix(in srgb, var(--warning) 12%, transparent); }
/* The iPad's own notifications (js/order-push.js), under the bell. */
.push-panel { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.push-toggle { display: inline-flex; align-items: center; gap: 6px; }
.push-toggle[aria-pressed="false"] { border-color: var(--warning); color: var(--warning-dark); }
.push-note { flex-basis: 100%; margin: 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.5; max-width: 75ch; }
.push-note.is-ok { color: var(--success); }
.push-note.is-bad { color: var(--danger); }
.admin-section-title { margin: 0 0 12px; font-size: 1.1rem; }

/* Row of controls above a table/board (add-category, add-dish, add-addon...) -
   replaces the repeated ad-hoc flex/gap inline styles this page used to carry. */
.admin-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-toolbar-input { width: 280px; max-width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: inherit; font-size: .95rem; transition: border-color .15s ease, box-shadow .15s ease; }
.admin-toolbar-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
/* A day or a month to look at: never wider than the screen - an iPhone draws the date field
   itself, and its own width can be more than what's left beside the search. */
.admin-month-input { width: 200px; max-width: 100%; min-width: 0; }
/* The dish search on the menu page (MenuManagement). */
.admin-search { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-search-field { position: relative; display: flex; flex: 0 1 340px; min-width: 0; max-width: 100%; }
.admin-search .admin-toolbar-input { width: 100%; padding-inline-start: 40px; }
.admin-search-icon { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); display: flex; color: var(--ink-soft); pointer-events: none; }
.admin-search-icon svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .admin-search-field { flex-basis: 100%; } }
.admin-toolbar .btn-primary { margin-inline-start: auto; }
.admin-toolbar-meta { color: var(--ink-soft); font-size: .9rem; }

.admin-category-block { margin-bottom: 32px; }
.admin-category-head {
    display: flex; align-items: baseline; gap: 8px;
    margin: 0 0 10px;
    font-size: 1.05rem;
}
.admin-category-head .count { font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
/* The category's name with its order arrows and delete button beside it. */
.admin-category-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.admin-category-bar .admin-category-head { margin: 0; }
.admin-category-actions { display: flex; align-items: center; gap: 4px; }
.admin-category-actions .icon-btn:disabled { opacity: .3; cursor: default; }
/* The menu page's "תצוגה" - by category, by flavour, א-ת, ת-א - and a category's window's. */
.menu-view-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -10px 0 22px; }
.menu-view-bar label { font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.admin-toolbar-input.menu-view-select { width: auto; min-width: 170px; }
.modal-body .menu-view-bar { margin: 4px 0 6px; }
/* A category's name opens its window. */
.admin-category-open {
    display: inline-flex; align-items: center; min-height: 34px; white-space: nowrap;
    padding: 0; border: none; border-radius: 4px; background: none;
    font: inherit; color: inherit; text-align: start; cursor: pointer;
    text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px;
    transition: text-decoration-color .15s ease;
}
@media (hover: hover) {
    html.mouse-on .admin-category-open:hover { text-decoration-color: var(--caramel); }
}
.admin-category-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* In the views other than by category, each dish says which category it's in. */
.dish-category-cell { color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }
/* A category's window: every dish on the menu, "הוספה" or "בקטגוריה". */
.category-window-list { margin-top: 4px; }
.category-dish-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 6px; padding: 8px 10px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.category-dish-row.is-in { background: var(--caramel-tint); border-color: var(--caramel-light); }
.category-dish-thumb {
    flex: none; width: 44px; height: 44px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); background: var(--cream-deep); color: rgba(74, 58, 26, .55);
}
.category-dish-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-dish-thumb .icon { width: 1.1rem; height: 1.1rem; }
.category-dish-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.category-dish-name { font-weight: 600; overflow-wrap: anywhere; }
.category-dish-meta { font-size: .8rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.category-dish-in { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--success); }
.category-dish-in .icon { width: 14px; height: 14px; }
.category-dish-row .btn { flex: none; }
.category-delete-panel { margin-bottom: 12px; }

/* A tablet-width admin screen (the counter iPad staff use to mark cash orders paid)
   can't fit every column at a readable size - scrolling the table itself horizontally
   keeps every column legible instead of squeezing/wrapping them all illegibly. Every
   admin-table is wrapped in this div (never used bare) - the min-width/nowrap rules
   below are scoped under it so an unwrapped table can never inherit them and overflow
   the page instead of scrolling internally. */
/* position: relative makes this the containing block for the .sr-only labels inside
   its cells - without it they're positioned against the page instead, escape this
   box's horizontal scroll clipping, and widen the whole admin page on an iPad. */
.admin-table-scroll { position: relative; overflow-x: auto; border-radius: var(--radius-md); }
table.admin-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.admin-table-scroll table.admin-table { min-width: 640px; }
.admin-table-scroll table.admin-table th, .admin-table-scroll table.admin-table td { white-space: nowrap; }
table.admin-table th, table.admin-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; vertical-align: middle; }
/* A light tint, not the full brand pink - on a screen staff scan all day the column
   labels should organize the table, not be its loudest element. */
table.admin-table th { background: var(--caramel-tint); font-variant-numeric: normal; font-size: .82rem; color: var(--ink-soft); font-weight: 700; }
table.admin-table tbody tr:last-child td { border-bottom: none; }
table.admin-table tbody tr { transition: background-color .12s ease; }
@media (hover: hover) {
    html.mouse-on table.admin-table tbody tr:hover { background: color-mix(in srgb, var(--caramel-tint) 45%, var(--surface)); }
}
table.admin-table td.admin-table-empty { color: var(--ink-soft); font-style: normal; padding: 22px 14px; }
table.admin-table td.admin-cell-end { text-align: end; }

.banner-thumb { display: block; width: 112px; height: 63px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: 0 1px 3px rgba(42, 32, 25, .18); transition: opacity .2s ease, filter .2s ease; }
tr.is-inactive .banner-thumb { opacity: .45; filter: grayscale(.5); }
.banner-shape { display: block; margin-top: 6px; font-size: .78rem; color: var(--ink-soft); white-space: nowrap; }
.banner-order { min-width: 1.6em; text-align: center; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* The one column whose content is a real sentence (order items) is the deliberate
   exception to the no-wrap rule above - everything else stays on one line. */
.admin-table-scroll td.admin-items-cell { white-space: normal; min-width: 180px; }

/* Monthly report: totals line under the sales table, and the orders left out of it. */
table.admin-table tfoot .admin-table-total th,
table.admin-table tfoot .admin-table-total td {
    background: var(--caramel-tint);
    border-top: 2px solid var(--border);
    color: var(--chocolate);
    font-weight: 800;
    font-size: .95rem;
}
.report-footnote { margin: 10px 0 0; max-width: 75ch; color: var(--ink-soft); font-size: .82rem; line-height: 1.55; }
.report-excluded { margin-top: 18px; color: var(--ink-soft); font-size: .9rem; }
.report-excluded summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.report-excluded ul { margin: 8px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }

/* Orders page: the next page of older orders. */
.orders-more { display: flex; justify-content: center; margin-top: 18px; }

/* The two reports (ReportSwitch.razor): a segmented switch above the toolbar. */
.report-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--caramel-tint); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.report-switch a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 7px; color: var(--ink-soft); font-weight: 700; font-size: .92rem; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.report-switch a.active { background: var(--surface); color: var(--chocolate); box-shadow: 0 1px 3px rgba(42, 32, 25, .14); }
.report-switch a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* End-of-day report (DayReport.razor). */
.day-report-section { margin-top: 30px; }
.admin-table-scroll table.admin-table.day-report-money { min-width: 0; }
.day-report-section table.admin-table tbody th { background: none; color: var(--chocolate); font-size: .95rem; }
.day-report-quiet { margin: 0; color: var(--ink-soft); }
.day-report-open p { margin: 0 0 8px; }
.day-report-open ul { margin: 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 6px; }
/* Money given back, a paid order changed or cancelled, a record deleted: marked by a
   tint and a start-side edge, so they stand out in print (no colour needed) too. */
table.admin-table tr.day-report-warn td { background: color-mix(in srgb, var(--warning) 9%, var(--surface)); }
table.admin-table tr.day-report-warn td:first-child { box-shadow: inset -3px 0 0 var(--warning); }
.day-report-seal { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.day-report-seal-status { display: flex; align-items: center; gap: 10px; color: var(--success); font-weight: 700; }
.day-report-seal-status .icon { width: 1.3rem; height: 1.3rem; flex-shrink: 0; }
.day-report-seal-code { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; color: var(--ink-soft); font-size: .9rem; font-weight: 600; }
.day-report-seal-code code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; color: var(--chocolate); }
.day-report-seal .report-footnote { margin: 0; }
.day-report-full-check { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; font-size: .9rem; }
.day-report-ok { color: var(--success); font-weight: 700; }
.day-report-bad { color: var(--danger); font-weight: 700; }
.day-report-print-title { display: none; }

@media print {
    .admin-nav, .admin-toolbar, .report-switch, .skip-link, .day-report-full-check, .admin-page-head p { display: none !important; }
    .admin-shell, .admin-content { display: block; padding: 0; background: #fff; }
    .day-report-print-title { display: block; margin: 0 0 12px; font-weight: 800; font-size: 1.1rem; }
    .admin-table-scroll { overflow: visible; }
    .admin-table-scroll table.admin-table { min-width: 0; }
    .day-report-section, .stat-card, table.admin-table tr { break-inside: avoid; }
}

/* All orders page: giving money back. Stacked - the whole order or some dishes, the dishes,
   where the money goes, the reason, then the buttons - and it wraps: one nowrap row ran
   "ביטול" off the card's edge on the owner's phone (2026-11-28). */
.refund-panel { display: grid; gap: 10px; width: 100%; max-width: 460px; margin-top: 10px; white-space: normal; }
/* Out-specifies the table's inline-edit input style (transparent until hovered), which
   is right for editable cells but made this one-off field invisible. */
.admin-table .refund-panel input.refund-reason { width: 100%; min-width: 0; padding: 8px 12px; border-color: var(--border); background: var(--surface); }
.refund-error { margin: 0; color: var(--danger); font-size: .85rem; white-space: normal; }
/* Where the money goes back (a kiosk reader: the customer taps there), above the buttons. */
.refund-plan { margin: 0; font-size: .85rem; white-space: normal; max-width: 52ch; }
/* The confirm button a row of its own, the others sharing the row under it equally. */
.refund-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.refund-actions .btn-danger { grid-column: 1 / -1; }
.refund-actions > .btn { justify-content: center; white-space: normal; }
/* "כל ההזמנה" / "מנות מסוימות": two halves of one switch. */
.refund-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-sm); background: var(--caramel-tint); }
.refund-choice-btn { min-height: 40px; padding: 6px 10px; border: 0; border-radius: calc(var(--radius-sm) - 3px); background: transparent; color: var(--ink-soft); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out); }
.refund-choice-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(74, 58, 26, .14); }
.refund-choice-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* The order's dishes to pick from: tap one to give its money back. */
.refund-dishes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.refund-dish { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.refund-dish.is-picked { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.refund-dish-pick { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer; border-radius: inherit; }
.refund-dish-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.refund-dish-pick:active:not(:disabled) { transform: scale(.99); }
.refund-dish-check { width: 20px; height: 20px; border: 2px solid var(--caramel); border-radius: 6px; display: grid; place-items: center; transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.refund-dish.is-picked .refund-dish-check { border-color: var(--danger); background: var(--danger); }
.refund-dish.is-picked .refund-dish-check::after { content: ""; width: 5px; height: 10px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.refund-dish-name { font-weight: 600; line-height: 1.35; min-width: 0; overflow-wrap: anywhere; }
.refund-dish-name small { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.refund-dish-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.refund-dish-count { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px 8px; font-size: .88rem; color: var(--ink-soft); }
.refund-step { width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--ink); font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.refund-step:disabled { opacity: .4; cursor: default; }
.refund-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Dishes already given back (all orders page), under what's left of the order. */
.order-refunded-dishes { margin-top: 8px; font-size: .85rem; color: var(--danger); white-space: normal; }
.order-refunded-dishes > span { font-weight: 700; }
.order-refunded-dishes ul { margin: 2px 0 0; padding: 0; list-style: none; }
@media (prefers-reduced-motion: reduce) {
    .refund-choice-btn, .refund-dish, .refund-dish-check { transition: none; }
    .refund-dish-pick:active:not(:disabled) { transform: none; }
}
@media print { .refund-panel { display: none; } }
/* All orders: a long customer name wraps instead of widening its column - one long name
   (no spaces) pushed the receipt buttons out past the table's edge for every row. */
.admin-table-scroll table.orders-list td:nth-child(3) { white-space: normal; overflow-wrap: anywhere; max-width: 260px; }
/* The customer's phone, under their name (all orders page). */
.order-phone { display: block; width: fit-content; color: var(--ink-soft); font-size: .85rem; font-weight: 500; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.order-phone:hover { color: var(--caramel-dark); text-decoration: underline; }
/* What the customer ordered (all orders page): a dish a line, its choices under it. */
.order-dishes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; min-width: 200px; max-width: 320px; white-space: normal; }
.order-dish { font-weight: 600; line-height: 1.35; }
.order-dish-qty { font-variant-numeric: tabular-nums; color: var(--caramel-dark); }
.order-dish small { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
/* All orders page: the order's buttons in one row, the same height, evenly spaced. */
.order-list-actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.order-list-actions > * { white-space: nowrap; }
.order-list-actions:empty { display: none; }
/* The order's receipt / credit from Tranzila (all orders page), before the refund button. */
.receipt-link { margin-inline-end: 6px; }
.order-list-actions .receipt-link { margin: 0; }
.receipt-link .icon { width: 16px; height: 16px; }
/* The customer asked for a printed receipt (Order.ReceiptMethod = Paper): staff print it. */
.receipt-link.receipt-link-print { border-color: var(--warning); color: var(--warning-dark); }
.paper-receipt-tag {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--warning-dark);
    background: color-mix(in srgb, var(--warning) 18%, var(--surface));
}
/* Deliveries (DeliveryService): Settings' price bands, the dashboard's address. */
.delivery-bands { display: grid; gap: 8px; margin-bottom: 10px; }
.delivery-band { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.delivery-band label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.delivery-band input { width: 90px; }
.delivery-tag { color: #1f5f8b; background: color-mix(in srgb, #1f5f8b 12%, var(--surface)); }
.delivery-address { display: block; margin-top: 4px; font-size: .85rem; color: var(--ink-soft); }
/* The courier company's courier on a delivery (CourierDispatcher). */
.courier-status { display: inline-block; margin-top: 4px; font-size: .8rem; font-weight: 600; color: #1f5f8b; }
.courier-status.is-problem { color: var(--danger, #b3261e); }
.courier-track { margin-inline-start: 6px; font-size: .8rem; }
.courier-again { display: block; margin-top: 6px; }

/* An order from the website (WebOrdering) - the dashboard, the orders page. */
.web-order-tag {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--accent-dark);
    background: color-mix(in srgb, var(--accent) 16%, var(--surface));
}
/* An order for later (website): grey while it waits for its time, dark once it's time to make it. */
.later-tag[data-later="waiting"] { color: var(--ink-soft); background: color-mix(in srgb, var(--ink-soft) 12%, var(--surface)); }
.later-tag[data-later="now"] { color: #fff; background: var(--accent-dark); }
.receipt-pending { display: inline-block; margin-inline-end: 8px; color: var(--ink-soft); font-size: .85rem; }

/* A single, unmissable action beats a status pill stacked above a second, smaller
   button - the "unpaid" state IS the button (no separate badge needed), sized as a
   real touch target for the iPad staff keep open at the register. The height of every other
   button in the order's row ("שינוי: לדרך", "מוכן", "הדפסת בון"), so the row lines up. */
.btn-mark-paid { min-height: 40px; padding: 8px 18px; gap: 7px; font-size: .95rem; white-space: nowrap; }

/* Dish row - thumbnail with an upload affordance, inline-editable name/price, state
   toggles matching the add-on board's switch, icon-only row actions. */
.admin-dish-thumb-cell { display: flex; align-items: center; gap: 10px; }
/* A dish the kiosk leaves off the menu (Product.CanBeOrdered) - and why. */
.admin-dish-warning { margin: 6px 0 0; font-size: .85rem; font-weight: 600; color: var(--danger); max-width: 34ch; }
.admin-dish-thumb {
    position: relative;
    width: 44px; height: 44px; border-radius: var(--radius-sm); flex-shrink: 0;
    overflow: visible;
    background: linear-gradient(150deg, var(--caramel-light) 0%, var(--caramel) 100%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(74, 58, 26, .55);
}
.admin-dish-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.admin-dish-thumb .icon { width: 1.2rem; height: 1.2rem; }
/* A small edit-avatar-style badge over the thumbnail's corner, standing in for the
   native file input entirely (kept, just visually hidden, so drag-drop/keyboard/file
   dialog behavior is untouched) - avoids the native "No file chosen" filename text,
   which was both English (breaking the page's Hebrew) and, at this row's width,
   impossible to fully clip without a stray leftover sliver. */
.admin-photo-btn {
    position: absolute;
    bottom: -4px;
    inset-inline-end: -4px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: 0 1px 3px rgba(42, 32, 25, .35), 0 0 0 2px var(--surface);
    display: flex; align-items: center; justify-content: center;
    color: var(--chocolate);
    cursor: pointer;
    transition: transform .12s ease, background .12s ease;
}
.admin-photo-btn .icon { width: 11px; height: 11px; }
/* A row photo on its way: the badge turns into a small spinner and can't be pressed. */
.admin-photo-btn.is-uploading { cursor: default; }
.admin-photo-spinner { width: 12px; height: 12px; border-width: 2px; }
/* The welcome-screen upload button while its photo is on its way. */
.btn.is-uploading { opacity: .5; pointer-events: none; }
@media (hover: hover) {
    html.mouse-on .admin-photo-btn:hover { background: var(--cream-deep); transform: scale(1.1); }
}

.admin-table input[type=text], .admin-table input:not([type]) { border: 1px solid transparent; border-radius: var(--radius-sm); padding: 8px 10px; font-family: inherit; font-size: .95rem; background: transparent; transition: border-color .12s ease, background .12s ease; }
.admin-table input[type=number], .admin-table input[data-vkbd-number] { border: 1px solid transparent; border-radius: var(--radius-sm); padding: 8px 10px; font-family: inherit; font-size: .95rem; background: transparent; transition: border-color .12s ease, background .12s ease; }
.admin-price-field { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.admin-price-field input[type=number], .admin-price-field input[data-vkbd-number] { width: 76px; min-width: 76px; flex: none; font-variant-numeric: tabular-nums; }
.admin-table input[type=text]:hover, .admin-table input:not([type]):hover, .admin-table input[type=number]:hover { border-color: var(--border); background: var(--surface); }
.admin-table input[type=text]:focus, .admin-table input:not([type]):focus, .admin-table input[type=number]:focus { outline: none; border-color: var(--accent); background: var(--surface); }

/* Every number field in the admin (price, free-count, max-limit, size surcharges) is
   sized to its content, not full-width like a form field - the browser's own spinner
   arrows were eating into that same small box and clipping the digits against it.
   Dropped everywhere in admin rather than per-input, since every one of them is compact. */
.admin-content input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.admin-content input[type=number]::-webkit-outer-spin-button,
.admin-content input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.admin-row-actions { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex-shrink: 0;
    border: none; border-radius: var(--radius-sm);
    background: transparent; color: var(--ink-soft); cursor: pointer;
    transition: background-color .12s ease, color .12s ease, transform .12s var(--ease-out);
}
.icon-btn .icon { width: 1.05rem; height: 1.05rem; }
.icon-btn:active:not(:disabled) { transform: scale(.92); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
@media (hover: hover) {
    html.mouse-on .icon-btn:hover:not(:disabled) { background: var(--cream-deep); color: var(--chocolate); }
    html.mouse-on .icon-btn.icon-btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
}
.icon-btn-sm { width: 26px; height: 26px; }
.icon-btn-sm .icon { width: .85rem; height: .85rem; }

/* A dish's place in its category (MenuManagement): up, the place itself (a list to jump
   straight to any place), down. */
table.admin-table th.admin-order-col, table.admin-table td.admin-order-cell { width: 1%; padding-inline: 8px; }
.admin-order { display: inline-flex; align-items: center; gap: 2px; }
.admin-order-place {
    min-width: 3.2em; height: 34px; padding: 0 6px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--ink);
    font: inherit; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center;
    cursor: pointer;
}
.admin-order-place:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* The row just moved: a brief glow, so the eye finds where it landed. */
table.admin-table tbody tr.is-moved { animation: admin-row-moved 1.1s var(--ease-out); }
@keyframes admin-row-moved {
    from { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
    to { background: transparent; }
}
@media (prefers-reduced-motion: reduce) { table.admin-table tbody tr.is-moved { animation: none; } }

/* ---------- Add-ons management panel ---------- */
/* One universal catalog entry per add-on NAME (see GlobalAddOnRow in MenuManagement.razor) -
   grouped into the same owner-facing categories (טופינגז/רטבים/פירות/מלוחים) used everywhere
   else add-ons are organized, and presented as cards rather than a plain table to match the
   rest of the site's product-card visual language. */
.addon-board { display: flex; flex-direction: column; gap: 28px; margin-bottom: 8px; }
.addon-section-title {
    display: flex; align-items: baseline; gap: 8px;
    font-size: 1.05rem; font-weight: 700; color: var(--chocolate);
    margin: 0 0 12px;
}
.addon-section-title .addon-count { font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.addon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }

.addon-card {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: transform .15s cubic-bezier(.22,1,.36,1), box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
    animation: addon-card-in .3s cubic-bezier(.22,1,.36,1) backwards;
}
@media (hover: hover) {
    html.mouse-on .addon-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42,32,25,.1); border-color: var(--caramel); }
}
.addon-card.is-inactive { opacity: .55; }
@keyframes addon-card-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.addon-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
/* Every card the same: the delete button's place is kept on a card without one ("כלול במנות"),
   and the switch row is as tall as a tag, so the cards line up and their switches too. */
.addon-card-x-slot { visibility: hidden; pointer-events: none; flex-shrink: 0; }
.addon-card-actions { min-height: 26px; }
.addon-card-name { font-weight: 600; color: var(--ink); }
.addon-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
/* For one kind of order only (dine-in / takeaway) - pushed to the start, away from the switch. */
.addon-card-tag {
    margin-inline-end: auto;
    padding: 3px 10px; border-radius: 999px; border: 1px solid transparent; /* a ring in high contrast */
    background: var(--cream-deep); color: var(--chocolate);
    font-size: .76rem; font-weight: 700; white-space: nowrap;
}
/* "פעילה ב-5 מתוך 12": on some of its dishes only - tapped, it offers the rest (OpenPick). */
.addon-card-partial {
    font-family: inherit; cursor: pointer;
    background: color-mix(in srgb, var(--warning) 18%, var(--surface)); color: var(--warning-dark);
    border-color: color-mix(in srgb, var(--warning) 45%, transparent);
}
.addon-card-partial:hover:not(:disabled) { background: color-mix(in srgb, var(--warning) 28%, var(--surface)); }
.addon-card-partial:disabled { cursor: default; }

/* Which dishes a board switch applies to (MenuManagement OpenPick). */
.pick-all-row { display: flex; gap: 8px; margin: 4px 0 10px; }
/* The dish search over an add-on's list of dishes (the add-on window, "which dishes"): the
   whole width of the window, close to the list it narrows. */
.addon-dish-search { margin: 6px 0 10px; }
.addon-dish-search .admin-search-field { flex-basis: 100%; }
.addon-dish-empty { margin: 0; padding: 14px 2px; color: var(--ink-soft); }
.pick-dish-row { cursor: pointer; font-size: .95rem; color: var(--ink); white-space: normal; }
.pick-dish-row input[type=checkbox] { flex-shrink: 0; }

/* iOS-style switch, used for every universal on/off in this panel - reads faster at a
   glance than a bare checkbox once there are many cards on screen. */
.addon-toggle { position: relative; display: inline-block; width: 40px; height: 23px; flex-shrink: 0; }
.addon-toggle input { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.addon-toggle-track { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .18s ease; }
.addon-toggle-track::after {
    content: ""; position: absolute; top: 2px; inset-inline-start: 2px;
    width: 19px; height: 19px; border-radius: 50%; background: white;
    box-shadow: 0 1px 3px rgba(42,32,25,.35);
    transition: transform .18s cubic-bezier(.22,1,.36,1);
}
/* Real brand gold (not the darkened --accent used under text) - a filled switch
   track carries no text on top of it, so it can use the owner's exact hex directly
   without the AA text-contrast constraint that forced --accent to exist. */
.addon-toggle input:checked + .addon-toggle-track { background: var(--gold); }
.addon-toggle input:checked + .addon-toggle-track::after { transform: translateX(-17px); }
.addon-toggle input:disabled + .addon-toggle-track { opacity: .45; cursor: not-allowed; }
.addon-toggle input:focus-visible + .addon-toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Per-add-on "which dishes" editor - dishes grouped by product category, each row showing
   the two mutually-exclusive states (purchasable extra vs. already-included ingredient). */
.addon-dish-matrix { display: flex; flex-direction: column; gap: 2px; }
.addon-dish-matrix-scroll { max-height: 360px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; }
.addon-dish-category {
    font-weight: 700; font-size: .8rem; color: var(--accent);
    text-transform: uppercase; letter-spacing: .03em;
    margin: 16px 0 6px; padding-bottom: 4px;
    border-bottom: 1px solid var(--border);
}
.addon-dish-category:first-child { margin-top: 2px; }
.addon-dish-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); transition: background .15s ease; }
.addon-dish-row:hover { background: var(--cream); }
.addon-dish-row.is-optional { background: color-mix(in srgb, var(--caramel) 32%, var(--surface)); }
.addon-dish-row.is-included { background: var(--cream-deep); }
.addon-dish-name { flex: 1; font-weight: 500; }
.addon-dish-check { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-soft); white-space: nowrap; cursor: pointer; }
.addon-dish-check input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--accent); }
.addon-dish-check input[type=checkbox]:disabled { cursor: not-allowed; opacity: .4; }
.addon-dish-price {
    width: 66px; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: 8px;
    font-variant-numeric: tabular-nums; transition: border-color .15s ease, transform .12s ease;
}
.addon-dish-price:focus { border-color: var(--accent); outline: none; transform: scale(1.03); }
/* An add-on's window, one dish per row: the three choices in fixed columns (the same in every
   row, so they line up down the list), and what a choice adds - its price, "מגיע בצד",
   "הלקוח יכול להסיר" - on a line of its own under the dish, so it never pushes them aside. */
.addon-dish-row.addon-matrix-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 6px 14px; }
.addon-matrix-row .addon-dish-name { grid-column: 1; }
.addon-dish-mains { grid-column: 2; display: grid; grid-template-columns: repeat(2, max-content); align-items: center; gap: 14px; }
.addon-dish-subs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }

/* The toppings list in the "add dish" window (tick one, its price appears beside it). */
.new-addon-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 6px 12px; }
.new-addon-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 4px 10px; border-radius: var(--radius-sm); }
.new-addon-row.is-optional { background: color-mix(in srgb, var(--caramel) 32%, var(--surface)); }
.new-addon-row .checkbox-field { flex: 1; margin: 0; }

/* Must-choose questions ("שאלות חובה" - MenuQuestionWindow): their cards under the add-ons,
   the window's answers (name, switch, order, remove) and the dishes by category. */
.question-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.question-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px 16px;
    transition: transform .15s cubic-bezier(.22,1,.36,1), box-shadow .15s ease, border-color .15s ease;
    animation: addon-card-in .3s cubic-bezier(.22,1,.36,1) backwards;
}
.question-card.is-readonly { cursor: default; }
@media (hover: hover) {
    html.mouse-on .question-card:not(.is-readonly):hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(42,32,25,.1); border-color: var(--caramel); }
}
.question-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 26px; }
.question-card-name { font-weight: 600; color: var(--ink); }
/* In the card's order on a phone too (the add-on cards put their tags last there). */
.question-card .addon-card-tag { margin-inline-end: 0; order: 0; }
.question-card-buttons { display: inline-flex; align-items: center; gap: 2px; margin-inline-start: auto; flex-shrink: 0; }
.question-delete-panel { width: 100%; margin: 4px 0 0; cursor: default; }
.question-card-answers { color: var(--ink-soft); font-size: .9rem; line-height: 1.4; }
/* "Up to 2, the first free" (MenuQuestionWindow): the two numbers side by side, under each other on a phone. */
.question-picks-row { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; }
.question-picks-row .field { margin-bottom: 0; }
.question-picks-sentence { margin-top: 8px; font-weight: 600; color: var(--ink); }
.question-answers { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.question-answer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.question-answer-name, .question-language-grid input {
    flex: 1 1 160px; min-width: 0; padding: 10px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); font-size: 1rem; font-family: inherit;
    background: var(--surface); color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.question-answer-name:focus, .question-language-grid input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.question-answer.is-off .question-answer-name { opacity: .55; text-decoration: line-through; }
.question-answer-toggle { margin-inline: 4px; }
.question-answer-price { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-soft); font-size: .9rem; white-space: nowrap; }
.question-answer-price input {
    width: 72px; padding: 10px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border);
    font-size: 1rem; font-family: inherit; font-variant-numeric: tabular-nums; background: var(--surface); color: var(--ink);
}
.question-answer-price input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.question-answer-note { flex-basis: 100%; width: fit-content; margin: 0; }
/* An answer offered with one kind of order only - its own line under the answer; red when that
   hides it from orders the question is asked on (Modifier.OnlyFor). */
.question-answer-offered { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .88rem; color: var(--ink-soft); }
.question-answer-offered label { font-weight: 600; color: var(--ink); }
.question-answer-offered select { min-height: 38px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
.question-answer-offered.is-warning select { border-color: var(--danger); }
.question-answer-offered-warn { color: var(--danger); font-weight: 600; }
.question-languages > summary { cursor: pointer; font-weight: 600; color: var(--chocolate); min-height: 32px; display: flex; align-items: center; }
.question-language-grid { display: grid; grid-template-columns: minmax(80px, max-content) repeat(3, minmax(0, 1fr)); gap: 6px 8px; align-items: center; margin-top: 8px; }
.question-language-he { font-weight: 600; font-size: .9rem; overflow-wrap: anywhere; }
.question-category { display: flex; align-items: center; gap: 8px; cursor: pointer; text-transform: none; }
.question-category input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.question-category .addon-count { margin-inline-start: auto; font-weight: 400; color: var(--ink-soft); }
.question-pick-list { display: flex; flex-direction: column; gap: 4px; }
.question-pick { margin: 0; min-height: 40px; }
.question-pick small { color: var(--ink-soft); font-weight: 400; }
.question-delete { margin-top: 4px; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--border)); }
@media (max-width: 560px) {
    /* The name the whole width; its switch, arrows and remove together on the line under it. */
    .question-answer { gap: 4px 6px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
    .question-answer:last-child { border-bottom: 0; }
    .question-answer-name { flex-basis: 100%; }
    .question-language-grid { grid-template-columns: 1fr; }
    .question-language-he { margin-top: 8px; }
}

/* Small color-key above the matrix so the three row states (optional/included/
   mandatory) read at a glance instead of only through the checkbox labels. */
.addon-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 14px; font-size: .82rem; color: var(--ink-soft); }
.addon-legend-item { display: flex; align-items: center; gap: 7px; }
.addon-legend-swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.addon-legend-swatch.is-optional { background: color-mix(in srgb, var(--caramel) 32%, var(--surface)); border: 1px solid var(--caramel); }
.addon-legend-swatch.is-included { background: var(--cream-deep); border: 1px solid var(--border); }

/* ---------- Admin form helpers (dish/add-on modals) ---------- */
.field-fieldset { border: none; padding: 0; margin: 0 0 22px; }
.field-fieldset legend { font-weight: 700; font-size: .95rem; color: var(--chocolate); margin-bottom: 8px; padding: 0; }
.field-row { display: flex; gap: 14px; }
.field-row .field { flex: 1; }
.modal-help-text { color: var(--ink-soft); font-size: .88rem; line-height: 1.55; margin: 0 0 20px; }
.modal-image-preview { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 8px; display: block; border: 1px solid var(--border); }

.checkbox-field { display: flex; align-items: center; gap: 9px; font-weight: 500; cursor: pointer; }
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
/* A short list of options in a dish/add-on window, each a full-height row to tap. */
.choice-radio-list { display: flex; flex-direction: column; gap: 4px; }
.choice-radio-list .checkbox-field { min-height: 40px; }
.choice-radio-list .choice-radio-sub { padding-inline-start: 26px; font-size: .88rem; color: var(--ink-soft); }

.category-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }

/* Allergens (Shared/AllergenPicker.razor): each one a pill that's ticked on or off. The real
   checkbox stays in the pill (keyboard, screen readers), drawn as the pill's own tick. */
.allergen-picker { display: flex; flex-direction: column; gap: 8px; }
.allergen-picker + .allergen-picker { margin-top: 14px; }
.allergen-picker-label { font-weight: 600; font-size: .9rem; color: var(--chocolate); }
.allergen-picker-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.allergen-toggle {
    position: relative; display: inline-flex; align-items: center; gap: 7px;
    min-height: 40px; padding: 6px 14px 6px 12px; border-radius: 999px;
    border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
    font-size: .92rem; font-weight: 600; cursor: pointer; user-select: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s var(--ease-out);
}
.allergen-toggle:active { transform: scale(.97); }
.allergen-toggle input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; flex-shrink: 0; }
.allergen-toggle:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.allergen-toggle:has(input:focus:not(:focus-visible)) { outline: none; }
.allergen-toggle.is-on { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: var(--accent); color: var(--accent-dark); }
.allergen-more { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px dashed var(--border); background: none; color: var(--ink-soft); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
@media (hover: hover) {
    html.mouse-on .allergen-toggle:hover:not(.is-on) { border-color: var(--caramel); background: var(--caramel-tint); }
    html.mouse-on .allergen-more:hover { border-color: var(--caramel); color: var(--chocolate); }
}
/* What the kiosk will say about the dish, under the pickers. */
.allergen-summary { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--caramel-tint); color: var(--chocolate); font-size: .88rem; line-height: 1.5; }
.allergen-summary.is-missing { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning-dark); }

.size-editor { display: flex; flex-direction: column; gap: 8px; }
.size-editor-row { display: flex; align-items: center; gap: 12px; }
.size-editor-row .checkbox-field { width: 104px; flex-shrink: 0; }
.size-editor-price { width: 118px; }

/* ---------- Information pages (accessibility / returns / privacy) ---------- */
.info-page { max-width: 70ch; margin: 0 auto; line-height: 1.75; }
.info-page-back { margin-bottom: 14px; }
.info-page h1 { margin: 0 0 16px; }
.info-page h2 { margin: 28px 0 8px; font-size: 1.2rem; }
.info-page p { margin: 0 0 12px; }
.info-page ul { margin: 0 0 12px; padding-inline-start: 22px; }
.info-page li { margin-bottom: 6px; }
.info-page-updated { margin-top: 24px; color: var(--ink-soft); font-size: .88rem; }

/* ---------- Information pages editor (Pages/Admin/Pages.razor) ---------- */
.pages-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.pages-tab {
    padding: 9px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.pages-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pages-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .pages-editor { grid-template-columns: 1fr; } }
.pages-body { min-height: 440px; resize: vertical; line-height: 1.6; font-size: .95rem; }
.pages-help { margin: -4px 0 16px; color: var(--ink-soft); font-size: .88rem; }
.pages-help summary { cursor: pointer; font-weight: 600; }
/* Cash vs. register: the automatic download from Presto (PrestoMatch). */
.presto-auto-status[data-state="error"] { color: var(--danger); font-weight: 600; }
.presto-login { margin-top: 16px; }
.presto-login summary { cursor: pointer; font-weight: 600; }
/* The months downloaded: a card each on a phone (admin-table-stack), its button at the end -
   as a table row it was pushed off the screen's edge. */
.presto-month-open { margin-inline-start: auto; }
/* Brought into view by focus after a comparison - no focus ring for that. */
.match-verdict:focus { outline: none; }
.match-verdict { scroll-margin-top: 90px; }
/* The final report: what's in its package (FinalReport). */
.final-report-contents { margin: 0; padding-inline-start: 20px; line-height: 1.8; color: var(--ink-soft); }
.final-report-contents strong { color: var(--ink); font-weight: 600; }
/* Safari on an iPhone gives date and month fields a width of their own, wider than a phone's
   column: the field ran off the screen. */
.field input[type="month"], .field input[type="date"] { display: block; min-width: 0; max-width: 100%; -webkit-appearance: none; appearance: none; }
.pages-help ul { margin: 8px 0 0; padding-inline-start: 20px; line-height: 1.8; }
.pages-help code { padding: 1px 6px; border-radius: 6px; background: var(--caramel-tint); color: var(--chocolate); font-size: .85rem; }
.pages-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pages-confirm { color: var(--danger); font-weight: 600; font-size: .9rem; }
.pages-preview-col { position: sticky; top: 16px; }
.pages-preview-label { margin-bottom: 8px; color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.pages-preview {
    max-height: 75vh;
    overflow-y: auto;
    padding: 24px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: .95rem;
}

/* ---------- Admin settings (Pages/Admin/Settings.razor) ---------- */
.settings-section {
    max-width: 980px;
    margin-bottom: 20px;
    padding: 22px 24px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.settings-section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.settings-section-head h2 { margin: 2px 0 4px; font-size: 1.1rem; }
.settings-section-head p { margin: 0; max-width: 72ch; color: var(--ink-soft); font-size: .9rem; line-height: 1.55; }
.settings-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--caramel-tint);
    color: var(--accent-dark);
}
.settings-section-icon .icon { width: 1.25rem; height: 1.25rem; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 18px; }
/* IP gets the full row; port and paper width share the next one - legible at any
   sub-card width, down to the iPad's two-up layout. */
.settings-grid-tight { grid-template-columns: 1fr 1fr; gap: 0 12px; }
.settings-grid-tight .field:first-child { grid-column: 1 / -1; }
.settings-switch { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 600; cursor: pointer; }
.settings-printers { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.settings-subcard {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--caramel-tint) 40%, var(--surface));
}
.settings-subcard h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1rem; }
.settings-subcard-tag {
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 600;
}
.settings-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.settings-subcard .alert, .settings-section > .alert { margin: 12px 0 0; }
.settings-test-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.alert-warning { background: color-mix(in srgb, var(--warning) 16%, var(--surface)); color: var(--warning-dark); }
.settings-section > .alert-warning { margin: 0 0 16px; }
/* Customer-receipt printers (Settings): a growing list of cards plus an "add" button. */
.customer-printer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.customer-printer-head h3 { margin: 0; }
.settings-switch-sm { margin-bottom: 0; font-size: .9rem; }
.settings-subcard.is-off { opacity: .6; }
.settings-subcard .field-help { margin: -4px 0 12px; }
.customer-printer-remove { color: var(--danger); margin-inline-start: auto; }
.customer-printer-add { margin-top: 16px; }
.terminal-add { margin-top: 16px; }
.tranzila-status { margin: 4px 0 18px; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--caramel-tint); }
.tranzila-status.is-ready { background: color-mix(in srgb, var(--success) 10%, var(--surface)); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.tranzila-status.is-missing { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); }
.tranzila-status .settings-subtitle { margin-top: 0; }
.tranzila-facts { margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 16px; }
.tranzila-facts div { display: flex; flex-direction: column; gap: 2px; }
.tranzila-facts dt { font-size: .82rem; color: var(--ink-soft); }
.tranzila-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.terminal-summary { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.terminal-summary li { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--caramel-tint); }
.terminal-summary li.is-warning { background: color-mix(in srgb, var(--warning) 16%, var(--surface)); color: var(--warning-dark); }
.settings-test-row .field { width: 230px; margin-bottom: 0; }
.settings-test-row .btn-sm { min-height: 46px; }
/* Stays on screen while scrolling a long settings page, so saving never means hunting
   for a button at the very bottom. */
.settings-savebar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 980px;
    padding: 16px 0 18px;
    background: linear-gradient(180deg, transparent 0%, var(--cream) 35%);
}
/* The owner's daily SMS, as it will read (Settings). */
.summary-preview { margin: 12px 0 0; padding: 12px 16px; max-width: 60ch; border-radius: 16px 16px 4px 16px; background: var(--caramel-tint); line-height: 1.6; }
/* ---------- SMS (Settings, and the "הודעות SMS" page) ---------- */
.settings-grid .field-wide { grid-column: 1 / -1; }
.settings-grid textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
.field-help code { padding: 1px 6px; border-radius: 6px; background: var(--caramel-tint); font-size: .85em; }
.sms-receipts-status { display: flex; flex-direction: column; gap: 4px; margin: 0 0 18px; padding: 12px 16px; max-width: 72ch; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); line-height: 1.55; font-size: .92rem; }
.sms-receipts-status strong { font-size: .95rem; }
.sms-receipts-status.is-off { border-color: color-mix(in srgb, var(--warning) 45%, var(--surface)); background: color-mix(in srgb, var(--warning) 10%, var(--surface)); color: var(--warning-dark); }
.sms-provider { border: 0; padding: 0; margin: 0 0 12px; }
.sms-provider legend { padding: 0; margin-bottom: 6px; font-weight: 700; }
.sms-log-status { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--success) 8%, var(--surface)); color: var(--success); font-weight: 600; }
.sms-log-status.is-warn { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning-dark); }
.sms-log-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 16px; }
.sms-log-search .field { width: min(280px, 100%); margin-bottom: 0; }
.sms-log-search .btn-sm { min-height: 46px; }
table.admin-table.sms-log-table td { vertical-align: top; }
/* The table keeps cells on one line (.admin-table-scroll); the message and its state wrap. */
.admin-table-scroll table.admin-table td.sms-log-text, .admin-table-scroll table.admin-table td.sms-log-state { white-space: normal; }
.sms-log-when, .sms-log-phone { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sms-log-text { min-width: 260px; max-width: 46ch; line-height: 1.5; overflow-wrap: anywhere; }
.sms-log-state { min-width: 150px; }
.sms-status { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.sms-status-sent { background: color-mix(in srgb, var(--success) 12%, var(--surface)); color: var(--success); }
.sms-status-failed { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.sms-status-notsent { background: var(--caramel-tint); color: var(--ink-soft); }
.sms-log-error { display: block; margin: 6px 0; max-width: 32ch; font-size: .82rem; color: var(--danger); overflow-wrap: anywhere; }
/* ---------- Printer search (Settings) ---------- */
.printer-search { display: flex; flex-direction: column; gap: 12px; margin: 0 0 18px; }
.printer-search-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.printer-search-head .field-help { margin: 0; flex: 1 1 240px; }
.printer-found-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.printer-found-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.printer-found-ip { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.printer-found-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
/* ---------- A photo from the phone (PhoneUploadButton) ---------- */
.dish-photo-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.phone-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.phone-upload-qr { width: 168px; height: 168px; flex-shrink: 0; padding: 6px; border-radius: 12px; background: #fff; }
.phone-upload-qr svg { display: block; width: 100%; height: 100%; }
.phone-upload-text { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; flex: 1 1 180px; font-size: .92rem; color: var(--ink-soft); }
.phone-upload-text strong { color: var(--ink); font-size: 1rem; }
.phone-upload-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 700; animation: fade-up .2s var(--ease-out); }
.phone-upload-expiry { font-size: .82rem; font-variant-numeric: tabular-nums; }
/* ---------- Opening hours (admin/hours) - big touch targets, nothing typed ---------- */
.hours-now { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--success) 12%, var(--surface)); color: var(--ink); font-weight: 600; }
.hours-now.is-closed { background: color-mix(in srgb, var(--warning) 22%, var(--surface)); }
.hours-now svg { width: 20px; height: 20px; flex-shrink: 0; }
.hours-week { display: flex; flex-direction: column; gap: 8px; transition: opacity .15s ease; }
.hours-week.is-off { opacity: .55; }
.hours-day { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; min-height: 60px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.hours-day.is-closed { background: var(--cream); }
.hours-day-name { width: 92px; font-weight: 700; }
.hours-day-off { color: var(--ink-soft); font-weight: 600; }
.hours-range { display: flex; align-items: center; gap: 10px; }
/* "הזמנות שלא סומנו מוכן": from which time (NightOrderClose). */
.hours-night-at { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 14px; font-weight: 600; }
.hours-night-at .field-help { flex-basis: 100%; margin: 0; font-weight: 400; }
.hours-copy { margin-inline-start: auto; }
.time-pick { display: inline-flex; align-items: center; gap: 4px; direction: ltr; font-variant-numeric: tabular-nums; }
.time-pick select { min-width: 66px; min-height: 44px; padding: 6px 8px; font-size: 1rem; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); }
.hours-closed-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hours-closed-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-height: 52px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.hours-closed-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.hours-closed-note { color: var(--ink-soft); }
.hours-closed-list .icon-btn { margin-inline-start: auto; }
.hours-add-closed { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0 14px; }
.hours-add-closed .field { flex: 1 1 200px; }
.hours-add-closed .btn { margin-bottom: 16px; }
.settings-saved { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-weight: 700; animation: fade-up .2s var(--ease-out); }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Standalone screens: staff login, 404, error ---------- */
.login-screen, .status-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    background: radial-gradient(ellipse 80% 55% at 50% 0%, var(--caramel-tint) 0%, transparent 70%), var(--cream);
}
/* Top-aligned, not centered: on the kiosk the on-screen keyboard opens the moment staff
   tap the email field, and a vertically centered card put the sign-in button right
   under it. */
.login-screen { place-items: start center; padding-top: clamp(24px, 7vh, 72px); }
.login-card {
    width: min(420px, 100%);
    padding: 34px 32px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 2px rgba(74, 58, 26, .04), 0 18px 48px rgba(74, 58, 26, .1);
    text-align: center;
    animation: fade-up .4s var(--ease-out) both;
}
.login-logo, .status-logo { display: block; width: auto; margin: 0 auto 18px; }
.login-logo { height: 42px; }
.login-card h1 { margin: 0 0 4px; font-size: 1.5rem; }
.login-sub { margin: 0 0 24px; color: var(--ink-soft); font-size: .92rem; }
.login-form { text-align: start; }
.login-form .field input { min-height: 48px; border-width: 1.5px; border-radius: var(--radius-md); }
.login-form .btn-lg { margin-top: 6px; }
/* This device's accounts on the login (RecentAccounts) - tap one, then the password. */
.login-accounts { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; text-align: start; }
.login-accounts > p { margin: 0; color: var(--ink-soft); font-size: .85rem; }
.login-account {
    display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px;
    border: 1.5px solid var(--border); border-radius: var(--radius-md);
    color: var(--ink); text-decoration: none; background: var(--surface);
}
.login-account.is-on { border-color: var(--accent); background: var(--caramel-tint); }
.login-account-icon {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--caramel-tint); color: var(--accent-dark);
}
.login-account-text { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; }
.login-account-text span { overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); text-align: end; }
.login-back { display: inline-block; margin-top: 18px; padding: 6px; color: var(--ink-soft); font-size: .88rem; }
/* The sign-in never scrolls (the user, 2026-11-01): it fits one screen on a phone, an
   iPad and the kiosks, and above the on-screen keyboard (measured: the card ends by
   472px; the keyboard's top is at 513px on a 800px laptop, lower everywhere else) - so
   the room the keyboard adds under ordinary pages for scrolling (body.vkbd-page) isn't
   added here, and the list of this device's accounts steps aside while typing. */
html:has(.login-screen), body:has(.login-screen) { height: 100%; overflow: hidden; }
body.vkbd-page:has(.login-screen) { padding-bottom: 0; }
.login-screen { height: 100dvh; min-height: 0; overflow: hidden; }
body.vkbd-compact .login-accounts { display: none; }
/* A short phone (an iPhone SE): tighter, so the whole card fits. */
@media (max-height: 700px) {
    .login-screen { padding-top: 12px; }
    .login-card { padding-block: 22px 14px; }
    .login-logo { height: 34px; margin-bottom: 10px; }
    .login-sub { margin-bottom: 14px; }
}

.status-card { width: min(460px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: fade-up .4s var(--ease-out) both; }
.status-logo { height: 52px; }
.status-card h1 { margin: 0; font-size: 1.8rem; }
.status-card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }
.status-card .btn-lg { width: auto; min-width: 240px; }
.status-card .status-ref { margin: 10px 0 0; font-size: .75rem; }

/* ---------- Short-viewport compatibility ---------- */
/* Landscape phones and small kiosk/tablet displays (height, not width, is the constraint
   here) - the product sheet's hero photo and the full-screen cart's header/footer were
   sized for a tall portrait screen and would otherwise crush the scrollable middle down
   to almost nothing. Everything below only reduces size/spacing, never hides content. */
@media (max-height: 560px) {
    .modal-body { padding: 16px 28px 8px; }
    .modal-title-row h2 { font-size: 1.4rem; }
    .modifier-group { margin: 14px 0; padding-top: 12px; }

    .cart-header { padding: 10px 20px 8px; }
    .cart-header h2 { font-size: 1.2rem; }
    .cart-lines { padding: 4px 20px 12px; gap: 12px; }
    .cart-item { padding-bottom: 12px; gap: 12px; }
    .cart-line-thumb { width: 60px; height: 60px; }
    .cart-line-desc { display: none; }

    .modal-footer { padding: 10px 20px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
    .cart-footer { gap: 8px; }
    .cart-total-row { font-size: .95rem; }
    .cart-total-amount { font-size: 1.15rem; }
    .cart-cancel-link { padding: 2px; font-size: .85rem; }
    .btn-lg { padding: 14px 26px; font-size: 1.1rem; }

    .choice-screen { padding: 12px 20px; }
    .choice-blob { display: none; }
    .choice-title { font-size: 1.5rem; margin-bottom: 4px; }
    .choice-subtitle { margin-bottom: 14px; }
    .choice-steps { margin-bottom: 14px; }
    .choice-btn { min-height: 56px; padding: 10px 20px; }
}

/* ---------- Ordering paused (see Services/OrderingPause.cs) ---------- */
/* Customer side: covers the whole kiosk, keyboard and cart included, but stays under
   the exit-gesture hotspot (5000) so staff can still reach the admin panel. */
.maintenance-screen {
    position: fixed;
    inset: 0;
    z-index: 4500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(ellipse at 50% 0%, var(--caramel-light) 0%, transparent 60%),
        var(--cream);
    opacity: 1;
    transition: opacity 240ms var(--ease-out);
}
@starting-style { .maintenance-screen { opacity: 0; } }
.maintenance-card {
    max-width: 560px;
    text-align: center;
    text-wrap: balance;
}
.maintenance-logo { width: 96px; height: auto; margin-bottom: 18px; }
.maintenance-card h1 { margin: 0 0 12px; font-size: 2rem; color: var(--chocolate); }
.maintenance-card p { margin: 0; font-size: 1.25rem; line-height: 1.6; color: var(--ink); }
.maintenance-card .maintenance-en { margin-top: 18px; font-size: .95rem; color: var(--ink-soft); }

/* Admin side: the switch on the dashboard, and the reminder strip on every admin page. */
/* Money that needs a person (StaffAlerts) - same family as the paused switch, in red. */
.staff-alerts {
    margin-bottom: 22px;
    padding: 16px 20px;
    background: color-mix(in srgb, var(--danger) 7%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--surface));
    border-radius: var(--radius-md);
    display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.staff-alerts h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; color: var(--danger); }
.staff-alerts h2 .icon { width: 1.15rem; height: 1.15rem; }
.staff-alerts ul { margin: 0; padding-inline-start: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.staff-alert-time { color: var(--ink-soft); font-variant-numeric: tabular-nums; margin-inline-end: 6px; }

.ordering-switch {
    margin-bottom: 22px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.ordering-switch.is-paused {
    background: color-mix(in srgb, var(--danger) 7%, var(--surface));
    border-color: color-mix(in srgb, var(--danger) 35%, var(--surface));
}
.ordering-switch-row { display: flex; align-items: center; gap: 14px; }
.ordering-switch-text { flex: 1; min-width: 0; }
.ordering-switch-text h2 { margin: 0 0 2px; font-size: 1.05rem; }
.ordering-switch-text p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.5; }
.ordering-switch.is-paused .ordering-switch-text h2 { color: var(--danger); }
.ordering-switch-dot, .paused-banner-dot {
    width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
    background: var(--success);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent);
}
.ordering-switch.is-paused .ordering-switch-dot, .paused-banner-dot {
    background: var(--danger);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 18%, transparent);
}
.ordering-switch-confirm { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
/* The opening hours under the switch (Services/OpeningHours.cs). */
.ordering-hours { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 12px 0 0; font-size: .9rem; color: var(--ink-soft); }
.ordering-hours svg { width: 17px; height: 17px; flex-shrink: 0; }
.ordering-hours.is-closed { color: var(--warning-dark); font-weight: 600; }
.ordering-hours a { color: var(--accent); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.ordering-switch-confirm textarea { width: 100%; }
.ordering-switch-actions { display: flex; gap: 10px; }
.ordering-switch .btn { flex-shrink: 0; }

.paused-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--danger) 9%, var(--surface));
    color: var(--danger);
    font-weight: 600;
}
.paused-banner a { margin-inline-start: auto; color: inherit; }
/* The ring asleep until a touch (OrderChimeBar): over every page, so the iPad isn't left
   silent without anyone seeing it. Any touch wakes it - this bar too. */
.chime-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
    padding: 12px 16px;
    min-height: 48px;
    border: 1px solid var(--warning);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--warning) 14%, var(--surface));
    color: var(--warning-dark);
    font: inherit;
    text-align: start;
    cursor: pointer;
}
.chime-bar svg { flex: none; }
.paused-banner.is-suspended { align-items: flex-start; font-weight: 400; line-height: 1.55; }
.paused-banner.is-suspended .paused-banner-dot { margin-top: 6px; }
.paused-banner-note { display: block; margin-top: 2px; font-weight: 600; }
.staff-save { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.staff-save .alert { align-self: stretch; margin: 0; }
/* Two-step login setup (Pages/Admin/Security.razor) */
.twofa-setup { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.twofa-qr { flex-shrink: 0; padding: 10px; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius-sm); line-height: 0; }
.twofa-qr svg { width: 196px; height: 196px; }
.twofa-key { margin: 0 0 16px; font-family: Consolas, 'Courier New', monospace; font-size: 1.05rem; letter-spacing: .06em; color: var(--chocolate); word-break: break-all; }
.twofa-code { max-width: 12ch; font-size: 1.4rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.login-form .twofa-code { max-width: none; width: 100%; }
.twofa-steps { margin: 0; padding-inline-start: 20px; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.recovery-codes {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px;
    margin: 0 0 18px; padding: 0; list-style: none;
}
.recovery-codes li {
    padding: 8px 12px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
    font-family: Consolas, 'Courier New', monospace; font-size: 1rem; text-align: center;
}
/* Cancelling and changing orders on the dashboard (Dashboard.razor, Shared/OrderEditor.razor) */
.dashboard-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* In the wide table the actions column is narrow: the buttons stack. The order cards
   (narrow screens, container query below) lay them out in a row instead. */
.order-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.btn-cancel-order { color: var(--danger); }
/* Next to "ישיבה"/"לדרך" on an order not paid yet (Dashboard). */
.order-type-switch { margin-inline-start: 8px; white-space: nowrap; }
.admin-table tr.cancel-row td { padding-top: 0; border-top: none; }
.cancel-panel {
    padding: 12px 14px; white-space: normal;
    border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border)); border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}
.cancel-panel p { margin: 0 0 10px; display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.cancel-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-backdrop { position: fixed; inset: 0; z-index: 4300; background: rgba(38, 28, 12, .45); }
.order-editor {
    position: fixed; z-index: 4301; inset: 4vh 0 auto; margin-inline: auto;
    width: min(760px, calc(100vw - 24px)); max-height: 92vh;
    display: flex; flex-direction: column;
    background: var(--surface); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(38, 28, 12, .3);
    animation: editor-in 200ms var(--ease-out);
}
@keyframes editor-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* A window's frame, open the moment it's tapped, until the server's window takes its place
   (js/admin-instant.js): its title, and soft lines where its contents will be. */
.instant-ghost { position: fixed; inset: 0; z-index: 1000; margin: 0; padding: 0; width: auto; max-width: none; min-height: 0; }
.instant-ghost-lines { display: grid; gap: 14px; margin-top: 18px; padding-bottom: 24px; }
.order-editor .instant-ghost-lines { padding: 18px 22px 28px; margin: 0; }
.instant-ghost-line {
    height: 46px; border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--cream-deep) 0%, var(--cream) 50%, var(--cream-deep) 100%) 0 0 / 200% 100%;
    animation: instant-ghost-shine 1.1s linear infinite;
}
.instant-ghost-line:nth-child(2n) { width: 82%; }
@keyframes instant-ghost-shine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .instant-ghost-line { animation: none; } }
/* A row's last step, tapped: it looks done until the server's answer (admin-instant.js). */
[data-instant-state="done"] { opacity: .4; pointer-events: none; transition: opacity .12s ease; }
@media (prefers-reduced-motion: reduce) { .order-editor { animation: none; } }
.order-editor-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
}
/* A long name typed without spaces breaks onto the next line - it used to push "סגירה" past
   the phone's edge. */
.order-editor-head > div { min-width: 0; overflow-wrap: anywhere; }
.order-editor-head h2 { margin: 0 0 2px; font-size: 1.3rem; }
.order-editor-head p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.editor-close {
    flex-shrink: 0; width: 44px; height: 44px; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--caramel-tint); color: var(--chocolate); cursor: pointer;
}
.order-editor-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 22px; }
.editor-lines { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.editor-line {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px;
    border: 1px solid var(--border); border-radius: var(--radius-md);
}
.editor-line.is-new { border-color: color-mix(in srgb, var(--success) 45%, var(--border)); background: color-mix(in srgb, var(--success) 5%, var(--surface)); }
.editor-line.is-removed { background: var(--caramel-tint); }
.editor-line.is-removed .editor-line-text { text-decoration: line-through; color: var(--ink-soft); }
.editor-line-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.editor-line-text small { color: var(--ink-soft); }
.editor-price { color: var(--ink-soft); font-size: .9rem; font-variant-numeric: tabular-nums; }
.editor-tag {
    display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700;
    background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success);
}
.editor-line.is-removed .editor-tag { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); }
.editor-stepper { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.editor-stepper button {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--chocolate); font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.editor-stepper button:disabled { opacity: .4; cursor: default; }
.editor-stepper span { min-width: 2ch; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.editor-remove {
    flex-shrink: 0; width: 40px; height: 40px; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--danger); cursor: pointer;
}
.editor-add { width: 100%; justify-content: center; }
/* Changing a dish's add-ons (OrderEditor): its pencil beside the bin, its new version marked
   "שונה" in the accent (not the green of a new dish), the old one struck through. */
.editor-edit {
    flex-shrink: 0; width: 40px; height: 40px; border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: transparent; color: var(--accent-dark); cursor: pointer;
}
.editor-edit:hover, .editor-remove:hover { background: var(--caramel-tint); }
.editor-edit:focus-visible, .editor-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.editor-line.is-changed { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.editor-line.is-replaced .editor-tag, .editor-line.is-changed .editor-tag { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--accent-dark); }
.editor-count { flex-shrink: 0; min-width: 2.5ch; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--chocolate); }
.editor-undo { flex-shrink: 0; }
.editor-side { margin: 0 0 14px; min-height: 40px; }
.editor-edit-note {
    margin: 0 0 12px; padding: 8px 12px; border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning-dark); font-size: .9rem; line-height: 1.5;
}
.editor-pick-count-label { font-weight: 600; color: var(--chocolate); }
.editor-picker-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.editor-picker-head h3 { margin: 0; font-size: 1.1rem; }
.editor-categories { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 10px; }
.editor-chip {
    flex-shrink: 0; min-height: 40px; padding: 8px 14px; border-radius: 999px;
    border: 1px solid var(--border); background: var(--surface); color: var(--chocolate);
    font: inherit; font-size: .92rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.editor-chip.is-on { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.editor-chip.is-on .editor-price { color: inherit; }
.editor-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.editor-product {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    min-height: 52px; padding: 10px 14px; text-align: start;
    border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
    font: inherit; color: var(--ink); cursor: pointer;
}
.editor-product:disabled { opacity: .5; cursor: default; }
.editor-group { margin: 0 0 14px; padding: 0; border: none; }
.editor-group legend { margin-bottom: 8px; font-weight: 700; }
.editor-group legend small { margin-inline-start: 8px; color: var(--ink-soft); font-weight: 400; }
.editor-options { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-pick-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 6px; }
/* Beside "הוספה להזמנה": − and + as tall as it, a row of one height. */
.editor-pick-foot .editor-stepper button { width: 52px; height: 52px; }
.order-editor-foot { padding: 14px 22px 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.order-editor-foot .alert { margin: 0; }
.editor-totals { display: flex; align-items: baseline; gap: 10px; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.editor-money { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.55; display: flex; flex-direction: column; gap: 2px; }
.editor-money strong { color: var(--chocolate); }
.editor-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* The admin panel opened from its home-screen icon (admin.webmanifest): no browser bar,
   so no link out to the customer screen. */
@media (display-mode: fullscreen), (display-mode: standalone) {
    .nav-kiosk-link { display: none !important; }
}
/* A window focused as a whole (js/focus-trap.js) - not a field - shows no ring. */
[tabindex="-1"]:focus { outline: none; }
/* Add-on cards a worker can't open (menu editing not allowed). */
.addon-card.is-readonly { cursor: default; }
/* What the workers' account may do (Pages/Admin/Staff.razor) */
.perm-group { margin: 0 0 16px; padding: 0; border: none; }
.perm-group legend { margin-bottom: 8px; font-weight: 700; color: var(--chocolate); }
.perm-row {
    display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; margin-bottom: 6px;
    border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer;
}
.perm-row input { flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }
.perm-text { display: flex; flex-direction: column; gap: 2px; }
.perm-text small { color: var(--ink-soft); }
/* Approved devices (Pages/Admin/Devices.razor) */
.device-code-box { flex: 1 1 260px; min-width: 0; }
.device-code {
    margin: 0 0 14px; font-size: 2.2rem; font-weight: 700; letter-spacing: .12em;
    font-variant-numeric: tabular-nums; color: var(--chocolate);
}
.device-link { font-size: .95rem; }
.device-code-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.device-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.device-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
}
.device-row-icon {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--caramel-tint); color: var(--accent-dark);
}
.device-row-text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.device-row-text span { color: var(--ink-soft); font-size: .88rem; }
/* What the device's customer screens show (TrustedDevice.Mode). */
.device-row-mode select { min-width: 150px; min-height: 44px; }
/* The "which screen is this" choice is long - it never pushes the row wider than a phone. */
.device-row-mode { max-width: 100%; }
.device-row-mode select { max-width: 100%; }
/* Drawn like every other field (they're outside a .field): no black frame with the words
   pressed against it. */
.device-row-mode select {
    padding-block: 10px; padding-inline-start: 14px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background-color: var(--surface); color: var(--ink); font: inherit;
}
.device-row-mode select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.device-row-confirm { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--danger); font-size: .9rem; }
/* The workers' iPad: always opens on the workers' account (TrustedDevice.OpensAsStaff). */
.device-row-staff { flex: 1 1 100%; min-height: 40px; margin: 0; font-size: .92rem; }
.device-row-staff.is-on { color: var(--success); font-weight: 700; }
/* ...and its login page: the workers' account in one tap (Login.razor). */
.login-staff-btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.login-staff-btn .icon { width: 1.2rem; height: 1.2rem; }
.login-staff-note { margin: 8px 0 18px; font-size: .85rem; color: var(--ink-soft); text-align: center; line-height: 1.45; }
/* A kiosk run from here (Shared/KioskRemotePanel.razor): its state, a picture of its
   screen - upright, like the kiosk itself - and the buttons, under the device's row. */
.kiosk-remote {
    flex: 1 1 100%; display: grid; gap: 12px;
    padding-top: 12px; border-top: 1px dashed var(--border);
}
.kiosk-remote-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; font-size: .92rem; color: var(--ink-soft); }
.kiosk-remote-status strong { color: var(--ink); }
.kiosk-remote-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-soft); opacity: .5; }
.kiosk-remote-dot.is-on { background: var(--success); opacity: 1; box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent); }
.kiosk-remote-update { color: var(--accent-dark); font-weight: 600; }
.kiosk-remote-screen { margin: 0; display: grid; justify-items: start; gap: 6px; }
.kiosk-remote-screen img {
    display: block; width: min(100%, 300px); height: auto;
    border-radius: var(--radius-md); border: 6px solid var(--chocolate);
    box-shadow: 0 14px 30px -18px rgba(74, 58, 26, .55);
}
.kiosk-remote-screen figcaption { color: var(--ink-soft); font-size: .82rem; }
.kiosk-remote-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.kiosk-remote-actions .btn { min-height: 44px; gap: 6px; }
.kiosk-remote-actions .btn.is-live { background: var(--chocolate); border-color: var(--chocolate); color: var(--surface); }
.kiosk-remote-actions .kiosk-remote-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.kiosk-remote-note { margin: 0; font-size: .9rem; color: var(--accent-dark); }
.provider-effects { margin: 0 0 16px; padding-inline-start: 20px; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
/* "Anything missing?" - the offers before paying (Shared/CartDrawer.razor): one offer as
   big photo cards, several as sections of compact cards (.is-multi). */
.upsell-sheet { max-width: 760px; }
.upsell-sheet.is-multi { max-width: 980px; }
.upsell-head { position: relative; display: flex; align-items: center; gap: 16px; padding: 26px 28px 8px; padding-inline-end: 84px; }
.upsell-head h2 { margin: 0; font-size: 1.85rem; }
.upsell-head p { margin: 4px 0 0; color: var(--ink-soft); font-size: 1.02rem; }
.upsell-icon {
    flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cream-deep); color: var(--accent-dark);
}
.upsell-icon .icon { width: 1.8rem; height: 1.8rem; }
.upsell-body {
    display: flex; flex-direction: column; gap: 16px;
    padding: 18px 28px 22px; overflow-y: auto; min-height: 0; overscroll-behavior: contain;
}
.upsell-section + .upsell-section { padding-top: 16px; border-top: 1px solid var(--border); }
.upsell-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 1.2rem; font-weight: 800; }
.upsell-section-icon {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--cream-deep); color: var(--accent-dark);
}
.upsell-section-icon .icon { width: 1.05rem; height: 1.05rem; }
.upsell-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 640px) {
    .upsell-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .upsell-sheet.is-multi .upsell-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.upsell-card {
    display: flex; flex-direction: column; align-items: stretch; gap: 6px;
    padding: 10px 10px 12px; text-align: center; cursor: pointer;
    background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-md);
    font: inherit; color: var(--ink);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
    -webkit-tap-highlight-color: transparent;
}
.upsell-card:active { transform: scale(0.97); }
.upsell-text { display: flex; flex-direction: column; gap: 6px; }
.upsell-card.is-added { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.upsell-photo {
    aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--caramel-tint); color: var(--accent-dark);
}
.upsell-photo img { width: 100%; height: 100%; object-fit: cover; }
.upsell-photo .icon { width: 2.4rem; height: 2.4rem; }
.upsell-name { font-weight: 700; font-size: 1rem; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.upsell-price { color: var(--accent-dark); font-weight: 800; }
.upsell-add {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 2px; padding: 9px 10px; border-radius: 999px;
    background: var(--cream-deep); color: var(--accent-dark); font-weight: 800;
}
.upsell-add .icon { width: 1.05rem; height: 1.05rem; }
.upsell-card.is-added .upsell-add { background: var(--accent); color: #fff; }
/* Several sections: photo beside the name, so three rows of offers fit above the fold. */
.upsell-sheet.is-multi .upsell-card { flex-direction: row; align-items: center; gap: 12px; padding: 10px; text-align: start; }
.upsell-sheet.is-multi .upsell-photo { width: 76px; flex-shrink: 0; }
.upsell-sheet.is-multi .upsell-text { flex: 1; min-width: 0; align-items: flex-start; gap: 3px; }
.upsell-sheet.is-multi .upsell-name { min-height: 0; justify-content: flex-start; font-size: .98rem; }
.upsell-sheet.is-multi .upsell-add { margin-top: 4px; padding: 6px 14px; font-size: .9rem; }
.upsell-footer .btn { width: 100%; justify-content: center; gap: 10px; }
.upsell-categories { margin: 14px 0 0; padding: 0; border: none; min-width: 0; }
.upsell-categories legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .92rem; }
.upsell-optional { font-weight: 400; color: var(--ink-soft); }
/* Categories as chips: the whole word is the switch - an easy target on the touch screen. */
.upsell-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.upsell-chip { position: relative; display: inline-flex; cursor: pointer; }
.upsell-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.upsell-chip span {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px;
    border: 1.5px solid var(--border); border-radius: 999px; background: var(--surface);
    font-size: .92rem; font-weight: 600; color: var(--ink);
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.upsell-chip input:checked + span {
    border-color: var(--accent); color: var(--accent-dark);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}
.upsell-chip input:checked + span::before { content: "✓"; font-weight: 800; }
.upsell-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.upsell-chip:active span { transform: scale(.97); }
.upsell-rule {
    margin: 12px 0 0; padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--caramel-tint); font-weight: 600; line-height: 1.5;
}
.upsell-rule.is-warning { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); color: var(--danger); }
.upsell-preview { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 10px; font-size: .9rem; color: var(--ink); }
.upsell-preview-label { font-weight: 700; color: var(--ink-soft); }
.upsell-preview-empty { color: var(--ink-soft); }
.upsell-texts { margin-top: 16px; }
.upsell-howto { margin: 12px 0 0; padding-inline-start: 20px; color: var(--ink-soft); font-size: .92rem; line-height: 1.6; }
.upsell-howto strong { color: var(--ink); }
.upsell-categories[disabled] { opacity: .55; }
.upsell-offers.is-off { opacity: .55; }
/* One offer per row: the chips and the sentence need the width (in narrow columns every
   category wrapped onto its own line). */
.upsell-offers { margin-top: 14px; grid-template-columns: minmax(0, 1fr); }
.upsell-order {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .85rem;
}
.upsell-offer-tools { display: flex; align-items: center; gap: 6px; }
.upsell-more { margin-top: 12px; }
.upsell-more summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }
.upsell-more .settings-grid { margin-top: 10px; }

/* Settings: the kiosks list and the section's sub-headings. */
.settings-subtitle { margin: 18px 0 6px; font-size: 1rem; }
.settings-subtitle:first-of-type { margin-top: 4px; }
.kiosk-list { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; gap: 8px; }
.kiosk-row {
    display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(140px, 1fr) auto; align-items: center; gap: 10px 14px;
    padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.kiosk-row .field { margin: 0; }
.kiosk-meta { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; color: var(--ink-soft); min-width: 0; overflow-wrap: anywhere; }
.kiosk-meta bdi { font-weight: 700; color: var(--chocolate); }
.kiosk-actions { display: flex; gap: 6px; }
@media (max-width: 600px) {
    .kiosk-row { grid-template-columns: 1fr auto; }
    .kiosk-row .field { grid-column: 1 / -1; }
}

/* "This is kiosk X" - Settings' identify button (Shared/KioskIdentify.razor). */
.kiosk-identify {
    position: fixed; inset: 0; z-index: 4600;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    background: var(--chocolate);
    color: #fff; text-align: center; padding: 24px;
    animation: backdrop-in .22s ease-out;
}
.kiosk-identify-label { font-size: 1.6rem; font-weight: 600; opacity: .85; }
.kiosk-identify-name { font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }

/* Download of the printing service (Admin/Settings.razor). */
.register-printing {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
    margin: 0 0 16px; padding: 12px 14px; border: 1px dashed var(--border); border-radius: var(--radius-sm);
}
.register-printing p { margin: 0; flex: 1 1 320px; color: var(--ink-soft); font-size: .88rem; line-height: 1.55; }
/* Whether a kiosk with the printing program is connected right now. */
.register-printing p.register-printing-status { flex-basis: 100%; order: 3; font-weight: 700; }
.register-printing-status.is-on { color: var(--success); }
.register-printing-status.is-off { color: var(--danger); }
/* Printer watch (PrinterWatch): each printer's last check, under its test button. */
.printer-health { margin: 0.5rem 0 0; font-weight: 700; color: var(--ink-soft); }
.printer-health.is-on { color: var(--success); }
.printer-health.is-off { color: var(--danger); }
.printer-health-time { font-weight: 400; color: var(--ink-soft); }
.printer-not-found ol { margin: 0.5rem 0 0; padding-inline-start: 1.25rem; display: grid; gap: 0.35rem; }

/* Version and updates (Pages/Admin/Provider.razor) */
.updates-section { margin-top: 24px; }
.updates-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px;
    margin: 0 0 16px;
}
.updates-facts > div { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--caramel-tint); }
.updates-facts dt { color: var(--ink-soft); font-size: .8rem; font-weight: 600; }
.updates-facts dd { margin: 4px 0 0; font-weight: 700; color: var(--chocolate); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: start; }
.updates-subtitle { margin: 20px 0 8px; font-size: .95rem; }
.updates-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.updates-list li { position: relative; padding: 11px 14px; padding-inline-start: 32px; border-bottom: 1px solid var(--border); }
.updates-list li:last-child { border-bottom: none; }
.updates-list li::before {
    content: ""; position: absolute; inset-inline-start: 14px; top: 18px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--border);
}
.updates-list li.is-good::before { background: var(--success); }
.updates-list li.is-bad::before { background: var(--danger); }
.updates-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .9rem; }
.updates-when { flex-shrink: 0; color: var(--ink-soft); font-size: .82rem; font-variant-numeric: tabular-nums; }
.updates-detail { margin: 3px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .updates-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .updates-facts > div { padding: 10px 12px; }
}
@media (max-width: 640px) {
    .ordering-switch-row { flex-wrap: wrap; }
    .ordering-switch-row .btn { width: 100%; }
    .paused-banner { flex-wrap: wrap; }
}

/* ---------- Screen sizes ---------- */
/* The kiosk itself is sized by KioskHost: a screen bigger than the 1536x864 the
   layout was tuned on is zoomed so it shows that same layout (KioskForm.ApplyZoom).
   A portrait kiosk therefore lands at about 864x1536, and a plain browser can be
   anything - these rules cover what the zoom alone can't. */

/* Tall, roomy screens - portrait kiosks and tablets, and big desktop monitors: the
   order steps get a bigger card, bigger buttons and bigger keys instead of a small
   card floating in a mostly empty screen. Not the 1536x864 kiosk it was tuned on. */
@media (min-width: 700px) and (min-height: 1000px) {
    .choice-panel { max-width: min(620px, 86vw); padding: 40px 36px; }
    .choice-title { font-size: 2.6rem; }
    .choice-subtitle { font-size: 1.2rem; margin-bottom: 24px; }
    .choice-steps { margin-bottom: 36px; }
    .choice-step { width: 10px; height: 10px; }
    .choice-step.active { width: 34px; }
    .choice-actions { gap: 22px; }
    .choice-btn { min-height: 112px; font-size: 1.5rem; padding-inline: 32px; }
    .choice-icon { width: 64px; height: 64px; }
    .choice-icon .icon { width: 32px; height: 32px; }
    .choice-text-input, .choice-phone-input { min-height: 82px; font-size: 1.55rem; }
    .choice-phone-display { font-size: 2.6rem; }
    .choice-panel .btn-lg { padding-block: 26px; font-size: 1.5rem; }
    .choice-back { font-size: 1.15rem; min-height: 52px; }

    .hero .hero-word { width: min(480px, 70%); }
    .hero .hero-tagline { font-size: 1.4rem; }
    .hero .kosher-badge { font-size: 1rem; padding: 8px 20px; }
    .hero .btn-lg { min-width: 340px; padding: 28px 56px; font-size: 1.6rem; }

    /* (The on-screen keyboard sizes itself from the screen everywhere - see .vkbd.) */
}

/* Portrait tablets and kiosks: the dish sheet is a big centered card with the photo
   on top, at a size that matches the rest of the enlarged portrait layout. */
@media (min-width: 700px) and (min-height: 1000px) and (orientation: portrait) {
    .modal-sheet.product-sheet { max-width: min(800px, 94vw); max-height: 92vh; border-radius: var(--radius-lg); }
    .product-photo { max-height: 32vh; }
    .product-info { padding: 22px 28px 4px; }
    .product-options { padding: 6px 28px 10px; }
    .product-sheet .modal-title-row h2 { font-size: 1.9rem; }
    .product-sheet .modal-base-price { font-size: 1.35rem; }
    .product-sheet .modal-desc { font-size: 1.1rem; }
    .product-sheet .modifier-group .group-title { font-size: 1.15rem; }
    .product-sheet .modifier-options { grid-template-columns: 1fr 1fr; gap: 10px; }
    .product-sheet .modifier-row { min-height: 62px; font-size: 1.08rem; }
    .product-sheet .qty-stepper button { width: 56px; height: 56px; }
    .product-sheet .btn-add-to-cart { padding: 20px 28px; font-size: 1.35rem; }
}

/* Wide desktop monitors: the menu uses the width for more dishes per row instead of
   a narrow column with empty margins either side. */
@media (min-width: 1800px) {
    main.container:has(> .menu-page) { max-width: 1720px; }
    /* Admin rows stretched across a 2500px monitor are hard to follow end to end. */
    .admin-content { max-width: 1680px; }
}

/* Dashboard orders as cards when there's no room for all eight columns (iPad in
   either orientation, phones): number, customer and total on top, the items, then
   the payment and "ready" buttons across the bottom - all visible without scrolling
   sideways. A container query, so it follows the space the table actually has, with
   or without the admin sidebar. */
.orders-board-wrap { container-type: inline-size; }
/* 1000px, not 900: a 1280 laptop's table (unpaid orders' buttons and all) ran off the side. */
@container (max-width: 1000px) {
    /* Beats ".admin-table-scroll table.admin-table { min-width: 640px }", which kept
       the cards 640px wide on a phone and ran them off the screen's edge. */
    .orders-board-wrap table.orders-board, .orders-board tbody { display: block; min-width: 0; border: none; background: none; }
    .orders-board thead { display: none; }
    .orders-board tr {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 10px 12px;
        align-items: center;
        margin-bottom: 12px;
        padding: 14px 16px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
    }
    table.orders-board td { display: block; padding: 0; border: none; white-space: normal; min-width: 0; }
    /* Dashboard: # customer items type total payment status action */
    .orders-board:not(.orders-list) td:nth-child(1) { grid-row: 1; grid-column: 1; }
    .orders-board:not(.orders-list) td:nth-child(2) { grid-row: 1; grid-column: 2; font-weight: 700; }
    .orders-board:not(.orders-list) td:nth-child(5) { grid-row: 1; grid-column: 3; font-weight: 800; font-size: 1.05rem; }
    .orders-board:not(.orders-list) td:nth-child(3) { grid-row: 2; grid-column: 1 / -1; }
    .orders-board:not(.orders-list) td:nth-child(4) { grid-row: 3; grid-column: 1 / -1; color: var(--ink-soft); font-size: .9rem; }
    .orders-board:not(.orders-list) td:nth-child(6) { grid-row: 4; grid-column: 1; }
    .orders-board:not(.orders-list) td:nth-child(7) { grid-row: 4; grid-column: 2; }
    /* "מוכן / שינוי / ביטול" get a row of their own. */
    .orders-board:not(.orders-list) td:nth-child(8) { grid-row: 5; grid-column: 1 / -1; }
    .orders-board .order-actions { flex-direction: row; flex-wrap: wrap; }
    /* The cancel confirmation, right under its order's card. */
    .orders-board tr.cancel-row { display: block; margin: -6px 0 12px; padding: 0; border: none; background: none; }
    .orders-board tr.cancel-row td { display: block; padding: 0; }
    /* Orders page: # date customer items type total payment status actions */
    .orders-list td:nth-child(1) { grid-row: 1; grid-column: 1; }
    .orders-list td:nth-child(3) { grid-row: 1; grid-column: 2; font-weight: 700; }
    .orders-list td:nth-child(6) { grid-row: 1; grid-column: 3; font-weight: 800; font-size: 1.05rem; }
    .orders-list td:nth-child(2) { grid-row: 2; grid-column: 1 / 3; color: var(--ink-soft); font-size: .9rem; }
    .orders-list td:nth-child(5) { grid-row: 2; grid-column: 3; color: var(--ink-soft); font-size: .9rem; }
    /* What was ordered: the whole width, between the heading rows and the buttons. */
    .orders-list td:nth-child(4) { grid-row: 3; grid-column: 1 / -1; min-width: 0; padding-top: 8px; border-top: 1px solid var(--border); }
    .orders-list td:nth-child(7) { grid-row: 4; grid-column: 1; }
    .orders-list td:nth-child(8) { grid-row: 4; grid-column: 2; }
    /* The buttons: a row of their own, the card's whole width shared in equal columns -
       "שינוי" and "החזר כספי" side by side the same size (the owner's phone, 2026-11-04:
       they sat at different heights and widths). */
    .orders-list td:nth-child(9) { grid-row: 5; grid-column: 1 / -1; }
    .orders-list td:nth-child(9):not(:has(.btn, .receipt-pending)) { display: none; }
    .orders-list .order-list-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
    .orders-list .order-list-actions > * { width: 100%; justify-content: center; }
    .orders-list td:empty { display: none; }
}

/* Phones: there's no room for the logo and the three page links on one line, so the
   links get a row of their own (the bar's height is pinned via --topbar-height,
   which every full-screen page subtracts). */
@media (max-width: 600px) {
    :root { --topbar-height: 92px; }
    .top-bar { flex-wrap: wrap; align-content: center; row-gap: 10px; height: var(--topbar-height); padding: 10px 16px; }
    .top-bar-links { margin-inline-start: 0; width: 100%; justify-content: space-between; gap: 8px; }
    .a11y-link { font-size: .8rem; }
    .choice-title { font-size: 1.8rem; }
    .choice-btn { min-height: 76px; font-size: 1.15rem; padding: 14px 18px; gap: 14px; }
    .choice-icon { width: 44px; height: 44px; }
}
/* A short phone (iPhone SE in Safari: 553px): the confirm-phone step carries the consent
   line and the printed-receipt option too - tighter, so it all fits without scrolling. */
@media (max-width: 600px) and (max-height: 600px) {
    .choice-phone-display { font-size: 1.7rem; margin-bottom: 12px; }
    .choice-consent { font-size: .88rem; line-height: 1.35; margin: -6px auto 10px; }
    .choice-privacy-note { font-size: .76rem; margin: -4px auto 10px; }
    .choice-actions { gap: 12px; }
    .choice-btn { min-height: 60px; }
}

/* Someone ordering from their own phone (the demo at the public address, later the
   website): the kiosk's screens were sized for a big touch screen with nothing else on
   it, so on a phone they lost a fifth of the screen to the bars, cut buttons off below
   the fold and showed one huge dish per row. */
@media (max-width: 600px) {
    :root:has(.demo-banner) { --banner-height: 30px; }
    .demo-banner { font-size: .76rem; }

    /* Each step fits the phone's screen, so none of them scrolls (the rules here and
       below keep them that small). Clipped on every side: the two soft glows behind the
       card reach past the screen, and clipped only sideways they made every step ~200px
       taller than the phone - it scrolled into empty space. Not a fixed height: on a
       phone held sideways a step can't fit, and then it scrolls rather than lose its
       button. */
    .choice-screen { height: auto; min-height: calc(100dvh - var(--topbar-height) - var(--banner-height)); overflow: clip; padding-block: 20px; }
    /* The card step is the tallest - the on-screen form, a terminal (the showcase's
       pretend one too), Tranzila's window: tighter, so it fits a small phone whole. */
    .choice-panel:has(.card-form, .terminal-pay, .tranzila-pay) { padding-block: 16px; }
    .choice-panel:has(.card-form, .terminal-pay, .tranzila-pay) .checkout-total { font-size: 1.35rem; margin-bottom: 4px; }
    .choice-panel:has(.card-form, .terminal-pay, .tranzila-pay) > .choice-subtitle { margin-bottom: 6px; }
    .terminal-pay, .tranzila-pay { gap: 8px; }
    .terminal-visual { width: 96px; height: 96px; margin: 0; }
    .terminal-icon { width: 76px; height: 76px; }
    .terminal-icon .icon { width: 36px; height: 36px; }
    .terminal-instruction { font-size: 1.1rem; }
    /* What's left of a phone's screen (the parts around the window are smaller here),
       "back to payment method" under it included - Tranzila's page scrolls inside. */
    .tranzila-frame { height: clamp(180px, calc(100dvh - var(--topbar-height) - var(--banner-height) - 264px), 640px); }
    .tranzila-frame.is-reader { height: clamp(160px, calc(100dvh - var(--topbar-height) - var(--banner-height) - 420px), 455px); }
    .terminal-hint { font-size: .9rem; }
    .card-form-note { font-size: .8rem; margin-bottom: 8px; }
    .card-form .field { margin-bottom: 8px; }
    .card-form .field label { font-size: .85rem; margin-bottom: 2px; }
    .field input.kiosk-input { min-height: 48px; font-size: 1.1rem; }

    /* The menu's title and category circles stay on screen above the scrolling dishes,
       so they're kept small to leave the dishes most of it. */
    .menu-head h1 { font-size: 1.5rem; margin: 0 0 8px; }
    .menu-cancel-btn { margin-bottom: 8px; }
    .category-rail { gap: 14px; padding-bottom: 6px; }
    .category-circle .circle-thumb { width: 60px; height: 60px; }
    .category-circle .circle-label { width: 66px; font-size: .78rem; }
    .menu-content > h2 { font-size: 1.25rem; margin-bottom: 10px; }
    .menu-layout { gap: 12px; }

    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .product-card .thumb { height: 116px; }
    .product-card .body { padding: 10px 12px 12px; }
    .product-card .name { font-size: .98rem; }
    .product-card .desc {
        font-size: .82rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .product-card .price { font-size: .98rem; margin-top: 6px; }

    /* "Before you pay": the side-by-side cards are a row each, two across was too narrow
       for a photo, a name and "הוספה". */
    .upsell-head { padding: 20px 18px 6px; padding-inline-end: 72px; gap: 12px; }
    .upsell-head h2 { font-size: 1.45rem; }
    .upsell-head p { font-size: .92rem; }
    .upsell-icon { width: 46px; height: 46px; }
    .upsell-icon .icon { width: 1.4rem; height: 1.4rem; }
    .upsell-body { padding: 14px 18px 18px; }
    .upsell-section-title { font-size: 1.05rem; }
    .upsell-sheet.is-multi .upsell-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .upsell-sheet.is-multi .upsell-photo { width: 64px; }
    .upsell-sheet.is-multi .upsell-text { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 10px; }
    .upsell-sheet.is-multi .upsell-name { flex: 1 1 100%; }
    .upsell-sheet.is-multi .upsell-add { margin-top: 0; margin-inline-start: auto; }

    .a11y-fab { width: 44px; height: 44px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
    .a11y-fab .icon { width: 1.3rem; height: 1.3rem; }
    .a11y-panel { bottom: calc(64px + env(safe-area-inset-bottom)); }
    /* Still on one line with it. */
    .cart-fab { height: 44px; bottom: calc(12px + env(safe-area-inset-bottom)); }
}
/* Most phones (360px and up) fit the logo and the three links on one line. */
@media (min-width: 360px) and (max-width: 600px) {
    :root { --topbar-height: 50px; }
    .top-bar { flex-wrap: nowrap; row-gap: 0; padding: 0 14px; }
    .top-bar .brand img { height: 24px; }
    .top-bar-links { width: auto; margin-inline-start: auto; justify-content: flex-end; gap: 12px; }
    .a11y-link { font-size: .7rem; padding: 13px 3px; margin: -13px -3px; }
}

/* ---------- The showcase (OrderingAccess.IsDemo, DemoSession) ---------- */
/* The banner leads on to the demo admin panel; on a phone only "demo" and the link fit. */
.demo-banner { gap: 10px; }
.demo-banner a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; flex-shrink: 0; }
.demo-banner a:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 600px) { .demo-banner .demo-banner-long { display: none; } }
.demo-note { margin: 0; color: var(--ink-soft); font-size: .95rem; text-align: center; }

/* The pretend card terminal: the real terminal screen, with the card itself the button. */
.demo-terminal .demo-tap {
    padding: 0; border: none; background: none; border-radius: 50%;
    cursor: pointer; transition: transform .16s var(--ease-out);
}
.demo-terminal .demo-tap:active:not(:disabled) { transform: scale(.95); }
.demo-terminal .demo-tap:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.demo-terminal .demo-tap:disabled { cursor: default; }
.demo-amount { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--chocolate); }
.demo-approved { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 0 8px; }
.demo-approved .terminal-instruction { color: var(--success); animation: done-rise .4s var(--ease-out) .35s both; }
.demo-paid-btn { margin-top: 10px; }

/* After the order: the customer's phone and the receipt. */
.demo-after { width: 100%; display: grid; gap: 16px; }
.demo-phone {
    padding: 16px 18px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    animation: done-rise .5s var(--ease-out) .35s both;
}
.demo-phone-title { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--chocolate); }
.demo-phone-title .icon { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.demo-phone-screen {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    padding: 14px; border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--caramel-tint) 60%, var(--surface));
}
.demo-phone-from { font-size: .8rem; font-weight: 700; color: var(--ink-soft); }
.demo-sms {
    margin: 0; max-width: 92%;
    padding: 10px 14px;
    border-radius: 18px;
    border-end-start-radius: 6px; /* the bubble's tail, on the side it comes from */
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(74, 58, 26, .12);
    line-height: 1.55; text-align: start;
}
.demo-sms a { color: var(--accent-dark); font-weight: 700; }
/* "Ready" arrives while the visitor watches - in the way a text message does. */
.demo-sms-new { animation: demo-sms-in .45s var(--ease-out) both; transform-origin: bottom left; }
@keyframes demo-sms-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.demo-phone-note { margin: 10px 0 0; font-size: .85rem; color: var(--ink-soft); }

.demo-receipt {
    padding: 18px 20px;
    background: var(--surface);
    border: 1px dashed color-mix(in srgb, var(--chocolate) 30%, var(--border));
    border-radius: var(--radius-sm);
    font-variant-numeric: tabular-nums;
    animation: done-rise .5s var(--ease-out) .45s both;
    scroll-margin-top: 80px;
}
.demo-receipt:target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.demo-receipt header { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); text-align: center; }
.demo-receipt header strong { font-size: 1.15rem; color: var(--chocolate); }
.demo-receipt header span { font-size: .8rem; color: var(--ink-soft); }
.demo-receipt-meta { margin: 10px 0; display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; color: var(--ink-soft); }
.demo-receipt-meta div { display: flex; gap: 6px; }
.demo-receipt-meta dt, .demo-receipt-meta dd { margin: 0; }
.demo-receipt-lines { margin: 0; padding: 10px 0; list-style: none; display: grid; gap: 6px; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.demo-receipt-lines li, .demo-receipt-total { display: flex; justify-content: space-between; gap: 12px; }
.demo-receipt-total { padding-top: 10px; font-weight: 800; font-size: 1.1rem; color: var(--chocolate); }
.demo-receipt-vat, .demo-receipt-paid { margin: 4px 0 0; display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); }

/* The demo admin panel. */
.demo-admin-banner { position: sticky; top: 0; z-index: 30; }
/* The panel's own sticky menu sits under the banner, not behind it (side menu on a
   computer, top bar on a phone). */
.demo-admin-banner ~ .admin-shell .admin-nav { top: var(--banner-height); }
@media (min-width: 761px) { .demo-admin-banner ~ .admin-shell .admin-nav { height: calc(100vh - var(--banner-height)); } }
table.admin-table tbody tr.demo-row-new { animation: admin-row-moved 1.6s var(--ease-out); }
.demo-day-select { width: auto; }
.demo-phone-cell { display: block; color: var(--ink-soft); font-size: .8rem; }
.demo-more { margin-top: 14px; }
.demo-menu-note { margin-bottom: 18px; }

.demo-report-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin-bottom: 26px; }
.demo-chart, .demo-top { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.demo-bars { height: 260px; display: flex; align-items: flex-end; gap: 4px; direction: ltr; }
.demo-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.demo-bar-fill {
    width: 100%; height: var(--h); min-height: 2px;
    border-radius: 4px 4px 1px 1px;
    background: linear-gradient(to top, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--peach, #f6b3ab)));
    transform-origin: bottom; animation: demo-bar-grow .7s var(--ease-out) both;
}
.demo-bar:hover .demo-bar-fill { filter: brightness(1.1); }
@keyframes demo-bar-grow { from { transform: scaleY(0); } }
.demo-bar-label { font-size: .65rem; color: var(--ink-soft); }
.demo-top-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.demo-top-list li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: var(--radius-sm); overflow: hidden; }
.demo-top-bar { position: absolute; inset: 0 0 0 auto; width: var(--w); background: var(--caramel-tint); z-index: 0; animation: demo-bar-grow-x .7s var(--ease-out) both; transform-origin: right; }
@keyframes demo-bar-grow-x { from { transform: scaleX(0); } }
.demo-top-name, .demo-top-count { position: relative; z-index: 1; }
.demo-top-count { font-weight: 800; font-variant-numeric: tabular-nums; }
.demo-split { margin: 14px 0 0; color: var(--ink-soft); }
@media (max-width: 900px) { .demo-report-grid { grid-template-columns: 1fr; } }

.demo-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.demo-feature { display: flex; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.demo-feature h2 { margin: 0 0 4px; font-size: 1.05rem; }
.demo-feature p { margin: 0; color: var(--ink-soft); line-height: 1.55; font-size: .95rem; }
.demo-feature .stat-icon { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
    .demo-sms-new, .demo-phone, .demo-receipt, .demo-bar-fill, .demo-top-bar, .demo-approved .terminal-instruction,
    table.admin-table tbody tr.demo-row-new { animation: none; }
}

/* ---------- Framework defaults kept ---------- */
h1:focus { outline: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}
.blazor-error-boundary::after { content: "אירעה שגיאה."; }

/* ==========================================================================
   The admin panel on a phone (an iPhone, as a home-screen app or in Safari).
   Checked with tests/e2e/survey/phone-check.mjs (WebKit, iPhone sizes).
   ========================================================================== */

/* Every field in the app's own font (a few had none, and showed the system's). */
input, select, textarea { font-family: inherit; }

/* The panel never slides sideways (the owner's iPhone, 2026-11-06: the whole page had moved
   to the side, cut off on the right). Nothing in it is meant to be wider than the screen -
   wide tables and rows of chips scroll inside their own box - so the page is cut at the
   screen's sides, whatever might stick out: on <html> that means the screen itself can't be
   moved sideways. "clip", not "hidden": hidden would make <body> a scrolling box of its own,
   and the top bar would stop staying at the top. */
html:has(.admin-shell), html:has(.admin-shell) body, .admin-shell { overflow-x: clip; }

/* Dropdowns drawn by us, the same everywhere: Safari otherwise draws its own grey, glossy
   ones that match nothing else here. The arrow sits on the end side of the text. */
body select:not([multiple]):not([size]) {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a6852' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 14px;
    background-position: left 10px center;
    padding-inline-end: 32px;
}
body [dir="ltr"] select:not([multiple]):not([size]), body select[dir="ltr"]:not([multiple]):not([size]) { background-position: right 10px center; }
/* The hour/minute pickers are written left to right and sit two by two: a tighter arrow. */
body .time-pick select:not([multiple]):not([size]) { background-position: right 6px center; background-size: 11px; padding-inline-end: 22px; }

/* A finger, not a mouse: every small icon button is a full 44px target. */
@media (pointer: coarse) {
    .icon-btn { width: 44px; height: 44px; }
    .admin-category-open { min-height: 44px; }
    .admin-order-place { height: 44px; }
    .login-back { padding: 12px 8px; }
    /* The dish photo's small camera badge stays small to look at, 44px to hit. */
    .admin-photo-btn::after { content: ""; position: absolute; inset: -12px; }
    /* "Show more" lines (details) get a finger's height. */
    .admin-content summary { padding-block: 10px; }
}

/* "Delete? yes / no" in place of a delete button (a welcome-screen photo). */
.inline-confirm { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; color: var(--danger); }
/* Deleting an add-on from the whole menu asks inside its card. */
.addon-card .addon-delete-panel { margin: 0; cursor: default; }

/* A label in a toolbar that stays visible (the orders page's day filter: an empty date box
   on an iPhone shows nothing at all). */
.admin-toolbar-label { color: var(--ink-soft); font-size: .9rem; font-weight: 600; margin-inline-end: -4px; }

/* ---- The pages behind one button (AdminLayout.razor, js/admin-nav.js) ---- */
.admin-nav-toggle, .admin-nav-backdrop { display: none; }
/* On a wide screen the wrapper is just the side menu's column. */
.admin-nav-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }

@media (max-width: 760px) {
    .admin-nav {
        overflow: visible;
        justify-content: space-between;
        gap: 12px;
        min-height: 60px;
        padding: 8px 12px;
        padding-top: max(8px, env(safe-area-inset-top));
    }
    .admin-nav-brand { padding: 0; flex-shrink: 0; }
    .admin-nav-toggle {
        display: inline-flex; align-items: center; gap: 8px;
        min-width: 0; min-height: 44px; padding: 0 16px;
        border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px;
        background: rgba(255, 255, 255, .08); color: var(--cream);
        font: inherit; font-size: .95rem; font-weight: 700;
        cursor: pointer;
        transition: background-color .15s ease, transform .12s ease;
    }
    .admin-nav-toggle:active { transform: scale(.97); }
    .admin-nav-toggle .icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
    .admin-nav-toggle-current { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* The page you're on names the button ("עמודים" only when no page is marked); the food
       menu's page is itself called "תפריט", so that word can't be the button's. */
    .admin-nav-toggle:has(.admin-nav-toggle-current:not(:empty)) .admin-nav-toggle-label { display: none; }
    .admin-nav-toggle-current { opacity: 1; font-weight: 700; }
    .admin-nav-toggle::after {
        content: ""; width: 8px; height: 8px; flex-shrink: 0; margin-inline-start: 2px;
        border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg);
        opacity: .7; transition: transform .16s var(--ease-out);
    }
    html.admin-nav-open .admin-nav-toggle::after { transform: translateY(2px) rotate(-135deg); }
    html.admin-nav-open .admin-nav-toggle { background: rgba(255, 255, 255, .18); }

    /* A solid sheet of its own from under the bar to the bottom of the screen - fixed, not
       hanging out of the sticky bar: there an iPhone/iPad drew parts of the page over it and
       sent taps through it to what was behind (the owner, 2026-11-09). Its top is the bar's
       bottom, measured on opening (admin-nav.js). */
    .admin-nav-panel {
        display: none;
        position: fixed;
        top: var(--admin-nav-bottom, 60px);
        bottom: 0;
        inset-inline: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
        background: #3a2d16;
        border-top: 1px solid rgba(255, 255, 255, .1);
        box-shadow: 0 18px 36px rgba(20, 14, 6, .35);
    }
    html.admin-nav-open .admin-nav-panel { display: block; animation: admin-nav-in .16s var(--ease-out); }
    /* Nothing behind the open menu takes a tap, whatever the browser thinks is on top. */
    html.admin-nav-open :is(.admin-content, .admin-held) { pointer-events: none; }
    .admin-nav-panel .admin-nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .admin-nav-panel a {
        min-height: 50px; padding: 10px 12px; gap: 10px;
        white-space: normal; line-height: 1.25;
        background: rgba(255, 255, 255, .05);
    }
    .admin-nav-panel .admin-nav-foot {
        display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
        margin-top: 12px; padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, .12);
    }
    .admin-nav-panel .admin-nav-foot a { font-size: .9rem; opacity: .85; }
    .admin-nav-panel .admin-nav-user { display: flex; grid-column: 1 / -1; padding: 0 4px 4px; }
    .admin-nav-panel .admin-nav-user-name { text-align: start; }
    .admin-nav-panel .nav-kiosk-link, .admin-nav-panel .nav-site-link { grid-column: 1 / -1; }
    /* cursor: pointer - iPhone Safari sends no tap (click) from a plain area without it. */
    html.admin-nav-open .admin-nav-backdrop { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(30, 22, 10, .45); cursor: pointer; -webkit-tap-highlight-color: transparent; }
}
/* Unrolled from the top, solid all the way - never see-through on the way in. */
@keyframes admin-nav-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@media (prefers-reduced-motion: reduce) { html.admin-nav-open .admin-nav-panel { animation: none; } }

@media (max-width: 760px) {
    /* 16px text in every field: Safari zooms the page in on a field with smaller text. */
    .admin-content :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea),
    .login-card :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { font-size: 16px; }
}

/* ---- Room on a narrow screen ---- */
@media (max-width: 600px) {
    .admin-page-head h1 { font-size: 1.35rem; }
    .settings-section { padding: 18px 16px 16px; }
    .settings-section-head { gap: 12px; }

    /* Numbers two by two, not one tall box per row. */
    .stat-cards { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
    .stat-cards > .stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .stat-card { padding: 12px 14px; gap: 10px; }
    .stat-card .stat-icon { width: 32px; height: 32px; }
    .stat-card .stat-icon .icon { width: 1.05rem; height: 1.05rem; }
    .stat-card .stat-label { font-size: .78rem; }
    .stat-card .stat-value { font-size: 1.25rem; }

    /* Opening hours: the day's name and switch, then its hours on a line of their own. */
    .hours-day { gap: 8px 12px; padding: 10px 12px; }
    .hours-day-name { width: auto; flex: 1; }
    .hours-range { width: 100%; flex-wrap: wrap; gap: 6px 8px; }
    .time-pick select { min-width: 0; }
    .hours-copy { margin-inline-start: 0; }

    /* A card's title (an offer, a printer) keeps the line; its buttons wrap under it - the
       title was squeezed to a word per line beside them. */
    .customer-printer-head { flex-wrap: wrap; }
    .customer-printer-head h3 { flex: 1 1 180px; min-width: 0; }
    .upsell-offer-tools { margin-inline-start: auto; }

    /* An add-on's window: each dish's name and price, its three choices on the line under
       them (they ran off the window's edge). The window scrolls; the list inside it no
       longer scrolls separately. */
    .addon-dish-row { flex-wrap: wrap; gap: 4px 10px; padding: 10px; }
    .addon-dish-name { flex: 1 1 55%; }
    .addon-dish-check { min-height: 36px; gap: 5px; font-size: .8rem; }
    /* The dish's name on its line, its three choices in three equal columns under it. */
    .addon-dish-row.addon-matrix-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .addon-matrix-row .addon-dish-mains { grid-column: 1; grid-template-columns: repeat(2, auto); justify-content: start; gap: 6px 22px; }
    /* Each as wide as its words (the same in every row, so they still line up), spread across;
       only a phone too narrow for them puts a choice's words on a second line, never cut off. */
    .addon-matrix-row .addon-dish-mains .addon-dish-check { white-space: normal; line-height: 1.2; }
    .addon-matrix-row .addon-dish-subs { grid-column: 1; }
    .addon-dish-matrix-scroll, .new-addon-list { max-height: none; overflow: visible; }

    /* The add-ons list: name, switch and delete on one line (two rows each before). */
    .addon-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 12px; }
    .addon-card-top, .addon-card-actions { display: contents; }
    /* Name, switch and delete fill the first line; a "dine-in only" tag goes under them. */
    .addon-card-name { flex: 1 1 calc(100% - 150px); min-width: 0; }
    .addon-card .addon-toggle { order: 1; }
    .addon-card-top .icon-btn { order: 2; }
    .addon-card-tag { order: 3; margin-inline-end: 0; }
    .addon-card .addon-delete-panel { order: 4; width: 100%; }

    /* Toolbars: the search box takes the line, the rest wraps under it. */
    .admin-toolbar { gap: 10px; }
    .admin-toolbar > .admin-toolbar-input[type=search] { width: 100%; }
}

/* ---- Order cards (dashboard and all orders) ---- */
@container (max-width: 1000px) {
    /* A long name breaks instead of running into the price (the table's own "one line per
       cell" rule, .admin-table-scroll td, out-ranked the card's before). */
    .admin-table-scroll table.orders-board td { white-space: normal; overflow-wrap: anywhere; }
    /* "סמן כשולם" gets the room of two columns; it ran under the status before. */
    .orders-board:not(.orders-list) td:nth-child(6) { grid-column: 1 / 3; }
    .orders-board:not(.orders-list) td:nth-child(7) { grid-column: 3; justify-self: end; }
}

/* ---- Tables become cards when there's no room for their columns ---- */
.admin-table-scroll { container-type: inline-size; }
@container (max-width: 600px) {
    /* Each row a card of "label value" pairs (the label from data-label). */
    .admin-table-scroll table.admin-table.admin-table-stack { display: block; min-width: 0; border: none; border-radius: 0; background: none; overflow: visible; }
    .admin-table-stack thead { display: none; }
    .admin-table-stack tbody, .admin-table-stack tfoot { display: block; }
    .admin-table-scroll table.admin-table.admin-table-stack tr {
        display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
        margin-bottom: 10px; padding: 12px 14px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    }
    .admin-table-scroll table.admin-table.admin-table-stack tr td,
    .admin-table-scroll table.admin-table.admin-table-stack tr th {
        display: flex; align-items: center; gap: 6px;
        padding: 0; border: none; background: none; box-shadow: none;
        white-space: normal; text-align: start; min-width: 0; overflow-wrap: anywhere;
    }
    .admin-table-stack td[data-label]::before { content: attr(data-label); color: var(--ink-soft); font-size: .8rem; font-weight: 600; white-space: nowrap; }
    .admin-table-scroll table.admin-table.admin-table-stack tr th[scope=row] { width: 100%; font-size: 1rem; font-weight: 800; color: var(--chocolate); }
    .admin-table-scroll table.admin-table.admin-table-stack tr .stack-title { width: 100%; order: -1; font-weight: 700; }
    .admin-table-stack .stack-title::before { display: none; }
    .admin-table-scroll table.admin-table.admin-table-stack tr .stack-full { width: 100%; display: block; line-height: 1.5; }
    .admin-table-stack .stack-full::before { display: block; margin-bottom: 2px; }
    .admin-table-scroll table.admin-table.admin-table-stack tr .stack-media { width: 100%; }
    .admin-table-scroll table.admin-table.admin-table-stack tr.admin-table-total { background: var(--caramel-tint); }
    .admin-table-scroll table.admin-table.admin-table-stack tr.day-report-warn { background: color-mix(in srgb, var(--warning) 9%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 45%, var(--surface)); }
    .admin-table-scroll table.admin-table.admin-table-stack tr td.admin-cell-end { margin-inline-start: auto; }
    /* Nothing to show (a change with no details): no label for nothing. */
    .admin-table-scroll table.admin-table.admin-table-stack tr td:empty { display: none; }

    /* The welcome screen's photos: the picture across the card. */
    .banner-table .banner-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }

    /* The monthly report: number, customer and total; when; what; the VAT split. */
    .admin-table-scroll table.admin-table.report-orders { display: block; min-width: 0; border: none; border-radius: 0; background: none; overflow: visible; }
    .report-orders thead { display: none; }
    .report-orders tbody, .report-orders tfoot { display: block; }
    .admin-table-scroll table.admin-table.report-orders tr {
        display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px;
        margin-bottom: 10px; padding: 12px 14px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    }
    .admin-table-scroll table.admin-table.report-orders tr td,
    .admin-table-scroll table.admin-table.report-orders tr th { display: block; padding: 0; border: none; background: none; white-space: normal; text-align: start; min-width: 0; overflow-wrap: anywhere; }
    .report-orders tbody td:nth-child(1) { grid-row: 1; grid-column: 1; }
    .report-orders tbody td:nth-child(3) { grid-row: 1; grid-column: 2; font-weight: 700; }
    .report-orders tbody td:nth-child(7) { grid-row: 1; grid-column: 3; font-weight: 800; }
    .report-orders tbody td:nth-child(2) { grid-row: 2; grid-column: 1 / -1; color: var(--ink-soft); font-size: .88rem; }
    .report-orders tbody td:nth-child(4) { grid-row: 3; grid-column: 1 / -1; }
    .report-orders tbody td:nth-child(5) { grid-row: 4; grid-column: 1 / 3; color: var(--ink-soft); font-size: .88rem; }
    .report-orders tbody td:nth-child(6) { grid-row: 4; grid-column: 3; color: var(--ink-soft); font-size: .88rem; }
    .admin-table-scroll table.admin-table.report-orders tfoot tr { background: var(--caramel-tint); }
    .report-orders tfoot th { grid-row: 1; grid-column: 1 / -1; font-weight: 800; }
    .report-orders tfoot td:nth-child(2) { grid-row: 2; grid-column: 1; }
    .report-orders tfoot td:nth-child(3) { grid-row: 2; grid-column: 2; }
    .report-orders tfoot td:nth-child(4) { grid-row: 2; grid-column: 3; font-weight: 800; }
    .report-orders td[data-label]::before { content: attr(data-label) " "; font-weight: 600; }

    /* The SMS log: when, order and state; kind and phone; the message. */
    .admin-table-scroll table.admin-table.sms-log-table { display: block; min-width: 0; border: none; border-radius: 0; background: none; overflow: visible; }
    .sms-log-table thead { display: none; }
    .sms-log-table tbody { display: block; }
    .admin-table-scroll table.admin-table.sms-log-table tr {
        display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 6px 12px;
        margin-bottom: 10px; padding: 12px 14px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    }
    .admin-table-scroll table.admin-table.sms-log-table tr td { display: block; padding: 0; border: none; background: none; min-width: 0; max-width: none; }
    .sms-log-table td:nth-child(1) { grid-row: 1; grid-column: 1; color: var(--ink-soft); font-size: .88rem; }
    .sms-log-table td:nth-child(2) { grid-row: 1; grid-column: 2; font-weight: 700; }
    .sms-log-table td:nth-child(6) { grid-row: 1 / 3; grid-column: 3; text-align: end; }
    .sms-log-table td:nth-child(3) { grid-row: 2; grid-column: 1; font-weight: 600; }
    .sms-log-table td:nth-child(4) { grid-row: 2; grid-column: 2; color: var(--ink-soft); }
    .sms-log-table td:nth-child(5) { grid-row: 3; grid-column: 1 / -1; }
    .sms-log-table .sms-log-error { max-width: none; }

    /* The menu: a card per dish - photo and name; price and its two switches; its place in
       the category and its buttons. */
    .admin-table-scroll table.admin-table.menu-dish-table { display: block; min-width: 0; border: none; border-radius: 0; background: none; overflow: visible; }
    .menu-dish-table thead { display: none; }
    .menu-dish-table tbody { display: block; }
    .admin-table-scroll table.admin-table.menu-dish-table tr {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-areas: "name name name" "price active soldout" "order order actions";
        align-items: center; gap: 10px 14px;
        margin-bottom: 10px; padding: 12px 14px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    }
    .admin-table-scroll table.admin-table.menu-dish-table tr td { display: flex; align-items: center; gap: 6px; padding: 0; border: none; background: none; white-space: normal; min-width: 0; }
    .menu-dish-table .dish-name-cell { grid-area: name; flex-direction: column; align-items: stretch; }
    .menu-dish-table .dish-price-cell { grid-area: price; }
    .menu-dish-table .dish-active-cell { grid-area: active; }
    .menu-dish-table .dish-soldout-cell { grid-area: soldout; }
    .menu-dish-table .admin-order-cell { grid-area: order; width: auto; }
    .menu-dish-table .dish-category-cell { grid-area: order; }
    .menu-dish-table .dish-actions-cell { grid-area: actions; justify-content: flex-end; }
    .admin-table-scroll table.admin-table.menu-dish-table tr td.admin-table-empty { grid-column: 1 / -1; grid-row: 1; }
    /* "Delete this dish?" right under its card, not a card of its own. */
    .admin-table-scroll table.admin-table.menu-dish-table tr.cancel-row { display: block; margin: -4px 0 12px; padding: 0; border: none; background: none; }
    .admin-table-scroll table.admin-table.menu-dish-table tr.cancel-row td { display: block; }
    .menu-dish-table td[data-label]::before { content: attr(data-label); color: var(--ink-soft); font-size: .8rem; font-weight: 600; }
    .menu-dish-table .admin-dish-thumb { width: 56px; height: 56px; }
    /* On a phone there's no hover to show a field is editable: it always looks like one. */
    .menu-dish-table .admin-dish-thumb-cell input,
    .menu-dish-table .admin-price-field input { border-color: var(--border); background: var(--surface); }
    .menu-dish-table .admin-dish-thumb-cell input { flex: 1; min-width: 0; }
    .menu-dish-table .admin-dish-warning { max-width: none; }
}

/* ---------- "This device isn't authorized" (DeviceNotApproved) ----------
   A stranger on the public address, instead of the ordering screens: the menu-only start
   page's warm ground and card, a lock, and one clear sentence - calm, not an error page. */
/* The whole screen, and it never scrolls: the warm ground is the page's own, so the card
   can slide up above the on-screen keyboard (virtual-keyboard.js lifts .not-approved as it
   does a step's panel) without uncovering anything behind it. */
html:has(.not-approved), body:has(.not-approved) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    background: linear-gradient(160deg, var(--peach) 0%, var(--cream-deep) 55%, var(--caramel-tint) 100%) fixed;
}
.not-approved {
    position: fixed;
    inset: 0;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 24px 16px;
    transition: transform .22s cubic-bezier(.22,1,.36,1);
}
body.vkbd-open .not-approved { transform: translateY(calc(-1 * var(--vkbd-panel-lift, 0px))); }
/* A screen too short for the card (a laptop on its side): the card scrolls, never the page. */
.not-approved-card { max-height: calc(100dvh - 48px); overflow-y: auto; }
body.vkbd-open .not-approved-card { max-height: var(--vkbd-available-height, calc(100dvh - 48px)); }
/* While typing the device's name: only what's needed for it, so it fits above the keyboard. */
body.vkbd-compact .not-approved-logo,
body.vkbd-compact .not-approved-badge,
body.vkbd-compact .not-approved-en,
body.vkbd-compact .not-approved-help { display: none; }
body.vkbd-compact .not-approved-card { padding-block: 22px; }
.not-approved-card {
    width: min(100%, 520px);
    padding: clamp(28px, 6vw, 48px) clamp(22px, 6vw, 44px);
    border-radius: 32px;
    background: var(--surface);
    box-shadow: 0 24px 60px rgba(58, 44, 31, .18);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: not-approved-in .5s var(--ease-out) both;
}
@keyframes not-approved-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.not-approved-logo { width: clamp(130px, 34vw, 200px); height: auto; }
.not-approved-badge {
    width: 64px;
    height: 64px;
    margin: 18px 0 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--caramel-tint);
    border: 1.5px solid var(--border);
    color: var(--gold-dark);
}
.not-approved-badge .icon { width: 28px; height: 28px; }
.not-approved-title {
    margin: 0;
    font-size: clamp(1.7rem, 6vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--chocolate);
    text-wrap: balance;
}
.not-approved-text { margin: 12px 0 0; font-size: clamp(1.05rem, 3.4vw, 1.2rem); line-height: 1.5; color: var(--ink); text-wrap: balance; }
.not-approved-en { margin: 6px 0 0; font-size: .95rem; color: var(--ink-soft); }
.not-approved-help {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    max-width: 36ch;
    font-size: .95rem;
    line-height: 1.55;
    color: var(--ink-soft);
    text-wrap: balance;
}
.not-approved-help strong { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .not-approved-card { animation: none; } }

/* Asking from the "not authorized" screen (DeviceNotApproved, js/device-request.js). */
.not-approved-request { width: 100%; margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.not-approved-request [hidden] { display: none !important; }
.not-approved-form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; text-align: start; }
.not-approved-form label { font-weight: 700; color: var(--ink); }
.not-approved-form input {
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 1.1rem;
    background: var(--surface);
    color: var(--ink);
}
.not-approved-form input:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 45%, transparent); outline-offset: 1px; border-color: var(--gold); }
.not-approved-wait { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); }
.not-approved-wait p { margin: 0; }
.not-approved-code {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--chocolate);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.not-approved-wait-note { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .95rem; }
.not-approved-message { margin: 0; min-height: 1.4em; color: var(--danger); font-weight: 600; text-align: center; }

/* A device asking to be approved, over every admin page (DeviceRequestsPopup). */
.device-requests {
    position: fixed;
    inset-block-end: 18px;
    inset-inline-end: 18px;
    z-index: 900;
    width: min(400px, calc(100vw - 32px));
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.device-request-card {
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1.5px solid color-mix(in srgb, var(--gold) 55%, var(--border));
    box-shadow: 0 18px 44px rgba(58, 44, 31, .22);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: device-request-in .32s var(--ease-out) both;
}
@keyframes device-request-in { from { opacity: 0; transform: translateY(12px); } }
.device-request-head { display: flex; align-items: flex-start; gap: 12px; }
.device-request-head strong { display: block; font-size: 1.05rem; color: var(--ink); }
.device-request-meta { display: block; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
.device-request-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--caramel-tint);
    color: var(--gold-dark);
}
.device-request-icon .icon { width: 20px; height: 20px; }
.device-request-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: var(--caramel-tint);
    color: var(--ink);
    font-weight: 600;
}
.device-request-code { font-size: 1.8rem; font-weight: 800; letter-spacing: .14em; color: var(--chocolate); font-variant-numeric: tabular-nums; }
.device-request-warn { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }
.device-request-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.device-request-actions select { flex: 1 1 140px; min-height: 44px; padding-inline: 12px 8px; }
.device-request-notice {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 10px 28px rgba(58, 44, 31, .16);
    color: var(--ink);
    font-weight: 600;
}
@media (max-width: 760px) {
    .device-requests { inset-inline: 12px; inset-block-end: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .device-request-card { animation: none; } }

/* ---------- The panel on a phone (2026-10-26, "it looks bad") ----------
   One idea throughout: things a finger taps are full-width and line up; lists read as one
   card with thin lines between rows, not a separate box per row (a month's report was a
   7-meter-long stack of boxes). */
@media (max-width: 600px) {
    /* The report tabs: two by two, each on one line (they wrapped to three). */
    .report-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 4px; }
    .report-switch a { justify-content: center; text-align: center; white-space: nowrap; padding: 8px 10px; font-size: .9rem; }

    /* Toolbars: a column - every field and button the full width, the same height. */
    .admin-toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .admin-toolbar > .admin-toolbar-input,
    .admin-toolbar > .admin-month-input { width: 100%; min-height: 48px; }
    .admin-toolbar > .btn { width: 100%; min-height: 48px; justify-content: center; margin-inline-start: 0; }
    .admin-toolbar > .admin-toolbar-label { margin: 4px 0 -4px; }

    /* Settings: "save" is a bar across the bottom with a solid ground - floating over
       the page, it hid the field under it. */
    .settings-savebar {
        margin-inline: -16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: var(--surface);
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 20px rgba(42, 32, 25, .08);
    }
    .settings-savebar > .btn { flex: 1; min-height: 50px; justify-content: center; }

    .admin-page-head { margin-bottom: 18px; }
    .admin-page-head p { font-size: .88rem; }
}

@container (max-width: 600px) {
    /* Lists: one card, rows split by a hairline. */
    .admin-table-scroll table.admin-table.report-orders tbody,
    .admin-table-scroll table.admin-table.sms-log-table tbody,
    .admin-table-scroll table.admin-table.admin-table-stack tbody {
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden;
    }
    .admin-table-scroll table.admin-table.report-orders tbody tr,
    .admin-table-scroll table.admin-table.sms-log-table tbody tr,
    .admin-table-scroll table.admin-table.admin-table-stack tbody tr {
        margin: 0; border: none; border-radius: 0; border-bottom: 1px solid var(--border);
        padding: 12px 14px;
    }
    .admin-table-scroll table.admin-table.report-orders tbody tr:last-child,
    .admin-table-scroll table.admin-table.sms-log-table tbody tr:last-child,
    .admin-table-scroll table.admin-table.admin-table-stack tbody tr:last-child { border-bottom: none; }
    /* A row that needs a look (day report): a mark on its edge, not a box of its own. */
    .admin-table-scroll table.admin-table.admin-table-stack tbody tr.day-report-warn { border-color: var(--border); box-shadow: inset -3px 0 0 var(--warning); }
    /* The totals stay a card of their own, under the list. */
    .admin-table-scroll table.admin-table.report-orders tfoot,
    .admin-table-scroll table.admin-table.admin-table-stack tfoot { margin-top: 10px; }
    .admin-table-scroll table.admin-table.report-orders tfoot tr,
    .admin-table-scroll table.admin-table.admin-table-stack tfoot tr { margin: 0; }
    /* A monthly report row, two lines: number, name and total; when and what. By class -
       counting cells put the total on the VAT's place when there's no VAT (עוסק פטור). */
    .report-orders tbody td.report-customer-cell { grid-row: 1; grid-column: 2; font-weight: 700; }
    .report-orders tbody td.report-total-cell { grid-row: 1; grid-column: 3; font-weight: 800; color: var(--chocolate); }
    .report-orders tbody td.report-date-cell { grid-row: 2; grid-column: 1; font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
    .report-orders tbody td.admin-items-cell { grid-row: 2; grid-column: 2 / -1; font-size: .88rem; color: var(--ink-soft); min-width: 0; }
    .report-orders .order-number-badge { font-size: .78rem; padding: 2px 8px; }
}

/* ---------- The cart on a tall upright screen (the 32" kiosk, tablets) ----------
   Full screen, a single dish used to sit as a small row at the top of a white page.
   Here each dish is a card on a warm ground, with a bigger photo and type sized for
   reading from a step back - the last stop before paying should look like the food. */
@media (min-width: 700px) and (min-height: 1000px) and (orientation: portrait) {
    .cart-sheet.cart-sheet-full { background: linear-gradient(180deg, var(--caramel-tint) 0%, var(--cream) 70%); }
    .cart-sheet-full .cart-header { background: var(--surface); padding-block: 26px 20px; }
    .cart-sheet-full .cart-header h2 { font-size: 2rem; }
    .cart-sheet-full .cart-lines { gap: 18px; padding-top: 28px; }
    .cart-sheet-full .cart-item {
        gap: 22px;
        padding: 18px;
        border: none;
        border-radius: var(--radius-lg);
        background: var(--surface);
        box-shadow: 0 1px 2px rgba(74, 58, 26, .05), 0 14px 34px -18px rgba(74, 58, 26, .35);
    }
    .cart-sheet-full .cart-item:last-child { padding-bottom: 18px; }
    .cart-sheet-full .cart-line-thumb { width: 132px; height: 132px; border-radius: 18px; }
    .cart-sheet-full .cart-line-name { font-size: 1.35rem; }
    .cart-sheet-full .cart-line-price { font-size: 1.3rem; }
    .cart-sheet-full .cart-line-desc, .cart-sheet-full .cart-line-modifiers { font-size: 1.02rem; }
    .cart-sheet-full .qty-stepper-sm button { width: 52px; height: 52px; font-size: 1.35rem; }
    /* "עריכה" and the bin on the same line: as tall as − and +. */
    .cart-sheet-full :is(.cart-line-edit, .cart-line-copy) { min-height: 52px; padding: 0 18px; }
    .cart-sheet-full .cart-line-remove { width: 52px; height: 52px; }
    .cart-sheet-full .qty-stepper-sm .qty-value { font-size: 1.25rem; }
    .cart-sheet-full .cart-note-add { min-height: 64px; font-size: 1.1rem; background: rgba(255, 255, 255, .6); }
    .cart-sheet-full .cart-total-row { font-size: 1.3rem; }
    .cart-sheet-full .cart-total-amount { font-size: 2rem; }
}
/* The cart's dishes come in one after another. */
.cart-item:nth-child(2) { animation-delay: .05s; }
.cart-item:nth-child(3) { animation-delay: .1s; }
.cart-item:nth-child(n + 4) { animation-delay: .15s; }
.cart-item { animation-fill-mode: backwards; animation-duration: .35s; animation-timing-function: var(--ease-out); }

/* ---------- The order screen (/board, OrderBoard.razor) ----------
   On a TV or a screen on the wall, read from across the room - in the kiosk's own colors:
   its pink top bar and gold logo, white and blush for "being made", the kiosk's gold
   (its main buttons') for "ready", the column people look for. Numbers only, big; sizes
   follow the screen (vmin), upright or wide. */
.board-main { min-height: 100vh; min-height: 100dvh; background: linear-gradient(170deg, #fff 0%, var(--caramel-tint) 100%); }
.board { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: var(--chocolate); }
.board-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: clamp(10px, 1.6vmin, 22px) clamp(16px, 2.6vmin, 40px);
    background: linear-gradient(120deg, var(--peach) 0%, var(--cream-deep) 65%);
    box-shadow: 0 2px 14px rgba(74, 58, 26, .08);
}
.board-logo { height: clamp(40px, 6.4vmin, 88px); width: auto; }
.board-clock { font-size: clamp(1.4rem, 4vmin, 3.2rem); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--chocolate); }
.board-cols {
    flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 0;
    gap: clamp(12px, 2vmin, 28px); padding: clamp(14px, 2.2vmin, 32px);
}
.board-col { display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-radius: clamp(16px, 2.4vmin, 32px); padding: clamp(14px, 2.4vmin, 36px); }
.board-col-preparing { background: #fff; border: 2px solid var(--border); box-shadow: var(--shadow); }
.board-col-ready { background: color-mix(in srgb, var(--gold) 9%, #fff); border: clamp(3px, .45vmin, 5px) solid var(--gold); box-shadow: 0 10px 30px rgba(143, 112, 41, .16); }
.board-col-title {
    margin: 0 0 clamp(12px, 2.2vmin, 28px); font-size: clamp(1.6rem, 5.4vmin, 4.4rem); font-weight: 800; line-height: 1.1;
    display: flex; align-items: baseline; gap: .5em; flex-wrap: wrap; color: var(--chocolate);
}
.board-col-ready .board-col-title { color: var(--accent-dark); }
.board-col-title-en { font-size: .42em; font-weight: 700; color: var(--ink-soft); letter-spacing: .06em; text-transform: uppercase; }
.board-list {
    list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(8px, 1.4vmin, 18px); align-content: start;
    grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 19vmin, 260px), 1fr));
}
.board-tile {
    display: flex; align-items: center; justify-content: center;
    padding: clamp(10px, 1.6vmin, 22px) 8px; border-radius: clamp(12px, 1.8vmin, 24px);
    font-size: clamp(2.4rem, 8.4vmin, 6.6rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
    background: var(--caramel-tint); color: var(--chocolate); border: 1.5px solid var(--border);
}
.board-col-ready .board-tile { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 16px rgba(143, 112, 41, .28); }
.board-empty { margin: 0; font-size: clamp(1.1rem, 3.2vmin, 2.4rem); color: var(--ink-soft); }
/* Just made ready: it arrives, then glows for a few seconds. */
.board-tile.is-fresh { animation: board-arrive .6s var(--ease-out) both, board-glow 1.6s ease-in-out .6s 6; }
@keyframes board-arrive { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes board-glow { 0%, 100% { box-shadow: 0 6px 16px rgba(143, 112, 41, .28); } 50% { box-shadow: 0 0 0 clamp(5px, .8vmin, 10px) rgba(160, 125, 50, .45), 0 6px 16px rgba(143, 112, 41, .28); } }
@media (prefers-reduced-motion: reduce) { .board-tile.is-fresh { animation: none; box-shadow: 0 0 0 clamp(4px, .6vmin, 8px) var(--gold-dark); } }

/* ---------- The owner's page of all the restaurants (Admin/Branches.razor) ---------- */
/* Operate mode like the rest of the admin: each restaurant one card, state first (open,
   closed, paused, not answering) as a dot and words, then the day's money, what's waiting,
   and what needs a person. */
.branches-refresh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -10px 0 20px; color: var(--ink-soft); font-size: .88rem; font-variant-numeric: tabular-nums; }
.stat-card .stat-sub { color: var(--ink-soft); font-size: .8rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-card.is-alarm { border-color: color-mix(in srgb, var(--danger) 40%, var(--surface)); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.stat-card.is-alarm .stat-icon { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); }
.stat-card.is-alarm .stat-value { color: var(--danger); }

.branch-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; margin-bottom: 8px; }
.branch-card {
    display: flex; flex-direction: column; gap: 14px; min-width: 0;
    padding: 20px 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.branch-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.branch-card-head h2 { margin: 0 0 4px; font-size: 1.15rem; overflow-wrap: anywhere; }
.branch-state { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); }
.branch-state-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-soft); flex-shrink: 0; }
.branch-card.state-open .branch-state { color: var(--success); }
.branch-card.state-open .branch-state-dot { background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 16%, transparent); }
.branch-card.state-paused .branch-state { color: var(--warning-dark); }
.branch-card.state-paused .branch-state-dot { background: var(--warning); }
.branch-card.state-suspended .branch-state, .branch-card.state-down .branch-state { color: var(--danger); }
.branch-card.state-suspended .branch-state-dot, .branch-card.state-down .branch-state-dot { background: var(--danger); }
.branch-card.state-down { border-color: color-mix(in srgb, var(--danger) 30%, var(--surface)); }
.branch-card.state-down .branch-today, .branch-card.state-down .branch-money { opacity: .6; }
.branch-down { margin: 0; }

.branch-today { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.branch-figure-main { display: flex; flex-direction: column; }
.branch-figure-label { color: var(--ink-soft); font-size: .82rem; font-weight: 600; }
.branch-figure-value { font-size: 2rem; font-weight: 800; color: var(--chocolate); line-height: 1.15; font-variant-numeric: tabular-nums; }
.branch-figure-sub { color: var(--ink-soft); font-size: .85rem; font-variant-numeric: tabular-nums; }
.branch-compare { margin: 0; font-size: .82rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.branch-compare.is-up { color: var(--success); }
.branch-compare.is-down { color: var(--danger); }

.branch-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.branch-money > div { background: var(--surface); padding: 8px 12px; min-width: 0; }
.branch-money dt { color: var(--ink-soft); font-size: .76rem; font-weight: 600; }
.branch-money dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

.branch-live { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--ink-soft); }
.branch-live b { color: var(--chocolate); font-size: 1rem; font-variant-numeric: tabular-nums; }

.branch-issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.branch-issues li { padding: 8px 12px; border-radius: var(--radius-sm); font-size: .86rem; line-height: 1.5; }
.branch-issues li.is-critical { background: #fbe3e0; color: var(--danger); }
.branch-issues li.is-warning { background: color-mix(in srgb, var(--warning) 14%, var(--surface)); color: var(--warning-dark); }
.branch-issue-time { font-variant-numeric: tabular-nums; opacity: .8; margin-inline-end: 4px; }
.branch-ok { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--success); font-size: .88rem; font-weight: 600; }
.branch-ok .icon { width: 1rem; height: 1rem; }
.branch-muted { color: var(--ink-soft); font-size: .88rem; }

.hour-bars { margin: 0; }
.hour-bars figcaption { color: var(--ink-soft); font-size: .78rem; font-weight: 600; margin-bottom: 6px; }
.hour-bars-row { display: flex; align-items: flex-end; gap: 3px; height: 74px; direction: ltr; }
.hour-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hour-bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; border-radius: 4px; background: var(--caramel-tint); }
.hour-bar-fill { width: 100%; border-radius: 4px; background: var(--caramel-dark); }
.hour-bar.is-now .hour-bar-fill { background: var(--accent); }
.hour-bar-label { font-size: .66rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hour-bars-empty { margin: 0; color: var(--ink-soft); font-size: .85rem; }

.branch-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.branch-top h3 { margin: 0 0 6px; font-size: .82rem; color: var(--ink-soft); }
.branch-top ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; }
.branch-top li { display: flex; justify-content: space-between; gap: 8px; }
.branch-top li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch-top li b { font-variant-numeric: tabular-nums; color: var(--chocolate); }
.branch-top p { margin: 0; }

.branches-orders tr.is-excluded td { color: var(--ink-soft); }
.branches-day-sum { margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.branches-select { width: 220px; }
.branches-connect { margin-top: 30px; }
.branches-connect .settings-subtitle { margin-top: 18px; }
.branches-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.branches-inline input { flex: 1 1 220px; min-width: 0; }
.branches-key { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.branches-key p { margin: 0 0 4px; }
.branches-key input { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .88rem; }
.branches-connected { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.branches-connected li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.branches-connected li > span:first-child { flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 640px) {
    .branch-card { padding: 16px; }
    .branch-money { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .branch-top { grid-template-columns: 1fr; }
    .branches-select { width: 100%; }
}

/* Each screen's printing program and its version (Settings, Admin/Settings.razor). */
.register-printing-screens { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .88rem; }
.register-printing-screens li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.register-printing-screens span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.register-printing-latest { display: inline-flex; align-items: center; gap: 4px; color: var(--success) !important; font-weight: 600; }
.register-printing-latest .icon { width: .95rem; height: .95rem; }
.register-printing-pending { color: var(--warning-dark) !important; }

/* ---------- Allergens on the menu page (MenuManagement): how far they're filled in ---------- */
.allergen-progress {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
    margin: -8px 0 22px; padding: 10px 14px; border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--warning) 12%, var(--surface)); color: var(--warning-dark);
    font-size: .9rem; font-weight: 600; line-height: 1.45;
}
.allergen-progress > .icon { width: 1.2rem; height: 1.2rem; flex-shrink: 0; }
.allergen-progress > span { flex: 1 1 260px; min-width: 0; }
.allergen-progress.is-done { background: color-mix(in srgb, var(--success) 10%, var(--surface)); color: var(--success); }
.allergen-progress .btn[aria-pressed="true"] { background: var(--surface); border-color: var(--warning-dark); color: var(--warning-dark); }

/* Allergens for a whole category or flavour (MenuAllergensWindow, 2026-11-18): the button on the
   category's / flavour's bar, what the ticked dishes have now, and each dish's before -> after. */
.admin-category-actions .category-allergens-btn { height: 34px; min-height: 34px; padding: 0 12px; margin-inline-end: 6px; }
/* As tall as the round buttons beside it on a touch screen (.icon-btn: 44px there). */
@media (pointer: coarse) { .admin-category-actions .category-allergens-btn { height: 44px; min-height: 44px; } }
.allergen-bulk-now {
    margin: 0 0 14px; padding: 10px 12px; border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent) 7%, var(--surface)); color: var(--ink);
    font-size: .88rem; line-height: 1.5;
}
.allergen-bulk-remove { margin-top: 4px; }
#allergen-bulk-remove-open { margin-bottom: 18px; }
.allergen-bulk-dishes .allergen-bulk-row { align-items: flex-start; white-space: normal; color: var(--ink); font-size: .92rem; }
.allergen-bulk-dishes .allergen-bulk-row input[type=checkbox] { flex-shrink: 0; margin-top: 2px; }
.allergen-bulk-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.allergen-bulk-row-text small { font-size: .8rem; line-height: 1.4; color: var(--ink-soft); }
.allergen-bulk-row.is-changing { background: color-mix(in srgb, var(--success) 7%, var(--surface)); }
.allergen-bulk-before { text-decoration: line-through; text-decoration-thickness: 1px; }
.allergen-bulk-after { color: var(--success); font-weight: 700; }
.allergen-bulk-differ { color: var(--warning-dark); }

/* The dishes not on sale right now, on the dashboard (DashboardOffDishes, 2026-11-18): a card
   per dish - its name, why (a coloured tag) and where, and "חזרה למכירה" for a sold-out one. */
.off-dishes { margin-top: 32px; }
.off-dishes-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.off-dishes-head .admin-section-title { margin: 0; }
.off-dishes-head .count { color: var(--ink-soft); font-weight: 600; }
.off-dishes-notice { margin-bottom: 12px; flex-wrap: wrap; }
.off-dishes-empty { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--success); font-weight: 600; }
.off-dishes-empty .icon { width: 1.1rem; height: 1.1rem; }
.off-dishes-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px;
}
.off-dish {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    padding: 12px 14px; background: var(--surface);
    border: 1px solid var(--border); border-inline-start: 4px solid var(--danger); border-radius: var(--radius-sm);
}
.off-dish-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; flex: 1; min-width: 0; }
.off-dish-name { font-size: .98rem; color: var(--ink); overflow-wrap: anywhere; }
.off-dish-tag {
    padding: 2px 8px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap;
    background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger);
}
.off-dish-why { flex-basis: 100%; font-size: .8rem; line-height: 1.4; color: var(--ink-soft); }
.off-dish-back { flex-shrink: 0; min-height: 40px; }
.off-dish-off, .off-dish-categoryoff { border-inline-start-color: var(--ink-soft); }
.off-dish-off .off-dish-tag, .off-dish-categoryoff .off-dish-tag { background: color-mix(in srgb, var(--ink-soft) 14%, var(--surface)); color: var(--ink); }
.off-dish-ingredientout, .off-dish-noanswer { border-inline-start-color: var(--warning); }
.off-dish-ingredientout .off-dish-tag, .off-dish-noanswer .off-dish-tag { background: color-mix(in srgb, var(--warning) 16%, var(--surface)); color: var(--warning-dark); }

/* ==========================================================================
   The side menu in groups, quick search, who's signed in (AdminLayout.razor,
   js/admin-quick.js) - 2026-11-05, "easy to get around".
   ========================================================================== */
.admin-nav { padding: 14px 12px 0; }
.admin-nav-brand { padding: 2px 8px 12px; min-width: 0; }
.admin-nav-brand-text { display: flex; flex-direction: column; min-width: 0; }
.admin-nav-brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.admin-quick-icon { display: none; }
.admin-quick-btn {
    display: flex; align-items: center; gap: 10px; width: 100%;
    min-height: 40px; margin: 0 0 12px; padding: 0 10px 0 12px;
    border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .8);
    font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.admin-quick-btn .icon { width: 1.05rem; height: 1.05rem; flex-shrink: 0; opacity: .85; }
.admin-quick-btn-text { flex: 1; text-align: start; }
.admin-quick-kbd {
    font-family: inherit; font-size: .72rem; font-weight: 700; direction: ltr;
    padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .72);
}
@media (hover: hover) {
    .admin-quick-btn:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .28); color: var(--cream); }
}
.admin-nav a:focus-visible, .admin-quick-btn:focus-visible, .admin-quick-icon:focus-visible, .admin-nav-toggle:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 2px;
}

/* Groups: a quiet title over each, room between them. */
.admin-nav-links:has(> .admin-nav-group) { gap: 10px; }
.admin-nav-group { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-group-title { padding: 0 12px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .62); }
.admin-nav a { padding: 7px 12px; }

/* The foot: back to the kiosk, who's signed in, switching and signing out side by side - held
   at the bottom of the menu, so signing out is always in sight on a short screen. */
.admin-nav-foot {
    gap: 2px; position: sticky; bottom: 0; z-index: 1;
    margin-inline: -12px; padding: 10px 12px 12px;
    background: #3a2d16;
}
.admin-nav-foot a { opacity: 1; color: rgba(255, 255, 255, .78); }
.admin-nav-foot a:hover { color: var(--cream); }
.admin-nav-user { flex-direction: row; align-items: center; gap: 10px; padding: 6px 12px 4px; }
.admin-nav-user-mark {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .12); color: var(--gold); font-weight: 800; font-size: .85rem;
}
.admin-nav-user-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.admin-nav-user-label { opacity: 1; color: rgba(255, 255, 255, .62); }
.admin-nav-user-name { text-align: start; }
.admin-nav-account { display: flex; gap: 4px; }
.admin-nav-account a { flex: 1 1 auto; justify-content: center; gap: 5px; padding: 8px 4px; font-size: .8rem; white-space: nowrap; }
.admin-nav-account a .icon { width: .95rem; height: .95rem; }

@media (max-width: 760px) {
    .admin-nav-brand { flex: 1 1 auto; }
    .admin-quick-icon {
        display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
        width: 44px; height: 44px; margin-inline-start: auto; padding: 0;
        border: 1px solid rgba(255, 255, 255, .24); border-radius: 50%;
        background: rgba(255, 255, 255, .08); color: var(--cream); cursor: pointer;
        transition: transform .12s var(--ease-out);
    }
    .admin-quick-icon:active { transform: scale(.95); }
    .admin-quick-icon .icon { width: 1.2rem; height: 1.2rem; }
    .admin-nav { gap: 8px; }
    .admin-nav-panel .admin-quick-btn { display: none; }
    .admin-nav-panel .admin-nav-links:has(> .admin-nav-group) { display: flex; flex-direction: column; gap: 12px; }
    .admin-nav-panel .admin-nav-group { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .admin-nav-panel .admin-nav-group-title { grid-column: 1 / -1; padding: 0 4px; }
    .admin-nav-panel .admin-nav-foot { position: static; margin-inline: 0; padding: 12px 0 0; background: none; }
    .admin-nav-panel .admin-nav-foot .admin-nav-account { grid-column: 1 / -1; gap: 6px; }
    .admin-nav-panel .admin-nav-user { padding: 0 4px 4px; }
}

/* The quick search window: a <dialog> opened over the page, not as a modal (admin-quick.js says
   why) - it dims the page itself. Above the windows (1000-3000), under the on-screen keyboard (4000). */
.quick-find[open] {
    position: fixed; inset: 0; z-index: 3500;
    display: flex; justify-content: center; align-items: flex-start;
    width: auto; height: auto; max-width: none; max-height: none;
    margin: 0; padding: 12vh 16px 16px; border: none;
    background: rgba(30, 22, 10, .45); color: var(--ink);
}
html.quick-find-open { overflow: hidden; }
.quick-find-box {
    display: flex; flex-direction: column; width: min(620px, 100%); max-height: min(560px, calc(100dvh - 120px)); overflow: hidden;
    background: var(--surface); border-radius: var(--radius-md);
    box-shadow: 0 24px 60px rgba(30, 22, 10, .28), 0 0 0 1px rgba(74, 58, 26, .08);
}
/* In: the page dims as the box drops into place. Out (admin-quick.js): both fade a little
   faster, and a tap already goes through to the page. */
.quick-find[open] { animation: backdrop-in .14s ease-out; }
.quick-find[open] .quick-find-box { animation: quick-find-in .18s var(--ease-out); }
.quick-find.is-closing { animation: quick-find-fade-out .11s ease-out forwards; pointer-events: none; }
.quick-find.is-closing .quick-find-box { animation: quick-find-out .11s ease-out forwards; }
@keyframes quick-find-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes quick-find-out { to { opacity: 0; transform: translateY(-4px) scale(.985); } }
@keyframes quick-find-fade-out { to { opacity: 0; } }
.quick-find-field { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--border); }
.quick-find-field > .icon { width: 1.2rem; height: 1.2rem; flex-shrink: 0; color: var(--ink-soft); }
.quick-find-input { flex: 1; min-width: 0; height: 56px; border: none; outline: none; background: none; font: inherit; font-size: 1.05rem; color: var(--ink); }
.quick-find-input::placeholder { color: color-mix(in srgb, var(--ink-soft) 80%, transparent); }
/* The X at the end of the field: closes the search (as Esc does). */
.quick-find-close {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin-inline-end: -6px; padding: 0;
    border: none; border-radius: 50%; background: transparent; color: var(--ink-soft); cursor: pointer;
    transition: background-color .15s ease, color .15s ease, transform .14s var(--ease-out);
}
.quick-find-close .icon { width: 1.15rem; height: 1.15rem; }
.quick-find-close:active { transform: scale(.9); background: var(--caramel-tint); }
.quick-find-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
@media (hover: hover) {
    html.mouse-on .quick-find-close:hover { background: var(--caramel-tint); color: var(--chocolate); }
}
.quick-find kbd {
    font-family: inherit; font-size: .72rem; font-weight: 700; direction: ltr;
    padding: 2px 6px; border-radius: 6px; border: 1px solid var(--border); background: var(--caramel-tint); color: var(--ink-soft);
}
.quick-find-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; }
.quick-find-list:empty { display: none; }
.quick-find-group { padding: 10px 10px 4px; font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.quick-find-item { padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; color: var(--chocolate); cursor: pointer; }
.quick-find-item.is-active { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent-dark); box-shadow: inset -3px 0 0 var(--accent); }
html[dir="ltr"] .quick-find-item.is-active { box-shadow: inset 3px 0 0 var(--accent); }
@media (hover: hover) {
    html.mouse-on .quick-find-item:hover:not(.is-active) { background: var(--caramel-tint); }
}
.quick-find-empty { margin: 0; padding: 18px 16px; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.quick-find-help { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 8px 16px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--ink-soft); }
@media (max-width: 600px) {
    .quick-find[open] { padding: 12px; }
    .quick-find-box { max-height: calc(100dvh - 24px); }
    .quick-find-input { font-size: 16px; }
    .quick-find-help { display: none; }
    .quick-find-close { width: 44px; height: 44px; margin-inline-end: -10px; }
    .quick-find-item { padding: 13px 12px; }
}
@media (prefers-reduced-motion: reduce) { .quick-find[open], .quick-find[open] .quick-find-box { animation: none; } }
@media print { .quick-find { display: none !important; } }

/* ---------- Jump links on a long page (the menu's categories, the settings' parts) ---------- */
/* Stays at the top while scrolling; on a phone under the sticky top bar, one scrolling line. */
.page-jump {
    position: sticky; top: 0; z-index: 6;
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0 0 22px; padding: 10px 0;
    background: var(--cream);
    box-shadow: 0 1px 0 var(--border);
}
.page-jump a {
    display: inline-flex; align-items: center; min-height: 34px; padding: 4px 12px;
    border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
    color: var(--chocolate); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease;
}
.page-jump a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The settings' parts are as wide as their cards. */
.settings-section ~ .page-jump, .page-jump:has(+ .settings-section) { max-width: 980px; }
.page-jump .page-jump-addons { background: var(--caramel-tint); border-color: var(--caramel-light); }
@media (hover: hover) {
    html.mouse-on .page-jump a:hover { border-color: var(--caramel); background: var(--caramel-tint); }
}
/* What they lead to stops below the bar, not under it. */
.admin-category-block, .settings-section, .page-jump-target { scroll-margin-top: 72px; }
@media (max-width: 760px) {
    .page-jump {
        top: 60px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
        margin-inline: -16px; padding: 8px 16px;
    }
    .page-jump::-webkit-scrollbar { display: none; }
    .page-jump a { min-height: 40px; }
    .admin-category-block, .settings-section, .page-jump-target { scroll-margin-top: 130px; }
}
@media print { .page-jump { display: none; } }
.settings-section-head h2 { scroll-margin-top: 96px; }
@media (max-width: 760px) { .settings-section-head h2 { scroll-margin-top: 150px; } }

/* The dashboard's table on a laptop (1366 wide too): with unpaid orders on it, the receipt tag
   beside the name and the order number beside the pickup number made it wider than the screen,
   so it scrolled sideways and the buttons went out of sight. They go under instead, and the
   columns sit a little closer. "שינוי: לדרך" stays beside the type, level with "סמן כשולם".
   (The cards, 1000px and less: their own layout.) */
@container (min-width: 1001px) {
    .admin-table-scroll table.orders-board:not(.orders-list) th,
    .admin-table-scroll table.orders-board:not(.orders-list) td { padding-inline: 10px; }
    .admin-table-scroll .orders-board:not(.orders-list) td:nth-child(1),
    .admin-table-scroll .orders-board:not(.orders-list) td:nth-child(2) { white-space: normal; min-width: 96px; }
    .orders-board:not(.orders-list) td:nth-child(1) .order-number-badge { display: block; width: max-content; margin-top: 4px; }
    .orders-board:not(.orders-list) td:nth-child(2) .paper-receipt-tag { display: table; margin-top: 4px; }
    /* A name typed without spaces (37 letters in one go) took the column to 324px and the
       table 145px past a 1440 screen, the buttons cut off: it breaks onto the next line
       instead, as on the orders page. */
    .admin-table-scroll .orders-board:not(.orders-list) td:nth-child(2) { overflow-wrap: anywhere; }
}
/* What was ordered wraps, as meant: ".admin-table-scroll table.admin-table td { nowrap }"
   out-ranked ".admin-table-scroll td.admin-items-cell" and kept it one long line. */
.admin-table-scroll table.admin-table td.admin-items-cell { white-space: normal; }

/* The download page (FileSave.razor): the file, one big button, and the way back. */
.file-save { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 520px; }
.file-save [hidden] { display: none !important; }
.file-save-ready { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
.file-save-name { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--chocolate); overflow-wrap: anywhere; }
.file-save-size { font-weight: 400; color: var(--ink-soft); white-space: nowrap; }
.file-save .btn { min-width: 220px; justify-content: center; }
.file-save .field-help { margin: 0; }
.file-save-back { margin-top: 6px; }
@media (max-width: 600px) { .file-save .btn { width: 100%; } }


/* ---------- The restaurant's logo (Components/Shared/BrandLogo.razor) ----------
   Any logo an owner uploads, whatever its shape: never taller than its place. And with no
   logo uploaded, the name in letters in the same place (.brand-wordmark). */
.hero .hero-word { max-height: 34vh; object-fit: contain; }
.menu-welcome-logo { max-height: 22vh; object-fit: contain; }
.not-approved-logo { max-height: 120px; object-fit: contain; }
.maintenance-logo { max-height: 96px; object-fit: contain; }
.top-bar .brand img { max-width: 40vw; object-fit: contain; }
.login-logo, .status-logo { max-width: 80%; object-fit: contain; }

.brand-wordmark {
    display: block;
    font-weight: 800;
    color: var(--chocolate);
    line-height: 1.05;
    text-align: center;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.brand-wordmark.hero-word { font-size: clamp(2.4rem, 7vmin, 4.4rem); height: auto; }
.hero.hero-has-photo .brand-wordmark.hero-word { color: #fff; }
.brand-wordmark.menu-welcome-logo { font-size: clamp(1.8rem, 5vmin, 2.8rem); height: auto; }
.brand-wordmark.board-logo { font-size: clamp(1.6rem, 4.6vmin, 3rem); height: auto; width: auto; }
.brand-wordmark.login-logo, .brand-wordmark.status-logo { font-size: 1.7rem; height: auto; }
.brand-wordmark.maintenance-logo, .brand-wordmark.not-approved-logo { font-size: 1.8rem; width: auto; height: auto; }
.top-bar .brand .brand-wordmark { font-size: 1.15rem; text-align: start; }
.brand-wordmark.reconnect-logo { font-size: 1.4rem; }


/* The provider page's control-center key (Admin/Provider.razor), shown once. */
.control-link-key { margin: 12px 0; padding: 14px; border: 1.5px dashed var(--accent); border-radius: var(--radius-sm); background: var(--caramel-tint); }
.control-link-key label { display: block; font-weight: 600; margin-bottom: 8px; }
.control-link-key input { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .95rem; }

/* A website order waiting for the restaurant's yes (Dashboard, OrderAcceptance): its own row,
   amber, with "אישור ההזמנה" big; the last 3 minutes it turns red. */
.admin-table tr.accept-row td { padding-top: 0; border-top: none; }
.accept-panel {
    padding: 14px 16px; white-space: normal; border-radius: var(--radius-sm);
    border: 1.5px solid #e2a12b; background: color-mix(in srgb, #e2a12b 12%, var(--surface));
}
.accept-panel.is-urgent { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.accept-panel-text { margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; line-height: 1.5; }
.accept-panel-text strong:first-child { font-size: 1.05rem; }
.accept-panel.is-urgent .accept-left { color: var(--danger); }
.accept-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.accept-panel-actions .btn { min-height: 48px; padding-inline: 22px; }
.accept-panel-actions .btn-accept { font-size: 1.05rem; }
.btn-reject { color: var(--danger); }
.reject-reasons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.reject-reason {
    min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border);
    background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
}
.reject-reason.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.accept-wait-tag {
    display: inline-block; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .85rem;
    color: #7a4b00; background: color-mix(in srgb, #e2a12b 22%, var(--surface));
}

/* The panel by the reel's motion rules (2026-11-25). Anything the staff press all day ("מוכן",
   the quick search) stays instant - only what's rare and matters moves:
   - an error can't be missed: it shakes once as it appears (exaggeration);
   - a website order waiting for "אישור" arrives with a pulse (one stands out);
   - the order just accepted flashes green once (the moment that counts). */
@keyframes panel-shake {
    0%, 100% { transform: none; }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}
.admin-shell :is(.refund-error, .alert-danger) { animation: panel-shake .36s cubic-bezier(.36, .07, .19, .97); }
@keyframes accept-in {
    from { opacity: 0; transform: translateY(-6px); box-shadow: 0 0 0 0 rgba(226, 161, 43, .55); }
    60% { opacity: 1; transform: none; box-shadow: 0 0 0 10px rgba(226, 161, 43, 0); }
    to { box-shadow: 0 0 0 0 rgba(226, 161, 43, 0); }
}
.accept-panel { animation: accept-in .5s cubic-bezier(.2, .8, .3, 1) both; }
.accept-panel .btn-accept:active { transform: scale(.95); }
@keyframes just-accepted {
    from { background-color: color-mix(in srgb, var(--success) 22%, transparent); }
    to { background-color: transparent; }
}
.admin-table tr.is-just-accepted > td { animation: just-accepted .9s ease-out both; }
@media (prefers-reduced-motion: reduce) {
    .admin-shell :is(.refund-error, .alert-danger), .accept-panel, .admin-table tr.is-just-accepted > td { animation: none; }
}
html[data-motion="reduced"] :is(.admin-shell .refund-error, .admin-shell .alert-danger, .accept-panel, .admin-table tr.is-just-accepted > td) { animation: none !important; }
