/* Print: show only the rendered document (#docHost), hide the app chrome. */
@page { size: A4; margin: 12mm; }

.topbar, main#view, .toast, .modal-overlay { display: none !important; }

.doc-host {
  position: static !important;
  left: auto !important;
  top: auto !important;
}
.doc-host .quote-doc {
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}
.doc-host .quote-doc::before { display: none !important; }

/* keep brand colours in the PDF */
.quote-table thead th,
.quote-table tfoot .grand .value::after,
.doc-parties h3::after,
.doc-banking, .doc-accept, .doc-notes,
.status-pill {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* avoid ugly page breaks */
.doc-head, .doc-parties, .doc-lower, .doc-terms, .doc-footer { break-inside: avoid; }
.quote-table tr, .group-row { break-inside: avoid; }
.manifest-section, .handover-block, .manifest-doc, .coldchain, .doc-statement { break-inside: avoid; }

/* keep manifest doc-box fill in print */
.doc-box.on, .handover-block { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
