/* Dedicated document typography; does not affect operational tables. */
.invoice-sheet,.invoice-print-blocked{display:none}
.invoice-action-bar{flex-wrap:wrap}
.invoice-preview-tools:not([hidden]){display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0;color:#526b79;font-size:13px}
.invoice-preview-tools label{display:flex;align-items:center;gap:10px}
.invoice-sheet.is-preview{display:block;background:#fff;max-width:210mm;margin:18px auto;padding:12mm;box-shadow:0 5px 28px #15374618;border:1px solid #d9e3e7}
.invoice-sheet.is-preview.is-landscape{max-width:297mm}
.invoice-sheet{color:#18313e;font-family:Tahoma,Arial,sans-serif;font-size:9pt;line-height:1.45;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.invoice-sheet *{box-sizing:border-box}
.invoice-brand{display:flex;align-items:center;justify-content:space-between;gap:12mm;padding-bottom:3mm;border-bottom:1.5pt solid #08465a}
.invoice-brand-name{min-width:0;flex:1}
.invoice-sheet .invoice-brand h2{font-size:16pt;line-height:1.25;margin:0;color:#08465a;font-weight:700}
.invoice-secondary-name{font-size:10pt;font-weight:600;margin-top:1mm;text-align:start}
.invoice-brand .invoice-branch{font-size:9pt;color:#526572;margin-top:1.5mm}
.invoice-logo{width:32mm;height:16mm;object-fit:contain;flex:none}
.invoice-registration{display:flex;flex-direction:column;gap:1mm;padding:2mm 0 3mm;border-bottom:0.5pt solid #c6d1d7;font-size:8pt;color:#465d69}
.invoice-registration-ids{display:flex;gap:5mm;flex-wrap:wrap}
.invoice-title-band{display:flex;align-items:center;justify-content:space-between;gap:4mm;padding:4mm 0 3mm}
.invoice-sheet .invoice-title-band h1{font-size:17pt;line-height:1.25;margin:0;color:#08465a}
.invoice-kicker,.invoice-code small,.invoice-meta small{font-size:8pt;color:#526572;display:block;margin-bottom:1mm}
.invoice-code{text-align:end;max-width:45%}.invoice-code strong{font-size:12pt;color:#08465a}
.invoice-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:0.5pt solid #c8d5db;border-radius:2mm;padding:2mm;gap:2mm 4mm;margin:0 0 4mm}
.invoice-meta div{min-width:0;padding:1mm 2mm}.invoice-meta strong{font-size:9pt;display:block;font-weight:600}
.invoice-lines-label{display:flex;justify-content:space-between;align-items:center;margin:0 0 1.5mm;color:#526572;font-size:8pt}
.invoice-sheet .invoice-lines-label h2{font-size:10pt;margin:0;color:#08465a}
.invoice-sheet table.invoice-lines{border-collapse:collapse;width:100%;min-width:0;table-layout:fixed;font-size:8pt;margin:0}
.inv-col-no{width:4%}.inv-col-product{width:26%}.inv-col-unit{width:8%}.inv-col-qty{width:8%}.inv-col-money{width:10%}.inv-col-total{width:14%}
.invoice-sheet .invoice-lines th,.invoice-sheet .invoice-lines td{position:static;white-space:normal;max-width:none;padding:2mm 1.1mm;text-align:start;border:0;border-bottom:0.5pt solid #d6dfe3;vertical-align:top;overflow-wrap:anywhere;line-height:1.35}
.invoice-sheet .invoice-lines th{background:#edf3f5;color:#08465a;font-weight:700;border-top:1pt solid #08465a;border-bottom:0.75pt solid #08465a}
.invoice-sheet .invoice-lines .inv-num{text-align:end;direction:inherit}
.invoice-sheet .invoice-lines tbody tr:nth-child(even){background:#f7f9fa}
.invoice-sheet .invoice-lines .inv-line-total{font-weight:700;color:#08465a}
.invoice-product-name{display:block;font-weight:600}.invoice-product-code{display:block;font-size:7pt;color:#526572;margin-top:0.8mm}
.invoice-closing{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6mm;margin-top:5mm;align-items:start}
.invoice-notes{font-size:8.5pt;color:#465d69}.invoice-sheet .invoice-notes h3{font-size:10pt;margin:0 0 2mm;color:#08465a}.invoice-notes p{margin:0 0 2mm}.invoice-note-text{white-space:pre-wrap}
.invoice-amounts{border-top:1pt solid #08465a}.invoice-amount-heading,.invoice-amount{display:flex;justify-content:space-between;gap:3mm;padding:1.6mm 2mm;border-bottom:0.5pt solid #d6dfe3}.invoice-amount-heading{font-size:9pt;font-weight:700;background:#edf3f5}.invoice-amount strong{font-weight:600;text-align:end}.invoice-final{background:#e6eff1;font-size:10pt;font-weight:700;color:#08465a;border-top:1pt solid #08465a;border-bottom:1pt solid #08465a}
.invoice-warning{font-size:8pt;color:#9b5318;margin:2mm 0}
.invoice-sheet-foot{display:flex;justify-content:space-between;align-items:baseline;gap:3mm;border-top:0.5pt solid #c8d5db;padding-top:2mm;margin-top:6mm;color:#526572;font-size:7pt}.invoice-sheet-foot span:nth-child(2){flex:1;text-align:center}
@media screen and (max-width:900px){.invoice-sheet.is-preview{min-width:680px;padding:24px}.erp-workspace:has(.invoice-sheet.is-preview){overflow-x:auto}.invoice-preview-tools:not([hidden]){font-size:12px}}
@media print{
 @page rootInvoicePortrait{size:A4 portrait;margin:11mm 10mm 23mm; @bottom-right{content:counter(page) " / " counter(pages);font:8pt Arial;color:#526572}}
 @page rootInvoiceLandscape{size:A4 landscape;margin:11mm 10mm 23mm; @bottom-right{content:counter(page) " / " counter(pages);font:8pt Arial;color:#526572}}
 body:has(.invoice-sheet),body:has(.invoice-print-blocked){background:#fff!important}
 body:has(.invoice-sheet) .shell,body:has(.invoice-print-blocked) .shell{display:block!important;min-height:0!important}
 body:has(.invoice-sheet) main,body:has(.invoice-print-blocked) main{display:block!important;max-width:none!important;width:auto!important;margin:0!important;padding:0!important}
 body:has(.invoice-sheet) .erp-workspace,body:has(.invoice-print-blocked) .erp-workspace{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important}
 .invoice-sheet,.invoice-sheet.is-preview{display:block!important;page:rootInvoicePortrait;max-width:none!important;min-width:0!important;width:100%;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .invoice-sheet.is-landscape{page:rootInvoiceLandscape}
 .invoice-sheet thead{display:table-header-group}.invoice-sheet tr{break-inside:avoid}.invoice-brand,.invoice-registration,.invoice-title-band,.invoice-meta,.invoice-lines-label,.invoice-amounts,.invoice-sheet-foot{break-inside:avoid}
 .invoice-lines-label{break-after:avoid}.invoice-title-band{break-after:avoid}
 .invoice-sheet .invoice-lines th,.invoice-sheet .invoice-lines td{font-size:8pt}
 .invoice-print-blocked{display:block}
}
.invoice-sheet[dir="rtl"] .invoice-secondary-name{text-align:right}.invoice-sheet[dir="ltr"] .invoice-secondary-name{text-align:left}

/* Compact login-branch identity; address belongs to the document footer. */
.invoice-registration{padding:1.5mm 0 2mm}
.invoice-sheet-foot{display:block;text-align:center}
.invoice-footer-address{font-size:8pt;line-height:1.4;margin-bottom:1.5mm;white-space:normal}
.invoice-footer-meta{display:flex;justify-content:space-between;align-items:baseline;gap:3mm}
.invoice-footer-meta span:nth-child(2){flex:1;text-align:center}

.invoice-qr{display:flex;align-items:center;gap:3mm;margin:0 0 3mm}.invoice-qr img{width:30mm;height:30mm;object-fit:contain;image-rendering:pixelated}.invoice-qr small{font-size:8pt}
@media print{.invoice-sheet-foot{position:fixed;bottom:-15mm;left:0;right:0;margin:0;padding-top:2mm;background:white}.invoice-footer-meta{font-size:6.5pt}.invoice-footer-address{font-size:7pt}}
