/* Shared board/school programme tables: preserve native records and units. */
.wrap { max-width:1280px; }
.card, .prog { min-width:0; }
.scroll, .inv, .inventory, .week-site, .menus, .runs { max-width:100%; overflow-x:auto; }
table { width:100%; border-collapse:separate; border-spacing:0; font-size:1rem; line-height:1.5; }
th, td { padding:12px 14px; vertical-align:top; border-bottom:1px solid var(--line); }
th { background:var(--bg); color:var(--ink); font-size:max(16px, 1rem); text-transform:none; letter-spacing:0; text-align:left; }
tbody tr:nth-child(even) { background:var(--bg); }
tbody tr:hover { background:#eef3ea; }
td { font-variant-numeric:tabular-nums; overflow-wrap:break-word; }
.week-num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.week-site table td:first-child { min-width:14rem; max-width:26rem; }
.week-site table td:first-child .sub { margin-top:6px; line-height:1.5; }
.scroll:focus-visible { outline:2px solid var(--border-focus, var(--gr-operator-border-focus)); outline-offset:2px; }
@media (max-width:700px) {
 .wrap { padding:12px; }
 .card { padding:14px; overflow-x:auto; }
 .prog { overflow-x:auto; }
 table { min-width:36rem; }
 th, td { padding:10px 12px; }
}

.gr-table-disclosure, .gr-stock-disclosure { border:1px solid var(--line); border-radius:10px; margin:12px 0; padding:12px; min-width:0; }
.gr-table-disclosure > summary, .gr-stock-disclosure > summary, .gr-ingredient > summary { cursor:pointer; min-height:44px; font-weight:600; padding:8px; overflow-wrap:anywhere; }
.gr-inventory-tools { display:flex; flex-wrap:wrap; gap:12px; margin:12px 0; }
.gr-inventory-tools label { display:flex; flex-direction:column; gap:6px; }
.gr-inventory-tools input, .gr-inventory-tools select { min-height:44px; max-width:100%; font:inherit; padding:8px; }
.gr-ingredient-offer { display:flex; gap:12px; min-width:14rem; padding:12px 0; border-bottom:1px solid var(--line); }
.gr-ingredient-offer img { object-fit:cover; border-radius:8px; flex-shrink:0; }
.gr-ingredient-offer p { margin:6px 0; }
.gr-shortfall { color:var(--warn,#9a3412); font-weight:700; background:#fff4e5; }
.gr-inventory-review .scroll { overflow-x:auto; }
.gr-inventory-review table { min-width:52rem; }
.gr-inventory-review input[type=checkbox] { width:20px; height:20px; }

/* Nutrient values have three short columns; keep all three visible on a phone. */
.gr-projected-meal table { min-width:0; table-layout:fixed; }
.gr-projected-meal th, .gr-projected-meal td { overflow-wrap:anywhere; white-space:normal; }
@media (max-width:700px) {
 .gr-projected-meal th, .gr-projected-meal td { padding:8px 6px; }
}

/* ── Inventory workbench (School Board ERP Release B): summary strip, location bars, row
      actions and the details drawer. Foundation tokens with the page palette as fallback;
      16px text and 44px controls like the rest of the programme tables. ── */
.gr-inv-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr)); gap:10px; margin:12px 0; }
.gr-inv-kpi { display:grid; gap:2px; padding:10px 12px; border:1px solid var(--gr-cloud-border,var(--line,#e2e8dd)); border-radius:10px; background:var(--gr-cloud-surface-alt,var(--bg,#f6f8f4)); }
.gr-inv-kpi strong { font-size:1.375rem; color:var(--gr-cloud-primary,var(--green,#2d5016)); font-variant-numeric:tabular-nums; }
.gr-inv-kpi span { color:var(--gr-cloud-muted,var(--muted,#3f4b56)); }
.gr-inv-chart { margin:12px 0; }
.gr-inv-chart figcaption { font-weight:600; margin-bottom:6px; }
.gr-inv-chart ul { list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.gr-inv-chart li { display:grid; grid-template-columns:minmax(0,12rem) minmax(0,1fr) auto; gap:10px; align-items:center; }
.gr-inv-chart__label { overflow-wrap:anywhere; }
.gr-inv-chart__track { height:14px; border-radius:7px; background:var(--gr-cloud-surface-alt,#f5f7f2); border:1px solid var(--gr-cloud-border,#e6e6eb); overflow:hidden; }
.gr-inv-chart__bar { display:block; height:100%; background:var(--gr-cloud-primary,#2d5016); }
.gr-inv-chart__value { font-variant-numeric:tabular-nums; white-space:nowrap; }
@media (max-width:600px){ .gr-inv-chart li { grid-template-columns:1fr auto; } .gr-inv-chart__track { grid-column:1 / -1; grid-row:2; } }
.gr-inv-actions { white-space:nowrap; }
.gr-inv-actions button { min-height:44px; margin:2px 4px 2px 0; padding:6px 12px; }
.gr-inv-drawer { margin:12px 0; padding:14px 16px; border:2px solid var(--gr-cloud-primary,var(--green,#2d5016)); border-radius:12px; background:var(--gr-cloud-surface,#fff); }
.gr-inv-drawer:focus { outline:2px solid var(--gr-cloud-primary,#2d5016); outline-offset:2px; }
.gr-inv-drawer__head { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; }
.gr-inv-drawer__head h4 { margin:0; }
.gr-inv-count-form fieldset { border:1px solid var(--gr-cloud-border,var(--line,#e2e8dd)); border-radius:10px; padding:10px 12px; margin:10px 0; display:grid; gap:8px; min-width:0; }
.gr-inv-count-form label { display:grid; gap:4px; max-width:24rem; }
.gr-inv-count-form input { min-height:44px; font:inherit; padding:8px; }
.gr-inv-count-form button { justify-self:start; min-height:44px; }
@media print { .gr-inv-actions, .gr-inv-drawer { display:none !important; } }
.gr-inventory-review table[data-gr-native-review] td:nth-child(2) { min-width:14rem; }
.gr-inventory-review table[data-gr-native-review] td:first-child { min-width:9rem; overflow-wrap:anywhere; }

/* ── Supplier register (Release C): forms, tier and status chips. Status is always written in
      words beside its colour, so colour is never the only cue. ── */
.gr-supplier-register form fieldset { border:1px solid var(--gr-cloud-border,var(--line,#e2e8dd)); border-radius:10px; padding:12px 14px; margin:12px 0; display:grid; gap:10px; min-width:0; }
.gr-supplier-register label { display:grid; gap:4px; max-width:36rem; }
.gr-supplier-register fieldset.gr-sup-candidates label,
.gr-supplier-register fieldset.gr-sup-serves label { display:flex; align-items:center; gap:8px; }
.gr-supplier-register input:not([type=radio]):not([type=checkbox]), .gr-supplier-register select, .gr-supplier-register textarea { min-height:44px; font:inherit; padding:8px; max-width:100%; box-sizing:border-box; }
.gr-supplier-register input[type=radio], .gr-supplier-register input[type=checkbox] { width:20px; height:20px; }
.gr-sup-search { display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; }
.gr-sup-search label { flex:1 1 20rem; }
.gr-sup-actions { display:flex; flex-wrap:wrap; gap:8px; }
.gr-supplier-register button { min-height:44px; }
.gr-sup-tier, .gr-sup-status { display:inline-block; padding:2px 10px; border-radius:999px; font-weight:600; white-space:nowrap; border:1px solid var(--gr-cloud-control-border,#788271); }
.gr-sup-tier--dedicated { background:var(--gr-cloud-success-soft,#eef5e9); color:var(--gr-cloud-primary,#2d5016); }
.gr-sup-tier--preapproved { background:var(--gr-cloud-info-soft,#eff6ff); color:var(--gr-cloud-info,#1e40af); }
.gr-sup-status--active { background:var(--gr-cloud-success-soft,#eef5e9); color:var(--gr-cloud-success,#1f3a0f); }
.gr-sup-status--suspended { background:var(--gr-cloud-warning-soft,#fffbeb); color:var(--gr-cloud-warning,#713f12); }
.gr-sup-status--ended { background:var(--gr-cloud-surface-alt,#f5f7f2); color:var(--gr-cloud-muted,#3f4b56); }
.gr-sup-history-list { margin:8px 0 0; padding-left:20px; display:grid; gap:8px; }
.gr-sup-status-line { min-height:1.5em; }
.gr-sup-order { margin:16px 0; display:grid; gap:12px; }
.gr-sup-order__list { margin:0; padding-left:24px; display:grid; gap:8px; }
.gr-sup-order__list li { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px; padding:8px 12px; border:1px solid var(--gr-cloud-border); border-radius:12px; background:var(--gr-cloud-surface); }
.gr-sup-order__name { font-weight:600; }
.gr-sup-order-save { display:grid; gap:8px; }
.gr-sup-order__status { min-height:1.5em; }
.gr-sup-map { margin-top:16px; }
.gr-sup-map__canvas { height:360px; max-width:100%; border:1px solid var(--gr-cloud-border,#e6e6eb); border-radius:10px; margin:8px 0; }
@media (max-width:600px){ .gr-sup-map__canvas { height:260px; } }
@media print { .gr-sup-map__canvas { display:none; } }
