/* Print: only the score, as whole A4 pages. OSMD has already laid the music out on A4 pages
   (one SVG per page, whole systems only); each is scaled to the printable area so a system
   can never be split across sheets. The @page margins and footer are set by score.js. */
html, body { background: #fff !important; color: #000 !important; height: auto !important; }
body::before, body::after { display: none !important; }
#app, #toasts { display: none !important; }
#print-root { display: block !important; position: static !important; left: auto !important; width: auto !important; visibility: visible !important; }
.print-score .print-page, .print-score > div {
  display: flex; justify-content: center; align-items: flex-start;
  height: 272mm;                     /* A4 (297mm) minus the @page margins (10mm + 14mm) and a little slack */
  break-inside: avoid; page-break-inside: avoid; break-after: page; page-break-after: always; overflow: hidden;
}
.print-score .print-page:last-child, .print-score > div:last-child { break-after: auto; page-break-after: auto; }
.print-score svg { display: block; height: 100% !important; width: auto !important; max-width: 100% !important;
  break-inside: avoid; page-break-inside: avoid; }
