.document.invoice-sheet{--inv-ink:#172d40;--inv-muted:#627582;--inv-line:#e1e7eb;color-scheme:light;position:relative;min-width:0;padding:38px;background:#fff;color:var(--inv-ink);border:1px solid #e4eaf0;border-radius:10px;box-shadow:0 10px 35px #04101c0c;font:12px/1.6 Inter,system-ui,-apple-system,'Segoe UI',sans-serif}
.public-portal #portal-root:has(>.invoice-sheet){max-width:940px}.invoice-sheet *{box-sizing:border-box}.invoice-sheet p,.invoice-sheet h2,.invoice-sheet h3,.invoice-sheet figure,.invoice-sheet dl,.invoice-sheet dd{margin:0}.invoice-sheet .inv-label{display:block;color:var(--inv-muted);font-size:9px;line-height:1.5;font-weight:550;letter-spacing:.7px;text-transform:uppercase}
.inv-masthead{display:flex;justify-content:space-between;align-items:start;gap:30px;padding-bottom:24px;border-bottom:2px solid var(--invoice-accent)}.inv-identity{flex:1;min-width:0;max-width:45%;padding-top:4px}.invoice-sheet .inv-brand{display:block;color:var(--invoice-accent);font-size:23px;line-height:1.3;font-weight:700;letter-spacing:-.5px;overflow-wrap:anywhere}.inv-logo{display:block;max-width:200px;max-height:72px;width:auto;height:auto;object-fit:contain;object-position:left top}.inv-heading{min-width:0;max-width:55%;text-align:right}.invoice-sheet .inv-heading h2{font-size:30px;line-height:1.15;font-weight:650;letter-spacing:-.9px;color:var(--inv-ink);overflow-wrap:anywhere}.inv-heading>p{font-size:13px;margin-top:6px;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.inv-test{display:inline-block;font-size:7px;letter-spacing:.5px;margin-top:9px;color:#927037;background:#fbf6e9;padding:2px 6px;border-radius:3px}
.inv-parties,.inv-metadata{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:46px}.inv-parties{margin-top:25px}.inv-party{min-width:0}.invoice-sheet .inv-party h3{font-size:13px;font-weight:650;line-height:1.6;color:var(--inv-ink);margin:6px 0 4px;overflow-wrap:anywhere}.inv-party p{font-size:11px;line-height:1.75;overflow-wrap:anywhere;color:var(--inv-muted)}.inv-metadata{margin:24px 0 30px}.inv-facts{min-width:0;font-size:10px}.inv-facts>div{display:grid;grid-template-columns:minmax(86px,.9fr) minmax(0,1.2fr);gap:10px;margin:5px 0;align-items:baseline}.inv-facts dt{color:var(--inv-muted)}.inv-facts dd{text-align:right;font-weight:500;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.inv-table-wrap{width:100%;overflow:auto}.inv-items{width:100%;border-collapse:collapse;font-size:11px;line-height:1.65;color:var(--inv-ink)}.inv-items th{text-align:right;padding:10px 9px;background:#f3f6f8;border-top:1px solid var(--inv-line);border-bottom:1px solid var(--inv-line);font-size:9px;color:var(--inv-muted);font-weight:500;white-space:nowrap}.inv-items td{text-align:right;padding:14px 9px;border-bottom:1px solid var(--inv-line);vertical-align:top;font-variant-numeric:tabular-nums;white-space:nowrap}.inv-items th:first-child,.inv-items td:first-child{text-align:left;white-space:normal;min-width:150px}.inv-items td:first-child{width:46%;overflow-wrap:anywhere}.inv-items td strong{font-weight:500}.inv-items td:last-child strong{font-weight:650}.inv-item-note{display:block;color:var(--inv-muted);font-size:10px;margin-top:4px}
.inv-settlement{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,1fr);align-items:start;gap:46px;margin-top:27px}.inv-payment-visual{min-width:0;padding-left:0}.inv-qr{width:112px;background:#fff}.inv-qr svg{display:block;width:112px;height:112px}.inv-qr figcaption{font-size:7px;line-height:1.5;text-align:center;color:var(--inv-muted);margin-top:5px}.inv-paid{display:flex;align-items:center;gap:9px;color:var(--invoice-accent);font-size:10px;padding-top:12px}.inv-paid>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--inv-line);border-radius:50%;font-size:14px}.inv-paid strong{font-weight:550}.inv-summary{min-width:0}.inv-vat{font-size:8px;color:var(--inv-muted);text-align:right;margin-bottom:13px;line-height:1.8}.inv-breakdown{font-size:11px;margin-bottom:12px!important}.inv-breakdown>div{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:4px 0}.inv-breakdown dt{color:var(--inv-muted)}.inv-breakdown dd{white-space:nowrap;font-variant-numeric:tabular-nums}.inv-grand{background:#f2f7f8;border-left:3px solid var(--invoice-accent);padding:14px 17px 15px;text-align:right}.inv-grand>span{display:block;font-size:10px;color:var(--inv-muted);margin-bottom:4px}.inv-grand>strong{display:block;font-size:29px;line-height:1.3;letter-spacing:-.7px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.inv-refund{font-size:10px;color:var(--inv-muted);text-align:right;margin-top:9px!important}
.invoice-sheet .inv-notice{font-size:10px;line-height:1.7;color:var(--inv-muted);margin-top:18px;white-space:pre-wrap;overflow-wrap:anywhere}.inv-note{margin-top:22px}.inv-note p{font-size:11px;line-height:1.75;margin-top:5px!important;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--inv-muted)}.inv-footer{padding-top:16px;margin-top:25px;border-top:1px solid var(--inv-line);font-size:9px;line-height:1.7;color:var(--inv-muted);overflow-wrap:anywhere}.invoice-sheet .inv-brand-footer{font-size:11px;color:var(--invoice-accent);margin-bottom:9px;white-space:pre-wrap}.inv-footer>p{margin-bottom:10px}.inv-footer>div{display:flex;justify-content:space-between;gap:20px;font-size:7px}.inv-footer>div>span:first-child{font-weight:600}
.settings-preview .document.invoice-sheet{padding:24px 20px}.settings-preview .inv-heading h2{font-size:24px}.settings-preview .inv-heading>p{font-size:10px}.settings-preview .inv-brand{font-size:18px}.settings-preview .inv-logo{max-width:140px;max-height:52px}.settings-preview .inv-parties,.settings-preview .inv-metadata,.settings-preview .inv-settlement{gap:18px}.settings-preview .inv-party h3{font-size:11px}.settings-preview .inv-party p{font-size:9px}.settings-preview .inv-facts{font-size:8px}.settings-preview .inv-facts>div{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.settings-preview .inv-items{font-size:9px}.settings-preview .inv-items th{font-size:7px}.settings-preview .inv-items td,.settings-preview .inv-items th{padding:10px 5px}.settings-preview .inv-items td:first-child{min-width:110px}.settings-preview .inv-settlement{grid-template-columns:minmax(0,.6fr) minmax(0,1fr)}.settings-preview .inv-grand{padding:12px}.settings-preview .inv-grand>strong{font-size:23px}.settings-preview .inv-qr,.settings-preview .inv-qr svg{width:90px;height:auto}
.invoice-brand-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 20px 18px}.invoice-brand-logo{max-width:96px;max-height:36px;object-fit:contain}.invoice-brand-tools .text-button{font-size:12px}.brand-logo-preview{display:flex;align-items:center;justify-content:center;min-height:120px;padding:24px;margin:18px 0;background:#fff;border:1px solid #dce3e9;border-radius:10px}.brand-logo-preview img{display:block;max-width:100%;max-height:120px;object-fit:contain}.brand-logo-preview span{color:#6c7d8c;font-size:13px}
@media(max-width:650px){.document.invoice-sheet{padding:24px 18px;border-radius:8px}.inv-masthead{gap:18px;padding-bottom:20px}.invoice-sheet .inv-heading h2{font-size:25px;letter-spacing:-.6px}.inv-heading>p{font-size:10px}.invoice-sheet .inv-brand{font-size:18px}.inv-logo{max-width:130px;max-height:55px}.inv-parties,.inv-metadata{column-gap:20px}.inv-parties{margin-top:22px}.invoice-sheet .inv-party h3{font-size:11px}.inv-party p{font-size:10px}.inv-metadata{grid-template-columns:1fr;gap:14px;margin:22px 0}.inv-facts{font-size:10px}.inv-facts>div{grid-template-columns:minmax(110px,1fr) minmax(0,1.3fr)}.inv-items{min-width:480px}.inv-settlement{grid-template-columns:minmax(90px,.65fr) minmax(0,1fr);gap:17px;margin-top:23px}.inv-qr,.inv-qr svg{width:90px;height:auto}.inv-qr figcaption{font-size:6px}.inv-grand{padding:11px 10px}.inv-grand>strong{font-size:22px;letter-spacing:-.5px}.inv-grand>span{font-size:9px}.inv-breakdown{font-size:9px}.inv-breakdown>div{gap:8px;flex-wrap:wrap}.inv-breakdown dd{margin-left:auto}.inv-vat{font-size:7px}.inv-paid{font-size:9px;flex-wrap:wrap}.inv-footer>div{flex-direction:column;gap:5px}.invoice-brand-tools{padding:0 16px 18px;flex-wrap:wrap}.settings-preview .inv-metadata{grid-template-columns:1fr}.settings-preview .inv-settlement{grid-template-columns:minmax(90px,.65fr) minmax(0,1fr)}}
@media(max-width:360px){.inv-settlement{grid-template-columns:1fr}.inv-payment-visual{order:1}.inv-summary{order:0}.inv-grand>strong{font-size:26px}.inv-qr{margin-top:3px}.inv-logo{max-width:100%}}
@media print{.document.invoice-sheet{padding:8mm 5mm;border:0;border-radius:0;box-shadow:none;break-inside:auto;print-color-adjust:exact;-webkit-print-color-adjust:exact}.inv-masthead,.inv-parties,.inv-metadata,.inv-settlement,.inv-footer{break-inside:avoid}.inv-parties,.inv-metadata{grid-template-columns:1fr 1fr;gap:35px}.inv-settlement{grid-template-columns:1fr 1fr;gap:35px}.inv-payment-visual,.inv-summary{order:initial}.inv-items{min-width:0}.inv-items thead{display:table-header-group}.inv-items tr{break-inside:avoid}.inv-table-wrap{overflow:visible}.inv-footer>div{flex-direction:row}.invoice-sheet .inv-heading h2{font-size:30px}}
.inv-payment-note{max-width:220px;font-size:10px;line-height:1.7;color:#627582}.inv-payment-note strong{display:block;margin-bottom:7px;font-size:11px}.inv-payment-note p{margin:0}.settings-preview .inv-payment-note{font-size:8px}.settings-preview .inv-payment-note strong{font-size:9px}
.inv-cancelled{border:1px solid #a95757;border-radius:10px;padding:14px;color:#913b3b;background:#fff4f3}.inv-cancelled p{margin:6px 0 0}
