/* Sales composition only. Fields, states, actions, tables and dialogs use canonical components. */
.ws-sales-filter-grid{display:grid;grid-template-columns:minmax(220px,1.5fr) repeat(3,minmax(130px,1fr));gap:var(--ws-space-3);margin-block:var(--ws-space-5)}
.ws-sales-segments{margin-block:var(--ws-space-5)}
.ws-sales-migrated .ws-table small{display:block;color:var(--ws-color-muted);font:var(--ws-type-small)}
.ws-sales-migrated .ws-table td:first-child{min-width:180px}
.ws-sales-migrated .ws-status{white-space:normal}
.ws-sales-migrated .ws-sales-inspector .ws-actions{margin-top:var(--ws-space-5)}
.ws-sale-workspace .ws-field{margin-block:var(--ws-space-3)}
.ws-sale-context-strip .ws-field{margin:0}
.ws-sale-context-strip .ws-customer-picker-root{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--ws-space-2);align-items:start}
.ws-sale-context-strip .ws-customer-picker-root>.ws-button{margin-top:24px}
.ws-sale-confirm-actions{display:grid;gap:var(--ws-space-2);margin-block:var(--ws-space-4)}
.ws-sale-workspace .ws-cart-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--ws-space-3);align-items:start}
.ws-sale-workspace .ws-cart-fields .ws-line-options{grid-column:1/-1}
.ws-sale-workspace .ws-cart-line>.ws-icon-anchor{justify-self:end}
.ws-sale-workspace .ws-payment-controls .ws-choice{margin-block:var(--ws-space-3)}
.ws-sale-workspace .ws-file-field{margin-block:var(--ws-space-4)}
.ws-sale-workspace .ws-capture{border:1px dashed var(--ws-color-action);border-radius:var(--ws-card-radius);background:var(--ws-color-sunk)}
.ws-sale-workspace .ws-capture h2{display:flex;align-items:center;gap:var(--ws-space-2)}
.ws-sale-workspace .ws-capture h2 svg{width:var(--ws-icon-size);height:var(--ws-icon-size);flex:none}
.ws-sale-workspace .ws-sale-note .ws-field{margin-bottom:0}
[data-sales-command]{display:grid;gap:var(--ws-space-4)}
[data-sales-command]>[type=submit]{justify-self:start}
[data-sales-discard]{margin-top:var(--ws-space-4)}
@media(max-width:1100px){.ws-sales-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ws-sales-filter-grid{grid-template-columns:minmax(0,1fr)}.ws-sale-context-strip .ws-customer-picker-root{grid-template-columns:minmax(0,1fr)}.ws-sale-context-strip .ws-customer-picker-root>.ws-button{margin-top:0;justify-self:start}.ws-sale-workspace .ws-cart-fields{grid-template-columns:minmax(0,1fr)}.ws-sales-migrated .ws-sales-layout{display:block}.ws-sales-migrated .ws-table-region{max-width:100%}.ws-sales-segments{gap:var(--ws-space-2)}}
@media(max-width:760px){
 /* Reserve the sale action bar; the open AI panel retains its viewport geometry. */
 body:has(.ws-sale-mobile-bar)>.ws-floating-ai:has(>[data-action="ai-launch"]:not([hidden])){bottom:calc(88px + env(safe-area-inset-bottom))}
}
