.invoice-editor-backdrop{padding:0;background:#f7faff;backdrop-filter:none}.invoice-editor-dialog{width:100%;max-width:none;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none;animation:none;overflow:hidden}.invoice-editor-dialog>.modal-header{display:none}.ie-app{display:grid;grid-template-columns:175px minmax(0,1fr);height:100%;min-height:0;color:#172b50;font-size:13px;background:#fff}.ie-rail{background:#f8fbff;border-right:1px solid #e4ebf5;display:flex;flex-direction:column;padding:20px 12px;min-width:0}.ie-brand{display:block;padding:0 12px 24px}.ie-brand img{width:105px;height:auto}.ie-rail nav{display:grid;gap:9px}.ie-rail nav a{display:flex;gap:12px;align-items:center;min-height:42px;padding:10px 12px;color:#59708e;border-radius:6px;font-size:12px}.ie-rail nav .icon{width:17px;height:17px}.ie-rail nav a[aria-current]{background:#e7f0ff;color:#084bff;font-weight:700;border-left:3px solid #084bff;padding-left:9px}.ie-rail>small{font-size:10px;line-height:1.7;color:#8796ad;margin-top:auto;padding:20px 12px}.ie-workspace{display:flex;flex-direction:column;min-width:0;min-height:0}.ie-topbar{display:flex;justify-content:space-between;align-items:center;gap:15px;height:56px;flex-shrink:0;border-bottom:1px solid #e3eaf5;padding:10px 24px;background:#fff}.ie-topbar>.text-button{font-size:12px;color:#5c7294;display:flex;align-items:center;gap:12px}.ie-topbar>.text-button>.icon{transform:rotate(180deg);width:16px}.ie-topbar>div{display:flex;align-items:center;gap:16px;font-size:12px}.ie-company-name{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ie-workspace>form{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.ie-columns{display:grid;grid-template-columns:minmax(0,57%) minmax(0,43%);flex:1;min-height:0;overflow:hidden}.ie-form-panel{overflow-y:auto;overscroll-behavior:contain;padding:24px;border-right:1px solid #e2eaf5;min-width:0;scroll-padding:24px}.ie-title{display:flex;align-items:center;gap:14px;margin-bottom:8px}.ie-title h1{font-size:25px;line-height:1.2;letter-spacing:-.9px;margin:0;color:#102345}.ie-title>span,.ie-draft-badge{display:inline-flex;align-items:center;gap:6px;background:#e8f0ff;color:#1755b8;padding:5px 10px;border-radius:20px;font-size:10px;font-weight:650}.ie-title>span::before,.ie-draft-badge::before{content:'';height:6px;width:6px;border-radius:50%;background:#4683ff}.ie-lead{color:#71809b;font-size:12px;line-height:1.7;margin:0 0 22px}.ie-card{border:1px solid #e1e9f5;border-radius:9px;background:white;padding:18px;margin-bottom:18px;min-width:0}.ie-card h2{font-size:16px;letter-spacing:-.4px;display:flex;align-items:center;gap:10px;margin:0 0 18px;color:#12274c}.ie-card h2>.icon{width:20px;height:20px;color:#1160ff}.ie-client-dates{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:20px}.ie-client-picker{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-bottom:12px}.ie-client-picker>.field{flex:1;min-width:140px;margin:0!important}.ie-client-picker>button{font-size:11px;min-height:37px;padding:8px 10px;white-space:nowrap}.ie-client-card{display:flex;gap:12px;padding:13px;background:#f5f8fd;border-radius:7px;min-height:76px;align-items:center}.ie-client-avatar{display:flex;align-items:center;justify-content:center;width:36px;height:36px;flex-shrink:0;background:#e4edff;color:#0757e9;border-radius:9px;font-size:12px;font-weight:750}.ie-client-card>div{display:grid;gap:5px;min-width:0}.ie-client-card b{font-size:12px;overflow-wrap:anywhere}.ie-client-card small{font-size:10px;color:#73849e;line-height:1.4;overflow-wrap:anywhere}.ie-dates{display:grid;gap:14px}.invoice-editor-dialog .field{margin-bottom:14px}.invoice-editor-dialog .field>span{font-size:11px;font-weight:650;line-height:1.5;margin-bottom:7px;color:#425a80}.invoice-editor-dialog .field input,.invoice-editor-dialog .field select,.invoice-editor-dialog .field textarea{font-size:12px;min-height:37px;padding:9px 10px;border:1px solid #d9e3f3;border-radius:6px;background:#fff;color:#233b60;box-shadow:none}.invoice-editor-dialog .field input:focus,.invoice-editor-dialog .field select:focus,.invoice-editor-dialog textarea:focus{outline:2px solid #a4c4ff;outline-offset:1px}.invoice-editor-dialog .field input:disabled,.invoice-editor-dialog .field select:disabled{background:#f4f7fc;color:#71839c}.ie-dates .field{margin:0}.ie-advanced{border:1px solid #dce6f6;border-radius:7px;background:#f8faff;margin-top:18px}.ie-advanced>summary{display:flex;align-items:center;gap:10px;padding:13px;cursor:pointer;list-style:none}.ie-advanced>summary::-webkit-details-marker{display:none}.ie-advanced>summary .icon{width:17px;height:17px;color:#45618c}.ie-advanced>summary>.icon:last-child{margin-left:auto;width:12px}.ie-advanced>summary>span{display:grid;gap:4px}.ie-advanced b{font-size:11px}.ie-advanced small{font-size:10px;color:#8593aa}.ie-advanced>.form-grid{padding:15px 13px 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px}.ie-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.ie-card-heading h2{margin:0}.ie-card-heading>button{font-size:11px;padding:8px 10px;min-height:34px}.ie-catalog{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:16px}.ie-catalog>.field{margin:0;flex:1;min-width:150px}.ie-catalog>button{min-height:37px;padding:8px 10px;font-size:11px}.ie-catalog>small{flex-basis:100%;font-size:10px;color:#8794aa;line-height:1.5}.ie-lines-scroll{overflow-x:auto;overscroll-behavior:contain;max-width:100%;padding-bottom:8px}.ie-lines-head,.ie-line{display:grid;grid-template-columns:18px minmax(120px,2fr) minmax(48px,.65fr) minmax(75px,.9fr) minmax(62px,.7fr) minmax(75px,.9fr) 24px;gap:8px;align-items:center;min-width:540px}.ie-lines-head{background:#f4f7fc;padding:10px 6px;font-size:10px;color:#607795;border-radius:4px;margin-bottom:7px}.ie-line{padding:9px 6px;border-bottom:1px solid #edf1f8}.ie-line input,.ie-line select{width:100%;min-width:0;height:37px;border:1px solid #d9e3f3;background:#fff;border-radius:5px;font-size:11px;color:#173152;padding:8px}.ie-line strong{font-size:11px;text-align:right;white-space:nowrap}.ie-line .icon-button{width:24px;padding:3px}.ie-line .icon-button .icon{width:14px}.ie-grip{font-size:18px;cursor:grab;color:#70839d;min-height:36px;padding:0}.ie-grip:active{cursor:grabbing}.ie-line input:focus,.ie-line select:focus{outline:2px solid #a3c2ff;outline-offset:1px}.ie-concepts>#ie-add-line-bottom{margin-top:8px;font-size:12px}.ie-note{font-size:10px;color:#8898af;margin:10px 0 0}.ie-payment-notes{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ie-payment-notes>.field textarea{height:150px;resize:vertical}.ie-payment-notes .field>small{text-align:right;color:#8494ac;font-size:9px;margin-top:6px}.ie-bank-card{padding:12px;border-radius:7px;background:#f5f8fd}.ie-bank-card>span{display:flex;gap:7px;align-items:center;font-size:10px;font-weight:600;color:#5a7396;margin-bottom:8px}.ie-bank-card .icon{width:14px;height:14px}.ie-bank-card textarea{width:100%;border:0;background:transparent;resize:vertical;color:#294368;font-size:11px;line-height:1.8;min-height:70px;max-height:200px;padding:0}.ie-payment-notes #ie-payment-link{margin-top:14px}.ie-payment-notes #ie-payment-link small{font-size:10px;line-height:1.6;color:#8593aa}.ie-new-client{padding:16px;border:1px solid #a3c6ff;border-radius:8px;margin:16px 0;background:#f8fbff}.ie-new-client h3{font-size:13px;margin:0 0 14px}.ie-new-client>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ie-new-client>button{margin-right:12px}.ie-new-client .field{margin-bottom:0}.ie-preview-panel{background:#f4f7fc;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;padding:22px 20px 0}.ie-preview-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.ie-preview-panel h2{font-size:12px;display:flex;align-items:center;gap:8px;margin:0}.ie-preview-panel h2>.icon{width:17px;height:17px;color:#6689bf}.ie-preview-panel header>div{display:flex;border:1px solid #d8e3f3;border-radius:6px;overflow:hidden;background:white;flex-shrink:0}.ie-preview-panel header button{padding:6px 9px;font-size:11px;min-width:28px;color:#40618c;border-right:1px solid #e8edf5}.ie-preview-panel header button:last-child{border:0}.ie-preview-disclaimer{font-size:9px;line-height:1.7;color:#8a9ab0;margin:10px 0 14px}.ie-paper-stage{overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:0 3px 25px;scrollbar-width:thin}.ie-paper-stage>#ie-paper{transform-origin:top left;max-width:660px;margin:auto}.ie-paper.document-paper{background:white;box-shadow:0 5px 25px #1a395c10;border:1px solid #e1e8f3!important;border-radius:3px;padding:35px 30px!important;min-height:680px;width:100%;margin:0!important;font-family:Arial,Helvetica,sans-serif;font-size:11px;line-height:1.6}.ie-paper .paper-top{gap:15px;margin-bottom:18px!important}.ie-paper .invoice-brand{max-width:50%}.ie-paper .invoice-brand img{max-height:58px;max-width:155px}.ie-paper .invoice-brand-text{font-size:18px;font-weight:750}.ie-paper .paper-top>div:last-child{text-align:right}.ie-paper .paper-top h3{font-size:16px;margin:12px 0 4px}.ie-paper .paper-top p{font-size:10px;color:#677e9d;margin:0}.ie-paper .ie-draft-badge{font-size:8px;padding:3px 8px}.ie-issuer-dates{display:flex;justify-content:space-between;gap:14px;font-size:10px;margin-bottom:24px;color:#456184}.ie-issuer-dates p{margin:3px 0;overflow-wrap:anywhere}.ie-issuer-dates>div{max-width:52%;min-width:0}.ie-issuer-dates>div:last-child{text-align:right}.ie-issuer-dates b{font-size:10px}.ie-paper .paper-parties{padding:20px 0!important;border:0;border-top:1px solid #e4ebf4;margin-bottom:10px!important}.ie-paper .paper-parties b{display:block;font-size:12px}.ie-paper .paper-parties small{font-size:9px;color:#7a8fae}.ie-paper .paper-parties p{font-size:10px;color:#617c9e;margin:4px 0}.ie-paper-table{width:100%;border-collapse:collapse;font-size:9px;table-layout:fixed}.ie-paper-table th{background:none!important;text-align:right;color:#6c83a5;padding:10px 3px!important;border-bottom:1px solid #dfe8f5!important;font-size:9px;font-weight:600}.ie-paper-table th:first-child{width:35%;text-align:left}.ie-paper-table td{padding:11px 3px!important;border-bottom:1px solid #edf2f8;font-size:9px;text-align:right;vertical-align:top;overflow-wrap:anywhere}.ie-paper-table td:first-child{text-align:left}.ie-paper .paper-totals{align-self:flex-end;margin:20px 0 30px!important;width:65%;font-size:10px}.ie-paper .paper-totals>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0!important;background:transparent}.ie-paper .paper-totals>div:last-child{background:#eff5ff!important;border:0!important;border-radius:5px;padding:9px 10px!important;font-size:12px}.ie-paper .paper-totals strong{font-size:16px}.ie-paper-bottom{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:6px;margin-bottom:30px;font-size:9px;color:#647c9c}.ie-paper-bottom h4{font-size:10px;color:#294264;margin:0 0 8px}.ie-paper-bottom p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0}.ie-paper>footer{display:flex;justify-content:space-between;gap:12px;margin-top:auto;padding-top:18px;border-top:1px solid #e6edf7;font-size:8px;color:#8b9ab1}.ie-footer{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #e1e9f4;background:white;padding:14px 24px;z-index:2;min-height:68px}.ie-footer>span{font-size:10px;color:#7b8da6}.ie-footer>div{display:flex;gap:10px;align-items:center}.ie-footer button{font-size:12px;min-height:38px;padding:10px 16px;white-space:nowrap;border-radius:6px}.ie-footer .icon{width:15px;height:15px}.ie-preview-only .ie-columns{grid-template-columns:1fr}.ie-preview-only .ie-form-panel{display:none}.ie-preview-only .ie-preview-panel{display:flex}.ie-preview-only .ie-paper-stage{padding:15px 20px 35px}.ie-preview-only .ie-paper-stage>#ie-paper{max-width:700px}.invoice-editor-dialog [hidden]{display:none!important}.ie-form-panel .bill-select-trigger{min-height:37px;font-size:12px;border-radius:6px}.ie-form-panel .bill-select-popup{z-index:10}.ie-form-panel .bill-select-popup .bill-select-option{font-size:12px}.ie-topbar button:focus-visible,.ie-footer button:focus-visible,.ie-grip:focus-visible,.ie-advanced summary:focus-visible{outline:3px solid #9abaff;outline-offset:3px}@media(max-width:1250px){.ie-app{grid-template-columns:1fr}.ie-rail{display:none}.ie-form-panel{padding:20px}.ie-card{padding:15px}.ie-preview-panel{padding:20px 16px 0}.ie-paper.document-paper{padding:26px 22px!important}.ie-client-dates{gap:14px}.ie-client-picker>button{font-size:10px;padding:8px}.ie-lines-head,.ie-line{gap:6px;min-width:520px}}@media(max-width:980px){.ie-columns{grid-template-columns:1fr}.ie-preview-panel{display:none}.ie-form-panel{border-right:0}.ie-footer>span{display:none}.ie-footer{justify-content:flex-end}.ie-title h1{font-size:24px}.ie-card{max-width:850px}.ie-preview-only .ie-preview-panel{display:flex}.ie-preview-only .ie-paper-stage>#ie-paper{max-width:650px}}@media(max-width:600px){.ie-topbar{height:52px;padding:10px 14px}.ie-topbar>.text-button{font-size:11px}.ie-company-name{display:none}.ie-form-panel{padding:18px 12px}.ie-card{padding:15px 12px}.ie-title h1{font-size:23px}.ie-lead{font-size:11px}.ie-client-dates{grid-template-columns:1fr}.ie-dates{grid-template-columns:1fr 1fr;gap:12px}.invoice-editor-dialog .field input,.invoice-editor-dialog .field select,.invoice-editor-dialog .field textarea{font-size:16px;min-height:42px}.ie-form-panel .bill-select-trigger{font-size:14px;min-height:42px}.ie-payment-notes{grid-template-columns:1fr;gap:16px}.ie-client-picker>button{font-size:11px;min-height:42px}.ie-new-client>.form-grid,.ie-advanced>.form-grid{grid-template-columns:1fr}.ie-card-heading>button{font-size:10px;padding:8px}.ie-footer{padding:12px 10px;min-height:64px}.ie-footer>div{width:100%;gap:7px;justify-content:space-between}.ie-footer button{font-size:11px;padding:10px 9px;min-height:40px}.ie-footer .icon{display:none}.ie-preview-panel{padding:16px 10px 0}.ie-paper.document-paper{padding:24px 15px!important;min-height:600px}.ie-paper .invoice-brand-text{font-size:15px}.ie-paper .paper-totals{width:80%}.ie-paper-table{font-size:8px}.ie-paper .paper-totals strong{font-size:14px}.ie-preview-only .ie-paper-stage{padding:10px 0 25px}.ie-bank-card textarea{font-size:16px}.ie-paper .paper-top h3{font-size:14px}.ie-paper .invoice-brand img{max-width:120px}}

/* Keep the editor preview compact regardless of the selected stationery. */
.ie-paper .paper-totals>div{margin:0!important;min-height:0;line-height:1.6}.ie-paper .paper-parties{direction:ltr;flex-direction:row;padding:12px 0!important}.ie-paper .paper-parties>div{max-width:100%}.ie-paper .paper-totals{margin-left:auto!important}.ie-issuer-dates{margin-bottom:12px}

/* The page uses the platform navigation selected in the view toggle. */
.main-content.invoice-editor-main{padding:0!important;min-height:0;height:calc(100dvh - var(--header));margin-top:var(--header);overflow:hidden}.invoice-editor-main .ie-app{display:block;height:100%}.invoice-editor-main .ie-workspace{height:100%}.invoice-editor-main .ie-topbar{padding:10px 22px}.invoice-editor-main .ie-rail{display:none}.appearance-modern .invoice-editor-main{margin-top:calc(var(--header) + 52px);height:calc(100dvh - var(--header) - 52px)}.invoice-editor-main .ie-columns{grid-template-columns:minmax(0,56%) minmax(0,44%)}
@media(max-width:980px){.invoice-editor-main .ie-columns{grid-template-columns:1fr}.invoice-editor-main .ie-preview-only .ie-columns{grid-template-columns:1fr}}
@media(max-width:900px){.main-content.invoice-editor-main{margin-top:var(--header);height:calc(100dvh - var(--header) - 64px)}.invoice-editor-main .ie-topbar{padding:10px 14px}}

.invoice-editor-main .ie-preview-only .ie-columns{grid-template-columns:1fr}
/* Keep native select triggers aligned with adjacent inputs and action buttons. */
.invoice-editor-dialog .field select,.invoice-editor-dialog .ie-line select{display:block;box-sizing:border-box;width:100%;height:44px;min-height:44px;appearance:none;-webkit-appearance:none;padding:10px 34px 10px 12px;border:1px solid #d9e3f3;border-radius:7px;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23597094' stroke-width='1.8'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;font:inherit;color:#233b60;cursor:pointer;text-overflow:ellipsis}
.invoice-editor-dialog .field input{box-sizing:border-box;min-height:44px}.invoice-editor-dialog .field select:focus-visible{outline:3px solid #084bff24;border-color:#5685ff}.invoice-editor-dialog select:disabled{background-color:#f5f7fb;color:#7b8da7;cursor:not-allowed}.ie-new-client[hidden]{display:none}.ie-new-client>p{color:#637795;line-height:1.6}.ie-new-client>.primary,.ie-new-client>.text-button{margin:8px 8px 0 0}#ie-new-product{margin:0 0 16px}.ie-catalog{align-items:end}.ie-client-picker{align-items:end}

.invoice-qr-preview{display:flex;flex-direction:column;align-items:center;gap:5px;width:120px;margin:12px auto 20px;color:#52617b;text-align:center;break-inside:avoid}.invoice-qr-preview img{display:block!important;width:84px!important;height:84px!important;max-width:none!important;background:#fff;padding:6px;box-sizing:content-box;object-fit:contain}.invoice-qr-preview small{font-size:10px!important;line-height:1.3}.design-paper:not(.large-paper) .invoice-qr-preview{width:50px;margin:5px auto 8px}.design-paper:not(.large-paper) .invoice-qr-preview img{width:35px!important;height:35px!important;padding:3px}.design-paper:not(.large-paper) .invoice-qr-preview small{font-size:5px!important}

/* Six QR placements, separate from the selected invoice layout. */
.ie-paper{display:flex!important;flex-direction:column}.invoice-qr-preview.qr-header-left,.invoice-qr-preview.qr-footer-left{align-self:flex-start;margin-left:0;margin-right:auto}.invoice-qr-preview.qr-header-right,.invoice-qr-preview.qr-footer-right{align-self:flex-end;margin-left:auto;margin-right:0}.invoice-qr-preview.qr-header-center,.invoice-qr-preview.qr-footer-center{align-self:center}.invoice-qr-preview[class*="qr-footer-"]{order:95}.design-footer,.ie-paper>footer{order:100}.ie-paper-table,.design-summary{flex-shrink:0}input[type="color"]{min-height:44px;cursor:pointer;padding:5px}

.design-paper .design-table-head,.design-paper .design-line,.design-paper .design-total,.ie-paper-table th,.ie-paper-table td,.ie-paper .paper-totals>div{border-color:var(--invoice-accent,#084bff)!important}.design-paper .design-table-head,.design-paper .design-total,.ie-paper-table th,.ie-paper .paper-totals>div:last-child{background:#fff!important}.design-paper,.ie-paper{color:#20252c!important}
