#refinement-print-proof { display: none; }

@media print {
  @page { size: A4 portrait; margin: 14mm; }
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; color: #000 !important; }
  body > :not(#refinement-print-proof) { display: none !important; }
  #refinement-print-proof {
    display: block !important;
    width: 182mm;
    margin: 0;
    color: #000;
    background: #fff;
    font-family: 'Ronzino', Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #refinement-print-proof *, #refinement-print-proof *::before, #refinement-print-proof *::after { box-sizing: border-box; }
  #refinement-print-proof .ref-print-page { break-after: page; page-break-after: always; width: 182mm; padding: 0; }
  #refinement-print-proof .ref-print-page:last-child { break-after: auto; page-break-after: auto; }
  #refinement-print-proof h1, #refinement-print-proof h2, #refinement-print-proof p,
  #refinement-print-proof figure, #refinement-print-proof dl, #refinement-print-proof dd { margin: 0; }
  #refinement-print-proof h1 { font-family: 'Coconat', Georgia, serif; font-size: 25pt; font-weight: 400; line-height: 1.15; margin: 6mm 0 2.5mm; }
  #refinement-print-proof h2 { font-size: 10pt; font-weight: 500; line-height: 1.3; margin-bottom: 3mm; }
  #refinement-print-proof svg { display: block; flex: none; max-width: none !important; max-height: none !important; margin: 0; }
  #refinement-print-proof .ref-print-signature { display: flex; justify-content: space-between; padding-bottom: 3mm; border-bottom: .25mm solid #000; font-size: 8pt; }
  #refinement-print-proof .ref-print-header { margin-bottom: 5mm; }
  #refinement-print-proof .ref-print-header > p { max-width: 160mm; }
  #refinement-print-proof .ref-print-comparison { margin-bottom: 4mm; }
  #refinement-print-proof .ref-print-weight-pair { display: flex; gap: 15mm; margin: 2mm 0 3mm; }
  #refinement-print-proof .ref-print-weight-pair figure { display: flex; flex-direction: column; align-items: center; width: 81.28mm; }
  #refinement-print-proof .ref-print-weight-pair figcaption { margin-top: 1mm; font-size: 9pt; }
  #refinement-print-proof .ref-print-note { font-size: 8pt; line-height: 1.45; }
  #refinement-print-proof .ref-print-selection { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3mm 7mm; border-top: .2mm solid #999; border-bottom: .2mm solid #999; padding: 3mm 0; margin: 0 0 4mm; }
  #refinement-print-proof .ref-print-selection dt { font-size: 8pt; color: #444; }
  #refinement-print-proof .ref-print-selection dd { font-weight: 500; }
  #refinement-print-proof .ref-print-chosen { margin-bottom: 6mm; break-inside: avoid; }
  #refinement-print-proof .ref-print-chosen > svg { margin: 3mm auto; }
  #refinement-print-proof .ref-print-sign { padding-top: 4mm; border-top: .2mm solid #999; break-inside: avoid; }
  #refinement-print-proof .ref-print-dimensions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2mm 7mm; margin-bottom: 3mm; }
  #refinement-print-proof .ref-print-dimensions dt { font-size: 8pt; color: #444; }
  #refinement-print-proof .ref-print-footer { margin-top: 5mm; padding-top: 3mm; border-top: .2mm solid #999; font-size: 8pt; }
  #refinement-print-proof .ref-print-calibration { display: flex; align-items: center; gap: 5mm; padding: 5mm 0; margin-bottom: 3mm; border-top: .2mm solid #999; border-bottom: .2mm solid #999; font-size: 8pt; }
  #refinement-print-proof .ref-print-calibration svg { width: 1in !important; height: .22in !important; }
  #refinement-print-proof .ref-print-sample { display: grid; grid-template-columns: 54mm 1fr; align-items: center; min-height: 42mm; padding: 6mm 0; border-bottom: .2mm solid #aaa; break-inside: avoid; }
  #refinement-print-proof .ref-print-sample figcaption { display: flex; flex-direction: column; gap: 1mm; font-size: 8pt; }
  #refinement-print-proof .ref-print-sample strong { font-size: 10pt; font-weight: 500; }
  #refinement-print-proof .ref-print-check { padding-top: 7mm; break-inside: avoid; }
  #refinement-print-proof .ref-print-writing-lines { margin-top: 3mm; }
  #refinement-print-proof .ref-print-writing-lines > div { height: 9mm; border-bottom: .2mm solid #aaa; }
}
