/* PencilPage printing: only the generated sheets reach the paper, one SVG per page at its exact size.
 * app.js sets "@page { size: ... }" for Letter or A4 through the CSSOM before calling print(). */
@page { margin: 0; }
html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
body.printing > *:not(#printroot), body:not(.printing) #printroot { display: none !important; }
body.printing main, body.printing header, body.printing footer { display: none !important; }
#printroot { display: block !important; }
#printroot .psheet { break-after: page; page-break-after: always; overflow: hidden; margin: 0; padding: 0; }
#printroot .psheet:last-child { break-after: auto; page-break-after: auto; }
#printroot.pr-letter .psheet { width: 8.5in; height: calc(11in - 2px); }
#printroot.pr-a4 .psheet { width: 210mm; height: calc(297mm - 2px); }
#printroot svg { display: block; width: 100%; height: 100%; }
