/* print.css — the "Download PDF" path. Loaded with media="print".
   When the user prints (or saves as PDF), only the invoice document is shown,
   at full page width. Everything is local — no server round-trip. */

@media print {
  @page { margin: 16mm; }

  :root { --inv-paper: #ffffff; }

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


  /* Hide all chrome + the form + marketing content. */
  .site-header,
  .site-footer,
  .hero,
  .invoice-form,
  .seo-section,
  .preview-head,
  .mobile-download { display: none !important; }

  .generator { padding: 0 !important; max-width: none !important; }
  .workbench { display: block !important; }
  .preview-pane { position: static !important; }
  .preview-scroll { overflow: visible !important; }

  /* The invoice becomes the page. */
  .invoice-doc {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    font-size: 10.5pt !important;
    min-width: 0 !important;
    color: #000 !important;
  }
  .invoice-doc, .invoice-doc * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Avoid awkward breaks inside key blocks. */
  .inv__top, .inv__totals { break-inside: avoid; }
  .inv__table tr { break-inside: avoid; }
}
