/* Print layouts: 80 mm thermal receipts (72 mm printable), 100 x 60 mm batch labels, 85.6 x 54 mm farmer cards. */
.ftf-print-only { display: none; }

@page receipt { size: 80mm auto; margin: 4mm; }
@page label { size: 100mm 60mm; margin: 0; }
@page card { size: 85.6mm 54mm; margin: 0; }
@page packlabel { size: 100mm 60mm; margin: 0; }
@page pallet { size: 100mm 150mm; margin: 0; }

.ftf-pallet-label { width: 100mm; height: 150mm; box-sizing: border-box; padding: 5mm; color: #000; border: 1px dashed #999; display: flex; flex-direction: column; gap: 3mm; }
.ftf-pallet-label .ftf-qr { width: 60mm; }
.ftf-pallet-label .ftf-qr svg { width: 100%; height: auto; display: block; }
.ftf-hri { font-family: monospace; font-size: 12px; letter-spacing: 0.5px; word-break: break-all; }

.ftf-receipt { max-width: 72mm; font-family: var(--ftf-font-body, sans-serif); font-size: 12px; line-height: 1.35; color: #000; }
.ftf-receipt table { width: 100%; border-collapse: collapse; }
.ftf-receipt td { padding: 1px 0; vertical-align: top; }
.ftf-receipt td.num { text-align: right; white-space: nowrap; }
.ftf-receipt .ftf-qr svg, .ftf-label .ftf-qr svg, .ftf-card .ftf-qr svg { width: 100%; height: auto; display: block; }
.ftf-receipt .ftf-qr { width: 32mm; margin: 2mm auto; }

.ftf-label { width: 100mm; height: 60mm; box-sizing: border-box; padding: 3mm; display: flex; gap: 3mm; color: #000; border: 1px dashed #999; }
.ftf-label .ftf-qr { width: 40mm; flex: none; }
.ftf-label .ftf-lot { font-family: monospace; font-size: 10px; word-break: break-all; }

.ftf-card { width: 85.6mm; height: 54mm; box-sizing: border-box; padding: 3mm; display: flex; gap: 3mm; color: #000; border: 1px solid #999; border-radius: 3mm; }
.ftf-card .ftf-qr { width: 30mm; flex: none; }

@media print {
    .ftf-no-print, .mud-appbar, .mud-drawer, .mud-snackbar-provider { display: none !important; }
    .ftf-print-only { display: block; }
    .mud-main-content { padding: 0 !important; margin: 0 !important; }
    .mud-container { padding: 0 !important; max-width: none !important; }
    body { background: #fff !important; }
    .ftf-receipt { page: receipt; }
    .ftf-label { page: label; border: none; }
    .ftf-card { page: card; border: none; }
    .ftf-label.ftf-pack { page: packlabel; }
    .ftf-pallet-label { page: pallet; border: none; }
}
