/* PC customer list/map share filters, selection and the same stable map host. */
html:not([data-theme="dark"]) :is(.customer-workspace-panel,[data-store-shell]) { border-color:var(--line-2); }
[data-store-toolbar] { container-type:inline-size; }
[data-store-toolbar] .table-toolbar { display:flex; flex-wrap:wrap; gap:10px 9px; align-items:center; padding-block:12px; border-bottom:0; }
[data-store-toolbar] .tt-left { flex:none; width:auto; min-width:0; gap:7px; }
[data-store-toolbar] .tt-left>strong { flex:none; white-space:nowrap; }
[data-store-toolbar] .tt-center { display:flex; justify-content:flex-start; min-width:0; margin:0; padding-left:10px; border-left:1px solid var(--line); }
[data-store-toolbar] .tt-right { min-width:0; margin:0 0 0 auto; flex-wrap:wrap; gap:8px; }
.store-toolbar-filters,.store-selection-tools { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-width:0; }
[data-store-toolbar] .store-toolbar-filters .customer-owner-filter { width:112px; min-width:0; max-width:112px; padding-left:10px; padding-right:26px; background-position:right 8px center; }
[data-store-toolbar] .store-toolbar-filters .customer-brand-filter { width:104px; min-width:0; padding-inline:10px; }
[data-store-toolbar] .store-selection-tools .btn { height:32px; min-height:32px; white-space:nowrap; padding-inline:9px; }
.btn.selection-toggle { --selection-mark-ink:var(--on-accent,#fff); width:68px; min-width:68px; flex:none; justify-content:center; gap:6px; padding-inline:8px; white-space:nowrap; }
html[data-theme="dark"] .btn.selection-toggle { --selection-mark-ink:var(--on-accent,#172337); }
.selection-toggle-mark { display:inline-flex; align-items:center; justify-content:center; position:relative; box-sizing:border-box; width:14px; height:14px; flex:none; border:1px solid currentColor; border-radius:3px; color:inherit; }
.selection-toggle .selection-toggle-mark>.ico { width:10px; height:10px; color:inherit; opacity:0; }
.btn.selection-toggle[aria-pressed="true"] { color:var(--accent-strong,var(--accent)); border-color:color-mix(in srgb,var(--accent) 45%,var(--line)); background:var(--accent-soft); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 8%,transparent); }
.btn.selection-toggle[aria-pressed="true"] .selection-toggle-mark { color:var(--selection-mark-ink); border-color:var(--accent); background:var(--accent); }
.selection-toggle[aria-pressed="true"] .selection-toggle-mark>.ico { opacity:1; }
.selection-toggle[aria-pressed="mixed"] .selection-toggle-mark::after { content:""; width:6px; height:2px; position:absolute; background:currentColor; border-radius:1px; }
.selection-toggle .selection-toggle-mark.is-loading { border-color:transparent; background:transparent; }
.selection-toggle .selection-toggle-mark.is-loading::after { display:none; }
.selection-toggle-mark .mini-spinner { width:12px; height:12px; margin:0; }
[data-store-toolbar] .store-selection-tools .btn:disabled { opacity:.45; cursor:not-allowed; }
[data-store-toolbar] .store-selection-tools .store-batch-icon { width:32px; min-width:32px; padding:0; justify-content:center; }
[data-store-toolbar] .btn[data-store-export] { width:32px; min-width:32px; height:32px; min-height:32px; padding:0; justify-content:center; }
[data-store-toolbar] .btn[data-store-export][aria-busy="true"] { font-size:0; gap:0; }
.store-toolbar-visit { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
[data-store-toolbar] .select { width:auto; flex:0 0 auto; max-width:170px; font-size:12px; }
[data-store-toolbar] [data-store-visit-scope] { min-width:76px; }
[data-store-toolbar] [data-store-visit-sort] { min-width:140px; }
.store-page-tools { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.store-result-summary { display:flex; align-items:center; flex:none; flex-wrap:wrap; gap:4px 12px; padding:0; color:var(--ink-2); font-size:12px; }
.store-result-summary>span { white-space:nowrap; }
.store-result-summary strong { color:var(--ink); font-size:14px; font-variant-numeric:tabular-nums; }
[data-store-shell].is-map-view .store-result-summary { display:none; }
.store-result-selected b,.stores-map-selection b { color:var(--accent-strong,var(--accent)); font-weight:650; font-variant-numeric:tabular-nums; }
.store-view-toggle { display:inline-flex; align-items:center; flex:none; gap:2px; padding:2px; border:1px solid var(--line-2); border-radius:9px; background:var(--accent-soft); }
.store-view-toggle button { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:28px; padding:4px 9px; border:0; border-radius:6px; color:var(--ink-2); background:transparent; font:inherit; font-size:12px; line-height:18px; cursor:pointer; white-space:nowrap; }
.store-view-toggle button[aria-pressed="true"] { color:var(--accent-2); background:var(--paper); box-shadow:var(--shadow-xs); font-weight:650; }
@container (max-width:480px) {
  [data-store-toolbar] .tt-left { flex-basis:100%; }
  .store-toolbar-filters { width:100%; }
  [data-store-toolbar] .store-toolbar-filters :is(.select,.btn) { flex:1; width:0; max-width:none; }
  [data-store-toolbar] .tt-center { flex-basis:100%; justify-content:flex-start; padding-left:0; border-left:0; }
  [data-store-toolbar] .tt-right { margin-left:0; }
}
.store-view-toggle button:focus-visible,.stores-map-store-name:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
[data-store-list-panel][hidden],.stores-map-layout[hidden] { display:none; }
.stores-map-layout { display:grid; grid-template-columns:minmax(240px,300px) minmax(0,1fr); min-height:540px; height:clamp(540px,calc(100dvh - 290px),900px); border-top:1px solid var(--line); }
/* The desktop workspace receives the space left by its actual header/filter
   rows. A fixed viewport subtraction drifts whenever those controls wrap. */
@media(min-width:761px) {
  .main:has(> #view > .page > #stores-content > [data-store-shell]) { height:100dvh; min-height:100dvh; grid-template-rows:var(--topbar-h) auto minmax(0,1fr); align-content:stretch; padding-bottom:14px; }
  #stores-content:has(> [data-store-shell]) { display:flex; flex-direction:column; min-height:0; }
  #stores-content > [data-store-shell] { display:flex; flex-direction:column; flex:1; min-height:0; margin-bottom:0; }
  #stores-content [data-store-toolbar] { flex:none; }
  #stores-content [data-store-list-panel] { display:flex; flex-direction:column; flex:1; min-height:0; }
  #stores-content .store-table-wrap { flex:1; min-height:0; max-height:none; overflow:auto; }
  #stores-content [data-store-list-panel] > .table-foot { flex:none; }
  #stores-content [data-store-list-panel] > .empty { flex:1; }
  #stores-content [data-store-map-panel] { flex:1; height:auto; min-height:0; }
  #stores-content .stores-map-host { min-height:0; }
}
.stores-map-sidebar { min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; overflow-anchor:none; border-right:1px solid var(--line); background:var(--glass-soft); }
[data-store-map-sidebar] { display:flow-root; padding-top:0; }
[data-store-map-sidebar]>.stores-region-sales:first-child { margin-top:10px; }
.stores-map-host { position:relative; grid-column:2; grid-row:1; min-width:0; min-height:460px; height:100%; overflow:hidden; }
.stores-map-side-list { padding:8px 9px 12px; }
.stores-map-card { min-width:0; padding:11px 10px; margin:0 0 8px; border:1px solid var(--line-strong); border-radius:10px; background:var(--paper); transition:background-color .12s,border-color .12s; }
.stores-map-card:hover { background:var(--accent-soft); border-color:var(--accent); }
.stores-map-card.is-active { background:var(--accent-soft); border-color:var(--line-strong); }
.stores-map-card-top { display:flex; align-items:center; gap:6px; min-width:0; margin-bottom:6px; }
.stores-map-card-top>input { margin:0; accent-color:var(--accent); flex:none; }
.stores-map-card-top>.type-label { margin-right:auto; font-size:11px; }
.stores-map-card-top :is(.visit-badge,.pill) { font-size:10px; }
.stores-map-store-name { display:block; padding:0; width:100%; border:0; background:transparent; color:var(--ink); text-align:left; font:inherit; font-size:13px; font-weight:650; line-height:1.55; overflow-wrap:anywhere; cursor:pointer; }
.stores-map-card p { margin:5px 0 7px; font-size:11px; line-height:1.6; color:var(--ink-2); overflow-wrap:anywhere; }
.stores-map-card-meta { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; color:var(--ink-2); }
.stores-map-card-meta>small { color:var(--ink-3); font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stores-map-unlocated { font-size:10px; color:var(--ink-3); padding:2px 5px; border-radius:4px; background:var(--line); white-space:nowrap; }
.stores-map-card-actions { display:flex; align-items:center; gap:4px; flex-wrap:nowrap; margin-top:10px; }
.stores-map-card-actions .btn { flex:none; min-height:29px; height:29px; padding:3px 6px; gap:4px; font-size:11px; white-space:nowrap; }
.stores-map-card-actions .stores-map-navigation { width:29px; padding:0; margin-left:auto; }
.stores-map-sales { padding:0 22px 22px; min-width:0; }
.stores-region-sales { margin:0 10px 10px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.stores-region-title { display:flex; align-items:center; gap:6px; color:var(--ink); font-size:15px; }
.stores-region-title>strong { flex:1; min-width:0; overflow-wrap:anywhere; font-weight:700; }
.stores-region-place { color:var(--accent-2); font-size:10px; white-space:nowrap; }
.stores-region-title .icon-btn { width:24px; height:24px; min-height:24px; font-size:18px; }
.stores-region-caption { display:block; margin-top:3px; color:var(--ink-3); font-size:11px; line-height:1.6; }
.stores-region-amounts { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:12px 0 9px; }
.stores-region-amount { display:grid; gap:3px; margin:0; min-width:0; }
.stores-region-amount small { color:var(--ink-2); font-size:11px; }
.stores-region-amount strong { color:var(--ink); font-size:20px; font-weight:650; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.stores-region-previous { display:grid; gap:5px; color:var(--ink-2); min-width:0; text-align:right; }
.stores-region-previous small { font-size:10px; }.stores-region-previous span { font-size:11px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.stores-region-change { display:flex; justify-content:space-between; align-items:baseline; gap:8px; font-size:11px; color:var(--ink-2); }
.stores-region-change b { text-align:right; font-weight:600; font-variant-numeric:tabular-nums; }
.stores-region-change b small { display:block; color:var(--ink-3); font-size:10px; font-weight:500; margin-top:2px; }
.stores-region-change.is-up b,.stores-region-rank-change.is-up { color:#247b67; }.stores-region-change.is-down b,.stores-region-rank-change.is-down { color:#b24d6a; }
[data-theme="dark"] .stores-region-change.is-up b,[data-theme="dark"] .stores-region-rank-change.is-up { color:#8bd5bd; }[data-theme="dark"] .stores-region-change.is-down b,[data-theme="dark"] .stores-region-rank-change.is-down { color:#f0a5b8; }
.stores-region-counts { display:flex; justify-content:space-between; gap:8px; margin-top:11px; color:var(--ink-2); font-size:11px; }
.stores-region-counts b { color:var(--ink); font-weight:600; }
.stores-region-activity { display:flex; align-items:baseline; justify-content:space-between; gap:6px; margin-top:7px; padding-bottom:9px; border-bottom:1px solid var(--line); color:var(--ink-2); font-size:11px; }
.stores-region-activity strong { color:var(--ink); font-size:15px; font-variant-numeric:tabular-nums; }.stores-region-activity small { color:var(--ink-3); font-size:10px; font-weight:500; }
.stores-region-ranking { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.stores-region-ranking-title { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11px; color:var(--ink-2); }.stores-region-ranking-title small { color:var(--ink-3); font-weight:400; font-size:10px; }
.stores-region-rank-columns { display:none; }
.stores-region-rank-list { max-height:264px; overflow:auto; margin-top:5px; }
.stores-region-rank-list button { display:grid; grid-template-columns:18px minmax(0,1fr) auto; align-items:center; gap:2px 6px; width:100%; padding:6px 0; border:0; border-radius:5px; background:transparent; color:var(--ink-2); text-align:left; font:inherit; font-size:11px; cursor:pointer; }
.stores-region-rank-list button:hover,.stores-region-rank-list button:focus-visible { background:var(--accent-soft); }.stores-region-rank-list button:focus-visible { outline:1px solid var(--accent); outline-offset:-1px; }
.stores-region-rank-list .hc-region-rank { grid-column:1; grid-row:1 / 3; }
.stores-region-rank-name { grid-column:2; grid-row:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stores-region-rank-amount { grid-column:3; grid-row:1; color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
.stores-region-rank-change { grid-column:2 / -1; grid-row:2; justify-self:end; color:var(--ink-3); font-size:10px; font-variant-numeric:tabular-nums; white-space:nowrap; }
.stores-region-rank-change>span { color:var(--ink-3); }
.stores-region-rank-list [data-rank="1"] { background:#7562c1;color:#fff; }
.stores-region-period { color:var(--ink-3); font-size:11px; line-height:1.65; margin-top:10px; }
.stores-region-period summary { cursor:pointer; }.stores-region-period p { margin:5px 0 0; }
.stores-region-error { color:var(--ink-2); font-size:12px; line-height:1.7; }
.stores-region-brands { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); font-size:11px; }
.stores-region-brands-heading { display:flex; align-items:center; gap:5px; margin-bottom:5px; color:var(--ink-2); }
.stores-region-brands-heading>strong { font-weight:600; }
.stores-region-brand-help { position:relative; }
.stores-region-brand-help summary { display:flex; align-items:center; justify-content:center; width:16px; height:16px; border:1px solid var(--line); border-radius:50%; cursor:pointer; list-style:none; color:var(--ink-3); font-size:10px; }
.stores-region-brand-help summary::-webkit-details-marker { display:none; }
.stores-region-brand-help summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.stores-region-brand-help[open] { position:static; }
.stores-region-brands:has(.stores-region-brand-help[open]) .stores-region-brands-heading { flex-wrap:wrap; }
.stores-region-brand-help[open] p { margin:5px 0 7px; }
.stores-region-brand { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:baseline; column-gap:8px; row-gap:2px; padding:5px 0; }
.stores-region-brand-main { grid-column:1; grid-row:1; min-width:0; }
.stores-region-brand-sales { grid-column:2; grid-row:1; white-space:nowrap; }
.stores-region-brand-coverage,.stores-region-brand-active { grid-column:1/-1; }
.stores-region-brand-main,.stores-region-brand-coverage { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.stores-region-brand-main>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink-2); }
.stores-region-brand-coverage { margin-top:3px; color:var(--ink-3); font-size:10px; font-variant-numeric:tabular-nums; }
.stores-region-brand-coverage>small { flex:none; font-size:10px; white-space:nowrap; }
.stores-region-brand-coverage b { color:var(--ink-2); font-weight:500; }
.stores-region-brand-active { display:flex; justify-content:flex-end; gap:3px; margin-top:1px; color:var(--ink-3); font-size:10px; font-variant-numeric:tabular-nums; }
.stores-region-brand-active b { color:var(--ink-2); font-weight:500; }
.stores-region-brands .stores-region-brand-unknown { margin:2px 0 0; font-size:10px; }
.stores-region-brands b { flex:none; font-variant-numeric:tabular-nums; color:var(--ink); font-weight:600; }
.stores-region-brands p { color:var(--ink-3); line-height:1.6; margin:5px 0; }
.stores-map-layout { position:relative; }
.stores-region-title .stores-region-expand { display:inline-flex; align-items:center; justify-content:center; gap:3px; flex:none; min-height:27px; padding:3px 7px; border:1px solid var(--line-2); border-radius:6px; background:var(--paper); color:var(--ink-2); font:inherit; font-size:11px; cursor:pointer; }
.stores-region-expand svg { width:13px; height:13px; }
.stores-region-expand:hover { border-color:var(--line-strong); background:var(--accent-soft); color:var(--accent-2); }
.stores-region-expand:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.stores-map-layout.is-region-expanded { grid-template-columns:minmax(0,min(460px,52%)) minmax(0,1fr); }
.stores-map-layout.is-region-expanded .stores-map-sidebar { position:relative; width:auto; max-width:none; border-right:1px solid var(--line-strong); background:var(--paper); }
.stores-map-layout.is-region-expanded .stores-region-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:start; gap:9px; padding:9px 0; border-bottom:1px solid var(--line); }
.stores-map-layout.is-region-expanded .stores-region-counts,.stores-map-layout.is-region-expanded .stores-region-activity,.stores-map-layout.is-region-expanded .stores-region-amounts,.stores-map-layout.is-region-expanded .stores-region-change { display:grid; align-content:start; justify-content:stretch; gap:3px; min-width:0; margin:0; padding:0; border:0; text-align:left; }
.stores-map-layout.is-region-expanded .stores-region-counts>span { display:block; line-height:1.5; }
.stores-map-layout.is-region-expanded .stores-region-activity { font-size:10px; }
.stores-map-layout.is-region-expanded .stores-region-activity strong { font-size:15px; }
.stores-map-layout.is-region-expanded .stores-region-activity small { display:block; }
.stores-map-layout.is-region-expanded .stores-region-amounts { display:grid; grid-template-columns:1fr; align-items:start; gap:5px; }
.stores-map-layout.is-region-expanded .stores-region-amount strong { font-size:16px; }
.stores-map-layout.is-region-expanded .stores-region-previous { text-align:left; gap:2px; }
.stores-map-layout.is-region-expanded .stores-region-change { font-size:10px; }
.stores-map-layout.is-region-expanded .stores-region-change b { text-align:left; }
.stores-map-layout.is-region-expanded .stores-region-change b small { margin-top:0; }
.stores-map-layout.is-region-expanded .stores-region-metrics>.stores-region-caption { grid-column:1/-1; margin:0; }
.stores-map-layout.is-region-expanded .stores-region-period { grid-column:1/-1; }
.stores-map-layout.is-region-expanded .stores-region-rank-columns,.stores-map-layout.is-region-expanded .stores-region-rank-list button { display:grid; grid-template-columns:18px minmax(0,1fr) minmax(82px,auto) minmax(94px,auto); column-gap:8px; }
.stores-map-layout.is-region-expanded .stores-region-rank-columns { padding:6px 0; margin-top:4px; border-bottom:1px solid var(--line); color:var(--ink-3); font-size:10px; }
.stores-map-layout.is-region-expanded .stores-region-rank-columns>span:first-child { grid-column:1 / 3; }
.stores-map-layout.is-region-expanded .stores-region-rank-columns>span:not(:first-child) { text-align:right; }
.stores-map-layout.is-region-expanded .stores-region-rank-list .hc-region-rank { grid-row:1; }
.stores-map-layout.is-region-expanded .stores-region-rank-change { grid-column:4; grid-row:1; }
.stores-map-layout.is-region-expanded .stores-region-rank-change>span { display:none; }
.stores-region-brand-columns { display:none; }
.stores-region-brand-sales { display:flex; justify-content:flex-end; align-items:baseline; font-size:11px; }
.stores-region-brand-sales b { font-weight:600; }
.stores-region-brand { border-bottom:1px solid var(--line); }
.stores-region-brand:last-child { border-bottom:0; }
.stores-map-layout.is-region-expanded .stores-region-brands { --region-brand-columns:minmax(62px,1.05fr) minmax(60px,.8fr) minmax(98px,1.45fr) minmax(74px,1.15fr); }
.stores-map-layout.is-region-expanded .stores-region-brand-columns,.stores-map-layout.is-region-expanded .stores-region-brand { display:grid; grid-template-columns:var(--region-brand-columns); align-items:center; column-gap:9px; }
.stores-map-layout.is-region-expanded .stores-region-brand-columns { padding:4px 0; border-bottom:1px solid var(--line-strong); color:var(--ink-3); font-size:10px; }
.stores-map-layout.is-region-expanded .stores-region-brand { padding:7px 0; }
.stores-map-layout.is-region-expanded .stores-region-brand-main,.stores-map-layout.is-region-expanded .stores-region-brand-sales,.stores-map-layout.is-region-expanded .stores-region-brand-coverage,.stores-map-layout.is-region-expanded .stores-region-brand-active { grid-column:auto; grid-row:auto; min-width:0; margin:0; justify-content:flex-start; }
.stores-map-layout.is-region-expanded .stores-region-brand-main>span { white-space:normal; overflow-wrap:anywhere; }
.stores-map-layout.is-region-expanded .stores-region-brand-sales { justify-content:flex-start; }
.stores-map-layout.is-region-expanded .stores-region-brand-coverage { display:grid; gap:1px; }
.stores-map-layout.is-region-expanded .stores-region-brand-coverage>small { white-space:normal; }
.stores-map-layout.is-region-expanded .stores-region-brand-active { display:block; line-height:1.5; }
.stores-map-layout.is-region-expanded .stores-region-brand-unknown { grid-column:1/-1; }
.stores-map-layout.is-region-expanded .stores-region-brands-heading { margin-bottom:3px; }
.stores-map-layout.is-region-expanded .stores-region-brands-heading>strong { font-size:12px; }
.stores-region-zoom { width:100%; margin-top:12px; }
.stores-map-selected { margin:9px; padding:7px; border:1px solid var(--line-strong); border-left:3px solid var(--accent); border-radius:12px; background:var(--accent-soft); background:color-mix(in srgb,var(--accent-soft) 65%,var(--paper)); }
.stores-map-selected-label { display:flex; align-items:center; gap:4px; padding:2px 8px 0; color:var(--accent-2); font-size:10px; font-weight:650; }
.stores-map-selected .stores-map-card { margin:0; border:0; background:transparent; }
.stores-map-selected .stores-map-card { padding:9px 6px 6px; }
.stores-map-side-list .stores-map-card.is-active { background:var(--paper); border-color:var(--line-strong); }
.stores-map-side-list .stores-map-card.is-active:hover { background:var(--accent-soft); }
.stores-map-status { margin:0; padding:14px; font-size:12px; color:var(--ink-2); line-height:1.7; }
.stores-map-load-error { display:grid; gap:8px; padding:12px; font-size:12px; line-height:1.6; color:var(--ink-2); border-bottom:1px solid var(--line); }
.stores-map-load-error>.btn { justify-self:start; }
.stores-map-more.btn { display:flex; justify-content:center; gap:8px; width:100%; margin-top:8px; font-size:12px; }
.stores-map-more>span { color:var(--ink-3); }
.customer-address-title { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:28px; }
.customer-address-actions { display:inline-flex; align-items:center; gap:4px; }
.customer-edit-form .customer-address-actions .btn { min-height:26px; height:26px; padding:2px 7px; border-radius:7px; font-size:11px; }
.customer-address-actions .icon-btn { width:26px; height:26px; min-height:26px; border-radius:7px; color:var(--ink-3); }
[data-theme="dark"] .store-view-toggle button[aria-pressed="true"] { background:rgba(122,139,217,.2); }
@media(max-width:1100px) { .stores-map-layout { grid-template-columns:245px minmax(0,1fr); } }
@media(max-width:760px) { .stores-map-layout { display:flex; flex-direction:column-reverse; height:auto; min-height:0; } .stores-map-host { height:440px; flex:none; } .stores-map-sidebar { max-height:420px; border-right:0; border-top:1px solid var(--line); } .stores-region-expand,.stores-map-layout.is-region-expanded .stores-region-expand { display:none; } .stores-map-layout.is-region-expanded .stores-map-sidebar { position:relative; inset:auto; width:auto; max-width:none; box-shadow:none; } .stores-map-layout.is-region-expanded .stores-region-metrics { display:block; } .stores-map-layout.is-region-expanded .stores-region-counts { display:flex; justify-content:space-between; } .stores-map-layout.is-region-expanded .stores-region-activity { display:flex; justify-content:space-between; } .stores-map-layout.is-region-expanded .stores-region-amounts { display:flex; justify-content:space-between; } .stores-map-layout.is-region-expanded .stores-region-change { display:flex; justify-content:space-between; } .stores-map-layout.is-region-expanded .stores-region-brand-columns { display:none; } .stores-map-layout.is-region-expanded .stores-region-brand { display:grid; grid-template-columns:minmax(0,1fr) auto; } .stores-map-layout.is-region-expanded .stores-region-brand-coverage,.stores-map-layout.is-region-expanded .stores-region-brand-active { grid-column:1/-1; } }
@media(prefers-reduced-motion:reduce) { .stores-map-card { transition:none; } }

/* The workspace keeps secondary filters beside its tabs rather than opening
   another row over the map. Selection commands occupy a stable toolbar. */
.customer-workspace-panel { padding-top:13px; padding-bottom:13px; margin-bottom:14px; }
.customer-workspace-panel .customer-content-topline.has-scope-stats { display:flex; flex-wrap:wrap; justify-content:flex-start; gap:10px 14px; }
.customer-workspace-panel .customer-scope-stats { flex:0 1 auto; justify-content:flex-start; min-height:32px; }
.customer-workspace-panel .customer-scope-stat { padding-inline:6px; gap:5px; font-size:12px; }
.customer-workspace-panel .customer-scope-stat:first-child { padding-left:0; }
.customer-workspace-panel .customer-scope-stat strong { font-size:16px; }
.customer-top-actions,.customer-top-filters { display:flex; align-items:center; gap:7px; min-width:0; flex-wrap:wrap; }
.customer-top-actions { margin-left:auto; }
.customer-top-filters:empty { display:none; }
.customer-top-filters > label { display:block; margin:0; }
.customer-top-filters > label[hidden] { display:none; }
.customer-workspace-panel .customer-top-actions :is(.select,.btn) { box-sizing:border-box; height:34px; min-height:34px; border-radius:9px; font-size:12px; }
.customer-top-actions .select { width:112px; min-width:0; max-width:160px; }
.customer-top-actions #store-status { width:128px; }
.customer-top-actions #store-reminder { width:116px; }
.customer-top-actions #store-location { width:100px; }
.customer-top-actions #store-grade { width:108px; }
.customer-top-actions #store-newCustomer { width:108px; }
.customer-top-actions #store-salesStatus { width:132px; }
.customer-workspace-panel .customer-filters { margin-top:11px; }
.customer-workspace-panel .customer-filters :is(.input,.select,.btn) { height:34px; min-height:34px; border-radius:9px; }
.customer-workspace-panel .customer-scope-note { display:none; }
.stores-map-list-progress { display:flex; align-items:baseline; flex-wrap:wrap; gap:3px 12px; padding:7px 12px 0; color:var(--ink-2); font-size:11px; line-height:1.5; }
[data-store-map-sidebar]>.stores-map-list-progress:first-child { padding-top:9px; }
[data-store-map-sidebar]>:is(.stores-region-sales,.stores-map-selected):has(+.stores-map-list-progress) { margin-bottom:0; }
[data-store-map-sidebar]>:is(.stores-map-status,.stores-map-load-error):has(+.stores-map-list-progress) { padding-bottom:7px; }
[data-store-map-sidebar]>:is(.stores-map-status,.stores-map-load-error)+.stores-map-list-progress { padding-top:0; }
.stores-map-list-progress > span { white-space:nowrap; }
@container(max-width:900px) {
  .customer-workspace-panel .customer-content-topline.has-scope-stats > .customer-scope-stats { flex:none; width:auto; border:0; padding-top:0; }
  .customer-workspace-panel .customer-top-actions { margin-left:0; }
}
@container(max-width:480px) {
  .customer-workspace-panel .customer-scope-stats { width:100%; display:flex; flex-wrap:wrap; gap:8px 0; }
  .customer-workspace-panel .customer-scope-stat { border:0; padding:0 12px 0 0; }
  .customer-top-actions { width:100%; }
  .customer-top-filters { flex:1; }
  .customer-top-filters > :is(select,label) { flex:1 1 100px; }
  .customer-top-actions .select { width:100%; max-width:none; }
}

/* Archive discovery filters stay together; owner and brand live beside selection. */
.customer-workspace-panel .customer-filters.is-archive-filter .customer-filter-main { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.customer-filters.is-archive-filter .customer-search { flex:1 1 220px; min-width:190px; }
.customer-filters.is-archive-filter .customer-filter-main>.select { flex:1 1 108px; width:108px; min-width:94px; max-width:160px; }
.customer-filters.is-archive-filter .customer-top-filters { display:contents; }
.customer-filters.is-archive-filter .customer-top-filters>.select { flex:1 1 112px; width:112px; min-width:94px; max-width:160px; }
.customer-filters.is-archive-filter #store-location,.customer-filters.is-archive-filter #store-archived { flex-basis:94px; width:94px; max-width:110px; }
@container(max-width:700px) {
  .customer-filters.is-archive-filter .customer-search { flex-basis:100%; min-width:0; }
  .customer-filters.is-archive-filter :is(.customer-filter-main>.select,.customer-top-filters>.select) { flex:1 1 130px; max-width:none; }
}
