.module-editor.sales-workflow-editor{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;min-width:0!important;width:100%!important;max-width:100%;box-sizing:border-box}
.module-editor.sales-workflow-editor>header h3{display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere}
.module-editor.sales-workflow-editor .contract-fields{display:grid!important;grid-template-columns:minmax(140px,180px) minmax(0,1fr);align-items:start;gap:16px;min-width:0}
.module-editor.sales-workflow-editor .contract-fields>.day-field{display:grid!important;grid-template-columns:minmax(0,1fr);gap:6px;min-width:0;width:auto!important;max-width:100%}
.module-editor.sales-workflow-editor .contract-fields .day-select{min-width:0;width:100%;max-width:100%}
.sales-workflow-editor>section{min-width:0}
.sales-workflow-phases{display:flex;list-style:none;gap:8px;margin:0;padding:0;overflow:auto}
.sales-workflow-phases li{display:flex;align-items:center;justify-content:center;gap:8px;flex:1 0 120px;padding:10px 12px;border-bottom:3px solid var(--border-color,#bac8df);color:#4b5567}
.sales-workflow-phases li[aria-current=step]{background:#edf2ff;color:#244db8;border-color:#315cce}
.sales-workflow-phases li.is-done{color:#5b4293;border-color:#8b76ba}
.sales-workflow-phases svg{width:20px;height:20px;flex-shrink:0}
.module-editor.sales-workflow-editor .sales-workflow-choice{display:flex!important;align-items:center;gap:10px;padding:8px 0;min-width:0}
.module-editor.sales-workflow-editor .sales-workflow-choice input{flex:0 0 18px;width:18px!important;min-width:18px;margin:0}
.sales-workflow-choice span{min-width:0;overflow-wrap:anywhere}
.sales-workflow-editor fieldset{border:0;padding:0;margin:0}
.sales-workflow-editor details{border-bottom:1px solid #c6d1e5;padding:10px 0}
.sales-workflow-editor summary{cursor:pointer;font-weight:700;padding:8px 0}
.sales-workflow-assignees,.sales-workflow-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.sales-workflow-history{display:flex;gap:12px;align-items:flex-start;border-top:1px solid #d0d8e5;padding:12px 0}
.sales-workflow-history>div{min-width:0;flex:1}
.sales-workflow-history p{white-space:pre-wrap;margin:4px 0;overflow-wrap:anywhere}
.sales-workflow-history time{font-size:12px;white-space:nowrap}
.sales-workflow-editor [data-plan-date]{width:180px;max-width:100%}
.sales-workflow-reason{font:inherit;color:inherit;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:1px solid #abbad5;border-radius:8px;padding:20px;overflow:auto}
.sales-workflow-reason::backdrop{background:#16243b66}
.sales-workflow-reason textarea{display:block;width:100%;box-sizing:border-box}
.sales-workflow-reason footer{display:flex;gap:12px;margin-top:16px}
.crm-sales-workflow{display:grid;gap:10px;margin-top:16px}
@media(max-width:760px){.sales-workflow-history{flex-wrap:wrap}.sales-workflow-editor>header h3{font-size:16px}.module-editor.sales-workflow-editor .contract-fields{grid-template-columns:minmax(0,1fr)}}

.sales-finance-review{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:12px;margin-block:12px}
.sales-finance-review>div{min-width:0;padding:12px;border:1px solid var(--day-line,#cbd5e1);border-radius:8px;background:var(--day-surface,#fff)}
.sales-finance-review h4{margin:0 0 8px}
.sales-finance-review [data-document-status]{display:flex;align-items:center;gap:6px;margin:0 0 8px;color:#804415}
.sales-finance-review[data-received=true] [data-document-status]{color:#185a30}
.sales-finance-review button[aria-disabled=true]{opacity:.62}
.sales-workflow-editor [data-sw-error]:not([hidden]),.sales-review-alert:not([hidden]){display:flex;align-items:flex-start;gap:8px;background:#fff0f2;color:#8b1934;border:1px solid #efb1bf;border-radius:6px;padding:8px 10px;overflow-wrap:anywhere}
.sales-workflow-editor [data-sw-error] svg,.sales-review-alert svg,.sales-finance-review [data-document-status] svg{flex:none;width:18px;height:18px}
