/* Print / PDF: light background, black text, no navigation. */
@page { size: A4 portrait; margin: 12mm; }
@page landscape { size: A4 landscape; margin: 10mm; }

@media print {
  :root {
    --bg: #FFFFFF; --panel: #FFFFFF; --panel-2: #FFFFFF; --line: #BFC3C9; --line-strong: #6B7079;
    --ink: #000000; --ink-muted: #2B2E33; --ink-faint: #4D525A;
    --signal-ink: #000000; --ok: #000000; --diff: #000000; --error: #000000; --focus: #000;
  }
  html[data-print="landscape"] body { page: landscape; }
  body { background: #fff; color: #000; font-size: 11pt; min-height: 0; }
  .topbar, .nav, .more-sheet, .site-foot, .upsell, .no-print, .toasts, .skip, .store-warn, button, .btn, select.add-sel { display: none !important; }
  .shell { display: block; }
  main { padding: 0 !important; }
  .print-only { display: block; }
  .print-head { display: flex !important; align-items: center; gap: 12px; justify-content: space-between; border-bottom: 1.5pt solid #000; padding-bottom: 6pt; margin-bottom: 10pt; }
  .print-brand { display: flex; align-items: center; gap: 6px; }
  .print-brand .mark-corners { stroke: #000; }
  .print-brand .mark-square { fill: #000; }
  .print-foot { display: block !important; position: fixed; bottom: 0; left: 0; right: 0; font: 500 8pt/1.2 var(--font-mono); letter-spacing: .04em; color: #333; text-align: center; border-top: .5pt solid #999; padding-top: 3pt; background: #fff; }
  .screen-head .lead, .screen-head .label { display: none; }
  .h-section { font-size: 18pt; }
  .card { border: 0; padding: 0; background: #fff; }
  .print-hide { display: none !important; }

  /* schedule */
  .sched-table { display: block !important; }
  .sched-days { display: none !important; }
  .sched-grid { display: grid !important; grid-template-columns: 26mm repeat(7, minmax(0, 1fr)); gap: 2pt; }
  .sched-grid .hd { font: 600 8pt/1.2 var(--font-mono); text-transform: uppercase; padding: 2pt; }
  .sched-grid .rowh { font-size: 9pt; font-weight: 700; }
  .sched-grid .rowh .t { display: block; font: 500 7.5pt/1.2 var(--font-mono); }
  .cell { border: .75pt solid #000; min-height: 16mm; padding: 2pt; display: grid; gap: 2pt; align-content: start; break-inside: avoid; }
  .cell.closed { border-style: dotted; }
  .asg { min-height: 0 !important; padding: 2pt 4pt !important; font-size: 9pt; }
  .asg-draft { border: .75pt dashed #000 !important; background: #fff !important; }
  .asg-approved { border: .75pt solid #000 !important; background: #fff !important; color: #000 !important; font-weight: 700; }
  .asg .print-name { display: inline !important; }
  .asg select { display: none !important; }
  .missing { border: .75pt dashed #000 !important; color: #000 !important; min-height: 0 !important; padding: 2pt 4pt !important; font-size: 7.5pt; }
  .dot { outline: .5pt solid #000; }

  /* allergens cards: 2 × 4 per A4 */
  .al-print .al-cards { grid-template-columns: repeat(2, 1fr) !important; gap: 4mm; }
  .al-card { background: #fff !important; color: #000 !important; border: 1pt solid #000; min-height: 62mm; break-inside: avoid; }
  .al-card .nums span { border-color: #000; }
  .al-print > :not(.al-print-keep) { display: none !important; }

  table { font-size: 9.5pt; }
  th, td { padding: 3pt 5pt; border-bottom: .5pt solid #999; }
  a { color: #000; text-decoration: none; }
  .chip { border-color: #000 !important; color: #000 !important; background: #fff !important; }
}
