/*
 * On paper (A4): the salary slip, the distributor rate list and every report. Loaded for printing only (media="print"), so nothing on screen changes.
 * One accent colour, light table headers and thin ruled lines (they photocopy well and save ink); the company header on top, who printed it and
 * when at the foot of every page; the page number where the browser supports page margin boxes.
 */
@page { size: A4; margin: 12mm 12mm 16mm; @bottom-right { content: "Page " counter(page) " of " counter(pages); font: 9px "IBM Plex Sans", Arial, sans-serif; color: #5E6D65; } }

html, body { background: #fff !important; color: #16231C; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.print-only { display: block !important; }
span.print-only, b.print-only { display: inline !important; }
.side, .topbar, .bottomnav, .footer, .no-print, .support-banner, .menu-toggle, .nav-progress, .acct, .bell, .toast, .push-card, .announce-slider { display: none !important; }
.app, .content { display: block !important; }
.page { padding: 0 !important; margin: 0 !important; max-width: none !important; width: auto !important; }
.card { border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 0 8px !important; border-radius: 0 !important; }

/* the footer line repeats at the bottom of every printed page */
.print-foot { position: fixed; left: 0; bottom: -10mm; font-size: 9px; color: #5E6D65; }

/* ---- a report ---- */
.print-head { border-bottom: 2px solid var(--brand, #13784F); padding-bottom: 6px; margin-bottom: 10px; }
.print-head b { display: block; font-size: 15px; font-weight: 700; }
.print-head span { display: block; font-size: 11px; color: #4B5A52; }
.print-head em { display: block; font-style: normal; font-size: 10px; color: #5E6D65; margin-top: 2px; }
.report-top, .grp-actions, .pager, .filters, .report-actions, [data-report-image-result] { display: none !important; }
.table-wrap { overflow: visible !important; }
.table { width: 100%; border-collapse: collapse; font-size: 10px; }
.table th { background: #EEF1EF !important; color: #16231C; font-weight: 700; text-transform: none; letter-spacing: 0; border-bottom: 1px solid #16231C; padding: 4px 6px; text-align: left; }
.table td { border-bottom: 1px solid #DCE3DE; padding: 3px 6px; }
.table thead { display: table-header-group; }
.table tr { break-inside: avoid; }
.table .total-row td, .table tfoot td { font-weight: 700; background: #F4F6F3 !important; border-top: 1px solid #16231C; }
.help { font-size: 9px; color: #5E6D65; }

/* ---- the salary slip: one accent, signature lines, net in figures and words ---- */
.slip__head { border-bottom: 2px solid var(--brand, #13784F); }
.slip__tbl th { background: #EEF1EF !important; color: #16231C !important; border-bottom: 1px solid #16231C; }
.slip__tbl tfoot td { background: #fff !important; border-top: 1px solid #16231C; }
.slip__net { background: #fff !important; color: #16231C !important; border: 1.5px solid var(--brand, #13784F); }
.slip__facts { background: #fff !important; border: 1px solid #DCE3DE; }
.slip__words { font-size: 10px; margin: 4px 0 0; color: #16231C; }
.slip__sign { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 14mm; margin-top: 16mm; font-size: 9.5px; color: #4B5A52; }
.slip__sign div { border-top: 1px solid #16231C; padding-top: 2px; text-align: center; }
.slip__printed { display: block !important; margin-top: 6px; text-align: center; color: #5E6D65; font-size: 9px; }

/* ---- the rate list ---- */
.ratelist__table th { background: #EEF1EF !important; color: #16231C; border-color: #16231C; }
.ratelist__cat td { background: #F4F6F3 !important; }

/* a printed stock list always shows the batches */
.stockpos tr.pos-batch[hidden] { display: table-row !important; }
.pos-toggle .ico { display: none; }
