.invoice-editor-dialog{width:min(1450px,96vw)!important;max-width:1450px!important;padding:0!important;border-radius:14px;max-height:96vh}.invoice-editor{background:#f5f7fb;color:#172d4e;font-size:14px}.invoice-editor *{box-sizing:border-box}.ie-heading{display:flex;justify-content:space-between;align-items:center;padding:24px 30px;background:white;border-bottom:1px solid #e0e6ef}.ie-heading h1{margin:7px 0;font-size:26px}.ie-heading p{margin:0;color:#6b7f99}.ie-heading small{letter-spacing:1.4px;font-size:11px;color:#7a8ca4}.ie-content{padding:24px 30px;max-height:calc(96vh - 200px);overflow:auto}.ie-panel{background:white;border:1px solid #dfe6f1;border-radius:10px;padding:24px;margin-bottom:22px;box-shadow:0 1px 2px #16345a08}.ie-top{display:grid;grid-template-columns:1fr 1fr;gap:10%}.ie-field{display:flex;flex-direction:column;gap:8px;margin:0 0 16px;color:#415d80}.invoice-editor input,.invoice-editor select,.invoice-editor textarea{background:white;border:1px solid #ccd6e4;border-radius:7px;padding:11px 12px;font:inherit;min-width:0;width:100%;color:#223956;max-width:100%}.invoice-editor input:focus,.invoice-editor select:focus,.invoice-editor textarea:focus{outline:2px solid #5e94d84d;border-color:#527db3}.invoice-editor button{font:inherit;border:1px solid #ccd6e4;background:white;color:#304866;border-radius:7px;padding:11px 16px;cursor:pointer}.invoice-editor button.primary{background:#1b3d70;color:white;border-color:#1b3d70}.invoice-editor button:disabled{opacity:.6;cursor:wait}.ie-customer{padding:16px 0;line-height:1.6}.ie-customer p{margin:8px 0;white-space:pre-line;color:#6a7c93}.ie-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.ie-row{display:grid;grid-template-columns:minmax(340px,1fr) 56px 112px 80px 112px 28px;gap:10px;align-items:start;padding:12px 8px;background:#f8fafd;border-radius:8px;margin-bottom:8px}.ie-labels{color:#72839b;font-size:10px;letter-spacing:1px;background:none;margin-top:20px}.ie-row input[type=number]{text-align:right;padding:11px 6px;font-variant-numeric:tabular-nums}.ie-row>strong{text-align:right;padding:12px 0;font-weight:500}.ie-product{position:relative}.ie-product small{display:block;color:#788ba4;font-size:11px;padding:6px 0}.ie-search-box{display:flex;gap:4px}.invoice-editor .ie-icon{padding:8px 10px;font-size:21px;background:transparent}.invoice-editor .ie-remove{padding:9px 3px;color:#e54c63;border:0;background:none;font-size:23px}.ie-results{position:relative;max-height:230px;overflow:auto;margin-top:4px;border:1px solid #ccd6e4;border-radius:8px;background:white;box-shadow:0 5px 14px #17324f12}.ie-results[hidden]{display:none}.ie-results button{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid #edf1f6;border-radius:0}.ie-results button:hover{background:#edf4fc}.ie-results small{padding:4px 0 0}.ie-results p{padding:10px}.ie-totals{width:min(410px,100%);margin:18px 0 0 auto}.ie-totals p,.ie-totals label{display:flex;justify-content:space-between;align-items:center;gap:16px;color:#6b7f99;margin:12px 0}.ie-totals strong{color:#1a2f4b}.ie-currency{display:flex;gap:5px;align-items:center;max-width:180px}.ie-currency b{border:1px solid #ccd6e4;border-radius:6px;padding:11px;font-weight:400}.ie-currency input{text-align:right}.ie-net{padding-top:16px;border-top:1px solid #e0e6ef;font-size:17px}.ie-notes{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ie-notes textarea{min-height:110px;resize:vertical}.ie-field small{color:#8393aa;font-size:12px}.ie-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid #dfe6f1;background:white;padding:16px 30px}.ie-footer>div,.ie-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.ie-footer span{color:#75869d}.ie-footer strong{color:#1b2e4a}.ie-error{color:#be2b43;white-space:pre-line}.ie-add{margin-top:8px}@media(max-width:850px){.ie-content{padding:15px}.ie-top{gap:25px}.ie-footer{padding:14px;align-items:stretch;flex-direction:column}.ie-actions{justify-content:flex-end}.ie-content{max-height:calc(96vh - 260px)}.ie-items-scroll{overflow-x:auto}.ie-row{min-width:830px}.ie-heading{padding:18px}.ie-notes{grid-template-columns:1fr}}@media(max-width:540px){.ie-top{grid-template-columns:1fr;gap:8px}.ie-panel{padding:16px}.ie-actions button{flex:1;padding:10px}.ie-heading h1{font-size:22px}}

.invoice-editor .ie-heading{height:auto;min-height:100px;position:static}.invoice-editor .ie-panel{max-width:none}.invoice-editor .ie-footer{position:static}

.invoice-editor-dialog[open]{overflow:hidden}.invoice-editor{display:flex;flex-direction:column;max-height:96vh}.invoice-editor .ie-content{flex:1;min-height:0;max-height:none}.invoice-editor .ie-heading,.invoice-editor .ie-footer{flex-shrink:0}.ie-top{gap:7%}

.delivery-note-editor .ie-row{grid-template-columns:minmax(340px,1.5fr) 56px minmax(220px,1fr) 28px}.ie-serial-cell{padding:5px 8px;min-width:0}.ie-serial-options{display:flex;flex-wrap:wrap;gap:8px 16px;max-height:140px;overflow:auto}.ie-serial-options label{display:flex;gap:6px;align-items:center;font-size:12px;overflow-wrap:anywhere}.invoice-editor .ie-serial-options input{width:16px;height:16px;padding:0}.ie-serial-cell small,.ie-item-details small{display:block;color:#73839a;font-size:11px;line-height:1.6;margin-top:6px}.ie-item-details{margin-top:8px}.ie-item-details summary{cursor:pointer;color:#3d688e;font-size:12px}.ie-item-details textarea{margin:10px 0;min-height:74px;resize:vertical}.ie-help{color:#7a8a9d}.invoice-editor .ie-heading h1{overflow-wrap:anywhere}.invoice-editor input[readonly],.invoice-editor select:disabled{background:#f4f7fa}.delivery-note-editor .ie-trade-help{display:none}@media(max-width:850px){.delivery-note-editor .ie-row{min-width:680px}}

.quotation-details{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:24px 30px}.quotation-details>h2{grid-column:1/-1;margin:0 0 4px;font-size:20px}.quotation-details>.ie-quotation-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 16px;border-left:1px solid #e0e6ef;padding-left:30px}.ie-customer-select{display:flex;gap:10px;align-items:stretch}.ie-customer-select select{flex:1}.ie-customer-select button{flex:0 0 48px;padding:8px!important}.quotation-details .ie-customer-select .ss-control{flex:1;min-width:0}@media(max-width:1000px){.quotation-details{grid-template-columns:1fr}.quotation-details>.ie-quotation-fields{padding-left:0;border-left:0}}@media(max-width:540px){.quotation-details>.ie-quotation-fields{grid-template-columns:1fr 1fr;gap:0 12px}}
