/* ORVO Hygiene -- Setup's Cleaning and Checks tabs, the task box and its Training part, and the check
   report (build order step 52, frames R1, R1p, R2, R2b, R3, M1). Loaded by my/hygiene-registers.html and
   my/hygiene-check-report.html.
   THE APPROVED PROPOSED BLOCK of Documentation/mockups/2026-09-30_hygiene_step52/ (index.html
   <style id="proposed">): groups A (the my. half), D, E, F, G and I, copied VERBATIM. Below them, marked,
   the rules the tabs wear from OTHER shipping pages, copied verbatim with their source named (the days
   row from my/till-discounts.html, the colour grid from my/database-departments.html, the state word and
   the picture from cloud/css/hygiene.css, which a my. page does not load), and the few lines the built
   page needed that a still frame did not.
   (c) 2026 ORVO Software -- orvopos.com */

/* A (carried, step 49 PR6) -- the thumbnail, and the wide my. box */
.hy-thumb { flex: none; overflow: hidden; border: 1px solid #333; border-radius: 6px; background: #111; padding: 0; position: relative; }
.hy-thumb svg { display: block; width: 100%; height: 100%; }
.hy-modal.is-wide.modal { max-width: 560px; width: 560px; }

/* D -- a cloth swatch inside a table cell (K2's .hy-cloth, the colour is data and set inline) */
.hy-cl { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

/* E -- a picture wide as a video: 16 by 9 (K2's .hy-photo was a fixed 262px), so the marks and the
   video both sit on the same frame at any width */
.hy-photo.is-wide { height: auto; aspect-ratio: 16 / 9; }
/* the marks, drawn over the UNTOUCHED photo: numbers in the photo's own 640x360, never pixels */
.hy-marks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hy-marks ellipse, .hy-marks path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hy-marks .m { stroke: #188796; stroke-width: 4; }
.hy-marks .u { stroke: rgba(0, 0, 0, .55); stroke-width: 8; }

/* F -- the my. box is ONE size through the flow: the task and its Training part are the same
   box, the same height, so nothing jumps when it morphs (his "all this jumping around") */
.hy-modal.is-tall.modal { height: 690px; display: flex; flex-direction: column; }
.hy-modal.is-tall .hy-mbody { flex: 1 1 auto; min-height: 0; }
.hy-modal .hy-mbody .field { margin-bottom: 14px; }
.hy-modal .hy-sheet { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-top: 8px; font-size: 13px; color: #8a9396; }
.hy-modal .hy-sheet .btn-sm { margin-left: auto; height: 28px; padding: 0 10px; }
.hy-modal .hy-two.is-photo .hy-swrow { margin: 0; height: 40px; }
.hy-modal .hy-two.is-photo { margin-bottom: 14px; }
.hy-modal .hy-two.is-photo .field { margin-bottom: 0; }
.hy-modal .hy-two.is-photo .hy-swpad { padding-top: 26px; }

/* G -- the Training part of the box: the tools under the photo, the video slot */
.hy-tools { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.hy-tools .rp-range button { display: inline-flex; align-items: center; gap: 6px; }
/* DAY-HYGPHONE (27 Oct 2026): + the Reference photo row's own key (Add photo, in the row where its switch was) wears the same icon key */
.hy-tools svg, .hy-vid-b svg, .hs-feat > .hy-swrow > .btn-sm svg { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hy-tools .btn-sm, .hy-vid-b .btn-sm, .hs-feat > .hy-swrow > .btn-sm { display: inline-flex; align-items: center; gap: 6px; }
.hy-tools .hy-tools-r { margin-left: auto; }
.hy-vid { display: flex; align-items: center; gap: 14px; }
.hy-vid .hy-thumb { width: 192px; height: 108px; border-radius: 8px; }
.hy-vid-i { flex: 1 1 auto; min-width: 0; font-size: 13px; color: #8a9396; line-height: 1.5; }
.hy-vid-i b { display: block; font-size: 15px; color: #fff; }
.hy-vid-b { display: flex; gap: 8px; margin-top: 8px; }
.hy-play { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(0, 0, 0, .6); border: 2px solid rgba(255, 255, 255, .85); color: #fff; display: flex; align-items: center; justify-content: center; }
.hy-play svg { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.hy-thumb .hy-play { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
.hy-ticks { display: flex; flex-direction: column; gap: 8px; }
.hy-ticks .hy-tk { display: flex; align-items: center; gap: 8px; }
.hy-ticks .hy-tk input { flex: 1 1 auto; min-width: 0; }
.hy-ticks .hy-tk span { flex: none; width: 18px; color: #777; font-size: 12px; font-weight: 700; text-align: center; }

/* I -- my.: the ticks in the grease trap report, and the Cleaning table on a phone.
   ONE CHANGE FROM THE APPROVED BLOCK: the three min-width lines say `.hy-reg` as well. The Setup page's
   own `.chg-table.hy-reg { min-width: 760px }` sits in its inline <style>, AFTER this sheet, and at the
   same weight it won -- on a phone the chemicals' right-hand cells were 370px off the screen (measured
   on the rendered page). The values are the approved ones. */
.hy-yes { display: inline-flex; color: #4ADE80; }
.hy-yes svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hy-no { color: #555; }
.chg-table.hy-reg.hy-clean { min-width: 900px; }
.chg-table.hy-clean td { white-space: nowrap; }
.chg-table.hy-clean .hy-m { display: none; }
@media (max-width: 600px) {
    /* on a phone a task is ONE cell: its name, and under it the facts, the way the Record book's rows carry theirs */
    .chg-table.hy-reg.hy-clean { min-width: 0; }
    .chg-table.hy-clean thead { display: none; }
    .chg-table.hy-clean tbody td { display: none; border-bottom: 0; }
    .chg-table.hy-clean tbody tr { display: block; border-bottom: 1px solid #262626; }
    .chg-table.hy-clean tbody tr:last-child { border-bottom: 0; }
    .chg-table.hy-clean tbody td:nth-child(2) { display: block; white-space: normal; padding: 10px 12px; }
    .chg-table.hy-clean .hy-m { display: block; }
    .chg-table.hy-reg.hy-chem { min-width: 0; }
    .chg-table.hy-chem thead { display: none; }
    .chg-table.hy-chem tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: 1px solid #262626; }
    .chg-table.hy-chem tbody tr:last-child { border-bottom: 0; }
    .chg-table.hy-chem tbody td { display: block; border-bottom: 0; padding-top: 3px; padding-bottom: 3px; white-space: normal; }
    .chg-table.hy-chem tbody td:nth-child(1) { grid-column: 1; grid-row: 1; padding-top: 10px; }
    .chg-table.hy-chem tbody td:nth-child(4) { grid-column: 2; grid-row: 1; padding-top: 10px; }
    .chg-table.hy-chem tbody td:nth-child(2) { grid-column: 1; grid-row: 2; padding-bottom: 10px; }
    .chg-table.hy-chem tbody td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; padding-bottom: 10px; }
}

/* ── WORN FROM OTHER SHIPPING PAGES, COPIED VERBATIM (sources named) ── */
/* my/till-discounts.html :152-154 -- the seven days, the same button family at a day's width */
.dsc-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.dsc-days .btn { padding-left: 0; padding-right: 0; font-size: 12px; }
/* my/database-departments.html :348-364 -- the colour swatches (six of its eight presets' colours) */
.colour-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.colour-swatch { aspect-ratio: 1; border-radius: 5px; border: 2px solid transparent; cursor: pointer; padding: 0; transition: border-color 0.12s, transform 0.1s; }
.colour-swatch:hover { transform: scale(1.08); }
.colour-swatch.is-selected { border-color: #fff; }
/* cloud/css/hygiene.css :40-49, :59, :113, :118-121, :213 -- the state word, the area label, the cloth, the picture */
.hy-st { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.hy-st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.hy-st.is-done  { color: #4ADE80; }
.hy-st.is-due   { color: #73D1DE; }
.hy-st.is-soon  { color: #E8C846; }
.hy-st.is-late  { color: #FB923C; }
.hy-st.is-fixed { color: #FB923C; }
.hy-st.is-miss, .hy-st.is-out, .hy-st.is-rej { color: #F87171; }
.hy-st.is-quiet { color: #888; }
.hy-st.is-quiet::before { background: transparent; border: 1px solid #666; box-sizing: border-box; }
.hy-grp { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #777; }
.hy-cloth { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: #B52B2B; flex: none; }
.hy-photo { flex: none; position: relative; height: 262px; border-radius: 10px; overflow: hidden; border: 1px solid #333; background: #111; }
.hy-photo-t { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 700; }
.hy-photo-t svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.hy-thumb img, .hy-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── BUILT, NOT DRAWN (step 52): what a working page needs that a still frame did not ── */
/* the marking surface sits over the photo (and under the tag); a finger or a mouse draws on it */
.hy-photo .hy-draw { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.hy-photo .hy-draw.is-off { pointer-events: none; cursor: default; }
.hy-photo.is-empty { display: flex; align-items: center; justify-content: center; }
.hy-photo.is-empty .btn-sm { position: relative; }
button.hy-play { padding: 0; cursor: pointer; }
.hy-modal .hy-mbody { overflow-y: auto; }
.chg-table .hy-rep { height: 28px; padding: 0 10px; }
@media (max-width: 600px) {
    /* the house sheet on a phone: one column, the body scrolls inside, the box keeps the screen's height */
    .hy-modal.is-wide.modal { width: calc(100vw - 24px); max-width: none; }
    .hy-modal.is-tall.modal { height: calc(100dvh - 48px); }
    .hy-modal .hy-two { grid-template-columns: minmax(0, 1fr); }
    /* my.css :2181 gives every button 14px of side padding on a phone, with !important; seven days do not
       fit a phone's box at that (measured: a 399px row in a 300px box, Sat and Sun off the edge) */
    .hy-modal .dsc-days .btn { padding-left: 0 !important; padding-right: 0 !important; font-size: 12px !important; min-width: 0; }
    .hy-modal .hy-two.is-photo .hy-swpad { padding-top: 0; }
    .hy-tools { flex-wrap: wrap; }   /* Circle / Arrow / Undo on one line, Replace under them at the right */
    .hy-vid { flex-direction: column; align-items: stretch; }
    .hy-vid .hy-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* ── THE CHECK REPORT ON PAPER (my/hygiene-check-report.html, <html class="hy-printable">) ──
   Print is the contractor's copy: the page itself, in ink on white. Scoped to .hy-printable, so Setup
   (which loads this sheet too) prints as it always did. The lessons are my/price-analyser.html's:
   the page says color-scheme dark, and on paper that paints the MARGIN black unless the scheme is
   light; a body left position:fixed by a scroll lock prints as one clipped screen; and everything
   appended straight to <body> (header, footer, toasts, the assistant) goes, by rule not by name. */
@media print {
    html.hy-printable { color-scheme: light; }
    html.hy-printable, .hy-printable body { background: #fff !important; color: #000 !important; }
    .hy-printable body { position: static !important; top: auto !important; padding-right: 0 !important; }
    .hy-printable body > *:not(main) { display: none !important; }
    .hy-printable main.page { max-width: none; margin: 0; padding: 0; opacity: 1 !important; }
    .hy-printable #hrBody { opacity: 1 !important; }
    .hy-printable .breadcrumbs, .hy-printable .shop-bar, .hy-printable .rp-range, .hy-printable .rp-export,
    .hy-printable .hint-icon, .hy-printable #hrGate:empty { display: none !important; }
    .hy-printable .hy-print-only { display: block; margin: 0 0 10px; font-size: 15px; font-weight: 700; color: #000; }
    .hy-printable .page-title, .hy-printable .rp-when, .hy-printable .ins-card-title, .hy-printable .ins-card-sub,
    .hy-printable .ins-kpi .k, .hy-printable .ins-kpi .v, .hy-printable .ins-kpi .s,
    .hy-printable .chg-table td, .hy-printable .chg-table th, .hy-printable .hy-sub, .hy-printable .hy-st,
    .hy-printable .hy-yes, .hy-printable .hy-no { color: #000 !important; }
    .hy-printable .ins-card, .hy-printable .ins-kpi { background: #fff !important; border-color: #999 !important; box-shadow: none !important; }
    .hy-printable .chg-table th { background: #fff !important; border-bottom: 1px solid #000; }
    .hy-printable .chg-table td { border-bottom-color: #ccc !important; }
    .hy-printable .chg-scroll { overflow: visible !important; }
    .hy-printable .chg-table.hy-book { min-width: 0; width: 100%; }
    .hy-printable .chg-table thead { display: table-header-group; }   /* the headings again on every sheet */
    .hy-printable .chg-table tr { page-break-inside: avoid; }
    .hy-printable .hy-thumb { border-color: #999; }
}

/* ── SAFETY SHEETS FOUND ON THE INTERNET (3 Oct 2026) ── the approved `proposed` block of
   Documentation/mockups/2026-10-03_hygiene_safety_sheets/index.html, layout only: no new button, badge, modal or colour.
   S1 ONE BOX SIZE through Find (D2 to D7): the chemical, looking, what was found, nothing found -- nothing jumps
      when the box morphs (the task box's .is-tall does the same at 690).
   S2 the two keys in the Chemicals head sit side by side; the sheet line wraps its caption; the found line, the fact
      rows and the pick list. */
.hy-modal.is-sheet.modal { height: 520px; display: flex; flex-direction: column; }
.hy-modal.is-sheet .hy-mbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; text-align: left; }
.hy-modal.is-sheet .hy-mbody .field label { display: block; }
.hy-two-keys { display: inline-flex; gap: 8px; align-items: center; }
.hy-two-keys .btn-sm { margin: 0; }
.hy-chem .hy-find { margin-left: 10px; height: 28px; padding: 0 10px; }
.hy-modal .hy-sheet { flex-wrap: wrap; }
.hy-modal .hy-sheet .hy-fn { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hy-modal .hy-sheet .hy-fn b { color: #fff; font-size: 15px; font-weight: 700; }
.hy-modal .hy-sheet .hy-fn small { font-size: 12px; color: #8a9396; }
.hy-modal .hy-sheet .hy-fn + .btn-sm { margin-left: 8px; }
.hy-modal .hy-sheet.hy-found { margin: 10px 0 8px; flex-wrap: nowrap; }
.hy-modal .hy-sheet.hy-found > svg { width: 20px; height: 20px; flex: none; stroke: #9aa3a5; }
.hy-modal .hy-sheet.hy-found .btn-sm { margin-left: 8px; flex: none; }
.hy-src { flex: 0 0 100%; order: 5; font-size: 12px; color: #8a9396; margin-top: -2px; }
.hy-modal.is-sheet .hy-fact { margin: 0; height: 34px; border-bottom: 1px solid #262626; }
.hy-modal.is-sheet .hy-fact > span:first-child { color: #8a9396; font-size: 13px; flex: none; }
.hy-modal.is-sheet .hy-fv { color: #fff; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the one gold line (not sure it is the same product): my/css/hygiene-goodsin.css :42-43's own .hy-chk, which this
   page does not load -- its two values, said here for this box only */
.hy-modal.is-sheet .hy-chk.hy-warn { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13px; }
.hy-modal.is-sheet .hy-chk.hy-warn b { color: #E8C846; font-weight: 600; }
.hy-look { height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #8a9396; font-size: 14px; text-align: center; }
.hy-look .orvo-dots { color: #188796; }
.hy-look.is-none b { color: #fff; font-size: 15px; font-weight: 600; }
.hy-pick { margin-bottom: 8px; }
.hy-pickrow { display: flex; align-items: center; gap: 10px; }
.hy-picktx { flex: 1 1 auto; min-width: 0; }
.hy-pick .btn-sm { flex: none; height: 28px; padding: 0 10px; }
@media (max-width: 600px) {
    .hy-modal.is-sheet.modal { height: min(520px, calc(100dvh - 48px)); }
    /* the Chemicals row on a phone: the state word and its Find stay on one line, top right */
    .chg-table.hy-chem tbody td:nth-child(4) { white-space: nowrap; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   J -- THE SHEET BUILDER, STEP 1 (5 Oct 2026). Set-up by area (S1), Add (S8, S8b), a cleaning job with a switch on everything
   (S9, S10, S11), and a sheet's own page (my/hygiene-sheet.html, the 4 Oct S3's shape). Approved frames:
   Documentation/mockups/2026-10-04_hygiene_setup_sheets (HS1, HS2, HS4) and 2026-10-05_hygiene_sheet_builder_more (HS7, HS8),
   "Build as drawn". FIRST the rules those frames wear that live in another page's own <style>, COPIED WORD FOR WORD with their
   source; THEN the approved groups, word for word. Nothing here is new.
   ══════════════════════════════════════════════════════════════════════════════ */
/* my/hygiene-devices.html :108-119 -- the pick list (the areas down the left; S8b's sheets to copy) */
.cm-pick { display: flex; flex-direction: column; gap: 8px; max-height: min(380px, 52vh); overflow-y: auto; overscroll-behavior: contain; margin: 0 -32px 22px; padding: 2px 32px; }
.cm-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-shrink: 0; width: 100%; text-align: left; background: #131313; border: 1px solid #2e2e2e; border-radius: 10px; padding: 13px 15px; cursor: pointer; font: inherit; color: inherit; transition: border-color .12s, background .12s; }
.cm-row:hover { border-color: #3d3d3d; }
.cm-row:focus-visible { outline: 2px solid #188796; outline-offset: 1px; }
.cm-row.on { border-color: #188796; background: rgba(24, 135, 150, .09); }
.cm-row-text { display: flex; flex-direction: column; min-width: 0; }
.cm-row-name { display: block; font-size: 14px; font-weight: 600; color: #ddd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-row.on .cm-row-name { color: #46cfe0; }
.cm-row-status { display: block; font-size: 12.5px; color: #8a8a8a; margin-top: 3px; line-height: 1.4; }
.cm-row-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #3a3a3a; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: transparent; background: transparent; }
.cm-row.on .cm-row-tick { border-color: #188796; background: #188796; color: #fff; }
.cm-row-tick svg { width: 13px; height: 13px; }
/* my/css/orvo-recipe-walk.css :199-204 (also my/database-add.html :118-123) -- the pick-one door */
.purpose-card { display: block; width: 100%; text-align: left; background: #131313; border: 1px solid #2e2e2e; border-radius: 10px; padding: 13px 15px; margin-bottom: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.purpose-card:hover { border-color: #3d3d3d; }
.purpose-card.on { border-color: #188796; background: rgba(24,135,150,.09); }
.purpose-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; font-weight: 600; color: #ddd; }
.purpose-card.on .purpose-title { color: #46cfe0; }
/* my/till-discounts.html (its own <style>, lines 60-90) -- a group head: the sheet's name and its meta */
.mod-group-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.mod-group-name { font-size: 15px; font-weight: 600; color: #fff; }
.mod-group-meta { font-size: 12px; color: #777; }
/* my/css/hygiene-planogram.css :108 -- the Layout page's section frame, a sheet's card */
.hp-unit { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1.5px solid #333; border-radius: 12px; background: #111; }
/* my/till-discounts.html :161-163 -- the typed minutes and times beside their word */
.dsc-times { display: flex; align-items: center; gap: 10px; }
.dsc-times input { flex: 1 1 0; min-width: 0; text-align: center; }
.dsc-times span { color: #8a9396; font-size: 13px; flex: 0 0 auto; }

/* HS1 -- SETUP BY AREA (frames S1, S1b, S1p; FB30B, 30 Oct 2026, frames 01, 02, 12 of _overnight_1023/fb30b/mock, his "the areas should be on
   the top ... We don't have stacks side by side anywhere"). TWO CARDS, ONE ABOVE THE OTHER, NEVER SIDE BY SIDE: the Areas card on top with the
   areas as a grid of cards inside it (the Devices page's pick row, a ringed row is the area in hand, 60 high like the sheet bars), the picked
   area's sheets in the card under it. The pick list's own negative margins belong to its modal and come off here. On a phone the areas are the
   page's own tab strip (.rp-range, the Setup tabs' shape) and the card is the page. */
.hs-areas .cm-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 0; padding: 0; max-height: none; overflow: visible; }
.hs-areas .cm-row { height: 60px; box-sizing: border-box; padding: 0 14px; }
.hs-areas .ins-card-head { margin-bottom: 12px; }
.hs-head-keys { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hs-head-keys .hy-card-act { margin-left: 0; }

/* HS2 -- A SHEET'S CARD. The Layout page's section frame (.hp-unit) with one row in it: the sheet's picture, its name with the Discounts
   page's group head (.mod-group-name, .mod-group-meta), what it holds, when it is done, and the small order keys at the right. The keys
   are the Discounts page's own, drawn 40 square so a finger finds them (the shipping 28 by 30 is a mouse's). A tap anywhere else on the
   card opens the sheet. A card is one row high; the sheets stand in wall order, first at the top.
   FB30B (30 Oct 2026, his "those bars are too small" and "When you click edit, it shouldn't change the layout of anything"; the mock's P4):
   60 HIGH ALWAYS, in look and in Edit; name 16, other words 14, icon 22; the fifth column is 88 wide and ALWAYS THERE, empty in look, the two
   40 by 40 keys in Edit (40 + 8 + 40), so no column ever moves. One rule set: a cleaning sheet's job bars wear it too. */
.hs-sheets { display: flex; flex-direction: column; gap: 8px; }
.hp-unit.hs-sheet { display: grid; grid-template-columns: 24px minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.2fr) 88px; align-items: center; gap: 0 12px; height: 60px; box-sizing: border-box; padding: 0 8px 0 14px; cursor: pointer; }
.hp-unit.hs-sheet:hover { border-color: #444; }
.hp-unit.hs-sheet:focus-visible { outline: 2px solid #188796; outline-offset: 1px; }
.hs-ico { display: flex; align-items: center; justify-content: center; color: #9aa3a5; }
.hs-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hs-sheet .mod-group-title { flex-wrap: nowrap; gap: 10px; }
.hs-sheet .mod-group-name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-sheet .mod-group-meta { font-size: 14px; white-space: nowrap; flex: none; }
.hs-holds, .hs-when { min-width: 0; font-size: 13px; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-when { color: #8a9396; }
.hs-sheet .hs-holds, .hs-sheet .hs-when { font-size: 14px; }   /* the Cleaning table's When cell wears .hs-when too and stays at 13 */
.hs-sheet .mod-sort-cell { justify-self: end; gap: 8px; }
.hs-sheet .mod-row-btn, .hs-lines .mod-row-btn { width: 40px; height: 40px; padding: 0; }
.hs-sheet .mod-row-btn svg, .hs-lines .mod-row-btn svg { width: 16px; height: 16px; }
/* AREAWALL-1103: in Edit, Cooking and cooling and Goods in carry the page's Remove key (.btn-sm.btn-danger, its own width) in their When cell:
   the bar keeps its 60 and no column moves. */
.hs-sheet .hs-when.hs-rm { display: flex; align-items: center; overflow: visible; }
@media (max-width: 600px) {
    /* A PHONE: three lines of words, none allowed to wrap or push (a bar 90 high, always), and the arrow column is 44 wide with the two 40 by 40
       keys one above the other (40 + 4 + 40 = 84), so the words keep 217 of the 330 inside the card. The three text rows have fixed heights
       (20 + 18 + 18): the 84 high keys in Edit would otherwise stretch them and push the words apart. */
    .hp-unit.hs-sheet { grid-template-columns: 24px minmax(0, 1fr) 44px; grid-template-rows: 20px 18px 18px; grid-template-areas: "i n k" "i h k" "i w k"; align-content: center; gap: 1px 12px; height: 90px; padding: 0 6px 0 12px; }
    .hs-sheet .hs-ico { grid-area: i; align-self: center; }
    .hs-sheet .mod-group-title { grid-area: n; flex-wrap: nowrap; gap: 0 10px; }
    .hs-sheet .mod-group-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hs-sheet .hs-holds { grid-area: h; font-size: 12px; }
    .hs-sheet .hs-when { grid-area: w; font-size: 12px; }
    .hs-sheet .mod-sort-cell { grid-area: k; align-self: center; flex-direction: column; gap: 4px; justify-self: end; }
    /* AREAWALL-1103: on a phone the Remove key stands under the name, in the two lines of words (18 + 1 + 18), and the bar keeps its 90 */
    .hs-sheet.is-rm .hs-holds { display: none; }
    .hs-sheet .hs-when.hs-rm { grid-area: auto; grid-column: 2; grid-row: 2 / 4; align-self: center; }
}

/* HS4 -- THE ADD BOX (frames S2, S2b, S2p, S2pb): the group head, the doors, the box's two-up fields. */
.hs-grp { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #9fb3b6; margin: 18px 0 8px; }
.hs-grp:first-child { margin-top: 0; }
.hs-pick2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hs-pick2 .purpose-card { margin-bottom: 0; padding: 11px 14px; font-family: inherit; }
.hs-pick2 .purpose-card .purpose-title { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.hy-modal .hs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.hy-modal .hs-fields .span2 { grid-column: 1 / -1; }
.hy-modal .hs-fields .field label { display: flex; align-items: center; gap: 6px; min-height: 20px; }
@media (max-width: 600px) {
    .hs-pick2 { grid-template-columns: minmax(0, 1fr); }
}
/* HS3 (4 Oct, frames S3) -- a sheet's own facts in a grid of fields: a cleaning sheet's page wears it for its name and its area. */
.hs-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hs-fields .field { margin-bottom: 0; min-width: 0; }
.hs-fields .span2 { grid-column: span 2; }
.hs-fields .field select, .hs-fields .field .orvo-select { width: 100%; }
.hs-fields .field label { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.hs-card2 { margin-top: 8px; }
.ins-card .hs-fields { gap: 10px 12px; }
@media (max-width: 760px) {
    .hs-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hs-fields .span2 { grid-column: 1 / -1; }
}

/* HS7 -- ADD (frames S8, S8p, S8b). The 4 Oct box (.hy-modal.is-tall, 420 by 690, one size for both steps), the 4 Oct doors (.purpose-card inside
   .hs-pick2) in ONE column because there are only three, and "Start with" the 4 Oct group head (.hs-grp). The copy step's list is the Devices page's
   pick list (.cm-row inside .cm-pick) and its two fields are the box's own. */
.hs-pick2.is-one { grid-template-columns: minmax(0, 1fr); }

/* HS8 -- A CLEANING JOB WITH A SWITCH ON EVERYTHING (frames S9, S9b, S9s). The box is the shipping one (560 by 690). Task and Area stay as they are; each
   optional part is the box's own switch row (.hy-swrow, the Daily photo row's) with a hairline between rows, and when its switch is on the part opens
   under the row. The shipping rows keep their 18px of air under them (".modal .hy-swrow { margin: 4px 0 18px }"); here the air is the row's own height. A
   field inside a part loses the 14px the box gives every field, so a part is one block. The cloth swatches are the shipping .colour-grid at 44px, not
   stretched to the box's width; the wear keys are the Discounts page's day keys (.dsc-days) in four columns; the minutes box is the Discounts page's typed
   time box (.dsc-times) held narrow; the quiet "Due 22:00" is the register's second line (.hy-sub) a touch bigger. */
.hy-modal .hs-feat { border-top: 1px solid #262626; }
.hy-modal .hs-feat .hy-swrow { margin: 0; min-height: 46px; }
.hy-modal .hs-featbody { padding: 0 0 14px; }
.hy-modal .hs-feat.is-plain .hs-featbody { padding: 14px 0; }
.hy-modal .hs-featbody .field { margin-bottom: 0; }
.hs-featbody > * + * { margin-top: 10px; }
.hs-featbody .hy-sub { margin-top: 8px; font-size: 13px; color: #8a9396; }
.hs-featbody .colour-grid { grid-template-columns: repeat(6, 44px); gap: 8px; }
.hy-modal .field .dsc-days { margin-bottom: 0; }
.hs-featbody .dsc-days.is-keys { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hs-featbody .dsc-times { max-width: 180px; }
.hs-featbody textarea { min-height: 64px; }
.hs-trainline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: #8a9396; }
.hs-trainline .btn-sm { flex: none; }
.hy-two .hs-says { padding-top: 26px; }
/* BUILT, NOT DRAWN (step 1): the job box was drawn at its desk width only. On a phone the box is 300 wide inside, so the six
   44px swatches (304 with their gaps) share the row instead of running past its edge. Layout only. */
@media (max-width: 600px) {
    .hs-featbody .colour-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* CHECKS2 (5 Oct 2026) -- A CHECK LINE CAN BE ANY KIND, THE TALL BOX'S FOOT IS SOLID, A SHEET'S NAME IS REFUSED ON ITS FIELD.
   (1) THE FOOT (his Grease trap screenshot: with a fourth line added, the Training row ran under Remove / Cancel / Save -- the body
   scrolled, but its last row was cut flush against the keys with nothing between them). The receipt pop-up's own shape
   (my/order-history.html .oh-rcpt-modal): the head and the keys never shrink and the body is the one scroller, taking the box's 32px
   side padding into itself so its scrollbar rides the box's edge; over the keys the box's own hairline (.hs-feat's #262626), the
   picture peek's way of marking a foot (my/database-category.html .pk-actions). The wide tall boxes (a check, a job, the scan's draft);
   the Add box keeps its 5 Oct phone fit (my/hygiene-registers.html, SHEETFIX1). */
.hy-modal.is-wide.is-tall > .hy-mhead { flex: none; }
.hy-modal.is-wide.is-tall > .hy-mbody { margin: 0 -32px; padding: 0 32px 14px; overscroll-behavior: contain; }
.hy-modal.is-wide.is-tall > .modal-actions { flex: none; margin: 0 -32px; padding: 14px 32px 0; border-top: 1px solid #262626; }
/* (2) THE LINES (frames M1, M1p). A line is its number, its words, its kind key and the remove x (my/database-add.html's .comp-x,
   copied: this page does not load that one); the quiet words under it say what it is set to; the kind key opens what the line needs
   under it in the same box (.hs-featbody, the job box's part) and is lit while it is open, as a picked day key is; Add opens the
   kinds in place, the Discounts page's day keys (.dsc-days) three across. The kind key is ONE width whatever the kind -- a key that
   changes size from line to line is his "I hate button resizing" (my/till-devices.html, 11 Sep). */
.comp-x { width: 34px; height: 38px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; background: transparent; border: 1px solid #333; border-radius: 6px; color: #c98a8a; font-size: 20px; line-height: 1; cursor: pointer; }
.comp-x:hover { border-color: #a55; color: #e88; }
.hy-ticks .hy-ln { display: flex; flex-direction: column; min-width: 0; }
.hy-ticks .hy-ln > .hy-tk { flex-wrap: wrap; row-gap: 4px; }
.hy-ticks .hy-ln > .hy-tk > input[data-tk] { flex: 1 1 0; }   /* the house input is 100% wide: from nothing, or the row wraps it */
.hy-ticks .hy-lk { flex: none; width: 116px; height: 38px; padding-left: 0; padding-right: 0; justify-content: center; }
.hy-ticks .hy-lsub { flex: 0 0 100%; margin: 0 0 0 26px; }
.hy-ticks .hy-lset { margin: 10px 0 2px 26px; padding: 0; }
.hy-ticks .hy-lset .hy-swrow { margin: 0; min-height: 40px; }
.hy-ticks .hy-lset .field { margin-bottom: 0; }
.hy-ticks .hy-lset .hy-ticks .hy-tk span { width: 0; }
.hy-ticks .hy-lnpick { margin: 2px 0 0 26px; }
.hy-ticks .hy-lnpick .hs-grp { margin: 8px 0 8px; }
.hy-ticks .dsc-days.hy-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
.hy-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* (3) A SHEET'S NAME, REFUSED (DESIGN_SYSTEM.md "Form Validation": .field-error on the field, .field-error-msg under the input):
   admin/css/admin.css :529-542's two rules (this page does not load that sheet), the words in the red the error toast and the red
   badge wear on a dark box (#F87171, my.css .toast-error) -- #B52B2B words on #171717 are too dark to read. */
.field-error input, .field-error select, .field-error textarea { border-color: #B52B2B; }
.field .field-error-msg { font-size: 12px; color: #F87171; margin-top: 4px; }
@media (max-width: 600px) {
    /* a phone's box is 300 wide inside: the line's words keep the room, the kind key narrows to the longest word it carries */
    /* the words keep the whole row (18 + 8 + 8 + 34 = the number, the gaps and the x); the kind key and the line's quiet words share
       the row under it, so nothing a person typed is cut */
    .hy-ticks .hy-ln > .hy-tk > input[data-tk] { flex: 1 1 calc(100% - 68px); }
    .hy-ticks .hy-lk { order: 3; width: 96px; height: 32px; margin-left: 26px; font-size: 12px !important; padding-left: 0 !important; padding-right: 0 !important; }
    .hy-ticks .hy-lsub { order: 4; flex: 1 1 0; min-width: 0; margin: 0; align-self: center; }
    .hy-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hy-three > :first-child { grid-column: 1 / -1; }
}
/* DATES4 (6 Oct 2026): an Item line's picked item -- its picture (my.css .wa-ico), its name, Change. The search bar is OrvoDbSearch's own. */
.hy-lnitem { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.hy-lnitem b { flex: 1 1 auto; min-width: 0; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* SHEETS2 (8 Oct 2026, his "the sheet sets the time"; Documentation/mockups/2026-10-08_hygiene_sheets, the PROPOSED block P0 to P3, built
   as drawn). LAYOUT ONLY: no new button, switch, badge, field, modal, pill or colour.
   P1 -- THE SHEET'S OWN FIELDS (A1, A1p, C3): "The sheet" card's grid (.hs-fields) holds them in pairs -- Name and Area, How often and Due,
   At and Who can fill it -- and the switch row under them is the box's own (.hy-swrow, the Daily photo row's). */
.hs-fields.is-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hs-fields.is-sheet .field { margin-bottom: 0; }
.hs-fields.is-sheet .field.span2 { grid-column: 1 / -1; }
.hs-fields.is-sheet .field label { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.ins-card .hs-sheetrow { border-top: 1px solid #262626; margin-top: 16px; padding-top: 12px; }
.ins-card .hs-sheetrow .hy-swrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; min-height: 44px; font-size: 14px; color: #ccc; }
.ins-card .hs-sheetrow .hy-swrow > span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 600px) { .hs-fields.is-sheet { grid-template-columns: minmax(0, 1fr); } }
/* P2 -- A JOB'S WHEN in the sheet's job cards reads its DAYS ("Every day", "Tue, Thu"); a job done only some days in the holds column's white */
.hs-when.is-some { color: #cfcfcf; }
/* P3 -- WHICH DAYS IN THE JOB BOX (B1): the seven day keys where How often stood, with the quiet line under it */
.hy-modal .hs-feat.is-plain .dsc-days.is-days { margin-bottom: 0; }
/* P0 -- THE QUESTION BOX (C1, C2, C2b): the line above the first field says which question this is */
.hy-modal .hs-qn { margin: 0 0 12px; }

/* ============================================================================================================================
   CLEANSCAN (29 Oct 2026; _overnight_1023/hygsetup/mock-cleaning frames B and C, his "ALL GOOD BUILD")
   ============================================================================================================================ */
/* SAVE AND CLOSE AT THE TOP (his rule): a box face with its keys in its head -- Setup > Map's card head's own pair (.hy-card-act.is-two,
   my/css/hygiene-map.css :88), here in the box head; the title gives way, the keys never wrap */
.hy-mhead .hy-card-act.is-two { display: flex; gap: 8px; flex: none; margin-left: auto; }
.hy-mhead .hy-card-act.is-two .btn { white-space: nowrap; }
.modal.is-topkeys .hy-mhead { gap: 12px; }
.modal.is-topkeys .hy-mhead h3 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal.is-topkeys .modal-actions[hidden], .modal.is-topkeys .hy-mhead .modal-x { display: none; }
/* the job box (frame B): a row the paper did not fill, the light tint (Decision 3); Who does it -- the house range switch (.rp-range) */
.hy-modal .hs-feat.row-is-gap { background: rgba(115,209,222,0.06); margin: 0 -10px; padding: 0 10px; }
.hy-modal .hs-feat .hy-swrow > span { display: inline-flex; align-items: center; gap: 6px; }
.hy-modal .hs-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; font-size: 14px; color: #ccc; }
.hy-modal .hs-who .rp-range button { padding: 6px 12px; white-space: nowrap; }
.hy-modal .hs-whoname { padding: 0 0 14px; }
@media (max-width: 600px) {
    .hy-modal .hs-who { flex-wrap: wrap; padding: 8px 0; }
}
/* the Cleaning table (frame C): a sheet's heading row, the seven day keys, a weekly line's one key, the camera key */
.chg-table.hs-ctab td { vertical-align: middle; }
.chg-table.hs-ctab tr.hy-sheetrow td { background: #141414; padding: 10px 14px; border-bottom: 1px solid #2a2a2a; border-top: 1px solid #2a2a2a; }
.chg-table.hs-ctab tr.hy-areaT td { border-top: 2px solid #2a2a2a; }
.hs-shrow { display: flex; align-items: center; gap: 12px; white-space: normal; }
.hs-shrow b { color: #fff; font-size: 14px; font-weight: 600; }
.hs-shrow .hy-sub { display: inline; margin: 0; }
.hs-shrow .btn { margin-left: auto; padding: 0 10px; height: 26px; }
.hs-shrow .btn svg, .hs-ckey .btn svg, .hs-pkey svg { width: 14px; height: 14px; flex: none; }
.hs-dkeys.dsc-days { display: inline-grid; grid-template-columns: repeat(7, 26px); gap: 4px; margin: 0; vertical-align: middle; }
.hs-dkeys .btn, .hs-ckey .btn { padding: 0; height: 26px; min-width: 26px; font-size: 11px; }
.hs-dkeys .btn:not(.btn-accent) { color: #7a8285; }
.hs-when .gap-dot { margin-left: 6px; vertical-align: middle; }
.hs-ckey { display: inline-flex; gap: 6px; align-items: center; }
.hs-ckey .btn { padding: 0 10px; min-width: 0; gap: 6px; }
.hs-pkey.btn { padding: 0; width: 34px; height: 26px; }
.hs-pkey.btn:not(.btn-accent) { color: #666; }
.chg-table.hs-ctab .hs-mkeys { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 600px) {
    .chg-table.hs-ctab tbody tr.hy-sheetrow td:nth-child(2) { padding: 12px; }
    .hs-shrow { flex-wrap: wrap; row-gap: 4px; }
    .hs-shrow .hy-grp { flex: 1 1 100%; }
    .hs-dkeys.dsc-days { grid-template-columns: repeat(7, 32px); }
    .hs-dkeys .btn, .hs-ckey .btn, .hs-pkey.btn { height: 32px; min-width: 32px; }
}
