/* Escala 5x2 · impressão e PDF. A3 paisagem, só a escala escolhida (data-print no <body>). */
@page { size: A3 landscape; margin: 8mm; }

@media print {
  html, body { background: #fff !important; color: #111 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .topbar, .side, .strip, .notice, .checks-section, .people-section, .rules-box, .legend, .block-head .no-print, .toasts, .pop, .section-title { display: none !important; }

  .shell { display: block; padding: 0; max-width: none; }
  .main { gap: 0; }
  .print-title { display: block !important; text-align: center; margin: 0 0 4mm; }
  .print-title h2 { font-size: 15pt; }
  .print-title p { font-size: 10pt; color: #444; }

  .blocks { gap: 0; }
  .block { border: 0; border-radius: 0; break-after: page; page-break-after: always; }
  .block:last-child { break-after: auto; page-break-after: auto; }
  .block-head { justify-content: center; text-align: center; padding: 0 0 3mm; border: 0; }
  .block-head h3 { font-size: 12pt; }
  .block-head small { font-size: 9pt; color: #333; }

  body[data-print]:not([data-print="all"]):not([data-print=""]) .block:not([data-print-key]) { display: none; }
  body[data-print="b0"] .block:not([data-block="b0"]),
  body[data-print="b1"] .block:not([data-block="b1"]),
  body[data-print="b2"] .block:not([data-block="b2"]),
  body[data-print="b3"] .block:not([data-block="b3"]),
  body[data-print="b4"] .block:not([data-block="b4"]),
  body[data-print="b5"] .block:not([data-block="b5"]) { display: none !important; }

  .sheet-wrap { overflow: visible; }
  .sheet { width: 100%; table-layout: fixed; font-size: 8.5pt; }
  .sheet th, .sheet td { border: 1px solid #888; }
  .sheet .name { position: static; min-width: 0; width: 38mm; max-width: none; padding: 1mm 2mm; border-right: 1px solid #333; }
  .sheet .name .nm { white-space: normal; font-size: 8pt; }
  .sheet .name .mat { font-size: 7pt; }
  .sheet td.c { width: auto; min-width: 0; height: 11mm; }
  .cell { height: 11mm; font-size: 7.5pt; }
  td.off .cell, td.bh .cell { font-size: 11pt; }
  .sheet thead th.we { background: #6b7280 !important; color: #fff !important; }
  .sheet td.c.off { background: #ff7a29 !important; color: #fff !important; }
  .sheet td.c.bh { background: #f5c518 !important; color: #111 !important; }
  .sheet td.c.sun, .sheet td.c.sat { background: #e5e7eb !important; }
  .sheet td.c.edit { box-shadow: none; }
  .sheet tfoot td.over, .sheet tfoot td.low { background: #dc2626 !important; color: #fff !important; }
  .sheet tr { break-inside: avoid; page-break-inside: avoid; }
  .sheet thead { display: table-header-group; }
}
