.ew-workbench{margin:18px 0!important;min-width:0}
.ew-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:16px 0}
.ew-summary>div{background:#faf9f7;border:1px solid #f0eeeb;padding:13px;border-radius:8px;min-width:0}
.ew-summary span{font-size:12px;color:#728198;display:block;margin-bottom:8px}
.ew-summary strong{font-size:18px}.ew-summary strong .ops-number{font-size:inherit;display:inline}
.ew-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;margin:16px 0}
.ew-toolbar label{font-size:12px;margin:0;display:flex;flex-direction:column;gap:5px;min-width:130px}
.ew-toolbar button{min-height:36px}.ew-toolbar select{height:36px}
.ew-workbench .ops-table table{min-width:1450px}.ew-workbench td{vertical-align:top;font-size:12px}
.ew-workbench td small{display:block;font-size:11px;color:#8390a2;max-width:210px;white-space:normal;overflow-wrap:anywhere;margin-top:6px}
.ew-workbench td button{display:block;white-space:nowrap;font-size:12px;padding:4px 0;color:#a6632e}
.ew-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.ew-form-grid label{min-width:0}.ew-form-grid input,.ew-form-grid select{max-width:100%;width:100%}
.ew-owner-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px 0;border-bottom:1px solid #edf0f4}
.ew-owner-row label{min-width:0;margin:0;font-size:12px}.ew-owner-row input,.ew-owner-row select{width:100%;max-width:100%}
.ew-owner-row [data-part-remove]{justify-self:start;color:#a5673d;font-size:12px}
.ew-history{border-top:1px solid #edf0f4;padding:16px 0}.ew-history h3{font-size:14px}.ew-history p{font-size:12px;line-height:1.8}
#ew-preview-result{margin:18px 0}#ew-preview-result .ops-table{max-width:100%;overflow:auto}#ew-preview-result table{min-width:620px}
@media(max-width:600px){.ew-toolbar{gap:8px}.ew-toolbar label{flex:1 1 40%;min-width:0}.ew-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ew-form-grid{grid-template-columns:minmax(0,1fr)}}

.ew-workbench th:last-child,.ew-workbench td:last-child{position:sticky;right:0;background:#fff;z-index:2;min-width:110px;box-shadow:-3px 0 8px #22334d06}
.ew-workbench .ops-table{isolation:isolate}
.ew-rule-note{grid-column:1/-1;margin:0;line-height:1.8;font-size:12px;color:#7a8ba0}.ew-form-grid>[data-ew-warehouse-lines]{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ew-form-grid>[data-ew-warehouse-lines][hidden]{display:none}.ew-form-grid [data-wh-line]{border:1px solid #e9edf2;border-radius:8px;padding:12px}.ew-form-grid [data-wh-line] strong{font-size:13px}.ew-form-grid [data-wh-line] label{display:grid;gap:6px;font-size:12px}.ew-form-grid select:disabled{background-color:#f5f6f8;color:#98a3b1}.ew-form-grid+button{margin-top:10px}
.ew-form-grid[data-ew-ownership][hidden]{display:none}
