/* Print (CLAUDE.md §5.9): hide the shell; A4; reports landscape; never split a payslip. */
@page { size: A4 portrait; margin: 12mm; }
@page report { size: A4 landscape; margin: 10mm; }

@media print {
  body { background: #fff !important; font-size: 11pt; }
  .ip-sidebar, .ip-topbar, .ip-support-banner, .ip-toast-region, .ip-wizard-footer, .ip-save-bar,
  .ip-page-actions, .ip-filter-bar, .ip-table-toolbar, .ip-no-print, #blazor-error-ui, .ip-palette { display: none !important; }
  .ip-shell { display: block; }
  .ip-content { padding: 0; max-width: none; }
  .ip-card { border: 0; box-shadow: none; }
  .ip-table-scroll { overflow: visible !important; max-height: none !important; }
  .ip-table thead th, .ip-table tfoot td, .ip-table .is-sticky { position: static !important; }
  .ip-table thead { display: table-header-group; }
  .ip-table tfoot { display: table-footer-group; }
  .ip-table tr { break-inside: avoid; }
  .ip-payslip { break-inside: avoid; page-break-inside: avoid; }
  .ip-print-report { page: report; }

  /* "Print only this area": everything except the marked area is hidden. */
  body.ip-print-area-only * { visibility: hidden; }
  body.ip-print-area-only .ip-print-target, body.ip-print-area-only .ip-print-target * { visibility: visible; }
  body.ip-print-area-only .ip-print-target { position: absolute; left: 0; top: 0; width: 100%; }
}
