/* Draft plan and method pack: printed (Save as PDF) from #crp-print only. */
#crp-print { display: none; }

@media print {
  @page { size: A4; margin: 16mm 16mm 18mm; }
  body > *:not(#crp-print) { display: none !important; }
  body { background: #fff !important; }

  #crp-print {
    display: block; color: #000; background: #fff;
    font-family: Arial, Helvetica, sans-serif; font-size: 10.5pt; line-height: 1.4;
    overflow-wrap: anywhere; /* a long unbroken name or address can't run off the page */
  }
  /* Chrome repeats position:fixed elements on every printed page. */
  #crp-print .crp-doc-mark {
    position: fixed; top: 45%; left: 0; right: 0; text-align: center;
    transform: rotate(-35deg); font-size: 40pt; font-weight: 700; color: rgba(0, 0, 0, 0.09);
    pointer-events: none; z-index: 0; white-space: nowrap;
  }
  #crp-print .crp-doc-banner {
    border: 0.4mm solid #000; display: inline-block; font-weight: 700; margin: 0 0 5mm; padding: 1.5mm 3mm;
  }
  #crp-print h1 { font-size: 20pt; margin: 0 0 5mm; }
  #crp-print h2 { border-bottom: 0.35mm solid #222; font-size: 13pt; margin: 7mm 0 2.5mm; padding-bottom: 1mm; break-after: avoid; }
  #crp-print h3 { font-size: 11pt; margin: 4mm 0 2mm; break-after: avoid; }
  #crp-print p { margin: 0 0 2.5mm; orphans: 3; widows: 3; }
  #crp-print .crp-doc-label { font-weight: 700; margin-top: 3mm; break-after: avoid; }
  #crp-print ul, #crp-print ol { margin: 0 0 3mm; padding-left: 6mm; }
  #crp-print li { margin-bottom: 1.2mm; white-space: pre-line; }

  #crp-print .crp-doc-kv { display: grid; grid-template-columns: max-content 1fr; gap: 1mm 5mm; margin: 0 0 4mm; }
  #crp-print .crp-doc-kv dt { font-weight: 700; }
  #crp-print .crp-doc-kv dd { margin: 0; overflow-wrap: anywhere; }

  #crp-print .crp-doc-table { border-collapse: collapse; margin: 0 0 4mm; width: 100%; break-inside: auto; }
  #crp-print .crp-doc-table th, #crp-print .crp-doc-table td {
    border: 0.25mm solid #888; padding: 1.2mm 2mm; text-align: left; vertical-align: top; white-space: pre-line;
  }
  #crp-print .crp-doc-table thead th { background: #eee; }
  #crp-print .crp-doc-table tbody th { font-weight: 400; }
  #crp-print .crp-doc-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  #crp-print .crp-doc-table.is-strong-last tbody tr:last-child > * { font-weight: 700; }
  #crp-print .crp-doc-table.is-small { font-size: 8pt; }
  #crp-print .crp-doc-table tr { break-inside: avoid; }
  #crp-print .crp-doc-table.is-narrow { max-width: 120mm; }

  #crp-print .crp-doc-figure { margin: 2mm 0 5mm; break-inside: avoid; }
  #crp-print .crp-doc-chart { width: 140mm; height: auto; font-size: 11px; }
  #crp-print .crp-doc-chart .is-actual { fill: #4a6b5d; }
  #crp-print .crp-doc-chart .is-target { fill: #b9cbbf; }
  #crp-print .crp-doc-figure figcaption { font-size: 8.5pt; color: #333; }

  #crp-print .crp-doc-signature { margin-top: 8mm; }
  #crp-print .crp-doc-break { break-after: page; }
  #crp-print .crp-doc-review { break-before: page; }
  #crp-print .crp-doc-footer { border-top: 0.25mm solid #888; color: #333; font-size: 8pt; margin-top: 8mm; padding-top: 2mm; }
}

@media print {
  #crp-print h1, #crp-print h2, #crp-print h3 { color: #000; font-family: Arial, Helvetica, sans-serif; letter-spacing: 0; }
  #crp-print .crp-doc-table.is-narrow { break-inside: avoid; }
}
