.known-sales-dialog,.known-sales-dialog *{box-sizing:border-box}.known-sales-dialog{width:min(1000px,calc(100vw - 28px));max-width:none;max-height:92dvh;padding:0;border:1px solid #d6e3e9;border-radius:20px;color:#17384c;background:#fff;box-shadow:0 24px 80px #071e3a40;overflow:hidden}
.known-sales-dialog[open]{display:flex;flex-direction:column}.known-sales-dialog::backdrop{background:#14283e66}
.ks-head,.ks-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;background:#fff;flex-shrink:0}.ks-head{border-bottom:1px solid #dce7ec}.ks-head h2{margin:4px 0;font-size:24px}.ks-head p,.ks-status p,.ks-result p{margin:4px 0;color:#577084}.ks-head .icon-btn{align-self:flex-start}.known-sales-dialog .ks-reference{flex-direction:row}
.ks-body{overflow-y:auto;padding:20px 24px;overscroll-behavior:contain}.ks-body section{margin-top:24px}.ks-body h3{font-size:17px;margin:0 0 6px}.ks-dossier{display:block;max-width:540px;font-weight:650}.ks-dossier select{margin-top:6px;width:100%}.ks-status{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #bcded5;border-radius:12px;padding:16px;background:#f0f8f5}.ks-status p{font-size:13px}.ks-references{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.ks-reference{display:flex;align-items:flex-start;gap:10px;border:1px solid #d6e3e9;border-radius:12px;padding:14px;cursor:pointer}.ks-reference input{margin-top:4px;flex:none;width:18px;height:18px;accent-color:#087c73}.ks-reference strong,.ks-reference small{display:block}.ks-reference small{color:#577084;margin-top:5px}.ks-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.ks-actions span,.ks-foot span{font-size:13px;color:#577084}.ks-summary{font-weight:650}.ks-results{display:grid;gap:8px}.ks-result{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:13px;border:1px solid #dce7ec;border-radius:10px}.ks-result strong{overflow-wrap:anywhere}.ks-result p{font-size:13px}.ks-result>span{white-space:nowrap;font-size:12px;font-weight:700;color:#7b5b17}.ks-result.is-ready{background:#f3faf8;border-color:#bcded5}.ks-result.is-ready>span,.ks-result.is-done>span{color:#087363}.ks-result.is-done{background:#eff6f7}.ks-foot{border-top:1px solid #dce7ec;flex-wrap:wrap}.ks-foot>span{flex:1;min-width:170px}.ks-feedback{margin:16px 0 0;min-height:22px;font-weight:600}.ks-feedback.is-error{color:#ae283e}.ks-body details{margin-top:14px}.ks-body .btn:disabled,.ks-foot .btn:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:600px){.known-sales-dialog{width:calc(100vw - 12px);max-height:96dvh;border-radius:14px}.ks-head,.ks-foot,.ks-body{padding:15px}.ks-head h2{font-size:21px}.ks-references{grid-template-columns:1fr}.ks-status,.ks-result{align-items:flex-start;flex-direction:column}.ks-foot>span{flex-basis:100%}.ks-foot>.btn{flex:1}.ks-foot .btn{min-height:44px}}
.sales-rules{min-width:0}.sales-rules .card-head{align-items:flex-start;gap:16px}.sales-rules .card-head p{margin:6px 0}.sales-rules [hidden]{display:none!important}.sr-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:22px 0 14px}.sr-toolbar label{flex:1;min-width:220px;max-width:600px}.sr-toolbar select{width:100%;margin-top:6px}.sr-context{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border:1px solid #cce3dd;border-radius:12px;background:#f1f8f5}.sr-context span,.sr-note,.sr-actions>span,.sr-rule small{font-size:12px;color:#567084}.sr-list{display:grid;gap:10px;margin:16px 0}.sales-rules .sr-rule{display:grid;grid-template-columns:minmax(160px,1fr) minmax(250px,1.5fr) minmax(150px,.7fr) auto;gap:12px;align-items:start;border:1px solid #d7e4eb;border-radius:12px;padding:15px;background:#fbfdfe}.sr-rule label{display:flex;flex-direction:column;gap:6px;min-width:0}.sr-rule .control{width:100%;min-width:0;min-height:42px}.sr-rule small{line-height:1.5;overflow-wrap:anywhere}.sr-remove{align-self:center}.sr-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.sr-note{margin:12px 0;line-height:1.6}.sr-feedback{min-height:22px;margin:12px 0;font-weight:600;overflow-wrap:anywhere}.sr-feedback.is-error{color:#ad2940}.sr-empty{padding:20px;border:1px dashed #ccdce6;border-radius:12px}.sr-results{display:grid;gap:8px}.sr-result{display:grid;gap:5px;padding:12px;border:1px solid #d7e4eb;border-radius:10px;overflow-wrap:anywhere}.sr-result span{color:#567084;font-size:13px}.sr-actions button:disabled{opacity:.5}.sales-rules button{min-height:42px}@media(max-width:1000px){.sales-rules .sr-rule{grid-template-columns:1fr 1fr}.sr-remove{justify-self:start}}@media(max-width:600px){.sales-rules .sr-rule{grid-template-columns:1fr}.sr-toolbar{align-items:stretch}.sr-toolbar label{min-width:0;flex-basis:100%;max-width:none}.sr-actions button{flex:1 1 100%}.sr-actions>span{flex-basis:100%}.sales-rules .card-head{flex-wrap:wrap}}
.sr-treatment{min-width:0;display:grid;gap:6px}.sr-treatment-details{border-top:1px solid #e0e9ee;padding-top:7px;margin-top:2px}.sr-treatment-details summary{font-size:12px;font-weight:600;color:#527080;cursor:pointer;min-height:32px;display:list-item;list-style-position:inside;padding:6px 0}.sr-treatment-details[open] summary{margin-bottom:8px}.sr-treatment-details>label{font-size:12px}.sr-treatment-details>small{display:block;margin-top:8px}.sr-treatment-details .control{font-size:13px}.sr-treatment-details summary:focus-visible{outline:2px solid #087c73;outline-offset:3px;border-radius:3px}
/* One framed workspace. All typography is scoped to this settings block. */
#view-settings #sales-rules-card{padding:0!important;border:1px solid #b9cdd6!important;border-radius:20px!important;overflow:hidden;background:#fff;box-shadow:0 12px 32px #17384c0c!important;scroll-margin-top:125px;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
#view-settings #sales-rules-card :is(h3,h4,p,span,div,section,li,dt,dd,strong,label,button,select,input,small,summary){font-family:inherit!important}
#view-settings #sales-rules-card .ia-launch{display:flex;gap:18px;align-items:flex-start;padding:28px 30px;background:#14394b;border-top:4px solid #19a392;color:#fff}
#view-settings #sales-rules-card .ia-launch-symbol{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;background:#ffffff12;border:1px solid #ffffff30;border-radius:14px;color:#83dfd0}
#view-settings #sales-rules-card .ia-launch-symbol svg{width:25px;height:25px}
#view-settings #sales-rules-card .ia-launch-title{margin:5px 0 8px;font-size:25px!important;line-height:1.25!important;font-weight:750!important;color:#fff!important;letter-spacing:-.4px}
#view-settings #sales-rules-card .ia-launch p{margin:0;color:#d0dfe6!important;font-size:14px!important;line-height:1.6!important;max-width:770px}
#view-settings #sales-rules-card .ia-overline{display:block;font-size:10px;line-height:1.5;font-weight:750;letter-spacing:1px;text-transform:uppercase;color:#5c7585}
#view-settings #sales-rules-card .ia-launch .ia-overline{color:#9ddfd6}
#view-settings #sales-rules-card .ia-launch-bottom{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:22px 30px;background:#f5f9fa}
#view-settings #sales-rules-card .ia-launch-bottom p{margin:0;font-size:13px;line-height:1.6;color:#526a7a;max-width:600px}
#view-settings #sales-rules-card.ia-is-open .ia-launch-bottom{display:none}
#view-settings #sales-rules-card .ia-workspace{background:#f3f7f9;padding:24px;display:grid;gap:24px}
#view-settings #sales-rules-card .ia-dossier-section{background:#fff;border:1px solid #cfdee5;border-radius:14px;padding:22px}
#view-settings #sales-rules-card .ia-step-heading{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px}
#view-settings #sales-rules-card .ia-step-number{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:9px;background:#153e50;color:#fff;font-size:14px;font-weight:750}
#view-settings #sales-rules-card .ia-step-heading h4{margin:1px 0 5px;color:#17384c;font-size:18px!important;line-height:1.35!important;font-weight:750}
#view-settings #sales-rules-card .ia-step-heading p{margin:0;font-size:13px;line-height:1.6;color:#597184}
#view-settings #sales-rules-card .ia-toolbar{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-left:42px}
#view-settings #sales-rules-card .ia-toolbar label{display:grid;gap:7px;flex:1;min-width:230px;max-width:640px;color:#284b60;font-size:12px;font-weight:700}
#view-settings #sales-rules-card .ia-select-wrap{position:relative;display:block}
#view-settings #sales-rules-card .ia-select-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:21px;height:21px;color:#147d74;pointer-events:none}
#view-settings #sales-rules-card .ia-select-icon svg{width:100%;height:100%}
#view-settings #sales-rules-card .ia-toolbar select{width:100%;min-height:48px!important;padding-left:45px!important;background:#f8fbfc;border:1px solid #b8cfd8;border-radius:10px;font-size:14px!important;font-weight:650;color:#15394c}
#view-settings #sales-rules-card .ia-toolbar button{min-height:46px}
#view-settings #sales-rules-card .ia-feedback-wrap{margin-top:-8px}
#view-settings #sales-rules-card .sr-feedback{margin:0;padding:13px 16px;border:1px solid #b7dbce;border-radius:10px;background:#edf8f3;color:#195f4a;font-size:13px;line-height:1.6}
#view-settings #sales-rules-card .sr-feedback.is-error{border-color:#e4b7be;background:#fff3f4;color:#9b273c}
#view-settings #sales-rules-card .ia-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#view-settings #sales-rules-card .ia-card{display:flex;flex-direction:column;min-width:0;border:1px solid #cbdce4;border-radius:15px;background:#fff;overflow:hidden;box-shadow:0 3px 10px #193d5005}
#view-settings #sales-rules-card .ia-card-content{display:grid;gap:20px;padding:23px;flex:1}
#view-settings #sales-rules-card .ia-card-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
#view-settings #sales-rules-card .ia-direction-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e3f4f0;color:#137f72}
#view-settings #sales-rules-card .ia-direction-purchase .ia-direction-icon{background:#edf0fb;color:#5267a1}
#view-settings #sales-rules-card .ia-direction-icon svg{width:24px;height:24px}
#view-settings #sales-rules-card .ia-card-title h4{margin:5px 0 10px;font-size:22px!important;line-height:1.3!important;color:#183b50;font-weight:750;letter-spacing:-.25px}
#view-settings #sales-rules-card .ia-purpose{margin:0;font-size:14px!important;line-height:1.65!important;color:#526d80}
#view-settings #sales-rules-card .ia-state{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #d9e2e9;border-radius:99px;background:#f4f6f8;color:#586f80;font-size:11px;font-weight:750;line-height:1.5}
#view-settings #sales-rules-card .ia-state i{display:block;width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
#view-settings #sales-rules-card .ia-active{border-color:#85bfb1}
#view-settings #sales-rules-card .ia-active .ia-state{border-color:#b2dacb;background:#e9f6ef;color:#17684d}
#view-settings #sales-rules-card .ia-waiting_reference .ia-state{border-color:#e5d5a8;background:#fff7df;color:#805e0b}
#view-settings #sales-rules-card .ia-facts{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0;border:1px solid #e0e9ee;border-radius:10px;background:#f8fafb;overflow:hidden}
#view-settings #sales-rules-card .ia-facts>div{padding:12px 14px;min-width:0}
#view-settings #sales-rules-card .ia-facts>div+div{border-left:1px solid #e0e9ee}
#view-settings #sales-rules-card .ia-facts dt{font-size:11px;line-height:1.5;color:#627b8c;overflow-wrap:anywhere}
#view-settings #sales-rules-card .ia-facts dd{margin:3px 0 0;color:#183c51;font-size:22px;line-height:1.3;font-weight:750}
#view-settings #sales-rules-card .ia-next-action{display:flex;align-items:flex-start;gap:10px;padding-top:2px}
#view-settings #sales-rules-card .ia-next-symbol{display:grid;place-items:center;flex:0 0 22px;width:22px;height:22px;border-radius:7px;background:#ecf1f5;color:#3e647a;font-size:15px;font-weight:750}
#view-settings #sales-rules-card .ia-next-action strong{display:block;margin-bottom:5px;font-size:13px;line-height:1.5;color:#20465b}
#view-settings #sales-rules-card .ia-next-action p{margin:0;font-size:12px;line-height:1.7;color:#5b7486}
#view-settings #sales-rules-card .ia-card-actions{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:16px 23px;border-top:1px solid #dfe8ed;background:#fbfcfd;flex-wrap:wrap}
#view-settings #sales-rules-card .ia-card-actions .btn{min-height:44px;border-radius:9px;font-size:12px;font-weight:700}
#view-settings #sales-rules-card .ia-card-actions .ia-rules-link{border-color:transparent;background:transparent;color:#4b6b80;font-size:12px;display:flex;gap:9px;align-items:center}
#view-settings #sales-rules-card .ia-card-actions button:disabled{opacity:.6;cursor:not-allowed}
#view-settings #sales-rules-card .ia-after-section{padding:22px;border:1px solid #d3e0e6;border-radius:14px;background:#fff}
#view-settings #sales-rules-card .ia-flow{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0;padding:0;list-style:none}
#view-settings #sales-rules-card .ia-flow li{position:relative;display:flex;gap:10px;align-items:flex-start;min-width:0}
#view-settings #sales-rules-card .ia-flow-dot{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border:1px solid #bfd7d6;background:#eef8f5;border-radius:50%;font-weight:750;color:#147b6d}
#view-settings #sales-rules-card .ia-flow-dot svg{width:15px;height:15px}
#view-settings #sales-rules-card .ia-flow strong{display:block;color:#2b5065;font-size:12px;line-height:1.6;margin-bottom:4px}
#view-settings #sales-rules-card .ia-flow li>div>span{display:block;font-size:12px;line-height:1.65;color:#637c8d}
#view-settings #sales-rules-card .ia-exception-note{margin:20px 0 0;padding:12px 14px;border:1px solid #e1e9ee;border-radius:9px;background:#f5f8fa;font-size:12px;line-height:1.7;color:#547085}
#view-settings #sales-rules-card .ia-exception-note strong{color:#244b61}
#view-settings #sales-rules-card .ia-scope-info{margin-top:14px;font-size:12px;line-height:1.7;color:#5b7487}
#view-settings #sales-rules-card .ia-scope-info summary{cursor:pointer;min-height:36px;padding:6px 0;color:#3d6075;font-weight:650;list-style-position:inside}
#view-settings #sales-rules-card .ia-scope-info p{margin:6px 0 0;max-width:850px}
#view-settings #sales-rules-card .ia-editor{margin:0;padding:23px;border:1px solid #bdcfda;border-radius:14px;background:#fff}
#view-settings #sales-rules-card .ia-editor-head{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
#view-settings #sales-rules-card .ia-editor-head h4{margin:5px 0 8px;color:#193c51;font-size:19px!important;font-weight:750}
#view-settings #sales-rules-card .ia-editor>.muted{font-size:13px;line-height:1.7}
#view-settings #sales-rules-card :is(button,select,input,summary):focus-visible{outline:2px solid #168f83;outline-offset:3px}
@media(max-width:900px){#view-settings #sales-rules-card .ia-card-content{padding:19px}#view-settings #sales-rules-card .ia-card-actions{padding:15px 19px;align-items:stretch;flex-direction:column}#view-settings #sales-rules-card .ia-card-actions .btn{width:100%;justify-content:center}}
@media(max-width:700px){#view-settings #sales-rules-card{border-radius:15px!important}#view-settings #sales-rules-card .ia-launch{padding:22px 18px;gap:12px}#view-settings #sales-rules-card .ia-launch-symbol{width:36px;height:36px;flex-basis:36px;border-radius:10px}#view-settings #sales-rules-card .ia-launch-title{font-size:22px!important}#view-settings #sales-rules-card .ia-launch p{font-size:13px}#view-settings #sales-rules-card .ia-launch-bottom{padding:18px;flex-direction:column;align-items:stretch}#view-settings #sales-rules-card .ia-workspace{padding:12px;gap:22px}#view-settings #sales-rules-card .ia-dossier-section,#view-settings #sales-rules-card .ia-after-section,#view-settings #sales-rules-card .ia-editor{padding:17px}#view-settings #sales-rules-card .ia-toolbar{margin-left:0}#view-settings #sales-rules-card .ia-toolbar label{min-width:0;max-width:none;flex-basis:100%}#view-settings #sales-rules-card .ia-toolbar button{flex:1}#view-settings #sales-rules-card .ia-cards{grid-template-columns:1fr;gap:16px}#view-settings #sales-rules-card .ia-card-content{padding:20px}#view-settings #sales-rules-card .ia-step-heading h4{font-size:17px!important}#view-settings #sales-rules-card .ia-card-title h4{font-size:21px!important}#view-settings #sales-rules-card .ia-flow{grid-template-columns:1fr;gap:18px}#view-settings #sales-rules-card .ia-state{max-width:100%;overflow-wrap:anywhere}#view-settings #sales-rules-card .ia-card-actions{padding:15px 20px}}

#view-settings #sales-rules-card .ia-direction-expense{grid-column:1/-1} #view-settings #sales-rules-card .ia-direction-expense .ia-direction-icon{background:#fff3df;color:#9b6515}
