/*
 * Component-level styles beyond Tailwind (loaded via CDN).
 * Most of the visual system is Tailwind utilities; this file is for the few
 * rules utilities can't express cleanly — chiefly the print/PDF layout.
 */

/* --- Print / PDF -----------------------------------------------------------
 * Used by report.html (the print-optimised, all-sections-in-one report). The
 * app chrome and any .no-print controls are hidden; backgrounds forced white;
 * sections kept from breaking across pages where possible.
 */
@media print {
  .no-print { display: none !important; }

  @page { margin: 16mm; }

  html, body { background: #fff !important; }

  /* Avoid breaking a card/section across a page where we can. */
  .print-section { break-inside: avoid; }
  .print-section table { break-inside: auto; }   /* long tables may span pages */
  thead { display: table-header-group; }          /* repeat headers on each page */
  h1, h2, h3 { break-after: avoid; }

  /* Tighten the on-screen card chrome for paper. */
  .print-section section { border: 1px solid #e2e8f0 !important; box-shadow: none !important; }
}
