/* Printable worksheets: paper-sized pages on screen, clean pages on print */
.print-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 22px; }
.print-toolbar .segmented { margin-left: 4px; }
.sheet-scroll { overflow-x: auto; padding-bottom: 6px; }
.sheet-page {
  background: #fff; color: #111; width: 210mm; min-height: 297mm; margin: 0 auto 26px; padding: 13mm 14mm;
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08); display: flex; flex-direction: column;
  font-family: var(--font-body);
}
body.paper-letter .sheet-page { width: 8.5in; min-height: 11in; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 2px solid #222; padding-bottom: 6px; margin-bottom: 14px; }
.sheet-head h2 { font-size: 20pt; margin: 0; font-family: var(--font-display); color: #111; }
.sheet-head .fields { font-size: 11pt; display: grid; gap: 6px; text-align: right; white-space: nowrap; }
.sheet-sub { font-size: 11pt; color: #444; margin: -6px 0 12px; }
.sheet-foot { margin-top: auto; padding-top: 10px; font-size: 8.5pt; color: #777; text-align: center; }

@media print {
  body { background: #fff; }
  .page-head, .print-toolbar, .print-info { display: none !important; }
  .sheet-scroll { overflow: visible; }
  .sheet-page { width: auto !important; min-height: 0 !important; height: auto; margin: 0; padding: 0; border: 0; box-shadow: none; break-after: page; page-break-after: always; }
  .sheet-page:last-child { break-after: auto; page-break-after: auto; }
}
