/* Print rules (design section 7). Linked with media="print". */
@page { size: A4 portrait; margin: 14mm 12mm 16mm; }
@page report-landscape { size: A4 landscape; }
@page { @bottom-right { content: counter(page) " / " counter(pages); font-size: 8pt; color: #555; } }
.print-landscape { page: report-landscape; }

:root { color-scheme: light; }
html, body { background: #fff !important; color: #000 !important; font-size: 10.5pt; line-height: 1.35; }
:root, :root[data-theme="dark"] {
  --text: #000; --text-2: #333; --text-3: #555; --surface: #fff; --surface-2: #fff; --surface-3: #fff; --bg: #fff;
  --line: #bbb; --line-strong: #777; --negative: #000; --positive: #000; --debit: #000; --credit: #000;
}

/* hide the app chrome */
.sidebar, .topbar, .breadcrumbs, .page-actions, .toolbar, .filters, .filters-wrap > summary, .pager, .toasts, .balance-bar,
.row-actions, .col-actions, .col-expand, .no-print, button, .icon-btn, dialog, .skip-link, .net-banner, .nav-scrim,
.settings-nav, .tabs, .summary-strip, .save-bar, .doc-side, .callout, .menu, .picker-pop { display: none !important; }
.app { display: block; }
.main-col { display: block; }
.content { padding: 0; max-width: none; }
.card, .dt-wrap { border: 0; box-shadow: none; padding: 0; overflow: visible; background: none; }
.page-head { margin-block-end: 4mm; }
.page-title { font-size: 14pt; }
.badge { border: .5pt solid #555; background: none !important; color: #000 !important; }

/* print-only header on reports and statements */
.print-only { display: block !important; }
.print-footer.print-only { display: flex !important; }
.report-head { text-align: center; margin-block-end: 8mm; }
.report-head .company { font-size: 13pt; font-weight: 700; }
.report-head .title { font-size: 16pt; font-weight: 700; }
.report-head .period { font-size: 10pt; color: #333; }
/* the report head inside the report card replaces the screen title */
body:has(.report-card-body) .page-head { display: none; }

/* tables */
table { width: 100%; font-size: 9.5pt; border-collapse: collapse; }
thead { display: table-header-group; }
tfoot { display: table-footer-group; }
tr, .is-grand { break-inside: avoid; page-break-inside: avoid; }
thead th { position: static !important; background: none !important; border-bottom: 1pt solid #000 !important; color: #000 !important; }
td, th { padding: 1.6mm 2mm !important; border-bottom: .3pt solid #bbb; height: auto !important; }
tfoot td, tfoot th { font-weight: 700; border-top: .8pt solid #000; background: none !important; }
.is-grand td.num { border-bottom: 2.2pt double #000 !important; }
.is-neg { color: #000 !important; }
.section-row td, .section-row th { padding-top: 4mm !important; font-weight: 700; }
a { color: inherit; text-decoration: none; }
.chart { break-inside: avoid; }
.chart .bar-rev, .chart-svg .bar-rev { fill: #555; }
.chart .bar-exp, .chart-svg .bar-exp { fill: #aaa; }
.hide-sm { display: table-cell !important; }
.cell-text { max-width: none !important; white-space: normal !important; }
.bs-grid { display: block; }

/* footer line */
.print-footer { position: fixed; bottom: 0; inset-inline: 0; font-size: 8pt; color: #555; display: flex; justify-content: space-between; }

/* invoice / bill document */
body.print-doc { background: #fff !important; }
body.print-doc .doc-toolbar { display: none; }
body.print-doc .sheet, .sheet { width: auto; min-height: auto; margin: 0; padding: 0; box-shadow: none !important; border: 0 !important; transform: none !important; }
.sheet-scaler { height: auto !important; padding: 0; }
.doc-detail { display: block; }
.doc-lines thead { display: table-header-group; }
.doc-totals, .doc-signatures { break-inside: avoid; }
.doc-watermark { position: fixed; inset: 0; display: grid; place-items: center; font-size: 96pt; color: rgba(0, 0, 0, .08); transform: rotate(-30deg); pointer-events: none; }
.brand-arch { border-color: #A8844A; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
