:root{--green:#1a3167;--muted:#7c8791;color:#253b40;background:#f3f5f7;font-size:14px;--line:#e3e5e9;--ink:#203e3c;--gold:#b58b4e}body{line-height:1.65}button,.button-link{border-radius:8px;padding:10px 17px;transition:background .15s,box-shadow .15s;min-height:42px}button:focus-visible,a:focus-visible{outline:3px solid #b58b4e;outline-offset:3px}button:hover{box-shadow:0 3px 9px #14254e16}button:disabled{cursor:not-allowed}.ghost{background:#f0f1f4;color:#1d3773;border:1px solid #dcdfe6}.button-link{display:inline-block;text-decoration:none;background:#1a3167;color:white}.brand{color:#f6f6ec;font-size:38px;letter-spacing:-2px;padding:2px 14px 26px}.brand span{color:#a9b1c3;letter-spacing:0;font-size:11px}aside{width:240px;background:#112145;color:#f6f7f9;border:0;padding:28px 16px 18px}nav button{color:#b9bfce;padding:11px 14px;margin:4px 0;text-align:right;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;line-height:1.65}nav button.active{color:#fff;background:#ffffff16;box-shadow:inset -3px 0 #d4b783}nav button:hover{background:#ffffff10;filter:none;box-shadow:none}nav b{font-family:Tahoma,sans-serif;font-size:21px;text-align:center;font-weight:400;width:25px}.side-bottom{color:#bdc3d0;border-color:#ffffff1c;font-size:11px}.side-bottom small{color:#919cb7}.side-bottom button{background:#ffffff0c;color:#dce0e9;border-color:#ffffff20}.dot{background:#a6b2ce}main{margin-right:240px;padding:30px 36px 20px;max-width:none}header{margin-bottom:28px;padding-bottom:23px;border-bottom:1px solid var(--line);align-items:center;gap:20px}header small{font-size:11px;color:#8c939c}h1{font-size:27px;letter-spacing:-.6px;color:#122246;margin:4px 0;line-height:1.7}.page-description{margin:0;color:#848a92;font-size:12px}.header-actions{gap:16px}.header-actions button{box-shadow:0 4px 12px #1a316718}.header-actions span{font-size:11px}.cards{gap:16px;margin:22px 0}.card{border-radius:10px;padding:22px;background:#fff;border:1px solid var(--line);box-shadow:0 3px 8px #16295703}.card small{font-size:12px;color:#6a727c}.card strong{color:#162a58;font-size:26px;letter-spacing:-.5px;margin:14px 0 5px;font-weight:600;line-height:1.4;direction:ltr;text-align:right}.card em{font-size:10px;color:#999da3}.compact .card strong{font-size:22px}.panel{padding:22px 24px;border-radius:10px;border:1px solid var(--line);margin-bottom:22px;box-shadow:0 4px 16px #13234a03}.toolbar{margin-bottom:20px;gap:12px}.toolbar h2{font-size:16px;color:#162a59;font-weight:700}.toolbar input{max-width:330px;font-size:12px;background:#f8f9fa}.toolbar button{font-size:12px}table{white-space:normal}th{background:#f5f6f7;color:#55606f;font-size:11px;font-weight:600;padding:13px 12px;border-bottom:1px solid var(--line)}td{font-size:12px;padding:16px 12px;color:#1e3978;border-bottom:1px solid #edeff1;min-width:90px;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfbfb}td button{min-height:32px;padding:5px 10px;font-size:10px;white-space:nowrap;margin:2px}td b{font-weight:600}.document-no{color:#1b336b;font:600 12px Tahoma;white-space:nowrap}.cell-sub{display:block;color:#5b6678;font-size:11px;margin-top:4px}.mono{font-family:Tahoma,sans-serif;direction:ltr;unicode-bidi:plaintext;letter-spacing:.2px}.badge{font-size:10px;border-radius:5px;padding:4px 9px;background:#ebedf3;color:#24448e;white-space:nowrap}.badge.partial,.badge.credit,.badge.debt{background:#fcf3e3;color:#a47e36}.badge.void{background:#f8eae8;color:#b26059}.stock{font-family:Tahoma;font-weight:600;font-size:16px;color:#1e3979}.stock.low{color:#b6853e}.empty{padding:48px 16px;font-size:12px;color:#5f646b;background:radial-gradient(ellipse at center,#f8f9fa,transparent 70%)}.empty:before{content:'▤';display:block;font-size:30px;color:#c7ccd4;margin-bottom:12px}.empty strong{font-size:16px;font-weight:600;color:#636b77}.summary-strip{display:flex;gap:24px;flex-wrap:wrap;padding:13px 18px;border:1px solid var(--line);border-radius:8px;background:#fff;margin-bottom:18px;font-size:11px;color:#898e95}.summary-strip b{color:#1d3773;margin:0 5px;font-variant-numeric:tabular-nums}.filter-bar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:12px;align-items:end;padding:16px;background:#f8f9fa;border:1px solid #edeff1;border-radius:8px;margin:0 0 18px}.filter-bar label{font-size:10px}.filter-bar input,.filter-bar select{padding:7px 10px;font-size:12px;min-height:37px}.filter-bar button{min-height:37px;font-size:11px}.pagination{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:16px;margin-top:10px;font-size:11px;color:#898e95}.pagination div{display:flex;gap:8px}.pagination button{min-height:32px;font-size:11px}footer{margin-top:28px;color:#a2a7ad;font-size:10px}input,select,textarea{border-radius:7px;border-color:#dfe1e7;padding:10px 12px;font-size:13px;min-height:43px}input:focus,select:focus,textarea:focus{outline:2px solid #b6bccb;outline-offset:1px}input[readonly]{background:#f3f4f5;color:#757c86}label{font-size:11px;color:#6f7680}.grid{gap:18px}.grid label input,.grid label select{margin-top:7px}dialog{width:min(840px,94vw);padding:0;border-radius:13px;max-height:92dvh;box-shadow:0 32px 100px #152b3640;background:#fff}dialog.wide{width:min(1080px,96vw)}dialog.print-preview{width:min(930px,96vw);background:#eeeff1}.modal-head{padding:19px 24px;margin:0;border-bottom:1px solid var(--line);background:white;position:sticky;top:0;z-index:4;align-items:center}.modal-head h2{font-size:17px}.modal-head button{width:36px;min-height:36px;padding:3px;background:#f3f4f5}#modalBody{padding:24px}.form-actions{border-top:1px solid var(--line);padding-top:18px;margin-top:22px}.form-section{display:flex;align-items:center;gap:12px;margin:20px 0 12px}.form-section span{font:11px Tahoma;color:#9aa1ab;border:1px solid #dcdfe5;border-radius:50%;width:28px;height:28px;display:grid;place-items:center}.form-section h3{font-size:13px;color:#1e3979;margin:0}.form-section small{font-size:10px;margin-right:auto;color:#999ea6}.invoice-context{grid-template-columns:repeat(4,minmax(0,1fr));padding:18px;background:#f6f7f8;border:1px solid #e6e9ec;border-radius:9px}.product-search{position:relative;margin-bottom:12px}.product-search>input{border:1px solid #b2b8c7;background:#f9fafc;padding:14px 16px;font-size:13px}.item-results{position:absolute;right:0;left:0;top:100%;background:white;border:1px solid #d5d8e0;border-radius:0 0 10px 10px;box-shadow:0 12px 30px #162a5825;z-index:3;max-height:290px;overflow:auto}.item-results[hidden]{display:none}.item-results>p{padding:12px}.item-option{display:flex;align-items:center;gap:12px;width:100%;background:white;color:#1c356e;text-align:right;border-radius:0;border-bottom:1px solid #edeff2;padding:12px 16px}.item-option:hover{background:#f1f3f7}.item-option>span:first-child{flex:1;min-width:0}.item-option b{display:block;font-size:12px}.item-option small{display:block;color:#8f96a1;font:10px Tahoma;margin-top:5px}.item-option strong{font-size:12px}.add-sign{font-size:20px;color:#7d8999}.cart-heading,.cart-line{display:grid;grid-template-columns:minmax(150px,2.5fr) minmax(80px,1fr) minmax(90px,1.2fr) minmax(100px,1.1fr) 30px;gap:14px;align-items:center}.cart-heading{background:#f2f3f6;padding:10px 14px;font-size:10px;color:#8e96a1;border-radius:6px}.cart-line{padding:14px;border-bottom:1px solid #e6e8ee}.cart-line>div b{font-size:12px;color:#1e3876}.cart-line small{display:block;font:10px Tahoma;color:#8f99a7;margin-top:5px}.cart-line input{font:13px Tahoma;text-align:center;padding:9px;width:100%}.cart-line>[data-line-total]{font-size:12px;font-weight:600;color:#24448e}.remove-button{font-size:22px;color:#b0776e;background:transparent;padding:0;min-height:32px;width:30px}.mobile-label{display:none}.checkout-grid{display:grid;grid-template-columns:1fr 340px;gap:32px;margin-top:25px}.checkout-notes label{margin-top:4px}.checkout-summary{background:#f3f4f8;border:1px solid #dce0ea;border-radius:9px;padding:18px}.discount-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}#invoiceTotal{margin-top:16px;border-top:1px solid #d8dde8;padding-top:12px}#invoiceTotal>div,.document-totals>div{display:flex;justify-content:space-between;gap:16px;font-size:11px;margin:9px 0}#invoiceTotal .grand-total,.document-totals .grand-total{font-size:16px;padding:13px 0;border-top:1px solid #cfd4e0;border-bottom:1px solid #cfd4e0;color:#1a3167}.hint{font-size:12px;color:#5b6678;line-height:1.9}.error{background:#fff5f2;border-radius:5px;padding:0 12px;line-height:2.2}.error:empty{display:none}.business-preview{display:flex;gap:20px;align-items:center;padding:12px 0}.business-preview h3{margin:0;font-size:19px;color:#1b346d}.business-preview p{font-size:12px;color:#808b9a}.brand-seal{display:grid;place-items:center;border:1px solid #c4d5fb;border-radius:9px;color:#1e3a8a;background:#eff4ff;font-size:34px;font-weight:800;width:64px;height:64px;flex-shrink:0}.permission-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.permission-grid>div{padding:18px;border:1px solid #e1e4ea;border-radius:9px}.permission-grid h3{font-size:15px}.permission-grid p,.panel>p{font-size:12px;color:#768292}.login{background:linear-gradient(120deg,#101f42 0%,#162a59 42%,#ebedf2 42%);padding:24px}.login-card{border:1px solid #dcdfe7;border-radius:16px;box-shadow:0 30px 70px #142c3420;padding:40px;width:min(430px,100%);min-width:0;flex-shrink:0;margin:auto}.login-card .brand{color:#1b346e}.login-card .brand span{color:#8b94a1}.login-card h1{font-size:27px}.login-card label{margin-top:15px}.login-card p{font-size:12px}#toast{z-index:100;background:#162a5a;box-shadow:0 8px 30px #11204320;font-size:13px}
/* Document layout uses actual HTML text and repeatable table headers. */
.document-sheet{background:white;padding:32px 34px;color:#13254e;border:1px solid #dfe2e6;box-shadow:0 2px 12px #13244c07;line-height:1.75}.document-top{display:flex;justify-content:space-between;gap:25px;border-bottom:3px solid #1c356e;padding-bottom:24px}.document-brand{display:flex;align-items:center;gap:14px;min-width:0;flex:1}.document-brand h2{text-align:right;font-size:19px;margin:0;color:#182e61;line-height:1.8}.document-brand p{font-size:10px;color:#848c97;margin:3px 0;line-height:1.5}.document-identity{min-width:160px;text-align:left}.document-identity>span{font:7px Tahoma;letter-spacing:1.4px;color:#a39573}.document-identity h2{text-align:left;font-size:20px;margin:8px 0;color:#1c356e}.document-identity>b{font:18px Tahoma;color:#808a97;letter-spacing:2px}.document-date{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #dde1ea;font-size:10px;color:#5b636e}.document-date b{font-weight:400;color:#5e687e}.document-party{display:flex;justify-content:space-between;gap:20px;padding:23px 0;align-items:start}.document-party small,.document-note small{display:block;color:#5b636e;font-size:9px;letter-spacing:.5px}.document-party h3{font-size:15px;margin:4px 0;color:#203d82}.document-party p,.document-party span{font-size:10px}.document-sheet table{table-layout:fixed;white-space:normal}.document-sheet td,.document-sheet th{padding:12px 9px;min-width:0;max-width:none;font-size:10px;overflow-wrap:anywhere}.document-sheet th{background:#eceef4;color:#57627d}.document-sheet th:first-child{width:8%}.document-sheet th:nth-child(2){width:35%}.document-sheet tr{break-inside:avoid}.document-bottom{display:grid;grid-template-columns:1fr 260px;gap:30px;margin-top:22px}.document-note p{font-size:11px;color:#6e7992;margin:8px 0}.document-totals{padding:12px 16px;background:#f3f4f8;border:1px solid #dbe0ea}.document-signatures{display:flex;justify-content:space-between;gap:40px;margin-top:50px;padding:0 15px;color:#5b636e;font-size:10px;break-inside:avoid}.document-signatures>div{width:180px;text-align:center}.document-signatures span{display:block;height:36px;border-bottom:1px solid #c8cfdf}.document-footer{margin-top:30px;padding-top:14px;border-top:1px solid #d2d7e4;display:flex;justify-content:space-between;align-items:center;gap:16px;overflow:visible;padding-left:4px;padding-right:4px;color:#5b636e;font-size:9px}.document-footer b{font-size:15px;color:#5b6783}.void-stamp{display:block;color:#ad6057;border:2px solid #b8756e;padding:8px;margin-top:15px;font-size:13px}.voucher-amount{padding:30px;background:#eff1f6;border:1px solid #d8dde8;text-align:center;margin:28px 0}.voucher-amount small{display:block;color:#707d9b;font-size:11px}.voucher-amount strong{font-size:32px;font-weight:600;color:#1c3672}.voucher-detail{display:grid;grid-template-columns:120px 1fr;gap:20px;padding:15px 0;border-bottom:1px solid #dfe3ec;font-size:12px}.voucher-detail span{color:#8690a7}.voucher-detail p{margin:0;line-height:1.8}.statement-balances{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.statement-balances>div{background:#f3f4f8;padding:14px;font-size:11px}.statement-balances p{margin:5px 0}.document-sheet h3{font-size:13px}
@media(min-width:801px){aside{display:flex;flex-direction:column;overflow:hidden}aside nav{overflow-y:auto;flex:1;min-height:0}aside .brand{flex:none}.side-bottom{flex:none;position:static;margin-top:16px}.mobile-logout{display:none}}
@media(max-width:1200px){aside{width:210px}main{margin-right:210px;padding:24px}.card strong{font-size:21px}.header-actions span{display:none}.invoice-context{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-bar{grid-template-columns:repeat(2,minmax(0,1fr)) auto}.filter-bar button{grid-row:1/3;grid-column:3}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){aside{position:relative;width:100%;padding:15px 14px 10px;border-radius:0}aside>.brand{font-size:27px;padding:0 6px 12px;line-height:1.4}aside>.brand span{display:inline;font-size:10px;margin-right:13px;color:#9fa7bb}nav{display:flex;overflow-x:auto;gap:6px;padding-bottom:4px}nav button{display:flex;flex:0 0 auto;width:auto;margin:0;min-height:40px;padding:9px 11px;font-size:11px;gap:6px}nav b{width:18px;font-size:17px}nav button.active{box-shadow:inset 0 -2px #cfb77e;border-radius:6px}.side-bottom{display:none}main{margin:0;padding:20px 16px}header{align-items:start;flex-direction:row;gap:12px;margin-bottom:20px;padding-bottom:17px}h1{font-size:21px}.page-description{font-size:10px;max-width:240px}.header-actions{align-self:center;flex-shrink:0}.header-actions button{font-size:10px;padding:8px;min-height:40px}.cards{gap:10px}.card{padding:16px}.card strong,.compact .card strong{font-size:20px}.card small{font-size:10px}.card em{font-size:9px}.panel{padding:17px 14px}.toolbar h2{font-size:15px}.toolbar input{font-size:16px;max-width:none}.toolbar button{font-size:11px}td,th{padding:12px 10px}td{font-size:11px}.filter-bar{grid-template-columns:1fr 1fr;padding:12px;gap:10px}.filter-bar button{grid-row:auto;grid-column:1/-1}.filter-bar input,.filter-bar select{font-size:14px;min-height:42px}dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}#modalBody{padding:16px}.modal-head{padding:14px 16px}.modal-head h2{font-size:15px}.modal-head button{min-width:36px;min-height:36px}.grid{grid-template-columns:1fr 1fr;gap:14px}.full{grid-column:1/-1}.grid input,.grid select,input,select{font-size:16px}.invoice-context{padding:12px;gap:12px}.checkout-grid{grid-template-columns:1fr;gap:18px}.checkout-summary{padding:16px}.cart-heading{display:none}.cart-line{grid-template-columns:1fr 1fr 30px;gap:12px;padding:15px 0}.cart-line>div{grid-column:1/3}.cart-line .remove-button{grid-column:3;grid-row:1}.cart-line>label{grid-row:2}.cart-line>[data-line-total]{grid-column:1/3;text-align:left;font-size:13px}.mobile-label{display:block;font-size:10px;color:#8c95a1;margin-bottom:4px}.item-option{padding:10px;font-size:11px}.item-option strong{font-size:11px}.item-option small{font-size:9px}.form-section small{display:none}.permission-grid{grid-template-columns:1fr;gap:12px}.summary-strip{gap:8px 18px;font-size:10px}.report-grid{grid-template-columns:1fr}.document-sheet{padding:20px 14px}.document-top{gap:15px;padding-bottom:18px}.document-brand{gap:10px}.document-brand h2{font-size:13px}.document-brand .brand-seal{width:38px;height:45px;font-size:25px}.document-brand p{font-size:8px}.document-identity{min-width:90px}.document-identity>span{font-size:5px;letter-spacing:.3px}.document-identity h2{font-size:14px}.document-identity>b{font-size:13px}.document-party{padding:18px 0}.document-party h3{font-size:12px}.document-bottom{grid-template-columns:1fr;gap:15px}.document-sheet td,.document-sheet th{font-size:8px;padding:9px 4px}.document-signatures{margin-top:35px;gap:25px;padding:0}.voucher-amount strong{font-size:25px}.voucher-detail{grid-template-columns:80px 1fr;gap:12px;font-size:10px}.document-totals .grand-total{font-size:15px}.document-sheet .table-wrap{overflow:visible}.document-sheet table{width:100%}.statement-balances{gap:8px}.statement-balances>div{font-size:9px;padding:10px}.login{background:linear-gradient(160deg,#142752 0%,#142752 30%,#ebedf2 30%)}.login-card{padding:30px}.login-card .brand span{display:block}.pagination{gap:12px}.business-preview{gap:12px}.business-preview h3{font-size:16px}}
@media(max-width:420px){header{flex-direction:column}.page-description{max-width:none}.header-actions{align-self:stretch}.header-actions button{width:100%;font-size:12px}.cards{grid-template-columns:1fr 1fr}.card strong,.compact .card strong{font-size:17px}.grid{grid-template-columns:1fr}.invoice-context{grid-template-columns:1fr 1fr}.card{padding:13px}.form-actions button{font-size:12px}.document-brand .brand-seal{display:none}}
@page{size:A4;margin:14mm 13mm}
@media print{html,body{background:white!important;color:#222!important;font-size:10pt}body>*{display:none!important}body>dialog[open]{display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;box-shadow:none!important;border:0!important;background:white!important;border-radius:0!important}dialog::backdrop{display:none!important}.modal-head,.form-actions{display:none!important}#modalBody{padding:0!important;overflow:visible!important}.document-sheet{padding:0!important;border:0!important;box-shadow:none!important;width:100%;font-size:10pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}.document-top{display:flex;break-inside:avoid;padding-bottom:6mm}.document-brand h2{font-size:17pt}.document-brand p{font-size:8pt}.document-brand .brand-seal{display:grid;width:16mm;height:16mm;font-size:26pt}.document-identity{min-width:45mm}.document-identity h2{font-size:17pt}.document-identity>span{font-size:6pt}.document-date{font-size:8pt}.document-party{display:flex;break-inside:avoid;padding:5mm 0}.document-party h3{font-size:11pt}.document-party small,.document-party p{font-size:8pt}.document-sheet .table-wrap{overflow:visible!important}.document-sheet table{width:100%;table-layout:fixed;border-collapse:collapse;white-space:normal}.document-sheet thead{display:table-header-group}.document-sheet td,.document-sheet th{font-size:9pt;padding:3mm 2mm;min-width:0;white-space:normal;overflow-wrap:anywhere}.document-sheet tr{break-inside:avoid;page-break-inside:avoid}.document-bottom{display:grid;grid-template-columns:1fr 70mm;gap:8mm;break-inside:avoid}.document-totals>div{font-size:9pt}.document-totals .grand-total{font-size:13pt}.document-note p{font-size:9pt}.document-signatures{margin-top:14mm;break-inside:avoid;font-size:9pt}.document-footer{font-size:8pt;break-inside:avoid;margin-top:8mm}.voucher-amount{break-inside:avoid}.voucher-amount strong{font-size:25pt}.voucher-detail{font-size:11pt;break-inside:avoid}.statement-balances{grid-template-columns:1fr 1fr;break-inside:avoid}.statement-balances>div{font-size:9pt}.badge{font-size:8pt}.receipt h2{text-align:inherit}}
.business-logo{display:block;object-fit:contain;width:90px;height:72px;flex-shrink:0}.logo-editor{display:flex;gap:22px;align-items:center;background:#f5f6f9;border:1px solid #dadee8;border-radius:9px;padding:20px}.logo-editor>div:last-of-type{flex:1;min-width:0}.logo-editor input[type=file]{max-width:100%;font-size:12px}.logo-editor .business-logo{width:110px;height:100px}.logo-editor .ghost{font-size:11px}.document-brand>div{min-width:0;overflow-wrap:anywhere}.document-brand .business-logo{width:85px;height:70px}@media(max-width:600px){.logo-editor{flex-direction:column;align-items:stretch}.document-brand .business-logo{width:48px;height:50px}.document-top{gap:12px}.document-brand{gap:8px}}@media print{.document-brand .business-logo{display:block!important;width:22mm;height:19mm;object-fit:contain}.document-brand{gap:4mm}}
.dual-logo-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:center;min-height:118px}.letterhead-company{grid-column:1;text-align:right;min-width:0}.letterhead-company h2{text-align:right;font-size:19px;margin:0;color:#182e61;line-height:1.7}.letterhead-company p{font-size:11px;margin:5px 0;color:#666f7b;line-height:1.6}.letterhead-center{grid-column:2;display:flex;align-items:center;justify-content:center;min-width:0}.letterhead-center img{display:block;width:180px;max-width:100%;height:75px;object-fit:contain}.letterhead-left{grid-column:3;display:flex;justify-content:flex-end;min-width:0}.letterhead-left .business-logo{width:130px;height:95px;max-width:100%;object-fit:contain}.document-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 0 8px}.document-heading h2{text-align:right;font-size:21px;margin:0}.document-heading>b{font:16px Tahoma;color:#657285;direction:ltr}.logo-editor #partnerLogoPreview img{width:140px;height:90px}.logo-editor #logoPreview,.logo-editor #partnerLogoPreview{background:repeating-conic-gradient(#eceef1 0% 25%,#fff 0% 50%) 50% / 16px 16px;border-radius:6px;padding:8px}@media(max-width:600px){.dual-logo-header{gap:10px;min-height:88px}.letterhead-company h2{font-size:12px}.letterhead-company p{font-size:9px}.letterhead-left .business-logo{height:65px;width:90px}.letterhead-center img{height:50px;width:120px}.document-heading h2{font-size:16px}.document-heading>b{font-size:12px}}@media print{.dual-logo-header{display:grid!important;grid-template-columns:1fr 1fr 1fr;gap:5mm;min-height:30mm;break-inside:avoid}.letterhead-company h2{font-size:14pt}.letterhead-company p{font-size:9pt}.letterhead-left .business-logo{display:block!important;width:33mm;height:25mm;object-fit:contain}.letterhead-center img{width:45mm;height:20mm;object-fit:contain}.document-heading{break-inside:avoid;padding-top:5mm}.document-heading h2{font-size:16pt}}

/* White and red identity */
:root{--green:#1d51c9;--ink:#262a30;--muted:#777c82;--line:#e5e8ee;--gold:#1d51c9;background:#f8f9fa;color:#262a30}aside{background:#fff;color:#262a30;border-left:1px solid #e5e8ee}.brand{color:#1d51c9}.brand span{color:#777c82}nav button{color:#595e66}nav button.active{background:#f0f4ff;color:#1749be;box-shadow:inset -3px 0 #1d51c9}nav button:hover{background:#f5f8ff}.side-bottom,.side-bottom small{color:#777c82}.side-bottom{border-color:#e5e8ee}.side-bottom button{background:#f1f5ff;color:#1948b7;border-color:#dce2f0}.warranty-control{margin-top:9px;max-width:220px;color:#1c44a2}.warranty-control select{font-size:12px;min-height:36px;padding:6px 8px;background:#fff8f9}.document-sheet td{overflow-wrap:anywhere}.document-sheet th:nth-child(2){width:30%}

.brand{letter-spacing:0;font-family:Tahoma,sans-serif;font-size:30px}.brand span{font-family:Tahoma,sans-serif}.document-footer b{direction:ltr;letter-spacing:0;font-family:Tahoma,sans-serif}@media(max-width:800px){.brand{font-size:24px}}

.warranty-dates{font-size:11px;line-height:1.7}.warranty-dates b,.warranty-dates span{display:block}.warranty-dates time{display:inline-block;white-space:nowrap;font-family:Tahoma,sans-serif;font-size:10px}.document-sheet:has(.warranty-dates) th:nth-child(2){width:27%}.document-sheet:has(.warranty-dates) th:nth-child(5){width:22%}@media print{.warranty-dates,.warranty-dates time{font-size:8pt}.document-signatures{margin-top:7mm}.document-footer{margin-top:4mm;padding-top:3mm}.document-sheet td,.document-sheet th{padding:2mm}.letterhead-company h2{font-size:12pt}}

.warranty-filter{display:flex;align-items:end;gap:12px;margin-bottom:20px}.warranty-filter label{max-width:240px;flex:1}.badge.warranty-active{background:#e9f3f9;color:#195477}.badge.warranty-expired{background:#ffe9ed;color:#a91c34}.badge.warranty-cancelled{background:#eee;color:#555}.badge.warranty-upcoming{background:#fff2d9;color:#805b17}@media(max-width:600px){.warranty-filter{flex-wrap:wrap}.warranty-filter label{max-width:none}}

.warranty-filter{flex-wrap:wrap}.warranty-statement-summary{font-size:12px;padding:10px;background:#f3f7ff}.warranty-statement-note{font-size:11px;line-height:1.8;margin-top:18px}.warranty-statement-table th:nth-child(1){width:9%}.warranty-statement-table th:nth-child(2){width:25%}.warranty-statement-table th:nth-child(3){width:7%}.warranty-statement-table th:nth-child(4),.warranty-statement-table th:nth-child(5){width:15%}.warranty-statement-table th:nth-child(6){width:11%}.warranty-statement-table th:nth-child(7){width:18%}.warranty-statement-table .mono{white-space:nowrap}@media print{.warranty-statement-table td,.warranty-statement-table th{font-size:8pt;padding:2mm 1mm}.warranty-statement-table .cell-sub{font-size:7pt}.warranty-statement-summary,.warranty-statement-note{font-size:8pt}.warranty-statement-table tr{break-inside:avoid}.warranty-statement-table thead{display:table-header-group}}

.footer-wordmark{display:block;flex:0 0 auto;width:110px;height:25px;overflow:visible;color:#1c429b;direction:ltr}@media print{.footer-wordmark{width:29mm;height:6.5mm;color:#1c429b;print-color-adjust:exact}.document-footer{padding-left:1mm;padding-right:1mm}}
.group-filter{display:flex;align-items:end;gap:14px;margin-bottom:20px}.group-filter label{max-width:480px;flex:1}.statistics-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.statistics-filter label{flex:1;min-width:150px}input[type=number],input[type=date],.mono{font-family:Arial,sans-serif;font-variant-numeric:tabular-nums}@media(max-width:600px){.group-filter{flex-wrap:wrap}.group-filter label{min-width:100%}.statistics-filter label{min-width:calc(50% - 12px)}}
[data-number],[data-date]{font-family:Arial,sans-serif;text-align:right;font-variant-numeric:tabular-nums}

.statistics-report table{table-layout:fixed}.statistics-report th:nth-child(2){width:auto}.statistics-report th:first-child{width:40%}.statistics-report .report-items th:first-child{width:30%}.statistics-report .report-items td,.statistics-report .report-items th{padding:8px 5px}.statistics-report .cell-sub{font-size:10px}.statistics-report .hint{line-height:1.7;font-size:11px}.statistics-report h3{break-after:avoid}@media print{.statistics-report td,.statistics-report th{padding:1.5mm;font-size:9pt}.statistics-report .report-items td,.statistics-report .report-items th{padding:1.5mm 1mm;font-size:8pt}.statistics-report .cell-sub,.statistics-report .hint{font-size:7.5pt}.statistics-report .document-signatures{margin-top:5mm}}
@media print{.statistics-report td,.statistics-report th{line-height:1.4;padding:1.2mm}.statistics-report .dual-logo-header{min-height:25mm;padding-bottom:4mm}.statistics-report .document-heading{padding-top:3mm}.statistics-report .document-date{margin:2mm 0}.statistics-report .document-signatures span{height:6mm}.statistics-report .document-footer{margin-top:3mm}}

.correction-line{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end;border-bottom:1px solid #eee;padding:12px 0}.revision-json{white-space:pre-wrap;overflow-wrap:anywhere;max-height:65vh;overflow:auto}@media(max-width:650px){.correction-line{grid-template-columns:1fr 1fr}.correction-line>label:first-child{grid-column:1/-1}}

/* Public sign-in identity: use the approved transparent shop and agency logos. */
.login-logos{display:flex;direction:ltr;align-items:center;justify-content:space-between;gap:24px;margin:0 0 22px;padding-bottom:22px;border-bottom:1px solid #e3e6ee}.login-logos img{display:block;object-fit:contain;max-width:46%;height:78px}.login-logos .login-agency-logo{width:160px;height:60px}.login-card .brand{padding:0 0 14px;font-size:24px}.login{min-height:100dvh;height:auto;overflow-y:auto}@media(max-width:480px){.login-logos{gap:16px;margin-bottom:18px;padding-bottom:18px}.login-logos img{height:64px}.login-logos .login-agency-logo{height:48px}.login-card{padding:26px}}

/* Amount in words, screen-only notes and the A5 / economy print (html.print-economy; page size switched to A5 by printDocument). */
.amount-words{margin:14px 0 0;padding:10px 12px;border:1px dashed #c9ced9;font-size:12px;color:#2a2f3c;line-height:1.8}.amount-words small{display:block;font-size:11px;color:#5b636e}.voucher-amount .amount-words{border:0;padding:6px 0 0;margin:6px 0 0}
@media print{.screen-only{display:none!important}.amount-words{font-size:9pt;padding:2mm 3mm;break-inside:avoid}.amount-words small{font-size:8pt}
html.print-economy *{print-color-adjust:economy!important;-webkit-print-color-adjust:economy!important;background:transparent!important;box-shadow:none!important}html.print-economy .document-sheet,html.print-economy .document-sheet *{color:#000!important;border-color:#888!important}html.print-economy .document-sheet{font-size:8.5pt}
html.print-economy .dual-logo-header{min-height:18mm;gap:3mm;padding-bottom:3mm;border-bottom-width:1px}html.print-economy .letterhead-left .business-logo{width:22mm;height:16mm}html.print-economy .letterhead-center img{width:30mm;height:13mm}html.print-economy .letterhead-company h2{font-size:11pt}html.print-economy .letterhead-company p{font-size:7.5pt}
html.print-economy .document-heading{padding-top:2mm}html.print-economy .document-heading h2{font-size:12pt}html.print-economy .document-date{font-size:7.5pt;padding:1.5mm 0}html.print-economy .document-party{padding:2mm 0}html.print-economy .document-sheet td,html.print-economy .document-sheet th{font-size:7.5pt;padding:1.2mm 1mm}html.print-economy .document-sheet th{border-bottom:1px solid #000!important}
html.print-economy .document-bottom{grid-template-columns:1fr 52mm;gap:4mm}html.print-economy .document-totals{border:1px solid #888}html.print-economy .document-totals>div{font-size:8pt;margin:1mm 0}html.print-economy .document-totals .grand-total{font-size:10pt;padding:1.5mm 0}
html.print-economy .voucher-amount{padding:3mm;margin:3mm 0;border:1px solid #888}html.print-economy .voucher-amount strong{font-size:15pt}html.print-economy .voucher-detail{font-size:8.5pt;grid-template-columns:26mm 1fr;padding:1.5mm 0}
html.print-economy .document-signatures{margin-top:7mm}html.print-economy .document-signatures span{height:7mm}html.print-economy .document-footer{margin-top:3mm;font-size:7pt}html.print-economy .footer-wordmark{width:22mm;height:5mm}html.print-economy .badge{border:1px solid #888;padding:0 1mm}html.print-economy .amount-words{font-size:8pt;padding:1.5mm 2mm}}
.write-in{display:block;min-width:60px;height:18px;border-bottom:1px solid #94a3b8}.reorder-document th:nth-child(2){width:24%}