/* ============================================================
   AMIC report — A4 print rules. Plain CSS (not Tailwind-compiled);
   linked directly from the document head. Screen layout lives in
   Tailwind; this file only governs the printed page.
   ============================================================ */

@media print {
  @page {
    size: A4 portrait;
    margin: 11mm;
  }

  /* White paper, no app chrome. */
  html,
  body,
  .app-bg,
  .bg-page,
  .main {
    background: #fff !important;
  }

  /* Hide anything not part of the document: the site header/nav, the
     action bar, and the login shell. */
  .no-print,
  body > .main > header,
  body header nav {
    display: none !important;
  }

  /* The report sheet becomes the full page: no shadow/round, crisp border. */
  .report-sheet {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 1.5px solid #111 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .report-sheet .rt th,
  .report-sheet .rt td {
    border-color: #555 !important;
  }

  /* Keep brand fills (green band, character grid) in print. */
  .print-exact {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Don't split table rows or the report across pages awkwardly. */
  .rt tr {
    break-inside: avoid;
  }
}
