/* Inspection report — always a fixed light "paper" palette, independent of
   the app theme, so what prints matches what is previewed. */
.insprep { background: #fff; color: #111; font: 12px/1.45 Geist, "Segoe UI", Arial, sans-serif; padding: 22px 26px; max-width: 900px; margin: 0 auto; border: 1px solid #d0d4da; }
.insprep h1 { font-size: 20px; margin: 6px 0 10px; letter-spacing: -0.01em; }
.insprep h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin: 18px 0 6px; padding-bottom: 3px; border-bottom: 2px solid #1d4ed8; color: #111; break-after: avoid; page-break-after: avoid; }
.insprep h3 { font-size: 13px; margin: 0 0 6px; font-family: "Geist Mono", Consolas, monospace; }
.insprep h4 { font-size: 11px; margin: 8px 0 2px; color: #444; text-transform: uppercase; letter-spacing: 0.04em; }
.insprep p { margin: 2px 0 4px; }
.insprep-brand { font-weight: 700; letter-spacing: 0.1em; font-size: 11px; color: #1d4ed8; }
.insprep-brand span { color: #444; font-weight: 600; }
.insprep-company { font-size: 11px; color: #333; margin-top: 4px; }
.insprep-na { color: #666; font-style: italic; }
.insprep-small { font-size: 10.5px; color: #555; }
.insprep-void { border: 2px solid #b91c1c; color: #7f1d1d; background: #fef2f2; padding: 6px 8px; font-weight: 600; margin: 6px 0; }
.insprep table { width: 100%; border-collapse: collapse; }
.insprep th, .insprep td { text-align: left; vertical-align: top; padding: 3px 6px; border: 1px solid #cfd4da; }
.insprep th { background: #f1f3f6; font-weight: 600; width: 24%; color: #222; }
.insprep-meta th { width: 15%; }
.insprep-grid { margin: 6px 0; }
.insprep-grid th, .insprep-grid td { width: auto; text-align: center; }
.insprep-grid td { font-size: 15px; font-weight: 700; }
.insprep-left th, .insprep-left td { text-align: left; font-size: 11px; font-weight: 400; }
.insprep-left th { font-weight: 600; }
.insprep-finding { border: 1px solid #b7bec7; padding: 8px; margin: 0 0 10px; break-inside: avoid; page-break-inside: avoid; }
.insprep-note { font-size: 10.5px; color: #7c2d12; margin-bottom: 4px; }
.insprep-cls { display: inline-block; padding: 1px 7px; border-radius: 3px; font-weight: 700; font-size: 11px; border: 1px solid #111; }
.insprep-cls-red { background: #fee2e2; color: #7f1d1d; border-color: #b91c1c; }
.insprep-cls-amber { background: #fef3c7; color: #78350f; border-color: #b45309; }
.insprep-cls-green { background: #dcfce7; color: #14532d; border-color: #15803d; }
.insprep-cls-unassessed { background: #e5e7eb; color: #1f2937; border-color: #6b7280; }
.insprep-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.insprep-photos figure { margin: 0; width: 48%; break-inside: avoid; page-break-inside: avoid; }
.insprep-photos img { display: block; max-width: 100%; max-height: 260px; width: auto; height: auto; border: 1px solid #b7bec7; }
.insprep-photos figcaption { font-size: 10.5px; color: #333; margin-top: 2px; }
.insprep-missing { border: 1px dashed #999; padding: 20px 8px; font-size: 10.5px; color: #555; text-align: center; }
.insprep-nophoto { margin-top: 6px; font-size: 11px; }
.insprep-closing { break-inside: avoid; page-break-inside: avoid; }

#inspReportPrintRoot { display: none; }
@page { margin: 14mm; }
@media print {
  body.insprep-print-mode > *:not(#inspReportPrintRoot) { display: none !important; }
  body.insprep-print-mode #inspReportPrintRoot { display: block !important; }
  .insprep { border: none; padding: 0; max-width: 100%; }
  .insprep-cls, .insprep-void, .insprep th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 640px) { .insprep { padding: 12px; } .insprep-photos figure { width: 100%; } }
