/* The POS screens' familiar look - "the same old desktop app, improved".
   Waiter.Shared's, linked from both hosts' index.html (_content/IdealPOS.Waiter.Shared/till.css), and
   every rule is scoped under .till-familiar: the class MainLayout puts on its root when
   ITillShell.Familiar (every page on a till; the browser web app and the MAUI app
   on the POS screens, at every size - a phone's layout is at the end), so a page without it is untouched. The
   MudTheme stays the web's; this file brings the desktop's chrome, buttons and type. Razor keeps the
   web's markup as it is - the familiar markup (TillStatusStrip, PosMenuGrid's familiar buttons) is
   styled here. */

/* the desktop's Bitstream Vera Sans Mono (ePOS/fonts, linked in by Waiter.Shared's .csproj): totals + the clock */
@font-face { font-family: "Vera Mono"; src: url("fonts/VeraMono.ttf") format("truetype"); font-weight: 400; font-style: normal; }
@font-face { font-family: "Vera Mono"; src: url("fonts/VeraMoBd.ttf") format("truetype"); font-weight: 700; font-style: normal; }

/* Selawik: Microsoft's open-source stand-in for Segoe UI (SIL OFL 1.1, fonts/Selawik-OFL.txt; release 1.01's
   files, unmodified), with Segoe UI's own letter widths - only the kerning differs. Android, iOS, a Mac or Linux have
   no Segoe UI, so they lay the captions out exactly as a Windows till does instead of in Roboto / San Francisco.
   It stands BEHIND "Segoe UI" (--till-button-font, the Back Office's --bo-font), so Windows never uses it, and the
   unicode-range is the font's own character map, so a character neither font has (an emoji in a name, ▲ ✓ ★) never
   fetches it there either. Never preload it: that would download it on Windows. */
@font-face { font-family: "Selawik"; src: url("fonts/selawk.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
    unicode-range: U+000D, U+0020-007E, U+00A1-00A9, U+00AB-00B9, U+00BB-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0133, U+0136-0137, U+0139-0148, U+014A-014D, U+0150-015B, U+015E-0167, U+016A-016B, U+016E-017E, U+0192, U+0218-021B, U+0237, U+02C6-02C7, U+02D8-02DD, U+0300-0304, U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+0335-0336, U+1E80-1E85, U+1EF2-1EF3, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: "Selawik"; src: url("fonts/selawksb.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap;
    unicode-range: U+000D, U+0020-007E, U+00A1-00A9, U+00AB-00B9, U+00BB-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0133, U+0136-0137, U+0139-0148, U+014A-014D, U+0150-015B, U+015E-0167, U+016A-016B, U+016E-017E, U+0192, U+0218-021B, U+0237, U+02C6-02C7, U+02D8-02DD, U+0300-0304, U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+0335-0336, U+1E80-1E85, U+1EF2-1EF3, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122; }
@font-face { font-family: "Selawik"; src: url("fonts/selawkb.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
    unicode-range: U+000D, U+0020-007E, U+00A1-00A9, U+00AB-00B9, U+00BB-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0133, U+0136-0137, U+0139-0148, U+014A-014D, U+0150-015B, U+015E-0167, U+016A-016B, U+016E-017E, U+0192, U+0218-021B, U+0237, U+02C6-02C7, U+02D8-02DD, U+0300-0304, U+0306-0308, U+030A-030C, U+0312, U+0326-0328, U+0335-0336, U+1E80-1E85, U+1EF2-1EF3, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122; }

.till-familiar {
    --till-strip-h: 28px;
    --till-gutter: 4px;
    /* the desktop's buttons are Verdana bold; the till uses Windows' own Segoe UI Bold - as bold and
       as familiar, crisper, and narrow enough that names fit the cells whole. Off Windows: Selawik (above), with the
       same widths */
    --till-button-font: "Segoe UI", "Selawik", system-ui, sans-serif;
    --till-mono-font: "Vera Mono", Consolas, monospace;
}

/* thin scrollbars, as the desktop's (L08) */
.till-familiar, .till-familiar * { scrollbar-width: thin; }
/* none on the POS screens of a phone or a touch screen: a finger scrolls them, and a bar would take a grid's width
   (Android's WebView ignores scrollbar-width and draws MudBlazor's 8 px ::-webkit-scrollbar). A cell, tile or chip
   cut at the edge shows there is more; a paged bar has its dots */
@media (max-width: 599.98px), (hover: none) and (pointer: coarse) {
    .till-familiar.till-pos * { scrollbar-width: none; }
    .till-familiar.till-pos ::-webkit-scrollbar { display: none; }
}

/* ---- The POS screens' canvas, in the device's theme: dark or light (S5)
   MainLayout adds .till-pos on pos/* - the board, the PIN pad, order, settle and their popups - with the
   device's theme (PosLook): .till-dark, black as the original app (Pawel 2026-10-10: "keep it black as
   it is in the original app"), or .till-light, a light grey canvas with white panels (Pawel 2026-10-11).
   My Cash, Remote Authorization and the Back Office keep the white. MudBlazor paints from its palette
   variables, so they point at the theme's tokens here once and its surfaces, text and lines follow;
   the two theme blocks only set the tokens. Everything the desktop colours itself (keys, tiles, bars,
   the white basket, the blue item page) is the same in both. Popups sit on their own panel with a
   frame, so a dialog still lifts off the page. */
.till-familiar.till-pos {
    /* a button with no colours of its own: Krypton's (Microsoft365Blue) light button, dark navy text */
    --till-button-back: #e1edfa;
    --till-button-fore: #1e395b;
    --mud-palette-background: var(--till-canvas);
    --mud-palette-background-gray: var(--till-canvas-2);
    --mud-palette-surface: var(--till-surface);
    --mud-palette-text-primary: var(--till-ink);
    --mud-palette-text-secondary: var(--till-ink-2);
    --mud-palette-text-disabled: var(--till-ink-3);
    --mud-palette-action-default: var(--till-action);
    --mud-palette-action-default-hover: var(--till-hover);
    --mud-palette-action-disabled: var(--till-action-off);
    --mud-palette-action-disabled-background: var(--till-action-off-back);
    --mud-palette-lines-default: var(--till-line);
    --mud-palette-lines-inputs: var(--till-line-input);
    --mud-palette-divider: var(--till-divider);
    --mud-palette-divider-light: var(--till-divider-light);
    --mud-palette-table-lines: var(--till-divider);
    --mud-palette-table-hover: var(--till-table-hover);
    --mud-palette-table-striped: var(--till-table-striped);
    background: var(--till-canvas); color: var(--till-ink);
}
.till-familiar.till-pos.till-dark {
    --till-canvas: #000; --till-canvas-2: #161616; --till-surface: #000;
    --till-panel: #111; --till-panel-edge: #3a3a3a; --till-frame: 2px solid #fff;   /* a white frame round a popup (Pawel 2026-10-10) */
    --till-edge: #3a3a3a; --till-strip-back: #000; --till-strip-edge: #3a3a3a;
    --till-ink: #fff; --till-ink-2: rgba(255, 255, 255, .72); --till-ink-3: rgba(255, 255, 255, .45); --till-muted: #9a9a9a;
    --till-action: #fff; --till-hover: rgba(255, 255, 255, .08);
    --till-action-off: rgba(255, 255, 255, .4); --till-action-off-back: rgba(255, 255, 255, .14);
    --till-line: rgba(255, 255, 255, .22); --till-line-input: rgba(255, 255, 255, .45);
    --till-divider: rgba(255, 255, 255, .18); --till-divider-light: rgba(255, 255, 255, .1);
    --till-table-hover: rgba(255, 255, 255, .06); --till-table-striped: rgba(255, 255, 255, .03);
    /* the desktop's MsgForm / StatusLabel green and red, a step brighter on black */
    --till-ok: #1fc11f; --till-fail: #ff4a4a;
    --till-key-edge: #fff; --till-scroll: #555;
}
.till-familiar.till-pos.till-light {
    --till-canvas: #f2f4f7; --till-canvas-2: #e9edf2; --till-surface: #fff;
    --till-panel: #fff; --till-panel-edge: #e3e7ee; --till-frame: 1px solid #c9d1dc;
    --till-edge: #c9d1dc; --till-strip-back: #fff; --till-strip-edge: #d5dbe3;
    --till-ink: #1f2933; --till-ink-2: rgba(0, 0, 0, .6); --till-ink-3: rgba(0, 0, 0, .38); --till-muted: #6b7280;
    --till-action: rgba(0, 0, 0, .6); --till-hover: rgba(0, 0, 0, .06);
    --till-action-off: rgba(0, 0, 0, .3); --till-action-off-back: rgba(0, 0, 0, .1);
    --till-line: rgba(0, 0, 0, .14); --till-line-input: rgba(0, 0, 0, .35);
    --till-divider: rgba(0, 0, 0, .12); --till-divider-light: rgba(0, 0, 0, .06);
    --till-table-hover: rgba(0, 0, 0, .04); --till-table-striped: rgba(0, 0, 0, .02);
    --till-ok: #138a13; --till-fail: #d32f2f;
    --till-key-edge: rgba(0, 0, 0, .18); --till-scroll: #b0b8c4;
}
/* the page behind the app (a custom property does not reach the body, so each theme names its own) */
body:has(.till-familiar.till-pos.till-dark) { background: #000; }
body:has(.till-familiar.till-pos.till-light) { background: #f2f4f7; }
/* the kitchen board's own dark look (Kds.razor, the strip's switch - not the POS screens' theme) */
body:has(.kds-page.dark) { background: #121212; }
.till-familiar.till-pos, .till-familiar.till-pos * { scrollbar-color: var(--till-scroll) transparent; }
.till-familiar.till-pos .mud-dialog { background: var(--till-panel); border: var(--till-frame); }
.till-familiar.till-pos.till-light .mud-dialog { box-shadow: 0 10px 32px rgba(0, 0, 0, .28); }
.till-familiar.till-pos .mud-dialog .mud-dialog-title { background: var(--till-panel); border-bottom-color: var(--till-panel-edge); }
.till-familiar.till-pos .till-strip { background: var(--till-strip-back); border-top-color: var(--till-strip-edge); }
.till-familiar.till-pos .till-strip-version { color: var(--till-muted); }
/* the order screen's basket stays white, as the desktop's receipt grid is (Pawel 2026-10-10): the
   web theme's own light palette again, inside the POS screen */
.till-familiar.till-pos .pos-order-receipt {
    --mud-palette-background: rgba(255, 255, 255, 1);
    --mud-palette-background-gray: rgba(245, 245, 245, 1);
    --mud-palette-surface: rgba(255, 255, 255, 1);
    --mud-palette-text-primary: rgba(66, 66, 66, 1);
    --mud-palette-text-secondary: rgba(0, 0, 0, .54);
    --mud-palette-text-disabled: rgba(0, 0, 0, .38);
    --mud-palette-action-default: rgba(0, 0, 0, .54);
    --mud-palette-action-default-hover: rgba(0, 0, 0, .06);
    --mud-palette-action-disabled: rgba(0, 0, 0, .26);
    --mud-palette-action-disabled-background: rgba(0, 0, 0, .12);
    --mud-palette-lines-default: rgba(0, 0, 0, .12);
    --mud-palette-lines-inputs: rgba(189, 189, 189, 1);
    --mud-palette-divider: rgba(224, 224, 224, 1);
    --mud-palette-table-lines: rgba(224, 224, 224, 1);
    background: #fff; color: rgba(66, 66, 66, 1);
}
/* the order screen's item menu sits on the desktop's blue page (OrderUC clientMenuTab1.TabPageBgColor,
   rgb(52,93,219)): it shows between the buttons and in the empty cells, as on the legacy screen */
.till-familiar.till-pos .pos-order-items > .pos-menu-grid { background: #345ddb; padding: 2px; box-sizing: border-box; }
/* the settle screen's tenders without a colour: the desktop's tender default, Green with white type
   (PaymentButtons.btnSample) */
.till-familiar.till-pos { --till-tender-back: #008000; --till-tender-fore: #fff; }
/* the order screen's categories without a colour: the same Krypton default as the buttons */
.till-familiar.till-pos .pos-order-cats .mud-button-outlined:not([style*="background"]) {
    background: var(--till-button-back); color: var(--till-button-fore); border-color: var(--till-edge);
}
/* the message colours in the theme's green / red (the desktop's MsgForm; a step brighter on black) */
.till-familiar.till-pos .tm-message--ok { color: var(--till-ok); }
.till-familiar.till-pos .tm-message--error { color: var(--till-fail); }
.till-familiar.till-pos .tp-message { color: var(--till-fail); }


/* ---- Chrome (L01, L02): no app bar, no container padding - a slim status strip at the bottom ---- */

.till-familiar .till-body {
    padding: var(--till-gutter) var(--till-gutter) calc(var(--till-strip-h) + var(--till-gutter));
}

/* under the dialogs (1400) and the floor plan's full screen (1300), over the page */
.till-familiar .till-strip {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; height: var(--till-strip-h);
    display: flex; align-items: center; gap: 6px; padding: 0 6px; overflow: hidden; white-space: nowrap;
    background: var(--mud-palette-surface); border-top: 1px solid var(--mud-palette-lines-default);
    font-family: var(--till-button-font); font-size: 12px; color: var(--mud-palette-text-primary);
}
.till-familiar .till-strip-field { padding: 0 8px; border-radius: 3px; font-weight: 700; line-height: 20px; }
.till-familiar .till-strip-field--ok { background: #9acd32; color: #142400; }   /* the desktop's YellowGreen */
.till-familiar .till-strip-field--off { background: #d32f2f; color: #fff; }     /* the desktop's Red */
.till-familiar .till-strip-field--demo { background: #DF6901; color: #fff; }    /* Demo mode: the icon's orange */
.till-familiar .till-strip-field--warn { background: #ff8c00; color: #1a1000; } /* the desktop's DarkOrange (a licence running out) */
.till-familiar .till-strip-icons { display: inline-flex; align-items: center; gap: 2px; margin-left: 2px; }
.till-familiar .till-strip-icons .mud-icon-button { padding: 2px; }
.till-familiar .till-strip-icons .mud-chip { height: 20px; margin: 0; }
.till-familiar .till-strip-spacer { flex: 1 1 auto; }
.till-familiar .till-strip .till-strip-theme, .till-familiar .till-strip .till-strip-btn { padding: 2px; }
/* a browser's site in place of "POS: n" (the web app bar's site chip: it opens the Connection dialog) */
.till-familiar .till-strip-site {
    flex: 0 1 auto; min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
    border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer;
}
/* a till's "POS: n" while no operator is signed in: the way to the start chooser (/start) */
.till-familiar .till-strip-pos { border: 0; background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.till-familiar .till-strip-clock { font-family: var(--till-mono-font); font-weight: 700; }
/* the clock field's one-word state: a 7" tablet held upright's (the end of this file; a phone shows the state as the name
   chip's colour, TillStatusStrip.razor.css); hidden everywhere else, the kitchen board's strip too */
.till-strip-clockshort { display: none; }
.till-familiar .till-strip-version { color: dimgray; font-size: 11px; }
/* the print-queue printer (PosPrintQueueIcon, the desktop's tsPrintQueue): the icon with its state dot -
   LimeGreen all printed, DodgerBlue printing - and, when something needs someone, the strip's red field
   (.till-strip-field--off, as Clocked Out) round the icon and its text */
.till-familiar .tpq {
    display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 4px; border: 0; border-radius: 3px;
    font: inherit; font-weight: 700; line-height: 20px; white-space: nowrap; cursor: pointer;
}
.till-familiar .tpq:not(.till-strip-field--off) { background: none; color: inherit; }
.till-familiar .tpq:not(.till-strip-field--off):hover { background: var(--till-hover, rgba(0, 0, 0, .06)); }
.till-familiar .tpq--bad { padding: 0 8px 0 4px; }
.till-familiar .tpq-icon { position: relative; display: inline-flex; }
.till-familiar .tpq-dot {
    position: absolute; right: -2px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%;
    box-shadow: 0 0 0 1px var(--till-strip-back, #fff);
}
.till-familiar .tpq--ok .tpq-dot { background: #32cd32; }     /* the desktop's LimeGreen */
.till-familiar .tpq--busy .tpq-dot { background: #1e90ff; }   /* DodgerBlue */
.till-familiar .tpq--bad .tpq-dot { background: #ff0000; box-shadow: 0 0 0 1px #fff; }   /* Red, on the red field */

/* A POS screen's root (.pos-fill-root) takes exactly what is left above the strip - under the
   screen's own header row, where it has one (settle) - so a short screen never scrolls the page.
   The web sizes it as a min-height under its 120px chrome guess. A taller one still scrolls the
   page, and its sticky bottom bar then stops above the strip instead of behind it. */
.till-familiar .till-body:has(> .pos-fill-root) {
    display: flex; flex-direction: column; min-height: 100dvh; box-sizing: border-box;
}
.till-familiar .till-body > .pos-fill-root { flex: 1 0 auto; min-height: 0; }
.till-familiar .pos-navbar--bottom { bottom: var(--till-strip-h); }
/* The board and the order screen: a DEFINITE height, so the bottom bar sits on the strip and the
   panes scroll inside themselves (a phone's layout: the end of this file) */
@media (min-width: 600px) {
    .till-familiar .pos-fill-root:has(> .pos-restaurant-screen),
    .till-familiar .pos-fill-root:has(> .pos-order-screen) {
        height: calc(100dvh - var(--till-strip-h) - 2 * var(--till-gutter)); min-height: 0;
    }
    .till-familiar .pos-restaurant-screen { max-height: none; flex: 1 1 0; }
    /* the board's right nav column at the desktop's width (MenuTab: 90px a column), not the web's
       140-180px: the tiles get the room back */
    .till-familiar .pos-restaurant-screen:not(.pos-restaurant-screen--nomenu) { grid-template-columns: minmax(0, 1fr) 90px; gap: 6px; }
    /* + the area column (L19) between the board and the nav column, as the desktop's FloorsTab */
    .till-familiar .pos-restaurant-screen:has(> .till-areas) { grid-template-columns: minmax(0, 1fr) 90px 90px; }
    .till-familiar .pos-restaurant-screen--nomenu:has(> .till-areas) { grid-template-columns: minmax(0, 1fr) 90px; }
    .till-familiar .pos-order-screen { flex: 1 1 0; }
}

/* the nav bars sit flush, as the desktop's MenuTabs */
.till-familiar .pos-navbar--bottom { margin-top: 4px; padding: 2px 0 0; }
.till-familiar .pos-navbar--right { padding: 0 0 0 2px; }
.till-familiar .pos-navbar--fill { gap: 2px; }


/* ---- Buttons (L03-L06): the desktop FunctionButton ----
   PosMenuGrid's familiar markup: .tf-btn > .tf-btn-face (caption + picture) + .tf-btn-extra (the
   desktop's extra line: qty, price, stock, extraname). Colours, the button's own border and its
   point sizes come inline from MenuGridShared / PosMenuGrid. */

.till-familiar .tf-btn {
    display: flex; flex-direction: column; min-width: 0; overflow: hidden; text-align: center;
    font-family: var(--till-button-font);
}
.till-familiar .tf-btn:active { filter: brightness(.9); }   /* desktop pressed: each channel x 0.9 */

/* A bar button is its own width container: PosMenuGrid.FitCaption shrinks a caption whose
   longest word would not fit (100cqw = the button). Not in the item grid - the grid is the
   container there (PosOrder's font growth) - nor in a shrink-to-fit dialog, which would collapse.
   --tf-reserve: the padding, a border (2px dashed on a free modifier), the grid gap, and the icon
   beside the caption. */
.till-familiar .pos-navbar .tf-btn { container-type: inline-size; }
.till-familiar .tf-btn--fn:has(.tf-btn-img img) { --tf-reserve: 42px; }
.till-familiar .pos-navbar--right .tf-btn.tf-btn--fn { --tf-reserve: 14px; }

.till-familiar .tf-btn-face {
    flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 4px;
}
/* a function / link button in a bar: the icon LEFT of the caption (Krypton's Values.Image), at
   the desktop's icon size */
.till-familiar .tf-btn--fn .tf-btn-face { flex-direction: row; }
.till-familiar .tf-btn--fn .tf-btn-img { order: -1; }
.till-familiar .tf-btn--fn .tf-btn-img img { width: 24px !important; height: 24px !important; }
/* an item, and anything in the side column: caption at the top, picture at the bottom
   (MenuStep imageToBackground) */
.till-familiar .tf-btn--item .tf-btn-face,
.till-familiar .pos-navbar--right .tf-btn-face { flex-direction: column; justify-content: space-between; gap: 2px; }
.till-familiar .pos-navbar--right .tf-btn--fn .tf-btn-img { order: 0; }
/* an item's picture fills the space between its name and its price, as the desktop scales it
   (capped: the thumbnails are small) */
.till-familiar .tf-btn--item .tf-btn-img { flex: 1 1 0; min-height: 0; max-height: 72px; justify-content: center; }
.till-familiar .tf-btn--item .tf-btn-img img { width: 100% !important; height: 100% !important; }
.till-familiar .pos-navbar--right .tf-btn--fn .tf-btn-img img { width: 32px !important; height: 32px !important; }

/* wrap at spaces (FitCaption sizes the caption so its words fit); overflow-wrap only catches a
   word that still does not. pre-line keeps the caption's own line breaks ("TAKE / AWAY / CLEAR"),
   as the desktop does - the web folds them into spaces. */
.till-familiar .tf-btn-cap { min-width: 0; max-width: 100%; overflow-wrap: break-word; white-space: pre-line; }
.till-familiar .tf-btn-img { flex: 0 0 auto; display: inline-flex; }
/* the extra line wraps between its parts ("78,00" / "[-10]"), never inside the price */
.till-familiar .tf-btn-extra { flex: 0 0 auto; line-height: 1.15; overflow: hidden; }
.till-familiar .tf-btn-warn { color: var(--mud-palette-error); }
.till-familiar .tf-btn--text { display: flex; align-items: center; justify-content: center; text-align: center; }


/* ---- Type (L07): the desktop's mono figures for the totals ---- */

.till-familiar .pos-order-receipt .mud-typography-h6[style*="tabular-nums"] {
    font-family: var(--till-mono-font); font-weight: 700;
}


/* ---- Popups (L09-L13): the desktop's pads and boxes on white dialogs ----
   Components/Pos/Till: TillPinPad (.tp-), TillNumPad (.tn-), TillKeyboard (.tk-), TillMessage (.tm-),
   TillConfirm (.tc-). The keys are the desktop's flat solid colours with white bold type. */

.till-familiar .tkey {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
    padding: 4px 6px; border: 1px solid rgba(0, 0, 0, .18); border-radius: 2px;
    font: 700 1.5rem/1.1 var(--till-button-font); color: #fff; text-transform: uppercase;
    cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.till-familiar .tkey:active:not(:disabled) { filter: brightness(.9); }   /* desktop pressed */
.till-familiar .tkey--blue { background: #4466dd; }     /* DecimalForm / PasswordKeys keys */
.till-familiar .tkey--red { background: #ff0000; }      /* Red: BS, CL, NO, CANCEL */
.till-familiar .tkey--green { background: #008000; }    /* Green: LOGIN, OK, YES, quick amounts */
.till-familiar .tkey--orange { background: #ff8c00; }   /* DarkOrange: splits, a lit CAPS / SHIFT */
.till-familiar .tkey--grey { background: #6b6b6b; }
.till-familiar .tkey:disabled { background: #808080; color: #e0e0e0; cursor: default; }   /* desktop disabled */

/* the value being keyed: the desktop's entry box, in its mono figures */
.till-familiar .till-display {
    display: block; width: 100%; min-height: 52px; box-sizing: border-box; margin: 0; padding: 4px 12px;
    border: 2px solid #4466dd; border-radius: 2px; background: #fff; color: #000; outline: none;
    font: 700 1.7rem/1.5 var(--till-mono-font); text-align: right;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* PIN pad (L09): 7-8-9 on top, the display over the keys, POS / User and a tall LOGIN beside them */
.till-familiar .tp-grid {
    display: grid; grid-template-columns: repeat(3, 100px) 236px; grid-template-rows: 64px repeat(4, 70px) auto;
    gap: 8px;
}
.till-familiar .tp-display {
    grid-column: 1 / 4; grid-row: 1; background: #4466dd; color: #fff; caret-color: #fff;
    text-align: center; letter-spacing: .35em; font-size: 2rem;
}
.till-familiar .tp-info { grid-column: 4; grid-row: 1 / 4; padding: 8px 4px; font: 700 1.15rem/1.6 var(--till-mono-font); overflow-wrap: anywhere; }
.till-familiar .tp-key { font-size: 2rem; }
.till-familiar .tp-key--word { font-size: 1.5rem; }   /* BS, CL */
.till-familiar .tp-login { grid-column: 4; grid-row: 4 / 6; font-size: 1.8rem; }
.till-familiar .tp-login-icon { font-size: 2rem; }
.till-familiar .tp-bottom { grid-column: 1 / -1; grid-row: 6; display: flex; justify-content: center; gap: 12px; padding-top: 4px; }
.till-familiar .tp-cancel { min-width: 200px; min-height: 60px; font-size: 1.4rem; }
.till-familiar .tp-message {
    max-width: 580px; margin-bottom: 10px; color: #d00000; font: 700 1.05rem/1.35 var(--till-button-font);
}

/* number pad (L10): quick amounts | 7-8-9 / 4-5-6 / 1-2-3 / 0-00-, with BS and a tall CL | splits */
.till-familiar .tn-pad { display: flex; gap: 8px; margin-top: 8px; outline: none; }
.till-familiar .tn-keys {
    flex: 4 1 0; display: grid; grid-template-columns: repeat(4, minmax(64px, 1fr)); grid-auto-rows: 64px; gap: 6px;
}
.till-familiar .tn-keys .tkey { font-size: 1.75rem; }
.till-familiar .tn-keys .tn-bs, .till-familiar .tn-keys .tn-cl { font-size: 1.4rem; }
.till-familiar .tn-cl { grid-column: 4; grid-row: 2 / span 3; }
.till-familiar .tn-quick, .till-familiar .tn-splits { flex: 2 1 0; display: grid; grid-auto-rows: 1fr; gap: 6px; }
.till-familiar .tn-quick { grid-template-columns: repeat(2, minmax(72px, 1fr)); }
.till-familiar .tn-quick .tkey { font-size: 1rem; }
.till-familiar .tn-quick-first { grid-column: span 2; }
.till-familiar .tn-splits { grid-template-columns: repeat(2, minmax(56px, 1fr)); }
.till-familiar .tn-splits .tkey { font-size: 1.15rem; }

/* the label and the box being keyed on one line. A label that leaves the box less than 140 px takes a line of its own
   above it, the box the whole width under it (PW-01, popup walk 2026-11-18: the Item qty pad's "Set QTY for <a long item
   name>" never shrank or wrapped, so the box went past the popup's right edge at every size). A short label is laid out
   as before: the box takes what the label leaves */
.till-familiar .tn-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.till-familiar .tn-label { flex: 0 0 auto; font: 700 1rem/1.3 var(--till-button-font); color: var(--mud-palette-text-primary); }
.till-familiar .tn-entry > .tn-label { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.till-familiar .tn-entry .till-display { flex: 1 1 auto; width: auto; min-width: 140px; }
.till-familiar .tn-hint { margin-top: 6px; font-size: .85rem; color: var(--mud-palette-text-secondary); }
/* a tender's fields (Balance / Amount / Tip) and the new-order fields: tap one to key it */
.till-familiar .tn-fields { display: flex; gap: 8px; }
.till-familiar .tn-field {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 4px 6px; border: 2px solid transparent; border-radius: 3px; background: none;
    font: inherit; text-align: left; cursor: pointer;
}
.till-familiar .tn-field--static { cursor: default; }
.till-familiar .tn-field--static .till-display { border-color: var(--mud-palette-lines-default); }
.till-familiar .tn-field--active { border-color: #ff8c00; }   /* the desktop's checked colour */
/* a tender's Balance once the amount is over it (OnePaymentForm): the excess as tip in green; change, cashback or
   "Over by" (refused) in red */
.till-familiar .tn-field--tip .tn-label { color: var(--till-ok, #008000); }
.till-familiar .tn-field--tip .till-display { color: #008000; }
.till-familiar .tn-field--over .tn-label { color: var(--till-fail, #f00); }
.till-familiar .tn-field--over .till-display { color: #f00; }
.till-familiar .tn-field--wide { width: 100%; padding: 0; }
/* layout polish (UW-39): a foreign tender's rate on a line of its own under the Amount box is a phone's only (the phone
   block); the label carries it everywhere else */
.till-familiar .tn-rate-sub { display: none; }
.till-familiar .tn-field:disabled { cursor: default; opacity: .9; }
/* a figure that must show whole (a tender's Balance / Amount / Tip): it shrinks to fit its box instead of being cut
   to "900…" - a phone's three-up boxes are ~100px. --tn-chars = the figure's length (Vera Mono advance .602em);
   capped at the display's own 1.7rem, so wide boxes are unchanged; the ellipsis stays the last resort past .75rem */
.till-familiar .tn-fields > .tn-field { container-type: inline-size; }
.till-familiar .till-display.tn-fit {
    padding-inline: var(--tn-fit-pad, 12px); line-height: calc(1.7rem * 1.5);
    font-size: clamp(.75rem, calc((100cqi - 4px - 2 * var(--tn-fit-pad, 12px)) / (var(--tn-chars, 4) * .62)), 1.7rem);
}
.till-familiar .tn-tips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.till-familiar .tn-tips .tkey { flex: 1 1 140px; min-height: 48px; font-size: 1rem; }
/* ON ACCOUNT (B09): the customer the payment goes on, over the pad (the desktop's OnePaymentForm line) */
.till-familiar .tn-customer { margin-bottom: 8px; font: 700 1.1rem/1.3 var(--till-button-font); color: #4169e1; }

/* on-screen keyboard (L11) */
.till-familiar .tk-board { display: flex; flex-direction: column; gap: 6px; }
.till-familiar .tk-display { margin-bottom: 4px; font-family: var(--till-button-font); font-size: 1.5rem; text-align: left; }
.till-familiar .tk-row { display: flex; gap: 6px; }
.till-familiar .tk-row .tkey { flex: 1 1 0; height: 56px; font-size: 1.35rem; text-transform: none; }
/* a phone's own key set (TillKeyboard's tk-row--phone rows): shown below 600 px only, the end of this file */
.tk-row--phone, .till-familiar .tk-row.tk-row--phone { display: none; }

/* message (L12) and confirm (L13): the message in big type, big buttons centred under it */
.till-familiar .tm-dlg, .till-familiar .tc-dlg { min-width: min(520px, calc(100vw - 32px)); }
.till-familiar .tm-message, .till-familiar .tc-message {
    max-width: 640px; margin: 0 auto; padding: 18px 8px 8px; text-align: center; white-space: pre-line;
    font: 700 1.35rem/1.35 var(--till-button-font);
}
.till-familiar .tm-message--ok { color: #008000; }
.till-familiar .tm-message--error { color: #d00000; }
.till-familiar .tm-dlg .mud-dialog-actions, .till-familiar .tc-dlg .mud-dialog-actions { justify-content: center; padding-bottom: 20px; }
.till-familiar .tm-close { min-width: 200px; min-height: 60px; font-size: 1.4rem; }
.till-familiar .tm-count { margin-left: 16px; font: 700 1rem var(--till-mono-font); opacity: .85; }
.till-familiar .tc-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.till-familiar .tc-row { display: flex; justify-content: center; gap: 12px; }
.till-familiar .tc-big { min-width: 180px; min-height: 70px; padding: 6px 18px; font-size: 1.4rem; }
/* YES / CLOSE hold the focus so Enter answers them (L33); the desktop draws no focus ring there */
.till-familiar .tc-big:focus, .till-familiar .tm-close:focus { outline: none; }
.till-familiar .tc-small { min-width: 160px; min-height: 54px; font-size: 1.15rem; }

/* printing-area picker: the areas as big tiles, three a row (a tap chooses) */
.till-familiar .tpa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.till-familiar .tpa-tile { flex-direction: column; gap: 4px; min-height: 84px; padding: 6px 8px; font-size: 1.15rem; }
.till-familiar .tpa-sub { font: 700 .8rem/1.2 var(--till-button-font); text-transform: none; opacity: .9; }
.till-familiar .mud-dialog:has(.tpa-grid) { max-width: min(720px, calc(100vw - 32px)); }

/* the time clock (PosClockDialog): room for its three big keys - START BREAK, CLOCK OUT, CLOSE need 472 px and the
   popup was MudBlazor's extra small 444, so START BREAK lost its first letters on every till (PH-01, 2026-11-18). A phone
   shares the row out instead (the end of this file) */
.till-familiar .tclk-dlg.mud-dialog { max-width: min(520px, calc(100vw - 32px)); }

/* dialogs that carry a pad or the keyboard get the room for it */
.till-familiar .mud-dialog:has(.tn-pad) { max-width: min(480px, calc(100vw - 32px)); }
.till-familiar .mud-dialog:has(.tn-quick), .till-familiar .mud-dialog:has(.tn-splits) { max-width: min(820px, calc(100vw - 32px)); }
.till-familiar .mud-dialog:has(.tk-board) { width: calc(100vw - 32px); max-width: 980px; }


/* ---- Dialog chrome (L16): a clear title, big coloured actions ----
   Every POS dialog on the till: the title reads as a real window title (the desktop shows none,
   D01); CANCEL / CLOSE (MudBlazor's plain text buttons) are the desktop's red, the confirming
   action (filled primary) its green, other filled colours keep theirs - all big. */

.till-familiar .mud-dialog { border-radius: 4px; }
.till-familiar .mud-dialog .mud-dialog-title {
    padding: 12px 24px; background: #f1f4f9; border-bottom: 1px solid var(--mud-palette-lines-default);
}
.till-familiar .mud-dialog .mud-dialog-title,
.till-familiar .mud-dialog .mud-dialog-title > .mud-typography {
    font: 700 1.25rem/1.3 var(--till-button-font); letter-spacing: normal;
}
.till-familiar .mud-dialog .mud-dialog-actions { gap: 10px; padding: 10px 16px 16px; }
.till-familiar .mud-dialog .mud-dialog-actions > .mud-button-root {
    min-width: 140px; min-height: 56px; padding: 6px 20px; border-radius: 2px;
    font: 700 1.05rem/1.2 var(--till-button-font); letter-spacing: normal;
}
.till-familiar .mud-dialog .mud-dialog-actions > .mud-button-text-default { background: #ff0000; color: #fff; }
.till-familiar .mud-dialog .mud-dialog-actions > .mud-button-filled-primary,
.till-familiar .mud-dialog .mud-dialog-actions > .mud-button-text-primary { background: #008000; color: #fff; }
.till-familiar .mud-dialog .mud-dialog-actions > .mud-button-root:active:not(:disabled) { filter: brightness(.9); }
.till-familiar .mud-dialog .mud-dialog-actions > .mud-button-root:disabled { background: #808080 !important; color: #e0e0e0; }
/* a pad's OK takes the width, as the desktop's */
.till-familiar .mud-dialog:has(.tn-pad) .mud-dialog-actions > .mud-button-filled-primary { flex: 1 1 auto; }
/* a popup whose only action is the desktop's big red CANCEL / CLOSE: centred under it */
.till-familiar .mud-dialog-actions:has(> .tkey:only-child) { justify-content: center; }

/* MISC (L30): the desktop's MiscForm - the pages as 90px tabs on the LEFT (.tcat: #345DDB, the chosen
   one DarkOrange), the page's buttons beside them at the desktop's height, a big red CANCEL */
.till-familiar .mud-dialog:has(.tmisc) { width: calc(100vw - 32px); max-width: 860px; }
.till-familiar .tmisc { display: flex; gap: 6px; }
.till-familiar .tmisc-tabs { flex: 0 0 90px; display: flex; flex-direction: column; gap: 4px; }
.till-familiar .tcat.tmisc-tab { flex: 0 0 90px; }
.till-familiar .tmisc-page { flex: 1 1 auto; min-width: 0; }
.till-familiar .tmisc-page .pos-menu-grid { grid-template-rows: none !important; grid-auto-rows: 72px; }
.till-familiar .tkey.tmisc-cancel { min-width: 214px; min-height: 60px; font-size: 1.45rem; }
/* a paired tablet's FORGET TABLET (F36; Fit & finish lane 10): a rare manager's step, so a small outlined key at the far
   left, away from CANCEL - not a second big key beside it */
.till-familiar .tkey.tmisc-forget {
    min-width: 0; min-height: 44px; margin-right: auto; padding: 0 16px; align-self: center;
    border: 2px solid currentColor; background: transparent; color: #4466dd; font-size: 1rem;
}
.till-familiar.till-dark .tkey.tmisc-forget { color: #8fa8ff; }


/* ---- Board (L17-L22) ---- */

/* the area column (L19): the desktop FloorsTab's 90x90 check buttons - floors in #DEB985 with black
   bold type, TABLES + TABS in Blue with white type and its icon, the selected one DarkOrange and
   underlined. The count sits at the bottom, as the desktop's description line. */
.till-familiar .till-areas {
    display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; margin-right: -4px;
}
.till-familiar .till-area {
    flex: 0 0 90px; width: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 6px 4px; box-sizing: border-box; border: 1px solid rgba(0, 0, 0, .18); border-radius: 2px;
    background: #deb985; color: #000; font: 700 13px/1.15 var(--till-button-font); text-align: center;
    white-space: pre-line; overflow-wrap: anywhere; cursor: pointer; user-select: none; -webkit-user-select: none;
    touch-action: manipulation;
}
.till-familiar .till-area:active { filter: brightness(.9); }
.till-familiar .till-area--all { display: grid; grid-template-columns: auto 1fr; align-content: space-between; gap: 4px; background: #0000ff; color: #fff; }
.till-familiar .till-area--on { background: #ff8c00; }
.till-familiar .till-area--on .till-area-name { text-decoration: underline; }
.till-familiar .till-area-icon { width: 28px; height: 28px; }
.till-familiar .till-area--all .till-area-name { font-size: 12px; text-align: left; }
.till-familiar .till-area--all .till-area-count { grid-column: 1 / -1; }
.till-familiar .till-area-count { font-weight: 400; font-size: 12px; }

/* the board's header row holds only the LOG IN / New order fallbacks on a till (the operator is
   named in the status strip): without them it takes no room */
.till-familiar .pos-board-head:not(:has(.mud-button-root)) { display: none; }

/* the TABLES + TABS page (PosRestaurant .tb-board): filter rows, tiles that scroll, the view strip
   at the bottom */
.till-familiar .pos-restaurant-main:has(> .tb-board) { display: flex; flex-direction: column; overflow: hidden; }
.till-familiar .tb-board { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 4px; }

/* the filter rows (L17): FloorsTab's order-state and Group By check buttons - each in its own
   colour with its count on the right, ALL in green, the checked one DarkOrange and underlined */
.till-familiar .tb-filters { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 3px; }
.till-familiar .tb-chip {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
    min-width: 104px; height: 30px; padding: 0 8px; box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, .18); border-radius: 2px; background: #6b6b6b; color: #fff;
    font: 700 12px/1 var(--till-button-font); white-space: nowrap; cursor: pointer; touch-action: manipulation;
}
.till-familiar .tb-chip--all { background: #008000; font-style: italic; }
.till-familiar .tb-chip--on { background: #ff8c00 !important; color: #fff !important; text-decoration: underline; }
.till-familiar .tb-chip-n { display: inline-block; font-weight: 400; font-style: normal; }   /* inline-block: not underlined */

/* the tiles (L20): the desktop's flow of tiles at its list size (--tb-w / --tb-h, inline from
   PosRestaurant), scrolling inside; a group's heading breaks the row, as the desktop's flow break.
   While the board has room the tiles grow by one factor (--tb-s, tileFit.js): zoom scales the box
   and everything in it, so a grown tile is the same tile, larger */
.till-familiar .tb-tiles {
    flex: 1 1 0; min-height: 0; overflow-y: auto; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px;
}
.till-familiar .tb-tiles > .tt-tile { flex: 0 0 var(--tb-w, 160px); height: var(--tb-h, 100px); zoom: var(--tb-s, 1); }
.till-familiar .tb-tiles > .pos-card-group { flex: 0 0 100%; padding-top: 2px; }
.till-familiar .tb-empty { flex: 0 0 100%; padding: 16px 4px; font: 700 14px var(--till-button-font); color: var(--mud-palette-text-secondary); }

/* the view strip (L18): FloorsTab.panelViewMode - Group By (DarkViolet) and Sort By (DarkGreen)
   open their pickers; TABLES / TABS / MY AREA are check buttons, Blue, DarkOrange when on */
.till-familiar .tb-strip { flex: 0 0 auto; display: flex; gap: 4px; height: 34px; }
.till-familiar .tb-btn {
    flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
    padding: 0 8px; box-sizing: border-box; border: 1px solid rgba(0, 0, 0, .18); border-radius: 2px; color: #fff;
    font: 700 12px/1 var(--till-button-font); white-space: nowrap; overflow: hidden; cursor: pointer; touch-action: manipulation;
}
.till-familiar .tb-btn:active:not(:disabled), .till-familiar .tb-chip:active { filter: brightness(.9); }
.till-familiar .tb-btn--group { flex-grow: 2; background: #9400d3; }
.till-familiar .tb-btn--sort { flex-grow: 2; background: #006400; }
.till-familiar .tb-btn-lbl { flex: 0 0 auto; font-weight: 400; font-size: 11px; }
.till-familiar .tb-btn-val { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.till-familiar .tb-btn-n { font-weight: 400; }
.till-familiar .tb-check { background: #0000ff; }
.till-familiar .tb-check:not(:has(.tb-btn-n)) { justify-content: center; }
.till-familiar .tb-check--on { background: #ff8c00; }
.till-familiar .tb-check:disabled { background: #808080; color: #e0e0e0; cursor: default; }

/* a tile (L20, L21): PosOrderCard's familiar markup - the desktop's rich tile, one line a row so
   it fits 160x100: header, badges, time + age, note, guests + amount, waiter */
.till-familiar .tt-tile {
    min-width: 0; min-height: 0; overflow: hidden; box-sizing: border-box; border-radius: 4px; padding: 1px 4px 2px;
    display: flex; flex-direction: column; gap: 0; cursor: pointer; color: var(--mud-palette-text-primary);
    font: 400 11px/1.2 var(--till-button-font); user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.till-familiar .tt-tile:active { filter: brightness(.92); }
.till-familiar .tt-head {
    flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 4px;
    padding: 1px 4px; border-radius: 2px; white-space: nowrap; overflow: hidden;
}
.till-familiar .tt-title { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.till-familiar .tt-level { font-size: 10.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.till-familiar .tt-badges { flex: 0 0 auto; display: flex; gap: 3px; margin: 1px 0; overflow: hidden; white-space: nowrap; }
.till-familiar .tt-badge { font-size: 9px; font-weight: 700; line-height: 1; padding: 2px 4px; border-radius: 5px; }
.till-familiar .tt-row { flex: 0 0 auto; display: flex; align-items: center; gap: 3px; min-width: 0; white-space: nowrap; overflow: hidden; }
.till-familiar .tt-row > span { overflow: hidden; text-overflow: ellipsis; }
.till-familiar .tt-tile .mud-icon-root.tt-icon { flex: 0 0 auto; font-size: 13px; width: 13px; height: 13px; opacity: .8; }
.till-familiar .tt-age { flex: 0 0 auto; font-size: 9.5px; font-weight: 700; padding: 1px 4px; border-radius: 5px; }
.till-familiar .tt-note { font-style: italic; opacity: .75; }
.till-familiar .tt-amount { justify-content: space-between; margin-top: auto; }   /* the amount and the waiter sit at the bottom */
.till-familiar .tt-amount b { flex: 0 0 auto; font-size: 13px; font-variant-numeric: tabular-nums; }
.till-familiar .tt-guests { opacity: .75; }
.till-familiar .tt-user { font-weight: 700; }
/* the desktop's disabled tile: grey, light text, the content washed out (RichTilePainter) */
.till-familiar .tt-tile--off { color: #e0e0e0; }
.till-familiar .tt-tile--off .tt-head, .till-familiar .tt-tile--off .tt-badges, .till-familiar .tt-tile--off .tt-age { opacity: .55; }
.till-familiar .pos-board-out .tt-tile { filter: none; opacity: 1; }

/* the floor plan (L22): a table the operator cannot use is the desktop's disabled button (grey,
   its state colour on the border - PosFloorPlan), not the web's faded one */
.till-familiar .pos-board-out .pos-floor-table--off,
.till-familiar .pos-floor-table--off.pos-floor-table--scoped { filter: none; opacity: 1; }
.till-familiar .pos-floor-table--off .pos-floor-table-line { color: inherit !important; }

/* a split table's legs (PosSplitLegDialog): the desktop's "Select Order:" */
.till-familiar .tleg-label { margin-bottom: 8px; font: 700 1.1rem/1.3 var(--till-button-font); }

/* the logged-out preview (L31): the order screen's basket (PosReceiptPanel ReadOnly, .trb--ro) in the
   desktop's narrow ReceiptBasketForm - sized by its rows, nothing to tap - a big CLOSE and the till's
   SIGN IN (K08) */
.till-familiar .mud-dialog:has(.trb--ro) { width: 400px; max-width: calc(100vw - 32px); }
.till-familiar .trb--ro { flex: 0 1 auto; max-height: min(540px, calc(100dvh - 210px)); border: 1px solid #abbad0; }
.till-familiar .trb--ro .trb-rows { flex: 0 1 auto; min-height: 60px; }
.till-familiar .trb--ro .trb-row { cursor: default; }
.till-familiar .tkey.tprev-close, .till-familiar .tkey.tprev-signin { flex: 1 1 0; min-height: 56px; font-size: 1.3rem; }

/* item lookup (L32): the desktop's SELECT grid (Name / PLU / Open Price / the price levels, a page at a
   time, the pager beside it) under the till's type-ahead box (K06); a white grid, the selection Yellow */
.till-familiar .mud-dialog:has(.tlk) { width: calc(100vw - 32px); max-width: 900px; }
.till-familiar .tlk { display: flex; flex-direction: column; gap: 6px; }
.till-familiar .tlk-search { display: flex; align-items: center; gap: 6px; }
.till-familiar .tlk-label { flex: 0 0 auto; font: 700 14px/1 var(--till-button-font); }
.till-familiar .tlk-input {
    flex: 1 1 auto; min-width: 0; height: 44px; box-sizing: border-box; padding: 0 10px; border: 2px solid #4466dd;
    border-radius: 2px; background: #fff; color: #000; outline: none; font: 700 20px/1 var(--till-button-font);
}
.till-familiar .tkey.tlk-key { flex: 0 0 56px; height: 44px; font-size: 1.2rem; }
.till-familiar .tlk-body { display: flex; gap: 6px; height: min(436px, calc(100dvh - 300px)); }
.till-familiar .tlk-grid { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: #fff; color: #000; }
.till-familiar .tlk-row {
    flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 64px 84px repeat(var(--tlk-levels, 3), 88px);
    align-items: center; min-height: 32px; border-bottom: 1px solid #e3e3e3; cursor: pointer;
    font: 700 14px/1.2 var(--till-button-font); user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.till-familiar .tlk-row > span { min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.till-familiar .tlk-row:nth-child(odd) { background: #f5f5f5; }
.till-familiar .tlk-row--head {
    min-height: 24px; background: linear-gradient(#f4f9ff, #dae7f5) !important; border-bottom-color: #abbad0; color: #1e395b;
    font-weight: 400; font-size: 12px; cursor: default;
}
/* the selection: Yellow framed in DarkOrange, as the basket's (it must survive a warm screen tint) */
.till-familiar .tlk-row--sel { background: #ff0 !important; box-shadow: inset 0 0 0 2px #ff8c00; }
.till-familiar .tlk-num { text-align: right; font-family: var(--till-mono-font); }
.till-familiar .tlk-open { text-align: center; color: #2e7d32; }
.till-familiar .tlk-empty { padding: 16px; text-align: center; color: #8a8a8a; font: 700 13px/1.4 var(--till-button-font); }
.till-familiar .tlk-pager { flex: 0 0 64px; display: flex; flex-direction: column; gap: 6px; }
.till-familiar .tlk-pager .tkey { flex: 1 1 0; font-size: 1.4rem; }
.till-familiar .tlk-pages { flex: 0 0 auto; text-align: center; font: 700 13px/1.2 var(--till-mono-font); }
.till-familiar .tkey.tlk-cancel { min-width: 180px; min-height: 56px; font-size: 1.3rem; }
.till-familiar .tkey.tlk-select { flex: 1 1 auto; min-width: 0; min-height: 56px; font-size: 1.3rem; text-transform: none; }
/* the customer lookup's NEW / EDIT / NONE (Batch 2 F25): the desktop popup's gear buttons, beside CANCEL */
.till-familiar .tkey.tlk-edit { min-width: 96px; min-height: 56px; font-size: 1.2rem; }

/* the POS customer form (PosCustomerEditDialog, Batch 2 F25): the desktop CustomerForm - name + number, then the
   address tabs (the default starred, ADD ADDRESS green) over a two-column grid of the address's fields */
.till-familiar .mud-dialog:has(.tce) { width: calc(100vw - 32px); max-width: 900px; }
.till-familiar .tce { display: flex; flex-direction: column; gap: 8px; }
.till-familiar .tce-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 10px; }
.till-familiar .tce-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.till-familiar .tce-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.till-familiar .tce-field--wide { grid-column: 1 / -1; }
.till-familiar .tce-label { font: 700 13px/1.2 var(--till-button-font); }
.till-familiar .tlk-input.tce-input { width: 100%; height: 40px; font-size: 18px; }
.till-familiar .tce-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.till-familiar .tkey.tce-tab { min-height: 44px; padding: 0 14px; font-size: 1rem; text-transform: none; background: #6b6b6b; }
.till-familiar .tkey.tce-tab.tkey--green { background: #008000; }
.till-familiar .tkey.tce-tab--on { background: #4466dd; outline: 3px solid #ff8c00; outline-offset: 1px; }
.till-familiar .tce-default { display: flex; align-items: center; min-height: 44px; }
.till-familiar .tce-default-on { font: 700 14px/1.2 var(--till-button-font); color: #008000; }
.till-familiar .tkey.tce-make-default { min-height: 44px; padding: 0 16px; font-size: 1rem; }
.till-familiar .tce-error { font: 700 14px/1.3 var(--till-button-font); color: #ff0000; }
@media (max-width: 600px) {
    .till-familiar .tce-row, .till-familiar .tce-grid { grid-template-columns: minmax(0, 1fr); }
}

/* the strip's print jobs (PosPrintJobsDialog): the desktop quick view's white grid - Time / Document /
   Printer / Status / Tries, the reason in red under its row, Status in the desktop panel's colours
   (PrintJobsUC.StatusLook), a tapped row Yellow framed DarkOrange as the basket's */
/* the browser KDS's too: the dialog carries .till-familiar itself there (PW-14) */
:is(.till-familiar .mud-dialog:has(.tpj), .mud-dialog.tpj-dlg.till-familiar) { width: calc(100vw - 32px); max-width: 900px; }
.till-familiar .tpj { display: flex; flex-direction: column; gap: 6px; }
.till-familiar .tpj-grid {
    height: min(440px, calc(100dvh - 260px)); overflow-y: auto; display: flex; flex-direction: column;
    background: #fff; color: #000; border: 1px solid #abbad0;
}
.till-familiar .tpj-row {
    flex: 0 0 auto; display: grid; grid-template-columns: 100px minmax(0, 1.4fr) minmax(0, 1fr) 108px 54px;
    align-items: center; min-height: 34px; border-bottom: 1px solid #e3e3e3; cursor: pointer;
    font: 700 14px/1.2 var(--till-button-font); user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.till-familiar .tpj-row > span { min-width: 0; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.till-familiar .tpj-row:nth-child(odd) { background: #f5f5f5; }
.till-familiar .tpj-row--head {
    position: sticky; top: 0; z-index: 1; min-height: 24px; background: linear-gradient(#f4f9ff, #dae7f5) !important;
    border-bottom-color: #abbad0; color: #1e395b; font-weight: 400; font-size: 12px; cursor: default;
}
.till-familiar .tpj-row--sel { background: #ff0 !important; box-shadow: inset 0 0 0 2px #ff8c00; }
.till-familiar .tpj-num { text-align: right; font-family: var(--till-mono-font); }
.till-familiar .tpj-row > .tpj-error { grid-column: 2 / -1; padding-bottom: 4px; color: #c62828; font-weight: 400; font-size: 12px; white-space: normal; }
.till-familiar .tpj-status { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 12px; }
.till-familiar .tpj-status--0 { background: #fff3e0; color: #e65100; }   /* Queued */
.till-familiar .tpj-status--1 { background: #e3f2fd; color: #1565c0; }   /* Printing */
.till-familiar .tpj-status--2 { background: #e8f5e9; color: #2e7d32; }   /* Done */
.till-familiar .tpj-status--3 { background: #ffebee; color: #c62828; }   /* Failed, or retrying */
.till-familiar .tpj-status--4 { background: #424242; color: #fff; }      /* Abandoned: NOT printed */
.till-familiar .tpj-status--5 { background: #eee; color: #616161; }      /* Discarded */
.till-familiar .tpj-empty { padding: 16px; text-align: center; color: #8a8a8a; font: 700 13px/1.4 var(--till-button-font); }
.till-familiar .tpj-note { font: 400 12px/1.3 var(--till-button-font); color: var(--till-muted, #6b7280); }
.till-familiar .tpj-spacer { flex: 1 1 auto; }
.till-familiar .tkey.tpj-key {
    min-width: 140px; min-height: 52px; font-size: 1.1rem;
    background: var(--till-button-back, #e1edfa); color: var(--till-button-fore, #1e395b); border-color: #abbad0;
}
.till-familiar .tkey.tpj-key--problems { color: #c62828; }                       /* PrintJobsUC.btnProblems */
.till-familiar .tkey.tpj-key--on { background: #ff8c00; color: #fff; }          /* lit, as a lit CAPS */
.till-familiar .tkey.tpj-key:disabled { background: #808080; color: #e0e0e0; }
.till-familiar .tkey.tpj-close { min-width: 180px; min-height: 56px; font-size: 1.3rem; }

/* the one-tap pickers (TillChoice): Group By / Sort By / the clock-in job - big coloured buttons,
   the current one ringed in the checked orange */
.till-familiar .tch-message { margin-bottom: 10px; text-align: center; font: 700 1.1rem/1.3 var(--till-button-font); }
.till-familiar .tch-grid { display: grid; grid-template-columns: 320px; gap: 8px; }
.till-familiar .tch-grid--two { grid-template-columns: repeat(2, 260px); }
.till-familiar .tch-option { flex-direction: column; gap: 4px; min-height: 72px; font-size: 1.3rem; text-transform: none; }
.till-familiar .tch-option--on { outline: 4px solid #ff8c00; outline-offset: 2px; }
.till-familiar .tch-hint { font-size: .8rem; font-weight: 400; }
.till-familiar .tch-dlg .mud-dialog-actions { justify-content: center; }
.till-familiar .tch-close { min-width: 200px; min-height: 56px; font-size: 1.3rem; }

/* new order (B04): the desktop's PriceLevelsForm - the levels as big tiles three a row in their colours,
   white bold type and the "Customer Prompt & Required" line; one tap starts; a big red CANCEL */
.till-familiar .mud-dialog:has(.tno-grid) { width: calc(100vw - 32px); max-width: 680px; }
.till-familiar .tno-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.till-familiar .tkey.tno-level {
    flex-direction: column; gap: 6px; min-height: 86px; padding: 6px; border-radius: 0;
    font-size: 1.2rem; text-transform: none; white-space: normal; overflow-wrap: anywhere;
}
.till-familiar .tno-extra { font: 400 .72rem/1.2 var(--till-button-font); }
.till-familiar .tkey.tno-cancel { min-width: 208px; min-height: 58px; font-size: 1.45rem; }

/* EMPL (B10): the desktop's EmployessForm - "Select Employee:" and the Clocked Out / Clocked In / On Break
   toggles (Green / Blue / Red when on, Gray when off), every employee as a 180x80 tile in the colour of
   what a tap does, the operator's own ringed red, a big CLOSE */
.till-familiar .mud-dialog:has(.temp-grid) { width: calc(100vw - 32px); max-width: 800px; }
.till-familiar .temp-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.till-familiar .temp-title { flex: 1 1 auto; font: 700 1.1rem/1.2 var(--till-button-font); }
.till-familiar .tkey.temp-toggle { flex: 0 0 134px; height: 37px; border: 1px solid #fff; font-size: .95rem; text-transform: none; }
.till-familiar .temp-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-rows: 80px; gap: 6px;
    max-height: calc(100dvh - 260px); overflow-y: auto; padding: 6px;
}
.till-familiar .tkey.temp-tile { flex-direction: column; gap: 4px; padding: 4px 6px; font-size: 1.05rem; text-transform: none; }
.till-familiar .temp-tile--self { box-shadow: 0 0 0 2px #fff, 0 0 0 5px #ff0000; }
.till-familiar .temp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.till-familiar .temp-state { font: 400 .72rem/1.2 var(--till-button-font); }
.till-familiar .temp-note { padding: 16px; text-align: center; font: 700 1.1rem/1.4 var(--till-button-font); }
.till-familiar .temp-note--red { color: var(--till-fail, #ff4a4a); }
.till-familiar .temp-dlg .mud-dialog-actions { justify-content: center; }
.till-familiar .tkey.temp-close { min-width: 210px; min-height: 62px; font-size: 1.45rem; }


/* ---- Order screen (L23-L25, B06): the desktop's OrderUC ----
   PosOrder's .tord: the basket (340px, as the desktop's) with its input box, the basket column (DB
   menu type 7, 50px), then PREVIOUS / NEXT CATEGORY over the items and the 90px category column. */

@media (min-width: 600px) {
    .till-familiar .pos-order-screen.tord { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 4px; }
    .till-familiar .pos-order-screen.tord:has(> .tord-basketnav) { grid-template-columns: minmax(280px, 340px) 50px minmax(0, 1fr); }
    .till-familiar .tord .pos-order-menu-body { grid-template-columns: minmax(0, 1fr) 90px; gap: 4px; }
}
.till-familiar.till-pos .tord .pos-order-receipt { background: var(--till-canvas); border: 0; border-radius: 0; overflow: hidden; }
.till-familiar .tord-basket { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; }

/* the basket (PosReceiptPanel Familiar): the desktop's white grid, Segoe bold rows */
.till-familiar .trb {
    flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; background: #fff; color: #000;
    font-family: var(--till-button-font);
}
/* the header bar in the price level's colour: table (LightGray) | the level (Vera Mono) | #nr */
.till-familiar .trb-head {
    flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
    gap: 6px; min-height: 20px; padding: 0 6px; color: #fff;
}
.till-familiar .trb-head-side { font: 700 11px/1.2 var(--till-button-font); color: #d3d3d3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.till-familiar .trb-head-nr { text-align: right; }
.till-familiar .trb-head-level { font: 700 15px/1.3 var(--till-mono-font); white-space: nowrap; }
.till-familiar .trb-sel { flex: 0 0 19px; background: #4169e1; color: #ff0; text-align: center; font: 700 12px/19px var(--till-button-font); }
/* Item / Price / Guest / Sent */
.till-familiar .trb-cols, .till-familiar .trb-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px 36px 68px; }
.till-familiar .trb-cols {
    position: sticky; top: 0; z-index: 1; background: linear-gradient(#f4f9ff, #dae7f5); border-bottom: 1px solid #abbad0;
    font: 400 11px/22px var(--till-button-font); color: #1e395b; text-align: center;
}
.till-familiar .trb-cols > span + span { border-left: 1px solid #abbad0; }
.till-familiar .trb-rows { flex: 1 1 0; min-height: 0; overflow-y: auto; position: relative; }
.till-familiar .trb-row {
    min-height: 32px; border-bottom: 1px solid #e3e3e3; color: #000; cursor: pointer; scroll-margin-top: 23px;
    user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.till-familiar .trb-row > div { min-width: 0; padding: 4px; }
.till-familiar .trb-row > div + div { border-left: 1px solid #e3e3e3; }
.till-familiar .trb-row--odd { background: #f5f5f5; }
/* the selection: the desktop's Yellow, framed in its checked DarkOrange (inset, so nothing moves) - under a
   warm screen tint (Night Light, f.lux) the Yellow alone blends into the white rows (Pawel 2026-10-11) */
.till-familiar .trb-row--sel { background: #ff0; box-shadow: inset 0 0 0 2px #ff8c00; }
.till-familiar .trb-row--unsent { color: #00f; }          /* still to go to the kitchen */
.till-familiar .trb-row--note { color: #006400; }         /* kitchen note */
.till-familiar .trb-row--label { color: #800080; }
.till-familiar .trb-row--note .trb-item, .till-familiar .trb-row--label .trb-item { text-align: center; }
.till-familiar .trb-row--void, .till-familiar .trb-mod--void { color: #808080; font-style: italic; text-decoration: line-through; }
.till-familiar .trb-row--void { cursor: default; }
.till-familiar .trb-item { font: 700 13px/1.3 var(--till-button-font); overflow-wrap: anywhere; }
.till-familiar .trb-mod { padding-left: 14px; }
.till-familiar .trb-price { font: 700 13px/1.3 var(--till-button-font); text-align: right; white-space: nowrap; }
.till-familiar .trb-guest { font: 400 12px/1.4 var(--till-button-font); text-align: center; }
.till-familiar .trb-row > .trb-sent { padding: 4px 2px; font: 400 11px/1.55 var(--till-button-font); text-align: center; white-space: nowrap; }
/* basket lines that size themselves (pos.js basketFit, StandardPure.BasketLineSizing; the desktop's FitLines): the lines
   of a basket the waiter taps share its free space between the touch minimum and a fingertip, in mm on this screen.
   --px-per-mm: a CSS px's nominal size (1/96 in); a phone's or tablet's browser makes a CSS px about a dp (1/160 in);
   the till host knows its screen's real size and sets it on the root (MainLayout). The fit pads each line's cells
   equally above and below (--trb-pt / --trb-pb), so the text stays centred and the column rules run its full height. */
.till-familiar { --px-per-mm: 3.7795; }
@media (hover: none) and (pointer: coarse) {
    .till-familiar { --px-per-mm: 6.2992; }
}
.till-familiar .trb-rows.trb-measure > .trb-row, .till-familiar .trb-rows.trb-fit > .trb-row { min-height: 0; }
.till-familiar .trb-rows.trb-fit:not(.trb-measure) > .trb-row > div {
    padding-top: calc(4px + var(--trb-pt, 0px)); padding-bottom: calc(4px + var(--trb-pb, 0px));
}
.till-familiar .trb-check.mud-icon-root { width: 13px; height: 13px; font-size: 13px; margin-right: 1px; vertical-align: -2px; color: #2e7d32; }
.till-familiar .trb-row--void .trb-check.mud-icon-root { color: inherit; }
.till-familiar .trb-empty { padding: 16px 8px; text-align: center; color: #8a8a8a; font: 700 12px/1.4 var(--till-button-font); }
/* the info strips, in the desktop's colours, white Vera Mono */
.till-familiar .trb-strip {
    flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; min-height: 34px; box-sizing: border-box;
    padding: 2px 8px; color: #fff; font: 700 13px/1.35 var(--till-mono-font); overflow-wrap: anywhere;
}
.till-familiar .trb-strip-small { font-size: 11px; }
/* SHOW / HIDE VOIDED: the desktop's light check button with red type, pressed in while voided lines show */
.till-familiar .trb-strip--voided {
    min-height: 22px; padding: 0 8px; border: 1px solid #abbad0; background: #e1edfa; color: #f00;
    text-align: center; font: 700 11px/1.2 var(--till-button-font); cursor: pointer;
}
.till-familiar .trb-strip--voided.trb-strip--on { background: #ffe48a; border-color: #c2762b; }
.till-familiar .trb-strip--hold, .till-familiar .trb-strip--refund { background: #f00; text-align: center; font-size: 15px; }
.till-familiar .trb-strip--discount { background: #0000cd; }
.till-familiar .trb-strip--gratuity { background: #00f; }
.till-familiar .trb-strip--tag { background: #ff8c00; }
.till-familiar .trb-strip--customer { background: #4169e1; }
.till-familiar .trb-strip--loop { background: #8a2be2; cursor: pointer; }
.till-familiar .trb-strip--payments { background: #6b8e23; }
/* the big green total */
.till-familiar .trb-total {
    flex: 0 0 42px; display: flex; align-items: center; justify-content: center; background: #008000; color: #fff;
    font: 700 34px/1 var(--till-mono-font);
}
/* the input box (white, Vera Mono) and its red CL, on the canvas */
.till-familiar .tord-input { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 4px 2px 0; background: var(--till-canvas, #000); }
.till-familiar .tord-plu {
    flex: 1 1 auto; min-width: 0; height: 35px; box-sizing: border-box; padding: 0 8px; border: 0;
    border-bottom: 2px solid #1e6fd0; border-radius: 0; background: #fff; color: #000; outline: none;
    font: 700 24px/1 var(--till-mono-font);
}
.till-familiar .tord-plu::placeholder { color: #9a9a9a; font: 400 15px var(--till-button-font); }
.till-familiar .tkey.tord-cl { flex: 0 0 68px; height: 35px; border-color: var(--till-key-edge, #fff); font-size: 15px; }

/* the basket column (B06): DB menu type 7, the desktop's 50px column of arrows / ALL / CLR / + / - */
.till-familiar .tord-basketnav { min-height: 0; display: flex; flex-direction: column; }
.till-familiar .tord-basketnav .pos-navbar--right { flex: 1 1 auto; padding: 0; border: 0; }
.till-familiar .tord-basketnav .tf-btn.tf-btn--fn { --tf-reserve: 6px; }
.till-familiar .tord-basketnav .tf-btn--fn .tf-btn-face { justify-content: center; }

/* PREVIOUS / NEXT CATEGORY (MenuTab's bar): #345DDB buttons, grey when there is nowhere to go, the
   category's name in DarkOrange between them */
.till-familiar .tord-catbar { flex: 0 0 41px; display: flex; align-items: center; padding: 0 0 4px; box-sizing: border-box; }
.till-familiar .tord-catbtn {
    flex: 1 1 0; min-width: 0; height: 37px; border: 1px solid #abbad0; border-radius: 0; background: #345ddb; color: #fff;
    font: 700 13px/1 var(--till-button-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    cursor: pointer; touch-action: manipulation;
}
.till-familiar .tord-catbtn:active:not(:disabled) { background: #2e53c5; }
.till-familiar .tord-catbtn:disabled { background: #808080; border-color: #808080; color: #e0e0e0; cursor: default; }
.till-familiar .tord-catname {
    flex: 0 1 auto; max-width: 40%; padding: 0 12px; color: #ff8c00; font: 700 15px/1.1 var(--till-button-font);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* the category column: 90px on black, a category without a colour in the desktop's #345DDB; the
   chosen one keeps its colour with a DarkOrange frame and underline (DarkOrange itself when it has
   none). They share the height up to the desktop's 90px and scroll when there are more. */
.till-familiar .tord .pos-order-cats { gap: 4px; justify-content: flex-start; }
.till-familiar .tord .pos-order-cats > .tcat { flex: 1 1 0; min-height: 56px; max-height: 90px; }
.till-familiar .tcat {
    display: flex; align-items: center; justify-content: center; padding: 2px 4px; box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, .18); border-radius: 0; background: #345ddb; color: #fff;
    font: 700 13px/1.15 var(--till-button-font); text-align: center; overflow: hidden; overflow-wrap: break-word;
    cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.till-familiar .tcat:active { filter: brightness(.9); }
.till-familiar .tcat--on { box-shadow: inset 0 0 0 3px #ff8c00; text-decoration: underline; }
.till-familiar .tcat--on:not([style*="background"]) { background: #ff8c00; }

/* the modifier popup (L28, B08): PosModifierDialog's familiar markup = the desktop's ModifierForm on its
   colours (ModifierStep: the page, the panel and the "Max Selection" bar are rgb(52,93,219)):
   - the groups as 90px tabs on the left (.tcat: #345DDB, the shown one DarkOrange); a group still short
     of its minimum in yellow type (the web's red does not read on the blue), one that waits for an
     earlier group's minimum greyed, as the desktop disables it;
   - ONE group's grid on the blue page under the hint bar ("Meat: 1 of 3 chosen, 2 left"), its rows
     sharing the page as the desktop's equal-percentage table;
   - an option without a colour of its own is the desktop's light Krypton button, chosen or not - never
     the black page (Pawel 2026-10-10: "really hard to see the buttons"); chosen = the desktop's 3px
     DarkOrange dashed frame (ModifierStep cellPanel) + the till's check badge;
   - a big red CANCEL and the green DONE with "(Total 127,00; Qty 3)" taking the width */
.till-familiar .mud-dialog:has(.tmod) { width: calc(100vw - 32px); max-width: 880px; }
.till-familiar .tmod { display: flex; gap: 4px; height: min(470px, calc(100dvh - 220px)); }
.till-familiar .tmod-tabs { flex: 0 0 90px; display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; }
.till-familiar .tcat.tmod-tab { flex: 0 0 90px; flex-direction: column; gap: 4px; }
.till-familiar .tmod-tab-n { font: 400 11px/1 var(--till-button-font); }
.till-familiar .tmod-tab--short:not(.tcat--on) { color: #ffeb3b; }
.till-familiar .tcat:disabled { background: #808080; color: #e0e0e0; box-shadow: none; cursor: default; }
.till-familiar .tmod-page {
    flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 0 2px 2px; box-sizing: border-box; background: #345ddb;
}
.till-familiar .tmod-bar { flex: 0 0 auto; padding: 5px 8px; color: #fff; text-align: right; font: 700 15px/1.3 var(--till-button-font); }
.till-familiar .tmod-bar--short { color: #ffeb3b; }
/* top / right padding: room for the chosen options' corner check */
.till-familiar .tmod-grid {
    flex: 1 1 0; min-height: 0; display: grid; gap: 2px; grid-auto-rows: minmax(56px, 1fr); overflow-y: auto; padding: 8px 8px 0 0;
}
.till-familiar .tmod-opt {
    position: relative; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 4px 4px; box-sizing: border-box; border: 1px solid rgba(0, 0, 0, .18); border-radius: 2px;
    font: 700 13px/1.15 var(--till-button-font); text-align: center; cursor: pointer;
    user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.till-familiar .tmod-opt:active { filter: brightness(.9); }
.till-familiar .tmod-opt--on { border: 3px dashed #ff8c00; }
.till-familiar .tmod-cap { flex: 1 1 auto; display: flex; align-items: center; overflow-wrap: break-word; }
.till-familiar .tmod-extra, .till-familiar .tmod-price { flex: 0 0 auto; font: 700 10px/1.2 var(--till-button-font); }
.till-familiar .tmod-qty { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; font-size: 14px; }
.till-familiar .tmod-check {
    position: absolute; top: -8px; right: -8px; z-index: 1; width: 24px; height: 24px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; pointer-events: none;
    background: var(--mud-palette-primary); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.till-familiar .tmod-check .mud-icon-root { font-size: 16px; }
.till-familiar .tkey.tmod-cancel { min-width: 125px; min-height: 52px; font-size: 1.3rem; }
.till-familiar .tkey.tmod-done { flex: 1 1 auto; min-height: 52px; font-size: 1.7rem; }
.till-familiar .tmod-total { font: 700 .85rem/1 var(--till-button-font); text-transform: none; }

/* the void-reason picker's words and its comment keyboard (B03; the tiles are S3c's L29) */
.till-familiar .tvr-label { margin-bottom: 10px; font: 700 1.15rem/1.3 var(--till-button-font); }
.till-familiar .tvr-actions { display: flex; gap: 8px; margin-top: 8px; }
.till-familiar .tvr-actions .tkey { min-height: 56px; min-width: 140px; font-size: 1.2rem; }
.till-familiar .tvr-actions .tvr-done { flex: 1 1 auto; }
/* the reason tiles (L29): the desktop's DeleteCodesForm - three a row, ~236x89, white bold type on the
   code's colour (Red when it has none), "CONSUMED" small at the bottom of a code that keeps the stock */
.till-familiar .mud-dialog:has(.tvr-grid) { width: calc(100vw - 32px); max-width: 780px; }
.till-familiar .tvr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.till-familiar .tkey.tvr-tile {
    position: relative; flex-direction: column; min-height: 89px; padding: 8px 6px 18px; border-radius: 0;
    font-size: 1.15rem; text-transform: none; white-space: normal; overflow-wrap: anywhere;
}
.till-familiar .tvr-consumed { position: absolute; left: 0; right: 0; bottom: 4px; font: 400 .68rem/1 var(--till-button-font); }
.till-familiar .mud-dialog:has(.tvr-grid) .mud-dialog-actions { justify-content: center; }
.till-familiar .mud-dialog:has(.tvr-grid) .mud-dialog-actions > .mud-button-root { min-width: 250px; min-height: 60px; font-size: 1.4rem; }


/* ---- Toasts (L15): bottom centre, just above the status strip (MauiProgram sets the position) ---- */

.till-familiar .mud-snackbar-location-bottom-center { bottom: calc(var(--till-strip-h) + 8px); }
.till-familiar .mud-snackbar { min-width: 320px; font: 700 1rem/1.3 var(--till-button-font); }
/* ...but where the status strip shows, the messages go to its middle as the desktop's status label
   (TillStatusStrip: StatusLabel green, red for a failure, kept until the next one) and the floating
   toasts stay hidden - they covered the bottom buttons (Pawel 2026-10-10). Only a toast with a button
   still floats: the strip shows text alone, and "Review" (Remote Authorization) or "Reload" (a new web
   build) must stay tappable. MudBlazor 9 renders no .mud-snackbar-provider - the toasts sit straight in
   .mud-snackbar-location-* - so the rule names the toast itself; MudBlazor times toasts out itself, so
   display:none leaves no gap above a toast that stays. The test is the action button itself: the close X
   sits in the same .mud-snackbar-content-action wrapper, and every toast has one (ShowCloseIcon). */
.till-familiar:has(.till-strip) .mud-snackbar:not(:has(.mud-snackbar-action-button)) { display: none; }
.till-familiar .till-strip-status {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; font-size: 13px; font-weight: 700; color: #008000;
}
.till-familiar .till-strip-status--failure { color: #d00000; }
.till-familiar.till-pos .till-strip-status { color: var(--till-ok); }
.till-familiar.till-pos .till-strip-status--failure { color: var(--till-fail); }


/* ---- Settle (L26, L27): the desktop's SettleUC on black ----
   PosSettle's .tset: the payment lines (PaymentLines) | the tenders with their pictures and the receipt
   summary (PaymentButtons, SummaryPanel), the settle bar under them. */

.till-familiar .pos-fill-root:has(> .tset) { display: flex; flex-direction: column; }
@media (min-width: 600px) {
    .till-familiar .pos-fill-root:has(> .tset) { height: calc(100dvh - var(--till-strip-h) - 2 * var(--till-gutter)); min-height: 0; }
}
.till-familiar .tset { flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 404px; gap: 6px; }
.till-familiar .tset-lines { min-height: 0; display: flex; flex-direction: column; color: var(--till-ink, #fff); }
/* the order: a slim bar in its price level's colour, as the basket's header */
.till-familiar .tset-head {
    flex: 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
    gap: 6px; min-height: 22px; padding: 0 6px; color: #fff;
}
.till-familiar .tset-head-side { font: 700 12px/1.2 var(--till-button-font); color: #e0e0e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.till-familiar .tset-head-level { font: 700 15px/1.3 var(--till-mono-font); white-space: nowrap; }
.till-familiar .tset-head-flags { text-align: right; }
.till-familiar .tset-flag { margin-left: 4px; padding: 0 4px; border-radius: 2px; background: #f00; color: #fff; }
/* BASE AMOUNT / TIP / CASH BACK / TOTAL with their sums, then one row a payment: its name as the
   desktop's Blue check button (DarkOrange when checked), its figures as Blue Vera Mono buttons */
.till-familiar .tset-cols, .till-familiar .tset-row {
    display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 3px;
}
.till-familiar .tset-cols { flex: 0 0 auto; padding: 14px 0 8px; text-align: center; font: 700 15px/1.4 var(--till-mono-font); }
.till-familiar .tset-col-lbl { display: block; font: 700 11px/1.4 var(--till-button-font); }
.till-familiar .tset-rows { flex: 1 1 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.till-familiar .tset-row { flex: 0 0 64px; }
.till-familiar .tset-pay, .till-familiar .tset-fig {
    min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 2px 4px; box-sizing: border-box; border: 1px solid rgba(0, 0, 0, .18); border-radius: 0;
    background: #0000ff; color: #fff; cursor: pointer; overflow: hidden; touch-action: manipulation;
}
.till-familiar .tset-pay { font: 700 13px/1.15 var(--till-button-font); overflow-wrap: anywhere; }
.till-familiar .tset-fig { font: 700 15px/1 var(--till-mono-font); }
.till-familiar .tset-pay:active:not(:disabled), .till-familiar .tset-fig:active:not(:disabled) { filter: brightness(.9); }
.till-familiar .tset-pay--on { background: #ff8c00; }
.till-familiar .tset-pay:disabled, .till-familiar .tset-fig:disabled { background: #808080; color: #e0e0e0; cursor: default; }
.till-familiar .tset-pay--void { text-decoration: line-through; }
.till-familiar .tset-pay-note { font: 400 10px/1.1 var(--till-button-font); }
/* SHOW / HIDE VOIDED: the basket's light check button with red type */
.till-familiar .tset-voided {
    flex: 0 0 auto; margin-top: 3px; min-height: 24px; padding: 3px 8px; box-sizing: border-box; border: 1px solid #abbad0;
    background: #e1edfa; color: #f00; text-align: center; font: 700 11px/1.5 var(--till-button-font); cursor: pointer;
}
.till-familiar .tset-voided--on { background: #ffe48a; border-color: #c2762b; }
.till-familiar .tkey.tset-delete { flex: 0 0 auto; margin-top: 6px; min-height: 50px; font-size: 1.15rem; }
/* TOTAL / RECEIVED / BALANCE: Segoe 14pt bold over Vera Mono 12pt bold, in the canvas's ink */
.till-familiar .tset-big { flex: 0 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 0 12px; text-align: center; }
.till-familiar .tset-big-lbl { font: 700 19px/1.3 var(--till-button-font); }
.till-familiar .tset-big-val { font: 700 16px/1.5 var(--till-mono-font); }

/* the tenders (TillTenderTile, also Payment Change): three a row, 100px, the name in white bold at the
   top and the tender's picture under it; they scroll above the summary */
.till-familiar .tset-right { min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.till-familiar .tset-tenders {
    flex: 1 1 0; min-height: 100px; overflow-y: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 100px; gap: 3px; align-content: start;
}
.till-familiar .tkey.ttd-tile {
    flex-direction: column; justify-content: flex-start; gap: 4px; padding: 6px 4px; border-radius: 0; overflow: hidden;
    font-size: 14.5px; text-transform: none; white-space: normal; overflow-wrap: anywhere;
}
.till-familiar .ttd-name { flex: 0 0 auto; }
.till-familiar .ttd-img { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; }
.till-familiar .ttd-img img { max-height: 100%; }
/* a foreign tender's currency + "Rate = n" (B09): the desktop's extra text, small at the bottom */
.till-familiar .ttd-rate { flex: 0 0 auto; margin-top: auto; font: 700 9.5px/1.2 var(--till-button-font); }
.till-familiar .tkey.tset-qr { flex: 0 0 auto; min-height: 44px; font-size: 1rem; text-transform: none; }
.till-familiar .tset-fallback { flex: 0 0 auto; display: flex; gap: 6px; }
.till-familiar .tset-fallback .tkey { flex: 1 1 0; min-height: 52px; font-size: 1.2rem; }
/* the receipt summary (SummaryPanel): "Receipt #…" over a white box of Vera Mono lines */
.till-familiar .tset-summary { flex: 0 0 auto; display: flex; flex-direction: column; }
.till-familiar .tset-sum-cap { padding: 2px 0; text-align: center; font: 700 15px/1.3 var(--till-mono-font); color: var(--till-ink, #fff); }
.till-familiar .tset-sum {
    margin: 0 18px; padding: 6px 8px; min-height: 150px; box-sizing: border-box; background: #fff; color: #000;
    white-space: pre; overflow: hidden; font: 700 14.5px/1.25 var(--till-mono-font);
}


/* ---- Split (S6): the desktop's SplitUC ----
   PosSplit's .tsp: the SplitModes column (82px), the checks - the opened one on the left third, the others
   two by two on pages (CheckLines) - and the SplitNavigation bar (56px) over the status strip. A check
   (CheckLine) is a ▼ [n / ORDER] ▲ bar over the order screen's white basket (.trb) and a green total; the
   current check is framed DarkOrange, a check that would take the waiting selection dashed. */

.till-familiar .pos-fill-root:has(> .tsp) { height: calc(100dvh - var(--till-strip-h) - 2 * var(--till-gutter)); min-height: 0; }
.till-familiar .tsp {
    height: 100%; display: grid; grid-template-columns: 82px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 56px; gap: 4px;
}
.till-familiar .tsp-modes { min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.till-familiar .tkey.tsp-sel {
    flex: 0 0 64px; padding: 2px; background: #2288ff; font-size: 12px; white-space: normal; text-align: center;
}
.till-familiar .tsp-gap { flex: 0 0 16px; }
/* a mode: Blue, DarkOrange while on; the desktop's "MODE" extra line at the bottom */
.till-familiar .tkey.tsp-flag {
    flex: 0 0 99px; flex-direction: column; justify-content: space-between; padding: 14px 2px 4px; background: #0000ff;
    font-size: 12px; white-space: normal; text-align: center;
}
.till-familiar .tkey.tsp-flag--on { background: #ff8c00; }
.till-familiar .tsp-flag-extra { font: 400 9px/1 var(--till-button-font); }
.till-familiar .tkey.tsp-sel:disabled, .till-familiar .tkey.tsp-flag:disabled { background: #808080; }

.till-familiar .tsp-checks { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4px; }
.till-familiar .tsp-current { min-height: 0; display: flex; }
.till-familiar .tsp-others { min-height: 0; display: flex; flex-direction: column; gap: 4px; }
.till-familiar .tsp-page {
    flex: 1 1 0; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr); gap: 4px;
}
.till-familiar .tsp-page--rows2 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.till-familiar .tsp-tabs { flex: 0 0 50px; display: flex; justify-content: center; gap: 4px; }
.till-familiar .tkey.tsp-tab { flex: 0 0 80px; background: #0000ff; font-size: 13px; }
.till-familiar .tkey.tsp-tab--on { background: #ff8c00; text-decoration: underline; }

.till-familiar .tsp-check {
    flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 3px; padding: 3px;
    border-radius: 2px; cursor: pointer;
}
.till-familiar .tsp-check--cur { background: #ff8c00; }
.till-familiar .tsp-check--target { outline: 3px dashed #ff8c00; outline-offset: -3px; }
.till-familiar .tsp-seatbar { flex: 0 0 46px; display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 4px; }
.till-familiar .tkey.tsp-arrow { padding: 0; background: #2288ff; }
.till-familiar .tkey.tsp-arrow .mud-icon-root { font-size: 26px; width: 26px; height: 26px; }
.till-familiar .tkey.tsp-seat { flex-direction: column; gap: 0; padding: 0 4px; background: #0000ff; }
.till-familiar .tsp-check--cur .tkey.tsp-seat { background: #ff8c00; border-color: #fff; }
.till-familiar .tsp-seat-nr { font: 700 18px/1.1 var(--till-button-font); }
.till-familiar .tsp-seat-extra { font: 400 10px/1.2 var(--till-button-font); }
.till-familiar .tsp-check--target .tsp-seat-extra { font-weight: 700; }
/* the check's rows: Item | Price (the desktop's CheckLine hides Guest and Sent; the ✓ and a share's
   "1/2" ride on the item's first line) */
.till-familiar .trb.tsp-basket { flex: 1 1 0; }
.till-familiar .trb-row.tsp-row { grid-template-columns: minmax(0, 1fr) 72px; }
.till-familiar .tsp-name { display: flex; align-items: baseline; gap: 4px; }
.till-familiar .tsp-name > span:first-child { flex: 1 1 auto; min-width: 0; }
.till-familiar .tsp-share {
    flex: 0 0 auto; padding: 0 5px; border-radius: 6px; background: #9400d3; color: #fff; font: 700 11px/16px var(--till-button-font);
}
.till-familiar .tsp-total {
    flex: 0 0 28px; display: flex; align-items: center; justify-content: center; background: #008000; color: #fff;
    font: 700 20px/1 var(--till-mono-font);
}

/* SplitNavigation: ADD NEW ORDER | gap | SPLIT EVENLY, COMBINE ALL | gap | CANCEL, SPLIT CHECK (its columns) */
.till-familiar .tsp-bar { grid-column: 1 / -1; display: grid; grid-template-columns: 18.5fr 20px 18.5fr 18.5fr 20px 18.5fr 26fr; gap: 4px; }
.till-familiar .tsp-bar .tkey { font-size: 1.05rem; }
.till-familiar .tkey.tsp-blue { background: #0000ff; }
.till-familiar .tkey.tsp-cancel { font-size: 1.2rem; }
.till-familiar .tsp-bar .mud-icon-root.tsp-bar-icon { font-size: 30px; width: 30px; height: 30px; }
.till-familiar .tsp-apply-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.till-familiar .tsp-apply-text > span:first-child { font-size: 1.45rem; }
.till-familiar .tsp-apply-extra { font: 400 9px/1 var(--till-button-font); }


/* ---- Transfer items (S6): one popup in the desktop's pieces ----
   PosTransferItemsDialog's .txi: the lines that move (the basket, a preview: .trb--preview) on the left;
   OPEN ORDER / NEW TABLE / NEW TAB as check buttons (Blue, DarkOrange when on), then "Select existing Table or
   Tab:" - waiter chips (the board's) over the board's tiles, the chosen one ringed DarkOrange - or the new
   order's fields and "Open it for:" staff tiles. A big red CANCEL and green TRANSFER ITEMS. */

.till-familiar .mud-dialog:has(.txi) { width: calc(100vw - 32px); max-width: 1100px; }
.till-familiar .txi { display: flex; gap: 8px; height: min(560px, calc(100dvh - 260px)); }   /* + title and actions: inside MudBlazor's dialog limit */
.till-familiar .txi-lines { flex: 0 0 300px; min-height: 0; display: flex; flex-direction: column; }
.till-familiar .trb--preview { border: 1px solid #abbad0; }
.till-familiar .trb--preview .trb-row { cursor: default; }
.till-familiar .txi-dest { flex: 1 1 auto; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.till-familiar .txi-tabs { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.till-familiar .txi-label { flex: 0 0 auto; margin-right: 6px; font: 700 1.05rem/1.2 var(--till-button-font); }
.till-familiar .tkey.txi-tab { flex: 1 1 0; height: 50px; background: #0000ff; font-size: 1.05rem; }
.till-familiar .tkey.txi-tab--on { background: #ff8c00; text-decoration: underline; }
.till-familiar .txi-title { flex: 0 0 auto; text-align: center; font: 700 1.15rem/1.3 var(--till-button-font); }
.till-familiar .tb-chip.txi-chip { background: #4169e1; }
.till-familiar .txi-tiles {
    flex: 1 1 0; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, 160px);
    grid-auto-rows: 100px; gap: 6px; align-content: start; padding: 5px;
}
.till-familiar .txi-tile { min-width: 0; min-height: 0; display: flex; border-radius: 4px; }
.till-familiar .txi-tile > .tt-tile { flex: 1 1 auto; }
.till-familiar .txi-tile--on { outline: 4px solid #ff8c00; outline-offset: 1px; }
.till-familiar .txi-fields { flex: 0 0 auto; }
.till-familiar .till-display.txi-name { text-align: left; font-family: var(--till-button-font); }
.till-familiar .tkey.txi-retry { min-width: 160px; min-height: 48px; font-size: 1.1rem; }
.till-familiar .mud-dialog:has(.txi) .mud-dialog-actions { justify-content: space-between; }
.till-familiar .tkey.txi-cancel { min-width: 200px; min-height: 60px; font-size: 1.4rem; }
.till-familiar .tkey.txi-ok { flex: 0 1 380px; min-height: 60px; font-size: 1.4rem; }
.till-familiar .txi-ok .mud-icon-root.txi-ok-icon { font-size: 30px; width: 30px; height: 30px; }

/* staff tiles (TillStaffTiles): the desktop's employee buttons, Blue, the chosen one DarkOrange; the keyboard
   key filters by name */
.till-familiar .tstaff { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.till-familiar .tstaff-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.till-familiar .tstaff-title { flex: 1 1 auto; font: 700 1.1rem/1.2 var(--till-button-font); }
.till-familiar .tstaff-filter {
    padding: 4px 10px; border: 2px solid #4466dd; border-radius: 2px; background: #fff; color: #000;
    font: 700 1rem/1.2 var(--till-button-font);
}
.till-familiar .tkey.tstaff-key { flex: 0 0 52px; height: 40px; font-size: 1.1rem; }
.till-familiar .tstaff-grid {
    flex: 1 1 0; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    grid-auto-rows: 64px; gap: 6px; align-content: start; padding: 4px;
}
.till-familiar .tstaff-grid > .temp-note { grid-column: 1 / -1; }
.till-familiar .tkey.tstaff-tile { flex-direction: column; gap: 2px; padding: 4px 6px; background: #0000ff; font-size: 1.05rem; text-transform: none; }
.till-familiar .tkey.tstaff-tile--on { background: #ff8c00; }
.till-familiar .tstaff-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.till-familiar .tstaff-line { font: 400 .75rem/1.2 var(--till-button-font); }


/* ---- Transfer TABLES / TABS (S6): the desktop's TransferUserForm ----
   PosTransferOrderDialog's .txo: the FROM ➜ TO boxes (Blue, the one being chosen ringed DarkOrange; a tap steps
   back to it), then "Transfer FROM:" / "Transfer TO:" staff tiles or "Select ORDERS:" - FROM's tiles at the
   board's size (.txi-tiles), a checked one ringed DarkOrange. CANCEL | TRANSFER SELECTED (n) | TRANSFER ALL in the
   desktop's Blue. */

.till-familiar .mud-dialog:has(.txo) { width: calc(100vw - 32px); max-width: 860px; }
.till-familiar .txo { display: flex; flex-direction: column; gap: 6px; height: min(540px, calc(100dvh - 260px)); }
.till-familiar .txo-pair { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px; }
.till-familiar .tkey.txo-who {
    flex: 0 0 180px; height: 72px; flex-direction: column; gap: 2px; background: #0000ff; font-size: 1.1rem; text-transform: none;
}
.till-familiar .tkey.txo-who--on { box-shadow: 0 0 0 3px #ff8c00; }
.till-familiar .txo-who-cap { font: 400 .72rem/1 var(--till-button-font); }
.till-familiar .txo-who-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.till-familiar .mud-icon-root.txo-arrow { font-size: 40px; width: 40px; height: 40px; color: var(--till-ink); }
.till-familiar .tkey.txo-cancel { min-width: 160px; min-height: 62px; font-size: 1.4rem; }
.till-familiar .tkey.txo-go { flex: 1 1 0; min-height: 62px; background: #0000ff; font-size: 1.3rem; }
.till-familiar .tkey.txo-go:disabled { background: #808080; }
.till-familiar .txo-n { font-size: .95rem; }


/* ---- Discounts (S7): the desktop's DiscountsForm ----
   PosCheckDiscountDialog / PosItemDiscountDialog's .tdc: "Select Discount:" (+ the current discount or the selected
   items), the discounts as #4466DD tiles three a row - a clearing one Red - the value, limits and card / customer flags
   in small type under the name; a tap applies it; a big red CANCEL. */

.till-familiar .mud-dialog:has(.tdc) { width: calc(100vw - 32px); max-width: 600px; }
.till-familiar .tdc { display: flex; flex-direction: column; gap: 8px; }
.till-familiar .tdc-bar { display: flex; align-items: baseline; gap: 12px; }
.till-familiar .tdc-label { flex: 1 1 auto; font: 700 1.3rem/1.2 var(--till-button-font); }
.till-familiar .tdc-ctx { flex: 0 0 auto; font: 700 1rem/1.2 var(--till-button-font); color: var(--till-ink-2); }
.till-familiar .tdc-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 89px; gap: 6px;
    max-height: calc(100dvh - 300px); overflow-y: auto;
}
.till-familiar .tkey.tdc-tile {
    flex-direction: column; justify-content: center; gap: 6px; padding: 4px 6px; border-radius: 0; background: #4466dd;
    font-size: 1.15rem; text-transform: none; white-space: normal; overflow-wrap: anywhere; text-align: center;
}
.till-familiar .tkey.tdc-tile--clear { background: #ff0000; }
.till-familiar .tkey.tdc-tile:disabled { background: #808080; }
.till-familiar .tdc-extra { font: 400 .72rem/1.2 var(--till-button-font); }
.till-familiar .tdc-note { max-width: 520px; padding: 16px 8px; text-align: center; font: 700 1.2rem/1.4 var(--till-button-font); }
.till-familiar .tkey.tdc-cancel { min-width: 216px; min-height: 60px; font-size: 1.45rem; }
/* Check tip (DriverTipDialog's .ttip-tile) in the dark theme (Android layout walk 2026-11-16, UW-36): its keys are transparent
   with a dark edge - the light theme's look - so on the dark panel they read as text, not keys. They take the till's key
   without a colour of its own (Krypton's light button); the tile's inline style sets the transparent background, hence the
   !important. The light theme and the driver app are as before. */
.till-familiar.till-pos.till-dark .ttip-tile { background: var(--till-button-back) !important; color: var(--till-button-fore) !important; }
/* My Cash on a till (UW-38): a page outside pos/, so none of the POS screens' layout - the content off the screen's edges */
.till-familiar .tmc-page { padding: 4px 8px; }


/* ---- Lookups (S7): the desktop's SELECT grids in the item lookup's look (L32) ----
   PosCustomerLookupDialog (.tlk--cust: No. / Name / Tel, the caller's hint under the grid) and PosRecipeLookupDialog
   (.tlk--recipe: the names, the tapped recipe in a white Vera Mono box beside them). The rows, selection, pager and
   keys are the item lookup's own .tlk-* rules; only the columns and the widths are set here. */

.till-familiar .mud-dialog:has(.tlk--cust) { max-width: 780px; }
.till-familiar .tlk--cust .tlk-row { grid-template-columns: 110px minmax(0, 1fr) 170px; }
.till-familiar .tcl-hint { font: 700 .9rem/1.3 var(--till-button-font); color: var(--till-ink-2); }
.till-familiar .tlk--recipe .tlk-row { grid-template-columns: minmax(0, 1fr); }
.till-familiar .tlk--recipe .tlk-grid { flex: 0 0 300px; }
.till-familiar .trc-desc {
    flex: 1 1 auto; min-width: 0; overflow-y: auto; padding: 10px 12px; border: 1px solid #abbad0; background: #fff; color: #000;
}
.till-familiar .trc-name { margin-bottom: 8px; font: 700 1.15rem/1.3 var(--till-button-font); }
.till-familiar .trc-text { white-space: pre-wrap; font: 700 1rem/1.45 var(--till-mono-font); }
.till-familiar .trc-none { color: #8a8a8a; font: 700 1rem/1.4 var(--till-button-font); }
.till-familiar .mud-dialog:has(.tlk--recipe) .mud-dialog-actions { justify-content: center; }


/* ---- Order picks (S7): MoveTableTabForm, PriceLevelsForm (change), OrderStateForm ----
   PosMoveOrderDialog's .tmv: "Select source TABLE: / TAB:" as the board's tiles (.txi-tiles), then the transfer
   popups' [FROM] ➜ [TO] boxes (.txo-pair; TO is not a button) over "Select destination TABLE:" (the open tables, the
   chosen one ringed DarkOrange) and NEW TABLE / NEW TAB in Blue (DarkOrange when that is the destination); CANCEL |
   MOVE in the desktop's Blue. PosPriceLevelDialog / PosOrderStateDialog: the new order's .tno tiles under the
   desktop's line (.tpick-label). */

.till-familiar .mud-dialog:has(.tmv) { width: calc(100vw - 32px); max-width: 860px; }
.till-familiar .tmv { display: flex; flex-direction: column; gap: 6px; height: min(540px, calc(100dvh - 260px)); }
.till-familiar .tkey.txo-who.tmv-to { cursor: default; }
.till-familiar .tkey.txo-who.tmv-to:active { filter: none; }
.till-familiar .tmv-note { flex: 0 0 auto; text-align: center; color: #ff8c00; font: 700 1rem/1.3 var(--till-button-font); }
.till-familiar .tmv-keys { flex: 0 0 auto; display: flex; justify-content: flex-end; gap: 8px; }
.till-familiar .tkey.tmv-new { min-width: 180px; height: 54px; background: #0000ff; font-size: 1.15rem; }
.till-familiar .tkey.tmv-new--on { background: #ff8c00; }
/* pilot Batch 3a / F15: the desktop MoveTableTabForm's green "SELECT TABLE FROM FLOOR PLAN" */
.till-familiar .tkey.tmv-floor { flex: 0 0 auto; align-self: center; min-width: 320px; height: 54px; background: #008000; font-size: 1.15rem; }
.till-familiar .mud-dialog:has(.tmv) .mud-dialog-actions { justify-content: space-between; }
.till-familiar .mud-dialog:has(.tmv) .tkey.txo-go { flex: 0 1 300px; }
.till-familiar .tpick-label { margin-bottom: 8px; text-align: center; font: 700 1.25rem/1.3 var(--till-button-font); }


/* ---- Notes / labels (S7): KitchenMsgForm, LabelMsgForm, FreeModifsForm ----
   PosKitchenNotePickerDialog's .tkn-grid: pure Blue tiles three a row in the desktop's Vera Mono. PosLabelsDialog's
   .tlb: the groups as the modifier popup's 90px .tcat tabs (a required group still short in yellow type), the guest
   chips (Blue, the one being asked DarkOrange), the labels as Blue Vera Mono tiles (the chosen one DarkOrange),
   SAME FOR ALL GUESTS / CLEAR, then CANCEL + START ORDER. PosFreeModifierRemoveDialog's .tfm-list: one check tile a
   row, Blue, Red when checked; CANCEL + DONE "(n selected)". */

.till-familiar .mud-dialog:has(.tkn-grid) { width: calc(100vw - 32px); max-width: 780px; }
.till-familiar .tkn-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 89px; gap: 6px;
    max-height: calc(100dvh - 300px); overflow-y: auto;
}
.till-familiar .tkey.tkn-tile {
    border-radius: 0; background: #0000ff; font: 700 1rem/1.2 var(--till-mono-font); text-transform: none;
    white-space: normal; overflow-wrap: anywhere; text-align: center;
}

.till-familiar .mud-dialog:has(.tlb) { width: calc(100vw - 32px); max-width: 860px; }
.till-familiar .tlb { display: flex; gap: 6px; height: min(470px, calc(100dvh - 260px)); }
.till-familiar .tlb-tabs { flex: 0 0 90px; display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; }
.till-familiar .tcat.tlb-tab { flex: 0 0 90px; flex-direction: column; gap: 4px; }
.till-familiar .tlb-tab-n { font: 400 11px/1 var(--till-button-font); }
.till-familiar .tlb-tab--short:not(.tcat--on) { color: #ffeb3b; }
.till-familiar .tlb-page { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.till-familiar .tlb-bar { flex: 0 0 auto; display: flex; align-items: baseline; gap: 12px; }
.till-familiar .tlb-title { flex: 1 1 auto; font: 700 1.2rem/1.3 var(--till-button-font); }
.till-familiar .tlb-req { flex: 0 0 auto; color: var(--till-fail); font: 700 1.1rem/1.3 var(--till-button-font); }
.till-familiar .tlb-guests { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 4px; }
.till-familiar .tkey.tlb-guest { height: 40px; padding: 2px 10px; background: #0000ff; font-size: .95rem; text-transform: none; }
.till-familiar .tkey.tlb-guest--on { background: #ff8c00; }
.till-familiar .tlb-grid {
    flex: 1 1 0; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
    grid-auto-rows: 76px; gap: 6px; align-content: start;
}
.till-familiar .tkey.tlb-tile {
    flex-direction: column; gap: 2px; border-radius: 0; background: #0000ff; font: 700 .95rem/1.2 var(--till-mono-font);
    text-transform: none; white-space: normal; overflow-wrap: anywhere; text-align: center;
}
.till-familiar .tkey.tlb-tile--on { background: #ff8c00; }
.till-familiar .tlb-tile-name { font: 400 .75rem/1.2 var(--till-button-font); }
.till-familiar .tlb-keys { flex: 0 0 auto; display: flex; justify-content: flex-end; gap: 8px; }
.till-familiar .tkey.tlb-key { min-width: 200px; height: 50px; font-size: 1.05rem; }
.till-familiar .mud-dialog:has(.tlb) .mud-dialog-actions { justify-content: space-between; }
.till-familiar .tkey.tlb-cancel { min-width: 200px; min-height: 60px; font-size: 1.4rem; }
.till-familiar .tkey.tlb-start { flex: 0 1 340px; min-height: 60px; font-size: 1.4rem; }

.till-familiar .mud-dialog:has(.tfm-list) { width: calc(100vw - 32px); max-width: 440px; }
.till-familiar .tfm-list { display: flex; flex-direction: column; gap: 4px; max-height: calc(100dvh - 300px); overflow-y: auto; }
.till-familiar .tkey.tfm-row { min-height: 52px; border-radius: 0; background: #0000ff; font-size: 1.15rem; text-transform: none; }
.till-familiar .tkey.tfm-row--on { background: #ff0000; }
.till-familiar .mud-dialog:has(.tfm-list) .mud-dialog-actions { justify-content: space-between; }
.till-familiar .tkey.tfm-cancel { min-width: 130px; min-height: 64px; font-size: 1.3rem; }
.till-familiar .tkey.tfm-done { flex: 1 1 auto; min-height: 64px; flex-direction: column; gap: 2px; font-size: 1.4rem; }
.till-familiar .tfm-n { font: 400 .8rem/1 var(--till-button-font); text-transform: none; }


/* ---- Cash (S7): DecimalForm "Paid In:" + Comment, the staff cash-ups (UserCashupsUC + UserCashupReconcileForm) ----
   TillCashEntry's .tce: the entry box over the green note keys (+10 … +500, they add) and the pad, the comment as a
   tap-to-key field; CANCEL + a wide OK (the desktop's 121 / 276 px). PosUserCashupsDialog's .tuc: the bags as the
   white grid, the keys under it; an action takes the popup over - the cash entry, the reconcile lines in a white
   Vera Mono box beside the tap-to-key fields and the live variance, the staff tiles, or the question in big type. */

.till-familiar .tce { display: flex; flex-direction: column; gap: 6px; }
.till-familiar .tce .tn-pad { margin-top: 0; }
.till-familiar .tce-notes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.till-familiar .tkey.tce-note { height: 44px; font-size: 1.05rem; }
.till-familiar .till-display.tce-comment-text { min-height: 44px; text-align: left; font-family: var(--till-button-font); font-size: 1.1rem; }
.till-familiar .mud-dialog-actions:has(> .tce-ok) { justify-content: space-between; }
.till-familiar .tkey.tce-cancel { min-width: 130px; min-height: 64px; font-size: 1.3rem; }
.till-familiar .tkey.tce-ok { flex: 1 1 auto; min-height: 64px; font-size: 1.6rem; }
.till-familiar .tcash-drawer { margin-bottom: 6px; font: 700 1.15rem/1.3 var(--till-button-font); }
.till-familiar .tcash-cashup { display: block; font: 400 .85rem/1.3 var(--till-button-font); color: var(--till-ink-2); }
.till-familiar .tcash-warn { margin-bottom: 6px; color: #ff8c00; font: 700 .95rem/1.3 var(--till-button-font); }
.till-familiar .temp-note.tcash-blocked { max-width: 460px; font-size: 1.25rem; }

.till-familiar .mud-dialog:has(.tuc) { width: calc(100vw - 32px); max-width: 920px; }
.till-familiar .tuc { display: flex; flex-direction: column; gap: 6px; }
.till-familiar .tuc-bar { display: flex; align-items: baseline; gap: 12px; }
.till-familiar .tuc-eod { flex: 0 0 auto; font: 700 1.1rem/1.3 var(--till-button-font); }
.till-familiar .tuc-off { flex: 1 1 auto; text-align: right; color: #ff8c00; font: 700 .9rem/1.3 var(--till-button-font); }
.till-familiar .tlk-grid.tuc-grid { flex: 0 0 auto; height: min(380px, calc(100dvh - 340px)); overflow-y: auto; }
.till-familiar .tuc-grid .tlk-row { grid-template-columns: minmax(0, 1fr) 50px 90px 80px 80px 80px 130px 100px; }
.till-familiar .tuc-keys { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.till-familiar .tkey.tuc-key { min-width: 120px; height: 52px; font-size: 1.05rem; }
.till-familiar .tkey.tuc-reopen { background: #8b0000; }   /* the desktop's DarkRed REOPEN */
.till-familiar .tkey.tuc-key:disabled { background: #808080; }
.till-familiar .tkey.tuc-close { min-width: 216px; min-height: 60px; font-size: 1.45rem; }
.till-familiar .tuc-who { text-align: center; font: 700 1.15rem/1.3 var(--till-button-font); }
.till-familiar .tuc .tce { width: 100%; max-width: 460px; margin: 0 auto; }
.till-familiar .tuc-form { display: flex; flex-direction: column; gap: 8px; height: min(440px, calc(100dvh - 300px)); }
.till-familiar .tuc-rec { display: flex; gap: 12px; max-height: calc(100dvh - 300px); overflow-y: auto; }
.till-familiar .tuc-lines { flex: 1 1 0; min-width: 0; }
.till-familiar .tuc-box {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 10px;
    border: 1px solid #abbad0; background: #fff; color: #000; font: 700 .95rem/1.45 var(--till-mono-font);
}
.till-familiar .tuc-box > span:nth-child(even) { text-align: right; }
.till-familiar .tuc-total { padding-top: 2px; border-top: 1px solid #000; }
.till-familiar .tuc-inputs { flex: 0 0 320px; display: flex; flex-direction: column; gap: 6px; }
.till-familiar .tuc-var { text-align: center; font: 700 1.1rem/1.3 var(--till-button-font); }
.till-familiar .tuc-var--ok { color: var(--till-ok); }
.till-familiar .tuc-var--short { color: var(--till-fail); }
.till-familiar .tuc-var--over { color: #ff8c00; }
.till-familiar .tuc-ask { padding: 24px 8px; white-space: pre-line; text-align: center; font: 700 1.3rem/1.4 var(--till-button-font); }


/* ---- History / EOD (S7): ReceiptDetailsForm, the receipts EntityPopup, End Of Day ----
   PosOrderDetailsDialog's .tod: the order screen's read-only basket (.trb--ro) beside the desktop's "Order Details"
   text as a white Vera Mono block, a big CLOSE. TillReceiptGrid (.tlk--rcpt): the item lookup's grid with the
   receipts' columns. PosEndOfDayDialog's .teod: the rows in the message type (blockers red, consequences DarkOrange),
   the typed number as a tap-to-key field, CANCEL | REFRESH | CLOSE END OF DAY. */

.till-familiar .mud-dialog:has(.tod) { width: calc(100vw - 32px); max-width: 860px; }
.till-familiar .tod { display: flex; gap: 10px; height: min(520px, calc(100dvh - 240px)); }
.till-familiar .tod-basket { flex: 0 0 360px; min-height: 0; display: flex; flex-direction: column; }
.till-familiar .tod-basket .trb--ro { flex: 1 1 auto; max-height: none; }
.till-familiar .tod-box {
    flex: 1 1 auto; min-width: 0; align-self: flex-start; max-height: 100%; overflow-y: auto; display: grid;
    grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; padding: 10px 12px; border: 1px solid #abbad0;
    background: #fff; color: #000; font: 700 .95rem/1.45 var(--till-mono-font);
}
.till-familiar .tod-label { color: #555; }
.till-familiar .tod-gap { height: 6px; }
.till-familiar .tod-total { padding-top: 2px; border-top: 1px solid #000; font-size: 1.05rem; }
.till-familiar .tkey.tod-close { min-width: 340px; min-height: 56px; font-size: 1.4rem; }

.till-familiar .mud-dialog:has(.tlk--rcpt) { max-width: 960px; }
.till-familiar .tlk--rcpt .tlk-row { grid-template-columns: 150px 130px 70px minmax(0, 1fr) 100px 100px; }
.till-familiar .tlk-empty--red { color: #d00000; }

.till-familiar .mud-dialog:has(.teod) { width: calc(100vw - 32px); max-width: 680px; }
.till-familiar .teod { display: flex; flex-direction: column; gap: 6px; max-height: calc(100dvh - 260px); overflow-y: auto; }
.till-familiar .teod-head { font: 700 1.35rem/1.3 var(--till-button-font); }
.till-familiar .teod-run { margin-left: 10px; font: 700 1rem/1.3 var(--till-mono-font); color: var(--till-ink-2); }
.till-familiar .teod-line { padding: 6px 10px; border-left: 4px solid; font: 700 1.05rem/1.35 var(--till-button-font); }
.till-familiar .teod-line--block { border-color: var(--till-fail); color: var(--till-fail); }
.till-familiar .teod-line--warn { border-color: #ff8c00; color: #ff8c00; }
.till-familiar .teod-clocked { font: 700 .9rem/1.35 var(--till-button-font); color: var(--till-ink-2); }
.till-familiar .teod-note { text-align: center; font: 700 1rem/1.35 var(--till-button-font); color: var(--till-ink-2); }
.till-familiar .tn-field.teod-echo { margin-top: 6px; }
.till-familiar .mud-dialog:has(.teod) .mud-dialog-actions { justify-content: center; }
.till-familiar .tkey.teod-cancel, .till-familiar .tkey.teod-refresh { min-width: 150px; min-height: 60px; font-size: 1.3rem; }
/* pilot B-EOD: the desktop's "clock them out?" loop, shown only while staff block the close (no CLOSE END OF DAY then) */
.till-familiar .tkey.teod-clockout { flex: 1 1 auto; min-height: 60px; font-size: 1.3rem; }
.till-familiar .tkey.teod-go { flex: 1 1 auto; min-height: 60px; font-size: 1.3rem; }
.till-familiar .tkey.teod-go:disabled { background: #808080; }
.till-familiar .tkey.teod-done { min-width: 216px; min-height: 60px; font-size: 1.45rem; }


/* ---- Settle extras (S7): Q2bRoomsForm, the SMS DecimalForm, the pay QRs ----
   PosHmsRoomDialog's .thms-grid: the rooms as big tiles three a row (Green / the hotel's colour / Red over the daily
   limit), "room, guest" over "#folio, Max x"; the status line green or red. PosSmsPayLinkDialog: the cash entry's
   pad layout ("Phone Number:"), the already-sent line in DarkOrange. The QR popups: the amount in Vera Mono. */

.till-familiar .mud-dialog:has(.thms-grid) { width: calc(100vw - 32px); max-width: 780px; }
.till-familiar .thms-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 111px; gap: 6px;
    max-height: calc(100dvh - 300px); overflow-y: auto;
}
.till-familiar .tkey.thms-tile {
    flex-direction: column; gap: 6px; border-radius: 0; font-size: 1.1rem; text-transform: none;
    white-space: normal; overflow-wrap: anywhere; text-align: center;
}
.till-familiar .thms-extra { font: 400 .8rem/1.2 var(--till-button-font); }
.till-familiar .thms-status { padding: 12px 8px; text-align: center; font: 700 1.25rem/1.3 var(--till-button-font); }
.till-familiar .thms-status--ok { color: var(--till-ok); }
.till-familiar .thms-status--err { color: var(--till-fail); }
.till-familiar .tsms-sent { margin-bottom: 8px; color: #ff8c00; font: 700 .95rem/1.3 var(--till-button-font); }
.till-familiar .tqr-amount { font-family: var(--till-mono-font) !important; font-weight: 700 !important; }


/* ---- Payment Change: the desktop's SettleUC in payment-change mode ----
   PosPaymentChange draws settle's .tset (the order's bar, the payment lines, TOTAL / PAID BEFORE / BALANCE, the
   tenders, the white summary). A line deleted on this screen stays in the list, grey and struck through, until
   FINALIZE applies the change; the settle bar is DELETE PAYMENT, CANCEL and FINALIZE in the desktop's six slots. */

.till-familiar.till-pos .tset-flag--note { background: #ff8c00; }
.till-familiar.till-pos .tpc-row--del :is(.tset-pay, .tset-fig) { background: #808080; color: #e0e0e0; text-decoration: line-through; }
.till-familiar.till-pos .tpc-row--del .tset-pay--on { background: #ff8c00; color: #fff; }
.till-familiar.till-pos .tpc-note { padding: 4px 18px 0; text-align: center; font: 400 12px/1.3 var(--till-button-font); color: var(--till-ink, #fff); }
.till-familiar.till-pos .tpc-bar {
    flex: 0 0 56px; margin-top: 4px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px;
}
.till-familiar.till-pos .tpc-bar > .tkey { font-size: 1.05rem; }
.till-familiar.till-pos .tpc-delete { grid-column: 1; }
.till-familiar.till-pos .tpc-cancel { grid-column: 5; }
.till-familiar.till-pos .tpc-final { grid-column: 6; }
.till-familiar.till-pos .tpc-bar .mud-icon-root.tpc-bar-icon { font-size: 28px; width: 28px; height: 28px; }
.till-familiar.till-pos .tpc-final-text { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.till-familiar.till-pos .tpc-final-text > span:first-child { font-size: 1.35rem; }
.till-familiar.till-pos .tpc-final-extra { font: 400 9px/1 var(--till-button-font); }


/* ---- Phones and portrait tablets (P1): the familiar look below 1024 px ----
   Pawel 2026-10-11: "similar look and feel for the mobile size as well". The POS screens show the familiar
   look at every width (PosLook); below 1024 px this lays it out - nothing here can reach a wider window:
   - a portrait tablet (600-1023 px wide, portrait): the desktop's pieces stacked - the basket and its column
     of arrows on top, the menu under it, the bars the full width; below 720 px settle in one column;
   - a window 600-1023 px wide in landscape: the desktop's layout as it is (the rules above, from 600 px);
   - a phone (< 600 px wide): the order screen as two panes - the menu, and the basket with its arrows -
     switched by a tap on the green total; the item grid, MISC and the modifiers fold each desktop row into
     rows of three or four (PosMenuGrid.FoldPlacement: --fc / --fr, every button keeps a fixed place); a bar
     of one row folds into rows of three, a bar of more rows pages sideways three columns at a time with a
     dot a page (PosNavBar); the board's tiles two a row, its areas a row on top; settle in one column;
     the popups the phone's width.
   The phone's hooks in the markup (the total's tag, the bar's dots) are hidden on a wider window. */

.till-familiar .trb-pane, .till-familiar .pos-navbar-dots, .till-familiar .tord-catshort { display: none; }
.till-familiar .pos-navbar-snap { display: none; }   /* a phone's page snap points (PosNavBar, F27) */

/* The POS pages' own <style> lay the web look out as one stacked column at <= 800 px (categories wrapped
   over the items, the receipt under the menu at 60vh, the right column's buttons unstretched); the familiar
   look keeps its own layout there */
@media (max-width: 800px) {
    .till-familiar .pos-order-screen.tord { flex: 1 1 0; }
    .till-familiar .tord .pos-order-receipt { height: auto; order: 0; }
    .till-familiar .tord .pos-order-menu { order: 0; }
    .till-familiar .tord .pos-order-menu-body { flex: 1 1 0; min-height: 0; }
    .till-familiar .tord .pos-order-items { overflow-y: auto; display: flex; flex-direction: column; --pos-grid-fill-row: 1fr; }
    .till-familiar .tord .pos-order-items > .pos-menu-grid {
        container-type: size;
        --pos-btn-grow: min(100cqh / var(--pos-grid-rows) / 56, 100cqw / var(--pos-grid-cols) / 90);
        --pos-btn-label-max: max(2.4em, round(down, 100cqh / var(--pos-grid-rows) - 1.1em - 10px, 1.15em));
    }
    .till-familiar .tord .pos-order-items > .pos-menu-grid .pos-grid-btn:has(img) {
        --pos-btn-label-max: max(2.4em, round(down, 100cqh / var(--pos-grid-rows) - 1.1em - 42px, 1.15em));
    }
    .till-familiar .tord .pos-order-cats { flex-direction: column; flex-wrap: nowrap; overflow-y: auto; order: 0; margin-bottom: 0; justify-content: flex-start; }
    .till-familiar .tord .pos-order-cats > .tcat { width: 100%; }
    .till-familiar .pos-navbar--fill { display: flex; height: 100%; }
    .till-familiar .pos-restaurant-screen { grid-template-rows: minmax(0, 1fr); min-height: 0; }
    .till-familiar .pos-restaurant-main { min-height: 0; overflow-y: auto; }
    /* settle: a narrower tender column, so the payments keep room on a 600-800 px window */
    .till-familiar .tset { grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); }
    /* payment change: "PAID BEFORE" on one line in the narrower column */
    .till-familiar.till-pos .tpc .tset-big-lbl { font-size: 16px; }
}

/* payment change: the bar's six places get narrow below 1024 px - smaller type and icons; no icons on a 600-719 px
   window (a 7" tablet held upright) */
@media (max-width: 1023.98px) {
    .till-familiar.till-pos .tpc-bar > .tkey { gap: 4px; padding: 2px 4px; font-size: .95rem; }
    .till-familiar.till-pos .tpc-bar .mud-icon-root.tpc-bar-icon { font-size: 22px; width: 22px; height: 22px; }
    .till-familiar.till-pos .tpc-final-text > span:first-child { font-size: 1.1rem; }
}
@media (min-width: 600px) and (max-width: 719.98px) {
    .till-familiar.till-pos .tpc-bar .mud-icon-root.tpc-bar-icon { display: none; }
}

/* a portrait tablet: the basket and its arrows over the menu */
@media (min-width: 600px) and (max-width: 1023.98px) and (orientation: portrait) {
    .till-familiar.till-pos .pos-order-screen.tord,
    .till-familiar.till-pos .pos-order-screen.tord:has(> .tord-basketnav) {
        grid-template-columns: minmax(0, 1fr) 50px; grid-template-rows: minmax(0, 42fr) minmax(0, 58fr);
    }
    .till-familiar.till-pos .tord .pos-order-receipt { grid-column: 1; grid-row: 1; }
    .till-familiar.till-pos .tord:not(:has(> .tord-basketnav)) .pos-order-receipt { grid-column: 1 / -1; }
    .till-familiar.till-pos .tord .tord-basketnav { grid-column: 2; grid-row: 1; }
    .till-familiar.till-pos .tord .pos-order-menu { grid-column: 1 / -1; grid-row: 2; min-height: 0; }
}

/* a 7" tablet held upright (600-719 px): settle in the phone's one column - beside the tenders the payment
   figures were cut; the receipt summary keeps the desktop column's width */
@media (min-width: 600px) and (max-width: 719.98px) and (orientation: portrait) {
    .till-familiar.till-pos .tset { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
    .till-familiar.till-pos :is(.tset-lines, .tset-right) { display: contents; }
    .till-familiar.till-pos .tset-head, .till-familiar.till-pos .tset-lines > .mud-alert { order: 1; }
    .till-familiar.till-pos .tset-big { order: 2; padding: 6px 0 4px; }
    .till-familiar.till-pos .tset-cols { order: 3; padding: 4px 0; }
    .till-familiar.till-pos .tset-rows { order: 4; flex: 0 0 auto; overflow: visible; }
    .till-familiar.till-pos :is(.tset-voided, .tset-delete) { order: 5; }
    .till-familiar.till-pos :is(.tset-tenders, .tset-fallback, .tset-qr) { order: 6; }
    .till-familiar.till-pos .tset .tset-tenders { flex: 0 0 auto; min-height: 0; overflow: visible; grid-auto-rows: 84px; }
    .till-familiar.till-pos .tset-summary { order: 7; align-self: center; width: 404px; }
}

/* Fit & finish (lane 10, 2026-11-11): a tablet held upright (600-1023 px) -
   - the strip as a phone's: the site and the version are a tap away (Home) and the status label takes the room left, two
     lines (at 800 px the site read "ccio24 Morning" and the status "D..");
   - the bottom bars without their icons, so a caption keeps its words whole (at 800 px "Instructio n", "MODIFIER S") */
@media (min-width: 600px) and (max-width: 1023.98px) and (orientation: portrait) {
    .till-familiar.till-pos :is(.till-strip-version, .till-strip-site) { display: none; }
    .till-familiar.till-pos .till-strip-status {
        flex: 1 1 0; white-space: normal; font-size: 11px; line-height: 13px; max-height: 26px;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    }
    .till-familiar.till-pos .pos-navbar--bottom .tf-btn--fn .tf-btn-img { display: none; }
}
/* ... and a 7" one (600-719 px): the strip's fields say their values only, as a phone's (at 600 px Sign out fell off the
   edge and the status had no room) */
@media (min-width: 600px) and (max-width: 719.98px) and (orientation: portrait) {
    .till-familiar.till-pos .till-strip-lbl, .till-familiar.till-pos .till-strip-clocklong { display: none; }
    .till-familiar.till-pos .till-strip-clockshort { display: inline; }
}

/* a phone on its side (a short window): the desktop's layout in phone-sized pieces - a narrower basket, the item
   grid keeps its columns but its rows keep a finger's height and scroll, lower bars and pads */
@media (max-height: 499.98px) and (min-width: 600px) and (max-width: 1023.98px) {
    .till-familiar.till-pos { --till-strip-h: 32px; }
    .till-familiar.till-pos .pos-order-screen.tord { grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); }
    .till-familiar.till-pos .pos-order-screen.tord:has(> .tord-basketnav) { grid-template-columns: minmax(230px, 290px) 46px minmax(0, 1fr); }
    .till-familiar.till-pos .tord .pos-order-menu-body { grid-template-columns: minmax(0, 1fr) 80px; }
    .till-familiar.till-pos .tord .pos-order-items { display: block; }
    /* a row as tall as its tallest caption, a category as tall as its words (layout walk UW-14: three-line captions were cut
       at two, "Coriander & Basil Base", "Hot Beverages Smoothies Freezos") */
    .till-familiar.till-pos .tord .pos-order-items > .pos-menu-grid {
        flex: 0 0 auto; container-type: inline-size; --pos-grid-fill-row: minmax(58px, auto); --pos-btn-grow: 1px; --pos-btn-label-max: 3.45em;
    }
    .till-familiar.till-pos .tord .pos-order-cats > .tcat { flex: 0 0 auto; min-height: 52px; font-size: 12px; }
    .till-familiar.till-pos .tord-catbar { flex-basis: 36px; }
    .till-familiar.till-pos .tord-catbtn { height: 32px; }
    .till-familiar.till-pos .trb-total { flex-basis: 36px; font-size: 28px; }
    /* the basket's lines get the room of its column header and "n selected" line (F27: ~1 line showed) */
    .till-familiar.till-pos .tord :is(.trb-cols, .trb-sel) { display: none; }
    /* the strip as a phone's (F27: the status was cut, "Or…"): the phone shows its own clock, the version and the site
       are a tap away (Home); the status label takes the room left and wraps to two lines */
    .till-familiar.till-pos :is(.till-strip-version, .till-strip-clock, .till-strip-site) { display: none; }
    .till-familiar.till-pos .till-strip-status {
        flex: 1 1 0; white-space: normal; font-size: 11px; line-height: 13px; max-height: 26px;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    }
    .till-familiar.till-pos .pos-navbar--bottom .pos-menu-grid { grid-template-rows: none !important; grid-auto-rows: 42px; }
    /* settle (UW-14: 1.7 of 13 tenders showed above the receipt summary): the right column scrolls as one piece - every
       tender at 64 px a row, the summary under them, as a phone held upright has them */
    .till-familiar.till-pos .tset-right { overflow-y: auto; }
    .till-familiar.till-pos .tset .tset-tenders { flex: 0 0 auto; min-height: 0; overflow: visible; grid-auto-rows: 64px; }
    .till-familiar.till-pos .tset-summary { flex: 0 0 auto; }
    .till-familiar.till-pos .tpc-bar { flex-basis: 42px; }
    .till-familiar.till-pos .mud-dialog .mud-dialog-title { padding: 8px 12px; }
    .till-familiar.till-pos .tp-grid { grid-template-rows: 44px repeat(4, 46px) auto; gap: 5px; }
    .till-familiar.till-pos .tp-cancel { min-height: 44px; }
    .till-familiar.till-pos .tn-keys { grid-auto-rows: 46px; }
    .till-familiar.till-pos :is(.tk-board, .tk-row) { gap: 4px; }
    .till-familiar.till-pos .tk-row .tkey { height: 40px; }
    .till-familiar.till-pos .tk-display { min-height: 44px; margin-bottom: 0; padding-block: 0; }

    /* ---- the popups (Android layout walk 2026-11-16, UW-33 / UW-14) ----
       A 426 px window left a list 126-166 px and a number pad ~220 px: MudBlazor keeps 64 px for an app bar the till has
       none of, the actions took 82 px and the lists were sized for a desktop's chrome. The popup takes the window's
       height, its content and actions are lower, and every key in the action row is 44 px. */
    .till-familiar.till-pos .mud-dialog { max-height: calc(100dvh - 12px); }
    .till-familiar.till-pos .mud-dialog .mud-dialog-content { padding-top: 6px; padding-bottom: 6px; }
    .till-familiar.till-pos .mud-dialog .mud-dialog-actions { padding: 6px 12px 8px; }
    .till-familiar.till-pos .mud-dialog .mud-dialog-actions > :is(.mud-button-root, .tkey) { min-height: 44px; }

    /* the number pads (UW-33, must-fix: settle's CASH amount showed a sliver of Balance / Amount / Tip, the table number and
       Paid In lost their field, the drawer count showed only the keys): the field(s) at the left, the keys beside them -
       tender amounts, Table number / Guests / Edit price (PosNumberDialog), the manual tip, the keypad and SMS pads.
       Anything else in the popup (a customer, a notice) keeps the full width; the quick tips go under the keys. */
    .till-familiar.till-pos .mud-dialog:has(.tn-pad) { max-width: calc(100vw - 24px); }
    .till-familiar.till-pos .mud-dialog:has(.tn-pad):not(:has(.tn-quick, .tn-splits, .b5-count, .tce)) { max-width: min(640px, calc(100vw - 24px)); }
    .till-familiar.till-pos .mud-dialog-content:has(> .tn-pad) {
        display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); grid-auto-flow: row dense;
        gap: 6px 10px; align-items: start;
    }
    .till-familiar.till-pos .mud-dialog-content:has(> .tn-pad) > * { grid-column: 1 / -1; }
    .till-familiar.till-pos .mud-dialog-content:has(> .tn-pad) > :is(.tn-fields, .tn-entry) { grid-column: 1; grid-row: span 3; }
    .till-familiar.till-pos .mud-dialog-content:has(> .tn-pad) > .tn-hint { grid-column: 1; margin-top: 0; }
    .till-familiar.till-pos .mud-dialog-content:has(> .tn-pad) > .tn-pad { grid-column: 2; grid-row: span 2; margin-top: 0; }
    .till-familiar.till-pos .mud-dialog-content:has(> .tn-pad) > .tn-tips { grid-column: 2; margin-top: 0; }
    .till-familiar.till-pos .mud-dialog-content > .tn-fields { flex-direction: column; gap: 4px; }
    .till-familiar.till-pos .mud-dialog-content > .tn-fields > .tn-field { flex: 0 0 auto; padding-block: 2px; }
    .till-familiar.till-pos .mud-dialog-content > .tn-entry { flex-direction: column; align-items: stretch; gap: 2px; }
    .till-familiar.till-pos .tn-tips .tkey { flex-basis: 100px; min-height: 40px; }
    .till-familiar.till-pos :is(.tn-fields, .tn-entry) .till-display { min-height: 44px; padding-block: 0; line-height: 40px; }
    /* the drawer count (PosDrawerCashupDialog): the denominations at the left, scrolling in themselves; "how many" and the
       keys at the right, ORDERS / PAID IN/OUT under them */
    .till-familiar.till-pos .mud-dialog:has(.b5-count) { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
    .till-familiar.till-pos .b5-count {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.1fr); grid-template-rows: auto auto auto;
        grid-template-areas: "head entry" "rows pad" "rows review"; gap: 6px 10px; align-items: start;
    }
    .till-familiar.till-pos .b5-count > .b5-head { grid-area: head; margin-bottom: 0; }
    .till-familiar.till-pos .b5-count > .b5-rows { grid-area: rows; max-height: calc(100dvh - 180px); }
    .till-familiar.till-pos .b5-count > .tn-entry { grid-area: entry; }
    .till-familiar.till-pos .b5-count > .tn-pad { grid-area: pad; margin-top: 0; }
    .till-familiar.till-pos .b5-count > .b5-review { grid-area: review; }
    .till-familiar.till-pos .b5-count > .b5-review > .tkey { min-height: 40px; font-size: 1rem; }
    .till-familiar.till-pos .b5-count .till-display { min-height: 44px; padding-block: 0; line-height: 40px; }
    /* Paid In / Paid Out / the float / a drop (TillCashEntry; .tce is the customer form's class too, hence the pad): the amount,
       the note keys three a row and the comment at the left, the keys at the right */
    .till-familiar.till-pos .mud-dialog:has(.tce > .tn-pad) { width: calc(100vw - 24px); max-width: calc(100vw - 24px); }
    .till-familiar.till-pos .tce:has(> .tn-pad) {
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 1.2fr);
        grid-template-areas: "entry pad" "notes pad" "comment pad"; align-content: start; align-items: start; gap: 6px 10px;
    }
    .till-familiar.till-pos .tuc .tce:has(> .tn-pad) { max-width: none; }
    .till-familiar.till-pos .tce:has(> .tn-pad) > .tn-entry { grid-area: entry; }
    .till-familiar.till-pos .tce:has(> .tn-pad) > .tce-notes { grid-area: notes; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .till-familiar.till-pos .tce:has(> .tn-pad) > .tn-pad { grid-area: pad; }
    .till-familiar.till-pos .tce:has(> .tn-pad) > .tce-comment { grid-area: comment; }
    .till-familiar.till-pos .tce:has(> .tn-pad) .till-display { min-height: 44px; padding-block: 0; line-height: 40px; }

    /* the popup lists (UW-14: employees showed 2 of 42, transfer destinations 2.4 of 17, modifier groups 2.3 of 3, discounts
       2 of 6, MISC three rows): sized for the room the popup now has, lower tiles */
    .till-familiar.till-pos .temp-bar { margin-bottom: 4px; }
    .till-familiar.till-pos .tkey.temp-toggle { height: 32px; }
    .till-familiar.till-pos .temp-grid { max-height: calc(100dvh - 176px); grid-auto-rows: 64px; padding: 4px; }
    .till-familiar.till-pos .tmod { height: calc(100dvh - 140px); }
    .till-familiar.till-pos .tcat.tmod-tab { flex-basis: 64px; }
    .till-familiar.till-pos .txi { height: calc(100dvh - 140px); }
    .till-familiar.till-pos .txi-lines { flex-basis: 300px; }   /* PW-20: at 240 the names broke mid-word ("Capriccios|a") */
    .till-familiar.till-pos .tkey.txi-tab { height: 40px; }
    .till-familiar.till-pos .txi-tiles { grid-template-columns: repeat(auto-fill, 136px); grid-auto-rows: 80px; }
    .till-familiar.till-pos :is(.txo, .tmv) { height: calc(100dvh - 140px); }
    .till-familiar.till-pos .tdc-grid { max-height: calc(100dvh - 166px); grid-auto-rows: minmax(64px, auto); }
    .till-familiar.till-pos .tkey.tdc-tile { gap: 2px; font-size: 1rem; }
    .till-familiar.till-pos .tkn-grid { max-height: calc(100dvh - 140px); grid-auto-rows: 64px; }
    .till-familiar.till-pos .tlk-body { height: calc(100dvh - 186px); }
    /* layout polish (UW-39): the customer lookup has its hint(s) under the list, and on its side "The next new order gets this
       customer." sat half under the keys - the lookup is the popup's room, the list what the search and the hints leave */
    .till-familiar.till-pos .tlk--cust { height: calc(100dvh - 140px); }
    .till-familiar.till-pos .tlk--cust .tlk-body { flex: 1 1 0; height: auto; min-height: 0; }
    .till-familiar.till-pos .tlb { height: calc(100dvh - 140px); }
    .till-familiar.till-pos .tod { height: calc(100dvh - 140px); }
    .till-familiar.till-pos .teod { max-height: calc(100dvh - 130px); }
    /* MISC: a row as tall as its longest caption (PW-18, popup walk 2026-11-18: "PAID IN OUT REPRINT" printed over its "CASH
       DRAWER" in a fixed 52 px row); by the dialog, so a kitchen screen held sideways gets the lower tabs and rows too */
    .till-familiar .tcat.tmisc-tab { flex-basis: 64px; }
    .till-familiar .tmisc-page .pos-menu-grid { grid-auto-rows: minmax(52px, auto); }
    /* the Zapper / SnapScan code within the window (PW-13): its fixed 6 px modules ran the code's bottom rows under the fold
       (a fifth at 900 x 426, half at 740 x 360); the SVG carries a viewBox (PosQr.Scalable), so it scales, quiet zone kept */
    .till-familiar .tqr-card > svg { width: auto; max-height: calc(100dvh - 236px); }
    /* the one-tap pickers with more than five options three a row (PW-20: two 260 px columns, a third of the popup empty) */
    .till-familiar.till-pos .mud-dialog:has(.tch-grid--two) { width: calc(100vw - 24px); max-width: 860px; }
    .till-familiar.till-pos .tch-grid--two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .till-familiar.till-pos .tch-grid--two .tch-option { min-height: 56px; font-size: 1.1rem; }
    /* the void reason's comment keyboard (PW-06: BACK / DONE under the fold at 900 x 426) */
    .till-familiar.till-pos .mud-dialog:has(.tvr-actions) .tk-row .tkey { height: 32px; }
    .till-familiar.till-pos .tvr-label { margin-bottom: 4px; font-size: 1rem; }
    .till-familiar.till-pos .tvr-actions { margin-top: 4px; }
    .till-familiar.till-pos .tvr-actions .tkey { min-height: 44px; }
}

/* a phone */
@media (max-width: 599.98px) {
    /* the status strip: a phone's is TillStatusStrip.razor.css's, the same in the Back Office and on the kitchen board
       (values only, short forms, the ⋯ key) - here only its height */
    .till-familiar.till-pos { --till-strip-h: 32px; }

    /* every POS screen: exactly the height above the strip - the bar sits on it, the panes scroll inside */
    .till-familiar.till-pos .pos-fill-root:has(> .pos-restaurant-screen),
    .till-familiar.till-pos .pos-fill-root:has(> .pos-order-screen),
    .till-familiar.till-pos .pos-fill-root:has(> .tset) {
        height: calc(100dvh - var(--till-strip-h) - 2 * var(--till-gutter)); min-height: 0; display: flex; flex-direction: column;
    }

    /* the bottom bars: three buttons a row, 46px. One desktop row folds into rows of three; more rows keep
       their rows and page sideways (a swipe snaps to the next three columns), the page's dot lit (pos.js) */
    .till-familiar.till-pos .pos-navbar--bottom { flex: 0 0 auto; margin-top: 3px; container-type: inline-size; }
    .till-familiar.till-pos .pos-navbar--bottom .pos-menu-grid { grid-template-rows: none !important; grid-auto-rows: 46px; }
    .till-familiar.till-pos .pos-navbar--fold .pos-menu-grid { grid-template-columns: repeat(var(--fk, 3), minmax(0, 1fr)) !important; }
    .till-familiar.till-pos .pos-navbar--fold .pos-menu-grid > :is(.tf-btn, .tf-embed) { grid-column: var(--fc, auto) !important; grid-row: var(--fr, auto) !important; }
    .till-familiar.till-pos .pos-navbar--paged {
        overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    }
    .till-familiar.till-pos .pos-navbar--paged .pos-menu-grid {
        width: max-content; overflow: visible !important;
        grid-template-columns: repeat(var(--fcols, 3), calc((100cqw - 4px) / 3)) !important;
    }
    /* one snap point a page, at its first column (pos.js places them from the grid's own columns), and a flick stops at
       the next page (F27: a flick skipped 1-2 pages; a page whose first cell was empty had no snap point at all) */
    .till-familiar.till-pos .pos-navbar-snap {
        display: block; position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none;
        scroll-snap-align: start; scroll-snap-stop: always;
    }
    /* the dots: a row of page keys right under the bar, all of it a tap target (F27: a tap near the old 6px dots
       was snapped by the WebView's touch adjustment onto the tender above them) */
    .till-familiar.till-pos .pos-navbar-dots { position: sticky; left: 0; width: 100cqw; height: 30px; display: flex; align-items: stretch; }
    .till-familiar.till-pos .pos-navbar-dots > button {
        flex: 1 1 0; display: flex; align-items: center; justify-content: center; margin: 0; padding: 6px 0 0;
        border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
    }
    .till-familiar.till-pos .pos-navbar-dots > button > i { width: 10px; height: 10px; border-radius: 50%; background: var(--till-muted, #9a9a9a); }
    .till-familiar.till-pos .pos-navbar-dots > button.on > i { background: #ff8c00; }

    /* ---- the order screen: two panes ----
       MENU (the default): PREVIOUS / NEXT over the items and the category column, then the order's bar, its
       selected line (else its last) and the green total. ORDER (tord--basket): the basket, its column of
       arrows, the total and the input box. The bar under both acts on the selection, as the desktop's. */
    .till-familiar.till-pos .pos-order-screen.tord {
        gap: 3px; grid-template-columns: minmax(0, 1fr) 46px; grid-template-rows: minmax(0, 1fr) auto;
    }
    .till-familiar.till-pos .tord .pos-order-menu { grid-column: 1 / -1; grid-row: 1; min-height: 0; }
    .till-familiar.till-pos .tord .pos-order-receipt { grid-column: 1 / -1; grid-row: 2; }
    .till-familiar.till-pos .tord .tord-basketnav { display: none; }
    .till-familiar.till-pos .tord:not(.tord--basket) :is(.tord-basket, .trb) { flex: 0 0 auto; }
    .till-familiar.till-pos .tord:not(.tord--basket) :is(.trb-sel, .trb-strip, .trb-cols, .tord-input) { display: none; }
    /* the MENU pane's basket: its last three lines, or the selected line(s) with the two before (F27: one line was not
       enough to work with; two on a short phone) - bottom-aligned, so the newest / the selected line is always whole */
    .till-familiar.till-pos .tord:not(.tord--basket) .trb-rows {
        flex: 0 0 auto; max-height: 99px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
    }
    .till-familiar.till-pos .tord:not(.tord--basket) .trb-rows > * { flex: 0 0 auto; }
    /* layout polish (UW-39): a line never taller than the strip, cut at its foot - an item with its modifiers is ONE line
       (Margherita Large + six toppings, 127 px), and bottom-aligned its top, the item's own name, sat above the strip out of
       reach. 66 px on a short phone, as the strip */
    .till-familiar.till-pos .tord:not(.tord--basket) .trb-rows > .trb-row { max-height: 99px; overflow: hidden; }
    @media (max-height: 639.98px) {
        .till-familiar.till-pos .tord:not(.tord--basket) .trb-rows > .trb-row { max-height: 66px; }
    }
    .till-familiar.till-pos .tord:not(.tord--basket) .trb-rows:has(> .trb-row--sel) > .trb-row:not(.trb-row--sel):not(:has(+ .trb-row--sel)):not(:has(+ .trb-row + .trb-row--sel)) { display: none; }
    .till-familiar.till-pos .tord:not(.tord--basket) .trb-rows:not(:has(> .trb-row--sel)) > .trb-row:not(:nth-last-child(-n+3)) { display: none; }
    @media (max-height: 639.98px) {
        .till-familiar.till-pos .tord:not(.tord--basket) .trb-rows { max-height: 66px; }
    }
    .till-familiar.till-pos .tord.tord--basket .pos-order-menu { display: none; }
    .till-familiar.till-pos .tord.tord--basket .pos-order-receipt { grid-column: 1; grid-row: 1 / -1; }
    .till-familiar.till-pos .tord.tord--basket:not(:has(> .tord-basketnav)) .pos-order-receipt { grid-column: 1 / -1; }
    .till-familiar.till-pos .tord.tord--basket .tord-basketnav { display: flex; grid-column: 2; grid-row: 1 / -1; }
    .till-familiar.till-pos .tord-basketnav .tf-btn img { width: 26px !important; height: 26px !important; }
    /* the total's tag: the pane a tap brings ("▲ ORDER 4" / "▼ MENU") */
    .till-familiar.till-pos .trb-total--pane { position: relative; cursor: pointer; }
    .till-familiar.till-pos .trb-pane {
        display: block; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); padding: 5px 8px;
        border: 1px solid rgba(255, 255, 255, .75); border-radius: 2px; font: 700 12px/1 var(--till-button-font); white-space: nowrap;
    }
    /* the basket's columns at a phone's width */
    .till-familiar.till-pos .trb-cols, .till-familiar.till-pos .trb-row:not(.tsp-row) { grid-template-columns: minmax(0, 1fr) 60px 28px 62px; }

    /* PREVIOUS / NEXT without the word CATEGORY; the items folded (three or four a row, as many rows as the
       page needs, scrolling down) beside the 80px category column */
    .till-familiar.till-pos .tord-catlong { display: none; }
    .till-familiar.till-pos .tord-catshort { display: inline; }
    .till-familiar.till-pos .tord-catname { max-width: 38%; padding: 0 6px; font-size: 14px; }
    .till-familiar.till-pos .tord .pos-order-menu-body { grid-template-columns: minmax(0, 1fr) 80px; gap: 3px; }
    .till-familiar.till-pos .tord .pos-order-items { display: block; }
    .till-familiar.till-pos .tord .pos-order-items > .pos-menu-grid {
        flex: 0 0 auto; overflow: visible !important; container-type: inline-size;
        grid-template-columns: repeat(var(--fk, 3), minmax(0, 1fr)) !important; grid-template-rows: none !important;
        grid-auto-rows: minmax(62px, auto);
        --pos-grid-cols: var(--fk, 3) !important; --pos-btn-grow: 1px; --pos-btn-label-max: 3.45em;
    }
    .till-familiar.till-pos .tord .pos-order-items > .pos-menu-grid > :is(.tf-btn, .tf-embed) { grid-column: var(--fc, auto) !important; grid-row: var(--fr, auto) !important; }
    .till-familiar.till-pos .tord .pos-order-items .tf-btn--item .tf-btn-img { flex: 0 0 36px; }
    .till-familiar.till-pos .tord .pos-order-cats > .tcat { flex: 0 0 64px; min-height: 0; max-height: none; font-size: 12px; }

    /* ---- the board: the areas a row on top, the tiles two a row, the 72px right column, the view strip in
       two rows ---- */
    .till-familiar.till-pos .pos-restaurant-screen {
        flex: 1 1 0; min-height: 0; max-height: none; gap: 4px;
        grid-template-columns: minmax(0, 1fr) 72px; grid-template-rows: minmax(0, 1fr); grid-template-areas: "main nav";
    }
    .till-familiar.till-pos .pos-restaurant-screen:has(> .till-areas) { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "areas areas" "main nav"; }
    .till-familiar.till-pos .pos-restaurant-screen--nomenu { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
    .till-familiar.till-pos .pos-restaurant-screen--nomenu:has(> .till-areas) { grid-template-areas: "areas" "main"; }
    .till-familiar.till-pos .pos-restaurant-screen > .pos-restaurant-main { grid-area: main; min-height: 0; }
    .till-familiar.till-pos .pos-restaurant-screen > .pos-navbar--right { grid-area: nav; min-height: 0; display: flex; height: auto; }
    .till-familiar.till-pos .pos-restaurant-screen > .till-areas {
        grid-area: areas; flex-direction: row; overflow-x: auto; overflow-y: hidden; margin: 0;
    }
    .till-familiar.till-pos .till-area { flex: 0 0 auto; width: auto; min-width: 84px; height: 46px; gap: 0; padding: 2px 10px; }
    .till-familiar.till-pos .till-area--all { display: flex; flex-direction: row; gap: 6px; }
    .till-familiar.till-pos .till-area-icon { width: 22px; height: 22px; }
    .till-familiar.till-pos .till-area-name { white-space: nowrap; }
    .till-familiar.till-pos .till-area-count { font-size: 11px; }
    .till-familiar.till-pos .tb-filters { flex-wrap: nowrap; overflow-x: auto; }
    .till-familiar.till-pos .tb-chip { flex: 0 0 auto; min-width: 84px; }
    .till-familiar.till-pos .tb-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
    .till-familiar.till-pos .tb-tiles > :is(.pos-card-group, .tb-empty) { grid-column: 1 / -1; }
    .till-familiar.till-pos .tb-strip { height: auto; flex-wrap: wrap; gap: 3px; }
    .till-familiar.till-pos .tb-strip > .tb-btn { height: 34px; }
    .till-familiar.till-pos .tb-strip > :is(.tb-btn--group, .tb-btn--sort) { flex: 1 1 45%; }
    .till-familiar.till-pos .tb-strip > .tb-check { flex: 1 1 30%; }

    /* ---- settle: one column - the order's bar, TOTAL / RECEIVED / BALANCE, the payments, the tenders three
       a row, the receipt summary last; it scrolls above the settle bar ---- */
    .till-familiar.till-pos .tset { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
    .till-familiar.till-pos :is(.tset-lines, .tset-right) { display: contents; }
    .till-familiar.till-pos .tset-head, .till-familiar.till-pos .tset-lines > .mud-alert { order: 1; }
    .till-familiar.till-pos .tset-big { order: 2; padding: 6px 0 4px; }
    .till-familiar.till-pos .tset-cols { order: 3; padding: 4px 0; font-size: 13px; }
    .till-familiar.till-pos .tset-rows { order: 4; flex: 0 0 auto; overflow: visible; }
    .till-familiar.till-pos :is(.tset-voided, .tset-delete) { order: 5; }
    .till-familiar.till-pos :is(.tset-tenders, .tset-fallback, .tset-qr) { order: 6; }
    .till-familiar.till-pos .tset-tenders { flex: 0 0 auto; min-height: 0; overflow: visible; grid-auto-rows: 84px; }
    .till-familiar.till-pos .tset-summary { order: 7; }
    .till-familiar.till-pos .tset-sum { margin: 0 6px; min-height: 0; font-size: 13.5px; }
    .till-familiar.till-pos :is(.tset-cols, .tset-row) { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 2px; }
    .till-familiar.till-pos .tset-row { flex: 0 0 54px; }
    .till-familiar.till-pos .tset-fig { font-size: 13px; }
    .till-familiar.till-pos .tset-col-lbl { font-size: 10px; }
    .till-familiar.till-pos .tset-big-lbl { font-size: 16px; }
    .till-familiar.till-pos .tset-big-val { font-size: 15px; }
    .till-familiar.till-pos .tkey.ttd-tile { font-size: 13px; }
    /* payment change: the settle column; its bar's three keys a row */
    .till-familiar.till-pos .tpc-bar { flex: 0 0 auto; margin-top: 3px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 46px; gap: 3px; }
    .till-familiar.till-pos .tpc-bar > .tkey { grid-column: auto; gap: 4px; padding: 2px 4px; font-size: .9rem; }
    .till-familiar.till-pos .tpc-bar .mud-icon-root.tpc-bar-icon { font-size: 22px; width: 22px; height: 22px; }
    .till-familiar.till-pos .tpc-final-text > span:first-child { font-size: 1.05rem; }

    /* ---- split: the modes a row on top, the opened check over the others (their pages under them), the
       bar in two rows ---- */
    .till-familiar.till-pos .tsp { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 3px; }
    .till-familiar.till-pos .tsp-modes { flex-direction: row; }
    .till-familiar.till-pos .tsp-modes > .tkey { flex: 1 1 0; min-width: 0; height: 46px; padding: 2px; font-size: 11px; }
    .till-familiar.till-pos .tkey.tsp-flag { padding: 4px 2px 2px; }
    .till-familiar.till-pos .tsp-gap { flex: 0 0 6px; }
    .till-familiar.till-pos .tsp-checks { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 42fr) minmax(0, 58fr); }
    .till-familiar.till-pos .tsp-tabs { flex-basis: 40px; }
    .till-familiar.till-pos .tkey.tsp-tab { flex-basis: 64px; }
    .till-familiar.till-pos .tsp-seatbar { flex-basis: 40px; grid-template-columns: 36px minmax(0, 1fr) 36px; }
    .till-familiar.till-pos .tsp-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 46px; }
    .till-familiar.till-pos .tsp-bar > span { display: none; }
    .till-familiar.till-pos .tsp-bar .tkey { min-width: 0; font-size: .9rem; }
    .till-familiar.till-pos .tsp-bar .tsp-apply { grid-column: span 2; }
    .till-familiar.till-pos .tsp-bar .mud-icon-root.tsp-bar-icon { font-size: 22px; width: 22px; height: 22px; }
    .till-familiar.till-pos .tsp-apply-text > span:first-child { font-size: 1.1rem; }
    /* one scrolling page (Android layout walk 2026-11-16, UW-13: each check's list was 87 px, two of nine lines): every check
       shows all its lines - the opened check first, then the others one under another, their pages and tabs under them */
    .till-familiar.till-pos .tsp-checks { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
    .till-familiar.till-pos :is(.tsp-current, .tsp-others) { flex: 0 0 auto; }
    .till-familiar.till-pos .tsp-page { flex: 0 0 auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: auto; }
    .till-familiar.till-pos .tsp-check { flex: 1 1 auto; }
    .till-familiar.till-pos .tsp-check :is(.trb.tsp-basket, .trb-rows) { flex: 0 0 auto; overflow: visible; }
    /* the split table's "Select Order:" (PosSplitLegDialog's inline grid of board-sized tiles): two a row - the third order
       was cut at the edge */
    .till-familiar.till-pos .tleg-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }

    /* ---- popups: the phone's width ---- */
    .till-familiar.till-pos .mud-dialog { width: calc(100vw - 12px) !important; max-width: calc(100vw - 12px) !important; margin: 6px !important; }
    /* ... and the window's height (UW-34 / UW-35): MudBlazor keeps 64 px for an app bar the till has none of - at 360 px the
       MISC grid's last row sat under CANCEL, a tender's MANAGER MANUAL % half under SAVE */
    .till-familiar.till-pos .mud-dialog { max-height: calc(100dvh - 12px); }
    .till-familiar.till-pos .mud-dialog .mud-dialog-title { padding: 10px 12px; }
    .till-familiar.till-pos .mud-dialog .mud-dialog-content { padding-left: 8px; padding-right: 8px; }
    /* the PIN pad: who and the display on top, 7-8-9 three a row, LOGIN the width under them, CANCEL last */
    .till-familiar.till-pos .tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 56px repeat(4, 62px) 58px auto; gap: 6px; }
    .till-familiar.till-pos .tp-info { grid-column: 1 / -1; grid-row: 1; padding: 0 2px; font-size: 1rem; line-height: 1.3; }
    .till-familiar.till-pos .tp-display { grid-row: 2; }
    .till-familiar.till-pos .tp-login { grid-column: 1 / -1; grid-row: 7; }
    .till-familiar.till-pos .tp-bottom { grid-row: 8; }
    .till-familiar.till-pos .tp-cancel { flex: 1 1 0; min-width: 0; min-height: 54px; }
    /* the number pad: the keys the width, the quick amounts and the splits four a row under them */
    .till-familiar.till-pos .tn-pad { flex-wrap: wrap; }
    .till-familiar.till-pos .tn-keys { flex: 1 1 100%; order: -1; grid-auto-rows: 58px; }
    .till-familiar.till-pos :is(.tn-quick, .tn-splits) { flex: 1 1 100%; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 46px; }
    .till-familiar.till-pos .tn-fit { --tn-fit-pad: 4px; }
    /* layout polish (UW-39): a foreign tender's "Amount (FC, Rate = 0,009)" took two lines beside the Balance, its box a line
       lower - the label is "Amount (FC)", the rate a small line under the box */
    .till-familiar.till-pos .tn-rate-in { display: none; }
    .till-familiar.till-pos .tn-rate-sub {
        display: block; font: 400 12px/1.2 var(--till-button-font); color: var(--mud-palette-text-secondary); text-align: right;
    }
    /* a tender's Balance / Amount / Tip stay on top while the keys scroll under them (UW-34: the pad takes the focus, and at
       360 px that scrolled the boxes away under the title) */
    .till-familiar.till-pos .mud-dialog-content > .tn-fields {
        position: sticky; top: -8px; z-index: 2; margin-top: -8px; padding: 8px 0 4px; background: var(--till-panel, #fff);
    }
    /* ... and the pad's focus scrolls its keys to just under them, not under them */
    .till-familiar.till-pos .mud-dialog-content:has(> .tn-fields) { scroll-padding-top: 112px; }
    /* the keyboard (UW-11: 13 keys a row were 28 px, 25 at 360 px, SHIFT cut): the phone's own set - ten letters a row,
       SHIFT (twice = CAPS) and BS beside z-m, CL / 123 / SPACE under them, the digits and symbols on the 123 page
       (TillKeyboard's tk-row--phone rows; the desktop board's rows stay for every wider screen) */
    .till-familiar.till-pos .tk-row.tk-row--wide { display: none; }
    .till-familiar.till-pos .tk-row.tk-row--phone { display: flex; }
    .till-familiar.till-pos :is(.tk-board, .tk-row) { gap: 3px; }
    .till-familiar.till-pos .tk-row .tkey { height: 46px; padding: 0; font-size: 1.1rem; }
    .till-familiar.till-pos .tk-row .tkey.tk-word { font-size: .82rem; }
    /* message / confirm: the big buttons share the width */
    .till-familiar.till-pos :is(.tm-dlg, .tc-dlg) { min-width: 0; }
    .till-familiar.till-pos .tc-row { width: 100%; }
    .till-familiar.till-pos .tc-row > .tkey { flex: 1 1 0; min-width: 0; }
    /* the modifiers: the groups a 72px column, each group's rows folded two a row (--fc / --fr) */
    .till-familiar.till-pos .tmod { height: calc(100dvh - 190px); }
    .till-familiar.till-pos .tmod-tabs { flex-basis: 72px; }
    .till-familiar.till-pos .tcat.tmod-tab { flex-basis: 64px; font-size: 12px; }
    .till-familiar.till-pos .tmod-grid {
        grid-template-columns: repeat(var(--fk, 2), minmax(0, 1fr)) !important; grid-template-rows: none !important; grid-auto-rows: minmax(56px, auto);
    }
    /* layout polish (UW-39): the option rows as tall as their options, from the top - a group of two or three stretched them
       into 334 px keys */
    .till-familiar.till-pos .tmod-grid { align-content: start; }
    .till-familiar.till-pos .tmod-grid > .tmod-opt { grid-column: var(--fc, auto) !important; grid-row: var(--fr, auto) !important; }
    .till-familiar.till-pos .tkey.tmod-cancel { min-width: 96px; }
    .till-familiar.till-pos .tkey.tmod-done { font-size: 1.3rem; }
    /* MISC: the page tabs a row on top, the buttons folded three a row; a folded row with no keys at all shrinks to a gap
       (UW-35: a desktop gap left a whole empty row) - every key keeps its place, a blank cell stays blank. By the dialog
       (.tmisc), not .till-pos: a phone paired as a kitchen screen is .till-familiar without .till-pos (PW-08, popup walk
       2026-11-18: its MISC kept the desktop's columns, ~60 px tiles - "BU MP", "REC ALL LAS" - and NEXT SCREEN off the left) */
    .till-familiar .tmisc { flex-direction: column; }
    .till-familiar .tmisc-tabs { flex: 0 0 auto; flex-direction: row; }
    .till-familiar .tcat.tmisc-tab { flex: 1 1 0; height: 44px; }
    .till-familiar .tmisc-page .pos-menu-grid {
        grid-template-columns: repeat(var(--fk, 3), minmax(0, 1fr)) !important; grid-auto-rows: auto;
        max-height: calc(100dvh - 250px); overflow-y: auto !important;
    }
    .till-familiar .tmisc-page .pos-menu-grid > :is(.tf-btn, .tf-embed) { grid-column: var(--fc, auto) !important; grid-row: var(--fr, auto) !important; min-height: 56px; }
    .till-familiar .tkey.tmisc-cancel { min-width: 0; width: 100%; }
    .till-familiar .tkey.tmisc-forget { flex: 0 0 auto; width: auto; }   /* F36: its own size, CANCEL takes the rest */
    /* the item lookup: the prices scroll sideways under the name, which stays put; a narrower pager */
    .till-familiar.till-pos .tlk-body { gap: 4px; }
    .till-familiar.till-pos .tlk-pager { flex-basis: 48px; }
    .till-familiar.till-pos .tlk-grid:not(.tuc-grid) { overflow-x: auto; overflow-y: hidden; }
    .till-familiar.till-pos .tlk-grid.tuc-grid { overflow-x: auto; }
    /* (the PLU as wide as six or seven digits - UW-37: "1112…") */
    .till-familiar.till-pos .tlk:not(.tlk--cust):not(.tlk--recipe):not(.tlk--rcpt) .tlk-grid:not(.tuc-grid) .tlk-row {
        grid-template-columns: 150px 72px 64px repeat(var(--tlk-levels, 3), 72px);
    }
    .till-familiar.till-pos .tlk:not(.tlk--cust):not(.tlk--recipe):not(.tlk--rcpt) .tlk-row,
    .till-familiar.till-pos .tuc-grid .tlk-row { width: max-content; min-width: 100%; }
    .till-familiar.till-pos .tlk-row:not(.tlk-row--head):not(.tlk-row--sel):not(:nth-child(odd)) { background: #fff; }
    .till-familiar.till-pos .tlk:not(.tlk--cust):not(.tlk--recipe):not(.tlk--rcpt) .tlk-row > span:first-child { position: sticky; left: 0; z-index: 1; background: inherit; }
    /* the receipts (Find a receipt, Payment Change, Re-order; UW-37: 576 px of columns sideways - no Total in view, the closed
       time and the employee cut): two lines a receipt, nothing sideways - Receipt # · Table · Total, then the closed time ·
       Employee · Status (TillReceiptGrid's trg-* cells); the list scrolls down, the pager pages */
    .till-familiar.till-pos .tlk--rcpt .tlk-grid { overflow-x: hidden; overflow-y: auto; }
    .till-familiar.till-pos .tlk--rcpt .tlk-row {
        grid-template-columns: max-content minmax(0, 1fr) 84px; grid-template-areas: "nr desk total" "closed user status";
        row-gap: 1px; padding: 3px 0;
    }
    .till-familiar.till-pos .tlk--rcpt .tlk-row > span { padding: 0 4px; }
    /* each row is its own grid: every closed-time cell (the header's too) carries an unseen full time in its type, so the
       first column is one width in every row and the time shows whole */
    .till-familiar.till-pos .tlk--rcpt .tlk-row > .trg-closed::after {
        content: "0000/00/00 00:00"; display: block; height: 0; overflow: hidden; visibility: hidden; font: 400 12px var(--till-mono-font);
    }
    .till-familiar.till-pos .tlk--rcpt .tlk-row > .trg-nr { grid-area: nr; text-align: left; }
    .till-familiar.till-pos .tlk--rcpt .tlk-row > .trg-desk { grid-area: desk; }
    .till-familiar.till-pos .tlk--rcpt .tlk-row > .trg-total { grid-area: total; }
    .till-familiar.till-pos .tlk--rcpt .tlk-row > .trg-closed { grid-area: closed; text-align: left; font-weight: 400; font-size: 12px; }
    .till-familiar.till-pos .tlk--rcpt .tlk-row > .trg-user { grid-area: user; font-weight: 400; font-size: 12px; }
    .till-familiar.till-pos .tlk--rcpt .tlk-row > .trg-status { grid-area: status; justify-self: end; font-weight: 400; font-size: 12px; }
    .till-familiar.till-pos .tlk--rcpt .tlk-row.tlk-row--head > span { font: inherit; }
    .till-familiar.till-pos .tlk-search .tlk-label { display: none; }
    /* the customer lookup: No. | Name | Tel at a phone's width; the recipe lookup's names over the recipe. Tel takes a whole
       12-character number (PW-11, popup walk 2026-11-18: 110 px showed "082 555 66…"; 12 Vera Mono figures at 14 px are
       101 px), No. five digits, 4 px a side */
    .till-familiar.till-pos .tlk--cust .tlk-row { grid-template-columns: 52px minmax(0, 1fr) 124px; }
    .till-familiar.till-pos .tlk--cust .tlk-row > span { padding: 0 4px; }
    /* its actions (Fit & finish lane 10: CANCEL started at -49 px and SELECT was 14 px wide): SELECT the whole first row,
       the customer's name cut with an ellipsis; CANCEL / NEW / EDIT / NONE share the row under it */
    .till-familiar.till-pos .mud-dialog:has(.tlk--cust) .mud-dialog-actions { flex-wrap: wrap; gap: 6px; }
    .till-familiar.till-pos .mud-dialog:has(.tlk--cust) .tkey.tlk-select { order: -1; flex: 1 1 100%; min-height: 52px; }
    .till-familiar.till-pos .mud-dialog:has(.tlk--cust) :is(.tkey.tlk-cancel, .tkey.tlk-edit) {
        flex: 1 1 0; min-width: 0; min-height: 52px; font-size: 1.15rem;
    }
    .till-familiar.till-pos .tlk-select-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* the receipt pickers (Find a receipt, Payment Change, Receipt copy, Re-order; PW-19, popup walk 2026-11-18): CANCEL kept
       its 180 px and "CHANGE PAYMENTS: 285:1:118" wrapped to three lines in the rest. CANCEL takes its own width, the go key
       the rest */
    .till-familiar.till-pos .mud-dialog:has(.tlk--rcpt) .tkey.tlk-cancel { flex: 0 1 auto; min-width: 0; padding-inline: 12px; font-size: 1.15rem; }
    .till-familiar.till-pos .mud-dialog:has(.tlk--rcpt) .tkey.tlk-select { flex: 1 1 0; font-size: 1.15rem; }
    .till-familiar.till-pos .tlk--recipe .tlk-body { flex-direction: column; height: calc(100dvh - 260px); }
    .till-familiar.till-pos .tlk--recipe .tlk-grid { flex: 1 1 0; }
    .till-familiar.till-pos .tlk--recipe .tlk-pager { flex: 0 0 44px; flex-direction: row; align-items: stretch; }
    .till-familiar.till-pos .tlk--recipe .tlk-pages { align-self: center; padding: 0 6px; }
    /* EMPL: the title over its toggles, which share the width */
    .till-familiar.till-pos .temp-bar { flex-wrap: wrap; }
    .till-familiar.till-pos .temp-title { flex: 1 1 100%; }
    .till-familiar.till-pos .tkey.temp-toggle { flex: 1 1 0; min-width: 0; }
    .till-familiar.till-pos .temp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* order details: the basket over the desktop's text block */
    .till-familiar.till-pos .tod { flex-direction: column; height: calc(100dvh - 200px); overflow-y: auto; }
    .till-familiar.till-pos .tod-basket { flex: 0 0 auto; max-height: 50%; }
    .till-familiar.till-pos .tod-box { flex: 0 0 auto; max-height: none; overflow-y: visible; }   /* the popup scrolls, not the box (PW-16) */
    /* the read-only basket in a popup (Order details, Transfer items, Order preview; PW-16, popup walk 2026-11-18): "Guest" was
       clipped by its 28 px column and the sent time touched the edge. Wider Guest / Sent there; the order screen's own basket
       keeps its columns */
    .till-familiar.till-pos .mud-dialog :is(.trb-cols, .trb-row:not(.tsp-row)) { grid-template-columns: minmax(0, 1fr) 60px 34px 66px; }
    .till-familiar.till-pos .tkey.tod-close { min-width: 0; width: 100%; }
    /* transfer items: the lines that move over the destination, the tiles two a row, the actions sharing the width */
    .till-familiar.till-pos .txi { flex-direction: column; height: calc(100dvh - 200px); }
    .till-familiar.till-pos .txi-lines { flex: 0 0 30%; }
    .till-familiar.till-pos .txi-dest { flex: 1 1 0; }
    .till-familiar.till-pos .txi-tabs { flex-wrap: wrap; }
    .till-familiar.till-pos .txi-label { flex: 1 1 100%; }
    .till-familiar.till-pos .tkey.txi-tab { height: 44px; font-size: .95rem; }
    .till-familiar.till-pos .txi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .till-familiar.till-pos .mud-dialog:has(.txi) .mud-dialog-actions { gap: 6px; }
    .till-familiar.till-pos .tkey.txi-cancel { flex: 1 1 0; min-width: 0; font-size: 1.15rem; }
    .till-familiar.till-pos .tkey.txi-ok { flex: 1.5 1 0; min-width: 0; font-size: 1.05rem; }
    /* the void reasons and the printing areas two a row; their actions share the width */
    .till-familiar.till-pos :is(.tvr-grid, .tpa-grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .till-familiar.till-pos .tkey.tvr-tile { min-height: 72px; font-size: 1rem; }
    .till-familiar.till-pos .tvr-actions .tkey { flex: 1 1 0; min-width: 0; }
    .till-familiar.till-pos .mud-dialog:has(.tvr-grid) .mud-dialog-actions > .mud-button-root { flex: 1 1 0; min-width: 0; }
    /* three keys or more share the row too (Pawel's phone 2026-11-18, PH-01): at 140 px each they needed 464 px, the row
       is right-aligned, so the first went off the popup's left edge - the Time clock's START BREAK, the Item qty pad's
       NOT COUNTED. Their words wrap to two lines inside the key */
    .till-familiar.till-pos .mud-dialog .mud-dialog-actions:has(> .mud-button-root ~ .mud-button-root ~ .mud-button-root) > .mud-button-root {
        flex: 1 1 0; min-width: 0; padding-inline: 8px;
    }
    /* the Labels popup's SAME FOR ALL GUESTS + CLEAR share the row too (PW-02, popup walk 2026-11-18): two 200 px keys,
       right-aligned, in a ~230-260 px page, so SAME FOR ALL GUESTS started 124-176 px off the popup's left edge. Each keeps
       200 px while the row has it (a lone CLEAR as before) and shrinks evenly when it hasn't; the words wrap inside the key,
       which grows to fit */
    .till-familiar.till-pos .tkey.tlb-key { flex: 0 1 200px; min-width: 0; height: auto; min-height: 50px; }
    /* the kitchen notes (PW-05, popup walk 2026-11-18): a long note in a ~100 px tile needs six lines - in a fixed 89 px row
       "Allergy:" printed over the tile above and the end was cut. Three a row still; a row grows to its longest note */
    .till-familiar.till-pos .tkn-grid { grid-auto-rows: minmax(89px, auto); }
    /* End of Day (UW-15: CLOSE END OF DAY got what CANCEL and REFRESH left, 59 px, four words stacked): the go key - or CLOCK
       OUT EMPLOYEES while staff block the close - takes its own row, the width, as the customer lookup's SELECT; CANCEL and
       REFRESH share the row under it */
    .till-familiar.till-pos .mud-dialog:has(.teod) .mud-dialog-actions { flex-wrap: wrap; gap: 6px; }
    .till-familiar.till-pos .tkey:is(.teod-go, .teod-clockout) { order: -1; flex: 1 1 100%; min-width: 0; }
    .till-familiar.till-pos .tkey:is(.teod-cancel, .teod-refresh) { flex: 1 1 0; min-width: 0; }
    /* the discounts (UW-12): a long name and its limits grow the row instead of being cut ("Manager" over the top edge, "max
       200" under the bottom of 89 px) */
    .till-familiar.till-pos .tdc-grid { grid-auto-rows: minmax(89px, auto); }
    .till-familiar.till-pos .tkey.tdc-tile { gap: 4px; font-size: 1rem; }
}

/* ---- pilot Batch 5 (EOD & cash): the drawer cash-up / check-out, paid in / out reprint, drawer assign and history
   dialogs (PosDrawerCashupDialog, PosCashupLogsDialog, PosCashupOrdersDialog, PosDrawerAssignDialog,
   PosDrawerHistoryDialog). Functional first - "usable and clearly labelled"; the fit & finish pass comes later. ---- */
.b5-list { display: flex; flex-direction: column; gap: 4px; max-height: 55vh; overflow-y: auto; }
.b5-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 8px 10px;
    border: 1px solid #c9d6e6; border-radius: 4px; background: #fff; color: #1a1a1a; cursor: pointer; }
.b5-item:disabled { cursor: default; opacity: .85; }
.b5-item--active { border-color: #e07b00; background: #fff4e5; }
.b5-item-main { font-weight: 600; }
.b5-item-sub, .b5-sub { font-size: .85rem; opacity: .8; }
.b5-head { font-weight: 700; margin-bottom: 6px; }
.b5-count { display: flex; flex-direction: column; gap: 6px; }
.b5-rows { display: flex; flex-direction: column; gap: 2px; max-height: 40vh; overflow-y: auto; }
.b5-section { font-weight: 700; font-size: .85rem; margin-top: 6px; }
.b5-row { display: grid; grid-template-columns: 1fr 5rem 7rem; align-items: center; gap: 6px; padding: 4px 8px;
    border: 1px solid #dde5ef; border-radius: 3px; background: #fff; color: #1a1a1a; text-align: left; cursor: pointer; }
.b5-row--active { border-color: #e07b00; background: #fff4e5; }
.b5-row--total { font-weight: 700; cursor: default; }
.b5-row .b5-qty { text-align: right; }
.b5-row .b5-amt { text-align: right; font-family: var(--till-mono-font); }
.b5-row .b5-exp { grid-column: 1 / -1; font-size: .8rem; color: #b00020; text-align: right; }
.b5-review, .b5-eodbar, .b5-tabs, .b5-slot-keys { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.b5-eodbar { justify-content: space-between; margin-bottom: 6px; }
.b5-eod { font-weight: 700; }
.b5-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 6px; }
/* Drawer History's cards (PW-24, popup walk 2026-11-18): a register's one drawer was a 220 px card in a wide popup and its
   PAIDS key dropped to a row of its own. The cards share the width, at least 300 px each (OPEN / ORDERS / PAIDS one row);
   a phone's one column. The drawer assign cards keep theirs */
.b5-slots.b5-slots--history { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.b5-slot { border: 1px solid #c9d6e6; border-radius: 4px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.b5-slot--mine { border-color: #b00020; }
.b5-slot-name { font-weight: 700; }
.b5-cash { font-weight: 700; }

/* ---- lane 9 Fit & finish (POS screens, wide): O18 small Till screens ----
   The board's filter chips wrap freely: Group By EMPLOYEE at a venue with 25 waiters took four rows at 1366x768 and five at
   1024x768, a third of the floor. Each chip row set now shows three rows at most (3 x 30px + 2 x 3px gaps) and scrolls inside
   itself; the tiles keep the rest. Wide only - a phone's chips are one sideways row (lane 10's block). */
@media (min-width: 600px) {
    .till-familiar .tb-filters { max-height: 96px; overflow-y: auto; }
}

/* ---- pilot lane 12 (split & transfer screens, 2026-11-11): the move / transfer popups on a phone ----
   PosMoveOrderDialog (.tmv) and PosTransferOrderDialog (.txo) at 390 px: the FROM ➜ TO boxes share the width (two
   fixed 180 px boxes ran past the dialog), the tiles two a row (their inline 160 px grid left a strip unused), the
   legs step's MOVE ALL ORDERS / MOVE SELECTED and the actions in the phone's type, sharing the row. */
@media (max-width: 599.98px) {
    .till-familiar.till-pos .txo-pair { gap: 6px; padding: 4px 0; }
    .till-familiar.till-pos .tkey.txo-who { flex: 1 1 0; min-width: 0; height: 60px; font-size: 1rem; }
    .till-familiar.till-pos .txo-pair .mud-icon-root.txo-arrow { flex: 0 0 28px; font-size: 28px; width: 28px; height: 28px; }
    .till-familiar.till-pos :is(.txo, .tmv) .txi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .till-familiar.till-pos .tmv-keys .tkey.tmv-new { flex: 1 1 0; min-width: 0; height: 48px; font-size: 1rem; }
    .till-familiar.till-pos .tkey.tmv-floor { min-width: 0; width: 100%; font-size: 1rem; }
    .till-familiar.till-pos .mud-dialog:is(:has(.txo), :has(.tmv)) .mud-dialog-actions { gap: 6px; }
    .till-familiar.till-pos .mud-dialog:is(:has(.txo), :has(.tmv)) .tkey.txo-cancel { flex: 1 1 0; min-width: 0; font-size: 1.1rem; }
    .till-familiar.till-pos .mud-dialog:is(:has(.txo), :has(.tmv)) .tkey.txo-go {
        flex: 1.4 1 0; min-width: 0; padding: 0 6px; font-size: 1rem; line-height: 1.15; white-space: normal;
    }
}

/* ---- the strip's Print Jobs (PosPrintJobsDialog) on a phone (2026-11-12, Pawel's phone at 390 px: Document / Printer cut
   to "Docu…" / "Pri…" beside the fixed Time / Status / Tries columns, the time pushed right in a 100 px cell, "Tries" higher
   than the other headers in the mono type, an empty strip under five rows, the keys wider than the dialog) ----
   Two lines a job: the time, the document and its status; the printer and the tries under them; the reason in red under
   both. The list is as tall as its rows, and the keys share the width. Phones only: the Till, the tablets and the KDS keep
   the desktop quick view's five columns. Scoped to the dialog (.tpj-dlg), not the POS screens (Android layout walk
   2026-11-16, UW-17): a phone KDS has .till-familiar without .till-pos, and showed PROBLEMS 111 px off the left edge.
   The dialog carries .till-familiar itself too (PW-14, popup walk 2026-11-18: the browser KDS has no familiar root, so the
   jobs were one run-on line each), hence the :is() - the same specificity as before. */
@media (max-width: 599.98px) {
    /* the time's column is as wide as its text: Android's WebView grows the text with the phone's own font size, never a
       px / rem width (at 1.3 a 52px column cut "16:56"). Each row is its own grid, so every time cell (the header's too)
       carries an unseen "00:00" in the time's type - one width for all of them, whatever the font size */
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row > .tpj-time::after {
        content: "00:00"; display: block; height: 0; overflow: hidden; visibility: hidden; font: 700 13px var(--till-mono-font);
    }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row {
        grid-template-columns: min-content minmax(0, 1fr) auto;
        grid-template-areas: "time doc st" "time prn tries" ". err err";
        align-items: center; padding: 5px 0;
    }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row > .tpj-time { grid-area: time; align-self: start; padding: 0 4px; text-align: left; white-space: normal; font-size: 13px; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row > .tpj-doc { grid-area: doc; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row > .tpj-prn { grid-area: prn; font-weight: 400; font-size: 12px; color: #4a4a4a; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row > .tpj-st { grid-area: st; justify-self: end; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row > .tpj-tries { grid-area: tries; justify-self: end; font-weight: 400; font-size: 12px; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row > .tpj-error { grid-area: err; padding-top: 2px; padding-bottom: 0; }
    /* the header in the same places (Document over Printer, Status over Tries), every cell in the header's own type */
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row.tpj-row--head { padding: 2px 0; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row.tpj-row--head > span { font: inherit; color: inherit; }
    /* as tall as its rows: the keys follow the last job */
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-grid { height: auto; max-height: calc(100dvh - 190px); }
    /* PROBLEMS / REFRESH / CLOSE a third each (a till's RETRY / DISCARD on a second row); a key never narrower than its
       word, so with a large phone font the row wraps instead of cutting "PROBLEMS" */
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar).mud-dialog:has(.tpj) .mud-dialog-actions { flex-wrap: wrap; gap: 6px; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar).mud-dialog:has(.tpj) .mud-dialog-actions > * { margin: 0; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-spacer { display: none; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tkey:is(.tpj-key, .tpj-close) {
        flex: 1 1 calc(33.333% - 4px); min-width: min-content; min-height: 48px; padding: 0 6px; font-size: 1rem;
    }
}
/* ... and a phone on its side (the short-window block's sizes): the five columns fit, but the list showed three rows in a
   fixed 130 px - it gets the room the window has, the keys are lower, the time sits at the left under its header, and
   "Tries" is in the header's type */
@media (max-height: 499.98px) and (min-width: 600px) and (max-width: 1023.98px) {
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-grid { height: auto; max-height: calc(100dvh - 170px); }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tkey:is(.tpj-key, .tpj-close) { min-height: 44px; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row > .tpj-time { text-align: left; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-row.tpj-row--head > span { font: inherit; }
}
/* ... and a tablet held upright (600-1023 px; UW-32): a till's RETRY and DISCARD made the key row wider than the dialog, and
   PROBLEMS started 24 px off its left edge at 800 px - the row wraps, the keys share each line, none narrower than its word.
   The KDS on its side (1280 px) and the Windows till are not this width. */
@media (min-width: 600px) and (max-width: 1023.98px) and (orientation: portrait) {
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar).mud-dialog:has(.tpj) .mud-dialog-actions { flex-wrap: wrap; gap: 6px; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar).mud-dialog:has(.tpj) .mud-dialog-actions > * { margin: 0; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-spacer { display: none; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tkey:is(.tpj-key, .tpj-close) { flex: 1 1 auto; min-width: min-content; }
}

/* ==== Android layout walk GAPS (2026-11-16 evening, UW-41 to UW-47): the screens the walk could not reach. Own blocks,
   appended last so they win over the phone / landscape blocks above at the same specificity; nothing above changed. ==== */

/* a phone */
@media (max-width: 599.98px) {
    /* the PIN pad by its own dialog, not the till's root, so a kitchen screen's is a phone's too (UW-46: BUMP's manager PIN
       kept the desktop layout on a phone KDS - the dialog scrolled sideways, AUTHORIZE off the edge). Same values as the
       till's rules above: the till is unchanged */
    .till-familiar .mud-dialog.tp-dlg { width: calc(100vw - 12px) !important; max-width: calc(100vw - 12px) !important; margin: 6px !important; }
    .till-familiar .tp-dlg .tp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 56px repeat(4, 62px) 58px auto; gap: 6px; }
    .till-familiar .tp-dlg .tp-info { grid-column: 1 / -1; grid-row: 1; padding: 0 2px; font-size: 1rem; line-height: 1.3; }
    .till-familiar .tp-dlg .tp-display { grid-row: 2; }
    .till-familiar .tp-dlg .tp-login { grid-column: 1 / -1; grid-row: 7; }
    .till-familiar .tp-dlg .tp-bottom { grid-row: 8; }
    .till-familiar .tp-dlg .tp-cancel { flex: 1 1 0; min-width: 0; min-height: 54px; }

    /* the one-tap pickers (UW-44: with more than five options two 260 px columns ran past the edge - a clock-in job read
       "Ba", a delivery address "Unit 14B, Lakeside Busi…"): the columns share the width, a long option wraps */
    .till-familiar.till-pos .tch-grid { grid-template-columns: minmax(0, 1fr); }
    .till-familiar.till-pos .tch-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .till-familiar.till-pos .tch-grid--two .tch-option { font-size: 1.05rem; }

    /* staff cash-ups RECONCILE (UW-41, must-fix: beside the fields' 320 px the figures got 63 px and printed over each
       other): the figures and the payments over the fields */
    .till-familiar.till-pos .tuc-rec { flex-direction: column; }
    .till-familiar.till-pos :is(.tuc-lines, .tuc-inputs) { flex: 0 0 auto; }

    /* the staff cash-ups list (UW-42: 686 px of columns sideways - Hand in and Status off the edge - and each row sizing its
       own first column): two lines a bag, Employee · # · Hand in · Status over Cash · Tips · Paid · Received, in four equal
       columns, the same in every row and the header; nothing sideways */
    .till-familiar.till-pos .tlk-grid.tuc-grid { overflow-x: hidden; }
    .till-familiar.till-pos .tuc-grid .tlk-row {
        width: auto; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-areas: "name nr hand status" "cash tips paid recv"; row-gap: 1px; padding: 3px 0;
    }
    .till-familiar.till-pos .tuc-grid .tlk-row > span { padding: 0 4px; }
    .till-familiar.till-pos .tuc-grid .tlk-row > :nth-child(1) { grid-area: name; }
    .till-familiar.till-pos .tuc-grid .tlk-row > :nth-child(2) { grid-area: nr; }
    .till-familiar.till-pos .tuc-grid .tlk-row > :nth-child(3) { grid-area: cash; }
    .till-familiar.till-pos .tuc-grid .tlk-row > :nth-child(4) { grid-area: tips; }
    .till-familiar.till-pos .tuc-grid .tlk-row > :nth-child(5) { grid-area: paid; }
    .till-familiar.till-pos .tuc-grid .tlk-row > :nth-child(6) { grid-area: recv; }
    .till-familiar.till-pos .tuc-grid .tlk-row > :nth-child(7) { grid-area: hand; white-space: normal; }
    .till-familiar.till-pos .tuc-grid .tlk-row > :nth-child(8) { grid-area: status; text-align: right; font-weight: 400; font-size: 12px; }
    .till-familiar.till-pos .tuc-grid .tlk-row--head > :nth-child(n+2) { text-align: right; }   /* over their right-aligned figures */
    /* its keys (PW-17, popup walk 2026-11-18): up to six 120 px keys wrapped into ragged right-aligned rows, REFRESH below the
       fold at 360. Two equal columns; a long name ("RECEIVED FROM EMPLOYEE") wraps in a taller key */
    .till-familiar.till-pos .tuc-keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .till-familiar.till-pos .tkey.tuc-key { min-width: 0; height: auto; min-height: 48px; }
}

/* a 360 px phone (the smallest the walks use) */
@media (max-width: 379.98px) {
    /* the customer lookup's CANCEL / NEW / EDIT / NONE share ~72 px each (PW-15, popup walk 2026-11-18): "CANCEL" touched
       both sides of its key at 1.15rem */
    .till-familiar.till-pos .mud-dialog:has(.tlk--cust) :is(.tkey.tlk-cancel, .tkey.tlk-edit) { padding-inline: 2px; font-size: 1rem; }
}

/* a phone on its side */
@media (max-height: 499.98px) and (min-width: 600px) and (max-width: 1023.98px) {
    /* the PIN pad by its own dialog (UW-46, as above); the till's values */
    .till-familiar .mud-dialog.tp-dlg { max-height: calc(100dvh - 12px); }
    .till-familiar .tp-dlg .tp-grid { grid-template-rows: 44px repeat(4, 46px) auto; gap: 5px; }
    .till-familiar .tp-dlg .tp-cancel { min-height: 44px; }
    .till-familiar .tp-dlg .tp-display { min-height: 0; }   /* its row's height (.till-display's 52 px ran under 7-8-9) */

    /* staff cash-ups OPEN FOR (UW-43: 8 px of staff list under the paid-to and comment fields) */
    .till-familiar.till-pos .tuc-form { height: calc(100dvh - 140px); }

    /* the basket's strips one line each (UW-45: a delivery customer took three lines and a discount one more, 3 of 9 order
       lines showed): the customer's name and address side by side, a long one cut with an ellipsis */
    .till-familiar.till-pos .tord .trb-strip { min-height: 24px; padding-block: 1px; white-space: nowrap; overflow-wrap: normal; }
    .till-familiar.till-pos .tord .trb-strip--customer { flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px; }
    .till-familiar.till-pos .tord :is(.trb-strip, .trb-strip > div) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- a phone held sideways 360-400 px tall (PW-23, POS popup walk 2026-11-18): 740 x 360, and a 393 px phone on its side
   (852 x 393). The title, the action row and the paddings left a popup ~230 px: the keyboards' SPACE row was a 13 px strip,
   the Labels' second row a 4 px one, End of Day's type box, Paid In's comment, the count form's ORDERS / PAID IN/OUT and the
   tender pad's tip keys under the action row. A slimmer chrome and lower rows, sized for that room. The prefix has the POS
   rules' specificity (:is keeps its highest), so these win over the sideways block above, and reach a kitchen screen too ---- */
@media (max-height: 400px) and (min-width: 600px) and (max-width: 1023.98px) {
    :is(.till-familiar.till-pos, .till-familiar) .mud-dialog .mud-dialog-title { padding: 4px 12px; }
    :is(.till-familiar.till-pos, .till-familiar) .mud-dialog .mud-dialog-title > .mud-typography { font-size: 1.05rem; }
    :is(.till-familiar.till-pos, .till-familiar) .mud-dialog .mud-dialog-content { padding-top: 4px; padding-bottom: 4px; }
    :is(.till-familiar.till-pos, .till-familiar) .mud-dialog .mud-dialog-actions { padding: 4px 12px 6px; }
    :is(.till-familiar.till-pos, .till-familiar) .mud-dialog .mud-dialog-actions > :is(.mud-button-root, .tkey) { min-height: 40px; }

    /* the keyboards (tags, kitchen notes, delivery fields, customer fields, the void comment): the SPACE row whole */
    :is(.till-familiar.till-pos, .till-familiar) :is(.tk-board, .tk-row) { gap: 3px; }
    :is(.till-familiar.till-pos, .till-familiar) .tk-row .tkey { height: 30px; font-size: 1.1rem; }
    :is(.till-familiar.till-pos, .till-familiar) .tk-display { min-height: 36px; }
    :is(.till-familiar.till-pos, .till-familiar) .mud-dialog:has(.tvr-actions) .tk-row .tkey { height: 27px; }
    :is(.till-familiar.till-pos, .till-familiar) .tvr-actions .tkey { min-height: 38px; }

    /* the number pads (tender amounts, Paid In, the count, the table number): 38 px rows; the tender pad's fields column
       narrower, so its BS / CL stay inside at 740 px (PW-03), a foreign tender's quick amounts in a smaller type */
    :is(.till-familiar.till-pos, .till-familiar) .tn-keys { grid-auto-rows: 38px; }
    :is(.till-familiar.till-pos, .till-familiar) .tn-keys .tkey { font-size: 1.4rem; }
    :is(.till-familiar.till-pos, .till-familiar) .tn-tips .tkey { min-height: 34px; }
    :is(.till-familiar.till-pos, .till-familiar) .tn-quick .tkey { font-size: .85rem; }
    :is(.till-familiar.till-pos, .till-familiar) .mud-dialog-content:has(> .tn-pad) { grid-template-columns: minmax(140px, 180px) minmax(0, 1fr); }
    :is(.till-familiar.till-pos, .till-familiar) :is(.tn-fields, .tn-entry, .tce:has(> .tn-pad), .b5-count) .till-display { min-height: 36px; line-height: 32px; }
    :is(.till-familiar.till-pos, .till-familiar) .b5-count > .b5-rows { max-height: calc(100dvh - 140px); }
    :is(.till-familiar.till-pos, .till-familiar) .b5-count > .b5-review > .tkey { min-height: 34px; }

    /* Labels: lower tiles, chips and keys - two label rows show with four guests */
    :is(.till-familiar.till-pos, .till-familiar) .tlb { height: calc(100dvh - 104px); }
    :is(.till-familiar.till-pos, .till-familiar) .tlb-title { font-size: 1rem; }
    :is(.till-familiar.till-pos, .till-familiar) .tlb-grid { grid-auto-rows: minmax(52px, auto); }   /* a long label grows its row */
    :is(.till-familiar.till-pos, .till-familiar) .tkey.tlb-guest { height: 30px; }
    :is(.till-familiar.till-pos, .till-familiar) .tkey.tlb-key { height: 38px; }

    /* the lists: the room the slimmer chrome gives back */
    :is(.till-familiar.till-pos, .till-familiar) .tmod { height: calc(100dvh - 104px); }
    :is(.till-familiar.till-pos, .till-familiar) .txi { height: calc(100dvh - 104px); }
    :is(.till-familiar.till-pos, .till-familiar) .tkey.txi-tab { height: 34px; }
    :is(.till-familiar.till-pos, .till-familiar) .txi-tiles { grid-auto-rows: 64px; }
    :is(.till-familiar.till-pos, .till-familiar) :is(.txo, .tmv) { height: calc(100dvh - 104px); }
    :is(.till-familiar.till-pos, .till-familiar) .tod { height: calc(100dvh - 104px); }
    :is(.till-familiar.till-pos, .till-familiar) .teod { max-height: calc(100dvh - 110px); }
    :is(.till-familiar.till-pos, .till-familiar) .tkn-grid { max-height: calc(100dvh - 104px); grid-auto-rows: minmax(56px, auto); }
    :is(.till-familiar.till-pos, .till-familiar) .temp-grid { max-height: calc(100dvh - 140px); }
    :is(.till-familiar.till-pos, .till-familiar) .tdc-grid { max-height: calc(100dvh - 130px); }
    :is(.till-familiar.till-pos, .till-familiar) .tch-option { min-height: 50px; font-size: 1.1rem; }
    :is(.till-familiar.till-pos, .till-familiar) .tch-grid--two .tch-option { min-height: 50px; }
    :is(.till-familiar.till-pos, .till-familiar) .tmisc-page .pos-menu-grid { grid-auto-rows: minmax(44px, auto); }
    :is(.till-familiar.till-pos, .till-familiar) .tcat.tmisc-tab { flex-basis: 52px; }

    /* the lookups (PW-12): the pager's keys share its column, the page count on one line ("1 / 17" took three and pushed ▼
       and ⤓ under the action row), a picked customer's long name cut with an ellipsis on the SELECT key */
    :is(.till-familiar.till-pos, .till-familiar) .tlk-body { height: calc(100dvh - 150px); }
    :is(.till-familiar.till-pos, .till-familiar) .tlk--cust { height: calc(100dvh - 104px); }
    :is(.till-familiar.till-pos, .till-familiar) .tlk-pager .tkey { min-height: 0; font-size: 1.1rem; }
    :is(.till-familiar.till-pos, .till-familiar) .tlk-pages { white-space: nowrap; font-size: 11px; }
    :is(.till-familiar.till-pos, .till-familiar) .tlk-pages br { display: none; }
    :is(.till-familiar.till-pos, .till-familiar) .tlk-select-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* print jobs on a till with an operator (PW-10): five keys on one right-aligned row put PROBLEMS 98 px off the left at
       740 px - the row wraps, the keys share each line, none narrower than its word (the tablet-upright block's rule) */
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar).mud-dialog:has(.tpj) .mud-dialog-actions { flex-wrap: wrap; gap: 6px; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar).mud-dialog:has(.tpj) .mud-dialog-actions > * { margin: 0; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-spacer { display: none; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tkey:is(.tpj-key, .tpj-close) { flex: 1 1 auto; min-width: min-content; min-height: 40px; }
    :is(.till-familiar .tpj-dlg, .tpj-dlg.till-familiar) .tpj-grid { max-height: calc(100dvh - 150px); }
}
/* ... and narrower than 820 px (740 x 360; PW-03): the tender pad's quick amounts | keys | splits need ~560 px beside the
   fields and got ~440 - the split ladder sat wholly past the popup's right edge. The fields column slimmer (its figures
   shrink to fit, .tn-fit), the three share the rest down to 46 px a key, a long quick amount wraps instead of running on */
@media (max-height: 400px) and (min-width: 600px) and (max-width: 819.98px) {
    :is(.till-familiar.till-pos, .till-familiar) .mud-dialog-content:has(> .tn-pad) { grid-template-columns: minmax(118px, 140px) minmax(0, 1fr); }
    :is(.till-familiar.till-pos, .till-familiar) .tn-keys { grid-template-columns: repeat(4, minmax(46px, 1fr)); }
    :is(.till-familiar.till-pos, .till-familiar) :is(.tn-quick, .tn-splits) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    :is(.till-familiar.till-pos, .till-familiar) :is(.tn-quick, .tn-splits) .tkey { min-width: 0; padding-inline: 2px; white-space: normal; overflow-wrap: anywhere; line-height: 1.1; }
    :is(.till-familiar.till-pos, .till-familiar) .tn-quick .tkey { font-size: .8rem; }
    /* the void reason's comment step (PW-06): a long reason wraps its label onto two lines here and put BACK / DONE ~28 px
       under the fold - a smaller label, a lower entry box, the comment keyboard 3 px lower a row */
    :is(.till-familiar.till-pos, .till-familiar) .tvr-label { font-size: .9rem; line-height: 1.25; }
    :is(.till-familiar.till-pos, .till-familiar) .mud-dialog:has(.tvr-actions) .tk-display { min-height: 30px; }
    :is(.till-familiar.till-pos, .till-familiar) .mud-dialog:has(.tvr-actions) .tk-row .tkey { height: 24px; font-size: 1rem; }
}

/* shorter still: a paired tablet on a phone held sideways is not full screen - 350 px, not 426 (UW-47: the PIN pad's
   CANCEL / REMOTE row was under the fold); at 740 x 360 CANCEL still lost ~10 px (PW-21) - lower rows, tighter gaps */
@media (max-height: 379.98px) and (min-width: 600px) and (max-width: 1023.98px) {
    .till-familiar .tp-dlg .tp-grid { grid-template-rows: 34px repeat(4, 36px) auto; gap: 3px; }
    .till-familiar .tp-dlg .tp-display { padding-block: 0; font-size: 1.5rem; }
    .till-familiar .tp-dlg .tp-message { margin-bottom: 4px; font-size: .95rem; }
    .till-familiar .tp-dlg .tp-bottom { padding-top: 0; }
}