/* site.css - the look of the app. Plain CSS, no framework, kept in one file on purpose so it is easy to change.

   THE LOOK: Ken's QPI artifact style (Matt, 10/30/2026: "update the whole app to follow his formatting"): a white title bar
   with the QPI logo and a QPI green line under the menus, white panels on a cool grey background, QPI green main buttons
   with dark text, cyan focus rings, status shown as a pill with a dot, Barlow for text, Barlow Semi Condensed capitals for
   labels and column titles, IBM Plex Mono for numbers. The fonts are saved in wwwroot/lib/fonts (the app's security
   settings only allow its own files, so no Google Fonts link). Ken's colours are in his handoff, section 8
   (/mnt/project-files/maverik/ken-temp-hours-handoff.md). Layout and widths are still the Maverik ones (rules 10, 14).

   HOW IT IS ORGANISED
     1. Design tokens    - every colour, radius and shadow is a variable in :root. Change it there, it changes everywhere.
     2. Base + components - text, buttons, inputs, chips, tables, pop-up boxes, the title bar and the category menus (_AppHeader.cshtml).
     3. One section per screen (sign in, equipment list, one piece of equipment, staff dashboard, finish, Home, no permission).
     4. Phones - most of the work is done on a phone, so every screen has a one-column layout at the end of its section,
        and tables turn into cards (each cell shows its column name from data-label).

   Class names the JavaScript (wwwroot/js/site.js) relies on: [data-...] attributes, .sigpad, dialog. */

/* ==============================================================================   1. Design tokens (Ken's QPI colours; the names are the Floor web app's so every screen picks them up)
   ===================================================================================== */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url("../lib/fonts/barlow-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/fonts/barlow-semi-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/fonts/barlow-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../lib/fonts/barlow-semi-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../lib/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../lib/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("../lib/fonts/ibm-plex-mono-600.woff2") format("woff2"); }

:root {
    --fc-cam-bg: #0e171e;      /* the face clock's camera area behind the video (the same in dark mode: it is a picture) */
    --fc-scrim: rgba(0, 0, 0, 0.62);   /* the dark band under the camera's words, so white text reads over any picture */
    --bg: #f2f5f6;
    --panel: #ffffff;
    --text: #15212b;
    --muted: #5a6a76;
    --border: #d7dfe4;
    --border-input: #d7dfe4;
    --border-hover: #5a6a76;
    --accent: #8dc63f;         /* QPI green: primary buttons, the line under the menus (text on it is --on-accent) */
    --accent-dark: #7cb52e;    /* a primary button under the mouse */
    --accent-soft: #edf6e1;
    --accent-ink: #457512;     /* QPI green dark enough for text and ticks */
    --cyan: #00bce4;           /* QPI cyan: focus rings, a button under the mouse */
    --cyan-ink: #006f88;
    --cyan-soft: #e0f5fa;
    --select-bg: #15212b;      /* the chosen part of a switch (Day / Week / Roster) */
    --grid-sel: rgba(0, 156, 196, 0.24);   /* cells picked in a grid to copy (grid.js 6b), laid over their own colour */
    --grid-sel-line: #009cc4;
    --on-select: #ffffff;
    --bar-bg: #ffffff;         /* the title bar and the menus under it */
    --bar-text: #15212b;
    --bar-muted: #5a6a76;
    --bar-hover: #edf1f3;
    --ring: #e0f5fa;
    --focus: #00bce4;
    --login: #e53935;          /* the red Log In / Log Out button */

    /* status colours: red = past due, orange = due soon, green = up to date, blue = someone is working on it */
    --run: #457512;
    --dc-good: #2e9b3a; --dc-wrong: #d92d20; --dc-again: #f08c00; --dc-num: #0b57d0; --dc-none: #8a949e;   /* Display checker marks (on photos) */
    --down: #b3361d;
    --brk: #006f88;
    --wait: #9a5b05;
    --plain: #4a555e;
    --added: #7b3fa0;          /* a pallet added back to inventory (the STF verification report) */
    --gone: #b0247a;           /* a tag Maverik has deleted / shipped / replaced since a Location Validation list */

    --radius: 8px;
    --radius-lg: 10px;
    --shadow: 0 1px 3px rgba(23, 35, 48, 0.08);
    --shadow-up: none;
    --shadow-pop: 0 10px 28px rgba(23, 35, 48, 0.25);   /* menus, pop-ups and drop-down lists */
    --backdrop: rgba(23, 35, 48, 0.45);                  /* behind a pop-up box */

    /* the light greys and the small "state" colours (named, so dark mode can change them in one place) */
    --head-bg: #f6f8f9;        /* grid column titles, footers, the bottom of a pop-up */
    --hover-bg: #f2f6f8;       /* a row or button under the mouse */
    --press-bg: #e8edf0;       /* a button being pressed */
    --line: #e8edf0;           /* the lines between grid rows */
    /* typing boxes inside a grid cell, and grid cells "not needed for this part" (End Shift counts).
       Light mode keeps the plain look (no box, VB's DimGray/LightGray); dark mode outlines the boxes, because
       the greys alone are too close to the panel to see on a floor monitor (Matt 11/19/2026). */
    --cell-edit-bg: transparent;
    --cell-edit-ring: transparent;
    --cell-off-bg: #e8edf0;
    --cell-off-light-bg: #f6f8f9;
    --disabled-bg: #f3f5f6;
    --disabled-text: #a5adb3;
    --current-bg: #e0f5fa;     /* the grid cell that was right-clicked */
    --hit-bg: #ffe58a;         /* words found by a grid's search box (yellow, like the desktop Find panel) */
    --danger-text: #b3361d;
    --danger-border: #e9b5a8;
    --danger-bg: #fae5df;
    --warn-bg: #fbefd9;        /* the "Unverified computer" bar */
    --warn-text: #9a5b05;
    --itw-sa: #e2f0d9; --itw-pink: #fbd5dd; --itw-edit: #fff7d1; --itw-edit-ring: #e0cf72; --itw-note-bg: #fffbe0; --itw-corner: #d92d20;   /* the ITW Report (Excel colors) */
    --warn-border: #efcf96;
    --sim-bg: #f59e0b;         /* the "Viewing as" bar (Admin > Simulate user): loud on purpose, so nobody forgets */
    --sim-text: #1f1300;
    --sim-btn-text: #ffffff;
    --star: #e0a800;
    --star-bg: #fffbea;
    --qty-zero: #ffb6c1;       /* VB: Color.LightPink */
    --refused-ring: #f8d7d7;
    --on-accent: #13200a;      /* text on QPI green (primary buttons and green boxes) */
    /* Messages (section 6): my bubbles, other people's bubbles, links, and the round pictures' colours (white letters
       on them read in light and dark mode, so the five are the same in both) */
    --mine-bg: #e0f5fa;
    --chat-area-bg: #edf1f3;   /* behind the messages; the others' bubbles are white on it */
    --chat-theirs-bg: #ffffff;
    --bubble-shadow: 0 1px 1px rgba(21, 33, 43, 0.13);
    --chat-mine-bg: #dcf0c4;   /* my own messages in a chat: QPI green, like WhatsApp's green (Matt, 11/3/2026) */
    --theirs-bg: #f1f3f5;
    --link: #006f88;
    --pres-available: #6bb700; --pres-away: #f5a524; --pres-offline: #8a959e; --pres-oof: #b4009e; --oof-bg: #f7e6f5;
    --av-1: #4d6f94; --av-2: #7a5aa0; --av-3: #2f7a66; --av-4: #9a5f2c; --av-5: #9a4752;
    /* Pallet Family Tree (section "Pallet Family Tree"): one colour per kind of operation, and the dotted canvas */
    --ft-merge: #1f63c6; --ft-break: #c26a00; --ft-mod: #7b3fa0; --ft-station: #2f7a66; --ft-canvas: #f7f9fa; --ft-dot: #d9dfe4;
    /* Truck Tracker (trucktracker.css): the inventory colours of a shipping truck, the desktop's own (VB ColorStatus) */
    --inv-green: #80ff80; --inv-yellow: #ffff80; --inv-orange: #ffc080; --inv-red: #ff3c3c; --on-inv: #15212b; --on-inv-red: #ffffff;
    --on-wait: #ffffff; --on-brk: #ffffff; /* text on the Dock Board's OUT / IN tags and badges */
    /* Staffing Partners Hours: the ETL's cell colours (green, red, pink, light blue), so the screen matches the Excel file */
    --sp-green: #008000; --sp-red: #c80000; --sp-pink: #ffc0cb; --sp-blue: #add8e6; --on-sp-dark: #ffffff; --on-sp-light: #15212b;
    /* St Francis schedule (stfboard.css): Ken's board colours. Who has to act on past-due work (run = ready, xfer = needs a
       transfer, parts = waiting on QPI parts, cust = waiting on the customer, hold), the grey of a bar's track, the light
       fill of "all open work", and the Firm pill */
    --stf-run: #6fa531; --stf-xfer: #0fa3c6; --stf-parts: #2c6a7b; --stf-cust: #b9c7cc; --stf-hold: #7c8e94;
    --on-stf-run: #ffffff; --on-stf-xfer: #ffffff; --on-stf-parts: #ffffff; --on-stf-cust: #0e2730; --on-stf-hold: #ffffff;
    --stf-track: #e2eaec; --stf-fill: #bcd5db; --stf-firm: #123f4c; --on-stf-firm: #ffffff;
    color-scheme: light;
    --font: "Barlow", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --label-font: "Barlow Semi Condensed", "Barlow", "Segoe UI", system-ui, sans-serif;   /* labels, column titles, pills */
    --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, ui-monospace, Menlo, monospace;   /* numbers, times */
}

/* ==============================================================================   1b. Dark mode (CLAUDE.md rule 15)
   The moon / sun button in the title bar sets <html data-theme="dark"> or "light" (cookie maverik-theme, on this device).
   Until it is pressed (data-theme="auto") the app follows the computer's or phone's own setting.
   Dark mode only changes the colour variables above, so a screen that uses var(--...) for every colour works in both.
   It is for the screen only (@media screen): printing (the tags) is always black on white.
   The two blocks below hold the SAME values: change both.
   ===================================================================================== */
@media screen {
    :root[data-theme="dark"] {
        --bg: #0d1317; --panel: #141c22; --text: #e3ebf0; --muted: #93a4b0;
        --border: #29363f; --border-input: #33424c; --border-hover: #93a4b0;
        --accent: #97cf4a; --accent-dark: #a8da66; --accent-soft: #1a2913; --accent-ink: #a8da66;
        --cyan: #2dcbef; --cyan-ink: #64d8f3; --cyan-soft: #0f2731; --select-bg: #e3ebf0; --on-select: #0d1317;
        --grid-sel: rgba(45, 203, 239, 0.28); --grid-sel-line: #2dcbef;
        --bar-bg: #141c22; --bar-text: #e3ebf0; --bar-muted: #93a4b0; --bar-hover: #1d2830;
        --ring: #0f2731; --focus: #2dcbef;
        --run: #5fae3a; --dc-good: #2e9b3a; --dc-wrong: #d92d20; --dc-again: #f08c00; --dc-num: #0b57d0; --dc-none: #8a949e; --down: #e5604a; --brk: #64d8f3; --wait: #e5a64c; --plain: #b2bcc4; --added: #b483dc; --gone: #e77fc0;
        --shadow: none; --shadow-up: none;
        --shadow-pop: 0 10px 28px rgba(0, 0, 0, 0.6); --backdrop: rgba(0, 0, 0, 0.6);
        --head-bg: #121a20; --hover-bg: #1a242b; --press-bg: #1d2830; --line: #1d2830;
        --disabled-bg: #121a20; --disabled-text: #66727d; --current-bg: #0f2731; --hit-bg: #6b5410;
        --danger-text: #f2846c; --danger-border: #5a2a20; --danger-bg: #341b15;
        --warn-bg: #2d2212; --warn-text: #e5a64c; --warn-border: #5a4320;
        --sim-bg: #d98a06; --sim-text: #140c00; --sim-btn-text: #ffffff;
        --star: #f2c230; --star-bg: #3a3218; --qty-zero: #6e2d3b; --refused-ring: rgba(239, 91, 87, 0.35);
        --mine-bg: #0f2731; --theirs-bg: #1d2830; --chat-mine-bg: #23391a; --chat-area-bg: #0d1317; --chat-theirs-bg: #1d2830; --bubble-shadow: none; --link: #64d8f3;
        --ft-merge: #7aa7ff; --ft-break: #e9a14a; --ft-mod: #b98ae0; --ft-station: #5cc3a6; --ft-canvas: #141a20; --ft-dot: #26303a;
        --inv-green: #5fae3a; --inv-yellow: #d8c64a; --inv-orange: #e59a4c; --inv-red: #d9473a; --on-inv: #0d1317; --on-inv-red: #ffffff;
        --on-wait: #0d1317; --on-brk: #0d1317;
        --sp-green: #2e8b2e; --sp-red: #c0352b; --sp-pink: #f3b3c0; --sp-blue: #9ccfe0; --on-sp-dark: #ffffff; --on-sp-light: #0d1317;
        --stf-run: #8dc63f; --stf-xfer: #22c0e4; --stf-parts: #5c9fb1; --stf-cust: #546b72; --stf-hold: #3e5259;
        --on-stf-run: #0e2730; --on-stf-xfer: #0e2730; --on-stf-parts: #0e2730; --on-stf-cust: #e3edf0; --on-stf-hold: #e3edf0;
        --stf-track: #1b353d; --stf-fill: #2f5662; --stf-firm: #2a6f82; --on-stf-firm: #ffffff;
        --pres-available: #92c353; --pres-away: #f8c050; --pres-offline: #7c8a94; --pres-oof: #d66bc8; --oof-bg: #2e1a2c;
        --cell-edit-bg: #22303a; --cell-edit-ring: #5b7384;
        --itw-sa: #1c2b14; --itw-pink: #4a2029; --itw-edit: #2c2a17; --itw-edit-ring: #6b6230; --itw-note-bg: #2c2a17; --itw-corner: #ff6b5e;
        --cell-off-bg: repeating-linear-gradient(135deg, #080c0f 0 8px, #0f1519 8px 16px); --cell-off-light-bg: #0b1013;
        color-scheme: dark;
    }
}
@media screen and (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d1317; --panel: #141c22; --text: #e3ebf0; --muted: #93a4b0;
        --border: #29363f; --border-input: #33424c; --border-hover: #93a4b0;
        --accent: #97cf4a; --accent-dark: #a8da66; --accent-soft: #1a2913; --accent-ink: #a8da66;
        --cyan: #2dcbef; --cyan-ink: #64d8f3; --cyan-soft: #0f2731; --select-bg: #e3ebf0; --on-select: #0d1317;
        --grid-sel: rgba(45, 203, 239, 0.28); --grid-sel-line: #2dcbef;
        --bar-bg: #141c22; --bar-text: #e3ebf0; --bar-muted: #93a4b0; --bar-hover: #1d2830;
        --ring: #0f2731; --focus: #2dcbef;
        --run: #5fae3a; --dc-good: #2e9b3a; --dc-wrong: #d92d20; --dc-again: #f08c00; --dc-num: #0b57d0; --dc-none: #8a949e; --down: #e5604a; --brk: #64d8f3; --wait: #e5a64c; --plain: #b2bcc4; --added: #b483dc; --gone: #e77fc0;
        --shadow: none; --shadow-up: none;
        --shadow-pop: 0 10px 28px rgba(0, 0, 0, 0.6); --backdrop: rgba(0, 0, 0, 0.6);
        --head-bg: #121a20; --hover-bg: #1a242b; --press-bg: #1d2830; --line: #1d2830;
        --disabled-bg: #121a20; --disabled-text: #66727d; --current-bg: #0f2731; --hit-bg: #6b5410;
        --danger-text: #f2846c; --danger-border: #5a2a20; --danger-bg: #341b15;
        --warn-bg: #2d2212; --warn-text: #e5a64c; --warn-border: #5a4320;
        --sim-bg: #d98a06; --sim-text: #140c00; --sim-btn-text: #ffffff;
        --star: #f2c230; --star-bg: #3a3218; --qty-zero: #6e2d3b; --refused-ring: rgba(239, 91, 87, 0.35);
        --mine-bg: #0f2731; --theirs-bg: #1d2830; --chat-mine-bg: #23391a; --chat-area-bg: #0d1317; --chat-theirs-bg: #1d2830; --bubble-shadow: none; --link: #64d8f3;
        --ft-merge: #7aa7ff; --ft-break: #e9a14a; --ft-mod: #b98ae0; --ft-station: #5cc3a6; --ft-canvas: #141a20; --ft-dot: #26303a;
        --inv-green: #5fae3a; --inv-yellow: #d8c64a; --inv-orange: #e59a4c; --inv-red: #d9473a; --on-inv: #0d1317; --on-inv-red: #ffffff;
        --on-wait: #0d1317; --on-brk: #0d1317;
        --sp-green: #2e8b2e; --sp-red: #c0352b; --sp-pink: #f3b3c0; --sp-blue: #9ccfe0; --on-sp-dark: #ffffff; --on-sp-light: #0d1317;
        --stf-run: #8dc63f; --stf-xfer: #22c0e4; --stf-parts: #5c9fb1; --stf-cust: #546b72; --stf-hold: #3e5259;
        --on-stf-run: #0e2730; --on-stf-xfer: #0e2730; --on-stf-parts: #0e2730; --on-stf-cust: #e3edf0; --on-stf-hold: #e3edf0;
        --stf-track: #1b353d; --stf-fill: #2f5662; --stf-firm: #2a6f82; --on-stf-firm: #ffffff;
        --pres-available: #92c353; --pres-away: #f8c050; --pres-offline: #7c8a94; --pres-oof: #d66bc8; --oof-bg: #2e1a2c;
        --cell-edit-bg: #22303a; --cell-edit-ring: #5b7384;
        --itw-sa: #1c2b14; --itw-pink: #4a2029; --itw-edit: #2c2a17; --itw-edit-ring: #6b6230; --itw-note-bg: #2c2a17; --itw-corner: #ff6b5e;
        --cell-off-bg: repeating-linear-gradient(135deg, #080c0f 0 8px, #0f1519 8px 16px); --cell-off-light-bg: #0b1013;
        color-scheme: dark;
    }
}
/* The theme button in the title bar shows a moon in light mode and a sun in dark mode */
.theme-btn, .tb-find-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--bar-muted); cursor: pointer; }
.theme-btn:hover, .tb-find-btn:hover { background: var(--bar-hover); color: var(--bar-text); }
.theme-btn .ic-sun { display: none; }
@media screen { :root[data-theme="dark"] .theme-btn .ic-sun { display: inline; } :root[data-theme="dark"] .theme-btn .ic-moon { display: none; } }
@media screen and (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-btn .ic-sun { display: inline; }
    :root:not([data-theme="light"]) .theme-btn .ic-moon { display: none; }
}

/* ==============================================================================   2. Base and components
   ===================================================================================== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { height: 100%; }
body {
    margin: 0; min-height: 100%;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.35;
}

h1 { font-size: 27px; font-weight: 700; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: 21px; font-weight: 700; margin: 0; }
.muted, .sub { color: var(--muted); }
.sub { font-size: 14px; }
.hint { font-size: 13px; color: var(--muted); }
.code { font-family: var(--mono); font-weight: 600; font-size: 0.92em; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.spacer { flex: 1; }
form { margin: 0; }
fieldset { border-color: var(--border-input); }   /* the browser's own grey is wrong in dark mode */
form.inline { display: inline; }

/* ---- THE SCREEN LAYOUT (CLAUDE.md rule 14) ----
   Every screen is the same width: the content area under the menus fills the screen up to 1840px (a 1920 screen at 100%),
   and on a screen wider than 1920 (UHD) it fills the whole width,
   so the title and the panels start in the same place on every screen. Never give one screen its own narrower max-width.
   Inside a form panel (.move-steps) the boxes stay a readable width (--form-max) and line up on the left; lists (the shared
   grid) use the whole panel. A long form with a second part (Print Pallet Tag's quantities) uses .screen-cols: two panels
   side by side on a desktop, one under the other on a small screen. */
:root { --form-max: 1000px; }
.content { padding: 18px 24px 32px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 1840px; margin-inline: auto; width: 100%; }
/* Wider than a 1920 screen (UHD and 2560 monitors, Matt 11/25/2026): no cap, the screen fills edge to edge like the menus
   above it, so wide grids show more columns. At 1920 and under nothing changes (the help pictures are taken at 1920 or less). */
@media screen and (min-width: 1921px) { .content, .content.content-wide, .fk-main { max-width: none; } }
.move-steps > :not(.grid-wrap):not(.screen-cols) { max-width: var(--form-max); width: 100%; }
.screen-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.screen-cols > .panel { min-width: 0; }
/* A section of a screen (cards, tiles, a heading and its list) is a white panel too: <section class="panel panel-pad panel-section">
   with its <h2 class="sec-h"> inside. Nothing of a screen sits straight on the grey background except the title row (.page-head),
   the stat boxes (.stats) and the shared grid (it is a white panel itself). */
.panel-section { display: grid; gap: 12px; align-content: start; }
.panel-section > .sec-h { margin: 0; }
.panel-section > .empty { padding: 14px 12px; }
@media screen and (max-width: 1100px) { .screen-cols { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }   /* the title row of every screen: title left, buttons and views (.seg) right */
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 15px; }
.back:hover { color: var(--text); }

.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-pad { padding: 14px 16px; }

/* ---- line icons (Forms/Shared/_Icon.cshtml) ---- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 15px; height: 15px; }

/* ---- chips: coloured text on a light wash of the same colour ---- */
.chip {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
    font-family: var(--label-font); font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
    color: var(--chip, var(--plain)); background: color-mix(in srgb, var(--chip, var(--plain)) 12%, transparent);
}
.chip::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }   /* Ken's dot */
.late { --chip: var(--down); }
.soon { --chip: var(--wait); }
.ok { --chip: var(--run); }
.work { --chip: var(--brk); }
.plain { --chip: var(--plain); }
.added { --chip: var(--added); }

/* ---- buttons and inputs ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 8px 16px; min-height: 44px;
    font-size: 16px; font-weight: 600; font-family: inherit; line-height: 1.2;
    background: var(--panel); color: var(--text);
    border: 1px solid var(--border-input); border-radius: 7px; box-shadow: var(--shadow);
    text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover:not(:disabled) { border-color: var(--cyan); background: var(--panel); }
.btn:active:not(:disabled) { background: var(--press-bg); }
.btn:focus-visible, .input:focus-visible, .fchip:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn:disabled { color: var(--disabled-text); background: var(--disabled-bg); box-shadow: none; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: var(--shadow-up); }
.btn-primary:hover:not(:disabled), .btn-primary:active:not(:disabled) { background: var(--accent-dark); color: var(--on-accent); border-color: var(--accent-dark); }
.btn-go { background: var(--run); color: #ffffff; border-color: var(--run); }
.btn-go:hover:not(:disabled), .btn-go:active:not(:disabled) { background: color-mix(in srgb, var(--run) 82%, #000000); color: #ffffff; border-color: color-mix(in srgb, var(--run) 82%, #000000); }
.btn-danger { color: var(--danger-text); border-color: var(--danger-border); }
.btn-danger:hover:not(:disabled) { border-color: var(--down); background: var(--danger-bg); color: var(--danger-text); }
.btn-big { font-size: 18px; min-height: 54px; padding: 10px 22px; }
.btn-small { font-size: 14px; min-height: 36px; padding: 4px 12px; }
.btn-full { width: 100%; }

.field { display: grid; gap: 5px; min-width: 0; }
.field > label, .field > .label { font-family: var(--label-font); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.input {
    width: 100%; padding: 8px 11px; min-height: 44px; font-size: 16px; font-family: inherit;   /* 16px: phones don't zoom in */
    border: 1px solid var(--border-input); border-radius: 9px; background: var(--panel); color: var(--text);
}
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--ring); }
input.input[type="time"], input.input[type="date"], input.input[type="number"], input.input[type="datetime-local"] { font-family: var(--mono); font-variant-numeric: tabular-nums; }
textarea.input { min-height: 84px; line-height: 1.4; resize: vertical; }
.input-big { font-size: 28px; text-align: center; min-height: 60px; }
/* Shows dots instead of the timecard number without being a "password" box (same as the Floor web app) */
.masked { -webkit-text-security: disc; text-security: disc; }
.field-error { color: var(--down); font-size: 14px; font-weight: 600; }
.g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.check-line { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-ink); width: 18px; height: 18px; }

/* A filter chip (the status filters, the warehouse picker) */
.fchip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px;
    border: 1px solid var(--border-input); background: var(--panel); border-radius: 999px;
    font: inherit; font-size: 14px; color: var(--text); cursor: pointer; white-space: nowrap;
}
.fchip[aria-pressed="true"], .fchip:has(input:checked) { background: var(--select-bg); border-color: var(--select-bg); color: var(--on-select); font-weight: 600; }
.fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fchip .count { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* A two-way switch (Tasks / History, Due now / Upcoming) */
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 3px; gap: 2px; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; }
.seg a { padding: 7px 16px; border-radius: 6px; font-weight: 600; color: var(--text); text-decoration: none; font-size: 15px; white-space: nowrap; }
.seg a[aria-current="page"] { background: var(--select-bg); color: var(--on-select); font-weight: 600; }
.oe-switch a { display: inline-flex; align-items: center; gap: 6px; }   /* External order: One order | Many orders from Excel (Forms/Orders/_OrderEntrySwitch) */

/* ---- tables ---- */
.grid-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
/* "separate", not "collapse": with collapsed borders the line under a sticky column title scrolls away */
.grid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.grid th {
    background: var(--head-bg); text-align: left; font-family: var(--label-font); font-size: 13px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tr[data-href] { cursor: pointer; }
/* A block of cells picked with the mouse to copy (grid.js 6b, Fabiha 11/25/2026): a tint over the cell's own colour, so
   the order colours still show */
.grid td.grid-sel { background-image: linear-gradient(var(--grid-sel), var(--grid-sel)); box-shadow: inset 0 0 0 1px var(--grid-sel-line); }
.grid tbody.grid-selecting, .grid tbody.grid-selecting * { user-select: none; cursor: cell; }
.grid tr[data-href]:hover td { background: var(--hover-bg); }
.grid tr.retired td { color: var(--muted); }
.sig-thumb { height: 30px; width: auto; max-width: 110px; display: block; }

/* ---- the shared grid (wwwroot/js/grid.js): the count line, sort and filter in the column titles, the right-click
   menu, the footer. The title bar (.top-bar), the count line and the column titles stick to the top of the screen and
   the footer to the bottom, so the page keeps its one scroll bar: a [data-grid] wrap has no scroll box of its own
   (a scroll box would hold the sticky titles inside it). --top-h and --grid-bar-h are set by grid.js. ---- */
.top-bar { position: sticky; top: 0; z-index: 30; }
.content.content-wide { max-width: 1840px; }   /* the same as .content now (every screen is this wide); kept so old markup still works */
.grid-wrap[data-grid] { overflow: visible; }
.grid-bar {
    position: sticky; top: calc(var(--top-h, 0px) - 1px); z-index: 6;   /* 1px under the title bar: no gap at 150% zoom */ display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
    padding: 7px 10px; background: var(--panel); border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0;
}
.grid-count { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.grid-note { font-size: 14px; font-weight: 600; color: var(--run); }
.grid-note.bad { color: var(--down); }
.grid-bar .btn-small { min-height: 34px; padding: 3px 10px; gap: 6px; }
.grid-phone { display: none !important; }
/* Expand (grid.js section 7, Matt 11/6/2026): the grid over the whole window with one scroll bar. Its own box (.grid-x,
   .grid-scroll) scrolls when it has one, else the grid itself does; the count line and column titles stay at its top.
   Under the filter menus (z-index 100) so they still open on it. Computers only: hidden on a phone and on paper. */
.grid-bar .grid-expand[aria-pressed="true"] { background: var(--select-bg); border-color: var(--select-bg); color: var(--on-select); }
html.grid-full-open, html.grid-full-open body { overflow: hidden; }
.grid-wrap[data-grid].grid-full {
    position: fixed; inset: 0; z-index: 90; margin: 0; border-radius: 0; border: 0; --top-h: 0px;
    display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; max-width: none; width: auto; height: auto;
}
.grid-wrap[data-grid].grid-full > .grid-bar { position: sticky; top: 0; flex: none; border-radius: 0; }
.grid-wrap[data-grid].grid-full > table { flex: none; }
.grid-wrap[data-grid].grid-full .grid-x, .grid-wrap[data-grid].grid-full .grid-scroll {
    flex: 1 1 auto; min-height: 0; max-height: 100vh !important; height: auto; overflow: auto; border-radius: 0;
}
.grid-wrap[data-grid].grid-full:has(.grid-x, .grid-scroll) { overflow: hidden; }
.grid-wrap[data-grid].grid-full .grid-x thead th, .grid-wrap[data-grid].grid-full .grid-scroll thead th { top: 0; }
/* Until grid.js has fitted the boxes (html.grid-fitted, its section 7) a box on the page has no limit: a long report shows
   its first rows while the rest is still arriving, and a box at a start height under the filters made the page scroll as
   well, two scroll bars for a moment (Matt 11/6/2026). Boxes in a pop-up box keep their own height. */
html:not(.grid-fitted) :is(.grid-wrap[data-grid] .grid-x, .grid-wrap[data-grid] .grid-scroll, .lookup-scroll, .hr-roles-scroll, .grid-box, .ss-wrap, .ss-sheet-wrap, [data-grid-fit]):not(dialog *, .modal *) { max-height: none !important; }
/* A box of its own for a list beside another one (the right side of Lookup tables and Email lists, the Roles permissions):
   grid.js makes it as tall as the window has room for, so the page doesn't scroll as well (one scroll bar, Matt 11/6/2026) */
.grid-box, [data-grid-fit] { overflow: auto; overscroll-behavior-x: contain;   /* -x only: orders.css .grid-x */ --top-h: 0px; border-radius: var(--radius); }
@media screen and (max-width: 760px) { .grid-box, [data-grid-fit] { max-height: none !important; overflow: visible; } }
/* the search box above a grid (data-grid-find), like the Find panel on the desktop grids: its own line at the top of the bar */
.grid-find { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; padding-bottom: 7px; margin-bottom: 1px; border-bottom: 1px solid var(--border); }
.grid-find .input { flex: 0 1 560px; min-width: 0; min-height: 36px; }
.grid-find .btn[hidden] { display: none; }
.grid mark.grid-hit { background: var(--hit-bg); color: inherit; border-radius: 3px; padding: 0; }
.grid-find input::-webkit-search-cancel-button { display: none; }   /* Clear is the button next to it */
/* --grid-bar-stick (grid.js placeHead): the count line's height when it sticks, 0 when the page lets it scroll away, so
   the titles never stick a row below the title bar with a row showing above them (Matt 11/12/2026, every report).
   A grid in its own scroll box (grid-boxed) has its titles at the top of that box. */
.grid-wrap[data-grid] thead th { position: sticky; top: calc(var(--top-h, 0px) + var(--grid-bar-stick, var(--grid-bar-h, 0px)) - 2px); z-index: 5; }
.grid-wrap[data-grid].grid-boxed thead th { top: 0; }
.grid-sort {
    border: 0; background: transparent; padding: 0; margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit;
    color: inherit; cursor: pointer; text-align: left; white-space: nowrap;
}
.grid-sort::after { content: ""; display: inline-block; width: 12px; }
.grid th[aria-sort="ascending"] .grid-sort::after { content: " \25B4"; }
.grid th[aria-sort="descending"] .grid-sort::after { content: " \25BE"; }
.grid th[aria-sort] .grid-sort { color: var(--text); }
.grid-funnel {
    display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin: -6px -6px -6px 2px;
    vertical-align: middle; border: 0; border-radius: 6px; background: transparent; color: var(--disabled-text); cursor: pointer;
}
.grid-funnel .ic { width: 14px; height: 14px; }
.grid-funnel:hover { background: var(--accent-soft); color: var(--text); }
.grid th.is-filtered .grid-funnel { background: var(--cyan-ink); color: #ffffff; }
.grid-sort:focus-visible, .grid-funnel:focus-visible, .grid-sum:focus-visible, .grid-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.grid-out { display: none !important; }
/* Grouped rows (grid.js data-grid-group, the Receiving Report, Matt 11/4/2026): a heading row per group, like the Production
   app's grouped grids. Click the heading to close or open its group. */
.grid tr.grid-group > td { background: var(--head-bg); border-top: 1px solid var(--border); box-shadow: inset 3px 0 0 var(--accent); cursor: pointer; font-weight: 600; white-space: normal; }
.grid tr.grid-group:hover > td { background: var(--hover-bg); }
.grid tr.grid-group > td::before { content: "\25BE"; display: inline-block; width: 1.1em; color: var(--muted); }
.grid tr.grid-group.is-shut > td::before { content: "\25B8"; }
.grid tr.grid-shut { display: none !important; }
/* while searching, a closed group shows its matching rows */
.grid-wrap.grid-searching tr.grid-shut:not(.grid-out) { display: table-row !important; }
/* A big grid (grid.js data-grid-big, Matt 11/3/2026: Chrome ran out of memory on Inventory Section): only the rows on screen
   are real rows, so every row is one line high (long words end in "...", the whole words show when you point at them) and
   the columns keep their widths while it scrolls. The rows not drawn are an empty row (.grid-spacer) as tall as them. */
.grid-wrap.grid-big .grid tr.grid-spacer td { padding: 0 !important; border: 0 !important; background: none !important; }
/* several links in one cell (grid.js data-link-list, Projects > Components "Used on projects"): one line on a computer, wrapped on a phone card */
.grid .grid-links { white-space: nowrap; }
@media (max-width: 760px) { .grid .grid-links { white-space: normal; min-width: 0; text-align: right; } }
.grid td.dev { font-weight: 600; }   /* 3M Finished Goods to Raw: the deviation group and its total */
/* Reports > Admin > ETL jobs: the long text columns keep a set width, so the jobs fit at 1280 wide */
.etl-grid .grid td.etl-job { min-width: 150px; max-width: 240px; }
.etl-grid .grid td.etl-streak { max-width: 110px; }
.etl-grid .grid td.etl-runs { min-width: 120px; max-width: 150px; }
.etl-grid .grid td.etl-miss { min-width: 150px; max-width: 220px; overflow-wrap: anywhere; }
.etl-grid .grid td.etl-task { min-width: 120px; max-width: 140px; overflow-wrap: anywhere; }
/* Run now (a form) and Make live / Back to shadow (a link) side by side, same height and top (Matt 11/12/2026) */
.etl-grid .etl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.etl-grid .etl-actions .inline-form { display: flex; margin: 0; }
.etl-grid .etl-actions .btn { margin: 0; }
@media (max-width: 760px) { .etl-grid .grid td.etl-job, .etl-grid .grid td.etl-streak, .etl-grid .grid td.etl-runs, .etl-grid .grid td.etl-miss, .etl-grid .grid td.etl-task { min-width: 0; max-width: none; } }
@media screen and (min-width: 761px) {
    .grid-wrap.grid-big .grid { table-layout: fixed; width: 100%; min-width: var(--big-w, 0); }
    .grid-wrap.grid-big .grid td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media screen and (max-width: 760px) {
    .stack-on-phone.grid-big .grid tr.grid-spacer { padding: 0; margin: 0; border: 0; box-shadow: none; background: none; }
    .stack-on-phone.grid-big .grid tr.grid-spacer td::before { content: none; }
}
.grid tbody td { -webkit-touch-callout: none; }
.grid td.grid-current { background: var(--current-bg); box-shadow: inset 0 0 0 2px var(--focus); }
.grid tfoot td {
    position: sticky; bottom: 0; z-index: 4; padding: 5px 6px; background: var(--head-bg);
    border-top: 1px solid var(--border); white-space: nowrap;
}
.grid tfoot tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.grid tfoot tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
.grid-sum {
    display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 3px 8px; border: 1px solid transparent; border-radius: 8px;
    background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.grid-sum.is-none { color: var(--disabled-text); font-weight: 400; }
.grid-sum:hover { border-color: var(--border-hover); background: var(--panel); color: var(--text); }
.grid-empty { margin: 0; }
/* the pop-up: the right-click menu, a column's sort and filter, a footer cell's total */
.grid-pop {
    position: fixed; z-index: 100; min-width: 230px; max-width: min(380px, calc(100vw - 16px)); max-height: calc(100vh - 16px); overflow: auto;
    padding: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop);
    font-size: 15px;
}
.grid-pop:focus { outline: none; }
.grid-menu { display: grid; gap: 1px; }
.grid-item {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 7px 12px; border: 0; border-radius: 8px;
    background: transparent; font: inherit; color: var(--text); text-align: left; cursor: pointer; white-space: nowrap;
}
.grid-item .ic { color: var(--muted); }
.grid-item:hover:not(:disabled), .grid-item:focus-visible { background: var(--accent-soft); }
.grid-item:disabled { color: var(--disabled-text); cursor: default; }
.grid-item:disabled .ic { color: var(--disabled-text); }
.grid-item[aria-checked="true"] { font-weight: 600; }
.grid-item[aria-checked="true"]::after { content: "\2713"; margin-left: auto; padding-left: 12px; color: var(--accent-ink); font-weight: 700; }
.grid-menu-h { padding: 8px 12px 2px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.grid-sep { height: 1px; margin: 4px 6px; background: var(--border); }
.grid-filter { display: grid; gap: 8px; padding: 6px 4px 2px; border-top: 1px solid var(--border); margin-top: 4px; }
.grid-filter .input { min-height: 38px; }
.grid-values { max-height: 260px; overflow: auto; padding: 4px; border: 1px solid var(--border); border-radius: 8px; }
.grid-values label { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.grid-values label:hover { background: var(--accent-soft); }
.grid-values span { overflow-wrap: anywhere; }
.grid-values .n { margin-left: auto; padding-left: 10px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.grid-filter-acts { display: flex; justify-content: flex-end; gap: 8px; }
.grid-filter-acts .btn { min-width: 90px; }
/* a date column's filter (grid.js dateFilter): Values (Year > Month > Day) and Date Filters tabs, like the Production app */
.grid-dates { min-width: 300px; }
.grid-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.grid-tab {
    padding: 8px 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; font: inherit; font-weight: 600;
    color: var(--muted); cursor: pointer; margin-bottom: -1px;
}
.grid-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent-ink); }
.grid-tree { max-height: 320px; }
.grid-tree-line { display: flex; align-items: center; }
.grid-tree-line label { flex: 1; min-width: 0; }
.grid-tree-tog { flex: none; width: 22px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
button.grid-tree-tog::before { content: "\25B8"; display: inline-block; transition: transform 0.12s; }
button.grid-tree-tog[aria-expanded="true"]::before { transform: rotate(90deg); }
.grid-conds { display: grid; gap: 8px; padding-top: 4px; }
.grid-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.grid-pick {
    min-height: 36px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel);
    font: inherit; font-size: 14px; color: var(--text); text-align: left; cursor: pointer;
}
.grid-pick:hover { background: var(--accent-soft); }
.grid-pick[aria-pressed="true"] { border-color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.grid-cond { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
.grid-cond.is-on { border-color: var(--accent-ink); background: var(--accent-soft); }
.grid-cond .input { min-height: 38px; }
.grid-cond-dates { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.grid-cond-dates[hidden], .grid-cond-dates [hidden] { display: none; }
.grid-cond-err { margin: 0; color: var(--danger-text); font-size: 14px; }

/* ---- pop-up boxes (<dialog>) ---- */
dialog { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; color: var(--text); box-shadow: var(--shadow-pop); }
dialog::backdrop { background: var(--backdrop); }
/* The phone keyboard is open (site.js "keyboard", Matt 11/11/2026): room under the page for the part the keyboard covers, so
   a short page can still scroll up to the box; a pop-up sits at the top of what is showing and scrolls inside itself. */
html.kb-open body { padding-bottom: var(--kb-h, 0px); }
html.kb-open dialog[open]:not(.flyout):not(.pallet-history):not(.tag-viewer):not(.file-preview) { position: fixed; inset: calc(var(--vv-top, 0px) + 8px) 0 auto 0; margin: 0 auto;
    max-height: calc(var(--vv-h, 100dvh) - 16px); overflow-y: auto; overscroll-behavior: contain; }
.modal { width: min(620px, calc(100vw - 24px)); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 16px 18px; display: grid; gap: 12px; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--head-bg); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
/* Pop-ups that move (modal-drag.js, Kenia 11/25/2026): drag a pop-up by its title row with a mouse; computers only. A moved box
   is placed by left / top (not a transform, which would shift what inside it is placed on the window). Once moved, the
   dimming behind it is lighter so the screen behind can be read. */
@media (min-width: 761px) and (any-pointer: fine) {
    dialog[open] .modal-head { cursor: move; }
    dialog[open][data-no-drag] .modal-head { cursor: auto; }
    dialog[open] .modal-head :is(button, a, input, select, textarea, label, summary) { cursor: pointer; }
    dialog[open] .modal-head :is(input, textarea) { cursor: text; }
}
dialog[data-moved][open] { margin: 0 !important; inset: auto !important; left: var(--drag-left, 0px) !important; top: var(--drag-top, 0px) !important; }
dialog[data-moved]::backdrop { opacity: 0.35; }
dialog[data-dragging], dialog[data-dragging] * { user-select: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--accent-soft); color: var(--text); }
/* Forklift prompt (_Prompt): OK is first in the page so Enter presses it; Cancel is still drawn on the left */
.modal-foot .fk-prompt-cancel { order: -1; }
.message-text { font-size: 18px; white-space: pre-wrap; line-height: 1.4; margin: 0; }

/* The "working" box (same idea as the Floor web app's): shows while the next screen loads, in English and Spanish */
.working-box { position: relative; text-align: center; padding: 26px 30px 34px; width: min(440px, calc(100vw - 32px)); }
/* how long it has been waiting, bottom left of the box */
.working-time { position: absolute; left: 14px; bottom: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.working-spinner { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; border: 4px solid var(--ring); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.working-box p { margin: 4px 0; }
.working-en { font-size: 20px; font-weight: 600; }
.working-es { color: var(--muted); }
/* a loop's progress under the words (S_Progress, CLAUDE.md rule 21) */
.working-count { margin: 12px 0 2px; }
.working-bar { height: 6px; border-radius: 3px; background: var(--ring); overflow: hidden; }
.working-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }
/* a slow report past its usual time (Matt, 11/3/2026) */
.working-box .working-almost { margin: 10px 0 0; font-size: 14px; color: var(--warn-text); background: var(--warn-bg); border-radius: 6px; padding: 6px 10px; }
/* A form a small save put back with what was typed and not saved yet (site.js part 1, Trevor 11/23/2026) */
.draft-kept { margin: 0 0 12px; font-size: 14px; color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 6px; padding: 8px 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
/* the same spinner and words inside a part of the page (MaverikWorking.inline: the pallet history pop-up) */
.working-inline { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px 12px; font-size: 17px; font-weight: 600; color: var(--muted); }
.working-inline .working-spinner { width: 28px; height: 28px; margin: 0; border-width: 3px; }
@media (prefers-reduced-motion: reduce) { .working-spinner { animation-duration: 3s; } }

/* ---- the title bar and the module tabs (Forms/Shared/_AppHeader.cshtml) ---- */
/* "Unverified computer" under the title bar (_Layout): a computer with no approved-device key */
.device-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 24px; background: var(--warn-bg); color: var(--warn-text); border-bottom: 1px solid var(--warn-border); font-size: 14px; }
.device-bar span { flex: 1; min-width: 200px; }
/* Admin > Simulate user: the bar under the title bar while viewing as someone (_AppHeader) */
.sim-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 24px; background: var(--sim-bg); color: var(--sim-text); font-size: 15px; }
.sim-bar > .ic { width: 22px; height: 22px; flex: none; }
.sim-bar .sim-text { flex: 1; min-width: 200px; }
.sim-bar .sim-stop { background: var(--sim-text); color: var(--sim-btn-text); border-color: var(--sim-text); font-weight: 600; }
.sim-bar .sim-stop:hover { background: var(--sim-text); color: var(--sim-btn-text); opacity: .88; }
/* Admin > Simulate user: the "Menus they see" chips wrap onto more lines on a narrow screen */
.sim-menus { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; max-width: 100%; }
/* People > Employees: the eye next to a name that starts View as (Admin > Simulate user) */
.hr-view-as { min-height: 0; padding: 3px 6px; margin-left: 6px; vertical-align: middle; }
.hr-view-as .ic { margin: 0; }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 24px; background: var(--bar-bg); color: var(--bar-text); }
.bar-logo { height: 44px; }   /* wwwroot/images/qpi-logo-clear.png: see-through, so it sits on light and dark */
.bar-title { font-size: 22px; font-weight: 700; }
.bar-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--bar-hover); font-size: 15px; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang a { padding: 5px 11px; font-size: 13px; color: var(--bar-muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--select-bg); color: var(--on-select); font-weight: 700; }
.btn-logout {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px;
    background: transparent; color: var(--danger-text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.btn-logout:hover { background: var(--danger-bg); border-color: var(--danger-text); }
/* The title bar's Tools and name drop-downs (_AppHeader <details data-bar-menu>, site.js part 2c; Matt 11/26/2026: only
   Messages and the bells stay in the bar). The button is a pill like the bar's chips; the list drops down under it, lined
   up with its right edge; on a phone it is fixed under the title bar at the right, as wide as the screen allows (rule 17). */
.bar-menu { position: relative; display: inline-flex; }
.bar-menu > summary { list-style: none; }
.bar-menu > summary::-webkit-details-marker { display: none; }
.bar-menu-btn {
    position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--border); color: var(--bar-text); font-size: 15px; font-weight: 600; cursor: pointer; user-select: none; white-space: nowrap;
}
.bar-menu-btn:hover, .bar-menu[open] > .bar-menu-btn { background: var(--bar-hover); }
.bar-menu-btn > .ic { width: 19px; height: 19px; color: var(--bar-muted); }
.bar-menu[open] .menu-caret { transform: rotate(180deg); }
.user-btn { background: var(--bar-hover); border-color: transparent; }
.user-btn strong { font-weight: 700; }
.bar-menu-btn .rm-count { background: var(--down); }
.bar-menu-btn .new-flag { position: absolute; top: -9px; left: -8px; margin: 0; font-size: 9px; padding: 0 5px; }
.bar-pop {
    position: absolute; z-index: 46; top: calc(100% + 8px); right: 0; width: 300px; max-width: calc(100vw - 16px);
    max-height: calc(100vh - 90px); overflow-y: auto; padding: 6px; display: grid; grid-template-columns: minmax(0, 1fr);
    background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop);
}
.bar-item {
    display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 8px;
    background: transparent; color: var(--text); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.bar-item:hover, .bar-item:focus-visible { background: var(--hover-bg); }
.bar-item-static { cursor: default; }
.bar-item-static:hover { background: transparent; }
.bar-item > .ic { width: 20px; height: 20px; flex: none; color: var(--muted); }
.bar-item > span:not(.bar-item-r) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bar-item-r { margin-left: auto; padding-left: 8px; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 0; }
.bar-due { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--down); color: #ffffff; font-size: 12px; font-weight: 700; text-align: center; }
.bar-pop .lang { flex: none; }
.bar-pop .lang a { color: var(--muted); }
.bar-pop .lang a[aria-current="true"] { color: var(--on-select); }
.bar-pop-name { display: grid; padding: 8px 12px 6px; }
.bar-pop-name small { color: var(--muted); font-size: 13px; }
.bar-sep { height: 1px; margin: 5px 6px; background: var(--border); }
.bar-pop form.inline { display: block; }
.bar-pop .btn-logout { border: 0; min-height: 42px; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 700; color: var(--danger-text); }
.bar-pop .btn-logout > .ic { color: var(--danger-text); }
.app-bar .bar-pop .bar-item.btn-logout > span { display: inline; }   /* the bar's old Log Out button hid its word on phones and beside Exit */
.bar-pop .btn-logout:hover { background: var(--danger-bg); }
/* Dark mode switch: "Off" lit in light mode, "On" lit in dark mode (the same test as the theme button's moon and sun) */
.bar-switch { display: inline-flex; padding: 0; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; flex: none; }
.bar-switch > span { padding: 3px 10px; }
.bar-switch .bt-off { background: var(--select-bg); color: var(--on-select); font-weight: 700; }
@media screen { :root[data-theme="dark"] .bar-switch .bt-off { background: transparent; color: var(--muted); font-weight: 400; }
                :root[data-theme="dark"] .bar-switch .bt-on { background: var(--select-bg); color: var(--on-select); font-weight: 700; } }
@media screen and (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .bar-switch .bt-off { background: transparent; color: var(--muted); font-weight: 400; }
    :root:not([data-theme="light"]) .bar-switch .bt-on { background: var(--select-bg); color: var(--on-select); font-weight: 700; }
}
/* Refresh: only in the installed app, which has no browser reload button (Matt, 11/12/2026) */
.bar-pop .app-refresh-item { display: none; }
@media (display-mode: standalone), (display-mode: minimal-ui) { .bar-pop .app-refresh-item { display: flex; } }
/* Phones: the buttons keep only their pictures (rule 16, 360px), and the list sits under the title bar at the right */
@media screen and (max-width: 760px) {
    .bar-menu { position: static; }
    .bar-menu-btn { padding: 0 8px; gap: 2px; min-height: 34px; }
    .bar-menu-btn .bar-menu-name { display: none; }
    .bar-pop { position: fixed; top: calc(var(--top-h, 56px) + 4px); right: 8px; width: min(320px, calc(100vw - 16px)); max-height: calc(100dvh - var(--top-h, 56px) - 16px); }
    .bar-item { min-height: 46px; }
}
@media screen and (max-width: 350px) { .bar-menu-btn { padding: 0 5px; } }
.bar-home { display: inline-flex; align-items: center; gap: 10px 14px; color: var(--bar-text); text-decoration: none; }
/* The bell: the answers to my permission requests, and (for whoever answers them) the requests waiting */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 36px; border-radius: 999px; color: var(--bar-muted); }
/* the WBS tasks count (_AppHeader, Matt 11/11/2026): on the smallest phones the title bar has no room for it (CLAUDE.md rule 16);
   WBS tasks is still in the ☰ Sales menu there */
@media screen and (max-width: 420px) { .wbs-bell { display: none; } }
.bell:hover { background: var(--bar-hover); color: var(--bar-text); }
.bell-count {
    position: absolute; top: -3px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: var(--login); color: #ffffff; font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
}
/* Home, then one menu per category (the menus open downwards, so the strip wraps instead of scrolling sideways) */
.tabs { position: relative; z-index: 20; display: flex; flex-wrap: wrap; align-items: stretch; gap: 2px; padding: 0 16px; background: var(--bar-bg); border-top: 1px solid var(--line); border-bottom: 3px solid var(--accent); }   /* Ken's green line */
.tab {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px 9px; white-space: nowrap;
    color: var(--bar-muted); text-decoration: none; font-family: var(--label-font); font-size: 16px; font-weight: 600; letter-spacing: 0.02em; border-bottom: 3px solid transparent;
}
.tab:hover { color: var(--bar-text); background: var(--bar-hover); }
.tab[aria-current="page"] { color: var(--bar-text); font-weight: 700; border-bottom-color: var(--accent); }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-caret { display: inline-flex; margin-left: -4px; }
.menu-caret .ic { width: 16px; height: 16px; }
.menu[open] > summary { color: var(--bar-text); background: var(--bar-hover); }
.menu-list {
    /* z-index: when the bar wraps (1280 wide), a menu on the second row must not cover an open list from the first row */
    position: absolute; z-index: 40; top: 100%; left: 0; min-width: 250px; padding: 6px; display: grid; gap: 2px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-pop);
    /* a menu taller than the window (Admin, Matt 11/27/2026) scrolls inside itself: site.js sets the exact height left under
       the menu's name (--menu-max); this is the fall-back. Its sub-menus are then placed with position: fixed (site.js 2b),
       so the scrolling list doesn't cut them off. */
    max-height: var(--menu-max, calc(100dvh - 130px)); overflow-y: auto; overscroll-behavior: contain;
}
/* the last menu in the bar (Admin) opens to the left, so at 1280 wide (150% zoom) it stays on the screen; site.js then
   picks the side for every menu by where it sits (menu-list-left / -right), since the bar wraps at 1280 */
.tabs > details.menu:last-of-type .menu-list { left: auto; right: 0; }
.tabs > details.menu .menu-list.menu-list-right { left: 0; right: auto; }
.tabs > details.menu .menu-list.menu-list-left { left: auto; right: 0; }
.menu-list a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 16px; white-space: nowrap; }
.menu-list a:hover { background: var(--accent-soft); }
.menu-list a[aria-current="page"] { background: var(--accent-soft); font-weight: 600; }
.menu-list .ic { color: var(--muted); }
/* A sub-menu inside a menu (Shipping & Forklift > Forklift, Matt 11/6/2026; S_Modules.Groups): a row with an arrow that opens
   its own list beside the menu (to the left when there is no room on the right: site.js part 2b) */
.menu-sub { position: relative; }
.menu-sub > summary { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; color: var(--text); font-size: 16px; white-space: nowrap; cursor: pointer; list-style: none; user-select: none; }
.menu-sub > summary::-webkit-details-marker { display: none; }
.menu-sub > summary:hover, .menu-sub[open] > summary { background: var(--accent-soft); }
.menu-sub > summary[aria-current="page"] { font-weight: 600; }
.menu-sub-caret { display: inline-flex; margin-left: auto; padding-left: 12px; }
.menu-sub-caret .ic { width: 16px; height: 16px; }
.menu-sub-list {
    position: absolute; z-index: 41; top: -6px; left: calc(100% + 10px); min-width: 250px; max-height: calc(100dvh - 140px); overflow-y: auto;
    padding: 6px; display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop);
}
.menu-sub.menu-sub-left .menu-sub-list { left: auto; right: calc(100% + 10px); }
/* A menu that scrolls shows it (Matt 11/27/2026: "shouldn't there be a scroll bar so people know"): a scroll bar that is
   always drawn, and a fade over the last row while there are more items below (site.js adds .menu-has-more) */
@media screen and (min-width: 761px) {
    .menu-list, .menu-sub-list { scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
    .menu-list::-webkit-scrollbar, .menu-sub-list::-webkit-scrollbar { width: 10px; }
    .menu-list::-webkit-scrollbar-thumb, .menu-sub-list::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 999px; border: 2px solid var(--panel); }
    .menu-list::-webkit-scrollbar-track, .menu-sub-list::-webkit-scrollbar-track { background: transparent; }
    .menu-list.menu-has-more::after, .menu-sub-list.menu-has-more::after {
        content: ""; position: sticky; bottom: -6px; height: 44px; margin-top: -44px; margin-bottom: -6px; pointer-events: none;
        background: linear-gradient(to bottom, transparent, var(--panel) 85%);
    }
}
/* inside a menu that scrolls, site.js 2b places the sub-menu's list on the screen itself (left/top/max-height set there) */
.menu-sub-list.menu-sub-fixed { position: fixed; right: auto; }
/* The ☰ button (phones only, see section 4): hidden on a computer, where the menus are always showing */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 38px; margin-left: -6px; border: 0; border-radius: 10px; background: transparent; color: var(--bar-text); cursor: pointer; }
.nav-toggle:hover { background: var(--bar-hover); }
.nav-toggle .ic { width: 24px; height: 24px; }
.nav-toggle .ic-shut, .nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-shut { display: inline; }
/* Inside a module: the Favorite star at the end of the strip */
button.tab { background: transparent; border-top: 0; border-left: 0; border-right: 0; font: inherit; font-family: var(--label-font); font-size: 16px; font-weight: 600; cursor: pointer; }
.fav-toggle.is-fav { color: var(--star); }
.is-fav .ic { fill: currentColor; }

/* ==============================================================================   3. Screens
   ===================================================================================== */

/* ---- Sign in (frmLogin) ---- */
.login-wrap { display: grid; place-items: center; padding: 48px 16px; }
.login { width: min(400px, 100%); padding: 26px 24px; display: grid; gap: 14px; text-align: center; }
.login img { height: 56px; margin: 0 auto; }
/* The title and its "?" (S_Help BeforeSignIn) on the timecard, code and setup pages */
.login-head { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.login-head h1 { margin: 0; }
.login .help-box { text-align: left; }   /* the box sits inside the centred sign-in card */
/* "Sign in with Microsoft" under Log In (S_MicrosoftSignIn): a thin "or" line, then the white button with the Microsoft squares */
.login-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.login-microsoft { gap: 10px; text-decoration: none; }
.login-microsoft svg { flex: none; }
.login-microsoft-note { margin: 0; }

/* ---- Equipment list (frmMaintManager) ---- */
.filters { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.filter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }

/* ---- One piece of equipment (frmMaintEquipment) ---- */
.facts { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }
.facts b { color: var(--text); font-weight: 600; }
.task-list { display: grid; }
/* The header row is its own grid, so every column needs a fixed width (an "auto" column was as wide as the Edit button
   in the rows but empty in the header, which pushed the headers out of line) */
.task {
    display: grid; grid-template-columns: minmax(0, 1fr) 150px 120px 150px 100px; gap: 12px; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.task:last-child { border-bottom: 0; }
/* History: long task text shows 3 lines (the whole text is in the tooltip) */
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-width: 160px; }
.task.head { padding-block: 9px; background: var(--head-bg); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-radius: var(--radius) var(--radius) 0 0; }
.task .acts { display: flex; gap: 6px; justify-content: flex-end; }
.task .who { font-size: 13px; color: var(--brk); font-weight: 600; }
.freq { display: grid; grid-template-columns: auto 80px minmax(0, 1fr); gap: 8px; align-items: center; }
.add-task { border: 1px dashed var(--border-hover); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; background: var(--head-bg); }

/* ---- Staff dashboard (frmMaintStaff) ---- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.stat .v { font-family: var(--mono); font-size: 28px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--chip, var(--text)); }
.stat .l { font-family: var(--label-font); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.sec-h { font-family: var(--label-font); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; align-items: start; }
.card {
    background: var(--panel); border: 1px solid var(--border); border-left: 5px solid var(--chip, var(--border));
    border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; box-shadow: var(--shadow);
}
.card-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; font-size: 16px; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.by-other { display: inline-flex; align-items: center; gap: 5px; color: var(--brk); font-weight: 600; font-size: 14px; }
.wh-picker { display: grid; gap: 10px; }

/* ---- Finish and sign off (frmMaintFinish) ---- */
.task-box { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; }
.xlate { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--brk); background: color-mix(in srgb, var(--brk) 8%, transparent); border-radius: 9px; padding: 8px 10px; }
.dur { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.stepper { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; border: 1px solid var(--border-input); border-radius: 10px; overflow: hidden; background: var(--panel); }
.stepper button { border: 0; background: var(--head-bg); font: inherit; font-size: 22px; font-weight: 700; color: var(--accent-ink); cursor: pointer; }
.stepper button:active { background: var(--press-bg); }
.stepper label { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; }
.stepper input { width: 56px; border: 0; text-align: center; font: inherit; font-size: 20px; font-weight: 700; min-height: 48px; background: transparent; color: var(--text); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sigpad { position: relative; height: 170px; border: 2px dashed var(--border-input); border-radius: 12px; background: #ffffff; touch-action: none; }
.sigpad canvas { display: block; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.sigpad .sig-line { position: absolute; left: 16px; right: 16px; bottom: 34px; border-bottom: 1px solid var(--border); pointer-events: none; }
.sigpad .sig-x { position: absolute; left: 18px; bottom: 38px; font-size: 20px; color: var(--muted); pointer-events: none; }
.sigpad .sig-clear { position: absolute; top: 6px; right: 6px; }

/* ---- Trailer Moves (frmTrailerMoves, frmTrailerMove) ---- */
.trailer-no { font-size: 18px; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 16px; }
.route .ic { color: var(--muted); }
.trailer-filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: end; }
.move-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }   /* minmax: a wide grid inside never stretches the panel */
.step-no {
    display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px;
    border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700;
}
.field > label:has(.step-no), .field > .label:has(.step-no) { font-size: 15px; color: var(--text); }
fieldset.bare { border: 0; padding: 0; margin: 0; }
fieldset.bare legend { padding: 0; margin-bottom: 5px; font-size: 15px; font-weight: 600; }
.input-tall { min-height: 54px; font-size: 20px; }
/* Load number and the Empty box side by side; the whole Empty box is the tap target */
.load-row { display: flex; gap: 10px; align-items: stretch; }
.load-row .input { flex: 1 1 auto; min-width: 0; }
.load-row .input:disabled { background: var(--disabled-bg); color: var(--disabled-text); }
.empty-box {
    flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; min-height: 54px;
    border: 1px solid var(--border-input); border-radius: 9px; background: var(--panel); font-size: 17px; font-weight: 600; cursor: pointer;
}
.empty-box:has(input:checked) { background: var(--select-bg); border-color: var(--select-bg); color: var(--on-select); }
.move-acts { display: grid; gap: 10px; }
/* West Bend pallet moves: the line under the boxes (green after a move, red for a wrong scan) and the recent locations */
.scan-flash { margin: 0; min-height: 1.4em; font-size: 17px; font-weight: 600; color: var(--muted); }
.scan-flash:empty { display: none; }
.scan-flash.ok, .scan-flash.err { padding: 10px 14px; border-radius: 9px; color: #ffffff; }
.scan-flash.ok { background: var(--run); }
.scan-flash.err { background: var(--down); }
.recent-locs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.recent-locs .empty { grid-column: 1 / -1; padding: 10px; }
.recent-loc { min-height: 64px; font-size: 19px; overflow-wrap: anywhere; }
[data-pallet-move].is-busy button { opacity: 0.6; pointer-events: none; }

/* ---- Home (frmDashboard) ---- */
.home .sec-h { display: flex; align-items: center; gap: 8px; }
.home > section { display: grid; gap: 10px; }
/* Home's search box (frmDashboard, Forms/Shared/_ProgramSearchResults.cshtml, site.js part 16; Matt 11/12/2026): the box
   across the top, then the screens found, one row each (name, where it is, the line with the words), Open on the right. */
.ps-box { gap: 8px; }
.ps-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ps-icon { display: inline-flex; color: var(--muted); }
.ps-input { font-size: 18px; min-height: 46px; }
.ps-results:empty { display: none; }
.ps-count, .ps-none { margin: 4px 0 0; }
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius); }
.ps-item { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 0; border-top: 1px solid var(--line); min-width: 0; }
.ps-item:first-child { border-top: 0; }
.ps-item:hover { background: var(--hover-bg); }
.ps-item[data-ps-more] { display: none; }
.ps-all .ps-item[data-ps-more] { display: flex; }
.ps-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 12px; color: var(--text); text-decoration: none; }
.ps-main:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ring); border-radius: var(--radius); }
.ps-main .tile-icon { width: 38px; height: 38px; border-radius: 9px; }
.ps-text { display: grid; gap: 1px; min-width: 0; }
.ps-name { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.ps-where { font-size: 13px; color: var(--muted); }
.ps-why { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.ps-why-label { color: var(--muted); margin-right: 4px; }
.ps-results mark { background: var(--hit-bg); color: inherit; border-radius: 3px; padding: 0 1px; }
.ps-buttons { display: flex; gap: 6px; flex: none; }
.ps-show-all { justify-self: start; }
@media screen and (max-width: 760px) {
    .ps-form { grid-template-columns: minmax(0, 1fr) auto; }
    .ps-icon { display: none; }
    .ps-item { flex-wrap: wrap; padding: 0 10px 10px 0; }
    .ps-main { flex-basis: 100%; padding-bottom: 4px; align-items: flex-start; }
    .ps-buttons { margin-left: 62px; }
}
/* Find anything: the search box in the title bar on every screen (_FindBox, _FindList, site.js part 16; Matt 11/12/2026).
   On a phone it is behind the search button and opens as its own row under the bar. The list under it is a pop-up
   (rule 17): as wide as the box, never wider than the screen, its own scroll bar when long. */
.tb-find { flex: 1 1 240px; max-width: 760px; margin: 0 6px 0 14px; position: relative; display: flex; align-items: center; min-width: 0; }
/* Came from a kiosk app (Exit to Forklift / Floor in the bar): the search box gives up some room so the bar stays on one line at 1280 */
.app-bar:has(.kiosk-exit) .tb-find { flex-basis: 150px; }
@media screen and (max-width: 1500px) { .app-bar:has(.kiosk-exit) .btn-logout > span { display: none; } }   /* Log Out keeps its icon and its name for screen readers */
.tb-find-icon { position: absolute; left: 12px; display: inline-flex; color: var(--muted); pointer-events: none; }
.tb-find-icon svg { width: 18px; height: 18px; }
.tb-find-input { width: 100%; min-width: 0; min-height: 38px; padding-left: 38px; border-radius: 999px; }
.tb-find-btn { display: none; }
.tb-find-drop { position: absolute; top: calc(100% + 6px); left: 0; width: max(100%, min(620px, calc(100vw - 32px))); z-index: 60; min-width: 0; max-height: min(70vh, 640px); overflow-y: auto;
                background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-pop); }
.tb-find-drop[hidden] { display: none; }
.fd-h { font-family: var(--label-font); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 4px; }
.fd-row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 10px; padding: 8px 14px; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.fd-row:hover, .fd-row.is-on { background: var(--hover-bg); box-shadow: inset 3px 0 0 var(--accent); }
.fd-row:focus-visible { outline: none; background: var(--hover-bg); box-shadow: inset 3px 0 0 var(--accent); }
.fd-kind { grid-row: 1 / span 2; align-self: center; justify-self: start; font-family: var(--label-font); font-size: 11px; font-weight: 700; letter-spacing: .04em;
           text-transform: uppercase; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.ps-main .fd-kind { min-width: 104px; text-align: center; }
.fd-t { font-weight: 700; overflow-wrap: anywhere; }
.fd-d { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.fd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.fd-all { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 600; }
.fd-all svg { width: 14px; height: 14px; }
.fd-none { margin: 0; padding: 12px 14px; color: var(--muted); }
.tb-find-drop mark { background: var(--hit-bg); color: inherit; border-radius: 3px; padding: 0 1px; }
@media screen and (max-width: 760px) {
    .tb-find-btn { display: inline-flex; }
    .tb-find { display: none; order: 99; flex: 1 0 100%; max-width: none; margin: 0; }
    .tb-find.is-open { display: flex; }
    .tb-find-drop { width: 100%; max-height: 65vh; }
    .fd-row { grid-template-columns: minmax(0, 1fr); }
    .fd-kind { grid-row: auto; margin-bottom: 2px; }
}
/* Home: which version is running (S_Version), small and grey at the bottom. */
.home .app-version { width: fit-content; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: stretch; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.tile:hover { border-color: var(--border-hover); }
.tile-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 14px; color: var(--text); text-decoration: none; }
.tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); flex: none; }
.tile-text { display: grid; min-width: 0; }
.tile-name { font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.tile-cat { font-size: 13px; color: var(--muted); }
.tile form { display: flex; }
/* Home Favorites: the dots to drag a box to a new place (site.js part 22) */
.tile-grip { display: flex; align-items: center; justify-content: center; width: 28px; flex: none; padding: 0; margin: 0; border: 0; border-radius: var(--radius) 0 0 var(--radius); background: transparent; color: var(--muted); cursor: grab; touch-action: none; }
.tile-grip svg { fill: currentColor; }
.tile-grip:hover, .tile-grip:focus-visible { color: var(--text); background: var(--accent-soft); }
.tile-grip + .tile-link { padding-left: 4px; }
[data-fav-sort].is-sorting, [data-fav-sort].is-sorting .tile-grip { cursor: grabbing; user-select: none; }
.tile.is-dragging { border-color: var(--accent); opacity: .75; }
.fav-sort-hint { margin-top: 8px; }
.star { width: 48px; border: 0; background: transparent; color: var(--disabled-text); cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; }
.star:hover { color: var(--star); background: var(--star-bg); }
.star.is-fav { color: var(--star); }
/* Home's What's new box and the What's new page (S_ChangeLog, Forms/Shared/_WhatsNewDay.cshtml), Matt 11/2/2026 */
.wn-box { border-left: 5px solid var(--accent); }
.wn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.home .wn-head .sec-h { color: var(--accent-ink); margin: 0; }
.wn-head .wn-buttons { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.wn-pill { display: inline-block; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; border-radius: 999px; padding: 1px 9px; }
.wn-day { display: grid; gap: 8px; }
.wn-date { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.wn-date .hint { font-weight: 400; }
.wn-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.wn-item.is-new { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.wn-item .tile-icon { width: 36px; height: 36px; border-radius: 8px; }
.wn-words { min-width: 0; }
.wn-title { font-weight: 600; }
.wn-where { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.wn-words p { margin: 2px 0 0; line-height: 1.35; overflow-wrap: anywhere; }
.wn-more { width: fit-content; color: var(--cyan-ink); font-weight: 600; font-size: 14px; }
.app-version a { color: var(--cyan-ink); }
.notes { display: grid; gap: 8px; }
.note {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; background: var(--panel);
    border: 1px solid var(--border); border-left: 5px solid var(--chip); border-radius: var(--radius); box-shadow: var(--shadow);
}
.note > .ic { color: var(--chip); }
.note-text { flex: 1 1 260px; display: grid; gap: 2px; }

/* Home's notifications, like Instagram's (frmDashboard #notifications, _Notifications, notifications.js; Akshitha
   11/20/2026): one panel, Today / This week / Earlier, the person's letters, a green dot on what is new. Variables only (rule 15). */
.nf-box { overflow: hidden; }
.nf-head { display: grid; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.nf-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nf-title { margin: 0; flex: 1; }
.nf-link { border: 0; background: none; color: var(--cyan-ink); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.nf-link:hover { background: var(--hover-bg); }
.nf-board { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.nf-board .ic { width: 17px; height: 17px; }
.nf-tabs { width: fit-content; }
.nf-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 0; border-radius: 6px; background: transparent;
                  color: var(--text); font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.nf-tabs button[aria-pressed="true"] { background: var(--select-bg); color: var(--on-select); }
.nf-tabs .bell-count { position: static; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; padding: 0 5px; }
.nf-day { margin: 0; padding: 12px 16px 4px; font-family: var(--label-font); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.nf-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); }
.nf-day + .nf-item { border-top: 0; }
.nf-item.is-unread { background: var(--accent-soft); }
.nf-item[hidden], .nf-group[hidden] { display: none; }
.nf-av { position: relative; flex: none; width: 42px; height: 42px; }
.nf-av .av { width: 42px; height: 42px; }
.nf-sys { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); }
.nf-sys-reminder { background: var(--danger-bg); color: var(--danger-text); }
.nf-sys-retooling, .nf-sys-requests { background: var(--warn-bg); color: var(--warn-text); }
.nf-kind { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--panel); display: flex; align-items: center; justify-content: center; color: #ffffff; background: var(--run); }
.nf-kind .ic { width: 11px; height: 11px; stroke-width: 2.6; }
.nf-kind.is-denied { background: var(--down); }
.nf-kind-wbs { background: var(--brk); }
/* The WBS drop-down: the open tasks strip on top (to My tasks) and the check that marks one line read */
.nf-strip { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.nf-strip:hover { background: var(--hover-bg); }
.nf-strip > .ic { margin-left: auto; color: var(--muted); }
.nf-stat { display: grid; gap: 1px; min-width: 0; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; color: var(--muted); }
.nf-stat b { font-size: 17px; color: var(--text); }
.nf-stat.is-late { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger-text); }
.nf-stat.is-late b { color: var(--danger-text); }
.nf-proj { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 13.5px; }
.nf-pno { flex: none; font-family: var(--mono); font-weight: 600; font-size: 13px; padding: 1px 7px; border-radius: 6px; background: var(--cyan-soft); color: var(--cyan-ink); }
.nf-pname { min-width: 0; color: var(--plain); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-side { flex: none; display: flex; align-items: center; gap: 6px; }
.nf-ack { width: 32px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.nf-ack:hover { border-color: var(--accent); background: var(--accent-soft); }
.nf-ack .ic { width: 16px; height: 16px; }
.nf-words { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.nf-sub { color: var(--plain); font-size: 14px; }
.nf-when { color: var(--muted); font-size: 13px; white-space: nowrap; }
.nf-acts { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 4px; }
.nf-dot { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 999px; background: var(--accent); }
.nf-dot[hidden] { display: none; }
@media screen and (max-width: 760px) {
    .nf-tabs { width: auto; display: flex; }
    .nf-tabs button { flex: 1; justify-content: center; padding: 8px 6px; }
    .nf-acts .btn, .nf-box .rm-snooze > summary { min-height: 44px; }
}

/* The bell's drop-down (_AppHeader #nfPop, notifications.js): the same list as Home's box, under the bell on a computer;
   on a phone it fills the screen under the title bar (rules 16, 17) */
.nf-wrap { position: relative; display: inline-flex; }
.nf-bell[aria-expanded="true"] { background: var(--bar-hover); color: var(--bar-text); }
.nf-pop {
    position: absolute; z-index: 45; top: calc(100% + 10px); right: -150px; width: 440px; max-height: min(700px, calc(100vh - 90px));
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--panel); color: var(--text); text-align: left;
    border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); overflow: hidden;
}
.nf-pop[hidden] { display: none; }
.nf-pop .nf-title { font-size: 20px; font-weight: 700; }
.nf-pop .nf-list { overflow-y: auto; overscroll-behavior: contain; }
.nf-close { display: none; width: 40px; height: 40px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; align-items: center; justify-content: center; }
.nf-loading { padding: 18px 16px; margin: 0; }
.nf-empty { display: grid; justify-items: center; gap: 6px; padding: 36px 24px; text-align: center; }
.nf-foot { display: block; padding: 12px 16px; text-align: center; background: var(--head-bg); border-top: 1px solid var(--border); color: var(--cyan-ink); font-weight: 600; text-decoration: none; }
.nf-foot:hover { background: var(--hover-bg); }
@media screen and (max-width: 760px) {
    .nf-wrap { position: static; }
    .nf-pop { position: fixed; top: var(--top-h, 64px); left: 0; right: 0; bottom: 0; width: auto; max-height: none; border-radius: 0; border: 0; }
    .nf-close { display: inline-flex; }
    .nf-pop .rm-snooze > summary { min-height: 44px; }
}

/* ---- No permission (frmNoPermission) ---- */
.no-perm { width: min(480px, 100%); }
.no-perm form { text-align: left; }
.no-perm h2 { text-align: center; }
.no-perm-icon { display: inline-flex; margin: 0 auto; padding: 14px; border-radius: 50%; background: color-mix(in srgb, var(--down) 10%, transparent); color: var(--down); }
.error-more { margin-top: 12px; display: grid; gap: 10px; }
.error-more > summary { list-style: none; }
.error-more > summary::-webkit-details-marker { display: none; }
.error-details { text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; background: var(--head-bg); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; margin: 0; max-height: 50vh; overflow: auto; }
.no-perm-icon .ic { width: 34px; height: 34px; }
.no-perm .chip { white-space: normal; justify-content: center; }

/* ==============================================================================   4. Phones and small tablets
   ===================================================================================== */
@media screen and (max-width: 760px) {
    body { font-size: 15px; }
    h1 { font-size: 22px; }
    .app-bar { padding: 8px 12px; gap: 8px; }
    .bar-logo { height: 30px; }
    .bar-title { font-size: 17px; }
    .bar-chip { display: none; }
    .btn-logout span { display: none; }
    .btn-logout { padding: 0 10px; }
    /* The menus are behind the ☰ button (CLAUDE.md rule 16): a list that drops down under the title bar, over the page.
       Each category opens in place (its modules indented under it); the one of the open module is opened already. */
    .nav-toggle { display: inline-flex; }
    .app-bar { border-bottom: 3px solid var(--accent); }   /* Ken's green line, here because the menu strip is hidden behind ☰ */
    .tabs { border-top: 0; border-bottom: 0; }
    .tabs {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 8px 10px;
        max-height: calc(100dvh - var(--top-h, 56px)); overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--shadow-pop);
        /* one column that scrolls down: without nowrap, a list taller than the screen (a menu opened) wrapped Reports, Admin,
           Share and Favorites into a second column off to the right (Matt, 11/2/2026) */
        flex-wrap: nowrap; overflow-x: hidden;
    }
    .tabs > * { flex-shrink: 0; }
    .tabs.is-open { display: flex; }
    .tabs > .tab, .tabs > .inline, .menu > summary { width: 100%; }
    .tab { padding: 13px 12px; font-size: 17px; border-bottom: 0; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; }
    .tab[aria-current="page"] { border-left-color: var(--accent); }
    .menu-caret { margin-left: auto; transition: transform 0.15s; }
    .menu[open] .menu-caret { transform: rotate(180deg); }
    .menu-list { position: static; min-width: 0; padding: 2px 0 6px 22px; background: transparent; border: 0; box-shadow: none; max-height: none; overflow: visible; }
    .menu-list a { color: var(--bar-text); padding: 12px; }
    .menu-list a:hover, .menu-list a[aria-current="page"] { background: var(--bar-hover); color: var(--bar-text); }
    .menu-list .ic { color: var(--bar-muted); }
    /* phones: the sub-menu opens in place, under its row */
    .menu-sub > summary { color: var(--bar-text); padding: 12px; }
    .menu-sub > summary:hover, .menu-sub[open] > summary { background: var(--bar-hover); }
    .menu-sub-caret { transition: transform 0.15s; }
    .menu-sub[open] .menu-sub-caret { transform: rotate(90deg); }
    .menu-sub-list, .menu-sub.menu-sub-left .menu-sub-list { position: static; min-width: 0; max-height: none; padding: 2px 0 4px 22px; background: transparent; border: 0; box-shadow: none; }
    .tabs > .spacer { display: none; }
    .tabs > .inline { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
    .tiles { grid-template-columns: minmax(0, 1fr); }
    .content { padding: 12px 12px 28px; gap: 12px; }
    .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .filters .field:first-child { grid-column: 1 / -1; }
    .g2 { grid-template-columns: minmax(0, 1fr); }
    .cards { grid-template-columns: minmax(0, 1fr); }
    .stat { padding: 8px 10px; }
    .stat .v { font-size: 24px; }

    /* Tables become cards: one card per row, each cell with its column name in front */
    .grid-wrap.stack-on-phone { background: transparent; border: 0; box-shadow: none; overflow: visible; }
    .stack-on-phone .grid, .stack-on-phone .grid tbody, .stack-on-phone .grid tr, .stack-on-phone .grid td { display: block; width: 100%; }
    .stack-on-phone .grid thead { display: none; }
    .stack-on-phone .grid tr { background: var(--panel); border: 1px solid var(--border); border-left: 5px solid var(--chip, var(--border)); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
    .stack-on-phone .grid td { border: 0; padding: 3px 0; display: flex; gap: 10px; justify-content: space-between; text-align: right; }
    .stack-on-phone .grid td::before { content: attr(data-label); font-family: var(--font); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-align: left; flex: none; padding-top: 2px; }
    .stack-on-phone .grid td.main { display: block; text-align: left; font-size: 16px; font-weight: 600; }
    .stack-on-phone .grid td.main::before { content: none; }
    .stack-on-phone .grid td.pallet-link { text-decoration: none; }   /* else the column name in front is underlined too; the number stays link-blue */
    .stack-on-phone .grid td:empty, .stack-on-phone .grid td.grid-blank { display: none; }   /* grid.js marks a cell with nothing in it */
    /* the shared grid on a phone: the title bar stays at the top (only one line now the menus are behind ☰) with the
       count line under it; the column titles are gone, so Sort / Filter picks a column; the footer is one more card */
    .grid-bar .btn .lbl { display: none; }
    .grid-bar .grid-phone { display: inline-flex !important; }
    .grid-bar .grid-expand { display: none !important; }   /* Expand is for computers (Matt, 11/6/2026: the phone's list is cards) */
    .grid-bar .btn-small { min-width: 40px; padding: 3px 8px; }
    .stack-on-phone .grid-bar { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); }
    .stack-on-phone .grid tfoot { display: block; }
    .stack-on-phone .grid tfoot td { position: static; background: transparent; border-top: 0; align-items: center; }
    .stack-on-phone .grid tfoot tr { border-left-color: var(--accent); }

    .task { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; }
    .task.head { display: none; }
    .task .t-desc { grid-column: 1 / -1; font-weight: 600; }
    .task .acts { grid-column: 1 / -1; justify-content: flex-start; }
    .modal-foot .btn { flex: 1; }
    .trailer-filters { grid-template-columns: minmax(0, 1fr); }
    .move-btn { flex: 1 1 100%; }
}

/* The equipment list shows the name in the first cell only on a phone (the Name column is hidden there) */
.phone-only { display: none; }
@media screen and (max-width: 760px) {
    .phone-only { display: inline; }
    .hide-on-phone { display: none !important; }   /* Trailer Moves: other drivers' moves are for the computer only */
    .stack-on-phone .grid td.desk-only { display: none; }
}

/* Cards that open and close on a phone (grid.js data-phone-card / data-phone, Matt 11/5/2026, the phone mockups).
   A closed card shows its title (top left), badge (top right) and sub cells (the line under them); a tap opens it and
   every other cell shows with its column name, as on any stack-on-phone grid. The round arrow on the right says which. */
@media screen and (max-width: 760px) {
    .phone-card .grid tbody tr { position: relative; display: flex !important; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 3px; padding: 10px 48px 10px 12px; cursor: pointer; }
    .phone-card .grid tbody tr.grid-spacer { display: block !important; padding: 0; cursor: default; }
    .phone-card .grid tbody tr.grid-spacer::before, .phone-card .grid tbody tr.grid-spacer::after { content: none; }
    /* data-grid-group: a group's heading row stays a heading (tap it to close or open the group), not a card */
    .phone-card .grid tbody tr.grid-group { display: block !important; padding: 0; cursor: pointer; }
    .phone-card .grid tbody tr.grid-group::after { content: none; }
    .phone-card .grid tbody tr.grid-group > td { display: block !important; }
    .phone-card .grid tbody tr.grid-group > td::before { content: "\25BE"; display: inline-block; width: 1.1em; color: var(--muted); }
    .phone-card .grid tbody tr.grid-group.is-shut > td::before { content: "\25B8"; }
    /* a row the filters or the search leave out (grid-out), a row in a closed group (grid-shut) or a hidden row stays hidden:
       the card's display: flex !important above beat the plain .grid-out rule, so a filter changed the count but every card
       still showed (Matt 11/10/2026, Order Tracker > Pallets on a phone) */
    .phone-card .grid tbody tr.grid-out, .phone-card .grid tbody tr.grid-shut, .phone-card .grid tbody tr[hidden] { display: none !important; }
    .phone-card.grid-searching .grid tbody tr.grid-shut:not(.grid-out) { display: flex !important; }
    /* the arrow: a small square turned 45°, pointing down when closed and up when open */
    .phone-card .grid tbody tr::after { content: ""; position: absolute; right: 18px; top: 16px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
    .phone-card .grid tbody tr.is-open::after { top: 21px; transform: rotate(-135deg); }
    .phone-card .grid tbody tr.is-open { border-color: var(--focus); box-shadow: 0 0 0 3px var(--ring); }
    /* the line break between the top line (title, badge) and the rest */
    .phone-card .grid tbody tr::before { content: ""; order: -1; flex: 0 0 100%; height: 0; }
    .phone-card .grid tbody td { flex: 1 1 100%; order: 5; min-width: 0; }   /* the cells only shown when open: after all the rest */
    .phone-card .grid tbody tr:not(.is-open) > td:not([data-phone]) { display: none; }
    .phone-card .grid tbody td[data-phone="never"], .phone-card .grid tbody td[data-blank] { display: none !important; }
    /* the cards scroll with the page (not inside a box of their own, orders.css .grid-x) and long words wrap */
    .phone-card .grid-x { overflow: visible !important; max-height: none !important; }
    .phone-card .grid tbody td { white-space: normal; }
    /* the grid's bar keeps the count and its 6 small buttons (Expand all added) on one line */
    .phone-card .grid-bar { gap: 4px; }
    .phone-card .grid-bar .btn-small { min-width: 36px; padding: 3px 6px; }
    .phone-card .grid tbody td[data-phone="title"], .phone-card .grid tbody td[data-phone="badge"], .phone-card .grid tbody td[data-phone="sub"], .phone-card .grid tbody td[data-phone="subl"] { display: block; width: auto; text-align: left; }
    .phone-card .grid tbody td[data-phone="title"]::before, .phone-card .grid tbody td[data-phone="badge"]::before, .phone-card .grid tbody td[data-phone="sub"]::before { content: none; }
    .phone-card .grid tbody td[data-phone="title"] { order: -3; flex: 0 1 auto; font-size: 16px; font-weight: 700; padding: 0; }
    .phone-card .grid tbody td[data-phone="badge"] { order: -2; flex: 0 0 auto; margin-left: auto; padding: 0; font-weight: 600; }
    .phone-card .grid tbody td[data-phone="sub"], .phone-card .grid tbody td[data-phone="subl"] { order: 0; flex: 0 1 auto; padding: 0; font-size: 14px; }
    /* "subl": a sub cell with a small column name in front ("QPI DUE DATE 11/10/26") */
    .phone-card .grid tbody td[data-phone="subl"]::before { content: attr(data-label); display: inline; margin-right: 5px; font-size: 11px; padding: 0; }
    .phone-card .grid tbody td[data-phone="sub"]:empty, .phone-card .grid tbody td[data-phone="subl"]:empty, .phone-card .grid tbody td[data-phone="badge"]:empty { display: none; }
    .phone-card .grid tbody td[data-phone="show"] { order: 1; }
    /* "from" → "to": a move, the old place crossed out, then the new one ("SF-B03-2 → SF-C11-1"); "line": its own line,
       no column name (the part); "footl": a small line at the bottom with its column name ("CHECKED 11/4 7:52 AM") */
    .phone-card .grid tbody td[data-phone="from"], .phone-card .grid tbody td[data-phone="to"], .phone-card .grid tbody td[data-phone="line"], .phone-card .grid tbody td[data-phone="footl"] { display: block; width: auto; text-align: left; padding: 0; }
    .phone-card .grid tbody td[data-phone="from"]::before, .phone-card .grid tbody td[data-phone="line"]::before { content: none; }
    .phone-card .grid tbody td[data-phone="from"] { order: 1; flex: 0 1 auto; font-family: var(--mono); font-size: 14px; color: var(--muted); text-decoration: line-through; }
    .phone-card .grid tbody td[data-phone="to"] { order: 2; flex: 0 1 auto; font-family: var(--mono); font-size: 14px; font-weight: 600; }
    .phone-card .grid tbody td[data-phone="to"]::before { content: "→ "; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--muted); }
    .phone-card .grid tbody td[data-phone="line"] { order: 3; flex: 1 1 100%; font-size: 14px; }
    .phone-card .grid tbody td[data-phone="footl"] { order: 4; flex: 0 1 auto; font-size: 12.5px; color: var(--muted); }
    .phone-card .grid tbody td[data-phone="footl"]::before { content: attr(data-label); margin-right: 4px; font-size: 10.5px; padding: 0; }
    .phone-card .grid tbody td[data-phone="from"]:empty, .phone-card .grid tbody td[data-phone="to"]:empty, .phone-card .grid tbody td[data-phone="footl"]:empty { display: none; }
    /* the cells only shown when open start under a thin line */
    .phone-card .grid tbody tr.is-open > td:not([data-phone]) { font-size: 14px; }
    .phone-card .grid tbody tr.is-open > td:not([data-phone]):first-of-type { border-top: 1px solid var(--line); }
    /* a history (timeline): the cards hang from a line down the left */
    .phone-card[data-phone-card="timeline"] .grid tbody { position: relative; padding-left: 18px; }
    .phone-card[data-phone-card="timeline"] .grid tbody::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
    .phone-card[data-phone-card="timeline"] .grid tbody tr { border-left-width: 1px; }
    .phone-card[data-phone-card="timeline"] .grid tbody tr > td[data-phone="title"]::after { content: ""; position: absolute; left: -19px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 3px solid var(--accent-ink); }
    .phone-card[data-phone-card="timeline"] .grid tbody tr:first-child > td[data-phone="title"]::after { background: var(--accent-ink); }
}

/* A box of filters that folds into one line on a phone (site.js 12, data-phone-fold): the line says what is picked,
   a tap opens the box. Computers always show the box and never the line. */
.fold-line { display: none; }
@media screen and (max-width: 760px) {
    [data-phone-fold] > .fold-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 4px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; grid-column: 1 / -1; }
    [data-phone-fold] > .fold-line .fold-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    [data-phone-fold] > .fold-line .fold-t b { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
    [data-phone-fold] > .fold-line .fold-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--select-bg); color: var(--on-select); font-family: var(--mono); font-size: 12px; }
    [data-phone-fold] > .fold-line .fold-t span { font-size: 13px; color: var(--muted); }
    [data-phone-fold] > .fold-line .fold-go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); font-weight: 600; }
    [data-phone-fold].is-folded > :not(.fold-line) { display: none !important; }
    [data-phone-fold]:not(.is-folded) > .fold-line { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
}

/* "Who can open this" is its key icon only on a phone (like Messages; Matt's approved mockups have no room for the words),
   so a screen's title row stays one line */
@media screen and (max-width: 760px) {
    .page-head .acc-btn > span { display: none; }
    .page-head .acc-btn { min-width: 40px; min-height: 40px; justify-content: center; padding: 0 8px; }
}

/* A grid column only phones show (class phone-col on its <th> and <td>, data-grid-skip so Excel and copy leave it out) */
@media screen and (min-width: 761px) { .grid .phone-col { display: none; } }

/* Cluster History & Contents (Forms/Reports/frmClusterHistory): the cluster's tag, its order and part on one line, and VB's
   red "!CLUSTER IS DISABLED!" warning. The tabs, grids and print look are Pallet Tag History's (.pth-*). */
.ch-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.ch-head .label { margin-right: 4px; }
.ch-tag { font-size: 20px; font-weight: 600; }
.ch-disabled { padding: 4px 12px; border: 1px solid var(--danger-border); border-radius: var(--radius); background: var(--danger-bg);
               color: var(--danger-text); font-weight: 700; letter-spacing: .04em; }
@media screen and (max-width: 760px) { .ch-head { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* Pallet Tag History on a phone (Matt's approved mockup, 11/5/2026): the last pallets looked up as chips, the pallet as it
   is now in a card, Move / Station history as a two-part switch, and how much a station used as a bar. Computers: as before. */
.pth-card { display: none; }
@media screen and (min-width: 761px) { .pth-recent { display: none !important; } }
@media screen and (max-width: 760px) {
    .pth-form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
    .pth-form .field { max-width: none; }
    .pth-form .input { min-height: 52px; font-family: var(--mono); font-size: 20px; }
    .pth-form > .btn-primary { min-height: 52px; justify-content: center; font-size: 17px; }
    .pth-recent .label { display: block; margin-bottom: 6px; }
    .pth-recent-list { display: flex; flex-wrap: wrap; gap: 8px; }
    .pth-recent-list a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text); font-family: var(--mono); font-weight: 600; text-decoration: none; }
    .pth-card { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 12px; }
    .pth-card-top, .pth-card-id { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .pth-card-id b { font-size: 26px; font-weight: 600; }
    .pth-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 14px; }
    .pth-facts dt { color: var(--muted); }
    .pth-facts dd { margin: 0; overflow-wrap: anywhere; }
    .pth-tabs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; background: var(--line); border: 0; border-radius: var(--radius-lg); padding: 4px; }
    .pth-tabs a { text-align: center; white-space: normal; font-size: 14px; padding: 8px 6px; }
    .pth-tabs a[aria-current="page"], .pth-tabs a.is-on { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
    .pth-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); width: 100%; }
    .pth-bar i { display: block; height: 100%; }
    .pth-bar .pth-left { background: var(--run); }
    .pth-bar .pth-used { background: var(--down); }
}

/* Inventory Section on a phone (inventory-section.js, Matt's approved mockup 11/5/2026): search + Filter & group, chips,
   the pallets under a heading per location that folds, and the Filter & group sheet. Computers: the grid as before. */
@media screen and (max-width: 760px) {
    body:has(.inv-phone:not([hidden])) .ii-section:has(.inv-grid) { display: none; }
    .inv-phone { display: flex; flex-direction: column; gap: 10px; }
    .inv-top { display: flex; gap: 8px; }
    .inv-search { flex: 1; min-width: 0; min-height: 48px; font-size: 16px; }
    .inv-filter-btn { position: relative; min-width: 48px; min-height: 48px; padding: 0 12px; }
    .inv-filter-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
    .inv-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--select-bg); color: var(--on-select); font-family: var(--mono); font-size: 11px; line-height: 18px; }
    .inv-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
    .inv-chip { min-height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
    .inv-count { margin-left: auto; font-size: 13px; color: var(--muted); }
    .inv-list { display: flex; flex-direction: column; gap: 8px; }
    .inv-group > .inv-gh { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); cursor: pointer; }
    .inv-group > .inv-gh::-webkit-details-marker { display: none; }
    .inv-group[open] > .inv-gh { background: var(--select-bg); color: var(--on-select); border-color: var(--select-bg); }
    .inv-gh .code { font-weight: 600; font-size: 15px; }
    .inv-gh .num { font-size: 13px; opacity: 0.85; }
    .inv-gchev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin: 0 4px; }
    .inv-group[open] .inv-gchev { transform: rotate(45deg); }
    .inv-cards { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
    .inv-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel); cursor: pointer; }
    .inv-card.is-open { border-color: var(--focus); box-shadow: 0 0 0 3px var(--ring); }
    .inv-card-top, .inv-card-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .inv-pal { font-family: var(--mono); font-weight: 600; font-size: 16px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
    .inv-chev { flex: none; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; background: var(--panel); position: relative; cursor: pointer; }
    .inv-chev::after { content: ""; position: absolute; left: 10px; top: 8px; width: 7px; height: 7px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(45deg); }
    .inv-card.is-open .inv-chev::after { top: 12px; transform: rotate(-135deg); }
    .inv-part { font-family: var(--mono); font-weight: 600; font-size: 14px; white-space: nowrap; }
    .inv-desc { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .inv-card-foot { font-size: 13px; color: var(--muted); }
    .inv-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13.5px; }
    .inv-kv dt { color: var(--muted); }
    .inv-kv dd { margin: 0; overflow-wrap: anywhere; }
    .inv-note { text-align: center; color: var(--muted); font-size: 13px; }
    .inv-sheet { position: fixed; inset: 0; z-index: 70; background: var(--backdrop); display: flex; align-items: flex-end; }
    .inv-sheet[hidden] { display: none; }
    .inv-sheet-panel { width: 100%; max-height: 88dvh; overflow-y: auto; background: var(--panel); border-radius: 16px 16px 0 0; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 16px; }
    .inv-sheet-head { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
    .inv-sec { display: flex; flex-direction: column; gap: 8px; }
    .inv-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--line); border-radius: var(--radius-lg); }
    .inv-seg button { min-height: 40px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
    .inv-seg button.on { background: var(--panel); box-shadow: var(--shadow); }
    .inv-pills { display: flex; flex-wrap: wrap; gap: 8px; }
    .inv-pills .pill-btn.on { background: var(--select-bg); color: var(--on-select); border-color: var(--select-bg); }
    .inv-pill-n { font-size: 12px; opacity: 0.75; }
    .inv-sheet-foot { position: sticky; bottom: -16px; display: flex; gap: 10px; padding: 12px 0 4px; background: var(--panel); }
    .inv-sheet-foot .btn { flex: 1; min-height: 50px; justify-content: center; }
    .inv-sheet-foot .btn-primary { flex: 2; }
    body.inv-sheet-open { overflow: hidden; }
}

/* A box of filters that opens as a SHEET from the bottom on a phone (class fold-sheet with data-phone-fold, Matt's approved
   mockup 11/5/2026: STF Verification's warehouses and date), with quick dates (.fold-presets, site.js 12). */
.fold-presets { display: none; }
@media screen and (max-width: 760px) {
    .fold-sheet[data-phone-fold]:not(.is-folded) { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 88dvh; overflow-y: auto; margin: 0; padding: 8px 16px 18px; border: 0; border-radius: 16px 16px 0 0; box-shadow: 0 0 0 100vmax var(--backdrop); display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
    .fold-sheet[data-phone-fold]:not(.is-folded) > .fold-line { border-bottom: 1px solid var(--line); margin: 0 0 4px; padding: 10px 0; }
    .fold-sheet[data-phone-fold]:not(.is-folded) > .field { width: 100%; max-width: none; }
    .fold-sheet[data-phone-fold]:not(.is-folded) > .btn-primary { min-height: 52px; width: 100%; justify-content: center; }
    .fold-sheet[data-phone-fold].is-folded { padding: 6px 12px; }
    .fold-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
    .pill-btn { min-height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
    /* the report tabs stay under the title bar while the lists scroll; the line that explains a list is a blue box */
    .report-tabs { position: sticky; top: var(--top-h, 56px); z-index: 5; }
    .report-tab-hint { background: var(--cyan-soft); color: var(--text); border-radius: var(--radius); padding: 8px 10px; }
}

/* A row of buttons that becomes one ⋯ button on a phone (site.js 12, data-phone-menu): the ⋯ opens the buttons as a
   sheet from the bottom (Matt's approved mockup, 11/5/2026), each a full-width row with its small line (.menu-sub)
   under it. Computers show the buttons as they are, without the sheet's title, small lines or phone-only buttons. */
/* (.menu-sub only inside the ⋯ menu: the title bar's sub-menu, Shipping & Forklift > Forklift, is also .menu-sub and
   was hidden on computers by this line until 11/9/2026) */
.menu-more, .menu-sheet-head, [data-phone-menu] .menu-sub, .menu-phone-only { display: none; }
[data-phone-menu], .menu-list-phone { display: contents; }
@media screen and (max-width: 760px) {
    [data-phone-menu] { position: relative; display: inline-flex; margin-left: auto; }
    /* the ⋯ stays on the title's line: a little less room between the title row's pieces */
    .page-head:has(> [data-phone-menu]) { column-gap: 8px; }
    .page-head:has(> [data-phone-menu]) > .spacer { display: none; }

    [data-phone-menu] > .menu-more { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
    [data-phone-menu]:not(.is-open) > :not(.menu-more) { display: none !important; }
    [data-phone-menu].is-open > .menu-list-phone { display: flex !important; }
    [data-phone-menu] > .menu-list-phone { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 85dvh; overflow-y: auto; flex-direction: column; padding: 8px 16px 18px; background: var(--panel); border-radius: 16px 16px 0 0; box-shadow: 0 0 0 100vmax var(--backdrop); }
    [data-phone-menu] .menu-sheet-head { display: block; padding: 12px 4px 8px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--line); }
    [data-phone-menu] .menu-sheet-head::before { content: ""; display: block; width: 44px; height: 5px; margin: -6px auto 12px; border-radius: 3px; background: var(--border); }
    [data-phone-menu] > .menu-list-phone > .btn, [data-phone-menu] > .menu-list-phone > form > .btn { display: flex; width: 100%; justify-content: flex-start; align-items: center; gap: 14px; min-height: 56px; padding: 6px 4px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; font-size: 16px; text-align: left; color: var(--text); }
    [data-phone-menu] > .menu-list-phone > .btn-danger { color: var(--danger-text); border-bottom: 0; }
    [data-phone-menu] > .menu-list-phone > .btn > span { display: flex; flex-direction: column; }
    [data-phone-menu] .menu-sub { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
    [data-phone-menu] .btn-danger .menu-sub { color: var(--danger-text); }
    [data-phone-menu] .menu-phone-only { display: flex; }
    [data-phone-menu] > .menu-list-phone > form { display: block; margin: 0; }
}

/* Approved devices (frmDevices): the code and Generate code side by side, the fields across the width, a full-width grid */
.device-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.device-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; margin-bottom: 12px; }
.device-grid td { vertical-align: middle; }
.device-grid td.main { min-width: 190px; }
.device-grid td:nth-child(2) { min-width: 150px; }
.device-grid td.row-acts { white-space: nowrap; text-align: right; }
.device-grid td.row-acts form.inline { margin-left: 4px; }
.device-grid tr.editing td { background: var(--hover-bg); }
/* 1280-wide screens: the titles wrap and the row buttons stack, so the grid fits without the page scrolling sideways */
.device-grid th { white-space: normal; }
@media screen and (min-width: 761px) and (max-width: 1600px) {
    .device-grid td.main, .device-grid td:nth-child(2) { min-width: 0; }
    .device-grid td.num { white-space: normal; }
    .device-grid td.row-acts { white-space: normal; }
    .device-grid td.row-acts form.inline { display: block; margin: 4px 0 0; }
    .device-grid td.row-acts .btn { width: 100%; justify-content: flex-start; }
}
#editDevice { width: min(760px, calc(100vw - 24px)); }
#editDevice .device-fields { margin-bottom: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media screen and (max-width: 760px) {
    .device-top { grid-template-columns: minmax(0, 1fr); }
    .device-grid td.main, .device-grid td:nth-child(2) { min-width: 0; }
    #editDevice .device-fields { grid-template-columns: minmax(0, 1fr); }
    .device-grid td.row-acts { white-space: normal; text-align: left; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
    .device-grid td.row-acts form.inline { margin-left: 0; }
}

/* ==============================================================================   5. Pallet screens (Print Pallet Tag, Manage Clusters, Link, Breakdown, Modify, Merge)
   ===================================================================================== */
/* Long lists (Link Pallet has 12 columns): the column titles wrap so the grid fits the screen at 150% too */
.pallet-screen .grid th, .pallet-screen .grid th .grid-sort { white-space: normal; }
.pallet-screen .grid th, .pallet-screen .grid td { padding-left: 8px; padding-right: 8px; }
.scan-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.scan-row .input, .scan-row .lookup { flex: 1 1 200px; min-width: 0; }
.req { color: var(--down); font-weight: 700; margin-left: 3px; }   /* a box that must be filled in */
.qty-label { margin: 0; font-size: 15px; font-weight: 600; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.num-input { max-width: 180px; }
.cluster-name { margin: 0; font-size: 20px; }
.qty-rows { display: grid; gap: 8px; }
.qty-rows .grid { max-width: 420px; }
.qty-input { width: 140px; min-height: 40px; text-align: right; }
.qty-zero { background: var(--qty-zero); }   /* VB: Color.LightPink on a pallet with no quantity yet */
.qty-sums b.over { color: var(--down); }

/* ---- The standard drop-down: the lookup box (wwwroot/js/lookup.js, <select data-lookup>) ----
   A typing box with an arrow; the list opens under it. Like the DevExpress LookUpEdit in the Production app. */
.lookup { position: relative; min-width: 0; }
.lookup-box { padding-right: 40px; text-overflow: ellipsis; }
.lookup-box:disabled { background: var(--disabled-bg); color: var(--disabled-text); }
.lookup-arrow {
    position: absolute; top: 0; right: 0; bottom: 0; width: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 0; background: none; color: var(--muted); cursor: pointer;
}
.lookup-arrow:disabled { cursor: default; opacity: .5; }
.lookup.open .lookup-arrow svg { transform: rotate(180deg); }
/* the real <select>: kept in the page (the form sends it, the browser checks "required" on it) but not seen */
.lookup-native { position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; opacity: 0; pointer-events: none; }
.lookup-list {
    position: fixed; z-index: 120;   /* lookup.js sets left / top / width from the box, so a pop-up box can't cut it off */
    margin: 0; padding: 4px; list-style: none; max-height: 360px; overflow-y: auto;
    background: var(--panel); border: 1px solid var(--border-input); border-radius: 9px; box-shadow: var(--shadow-pop);
}
.lookup-row { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 15px; overflow-wrap: anywhere; }
.lookup-row:hover { background: var(--accent-soft); }
.lookup-row.active { background: var(--accent); color: var(--on-accent); }
.lookup-row[aria-selected="true"]:not(.active) { font-weight: 600; }
.lookup-none { color: var(--muted); font-style: italic; }
.lookup-note { padding: 8px 10px; font-size: 13px; color: var(--muted); }
/* data-lookup-cols (lookup.js): each row's values side by side with a line between them, under column titles */
.lookup-cols { display: grid; padding: 0; }   /* the column widths are set by lookup.js */
.lookup-cols > span { padding: 8px 10px; min-width: 0; overflow-wrap: anywhere; }
.lookup-cols > span + span { border-left: 1px solid var(--line); }
.lookup-row.active.lookup-cols > span + span { border-left-color: color-mix(in srgb, var(--on-accent) 30%, transparent); }
.lookup-cols-head { position: sticky; top: -4px; z-index: 1; background: var(--head-bg); border-radius: 6px; font-family: var(--label-font);
                    font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); cursor: default; }
.lookup-cols-head > span { padding: 6px 10px; }
.lookup-refused .lookup-box { border-color: var(--down); box-shadow: 0 0 0 3px var(--refused-ring); }

/* ---- Tag printing (Forms/Pallets/frmPalletTags; the Floor web app's tag styles) ---- */
.print-area { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 20px 0 130px; }
.viewer-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: flex; justify-content: center; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 12px 16px; background: var(--panel); border-top: 1px solid var(--border); box-shadow: 0 -2px 8px rgba(23, 35, 48, 0.06);
}
.viewer-info { position: absolute; left: 20px; max-width: calc(50% - 260px); font-size: 15px; color: var(--muted); }
@media screen and (max-width: 900px) {
    .viewer-info { position: static; max-width: none; flex-basis: 100%; text-align: center; }
}

/* One printed sheet. --u = 1/100 inch (the report designer's unit); every position and font on the tag is a multiple of it
   (Reports/_rptFinalizedPalletTag.cshtml). On screen it is 0.01in; when printing it is worked out from the paper. */
.print-page {
    --u: 0.01in;
    position: relative; overflow: hidden; background: #ffffff; color: #000000;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    break-after: page; page-break-after: always;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.tag-page { width: calc(var(--u) * 850); height: calc(var(--u) * 1100); padding: calc(var(--u) * 25) calc(var(--u) * 30); }
.tag-page.small { --u: 0.005in; width: 4in; height: 6in; padding: 0; display: flex; align-items: center; justify-content: center; }   /* the letter tag at half size on a 4x6 label */
.tag { position: relative; width: calc(var(--u) * 790); height: calc(var(--u) * 1050); z-index: 1; }
.t {
    position: absolute; display: flex; overflow: hidden; padding: 0 calc(var(--u) * 2);
    font-family: Tahoma, Verdana, sans-serif; line-height: 1.15; color: #000000; overflow-wrap: anywhere;
}
.t.b { font-weight: bold; }
.t.arial { font-family: Arial, Helvetica, sans-serif; }
.t.tahoma { font-family: Tahoma, Verdana, sans-serif; }
.t.nowrap { white-space: nowrap; }
.tag .t { white-space: nowrap; overflow-wrap: normal; }   /* Matt 11/2/2026: nothing on a pallet tag wraps; a label too long for its box shrinks (site.js), so the tag is always one page */
.t.top-left { align-items: flex-start; justify-content: flex-start; text-align: left; }
.t.top-right { align-items: flex-start; justify-content: flex-end; text-align: right; }
.t.top-center { align-items: flex-start; justify-content: center; text-align: center; }
.t.mid-left { align-items: center; justify-content: flex-start; text-align: left; }
.t.mid-center { align-items: center; justify-content: center; text-align: center; }
.t.mid-right { align-items: center; justify-content: flex-end; text-align: right; }
.t.bottom-center { align-items: flex-end; justify-content: center; text-align: center; }
.t.band { background: #c0c0c0; }   /* Color.Silver */
.tag-qr { position: absolute; display: flex; align-items: center; justify-content: center; }
.qr-svg { height: 100%; width: auto; display: block; }
.qr-svg rect, .barcode-svg rect { fill: #000000; }
.tag-barcode { position: absolute; display: flex; flex-direction: column; padding: 0 calc(var(--u) * 10); }
.barcode-svg { flex: 1; width: 100%; display: block; }
.tag-barcode-text { font-family: Tahoma, Verdana, sans-serif; font-size: calc(var(--u) * 83.3333); line-height: 1.2; text-align: center; color: #000000; }
.tag-watermark {
    position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center;
    font-family: Tahoma, Verdana, sans-serif; font-size: calc(var(--u) * 238.8889); font-weight: bold; white-space: nowrap;
    color: #c0c0c0; opacity: 0.68;
}
/* The cluster tag (Reports/_rptClusterTagBulk.cshtml): landscape letter, Margins(25) around a 1050 x 800 panel */
.cluster-page { width: calc(var(--u) * 1100); height: calc(var(--u) * 850); padding: calc(var(--u) * 25); page: landscape; }
.cluster-tag { position: relative; width: calc(var(--u) * 1050); height: calc(var(--u) * 800); }
.cluster-barcode { position: absolute; display: flex; flex-direction: column; }
.cluster-bars { flex: 1; min-height: 0; display: flex; justify-content: center; }
.cluster-bars svg { height: 100%; width: auto; display: block; }
.cluster-barcode .t { position: static; flex: none; height: calc(var(--u) * 50); }

/* Printing: only the sheets, no page margins (so the browser has no room for its date / address lines) */
@page landscape { size: letter landscape; margin: 0; }
@media print { .grid-bar .grid-expand { display: none !important; } }
/* A print-only page (tags, labels: the Print bar along the bottom) has nothing to ask about, and the Ask Maverik button
   sat on top of the Print bar and printed on the label (Matt, 11/12/2026): it is not shown there at all */
body:has(.viewer-bar) .order-chat { display: none !important; }
@media print {
    @page { size: letter portrait; margin: 0; }
    body { background: #ffffff; }
    .app-bar, .tabs, .device-bar, .sim-bar, .no-print, dialog, .viewer-bar { display: none !important; }
    /* Anything that floats over the screen never prints (Matt, 11/12/2026: Ask Maverik printed on the component label):
       Ask Maverik, toasts, tips, pop-up menus, the timing boxes, the kiosk gear, reminders due */
    .order-chat, [data-order-chat], .chat-toast, .timings-saved, .page-timer, .ft-tip, .bom-menu, .bom-said,
    .wbs-pop, .kiosk-gear-float, .rm-due, .rm-due-wrap, .split-bar, .split-drag { display: none !important; }
    main, .print-area { display: block; padding: 0; margin: 0; gap: 0; }
    .print-page { box-shadow: none; margin: 0; }
    .tags-printed .print-area { display: none !important; }   /* printed once: Ctrl+P can't print the tags again */
    /* Each sheet fills the paper; the tag is centred at full size, or a little smaller if the printer's border needs it */
    .tag-page {
        --u: min(0.01in, calc(100vw / 790), calc((100vh - 2px) / 1050));
        width: 100vw; height: calc(100vh - 2px); padding: 0;
        display: flex; align-items: center; justify-content: center;
    }
    .tag-page.small { --u: min(0.005in, calc(100vw / 790), calc((100vh - 2px) / 1050)); }
    /* The landscape page is the same paper turned, so its width is 100vh and its height 100vw */
    .cluster-page {
        --u: min(0.01in, calc((100vh - 2px) / 1050), calc((100vw - 2px) / 800));
        width: calc(100vh - 2px); height: calc(100vw - 2px); padding: 0;
        display: flex; align-items: center; justify-content: center;
    }
}

/* ==============================================================================   6. Messages (Forms/Messages/frmMessages, wwwroot/js/chat.js)
   Two columns on a computer: the chat list (380px) and the open chat. On a phone one
   at a time: the list, or the chat (with a back arrow).
   ===================================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat-bubble .ic { width: 21px; height: 21px; }

.chat-content { padding-bottom: 16px; }
.chat-search-all { display: flex; gap: 6px; }
.chat-search-all .input { width: 260px; min-height: 40px; }
.chat-search-box { display: contents; }
.chat-search-box > .ic, .ic-phone { display: none; }
.ic-desk { display: contents; }
.chat-screen {
    display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 14px;
    height: calc(100vh - var(--chat-top, 190px)); min-height: 380px;
}
.chat-screen > .panel { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }

/* Sharing a screen (share.js / chat.js): what is being shared, above the chats. data-state picks the line that shows. */
.share-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; min-width: 0; }
.share-bar[hidden] { display: none; }
.share-thumb { flex: none; width: 96px; height: 54px; object-fit: cover; object-position: top left; border-radius: 6px; border: 1px solid var(--line); }
.share-words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.share-words strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-words span { color: var(--muted); font-size: 14px; }
.share-pick, .share-ready, .share-sent { display: none; }
.share-bar[data-state="pick"] .share-pick, .share-bar[data-state="ready"] .share-ready, .share-bar[data-state="sent"] .share-sent { display: inline; }
.share-bar[data-state="sent"] .share-cancel { display: none; }
.share-close { display: none; }
.share-bar[data-state="sent"] .share-close { display: inline-flex; }
/* The title bar's "Share this screen" button: like the bell */
.share-btn { border: 0; padding: 0; background: transparent; cursor: pointer; }
/* Share this pop-up (share.js section 4, Trevor 11/20/2026): next to a pop-up's X; its "New" sits on its corner */
.share-popup-btn { position: relative; flex: none; }
.share-popup-btn svg { width: 20px; height: 20px; }
.share-popup-btn .new-flag { position: absolute; top: -4px; right: -10px; margin: 0; font-size: 9px; padding: 0 5px; }
/* The X is always the top-right-most thing in a pop-up, with Share right beside it on its left (Matt, 11/23/2026; share.js
   section 4 puts them last). A title row that wraps (Screen pop-up, File viewer on a phone) would drop them to a second
   line, so there the pair is pinned to the top right and the rest of the row wraps beside them. */
.modal-head.modal-head-pinned { position: relative; padding-right: 118px; min-height: 69px; }
.modal-head.modal-head-pinned > .modal-x { position: absolute; top: 14px; right: 18px; }
.modal-head.modal-head-pinned > .share-popup-btn { position: absolute; top: 14px; right: 68px; }
/* Refresh: only in the installed app, which has no browser reload button (Matt, 11/12/2026; _AppHeader, site.js) */
.app-refresh { display: none; border: 0; padding: 0; background: transparent; cursor: pointer; }
@media (display-mode: standalone), (display-mode: minimal-ui) {
    .app-bar .app-refresh { display: inline-flex; }
}
/* Report a problem (problem.js, _ProblemReport): the flag in the title bar; on a small phone the line in the ☰ list */
.problem-btn { border: 0; padding: 0; background: transparent; cursor: pointer; }

/* The round pictures: a person (round) or a group (rounded square), with two letters */
.av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
      color: #ffffff; font-weight: 700; font-size: 15px; background: var(--av-1); }
.av-group { border-radius: 12px; }
.av-sm { width: 32px; height: 32px; font-size: 12px; }
.av-1 { background: var(--av-1); } .av-2 { background: var(--av-2); } .av-3 { background: var(--av-3); }
.av-4 { background: var(--av-4); } .av-5 { background: var(--av-5); }
/* Presence dots on a person's picture, like Teams (S_Presence, chat.js part 1b; Matt 11/14/2026): green Available, yellow
   Away, gray ring Offline, purple with an arrow Out of office (Outlook's automatic replies, S_OutOfOffice) */
.av { position: relative; }
.pres { position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; box-sizing: border-box;
        border: 2px solid var(--panel); background: var(--pres-offline); }
.av-sm .pres { width: 11px; height: 11px; right: -2px; bottom: -2px; }
.pres-available { background: var(--pres-available); }
.pres-away { background: var(--pres-away); }
.pres-offline { background: var(--panel); box-shadow: inset 0 0 0 2px var(--pres-offline); }
.pres.pres-oof { background: var(--pres-oof); box-shadow: none; }
.pres-oof::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -1px;
                   border-left: 1.5px solid #ffffff; border-bottom: 1.5px solid #ffffff; transform: rotate(45deg); }
.av-sm .pres-oof::after { width: 3px; height: 3px; margin: -1.5px 0 0 -0.5px; border-width: 1.2px; }
.chat-row:hover .pres { border-color: var(--hover-bg); }
.chat-row[aria-current="true"] .pres { border-color: var(--current-bg); }
/* Above the box in a chat with someone whose automatic replies are on */
.chat-oof { display: flex; align-items: flex-start; gap: 8px; margin: 0 14px 6px; padding: 8px 12px; border-radius: 10px;
            background: var(--oof-bg); color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.chat-oof .pres { position: relative; right: auto; bottom: auto; flex: none; margin-top: 3px; border-color: var(--oof-bg); }

/* ---- the chat list ---- */
.chat-filters { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chat-filters .fchip { text-decoration: none; min-height: 32px; padding: 3px 10px; font-size: 13px; }
.chat-list-scroll { flex: 1; overflow-y: auto; padding-bottom: 8px; }
.chat-list-h { margin: 0; padding: 12px 16px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.chat-clear { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--link); }
.chat-row { display: flex; gap: 12px; align-items: center; padding: 10px 16px; color: var(--text); text-decoration: none; }
.chat-row:hover { background: var(--hover-bg); }
.chat-row[aria-current="true"] { background: var(--current-bg); box-shadow: inset 4px 0 0 var(--accent); }
.chat-row-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.chat-row-top, .chat-row-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.chat-row-name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row-time { flex: none; font-size: 12px; color: var(--muted); }
.chat-row-last { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row.is-unread .chat-row-last { color: var(--text); font-weight: 600; }
.chat-muted { display: inline-flex; color: var(--muted); }
.chat-muted .ic { width: 15px; height: 15px; }
.chat-count { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--down); color: #ffffff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.chat-count.is-muted { background: var(--press-bg); color: var(--muted); }
.chat-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--down); }
.chat-hit .chat-row-last { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* Typing dots (chat.js part 1, Matt 11/13/2026): in the list they take the place of the last message's words */
.chat-row.is-typing .chat-row-last { display: none; }
.chat-row-typing { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typing-dots { display: inline-flex; align-items: center; gap: 3px; flex: none; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.35; animation: typing-dot 1.2s infinite ease-in-out; }
.typing-dots i:nth-child(2) { animation-delay: 0.15s; }
.typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: 0.35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .typing-dots i { animation-duration: 2.4s; transform: none !important; } }
.msg.msg-typing { margin-top: 9px; align-items: center; gap: 8px; }
.msg-typing .bubble { border-top-left-radius: 3px; padding: 11px 14px; color: var(--muted); }
.msg-typing .typing-dots i { width: 8px; height: 8px; }
.msg-typing-who { font-size: 12.5px; color: var(--muted); font-style: italic; }
.chat-reminder { display: flex; align-items: center; gap: 4px; margin: 4px 10px; border: 1px solid var(--border); border-radius: 10px; }
.chat-reminder.is-due { border-color: var(--warn-border); background: var(--warn-bg); }
.chat-reminder-link { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 8px 10px; color: var(--text); text-decoration: none; }
.chat-reminder-when { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--wait); }
.chat-reminder-when .ic { width: 15px; height: 15px; }

/* ---- the open chat ---- */
.chat-panel { position: relative; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); padding: 24px; text-align: center; }
.chat-empty > .ic { width: 48px; height: 48px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chat-title { min-width: 0; display: grid; }
.chat-title h2 { margin: 0; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-title .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-back, .assistant-head-btn { display: none; }
.chat-find { display: flex; align-items: center; gap: 2px; min-width: 0; }
/* the rounded search box (magnifier inside); Enter searches. While searching: "2 of 5" and up / down arrows. */
.chat-find-box { display: flex; align-items: center; gap: 6px; width: 240px; height: 38px; padding: 0 12px; border: 1px solid var(--border-input); border-radius: 20px; background: var(--panel); }
.chat-find-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--ring); }
.chat-find-box .ic { flex: none; width: 18px; height: 18px; color: var(--muted); }
.chat-find-box .input { flex: 1; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: 0; }
.chat-find-count { flex: none; font-size: 13px; color: var(--muted); white-space: nowrap; padding: 0 4px; }
.chat-find-go, .chat-find-open { display: none; }
.chat-find-close { display: none; }
.chat-find-close.is-on { display: inline-flex; }
.chat-find-close .ic:first-child { display: none; }
.icon-btn.is-off { opacity: 0.35; cursor: default; }
.icon-btn.is-off:hover { background: transparent; color: var(--muted); }
.chat-head .btn-small { gap: 6px; }
.chat-head .is-muted { color: var(--muted); }

.chat-thread { flex: 1; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; background: var(--chat-area-bg); }
.chat-messages { display: flex; flex-direction: column; gap: 3px; padding: 16px 24px; margin-top: auto; }
/* Room on the right for the Assistant tab, so it doesn't sit on top of my own messages */
.chat-screen .chat-messages { padding-right: 56px; }
.pinned-bar { position: sticky; top: 0; z-index: 3; background: var(--head-bg); border-bottom: 1px solid var(--line); font-size: 14px; }
.pinned-bar summary { display: flex; align-items: center; gap: 8px; padding: 8px 16px; cursor: pointer; list-style: none; }
.pinned-bar summary::-webkit-details-marker { display: none; }
.pinned-bar .pinned-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.pinned-bar ul { margin: 0; padding: 4px 16px 10px 40px; display: grid; gap: 6px; }
.pinned-bar a { color: var(--link); }
.chat-day { display: flex; justify-content: center; }
.chat-day span { font-size: 12px; font-weight: 600; color: var(--muted); padding: 3px 12px; border-radius: 999px; background: var(--panel); box-shadow: var(--bubble-shadow); }
.chat-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 70%; position: relative; }
/* WhatsApp-style (Matt, 11/3/2026): a run of messages from one person sits close together; the picture and name show once */
.msg:not(.is-cont), .chat-day { margin-top: 9px; }
.av-gap { flex: none; width: 32px; }
.msg.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.msg:target .bubble, .msg.is-found .bubble { box-shadow: 0 0 0 3px var(--focus); }
.chat-thread mark, .chat-hit mark { background: color-mix(in srgb, var(--wait) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.msg-body { display: grid; gap: 4px; min-width: 0; }
.msg.is-mine .msg-body { justify-items: end; }
.msg-pin { display: inline-flex; }
.msg-pin .ic { width: 13px; height: 13px; }
.bubble { padding: 6px 10px 7px; border-radius: 12px; background: var(--chat-theirs-bg); box-shadow: var(--bubble-shadow); display: grid; gap: 4px; min-width: 0; max-width: 100%; }
.msg:not(.is-cont) .bubble { border-top-left-radius: 3px; }
.msg.is-mine .bubble { background: var(--chat-mine-bg); }
.msg.is-mine:not(.is-cont) .bubble { border-top-left-radius: 12px; border-top-right-radius: 3px; }
/* the sender's name at the top of the first bubble (groups only) */
.msg-who { font-size: 13px; color: var(--link); }
/* the time (and Seen, on mine) inside the bubble at the bottom right; at the end of the words when they come last */
.msg-stamp { justify-self: end; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.msg-text .msg-stamp { float: right; margin: 7px 0 -3px 12px; }
.msg.is-urgent .bubble { background: var(--danger-bg); border: 1px solid var(--danger-border); }
.msg.is-deleted .bubble { background: transparent; border: 1px dashed var(--border); box-shadow: none; }
.msg-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
s.msg-text { color: var(--muted); }
.msg-note { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.msg-note .ic { width: 14px; height: 14px; }
.msg-quote { display: block; padding: 4px 8px; border-left: 3px solid var(--accent); background: var(--head-bg); border-radius: 4px; font-size: 13px; color: var(--muted); text-decoration: none;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.msg-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.msg-photos img { display: block; width: 220px; height: 160px; object-fit: cover; border-radius: 10px; background: var(--press-bg); }
.msg-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); text-decoration: none; max-width: 340px; }
.msg-file:hover { border-color: var(--border-hover); }
.msg-file-type { flex: none; width: 40px; height: 44px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.msg-file-name { min-width: 0; display: grid; }
.msg-file-name strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-original summary { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); cursor: pointer; list-style: none; }
.msg-original summary::-webkit-details-marker { display: none; }
.msg-original summary .ic { width: 14px; height: 14px; }
.msg-original[open] summary { color: var(--text); }
.msg-original p { margin: 6px 0 0; padding: 6px 8px; border-radius: 6px; background: var(--panel); white-space: pre-wrap; font-size: 14px; }
/* Translate under a message that wasn't translated (a chat where everyone read the same language, Matt 11/13/2026) */
.msg-translate { margin: 0; }
.msg-translate button { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: none; font: inherit; font-size: 12px; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.msg-translate button .ic { width: 14px; height: 14px; }
.msg-translate[data-busy="1"] button { opacity: .5; cursor: progress; }
.urgent-tag { justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--down); color: #ffffff; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; }
.msg.is-urgent .msg-text { font-weight: 600; }
.urgent-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-urgent { background: var(--down); border-color: var(--down); color: #ffffff; min-height: 44px; font-weight: 700; }
.btn-urgent:hover:not(:disabled) { background: var(--down); color: #ffffff; filter: brightness(0.92); }
.urgent-who summary { font-size: 13px; color: var(--link); cursor: pointer; }
.urgent-who ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.msg-reactions { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
/* Forward (Matt, 11/12/2026): "Forwarded from Jose · 11/11 2:14 PM" at the top of a copy, "Forwarded by Matt to Rosa"
   under the message for everyone in its chat, and the short look at the message in the Forward box */
.msg-fwd { display: flex; align-items: center; gap: 4px; font-size: 12px; font-style: italic; color: var(--muted); min-width: 0; }
.msg-fwd .ic { width: 14px; height: 14px; flex: none; }
.msg-fwd-to { list-style: none; margin: 2px 0 4px; padding: 0; display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.msg-fwd-to li { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
.msg-fwd-to .ic { width: 14px; height: 14px; flex: none; }
.msg-fwd-to .sub { font-size: inherit; }
.msg.is-mine .msg-fwd-to li { justify-content: flex-end; }
.forward-preview { margin: 0 0 12px; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--head-bg); border-radius: 4px;
                   font-size: 13px; color: var(--muted); overflow-wrap: anywhere; max-height: 5.5em; overflow: hidden; }
.forward-preview:empty { display: none; }
.reaction { min-height: 32px; padding: 2px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.reaction:hover { border-color: var(--border-hover); }
.reaction.is-mine { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.reaction .emoji { font-size: 16px; line-height: 1; margin-right: 5px; }
/* The emojis in a message's ⋯ menu: 7 equal columns, so they always fit the menu's width */
.pop-reactions:has(.reaction-pick) { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.reaction-pick { min-width: 0; width: 100%; min-height: 34px; padding: 0; font-size: 17px; line-height: 1; overflow: hidden; }
.msg-seen { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.msg-seen .ic { width: 14px; height: 14px; }
.msg-seen.is-all .ic { color: var(--run); }

/* The ⋯ menus (a message's actions, the chat's More): <details class="pop-menu"> */
.pop-menu { position: relative; flex: none; }
.pop-menu > summary { list-style: none; cursor: pointer; }
.pop-menu > summary::-webkit-details-marker { display: none; }
.msg-menu { align-self: center; opacity: 0.55; }
.msg:hover .msg-menu, .msg-menu[open], .msg-menu:focus-within { opacity: 1; }
/* minmax(0, 1fr): nothing inside (the emoji row, the date box) can make the menu wider than its 280px. Too tall for the
   space left (Remind me opened): chat.js sets max-height and it scrolls inside. */
.pop-list { position: absolute; z-index: 20; top: 100%; right: 0; width: 280px; padding: 6px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px;
            overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
            background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.msg.is-mine .pop-list { right: auto; left: 0; }
/* Near the bottom of the chat the menu opens upward instead (chat.js adds opens-up) */
.pop-menu.opens-up > .pop-list { top: auto; bottom: 100%; }
/* ... and to the other side when it would run off the left or right edge (chat.js adds opens-left / opens-right) */
.msg .pop-menu.opens-left > .pop-list, .pop-menu.opens-left > .pop-list { left: auto; right: 0; }
.msg .pop-menu.opens-right > .pop-list, .pop-menu.opens-right > .pop-list { left: 0; right: auto; }
.pop-list > a, .pop-list > form > button, .pop-list > button, .pop-sub > summary {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 8px 10px; border: 0; border-radius: 8px;
    background: transparent; color: var(--text); font: inherit; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.pop-list > a:hover, .pop-list > form > button:hover, .pop-list > button:hover, .pop-sub > summary:hover { background: var(--hover-bg); }
.pop-list .danger { color: var(--danger-text); }
.pop-list .ic { color: var(--muted); }
.pop-reactions { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 4px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pop-reactions .reaction { min-height: 38px; }
.pop-sub > summary { list-style: none; }
.pop-sub > summary::-webkit-details-marker { display: none; }
.remind-form { display: grid; gap: 2px; padding: 0 0 6px 30px; }
.remind-form > button[name="when"]:not(.btn) { min-height: 38px; padding: 6px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.remind-form > button[name="when"]:not(.btn):hover { background: var(--hover-bg); }
.remind-form > * { min-width: 0; }
.remind-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 4px 10px 0; font-size: 13px; color: var(--muted); }
.remind-pick .input { width: 100%; min-width: 0; padding-left: 8px; padding-right: 6px; }
.remind-form .btn { justify-self: start; margin: 4px 10px 0; }

/* The box at the bottom, WhatsApp-style (Matt, 11/3/2026: "the place to type the message is extremely small"): one rounded
   box where the words take the room, the ! (Urgent), paperclip and camera small inside it, and a round Send button */
.composer { border-top: 0; padding: 8px 16px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; background: var(--chat-area-bg); position: relative; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer-box { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 2px; min-height: 48px; padding: 3px 4px 3px 18px;
                border: 1px solid var(--border-input); border-radius: 24px; background: var(--panel); }
.composer-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--ring); }
textarea.composer-text { flex: 1; min-width: 0; width: 0; height: 40px; min-height: 40px; max-height: 140px; margin: 0; padding: 9px 0; border: 0; outline: 0; resize: none;
                         background: transparent; color: var(--text); font: inherit; font-size: 16px; line-height: 1.4; }
textarea.composer-text::placeholder { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.composer-btn:hover { background: var(--hover-bg); color: var(--text); }
.composer-btn:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 1px; }
.composer-urgent { font-size: 21px; font-weight: 900; color: var(--danger-text); }
.composer-urgent:hover { color: var(--danger-text); }
.composer-urgent:has(input:checked) { background: var(--down); color: #ffffff; }
/* the red line above the box while Urgent is on; its X turns it off (a label for the checkbox) */
.composer-urgent-note { display: none; }
.composer:has(#sendUrgent:checked) .composer-urgent-note { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border: 1px solid var(--down); border-radius: 12px;
                                                            background: var(--danger-bg); color: var(--danger-text); font-size: 14px; font-weight: 600; }
.composer-urgent-note strong { font-size: 18px; font-weight: 900; }
.composer-urgent-note span { flex: 1; min-width: 0; }
.composer-urgent-note .icon-btn { flex: none; color: var(--danger-text); }
.composer-send { flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent);
                 display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.composer-send:hover { background: var(--accent-dark); }
.composer-send:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.composer-send .ic { width: 22px; height: 22px; margin-left: -2px; }
.composer-hint { margin: 0; }
/* Do not disturb (Matt, 11/26/2026, S_ChatQuietHours): the title-row button is pressed while a quiet time is on now; the
   line under the message box when someone in the chat is in theirs; the quiet times box (#quietHours). */
.page-head .head-dnd { position: relative; min-width: 44px; justify-content: center; }
/* its New flag sits on the corner (like Share's) so the title row stays one line in Spanish at 1280 and on a phone */
.head-dnd .new-flag { position: absolute; top: -8px; right: -10px; margin: 0; font-size: 9px; padding: 0 5px; }
.head-dnd[aria-pressed="true"] { background: var(--select-bg); border-color: var(--select-bg); color: var(--on-select); }
.composer-dnd { margin: 0; display: flex; align-items: flex-start; gap: 6px; }
.composer-dnd .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.qh-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.qh-form .hint { margin: 0; }
.qh-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.qh-row { margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.qh-js .qh-row[data-quiet-spare] { display: none; }
.qh-days { display: flex; flex-wrap: wrap; gap: 6px; }
.qh-day { position: relative; cursor: pointer; }
.qh-day span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 36px; padding: 0 8px; border: 1px solid var(--border-input);
               border-radius: 18px; font-size: 14px; font-weight: 600; user-select: none; }
.qh-day:hover span { background: var(--hover-bg); }
.qh-day input:checked + span { background: var(--select-bg); border-color: var(--select-bg); color: var(--on-select); }
.qh-day input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.qh-times { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qh-times label { font-size: 14px; color: var(--muted); }
.qh-times .qh-time { width: 9.5em; min-width: 0; }
.qh-times .qh-remove { margin-left: auto; }
.qh-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qh-off .qh-rows, .qh-off .qh-actions, .qh-off .qh-hint { opacity: .5; }
.composer-readonly { margin: 0; padding: 12px 16px; border-top: 1px solid var(--border); }
.composer-files { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
/* @ in the message box: the list of people in the chat, just above the box */
/* The emoji button's emojis (chat.js part 3), over the message box like the @ list; 8 across, scrolls when the box is short */
.emoji-pick { position: absolute; z-index: 25; left: auto; right: 16px; bottom: calc(100% - 6px); top: auto; margin: 0; width: min(352px, calc(100% - 32px));
              max-height: min(260px, 50vh); overflow-y: auto; padding: 6px; background: var(--panel); color: var(--text);
              border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; }
.emoji-btn { min-width: 0; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; }
.emoji-btn:hover, .emoji-btn:focus-visible { background: var(--hover-bg); }
.composer-emoji { border: 0; background: transparent; padding: 0; }
.mention-list { position: absolute; z-index: 25; left: 16px; bottom: calc(100% - 6px); width: min(320px, calc(100% - 32px)); max-height: 260px; overflow-y: auto;
                padding: 6px; display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-pop); }
.mention-list button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border: 0; border-radius: 8px; background: transparent;
                       color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mention-list button:hover, .mention-list button.is-active { background: var(--hover-bg); }
/* "@Luis Garcia" in a message; the person named sees it stronger, and the whole message gets a coloured edge */
.mention { color: var(--link); font-weight: 600; }
.mention.is-me { padding: 0 3px; border-radius: 4px; background: var(--accent-soft); }
.msg.is-mention .bubble { box-shadow: inset 4px 0 0 var(--link); }
.chat-at { flex: none; width: 22px; height: 22px; border-radius: 11px; background: var(--link); color: #ffffff; font-size: 13px; font-weight: 700;
           display: inline-flex; align-items: center; justify-content: center; }
.composer-reply { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-left: 3px solid var(--accent); background: var(--head-bg); border-radius: 6px; font-size: 14px; }
.composer-reply span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The Ask the assistant tab on the right of the open chat (opens Ask Maverik) */
.assistant-side-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 40px; padding: 14px 0; border: 0; border-radius: 12px 0 0 12px;
                      background: var(--accent); color: var(--on-accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
                      display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 4; }
.assistant-side-btn span { writing-mode: vertical-rl; transform: rotate(180deg); }
.seg-full { display: flex; border-radius: 10px; }
.seg-full label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.seg-full input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-full label:has(input:checked) { background: var(--select-bg); color: var(--on-select); font-weight: 600; }
.seg-full label:has(input:disabled) { color: var(--disabled-text); cursor: not-allowed; }
.seg-full label:has(input:focus-visible) { outline: 3px solid var(--focus); }

/* A file shown on the screen, on every screen (file-preview.js, _FileViewer: the preview box dialog#filePreview in
   _Layout, and the popped-out window /Files/View). Always the window's size less a small margin, so it fits at 1920, 1280
   (150%) and on phones; the file scrolls inside it. */
.file-preview { width: min(1200px, calc(100vw - 24px)); height: calc(100vh - 32px); height: calc(100dvh - 32px); max-height: none; max-width: none; }
.file-preview[open] { display: flex; flex-direction: column; overflow: hidden; }
.file-preview .modal-head { flex: none; min-width: 0; }
.file-preview-name { text-transform: none; letter-spacing: 0; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview-head .btn { flex: none; }
@media (max-width: 760px) {
    .file-preview-head { flex-wrap: wrap; }
    .file-preview-name { flex: 1 1 calc(100% - 60px); }   /* the name on its own line, buttons under it */
    .file-preview-head .spacer { display: none; }
}
/* The desktop viewer's tools: zoom, fit, rotate, pages, print */
.file-preview-tools { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 6px 18px; border-bottom: 1px solid var(--border); background: var(--panel); }
.file-preview-tools[hidden] { display: none; }
.pv-group { display: inline-flex; align-items: center; gap: 4px; }
.pv-group[hidden] { display: none; }
.pv-zoom { min-width: 52px; text-align: center; font-size: 13.5px; color: var(--muted); }
.pv-page { min-width: 92px; text-align: center; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.file-preview-tabs { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 18px; border-bottom: 1px solid var(--border); }
.file-preview-tabs .btn[aria-pressed="true"] { background: var(--select-bg); border-color: var(--select-bg); color: var(--on-select); }
.file-preview-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 16px; background: var(--press-bg); outline: none; }
/* A photo: the stage is the photo's turned size; auto margins centre it and still let a big one scroll to every edge */
.file-preview-body.is-image { display: flex; }
.pv-stage { position: relative; flex: none; margin: auto; }
.file-preview-image { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center; user-select: none; -webkit-user-drag: none; }
.file-preview-body.is-image.is-zoomed, .file-preview-body.is-pdf { cursor: grab; }
.file-preview-body.is-dragging { cursor: grabbing; }
/* A PDF: one place per page, drawn when it comes near the screen */
.file-preview-body.is-pdf { display: block; }
.pv-pdf-page { margin: 0 auto 12px; background: #ffffff; box-shadow: var(--shadow-pop); }
.pv-pdf-page { position: relative; }
.pv-pdf-page canvas { display: block; width: 100%; height: 100%; }
/* The PDF's words, see-through over the page picture, to drag over and copy (pdf.js text layer, from its pdf_viewer.css) */
.pv-pdf-page .textLayer { position: absolute; inset: 0; overflow: hidden; opacity: 0.25; line-height: 1; text-align: initial; text-size-adjust: none; -webkit-text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; z-index: 2; }
.pv-pdf-page .textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.pv-pdf-page .textLayer span.markedContent { top: 0; height: 0; }
.pv-pdf-page .textLayer ::selection { background: #0064ff; }
.pv-pdf-page .textLayer br::selection { background: transparent; }
.pv-pdf-page .textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: -1; cursor: default; user-select: none; }
.pv-pdf-page .textLayer .endOfContent.active { top: 0; }
.pv-pdf-page .textLayer[data-main-rotation="90"] { transform: rotate(90deg) translateY(-100%); }
.pv-pdf-page .textLayer[data-main-rotation="180"] { transform: rotate(180deg) translate(-100%, -100%); }
.pv-pdf-page .textLayer[data-main-rotation="270"] { transform: rotate(270deg) translateX(-100%); }
.pv-print-frame { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; visibility: hidden; }
.file-preview-word .docx-wrapper { background: transparent; padding: 0; }
.file-preview-word .docx-wrapper > section.docx { box-shadow: var(--shadow-pop); margin-bottom: 12px; }
.file-preview-note { margin: 24px auto; max-width: 640px; text-align: center; color: var(--muted); white-space: pre-line; }
.file-preview-text { margin: 0; padding: 16px; background: var(--panel); border-radius: 8px; white-space: pre-wrap; word-break: break-word; font-size: 14px; }
/* A sheet looks like Excel's white paper in light and dark mode alike, so the file's own cell colours read the same */
.file-preview-sheet { background: #ffffff; color: #1f1f1f; width: max-content; min-width: 100%; }
.file-preview-sheet table { border-collapse: collapse; font-size: 13px; }
.file-preview-sheet th, .file-preview-sheet td { border: 1px solid #d4d4d4; padding: 3px 8px; white-space: nowrap; text-align: left; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.file-preview-sheet th { background: #f3f3f3; color: #5f5f5f; font-weight: 600; position: sticky; top: -16px; }
.file-preview-sheet tbody th { position: sticky; left: -16px; }
.file-preview-sheet td.num { text-align: right; }
/* An email (.eml / Outlook .msg): Subject, From, To, Date and the attachments on a panel, then the email on white paper
   (like a Word page) in a locked frame that is as tall as the email, so the box has one scroll bar */
.pv-email { max-width: 1000px; margin: 0 auto; }
.pv-email-head { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; padding: 12px 16px; }
.pv-email-subject { margin: 0 0 6px; font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.pv-email-rows { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 0; font-size: 14px; }
.pv-email-rows dt { color: var(--muted); font-weight: 600; }
.pv-email-rows dd { margin: 0; overflow-wrap: anywhere; }
.pv-email-files { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.pv-email-files-title { color: var(--muted); font-weight: 600; font-size: 14px; margin-right: 4px; }
.pv-email-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 4px 2px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--head-bg); font-size: 14px; }
.pv-email-file-open { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-email-file-size { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pv-email-file-save { width: 28px; height: 28px; border-radius: 999px; }
.pv-email-blocked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.pv-email-frame { display: block; width: 100%; min-height: 120px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); background: #ffffff; }
/* The popped-out window: the file and its tools fill the window */
.file-viewer-page { display: flex; flex-direction: column; height: calc(100vh - var(--top-h, 0px)); height: calc(100dvh - var(--top-h, 0px)); background: var(--panel); }
html[data-bare] .file-viewer-page { height: 100vh; height: 100dvh; }
.file-viewer-page .file-preview-head { padding: 10px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.msg-photos a { display: block; cursor: zoom-in; }
.msg-photos a.msg-screen { position: relative; cursor: pointer; max-width: 100%; }
.msg-photos .msg-screen img { width: 320px; max-width: 100%; height: 180px; object-position: top left; border: 1px solid var(--line); }
.msg-screen-tag { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 6px;
                  border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; }
.msg-screen-tag .ic { width: 16px; height: 16px; }
.msg-link { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }

/* Files dragged over a chat: a dashed box over the whole chat says where to drop them (chat.js 3) */
.chat-panel.is-dropping::after { content: attr(data-drop-text); position: absolute; inset: 8px; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 18px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--panel) 88%, transparent); border: 3px dashed var(--accent); border-radius: var(--radius-lg); pointer-events: none; }
.share-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer-thumb { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; margin-right: 6px; vertical-align: middle; }

/* New chat / People: the list of people to tick */
.chat-dialog { width: min(560px, calc(100vw - 24px)); }
.people-list { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.people-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.people-list li:last-child { border-bottom: 0; }
.people-list .check-line { flex: 1; min-height: 40px; }
.modal-foot-inline { padding-top: 4px; }
.rename-row { align-items: flex-end; }
.rename-row .field { flex: 1; }

/* A new message while another page is open: a note at the bottom of the screen */
.chat-toast { position: fixed; z-index: 50; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(420px, calc(100vw - 24px)); }
.chat-toast > * { display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); text-decoration: none; box-shadow: var(--shadow-pop); }
.chat-toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.9; }
/* An urgent message's note: red, stays until clicked or closed with its X (chat.js) */
.chat-toast.is-urgent { display: flex; align-items: stretch; border: 2px solid var(--danger-text); border-radius: var(--radius); background: var(--danger-bg); box-shadow: var(--shadow-pop); }
.chat-toast.is-urgent > a { flex: 1; min-width: 0; background: transparent; color: var(--danger-text); box-shadow: none; }
.chat-toast-close { flex: none; width: 44px; border: 0; border-left: 1px solid var(--danger-border); background: transparent; color: var(--danger-text); font-size: 24px; line-height: 1; cursor: pointer; }
.chat-toast-close:hover { background: var(--danger-border); }
/* "Get message alerts on this computer?" after signing in (_Layout, chat.js) */
.alerts-ask .modal-body p { margin: 0; line-height: 1.45; }
.alerts-ask-how { font-weight: 700; }

/* 150% zoom on a 1920 screen (1280 wide): a narrower list */
@media screen and (max-width: 1400px) {
    .chat-screen { grid-template-columns: 320px minmax(0, 1fr); }
    .chat-search-all .input { width: 200px; }
    .chat-find-box { width: 180px; }
    .msg { max-width: 82%; }
    .chat-filters { padding: 10px; }
    .chat-filters.chips { gap: 4px; }
    .chat-filters .fchip { padding: 3px 8px; }
}
/* Tablets: icon-only buttons in the chat's title bar */
@media screen and (max-width: 1100px) {
    .chat-head .lbl { display: none; }
}
/* Phones: one thing at a time */
@media screen and (max-width: 760px) {
    .chat-content { padding: 8px 8px 8px; gap: 8px; }
    .chat-content .page-head h1 { font-size: 22px; }
    /* The title row in one line, with round icon buttons (Matt, 11/3/2026: "the top bar still seems really big ... the new chat
       can probably be a bubble with a plus"): Who can open this, the bell (crossed out while alerts are off), the assistant
       and a green +. Under it the search box with the magnifier inside (Enter searches). */
    .chat-content .page-head { gap: 8px; }
    .chat-content .page-head .spacer { order: 1; }
    .chat-content .page-head .acc-btn { order: 2; }
    .chat-content .page-head [data-alerts-on], .chat-content .page-head [data-alerts-off] { order: 3; }
    /* Do not disturb's moon sits at the end of the search row: the top row has no room for a fifth round button at 360px */
    .chat-content .page-head .head-dnd { order: 7; flex: none; }
    .chat-content .page-head .head-assistant { order: 4; }
    .chat-content .page-head .head-new { order: 5; }
    .chat-content .page-head .head-round, .chat-content .page-head .acc-btn {
        width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; }
    .chat-content .page-head .head-round .lbl, .chat-content .page-head .acc-btn > span { display: none; }
    .chat-content .page-head .head-round .ic, .chat-content .page-head .acc-btn .ic { width: 20px; height: 20px; }
    .chat-content .page-head .ic-desk { display: none; }
    .chat-content .page-head .ic-phone { display: contents; }
    .chat-search-all { order: 6; width: auto; flex: 1 0 calc(100% - 52px); min-width: 0; }
    .chat-search-box { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 1px solid var(--border-input);
                       border-radius: 22px; background: var(--panel); }
    .chat-search-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--ring); }
    .chat-search-box > .ic { display: inline; flex: none; width: 19px; height: 19px; color: var(--muted); }
    .chat-search-all .chat-search-box .input { flex: 1; width: auto; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; border-radius: 0;
                                              background: transparent; box-shadow: none; outline: 0; }
    .chat-search-all > .btn { display: none; }
    .chat-content:has(.chat-screen.has-chat) .page-head { display: none; }
    /* One short row on a phone (Matt 11/21/2026): small picture, the name and line cut to fit, icon-only buttons */
    .share-bar { flex-wrap: nowrap; gap: 8px; padding: 6px 8px; margin-bottom: 6px; }
    .share-thumb { width: 48px; height: 27px; }
    .share-words { flex: 1 1 auto; gap: 0; }
    .share-words strong { font-size: 14px; }
    .share-words span { font-size: 12px; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .share-bar[data-state="pick"] .share-pick, .share-bar[data-state="ready"] .share-ready, .share-bar[data-state="sent"] .share-sent { display: -webkit-box; }
    .share-bar .spacer { display: none; }
    .share-bar .btn { flex: none; min-width: 40px; padding: 0 10px; justify-content: center; }
    .share-btn-words { display: none; }
    .chat-screen { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--chat-top-phone, 150px)); min-height: 420px; }
    .chat-screen.has-chat { height: calc(100dvh - var(--chat-top-phone-chat, 80px)); }
    .chat-screen.has-chat .chat-list-panel { display: none; }
    .chat-screen:not(.has-chat) .chat-panel { display: none; }
    .chat-back, .assistant-head-btn { display: inline-flex; }
    .chat-head { padding: 6px 8px; gap: 6px; flex-wrap: nowrap; }
    .chat-head .av { width: 36px; height: 36px; font-size: 13px; }
    /* the magnifier opens the search bar across the top instead of the title (chat.js); its back arrow closes it */
    .chat-find, .chat-find-close .ic:last-child { display: none; }
    .chat-find-open, .chat-find-close, .chat-find-close .ic:first-child { display: inline-flex; }
    .chat-head.is-finding > :not(.chat-find) { display: none; }
    .chat-head.is-finding .chat-find { display: flex; flex: 1; }
    .chat-find-box { flex: 1; width: auto; min-width: 0; height: 40px; }
    .chat-messages, .chat-screen .chat-messages { padding: 10px 8px; }
    .msg { max-width: 88%; gap: 6px; }
    .av-gap { width: 32px; }
    /* Press and hold a message for its menu (chat.js), like WhatsApp: no ⋯ button beside every message. The menu is a
       sheet along the bottom with the chat dimmed behind it; a tap on the dimmed part closes it. */
    .msg-menu { opacity: 1; position: static; align-self: auto; }
    .msg-menu > summary { width: 0; height: 0; min-width: 0; padding: 0; overflow: visible; }
    .msg-menu > summary .ic { display: none; }
    .msg-menu[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 19; background: var(--backdrop); }
    .msg .bubble { -webkit-touch-callout: none; }
    /* a message's ⋯ menu opens along the bottom of the screen, full width, so it never runs off the side */
    .msg-menu > .pop-list, .msg .pop-menu.opens-up > .pop-list, .msg .pop-menu.opens-left > .pop-list, .msg .pop-menu.opens-right > .pop-list {
        position: fixed; top: auto; bottom: 8px; left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 16px) !important; }
    .msg-photos img { width: 150px; height: 120px; }
    .msg-photos .msg-screen img { width: 220px; height: 124px; }
    .composer { padding: 6px 8px 8px; }
    .emoji-pick { right: 8px; width: calc(100% - 16px); }
    /* Messages inside the Supervisor phone (frame.js data-phone-app): edge to edge, no grey margin around the panels */
    :root[data-bare][data-phone-app] .content.chat-content { padding: 6px 0 0; }
    :root[data-bare][data-phone-app] .content > .page-head { padding: 0 12px; }
    :root[data-phone-app] .chat-screen > .panel { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; }
    /* ...and the file preview has no Pop out (a new window leaves the phone's screen), Print (the phones have no printer),
       Office or Read text (screens the phone can't open) */
    :root[data-phone-app] .file-preview [data-pv="popout"], :root[data-phone-app] .file-preview [data-pv="print"],
    :root[data-phone-app] .file-preview [data-pv="ocr"], :root[data-phone-app] .file-preview [data-preview-office] { display: none !important; }
    .emoji-btn { height: 44px; font-size: 24px; }
    .composer-hint { display: none; }
    .composer-box { padding-left: 16px; }
    .composer-btn { width: 38px; height: 40px; }
    .assistant-side-btn { display: none; }
    .pop-list { width: min(300px, calc(100vw - 32px)); }
    .chat-toast { bottom: 12px; }
}
/* Small phones: the ☰ button and the chat bubble make the title bar wider, so tighten it to keep it on one line.
   480px, not 430px (11/5/2026): the big iPhones (16 Pro Max, 440px wide) put Log Out on a second line. */
@media screen and (max-width: 480px) {
    .app-bar { gap: 6px 4px; }
    .app-bar .bell, .app-bar .theme-btn, .app-bar .tb-find-btn, .nav-toggle { width: 34px; }
    .lang a { padding: 5px 8px; }
}
@media screen and (max-width: 480px) {
    .bar-title { display: none; }   /* the QPI logo stays; "Maverik" would push the bar onto two lines */
}
@media screen and (max-width: 350px) {
    .bar-logo { height: 26px; padding: 2px 4px; }
    .lang a { padding: 5px 6px; }
    .app-bar .bell, .app-bar .theme-btn, .app-bar .tb-find-btn, .nav-toggle { width: 30px; }
}


/* Where the time went on this click (S_PageTimer, site.js): only the approver sees it */
.page-timer { position: fixed; z-index: 40; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: var(--radius); background: var(--panel); color: var(--muted); border: 1px solid var(--border); box-shadow: var(--shadow-pop); font-size: 12px; line-height: 1.4; cursor: pointer; }
.page-timer strong { color: var(--text); }
.timings-saved { position: fixed; z-index: 60; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: var(--radius); background: var(--panel); color: var(--muted); border: 1px solid var(--border); font-size: 12px; }
.page-timer-steps { max-width: min(900px, calc(100vw - 40px)); margin-top: 2px; }
@media print { .page-timer { display: none; } }

/* ==============================================================================   Reports (Forms/Reports, _ReportLayout.cshtml, reports.js; CLAUDE.md rule 18)
   The list of reports down the left (categories + search, like the Production app's Reporting Home), the report on the
   right. The list stays in view while the report scrolls.
   ===================================================================================== */
.content.reports { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
.report-list { padding: 12px; display: grid; gap: 10px; position: sticky; top: calc(var(--top-h, 0px) + 12px);
               max-height: calc(100vh - var(--top-h, 0px) - 50px); overflow-y: auto; }   /* 50px: the page's top and bottom edge, so the list never makes the page scroll (one scroll bar, Matt 11/6/2026) */
.report-list .input { min-height: 38px; font-size: 15px; }
/* Each category is closed until clicked (Matt, 11/2/2026, like the Production app's Reporting Home): its name, count and an
   arrow that turns down when open. "Expand all" / "Collapse all" sits under the search box. */
.report-cat { display: grid; gap: 2px; }
.report-cat[hidden] { display: none; }
.report-cat-h { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer;
                font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); user-select: none; }
.report-cat-h::-webkit-details-marker { display: none; }
.report-cat-h:hover { background: var(--hover-bg); color: var(--text); }
.report-cat-h:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.report-cat-name { min-width: 0; }
.report-cat-h .count { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--hover-bg); font-weight: 700; letter-spacing: 0;
                       text-align: center; font-variant-numeric: tabular-nums; box-sizing: border-box; }
.report-cat-arrow { margin-left: auto; font-size: 18px; line-height: 1; transition: transform .2s; }
.report-cat[open] > .report-cat-h { color: var(--text); }
.report-cat[open] > .report-cat-h .report-cat-arrow { transform: rotate(90deg); }
.report-cat > .report-link { margin-left: 10px; }
.report-list-acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.report-hide { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border: 0; background: none; color: var(--muted);
               font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border-radius: 6px; }
.report-hide:hover { color: var(--text); background: var(--hover-bg); }
.report-hide:focus-visible, .report-show:focus-visible { outline: 3px solid var(--focus); }
.report-hide svg { width: 16px; height: 16px; }
/* Hidden list: the report gets the whole width, and "Show reports" at its top brings the list back */
.report-show { display: none; }
.content.reports.is-list-hidden { grid-template-columns: minmax(0, 1fr); }
.content.reports.is-list-hidden > .report-list { display: none; }
.content.reports.is-list-hidden .report-show { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 12px;
    border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--link); font: inherit; font-size: 14px;
    font-weight: 700; cursor: pointer; }
.report-show svg { width: 18px; height: 18px; }
.report-expand { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 6px; border: 0; background: none;
                 color: var(--link); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: 6px; }
.report-expand:hover { text-decoration: underline; }
.report-expand:focus-visible { outline: 3px solid var(--focus); }
.report-expand svg { width: 16px; height: 16px; transition: transform .2s; }
.report-expand.is-open svg { transform: rotate(180deg); }
.report-link { display: block; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; line-height: 1.3; }
.report-link:hover { background: var(--hover-bg); }
.report-link[aria-current="page"] { background: var(--accent-soft); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
/* The star after a report's name: it is on this person's Home (Favorites) */
.report-fav { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: var(--star); }
.report-fav[hidden] { display: none; }
.report-fav .ic { width: 15px; height: 15px; fill: currentColor; }
.report-none { margin: 0; }
.report-tip { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.report-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.report-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; }
.report-filters .field { width: 260px; max-width: 100%; }
/* the pallet lists (Added back, Removed, Every pallet checked): up to 12 columns (one per value, for Excel), so the titles wrap
   and the chip can too, to fit 1280 wide. Last status wraps its reason under it. */
.report-raw th, .report-raw .grid-sort { white-space: normal; }
.report-raw th, .report-raw td { padding-left: 8px; padding-right: 8px; }
.report-raw .chip { white-space: normal; }
.report-status { min-width: 150px; max-width: 320px; }
/* a date and time goes on two lines when the screen is narrow (1280 wide) */
@media screen and (max-width: 1700px) { .report-raw td.when { white-space: normal; min-width: 84px; } }
/* the ticked-list drop-down (site.js "multi-pick"): the reports' Warehouses */
.multi-pick { position: relative; }
.multi-pick > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.multi-pick > summary::-webkit-details-marker { display: none; }
.multi-pick > summary > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-pick > summary .ic { color: var(--muted); flex: none; }
.multi-pick-list {
    position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; width: max(100%, 260px); max-width: calc(100vw - 32px);
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px; max-height: min(420px, 60vh); overflow-y: auto;
    background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.multi-pick-list .check-line { padding: 8px 6px; border-radius: 8px; }
.multi-pick-list .check-line:hover { background: var(--accent-soft); }
.multi-pick-list .btn { margin-top: 6px; position: sticky; bottom: 0; }
.report-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.report-stats .stat { border-top: 4px solid var(--chip, var(--border)); }
.report-stats .stat .v small { font-size: 15px; font-weight: 600; color: var(--muted); }
.report-stats .stat .l { line-height: 1.35; }
.report-stats .stat .l b { color: var(--text); font-size: 14px; }
.report-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
.meter { display: grid; gap: 6px; }
.meter + .meter { margin-top: 8px; }
.meter-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.meter-pct { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.meter-track { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); }
.meter-track i { display: block; height: 100%; }
.meter .hint { margin: 0; }
.m-ok { background: var(--run); fill: var(--run); }
.m-moved { background: var(--wait); fill: var(--wait); }
.m-removed { background: var(--down); fill: var(--down); }
.m-added { background: var(--added); fill: var(--added); }
.report-chart { width: 100%; height: auto; display: block; }
.report-chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.report-chart .ch-total { fill: var(--text); font-weight: 700; }
.report-chart .ch-grid { stroke: var(--line); stroke-width: 1; }
/* Report usage: one bar per report (days used), the name on the left and the number on the right */
.usage-bars { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr) minmax(48px, max-content); gap: 8px 14px; align-items: center; margin-top: 10px; }
.usage-name { font-weight: 600; }
.usage-track { height: 14px; border-radius: 7px; overflow: hidden; background: var(--line); }
.usage-track i { display: block; height: 100%; min-width: 0; }
.usage-n { text-align: right; }
@media screen and (max-width: 560px) { .usage-bars { grid-template-columns: minmax(0, 1fr) 90px auto; } }
/* Page speed report (frmPageSpeed): each slow screen's bar split by where its time went, and the key above it */
.speed-track { display: flex; }
.speed-track i { flex: none; }
.sp-before { background: var(--muted); }
.sp-server { background: var(--brk); }
.sp-download { background: var(--wait); }
.sp-device { background: var(--down); }
.speed-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.speed-key span { display: inline-flex; align-items: center; gap: 6px; }
.speed-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.speed-bars .usage-name .hint { font-weight: 400; margin-left: 6px; }
.speed-group + .speed-group { margin-top: 16px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.report-tabs { flex-wrap: wrap; justify-self: start; border-radius: 14px; max-width: 100%; }
.report-tabs .count { display: inline-block; min-width: 22px; margin-left: 4px; padding: 0 6px; border-radius: 999px; font-size: 12px;
                      text-align: center; background: var(--line); color: var(--text); }
.report-tabs a[aria-current="page"] .count { background: color-mix(in srgb, var(--on-select) 25%, transparent); color: var(--on-select); }
.report-tab-hint { margin: 0 0 10px; }
.report-main td .sub { display: block; font-size: 13px; }
.report-main .grid-wrap[data-grid] .grid-sort { white-space: normal; }   /* long column titles wrap, so a wide report fits at 1280 (150%) */
/* ...but a report whose list scrolls sideways in its own box (.grid-x / .grid-scroll) keeps each column title on one line with
   its filter button beside it (Matt 11/6/2026: wrapped titles made a huge title row, up to three lines plus a line for the
   funnel). The box scrolls sideways for the wider columns; a report without such a box still wraps, so the page never does. */
@media screen and (min-width: 761px) {   /* screens only: a phone shows cards, and paper keeps its wrapped titles */
    .report-main .grid-wrap[data-grid] :is(.grid-x, .grid-scroll) .grid th,
    .report-main .grid-wrap[data-grid] :is(.grid-x, .grid-scroll) .grid th .grid-sort { white-space: nowrap; max-width: none; }
    .report-main .grid-wrap[data-grid] :is(.grid-x, .grid-scroll) .grid thead th { vertical-align: middle; }
}
.report-how { margin: 0; line-height: 1.55; }
@media screen and (max-width: 1500px) { .report-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media screen and (max-width: 1100px) { .report-row { grid-template-columns: minmax(0, 1fr); } }
/* A smaller screen (1920 at 150% is 1280 wide, Matt 11/2/2026): still a side panel, a little narrower; Hide gives the
   report the whole width */
@media screen and (max-width: 1400px) {
    .content.reports { grid-template-columns: 220px minmax(0, 1fr); }
    .report-list { padding: 10px; }
    .report-link { font-size: 14px; }
    .report-tip { display: none; }
}
/* A phone (Matt, 10/30/2026): no list on top of every report. The Reports menu is a page of closed sections with a count
   (Favorites, then each category) that open to show their reports; a report has a "< Reports" link back to it. */
.report-menu, .report-back { display: none; }
@media screen and (max-width: 760px) {
    .content.reports > .report-list, .content.reports .report-show, .content.reports.is-list-hidden .report-show { display: none; }
    .content.reports { grid-template-columns: minmax(0, 1fr); }
    .report-pick-hint { display: none; }
    .report-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin: 0 0 8px; padding: 6px 4px;
                   color: var(--link); font-weight: 700; font-size: 16px; text-decoration: none; }
    .report-back svg { width: 18px; height: 18px; }
    .report-menu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .report-menu > .input { width: 100%; min-height: 42px; font-size: 16px; box-sizing: border-box; }
    .report-menu-sect { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
    .report-menu-sect > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px;
                                  cursor: pointer; font-weight: 700; font-size: 16px; color: var(--text); }
    .report-menu-sect > summary::-webkit-details-marker { display: none; }
    .report-menu-sect > summary svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
    .report-menu-sect.is-fav > summary svg { color: var(--accent-ink); }
    .report-menu-name { min-width: 0; }
    .report-menu-sect .count { min-width: 24px; padding: 1px 8px; border-radius: 999px; background: var(--hover-bg); color: var(--muted);
                               font-size: 13px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; box-sizing: border-box; }
    .report-menu-sect.is-fav .count { background: var(--accent-soft); color: var(--accent-ink); }
    .report-menu-arrow { margin-left: auto; color: var(--muted); font-size: 20px; line-height: 1; transition: transform .2s; }
    .report-menu-sect[open] > summary .report-menu-arrow { transform: rotate(90deg); }
    .report-menu-sect[open] > summary { border-bottom: 1px solid var(--border); }
    .report-menu-item { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px; color: var(--text);
                        text-decoration: none; border-bottom: 1px solid var(--border); }
    .report-menu-item:last-child { border-bottom: 0; }
    .report-menu-item:active { background: var(--hover-bg); }
    .report-menu-text { display: grid; gap: 2px; min-width: 0; }
    .report-menu-text b { font-size: 15px; }
    .report-menu-text small { color: var(--muted); font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2;
                              -webkit-box-orient: vertical; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .report-menu-arrow, .report-cat-arrow, .report-expand svg { transition: none; } }
@media screen and (max-width: 560px) {
    .report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-filters .field { width: 100%; }
    .report-filters .btn { width: 100%; }
}

/* ---- Pallet history: a pallet number in a grid (grid.js: th data-pallet) opens the pop-up (site.js, frmPalletHistory) ---- */
.pallet-link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pallet-link:hover { text-decoration-thickness: 2px; }
.pallet-link:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* A grid's click-through link (grid.js data-open: sales order, load, BOL ...), the same blue as a pallet number */
.grid-open { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.grid-open:hover { text-decoration-thickness: 2px; }
.pallet-history { width: min(1400px, calc(100vw - 24px)); }
.pallet-history .modal-head h2 { margin: 0; font-size: 18px; }
.pallet-history .modal-body { max-height: calc(100vh - 140px); overflow: auto; padding-top: 0; --top-h: 0px; grid-template-columns: minmax(0, 1fr); }   /* the grid's titles stick to the top of the box */
.pallet-history .modal-body .grid-wrap { box-shadow: none; }
.pallet-history .grid th { white-space: normal; }   /* 8 columns: the titles wrap rather than push the box wider */
.pallet-hist-reason { min-width: 200px; }

/* ==============================================================================   Pallet Family Tree (Forms/Reports/frmPalletFamilyTree, wwwroot/js/family-tree.js)
   A canvas you drag and zoom (two fingers on a phone) with the pallet boxes and the operation circles, the details panel
   beside it (below it on a smaller screen), and the totals line above. Time runs left to right.
   ===================================================================================== */
.ft-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; }
.ft-sum b { font-variant-numeric: tabular-nums; }
.ft-pieces { margin-left: auto; color: var(--muted); }
.ft-pieces b { color: var(--text); }
.ft-stage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: stretch; }
.ft-vp { position: relative; height: clamp(520px, calc(100vh - 300px), 860px); overflow: hidden; cursor: grab; touch-action: none; user-select: none;
         -webkit-user-select: none; background-color: var(--ft-canvas); background-image: radial-gradient(var(--ft-dot) 1.2px, transparent 1.3px); }
.ft-vp.drag { cursor: grabbing; }
.ft-world { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ft-world.glide { transition: transform 0.3s; }
.ft-edges { position: absolute; left: 0; top: 0; overflow: visible; }
.ft-tools { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.ft-tools > * { pointer-events: auto; }
.ft-grp { display: flex; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.ft-grp button { border: 0; background: none; color: var(--text); font: inherit; font-size: 14px; padding: 7px 11px; cursor: pointer; white-space: nowrap; min-height: 36px; }
.ft-grp button + button { border-left: 1px solid var(--line); }
.ft-grp button:hover { background: var(--hover-bg); }
.ft-find { display: flex; min-width: 0; }
.ft-find .input { min-height: 38px; width: 230px; max-width: 100%; font-size: 14px; box-shadow: var(--shadow); }
.ft-spacer { flex: 1; }
.ft-msg { position: absolute; z-index: 6; top: 58px; left: 10px; right: 10px; margin: 0; padding: 8px 12px; border-radius: 10px; font-size: 14px;
          background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.ft-legend { position: absolute; left: 10px; bottom: 10px; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px 14px; max-width: calc(100% - 90px);
             padding: 6px 11px; font-size: 12.5px; color: var(--muted); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.ft-legend i { display: inline-block; width: 16px; height: 0; margin-right: 5px; border-top: 3px solid; border-radius: 2px; vertical-align: 3px; }
.ft-legend b { color: var(--text); }
.ft-l-merge { color: var(--ft-merge); } .ft-l-break { color: var(--ft-break); } .ft-l-mod { color: var(--ft-mod); } .ft-l-station { color: var(--ft-station); }
.ft-zoom { position: absolute; right: 10px; bottom: 10px; z-index: 5; padding: 6px 10px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums;
           background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
/* the colour of each kind of operation: lines, circles, + buttons, chips */
.ft-c-merge { --oc: var(--ft-merge); } .ft-c-break { --oc: var(--ft-break); } .ft-c-station { --oc: var(--ft-station); }
.ft-c-mod, .ft-c-link, .ft-c-reprint { --oc: var(--ft-mod); } .ft-c-other { --oc: var(--plain); }
/* a pallet box: the coloured edge on the left says what finally happened to it */
.ft-pal { position: absolute; width: 200px; height: 84px; display: grid; gap: 3px; align-content: start; padding: 8px 11px; cursor: pointer;
          background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); transition: opacity 0.2s, box-shadow 0.2s; }
.ft-pal::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 3px 3px 0; background: var(--st); }
.ft-pal.gone { background: var(--head-bg); }
.ft-pal .r1 { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.ft-pal .id { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.ft-pal .r2 { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-pal .r3 { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-pal.sel { border-color: var(--text); box-shadow: 0 0 0 2px var(--text), var(--shadow); }
.ft-pal.focus::after { content: attr(data-searched); position: absolute; left: 10px; top: -19px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em;
                       text-transform: uppercase; color: var(--muted); }
.ft-pal:focus-visible, .ft-op:focus-visible, .ft-grow:focus-visible, .ft-path li:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ft-pal .chip, .ft-tip .chip, .ft-det .chip { --chip: var(--st, var(--oc)); font-size: 11px; padding: 1px 7px; }
.ft-st-live { --st: var(--run); } .ft-st-shipped { --st: var(--brk); } .ft-st-used { --st: var(--ft-station); } .ft-st-merged { --st: var(--ft-merge); }
.ft-st-broken { --st: var(--ft-break); } .ft-st-replaced { --st: var(--ft-mod); } .ft-st-deleted, .ft-st-scrapped { --st: var(--down); } .ft-st-other { --st: var(--plain); }
.ft-tip .chip.ft-c-merge, .ft-tip .chip[class*="ft-c-"], .ft-det .chip[class*="ft-c-"] { --chip: var(--oc); }
.ft-pal.dim, .ft-op.dim { opacity: 0.32; }
.ft-grow { position: absolute; top: 50%; z-index: 2; height: 26px; min-width: 26px; margin-top: -13px; padding: 0 6px; border-radius: 13px; cursor: pointer;
           display: flex; align-items: center; justify-content: center; font: inherit; font-size: 11.5px; font-weight: 700; line-height: 1;
           color: var(--text); background: var(--panel); border: 1.5px solid var(--border); box-shadow: var(--shadow); }
.ft-grow.l { right: calc(100% - 12px); } .ft-grow.r { left: calc(100% - 12px); }
.ft-grow.plus { color: var(--oc); border-color: var(--oc); }
.ft-grow:hover { background: var(--hover-bg); }
/* an operation circle */
.ft-op { position: absolute; width: 72px; height: 64px; display: grid; justify-items: center; align-content: start; gap: 2px; cursor: pointer; transition: opacity 0.2s; }
.ft-op .ft-ring { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--oc);
            border: 2px solid var(--oc); background: color-mix(in srgb, var(--oc) 12%, var(--panel)); }
.ft-op svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ft-op .ft-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; line-height: 1.1; color: var(--oc); }
.ft-op .ft-when { font-size: 10.5px; line-height: 1.1; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ft-op.sel .ft-ring { box-shadow: 0 0 0 3px color-mix(in srgb, var(--oc) 35%, transparent); }
/* the lines: the selected pallet's line is thicker with dots running along it (still when "reduce motion" is on) */
.ft-e { fill: none; stroke: var(--oc); stroke-width: 2.2; transition: opacity 0.2s; }
.ft-e.ft-c-mod, .ft-e.ft-c-link, .ft-e.ft-c-reprint { stroke-dasharray: 6 5; }
.ft-e.hot { stroke-width: 3.4; }
.ft-e.dim { opacity: 0.28; }
.ft-flow { fill: none; stroke: var(--panel); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 2 14; opacity: 0.9; animation: ft-flow 1.1s linear infinite; }
@keyframes ft-flow { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) { .ft-flow { display: none; } }
/* the hover card (placed by family-tree.js next to the box, kept on the screen) */
.ft-tip { position: fixed; z-index: 60; width: 320px; max-width: calc(100vw - 24px); padding: 11px 13px; font-size: 13px; line-height: 1.45; pointer-events: none;
          background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-pop); }
.ft-tip h5 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 6px; font-size: 14px; }
.ft-tip dl, .ft-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 0; }
.ft-tip dt, .ft-dl dt { color: var(--muted); }
.ft-tip dd, .ft-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ft-flowtbl { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.ft-flowtbl .h { grid-column: 1 / -1; margin-top: 3px; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.ft-flowtbl .r { text-align: right; }
.ft-hint { margin-top: 7px; font-size: 12px; color: var(--muted); }
.ft-stage .mono, .ft-tip .mono { font-family: var(--mono); font-weight: 600; }
/* the details panel */
.ft-det { display: grid; gap: 12px; align-content: start; min-width: 0; max-height: clamp(520px, calc(100vh - 300px), 860px); overflow-y: auto; font-size: 14px; }
.ft-h { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ft-big { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.ft-big .mono { font-size: 22px; }
.ft-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-path { display: grid; margin: 0; padding: 0; list-style: none; }
.ft-path li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: 13px; line-height: 1.35; }
.ft-path li:hover { background: var(--hover-bg); }
.ft-path li .b { width: 10px; height: 10px; margin-top: 4px; justify-self: center; border-radius: 50%; background: var(--oc, var(--muted)); }
.ft-path li.me .b { background: var(--text); border-radius: 2px; }
.ft-path li .w { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ft-path li.sec { display: block; padding: 8px 4px 2px; cursor: default; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ft-path li.sec:hover { background: none; }
@media screen and (max-width: 1500px) { .ft-stage { grid-template-columns: minmax(0, 1fr); } .ft-det { max-height: none; } }
@media screen and (max-width: 760px) {
    .ft-vp { height: 70vh; }
    .ft-find, .ft-find .input { width: 100%; }
    .ft-legend-tip { display: none; }
    .ft-pieces { margin-left: 0; }
}

/* ---- Temp Hours (Forms/TempHours/frmTempHours, the report frmTempHoursReport) ---- */
.temp-nav { display: flex; align-items: center; gap: 6px; }
.temp-nav .input { width: auto; }
.temp-day-head, .temp-day-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.temp-day-foot { margin-top: 12px; font-size: 16px; }
.temp-day-grid .temp-time { width: 9.5em; min-width: 0; }
.temp-day-grid .temp-lunch { width: 6em; min-width: 0; }
.temp-day-grid td { vertical-align: middle; }
.temp-hours-cell { font-weight: 700; }
.temp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.temp-cell { display: block; color: inherit; text-decoration: none; border-radius: 6px; padding: 2px 4px; }
.temp-cell:hover { background: var(--hover, color-mix(in srgb, var(--text) 8%, transparent)); }
.temp-cell.is-problem { color: var(--down); font-weight: 800; }
.temp-problem { color: var(--down); font-weight: 800; }
.temp-report-status { margin: 4px 0 12px; }
.report-filters .temp-period-field { width: 360px; }
/* the week: 14 columns, so the titles wrap and the cells are tighter, to fit 1280 wide (150%) */
.temp-week th { white-space: normal; }
.temp-week th, .temp-week td { padding-left: 6px; padding-right: 6px; }
/* Temp Punch Report: 11 columns, so the titles and the Missed clock-out tag wrap, to fit 1280 wide (150%, rule 10) */
.temp-punch-grid th, .temp-punch-grid td .chip { white-space: normal; }
.temp-week .sub, .temp-day-grid td .sub { display: block; font-size: 12px; }
.temp-week .temp-acts { justify-content: flex-start; margin-top: 6px; }
.temp-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.temp-roster { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); margin-bottom: 16px; }
.temp-roster .panel-section, .temp-roster .move-steps, .temp-hours .panel-section { grid-template-columns: minmax(0, 1fr); }
.grid tr.is-past td { color: var(--muted); }
.temp-settings-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.temp-settings-row .field { width: 14em; }
@media screen and (max-width: 1100px) { .temp-roster { grid-template-columns: minmax(0, 1fr); } }
@media screen and (max-width: 760px) {
    .temp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .temp-day-grid .temp-time, .temp-day-grid .temp-lunch { width: 100%; }
    .temp-nav { flex-wrap: wrap; }
}

/* ---- Admin > Click trail (Forms/Admin/frmClickTrail) ---- */
.report-filters .click-trail-day { width: 190px; }
.report-filters .click-trail-time { width: 150px; }
.click-trail-grid td { vertical-align: top; }
.click-trail-wrap { overflow-wrap: anywhere; min-width: 120px; }

/* ==============================================================================   The "?" help box of a screen (Forms/Shared/_Help.cshtml, S_Help, CLAUDE.md rule 23) and its print page (/Help/key).
   The box has three tabs (data-tab on the dialog, site.js part 9); the page shows all three, one after the other.
   ===================================================================================== */
.help-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 30px; height: 30px; padding: 0;
            border: 2px solid var(--accent); border-radius: 50%; background: var(--panel); color: var(--accent-ink);
            font: 700 17px/1 var(--label-font); cursor: pointer; }
.help-btn:hover, .help-btn:focus-visible { background: var(--accent); color: var(--on-accent); }
.page-head h1 + .help-btn { margin-left: -6px; }   /* sits right next to the title */
/* A screen with a phone guide (S_Help.Page.Phone, _Help.cshtml): the "?" opens the computer guide or the phone guide */
.help-btn.help-on-phone { display: none; }
@media screen and (max-width: 760px) {
    .help-btn.help-on-desk { display: none; }
    .help-btn.help-on-phone { display: inline-flex; margin-left: -6px; }
}
.page-head .help-btn-words { flex: none; }   /* Getting started on Home, next to its "?" */
.help-box { width: min(1180px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
.help-box[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.help-box .modal-head { flex-wrap: wrap; }
.help-title { margin: 0; font-size: 20px; }
.help-tabs { margin: 12px 18px 0; justify-self: start; max-width: calc(100% - 36px); overflow-x: auto; }
.help-tabs a { cursor: pointer; }
.help-body { overflow-y: auto; grid-template-columns: minmax(0, 1fr); align-content: start; }
.help-box [data-help-panel] { display: none; }
.help-box[data-tab="steps"] [data-help-panel="steps"], .help-box[data-tab="video"] [data-help-panel="video"],
.help-box[data-tab="flow"] [data-help-panel="flow"] { display: grid; }
.help-box .help-only-page { display: none; }
.help-panel { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.help-page .help-body { display: grid; gap: 28px; }
.help-lead { margin: 0; max-width: 80ch; }
.help-sec { display: grid; gap: 8px; padding-top: 6px; }
.help-sec + .help-sec { border-top: 1px solid var(--border); padding-top: 16px; }
.help-h { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 19px; }
.help-when { margin: 0; color: var(--muted); }
.help-steps { display: grid; gap: 14px; margin: 4px 0 0; padding-left: 0; list-style: none; counter-reset: help-step; }
/* A guide's contents (the Getting started guide): links that jump to each part */
.help-toc { padding: 4px 0 14px; border-bottom: 1px solid var(--border); }
.help-toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; margin: 6px 0 0; padding: 0; list-style: none; }
.help-toc a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); color: inherit; text-decoration: none; font-weight: 600; }
.help-toc a:hover, .help-toc a:focus-visible { border-color: var(--accent); }
.help-sec { scroll-margin-top: 12px; }
/* A guide's phone part (help-sec help-phone, Akshitha / Matt 11/6/2026: "show the phone picture help doc only in phone view
   and the computer help only in computer layout ... showing both combined I won't want"): a computer (and a print) shows
   only the computer parts; a phone shows only the phone part of a guide that has one. A guide without one is the same
   everywhere. */
@media screen and (min-width: 761px), print {
    .help-sec.help-phone, .help-toc li.help-phone { display: none !important; }
}
@media screen and (max-width: 760px) {
    [data-help-panel]:has(> .help-sec.help-phone) > .help-sec:not(.help-phone),
    [data-help-panel]:has(> .help-sec.help-phone) > .help-toc,
    [data-help-panel]:has(> .help-sec.help-phone) > .help-sec ~ .help-lead { display: none !important; }
    .help-sec.help-phone { border-top: 0; }
    .help-sec.help-phone .step-no, .help-sec.help-phone .help-back { display: none; }
}
.help-h .help-back { margin-left: auto; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.help-h .help-back:hover, .help-h .help-back:focus-visible { text-decoration: underline; }
.help-steps li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 12px 20px; align-items: start; counter-increment: help-step; }
.help-text { padding-left: 38px; }
.help-text b { display: block; margin-bottom: 2px; }
.help-text b::before { content: counter(help-step) "."; display: inline-block; width: 30px; margin-left: -30px; color: var(--accent-ink); }
.help-shot { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--head-bg); }
.help-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }   /* a tablet-size picture isn't stretched */
.help-tip { margin: 2px 0 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.help-video { width: 100%; max-height: calc(100vh - 260px); aspect-ratio: 16 / 9; background: var(--head-bg); border-radius: var(--radius); }
.help-chapters { display: flex; flex-wrap: wrap; gap: 8px; }
.help-chapters .btn { min-height: 34px; }
.help-chapters .btn.is-on { background: var(--select-bg); color: var(--on-select); border-color: var(--select-bg); }
.help-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.help-lane { display: grid; gap: 22px; align-content: start; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--head-bg); }
.help-lane-h { font-family: var(--label-font); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.help-node { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--border);
             border-radius: var(--radius); background: var(--panel); font-size: 14.5px; }
.help-node + .help-node::before { content: "↓"; position: absolute; top: -21px; left: 50%; transform: translateX(-50%); color: var(--muted); font-weight: 700; }
.help-node.is-step { border-color: var(--accent); }
.help-node.is-branch { border-style: dashed; }
.help-yes { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--border); font-weight: 600; }
.help-yes::before { content: "→"; color: var(--accent-ink); }
.help-h .step-no { width: 28px; height: 28px; font-size: 15px; margin-right: 0; }
.help-node .step-no, .help-yes .step-no { width: 22px; height: 22px; font-size: 12px; }
.help-updated { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
@media screen and (max-width: 1100px) {
    .help-steps li { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
    .help-box { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
    .help-flow { grid-template-columns: minmax(0, 1fr); }
    .help-box .modal-head .btn-small { display: none; }   /* printing is for a computer */
}
@media print {
    .help-page { padding: 0.5in; display: block; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .help-page .page-head .btn, .help-page [data-help-panel="video"] { display: none; }
    .help-page .help-body { border: 0; box-shadow: none; padding: 0; }
    .help-steps li, .help-lane { break-inside: avoid; }
    .help-h .help-back { display: none; }
    /* Chrome lays a grid badly across a page break (a part's heading printed on top of the step before it): plain blocks */
    .help-page .help-body, .help-panel, .help-sec, .help-steps { display: block; }
    .help-panel + .help-panel, .help-sec + .help-sec { margin-top: 18px; }
    .help-panel > * + *, .help-sec > * + * { margin-top: 8px; }
    .help-steps li { margin-bottom: 14px; }
    .help-h { break-after: avoid; }
    .help-toc { break-after: page; border-bottom: 0; }
    .help-toc ol { grid-template-columns: minmax(0, 1fr); }
    .help-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===========================================================================================================   Forklift screens (Forms/Forklift, _ForkliftLayout; Matt, 10/30/2026). The tablets on the forklifts (Surface Go 2:
   1920x1280 at 150% is about 1280x853, at 100% 1920x1280). Since 11/1/2026 (Matt: "stay like normal like the rest of
   the app") they sit in the normal frame (title bar and menus), but they still always fit the tablet: the page is exactly
   the window's height and never scrolls, and a list scrolls inside its own box (.fk-scroll, column titles stay at its
   top). Big buttons for gloves. body:has(#fkApp) = a page with a forklift screen in it.
   ================================================================================================================== */
body:has(#fkApp) { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body:has(#fkApp) > .top-bar, body:has(#fkApp) > .device-bar { flex: 0 0 auto; }
body:has(#fkApp) > main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.fk-app { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.fk-warehouse-btn { white-space: nowrap; }
.fk-flash { margin: 0; padding: 10px 18px; font-size: 22px; font-weight: 700; flex: 0 0 auto; }
.fk-flash.ok { background: var(--run); color: #ffffff; }
.fk-flash.err { background: var(--down); color: #ffffff; }
.fk-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 14px 24px; gap: 12px; overflow: hidden; width: 100%; max-width: 1840px; margin-inline: auto; }
/* The trailer photo box (_TrailerLoad, Photo): the Take Photo button opens the camera, the picture shows before Save */
.fk-photo-take { align-self: flex-start; position: relative; cursor: pointer; }
.fk-photo-preview { display: block; max-width: 100%; max-height: 45vh; border-radius: var(--radius); border: 1px solid var(--border); object-fit: contain; }
.fk-photo-preview[hidden] { display: none; }
.fk-photo-take + .pscan-btn { align-self: stretch; margin-left: 0; }
.fk-main > .content { max-width: none; padding: 0; margin: 0; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.fk-title { margin: 0; font-size: 26px; }
.fk-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.fk-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }
.fk-panel h2 { margin: 0; font-size: 19px; }
.fk-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); --top-h: 0px; }   /* the grid's titles stick to the top of this box, not under the title bar */
.fk-scroll .grid-wrap { border: 0; margin: 0; }
.fk-scroll .grid thead th { position: sticky; top: 0; z-index: 1; }
.fk-app .input-tall { font-size: 24px; padding: 12px 14px; }
.fk-app .btn-big { min-height: 56px; font-size: 19px; }
.fk-scan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.fk-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 16px; margin: 0; }
.fk-facts div { min-width: 0; }
.fk-facts dt { font-family: var(--label-font); text-transform: uppercase; font-size: 13px; color: var(--muted); }
.fk-facts dd { margin: 0; font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.fk-recent { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fk-recent .btn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-recent .empty { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.fk-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fk-levels .btn { min-height: 52px; font-size: 22px; font-family: var(--mono); }
.fk-warehouses { display: flex; flex-direction: column; gap: 12px; }
.fk-warehouse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.fk-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.fk-steps .step { padding: 6px 12px; border-radius: 999px; background: var(--head-bg); color: var(--muted); font-weight: 600; }
.fk-steps .step.on { background: var(--accent); color: var(--on-accent); }
.fk-steps .step.done { color: var(--accent-ink); }
.fk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.fk-actions .btn { flex: 1 1 200px; }
dialog.modal .fk-levels { width: min(520px, 100%); }
/* 150% zoom on the tablet (about 1280x853): a little tighter so nothing scrolls */
@media (max-width: 1400px) {
    .fk-flash { font-size: 19px; padding: 8px 14px; }
    .fk-main { padding: 10px 12px; gap: 10px; }
    .fk-app .input-tall { font-size: 21px; padding: 10px 12px; }
    .fk-app .btn-big { min-height: 50px; font-size: 17px; }
}
@media (max-width: 900px) {
    .fk-cols { grid-template-columns: minmax(0, 1fr); overflow: auto; }
    .fk-recent { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Forklift > Confirm Inventory (Forms/Forklift/frmConfirmInventory) ---- */
.fk-confirm { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.fk-done-box { display: flex; align-items: center; background: var(--head-bg); color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-no.done { background: var(--accent); color: var(--on-accent); }
.fk-notlisted { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--danger-bg); border: 1px solid var(--danger-border); }
.fk-notlisted h2 { color: var(--danger-text); }
.fk-notlisted .fk-actions { margin-top: 0; }
.fk-notlisted .fk-actions form { flex: 1 1 160px; display: flex; }
.fk-notlisted p { margin: 0; }
.fk-reconcile { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.fk-progress-head { display: flex; justify-content: space-between; align-items: baseline; }
.fk-bar-track { height: 12px; border-radius: 6px; background: var(--line); overflow: hidden; }
.fk-bar-track span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.fk-app .fk-danger { border-color: var(--down); color: var(--danger-text); white-space: normal; }
.grid tr.fk-seen td { background: var(--accent-soft); }
.grid tr.fk-added td:first-child { box-shadow: inset 4px 0 0 var(--added); }
dialog.fk-cluster-box { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
dialog.fk-cluster-box[open] { display: flex; flex-direction: column; }
.fk-cluster-body { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1 1 auto; }
.fk-cluster-body .fk-scroll { min-height: 120px; max-height: 40vh; }
.fk-cluster-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.fk-cluster-foot form { display: flex; }

/* ---- Forklift > Search Job Parts (Forms/Forklift/frmSearchJobParts; Matt, 11/4/2026) ---- */
.sj-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.sj-done { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius); background: var(--head-bg); font-size: 17px; min-width: 0; }
.sj-done > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.sj-done form { display: flex; }
.sj-bom td { vertical-align: middle; }
.grid tr.sj-on td { background: var(--accent-soft); font-weight: 600; }
.sj-pick { display: block; width: 100%; min-height: 44px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
           color: var(--text); font-size: 16px; font-weight: 700; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.sj-pick:hover { background: var(--hover-bg); }
.grid tr.sj-on .sj-pick { border-color: var(--accent); }
.sj-go-head { display: flex; align-items: baseline; gap: 10px; }
.sj-count { font-size: 16px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.sj-go { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.sj-go-facts { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sj-where { font-size: 34px; font-weight: 800; margin: 0; overflow-wrap: anywhere; }
.sj-desc { margin: 0; }
.fk-app .sj-photo { white-space: nowrap; }
.sj-forks-title { margin-top: 6px; }
.sj-forks { flex: 0 1 auto; }
.sj-steps-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sj-steps-list li { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 10px; align-items: center; padding: 4px 10px; border: 1px solid var(--border);
                    border-radius: var(--radius); font-size: 17px; }
.sj-steps-list li form { display: flex; }
.sj-steps-list li.done { opacity: .55; }
.sj-steps-list li.next { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.fk-app .sj-steps-list .btn-big { min-height: 46px; }
@media (max-width: 1400px) {
    .sj-where { font-size: 28px; }
    .sj-done { font-size: 16px; padding: 6px 10px; }
}
@media (max-width: 760px) {
    .sj-go { grid-template-columns: minmax(0, 1fr); }
    .sj-steps-list li { grid-template-columns: minmax(0, 1fr); }
}

/* ===========================================================================================================   Ship Trailer, Load Trailer, Receive Transfer (Forms/Forklift: frmShipTrailer, _TrailerLoad, frmReceiveTransfer).
   The same "never scroll the page" rule as the other forklift screens: the lists scroll inside their boxes.
   ================================================================================================================== */
.fk-flash { white-space: pre-line; }   /* VB's multi-line messages ("The following errors must be resolved ...") */
.fk-fill { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.fk-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--head-bg); font-weight: 600; font-size: 14px; }
.fk-check { width: 26px; height: 26px; accent-color: var(--accent-dark); }
.fk-row-ok td { background: color-mix(in srgb, var(--run) 16%, var(--panel)); }
.fk-row-warn td { background: color-mix(in srgb, var(--wait) 18%, var(--panel)); }
.fk-row-bad td { background: color-mix(in srgb, var(--down) 18%, var(--panel)); }
.fk-app .seg-full button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border: 0; border-radius: 8px;
                           background: transparent; color: var(--text); font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.fk-app .seg-full button.on { background: var(--select-bg); color: var(--on-select); }
.fk-app .seg-full button:disabled:not(.on) { opacity: .5; cursor: default; }
.fk-app .seg-full label { min-height: 48px; font-size: 18px; }

/* Forklift > Look Up Inventory (Forms/Forklift/frmLookUpInventory): the search across the top, the list fills the rest */
.fk-lookup-top { flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 18px; align-items: end; }
.fk-lookup-by { display: flex; flex-direction: column; gap: 6px; }
.fk-app .fk-by a { min-height: 52px; display: flex; align-items: center; padding: 0 22px; font-size: 18px; }
.fk-lookup-form { min-width: 0; }
.fk-lookup-list { flex: 1 1 auto; }
.fk-lookup-list > .hint { margin: 0; }
.fk-lookup-list .grid thead th { white-space: normal; vertical-align: bottom; }   /* 12 columns: long titles wrap so they fit at 1920 */
.fk-lookup-info { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 16px; }
.fk-cluster-link { font-weight: 700; }
.fk-cluster-body h3 { margin: 4px 0 0; font-size: 16px; }
@media (max-width: 900px) {
    .fk-lookup-top { grid-template-columns: minmax(0, 1fr); }
}

/* Look Up Inventory's Pallet ID search (Matt 11/25/2026): the "Part only" box under the scan box */
.fk-app .fk-partonly { margin-top: 8px; font-size: 17px; }

/* Forklift > Pallet Tag Lookup (Forms/Forklift/frmPalletTagLookup): the tag preview on the left, the pallet's facts and history
   on the right. The preview is a look only (Matt 11/25/2026: no way to reprint a pallet tag): the tag is drawn smaller
   (--u, the tag's 1/100 inch, set on the sheet), every code is a REPRINT box, REPRINT is written across it, and it never prints. */
.fk-tag-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.fk-tag-left { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: auto; }
.fk-tag-right { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.fk-tag-note { margin: 0; display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--danger-text); }
.tag-preview { display: flex; justify-content: center; }
.tag-preview .print-page { --u: 0.0055in; box-shadow: 0 0 0 1px var(--border); }
.tag-preview.tag-preview-cluster .print-page { --u: 0.0045in; }
.tag-reprint-box { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border: calc(var(--u) * 3) dashed #000000;
                   font-family: Tahoma, Verdana, sans-serif; font-weight: bold; font-size: calc(var(--u) * 13); color: #000000; letter-spacing: .02em; }
.tag-reprint-box.tag-reprint-bars { flex: 1; font-size: calc(var(--u) * 46); white-space: nowrap; }
.tag-preview .tag-reprint-mark { z-index: 2; color: #9a9a9a; opacity: .45; transform: rotate(-30deg); pointer-events: none; }
.tag-preview-cluster .tag-reprint-mark { font-size: calc(var(--u) * 200); }
.fk-tag-id { margin: 0; font-size: 22px; }
.fk-tag-facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: 17px; }
.fk-tag-facts dt { color: var(--muted); }
.fk-tag-facts dd { margin: 0; font-weight: 600; }
.fk-tag-h { margin: 4px 0 0; font-size: 16px; }
@media print { .tag-preview { display: none !important; } }
@media (max-width: 1100px) {
    .fk-tag-cols { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
    /* the whole tag fits a phone's width (about 5.8in of tag at 0.0055in a unit is too wide for 390px) */
    .tag-preview .print-page, .tag-preview.tag-preview-cluster .print-page { --u: 0.0031in; }
}

/* The title bar's Tag Viewer (Matt, 11/25/2026; _AppHeader, dialog#tagViewer in _Layout, site.js "Tag Viewer"): a small pallet tag
   icon like the other title bar buttons. The pop-up is wide (the tag beside the facts) and its body is the one scroll box; the
   result is the Forklift Pallet Tag Lookup's (_TagViewerResult). */
.tag-viewer { width: min(1400px, calc(100vw - 24px)); }
.tag-viewer .modal-head h2 { margin: 0; font-size: 18px; }
.tag-viewer-body { max-height: calc(100vh - 140px); overflow: auto; display: flex; flex-direction: column; gap: 12px; --top-h: 0px; }
.tag-viewer-form { display: flex; flex-direction: column; gap: 6px; max-width: 560px; }
.tag-viewer-scan { display: flex; gap: 8px; }
.tag-viewer-scan .input { flex: 1 1 auto; min-width: 0; font-size: 18px; }
.tag-viewer-out { min-width: 0; }
.tag-viewer-out .muted { margin: 0; }
.tag-viewer-msg { margin: 0; }
.tag-viewer .fk-tag-cols { min-height: 0; }
.tag-viewer .fk-panel { padding: 10px 12px; }
.tag-viewer .fk-scroll { max-height: 46vh; }
@media screen and (max-width: 760px) {
    dialog.tag-viewer[open] { margin: auto 0 0 0; width: 100vw; max-width: 100vw; max-height: 90dvh; border-radius: 16px 16px 0 0; }
    .tag-viewer-body { max-height: calc(90dvh - 64px); }
    .tag-viewer .fk-scroll { max-height: none; }
}

/* Forklift > Clusters (Forms/Forklift/frmForkliftClusters) */
.fk-cluster-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fk-cluster-new { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.fk-cluster-new .sec-h { margin: 0; }
.fk-cluster-noprinter { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 17px; }
.fk-cluster-buttons { display: flex; flex-wrap: wrap; gap: 10px; }

/* Ship Trailer */
.fk-ship { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.fk-ship .fk-panel > .page-head { flex-wrap: nowrap; }
.fk-new { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.fk-new-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.fk-new-grid .field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fk-yn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.fk-yn { border: 0; padding: 0; margin: 0; min-width: 0; }
.fk-yn legend { padding: 0; margin-bottom: 4px; }
.fk-shipment { display: flex; flex-direction: column; gap: 6px; }
.fk-new:has(input[name="ForShipment"][value="Y"]:not(:checked)) .fk-shipment { display: none; }
.fk-scan-row3 { grid-template-columns: minmax(0, 1fr) auto auto; }
.fk-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fk-create { margin-top: auto; }
dialog.fk-pick { width: min(1100px, calc(100vw - 32px)); height: min(760px, calc(100dvh - 32px)); }
dialog.fk-pick[open] { display: flex; flex-direction: column; }
.fk-pick-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }

/* Load Trailer / Receive Transfer */
.fk-trailer-head { flex-wrap: nowrap; }
.fk-facts-inline { display: flex; gap: 6px 18px; flex-wrap: wrap; min-width: 0; }
.fk-facts-inline dd { font-size: 17px; }
.fk-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding: 8px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.fk-strip-pick { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 420px; }
.fk-strip-pick select { flex: 1 1 auto; min-width: 0; }
/* The load picker (VB lkpSelectedLoad): a button with the load open now; its table of the group's shipments is #fkLoads */
.fk-strip-pick:has(.fk-load-pick) { flex: 1 1 600px; }
.fk-load-pick { flex: 1 1 auto; min-width: 0; min-height: 44px; justify-content: flex-start; gap: 6px; font-size: 17px; overflow: hidden; white-space: nowrap; }
.fk-load-pick > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fk-load-pick-more { margin-left: auto; padding-left: 10px; flex: 0 0 auto; color: var(--link); font-weight: 600; }
#fkLoads { --top-h: 0px; max-height: calc(100vh - 24px); }   /* the grid's titles stick to the pop-up's top, not under the page's title bar */
#fkLoads .grid td { white-space: nowrap; padding-top: 8px; padding-bottom: 8px; vertical-align: middle; }
#fkLoads .grid td .btn { min-height: 40px; min-width: 84px; }
.fk-row-now td { background: var(--select-bg); color: var(--on-select); }
.fk-trailer-lists .grid td.fk-loc { font-weight: 700; }
/* Scan non-stop (site.js 10b): the line of scans waiting and the answers of the last ones, under the flash line */
.fk-queue { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 6px 18px; background: var(--panel); border-bottom: 1px solid var(--border); }
.fk-queue-head { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.fk-queue-head.bad strong { color: var(--danger-text); }
.fk-queue-head strong { white-space: nowrap; }
.fk-queue-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.fk-queue-list li { padding: 3px 10px; border-radius: 999px; font-family: var(--mono, monospace); font-size: 15px; border: 1px solid var(--border); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.fk-queue-list li.ok { background: color-mix(in srgb, var(--run) 16%, var(--panel)); }
.fk-queue-list li.err { background: color-mix(in srgb, var(--down) 16%, var(--panel)); color: var(--danger-text); max-width: 460px; }
.fk-queue-list li.wait { background: color-mix(in srgb, var(--wait) 18%, var(--panel)); }
@media screen and (max-width: 760px) {
    /* On a phone each row is a card (grid.js): colour the card, not each field on it */
    #fkLoads .grid tr.fk-row-now, #fkLoads .grid tr.fk-row-ok, #fkLoads .grid tr.fk-row-warn, #fkLoads .grid tr.fk-row-bad { background: var(--panel); }
    #fkLoads .grid tr.fk-row-now { box-shadow: inset 4px 0 0 var(--select-bg); }
    #fkLoads .grid tr.fk-row-ok { box-shadow: inset 4px 0 0 var(--run); }
    #fkLoads .grid tr.fk-row-warn { box-shadow: inset 4px 0 0 var(--wait); }
    #fkLoads .grid tr.fk-row-bad { box-shadow: inset 4px 0 0 var(--down); }
    #fkLoads .grid tr td { background: transparent; color: inherit; }
}
.fk-bar-line { display: flex; align-items: center; gap: 10px; flex: 1 1 260px; }
.fk-bar-line progress { flex: 1 1 auto; height: 18px; accent-color: var(--accent-dark); }
.fk-trailer-cols { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.fk-trailer-cols > .fk-panel:first-child { overflow: auto; }
.fk-trailer-lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 2fr) minmax(0, 3fr); }
.fk-trailer-lists .fk-list { display: flex; flex-direction: column; gap: 6px; min-height: 0; min-width: 0; }
.fk-trailer-lists .fk-list-needed { grid-column: 1 / -1; }
.fk-trailer-lists.no-available .fk-list-loaded { grid-column: 1 / -1; }
.fk-trailer-lists.no-needed { grid-template-rows: minmax(0, 1fr); }
.fk-trailer-lists .page-head { flex-wrap: nowrap; }
.fk-trailer-lists .grid td, .fk-trailer-lists .grid th { padding-top: 6px; padding-bottom: 6px; }
.fk-trailer-lists .grid td, .fk-ship .grid td, .fk-receive-pick .grid td { white-space: nowrap; }   /* one line per row: more rows fit, the box scrolls sideways */
.fk-trailer .fk-recent { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 1400px) {
    .fk-new-grid, .fk-yn-list { gap: 6px 10px; }
    .fk-app .seg-full button, .fk-app .seg-full label { min-height: 42px; font-size: 16px; }
    .fk-trailer-head .fk-title { font-size: 22px; }
    .fk-facts-inline dd { font-size: 15px; }
    .fk-trailer-lists .grid { font-size: 14px; }
}
@media (max-width: 900px) {
    .fk-trailer-head { flex-wrap: wrap; }
    .fk-trailer-lists { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
}

/* ==============================================================================   Production Summary (Forms/Reports/frmProductionSummary, Matt 11/1/2026)
   Every job running on the floor. Five count boxes, then one shared grid whose rows are tinted by pace (VB's green /
   yellow / red, softer). The grid is wider than the report area, so it scrolls sideways inside its own box (.grid-scroll)
   and never the whole page (Matt: "just only scroll the grid, not the whole webpage"). The box is as tall as the screen
   under the title bar and grid line, so the column titles stay on top inside it; the grid line (count, Excel) stays on the
   page's sticky place above it as usual.
   ===================================================================================== */
.prod-sum { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.prod-row { cursor: pointer; }
.prod-job-h { margin: 14px 0 6px; font-size: 1rem; }
.prod-job-h:first-of-type { margin-top: 0; }
.prod-refreshed b { color: var(--text); font-family: var(--mono); font-weight: 400; }
.prod-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.prod-grid .grid-scroll { overflow: auto; max-height: calc(100dvh - var(--top-h, 0px) - var(--grid-bar-h, 0px) - 12px); overscroll-behavior-x: contain; }
.prod-grid .grid { width: max-content; min-width: 100%; }
.prod-grid .grid th, .prod-grid .grid td { white-space: nowrap; padding-left: 9px; padding-right: 9px; }
.prod-grid .grid td { vertical-align: middle; }
.grid-wrap[data-grid].prod-grid thead th { top: 0; }                  /* sticky inside the box, not under the page's title bar */
.prod-grid .grid tr.pace-ok td { background: color-mix(in srgb, var(--run) 9%, var(--panel)); }
.prod-grid .grid tr.pace-soon td { background: color-mix(in srgb, var(--wait) 11%, var(--panel)); }
.prod-grid .grid tr.pace-late td { background: color-mix(in srgb, var(--down) 9%, var(--panel)); }
.prod-grid .grid tr td.grid-current { background: var(--current-bg); }
@media screen and (max-width: 1100px) {
    .prod-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 760px) {
    /* phones: the rows are cards (stack-on-phone) and the page scrolls as usual (Matt keeps cards on phones) */
    .prod-grid .grid-scroll { overflow: visible; max-height: none; }
    .prod-grid .grid { width: 100%; }
    .prod-grid .grid th, .prod-grid .grid td { white-space: normal; }
    .prod-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =======================================================================   HR screens (Forms/HR: People > Employees, Roles, Permissions, Assign roles & permissions; Matt 11/01/2026)
   The employee is its own page (two columns: the form, then vacation and absence points). The tick lists of roles and
   permissions (_TickList, wwwroot/js/hr.js): roles in columns, permissions in closed groups by the first part of the name
   (FloorApp, Reports, Maverik...), because there are 55 roles and over 400 permissions.
   ===================================================================================== */
.modal-wide { width: min(1180px, calc(100vw - 24px)); }
.hr-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; align-content: start; }
.hr-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
/* "Include temps" (Forms/Shared/_IncludeTemps): a small form that sits in a title row or a filter row */
.temps-filter { display: inline-flex; align-items: center; margin: 0; }
.hr-name { color: var(--link); font-weight: 600; }
.hr-name + .chip { margin-left: 8px; }
.hr-head-facts { font-size: 15px; align-items: center; }
.hr-panel-title { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.hr-employee { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.hr-employee-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 1.2fr); }
.hr-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.hr-form-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hr-pair { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 8px; }
.hr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hr-stats .stat { text-align: center; }
.hr-save-row { position: sticky; bottom: 0; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 30%); }
/* A box clicked or tabbed into scrolls clear of the sticky Save bar instead of sitting under it (Marcy 11/23/2026, Max under % on the Part screen) */
html:has(.hr-save-row:not([hidden])) { scroll-padding-bottom: 90px; }
.hr-add-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; }
.hr-add-row .field { flex: 1 1 360px; max-width: 620px; }
.hr-row-acts { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.hr-dialog-grid { max-height: min(560px, calc(100dvh - 260px)); overflow: auto; --top-h: 0px; }
.hr-dialog-grid thead th { top: 0; }
.hr-roles-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); }
.hr-roles-scroll { max-height: calc(100dvh - var(--top-h, 0px) - 120px); min-height: 360px; overflow: auto; --top-h: 0px; border-radius: var(--radius); }
.hr-roles-scroll .grid-wrap[data-grid] thead th { top: 0; }
.hr-sel td { background: var(--accent-soft) !important; }
.hr-assign-cols { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.hr-one-col { grid-template-columns: minmax(0, 1fr); }
.hr-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hr-pick .lookup, .hr-pick > select { flex: 1 1 320px; max-width: 520px; }
.hr-pick > .check-line { margin-left: 8px; }
.hr-add-person { margin-bottom: 10px; }
.hr-req { display: grid; }
.hr-req-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hr-req-row:last-child { border-bottom: 0; }
.hr-req-name { font-weight: 600; }
.hr-req-name a { color: var(--link); }
.hr-req-row .hint { margin: 2px 0 0; }

/* The tick lists */
.hr-ticks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hr-tick-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hr-tick-tools .input { flex: 1 1 260px; max-width: 380px; }
.hr-tick { padding: 5px 8px; border-radius: 8px; }
.hr-tick > span { min-width: 0; overflow-wrap: anywhere; }
.hr-tick.on { background: var(--accent-soft); font-weight: 600; }
.hr-tick.changed { outline: 2px dashed var(--warn-border); outline-offset: -2px; }
.hr-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px 14px; max-height: 430px; overflow: auto; padding: 4px;
              border: 1px solid var(--line); border-radius: 10px; }
.modal .hr-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hr-groups { border: 1px solid var(--line); border-radius: 10px; max-height: 560px; overflow: auto; }
.modal .hr-groups { max-height: min(430px, calc(100dvh - 330px)); }
.hr-group { border-bottom: 1px solid var(--line); }
.hr-group:last-child { border-bottom: 0; }
.hr-group > summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-weight: 600; list-style: none;
                      position: sticky; top: 0; background: var(--panel); z-index: 1; }
.hr-group > summary::-webkit-details-marker { display: none; }
.hr-group > summary .ic { color: var(--muted); transition: transform .15s; }
.hr-group:not([open]) > summary .ic { transform: rotate(-90deg); }
.hr-group-count { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 14px; }
.hr-group-count b { color: var(--text); }
.hr-group-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; padding: 2px 12px 10px 38px; }
.hr-group-items .hr-tick { font-size: 14px; }
.hr-tick-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hr-tick-foot .hint { margin: 0; }
.hr-changed { color: var(--text); font-weight: 600; }
@media screen and (max-width: 1500px) {
    .hr-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hr-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media screen and (max-width: 1100px) {
    .hr-employee-cols, .hr-roles-cols, .hr-assign-cols { grid-template-columns: minmax(0, 1fr); }
    .hr-roles-scroll { max-height: 420px; }
    .hr-columns, .modal .hr-columns, .hr-group-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 760px) {
    .hr-form, .hr-form-2, .hr-columns, .modal .hr-columns, .hr-group-items { grid-template-columns: minmax(0, 1fr); }
    .hr-group-items { padding-left: 12px; }
    .hr-roles-scroll, .hr-dialog-grid { max-height: none; overflow: visible; }
    .hr-req-row { grid-template-columns: minmax(0, 1fr); }
    /* long permission names (HumanResourcesTab.AssignRolesAndPermissions) wrap instead of pushing the page sideways */
    .hr-page .grid td, .hr-page .grid td .hr-name { overflow-wrap: anywhere; min-width: 0; }
}

/* Database > Customers (Forms/Database/frmCustomer): the Customer and Sales boxes side by side, contacts under them */
.cust-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.hr-form .cust-wide { grid-column: 1 / -1; }
.cust-form-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.cust-span-2 { grid-column: span 2; }
.cust-span-3 { grid-column: span 3; }
.cust-nowrap { white-space: nowrap; }
.cust-csz { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 8px; }
.cust-add-comment { display: grid; gap: 10px; }
.cust-comment-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.cust-attach { display: grid; gap: 4px; flex: 1 1 320px; max-width: 560px; }
.cust-wrap-text td { white-space: normal; }
.cust-text { white-space: pre-wrap !important; overflow-wrap: anywhere; min-width: 260px; }
.cust-text .chip { margin-left: 8px; }
.panel-section > .page-head { margin-bottom: 10px; }
@media screen and (max-width: 1100px) {
    .cust-cols { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
    .cust-form-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cust-span-3 { grid-column: span 2; }
    .cust-csz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cust-csz > :first-child { grid-column: 1 / -1; }
    .cust-text { min-width: 0; }
}

/* People > Time clock (Forms/HR/frmTimeClock): the scan box and result on the left, the notes after clocking out on the right */
.hr-clock-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.hr-pick .hr-clock-card { flex: 1 1 260px; max-width: 420px; }
.hr-clock-result { display: grid; gap: 8px; justify-items: start; }
.hr-clock-big { margin: 0; font-size: 22px; line-height: 1.35; overflow-wrap: anywhere; }
.hr-clock-add { display: grid; grid-template-columns: 150px 150px minmax(0, 1fr) auto; gap: 12px 16px; align-items: end; }
.hr-clock-add textarea { resize: vertical; min-height: 44px; }
.hr-clock-add > .btn { justify-self: start; }
.hr-clock-note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1500px) { .hr-clock-add { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hr-clock-note { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .hr-clock-cols { grid-template-columns: minmax(0, 1fr); } }
/* ==============================================================================================================   Shipping (Forms/Shipping): the trailer cards, Start a new trailer, Manage Trailer, Begin shipping, the BOL editor.
   ===================================================================================================================== */
.sh-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sh-stats .stat .v small { font-size: 15px; font-weight: 600; color: var(--muted); }
.sh-filters { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
.sh-filters.no-dates { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) auto; }
.sh-count { font-weight: 600; }
.sh-sort { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.sh-card { display: grid; gap: 8px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--text); text-decoration: none; min-width: 0; }
.sh-card:hover, .sh-card:focus-visible { border-color: var(--cyan); background: var(--hover-bg); }
.sh-card.group { background: var(--cyan-soft); border-color: color-mix(in srgb, var(--brk) 35%, var(--border)); }
.sh-card .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-card .id { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.sh-card .acct { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.sh-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 3px 10px; margin: 0; font-size: 14.5px; }
.sh-card dt { font-family: var(--label-font); font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.sh-card dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.sh-card .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 6px; }
.sh-card[hidden] { display: none; }
.modal-wide { width: min(1180px, calc(100vw - 24px)); }
.modal-mid { width: min(760px, calc(100vw - 24px)); }
.sh-dlg .modal-body { grid-template-columns: minmax(0, 1fr); max-height: calc(100vh - 190px); overflow: auto; }
.sh-dlg .grid-wrap { overflow-x: auto; }
.sh-yn { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sh-yn .seg { width: 100%; }
.sh-picked { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sh-pick-table td, .sh-pick-table th { white-space: nowrap; }
.sh-pick-table td.wrap { white-space: normal; min-width: 220px; }
.sh-pick-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent-ink); }
.sh-pick-table tr[hidden] { display: none; }
.sh-pick-find { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sh-pick-find .input { flex: 1 1 280px; max-width: 460px; }
.sh-pick-find .hint { margin: 0; }
.sh-info { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.sh-info > div { padding: 10px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.sh-info .k { font-family: var(--label-font); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.sh-info .v { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.sh-info .v.none { color: var(--wait); font-weight: 500; }
.sh-info .v.zero { color: var(--down); }
.sh-two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: start; }
.sh-two.sh-one { grid-template-columns: minmax(0, 1fr); }
.sh-back { display: inline-flex; align-items: center; gap: 4px; color: var(--link); text-decoration: none; font-weight: 600; }
.qty-ok { background: color-mix(in srgb, var(--run) 16%, transparent) !important; }
.qty-short { background: var(--qty-zero) !important; }
.qty-extra { background: var(--warn-bg) !important; }
.sh-check { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.sh-check input { width: 22px; height: 22px; accent-color: var(--accent-ink); }
.sh-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sh-photos [aria-disabled="true"] { opacity: .6; cursor: default; }
@media (max-width: 1400px) { .sh-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .sh-info { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px) {
    .sh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sh-filters, .sh-filters.no-dates { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .sh-filters .field:first-child { grid-column: 1 / -1; }
    .sh-yn { grid-template-columns: minmax(0, 1fr); }
    .sh-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sh-card .foot .when { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---- Give access (Admin > Give access, frmGiveAccess) and "Who can open this" (_AccessButton, _AccessWho, access.js) ---- */
.ga-box { display: grid; gap: 12px; max-width: 1000px; }
.ga-box.ga-check { max-width: none; }
.ga-box textarea { min-height: 120px; font-size: 18px; line-height: 1.5; resize: vertical; }
.ga-examples { color: var(--muted); font-size: 14px; }
.ga-examples i { color: var(--text); }
.ga-typed { margin: 0; font-size: 16px; color: var(--muted); }
.ga-perm { font-family: var(--mono); font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ga-who { display: grid; gap: 4px; min-width: 0; }
.ga-who small { color: var(--muted); }
.ga-who small.ga-note-warn, .ga-note-warn { color: var(--warn-text); }
.ga-pick { max-width: 380px; }
.ga-lines td { vertical-align: top; }
.ga-tick { width: 44px; }
.ga-tick input { width: 20px; height: 20px; }
.ga-warn { margin: 0; background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.ga-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* Give access chat (S_GiveAccessChat, 11/21/2026) */
.ga-chat { display: grid; gap: 12px; max-width: 1000px; margin-bottom: 16px; }
.ga-chat .hint { display: block; margin-top: 2px; }
.ga-convo { display: grid; gap: 8px; }
.ga-msg { white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px 12px; border-radius: 12px; max-width: 85%; font-size: 15px; line-height: 1.45; }
.ga-me { justify-self: end; background: var(--accent-soft); border: 1px solid var(--border); }
.ga-ai { justify-self: start; border: 1px solid var(--border); }
.ga-card { display: grid; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.ga-change { display: flex; gap: 10px; align-items: flex-start; }
.ga-change input[type=checkbox] { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.ga-change small { display: block; color: var(--muted); }
.ga-send { display: grid; gap: 8px; }
.ga-send textarea { min-height: 70px; font-size: 17px; line-height: 1.45; resize: vertical; }
.ga-old { margin-bottom: 16px; }
.ga-old > summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.acc-btn { flex: none; }
.acc-box .modal-head h2 { margin: 0; font-size: 20px; }
.acc-body { display: grid; gap: 12px; }
.acc-body > .hint { margin: 0; }
.acc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.acc-top .hint { margin: 0; }
.acc-msg { margin: 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--run) 14%, var(--panel)); }
.acc-add { display: grid; gap: 6px; }
.acc-add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.acc-sec { margin: 4px 0 -4px; font-size: 16px; }
.acc-list { display: grid; border: 1px solid var(--line); border-radius: 10px; }
.acc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); margin: 0; }
.acc-row:last-child, .acc-roles details:last-child { border-bottom: 0; }
.acc-row small { display: block; color: var(--muted); }
.acc-roles .acc-role { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; border-bottom: 1px solid var(--line); }
.acc-roles .acc-role:last-child { border-bottom: 0; }
.acc-roles .acc-role form { margin: 0; padding: 6px 12px 0 0; }
.acc-roles summary { cursor: pointer; padding: 9px 12px; }
.acc-roles .names { padding: 0 12px 10px 30px; color: var(--muted); font-size: 14px; }

/* ==============================================================================   Split screen and Pop out (Ken, 11/2/2026; split.js, frame.js)
   ===================================================================================== */
/* A side of a split screen, or a popped-out window: the screen only, no title bar or menus */
:root[data-bare] .top-bar, :root[data-bare] .device-bar, :root[data-bare="pane"] .chat-toast { display: none !important; }
:root[data-bare="pane"] .content { padding: 12px 14px 20px; }
/* An app's own sign-in in a split screen side (Matt, 11/20/2026): only the timecard. Microsoft's sign-in page won't open
   inside a frame, so its button would only show an error there */
:root[data-bare="pane"] .login-microsoft, :root[data-bare="pane"] .login-or, :root[data-bare="pane"] .login-microsoft-note { display: none !important; }
/* A screen shown in a pop-up on another screen (screen-popup.js, _ScreenPopup; Matt 11/20/2026): nearly the whole window,
   the screen in an <iframe> under the pop-up's bar. Inside, the screen's Back link and Cancel are left out (frame.js). */
dialog.modal.screen-pop { width: min(1500px, calc(100vw - 24px)); height: calc(100vh - 24px); max-height: calc(100vh - 24px); padding: 0; }
dialog.modal.screen-pop[open] { display: flex; flex-direction: column; min-height: 0; }
dialog.modal.screen-pop .modal-head { flex-wrap: wrap; }
dialog.modal.screen-pop .modal-head h2 { min-width: 0; overflow-wrap: anywhere; }
.screen-pop-frame { flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: var(--bg); }
/* Request driver signature on Shipping / Proofs of delivery (Kenia 11/25/2026): a smaller box, so it can be moved aside to see
   the trailers behind it (modal-drag.js) */
dialog.modal.screen-pop:is(#shDriverSigBox, #podDriverSigBox) { width: min(940px, calc(100vw - 24px)); height: min(820px, calc(100vh - 24px)); }
:root[data-in-popup] [data-hide-in-popup] { display: none !important; }
/* One Ask Maverik (Matt, 11/20/2026: "there are 3 ask maverik's when using split screen"): not for the page under a split, and
   in a frame only in the green side of a split (split.js data-pane-active), so never in a pop-up's frame either */
:root[data-split="on"] body > .order-chat, :root[data-bare="pane"]:not([data-pane-active="on"]) .order-chat { display: none !important; }
/* A tab with a split screen open: the page itself is hidden, the two sides fill the window under the menus */
:root[data-split="on"] body { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
:root[data-split="on"] body > main { display: none; }
.split { flex: 1; min-height: 0; display: flex; gap: 0; padding: 10px; }
.split.split-rows { flex-direction: column; }
.split-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; border: 2px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); overflow: hidden; }
.split-pane.is-active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.split-bar { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 6px 4px 14px; background: var(--panel); border-bottom: 1px solid var(--line); }
.split-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.split-here { display: none; flex: none; margin-left: 8px; padding: 2px 9px; border-radius: 10px; background: var(--accent); color: var(--on-accent, #15212b); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.split-pane.is-active .split-here { display: inline-block; }
.split-btn { width: 34px; height: 34px; flex: none; }
.split-frame { flex: 1; min-height: 0; width: 100%; border: 0; background: var(--bg); }
.split-drag { flex: 0 0 14px; display: flex; align-items: center; justify-content: center; cursor: col-resize; touch-action: none; }
.split-drag span { width: 5px; height: 56px; border-radius: 3px; background: var(--border); }
.split-drag:hover span, .split.is-dragging .split-drag span { background: var(--accent); }
.split-rows .split-drag { cursor: row-resize; }
.split-rows .split-drag span { width: 56px; height: 5px; }
.split.is-dragging .split-frame { pointer-events: none; }
.split.is-dragging { user-select: none; }
/* The title bar's buttons: Split screen / Close split screen, Top and bottom, Pop out */
.split-tab.is-on { color: var(--bar-text); }
/* Each menu row while split: a small button on the right to open it in the other side */
.split-other { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); }
.split-other:hover { background: var(--panel); color: var(--accent-ink); box-shadow: 0 0 0 1px var(--border); }
/* The box to pick the second screen */
.split-pick { width: min(560px, calc(100vw - 24px)); }
.split-pick .modal-head h2 { font-size: 19px; }
.split-list { display: grid; gap: 10px; max-height: min(60vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.split-group { display: grid; gap: 2px; }
.split-group h3 { margin: 2px 4px 2px; font-family: var(--label-font); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.split-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.split-item:hover, .split-item:focus-visible { background: var(--accent-soft); }
.split-item .ic { color: var(--muted); }
.split-item-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-item-where { margin-left: auto; flex: none; color: var(--muted); font-size: 13px; }
/* Computers only (Matt, 11/2/2026: no phones or tablets) */
@media screen and (max-width: 1000px), screen and (pointer: coarse) {
    .split-tab, .split-other { display: none !important; }
}
@media print { .split-bar, .split-drag { display: none; } }

/* Device setup (S_DeviceSetup, Matt 11/2/2026): the code page, the setup page and This device. Left-aligned boxes inside the
   centred sign-in panel; the kiosk questions only show when "Yes" is picked (no script: :has). */
.login.device-page { width: min(560px, 100%); }
.device-page .field, .device-how { text-align: left; }
.device-how { background: var(--head-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 6px; }
.device-how h2 { margin: 0; font-size: 15px; }
.device-how ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.device-how details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.yes-no { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.yes-no label { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; cursor: pointer; color: var(--text); }
.yes-no label:has(input:checked) { background: var(--select-bg); color: var(--on-select); border-color: transparent; }
.kiosk-only { display: none; }
.device-page:has(input[name="Kiosk"][value="true"]:checked) .kiosk-only { display: grid; }
.device-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; align-items: center; text-align: left; }
.device-facts dt { font-weight: 600; color: var(--muted); font-size: 14px; }
.device-facts dd { margin: 0; }
.stay-modal p { margin: 0; }

/* ---- Shipping paperwork print page (Forms/Shipping/frmShippingPrint) ---- */
.sh-print { padding-bottom: 96px; }
.sh-print-frame { display: block; width: 100%; height: calc(100vh - 230px); min-height: 480px; border: 1px solid var(--border); border-radius: 6px; background: #fff; }

/* ---- Begin Shipping steps (Forms/Shipping/_ShipSteps) ---- */
.sh-steps { border-color: var(--cyan); }
.sh-step-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.sh-narrow { max-width: 520px; }
.sh-type { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.sh-check input[type=radio] { width: 22px; height: 22px; accent-color: var(--accent-ink); }
.sh-seal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; max-width: 900px; }
.sh-coc { display: grid; gap: 5px; max-width: 900px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sh-coc label { font-weight: 600; }
.sh-kept { display: inline-flex; align-items: center; gap: 4px; color: var(--run); font-weight: 600; }
.sh-code { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: 0.3em; user-select: none; }
.sh-warn { display: flex; gap: 8px; align-items: flex-start; color: var(--down); font-weight: 600; margin: 0 0 12px; }
.sh-print-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.sh-copies { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.sh-copies .input { width: 90px; }
.sh-step-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) { .sh-seal { grid-template-columns: minmax(0, 1fr); } }

/* ---- Bill of lading editor (Forms/Shipping/frmBillOfLading) ---- */
.bol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.bol-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; }
.bol-box .sec-h { margin: 0; }
.bol-box .field .input + .input { margin-top: 6px; }
.bol-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; }
.bol-checks { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.bol-checks input[type=checkbox], .bol-lines .hm input { width: 22px; height: 22px; accent-color: var(--accent-ink); }
.bol-copies .input { width: 80px; }
.bol-lines-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 6px; }
.bol-lines { width: 100%; border-collapse: collapse; min-width: 900px; }
.bol-lines th { text-align: left; font-family: var(--label-font); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--border); background: var(--head-bg); }
.bol-lines td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.bol-lines th.n, .bol-lines td:nth-child(1), .bol-lines td:nth-child(5), .bol-lines td:nth-child(6), .bol-lines td:nth-child(7), .bol-lines td:nth-child(8) { width: 9%; }
.bol-lines th.um, .bol-lines td:nth-child(2) { width: 10%; }
.bol-lines th.hm, .bol-lines td.hm { width: 60px; text-align: center; }
.bol-lines .input { width: 100%; }
.bol-lines tfoot td { font-size: 16px; border-bottom: 0; }
.bol-line-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (max-width: 1400px) { .bol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .bol-grid, .bol-two { grid-template-columns: minmax(0, 1fr); } }

/* ==============================================================================================================   Inventory Inquiry and Inventory Section (Forms/Reports/frmInventoryInquiry, frmInventorySection; the tabs and grids use
   orders.css od-tabs / ot-grid). The Part Number and Description boxes side by side, the Under construction buttons under them.
   ===================================================================================================================== */
.ii-pick { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.ii-pick .ii-field { margin: 0; min-width: 0; flex: 0 1 360px; }
.ii-pick .ii-field + .ii-field { flex-basis: 560px; }
.ii-btns { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ii-uc .uc-tag, .art-uc .uc-tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px;
  background: color-mix(in srgb, var(--wait) 18%, var(--panel)); color: var(--wait); border: 1px solid color-mix(in srgb, var(--wait) 45%, var(--panel)); }
.ii-line { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.ii-link { color: var(--accent-ink, var(--accent)); text-decoration: underline; font-weight: 700; cursor: pointer;
  background: none; border: 0; padding: 0; font: inherit; font-weight: 700; }
.ii-sub-h { display: flex; align-items: center; gap: 10px; }
.ii-sub-h h3 { margin: 0; font-size: 16px; }
.ii-panel .grid tr[aria-current="true"] td { background: var(--accent-soft); }
/* Adjustment History: a clicked day's pallets to the right of the days, like the desktop; one under the other below 1100px */
.ii-adj-one { display: grid; grid-template-columns: minmax(0, 1fr); }
/* The day's title row sits above its pallets only, and the two lists start on the same line (Matt 11/4: "line it up") */
.ii-adj-cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 10px 16px; align-items: start; }
.ii-adj-cols > .grid-wrap { grid-column: 1; grid-row: 2; }
.ii-adj-day { display: contents; }
.ii-adj-day > .ii-sub-h { grid-column: 2; grid-row: 1; }
.ii-adj-day > .grid-wrap { grid-column: 2; grid-row: 2; min-width: 0; }
@media screen and (max-width: 1100px) {
  .ii-adj-cols { grid-template-columns: minmax(0, 1fr); }
  .ii-adj-cols > .grid-wrap, .ii-adj-day > .ii-sub-h, .ii-adj-day > .grid-wrap { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  .ii-pick .ii-field, .ii-pick .ii-field + .ii-field { flex: 1 1 100%; }
  .ii-panel .od-wrap-text .grid td.od-text, .ii-section .od-wrap-text .grid td.od-text { min-width: 0; max-width: none; }
}
@media print {
  .ii-pick .ii-btns, .od-checks button { display: none; }
}

/* Proof of delivery signing (sql/41, Matt 11/2/2026): Request driver signature, Proofs of delivery, the signing tablets
   (/Sign/{tablet}) and the sign link (/Sign/Pod/{token}). Colours only from the variables above (dark mode). */
.pod-page { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.pod-page h2 { margin: 0 0 10px; font-size: 18px; }
.pod-pick, .pod-send { display: grid; gap: 12px; }
.pod-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.pod-add .field { flex: 1 1 220px; max-width: 360px; }
.pod-remove { text-align: right; }
.pod-tablets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pod-tablet-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 12px 14px;
                   border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.pod-tablet-pick input { grid-row: span 2; width: 20px; height: 20px; accent-color: var(--accent-ink); }
.pod-tablet-pick .pod-tablet-name { font-weight: 700; font-size: 16px; }
.pod-tablet-pick:has(input:checked) { border-color: var(--accent-ink); background: var(--accent-soft); }
.pod-status { border-left: 6px solid var(--border); }
.pod-status.is-waiting { border-left-color: var(--wait); }
.pod-status.is-signed { border-left-color: var(--run); background: var(--accent-soft); }
.pod-status-head { display: flex; align-items: center; gap: 10px; }
.pod-status-head h2 { margin: 0; }
.pod-status.is-signed .pod-status-head { color: var(--accent-ink); }
.pod-status-text { margin: 8px 0 4px; font-size: 16px; }
.pod-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--wait); animation: pod-pulse 1.4s ease-in-out infinite; }
@keyframes pod-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .pod-dot { animation: none; } }
.pod-facts dl, .pod-facts-grid { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; margin: 0 0 12px; }
.pod-facts dt, .pod-facts-grid dt { font-weight: 600; color: var(--muted); }
.pod-facts dd, .pod-facts-grid dd { margin: 0; overflow-wrap: anywhere; }
.pod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pod-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pod-resend .input { width: auto; min-width: 180px; }
.pod-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.pod-detail { display: grid; gap: 16px; }
.pod-sig { display: grid; gap: 10px; border-top: 1px solid var(--border); padding-top: 14px; grid-template-columns: minmax(0, 1fr); }
.pod-sig-picture { background: #ffffff; border: 1px solid var(--border); border-radius: 10px; padding: 8px; max-width: 520px; }
.pod-sig-picture img { display: block; width: 100%; height: auto; }
.pod-settings { display: grid; gap: 22px; }
.pod-settings h3 { margin: 0 0 8px; font-size: 16px; }
.pod-emails { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.pod-emails li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; }
.pod-emails li span { overflow-wrap: anywhere; }

/* The tablet and the sign link: big, for a finger, on a Fire tablet or a phone */
.pod-tablet-page { max-width: 900px; margin: 0 auto; width: 100%; }
.pod-idle { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 60px 24px; }
.pod-idle h1 { margin: 0; font-size: 34px; }
.pod-idle p { margin: 0; font-size: 18px; color: var(--muted); }
.pod-idle > svg { width: 56px; height: 56px; color: var(--muted); }
.pod-idle-logo { width: 140px; height: auto; margin-bottom: 8px; }
.pod-thanks > svg { color: var(--accent-ink); }
.pod-sign { display: grid; gap: 16px; }
.pod-sign-head { display: flex; align-items: center; gap: 16px; }
.pod-sign-head img { width: 92px; height: auto; }
.pod-sign-head h1 { margin: 0; font-size: 26px; }
.pod-sign-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pod-sign-facts dt, .pod-sign-facts dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.pod-sign-facts dt { font-weight: 600; background: var(--head-bg); }
.pod-sign-facts dd { overflow-wrap: anywhere; font-size: 17px; }
.pod-sign-facts dt:last-of-type, .pod-sign-facts dd:last-of-type { border-bottom: 0; }
.pod-sign-name { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pod-sign-name .input-big { font-size: 22px; text-align: left; min-height: 54px; }
.pod-sigpad { height: 240px; }
.pod-submit { width: 100%; min-height: 64px; font-size: 22px; }
@media (max-width: 600px) {
    .pod-sign-facts { grid-template-columns: minmax(0, 1fr); }
    .pod-sign-facts dt { border-bottom: 0; padding-bottom: 2px; }
    .pod-sign-head img { width: 64px; }
    .pod-sigpad { height: 200px; }
    .pod-idle { padding: 36px 16px; }
}
/* The list has 11 columns: let the dates and lists wrap so it fits 1280 wide (a data-grid can't scroll sideways) */
.pod-list .grid th, .pod-list .grid td { white-space: normal; }
.pod-list .grid td.code { overflow-wrap: anywhere; }

/* ==============================================================================================================   The Claude connector for the network drives: Connect Claude (Forms/Claude/frmClaudeConnect, the sign-in Claude opens)
   and Admin > Claude file log (Forms/Admin/frmClaudeFileLog)
   ===================================================================================================================== */
.claude-connect { text-align: left; }
.claude-connect h1, .claude-connect .sub { text-align: center; }
.claude-connect-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.claude-how p { margin: 0 0 8px; }
.claude-address { overflow-wrap: anywhere; user-select: all; }
/* 11 columns: the paths and details wrap so the grid fits 1280 wide */
.grid td.claude-path { overflow-wrap: anywhere; min-width: 160px; }
[data-grid="Claude file log"] .grid th, [data-grid="Claude file log"] .grid td,
[data-grid="Registro de archivos de Claude"] .grid th, [data-grid="Registro de archivos de Claude"] .grid td { white-space: normal; }

/* ==============================================================================================================   Pallet Tag History report (Forms/Reports/frmPalletTagHistory; Jose, 11/3/2026). Print Report prints only the open tab's
   grid, on letter landscape, with one header line (date, report, tab, pallet), like the desktop's Print Report printed
   only its grid. Everything that is not the print area (.pth-print), inside it or around it is hidden when printing.
   Printing is always black on white (rule 15), so the fixed colours below are only for paper.
   ===================================================================================================================== */
.pth-print-head { display: none; }
@page pth { size: letter landscape; margin: 0.4in 0.4in 0.5in; @bottom-right { content: counter(page) " / " counter(pages); font: 9pt sans-serif; } }
@media print {
    body:has(.pth-print) :not(:has(.pth-print)):not(.pth-print):not(.pth-print *) { display: none !important; }
    body:has(.pth-print), body:has(.pth-print) :has(.pth-print) { display: block !important; padding: 0 !important; margin: 0 !important;
        border: 0 !important; box-shadow: none !important; background: #ffffff !important; overflow: visible !important; max-width: none !important; }
    .pth-print { page: pth; color: #000000; }
    .pth-print .grid-bar, .pth-print .grid-find, .pth-print .grid-foot, .pth-print .report-how { display: none !important; }
    .pth-print-head { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 8px; font-size: 10pt; }
    .pth-print-head b { font-size: 12pt; }
    .pth-print .grid-wrap, .pth-print .grid-x { overflow: visible !important; max-height: none !important; border: 0 !important; box-shadow: none !important; }
    .pth-print .grid { width: 100%; border-collapse: collapse; font-size: 8.5pt; color: #000000; }
    .pth-print .grid th, .pth-print .grid td { position: static !important; padding: 3px 5px; border: 1px solid #999999;
        background: #ffffff !important; color: #000000 !important; white-space: normal; }
    .pth-print .grid thead { display: table-header-group; }   /* the column titles on every page */
    .pth-print .grid tr { break-inside: avoid; }
    .pth-print .grid a, .pth-print .grid td, .pth-print .grid td * { color: #000000 !important; text-decoration: none !important; }
    .pth-print .grid tbody tr:last-child td { border-bottom: 1px solid #999999; }
    .pth-print .grid th { font-weight: 700; text-align: left; }
    /* the column title is the grid's sort button (grid.js): print it as plain text; the funnel is left out */
    .pth-print .grid th .grid-sort { all: unset; font: inherit; color: #000000; }
    .pth-print .grid th .grid-funnel { display: none !important; }
}

/* ---- Database > Email lists (Forms/Database/frmEmailLists) ---- */
/* A list nobody who still works here is on (its email goes to nobody), and a person on a list who left: red (Matt, 11/4/2026) */
.el-empty td { background: var(--danger-bg) !important; }
.el-empty td, .el-empty td .hr-name { color: var(--danger-text); }
/* the "how many people still work here" box next to each list */
.el-count { display: inline-block; min-width: 2.2em; padding: 1px 8px; border-radius: 999px; text-align: center;
    background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.el-empty .el-count { background: var(--panel); color: var(--danger-text); border: 1px solid var(--danger-border); }
.el-warn { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--danger-border);
    background: var(--danger-bg); color: var(--danger-text); font-weight: 600; }
.el-add { margin: 0 0 12px; }
/* ---- Database > Vendors (Forms/Database) ---- */
.vendor-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 12px; }
.vendor-page .facts { margin: 6px 0 14px; }
.vendor-details { max-width: 1000px; margin-bottom: 14px; }
.vendor-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 16px; }
.vendor-form-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vendor-form .span-2 { grid-column: span 2; }
.vendor-check { min-height: 44px; display: flex; align-items: center; }
.vendor-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 22px; }
.vendor-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 24px; margin-bottom: 12px; }
.vendor-link-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 10px; flex: 1 1 420px; min-width: 0; }
.vendor-link-form label { flex-basis: 100%; font-weight: 600; }
.vendor-link-form select, .vendor-link-form .lookup { flex: 1 1 360px; min-width: 0; max-width: 720px; }
@media screen and (max-width: 700px) {
    .vendor-form, .vendor-form-2 { grid-template-columns: minmax(0, 1fr); }
    .vendor-form .span-2 { grid-column: auto; }
    .vendor-checks { padding-top: 0; }
}

/* ==============================================================================================================   Direct invoice (Forms/Purchasing/frmDirectInvoice): general information | billing + shipping, then the lines
   ===================================================================================================================== */
.di-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.di-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.di-addr-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.di-ship-h { margin-top: 10px; }
.di-pick-row { display: flex; gap: 8px; align-items: center; }
.di-pick-row > :first-child { flex: 1; min-width: 0; }
.di-csz { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.di-general textarea { resize: vertical; }
.di-items.move-steps > .di-add-row { max-width: none; }
.di-add-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; }
.di-add-row .di-f-item { flex: 1 1 200px; }
.di-add-row .di-f-desc { flex: 3 1 300px; }
.di-add-row .di-f-num { flex: 0 1 140px; }
.di-add-row .di-f-uom { flex: 0 1 90px; }
.di-add-row .di-f-gl { flex: 1 1 200px; }
.di-add { min-height: 42px; }
.di-totals { justify-content: flex-end; font-size: 15px; }
.di-items.move-steps > .di-totals, .di-items.move-steps > .di-buttons { max-width: none; }
.di-buttons { display: flex; gap: 12px; justify-content: flex-end; }
.di-generate { min-width: 260px; }
.di-made { display: flex; flex-wrap: wrap; gap: 10px; }
.di-made p { flex-basis: 100%; margin: 0; }
.di-bad { color: var(--down); }
@media screen and (max-width: 1100px) { .di-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .di-csz { grid-template-columns: minmax(0, 1fr); }
    .di-add-row .field, .di-add { flex-basis: 100%; }
    .di-buttons { flex-direction: column-reverse; }
    .di-generate { min-width: 0; }
}
/* Direct Invoice Report: the Show deleted box sits on the line with the dates; a deleted invoice is greyed */
.report-filters .direct-invoice-deleted { min-height: 42px; }
.direct-invoice-grid tr.row-deleted td { color: var(--muted); }
/* the item numbers and descriptions of an invoice with many lines wrap in a column of their own width; the rest stay on one line */
.ot-grid .direct-invoice-grid td.di-wrap { white-space: normal; min-width: 160px; max-width: 320px; }
/* ---- Orders > External / Internal order (frmExternalOrder, frmInternalOrder) ---- */
.di-items.move-steps > .oe-addons, .di-items.move-steps > .oe-addons-h { max-width: none; }
.oe-radios { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; min-height: 42px; white-space: nowrap; }
.oe-add .oe-f-part { flex: 2 1 240px; }
.oe-add .oe-f-eqp { flex: 1 1 160px; }
.oe-add .oe-f-son { flex: 1 1 160px; }
.oe-add .oe-f-ticket { flex: 0 0 auto; }
.oe-add .oe-f-freight { flex: 0 1 150px; }
.oe-addons-h { margin-top: 6px; }
.oe-addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 16px; }
.oe-addon { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 6px 8px; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.oe-addon .check-line { grid-column: 1 / -1; }
.oe-warnings { display: grid; gap: 8px; border-left-color: var(--down); }
.oe-warnings ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.io-missing { margin-top: 4px !important; list-style: circle; gap: 2px !important; }
/* Orders > Combo order: the hint under "Combo parts" sits right under its title */
.co-hint { margin: -6px 0 10px; }
.oe-made { width: 100%; }
/* Orders > Bulk orders from Excel (frmBulkOrderEntry): the three numbered steps, then the rows */
.bo-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bo-step { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.bo-step .sec-h { margin-top: 2px; }
.bo-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
          background: var(--accent-soft); color: var(--accent-ink); }
.bo-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.bo-upload .field { flex: 1 1 220px; min-width: 0; margin: 0; }
.bo-ok { color: var(--accent-ink); font-weight: 600; }
.bo-buttons { margin-top: 14px; }
@media (max-width: 900px) { .bo-steps { grid-template-columns: minmax(0, 1fr); } }
/* Orders > Internal order (frmInternalOrder): the boxes in three columns, the BOM level before each part */
.io-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 20px; }
.io-buttons { justify-content: flex-end; }
.io-lvl { display: inline-block; min-width: 1.6em; margin-right: 6px; padding: 0 4px; border-radius: 4px; text-align: center;
          background: var(--bg); color: var(--muted); font-size: .85em; }
.io-remaining { max-width: 120px; }
.io-prod { color: var(--accent-ink); font-weight: 600; }
.io-po { color: var(--cyan-ink); font-weight: 600; }
@media (max-width: 900px) { .io-fields { grid-template-columns: minmax(0, 1fr); } }
/* Mercury VDR: the description, QPI comment and parts-needed notes (often several lines long) wrap in a column of their own width */
.ot-grid .vdr-grid td.vdr-wrap { white-space: normal; min-width: 160px; max-width: 320px; }
/* Meeting Recordings: the meeting picker is wider (long titles); what was said wraps in a wide column */
.report-filters .mr-meeting { width: 420px; }
.ot-grid .mr-grid td.mr-wrap { white-space: normal; min-width: 320px; max-width: 760px; }
/* Open Orders Report: the customer box is wider (long customer names) */
.report-filters .oo-customer { width: 420px; }
/* Shipment ID Report: the customer box is wider (long customer names); the two Hide boxes one under the other */
.report-filters .si-customer { width: 420px; }
.report-filters .si-checks { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
/* Part Pallet Lookup (Forms/Reports/frmPartPalletLookup): the part box is wide enough for the number and description */
.report-filters .ppl-part { width: 560px; }
.ppl-count { margin: 0 0 8px; }
.ppl-cluster-link { font-weight: 700; }
/* Link RFID to Pallet: the green / red line after each scan (the forklift screens' .fk-flash) sits above the form */
.rfid-flash { border-radius: 9px; margin: 0 0 12px; }
/* It sits in #fkApp for the forklift screens' background send and sounds, which fixes the page to the screen's height:
   its own content scrolls if a short screen (a phone sideways) can't show it all */
.rfid-app { overflow-y: auto; }
/* Annual Usage: the part box is wider; Delete sits in its own small form; the description wraps; the paste box is wide */
.au-parts .au-part { width: 420px; }
.au-remove { margin: 0; }
.ot-grid .grid td.au-wrap { white-space: normal; min-width: 200px; max-width: 360px; }
/* Annual Usage's Part Number List: a small spreadsheet like the desktop's (column letters, row numbers, gridlines) */
.au-paste-modal { width: min(720px, calc(100vw - 32px)); }
.au-sheet-how { margin: 0 0 8px; }
.au-sheet-wrap { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.au-sheet { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 14px; background: var(--panel); table-layout: fixed; }
.au-sheet th { position: sticky; top: 0; z-index: 1; background: var(--head-bg); color: var(--muted); font-weight: 600; border: 1px solid var(--line); padding: 3px 6px; text-align: center; }
.au-sheet th:nth-child(2) { width: 38%; }
/* the two header rows stay at the top while the sheet scrolls: the names row, then the letters under it */
.au-sheet .au-sheet-names th { height: 28px; }
.au-sheet .au-sheet-letters th { top: 28px; }
.au-sheet .au-col-name { color: var(--text); text-align: left; font-family: var(--font); font-size: 14px; }
.au-sheet td { border: 1px solid var(--line); padding: 0; height: 28px; }
.au-sheet .rn { background: var(--head-bg); color: var(--muted); text-align: center; width: 44px; font-size: 12px; }
.au-cell { width: 100%; min-width: 0; height: 28px; border: 0; padding: 0 6px; background: transparent; color: var(--text); font: inherit; }
.au-cell:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Item Warehouse Search (frmItemWarehouseSearch): the part box is wide like Annual Usage's; the saved-list row and Get Inventory
   Counts sit under the Add row; Total Available is bold on light green (VB: bold on beige); a component's line is a little
   lighter; the pop-up's facts and its Search these parts button */
.iws-parts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.iws-parts .iws-part { width: 420px; max-width: 100%; }
.iws-parts .iws-saved-pick { width: 340px; max-width: 100%; }
.iws-parts form { margin: 0; }
.ot-grid .grid td.iws-total { font-weight: 700; background: var(--accent-soft); }
.iws-grid tr.iws-component td.code { color: var(--muted); }
.iws-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 0 0 12px; }
.iws-facts dt { color: var(--muted); }
.iws-facts dd { margin: 0; }
.iws-pop-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; }
@media (max-width: 760px) {
    .iws-parts .iws-part, .iws-parts .iws-saved-pick { width: 100%; }
}
/* Forklift > Saturday Cleanup: the pallet's reason, big, green (Keep) or red (deal with it), English then Spanish */
.fk-sat-reason { margin-top: 18px; padding: 14px 18px; border-radius: 12px; border: 2px solid var(--run); background: var(--panel); }
.fk-sat-reason.act { border-color: var(--down); }
.fk-sat-reason p { margin: 0; }
.fk-sat-pallet { color: var(--muted); margin-bottom: 6px !important; }
.fk-sat-line { font-size: 26px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.fk-sat-reason.keep .fk-sat-line { color: var(--accent-ink); }
.fk-sat-reason.act .fk-sat-line { color: var(--danger-text); }

/* ==============================================================================   Database > Lookup Tables (Forms/Database/frmLookupTables): the lists on the left (their own scroll, like People > Roles),
   the picked list's values on the right. Inactive values (Show inactive) are greyed.
   ===================================================================================== */
/* compact (Matt 11/4): a narrow list on the left, and each value on one short line with small buttons, so a long list needs little scrolling */
.lookup-cols { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
.lookup-scroll { max-height: calc(100dvh - var(--top-h, 0px) - 120px); min-height: 360px; overflow: auto; --top-h: 0px; border-radius: var(--radius); }
.lookup-scroll .grid-wrap[data-grid] thead th { top: 0; }
.lookup-values { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.lookup-head { flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.lookup-off td { color: var(--muted); }
.lookup-values td.row-acts { white-space: nowrap; width: 1%; }
.lookup-values td.row-acts .hr-row-acts { flex-wrap: nowrap; }
.lookup-values td.row-acts .btn-small { min-height: 28px; padding: 1px 8px; font-size: 13px; gap: 4px; }
.lookup-values td.row-acts .btn-small svg { width: 14px; height: 14px; }
.lookup-head .btn-small { min-height: 32px; padding: 2px 10px; }
@media (min-width: 761px) {
    .lookup-page .grid td { padding-top: 5px; padding-bottom: 5px; vertical-align: middle; }
    .lookup-values td.main { white-space: nowrap; }
}
/* 1280 wide (1920 at 150%): a narrower list, and a long value or a name wraps inside its cell so the buttons still fit on the row's one line */
@media (min-width: 761px) and (max-width: 1500px) {
    .lookup-cols { grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); }
    .lookup-page .lookup-values .grid td, .lookup-page .lookup-values .grid th { padding-left: 8px; padding-right: 8px; }
    .lookup-values td.main, .lookup-who { white-space: normal; }
}
.lookup-who { white-space: nowrap; }
.lookup-when { color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 1100px) {
    .lookup-cols { grid-template-columns: minmax(0, 1fr); }
    .lookup-scroll { max-height: 420px; }
}
@media (max-width: 760px) {
    .lookup-scroll { max-height: none; overflow: visible; }
    .lookup-values td.row-acts { white-space: normal; width: auto; }
    .lookup-values td.row-acts .hr-row-acts { flex-wrap: wrap; }
    .lookup-page .grid td { overflow-wrap: anywhere; min-width: 0; }
}

/* ---- Receiving (Forms/Shipping/frmReceiving, frmKohlerSheet; Matt 11/4/2026) ---- */
.rv-screen .g2 { align-items: start; }
.rv-steps { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.rv-steps span { flex: 1; padding: 10px 14px; font-weight: 600; color: var(--muted); border-right: 1px solid var(--border); }
.rv-steps span:last-child { border-right: 0; }
.rv-steps span[aria-current] { background: var(--accent-soft); color: var(--text); }
.rv-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); margin-right: 8px; }
.rv-steps span[aria-current] b { background: var(--accent); color: var(--on-accent); }
.rv-steps span.done b { background: var(--run); color: #ffffff; }
.rv-id { font-family: var(--mono, monospace); font-size: 15px; color: var(--muted); }
.rv-id b { color: var(--text); }
.rv-h2 { margin: 0; font-size: 18px; }
.rv-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rv-foot .spacer { flex: 1; }
.rv-g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rv-docs { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rv-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rv-err { color: var(--down); font-weight: 600; font-size: 14px; margin: 0; }
.rv-under { margin-top: 4px; }
.rv-m0 { margin: 0; }
.rv-big { font-size: 22px; font-weight: 700; margin: 0; }
.rv-buttons { flex-wrap: wrap; gap: 8px; }
.input.bad { border-color: var(--down); box-shadow: 0 0 0 2px color-mix(in srgb, var(--down) 25%, transparent); }
.rv-code { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.rv-code-show { font: 700 34px/1 var(--mono, monospace); letter-spacing: .25em; padding: 10px 18px; border: 2px dashed var(--border); border-radius: var(--radius); user-select: none; }
.rv-arrow { font-size: 22px; }
.rv-code-input { width: 230px; letter-spacing: .2em; text-transform: uppercase; }
.rv-mult { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--wait) 16%, var(--panel)); font-weight: 700; font-size: 20px; }
.rv-done { border-left: 4px solid var(--run); }
.grid tr.rv-linked td { background: color-mix(in srgb, var(--run) 10%, var(--panel)); }
/* Receiving: the Edit pop-up of a part line already added (Matt 11/13/2026) */
#rvEdit.modal { width: min(760px, calc(100vw - 24px)); }
#rvEdit .modal-body { grid-template-columns: minmax(0, 1fr); max-height: min(70vh, calc(100dvh - 190px)); overflow-y: auto; }
#rvEdit .field, #rvEdit .g2 > * { min-width: 0; }
#rvEdit .input { width: 100%; min-width: 0; }
.rv-note { margin: 0; padding: 10px 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--wait) 14%, var(--panel)); font-size: 14px; line-height: 1.4; }
.rv-takeoff { border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px 10px; margin: 0; min-width: 0; }
.rv-takeoff legend { font-weight: 600; padding: 0 4px; }
.rv-takeoff-list { display: flex; flex-wrap: wrap; gap: 6px 18px; }
/* ---- Link vendor pallets (Forms/Shipping/frmVendorPalletLink; Matt 11/12/2026) ---- */
.vpl-open { font-weight: 600; }
.vpl-count { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
/* The scan boxes need less room than the list of receipts / pallets */
.vpl-screen .screen-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@media screen and (max-width: 1100px) { .vpl-screen .screen-cols { grid-template-columns: minmax(0, 1fr); } }
@media screen and (max-width: 1100px) { .rv-g3 { grid-template-columns: minmax(0, 1fr); } }
/* The Kohler sheet: the VB report's 800 x 1050 area on a letter page */
.kh-sheet { position: relative; width: calc(var(--u) * 790); height: calc(var(--u) * 1050); }
.kh-sheet .t { white-space: nowrap; }
.kh-sheet .t.kh-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.kh-line { border-bottom: calc(var(--u) * 2) solid #000000; }
.kh-reg { font-size: 40%; }
.kh-box { display: inline-grid; place-items: center; width: calc(var(--u) * 30); height: calc(var(--u) * 30); border: calc(var(--u) * 2) solid #000000; margin-right: calc(var(--u) * 8); font-size: calc(var(--u) * 24); }
.kh-notes { padding-bottom: 0; }
.rv-screen .grid td.code, .rv-screen .grid td.main { white-space: nowrap; }

/* ==============================================================================   Database > Tooling (Forms/Database/frmTooling, frmToolingDie, Matt 11/4/2026)
   The cutting die grid has the desktop's 12 columns, wider than a 1280 screen: it scrolls sideways inside its own box
   (like Production Summary, Matt: "just only scroll the grid, not the whole webpage"); the column titles stay on top
   inside it. The die page is the Customer page's layout: two boxes side by side, Save under them.
   ===================================================================================== */
.tool-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.tool-page > .page-head, .tool-page > .back, .tool-page > .facts { margin-bottom: 0; }
.tool-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.tool-grid .grid-scroll { overflow: auto; max-height: calc(100dvh - var(--top-h, 0px) - var(--grid-bar-h, 0px) - 12px); overscroll-behavior-x: contain; }
.tool-grid .grid { width: max-content; min-width: 100%; }
.tool-grid .grid th, .tool-grid .grid td { white-space: nowrap; }
.grid-wrap[data-grid].tool-grid thead th { top: 0; }
.tool-grid .grid td.tool-notes { white-space: normal; min-width: 220px; max-width: 420px; }
.modal .grid-wrap.tool-log { --top-h: 0px; }   /* in the change log pop-up the grid's titles stick to the top of the box, not under the page title bar */
.tool-log td.tool-notes { white-space: normal; overflow-wrap: anywhere; max-width: 360px; }
.tool-cols { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.hr-form .tool-wide { grid-column: 1 / -1; }
.tool-owner { display: flex; flex-wrap: wrap; gap: 8px 22px; min-height: 42px; align-items: center; }
.tool-actions { display: flex; gap: 8px; margin-top: 12px; }
.tool-files { display: grid; gap: 10px; }
.tool-files-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tool-files-head .code { font-family: var(--mono); font-weight: 600; overflow-wrap: anywhere; }
.tool-files .grid a.hr-name .ic { margin-right: 4px; vertical-align: -3px; }
.tool-problem { color: var(--down); }
.tool-used-note { margin: 0 0 10px; }
.inline-form { display: inline; margin: 0; }
@media screen and (max-width: 1100px) {
    .tool-cols { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
    /* phones: the rows are cards (stack-on-phone) and the page scrolls as usual (Matt keeps cards on phones) */
    .tool-grid .grid-scroll { overflow: visible; max-height: none; }
    .tool-grid .grid { width: 100%; }
    .tool-grid .grid th, .tool-grid .grid td, .tool-grid .grid td.tool-notes { white-space: normal; max-width: none; min-width: 0; }
}

/* ==============================================================================   Sales > Estimates (Forms/Sales/frmEstimates, frmEstimate, Matt 11/6/2026)
   The estimate is the desktop's three panels: details and piece counts on the left, the routing steps on the right.
   ===================================================================================== */
.est-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.est-page > .page-head, .est-page > .back, .est-page > .facts, .est-page > .hint { margin-bottom: 0; }
.est-rev { color: var(--muted); font-weight: 600; }
.est-banner { margin: 0; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--danger-border); background: var(--danger-bg); color: var(--danger-text); font-weight: 600; }
.est-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.est-left { display: grid; gap: 12px; min-width: 0; }
.hr-form .est-wide { grid-column: 1 / -1; }
.est-total { min-height: 42px; display: flex; align-items: center; font-weight: 700; font-size: 18px; }
.est-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 14px; }
.est-counts .field:first-child { grid-column: 1 / -1; }
.est-moq { display: flex; gap: 8px; }
.est-moq .input { flex: 1; min-width: 0; }
.est-moq .input[readonly] { background: var(--head-bg); color: var(--muted); }
.est-steps .grid td { vertical-align: middle; }
.est-step-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.est-step { margin: 0; }
.est-steps tr.est-on td.main { font-weight: 700; }
.est-step-off { color: var(--muted); padding-left: 30px; }
.est-steps td.est-setup { width: 1%; white-space: nowrap; text-align: right; }
.est-steps td.est-setup .btn { min-height: 34px; padding: 4px 12px; font-size: 14px; }
.est-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* "Is this estimate completed?" No / Yes switch (VB toggleComplete), at the start of the facts under the title */
.est-complete { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.est-complete .inline-form { display: inline-flex; margin: 0; }
.est-switch { position: relative; display: inline-flex; align-items: center; width: 84px; height: 30px; padding: 0 10px 0 36px; border: 1px solid var(--border-hover); border-radius: 999px; background: var(--panel); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.est-switch-knob { position: absolute; left: 4px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--muted); transition: left .15s ease; }
.est-switch[aria-checked="true"] { padding: 0 36px 0 12px; background: var(--accent); border-color: var(--accent-dark); color: var(--on-accent, #15212b); }
.est-switch[aria-checked="true"] .est-switch-knob { left: calc(100% - 26px); background: var(--panel); }
.est-switch:hover:not(:disabled) { border-color: var(--cyan); }
.est-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.est-switch:disabled { opacity: .55; cursor: not-allowed; }
.est-default { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.est-sub { margin: 18px 0 8px; }
.est-unit { display: flex; align-items: center; gap: 6px; }
.est-unit .input { flex: 1; min-width: 0; }
.est-yes { min-height: 42px; margin-top: 18px; }
.est-levels .input.est-num { min-width: 110px; }
.est-pantone { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.est-pantone-side { display: grid; gap: 8px; min-width: 0; }
.est-pantone-side h4 { margin: 0; }
.est-pantone-row { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 8px; margin: 0; }
.est-wrap { white-space: normal; overflow-wrap: anywhere; max-width: 360px; }
.modal .grid-wrap.est-log { --top-h: 0px; }
.hr-form-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.est-has-notes { background: color-mix(in srgb, var(--run) 18%, var(--panel)); border-color: var(--run); }
.est-note-add { display: flex; gap: 8px; align-items: center; margin: 4px 0 12px; }
.est-note-text { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 240px; }
.est-seq { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.est-seq-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.est-seq-row.est-seq-moved { outline: 2px solid var(--accent); }
.est-seq-num { font-weight: 700; min-width: 2ch; text-align: right; }
.est-file-add { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 700px) { .est-file-add { grid-template-columns: minmax(0, 1fr); } }
.bom-finished { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bom-indent { display: inline-flex; align-items: center; gap: 6px; padding-left: calc(var(--bom-level, 0) * 22px); }
.bom-tree tr.bom-step td.main, .bom-tree tr.bom-top td.main { font-weight: 600; }
.bom-tree tr.bom-skipped td { color: var(--muted); }
.bom-tree tr.bom-skipped .bom-step-name { text-decoration: line-through; }
.bom-dot { color: var(--muted); }
.bom-actions { white-space: nowrap; text-align: right; }
.bom-actions .btn + .btn { margin-left: 4px; }
.bom-final { max-width: 760px; display: grid; gap: 12px; }
.bom-final .bom-actions { display: flex; gap: 8px; align-items: center; }
.est-missing { margin: 8px 0; padding-left: 20px; display: grid; gap: 4px; }
.est-pricelist summary { cursor: pointer; font-weight: 600; margin: 4px 0; }
.est-price .grid td.num, .est-price .grid th.num { text-align: right; white-space: nowrap; }
.est-price .grid tr.est-qty th { font-weight: 600; background: var(--bg); }
.est-price .grid tr.est-total-row td, .grid tr.est-total-row td { font-weight: 700; border-top: 2px solid var(--border); }
.est-price .grid tr.est-gap td { padding: 4px; background: transparent; }
.est-price .grid tr.est-on td.main { font-weight: 600; }
@media screen and (max-width: 1100px) {
    .est-cols { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
    .est-steps td.est-setup { width: auto; text-align: left; }
    .est-step-off { padding-left: 0; }
    .est-pantone { grid-template-columns: minmax(0, 1fr); }
    .hr-form-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Database > Carriers (Forms/Database/frmCarriers) ---- */
.carrier-inactive { display: inline-flex; align-items: center; }
.carrier-off td { color: var(--muted); }
.carrier-grid td.carrier-acts { white-space: nowrap; width: 1%; text-align: right; }
.carrier-grid td.carrier-acts form.inline { display: inline; margin-left: 4px; }
.carrier-grid td.carrier-acts .btn + .btn { margin-left: 4px; }
.carrier-grid .btn-small { min-height: 34px; padding: 4px 10px; font-size: 14px; }
.carrier-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#carEdit .input[readonly] { background: var(--head-bg); color: var(--muted); }
.carrier-lock { display: flex; align-items: center; gap: 6px; margin: 0; }
.carrier-lock .ic { width: 14px; height: 14px; flex: none; }
.carrier-warn { margin: 0; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--danger-border); background: var(--danger-bg); color: var(--danger-text); line-height: 1.4; }
@media (max-width: 760px) {
    .carrier-grid td.carrier-acts { white-space: normal; width: auto; text-align: left; display: flex; flex-wrap: wrap; gap: 6px; }
    .carrier-grid td.carrier-acts form.inline { margin-left: 0; }
    .carrier-grid td.carrier-acts .btn + .btn { margin-left: 0; }
    .carrier-two { grid-template-columns: minmax(0, 1fr); }
    .carrier-page .grid td { overflow-wrap: anywhere; min-width: 0; }
}

/* ==============================================================================================================   3M Combined Forecast (Forms/Reports/frm3MCombinedForecast; Jose, 11/3/2026). The desktop screen's layout: the check boxes
   in two columns, the inventory choice, then the ten buttons two a row in the desktop's order. The supply plan date only
   shows while EOM Calculated Inventory is picked (no JavaScript: :has). One column on a phone.
   ===================================================================================================================== */
.fc-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.fc-date { display: none; }
.fc-form:has(#fcInvEom:checked) .fc-date { display: grid; }
.fc-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fc-buttons .fc-run { width: 100%; min-height: 56px; white-space: normal; }
.fc-map-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.fc-map-row label .code { color: var(--text); }
.fc-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.fc-facts dt { font-weight: 600; color: var(--muted); }
.fc-facts dd { margin: 0; overflow-wrap: anywhere; }
.fc-result .btn-big { justify-self: start; }
.fc-result .fc-file { color: inherit; opacity: 0.8; margin-left: 4px; }
@media (max-width: 760px) {
    .fc-checks, .fc-buttons, .fc-map-list { grid-template-columns: minmax(0, 1fr); }
    .fc-result .btn-big { justify-self: stretch; }
}

/* Reports > 3M Vendor Procurement (frm3MVendorProcurement): the completed file's facts and its Download File button, whose
   words carry the file's (long) name, wrap inside the panel instead of pushing it wider on a phone */
.vp-result { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.vp-result .btn-big { justify-self: start; max-width: 100%; white-space: normal; text-align: left; }
.vp-result .btn-big .hint { color: inherit; opacity: 0.8; overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .vp-result .fc-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .vp-result .fc-facts dd { margin-bottom: 8px; }
    .vp-result .btn-big { justify-self: stretch; }
}

/* Admin > Artifact schedule (frmArtifactSchedule) */
.as-now { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.as-counts { font-size: 0.85em; color: var(--muted); }
.as-error { font-size: 0.85em; color: var(--down); }

/* ---- Confirm Inventory on a phone (Matt, 11/5/2026, the phone mockups). Tablets and computers are not changed. The
   screen still fits the window (forklift screens never scroll the page): the scan boxes stay at the top, the list of
   what the system has fills the rest and scrolls inside, the seen ones drop to its bottom, Reconcile is pinned to the
   bottom of the screen, and "not listed here" slides up over the screen as a sheet with its big Add / Skip buttons. ---- */
@media screen and (max-width: 760px) {
    .fk-cols.fk-confirm { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); overflow: hidden; gap: 10px; }
    .fk-confirm > .fk-panel { padding: 10px 12px; gap: 8px; }
    .fk-confirm > .fk-panel:last-child { padding-bottom: 96px; }
    .fk-confirm > .fk-panel:last-child > h2 { font-size: 16px; }
    .fk-confirm .fk-scroll { border: 0; }
    .fk-confirm .fk-reconcile { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 10px 12px 12px; background: var(--panel); border-top: 1px solid var(--border); box-shadow: var(--shadow-pop); }
    .fk-confirm .fk-reconcile .btn-big { min-height: 52px; }
    .fk-confirm .phone-card .grid tbody { display: flex; flex-direction: column; }
    .fk-confirm .phone-card .grid tbody tr.fk-seen { order: 1; background: var(--accent-soft); }
    .fk-confirm .phone-card .grid tbody tr td { background: transparent; }
    .fk-confirm .phone-card .grid tbody tr.fk-added { border-left-color: var(--added); }
    .fk-notlisted { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; max-height: 85dvh; overflow-y: auto; padding: 16px 16px 18px; border-radius: 16px 16px 0 0; border: 0; box-shadow: 0 0 0 100vmax var(--backdrop); }
    .fk-notlisted .fk-actions { flex-direction: column; }
    .fk-notlisted .fk-actions form, .fk-notlisted .fk-actions .btn { flex: 1 1 auto; width: 100%; }
    .fk-notlisted .fk-actions .btn-big { min-height: 60px; }
    body:has(.fk-confirm .fk-reconcile) .page-timer { bottom: 84px; }
    /* step 1 (scan the location): the box and Next on their own lines, full width (the mockup); the list without the
       grid's tool bar, and the Next / Check boxes tall enough for gloves */
    .fk-confirm form[action*="Location"] .fk-scan-row { grid-template-columns: minmax(0, 1fr); }
    .fk-confirm form[action*="Location"] .fk-scan-row .btn { width: 100%; }
    .fk-confirm .phone-card .grid-bar { display: none; }
    .fk-cols.fk-confirm:not(:has(.grid-wrap)) { grid-template-rows: auto; }
    .fk-confirm > .fk-panel:last-child:not(:has(.grid-wrap)) { display: none; }   /* nothing to list until a location is scanned */
    .fk-confirm .fk-scroll { background: transparent; }
}

/* ---- The report tabs (STF Verification, Pallet Tag History) and the pallet history pop-up on a phone (Matt, 11/5/2026):
   the tabs are one row that scrolls sideways; the pop-up comes up from the bottom of the screen as a sheet. ---- */
@media screen and (max-width: 760px) {
    .report-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; }
    .report-tabs::-webkit-scrollbar { display: none; }
    .report-tabs a { flex: none; }
    dialog.pallet-history[open] { margin: auto 0 0 0; width: 100vw; max-width: 100vw; max-height: 90dvh; border-radius: 16px 16px 0 0; }
    .pallet-history .modal-body { max-height: calc(90dvh - 64px); }
}

/* Camera button in the scan boxes (site.js 9b, Matt 11/5/2026): a small camera inside the box on the right; on a phone or
   tablet it opens the back camera in a pop-up that reads the barcode / QR code. Colours from the variables (dark mode). */
.scan-cam-wrap { position: relative; display: block; min-width: 0; }
.scan-cam-wrap > .input { width: 100%; padding-right: 54px; }
/* in a flex scan row (the Pallets screens) the box with the camera takes the place the box alone took */
.scan-row > .scan-cam-wrap { flex: 1 1 200px; }
.scan-cam-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: inline-flex;
                align-items: center; justify-content: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.scan-cam-btn:hover, .scan-cam-btn:focus-visible { background: var(--accent-soft); color: var(--text); }
.scan-cam-modal { width: min(560px, calc(100vw - 24px)); }
.scan-cam-modal .modal-body { grid-template-columns: minmax(0, 1fr); }
/* Photo boxes on a Windows tablet / computer (site.js 9c): the live camera, the camera drop-down, the photo taken */
.photo-cam-modal { width: min(720px, calc(100vw - 24px)); }
.photo-cam-pick { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.photo-cam-pick[hidden] { display: none; }
.photo-cam-pick select { flex: 1 1 auto; min-width: 0; }
.photo-cam-modal .scan-cam-view img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.photo-cam-modal .scan-cam-view video[hidden], .photo-cam-modal .scan-cam-view img[hidden] { display: none; }
.photo-cam-file { justify-self: start; }
.scan-cam-view { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 55vh; border-radius: var(--radius); overflow: hidden; background: var(--head-bg); }
.scan-cam-view[hidden] { display: none; }
.scan-cam-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* where to point: a box in the middle of the picture */
.scan-cam-aim { position: absolute; left: 12%; right: 12%; top: 30%; bottom: 30%; border: 3px solid var(--accent); border-radius: 10px; pointer-events: none; }
.scan-cam-msg { margin: 0; font-size: 17px; }
.scan-cam-found { display: grid; gap: 4px; padding: 12px 14px; border: 2px solid var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.scan-cam-found[hidden] { display: none; }
.scan-cam-found-label { font-family: var(--label-font); text-transform: uppercase; font-size: 13px; color: var(--muted); }
.scan-cam-value { font-size: 26px; font-weight: 700; overflow-wrap: anywhere; color: var(--text); }
/* Zoom slider under the picture (the camera's own zoom or the middle enlarged); Keep the camera open tick; the screen's
   answer to the last code sent, green or red (Matt 11/6/2026) */
.scan-cam-zoom { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.scan-cam-zoom[hidden] { display: none; }
.scan-cam-zoom-label { font-family: var(--mono); font-size: 14px; color: var(--muted); min-width: 76px; }
.scan-cam-zoom input { width: 100%; min-width: 0; height: 32px; accent-color: var(--accent); }
/* The phone's lenses (0.5x / 1x / Tele / Lens 2...), like the camera app's buttons; the one in use is marked */
.scan-cam-lens { display: flex; justify-content: center; align-self: center; }
.scan-cam-lens[hidden] { display: none; }
.scan-cam-lens button { min-width: 56px; min-height: 40px; padding: 6px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--text);
                        font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.scan-cam-lens button.on { background: var(--select-bg); color: var(--on-select); }
.scan-cam-view { touch-action: none; }
.scan-cam-view video { transform-origin: center center; transition: transform .08s linear; }
.scan-cam-keep { display: flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.scan-cam-keep[hidden] { display: none; }
.scan-cam-keep input { width: 24px; height: 24px; flex: 0 0 auto; accent-color: var(--accent); }
.scan-cam-result { margin: 0; padding: 10px 12px; border-radius: var(--radius); font-weight: 700; font-size: 17px; overflow-wrap: anywhere;
                   border: 2px solid var(--border); }
.scan-cam-result[hidden] { display: none; }
.scan-cam-result.ok { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.scan-cam-result.err { border-color: var(--danger-text); color: var(--danger-text); }
@media (max-width: 760px) {
    .scan-cam-modal .modal-foot .btn { flex: 1 1 auto; }
}

/* ---- Kiosk apps (S_AppMode, Matt 11/5/2026): /forklift and its screens, /floor ----
   The kiosk bar (_KioskBar) instead of the title bar and menus: the app's name, a thick QPI green line under it so people can
   tell they are in the app, a big Open Maverik button. The app's home is one big button per screen, sized for a tablet. */
.kiosk-bar { border-bottom: 4px solid var(--accent); }
.kiosk-bar .bar-title { font-size: 24px; }
.kiosk-office, .kiosk-exit { min-height: 40px; }
/* Back to Floor / Back to Forklift on a Maverik screen opened from the app (Matt, 11/16/2026): big and green so it is easy to find */
.kiosk-back { min-height: 44px; margin-left: 12px; font-size: 17px; font-weight: 700; background: var(--accent); color: #ffffff; border-color: var(--accent); }
.kiosk-back:hover { filter: brightness(1.08); color: #ffffff; }
.kiosk-home { display: grid; gap: 16px; }
.kiosk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.kiosk-tile {
    display: grid; justify-items: center; align-content: center; gap: 12px; min-height: 150px; padding: 18px 12px;
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    color: var(--text); text-decoration: none; text-align: center;
}
.kiosk-tile:hover { border-color: var(--border-hover); background: var(--hover-bg); }
.kiosk-tile:active { background: var(--press-bg); }
.kiosk-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kiosk-tile .tile-icon { width: 64px; height: 64px; border-radius: 14px; }
.kiosk-tile .tile-icon svg { width: 34px; height: 34px; }
.kiosk-tile-name { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.login-app { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 4px 14px; border-radius: 999px;
             background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 16px; justify-self: center; }
.yes-no.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) {
    .kiosk-office span, .kiosk-exit span { display: none; }
    .kiosk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kiosk-tile { min-height: 120px; }
    .yes-no.three { grid-template-columns: minmax(0, 1fr); }
}

/* ==============================================================================================================   Phones (Jose, 11/5/2026: "en android y iphone la aplicacion se ve bastante mal"). Last in the file on purpose, so it
   wins over each screen's own section (Ship Trailer's .fk-ship, Confirm Inventory's .fk-confirm and Load Trailer's
   .fk-trailer-cols set two columns after the forklift's own 900px rule and kept two squeezed columns on a phone).
   ===================================================================================================================== */
@media screen and (max-width: 760px) {
    /* Forklift screens: on a tablet they fit the window and each list scrolls in its own box; on a phone that left small
       boxes scrolling inside boxes, so here the page is one column and scrolls like any other page. */
    body:has(#fkApp) { height: auto; min-height: 100dvh; overflow: visible; }
    body:has(#fkApp) > main, .fk-app, .fk-main, .fk-main > .content, .fk-cols, .fk-panel, .fk-new,
    .fk-trailer-lists, .fk-trailer-lists .fk-list { flex: 0 0 auto; min-height: auto; overflow: visible; }
    .fk-main { padding: 10px 12px; }
    .fk-cols, .fk-ship, .fk-confirm, .fk-trailer-cols { grid-template-columns: minmax(0, 1fr); }
    .fk-trailer-cols > .fk-panel:first-child { overflow: visible; }
    .fk-trailer-lists { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
    .fk-trailer-lists .fk-list-needed, .fk-trailer-lists.no-available .fk-list-loaded { grid-column: auto; }
    /* a list keeps its own box (it scrolls sideways and keeps its titles on top), but never taller than most of the screen */
    .fk-scroll { flex: 0 0 auto; max-height: 65vh; }
    /* New trailer: one box and one question per line, so the words don't break letter by letter */
    .fk-new-grid, .fk-yn-list { grid-template-columns: minmax(0, 1fr); }
    .fk-ship .fk-panel > .page-head, .fk-trailer-lists .page-head { flex-wrap: wrap; }
    /* a scan box with two buttons: the box on its own line, the buttons under it */
    .fk-scan-row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .fk-scan-row3 > :first-child { grid-column: 1 / -1; }
    .fk-title { font-size: 22px; }

    /* iPhones zoom the whole page into a box whose letters are smaller than 16px when it is tapped */
    .report-list .input, .ft-find .input, .au-cell { font-size: 16px; }

    /* The big buttons in a screen's title row (Shipping, Purchase Order, the Database lists...): the whole width, the same
       size, one under the other, instead of a ragged row of different widths */
    .page-head > .btn-big, .page-head > a.btn-big, .page-head > form:has(> .btn-big) { flex: 1 1 100%; }
    .page-head > form:has(> .btn-big) > .btn-big { width: 100%; }
    .page-head > .btn-big, .page-head > form > .btn-big { justify-content: flex-start; }
    /* ...and the other buttons of a title row (Order Tracker's Fields / PPM Dashboard / Send extract, the order's Critical
       comment / Edit / Close...): two to a line, the same width, instead of a ragged row. Not the "?" and "Who can open
       this" next to the title. Not the round icon buttons either (Messages' bell, assistant and +), and not a form with a
       box in it (Temp Hours' arrows + date + Today, Messages' search): those keep their own phone layout (Matt, 11/11/2026:
       the Messages buttons had turned into wide ovals). */
    .page-head > .btn:not(.btn-big):not(.help-btn):not(.help-btn-words):not(.acc-btn):not(.icon-btn):not(.head-round),
    .page-head > a.btn:not(.btn-big):not(.acc-btn):not(.head-round),
    .page-head > form:not(:has(> .btn-big)):not(:has(.input, select)) { flex: 1 1 calc(50% - 10px); justify-content: center; }
    .page-head > form:not(:has(> .btn-big)):not(:has(.input, select)) > .btn { width: 100%; justify-content: center; }
}

/* ==============================================================================================================   BOM Report (Forms/Reports/frmBomReport, wwwroot/js/bom-report.js; Matt, 11/5/2026). The tree: each level is indented
   22px under the line above it, the arrow opens or closes a line, the BOM itself is the top line on light green.
   ===================================================================================================================== */
.bom-pick { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.bom-pick .bom-choose { width: min(560px, 100%); }
.bom-pick .bom-small { width: 170px; }
.bom-pick .bom-show { display: none; }   /* pressed by the boxes when they change (data-submit-on-change) */
.bom-head { display: flex; gap: 6px 18px; flex-wrap: wrap; align-items: baseline; margin: 6px 0 10px; }
.bom-head b { font-size: 18px; }
.bom-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.bom-tools .bom-find { width: min(320px, 100%); }
.bom-tools .bom-levels { display: flex; gap: 4px; align-items: center; }
.bom-tools .bom-levels .btn { min-width: 36px; padding-left: 8px; padding-right: 8px; }
.bom-tools .spacer { flex: 1; }
.bom-tools form.inline { display: inline; margin: 0; }
.bom-grid .grid td.bom-part { white-space: nowrap; padding-left: calc(8px + var(--lvl, 0) * 22px); }
.bom-grid .grid td:nth-child(2) { min-width: 360px; }
.bom-grid .grid td.num, .bom-grid .grid th.num { text-align: right; white-space: nowrap; }
.bom-tog { border: 0; background: none; cursor: pointer; width: 20px; padding: 0; font-size: 14px; line-height: 1; color: var(--text); }
.bom-tog-sp { display: inline-block; width: 20px; }
.bom-link { color: var(--accent-ink, var(--accent)); text-decoration: underline; }
.bom-grid tr.bom-root td { background: var(--accent-soft); font-weight: 700; }
.bom-grid tr.bom-sel td { background: var(--accent-soft); }
.bom-grid mark { background: var(--warn-bg, #ffe56b); color: inherit; padding: 0 1px; border-radius: 2px; }
td.bom-memo { white-space: pre-wrap; }
/* the right-click menu and the "Copied" note */
.bom-menu { position: fixed; z-index: 1000; min-width: 230px; padding: 4px 0; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2); }
.bom-menu button { display: block; width: 100%; padding: 8px 14px; border: 0; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.bom-menu button:hover, .bom-menu button:focus { background: var(--accent-soft); outline: 0; }
.bom-said { position: fixed; z-index: 1001; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 8px 16px; border-radius: var(--radius);
    background: var(--text); color: var(--panel); font-weight: 600; }
.bom-said.bad { background: var(--danger-text); }
@media print { .bom-tog, .bom-tog-sp { display: none !important; } .bom-grid mark { background: none; } }

/* ==============================================================================   EDI Shipments (Forms/Shipping/frmEdiShipments, frmEdiShipment, frmEdiShipmentPrint; Matt 11/5/2026)
   The list has 13 columns, wider than a 1280 screen: it scrolls sideways inside its own box (.grid-scroll), never the whole
   page, like Production Summary. The shipment page: the facts panel, then the boxes (left) and Paperwork (right); one
   column below 1100 wide.
   ===================================================================================== */
.edi-grid .grid-scroll { overflow: auto; max-height: calc(100dvh - var(--top-h, 0px) - var(--grid-bar-h, 0px) - 12px); overscroll-behavior-x: contain; }
.edi-grid .grid { width: max-content; min-width: 100%; }
.edi-grid .grid th, .edi-grid .grid td { white-space: nowrap; padding-left: 9px; padding-right: 9px; }
.grid-wrap[data-grid].edi-grid thead th { top: 0; }
.edi-link { color: var(--accent-ink, var(--accent)); text-decoration: underline; font-weight: 700; }
.edi-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.edi-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; }
.edi-facts span { display: block; color: var(--muted); font-size: 13px; }
.edi-facts b { font-size: 16px; overflow-wrap: anywhere; }
.edi-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px; align-items: start; }
.edi-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; align-items: start; margin-bottom: 16px; }
.edi-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 150px); gap: 8px; }
.edi-add-scac { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink, var(--accent)); }
.edi-add-scac .ic { width: 14px; height: 14px; }
.edi-problem { margin: 0 0 12px; }
.edi-btns { display: grid; gap: 10px; }
.edi-btns > .btn { justify-content: flex-start; }
.edi-file { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14.5px; overflow-wrap: anywhere; }
.edi-upload { display: grid; gap: 8px; }
.edi-upload .field > span { font-weight: 600; font-size: 14px; color: var(--muted); }
.edi-hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 4px 0; }
.edi-asn-add { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 12px; }
.edi-at { padding-bottom: 12px; font-weight: 700; }
.edi-pallets { box-shadow: none; }
.edi-pallets .grid td { padding-top: 4px; padding-bottom: 4px; vertical-align: middle; }
.edi-remove { text-align: right; }
.edi-wrap { white-space: normal; overflow-wrap: anywhere; max-width: 360px; }
@media (max-width: 1500px) { .edi-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .edi-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
    .edi-form { grid-template-columns: minmax(0, 1fr); }
    .edi-asn-add { grid-template-columns: minmax(0, 1fr); }
    .edi-at { display: none; }
}

/* ==============================================================================================================   Mass Pallet Status Check report (Forms/Reports/frmMassPalletStatusCheck; Matt, 11/5/2026): the scan box with Add and
   Clear, the "Paste a list of pallets" box under it, and what happened to the last scan.
   ===================================================================================================================== */
.mpsc-add { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 16px; }
.mpsc-paste summary { cursor: pointer; color: var(--link); font-weight: 600; }
.mpsc-paste-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: var(--form-max); margin-top: 8px; }
.mpsc-paste-form .btn { justify-self: start; }
.mpsc-notes { margin: 0; padding-left: 20px; display: grid; gap: 2px; }
.mpsc-remove { width: 32px; height: 32px; }

/* ==============================================================================   Staffing Partners Hours (Forms/TempHours/frmStaffingPartnersHours): the drop box, the shift switch, the colour boxes
   and the coloured Start / End cells. The colours are the ETL's (--sp-*), so the screen matches the Excel file.
   ===================================================================================== */
.sp-drop-form { padding: 14px; }
.sp-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 140px; padding: 18px;
    border: 2px dashed var(--border-hover); border-radius: var(--radius-lg); background: var(--head-bg); color: var(--text);
    text-align: center; cursor: pointer;
}
.sp-drop:hover, .sp-drop-form.is-dropping .sp-drop { border-color: var(--accent-ink); background: var(--accent-soft); }
.sp-drop svg { width: 32px; height: 32px; color: var(--accent-ink); }
.sp-drop-main { font-size: 20px; font-weight: 600; }
.sp-drop-or { color: var(--muted); }
.sp-drop-saves { color: var(--muted); font-size: 14px; }
/* the real file box is hidden: the whole drop box is its label (clicking it opens the file picker) */
.sp-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sp-status { margin: 12px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sp-shifts { margin: 4px 0 10px; }
.sp-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 8px; }
.sp-stat-green { --chip: var(--sp-green); }
.sp-stat-red { --chip: var(--sp-red); }
.sp-stat-pink { border-left: 5px solid var(--sp-pink); }
.sp-stat-blue { border-left: 5px solid var(--sp-blue); }
.sp-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.sp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sp-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--border); }
.sp-swatch.sp-green, .grid td.sp-green { background: var(--sp-green); color: var(--on-sp-dark); }
.sp-swatch.sp-red, .grid td.sp-red { background: var(--sp-red); color: var(--on-sp-dark); }
.sp-swatch.sp-pink, .grid td.sp-pink { background: var(--sp-pink); color: var(--on-sp-light); }
.sp-swatch.sp-blue, .grid td.sp-blue { background: var(--sp-blue); color: var(--on-sp-light); }
.grid td.sp-cell { font-weight: 600; }
.grid.sp-summary td.sp-total { font-weight: 700; }
/* 12 columns must fit a 1920 screen at 150% (1280 wide, CLAUDE.md rule 10): the long titles wrap onto two lines */
.grid.sp-grid th, .grid.sp-grid th .grid-sort, .grid.sp-summary th, .grid.sp-summary th .grid-sort { white-space: normal; }
/* a pink cell's "DB Time" note (the last time we saw them), under No clock-in / No clock-out */
.sp-seen { display: block; color: var(--muted); font-size: 13px; }
@media (max-width: 1100px) { .sp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media screen and (max-width: 760px) {
    .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* the phone card's "START" / "END" label on a coloured cell takes the cell's own text colour (grey can't be read on it) */
    .stack-on-phone .grid td.sp-cell[class*="sp-"]::before { color: inherit; opacity: 0.85; }
    .sp-drop { min-height: 110px; }
    .sp-drop-main { font-size: 17px; }
}
/* ==============================================================================================================   Admin > Locations (Forms/Admin/frmLocations; Matt, 11/6/2026): the list / pattern box on the left, the preview with
   Create and the label buttons on the right.
   ===================================================================================================================== */
.loc-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.loc-pattern { font-family: var(--mono); min-height: 140px; resize: vertical; }
.loc-how summary { cursor: pointer; color: var(--link); font-weight: 600; }
.loc-examples { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.loc-examples code { font-family: var(--mono); background: var(--head-bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.loc-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-grid { box-shadow: none; }
.loc-grid td .chip { white-space: normal; }
.loc-labels { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.loc-labels .sec-h { margin: 0; }
.loc-label-btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* Deactivate tab (Matt, 11/11/2026): pick one location, its facts, Deactivate / Reactivate, its change log */
.loc-find .loc-find-go { display: none; }   /* pressed by the drop-down when a location is picked (data-submit-on-change) */
.loc-picked .sec-h { margin: 0; font-family: var(--mono); }
.loc-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; max-width: var(--form-max); }
.loc-facts dt { color: var(--muted); font-weight: 600; }
.loc-facts dd { margin: 0; }
@media screen and (max-width: 1100px) { .loc-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .loc-label-btns > .btn { flex: 1 1 100%; } }

/* Kohler Open Order Report (frmKohlerOpenOrders): the buttons row (Upload File..., Export to Excel, Clear), the paste
   sheet's three columns (PO #, Part Number, Due Date) and the parts-needed cells that wrap instead of running wide */
.ko-buttons { align-items: center; }
.ko-buttons form { display: contents; }
.ko-sheet th:nth-child(2), .ko-sheet th:nth-child(3), .ko-sheet th:nth-child(4) { width: auto; }
.ko-sheet .au-col-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot-grid td.ko-wrap { white-space: normal; min-width: 220px; max-width: 360px; }
/* Cost breakdown (frmEstimateCostBreakdown) */
.cb-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.cb-form .cb-part { flex: 1 1 420px; min-width: 0; margin: 0; }
.cb-form .cb-qty { flex: 0 1 180px; margin: 0; }
.cb-rollup { font-weight: 700; }
.cb-warnings { margin: 0; padding-left: 20px; }
.cb-pn { white-space: nowrap; }
/* a wide estimate grid scrolls in its own box (same as orders.css .grid-x), so the page never scrolls sideways */
.est-page .grid-wrap[data-grid] .grid-x { overflow: auto; max-height: calc(100vh - var(--top-h, 56px) - var(--grid-bar-h, 48px) - 24px); overscroll-behavior-x: contain; }   /* -x only: orders.css .grid-x */
.est-page .grid-wrap[data-grid] .grid-x thead th { top: 0; }
/* Management drivers (frmEstimateDrivers): the tab's sections side by side when there's room, each a label / box list or a table */
.drv-form { display: grid; gap: 12px; }
.drv-tabs { max-width: 100%; }
.drv-panel { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-start; }
.drv-panel[hidden] { display: none; }
.drv-section { min-width: 0; flex: 0 1 auto; }
.drv-section h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 8px; color: var(--muted); }
.drv-list { display: grid; gap: 6px; }
.drv-row { display: grid; grid-template-columns: minmax(0, 300px) 150px; gap: 12px; align-items: center; margin: 0; }
.drv-box { width: 130px; text-align: right; }
.drv-box[readonly] { background: var(--bg); color: var(--muted); }
.drv-pct { display: inline-flex; align-items: center; gap: 4px; }
.drv-table { border-collapse: collapse; }
.drv-table th, .drv-table td { padding: 3px 8px 3px 0; text-align: left; }
.drv-table thead th { font-weight: 600; font-size: 14px; }
.drv-table tbody th { font-weight: 400; padding-right: 16px; }
.drv-actions { display: flex; gap: 8px; align-items: center; position: sticky; bottom: 0; padding: 8px 0; background: var(--bg); }
@media (max-width: 760px) {
    .drv-row { grid-template-columns: minmax(0, 1fr) 140px; }
    .drv-table { display: block; overflow-x: auto; max-width: calc(100vw - 32px); }
}
/* Cost tables (frmEstimateCostTables) */
.ct-filters { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.ct-filters .field { margin: 0; }
.ct-filters select { min-width: 260px; }
.ct-edit { display: grid; gap: 16px; }
.ct-set h3 { margin: 0 0 8px; font-size: 16px; }
.ct-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ct-boxes .field { margin: 0; }
.ct-total { margin: 8px 0 0; }
@media (max-width: 760px) { .ct-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sales > 3M Pack Standards (frm3MPackStandards) and one pack standard (frmPackStandard): the "No part number" box in
   the title row, long joined numbers that wrap instead of running wide, the Part Number box with its Save button, the
   facts beside it, and the Files tab's revision picker and folder line */
.psd-nopart { display: flex; align-items: center; }
.psd-problem { color: var(--down); }
.psd-grid td.psd-long, .psd-page td.psd-long { white-space: normal; min-width: 200px; max-width: 360px; overflow-wrap: anywhere; }
.psd-part { margin-bottom: 14px; }
.psd-part .g2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; align-items: start; gap: 12px 28px; }
.psd-part-row { display: flex; gap: 8px; align-items: center; }
.psd-part-row .input { flex: 1 1 auto; min-width: 0; max-width: 360px; }
.psd-part-row .input[readonly] { background: var(--head-bg); color: var(--muted); }
.psd-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.psd-facts dt { color: var(--muted); font-family: var(--label-font, inherit); }
.psd-facts dd { margin: 0; overflow-wrap: anywhere; }
.psd-files { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.psd-files-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.psd-files-head .code { font-family: var(--mono); font-weight: 600; overflow-wrap: anywhere; }
.psd-rev-pick { display: flex; align-items: center; gap: 8px; }
.psd-rev-pick .input { width: 200px; }
@media (max-width: 760px) {
    .psd-part .g2 { grid-template-columns: minmax(0, 1fr); }
    .psd-part-row { flex-wrap: wrap; }
    .psd-part-row .input { max-width: none; }
}

/* ---- Sales > Projects (Forms/Sales/frmProjects, frmProject): the filters line, the Details boxes, the quantity options ---- */
.dp-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin-bottom: 12px; }
.dp-filters .field { flex: 1 1 260px; max-width: 420px; }
.dp-cols { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.hr-form .dp-wide { grid-column: 1 / -1; }
/* Project description is a few words (often the project's name): one line. Specifications is long: at least 12 lines and it
   grows with the text so all of it shows, like the old Maverik (11/23/2026). field-sizing makes it fit its text in Chrome / Edge;
   other browsers keep the 12 lines and the box can still be dragged bigger. */
textarea.dp-desc { min-height: 0; field-sizing: content; max-height: 8.5em; }
textarea.dp-specs { field-sizing: content; min-height: 18em; max-height: 75vh; }
.dp-ps { margin-top: 6px; }
.dp-ps .hint { margin: 0; }
.dp-qty { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 12px; }
.dp-tabs { flex-wrap: wrap; }
.dp-tasks { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.dp-inline-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dp-inline-add select { min-width: 320px; max-width: 520px; }
.dp-add-docs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: end; gap: 12px 16px; margin-bottom: 12px; }
.dp-add-comment { display: grid; gap: 10px; }
.dp-conv { display: grid; gap: 4px; max-width: 760px; }
.dp-wrap-text td { white-space: normal; }
.dp-text { white-space: pre-wrap !important; overflow-wrap: anywhere; min-width: 240px; }
/* Components tab Hide / Show hidden, and the Create BOM Packet box's order list (Matt for Sophie, 11/12/2026) */
.dp-show-hidden { display: inline-flex; align-items: center; }
.grid tbody tr.dp-hidden td { color: var(--muted); }
.grid tbody tr.dp-hidden td a.hr-name { opacity: .7; }
#dpBomBox.modal { width: min(760px, calc(100vw - 24px)); }
#dpBomBox .modal-body { max-height: min(62vh, calc(100dvh - 220px)); overflow-y: auto; }
.dp-order-hint { margin: 0; color: var(--muted); }
.dp-order-hint .ic { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
.dp-order-phone { display: none; }
.dp-order-list { width: 100%; border-collapse: collapse; }
.dp-order-list th, .dp-order-list td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.dp-order-list th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dp-order-list .num { width: 28px; text-align: right; color: var(--muted); }
.dp-order-move { width: 40px; white-space: nowrap; }
.dp-order-grip { display: inline-flex; color: var(--muted); cursor: grab; padding: 2px; }
.dp-order-grip .ic { width: 20px; height: 20px; }
.dp-order-arrows { display: none; gap: 4px; }
.dp-order-arrows .btn { padding: 4px 8px; min-width: 0; }
.dp-order-list tr.dp-order-dragging td { opacity: .35; }
.dp-order-list tr.dp-order-over td { box-shadow: inset 0 3px 0 var(--accent); }
.dp-order-left { margin: 0; color: var(--muted); }
.dp-order-left b { color: var(--text); }
@media screen and (max-width: 1100px) {
    .dp-cols { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
    .dp-qty { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .dp-add-docs { grid-template-columns: minmax(0, 1fr); }
    .dp-inline-add select { min-width: 0; max-width: none; width: 100%; }
    .dp-text { min-width: 0; }
    /* the project's Components cards: Select, Remove and Tasks side by side on one line (Matt 11/12/2026 "Squeeze them") */
    .phone-card .grid tbody td.dp-rev { flex: 1 1 100%; }   /* its own line, so the buttons share the next one */
    .phone-card .grid tbody td.dp-act { flex: 0 0 auto; width: auto; align-items: center; gap: 5px; margin: 4px 10px 0 0; }
    .phone-card .grid tbody td.dp-act .btn-small { padding: 4px 10px; }
    .phone-card .grid tbody td.dp-act:last-child { margin-right: 0; }
    .phone-card .grid tbody td.dp-act::before { padding-top: 0; font-size: 11px; }
    .phone-card .grid tbody td.dp-act form.inline { margin: 0; }
    .phone-card .grid tbody td.dp-remove::before { content: none; }   /* the button already says Remove */
    /* the Create BOM Packet box: arrows instead of the drag handle */
    .dp-order-desk, .dp-order-grip, .dp-order-wide { display: none; }
    .dp-order-phone { display: inline; }
    .dp-order-arrows { display: inline-flex; }
    .dp-order-move { width: auto; }
}

/* ---- Sales > Projects > a component (Forms/Sales/frmProjectComponent, frmProjectComponentLabel) ---- */
.dp-file { display: block; overflow-wrap: anywhere; }
/* Files list: the name opens the file, the small arrow beside it downloads it (Jack Leipnitz 11/25/2026) */
.dc-files { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dc-file-line { display: flex; align-items: center; gap: 4px; min-width: 0; }
.dc-file-line .dp-file { display: inline; min-width: 0; }
.dc-file-dl.icon-btn { flex: none; width: 28px; height: 28px; border-radius: 6px; }
.dc-file-dl.icon-btn:hover, .dc-file-dl.icon-btn:focus-visible { background: var(--hover-bg); color: var(--text); }
.dc-file-dl .ic { width: 16px; height: 16px; }
.dc-design { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-missing { color: var(--danger, #b42318); }
.dc-upload { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dc-upload input[type=file] { max-width: 260px; font-size: 0.85rem; }
.grid tr[aria-current="true"] td { background: var(--row-current, rgba(37, 99, 235, 0.08)); }
.dc-label { width: 4in; height: 2.31in; box-sizing: border-box; padding: 0.06in 0.1in; background: #fff; color: #000; font: 11pt "Segoe UI", Arial, sans-serif;
            box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25); overflow: hidden; }
.dc-label-top { display: flex; align-items: center; gap: 0.08in; background: #000; color: #fff; padding: 0.04in 0.06in; }
.dc-label-top img { height: 0.5in; width: auto; background: #fff; }
.dc-label-addr { font: bold 8pt "Segoe UI", Arial, sans-serif; line-height: 1.2; flex: 1; }
.dc-label-when { font-size: 9pt; white-space: nowrap; }
.dc-label dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 0.08in; margin: 0.05in 0 0; }
.dc-label dt { font-weight: bold; }
.dc-label dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-labels { display: flex; flex-wrap: wrap; gap: 16px; }   /* several labels (copies, many components): side by side on screen, one page each on paper */
@media print { .dc-label { box-shadow: none; } .dc-label-top { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
               .dc-labels { display: block; } .dc-label + .dc-label { break-before: page; } }
/* the Projects grids scroll inside their own box (grid.js section 7: one scroll bar, the page never scrolls sideways) */
.dp-page .grid-wrap[data-grid] .grid-x { overflow: auto; max-height: calc(100vh - var(--top-h, 56px) - var(--grid-bar-h, 48px) - 24px); overscroll-behavior-x: contain; }   /* -x only: orders.css .grid-x */
.dp-page .grid-wrap[data-grid] .grid-x thead th { top: 0; }
.dp-page .panel-section { grid-template-columns: minmax(0, 1fr); }   /* a wide grid (Components: Select + Tasks columns) scrolls inside the panel, not the page */
#dpTasks .grid-wrap { --top-h: 0px; }   /* the Tasks pop-up: its count line and titles stick to the top of the box, not under the page title bar */
/* Sales > Projects: the Components tab's buttons (Link, Structure Approval, BOM Packet, Add) go onto a second line when the window is narrow */
.dp-page .panel-section > .page-head { flex-wrap: wrap; row-gap: 8px; }
.dp-page .panel-section > .page-head .dp-inline-add { min-width: 0; }
/* ---- Database > Parts (Forms/Database/frmParts, frmPart) ---- */
.part-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.part-form .span-2 { grid-column: 1 / -1; }
.part-page .facts { margin: 6px 0 10px; }
.part-page .hr-form { align-items: start; }
/* Photos tab (Matt 11/14/2026): the part's extra photos as cards */
.part-photos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.part-photos-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.part-photos-head .hint { margin: 0; flex: 1 1 420px; }
.part-photo-add { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; max-width: var(--form-max); }
.part-photo-add .field { flex: 1 1 260px; min-width: 0; }
/* Parts page > Ship emails (frmPart.ShipEmails.cs): the add box, then the list */
.part-ship-add { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; max-width: var(--form-max); margin-bottom: 14px; }
.part-ship-add .field { flex: 1 1 260px; min-width: 0; }
.part-ship-add textarea { width: 100%; min-width: 0; resize: vertical; }
.part-ship-emails .hint { margin-top: 0; }
.part-ship-emails .part-ship-why { font-style: italic; }
.part-photo-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.part-photo { margin: 0; min-width: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel); }
.part-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--head-bg); display: block; }
.part-photo figcaption { padding: 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.part-photo-caption { display: flex; gap: 6px; }
.part-photo-caption .input { flex: 1; min-width: 0; }
.part-tabs { margin: 0 0 12px; flex-wrap: wrap; }
.part-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 12px; }
.part-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 14px; }
.part-cols > .panel { min-width: 0; }
.part-stack { display: grid; gap: 16px; min-width: 0; }
.part-stack > .panel { margin: 0; }
.part-cols .panel-section { margin-bottom: 0; }
.hr-form.part-form-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.part-form-3 .part-span-2 { grid-column: span 2; }
.part-form-4 .part-span-2 { grid-column: span 2; }   /* Costs and vendor: one wide box (Matt 11/16/2026) */
.part-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; padding: 6px 0; }
.part-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 44px; }
.part-sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.part-sec-head .sec-h { margin: 0; }
/* Phased out (Matt 11/10/2026): the grey "Phased out" tag, the checkbox button in the title row and the note under the facts.
   .phased-out is used on every screen that shows a part (orders, POs, lookups), so it is grey everywhere. */
.phased-out { --chip: var(--plain); }
.phase-out-btn { gap: 8px; }
.fake-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: none;
              border: 2px solid var(--muted); border-radius: 4px; background: var(--panel); }
.fake-check.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.fake-check .ic { width: 14px; height: 14px; stroke-width: 3; }
.phase-out-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius);
                  background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-border); }
.phase-out-note > span { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.phase-out-note > span > span { color: var(--text); }
.part-group-h { margin-top: 18px; }
.part-prices td { padding-top: 4px; padding-bottom: 4px; }
.part-prices .input { max-width: 180px; }
.part-top-hint { margin-top: 0; }
.part-rates { margin-bottom: 10px; align-items: center; }
.part-question { white-space: normal; min-width: 260px; }
.part-answer { min-width: 180px; }
.part-setup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 14px; }
.part-setup .sec-h { margin: 0 0 4px; }
.part-setup .hint { margin: 0; }
@media screen and (max-width: 1500px) {
    .hr-form.part-form-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .part-form-3 .part-span-2 { grid-column: 1 / -1; }
    .part-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 1100px) {
    .part-cols { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 700px) {
    .part-form, .hr-form.part-form-3, .part-kinds { grid-template-columns: minmax(0, 1fr); }
}


/* =======================================================================================================   Sales > Quotes (Forms/Sales/frmQuotes, frmQuote, frmQuoteTools, _QuoteFolder; Matt, 11/6/2026). The quote page is the
   tooling die page's layout: the facts row, two boxes side by side (the quote, the revision), Save under them. A revised
   quote's Current Rev is marked like the desktop's pink cell (with the theme's wait colour, so it works in dark mode).
   ===================================================================================================================== */
.quote-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.quote-page > .page-head, .quote-page > .back, .quote-page > .facts { margin-bottom: 0; }
.quote-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.quote-rev { --chip: var(--wait); display: inline-block; padding: 1px 8px; border-radius: 6px; font-weight: 600;
             color: var(--text); background: color-mix(in srgb, var(--chip) 22%, transparent); }
.quote-add { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.quote-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hr-form .quote-wide { grid-column: 1 / -1; }
.quote-cols .hr-form { align-items: start; }
.quote-rev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quote-actions { display: flex; gap: 8px; margin-top: 12px; }
.quote-tab-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.quote-tab-head .hint { margin: 0; }
.quote-row-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.quote-row-btns.quote-row-btns-start { justify-content: flex-start; }
.quote-link-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.quote-link-form .g2 { max-width: var(--form-max); }
.quote-move-list { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.quote-move-list .check-line { min-width: 0; overflow-wrap: anywhere; }
.grid td.quote-notes { white-space: normal; overflow-wrap: anywhere; min-width: 160px; max-width: 420px; }
.quote-files { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.quote-files-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.quote-path { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; font-weight: 600; }
.quote-path a { display: inline-flex; align-items: center; gap: 4px; color: var(--link); }
.quote-path-sep { color: var(--muted); }
.quote-path-full { margin: 0; }
.quote-path-full .code, .quote-add .code, .modal .hint .code { font-family: var(--mono); overflow-wrap: anywhere; }
.quote-files-head .btn[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.quote-files .grid a.hr-name .ic { margin-right: 4px; vertical-align: -3px; }
.quote-problem { color: var(--down); }
@media screen and (max-width: 1100px) {
    .quote-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .quote-row-btns { justify-content: flex-start; }
    .grid td.quote-notes { max-width: none; min-width: 0; }
}

/* ==============================================================================   Sales > Artwork (Forms/Sales/frmArtwork, frmArtworkDetail, Matt 11/6/2026)
   The list has the desktop's columns, wider than a 1280 screen: it scrolls sideways inside .grid-scroll (grid.js fits it,
   rule 30). The artwork page: the artwork's boxes beside its Revisions, then the picked revision's four folders.
   ===================================================================================== */
.art-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.art-page > .page-head, .art-page > .back, .art-page > .facts { margin-bottom: 0; }
.art-filter { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.art-grid .grid-scroll { overflow: auto; overscroll-behavior-x: contain; }
.art-grid .grid { width: max-content; min-width: 100%; }
.art-grid .grid th, .art-grid .grid td { white-space: nowrap; }
.grid-wrap[data-grid].art-grid thead th { top: 0; }
.art-grid .grid td.tool-notes { white-space: normal; min-width: 200px; max-width: 380px; }
.art-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
.art-revs { display: grid; gap: 10px; min-width: 0; }
.art-revs .grid td.tool-notes { white-space: normal; overflow-wrap: anywhere; }
.art-revs tr.row-picked td { background: var(--select-bg-soft, color-mix(in srgb, var(--select-bg) 14%, transparent)); }
.art-rev { display: grid; gap: 10px; }
.art-rev .sec-h { margin: 0; }
.art-rev-desc { margin: 0; white-space: pre-wrap; }
.art-folder { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.art-folder .code { font-family: var(--mono); font-weight: 600; overflow-wrap: anywhere; }
.art-folders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.art-folder-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.art-folder-box.has-pdf { border-color: color-mix(in srgb, var(--run) 55%, var(--line)); }
.art-folder-box.no-pdf { border-color: color-mix(in srgb, var(--down) 45%, var(--line)); }
.art-folder-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.art-folder-box .hint { margin: 0; }
.art-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.art-file-list li { overflow-wrap: anywhere; }
.art-page .grid td.main, .art-page .grid td.main a { overflow-wrap: anywhere; }
.art-file-list a .ic { margin-right: 4px; vertical-align: -3px; }
.modal .grid-wrap.art-log { --top-h: 0px; }   /* the change log pop-up's titles stick to the top of the box */
.art-log td.tool-notes { white-space: normal; overflow-wrap: anywhere; max-width: 520px; }
.art-warn { margin: 0; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--danger-border); background: var(--danger-bg); color: var(--danger-text); line-height: 1.4; }
.art-approval-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.art-approval-pick .field { flex: 1 1 360px; max-width: 640px; margin: 0; }
.art-approval { display: grid; gap: 12px; min-width: 0; }
.art-approval-file { display: block; overflow-wrap: anywhere; }
.art-approval-file .ic { margin-right: 4px; vertical-align: -3px; }
.art-status-form { display: inline-flex; gap: 6px; align-items: center; }
.art-status-form .input { width: auto; min-width: 150px; }
@media screen and (max-width: 1280px) {
    .art-folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 1440px) {
    .art-cols { grid-template-columns: minmax(0, 1fr); }   /* the Revisions list needs the full width below 1440 */
}
@media screen and (max-width: 760px) {
    .art-grid .grid-scroll { overflow: visible; }
    .art-grid .grid { width: 100%; }
    .art-grid .grid th, .art-grid .grid td, .art-grid .grid td.tool-notes { white-space: normal; max-width: none; min-width: 0; }
    .art-folders { grid-template-columns: minmax(0, 1fr); }
}

/* ==============================================================================   Database > Bill of materials (Forms/Database/frmBillOfMaterials, frmBillOfMaterial, frmItemChanger, Matt 11/6/2026)
   Uses the Tooling page's layout (tool-page, tool-cols, tool-owner, tool-actions, tool-files-head).
   ===================================================================================== */
.bom-page .page-head h1 { overflow-wrap: anywhere; }
.bom-page .hr-form { align-items: start; }
.bom-tab { display: grid; gap: 10px; }
.bom-tab > .hint { margin: 0; }
.bom-row-btns { white-space: nowrap; }
.bom-row-btns .inline-form { margin-left: 4px; }
.bom-row-btns .inline-form:first-child { margin-left: 0; }
.bom-memo { white-space: normal; overflow-wrap: anywhere; }
.bom-when { white-space: nowrap; }
.grid tr.bom-moved td { background: var(--accent-soft); }
.bom-warn { display: flex; gap: 8px; align-items: flex-start; font-weight: 600; }
.bom-qty { display: flex; gap: 8px; align-items: center; }
.bom-qty .input { flex: 1; }
.bom-changer { display: grid; gap: 10px; }
.bom-changer > .hint { margin: 0; }

/* ---- Open folder + Copy folder path (_OpenFolder.cshtml, site.js "Open folder") ---- */
.open-folder { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: 100%; margin-top: 4px; }
.open-folder-path { overflow-wrap: anywhere; min-width: 0; }
.open-folder-say { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.open-folder-say.is-ok { color: var(--run); }
.open-folder-say.is-bad { color: var(--danger-text); }
.open-folder-say.is-late { color: var(--warn-text); }
/* Link style (S_OpenFolder.Button.LinkText): the value itself is the Open folder button, drawn as an underlined link */
.open-folder-as-link { margin-top: 0; }
.open-folder-link { background: none; border: 0; padding: 0; margin: 0; font: inherit; font-size: 15px; font-weight: 700;
                    color: var(--link); text-decoration: underline; cursor: pointer; text-align: left; overflow-wrap: anywhere; }
.open-folder-link:hover { text-decoration-thickness: 2px; }
.open-folder-link:disabled { cursor: default; }
.open-folder-fallback { display: none; font-size: 15px; }
.open-folder-link[hidden] + .open-folder-fallback { display: inline; }
/* Orders > Combos (frmCombos, frmCombo) */
.cb-add-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin-bottom: 14px; }
.cb-add-row .field { margin: 0; min-width: 0; }
.cb-ticket { flex: 2 1 280px; }
.cb-qty { flex: 1 1 140px; max-width: 220px; }
.cb-parts { margin-top: 12px; }
.cb-facts { margin-bottom: 14px; }
.cb-link { color: var(--accent-ink, var(--accent)); text-decoration: underline; font-weight: 700; }
/* Order entry grids with many columns: the column titles may take two lines, so the grid fits 1280px (1920 at 150%) */
.oe-wrap-heads .grid th, .oe-wrap-heads .grid th .grid-sort { white-space: normal; }

/* ---- Kiosks (S_Kiosk, Forms/Kiosk, Admin > Kiosk setup; Matt 11/9/2026) ----
   A kiosk's bar (_KioskScreenBar) is the office title bar's look with the kiosk's name and a gear; a TV has only the gear,
   faint, in its corner. Results are big boxes a person can read from a few steps away, in the status colours. */
.kiosk-screen-bar { border-bottom: 4px solid var(--accent); }
.kiosk-screen-bar .bar-title { font-size: 24px; }
.kiosk-screen-name { color: var(--muted); font-size: 17px; }
/* The Floor / Forklift app's computer name (_KioskBar, Matt 11/18/2026): small and out of the way; not on a phone (no room) */
.kiosk-device-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
@media screen and (max-width: 760px) { .kiosk-device-name { display: none; } }
.kiosk-gear { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--panel); color: var(--muted); cursor: pointer; }
.kiosk-gear .ic { width: 24px; height: 24px; }
.kiosk-gear-float { position: fixed; top: 10px; right: 10px; z-index: 50; opacity: 0.35; }
.kiosk-gear-float:hover, .kiosk-gear-float:focus-visible { opacity: 1; }

/* Watch a kiosk (Admin > Kiosk setup > Watch, frmKioskWatch, kiosk-watcher.js; Matt 11/18/2026). Each tile / the big view
   holds two frames of the kiosk's copy, drawn at the kiosk's own size and scaled down (transform from the top left); only
   the front one shows. .kwatch-touch lies over the copy to take the clicks and keys while you have Control. */
.kwatch-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.kwatch-tile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.kwatch-tile:hover { border-color: var(--border-hover); background: var(--hover-bg); }
.kwatch-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kwatch-tile-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kwatch-tile-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kwatch-tile-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kwatch-stage { position: relative; display: block; overflow: hidden; background: var(--head-bg); border: 1px solid var(--border);
                border-radius: var(--radius); min-height: 120px; aspect-ratio: 16 / 9; }
.kwatch-one .kwatch-stage { aspect-ratio: auto; min-height: 240px; margin-top: 10px; }
.kwatch-tile .kwatch-stage { width: 100%; }   /* with its height set by kiosk-watcher.js, aspect-ratio would make it wider than the tile */
.kwatch-frame { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; visibility: hidden; background: var(--panel); }
.kwatch-frame.kwatch-front { visibility: visible; }
.kwatch-wait { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); text-align: center; padding: 12px; }
.kwatch-touch { position: absolute; top: 0; left: 0; inset-inline-end: auto; }
.kwatch-mine .kwatch-touch { cursor: pointer; outline: 3px solid var(--cyan); outline-offset: -3px; }
.kwatch-touch:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.kwatch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kwatch-what { font-weight: 600; }
.kwatch-ago, .kwatch-who { color: var(--muted); font-size: 13px; }
.kwatch-mine .kwatch-who { color: var(--cyan-ink); font-weight: 600; }
.kwatch-type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.kwatch-type .input { width: min(100%, 320px); }
.kwatch-filter { margin-top: -6px; }
/* On the kiosk: while someone in the office has Control (screen-share.js) */
.kiosk-watch-note { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2147483000; padding: 8px 16px;
                    border-radius: 999px; background: var(--bar-bg); color: var(--bar-text); font-weight: 600; font-size: 15px;
                    box-shadow: var(--shadow-pop); pointer-events: none; max-width: calc(100% - 28px); text-align: center; }
.kiosk-watch-tap { position: fixed; z-index: 2147483001; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
                   border: 3px solid var(--cyan); pointer-events: none; animation: kiosk-watch-tap 0.6s ease-out forwards; }
@keyframes kiosk-watch-tap { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
/* Remote screens (Admin > Remote screens, frmRemoteScreens; Matt 11/19/2026): the Support code box, and on the office person's
   screen (_ScreenShare, screen-share.js) the code box and the bar along the bottom while an admin can see their Maverik. */
.rs-code { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rs-code-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rs-code-box { width: 11ch; font-size: 26px; letter-spacing: 0.12em; text-align: center; }
.rs-sessions { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rs-sessions li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.share-offer > span { flex: 1 1 220px; min-width: 0; color: var(--muted); font-size: 14px; }
.share-code { margin: 6px 0 12px; font-size: 44px; font-weight: 700; letter-spacing: 0.14em; text-align: center; color: var(--text); }
.share-rules { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
/* Its own class: it was .share-bar, the same name as the Messages share bar, which made that bar float over the
   chat's message box on a phone (Matt 11/21/2026). */
.rs-bar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 2147482000; display: flex; flex-wrap: wrap;
             align-items: center; gap: 8px 12px; width: max-content; max-width: calc(100% - 24px); padding: 8px 10px 8px 14px;
             border-radius: 14px; background: var(--bar-bg); color: var(--bar-text); box-shadow: var(--shadow-pop); font-weight: 600; }
.rs-bar[hidden] { display: none; }
.rs-bar > .ic { flex: none; color: var(--cyan); }
.rs-bar-text { flex: 0 1 auto; min-width: 0; max-width: 62ch; }
.rs-bar-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
html.share-on body { padding-bottom: 64px; }   /* the bar never covers the last row of a screen */
@media screen and (max-width: 760px) { .rs-bar { bottom: 8px; border-radius: 12px; font-size: 14px; } }
/* Kiosk setup: Force green on the line TVs (now or scheduled) */
.kiosk-green-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; }
.kiosk-green-row .field { min-width: 0; }
.kiosk-green-row .check-line { align-self: center; }
.kiosk-pin { font-size: 26px; letter-spacing: 0.2em; text-align: center; }
.kiosk-code-page { display: grid; place-items: center; min-height: 90vh; }
.kiosk-code-box { text-align: center; max-width: 900px; padding: 40px 28px; }
.kiosk-code-box h1 { font-size: 38px; margin: 10px 0; }
.kiosk-code-box p { font-size: 20px; }
.kiosk-code-logo { height: 70px; }
.kiosk-code { display: inline-block; margin: 24px 0; padding: 16px 34px; border: 3px dashed var(--border); border-radius: 20px;
    font-family: var(--mono); font-size: clamp(56px, 11vw, 120px); font-weight: 700; letter-spacing: 0.12em; color: var(--accent-ink, var(--accent)); }
.kiosk-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.kiosk-card .sec-h { margin-top: 0; }
.kiosk-input { font-family: var(--mono); font-size: 30px; padding: 12px 16px; border-width: 3px; border-color: var(--accent); width: 100%; }
.kiosk-input.kiosk-input-done { border-color: var(--border); font-size: 24px; }
.kiosk-ticket-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.kiosk-ticket-row .kiosk-input { max-width: 560px; }   /* room for "Scan or type the ticket" */
.kiosk-ticket-row .kiosk-input-done { max-width: 340px; }   /* a ticket is open: its order, station and part beside it */
/* The camera button's wrap (site.js part 9b) takes the box's place in the ticket row, so it gets the box's widths */
.kiosk-ticket-row > .scan-cam-wrap { flex: 1 1 340px; max-width: 560px; }
.kiosk-ticket-row > .scan-cam-wrap:has(.kiosk-input-done) { flex-basis: 260px; max-width: 340px; }
/* The Keyboard button (site.js part 12c, data-keyboard-toggle): only on touch screens (a computer's keyboard is always there);
   pressed in = the on-screen keyboard is on for the scan boxes */
.btn.kbd-toggle.is-on, .btn.kbd-toggle.is-on:hover, .btn.kbd-toggle.is-on:focus-visible { background: var(--select-bg); color: var(--on-select); border-color: var(--select-bg); }
@media (hover: hover) and (pointer: fine) { .kbd-toggle { display: none; } }
.kiosk-facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; font-size: 18px; }
.kiosk-facts div { display: flex; gap: 8px; align-items: baseline; }
.kiosk-facts dt { color: var(--muted); }
.kiosk-facts dd { margin: 0; font-weight: 700; }
.kiosk-facts-wide dd { font-weight: 400; }
.kiosk-facts-line { margin: 10px 0 0; font-size: 18px; color: var(--muted); }
.kiosk-problem { font-size: 18px; margin: 12px 0 0; }
.kiosk-result { display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--radius); font-size: 28px; color: #ffffff; }
.kiosk-result > .ic { width: 64px; height: 64px; flex: none; stroke-width: 3; }
.kiosk-result strong { display: block; }
.kiosk-result small { display: block; font-size: 18px; font-weight: 400; margin-top: 4px; }
.kiosk-good { background: var(--run); }
.kiosk-bad { background: var(--down); }
.kiosk-locked { background: var(--down); outline: 4px solid var(--danger-text); outline-offset: -4px; }
.kiosk-note { background: var(--panel); color: var(--text); border: 2px solid var(--wait); }
.kiosk-note > .ic { color: var(--wait); }
.kiosk-list { font-size: 17px; }
.kiosk-who { text-align: center; max-width: 700px; margin: 6vh auto 0; width: 100%; display: grid; gap: 10px; justify-items: center; }
.kiosk-who h1 { font-size: 34px; margin: 0; }
.kiosk-who form { width: 100%; max-width: 460px; }
.kiosk-who .kiosk-input { text-align: center; }
.kiosk-who-bar { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.kiosk-who-bar .chip { font-size: 17px; padding: 8px 14px; }
.kiosk-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.kiosk-link-btn { margin-top: 12px; }
.kiosk-tv { min-height: 92vh; display: grid; place-items: center; }
.kiosk-tv-wait { text-align: center; }
.kiosk-tv-wait h1 { font-size: 64px; margin: 0 0 10px; }
.kiosk-tv-wait p { font-size: 24px; color: var(--muted); }
.kiosk-settings-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* A face clock's Camera (kiosk.js data-kiosk-camera, Matt 11/18/2026): the live picture of the picked camera */
.kiosk-camera-live { display: block; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--head-bg); }
.kiosk-camera-live[hidden] { display: none; }
.kiosk-camera-live.kiosk-camera-mirror { transform: scaleX(-1); }   /* shown the way the clock will show it */
.kiosk-modal { width: min(760px, calc(100vw - 32px)); }
.kiosk-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kiosk-type { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.kiosk-type:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-soft); }
.kiosk-type b { display: block; }
.kiosk-type small { color: var(--muted); font-size: 13.5px; }
.kiosk-code-input { font-family: var(--mono); font-size: 24px; letter-spacing: 0.25em; text-transform: uppercase; }
.kiosk-found-ok { color: var(--run); font-weight: 700; }
.kiosk-found-bad { color: var(--danger-text); }
/* The component check kiosk (frmKioskComponents; Akshitha 11/10/2026): the pieces bar under the scan box, the list's title
   row with Start over, and a finished row in light green */
.kiosk-progress { display: grid; gap: 6px; margin-top: 14px; }
.kiosk-progress-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; font-weight: 700; }
.kiosk-progress-head .num { font-size: 22px; }
/* progress.kiosk-bar only: the kiosk apps' title bar (_KioskBar, header.kiosk-bar) has the same class and was squashed to 16px (11/11-11/13/2026) */
progress.kiosk-bar { width: 100%; height: 16px; border: 0; border-radius: 8px; overflow: hidden; background: var(--line); appearance: none; }
progress.kiosk-bar::-webkit-progress-bar { background: var(--line); border-radius: 8px; }
progress.kiosk-bar::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
progress.kiosk-bar::-moz-progress-bar { background: var(--accent); border-radius: 8px; }
.kiosk-list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.kiosk-list-head .sec-h { margin: 0; }
.kiosk-list-head .inline { display: inline-flex; }
.kiosk-warn { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text); font-weight: 600; }
.kiosk-list tr.kiosk-row-done td { background: var(--accent-soft); }
/* The ticket once it is loaded: one short line with New ticket at the right */
.kiosk-ticket-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding: 12px 16px; }
.kiosk-ticket-line { display: flex; align-items: baseline; gap: 14px; min-width: 0; flex: 1 1 320px; }
.kiosk-ticket-no { font-size: 26px; font-weight: 700; white-space: nowrap; }
.kiosk-ticket-part { font-size: 18px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kiosk-ticket-more { font-size: 16px; }
.kiosk-new-ticket { margin-left: auto; }
.kiosk-short { display: none; }
@media screen and (max-width: 760px) {
    .kiosk-two, .kiosk-types { grid-template-columns: minmax(0, 1fr); }
    .kiosk-result { font-size: 22px; }
    .kiosk-result > .ic { width: 44px; height: 44px; }
    /* the component check's list: one card per component (title top left, status top right, the rest under it, rule 31) */
    .kiosk-components .kiosk-list thead { display: none; }
    .kiosk-components .kiosk-list, .kiosk-components .kiosk-list tbody { display: block; }
    .kiosk-components .kiosk-list tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px;
        padding: 10px 4px; border-bottom: 1px solid var(--line); }
    .kiosk-components .kiosk-list td { display: block; grid-column: 1 / -1; padding: 0; border: 0; min-width: 0; }
    .kiosk-components .kiosk-list td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-family: var(--font); }
    .kiosk-components .kiosk-list td.kiosk-card-title { grid-column: 1; }
    .kiosk-components .kiosk-list td.kiosk-card-badge { grid-column: 2; grid-row: 1; }
    .kiosk-who-bar { flex-wrap: wrap; }

    /* The component check kiosk on a phone-size screen (the handheld scanners, Akshitha 11/10/2026: "the screen is so small
       ... make it fit in one page"): a short title bar, small gaps, the ticket in one line, a shorter scan box and result,
       and one line per component (part, 1 of 4, status; the description under it in small letters). The tablet and the
       computer are not changed. */
    body:has(.kiosk-components) .kiosk-screen-bar { padding-top: 4px; padding-bottom: 4px; min-height: 0; gap: 8px; }
    body:has(.kiosk-components) .kiosk-screen-bar .bar-logo { height: 24px; }
    body:has(.kiosk-components) .kiosk-screen-bar .bar-title { font-size: 16px; }
    body:has(.kiosk-components) .kiosk-screen-bar .kiosk-screen-name { display: none; }
    body:has(.kiosk-components) .kiosk-gear { width: 36px; height: 36px; border-radius: 9px; }
    .kiosk-components.content { padding-top: 6px; padding-bottom: 8px; gap: 6px; }
    .kiosk-components .kiosk-card.panel-pad { padding: 8px 10px; }
    .kiosk-components .sec-h { font-size: 12px; margin: 0 0 4px; }
    .kiosk-components .kiosk-input { font-size: 20px; padding: 6px 10px; border-width: 2px; }
    .kiosk-components .kiosk-ticket-strip { padding: 6px 10px; gap: 2px 8px; flex-wrap: nowrap; }
    .kiosk-components .kiosk-ticket-line { flex-direction: column; gap: 0; flex: 1 1 auto; }
    .kiosk-components .kiosk-ticket-no { font-size: 18px; }
    .kiosk-components .kiosk-ticket-part { font-size: 13px; max-width: 100%; }
    .kiosk-components .kiosk-ticket-more { display: none; }
    .kiosk-components .kiosk-new-ticket { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
    .kiosk-components .kiosk-scan-card .sec-h { display: none; }
    .kiosk-components .kiosk-progress { margin-top: 6px; gap: 3px; }
    .kiosk-components .kiosk-progress-head { font-size: 14px; }
    .kiosk-components .kiosk-progress-head .num { font-size: 16px; }
    .kiosk-components progress.kiosk-bar { height: 8px; }
    .kiosk-components .kiosk-result { font-size: 17px; padding: 8px 10px; gap: 10px; }
    .kiosk-components .kiosk-result > .ic { width: 28px; height: 28px; }
    .kiosk-components .kiosk-result small { font-size: 13px; margin-top: 1px; }
    .kiosk-components .kiosk-result small, .kiosk-components .kiosk-warn { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
    .kiosk-components .kiosk-list-head { margin-bottom: 4px; gap: 6px; }
    .kiosk-components .kiosk-start-over { padding: 4px 10px; font-size: 13px; }
    .kiosk-components .kiosk-warn { font-size: 12.5px; padding: 6px 8px; margin-bottom: 4px; }
    .kiosk-components .kiosk-long { display: none; }
    .kiosk-components .kiosk-short { display: inline; }
    .kiosk-components .kiosk-list { font-size: 14px; }
    .kiosk-components .kiosk-list tr { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 8px; padding: 6px 2px; align-items: center; }
    .kiosk-components .kiosk-list td.kiosk-card-title { grid-column: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .kiosk-components .kiosk-list td.kiosk-row-count { grid-column: 2; grid-row: 1; white-space: nowrap; font-weight: 700; }
    .kiosk-components .kiosk-list td.kiosk-card-badge { grid-column: 3; grid-row: 1; }
    .kiosk-components .kiosk-list td.kiosk-row-desc { grid-column: 1 / -1; font-size: 12px; color: var(--muted);
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .kiosk-components .kiosk-list td.kiosk-row-desc::before, .kiosk-components .kiosk-list td.kiosk-row-count::before { content: none; }
    .kiosk-components .kiosk-list .chip { font-size: 11.5px; padding: 2px 7px; }
}
/* =====================================================================================================================
   Database > Component Barcodes (frmComponentBarcodes; Akshitha 11/10/2026): the ticket's facts under the ticket box, a scan
   box in each row of the components grid, the row just saved in light green
   ===================================================================================================================== */
.cb-facts { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 12px 0 0; font-size: 17px; }
.cb-facts div { display: flex; gap: 8px; align-items: baseline; min-width: 0; }
.cb-facts dt { color: var(--muted); }
.cb-facts dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.component-barcodes .cb-row-form { margin: 0; }
.component-barcodes .cb-upc { width: 100%; min-width: 0; font-size: 17px; }
.component-barcodes .cb-row-form .scan-cam-btn { width: 36px; height: 36px; }
.component-barcodes .cb-upc:placeholder-shown { border-color: var(--accent); }
.component-barcodes tr.cb-row-saved td { background: var(--accent-soft); }
@media screen and (max-width: 760px) {
    .cb-facts { gap: 4px 16px; font-size: 16px; }
}
/* ==============================================================================================================   Database > Retooling Requests (frmRetoolingRequests, frmRetoolingRequest, _RetoolingStep; Akshitha and Matt 11/9/2026)
   ===================================================================================================================== */
.rt-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
/* The request: the steps on the left, the waiting step (and the tabs) on the right; stacked below 1100px */
.rt-cols { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.rt-step-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rt-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rt-step:last-child { border-bottom: 0; }
.rt-step.now { background: var(--accent-soft); margin-inline: -16px; padding-inline: 16px; }
.rt-step .step-no { width: 28px; height: 28px; margin-right: 0; }
.rt-step .step-no .ic { width: 16px; height: 16px; }
.step-no.todo { background: var(--head-bg); color: var(--muted); border: 1px solid var(--border); }
.rt-step-text { min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.rt-step-name { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rt-main > .seg { justify-self: start; }
.rt-kv { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 15px; }
.rt-kv dt { font-family: var(--label-font); font-weight: 600; color: var(--muted); }
.rt-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rt-note { margin: 0; padding: 10px 12px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 6px; font-size: 15px; }
.rt-warn { margin: 6px 0 0; padding: 10px 12px; border-left: 4px solid var(--wait); background: color-mix(in srgb, var(--wait) 12%, transparent); border-radius: 6px; font-size: 15px; }
.rt-photo-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.rt-file { display: grid; gap: 4px; font-weight: 600; min-width: 0; }
.rt-file .input { width: 100%; min-width: 0; }
.rt-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.rt-box { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 2px solid var(--border-input); border-radius: 4px; background: var(--panel); }
.rt-box.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.rt-box .ic { width: 14px; height: 14px; }
@media (max-width: 1100px) {
    .rt-cols { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
    .rt-kv { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.rt-step-link { color: var(--text); text-decoration: none; }
.rt-step-link:hover, .rt-step-link:focus-visible { color: var(--link); text-decoration: underline; }
.rt-step.viewing { background: var(--hover-bg); margin-inline: -16px; padding-inline: 16px; }
.rt-step.viewing .rt-step-link { color: var(--link); }
.rt-answers dd { display: grid; gap: 2px; }

/* Team projects: a shared task board, separate from Sales' design projects. */
.team-intro { margin-bottom: 14px; }
.team-intro h2 { margin: 0 0 8px; }
.team-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.team-stats { grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 14px; }
.team-stats > div { display:flex; flex-direction:column; gap:4px; }
.team-stats b { font-size:26px; }
.team-stats span { color:var(--muted); }
.team-filters { display:flex; flex-wrap:wrap; gap:12px; align-items:end; margin-bottom:12px; }
.team-filters > div { flex:1 1 260px; min-width:0; }
.team-filters label:not(.check-line) { display:block; margin-bottom:5px; }
.team-page-count { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:12px; }
.team-board { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:start; gap:14px; }
.team-column { min-width:0; padding:12px; border-top:4px solid var(--border); }
.team-column[data-status=progress] { border-top-color:var(--accent); }
.team-column[data-status=review] { border-top-color:var(--wait); }
.team-column[data-status=done] { border-top-color:var(--run); }
.team-column h3 { display:flex; justify-content:space-between; align-items:center; gap:6px; margin:0 0 12px; }
.team-task { display:flex; flex-direction:column; gap:9px; border:1px solid var(--border); border-radius:10px; padding:13px; background:var(--panel); color:var(--text); text-decoration:none; margin-bottom:10px; overflow-wrap:anywhere; transition:border-color .15s,transform .15s; }
.team-task:hover { border-color:var(--accent); transform:translateY(-2px); }
.team-task:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.team-task > span { font-size:13px; color:var(--muted); }
.team-task-top { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.team-task .team-late { color:var(--danger-text); font-weight:600; }
.team-empty { color:var(--muted); }
.team-projects progress { accent-color:var(--accent); max-width:100px; }
.team-projects .modal input,.team-projects .modal textarea,.team-projects .modal select { min-width:0; max-width:100%; }
@media(max-width:1000px) { .team-board { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:520px) { .team-board { grid-template-columns:minmax(0,1fr); } .team-stats { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(prefers-reduced-motion:reduce) { .team-task { transition:none; } .team-task:hover { transform:none; } }
/* ---------------------------------------------------------------- PPRR Report (Forms/Reports/frmPPRRReport, Matt 11/10/2026) */
.report-filters .pprr-filter { width: auto; }
.pprr-filter .radio-row { display: flex; flex-wrap: wrap; gap: 6px 16px; min-height: 42px; align-items: center; }
.report-filters .pprr-show { width: auto; min-height: 42px; display: flex; align-items: center; }
.report-filters .pprr-buffer { width: 300px; }
.pprr-only { margin-left: 6px; }
.pprr-neg, .grid td.cell-neg { color: var(--danger-text); font-weight: 600; }   /* VB: Running Inventory red at 0 or below (grid.js data-cell-neg) */
.pprr-sum-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pprr-sum-head .temp-report-status { margin: 0; }
.ot-grid .pprr-sum-grid td.pprr-notes { white-space: normal; min-width: 260px; max-width: 520px; }
.ot-grid .pprr-sum-grid td.pprr-w-notes { min-width: 500px; max-width: 640px; }   /* Notes: a few lines, not a tall narrow column */
.ot-grid .pprr-sum-grid td.pprr-w-action { min-width: 250px; }
.ot-grid .pprr-sum-grid td.pprr-w-skus { white-space: normal; min-width: 260px; max-width: 420px; }
.ot-grid .pprr-sum-grid td.pprr-mynote-cell { min-width: 240px; white-space: normal; }   /* "My notes": a box per row, saved by site.js */
.pprr-mynote { width: 100%; min-width: 0; min-height: 44px; resize: vertical; font-size: 13px; padding: 4px 6px; }
.pprr-note-by { display: block; color: var(--muted); font-size: 11px; min-height: 14px; }
.pprr-note-by.pprr-note-bad { color: var(--danger-text); }
.pprr-st { display: inline-block; border-radius: 999px; padding: 1px 10px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.pprr-st-ok { background: var(--accent-soft); color: var(--run); }
.pprr-st-warn { background: var(--warn-bg); color: var(--warn-text); }
.pprr-st-bad { background: var(--danger-bg); color: var(--danger-text); }
@media screen and (max-width: 760px) {
    .report-filters .pprr-buffer, .report-filters .pprr-filter { width: 100%; }
    .ot-grid .pprr-sum-grid td.pprr-notes, .ot-grid .pprr-sum-grid td.pprr-w-notes, .ot-grid .pprr-sum-grid td.pprr-w-action,
    .ot-grid .pprr-sum-grid td.pprr-w-skus, .ot-grid .pprr-sum-grid td.pprr-mynote-cell { min-width: 0; max-width: none; }
}

/* ---- Database > Printers (frmPrinters): print boxes, printers, print jobs ---- */
.printers-grid td.printers-acts { white-space: nowrap; width: 1%; text-align: right; }
.printers-grid td.printers-acts form.inline { display: inline; margin-left: 4px; }
.printers-grid td.printers-acts .btn + .btn, .printers-grid td.printers-acts .btn + form.inline { margin-left: 4px; }
.printers-grid .btn-small { min-height: 34px; padding: 4px 10px; font-size: 14px; }
.printers-found { margin-top: 16px; }
.printers-grid td.printers-acts .printers-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* icon only; the title says it */
.printers-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.printers-steps { margin: 0 0 12px; padding-left: 22px; line-height: 1.5; }
.printers-steps li { margin-bottom: 6px; }
.printers-code { margin: 6px 0 12px; padding: 14px; border: 2px dashed var(--accent); border-radius: var(--radius); text-align: center;
                 font-family: var(--mono); font-size: 44px; font-weight: 600; letter-spacing: 8px; color: var(--text); }
.printers-line { margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--head-bg);
                 color: var(--text); font-family: var(--mono); font-size: 14px; white-space: pre-wrap; word-break: break-all; }
@media screen and (max-width: 760px) {
    .printers-two { grid-template-columns: minmax(0, 1fr); }
    .printers-grid td.printers-acts { white-space: normal; text-align: left; }
}
/* Remote help (frmPrintBoxShell, Matt 11/13/2026): the Pi's terminal. xterm.js draws it in its own terminal colours
   (black, like a printout is always black on white), so it looks the same in light and dark mode. */
.printshell-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.printshell-status { margin: 0; font-weight: 600; }
.printshell-panel .hint { margin: 0; }
.printshell-open p { margin: 0 0 10px; max-width: var(--form-max); }
.printshell-term { height: 60vh; min-height: 300px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); }   /* printshell.js fits it to the window */
.printshell-term .xterm { height: 100%; padding: 6px; }
@media screen and (max-width: 760px) {
    .printshell-term { height: 60vh; }
}

/* ---------------------------------------------------------------- Monthly Inventory Evaluation (Forms/Reports/frmMonthlyInventoryEvaluation, Matt 11/11/2026) */
.mie-month { display: flex; flex-direction: column; gap: 2px; min-width: 170px; }
.mie-month label { font-size: 13px; color: var(--muted); }
.mie-warn { color: var(--danger-text); font-weight: 600; }
.mie-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 14px; }
.mie-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 10px; }
.mie-check { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 12px;
             border: 1px solid var(--border); border-left: 5px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.mie-check.red { border-left-color: var(--down); }
.mie-check.amb { border-left-color: var(--wait); }
.mie-check.blu { border-left-color: var(--brk); }
.mie-check .n { font-size: 22px; font-weight: 700; text-align: right; }
.mie-check.red .n { color: var(--down); }
.mie-check.amb .n { color: var(--wait); }
.mie-check.blu .n { color: var(--brk); }
.mie-check h3 { margin: 0 0 2px; font-size: 15px; }
.mie-check p { margin: 0; font-size: 13px; color: var(--muted); }
.mie-check .amt { font-weight: 600; white-space: nowrap; }
.flag { display: inline-block; border-radius: 999px; padding: 1px 9px; margin: 0 4px 4px 0; font-size: 13px; font-weight: 700; white-space: nowrap; }
.flag.red { background: var(--danger-bg); color: var(--danger-text); }
.flag.amb { background: var(--warn-bg); color: var(--warn-text); }
.flag.blu { background: var(--cyan-soft); color: var(--brk); }
.mie-filters { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin-bottom: 12px; }
.mie-filters .hint { flex: 1 1 300px; }
.mie-detail-line { margin: 0 0 12px; }
.mie-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.mie-detail h3 { margin: 0 0 6px; font-size: 16px; }
.mie-detail h3 ~ h3 { margin-top: 14px; }
.modal .mie-detail .grid-wrap { --top-h: 0px; }   /* the pallet box's grids: titles stick to the top of the box, not under the page title bar */
.mie-src { width: 100%; border-collapse: collapse; }
.mie-src th, .mie-src td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); }
.mie-src th.num, .mie-src td.num { text-align: right; }
.mie-src tr.mie-pick td { background: var(--accent-soft); font-weight: 700; }
.mie-total { margin: 10px 0 4px; }
.mie-log { margin-top: 14px; }
.mie-log ul { margin: 6px 0 0; padding-left: 18px; }
.mie-review { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.mie-review .field { margin: 0; }
.mie-review-status { width: 200px; }
.mie-review-note { flex: 1 1 320px; min-width: 0; }
.mie-review-note .input { width: 100%; min-width: 0; }
.mie-admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.mie-admin h3 { margin: 0 0 8px; font-size: 16px; }
.mie-admin .mie-old, .mie-admin .mie-old + h3 { margin-top: 18px; }
.mie-admin .check-line { display: flex; margin: 6px 0; }
.mie-admin form .btn { margin-top: 6px; }
.mie-months { margin: 0; padding-left: 18px; font-size: 13px; }
@media screen and (max-width: 1100px) {
    .mie-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mie-checks, .mie-detail, .mie-admin { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
    .mie-stats { grid-template-columns: minmax(0, 1fr); }
    .mie-check { grid-template-columns: 54px minmax(0, 1fr); }
    .mie-check .amt { grid-column: 2; }
    .mie-month { width: 100%; }
    .mie-review-status { width: 100%; }
}

/* ---- walkie talkie kiosk (Forms/Kiosk/frmKioskWalkie, /kiosk/walkie) ---- */
.wk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 8px; }
.wk-head > div { flex: 1 1 200px; display: grid; gap: 2px; min-width: 0; }
.wk-number { font-size: 40px; font-weight: 800; padding: 4px 16px; border: 3px solid var(--accent); border-radius: 12px; }
.wk-action { font-size: 24px; }
.wk-out { color: var(--brk); }
.wk-in { color: var(--run); }
.wk-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wk-shot { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border: 3px dashed var(--border-input); border-radius: 14px;
           background: var(--hover-bg); cursor: pointer; overflow: hidden; }
.wk-shot:has(+ input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.wk-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wk-shot-empty { display: grid; justify-items: center; gap: 6px; font-size: 20px; font-weight: 700; color: var(--muted); }
.wk-shot-empty .ic { width: 48px; height: 48px; }
.wk-shot img:not([hidden]) ~ .wk-shot-empty { display: none; }
.wk-shot-name { position: absolute; left: 8px; bottom: 8px; padding: 2px 10px; border-radius: 999px; background: var(--panel); font-weight: 700; display: none; }
.wk-shot img:not([hidden]) ~ .wk-shot-name { display: block; }
.wk-shot.wk-shot-done { border-style: solid; border-color: var(--run); }
/* The photo check's answer (walkie.js): checking, take it again (red), or let through after the tries (amber) */
.wk-shot.wk-shot-bad { border-style: solid; border-color: var(--down); }
.wk-shot.wk-shot-warn { border-style: solid; border-color: var(--wait); }
.wk-check { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 17px; font-weight: 600; color: var(--muted); background: var(--hover-bg); }
.wk-check.wk-check-bad { color: var(--danger-text); background: var(--danger-bg); }
.wk-check.wk-check-warn { color: var(--warn-text); background: var(--warn-bg); }
.wk-wrong { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.wk-wrong legend { padding: 0; margin-bottom: 8px; }
.wk-yesno { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wk-choice { gap: 10px; }
.wk-choice:has(input:checked) { background: var(--select-bg); border-color: var(--select-bg); color: var(--on-select); }
.wk-photos > .btn-full { margin-top: 14px; }
.wk-row-off td { color: var(--muted); }
.wk-since { display: none; color: var(--muted); }
@media (max-width: 640px) {
    .wk-number { font-size: 30px; }
    .wk-action { font-size: 19px; }
    .wk-shots { gap: 8px; }
    .wk-shot-empty { font-size: 16px; }
    .wk-list { font-size: 14px; }
    .wk-list th:nth-child(4), .wk-list td:nth-child(4) { display: none; }   /* "since" goes under the name */
    .wk-since { display: block; font-size: 12.5px; white-space: nowrap; }
    .wk-list td { white-space: normal; }
}

/* ---- Maintenance > Walkie talkies (Forms/Maintenance/frmWalkieTalkies) ---- */
.walkie-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.walkie-page .facts { align-items: center; }
/* Check out / in from the office (Matt, 11/13/2026): the kiosk's photo boxes, smaller inside the pop-up */
.wt-mine { font-weight: 700; color: var(--brk); }
#wtCheck .modal-body { display: grid; gap: 10px; }
.wt-shots { max-width: 560px; }
.wt-shots .wk-shot-empty { font-size: 16px; }
.wt-shots .wk-shot-empty .ic { width: 34px; height: 34px; }
#wtCheck .wk-check { font-size: 15px; }
#wtCheck .wk-choice:has(input:checked) { background: var(--select-bg); border-color: var(--select-bg); color: var(--on-select); }   /* stays dark under the mouse */
@media screen and (max-width: 760px) {
    .walkie-page td.row-acts { white-space: normal; display: flex; flex-wrap: wrap; gap: 6px; }   /* Check out + History + Edit fit on a card */
}
.walkie-page form.filters { grid-template-columns: repeat(3, minmax(0, 220px)) auto; align-items: end; justify-content: start; }
.wt-thumbs { display: flex; gap: 6px; }
.wt-thumbs img { display: block; width: 64px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--hover-bg); }
.wt-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.wt-compare figure { margin: 0; display: grid; gap: 6px; }
.wt-compare figcaption { font-weight: 700; }
.wt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wt-pair img { display: block; width: 100%; max-height: 32vh; object-fit: contain; border-radius: 8px; border: 1px solid var(--border); background: var(--hover-bg); }
.wt-notes { display: grid; gap: 6px; margin: 14px 0 0; }
.wt-notes div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.wt-notes dt { color: var(--muted); font-weight: 600; }
.wt-notes dd { margin: 0; }
.wt-review-foot { flex-wrap: wrap; }
.wt-review-foot .input { flex: 1 1 220px; width: auto; }
@media (max-width: 640px) {
    .walkie-page form.filters { grid-template-columns: minmax(0, 1fr); }
    .wt-notes div { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .wt-review-foot .btn { width: 100%; }
}

/* ---------------------------------------------------------------- My reminders (Forms/frmMyReminders, _ReminderDue, _ReminderNew; Matt 11/11/2026) */
.rm-btn { border: 0; padding: 0; background: transparent; cursor: pointer; font: inherit; }
.rm-btn .bell-count { background: var(--down); }
/* The red box on every screen while a reminder is due: top right, under the menus, stays while the page scrolls */
.rm-due-wrap:empty { display: none; }
.rm-due { position: fixed; z-index: 45; top: 124px; right: 18px; width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 150px);
          overflow-y: auto; border: 2px solid var(--danger-text); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow-pop); }
.rm-due-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--danger-bg); color: var(--danger-text); font-weight: 700; }
.rm-due-stay { font-size: 12px; font-weight: 600; text-align: right; }
.rm-due-item + .rm-due-item { border-top: 1px solid var(--border); }
.rm-due-b { padding: 12px 14px 6px; display: grid; gap: 4px; }
.rm-due-when { color: var(--danger-text); font-weight: 700; font-size: 14px; }
.rm-due-title { font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.rm-due-note { white-space: pre-line; overflow-wrap: anywhere; }
.rm-due-f { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 12px; align-items: center; }
.rm-snooze > summary { list-style: none; }
.rm-snooze > summary::-webkit-details-marker { display: none; }
.rm-snooze .rm-snooze-list { width: 200px; left: 0; right: auto; }
/* In the red box the snooze times open inside the box, as a row of buttons (the box scrolls, so a list on top would be cut off) */
.rm-due .rm-snooze[open] { flex-basis: 100%; }
.rm-due .rm-snooze .rm-snooze-list { position: static; width: auto; margin-top: 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; border: 0; box-shadow: none; background: none; }
.rm-due .rm-snooze .rm-snooze-list > button { width: auto; min-height: 36px; padding: 6px 12px; border: 1px solid var(--border); background: var(--panel); font-size: 14px; font-weight: 600; }
.rm-due-size { color: var(--danger-text); margin: -6px -8px -6px 0; }
.rm-due-size svg { transition: transform .15s; }
/* Smaller: only the red title line, moved to the bottom right corner, where screens have no buttons */
.rm-due.is-small { top: auto !important; bottom: 18px; width: auto; max-width: min(440px, calc(100vw - 32px)); }
.rm-due.is-small .rm-due-item, .rm-due.is-small .rm-due-more, .rm-due.is-small .rm-due-stay, .rm-due.is-small .spacer { display: none; }
.rm-due.is-small .rm-due-size svg { transform: rotate(180deg); }
.rm-due-more { display: block; padding: 8px 14px 12px; color: var(--link); font-weight: 600; }
:root[data-bare] .rm-due-wrap { display: none !important; }   /* one red box: the window's, not each side of a split screen */
/* New reminder / Edit reminder */
.rm-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.rm-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.rm-quick .btn.is-picked { background: var(--select-bg); color: var(--on-select); border-color: var(--select-bg); }
.rm-linkbox { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--head-bg); cursor: pointer; }
.rm-linkbox[hidden] { display: none; }
.rm-linkbox input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.rm-linkbox b { display: flex; align-items: center; gap: 6px; }
.rm-linkbox .hint { display: block; overflow-wrap: anywhere; }
.rm-new .modal-head .rm-new-all { margin-right: 4px; }
/* My reminders */
.rm-how { margin: 0 0 10px; max-width: 1000px; }
.rm-tabs { margin-bottom: 10px; }
.rm-overdue { color: var(--danger-text); font-weight: 700; }
.rm-grid td.rm-note { white-space: pre-line; min-width: 220px; max-width: 520px; }
.rm-acts { white-space: nowrap; }
.rm-acts > * { margin: 2px 4px 2px 0; }
@media screen and (max-width: 1400px) { .rm-grid td.rm-note { min-width: 160px; } .rm-acts { white-space: normal; min-width: 210px; } }
/* Home: the My reminders box */
.rm-home-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-home-head .sec-h { margin: 0; }
.rm-home-row { display: grid; grid-template-columns: 210px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rm-home-row:last-child { border-bottom: 0; }
@media screen and (max-width: 760px) {
    .rm-due { top: 70px; right: 12px; left: 12px; width: auto; max-height: calc(100dvh - 90px); }
    .rm-two { grid-template-columns: minmax(0, 1fr); }
    .rm-grid td.rm-note { min-width: 0; max-width: none; }
    .rm-grid td.rm-acts { white-space: normal; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
    .rm-grid td.rm-acts > * { margin: 0; }
    .rm-home-row { grid-template-columns: minmax(0, 1fr) auto; }
    .rm-home-row > :first-child { grid-column: 1 / -1; }
}
@media print { .rm-due-wrap { display: none !important; } }

/* ---- kiosks: no phone links ----
   Samsung's browser on the line TVs turned the part number into a blue phone link (Matt, 11/11/2026). The layout's
   format-detection meta stops it; this keeps any link it still adds looking like the text around it and not clickable. */
.kiosk-page a[href^="tel:"], .tv-fit a[href^="tel:"] { color: inherit; text-decoration: none; pointer-events: none; }

/* =====================================================================================================================
   Re-enable Temps (Forms/TempHours/frmReenableTemps): the line on top of each tab and the row's Re-enable button
   ===================================================================================================================== */
.rte-lead { margin: 0 0 12px; }
/* The Re-enable link of a row in the big grid (site.js part 15) looks like the small green button it used to be */
.rte-grid td.rte-act a.ii-link {
    display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 6px; font-weight: 600; white-space: nowrap;
    background: var(--accent); color: var(--on-accent); text-decoration: none;
}
.rte-grid td.rte-act a.ii-link:hover, .rte-grid td.rte-act a.ii-link:focus-visible { filter: brightness(0.95); text-decoration: none; }

/* =====================================================================================================================
   Staffing Partners: Temps, a temp, 12-Hour Shift (Forms/StaffingPartners, Akshitha 11/18/2026)
   ===================================================================================================================== */
.spt-lead { margin: 0; }
.spt-bar { gap: 12px; flex-wrap: wrap; }
.spt-bar .hint { margin: 0; }
/* The Add box of 12-Hour Shift: the temp (wide), the shift (two radio buttons) and Add, on one line */
.spt-add { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.spt-add-row { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.spt-add-who { flex: 0 1 520px; min-width: 0; }
.spt-add-shift { border: 0; margin: 0; padding: 0; min-width: 0; }
.spt-add-shift legend { padding: 0; margin-bottom: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
.spt-radios { display: flex; gap: 18px; min-height: 44px; align-items: center; }
@media screen and (max-width: 760px) {
    .spt-add-row { flex-direction: column; align-items: stretch; }
    .spt-add-who { flex: none; }
}

/* =====================================================================================================================
   Development (Forms/Admin/frmDevelopment): two equal panels (Reactivate pallets, Mass pallet status change), the result grid under them
   ===================================================================================================================== */
.dev-page .screen-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dev-page .dev-results { margin-top: 16px; }
@media screen and (max-width: 1100px) { .dev-page .screen-cols { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================================================================
   Delete Pallet (Forms/Pallets/frmDeletePallet): the check box only as wide as its words
   ===================================================================================================================== */
.delete-pallet-screen form > .check-line { justify-self: start; }

/* ---- Follow (Matt, 11/12/2026): the Follow / Following button on a record's title row (_FollowButton) and Home > Following ---- */
.fw-form { display: inline-flex; }
.fw-btn.is-following { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.fw-btn.is-following:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 85%, #000000); color: var(--on-accent); }
.fw-how { margin: 0 0 12px; }
.fw-acts { white-space: nowrap; }
.od-cell-btn.fw-on { color: var(--accent-ink); font-weight: 600; }

/* ---- Home: My work (Matt, 11/12/2026, mockup v2): the numbers, Waiting on you, Following, My reminders ---- */
.mw-stats { margin-bottom: 0; }
a.mw-stat { display: block; color: inherit; text-decoration: none; }
a.mw-stat:hover { border-color: var(--accent); }
.mw-stat.is-late .v { color: var(--danger-text); }
.mw-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.mw-cols.is-one { grid-template-columns: minmax(0, 1fr); }
.mw-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.mw-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mw-head .sec-h { margin: 0; }
.mw-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.mw-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mw-main a { overflow-wrap: anywhere; }
.mw-count { white-space: nowrap; }
.mw-late { color: var(--danger-text); font-weight: 600; }
.mw-when { white-space: nowrap; }
.mw-kind { font-family: var(--label-font); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.rm-home-row.is-due > span:first-child { color: var(--danger-text); font-weight: 600; }
@media (max-width: 1100px) {
    .mw-cols { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 760px) {
    .mw-row { flex-wrap: wrap; }
    .mw-when { white-space: normal; }
}

/* Bill of materials > Add memo line: the "use Bulk add" box (site.js data-memo-single) */
.bom-use-bulk { display: grid; gap: 8px; justify-items: start; margin-top: 10px; }
.bom-use-bulk p { margin: 0; }

/* Approved devices > Edit: its default printers, with the change log under them (S_DevicePrinterDB, Matt 11/12/2026) */
.change-log-box { margin-top: 8px; }
.change-log-box > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
/* The title bar's printer button (frmMyPrinters): computers only, phones don't print (rule 3b) */
@media screen and (max-width: 760px) { .tb-printers { display: none; } }

/* ---------------------------------------------------------------------------------------------------- Print a file (/Print)
   frmPrintFile: a file to a Maverik printer from anywhere, the person's print key and the printers' addresses for laptops. */
.printfile-copies { max-width: 120px; }
.printfile-h3 { margin: 18px 0 8px; font-size: 16px; }
.printfile-keys { margin: 0 0 10px; padding: 0; list-style: none; }
.printfile-keys li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.printfile-make { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; }
.printfile-addr { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 13px; word-break: break-all; }
.printfile-key { font-size: 22px; letter-spacing: 1px; text-align: center; }
.printers-grid form.inline.printkeys-cap { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.printkeys-cap .input { width: 90px; min-width: 0; }
/* Sales > Projects: the Print labels box (Forms/Sales/_ComponentLabelPrint) */
.cl-print .modal-body { grid-template-columns: minmax(0, 1fr); }
.cl-print .cl-rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 8px; max-height: 45vh; overflow-y: auto; }
.cl-print .cl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; border-top: 1px solid var(--line); }
.cl-print .cl-row:first-child { border-top: 0; }
.cl-print .cl-name { min-width: 0; display: flex; flex-wrap: wrap; gap: 0 10px; margin: 0; }
.cl-print .cl-copies { width: 5.5em; }

/* Admin: Ask Maverik access & spending (frmOrderChatSpending): the Add person box and its button above the User access list */
.chat-access-add { align-items: flex-end; margin: 4px 0 14px; }
.chat-access-add .field { width: min(420px, 100%); min-width: 0; margin: 0; }

/* Admin > Translation usage (frmTranslationUsage): the stat boxes under today's bar */
.translation-stats { margin: 14px 0 6px; }

/* Orders > St Francis schedule (frmStfBoard, Ken Wills' board, 11/13/2026): seven stat boxes in one row on a computer, the
   no-ticket warning, the plan's day switch, the part-time crews' rows shaded, the small number boxes of Lineup and Manning */
.stf-stats { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 12px; }
.stf-warn { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 12px; border-left: 4px solid var(--wait); }
.stf-warn .hint { flex-basis: 100%; }
.stf-tabs { margin-bottom: 12px; }
/* Ken, 11/16/2026: the Reports tab is QPI green (dark text, rule 20) so people find the report sets; a dark line under it when it is the open tab */
.stf-tabs a.stf-tab-reports, .stf-tabs a.stf-tab-reports[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.stf-tabs a.stf-tab-reports[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--on-accent); }
.stf-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.stf-days .seg a { padding: 6px 12px; font-size: 14px; }
.stf-board tr.stf-part td { background: var(--hover-bg); }
.stf-board .input-num { width: 90px; min-width: 0; }
.stf-lineup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media screen and (max-width: 1100px) { .stf-lineup { grid-template-columns: minmax(0, 1fr); } }
@media screen and (max-width: 1100px) {
    .stf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Ken's lock (only Ken changes what he put in place) and the Ask Guiliana panel: a column on the right that stays while
   the screen moves under it; on a phone a sheet along the bottom */
.stf-lock { gap: 4px; }
.stf-board tr.stf-focus td { background: var(--accent-soft); box-shadow: inset 0 1px 0 var(--accent), inset 0 -1px 0 var(--accent); }
.stf-lock svg, .stf-locked svg { width: 14px; height: 14px; }
.stf-locked { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--muted); }
.stf-chat { position: fixed; right: 12px; top: calc(var(--top-h, 64px) + 8px); bottom: 12px; width: 400px; max-width: calc(100vw - 24px);
            z-index: 60; display: flex; flex-direction: column; padding: 0; box-shadow: 0 8px 28px rgba(0, 0, 0, .18); min-width: 0; }
.stf-chat[hidden] { display: none; }
/* the Ask Guiliana button floats at the bottom right on every tab (Matt, 11/14/2026); the panel takes its place when open */
.stf-ask-float { position: fixed; right: 20px; bottom: 20px; z-index: 55; border-radius: 999px; padding: 12px 20px; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.stf-ask-float .new-flag { position: absolute; top: -9px; right: -6px; margin: 0; }
body.stf-chat-on .stf-ask-float { display: none; }
.content.stf-board { padding-bottom: 76px; }
@media screen and (max-width: 760px) { .stf-ask-float { right: 12px; bottom: 12px; padding: 11px 16px; } }
@media print { .stf-ask-float { display: none !important; } }
.stf-chat-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.stf-chat-head h2 { margin: 0; font-size: 16px; }
.stf-practice { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.stf-chat.stf-practicing { border-color: var(--warn-border); }
.stf-chat.stf-practicing .stf-practice { background: var(--warn-bg); color: var(--warn-text); }
.stf-chat-log { flex: 1 1 auto; overflow-y: auto; overscroll-behavior-y: contain; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.stf-msg { white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px 10px; border-radius: 10px; max-width: 92%; line-height: 1.4; }
.stf-msg-q { align-self: flex-end; background: var(--accent-soft); color: var(--text); }
.stf-msg-a { align-self: flex-start; background: var(--head-bg); color: var(--text); border: 1px solid var(--border); }
.stf-msg-wait { align-self: flex-start; color: var(--muted); font-style: italic; }
.stf-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); align-items: end; }
.stf-chat-form textarea { width: 100%; min-width: 0; resize: vertical; max-height: 160px; }
.stf-chat-buttons { display: flex; gap: 6px; align-items: flex-end; }
.stf-mic svg { width: 18px; height: 18px; }
.stf-mic { position: relative; }
.stf-mic .new-flag { position: absolute; top: -9px; right: -8px; margin: 0; font-size: 9px; padding: 0 5px; }
.stf-mic.stf-listening { background: var(--down); border-color: var(--down); color: #ffffff; }
@media screen and (min-width: 1300px) {
    body.stf-chat-on .content.stf-board { padding-right: 420px; }
}
@media screen and (max-width: 760px) {
    .stf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stf-chat { left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; height: 70vh; border-radius: 14px 14px 0 0; }
}

/* Admin > AI usage (frmAiUsage): this month's boxes, the features' title row with Change log, the model drop-downs and the
   "Which Claude model to pick" list */
.ai-stats { margin: 0 0 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ai-sec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ai-sec-head .sec-h { margin: 0; }
.ai-model { width: 100%; min-width: 270px; max-width: 340px; }
.ai-prices { margin: 12px 0 14px; }
.ai-prices summary { cursor: pointer; font-weight: 600; }
.ai-prices ul { margin: 8px 0 6px; padding-left: 20px; }
.ai-prices li { margin: 4px 0; }
@media screen and (max-width: 1100px) { .ai-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media screen and (max-width: 760px) { .ai-model { min-width: 0; max-width: none; } }

/* No saved browser data in the forklift and Floor boxes (site.js part 17, Matt 11/13/2026): when Chrome or Safari fills a box
   by itself it gets :-webkit-autofill; this tiny animation tells site.js, which takes the browser's value out again. It also
   keeps the browser's yellow / blue "filled" colour off. */
@keyframes noAutofill { from { opacity: 1; } to { opacity: 1; } }
#fkApp input:-webkit-autofill, .floor-app input:-webkit-autofill, [data-no-autofill]:not([data-no-autofill=off]) input:-webkit-autofill {
    animation: noAutofill 1ms;
    -webkit-box-shadow: 0 0 0 1000px var(--panel) inset;
    -webkit-text-fill-color: var(--text);
}

/* "Look at <file>" under a file picker: the picked file in the preview box before it is saved (file-preview.js data-file-preview) */
.file-picked-preview { justify-self: start; align-self: flex-start; width: auto; margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Admin > Printers: a Private printer's people (sql/144) */
.printers-people-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.printers-people-list:empty { display: none; }
.printers-people-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.printers-people-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.printfile-production { margin: 4px 0 8px; }
.printers-cat { display: block; font-size: 13px; color: var(--muted); }

/* ---- Direct printing (Forms/Shared/_DirectPrint.cshtml, S_DirectPrint): a print page's Print button and its printer box ---- */
.dp-on { font-size: 14px; color: var(--muted); white-space: nowrap; }
.dp-on b { color: var(--text); }
.dp-change { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; cursor: pointer; font: inherit; }
.dp-pick .modal-body { grid-template-columns: minmax(0, 1fr); }
.modal.dp-pick { width: min(700px, calc(100vw - 24px)); }   /* Spanish: Cancel, Print from this browser and Print on one line */
@media screen and (max-width: 760px) {
    .dp-on { white-space: normal; flex-basis: 100%; text-align: center; }
}

/* ---- "Did all the tags print?" (Forms/Pallets/frmPalletTags): every tag with a tick box for the ones that didn't print ---- */
.tag-ask-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tag-ask-head .label { font-family: var(--label-font); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.tag-ask-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 2px 14px; max-height: 40vh;
                overflow-y: auto; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.tag-ask-list .check-line { padding: 4px 0; min-width: 0; }
.tag-ask-list .check-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------------------------------------------------------------
   Report a problem (S_ProblemReport, _ProblemReport, problem.js; Matt 11/13/2026)
   --------------------------------------------------------------------------------------------------------------------- */
.problem-report { width: min(560px, calc(100vw - 24px)); }
.problem-report .modal-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.problem-report textarea { width: 100%; min-width: 0; resize: vertical; }
.problem-pic { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.problem-pic[hidden] { display: none; }
.problem-pic span { flex: 1 1 auto; min-width: 0; }
.problem-thumb { width: 120px; max-height: 80px; object-fit: cover; object-position: top left; border: 1px solid var(--border); border-radius: 6px; }
.problem-done { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 600; color: var(--accent-ink); margin: 8px 0; }

/* Admin > Run SQL scripts (frmSqlScripts, sqlscripts.js): which database it runs on, the script's text, the buttons, the
   PROD box and one run's steps with their messages and results */
.sqls-where { display: grid; gap: 8px; }
.sqls-where-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sqls-where-line .sqls-db { font-size: 1.1em; }
.sqls-where .hint { margin: 0; }
.sqls-ms { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sqls-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sqls-actions form { display: contents; }
.sqls-code { margin: 0; padding: 12px; border-radius: 8px; background: var(--head-bg); border: 1px solid var(--border); font-family: var(--mono);
             font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }
.sqls-step-names { margin: 0; padding-left: 22px; display: grid; gap: 4px; }
.sqls-confirm { display: grid; gap: 12px; }
.sqls-confirm p { margin: 0; }
.sqls-danger { color: var(--danger-text); background: var(--danger-bg); border-radius: 8px; padding: 10px 12px; font-weight: 600; }
.sqls-warn { color: var(--wait); font-weight: 600; }
.sqls-word { width: 100%; min-width: 0; font-size: 18px; letter-spacing: 0.08em; }
.sqls-run-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sqls-run-head .sec-h { margin: 0; }
.sqls-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sqls-step { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.sqls-step.sqls-failed { border-color: var(--down); }
.sqls-step.sqls-skipped, .sqls-step.sqls-waiting { opacity: 0.65; }
.sqls-step-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sqls-error { color: var(--danger-text); font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.sqls-msgs { margin: 0; font-family: var(--mono); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); max-height: 220px; overflow-y: auto; }
.sqls-result { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.sqls-table { border-collapse: collapse; font-size: 13px; }
.sqls-table th, .sqls-table td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; white-space: nowrap; max-width: 420px; overflow: hidden; text-overflow: ellipsis; }
.sqls-table th { background: var(--head-bg); }
.sqls-null { color: var(--muted); font-style: italic; }
.sqls-note { color: var(--muted); }
@media screen and (max-width: 760px) {
    .sqls-actions .btn { flex: 1 1 100%; justify-content: center; }
    .sqls-code { max-height: 300px; font-size: 12px; }
}

/* =====================================================================================================================
   Display checker (Forms/Orders/frmDisplayChecker + _DisplayCheckRun, display-checker.js; the camera kiosk frmKioskDisplay,
   kiosk-display.js). Hook by hook (Matt, 11/14/2026): the whole photo with a mark on every hook (.dc-ov, .dc-mark: a blue
   number while setting up, green ✓ right, red ✕ wrong, orange ? needs another photo, gray not read yet), the hook cut out
   of a photo (.dc-clip), the photos taken (.dc-strip), a check's result and its problem hooks (.dc-issue).
   The marks lie on a photo, so their colours are the same in light and dark mode (--dc-good / --dc-wrong / --dc-again).
   ===================================================================================================================== */
.dc-intro { margin: 0 0 14px; }
.dc-warn { color: var(--warn-text); }
.dc-facts .dc-what b { font-size: 1.05em; }
.dc-small { font-size: 13px; margin: 8px 0 0; }
.dc-row-btns { white-space: nowrap; }
.dc-row-btns form { display: inline-flex; margin: 0 4px 0 0; }
.dc-recent { margin-top: 16px; }
.dc-log { margin-top: 14px; }
.dc-log > summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; }
.dc-steps-nav { margin: 0 0 12px; flex-wrap: wrap; }
.dc-step-off { opacity: 0.5; padding: 6px 12px; }

.dc-walk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dc-walk .sec-h { margin: 0; display: flex; align-items: center; gap: 8px; }
.dc-tell { margin: 0; font-size: 16px; }
.dc-sub { margin: 6px 0 0; font-size: 15px; }
.dc-buttons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-width: 760px; margin-top: 10px; }
.dc-buttons > .dc-tell, .dc-buttons > form:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dc-buttons .btn { justify-content: center; }
.dc-buttons form { margin: 0; display: grid; }
.dc-take { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.dc-take label.btn { cursor: pointer; }

/* The whole photo and its marks */
.dc-ov { position: relative; max-width: 760px; line-height: 0; }
.dc-ov img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.dc-ov-edit[data-dc-edit] img { cursor: crosshair; }
.dc-mark { position: absolute; transform: translate(-50%, -50%); width: clamp(16px, 3.6%, 30px); aspect-ratio: 1; border-radius: 50%;
           display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1;
           font: 700 clamp(9px, 1.7vw, 15px) / 1 var(--font, sans-serif); color: #ffffff; text-decoration: none;
           border: 2px solid #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.55); background: var(--dc-none); }
button.dc-mark { cursor: pointer; }
.dc-m-num { background: var(--dc-num); }
.dc-m-good { background: var(--dc-good); }
.dc-m-wrong { background: var(--dc-wrong); }
.dc-m-again { background: var(--dc-again); }
/* A hook a supervisor looked at and said right (Matt 11/16/2026): blue, not the AI's green */
.dc-m-person { background: var(--brk); }
.dc-m-none { background: var(--dc-none); opacity: 0.85; }
a.dc-mark.dc-m-wrong, a.dc-mark.dc-m-again { width: clamp(20px, 4.4%, 36px); z-index: 1; }
.dc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.dc-key { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; margin-right: 4px;
          color: #ffffff; font-weight: 700; font-size: 12px; flex: 0 0 auto; }
.dc-issue-head .dc-key { width: 28px; height: 28px; font-size: 16px; }
.dc-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 16px; }
.dc-bar { flex: 1 1 200px; max-width: 420px; height: 10px; border-radius: 999px; background: var(--head-bg); overflow: hidden; }
.dc-bar > span { display: block; height: 100%; background: var(--dc-good); }

/* A hook cut out of a photo (display-checker.js sets its shape and moves the photo) */
.dc-clip { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); aspect-ratio: 3 / 4; background: var(--head-bg); }
.dc-clip:not(.ready) img { visibility: hidden; }
.dc-clip img { position: absolute; left: 0; top: 0; max-width: none; height: auto; transform-origin: 0 0; }
.dc-nophoto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px;
              font-size: 13px; color: var(--muted); line-height: 1.3; }

/* The photos taken */
.dc-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.dc-thumb { margin: 0; min-width: 0; padding: 4px; border-radius: var(--radius); border: 2px solid transparent; }
.dc-thumb.bad { border-color: var(--danger-border); background: var(--danger-bg); }
.dc-thumb img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.dc-thumb figcaption { font-size: 12.5px; margin-top: 4px; line-height: 1.3; }
.dc-thumb figcaption small { display: block; color: var(--muted); }
/* A close-up with the number of every hook the AI found on it (Matt 11/17/2026: "the close-ups probably also need the
   overlays on them"): blue = clear, orange = seen but not clearly. Bigger, and the whole photo (not cut), so the marks line up. */
.dc-strip-big { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* Set up, close-ups: the whole photo and, on its right, why each hook isn't green yet (Matt 11/17/2026) */
.dc-ov-row { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 16px; align-items: start; }
.dc-why { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-height: 760px; overflow-y: auto; }
.dc-why .dc-sub { margin: 0; }
.dc-why-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); }
.dc-why-row .dc-key { width: 28px; height: 28px; font-size: 13px; margin: 0; }
.dc-why-line { display: block; font-size: 14px; line-height: 1.35; }
.dc-why-tip { display: block; margin-top: 4px; font-size: 13px; color: var(--warn-text); background: var(--warn-bg); border-radius: 6px; padding: 4px 8px; }
@media (max-width: 1100px) { .dc-ov-row { grid-template-columns: minmax(0, 1fr); } }
.dc-thumb-ov { position: relative; display: block; line-height: 0; }
.dc-thumb .dc-thumb-ov img { aspect-ratio: auto; height: auto; object-fit: fill; }
.dc-thumb-ov .dc-mark { width: clamp(16px, 7%, 26px); font-size: 11px; border-width: 1.5px; }

/* Set up, step 3: what is on each hook */
.dc-hooklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.dc-hookrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px; border-radius: var(--radius); border: 1px solid var(--border); }
.dc-hookrow-missing { border-color: var(--wait); }
.dc-hookwords { display: grid; gap: 6px; min-width: 0; }
.dc-hookhead { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.dc-no { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px;
         background: var(--dc-num); color: #ffffff; font-weight: 700; }

/* A check */
.dc-result { margin-bottom: 14px; border-left: 6px solid var(--border); }
.dc-result-pass { border-left-color: var(--dc-good); }
.dc-result-fail { border-left-color: var(--dc-wrong); }
.dc-result-unsure { border-left-color: var(--dc-again); }
.dc-result-head { display: flex; align-items: center; gap: 14px; }
.dc-result-head h2 { margin: 0; font-size: 22px; }
.dc-result-head p { margin: 2px 0; }
.dc-big { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: #ffffff;
          font-size: 28px; font-weight: 700; flex: 0 0 auto; }
.dc-counts { margin-bottom: 14px; }
.dc-c-good b { color: var(--dc-good); }
.dc-c-wrong b { color: var(--dc-wrong); }
.dc-c-again b { color: var(--dc-again); }
.dc-c-person b { color: var(--brk); }
.dc-check-cols { display: grid; grid-template-columns: minmax(280px, 560px) minmax(0, 1fr); gap: 14px; align-items: start; }
.dc-overview { position: sticky; top: 12px; }
.dc-issues { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.dc-issue { scroll-margin-top: 70px; }
.dc-issue-wrong { box-shadow: inset 5px 0 0 var(--dc-wrong); }
.dc-issue-again { box-shadow: inset 5px 0 0 var(--dc-again); }
.dc-issue:target { outline: 3px solid var(--focus); }
.dc-issue-head { display: flex; align-items: center; gap: 8px; }
.dc-issue-head .sec-h { margin: 0; }
.dc-note { margin: 6px 0 10px; }
.dc-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; max-width: 520px; }
.dc-pair figure { margin: 0; min-width: 0; }
.dc-pair figcaption { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.dc-pair small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.dc-decide { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dc-decide form { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; width: 100%; max-width: var(--form-max, 1000px); }
.dc-decide-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-allgood { color: var(--accent-ink); }

/* The camera kiosk (frmKioskDisplay): the cameras list with a live picture each, the handheld camera's box */
.kiosk-display .kiosk-who-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.kd-start { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* The AI numbering the hooks of a whole photo (WideReading, or the phone's photo just came in) */
.kd-reading { display: flex; align-items: center; gap: 16px; border: 2px solid var(--accent); }
.kd-reading .sec-h { margin: 0 0 4px; }
.kd-reading .dc-tell { margin: 0; }
.kd-spin { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--ring); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.kd-said-reading { color: var(--text); font-weight: 700; }
.kd-said-reading::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%;
                           border: 3px solid var(--ring); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .kd-spin, .kd-said-reading::before { animation-duration: 3s; } }
/* Matt 11/17/2026's flow: bars while the AI works, cut-outs beside why a hook isn't green, check mode */
.kd-reading-words { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.kd-eta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 8px; }
.dc-bar.kd-bar-big { display: block; max-width: none; height: 18px; }
.dc-bar.kd-bar-big > span { background: var(--accent); transition: width 0.5s ease-out; }
.kd-counts { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 18px; }
.dc-why-cam { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 6px; }
.dc-why-clip { aspect-ratio: 3 / 4; }
.dc-why-list { margin: 4px 0; padding-left: 20px; font-size: 14px; }
.dc-thumb-wait img { opacity: 0.6; }
.dc-thumb-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.kd-next { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.kd-next { align-items: stretch; }
.kd-next > .btn-primary, .kd-next-form { flex: 1 1 320px; display: flex; }
.kd-next-form .btn { flex: 1 1 auto; }
.kd-mode h1 { margin-top: 0; }
.btn.kd-huge { min-height: 96px; font-size: 26px; }

.kd-start h1 { margin: 0; }
.kd-cams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 12px 0; }
.kd-cam { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: var(--radius); border: 1px solid var(--border); }
.kd-cam-live { width: 100%; aspect-ratio: 16 / 9; background: #000000; border-radius: var(--radius); object-fit: contain; }
.kd-cam-live.kd-cam-off { opacity: 0.3; }
/* A camera mounted on its side: its live picture turned upright, the same way its photos are (kiosk-display.js grab) */
.kd-cam-live.kd-turn-90 { transform: rotate(90deg) scale(0.5625); }
.kd-cam-live.kd-turn-270 { transform: rotate(-90deg) scale(0.5625); }
.kd-cam-fields { display: grid; gap: 6px; min-width: 0; }
.kd-speed { display: grid; gap: 8px; margin: 12px 0; padding-top: 12px; border-top: 1px solid var(--border); }
.kd-speed-run { display: grid; gap: 8px; margin-top: 8px; }
.kd-speed-run h3 { margin: 0; }
.kd-speed-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.kd-speed-shot { display: grid; gap: 4px; min-width: 0; }
.kd-speed-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000000; border-radius: var(--radius); }
.kd-speed-shot a { display: block; }
.kd-hand .modal-body { display: grid; gap: 8px; }
.kd-live { width: 100%; max-height: 60vh; background: #000000; border-radius: var(--radius); object-fit: contain; }

@media screen and (max-width: 1100px) {
    .dc-check-cols { grid-template-columns: minmax(0, 1fr); }
    .dc-overview { position: static; }
}
@media screen and (max-width: 760px) {
    .dc-buttons { grid-template-columns: minmax(0, 1fr); }
    .dc-pair { gap: 6px; }
    .dc-row-btns { white-space: normal; }
    .dc-row-btns form { margin-bottom: 4px; }
    .dc-hookrow { grid-template-columns: 76px minmax(0, 1fr); }
    .dc-mark { width: clamp(14px, 4.4%, 24px); font-size: 9px; border-width: 1.5px; }
}

/* ==============================================================================   Scan on phone (Matt, 11/13/2026)
   The computer: phone-scan.js puts "Scan on phone" next to a PDF box and opens the QR code box (.phone-scan-dlg).
   The phone: Forms/Scan/frmPhoneScan + scanner.js, a page of its own (.ps-...), made for a phone held in one hand.
   ===================================================================================== */
.pscan-btn { margin-left: 8px; }
.field > .pscan-btn, .sh-coc > .pscan-btn { justify-self: start; margin-left: 0; }   /* in a form box it sits under the file box, as wide as its words */
.pscan-got { display: block; margin-top: 4px; color: var(--accent-ink); font-weight: 600; }
.phone-scan-dlg { width: min(600px, calc(100vw - 24px)); }
.phone-scan-dlg .modal-head h2 { margin: 0; font-size: 20px; }
.pscan-qr-row { display: flex; gap: 18px; align-items: center; }
.pscan-qr { flex: none; width: 210px; height: 210px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: #ffffff; }   /* a QR code is always black on white, dark mode too */
.pscan-qr svg { width: 100%; height: 100%; display: block; }
.pscan-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; line-height: 1.4; }
.pscan-note { margin: 0; color: var(--muted); line-height: 1.4; }
.pscan-status { margin: 0; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius); font-weight: 600; line-height: 1.35; }
.pscan-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.pscan-wait { background: var(--cyan-soft); color: var(--cyan-ink); }
.pscan-ok { background: var(--accent-soft); color: var(--accent-ink); }
.pscan-bad { background: var(--danger-bg); color: var(--danger-text); }
.pscan-gap { flex: 1; }
@media (max-width: 640px) {
    .pscan-qr-row { flex-direction: column; align-items: stretch; }
    .pscan-qr { align-self: center; }
    .pscan-btn { margin: 6px 0 0; }
}

body.ps-body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font, "Barlow", system-ui, sans-serif); }
.ps-app { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; }
.ps-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--bar-bg); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 2; }
.ps-logo { height: 28px; }
.ps-title { font-weight: 800; font-size: 17px; flex: 1; }
.ps-screen { flex: 1; display: flex; flex-direction: column; }
.ps-screen[hidden] { display: none; }
.ps-body-pad { flex: 1; padding: 16px; display: grid; gap: 14px; align-content: start; }
.ps-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: 14px; display: grid; gap: 6px; }
.ps-card[data-ps-time-card] { display: block; line-height: 1.5; }
.ps-card[data-ps-time-card][hidden] { display: none; }
.ps-big { margin: 0; font-size: 22px; font-weight: 700; }
.ps-muted { margin: 0; color: var(--muted); line-height: 1.4; }
.ps-error { margin: 0; padding: 12px; border-radius: var(--radius); background: var(--danger-bg); color: var(--danger-text); font-weight: 600; line-height: 1.4; }
.ps-foot { padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: var(--panel); border-top: 1px solid var(--border); position: sticky; bottom: 0; }
.ps-foot .btn-full { justify-content: center; }
.ps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ps-seg { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ps-seg button { flex: 1; padding: 10px 4px; border: 0; background: var(--panel); color: var(--text); font: inherit; font-weight: 600; }
.ps-seg button.on { background: var(--select-bg); color: var(--on-select); }
.ps-camera { background: #000000; }
.ps-view { position: relative; flex: 1; min-height: 60dvh; overflow: hidden; }
.ps-view video, .ps-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ps-tip { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 24px); background: rgba(0, 0, 0, 0.6); color: #ffffff; padding: 8px 14px; border-radius: 20px; font-weight: 600; text-align: center; }
.ps-cambar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); background: #000000; }
.ps-cam-side { justify-self: center; }
.ps-shutter { width: 76px; height: 76px; border-radius: 50%; background: #ffffff; border: 6px solid var(--accent); }
.ps-shutter:active { transform: scale(0.94); }
.ps-stage { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 14px; background: #2c3338; min-height: 50dvh; }
.ps-stage > img { max-width: 100%; max-height: 62dvh; background: #ffffff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); }
.ps-corners { position: relative; display: inline-block; touch-action: none; }
.ps-corners img { display: block; max-width: calc(100vw - 28px); max-height: 62dvh; }
.ps-corners svg { position: absolute; left: 0; top: 0; overflow: visible; }
.ps-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.55); color: #ffffff; font-weight: 700; font-size: 18px; }
.ps-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ps-thumb { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; }
.ps-thumb img { display: block; width: 100%; aspect-ratio: 8.5 / 11; object-fit: contain; background: #ffffff; }
.ps-no { position: absolute; left: 4px; top: 4px; background: var(--select-bg); color: var(--on-select); border-radius: 10px; padding: 0 8px; font-weight: 700; font-size: 13px; }
.ps-del, .ps-left { position: absolute; top: 2px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--panel); font-weight: 800; }
.ps-del { right: 2px; color: var(--danger-text); }
.ps-left { right: 38px; color: var(--text); }
.ps-add { border: 2px dashed var(--border-hover); border-radius: var(--radius); background: transparent; color: var(--muted); font: inherit; font-weight: 700; min-height: 140px; }
.ps-center { text-align: center; align-content: center; }
.ps-check { font-size: 72px; color: var(--accent-ink); line-height: 1; }

/* "New" flag (site.js, CLAUDE.md rule 34): a small green pill after a new button's words, for 7 days */
.new-flag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--on-accent);
            font-family: var(--label-font); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.5; vertical-align: middle; }

/* ---- Face clock kiosk (/kiosk/faceclock, frmKioskFaceClock; Set up a face, frmKioskFaceSetup; Matt 11/14/2026) ----
   Every word is in English and Spanish at once (Model.B: .fc-en then .fc-es). The camera on the left, the side panel or a
   big result on the right; a result fills the whole width so the next person sees it from a few steps away. */
.fc-en { display: block; }
.fc-es { display: block; font-size: 0.8em; font-weight: 500; color: var(--muted); }
.fc-kiosk :is(.btn, .chip, label, .fc-setup-steps li, .fc-setup-by, .fc-lbl, .fc-pick-item strong, .fc-next, .fc-setup-btn) > :is(.fc-en, .fc-es) { display: inline; }
.fc-kiosk :is(.btn, .chip, label, .fc-setup-steps li, .fc-setup-by, .fc-lbl, .fc-next, .fc-setup-btn) > .fc-es::before { content: " · "; }
.fc-kiosk .btn .fc-es, .fc-kiosk .chip .fc-es { color: inherit; opacity: 0.8; font-size: 0.9em; }
.fc-kiosk .kiosk-result { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 24px; }
.fc-kiosk .kiosk-result .fc-es { color: inherit; opacity: 0.85; }
.fc-bar-title small { display: block; font-size: 0.7em; font-weight: 500; color: var(--muted); }

.fc-kiosk { padding-bottom: 56px; }   /* room under the page for the Set up a face button in the corner */
.fc-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 18px; min-height: calc(100vh - 150px); }
.fc-main.fc-showing-result { grid-template-columns: minmax(0, 1fr); }
.fc-main.fc-showing-result .fc-cam { display: none; }
.fc-cam { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--fc-cam-bg); min-height: 420px; }
.fc-cam video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }   /* a mirror, like a mirror */
.fc-cam video.fc-no-mirror { transform: none; }   /* a camera facing away from the screen (faceclock.js mirrorFor, Matt 11/18/2026) */
.fc-live { position: absolute; top: 14px; left: 14px; background: var(--fc-scrim); color: #ffffff; font-family: var(--label-font); font-weight: 700;
           font-size: 14px; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 6px; display: flex; gap: 8px; align-items: center; }
.fc-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--down); }
.fc-oval { position: absolute; left: 50%; top: 10%; width: min(300px, 46%); aspect-ratio: 3 / 4; transform: translateX(-50%); border: 4px dashed var(--panel); border-radius: 50%; opacity: 0.7; pointer-events: none; }
.fc-box { position: absolute; pointer-events: none; }
.fc-box b { position: absolute; width: 22%; height: 22%; border: 0 solid var(--accent); }
.fc-box b:nth-child(1) { left: 0; top: 0; border-left-width: 6px; border-top-width: 6px; border-top-left-radius: 10px; }
.fc-box b:nth-child(2) { right: 0; top: 0; border-right-width: 6px; border-top-width: 6px; border-top-right-radius: 10px; }
.fc-box b:nth-child(3) { left: 0; bottom: 0; border-left-width: 6px; border-bottom-width: 6px; border-bottom-left-radius: 10px; }
.fc-box b:nth-child(4) { right: 0; bottom: 0; border-right-width: 6px; border-bottom-width: 6px; border-bottom-right-radius: 10px; }
.fc-box.fc-box-bad b { border-color: var(--down); }
.fc-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; background: var(--fc-scrim); color: #ffffff; text-align: center; }
.fc-caption strong { display: block; font-size: 30px; font-weight: 700; }
.fc-caption span { display: block; font-size: 20px; opacity: 0.85; }

.fc-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fc-lbl { font-family: var(--label-font); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.fc-time { font-family: var(--mono); font-weight: 600; font-size: 60px; line-height: 1; }
.fc-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 20px; }
.fc-steps li { display: flex; gap: 12px; align-items: flex-start; }
.fc-agency { font-size: 19px; border: 2px solid var(--wait); }
.fc-agency strong { display: block; margin-bottom: 6px; }
.fc-loading { color: var(--muted); font-size: 17px; margin: 0; }
.fc-chk { display: flex; gap: 12px; align-items: center; font-size: 21px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fc-chk:last-child { border-bottom: 0; }
.fc-ic { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.fc-ic.ok { background: var(--accent-soft); color: var(--accent-ink); }
.fc-ic.wait { background: var(--cyan-soft); color: var(--cyan-ink); }

.fc-result { border-radius: var(--radius-lg); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
             padding: 22px 28px; gap: 6px; min-height: calc(100vh - 150px); }
.fc-result h1 { font-size: 48px; margin: 6px 0 0; font-weight: 800; }
.fc-result .fc-h-es { font-size: 30px; font-weight: 600; margin: 0; opacity: 0.85; }
.fc-result .fc-what { font-size: 34px; font-weight: 700; margin: 8px 0 0; }
.fc-result .fc-what-es { font-size: 24px; margin: 0; opacity: 0.85; }
.fc-result .fc-sub, .fc-result .fc-back { font-size: 19px; opacity: 0.85; margin: 4px 0 0; }
.fc-result .fc-sub .fc-es, .fc-result .fc-back .fc-es, .fc-result .fc-what .fc-es { color: inherit; }
.fc-tick { width: 84px; height: 84px; border-radius: 50%; background: var(--panel); color: var(--text); display: grid; place-items: center; font-size: 48px; font-weight: 800; }
.fc-in { background: var(--accent); color: var(--on-accent); }
.fc-in .fc-tick { color: var(--accent-ink); }
.fc-out { background: var(--select-bg); color: var(--on-select); }
.fc-walk { background: var(--warn-bg); color: var(--warn-text); border: 3px solid var(--warn-border); }
.fc-bad { background: var(--danger-bg); color: var(--danger-text); border: 3px solid var(--danger-border); }
.fc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 560px; margin-top: 10px; }
.fc-stats > div { background: var(--panel); color: var(--text); border-radius: var(--radius); padding: 12px; font-family: var(--label-font); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.fc-stats .num { display: block; font-family: var(--mono); font-size: 34px; letter-spacing: 0; text-transform: none; }
.fc-next { margin-top: 12px; min-width: min(520px, 100%); padding: 18px 30px; border-radius: var(--radius-lg); border: 0; background: var(--panel); color: var(--text);
           font: inherit; font-size: 30px; font-weight: 800; cursor: pointer; box-shadow: var(--shadow-up); }
.fc-next .fc-es { color: inherit; font-size: 0.75em; }
.fc-notyou { margin-top: 6px; }
/* "Is this you?" (Matt 11/16/2026): the name big, Yes / No big enough for a gloved finger */
.fc-ask { background: var(--panel); color: var(--text); border: 3px solid var(--accent); }
.fc-ask h1 { font-size: 64px; }
.fc-ask-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 760px; margin-top: 14px; }
.fc-ask-btns .btn { min-height: 110px; font-size: 32px; font-weight: 800; justify-content: center; flex-direction: column; }
.fc-ask-btns .btn .fc-es { color: inherit; font-size: 0.65em; }
.fc-print { font-size: 24px; margin: 6px 0 0; display: flex; flex-direction: column; }
.fc-print span { font-size: 0.8em; opacity: 0.85; }
@media (max-width: 640px) {
    .fc-ask h1 { font-size: 40px; }
    .fc-ask-btns { grid-template-columns: 1fr; }
}
.fc-setup-btn { position: fixed; right: 16px; bottom: 14px; background: var(--panel); color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
                padding: 8px 16px; font: inherit; font-size: 15px; cursor: pointer; opacity: 0.85; }
.fc-setup-btn .fc-es { font-size: 1em; }

/* Set up a face */
.fc-setup-head h1 .fc-es { font-size: 0.6em; }
.fc-setup-by { color: var(--muted); font-size: 16px; }
.fc-setup-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 18px; color: var(--muted); }
.fc-setup-steps li { display: flex; align-items: center; gap: 8px; }
.fc-setup-steps li.is-on { color: var(--text); font-weight: 700; }
.fc-setup-steps li:not(.is-on) .step-no { background: var(--line); color: var(--muted); }
.fc-setup-msg { font-size: 22px; }
.fc-pick-row { display: flex; gap: 10px; }
.fc-pick-row .input { flex: 1; min-width: 0; font-size: 22px; min-height: 52px; }
.fc-pick-list { list-style: none; margin: 14px 0 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; max-width: var(--form-max); }
.fc-pick-list li + li { border-top: 1px solid var(--line); }
.fc-pick-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 14px 18px; font-size: 20px; color: var(--text); text-decoration: none; }
.fc-pick-item:hover, .fc-pick-item:focus-visible { background: var(--hover-bg); }
.fc-consent { font-size: 20px; line-height: 1.45; }
.fc-read-lbl { font-weight: 700; margin: 6px 0; }
.fc-consent-list { margin: 0 0 12px; padding-left: 24px; max-width: 1000px; }
.fc-consent-list li { margin-bottom: 10px; }
.fc-consent-list .fc-es { font-size: 0.85em; }
.fc-answer { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0; }
.fc-answer .btn-big { min-width: 240px; }
.fc-shots-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 18px; }
.fc-cam-setup { min-height: 460px; }
.fc-shots-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fc-shot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 18px; }
.fc-shot-list li { display: flex; gap: 12px; align-items: center; padding: 8px; border: 2px solid var(--border); border-radius: var(--radius); }
.fc-shot-list li.is-on { border-color: var(--cyan); background: var(--cyan-soft); }
.fc-shot-list li.is-done { border-color: var(--accent); }
.fc-thumb { flex: none; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; background: var(--head-bg); display: grid; place-items: center; }
.fc-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.fc-badge-step { display: grid; gap: 16px; justify-items: start; }
/* The badge: the same as rptBadge (name in Tahoma, the time card's Code 39 bars with the number, the date printed). Paper:
   always black on white, in dark mode too (rule 15). */
.fc-badge { width: 3.375in; min-height: 2.125in; padding: 0.15in 0.2in; background: #ffffff; color: #000000; border: 1px solid var(--border); border-radius: 8px;
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-family: Tahoma, Verdana, sans-serif; }
.fc-badge-name { font-size: 20pt; font-weight: 700; text-align: center; line-height: 1.1; }
.fc-badge-bar svg { display: block; height: 0.55in; width: auto; max-width: 3in; }
.fc-badge-code { font-size: 11pt; letter-spacing: 0.1em; }
.fc-badge-date { font-size: 8pt; margin-top: 4px; }
@media (max-width: 900px) {
    .fc-main, .fc-shots-cols { grid-template-columns: minmax(0, 1fr); }
    .fc-cam { min-height: 52vh; }
    .fc-result h1 { font-size: 38px; }
    .fc-result .fc-what { font-size: 26px; }
}
@media print {
    .fc-setup-page > :not(.fc-badge-step), .fc-badge-step > :not(.fc-badge) { display: none !important; }
    .fc-badge-step { padding: 0; border: 0; box-shadow: none; }
    .fc-badge { border: 0; }
    body:has(.fc-badge-step) .kiosk-screen-bar, body:has(.fc-badge-step) .fc-setup-btn { display: none !important; }
}

/* ---- The temp check-in (Akshitha, 11/20/2026): the kiosk /kiosk/tempcheckin and People > Staffing Partners > Temp check-in
   (_TempCheckIn, _TempTag). Big touch targets like VB's kiosk; the name tiles are pink when the temp is Do Not Return or not
   active (VB Color.LightPink, --danger-bg here so it works in dark mode). ---- */
.tci-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.tci-ask { margin: 0 0 12px; font-size: 30px; }
.tci-find { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.tci-find .tci-ssn { flex: 0 1 260px; min-width: 0; letter-spacing: 0.3em; text-align: center; }
.tci-start-btns, .tci-confirm-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.tci-result { font-size: 22px; }
.tci-result small { display: block; font-size: 17px; opacity: 0.9; }
.tci-dir-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.tci-dir-top .tci-ask { margin: 0; }
.tci-filter { max-width: 560px; margin-bottom: 14px; }
.tci-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.tci-tile[hidden] { display: none; }   /* .tci-tile is a grid: hidden must win (the search and the pink tiles) */
.tci-tile { display: grid; gap: 6px; width: 100%; min-height: 96px; padding: 14px 12px; border: 1px solid var(--border); border-radius: var(--radius);
            background: var(--panel); color: var(--text); cursor: pointer; text-align: center; font: inherit; }
.tci-tile:hover, .tci-tile:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.tci-tile.tci-blocked { background: var(--danger-bg); border-color: var(--danger-border); }
.tci-tile-name { font-size: 21px; font-weight: 700; overflow-wrap: anywhere; }
.tci-tile-ssn { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.tci-confirm, .tci-done { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tci-confirm-text { flex: 1 1 320px; min-width: 0; }
.tci-add .g2 { max-width: var(--form-max, 1000px); }
.tci-add .btn-full { max-width: var(--form-max, 1000px); margin-top: 8px; }
/* The tag: 2.29 x 3 in like VB rptLabel, black on white in both modes (it is paper) */
.tci-tag { width: 2.29in; height: 3in; padding: 0.05in 0.17in 0 0.05in; box-sizing: border-box; background: #ffffff; color: #000000;
           border: 1px solid var(--border); border-radius: 6px; font-family: Arial, sans-serif; font-weight: 700; text-align: center;
           flex: none; overflow: hidden; }
/* Every line the size and height of VB rptLabel (Akshitha 11/23/2026: "exactly" like the desktop's): a 2.07 in column; names
   Arial 24 pt bold in 0.34 in rows, date and shift 14 pt bold in 0.23 in rows, EQP 14 pt bold in 0.46 in, the Code 39 0.57 in
   tall with 0.1 in each side, the QR 0.57 in square */
.tci-tag > div { width: 2.07in; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; }
.tci-tag-name { height: 0.3386in; font-size: 24pt; }
.tci-tag-line { height: 0.23in; font-size: 14.14pt; }
.tci-tag > .tci-tag-eqp { height: 0.4566in; font-size: 14.14pt; white-space: normal; line-height: 1.1; }
.tci-tag-bar { height: 0.5663in; padding: 0 0.1in; box-sizing: border-box; }
.tci-tag .tci-tag-bar svg.barcode-svg { display: block; width: 100%; height: 100%; }   /* the SVG stretches to its box */
.tci-tag-qr { height: 0.5663in; }
.tci-tag .tci-tag-qr svg { display: block; width: 0.5663in; height: 0.5663in; }
/* No size of its own (Akshitha 11/23/2026, a Zebra with taller labels): a 2.29 x 3 page was put in the middle of the longer
   label, so the tag printed low. The label is the printer's own; the tag prints from its top edge like VB rptLabel. */
@page tcitag { size: auto; margin: 0; }   /* auto = the printer's label (site.css part 1 makes every page Letter otherwise) */
@media print {
    body:has(.tci-done) .kiosk-screen-bar, body:has(.tci-done) .app-bar, body:has(.tci-done) nav.tabs, .tci-page > :not(.tci-done),
    .tci-done > :not(.tci-tag), .tci-page .page-head { display: none !important; }
    /* the whole page is the 2.29 x 3 label (a page name on the tag alone would put a blank letter page before and after it) */
    body:has(.tci-done) { page: tcitag; margin: 0; padding: 0; background: #ffffff; }
    body:has(.tci-done) main, body:has(.tci-done) .content, .tci-page { margin: 0 !important; padding: 0 !important; gap: 0; max-width: none; }
    .tci-done { padding: 0; margin: 0; border: 0; box-shadow: none; background: none; display: block; }
    /* VB's page on the label: from its left and top edges, the blank strip above the name as VB's labels print it */
    .tci-tag { border: 0; border-radius: 0; margin: 0; height: auto; padding-top: 0.32in; }
}
@media screen and (max-width: 760px) {
    .tci-ask { font-size: 24px; }
    .tci-tile { min-height: 72px; }
    .tci-tile-name { font-size: 18px; }
}

/* People > Face clock (frmFaceClock) */
.fc-keep { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; color: var(--muted); }
.fc-keep b { color: var(--text); }
.fc-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.fc-filter .field { margin: 0; }
.fc-row-photos { display: inline-flex; gap: 4px; }
.fc-row-photo { display: block; width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--head-bg); }

/* Reports > 3M COMS / Due Date (frm3MComs): the box the rows are pasted into, and the Update Comment's colours (VB's sheet:
   green = updated, orange = the warning, pink = ignored). */
.coms-form { grid-template-columns: minmax(0, 1fr); }
.coms-rows { width: 100%; min-width: 0; font-family: var(--mono, monospace); white-space: pre; }
.grid td.coms-updated { color: var(--accent-ink); font-weight: 600; }
.grid td.coms-warning { background: var(--warn-bg); color: var(--warn-text); }
.grid td.coms-ignored { background: var(--danger-bg); color: var(--danger-text); }
@media screen and (max-width: 760px) {
    .grid td.coms-updated, .grid td.coms-warning, .grid td.coms-ignored { white-space: normal; overflow-wrap: anywhere; min-width: 0; max-width: 100%; flex-shrink: 1; }
}

/* ---- 3M Needs Report (Forms/Reports/frm3MNeeds, Jose 11/17/2026): the locations and options of the desktop's frm3MNeeds
   side by side, Refresh Data at the right; stacked on a phone ---- */
.tmn-form { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px 16px; margin-bottom: 12px; }
.tmn-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px 12px; margin: 0; min-width: 0; display: grid; gap: 8px; align-content: start; }
.tmn-box legend { font-family: var(--label-font); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.tmn-checks { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 6px 18px; }
.tmn-all { display: flex; gap: 8px; }
.tmn-box .check-line { min-width: 0; }
.tmn-go { display: flex; align-items: flex-end; }
.tmn-canrun { color: inherit; text-decoration: underline; }
@media screen and (max-width: 760px) {
    .tmn-form { flex-direction: column; }
    .tmn-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tmn-go .btn { width: 100%; }
}

/* Reports > 3M Needs Finished Items (frm3MNeedsItems): the add line, the boxes in the list's rows, the paste box's buttons */
.tmi-add .tmi-part { width: 420px; }
.tmi-inline { display: flex; gap: 6px; align-items: center; }
.tmi-inline .input { width: 110px; min-width: 0; }
.tmi-paste { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
.tmi-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
@media screen and (max-width: 760px) {
    .tmi-add .tmi-part { width: 100%; }
}

/* Reports > Most Recent Transactions (frmMostRecentTransactions): "Show [10] most recent transactions for [person]" */
.mrt-form .mrt-n { width: 120px; }
.mrt-form .mrt-who { width: 320px; }
@media screen and (max-width: 760px) {
    .mrt-form .mrt-n, .mrt-form .mrt-who { width: 100%; }
}

/* Reports > Search Job Materials (frmSearchJobMaterials): the parts list, the warehouse ticks, the grouped result with the
   desktop's colours (red / green numbers, pink rows that give nothing, orange 3M-excluded components) and the pick list */
.sjm-form { grid-template-columns: minmax(0, 1fr); }
.sjm-step { display: flex; align-items: flex-start; gap: 10px; }
.sjm-step > .step-no { margin-top: 26px; flex: none; }
.sjm-step > .report-filters, .sjm-step > fieldset { flex: 1 1 auto; min-width: 0; }
.sjm-add { margin: 0; }
.sjm-add .sjm-part { width: 360px; max-width: 100%; }
.sjm-add .sjm-qty { width: 130px; }
.sjm-line-qty { width: 120px; }
.sjm-wh { display: flex; flex-wrap: wrap; gap: 8px 22px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 0; }
.sjm-wh legend { padding: 0 6px; font-weight: 600; }
.sjm-wh-note { flex-basis: 100%; margin: 0; }
.sjm-options { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.sjm-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.sjm-paste { font-family: var(--mono); min-height: 180px; }
.sjm-ask { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.sjm-grid tr.grid-group > td { line-height: 1.6; }
.sjm-h { display: inline-block; margin-right: 14px; font-weight: 400; }
.sjm-h > span { color: var(--muted); }
.sjm-h b { font-weight: 600; }
.sjm-short { color: var(--danger-text); }
.sjm-ok { color: var(--accent-ink); }
.grid tbody tr.sjm-unused > td { background: var(--danger-bg); }
.sjm-pick-bar { gap: 10px; }
.sjm-print-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.sjm-print-title { font-size: 16px; text-decoration: underline; }
.sjm-print-who { text-align: right; font-size: 13px; }
.sjm-print-parts { margin: 8px 0 12px; font-size: 13px; }
.sjm-pick { width: 100%; border-collapse: collapse; font-size: 13px; }
.sjm-pick th { text-align: center; font-weight: 700; border-bottom: 2px solid var(--text); padding: 6px 4px; }
.sjm-pick td { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.sjm-pick tbody tr:nth-child(even) > td { background: var(--head-bg); }
.sjm-nocolor .sjm-pick tbody tr:nth-child(even) > td { background: none; }
.sjm-pick .sjm-heavy { text-decoration: underline; }
.sjm-pick .sjm-partial { font-weight: 700; }
@media screen and (max-width: 760px) {
    .sjm-add .sjm-part, .sjm-add .sjm-qty { width: 100%; }
    .sjm-step > .step-no { display: none; }
    .sjm-print { overflow-x: auto; }
}
/* Printing the pick list: only the sheet, black on white like the desktop's report (light grey bands unless Hide Row Color) */
@media print {
    body:has(.sjm-print) :not(:has(.sjm-print)):not(.sjm-print):not(.sjm-print *) { display: none !important; }
    body:has(.sjm-print), body:has(.sjm-print) :has(.sjm-print) { display: block !important; padding: 0 !important; margin: 0 !important;
        border: 0 !important; box-shadow: none !important; background: #ffffff !important; overflow: visible !important; max-width: none !important; }
    .sjm-print { color: #000000; padding: 0.4in !important; font-family: Arial, sans-serif; border: 0 !important; box-shadow: none !important; }
    .sjm-print .no-print { display: none !important; }
    .sjm-pick th { border-bottom-color: #000000; }
    .sjm-pick td { border-bottom: 0; }
    .sjm-pick tbody tr:nth-child(even) > td { background: #d3d3d3; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .sjm-nocolor .sjm-pick tbody tr:nth-child(even) > td { background: #ffffff; }
    .sjm-pick thead { display: table-header-group; }
    .sjm-pick tr { break-inside: avoid; }
}

/* Reports > 12 Month Usage (frm12MonthUsage): the part box, and the print has only the desktop's printed columns */
.report-filters .tmu-part { width: 380px; }
@media print {
    .tmu-grid .tmu-noprint { display: none; }
}
@media screen and (max-width: 760px) {
    .report-filters .tmu-part { width: 100%; }
}

/* Reports > Verify Pallets To Ship (frmVerifyPalletsToShip): the customer box and the desktop-filter box beside it */
.report-filters .vps-customer { width: 420px; }
.report-filters .vps-standard { align-self: center; }
@media screen and (max-width: 760px) {
    .report-filters .vps-customer { width: 100%; }
}

/* Reports > High Level Item Report (frmHighLevelItemReport): the desktop's three groups of choices side by side, Run Report at
   the right; stacked on a phone */
.hli-form { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px 16px; }
.hli-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px 12px; margin: 0; min-width: 0; display: grid; gap: 6px; align-content: start; }
.hli-box legend { font-family: var(--label-font); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.hli-range { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.hli-range .input { width: 160px; min-width: 0; }
#hliCustomer { width: 320px; max-width: 100%; }
.hli-go { display: flex; align-items: flex-end; }
@media screen and (max-width: 760px) {
    .hli-form { flex-direction: column; }
    .hli-go .btn, #hliCustomer { width: 100%; }
}

/* Reports > Station Part History (frmStationPartHistory): the part and station boxes */
.report-filters .sph-part { width: 380px; }
.report-filters .sph-station { width: 260px; }
@media screen and (max-width: 760px) {
    .report-filters .sph-part, .report-filters .sph-station { width: 100%; }
}

/* =====================================================================================================================
   Production Schedule > Source Data (Forms/ProductionSchedule/frmSourceData, VB frmPSFactsRed; Jose 11/19/2026). The cell
   colours are in orders.css (the desktop's, the same in light and dark).
   ===================================================================================================================== */
.source-data .sd-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.source-data .sd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.source-data .sd-inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-width: 0; }
.source-data .sd-choice { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.source-data .sd-label { font-family: var(--label-font); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.source-data .sd-eqp .input { width: 200px; min-width: 0; }
.source-data .sd-result { margin: 0; color: var(--text); }
.sd-grid td { white-space: nowrap; }
.sd-grid .sd-link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.sd-grid td.sd-yes, .sd-grid td.sd-dup { color: #ffffff; font-weight: 700; }
.sd-grid td.sd-yes { background: var(--sd-yes); }
.sd-grid td.sd-dup { background: var(--sd-dup); }
.sd-grid td.sd-yes .sd-link { color: #ffffff; }
.sd-grid td.sd-pick-done { background: var(--sd-pick-done); color: var(--ot-ink); }
.sd-grid td.sd-pick-part { background: var(--sd-pick-part); color: var(--ot-ink); }
.sd-grid td.sd-pick-none { background: var(--sd-pick-none); color: var(--ot-ink); }
.source-data .sd-steps { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 4px; }
.source-data .sd-pair { display: flex; gap: 10px; margin-bottom: 8px; }
.source-data .sd-pair span { color: var(--muted); min-width: 150px; }
@media screen and (max-width: 760px) {
    .source-data .sd-eqp, .source-data .sd-eqp .input { width: 100%; }
}

/* =====================================================================================================================
   Production Schedule > Sullivan Schedule (Forms/ProductionSchedule/frmSullivanSchedule, VB frmSullivanJobs; Jose
   11/24/2026). VB gv1_rowcellStyle: the whole row in its order's Order Tracker colour (orders.css), white text on red; the
   Scheduled Date is the link that opens the Needed Date box. The box is Source Data's.
   ===================================================================================================================== */
.sj-grid td { white-space: nowrap; }
.sj-grid tr.sj-color > td { background: var(--ot-c); color: var(--ot-ink); }
.sj-grid tr.sj-color.ot-red > td { color: #ffffff; }
.sj-grid tr.sj-color > td a, .sj-grid tr.sj-color > td .sd-link { color: inherit; }
.sj-grid .sd-link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.sullivan-schedule .sd-pair { display: flex; gap: 10px; margin-bottom: 8px; }
.sullivan-schedule .sd-pair span { color: var(--muted); min-width: 150px; }
@media screen and (max-width: 760px) {
    /* a card: the colour only on its Status Code badge, not cell by cell */
    .sj-grid tr.sj-color > td, .sj-grid tr.sj-color.ot-red > td { background: none; color: inherit; }
    .sj-grid tr.sj-color > td:nth-child(12) { background: var(--ot-c); color: var(--ot-ink); font-weight: 700; }
    .sj-grid tr.sj-color.ot-red > td:nth-child(12) { color: #ffffff; }
    .sj-grid tr.sj-color > td .sd-link { color: var(--link); }
}

/* =====================================================================================================================
   Production Schedule > Pick List (Forms/ProductionSchedule/frmPickList, VB frmPickList; Jose 11/24/2026). The choices, the
   desktop's cell colours (GridView1_RowCellStyle: Priority not Normal dark red with white bold words, a part-picked Pick
   Status orange, Notes beige), the open line (VB's Wheat) and the boxes' links and pallet box.
   ===================================================================================================================== */
.pick-list .pl-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.pick-list .pl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.pick-list .pl-label { font-family: var(--label-font); font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pick-list .pl-result { margin: 0; color: var(--text); }
.pl-grid td { white-space: nowrap; }
.pl-grid td.pl-priority { background: var(--pl-priority); color: #ffffff; font-weight: 700; }
.pl-grid td.pl-partial { background: var(--pl-partial); color: var(--ot-ink); font-weight: 700; }
.pl-grid td.pl-note { background: var(--pl-note); color: var(--ot-ink); font-weight: 700; }
/* VB GridView1_RowStyle: an open line Wheat; GridView2_RowStyle: its components FloralWhite (orders.css variables) */
.pl-grid tr.pl-open > td:not(.pl-priority):not(.pl-partial):not(.pl-note) { background: var(--pl-open); color: var(--ot-ink); }
.pl-grid th.pl-x, .pl-grid td.pl-x { width: 34px; padding-left: 8px; padding-right: 4px; }
.pl-grid .pl-expand { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 4px; background: var(--panel); color: var(--text);
    font: 700 15px/1 var(--label-font); cursor: pointer; padding: 0; }
.pl-grid tr.pl-detail > td { background: var(--pl-detail); padding: 6px 10px 12px 42px; white-space: normal; }
.pl-detail-box { overflow-x: auto; max-width: calc(100vw - 120px); }
.pl-grid .pl-comp-grid { width: auto; background: var(--pl-detail); border: 1px solid var(--border); }
.grid-wrap[data-grid] .pl-comp-grid thead th { position: static; }
.pl-comp-grid td, .pl-comp-grid th { padding: 6px 10px; color: var(--ot-ink); }
.pl-grid .pl-link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.pl-grid td.pl-partial .pl-link, .pl-grid td.pl-note .pl-link { color: inherit; }
.pl-grid .pl-note-btn { max-width: 400px; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.pick-list .sd-pair { display: flex; gap: 10px; margin-bottom: 8px; }
.pick-list .sd-pair span { color: var(--muted); min-width: 170px; }
.pick-list .pl-add { margin: 10px 0; }
.pick-list .pl-add-row { display: flex; gap: 8px; min-width: 0; }
.pick-list .pl-add-row .input { width: 220px; min-width: 0; }
.pick-list .modal-foot .inline-form { margin: 0; }
.pick-list .modal-body { min-width: 0; }
.pick-list .modal .grid-wrap { max-width: 100%; min-width: 0; overflow: hidden; }
.pick-list .modal .grid-x { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
@media screen and (max-width: 760px) {
    .pick-list .pl-add-row .input { flex: 1; width: auto; }
    .pick-list .sd-pair span { min-width: 120px; }
}
@media print {
    /* Print Report: the list only (VB printed the grid, landscape) */
    .pick-list .page-head .btn, .pick-list .pl-top .seg, .pick-list .grid-bar { display: none !important; }
}

/* =====================================================================================================================
   Production Schedule > Source Data > Run Stacker (Forms/ProductionSchedule/frmStacker, VB frmRackOrders; 11/19/2026).
   The two tabs' boxes, the warning (VB lblWarning, red bold), the Firm/Planned cell and the picked line (stacker.js).
   ===================================================================================================================== */
.stacker .stk-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.stacker .stk-tabs { justify-self: start; }
.stacker .stk-pane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.stacker .stk-pane[hidden] { display: none; }
.stacker .stk-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.stacker .stk-top .hint { margin: 0; }
.stacker .stk-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; min-width: 0; }
.stacker .stk-date .input { width: 180px; min-width: 0; }
.stacker .stk-station { width: 240px; min-width: 0; }
.stacker .stk-warning { margin: 0; align-self: center; color: var(--danger-text); font-weight: 700; font-size: 16px; }
.stk-grid .stk-firm { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.stk-grid[data-stk-movable] tbody tr[data-stk-key] { cursor: pointer; }
.stk-grid tbody tr.stk-focus td { background: var(--hover-bg); box-shadow: inset 0 2px 0 var(--accent), inset 0 -2px 0 var(--accent); }
@media screen and (max-width: 760px) {
    .stacker .stk-date, .stacker .stk-date .input, .stacker .stk-station { width: 100%; }
    .stacker .stk-row .btn { flex: 1 1 auto; }
    .stacker .stk-row .spacer { display: none; }
}

/* Trailer Paperwork (Forms/Reports/frmTrailerPaperwork): the load box with Search / Clear, then the load's files */
.tp-search .field { max-width: var(--form-max); margin: 0; }
.tp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tp-row .input { width: 220px; max-width: 100%; }
.tp-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.tp-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; min-width: 0; }
.tp-list .code { color: var(--muted); overflow-wrap: anywhere; }
.tp-pod { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

/* Prepaid Shipment Staging Report's pick list (Forms/Reports/frmPrepaidShipmentStaging, ?picklist=true): a short list to
   print; on a phone it scrolls sideways in its own box and the title row wraps, so the page never does */
.pss-pick .page-head { flex-wrap: wrap; }
.pss-scroll { overflow-x: auto; overscroll-behavior-x: contain; max-width: 100%; }

/* Columns that stay put and columns you can make narrower (wwwroot/js/grid-cols.js; Source Data, 11/24/2026). The freeze
   pane is one copy of the stuck columns' cells, stuck to the left of the scroll box as one piece (a sticky cell each was far
   too slow on 1,900 lines); the grip on the right edge of a column title; the line that shows the new width while dragging. */
.grid-freeze-pane { display: none; position: sticky; left: 0; z-index: 4; width: 0; height: 0; overflow: visible; }
.grid-freeze-pane .grid-freeze-table { position: absolute; top: 0; left: 0; table-layout: fixed; min-width: 0;
    box-shadow: inset -2px 0 0 var(--border), 4px 0 6px -4px rgba(0, 0, 0, 0.25); }
:where(.grid-freeze-table) td { background-color: var(--panel); }
.grid-freeze-table tr.grid-freeze-head td { padding: 0; border: 0; background: none; }
.grid-freeze-table tr.grid-group-copy > td { background: var(--head-bg); border-top: 1px solid var(--border); box-shadow: inset 3px 0 0 var(--accent); cursor: pointer; font-weight: 600; white-space: nowrap; overflow: hidden; }
.grid-freeze-table tr.grid-group-copy > td::before { content: "\25BE"; display: inline-block; width: 1.1em; color: var(--muted); }
.grid-freeze-table tr.grid-group-copy.is-shut > td::before { content: "\25B8"; }
.grid-wrap .grid-col-line { position: absolute; bottom: 0; width: 2px; background: var(--accent); z-index: 20; pointer-events: none; }
.grid th .grid-col-grip { position: absolute; top: 0; right: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 1; touch-action: none; }
.grid th .grid-col-grip:hover { background: var(--accent); opacity: 0.6; }
html.grid-col-dragging, html.grid-col-dragging * { cursor: col-resize !important; user-select: none !important; }
@media screen and (max-width: 760px) { .grid th .grid-col-grip, .grid-freeze-pane { display: none !important; } }

/* ITW Report (Forms/Reports/frmItwReport, the table is Forms/Itw/_ItwSheet; itw-portal.js saves Restock / Restock Qty as they
   are typed and shows the notes). The Excel file's colors: Super A rows light green, Restock yellow, pink over 90 days. */
/* Its own sideways scroll box (orders.css has .grid-x for the order screens only; this report doesn't load it). grid.js
   sets its height (rule 30). */
.grid-wrap[data-grid].itw-grid .grid-x { overflow: auto; max-height: calc(100vh - var(--top-h, 56px) - var(--grid-bar-h, 48px) - 24px); overscroll-behavior-x: contain; }
.grid-wrap[data-grid].itw-grid .grid-x thead th { top: 0; }
.grid-wrap[data-grid].itw-grid .grid-bar { position: relative; top: 0; }
.itw-grid td { white-space: nowrap; }
.itw-grid tr.itw-sa td { background: var(--itw-sa); }
.itw-grid td.itw-ed { background: var(--itw-edit); }
.itw-grid td.itw-pink { background: var(--itw-pink); }
.itw-grid .itw-in { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--itw-edit-ring); border-radius: 4px; padding: 2px 4px; }
.itw-grid select.itw-in { min-width: 64px; }
.itw-grid .itw-qty { width: 100px; text-align: right; font-family: "IBM Plex Mono", Consolas, monospace; }
.itw-grid .itw-in.itw-saving { border-color: var(--muted); }
.itw-grid .itw-in.itw-ok { border-color: var(--accent-ink); }
.itw-grid .itw-in.itw-bad { border-color: var(--danger-text); outline: 2px solid var(--danger-text); }
.itw-grid td.itw-note { position: relative; cursor: help; }
.itw-grid td.itw-note::after { content: ""; position: absolute; top: 0; right: 0; border: 5px solid transparent; border-top-color: var(--itw-corner); border-right-color: var(--itw-corner); }
.itw-pop { position: absolute; z-index: 60; background: var(--itw-note-bg); color: var(--text); border: 1px solid var(--itw-edit-ring); border-radius: 4px; padding: 6px 9px;
           font: 12px "IBM Plex Mono", Consolas, monospace; white-space: pre; box-shadow: var(--shadow-pop); max-width: calc(100vw - 20px); overflow: auto; }
.itw-status { font-weight: 600; margin-left: 8px; }
.itw-status.itw-bad-text { color: var(--danger-text); }
.itw-sec { margin: 18px 0 8px; }
.itw-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px; }
.itw-link-col { min-width: 0; }
.itw-link-box { border: 1px solid var(--border); border-radius: 7px; padding: 8px 10px; background: var(--head-bg); word-break: break-all; overflow-wrap: anywhere; white-space: normal; min-width: 0; font-size: 13px; }
.itw-link-buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.itw-link-buttons .input { width: auto; min-width: 0; flex: 1 1 200px; }
.itw-bad-row td { color: var(--danger-text); }
@media screen and (max-width: 1100px) { .itw-link { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================================================================
   Production Schedule > Sullivan Schedule Check (Forms/ProductionSchedule/frmSullivanScheduleCheck; Matt / Julie 11/25/2026).
   The schedule file line and its two buttons, the machine tabs with a count each, and a heading over each of the three lists.
   ===================================================================================================================== */
.ssc-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ssc-src { margin: 0; }
.ssc-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ssc-form, .ssc-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ssc-upload .input { width: auto; min-width: 0; max-width: 100%; }
.ssc-tabs { flex-wrap: wrap; margin: 14px 0 6px; }
.ssc-tabs a.ssc-missing { color: var(--muted); }
.ssc-count { display: inline-block; min-width: 1.6em; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--hover-bg); color: var(--text); font-size: 0.85em; text-align: center; }
.ssc-sum { margin: 4px 0 0; }
@media screen and (max-width: 760px) {
    .ssc-tools { flex-direction: column; align-items: stretch; }
    .ssc-upload .input { width: 100%; }
}
/* Sullivan Schedule Check: the three kinds above the one list (Matt 11/25/2026) */
.ssc-kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 10px 0 8px; }
.ssc-kinds .chip + b { margin-left: -2px; }
.ssc-kinds .chip:not(:first-child) { margin-left: 10px; }

/* =====================================================================================================================
   Location Validation (Matt / Ken 11/25/2026). The phone page (/r/lv/..., Forms/LocationValidation, #fkApp.lv-phone): one
   column that scrolls like a normal page at every width (not the forklift tablets' fixed screen), no title bar. The office
   page (Inventory > Location Validation, .lv-office): the list and results on the left, the QR code on the right.
   ===================================================================================================================== */
.lv-moved { --chip: var(--cyan-ink); }
.lv-gone { --chip: var(--gone); }
body:has(.lv-phone) { height: auto; min-height: 100dvh; overflow: visible; }
body:has(.lv-phone) > main { flex: 0 0 auto; }
.lv-phone { flex: 0 0 auto; overflow: visible; width: 100%; max-width: 680px; margin: 0 auto; padding: 0 12px 24px; gap: 12px; }
/* The green / orange / red line stays at the top of the screen however far down the page is scrolled (Venkatesa, 11/27/2026:
   "already checked" was off the screen when the tag was scanned lower down) */
.lv-phone .fk-flash { margin: 0 -12px; border-radius: 0; position: sticky; top: 0; z-index: 30; }
.lv-phone .fk-flash.warn { background: var(--wait); color: var(--on-wait); }
.lv-head { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
/* The title gives way, never the Help and language buttons: "Validación de ubicaciones" pushed "English" off a 360px
   phone (11/27/2026). Below 400px the logo, title and buttons get smaller so the row fits down to 320px. */
.lv-head h1 { margin: 0; font-size: 22px; flex: 1 1 auto; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.lv-head .btn, .lv-logo { flex: 0 0 auto; }
.lv-head .spacer { display: none; }
.lv-logo { height: 34px; width: auto; }
@media screen and (max-width: 400px) {
    .lv-head { gap: 6px; }
    .lv-head h1 { font-size: 17px; }
    .lv-logo { height: 26px; }
    .lv-head .btn-small { padding-left: 8px; padding-right: 8px; }
}
.lv-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lv-card h2 { margin: 0; font-size: 20px; }
.lv-card p { margin: 0; }
.lv-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; }
.lv-picks { display: grid; gap: 10px; }
.lv-tags, .lv-locs, .lv-uploads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lv-tag { border: 1px solid var(--border); border-left: 5px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: var(--panel); }
.lv-tag:not(.lv-done) { border-left-color: var(--accent); }
.lv-tag.lv-done { opacity: .75; }
.lv-tag-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv-tag-id { font-size: 20px; font-weight: 700; }
/* A checked tag's Edit panel (Venkatesa 11/27/2026): opens under the card with who checked it, its history and the change */
.lv-edit { margin-top: 8px; }
.lv-edit > summary { list-style: none; display: inline-flex; cursor: pointer; }
.lv-edit > summary::-webkit-details-marker { display: none; }
.lv-edit-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.lv-edit-body p { margin: 0; font-size: 14px; }
.lv-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.lv-hist li { overflow-wrap: anywhere; }
.lv-edit-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.lv-edit-form .input { width: 100%; min-width: 0; }
.lv-tag.lv-done:has(.lv-edit[open]) { opacity: 1; }
.lv-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; min-width: 0; }
.lv-finish { display: block; text-align: center; }
.lv-tag-sub { margin-top: 4px; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px; }
/* Each location still to check is a button: a tap opens it, the same as scanning its label (Venkatesa, 11/27/2026) */
.lv-locs li form { margin: 0; }
.lv-loc-btn { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border);
    border-left: 5px solid var(--accent); border-radius: var(--radius); background: var(--panel); color: var(--text); font: inherit; font-size: 17px;
    text-align: left; cursor: pointer; }
.lv-loc-btn .code { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.lv-loc-btn .num { flex: 0 0 auto; color: var(--muted); }
.lv-loc-go { flex: 0 0 auto; font-size: 26px; line-height: 1; color: var(--muted); }
.lv-loc-btn:active, .lv-loc-btn:hover { background: var(--hover-bg); }
/* "Where the pallet is" under the pallet scan box (Venkatesa 11/27/2026): quiet while it is the location being checked, ringed
   in the warning colour while another location is in it, so nobody forgets the next pallet goes there */
.lv-moved-since { color: var(--cyan-ink); font-weight: 600; }
.lv-pallet-loc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.lv-pallet-loc .input { width: 100%; min-width: 0; }
.lv-pallet-loc p { font-size: 14px; }
.lv-pallet-loc.lv-elsewhere .input { border-color: var(--wait); box-shadow: 0 0 0 2px var(--wait); font-weight: 700; }
/* The office Change log (Venkatesa 11/27/2026): its shared grid scrolls in its own box instead of widening the page (rule 10/30) */
#lvChangeLog { display: grid; grid-template-columns: minmax(0, 1fr); }
#lvChangeLog .grid-wrap { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; }
.lv-office .lv-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.lv-office .lv-top { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.lv-upload { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.lv-upload-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; max-width: var(--form-max); }
.lv-upload-row .input { flex: 1 1 260px; min-width: 0; }
.lv-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.lv-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.lv-merge { display: grid; gap: 8px; justify-items: start; }
.lv-merge p { margin: 0; }
.lv-flag { color: var(--cyan-ink); font-weight: 600; }
.lv-check-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.lv-check-head .sec-h { margin: 0; }
.lv-qr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lv-qr .sec-h { margin: 0; }
.lv-qr-box { background: #ffffff; padding: 12px; width: 200px; justify-self: center; border-radius: var(--radius); border: 1px solid var(--border); }   /* a QR code is read black on white, also in dark mode */
.lv-qr-box svg { display: block; width: 100%; height: auto; fill: #000000; }
.lv-link-text { word-break: break-all; font-size: 13px; }
.lv-sub { margin: 6px 0 0; font-size: 15px; }
.lv-uploads li { font-size: 14px; }
.lv-pick .input { min-width: 260px; }
@media screen and (max-width: 1100px) {
    .lv-office .lv-top { grid-template-columns: minmax(0, 1fr); }
}
/* Location Validation phone: the time card screen's "First time?" card (video + steps, Matt 11/25/2026) */
.lv-learn-btns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lv-learn-btns .btn { width: 100%; justify-content: center; }

/* ---- Admin > Asset Tracker (Forms/Admin/frmAssetTracker, Matt 11/26/2026) ---- */
.asset-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.asset-page .facts { align-items: center; }
.asset-page .facts .num { font-variant-numeric: tabular-nums; }
.asset-retired { margin: 0; }
.asset-page td .chip { margin-left: 6px; }
.asset-notes { max-width: 260px; white-space: normal; }
.asset-count { max-width: 140px; }
.asset-tabs { margin: 0 18px; }
#assetPrint .modal-body { display: grid; gap: 12px; }
#assetPrint fieldset, #assetBox fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#assetPrint legend, #assetBox legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.asset-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; align-items: start; }
.asset-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.asset-col .sec-h { margin: 0; }
.asset-error { grid-column: 1 / -1; }
.asset-made { margin-right: auto; font-size: 13.5px; }
@media screen and (max-width: 900px) {
    .asset-form { grid-template-columns: minmax(0, 1fr); }
}
.asset-link { color: var(--link); }
.asset-desc { display: block; font-size: 0.85em; }
#assetBox .grid-wrap { --top-h: 0px; }   /* History and Change log: the grid's titles stick to the top of the box, not under the page title bar */
