/* Printing the page prints only the self-built report, one A4 page each. */
@page { size: A4; margin: 0; }
body { background: #FFFFFF !important; }
body:not(.print-result) > *:not(main), body:not(.print-result) main > *:not(#report), body.print-result > *:not(main), #report .section__head, #report .report-tools, #report .report-status, .skip { display: none !important; }
#report { padding: 0 !important; }
#report .wrap { max-width: none; padding: 0; }
.report-pages { display: block; }
.rpage {
  width: 210mm; height: 297mm; max-width: none; aspect-ratio: auto; margin: 0; padding: 16mm 16mm 12mm;
  border: 0; border-radius: 0; box-shadow: none; break-after: page; animation: none !important;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.rpage:last-child { break-after: auto; }
.rcover { margin: -16mm -16mm 0; padding: 16mm; }

/* "Save as PDF" from the result prints the result report instead. */
body.print-result main > *:not(#diagnostic), body.print-result #diagnostic .wrap > *:not(.results), body.print-result .results > :not(.creport), body.print-result .creport__actions { display: none !important; }
body.print-result #diagnostic { padding: 0 !important; background: #FFFFFF !important; }
body.print-result .creport { border: 0; padding: 12mm; animation: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body.print-result .chart, body.print-result .opp, body.print-result .beyond { break-inside: avoid; }
