/* print.css — loaded with media="print" on every page */
@page { margin: 8mm; }

.topbar, .app-footer, .page-header__actions, .pos-header, .pos__cart-toggle, .toastify, .no-print { display: none !important; }

body { background: #fff !important; color: #000 !important; }
.app-shell__main { margin: 0 !important; background: none !important; min-height: 0 !important; }
.app-content { max-width: none; padding: 0; }
.card { border: 0 !important; box-shadow: none !important; }


/* ---------- slips: only #printArea is printed (see POS.print in app.js) ---------- */
html { height: auto !important; }
body.printing { display: block !important; height: auto !important; overflow: visible !important; padding: 0 !important; background: #fff !important; }
body.printing > *:not(#printArea) { display: none !important; }
body.printing #printArea { display: block !important; }
#printArea, #printArea * { color: #000 !important; box-shadow: none !important; }
/* side padding is part of the slip itself, so it prints with margins whatever the browser's margin setting is */
#printArea .receipt { width: 80mm; max-width: none; box-sizing: border-box; margin: 0; padding: 3mm 6mm 6mm; }
#printArea .a4 { box-sizing: border-box; padding: 4mm 6mm; }

/* A4 invoice */
.a4 { font-family: var(--pos-font-sans); font-size: 11pt; line-height: 1.4; }
.a4__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid #000; }
.a4__head h1 { margin: 0; font-size: 22pt; font-weight: 800; }
.a4__head p { margin: 2px 0 0; }
.a4__title { text-align: end; }
.a4__title h2 { margin: 0; font-size: 16pt; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.a4__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; margin: 0 0 16px; }
.a4__meta dt { font-size: 8.5pt; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.a4__meta dd { margin: 0; font-weight: 600; }
.a4__items { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.a4__items th { padding: 6px 8px; border-block: 1.5px solid #000; text-align: start; font-size: 9pt; text-transform: uppercase; letter-spacing: 0.04em; }
.a4__items td { padding: 6px 8px; border-bottom: 1px solid #bbb; vertical-align: top; }
.a4__items .num { text-align: end; white-space: nowrap; }
.a4__items small { font-weight: 400; }
.a4__totals { width: 55%; margin: 0 0 16px; margin-inline-start: auto; }
.a4__totals > div { display: flex; justify-content: space-between; padding: 3px 0; }
.a4__totals dt, .a4__totals dd { margin: 0; font-weight: 500; }
.a4__totals .a4__grand { margin: 4px 0; padding: 6px 0; border-block: 1.5px solid #000; font-size: 13pt; }
.a4__totals .a4__grand dt, .a4__totals .a4__grand dd, .a4__totals .a4__due dt, .a4__totals .a4__due dd { font-weight: 800; }
.a4__sub { margin: 18px 0 6px; font-size: 11pt; font-weight: 700; }
.a4__notes { margin-top: 12px; }
.a4__foot { margin-top: 28px; padding-top: 8px; border-top: 1px solid #bbb; text-align: center; font-size: 9.5pt; }
