@page tenant-a4 { size:A4; margin:12mm; }
@page tenant-receipt { size:80mm 297mm; margin:3mm; }
@page tenant-report { size:A4 landscape; margin:10mm; @bottom-right { content:"Page " counter(page) " / " counter(pages); font:8pt Arial,sans-serif; } }
.tenant-print-toolbar { display:flex; gap:.75rem; align-items:end; flex-wrap:wrap; margin-bottom:1rem; }
.tenant-print-toolbar label { margin:0; }
.tenant-print-sheet { position:relative; box-sizing:border-box; background:white; color:#142235; font:10pt/1.45 Arial,sans-serif; max-width:210mm; margin:0 auto; padding:12mm; border:1px solid #dce2e8; border-radius:8px; page:tenant-a4; }
.tenant-print-sheet * { box-sizing:border-box; }
.tenant-print-header { display:flex; justify-content:space-between; gap:10mm; padding-bottom:5mm; border-bottom:2px solid #142235; }
.tenant-print-header h1 { font-size:19pt; margin:0 0 2mm; line-height:1.2; }
.tenant-print-header h2 { font-size:13pt; margin:0 0 2mm; }
.tenant-print-header p { margin:1mm 0; }
.tenant-print-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1mm 8mm; margin:5mm 0; }
.tenant-print-meta p { margin:0 0 2mm; overflow-wrap:anywhere; }
.tenant-print-state { font-weight:bold; }
.tenant-print-sheet h3 { font-size:11pt; margin:5mm 0 2mm; }
.tenant-print-table { border-collapse:collapse; width:100%; table-layout:fixed; font-size:9pt; margin:3mm 0; }
.tenant-print-table th { background:#edf1f5; font-weight:bold; text-align:left; border-bottom:1px solid #8995a3; }
.tenant-print-table th,.tenant-print-table td { padding:2.2mm 1.6mm; vertical-align:top; overflow-wrap:anywhere; border-bottom:1px solid #dce2e8; }
.tenant-print-table th:first-child { width:29%; }
.tenant-print-table .number { text-align:right; font-variant-numeric:tabular-nums; }
.tenant-print-table thead { display:table-header-group; }
.tenant-print-table tr { break-inside:avoid; page-break-inside:avoid; }
.tenant-print-totals { margin:4mm 0 4mm auto; width:min(100%,110mm); break-inside:avoid; }
.tenant-print-totals div { display:flex; justify-content:space-between; gap:5mm; padding:1.5mm 0; }
.tenant-print-totals dt { font-weight:normal; }
.tenant-print-totals dd { margin:0; font-variant-numeric:tabular-nums; white-space:nowrap; }
.tenant-print-totals .grand { border-top:2px solid #142235; font-size:12pt; font-weight:bold; }
.tenant-print-totals .grand dt { font-weight:bold; }
.tenant-small,.tenant-print-footer { font-size:8pt; color:#435367; }
.tenant-print-footer { margin-top:6mm; padding-top:2mm; border-top:1px solid #a6b0bb; overflow-wrap:anywhere; }
.tenant-print-note { background:#f3f5f7; padding:3mm; margin:4mm 0; overflow-wrap:anywhere; }
.tenant-print-warning { padding:3mm; border:1px solid #9a6d12; background:#fff9e9; color:#4e390d; }
.tenant-print-signatures { display:flex; justify-content:space-between; gap:8mm; margin-top:10mm; break-inside:avoid; }
.tenant-print-watermark { font-size:19pt; font-weight:bold; letter-spacing:.12em; color:#9e2431; margin:4mm 0; text-align:center; border:1px solid currentColor; }
.tenant-print-sheet.receipt-sheet { width:80mm; max-width:80mm; padding:3mm; font-size:9pt; page:tenant-receipt; }
.receipt-sheet .tenant-print-header { display:block; text-align:center; padding-bottom:3mm; }
.receipt-sheet .tenant-print-header h1 { font-size:14pt; }
.receipt-sheet .tenant-print-header h2 { margin-top:3mm; font-size:11pt; }
.receipt-sheet .tenant-print-meta { display:block; margin:3mm 0; }
.receipt-sheet .tenant-print-meta p { margin-bottom:1.8mm; }
.receipt-sheet .tenant-print-totals { width:100%; }
.receipt-sheet .tenant-print-totals div { gap:2mm; }
.receipt-sheet .tenant-print-totals dt { max-width:45mm; }
.receipt-sheet .tenant-print-table { font-size:7.5pt; }
.receipt-sheet .tenant-print-table th,.receipt-sheet .tenant-print-table td { padding:1.7mm .6mm; }
.receipt-sheet .tenant-print-table th:first-child { width:36%; }
.receipt-sheet .tenant-print-note { padding:2mm; font-size:8pt; }
.tenant-receipt-line { padding:2mm 0; border-bottom:1px dashed #b7c0cb; break-inside:avoid; }
.tenant-receipt-line strong { display:block; overflow-wrap:anywhere; }
.tenant-receipt-price { float:right; font-variant-numeric:tabular-nums; }
.tenant-report-sheet { max-width:none; page:tenant-report; padding:8mm; }
.tenant-report-sheet .tenant-print-table { font-size:8pt; table-layout:auto; }
.tenant-report-sheet .tenant-print-table th:first-child { width:auto; }
.tenant-report-sheet .tenant-print-table th,.tenant-report-sheet .tenant-print-table td { padding:1.7mm 1.2mm; }
.tenant-report-sheet .tenant-print-table th { overflow-wrap:normal; min-width:6ch; }
.tenant-report-controls { display:flex; flex-wrap:wrap; gap:3mm 8mm; margin:4mm 0; }
.tenant-report-controls div { border-left:2px solid #8c9bad; padding-left:2mm; }
.tenant-report-sheet h2 { font-size:14pt; }
.tenant-cheque-sheet { position:relative; box-sizing:border-box; background:white; margin:10mm auto; color:black; }
.tenant-cheque-field { position:absolute; box-sizing:border-box; white-space:normal; overflow:hidden; overflow-wrap:anywhere; line-height:1.15; font-family:Arial,sans-serif; }
.tenant-cheque-sample { background-image:linear-gradient(#d7dde4 1px,transparent 1px),linear-gradient(90deg,#d7dde4 1px,transparent 1px); background-size:10mm 10mm; }
.tenant-cheque-sample .tenant-cheque-field { outline:1px dashed #a44; }
@media(max-width:600px) { .tenant-print-sheet { padding:5mm; } .tenant-print-header { display:block; } .tenant-print-header>div+div { margin-top:4mm; } .tenant-report-sheet { overflow-x:auto; } }
@media print {
    html,body { margin:0!important; padding:0!important; background:white!important; }
    .app-header,.app-sidebar,.app-footer,.tenant-print-toolbar,.d-print-none,.request-notice { display:none!important; }
    .app-wrapper,.app-main,.app-content,.app-content-header,.container,.container-fluid,.tenant-print-page,.document-print-page { margin:0!important; padding:0!important; width:auto!important; min-height:0!important; overflow:visible!important; }
    .document-sheet.tenant-print-sheet { margin:0!important; padding:0!important; border:0!important; border-radius:0!important; box-shadow:none!important; max-width:none!important; width:auto!important; overflow:visible!important; }
    .document-sheet.tenant-print-sheet.receipt-sheet { width:74mm!important; max-width:74mm!important; }
    .tenant-print-header,.tenant-print-meta,.tenant-print-totals,.tenant-print-signatures { break-inside:avoid; }
    .tenant-print-table { overflow:visible!important; }
    .tenant-cheque-sheet { margin:0!important; box-shadow:none!important; }
    .tenant-cheque-sample { print-color-adjust:exact; }
}
