/* T07 — shared document view. Uses the existing identity tokens (--border, --card, --muted, --primary-dark); no new colours. */
.rz-doc-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.rz-doc-errors{margin:0;padding-inline-start:18px}
.rz-doc-company{margin-top:0}
.rz-doc-title{margin:0 0 8px;font-size:18px}
.rz-doc-h3{margin-top:0;font-size:15px;color:var(--primary-dark)}
.rz-doc-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 24px;margin-bottom:10px}
.rz-doc-meta p{margin:4px 0}
.rz-doc-lines-wrap{overflow-x:auto}
.rz-doc-lines th.rz-num,.rz-doc-lines td.rz-num{text-align:end;font-variant-numeric:tabular-nums}
.rz-doc-totals{margin:12px 0 0;margin-inline-start:auto;max-width:340px}
.rz-doc-total-row{display:flex;justify-content:space-between;gap:16px;padding:4px 0;border-bottom:1px solid var(--border)}
.rz-doc-total-row dt{margin:0}
.rz-doc-total-row dd{margin:0;font-variant-numeric:tabular-nums}
.rz-doc-total-row.is-grand{font-weight:700;border-bottom:2px solid var(--primary-dark)}
.rz-doc-notes{margin-top:12px;white-space:pre-line}
.rz-doc-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.rz-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media (max-width:640px){.rz-doc-meta{grid-template-columns:1fr}}
@media print{
  .rz-doc{border:0;box-shadow:none;padding:0}
  .rz-doc-lines-wrap{overflow:visible}
  .rz-doc-lines thead{display:table-header-group}   /* the header repeats on every printed page */
  .rz-doc-lines tfoot{display:table-footer-group}
  .rz-doc-lines tr{break-inside:avoid;page-break-inside:avoid}
  .rz-doc-totals{break-inside:avoid;page-break-inside:avoid}
}

/* Z20: the alignment and size of a paragraph written in the small editor (SafeHtml keeps only these classes); text-align is the physical side the button names */
.rz-al-r{text-align:right}
.rz-al-c{text-align:center}
.rz-al-l{text-align:left}
.rz-sz-s{font-size:.85em}
.rz-sz-l{font-size:1.2em}
.rz-sz-xl{font-size:1.5em}
