/* Copied develop editor styles, with its application-shell selectors adapted to Talato. */

/* sales-workflow.css */
.sw-page{direction:rtl;max-width:1500px;margin:auto}.sw-page .page-card{padding:20px;margin-bottom:16px}.sw-page h2{font-size:18px;margin:0 0 16px}.sw-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;margin:14px 0}.sw-page label,.sw-user-scopes label{display:flex;flex-direction:column;gap:6px;margin:7px 0}.sw-page input,.sw-page select{padding:10px;border:1px solid #c8d1df;border-radius:8px;background:var(--card,#fff);color:inherit;min-width:0;width:100%}.sw-page input[type=checkbox],.sw-user-scopes input[type=checkbox]{width:auto;display:inline-block}.sw-page button,.sw-user-scopes button{padding:9px 15px;border:1px solid #b9c6d7;border-radius:8px;cursor:pointer;background:#f4f7fb;color:#17395e}.sw-page button:disabled{opacity:.5;cursor:not-allowed}.sw-page .btn-primary{background:#174a7e;color:white}.sw-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0}.sw-actions label{display:inline-flex;flex-direction:row;align-items:center}.sw-error{color:#9a1b22!important;background:#fff0f0;padding:12px;border:1px solid #e58c92;border-radius:8px}.sw-bell{border-right:5px solid #c72332;font-weight:700}.sw-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:20px 0}.sw-totals>div{padding:13px;background:#f1f5f9;border-radius:8px}.sw-totals b{display:block;margin-top:8px;font-size:20px;color:#17395e}.sw-page table,.sw-user-scopes table{width:100%;border-collapse:collapse}.sw-page td,.sw-page th,.sw-user-scopes td,.sw-user-scopes th{text-align:right;padding:12px;border-bottom:1px solid #dce3eb}.sw-page td small{display:block}.sw-history article{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:12px;border-bottom:1px solid #dae2ed}.sw-history p{grid-column:1/-1;margin:0}.sw-toast{position:fixed;bottom:24px;left:24px;z-index:100000;background:#eff8f1;padding:16px;border:1px solid #8da99a;border-radius:10px;max-width:80vw;direction:rtl}.sw-return{padding:16px;border-bottom:1px solid #dbe2ed}.sw-user-scopes{grid-column:1/-1;width:100%}.sw-page [hidden]{display:none!important}.sw-page details{margin:15px 0}.sw-page summary{cursor:pointer;padding:10px;background:#f5f7fa}.sw-page input[readonly]{background:#eef1f5}.sw-page [data-message]{margin-bottom:14px;padding:10px}.sw-page .responsive-table{overflow:auto}.sw-page a.btn{display:inline-block;padding:9px 14px;border-radius:8px;background:#174a7e;color:#fff;text-decoration:none}@media(max-width:600px){.sw-page .page-card{padding:12px}.sw-grid{grid-template-columns:1fr}.sw-history article{grid-template-columns:1fr}.sw-totals{grid-template-columns:1fr 1fr}}
/* 4.7.1: guided forms in the existing sales workspace */
.sw-page{--sw-ink:#17324d;--sw-accent:#176b67;--sw-line:#dce5ec;color:var(--sw-ink)}
.sw-page .page-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 24px}.sw-build{font-size:12px;background:#e8f4f1;color:#176b67;border:1px solid #b9dcd2;border-radius:20px;padding:5px 12px}
.sw-page .page-card{background:#fff;border:1px solid var(--sw-line);border-radius:16px;box-shadow:0 3px 14px #17324d06;padding:24px}
.sw-page .btn-primary{background:var(--sw-accent);border-color:var(--sw-accent);color:#fff}.sw-page button:not(:disabled):hover{filter:brightness(.96)}
.sw-page :is(button,input,select,a):focus-visible{outline:3px solid #75b8db;outline-offset:3px}.sw-page input:focus,.sw-page select:focus{border-color:#378883}
.sw-page label>span{font-size:13px;font-weight:600}.sw-page .sw-actions label{flex-direction:column;align-items:flex-start}.sw-page .sw-actions{align-items:flex-end}
.sw-steps{display:flex;gap:8px;overflow:auto;padding:6px 0 18px;scroll-margin-top:16px}.sw-page .sw-steps button{flex:1;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:8px;background:#fff;border-color:var(--sw-line);min-height:54px}.sw-steps button>span{display:grid;place-items:center;width:27px;height:27px;background:#edf2f6;border-radius:50%;font-size:13px}.sw-page .sw-steps button[aria-current=step]{border-color:var(--sw-accent);background:#edf8f5;color:#125c55;font-weight:700}.sw-steps button[aria-current=step]>span,.sw-steps button.is-done>span{background:#176b67;color:white}.sw-page .sw-steps button:disabled{opacity:.65}
.sw-step-footer{display:flex;align-items:center;gap:16px;background:#fff;padding:16px;border:1px solid var(--sw-line);border-radius:14px;margin-top:18px}.sw-step-footer [data-step-progress]{flex:1;font-size:13px;color:#526779;text-align:center}.sw-page [data-step-next]{min-width:130px}
.sw-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.sw-section-heading h2{margin:0}.sw-muted{color:#63778a;line-height:1.9;font-size:13px}.sw-status{font-size:12px;background:#eef3f7;border-radius:16px;padding:5px 12px;white-space:nowrap}.sw-service-choices{display:flex;gap:12px;flex-wrap:wrap;padding:12px 0}.sw-page [data-service-decline][aria-pressed=true]{border-color:#176b67;color:#176b67;background:#eaf7f2}.sw-success{border:1px solid #beded0;background:#effaf4;color:#206149;padding:14px;border-radius:10px}.sw-empty{background:#f6f8fb;border:1px dashed #c8d5df;border-radius:12px;padding:22px;text-align:center;color:#64778a;line-height:1.9}
.sw-page [data-service-row],.sw-page [data-payment-row]{background:#f7f9fc;border:1px solid #e0e7ef;padding:16px;border-radius:12px;align-items:end}.sw-page .sw-remove,.sw-page [data-payment-remove],.sw-page [data-remove]{color:#a33e43;background:#fff7f7;border-color:#edcfd0}.sw-review-customer{display:flex;flex-wrap:wrap;gap:20px;border-bottom:1px solid var(--sw-line);padding:14px 0}.sw-totals>div{background:#f3f7fa;border:1px solid #e4ebf1}.sw-page th{background:#f3f7fa;color:#52667a;font-size:13px}.sw-page td{font-size:14px;vertical-align:middle}.sw-page td small{margin-top:5px;color:#6a7b8a}.sw-page [data-message]:not([hidden]){border-radius:10px;background:#edf6f3;line-height:1.8}
@media(max-width:700px){.sw-page .page-card{padding:16px;border-radius:12px}.sw-page .page-title h1{font-size:20px}.sw-steps{gap:6px}.sw-page .sw-steps button{min-width:125px;flex:none;font-size:12px}.sw-step-footer{gap:8px;padding:12px;flex-wrap:wrap}.sw-step-footer [data-step-progress]{order:-1;flex-basis:100%;text-align:right}.sw-step-footer button{flex:1}.sw-service-choices>button{flex:1;min-width:150px}.sw-review-customer{gap:10px;flex-direction:column}.sw-section-heading{align-items:flex-start}.sw-page .sw-actions>label{width:100%}.sw-page table input{min-width:140px}}
@media(prefers-reduced-motion:reduce){.sw-page *{scroll-behavior:auto!important;transition:none!important}}
/* 4.9: draft, receipt and print stages, inside the existing workspace. */
.sw-page{max-width:1320px}.sw-page .sw-steps button{font-size:12px;min-width:105px}.sw-page .sw-step-footer{position:sticky;bottom:12px;z-index:20;box-shadow:0 6px 24px #17324d18}.sw-page .sw-branch-chip{display:inline-block;padding:8px 14px;border-radius:20px;background:#eaf7f3;color:#176b67}.sw-page .sw-combobox{position:relative;margin:0}.sw-page .sw-combobox[open]{z-index:25}.sw-combobox summary{border:1px solid #c8d1df;border-radius:8px;min-height:43px}.sw-combobox[open]>input{position:absolute;top:46px;right:0;background:white;border-radius:8px 8px 0 0;z-index:2}.sw-combobox [data-model-options]{position:absolute;top:90px;right:0;left:0;max-height:280px;overflow:auto;padding:8px;background:#fff;border:1px solid #c8d1df;box-shadow:0 12px 24px #17324d20}.sw-combobox [role=option]{display:flex;width:100%;justify-content:space-between;text-align:right;background:white;border:0;margin:4px 0}.sw-combobox small{color:#6b7d8a}.sw-item-card{border:1px solid #dce5ec;border-radius:14px;margin:14px 0;padding:16px;background:#fff}.sw-item-main{display:flex;gap:16px;align-items:center}.sw-item-main>div{flex:1}.sw-item-main small{display:block;margin-top:8px;color:#5b7080}.sw-item-main label{width:220px}.sw-item-details{display:flex;gap:12px 24px;flex-wrap:wrap;font-size:12px;color:#4c6479}.sw-item-card details{margin-bottom:0}.sw-item-card summary{font-size:12px;border-radius:8px}.sw-price-warning{color:#b45b04;position:relative;cursor:help}.sw-price-warning>span{display:none;position:absolute;width:220px;bottom:30px;left:0;padding:10px;border-radius:8px;border:1px solid #f4cf87;background:#fff6e6;z-index:4;font-size:12px;box-shadow:0 4px 18px #66310014}.sw-price-warning:hover>span,.sw-price-warning:focus>span{display:block}.sw-page .sw-check-row{display:grid;grid-template-columns:75px 110px 180px minmax(180px,1fr);align-items:center;gap:20px;border:1px solid #dce5ec;border-radius:12px;padding:14px;margin:12px 0;background:#f8fbfa}.sw-check-row small{font-weight:400;color:#6b7d8a}.sw-page .sw-check-receipt{display:grid;grid-template-columns:60px 100px 150px minmax(170px,1fr) auto auto auto;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid #dce5ec}.sw-page .sw-inline-check{display:flex;flex-direction:row;align-items:center;gap:8px}.sw-page .sw-invoice-tabs{display:flex;gap:6px;border-bottom:1px solid #dce5ec;margin:18px 0;overflow:auto;padding-bottom:10px}.sw-invoice-tabs button{white-space:nowrap}.sw-page .sw-invoice-tabs [aria-selected=true]{background:#176b67;color:white;border-color:#176b67}.sw-row-actions{display:flex;gap:5px;flex-wrap:wrap}.sw-page .sw-row-actions button{padding:6px 9px;font-size:12px}.sw-cash-confirm{background:#fff8e8;padding:20px;margin-top:24px;border-radius:12px}.sw-review h3,[data-review] h3{font-size:15px;margin:24px 0 8px}.sw-page input[inputmode=numeric]{font-variant-numeric:tabular-nums}.sw-page [data-cost-eye]{padding:2px 8px}
@media(max-width:1050px){.sw-page .sw-check-receipt{grid-template-columns:repeat(3,minmax(0,1fr))}.sw-page .sw-check-row{grid-template-columns:60px 100px 1fr}.sw-check-row label{grid-column:1/-1}}
@media(max-width:650px){.sw-item-main{flex-wrap:wrap}.sw-item-main>div{flex-basis:100%}.sw-item-main label{flex:1;min-width:160px}.sw-page .sw-check-receipt{grid-template-columns:repeat(2,minmax(0,1fr))}.sw-check-receipt label{grid-column:1/-1}.sw-page .sw-step-footer{bottom:4px}.sw-page .sw-check-row{gap:8px}.sw-item-details{display:grid;gap:12px}.sw-price-warning>span{left:-30px}}

/* Receipt status and navigation, shared by cash, cheques and Beta. */
.sw-page-navigation{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}.sw-pending-reasons{list-style:none;margin:8px 0;padding:0;display:grid;gap:6px}.sw-pending-reasons li{padding:6px 10px;background:#fff4dd;border-right:3px solid #cf8200;border-radius:6px;font-size:.8rem;color:#724600}.sw-beta-receipt{margin:16px 0;padding:20px;border:1px solid #a6c8cc;background:#f1f9fa;border-radius:14px;display:grid;gap:10px}.sw-beta-receipt label{max-width:440px}.sw-beta-receipt button{justify-self:start}.sw-list-mode{border-bottom:1px solid #dce5eb;padding-bottom:14px;margin-bottom:16px}.sx-payment-modes{flex-wrap:wrap}@media(max-width:600px){.sw-page-navigation button{flex:1}.sw-beta-receipt{padding:14px}.sw-entry-status{min-width:0}}

/* Scoped workflow refinements: preserve other application screens. */
.sw-actors{display:flex;flex-wrap:wrap;gap:12px;margin-block:12px}.sw-actors>span{display:grid;gap:4px;padding:8px 12px;border:1px solid var(--border,#dbe3ea);border-radius:10px}.sw-actors small{font-size:11px;color:var(--muted,#596b7c)}.sw-actors b{font-size:13px}.sw-invoice-document{max-width:1200px;margin:auto;width:100%}.sw-invoice-document>.page-card{border:1px solid var(--border,#dbe3ea);border-radius:16px;padding:24px;margin-bottom:16px}.sw-invoice-document .sw-document-heading{border-bottom:2px solid #175e66;padding-bottom:16px}.sw-page [data-search]{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.sw-page [data-search]>label{flex:1 1 160px}.sw-page [data-daily-row]{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;padding:12px;border-bottom:1px solid #dbe3ea}.sw-invoice-document .sw-bill-totals{gap:12px}.sw-invoice-entry .sw-actors{gap:4px}.sw-invoice-entry .sw-actors>span{padding:4px 8px}.sc-details [data-contract-choice]+input:not([hidden]){margin-top:8px}@media(max-width:640px){.sw-invoice-document>.page-card{padding:14px}.sw-page [data-daily-row]{grid-template-columns:1fr 1fr}.sw-page [data-daily-row]>button{grid-column:1/-1}.sw-actors>span{flex:1 1 120px}}

.sw-page [data-schedule][aria-pressed=true]{background:#175e66;color:#fff;border-color:#175e66}.sw-page [data-check-schedule]{padding-block:12px}.sw-page [data-check-schedule] button{margin-inline-end:8px}

/* sales-review.css */
/* Shared finishing layer for the current sales pages only. */
.content>.sw-page{width:100%;max-width:none;min-width:0;flex:1 1 100%;align-self:stretch}
.sw-page>[data-results],.sw-page>.page-card{width:100%;min-width:0}
.sw-invoice-ledger{width:100%;min-width:0}
.sw-page .sw-invoice-entry{grid-template-columns:minmax(135px,1fr) minmax(160px,1.3fr) minmax(120px,1fr) minmax(140px,1fr);gap:18px}
.sw-invoice-entry .sw-row-actions{grid-column:1/-1;justify-content:flex-start;border-top:1px solid #e2e8f0;padding-top:14px}
.sw-page .sw-warning-badge{display:inline-flex;align-items:center;color:#b42318;background:#fff1f0;border:1px solid #f1b4ae;font-size:12px;white-space:normal;padding:6px 9px;border-radius:8px;cursor:help}
.sw-price-warning>[role=tooltip]{display:none!important}
.sw-floating-warning{position:fixed!important;z-index:2147483647!important;inset:auto;max-height:45vh;overflow:auto;background:#7a2419;color:white;border:1px solid #efb5ac;border-radius:12px;padding:12px 16px;font:13px/1.9 Tahoma,sans-serif;direction:rtl;text-align:right;white-space:pre-line;box-shadow:0 10px 30px #0003;pointer-events:none}
.sw-page .sw-guarantor-choice{grid-column:1/-1;flex-direction:row;align-items:center;padding:12px 16px;border:1px solid #dce5ec;border-radius:10px;background:#f7fafb}
.sw-guarantor-choice input[type=checkbox]{width:20px;height:20px;margin:0}
.sw-page label[hidden]{display:none!important}
.sw-page input[readonly]{background:#f3f6f8;color:#43576a}
.sw-birth-calendar{grid-column:1/-1;max-width:480px;width:100%;z-index:40;position:relative}
.sw-calendar-head{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.sw-calendar-head label{flex:1;min-width:95px}
.sw-calendar-head [data-calendar-close]{align-self:center;min-width:70px}
.sc-derived{display:flex;flex-direction:column;justify-content:center;gap:8px;padding:12px;background:#edf5f3;border:1px solid #c9ded8;border-radius:10px}
.sw-review-document{border:1px solid #dce5ec;border-radius:16px;background:white;overflow:hidden}
.sw-review-document>h3,.sw-review-document>.sw-totals,.sw-review-document>.sw-error,.sw-review-document>.sc-review-guarantees{margin:20px}
.sw-review-document .sw-review-customer{padding:22px;background:#f4f8fa;border-bottom:2px solid #176b67;gap:10px 24px}
.sw-review-customer strong{flex-basis:100%;font-size:18px;color:#12384a}
.sw-review-lines{width:100%;border-collapse:collapse}
.sw-review-lines td,.sw-review-lines th{padding:16px 14px;vertical-align:top;border-bottom:1px solid #e1e9ef}
.sw-review-lines .sw-group-label{width:74px;text-align:center;vertical-align:middle;background:#eff6f4;color:#175d58;font-size:13px;border-left:1px solid #dce5ec}
.sw-review-lines .sw-review-amount{white-space:nowrap;direction:ltr;text-align:left;font-weight:700;font-variant-numeric:tabular-nums}
.sw-review-lines .sw-line-description{display:block;white-space:normal;line-height:1.9;margin-top:6px;max-width:650px;color:#53687b}
.sw-review-document .sw-financial-table{font-size:13px}
@media(max-width:800px){.sw-page .sw-invoice-entry{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sw-review-lines td,.sw-review-lines th{padding:10px 8px}.sw-review-lines .sw-group-label{width:50px}.sw-review-document .sw-review-customer{padding:16px}.sw-invoice-entry .sw-row-actions button{flex:1 1 130px}}
@media(max-width:420px){.sw-page .sw-invoice-entry{grid-template-columns:minmax(0,1fr)}.sw-review-lines{font-size:12px}.sw-review-document>h3,.sw-review-document>.sw-totals{margin:12px}}

/* Invoice review: structured product rows, with the price separated from facts. */
.sw-page [data-guarantor-panel][hidden]{display:none!important}
.sw-guarantor-panel{grid-column:1/-1;padding:20px;border:1px solid #bbd9d8;border-radius:14px;background:#f5faf9;min-width:0}
.sw-guarantor-panel h3{margin:0;color:#174d50;font-size:16px}
.sw-guarantor-panel p{margin:7px 0 18px;color:#566c7d;line-height:1.9;font-size:13px}
.sw-review-document .sw-review-group{margin:24px;min-width:0}
.sw-review-group-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;color:#193f51}
.sw-review-eyebrow{font-size:11px;color:#668292;letter-spacing:.02em}
.sw-review-group-head h3{margin:4px 0;font-size:18px;display:flex;align-items:center;gap:10px}
.sw-review-group-head h3>span{background:#eef4f6;border-radius:20px;padding:4px 10px;font-size:11px;font-weight:500;color:#486878}
.sw-review-subtotal{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.sw-review-subtotal>small,.sw-review-group-head b small{font-size:11px;color:#657c89;font-weight:400}
.sw-review-products{display:grid;gap:14px}
.sw-review-product{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,190px);border:1px solid #dbe6ec;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 4px 14px #163d4a06}
.sw-review-product-body{padding:20px;min-width:0}
.sw-review-product-body>header{display:flex;gap:12px;align-items:flex-start}
.sw-review-line-no{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:30px;height:30px;border-radius:9px;background:#eef4f7;color:#587585;font-size:12px;font-weight:600}
.sw-review-product h4{margin:2px 0 8px;color:#16394b;font-size:16px;line-height:1.6;overflow-wrap:anywhere}
.sw-review-condition{display:inline-block;font-size:11px;font-weight:600;padding:3px 9px;color:#1c6a54;background:#e8f5ee;border-radius:6px}
.sw-review-condition.is-used{background:#fff4e5;color:#99600c}
.sw-review-serials{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.sw-review-serials>span{display:flex;align-items:center;gap:9px;padding:6px 10px;background:#f4f7fa;border:1px solid #e3eaf0;border-radius:7px;max-width:100%;flex-wrap:wrap}
.sw-review-serials small{font-size:10px;color:#6c7f8f}
.sw-review-serials b{font-size:12px;color:#305a73;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.sw-review-serials .is-missing{font-size:11px;line-height:1.8;color:#8b5b13;background:#fff8eb;border-color:#f0dfb9}
.sw-review-specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px;margin:0}
.sw-review-specs>div{min-width:0}
.sw-review-specs dt{font-size:11px;color:#748794;margin-bottom:4px}
.sw-review-specs dd{margin:0;font-size:12px;color:#304c5c;line-height:1.9;overflow-wrap:anywhere;white-space:pre-line}
.sw-review-contract{margin-top:16px;padding-top:14px;border-top:1px dashed #dbe6eb}
.sw-review-contract h5{font-size:11px;color:#3c6c74;font-weight:600;margin:0 0 12px}
.sw-review-product-note{font-size:12px;line-height:1.9;margin:14px 0 0;color:#4e6777;white-space:pre-line;overflow-wrap:anywhere}
.sw-review-product-price{border-inline-start:1px solid #e0e9ed;background:#f4f9f9;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:22px 14px;min-width:0;text-align:center}
.sw-review-product-price small{font-size:12px;color:#69838d}
.sw-review-product-price strong{font-size:20px;line-height:1.6;color:#135b63;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.sw-review-product-price>span{font-size:11px;color:#61808a}
.sw-review-service-group{border:1px solid #e0e8ed;border-radius:14px;padding:18px;background:#fcfdfe}
.sw-review-service{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid #e7edf1;font-size:13px}
.sw-review-service>strong{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:500;color:#2e4f60}
.sw-review-service>span:last-child{color:#245b64;white-space:nowrap;font-variant-numeric:tabular-nums}
.sc-independent-fee{padding:12px 14px;margin:0;border-radius:9px;border:1px solid #cfe2df;background:#f1f8f5;color:#306458;font-size:12px;line-height:1.9}
.sc-default-amount{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;color:#597482;font-size:12px}
.sc-default-amount button{padding:7px 12px;font-size:12px}
.sc-review-guarantees p{line-height:2;overflow-wrap:anywhere}
@media(max-width:900px){.sw-review-specs{grid-template-columns:repeat(2,minmax(0,1fr))}.sw-review-product{grid-template-columns:minmax(0,1fr) 160px}.sw-review-product-price strong{font-size:18px}}
@media(max-width:600px){
 .sw-review-document .sw-review-group{margin:14px}.sw-review-group-head{align-items:flex-start;gap:10px;flex-wrap:wrap}.sw-review-group-head h3{font-size:16px}.sw-review-subtotal b{font-size:13px}
 .sw-review-product{grid-template-columns:minmax(0,1fr)}.sw-review-product-body{padding:16px}.sw-review-product h4{font-size:15px}
 .sw-review-product-price{border-inline-start:0;border-top:1px solid #e0e9ed;flex-direction:row;justify-content:flex-start;padding:13px 16px;gap:7px}.sw-review-product-price small{margin-inline-end:auto}.sw-review-product-price strong{font-size:20px}
 .sw-review-specs{gap:12px}.sw-review-service-group{padding:14px}.sw-review-service{flex-wrap:wrap}.sw-review-service>span:last-child{margin-inline-start:auto}.sw-guarantor-panel{padding:15px}
}
/* Flow refinement: scoped to sales, print settings and user permissions. */
.sw-page [hidden]{display:none!important}
.sx-payment-modes{display:flex;gap:8px;background:var(--surface-muted,#f0f5f7);padding:7px;border-radius:16px;max-width:440px}
.sx-payment-modes button{flex:1;min-height:48px;border:1px solid transparent!important;background:transparent!important;color:var(--text,#173a48)!important}
.sx-payment-modes button[aria-pressed=true]{background:#155d65!important;color:#fff!important;box-shadow:0 3px 8px #1233}
.sx-invoice-date,.sx-customer-result{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 0}
.sx-customer-result{width:100%;padding:16px;border:1px solid #cbdfe1;border-radius:14px;background:var(--surface-muted,#f2f9f8)}
.sx-invoice-date button{margin-inline-start:auto}
.sx-dialog{font-family:inherit;color:var(--text,#193441);background:var(--surface,#fff);border:1px solid #c5d6dc;border-radius:20px;padding:22px;width:min(680px,calc(100vw - 28px));max-height:85dvh;overflow:auto;box-shadow:0 24px 80px #102a4355}
.sx-dialog::backdrop{background:#102a4377;backdrop-filter:blur(3px)}
.sx-dialog header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.sx-dialog h2{font-size:18px;margin:0}.sx-dialog button,.sx-dialog select{font:inherit;min-height:40px;border:1px solid #ccdce1;border-radius:10px;padding:6px 12px;cursor:pointer}
.sx-calendar{max-width:390px}.sx-calendar-select{display:flex;gap:12px;margin-bottom:14px}.sx-calendar-select select{width:50%}.sx-calendar .sw-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.sx-calendar .sw-calendar-grid button{padding:5px;min-width:0}.sx-calendar .sw-calendar-grid button:hover{background:#155d65;color:white}
.sx-passport{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px;margin:12px 0}
.sx-passport>div{background:var(--surface-muted,#f2f6f8);padding:10px;border-radius:9px;min-width:0}.sx-passport dt{font-size:11px;color:var(--muted,#567)}.sx-passport dd{margin:4px 0 0;overflow-wrap:anywhere;font-weight:600}
.sw-page .sw-item-card{position:relative;padding-inline-start:42px!important;overflow:visible;margin-block:14px;border:1px solid #d8e2e7;border-radius:16px}
.sx-condition{position:absolute;inset-inline-start:0;top:0;bottom:0;width:30px;display:flex;align-items:center;justify-content:center;writing-mode:vertical-rl;background:#163e50;color:#fff;border-start-start-radius:15px;border-end-start-radius:15px;font-size:11px;letter-spacing:.5px}
.sw-page .sw-item-main{display:grid!important;grid-template-columns:28px minmax(140px,1fr) minmax(160px,220px) 28px auto;align-items:center;gap:12px}
.sw-page .sw-item-main>[data-remove]{position:static!important;transform:none!important;margin:0!important;color:#a13f36;background:#fff3f1;border:1px solid #edcac5;min-height:38px}
.sx-product-title{font:inherit!important;font-weight:700!important;text-align:start!important;border:0!important;padding:0!important;background:none!important;color:inherit!important;min-height:0!important}.sx-product-title:hover{text-decoration:underline}
.sw-page .sc-details{margin-top:10px;border-top:1px solid #e0e8eb;padding-top:10px}.sw-page .sc-details>summary{cursor:pointer;padding:8px 0;font-size:13px}.sw-page .sc-details .sw-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.sx-accessories{border:1px solid #d7e2e6;border-radius:12px;padding:12px}.sx-accessories>div,.sx-print-flags{display:flex;gap:12px;flex-wrap:wrap}.sx-accessories>div label,.sx-print-flags label{display:flex!important;align-items:center;gap:7px;background:var(--surface-muted,#f1f6f7);padding:8px 12px;border-radius:8px}.sx-accessories input[type=checkbox],.sx-print-flags input,.sx-permission-group input{width:18px!important;height:18px!important;min-height:18px!important;flex:none}
.sw-page .sw-bill-totals{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #d0dee4;border-radius:14px;overflow:hidden;margin:18px 0}
.sw-page .sw-bill-totals>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid #e3eaee;background:var(--surface,#fff);min-width:0}.sw-page .sw-bill-totals b{white-space:nowrap;font-variant-numeric:tabular-nums;font-size:14px}.sw-page .sw-bill-totals>div:last-child{grid-column:1/-1;background:#163e50!important;color:#fff!important;font-weight:700}.sw-page .sw-credit-card{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sw-page .sw-credit-card>div{padding:16px;border:1px solid #d7e2e6;border-radius:12px}.sw-page .sw-credit-card strong,.sw-page .sw-credit-card span{display:block;margin-top:5px}.sw-page .sw-branch-quota{padding:18px;border-radius:14px;display:grid;gap:8px;font-size:13px;line-height:1.8}
.sx-guarantee-receipts article{padding:18px;border:1px solid #d6e1e6;border-radius:14px;margin-block:12px;display:flex;flex-wrap:wrap;gap:12px;align-items:end}.sx-guarantee-receipts article>header,.sx-guarantee-receipts article>p{flex-basis:100%;display:flex;justify-content:space-between;margin:0}.sx-guarantee-receipts label{flex:1;min-width:180px}
.sx-permission-group{border:1px solid #d4e1e6;border-radius:12px;padding:12px;align-self:start}.sx-permission-group>summary{cursor:pointer}.sx-permission-group label{display:inline-flex!important;align-items:center;gap:8px}.sx-permission-group>div{display:grid;gap:12px;padding:16px 12px 4px}.sx-permission-group>div label{font-size:12px}.sx-permission-group[open]{background:var(--surface-muted,#f5f8fa)}
@media(max-width:700px){.sw-page .sw-item-main{grid-template-columns:24px minmax(0,1fr) auto}.sw-page .sw-item-main>label{grid-column:1/3;grid-row:2}.sw-page .sw-item-main>[data-remove]{grid-column:3;grid-row:1}.sw-page .sw-bill-totals{grid-template-columns:1fr}.sw-page .sw-bill-totals>div{padding:12px}.sw-page .sw-credit-card{grid-template-columns:1fr}.sw-page .sc-details .sw-grid{grid-template-columns:1fr}.sx-customer-result>*{flex-basis:100%}.sx-dialog{padding:16px}.sx-passport{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Editor17: fixed row areas keep actions visible, independent of optional warnings. */
.sw-page [data-editor] .sw-item-main{grid-template-columns:30px minmax(0,1fr) minmax(150px,220px) 28px auto!important;grid-template-areas:"number identity price warning remove";min-width:0}
.sw-page [data-editor] .sw-item-main>.sw-line-number{grid-area:number}
.sw-page [data-editor] .sw-item-main>div{grid-area:identity;min-width:0;overflow-wrap:anywhere}
.sw-page [data-editor] .sw-item-main>label{grid-area:price;width:100%;min-width:0}
.sw-page [data-editor] .sw-item-main>.sw-price-warning{grid-area:warning}
.sw-page [data-editor] .sw-item-main>.sw-remove-line{grid-area:remove;position:static!important;white-space:nowrap;min-width:82px;min-height:44px}
.sw-page [data-editor] .sw-item-main input{width:100%;min-width:0;box-sizing:border-box}
.sw-page [data-editor] .sw-item-card{min-width:0;box-sizing:border-box}
.sw-page [data-editor] .sw-steps{scrollbar-width:thin}
.sw-page [data-editor]>section[hidden]{display:none!important}
@media(max-width:760px){
 .sw-page [data-editor] .sw-item-main{grid-template-columns:26px minmax(0,1fr) auto!important;grid-template-areas:"number identity remove" "price price warning";gap:12px}
 .sw-page [data-editor] .sc-details .sw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:440px){.sw-page [data-editor] .sc-details .sw-grid{grid-template-columns:minmax(0,1fr)}.sw-page [data-editor] .sw-item-main>.sw-remove-line{min-width:72px;padding:8px}}

/* invoice-entry.css */
/* entry18: invoice editor only. Existing print and accounting layouts stay independent. */
.sw-page [data-editor]{--entry-ink:#183347;--entry-muted:#607586;--entry-border:#dae5eb;--entry-soft:#f4f8fa;--entry-accent:#176c78;color:var(--entry-ink);font-family:"Yekan",sans-serif!important;gap:16px}
.sw-page [data-editor] input,.sw-page [data-editor] select,.sw-page [data-editor] button,.sw-page [data-editor] textarea{font-family:"Yekan",sans-serif!important}
.sw-page [data-editor]>.page-card{border-radius:16px!important;padding:22px!important;border-color:var(--entry-border)!important;box-shadow:0 3px 16px #20384b04}
.sw-page [data-editor] h2{font-size:19px;margin-bottom:14px;letter-spacing:0}.sw-page [data-editor] h3{font-size:15px}.sw-page [data-editor] label{font-size:12px;gap:6px}.sw-page [data-editor] label>span{margin:0;color:#496377}
.sw-page [data-editor] input:not([type=checkbox]):not([type=hidden]),.sw-page [data-editor] select{min-height:44px!important;font-size:14px;padding:9px 11px!important;background:#fff!important;border-color:#cfdee6!important}
.sw-page [data-editor] .sw-steps{display:flex;padding:8px;gap:4px;border-radius:14px;box-shadow:none;background:#fff}.sw-page [data-editor] .sw-steps button{font-size:12px;padding:10px;min-height:48px;border-radius:9px}.sw-page [data-editor] .sw-steps button[aria-current=step]{color:#0d5865;background:#e6f2f3;border:1px solid #b8d9dd}.sw-page [data-editor] .sw-steps button.is-done{color:#21734f}
.sw-page [data-editor] .sw-step-footer{border:1px solid var(--entry-border);border-radius:14px;background:#fffffff5;box-shadow:0 -3px 20px #17394a08;gap:10px;padding:12px 18px}.sw-page [data-editor] .sw-step-footer button{min-height:44px}
.sw-page [data-editor] .sw-serial-bar{background:var(--entry-soft);border:1px solid var(--entry-border);padding:14px;border-radius:12px}.sw-page [data-editor] .sw-item-card{margin-top:14px;border-color:var(--entry-border);border-radius:13px;box-shadow:none}.sw-page [data-editor] .sw-item-main{padding:14px}.sw-page [data-editor] .sc-details{background:#f7fafb}.sw-page [data-editor] .sc-details h4{font-size:13px;margin:12px 16px}.sw-page [data-editor] .sc-details .sw-grid{gap:12px}.sw-page [data-editor] .sx-product-title{font-size:15px;line-height:1.8}
.sw-page [data-editor] .sw-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.sw-page [data-editor] .sw-panel-heading h2{margin:2px 0 0}.sw-page .sw-eyebrow{font-size:11px;color:#658494}.sw-page .sw-mode-label{padding:7px 12px;border-radius:20px;background:#e7f2f3;color:#176c78;font-size:12px;font-weight:600}
.sw-page [data-editor] .sw-payment-workspace{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(295px,1fr);gap:20px;align-items:start}.sw-page [data-editor] .sw-payment-entry{min-width:0;display:grid;gap:16px}.sw-page [data-editor] .sw-payment-block{border:1px solid var(--entry-border);border-radius:13px;padding:18px;min-width:0;background:#fff}.sw-page [data-editor] .sw-payment-block>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.sw-page [data-editor] .sw-payment-block>header h3{margin:0}.sw-page [data-editor] .sw-payment-block>h3{margin-bottom:16px}
.sw-page [data-editor] [data-payment-row]{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:14px;margin:12px 0;background:#f5f8fa;border:1px solid #e0e8ed;border-radius:11px}.sw-page [data-editor] [data-payment-remove]{justify-self:start;padding:6px 10px;min-height:34px;font-size:12px;color:#a53535}.sw-page [data-editor] .sw-inline-check{flex-direction:row;align-items:center;align-self:center;gap:8px}.sw-page [data-editor] .sw-inline-check input{width:18px;height:18px;min-height:18px!important}
.sw-page [data-editor] .sw-paid-strip{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:12px;border-top:1px solid var(--entry-border);font-size:12px}.sw-page [data-editor] .sw-paid-strip>label{max-width:210px}.sw-page [data-editor] .sw-paid-strip b{font-size:16px;color:var(--entry-accent);display:inline-block;margin-inline:5px}
.sw-page [data-editor] .sw-schedule-tabs{display:flex;gap:6px;padding:5px;background:#edf3f6;border-radius:11px;margin:12px 0 16px}.sw-page [data-editor] .sw-schedule-tabs button{flex:1;border:1px solid transparent;background:transparent;box-shadow:none;font-size:12px}.sw-page [data-editor] .sw-schedule-tabs button[aria-pressed=true]{background:#fff;color:#155d6b;border-color:#b9d3dc;box-shadow:0 2px 5px #24455708}
.sw-page [data-editor] .sw-finance-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sw-page [data-editor] [data-mixed-fields]{grid-template-columns:repeat(2,minmax(0,1fr));background:#f2f7fb;border:1px solid #d5e3ed;padding:14px;border-radius:10px;margin-bottom:18px;gap:14px}
.sw-page [data-editor] [data-daily-editor]{padding-top:8px}.sw-page [data-editor] [data-daily-row]{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:10px;padding:12px;background:#f4f8fa;border:1px solid #dce7ed;border-radius:10px;margin-bottom:10px}.sw-page [data-editor] [data-daily-remove]{font-size:12px;padding:9px;color:#a43d3d}.sw-page [data-editor] .sw-recipient-field{padding-top:18px}.sw-page [data-editor] .sw-recipient-field p{font-size:11px;margin:5px 0}
.sw-page [data-editor] .sw-payment-summary{min-width:0;background:#f6f9fb;border:1px solid var(--entry-border);border-radius:13px;padding:18px}.sw-page [data-editor] .sw-payment-summary>h3{margin-bottom:14px}.sw-page [data-editor] .sw-payment-summary .sw-bill-totals{grid-template-columns:minmax(0,1fr);margin:14px 0;border-radius:10px}.sw-page [data-editor] .sw-bill-totals>div{padding:10px 13px;font-size:12px}.sw-page [data-editor] .sw-bill-totals b{font-size:13px}.sw-page [data-editor] .sw-bill-totals>div:last-child{padding:14px;background:#164855!important}.sw-page [data-editor] .sw-credit-card{grid-template-columns:1fr;gap:8px}.sw-page [data-editor] .sw-credit-card>div{padding:10px 12px;border-radius:9px;background:#fff}.sw-page [data-editor] .sw-credit-card strong{font-size:14px}.sw-page [data-editor] .sw-credit-card span{font-size:11px;line-height:1.7}.sw-page [data-editor] .sw-branch-quota{padding:12px;font-size:12px;gap:5px;margin:12px 0}.sw-page [data-editor] .sw-error{line-height:1.8;font-size:12px;padding:12px}.sw-page [data-editor] .sw-payment-ready{font-size:12px;margin:10px 0 0}
.sw-page .sw-compact-checks{margin-top:16px;border:1px solid #d8e5eb;border-radius:11px;overflow:hidden;background:#fff}.sw-page .sw-compact-checks>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;background:#edf5f7}.sw-page .sw-compact-checks h3{margin:0;font-size:14px}.sw-page .sw-compact-checks h3 span{font-size:11px;color:#557789;margin-inline-start:6px}.sw-page .sw-compact-checks>header>b{font-size:12px}.sw-page .sw-compact-checks table{width:100%;border-collapse:collapse;font-size:12px;table-layout:auto}.sw-page .sw-compact-checks th,.sw-page .sw-compact-checks td{padding:9px 12px;border-bottom:1px solid #e4ecf0;text-align:right;line-height:1.7}.sw-page .sw-compact-checks th{font-weight:500;color:#64798a;background:#fafcfd;white-space:nowrap}.sw-page .sw-compact-checks tbody tr:last-child td{border:0}.sw-page .sw-compact-checks time,.sw-page .sw-check-amount{white-space:nowrap;font-variant-numeric:tabular-nums}.sw-page .sw-check-amount{font-weight:600;color:#173f52}
.sw-page [data-editor] [data-guarantees]{margin:20px 0 0;padding-top:20px;border-top:1px solid var(--entry-border)}.sw-page [data-editor] [data-guarantees]>header{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.sw-page [data-editor] [data-guarantees]>header h3{margin:0}.sw-page [data-editor] [data-guarantees]>header p{margin:6px 0;font-size:12px}.sw-page [data-editor] [data-guarantees]>.sc-empty{margin-bottom:0}.sw-page [data-editor] [data-guarantees] .sw-actions{display:flex;gap:8px;flex-wrap:wrap}.sw-page [data-editor] [data-add-guarantee]{background:#ecf5f6;border-color:#c4dce1;color:#1b6470;font-size:12px}
.sw-page [data-editor] .sc-guarantee{background:#fff;padding:16px;border:1px solid #d2e1e8;border-inline-start:4px solid #528f9a;box-shadow:0 2px 10px #17394a04}.sw-page [data-editor] .sc-guarantee>header{border-bottom:1px solid #e2eaf0;padding-bottom:12px;margin-bottom:16px}.sw-page [data-editor] .sc-guarantee .sw-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.sw-page [data-editor] .sc-guarantee .sc-wide{grid-column:1/-1}.sw-page [data-editor] .sc-guarantee [data-remove-guarantee]{min-height:34px;padding:6px 10px;font-size:11px}.sw-page [data-editor] .sc-default-amount{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:10px 12px;background:#f0f6f8;border-radius:9px}.sw-page [data-editor] .sc-default-amount small{font-size:11px}.sw-page [data-editor] .sc-guarantee p{font-size:11px;line-height:1.8;margin:0}
/* Suggestions are an enhancement to free text, never a required catalogue selection. */
.sw-page .sw-service-row{grid-template-columns:minmax(0,1fr) minmax(150px,220px) auto!important;gap:14px;padding:14px;margin:12px 0;border:1px solid #dae5eb;border-radius:11px;background:#f7fafb;align-items:end;overflow:visible}.sw-page .sw-suggest-field{position:relative;min-width:0}.sw-page .sw-suggestion-list{position:absolute;inset-inline:0;top:calc(100% + 5px);z-index:120;background:#fff;border:1px solid #bcd5df;box-shadow:0 12px 28px #14394b20;border-radius:10px;padding:5px;max-height:230px;overflow-y:auto}.sw-page .sw-suggestion-list button{display:block;width:100%;text-align:right;border:0;border-radius:6px;padding:9px 10px;background:#fff;font-size:13px;font-weight:400}.sw-page .sw-suggestion-list button:hover,.sw-page .sw-suggestion-list button[aria-selected=true]{background:#eaf5f6;color:#0f5a67}.sw-page .sw-suggestion-settings .sw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sw-page .sw-suggestion-settings textarea{line-height:2;resize:vertical}
/* Compact review keeps all product facts and the real cheque values in readable rows. */
.sw-page [data-editor] .sw-review-compact .sw-review-customer{padding:14px 16px;gap:5px 18px}.sw-page [data-editor] .sw-review-compact .sw-review-customer strong{font-size:16px;flex-basis:auto}.sw-page [data-editor] .sw-review-compact .sw-review-customer span{font-size:12px}
.sw-page [data-editor] .sw-review-compact .sw-review-group-head{padding:12px 16px}.sw-page [data-editor] .sw-review-compact .sw-review-group-head h3{font-size:14px}.sw-page [data-editor] .sw-review-compact .sw-review-eyebrow{display:none}.sw-page [data-editor] .sw-review-compact .sw-review-products{padding:0}.sw-page [data-editor] .sw-review-compact .sw-review-product{margin:0;border:0;border-bottom:1px solid #dce7ed;border-radius:0;grid-template-columns:minmax(0,1fr) 150px;box-shadow:none}.sw-page [data-editor] .sw-review-compact .sw-review-product-body{padding:12px 16px}.sw-page [data-editor] .sw-review-compact .sw-review-product h4{font-size:14px}.sw-page [data-editor] .sw-review-compact .sw-review-product-price{padding:12px;justify-content:center;min-width:0}.sw-page [data-editor] .sw-review-compact .sw-review-product-price strong{font-size:16px}.sw-page [data-editor] .sw-review-compact .sw-review-specs{display:flex;flex-wrap:wrap;gap:5px 14px;margin:7px 0}.sw-page [data-editor] .sw-review-compact .sw-review-specs>div{display:flex;gap:5px;padding:0;border:0;background:none}.sw-page [data-editor] .sw-review-compact .sw-review-specs dt,.sw-page [data-editor] .sw-review-compact .sw-review-specs dd{font-size:11px;line-height:1.8;margin:0}.sw-page [data-editor] .sw-review-compact .sw-review-specs dt:after{content:':'}.sw-page [data-editor] .sw-review-compact .sw-review-serials{margin:6px 0;gap:8px 16px}.sw-page [data-editor] .sw-review-compact .sw-review-serials>span{padding:0;background:none;border:0;display:flex;gap:6px;align-items:center}.sw-page [data-editor] .sw-review-compact .sw-review-serials b{font-size:12px}.sw-page [data-editor] .sw-review-compact .sw-review-contract{border-top:1px dashed #dbe5eb;margin-top:6px;padding-top:6px}.sw-page [data-editor] .sw-review-compact .sw-review-contract h5{display:none}.sw-page [data-editor] .sw-review-compact .sw-review-product-note{margin:5px 0;font-size:11px;padding:7px}.sw-page [data-editor] .sw-review-compact .sw-review-service{padding:9px 16px;font-size:12px;min-height:0}.sw-page [data-editor] .sw-review-compact .sw-review-payments{margin:14px 16px}.sw-page [data-editor] .sw-review-compact .sw-financial-table th,.sw-page [data-editor] .sw-review-compact .sw-financial-table td{padding:8px 10px;font-size:12px;line-height:1.6}.sw-page [data-editor] .sw-review-compact>.sw-bill-totals{margin:14px 16px}.sw-page [data-editor] .sw-review-compact .sw-compact-checks{margin:14px 16px}.sw-page [data-editor] .sw-review-compact>h3{margin:12px 16px}.sw-page [data-editor] .sw-review-compact>.responsive-table{margin:0 16px 14px}
@media(max-width:1250px){.sw-page [data-editor] .sw-payment-workspace{grid-template-columns:minmax(0,1fr)}.sw-page [data-editor] .sw-payment-summary .sw-bill-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.sw-page [data-editor] .sw-credit-card{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sw-page [data-editor]>.page-card{padding:16px!important}.sw-page [data-editor] .sw-payment-block,.sw-page [data-editor] .sw-payment-summary{padding:13px}.sw-page [data-editor] [data-payment-row],.sw-page [data-editor] .sc-guarantee .sw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sw-page [data-editor] .sw-schedule-tabs button{font-size:11px;padding:8px}.sw-page [data-editor] .sw-paid-strip{flex-wrap:wrap}.sw-page [data-editor] .sw-paid-strip>label{max-width:none;width:100%}.sw-page .sw-service-row{grid-template-columns:minmax(0,1fr) auto!important;gap:10px}.sw-page .sw-suggest-field{grid-column:1/-1}.sw-page .sw-service-row>label{grid-column:1}.sw-page .sw-service-row>[data-service-remove]{grid-column:2}.sw-page [data-editor] .sw-review-compact .sw-review-product{grid-template-columns:minmax(0,1fr)}.sw-page [data-editor] .sw-review-compact .sw-review-product-price{flex-direction:row;gap:10px;justify-content:flex-end;border-top:1px solid #e1e9ed;padding:8px 14px}.sw-page [data-editor] .sw-review-compact .sw-review-product-price strong{font-size:14px}.sw-page .sw-suggestion-settings .sw-grid{grid-template-columns:1fr}.sw-page .sw-compact-checks>header{flex-wrap:wrap;gap:4px}.sw-page .sw-compact-checks th,.sw-page .sw-compact-checks td{padding:8px;font-size:11px}}
@media(max-width:420px){.sw-page [data-editor] .sw-payment-summary .sw-bill-totals,.sw-page [data-editor] .sw-credit-card{grid-template-columns:1fr}.sw-page [data-editor] [data-payment-row]{grid-template-columns:1fr}.sw-page [data-editor] .sc-guarantee .sw-grid{grid-template-columns:1fr}.sw-page [data-editor] [data-daily-row]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.sw-page [data-editor] [data-daily-remove]{grid-column:1/-1;justify-self:end}.sw-page [data-editor] .sw-step-footer{padding:10px;flex-wrap:wrap}.sw-page [data-editor] .sc-default-amount{flex-wrap:wrap}.sw-page [data-editor] [data-guarantees] .sw-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){.sw-page [data-editor] *{scroll-behavior:auto!important;transition:none!important}}
.sw-page .sw-service{overflow:visible!important}

/* invoice-workspace.css */
/* Invoice entry only; printed documents retain their own typography and layout. */
@media screen {
 .sw-invoice-editor form[data-editor] .sw-payment-panel [hidden] {display:none!important}
dialog.sw-customer-confirm .sw-identity-modes label{display:flex;align-items:center;gap:8px}
dialog.sw-customer-confirm .sw-identity-modes input[type=radio]{width:16px;height:16px;min-height:16px;padding:0;margin:0}
dialog.sw-customer-confirm .sw-identity-search{margin-bottom:18px}
dialog.sw-customer-confirm [data-dialog-error][data-tone=success]{color:#23704e}

 .sw-invoice-editor form[data-editor] .sw-payment-aside {display:grid;grid-column:2;grid-row:1/span 2;gap:18px;min-width:0;position:sticky;top:84px;max-height:calc(100dvh - 170px);overflow:auto;overscroll-behavior:contain}
 .sw-invoice-editor form[data-editor] .sw-payment-workspace>[data-guarantees] {grid-column:1;grid-row:2;min-width:0}
 .sw-invoice-editor form[data-editor] .sw-payment-aside .sw-payment-summary {position:static!important;max-height:none!important;overflow:visible}
 .sw-invoice-editor form[data-editor] fieldset.sw-special-options {border:1px dashed #81a3a8!important;border-radius:6px;padding:12px;margin:0;min-width:0;background:#fff}
 .sw-invoice-editor form[data-editor] .sw-special-options legend {padding:0 8px;font-size:13px;font-weight:500;color:#315f65}
 .sw-invoice-editor form[data-editor] .sw-special-options .sw-check-tools {display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0}
 .sw-invoice-editor form[data-editor] .sw-special-options button {width:100%;min-width:0;justify-content:flex-start;white-space:normal;text-align:right;padding:9px 10px;line-height:1.8;border-radius:4px}
 .sw-invoice-editor form[data-editor] [data-reverse-editor] {min-width:0;padding:0;margin:0}
 .sw-invoice-editor form[data-editor] [data-reverse-editor] .sw-grid {margin:0!important}
 .sw-invoice-editor form[data-editor] [data-reverse-editor] label {margin:0;min-width:0}
 .sw-invoice-editor form[data-editor] [data-reverse-editor] [data-reverse-rate] {margin:0 0 16px;max-width:280px}
 .sw-invoice-editor form[data-editor] [data-reverse-editor] .sw-reverse-row {padding:14px 0;border-top:1px solid #d6e1e6;border-bottom:0}
 .sw-invoice-editor form[data-editor] [data-reverse-editor] [data-reverse-rows] {gap:8px}
 .sw-invoice-editor form[data-editor] [data-reverse-editor] [data-reverse-breakdown]:empty {display:none}
 .sw-invoice-editor form[data-editor] [data-reverse-editor] [name=reverse_due] {text-align:center;direction:ltr;cursor:pointer}
 dialog.sw-customer-dialog.sw-customer-confirm {box-sizing:border-box;padding:0;max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 20px 70px #10282c33}
 dialog.sw-customer-confirm form {margin:0;padding:24px}
 dialog.sw-customer-confirm .sw-dialog-heading {gap:12px;align-items:center;margin:0 0 24px;padding:0 0 20px}
 dialog.sw-customer-confirm .sw-dialog-heading>div {flex:1;min-width:0}
 dialog.sw-customer-confirm .sw-dialog-heading small {font-size:12px;color:#61747d}
 dialog.sw-customer-confirm h2 {font-size:17px;line-height:1.8;margin:3px 0 0}
 dialog.sw-customer-confirm .sw-customer-emblem {display:grid;place-items:center;width:46px;height:46px;flex:none;background:#eaf5ef;color:#21754f;border-radius:6px}
 dialog.sw-customer-confirm svg {width:20px;height:20px;flex:none}
 dialog.sw-customer-confirm .sw-customer-emblem svg {width:26px;height:26px}
 dialog.sw-customer-confirm .sw-grid {margin:0;gap:20px 16px}
 dialog.sw-customer-confirm label {margin:0;font-weight:400;color:#3e535c;line-height:1.8}
 dialog.sw-customer-confirm input {box-sizing:border-box;border:1px solid #c6d4dc;border-radius:5px;background:#fff;color:#173946;padding:10px 12px;outline:none;font-size:14px;line-height:24px}
 dialog.sw-customer-confirm input:focus {border-color:#308b75;box-shadow:0 0 0 3px #22846914}
 dialog.sw-customer-confirm input[readonly] {color:#5a707a}
 dialog.sw-customer-confirm [data-dialog-error] {font-size:13px;color:#ac3030;line-height:1.8;margin:14px 0 0}
 dialog.sw-customer-confirm [data-dialog-error]:empty {display:none}
 dialog.sw-customer-confirm button {display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;border:1px solid #cad6dd;border-radius:5px;background:#fff;color:#31505e;min-height:42px;padding:8px 16px;font:inherit;font-size:13px;line-height:1.8;cursor:pointer}
 dialog.sw-customer-confirm button.sw-dialog-close {width:34px;height:34px;min-height:34px;padding:7px;border:0;background:#f1f5f6;flex:none}
 dialog.sw-customer-confirm .sw-actions {padding:18px 0 0;margin:24px 0 0;border-top:1px solid #e0e8ec}
 dialog.sw-customer-confirm button[data-add-customer] {background:#198754;color:#fff;border-color:#198754}
 @media(max-width:1100px) {
  .sw-invoice-editor form[data-editor] .sw-payment-aside {display:contents;position:static;max-height:none;overflow:visible}
  .sw-invoice-editor form[data-editor] .sw-special-options {grid-row:1}
  .sw-invoice-editor form[data-editor] .sw-payment-entry {grid-row:2}
  .sw-invoice-editor form[data-editor] .sw-payment-summary {grid-row:3}
  .sw-invoice-editor form[data-editor] .sw-payment-workspace>[data-guarantees] {grid-row:4}
  .sw-invoice-editor form[data-editor] .sw-special-options .sw-check-tools {grid-template-columns:repeat(3,minmax(0,1fr))}
 }
 @media(max-width:600px) {
  .sw-invoice-editor form[data-editor] .sw-special-options .sw-check-tools {grid-template-columns:minmax(0,1fr)}
  dialog.sw-customer-confirm form {padding:18px}
  dialog.sw-customer-confirm .sw-actions {display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}
  dialog.sw-customer-confirm .sw-actions button {padding:8px;font-size:12px}
 }
}

.sw-identity-modes{display:flex;gap:16px;padding:12px 20px;border-bottom:1px solid #dce5eb}
.sw-identity-modes label{display:flex;align-items:center;gap:6px;font-weight:400}
.sw-identity-search{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;padding:16px 20px 0}
.sw-identity-search label{display:grid;gap:6px}
.sw-customer-confirm [data-dialog-error]{margin:12px 20px;line-height:1.8}
.sw-option-settings{display:flex;flex-wrap:wrap;gap:16px;margin:16px 0}
.ex549-settings .sw-special-settings :is(.sw-option-settings label,.ex549-inline){display:flex;flex-direction:row;gap:8px;align-items:center}
.ex549-settings .sw-special-settings input[type=checkbox]{width:18px!important;height:18px;min-height:18px!important;flex:none;margin:0}
.sw-special-settings .sw-grid{align-items:center}
[data-daily-row]{grid-template-columns:minmax(0,1fr) auto!important;align-items:end;gap:12px!important;padding:10px 0;border-bottom:1px solid #dce5eb}
[data-daily-row] label{min-width:0}
.ac550-payments article label{display:grid;gap:5px;min-width:140px;flex:1}
.ux-nav [data-settings-category]>.menu374-parent{font-size:12px!important;min-height:40px}
.ux-nav [data-settings-category]>.menu374-sub{margin-inline-start:12px;border-inline-start:1px solid #537480}
@media(max-width:600px){.sw-identity-modes{gap:10px;padding:12px}.sw-identity-search{padding:12px 12px 0}.ac550-payments article{flex-wrap:wrap}}
@media screen {
 .sw-invoice-editor form[data-editor] .sw-settlement-balance {display:grid;gap:8px;padding:14px 12px;margin-bottom:14px;border:1px solid #eac482;border-inline-start:4px solid #d28d22;background:#fff8eb;border-radius:4px;color:#765119}
 .sw-invoice-editor form[data-editor] .sw-settlement-balance.balanced {background:#eaf6ef;border-color:#acd3bc;border-inline-start-color:#198754;color:#17613f}
 .sw-invoice-editor form[data-editor] .sw-settlement-balance.pending {background:#f2f5f7;border-color:#d3dce2;color:#607580}
 .sw-invoice-editor form[data-editor] .sw-settlement-balance>span {font-size:13px;font-weight:500}
 .sw-invoice-editor form[data-editor] .sw-settlement-balance>strong {font-size:18px;font-weight:500;overflow-wrap:anywhere}
 .sw-invoice-editor form[data-editor] .sw-settlement-balance>small {font-size:12px;line-height:1.8}
 .sw-invoice-editor form[data-editor] .sw-settlement-facts {margin:12px 0;font-size:12px}
 .sw-invoice-editor form[data-editor] .sw-settlement-facts>div {display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #dce5e0}
 .sw-invoice-editor form[data-editor] .sw-settlement-facts dd {margin:0;white-space:nowrap}
 .sw-invoice-editor form[data-editor] [data-reverse-rate] {max-width:260px;margin:14px 0}
 .sw-invoice-editor form[data-editor] [data-reverse-rows] {display:grid;gap:16px;margin-bottom:14px}
 .sw-invoice-editor form[data-editor] .sw-reverse-row {border-bottom:1px solid #d6e1e6;padding:12px 0;background:#fff}
 .sw-invoice-editor form[data-editor] .sw-reverse-row>header {display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
 .sw-invoice-editor form[data-editor] .sw-reverse-row strong {font-size:13px;font-weight:500}
 .sw-invoice-editor form[data-editor] .sw-reverse-row>.sw-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
 .sw-invoice-editor form[data-editor] [data-reverse-breakdown] {font-size:12px;line-height:2;color:#385969;margin:10px 0 0}
 .sw-invoice-editor form[data-editor] [data-reverse-add] {display:inline-flex;gap:7px;align-items:center;min-height:40px}
 @media(max-width:600px){.sw-invoice-editor form[data-editor] .sw-reverse-row>.sw-grid {grid-template-columns:1fr!important}}
 .sw-invoice-editor form[data-editor] .sw-payment-commands {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
 .sw-invoice-editor form[data-editor] [data-discount-editor] {max-width:260px;margin:0 0 18px}
 .sw-invoice-editor form[data-editor] [data-payment-summary] {margin-inline-start:auto;font-size:13px;color:#345462;line-height:1.8}
 .sw-invoice-editor form[data-editor] [data-payment-row]>header {gap:12px;flex-wrap:wrap}
 .sw-invoice-editor form[data-editor] .sw-item-card {background:#fff!important;border:1px solid #cbd8df!important}
 .sw-invoice-editor form[data-editor] .sw-check-date-settings {grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .sw-invoice-editor form[data-editor] .sw-check-date-settings button {grid-column:1/-1;justify-self:start}
 .sw-invoice-editor form[data-editor] .sw-check-date-settings label:has(>[name=extra_days]):not([hidden]) {display:flex!important}
 .sw-invoice-editor form[data-editor] .sw-check-date-settings [name=extra_days] {display:block!important}
 .ac551-collection-page :is(.sw-check-receipt,.ac550-payments>article,.ac551-guarantee,.sw-beta-receipt):not(.is-received) {border-inline-start:4px solid #e59a28!important;background:#fffaf0!important}
 .ac551-collection-page :is(.sw-check-receipt,.ac550-payments>article,.ac551-guarantee,.sw-beta-receipt).is-received {border-inline-start:4px solid #198754!important;background:#f1faf4!important}
 .ac551-collection-page .is-pending .sw-status {background:#fff0cc!important;color:#8b5700!important}
 .sw-customer-dialog.sw-customer-confirm {width:min(560px,calc(100vw - 32px));padding:24px;border:1px solid #d1dde3;border-radius:8px;background:#fff;color:#153849}
 .sw-customer-confirm::backdrop {background:#0d243866}
 .sw-customer-confirm .sw-dialog-heading {display:flex;align-items:center;justify-content:space-between;padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid #e2e9ed}
 .sw-customer-confirm h2 {font-size:18px;margin:6px 0;font-weight:500}
 .sw-customer-confirm .sw-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
 .sw-customer-confirm label {display:grid;gap:8px;font-size:13px}
 .sw-customer-confirm input {height:44px;min-width:0;width:100%;font:inherit}
 .sw-customer-confirm input[readonly] {background:#f3f6f8;border-color:#dce5e9}
 .sw-customer-confirm .sw-actions {display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
 .sw-customer-confirm [data-add-customer] {background:#198754;color:#fff;border-color:#198754;min-height:42px}
 .ce-condition {min-width:0;border:1px solid #d2dfe5;border-radius:6px;padding:10px;display:flex;gap:14px;flex-wrap:wrap;grid-column:1/-1}
 .ce-condition label {display:flex!important;align-items:center;gap:7px;font-size:13px}
 .ce-condition input[type=radio] {width:18px!important;height:18px!important;min-height:18px!important;margin:0;accent-color:#147c6c}
 .ce-condition legend {font-size:13px;padding:0 5px}
 @media(max-width:1100px) {.sw-invoice-editor form[data-editor] .sw-payment-summary {position:static!important;max-height:none!important}}
 @media(max-width:600px) {.sw-customer-confirm .sw-grid {grid-template-columns:1fr}.sw-invoice-editor form[data-editor] .sw-check-date-settings {grid-template-columns:1fr!important}}
}
@media screen {
 .sw-invoice-editor form[data-editor] :is(.sw-payment-panel,.sw-review-panel) {padding:18px;margin:0;border:0;border-radius:0;background:var(--card,#fff);min-width:0}
 .sw-invoice-editor form[data-editor] .sw-payment-start {display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding-bottom:18px!important;margin-bottom:18px!important;border-bottom:1px solid #dce5e9!important}
 .sw-invoice-editor form[data-editor] .sw-settlement-label {font-size:14px;white-space:nowrap}
 .sw-invoice-editor form[data-editor] .sx-payment-modes {display:flex;flex-wrap:wrap;max-width:none;margin:0}
 .sw-invoice-editor form[data-editor] .sx-payment-modes button {font-size:13px;padding:8px 14px!important}
 .sw-invoice-editor form[data-editor] .sw-mode-label {margin-inline-start:auto;font-size:13px;font-weight:400;padding:6px 12px;border:0;border-radius:4px;background:#edf5f2;color:#25644a}
 .sw-invoice-editor form[data-editor] .sw-payment-workspace {display:grid;grid-template-columns:minmax(0,1fr) 290px!important;gap:24px!important;align-items:start}
 .sw-invoice-editor form[data-editor] .sw-payment-entry {min-width:0;display:grid;gap:24px}
 .sw-invoice-editor form[data-editor] .sw-payment-block {padding:16px!important;margin:0!important;background:#fff!important;border:1px solid #cfdae0!important;border-radius:6px!important;min-width:0}
 .sw-invoice-editor form[data-editor] .sw-payment-block>header {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
 .sw-invoice-editor form[data-editor] :is(.sw-payment-block,.sw-payment-summary) h3 {font-size:15px!important;font-weight:500;margin:0 0 12px!important}
 .sw-invoice-editor form[data-editor] .sw-payment-block>header h3 {margin:0!important}
 .sw-invoice-editor form[data-editor] .sw-green-command {display:inline-flex;align-items:center;justify-content:center;gap:8px;background:#198754!important;border:1px solid #198754!important;color:#fff!important;min-height:40px;font-size:13px;font-weight:500}
 .sw-invoice-editor form[data-editor] .sw-green-command:hover {background:#146c43!important;border-color:#146c43!important}
 .sw-invoice-editor form[data-editor] button svg {width:18px;height:18px;flex:none}
 .sw-invoice-editor form[data-editor] [data-payments] {display:grid;gap:16px}
 .sw-invoice-editor form[data-editor] [data-payment-row] {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px!important;align-items:end!important;padding:16px 0!important;margin:0!important;background:#fff;border:0;border-top:2px solid #c7d5dd;border-radius:0;min-width:0}
 .sw-invoice-editor form[data-editor] [data-payment-row]>header {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;border:0;padding:0;margin:0}
 .sw-invoice-editor form[data-editor] [data-payment-number] {font-size:13px;font-weight:500;color:#2e6950}
 .sw-invoice-editor form[data-editor] [data-payment-row]>label:has([name=payment_notes]) {grid-column:1/-1}
 .sw-invoice-editor form[data-editor] .sw-payment-panel label {min-width:0;gap:6px!important}
 .sw-invoice-editor form[data-editor] .sw-payment-panel label>span {font-size:12px!important;line-height:1.8;font-weight:400}
 .sw-invoice-editor form[data-editor] .sw-payment-panel :is(input:not([type=hidden]):not([type=range]):not([type=checkbox]),.ui-select-trigger,select:not(.ui-select-native)) {font-size:13px!important;min-height:42px!important;height:42px!important;line-height:24px!important;box-sizing:border-box}
 .sw-invoice-editor form[data-editor] .sw-payment-panel .ui-select-trigger {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .sw-invoice-editor form[data-editor] .sw-payment-panel .ui-select-native {display:none!important}
 .sw-invoice-editor form[data-editor] [data-payment-date] {cursor:pointer;direction:ltr;text-align:center}
 .sw-invoice-editor form[data-editor] .sw-paid-strip {display:flex;align-items:end;justify-content:space-between;gap:16px;padding:14px 0 0;margin:0;border:0;background:none;flex-wrap:wrap}
 .sw-invoice-editor form[data-editor] .sw-paid-strip>span {font-size:13px;padding-bottom:10px}
 .sw-invoice-editor form[data-editor] .sw-paid-strip>label {width:190px;max-width:100%;margin:0}
 .sw-invoice-editor form[data-editor] .sw-finance-fields {grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;align-items:start!important;margin:16px 0!important}
 .sw-invoice-editor form[data-editor] .sw-check-tools {display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
 .sw-invoice-editor form[data-editor] .sw-check-tools button {display:inline-flex;align-items:center;gap:8px;font-size:12px;min-height:38px}
 .sw-invoice-editor form[data-editor] .sw-check-tools button[aria-pressed=true] {background:#e8f5ec;color:#176d43;border-color:#72b791}
 .sw-invoice-editor form[data-editor] .sw-check-count {padding:10px 0 16px;border-bottom:1px solid #dce5e9;margin-bottom:16px}
 .sw-invoice-editor form[data-editor] .sw-check-count>label {display:flex;flex-direction:row;justify-content:space-between;font-size:13px}
 .sw-invoice-editor form[data-editor] .sw-check-count output {color:#176d43;font-weight:500}
 .sw-invoice-editor form[data-editor] .sw-check-count>div {display:flex;align-items:center;gap:12px;direction:ltr;font-size:12px;color:#71808a}
 .sw-invoice-editor form[data-editor] .sw-check-count input[type=range] {flex:1;width:100%;min-width:0;height:28px!important;min-height:28px!important;padding:0!important;margin:4px 0;border:0!important;box-shadow:none!important;accent-color:#198754;cursor:pointer;background:none}
 .sw-invoice-editor form[data-editor] .sw-check-date-settings {grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:14px 0!important;border-bottom:1px solid #dce5e9;align-items:end!important}
 .sw-invoice-editor form[data-editor] .sw-check-date-settings button {min-height:42px;align-self:end;font-size:12px}
 .sw-invoice-editor form[data-editor] .sw-payment-summary {background:#f4f8f6;border:0!important;border-radius:0;padding:16px!important;box-shadow:none;position:sticky;top:84px;max-height:calc(100dvh - 170px);overflow:auto;overscroll-behavior:contain}
 .sw-invoice-editor form[data-editor] .sw-credit-card {display:grid;gap:12px;padding:0 0 12px;border:0;border-bottom:1px solid #dce5e9;background:none;border-radius:0}
 .sw-invoice-editor form[data-editor] .sw-credit-card>div {padding:0;border:0;background:none}
 .sw-invoice-editor form[data-editor] .sw-credit-card strong {font-size:15px!important;font-weight:500}
 .sw-invoice-editor form[data-editor] .sw-credit-card span {font-size:11px;line-height:1.9}
 .sw-invoice-editor form[data-editor] .sw-review-heading h2 {font-size:17px!important;font-weight:500;margin:0 0 18px!important}
 .sw-invoice-editor form[data-editor] .sw-review-identity {display:flex;align-items:center;gap:20px;padding:0 0 20px;border-bottom:1px solid #d7e2e8;margin-bottom:20px;flex-wrap:wrap}
 .sw-invoice-editor form[data-editor] .sw-review-identity>div:first-child {flex:1;min-width:200px}
 .sw-invoice-editor form[data-editor] .sw-review-identity small {display:none}
 .sw-invoice-editor form[data-editor] .sw-review-identity strong {display:block;font-size:17px;font-weight:500;margin-bottom:10px}
 .sw-invoice-editor form[data-editor] .sw-review-identity>div>div {display:flex;flex-wrap:wrap;gap:10px 22px;font-size:13px;color:#607580}
 .sw-invoice-editor form[data-editor] .sw-review-identity>div:nth-child(2) {display:grid;gap:8px;font-size:13px}
 .sw-invoice-editor form[data-editor] .sw-review-columns {display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;align-items:start}
 .sw-invoice-editor form[data-editor] .sw-review-columns.sw-review-goods-only {grid-template-columns:minmax(0,1fr)}
 .sw-invoice-editor form[data-editor] .sw-review-content {min-width:0}
 .sw-invoice-editor form[data-editor] .sw-review-section {padding:0 0 20px;margin:0 0 20px;border:0;border-bottom:1px solid #dce5e9;background:none;min-width:0}
 .sw-invoice-editor form[data-editor] .sw-review-section-heading {display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px}
 .sw-invoice-editor form[data-editor] .sw-review-section-heading>div {display:flex;align-items:center;gap:12px}
 .sw-invoice-editor form[data-editor] .sw-review-section-heading h3 {font-size:15px!important;font-weight:500;margin:0!important}
 .sw-invoice-editor form[data-editor] .sw-review-section-heading span {font-size:12px;color:#6c7e87}
 .sw-invoice-editor form[data-editor] [data-review-edit] {display:inline-flex;align-items:center;gap:7px;min-height:34px;font-size:12px;padding:5px 10px}
 .sw-invoice-editor form[data-editor] .sw-review-line {padding:14px 0;margin:0;border:0;border-top:1px solid #e3eaed;background:none;min-width:0}
 .sw-invoice-editor form[data-editor] .sw-review-line>header {display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px}
 .sw-invoice-editor form[data-editor] .sw-review-number {display:grid;place-items:center;height:28px;background:#eff3f5;font-size:12px;border-radius:4px}
 .sw-invoice-editor form[data-editor] .sw-review-line h4 {font-size:15px!important;line-height:1.8;font-weight:500;margin:0!important;overflow-wrap:anywhere}
 .sw-invoice-editor form[data-editor] .sw-review-condition-label {font-size:12px;color:#657e8a}
 .sw-invoice-editor form[data-editor] .sw-review-line strong {font-size:15px;font-weight:500;white-space:nowrap}
 .sw-invoice-editor form[data-editor] .sw-review-line strong small {font-size:11px;font-weight:400}
 .sw-invoice-editor form[data-editor] .sw-review-serial-strip {display:flex;flex-wrap:wrap;gap:8px 20px;margin:12px 38px 8px 0;font-size:12px;color:#5f7581;line-height:1.9}
 .sw-invoice-editor form[data-editor] .sw-review-serial-strip bdi {margin-inline-start:8px;color:#284451;overflow-wrap:anywhere}
 .sw-invoice-editor form[data-editor] .sw-review-missing {color:#99700c}
 .sw-invoice-editor form[data-editor] .sw-review-line-details {margin:10px 38px 0 0;padding:0;border:0;background:none}
 .sw-invoice-editor form[data-editor] .sw-review-line-details summary {display:list-item;list-style:disclosure-closed;padding:5px 0;border:0;background:none;border-radius:0;min-height:30px;font-size:12px;color:#326d73}
 .sw-invoice-editor form[data-editor] .sw-review-line-details[open] summary {list-style:disclosure-open}
 .sw-invoice-editor form[data-editor] .sw-review-line-details dl {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0;padding:0}
 .sw-invoice-editor form[data-editor] .sw-review-line-details dt {font-size:11px;color:#70838c;line-height:1.9}
 .sw-invoice-editor form[data-editor] .sw-review-line-details dd {margin:4px 0 0;font-size:13px;line-height:1.9;overflow-wrap:anywhere}
 .sw-invoice-editor form[data-editor] .sw-review-contract-facts {padding-top:12px!important;border-top:1px dashed #dce5e9}
 .sw-invoice-editor form[data-editor] .sw-review-service-line {display:flex;justify-content:space-between;gap:12px;font-size:13px;padding:10px 0;border-bottom:1px solid #edf1f3}
 .sw-invoice-editor form[data-editor] .sw-review-service-line strong {font-weight:500}
 .sw-invoice-editor form[data-editor] .sw-review-financial {padding:16px;background:#f4f8f6;min-width:0}
 .sw-invoice-editor form[data-editor] .sw-review-financial>header {display:flex;justify-content:space-between;align-items:center;gap:8px}
 .sw-invoice-editor form[data-editor] .sw-review-financial h3 {font-size:15px!important;font-weight:500;margin:0!important}
 .sw-invoice-editor form[data-editor] .sw-review-financial>header>span {font-size:12px;color:#2e6950}
 .sw-invoice-editor form[data-editor] .sw-review-financial .sw-totals {display:grid!important;grid-template-columns:1fr!important;gap:0!important;margin:14px 0!important;border:0!important;border-radius:0!important;overflow:visible}
 .sw-invoice-editor form[data-editor] .sw-review-financial .sw-totals>div {display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:10px 0!important;border:0!important;border-bottom:1px solid #dce5e0!important;border-radius:0!important;background:none!important;min-height:0!important}
 .sw-invoice-editor form[data-editor] .sw-review-financial .sw-totals span {font-size:12px!important;line-height:1.9}
 .sw-invoice-editor form[data-editor] .sw-review-financial .sw-totals b {font-size:14px!important;font-weight:500!important;margin:0!important;white-space:nowrap}
 .sw-invoice-editor form[data-editor] .sw-review-financial .sw-totals>div:last-child {padding-top:16px!important;border:0!important;color:#176d43!important}
 .sw-invoice-editor form[data-editor] .sw-review-financial .sw-totals>div:last-child b {font-size:17px!important}
 .sw-invoice-editor form[data-editor] .sw-review-content table {min-width:520px;width:100%;margin:0;table-layout:auto}
 .sw-invoice-editor form[data-editor] .sw-review-content :is(th,td) {display:table-cell!important;padding:10px 12px;font-size:12px;line-height:1.8}
 .sw-invoice-editor form[data-editor] .sw-review-content th:last-child {width:auto}
 .sw-invoice-editor form[data-editor] .sw-review-section-heading h3 {padding:0!important}
 .sw-invoice-editor form[data-editor] .sw-payment-summary .sw-totals {border:0!important;border-radius:0!important;overflow:visible}
 .sw-invoice-editor form[data-editor] .sw-payment-summary .sw-totals>div:last-child {color:#176d43!important}
 .sw-invoice-editor form[data-editor] .sw-review-content .sw-compact-checks {padding:0;margin:0;border:0;background:none}
 .sw-invoice-editor form[data-editor] .sw-review-content .sw-compact-checks>header h3 {display:none}
 .sw-invoice-editor form[data-editor] .sw-review-content .sw-compact-checks>header {justify-content:flex-end;margin:0 0 10px;padding:0;border:0;font-size:12px}
 .sw-invoice-editor form[data-editor] .sw-review-section>h3 {display:none}
 .sw-invoice-editor form[data-editor] .sw-review-submit {display:none}
 .sw-invoice-editor form[data-editor] .sw-step-footer [data-submit] {margin-inline-start:auto;min-width:190px!important;min-height:48px!important;height:48px!important;font-size:15px!important;padding:10px 20px!important;border-radius:6px}
}
@media screen and (max-width:1100px) {
 .sw-invoice-editor form[data-editor] .sw-payment-workspace,.sw-invoice-editor form[data-editor] .sw-review-columns {grid-template-columns:minmax(0,1fr)!important}
 .sw-invoice-editor form[data-editor] .sw-review-financial {grid-row:1}
}
@media screen and (max-width:700px) {
 .sw-invoice-editor form[data-editor] :is(.sw-payment-panel,.sw-review-panel) {padding:12px}
 .sw-invoice-editor form[data-editor] .sx-payment-modes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;order:2}
 .sw-invoice-editor form[data-editor] .sw-finance-fields,.sw-invoice-editor form[data-editor] [data-payment-row] {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sw-invoice-editor form[data-editor] .sw-check-date-settings {grid-template-columns:minmax(0,1fr)!important}
 .sw-invoice-editor form[data-editor] .sw-review-line>header {grid-template-columns:28px minmax(0,1fr)}
 .sw-invoice-editor form[data-editor] .sw-review-line>header>strong {grid-column:2}
 .sw-invoice-editor form[data-editor] .sw-review-line-details {margin-inline-start:0}
 .sw-invoice-editor form[data-editor] .sw-review-line-details dl {grid-template-columns:repeat(2,minmax(0,1fr))}
 .sw-invoice-editor form[data-editor] .sw-review-serial-strip {margin-inline-start:0}
 .sw-invoice-editor form[data-editor] .sw-step-footer [data-submit] {grid-row:3;grid-column:1/-1;width:100%;margin:4px 0 0}
}
@media screen {
 .sw-invoice-editor {gap:12px!important;letter-spacing:0}
 .sw-invoice-editor [hidden] {display:none!important}
 .sw-invoice-editor :is(label,label>span,input,select,textarea,button,small,.ui-select-trigger) {font-weight:400!important;letter-spacing:0}
 .sw-invoice-editor :is(h2,h3,h4) {font-weight:500!important}
 .sw-invoice-editor h2 {font-size:15px!important;margin:0 0 12px!important;padding:0}
 .sw-invoice-editor h3 {font-size:14px!important;margin:0 0 10px!important}
 .sw-invoice-editor button svg {width:18px;height:18px;flex:0 0 18px}
 .sw-invoice-editor button {display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:6px!important}
 .sw-invoice-editor .sw-editor-header {display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-width:0;padding:0 0 12px;border-bottom:1px solid var(--border,#d7e2e8)}
 .sw-invoice-editor .sw-page-navigation {display:flex;gap:6px;margin:0!important;flex-wrap:nowrap}
 .sw-invoice-editor .page-title {display:block;margin:0!important;padding:0!important;min-height:0}
 .sw-invoice-editor .page-title h1 {font-size:17px!important;font-weight:500;line-height:1.6!important;margin:0!important}
 .sw-invoice-editor .fl546-timer {display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin:0!important;margin-inline-start:auto!important;padding:7px 10px;border:1px solid #c4dad8;border-radius:6px;background:#f3f9f7;min-height:38px;color:#276359}
 .sw-invoice-editor .fl546-timer>svg {width:18px;height:18px;flex:none}
 .sw-invoice-editor .fl546-timer>span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .sw-invoice-editor .fl546-timer bdi {font-size:15px;font-weight:400;min-width:66px;text-align:center;direction:ltr;font-variant-numeric:tabular-nums}
 .sw-invoice-editor .fl546-timer small {font-size:10px;max-width:110px;line-height:1.5}
 .sw-invoice-editor [data-editor] {gap:14px;min-width:0}
 .sw-invoice-editor .sw-steps {display:flex!important;position:relative!important;top:auto!important;gap:0!important;padding:8px 0!important;border:0!important;border-radius:0!important;box-shadow:none;background:transparent;overflow-x:auto!important;scrollbar-width:thin;isolation:isolate}
 .sw-invoice-editor .sw-steps button {position:relative;display:flex!important;flex:1 0 120px!important;flex-direction:column;justify-content:flex-start!important;gap:6px!important;min-width:0!important;min-height:66px!important;padding:4px 6px!important;border:0!important;background:transparent!important;white-space:normal!important;color:#73818a;line-height:1.7!important}
 .sw-invoice-editor .sw-steps button:not(:last-child)::after {content:'';position:absolute;top:18px;inset-inline-start:calc(50% + 21px);width:calc(100% - 42px);border-top:2px dashed #cbd6dc;z-index:-1}
 .sw-invoice-editor .sw-steps button.is-done::after {border-color:#66b896}
 .sw-invoice-editor .sw-steps .sw-step-number {display:grid!important;place-items:center;flex:none!important;width:28px!important;height:28px!important;min-width:28px;margin:0!important;border-radius:50%;border:1px solid #d5e0e5;background:#fff;color:#71808a;font-size:12px}
 .sw-invoice-editor .sw-steps .sw-step-label {display:block!important;flex:none!important;width:auto!important;height:auto!important;margin:0!important;padding:0;background:transparent!important;border:0;border-radius:0;font-size:12px;color:inherit!important}
 .sw-invoice-editor .sw-steps button.is-done {color:#17835a!important}
 .sw-invoice-editor .sw-steps button.is-done .sw-step-number {background:#e7f6ee;color:#117548;border-color:#76c6a2}
 .sw-invoice-editor .sw-steps button[aria-current=step] {color:#146c78!important}
 .sw-invoice-editor .sw-steps button[aria-current=step] .sw-step-number {background:#146c78;color:#fff;border-color:#146c78;box-shadow:0 0 0 3px #e0eff0}
 .sw-invoice-editor .sw-step-panels {display:grid;gap:14px;margin:0;padding:0;border:0;background:transparent;min-width:0}
 .sw-invoice-editor .sw-editor-block {padding:16px;border:1px solid var(--border,#d7e2e8);border-radius:8px;background:var(--card,#fff);min-width:0}
 .sw-invoice-editor .sw-block-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
 .sw-invoice-editor .sw-block-heading :is(h2,h3) {margin:0!important}
 .sw-invoice-editor .sx-invoice-date {position:static;display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0!important;padding:0!important;font-size:12px!important}
 .sw-invoice-editor .sw-payment-start {padding:0!important;margin:0 0 12px!important;border:0;background:none}
 .sw-invoice-editor .sw-party-select {padding:0;margin:0!important;border:0;background:none;border-radius:0}
 .sw-invoice-editor .sw-branch-chip {display:none}
 .sw-invoice-editor .sx-payment-modes {max-width:690px;gap:0;border:1px solid #d5e0e5;border-radius:6px;overflow:hidden}
 .sw-invoice-editor .sx-payment-modes button {border:0;border-radius:0!important;background:#f6f9fa;min-height:36px!important}
 .sw-invoice-editor .sx-payment-modes button[aria-pressed=true] {background:#176b76!important}
 .sw-invoice-editor .sw-customer-details>.sw-actions {margin:0 0 10px;align-items:end}
 .sw-invoice-editor .sw-customer-details>.sw-actions>label {flex:0 1 320px;width:auto;min-width:0;margin:0}
 .sw-invoice-editor .sw-customer-details>.sw-actions input {width:100%}
 .sw-invoice-editor .sw-selected-customer {display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:8px 0;margin:0;border:0;background:none}
 .sw-invoice-editor .sw-selected-customer b {font-weight:500}
 .sw-invoice-editor .sx-profile-open {padding:12px 0 0!important;margin:8px 0 0!important;border:0!important;border-top:1px solid #d7e2e8!important;border-radius:0!important;background:none!important}
 .sw-invoice-editor [data-profile-panel]>.sw-grid {margin:0;grid-template-columns:repeat(3,minmax(0,1fr))}
 .sw-invoice-editor [data-profile-panel] label:has(>[name=profile_home_address]),.sw-invoice-editor [data-profile-panel] label:has(>[name=profile_work_address]) {grid-column:auto}
 .sw-invoice-editor .sw-serial-bar {display:grid;grid-template-columns:minmax(160px,1fr) auto auto auto auto;gap:8px!important;align-items:end!important;margin:0!important;padding:0!important;border:0!important;background:none;border-radius:0}
 .sw-invoice-editor .sw-serial-bar>label {width:100%;min-width:0;margin:0}
 .sw-invoice-editor .sw-serial-bar input {min-height:40px!important;height:40px;font-size:15px;letter-spacing:0}
 .sw-invoice-editor .sw-serial-bar button {min-height:40px!important;font-size:12px;padding:7px 10px;white-space:normal}
 .sw-invoice-editor .sw-icon-button {width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:8px!important;flex:none}
 .sw-invoice-editor .sw-added-items {padding:0;border:1px solid #cbd8df;background:#fff;border-radius:6px}
 .sw-invoice-editor .sw-added-items>.sw-block-heading {padding:12px 16px;margin:0;border-bottom:1px solid var(--border,#d7e2e8)}
 .sw-invoice-editor [data-item-count] {font-size:12px;color:#6c7e87}
 .sw-invoice-editor [data-items] {display:grid;gap:20px;padding:16px;border:0;border-radius:0;background:#fff;overflow:visible}
 .sw-invoice-editor .sw-item-card {padding:18px!important;margin:0!important;border:1px solid #c6d8de!important;border-inline-start:3px solid #6da8a4!important;border-radius:8px!important;background:var(--card,#fff);box-shadow:none;min-width:0}
 .sw-invoice-editor .sw-item-main {display:grid!important;grid-template-columns:26px minmax(160px,1fr) auto!important;grid-template-areas:'number identity controls';gap:10px!important;align-items:center;padding:0!important}
 .sw-invoice-editor .sw-item-identity {min-width:0}
 .sw-invoice-editor .sw-item-title-row {display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px}
 .sw-invoice-editor .sw-line-number {width:26px;height:26px;font-size:12px;background:#eef3f5;color:#5b7682;border-radius:5px}
 .sw-invoice-editor .sx-product-title {display:inline!important;border:0!important;padding:0!important;min-height:0!important;background:none!important;text-align:right;white-space:normal;overflow-wrap:anywhere;font-size:14px!important;font-weight:500!important;line-height:1.8}
 .sw-invoice-editor .sx-condition {position:static;display:inline-block;width:auto;height:auto;writing-mode:horizontal-tb;padding:2px 7px;border-radius:4px;background:#edf3f6;color:#4d6777;font-size:11px;white-space:nowrap;letter-spacing:0}
 .sw-invoice-editor .sw-item-main small {margin:2px 0 0;font-size:12px;overflow-wrap:anywhere}
 .sw-invoice-editor .sw-item-main>.sw-item-controls {grid-area:controls;display:grid;grid-template-columns:auto minmax(140px,210px) 40px;align-items:end;gap:10px;min-width:0}
 .sw-invoice-editor .sw-item-price {display:flex;align-items:end;gap:6px;min-width:0}
 .sw-invoice-editor .sw-item-price>label {flex:1;min-width:0;width:auto;margin:0;gap:6px;font-size:12px!important;line-height:1.8}
 .sw-invoice-editor .sw-item-price .sw-price-warning {flex:none;align-self:center;margin-top:22px}
 .sw-invoice-editor .sw-item-controls :is(.sw-passport-button,.sw-remove-line,input) {height:40px!important;min-height:40px!important}
 .sw-invoice-editor .sw-item-controls .sw-passport-button {font-size:12px!important;white-space:nowrap;padding:7px 10px}
 .sw-invoice-editor .sw-item-controls .sw-remove-line {min-width:38px!important;align-self:end}
 .sw-invoice-editor .sw-definitive-serial {padding:8px 0 0;margin:0;justify-content:flex-end}
 .sw-invoice-editor .sw-definitive-serial>label {max-width:280px;flex:1;margin:0}
 .sw-invoice-editor .sc-details {padding:10px 0 0!important;margin:12px 0 0!important;border:0!important;border-top:1px dashed #d7e2e8!important;border-radius:0!important;background:none!important;overflow:visible}
 .sw-invoice-editor .sc-details>header {display:flex;align-items:center;gap:10px;margin:0 0 8px!important;padding:0!important}
 .sw-invoice-editor .sc-details>header small {display:none}
 .sw-invoice-editor .sc-details h4 {margin:0!important;padding:0!important;font-size:12px!important;border:0}
 .sw-invoice-editor .sc-details>.sw-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;margin:0;padding:0!important;align-items:start}
 .sw-invoice-editor .sc-details>.sw-grid>label {margin:0!important;padding:0;gap:4px}
 .sw-invoice-editor .sc-details>.sw-grid>.sc-wide:has(.dc545-multiselect) {grid-column:span 2!important}
 .sw-invoice-editor .dc545-multiselect {display:flex!important;gap:10px 18px!important;padding:10px 12px!important;margin:6px 0 0!important;border:1px solid #ccdce3!important;border-radius:6px;background:#fafcfd;min-width:0}
 .sw-invoice-editor .dc545-multiselect>label {display:flex!important;flex-direction:row;align-items:center;white-space:normal;min-height:34px;gap:7px;padding:4px 0!important;margin:0!important;border:0;border-radius:0;background:none;max-width:100%}
 .sw-invoice-editor .dc545-multiselect input {min-width:16px!important;width:16px!important;height:16px!important;min-height:16px!important}
 .sw-invoice-editor .sc-details :is(input,select,textarea,.ui-select-trigger) {min-height:40px!important;border-radius:6px!important;font-size:14px!important}
 .sw-invoice-editor .ui-select-trigger {display:block!important;height:auto!important;white-space:normal;text-align:right;overflow-wrap:anywhere;padding-inline-end:28px!important;line-height:1.7!important}
 .sw-invoice-editor .sc-details textarea {height:56px;min-height:56px!important}
 .sw-invoice-editor .sc-details :is(label>span,.sc-wide>span) {display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 6px;min-height:23px;line-height:1.9;font-size:13px!important;font-weight:400!important;margin:0}
 .sw-invoice-editor .sw-step-footer {margin-top:0;border-radius:8px;gap:8px;padding:10px 12px}
}
@media screen and (max-width:1100px) {
 .sw-invoice-editor .sw-editor-header {gap:10px}
 .sw-invoice-editor .sw-item-main {grid-template-columns:26px minmax(0,1fr)!important;grid-template-areas:'number identity' 'controls controls'}
 .sw-invoice-editor .sc-details>.sw-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sw-invoice-editor .sw-serial-bar {grid-template-columns:minmax(0,1fr) auto auto}
}
@media screen and (max-width:700px) {
 .sw-invoice-editor .sw-editor-header .page-title {order:-2;flex:1}
 .sw-invoice-editor .fl546-timer {order:-1}
 .sw-invoice-editor .fl546-timer small {display:none}
 .sw-invoice-editor .sw-page-navigation {flex-basis:100%}
 .sw-invoice-editor .sw-page-navigation button {flex:none}
 .sw-invoice-editor .sw-steps button {flex-basis:130px!important;width:auto!important}
 .sw-invoice-editor .sw-editor-block {padding:12px}
 .sw-invoice-editor [data-profile-panel]>.sw-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .sw-invoice-editor .sx-payment-modes {grid-template-columns:repeat(2,minmax(0,1fr))}
 .sw-invoice-editor .sw-serial-bar {grid-template-columns:repeat(2,minmax(0,1fr))}
 .sw-invoice-editor .sw-serial-bar>label {grid-column:1/-1}
 .sw-invoice-editor .sw-added-items {padding:0}
 .sw-invoice-editor .sw-item-card {padding:12px!important}
 .sw-invoice-editor .sw-item-main {grid-template-columns:22px minmax(0,1fr)!important;grid-template-areas:'number identity' 'controls controls';gap:12px 8px!important}
 .sw-invoice-editor .sw-item-main>.sw-item-controls {grid-template-columns:auto minmax(0,1fr) 38px;gap:8px}
 .sw-invoice-editor .sc-details>.sw-grid {grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
 .sw-invoice-editor .sc-details>.sw-grid>.sc-wide,.sw-invoice-editor .sc-details>.sw-grid>.sc-wide:has(.dc545-multiselect) {grid-column:1/-1!important}
 .sw-invoice-editor .sw-step-footer {display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;gap:6px!important}
 .sw-invoice-editor .sw-step-footer [data-progress] {grid-column:1/-1;grid-row:1;order:0;flex-basis:auto;font-size:11px}
 .sw-invoice-editor .sw-step-footer [data-prev-step] {grid-column:1;grid-row:2}
 .sw-invoice-editor .sw-step-footer [data-draft] {grid-column:2;grid-row:2}
 .sw-invoice-editor .sw-step-footer [data-next-step] {grid-column:3;grid-row:2;min-width:72px!important}
}
@media screen and (max-width:400px) {
 .sw-invoice-editor .page-title h1 {font-size:15px!important}
 .sw-invoice-editor .sw-party-select,.sw-invoice-editor [data-profile-panel]>.sw-grid {grid-template-columns:minmax(0,1fr)}
}

@media screen {
 .sw-invoice-editor [data-catalog],.sw-invoice-editor [data-external-editor] {padding:14px 0 0!important;margin:14px 0 0!important;background:none;border:0!important;border-top:1px solid #d7e2e8!important;border-radius:0}
 .sw-invoice-editor [data-catalog]>.sw-grid {grid-template-columns:repeat(5,minmax(0,1fr)) auto!important;margin:0;gap:12px!important;align-items:end}
 .sw-invoice-editor [data-external-editor] {grid-template-columns:repeat(4,minmax(0,1fr)) auto!important;gap:12px!important;align-items:end}
 .sw-invoice-editor :is([data-catalog],[data-external-editor]) label {margin:0!important;gap:6px!important;font-size:13px!important}
 .sw-invoice-editor :is([data-catalog],[data-external-editor]) label>span {font-size:12px!important;line-height:1.8;min-height:22px;margin:0}
 .sw-invoice-editor :is([data-catalog],[data-external-editor]) :is(input:not([type=hidden]),.ui-select-trigger,summary,[data-add],[data-external-add]) {height:42px!important;min-height:42px!important;max-height:42px;padding:8px 10px!important;font-size:13px!important;line-height:24px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box}
 .sw-invoice-editor :is([data-catalog],[data-external-editor]) .ui-select-native {display:none!important}
 .sw-invoice-editor .sw-catalog-model {min-width:0;display:grid;gap:6px}
 .sw-invoice-editor .sw-catalog-model label {min-height:22px}
 .sw-invoice-editor .sw-catalog-model summary {border:1px solid #d4deeb;background:#fff;border-radius:6px}
 .sw-invoice-editor .sc-details small {font-size:11px!important;margin-inline-start:4px;color:#73848f}
 .sw-invoice-editor .dc545-multiselect label {font-size:13px!important;line-height:1.9!important}
 .sw-invoice-editor .sw-inventory-dialog {width:min(920px,calc(100vw - 28px));max-height:85dvh;box-sizing:border-box;padding:0;border:1px solid #cbdce3;border-radius:8px;color:var(--text,#253f4d);background:var(--card,#fff)}
 .sw-invoice-editor .sw-inventory-dialog[open] {display:flex;flex-direction:column}
 .sw-invoice-editor .sw-inventory-dialog::backdrop {background:#12252d80}
 .sw-invoice-editor .sw-inventory-dialog>header {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #d7e2e8}
 .sw-invoice-editor .sw-inventory-dialog h2 {font-size:17px!important;margin:0 0 4px!important}
 .sw-invoice-editor [data-picker-count] {font-size:12px;color:#627782}
 .sw-invoice-editor [data-picker-search] {display:flex;align-items:end;gap:10px;padding:12px 20px}
 .sw-invoice-editor [data-picker-search] label {flex:1;margin:0;min-width:0}
 .sw-invoice-editor [data-picker-search] :is(input,button) {height:40px;min-height:40px!important}
 .sw-invoice-editor [data-picker-message] {margin:0 20px 10px;padding:8px 10px;background:#eaf6ef;color:#206747;border-radius:6px;font-size:13px}
 .sw-invoice-editor [data-picker-results] {overflow:auto;min-height:170px;overscroll-behavior:contain;border-top:1px solid #d7e2e8}
 .sw-invoice-editor .sw-picker-row {display:grid;grid-template-columns:minmax(0,1fr) auto 88px;align-items:center;gap:14px;padding:14px 20px;border-bottom:1px solid #dce5e9}
 .sw-invoice-editor .sw-picker-row:nth-child(even) {background:#f6f9fa}
 .sw-invoice-editor .sw-picker-row strong {font-size:14px;font-weight:500;line-height:1.8;overflow-wrap:anywhere}
 .sw-invoice-editor .sw-picker-meta {display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:#617984;line-height:1.8}
 .sw-invoice-editor .sw-picker-row small {display:block;margin-top:3px;font-size:12px;overflow-wrap:anywhere}
 .sw-invoice-editor .sw-picker-price {font-size:13px;white-space:nowrap}
 .sw-invoice-editor .sw-inventory-dialog>footer {display:flex;justify-content:center;align-items:center;gap:16px;padding:12px;border-top:1px solid #d7e2e8;font-size:12px}
 .sw-invoice-editor .sw-picker-empty {text-align:center;padding:32px 12px;color:#637984;font-size:14px}
}
@media screen and (max-width:1100px) {
 .sw-invoice-editor [data-catalog]>.sw-grid,.sw-invoice-editor [data-external-editor] {grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media screen and (max-width:700px) {
 .sw-invoice-editor [data-catalog]>.sw-grid,.sw-invoice-editor [data-external-editor] {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .sw-invoice-editor .sw-picker-row {grid-template-columns:minmax(0,1fr) 82px;gap:8px;padding:12px}
 .sw-invoice-editor .sw-picker-row>div:first-child {grid-column:1/-1}
 .sw-invoice-editor .sw-picker-price {grid-column:1}
 .sw-invoice-editor [data-picker-search],.sw-invoice-editor .sw-inventory-dialog>header {padding:12px}
 .sw-invoice-editor .sw-inventory-dialog h2 {font-size:15px!important}
}

/* develop contract-editor.css: shared guarantee controls */
@media screen{
.sw-page .sc-details{margin:12px 16px 16px;border:1px solid #d6e1e7;border-radius:12px;background:#f8fafc;overflow:hidden}.sw-page .sc-details>summary{padding:12px 16px;font-weight:700;cursor:pointer}.sw-page .sc-details>summary small{font-weight:400;color:#687d8a;margin-inline-start:10px}.sw-page .sc-details>.sw-grid{padding:8px 16px 18px;gap:16px}.sw-page .sc-wide{grid-column:1/-1}.sw-page .sc-check{display:flex;align-items:center;gap:9px;flex-direction:row}.sw-page .sc-check input{width:18px;height:18px;flex:none;accent-color:#17616a}.sw-page [data-guarantees]{border-top:1px solid #d3dfe8;margin-top:28px;padding-top:20px}.sw-page [data-guarantees]>header p{color:#657b88;font-size:12px}.sw-page .sc-guarantee{border:1px solid #cfdde5;border-radius:14px;padding:18px;margin-top:14px;background:#fafcfd}.sw-page .sc-guarantee>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:10px}.sw-page .sc-guarantee [data-remove-guarantee]{color:#aa3c3c}.sw-page .sc-empty{padding:20px;border:1px dashed #c9d5df;border-radius:12px;color:#647a89}.sw-page .sc-review-guarantees{background:#f4f8fa;border:1px solid #d8e3ea;border-radius:12px;padding:12px 18px}.sw-page .sc-print-settings fieldset{margin:18px 0;border:1px solid #cddbe5;padding:18px;border-radius:12px}.sw-page .sc-print-settings legend{padding:0 10px;font-weight:700}.sw-page [data-editor] input:focus-visible,.sw-page [data-editor] select:focus-visible,.sw-page [data-editor] textarea:focus-visible{outline:3px solid #68aeb85c;outline-offset:2px;border-color:#287e89}.sw-page [data-editor] .sw-item-main{align-items:center}.sw-page .sc-details textarea{min-height:74px}.sw-page .sw-print-choices button{min-height:54px}.sw-page .sw-check-receipt{gap:12px;align-items:end}
@media(max-width:600px){.sw-page .sc-details{margin:8px}.sw-page .sc-details>.sw-grid{padding:8px 12px 14px}.sw-page .sc-guarantee{padding:12px}.sw-page .sc-guarantee>header{flex-wrap:wrap}.sw-page [data-guarantees] .sw-actions{display:grid;grid-template-columns:1fr}.sw-page .sc-details>summary small{display:block;margin:5px 0 0}.sw-page .sw-step-footer{padding-bottom:max(12px,env(safe-area-inset-bottom))}.sw-page .sw-check-receipt{grid-template-columns:1fr!important}}
}
@media screen{.sw-page .sc-details>h4{margin:0;padding:12px 16px;font-size:14px;border-bottom:1px solid #d6e1e7}.sw-page .sc-details>h4 small{font-weight:400;color:#526777;margin-inline-start:8px}.sw-page [data-external-editor]{padding:16px;margin:12px 0;border:1px dashed #718b97;border-radius:12px;background:#f8fafc}.sw-page section.sc-details>p,.sw-page section.sc-details>label,.sw-page section.sc-details>b{margin:12px 16px;display:block}}
.dc545-multiselect{display:flex;flex-wrap:wrap;gap:8px;border:1px solid #cbd8df;border-radius:10px;padding:8px;margin:0}.dc545-multiselect label{display:flex!important;align-items:center;gap:5px;margin:0;padding:5px 8px;border-radius:8px;background:#f3f7f8;font-weight:700}.dc545-multiselect input{width:auto!important}
