/* Printing: only the receipt. The page size for the till's paper (80 or
   58 mm) is added when printing, see printer.js. */
@page { size: 80mm auto; margin: 2mm; }
html, body { background: #fff !important; overflow: visible !important; }
html::before, html::after, body::before, body::after { display: none !important; }
body > *:not(#print-root) { display: none !important; }
#print-root { display: block !important; }
#print-root .receipt {
  width: 100%; max-width: 76mm; margin: 0; padding: 0; box-shadow: none; border-radius: 0;
  font-size: 11.5px; color: #000;
}
#print-root .receipt::after { display: none; }
#print-root .receipt .rule { border-top-color: #000; }

/* Sheets of A4: the summary report and customer statements (admin/exports.js). */
.doc { color: #000; font-size: 11pt; line-height: 1.4; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 10pt; border-bottom: 2px solid #000; }
.doc-shop { font-size: 16pt; font-weight: 700; }
.doc-title { text-align: right; }
.doc-name { font-size: 14pt; font-weight: 600; }
.doc-sub { font-size: 9.5pt; color: #444; }
.doc-value { font-size: 13pt; font-weight: 600; }
.doc-to { display: flex; justify-content: space-between; gap: 20px; margin: 14pt 0; }
.doc-to .r { text-align: right; }
.doc-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10pt 16pt; margin: 14pt 0; }
.doc-figure { padding-bottom: 6pt; border-bottom: 1px solid #bbb; break-inside: avoid; }
.doc-section { margin-top: 14pt; break-inside: avoid; }
.doc-section h2 { margin: 0 0 4pt; font-size: 12pt; font-weight: 600; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
.doc-table thead { display: table-header-group; }
.doc-table th { padding: 4pt 6pt; border-bottom: 1.5px solid #000; text-align: left; font-weight: 600; }
.doc-table td { padding: 4pt 6pt; border-bottom: 1px solid #ccc; vertical-align: top; }
.doc-table tr { break-inside: avoid; }
.doc-table .r { text-align: right; white-space: nowrap; }
.doc-foot { margin-top: 16pt; font-size: 9pt; color: #444; }
