/* Print stylesheet for A4 exports */
@page {
  size: A4 portrait;
  margin: 15mm;
}

html, body {
  background: #fff;
  color: #111;
  -webkit-print-color-adjust: exact;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-size: 12px;
}

/* Utility classes used by manifest/ppp pages */
.manifest-page, .ppp-page {
  padding: 15mm !important;
  max-width: 210mm !important;
  margin: 0 auto !important;
}

.no-print { display: none !important; }
.page-break { page-break-after: always; }
.page-section { page-break-inside: avoid; }

/* Reduce spacing for print to fit more content when needed */
h1, h2, h3 { color: #111; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 13px; }

table { border-collapse: collapse; width: 100%; }
table th, table td { border: 1px solid #ddd; padding: 6px 8px; }

/* Table header styling — ensure contrast */
table thead th,
table thead td {
  background-color: #1f2937 !important;
  color: #ffffff !important;
  font-weight: bold;
}

/* Dark background rows (any th or td with dark bg classes) — white text */
table th[class*="bg-gray-8"],
table th[class*="bg-slate-8"],
table th[class*="bg-stone-8"],
table td[class*="bg-gray-8"],
table td[class*="bg-slate-8"],
table td[class*="bg-stone-8"],
table tr[class*="bg-gray-8"] th,
table tr[class*="bg-gray-8"] td,
table tr[class*="bg-slate-8"] th,
table tr[class*="bg-slate-8"] td,
table tr[class*="bg-stone-8"] th,
table tr[class*="bg-stone-8"] td {
  background-color: #1f2937 !important;
  color: #ffffff !important;
}

/* Regular body rows — white background, dark text */
table tbody tr {
  background-color: #ffffff !important;
}
table tbody th,
table tbody td {
  color: #111111 !important;
}

/* Alternate row styling if present */
table tbody tr:nth-child(odd) {
  background-color: #ffffff !important;
}
table tbody tr:nth-child(even) {
  background-color: #f9fafb !important;
}

/* Ensure monospace numeric columns stay aligned */
.font-mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, 'Roboto Mono', monospace; }

/* Small footprint for signatures */
.signature-line { min-height: 36px; }

/* Hide interactive-only elements */
button, input, textarea, .input, .select { display: none !important; }

/* Logos/images — ensure they fit */
img { max-width: 100%; height: auto; }

/* Tweak charts for print if using canvas/SVG */
svg, canvas { max-width: 100% !important; height: auto !important; }
