/* Brand selection and analytical map controls share the customer workspace. */
.customer-brand-filter { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; text-align:left; }
.customer-brand-filter>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.customer-brand-filter>.ico { flex:none; }
.customer-brand-filter.has-filters { color:var(--accent-2); border-color:var(--accent); background:var(--accent-soft); }
.customer-filters.has-brand-filter .customer-filter-main { grid-template-columns:minmax(160px,1fr) 130px 145px 95px; }
.customer-filters.has-brand-filter .customer-search { grid-column:1; grid-row:1; }
.customer-filters.has-brand-filter .customer-brand-filter { grid-column:2; grid-row:1; }
.customer-filters.has-brand-filter.has-owner .customer-brand-filter { grid-column:3; }
.customer-filters.has-brand-filter .customer-owner-filter { grid-column:2; grid-row:1; }
.customer-filters.has-brand-filter .customer-archive-filter { grid-column:4; grid-row:1; }
.customer-filters.has-brand-filter .customer-filter-regions { grid-column:1 / -1; grid-row:2; }
.customer-filters.has-brand-filter:not(.has-owner) .customer-filter-main { grid-template-columns:minmax(160px,1fr) 145px; }
.customer-filters.is-partner .customer-filter-main { grid-template-columns:minmax(180px,1fr) 140px 120px; }
@container(min-width:1150px) {
 .customer-filters.has-brand-filter.has-owner .customer-filter-main { grid-template-columns:minmax(160px,1fr) 118px 135px minmax(400px,3fr) 90px; }
 .customer-filters.has-brand-filter.has-owner .customer-filter-regions { grid-column:4; grid-row:1; }
 .customer-filters.has-brand-filter.has-owner .customer-archive-filter { grid-column:5; }
}
@container(min-width:1100px) {
 .customer-filters.has-brand-filter:not(.has-owner) .customer-filter-main { grid-template-columns:minmax(160px,1fr) 145px minmax(400px,2.5fr); }
 .customer-filters.has-brand-filter:not(.has-owner) .customer-filter-regions { grid-column:3; grid-row:1; }
 .customer-filters.is-partner .customer-filter-main { grid-template-columns:minmax(180px,1.15fr) 140px 120px minmax(400px,2.5fr); }
}
@container(max-width:700px) {
 .customer-filters.has-brand-filter .customer-filter-main { grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; }
 .customer-filters.has-brand-filter .customer-search { grid-column:1 / -1; }
 .customer-filters.has-brand-filter .customer-brand-filter { grid-column:1; grid-row:2; }
 .customer-filters.has-brand-filter.has-owner .customer-brand-filter { grid-column:2; }
 .customer-filters.has-brand-filter .customer-owner-filter { grid-column:1; grid-row:2; }
 .customer-filters.has-brand-filter .customer-archive-filter { grid-column:3; grid-row:2; }
 .customer-filters.has-brand-filter .customer-filter-regions { grid-row:3; }
}
.modal.store-brand-picker-dialog { width:min(840px,100%); height:min(560px,calc(100dvh - 56px)); display:flex; flex-direction:column; overflow:hidden; }
.store-brand-picker-dialog .modal-head,.store-brand-picker-dialog .modal-actions { flex:none; }
.store-brand-picker-dialog .modal-head { margin-bottom:16px; }
.store-brand-picker-dialog .modal-actions { margin-top:14px; padding-top:14px; }
.store-brand-picker { display:flex; flex-direction:column; flex:1; min-width:0; min-height:0; }
.store-brand-search,.store-brand-picker-meta { flex:none; }
.store-brand-search .input { width:100%; }
.store-brand-picker-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 0 8px; color:var(--ink-2); font-size:12px; }
.store-brand-picker-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:8px; flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.store-brand-picker-list > :is(.api-loading,.form-hint,.btn) { grid-column:1 / -1; }
.store-brand-picker [data-brand-picker-error] { flex:none; min-height:20px; margin:8px 0 0; }
.store-brand-option { display:flex; align-items:center; gap:8px; padding:10px; min-width:0; border:1px solid var(--line); border-radius:8px; background:var(--paper); color:var(--ink); font-size:13px; cursor:pointer; }
.store-brand-option:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); }
.store-brand-option:focus-within { outline:2px solid var(--accent); outline-offset:-2px; }
.store-brand-option>input { flex:none; accent-color:var(--accent); }
.store-brand-option>span { min-width:0; overflow-wrap:anywhere; }
.store-brand-option small { margin-left:5px; color:var(--ink-3); font-size:11px; }
.stores-map-layout.is-region-expanded.is-region-detailed { grid-template-columns:minmax(0,min(720px,calc(100% - 320px))) minmax(0,1fr); }
@media(max-width:760px) {
 .store-brand-picker-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .stores-map-layout.is-region-expanded.is-region-detailed { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:480px) {
 .modal.store-brand-picker-dialog { height:min(560px,calc(100dvh - 24px)); }
 .store-brand-picker-list { grid-template-columns:minmax(0,1fr); }
}

/* Reset belongs to the store display controls; the pool keeps its own reset by search. */
.store-view-controls { display:flex; align-items:center; justify-content:center; gap:10px; min-width:0; }
.store-view-controls .btn.store-filter-reset { flex:none; height:32px; min-width:64px; color:light-dark(#88520a,#f4c66d); border-color:light-dark(#e3c48b,#785c2d); background:light-dark(#fff6df,#382e1e); }
.store-view-controls .btn.store-filter-reset:hover { border-color:light-dark(#b48129,#d8ad56); background:light-dark(#ffedc4,#47381e); }
