/* ============================================================================
   my/css/hygiene-goodsin-rules.css -- ORVO HYGIENE SETUP > DELIVERY RULES, THE BATCH NUMBERS CARD.
   ----------------------------------------------------------------------------
   The approved frames B1, B1s, B1p, B1ps (Documentation/mockups/2026-10-02_hygiene_area_first/, "Yes, as drawn",
   2 Oct 2026). Loaded by my/hygiene-registers.html; drawn by my/js/hygiene-goodsin.js mountRules().
   NOTHING HERE IS NEW DESIGN. Three parts:
     1. COPIED VERBATIM from the shipping page that already has view buttons with counts:
        my/stock-orders-list.html lines 45-49 (the lit view button and its gold count) and 74-77 (the button row as
        one scrolling line on a phone, inside that page's own @media (max-width:600px)).
     2. COPIED VERBATIM from the shipping page that already has a pager: my/stock-invoices.html lines 649-651
        (Previous, the page count, Next).
     3. THE FRAMES' OWN `── PROPOSED ──` GROUP AF5, as approved: the standard `.toolbar-row` with its search, the
        house `.btn-ai` sized as every page sizes it, the sparkle before a suggested name (the AI voice's own glyph
        and teal), ORVO's words in the `.ai-note` voice, and the phone's fold of the table.
   Every button, switch, count, state word and colour is a class that already ships. No new colour.
   BATCHPAGE (18-19 Nov 2026): my/batch-numbers.html (Menu & Stock > Batch numbers, js/batch-numbers.js) wears this sheet too -- its
   card IS the batch half of this card, `.hy-rules.is-batch`, with its one switch column in that page's own <style>. PART B (his answer
   2 of 18 Nov): the Delivery rules card loses its Batch number column and keeps Temperature and origin, `.hy-rules.has-temp.no-batch`;
   on a phone it folds with one switch column fewer (the two rules at the foot of part 3's phone block).
   (c) 2026 ORVO Software -- orvopos.com
   ============================================================================ */

/* 1. the view buttons -- my/stock-orders-list.html:45-49, verbatim */
        .ord-bgroup { display:flex; align-items:center; gap:8px; }
        .ord-fbtn.is-on, .ord-fbtn.is-on:hover { background:#1c2a2c; border-color:#2c6f79; color:#8fd4de; }
        .ord-fcount { display:inline-flex; align-items:center; justify-content:center; min-width:16px; height:16px; padding:0 4px; margin-left:6px; border-radius:8px; background:#E8C846; color:#151515; font-size:11px; font-weight:700; }
        .ord-fcount.is-quiet { background:#2a3536; color:#9fb3b6; }
/* ... and :74-77, one scrolling line on a phone (the ends fade only while there is more that way: shared orvo-edge-fade.js);
   verbatim but for that page's two buttons of its own (#placeBtn, #liveStockBtn), which are not here */
@media (max-width:600px){
            .ord-fbtns { flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; gap:8px; scrollbar-width:none; }
            .ord-fbtns::-webkit-scrollbar { display:none; }
            .ord-fbtns > .ord-bgroup, .ord-fbtns > .ord-bgroup > .ord-fbtn { flex:none; }
}

/* 2. the pager -- my/stock-invoices.html:649-651, verbatim */
        .inv-pager { display:flex; align-items:center; justify-content:center; gap:14px; padding:16px 4px 6px; }
        .inv-pager-at { color:#8a9396; font-size:12.5px; font-variant-numeric:tabular-nums; }
        .inv-pager .btn[disabled] { opacity:.4; cursor:default; }

/* 3. AF5 -- the frames' own group, as approved. A row that ORVO suggested carries the sparkle (`.hy-sp`) before its
   name; ORVO's words stand under the name only where it was unsure (`.ai-note`). "Not set" is the state word the
   Layout column already says (`.hy-st.is-quiet`). On a phone Section and Kept fold into a line under the name and
   the two switches stand under their own short heads. */
.hy-bt.toolbar-row { border-bottom: none; padding: 0 0 12px; flex-wrap: wrap; gap: 10px; }
.hy-bt .toolbar-search { flex: 1 1 220px; min-width: 0; }
.hy-chips { display: flex; gap: 8px; flex: none; }
.hy-bt .btn-ai { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; flex: none; }
.hy-bt .btn-ai svg { width: 15px; height: 15px; flex: none; }
.hy-card-act.is-two { display: flex; gap: 8px; margin-left: auto; }   /* my/css/hygiene-planogram.css:132's, where the Layout card's Cancel and Save stand */
.hy-nmrow { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.hy-sp { display: inline-flex; flex: none; width: 14px; height: 14px; color: var(--orvo-ai-fg); }
.hy-sp svg { width: 14px; height: 14px; display: block; }
.hy-why { white-space: normal; }
.hy-why .ai-note { font-size: 12px; font-weight: 400; margin-top: 3px; }
.chg-table.hy-rules .hy-m { display: none; }
.chg-table.hy-rules .hy-th-s { display: none; }
.hy-pg { margin-top: 2px; }
/* FIXREC (5 Oct 2026, the drawing's PX4): the two origin switch columns (Beef, Chicken) take the Origin column's own width */
.chg-table.hy-rules th.chg-col-amt.hy-o, .chg-table.hy-rules td.chg-col-amt.hy-o { width: 96px; }
/* HYGWALK (23 Oct 2026, his G6/D4): the Temperature switch column beside Batch number, the origin columns' own width */
.chg-table.hy-rules th.chg-col-amt.hy-t, .chg-table.hy-rules td.chg-col-amt.hy-t { width: 96px; }
/* FB30B (his "no pushdown"): the Delivery limits box's one refusal line. It wears .field-error-msg (css/hygiene-cleaning.css: 12 px, 4 px above) and stands
   in the air under the last field, so the box keeps its height and Save never moves: the 15 px line and its 4 px margin are taken back underneath. */
.hy-lim-say { height: 15px; margin-bottom: -19px; }
@media (max-width: 600px) {
    .hy-bt.toolbar-row { gap: 8px; }
    .hy-bt .toolbar-search { flex: 1 1 calc(100% - 118px); }
    .hy-chips { order: 3; flex: 0 0 100%; }
    /* the page's own `.chg-table.hy-reg` / `.hy-rules { min-width: 760px }` (its <style>, read after this sheet)
       is what scrolled the phone sideways: one class heavier, so the fold wins honestly on a phone only */
    .chg-scroll > .chg-table.hy-rules { min-width: 0; }
    .chg-scroll > .chg-table.hy-lim { min-width: 0; }   /* FB30B: the Delivery limits card's own table, so its figures are on screen on a phone */
    .chg-table.hy-rules thead tr, .chg-table.hy-rules tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) 62px 62px; align-items: center; }
    .chg-table.hy-rules.is-kind thead tr, .chg-table.hy-rules.is-kind tbody tr { grid-template-columns: minmax(0, 1fr) 62px 62px 62px; }   /* FIXREC: three switches */
    /* HYGWALK: + Temperature -- one switch more, each column a little narrower so the name keeps its room */
    .chg-table.hy-rules.has-temp thead tr, .chg-table.hy-rules.has-temp tbody tr { grid-template-columns: minmax(0, 1fr) 56px 56px 56px; }
    .chg-table.hy-rules.has-temp.is-kind thead tr, .chg-table.hy-rules.has-temp.is-kind tbody tr { grid-template-columns: minmax(0, 1fr) 50px 50px 50px 60px; }   /* Chicken, the longest head word, has its own room */
    /* BATCHPAGE PART B: no Batch number column -- Temperature and the origin switch(es) only; the widths the switches had before
       Temperature came (one switch fewer), Chicken keeping its own room */
    .chg-table.hy-rules.has-temp.no-batch thead tr, .chg-table.hy-rules.has-temp.no-batch tbody tr { grid-template-columns: minmax(0, 1fr) 62px 62px; }
    .chg-table.hy-rules.has-temp.is-kind.no-batch thead tr, .chg-table.hy-rules.has-temp.is-kind.no-batch tbody tr { grid-template-columns: minmax(0, 1fr) 56px 56px 60px; }
    .chg-table.hy-rules th.chg-col-amt.hy-t, .chg-table.hy-rules td.chg-col-amt.hy-t { width: auto; }
    .chg-table.hy-rules th.chg-col-amt.hy-o, .chg-table.hy-rules td.chg-col-amt.hy-o { width: auto; }
    .chg-table.hy-rules th:nth-child(2), .chg-table.hy-rules th:nth-child(3),
    .chg-table.hy-rules td:nth-child(2), .chg-table.hy-rules td:nth-child(3) { display: none; }
    .chg-table.hy-rules th.chg-col-amt, .chg-table.hy-rules td.chg-col-amt { text-align: center; padding-left: 0; padding-right: 0; }
    .chg-table.hy-rules .hy-th-l { display: none; }
    .chg-table.hy-rules .hy-th-s { display: inline; }
    .chg-table.hy-rules .hy-m { display: block; font-size: 12px; color: #7a8285; margin-top: 2px; font-weight: 400; }
    .chg-table.hy-rules .hy-d { display: none; }
    /* a long name wraps inside its own column rather than run under the switches (not drawn: the frames' names are short) */
    .chg-table.hy-rules td:first-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
    /* the one empty row spans the folded row whole */
    .chg-table.hy-rules td.chg-empty { grid-column: 1 / -1; }
    .hy-card-act.is-two { margin-left: 0; }
}
