/* Print stylesheet: loaded with media="print".
   Strips the app chrome and lays reports out on US Letter for filing or
   "Save as PDF". */
@page {
  size: letter portrait;
  margin: 0.6in 0.55in 0.7in;
}

html, body {
  background: #fff !important;
  color: #0f172a !important;
  font-size: 10pt !important;
  line-height: 1.35 !important;
}

/* Hide everything interactive */
nav, header.app-header, footer.app-footer, .no-print, form, button,
.flash-area, [role="navigation"] {
  display: none !important;
}
.print-only { display: block !important; }

main, .print-full {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Cards become plain sections */
.shadow-card, [class*="shadow"] { box-shadow: none !important; }
.rounded-2xl, .rounded-xl { border-radius: 0 !important; }
.report-sheet { border: none !important; padding: 0 !important; }

a { color: inherit !important; text-decoration: none !important; }

h1 { font-size: 16pt !important; margin: 0 0 4pt !important; }
h2 { font-size: 12pt !important; margin: 14pt 0 6pt !important; break-after: avoid; }

/* Tables: ruled, compact, header repeats on each page, rows never split */
table { width: 100% !important; border-collapse: collapse !important; font-size: 9pt !important; }
thead { display: table-header-group; }
tfoot { display: table-footer-group; }
tr, td, th { break-inside: avoid; page-break-inside: avoid; }
th, td {
  border: 0.75pt solid #94a3b8 !important;
  padding: 3pt 4pt !important;
  background: transparent !important;
  color: #0f172a !important;
}
thead th {
  font-size: 8pt !important;
  background: rgb(var(--brand-50)) !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  font-weight: 600 !important;
}
.overflow-x-auto { overflow: visible !important; }
.report-sheet table { table-layout: auto; max-width: 100% !important; font-size: 8.5pt !important; }
.report-sheet th, .report-sheet td { padding: 2.5pt 3pt !important; }
.report-sheet table.summary-table { table-layout: fixed !important; width: 100% !important; }
.report-sheet table.summary-table thead tr:first-child th:first-child { width: 14%; }
.report-sheet .text-xs { font-size: 7pt !important; }

/* Status pills print as plain text */
.pill { background: none !important; border: none !important; padding: 0 !important; box-shadow: none !important; }

.report-signoff { break-inside: avoid; margin-top: 28pt; }
