pub const PRINT_CSS: &str = "\
@page { margin: 12mm; }\
table.datagrid { width: 100%; border-collapse: collapse; font: 10pt/1.35 system-ui, sans-serif; }\
table.datagrid caption { margin-bottom: 0.5em; font-weight: 600; text-align: start; }\
table.datagrid th, table.datagrid td { padding: 3pt 6pt; border-bottom: 0.5pt solid #999; }\
table.datagrid thead { display: table-header-group; }\
table.datagrid thead th { border-bottom: 1pt solid #000; text-align: start; }\
table.datagrid tr { break-inside: avoid; }\
table.datagrid .end { text-align: end; }\
table.datagrid .center { text-align: center; }\
table.datagrid .group th { background: #eee; text-align: start; }\
table.datagrid .aggregates td, table.datagrid .totals td { font-weight: 600; }\
table.datagrid .totals td { border-top: 1pt solid #000; }";Expand description
The rules a document needs to print well: the header repeats on every page, a row stays whole, numbers line up.