/* ==========================================================================
   print.css — page setup and chrome hiding (print media only)
   Sheet visuals live in sheet.css so the same markup previews on screen.
   ========================================================================== */

.print-root { display: none; }

@media print {
  html, body {
    background: #fff !important;
    color: #000;
    font-size: 11.4px;
  }
  body::before { display: none !important; }
  body > *:not(.print-root) { display: none !important; }
  .app-shell, .login-screen, .toasts, .modal-root, #sprite, .noscript { display: none !important; }

  .print-root { display: block !important; }

  @page { size: A4; margin: 12mm; }

  .paper {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .sheet { max-width: none; font-size: 11.2px; }
  .sheet + .sheet { page-break-before: always; margin-top: 0; }
  table.sheet-table thead { display: table-header-group; }
  table.sheet-table tr { page-break-inside: avoid; }
  .sheet-note, .sheet-summary .s, .sheet-box, .sign-row { page-break-inside: avoid; }
  .sheet-brand .logo, .status-tag, table.sheet-table th, table.sheet-table tfoot td, table.sheet-table tbody tr:nth-child(even) td {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
