@page { margin: var(--print-margin); }
html, body { background: var(--print-paper); color: var(--print-ink); }
.site-header, .no-print { display: none !important; }
.page, .document { max-inline-size: none; padding: 0; margin: 0; border: 0; }
.table-scroll { overflow: visible; }
table { background: transparent; }
td, th { overflow-wrap: anywhere; }
td a { min-inline-size: 0; }
a { color: inherit; text-decoration: none; }
tr, .document-header, .document-total { break-inside: avoid; }

.print-only { display: block; font-weight: 700; }

/* the screen shell does not print */
body.signed { display: block; min-height: 0; }
.signed .page, .guest .page { padding: 0; margin: 0; max-width: none; }
.panel, .table-scroll { box-shadow: none; border-radius: 0; padding: 0; background: transparent; }

/* paper look (IRIS, 6 Dec): keep the teal lines and the soft detail box, drop the screen card */
.document.panel { max-width: none; padding: 0; }
.document-header, .document-total { border-color: var(--teal); }
.document h1 { color: var(--teal); }
.document-details, .document th { background: var(--soft); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.made-by { display: none; }

/* page numbers in the page corner; defining a margin box also keeps the browser's own date and title line off the paper */
@page {
  @bottom-right { content: "Page " counter(page) " of " counter(pages); font-family: "Montserrat", sans-serif; font-size: 9pt; }
}

/* statement of account (IRIS, 6 Dec): the sheet alone, hairlines, nothing smaller than 9pt */
.stmt.panel { max-width: none; padding: 0; margin: 0; }
.stmt .document-header { border-color: var(--teal); }
.stmt { font-size: 10pt; }
.stmt td, .st-age tbody th { font-size: 9.5pt; padding: 6px 6px; }
.stmt th { font-size: 9pt; padding: 6px 6px; }
.stmt thead { display: table-header-group; }
.stmt tfoot { display: table-row-group; }
.st-sum { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); }
.st-sum .close { grid-column: auto; border-top: 0; border-left: 1px solid var(--line); padding-left: 12px; }
.st-who { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.stmt h3 { break-after: avoid; }
.stmt .chip { background: none; padding: 0; color: inherit; font-weight: 600; }
.stmt .chip.crit { color: var(--crit-ink); }
