/* PC3 management layouts. */
.mg-dashboard{--mg-track:rgba(125,137,185,.14);min-width:0}.mg-filter{padding:18px 20px;margin-bottom:14px}.mg-filter-primary,.mg-filter-secondary{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}.mg-filter .field{margin:0;flex:1 1 128px;min-width:120px;max-width:220px}.mg-filter .field>span{font-size:12px}.mg-filter .select{width:100%;height:38px;min-height:38px}.mg-filter-tools{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto;align-self:flex-end}.mg-filter .btn{height:38px;min-height:38px;padding:0 14px;font-size:13px;white-space:nowrap}.mg-filter .mg-view-switch{color:var(--accent);background:var(--accent-soft);border-color:transparent}.mg-advanced{margin-top:14px}.mg-advanced>summary{font-size:12px;cursor:pointer;display:flex;gap:5px;align-items:center;color:var(--text-2,#4b5578)}.mg-filter-secondary{padding-top:12px}.mg-scope{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:12px 2px 16px;font-size:13px}.mg-scope small{color:var(--muted,#69738f)}.mg-composition{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.mg-trends-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:18px;margin-bottom:18px}.mg-trend-panel{min-width:0}.mg-trend{width:100%;height:auto;min-height:195px;display:block}.mg-axis{fill:var(--text-2,#5b6685);font:12px "Microsoft YaHei",sans-serif}.mg-grid-line{stroke:rgba(125,137,185,.17);stroke-width:1}.mg-trend-line{stroke:#6c8aff;stroke-width:3;fill:none}.mg-month-hit{fill:transparent}.mg-month[role=button]{cursor:pointer}.mg-month.selected .mg-month-hit,.mg-month:hover .mg-month-hit,.mg-month:focus .mg-month-hit{fill:rgba(108,138,255,.1)}.mg-month:focus{outline:none}.mg-month:focus .mg-month-hit{stroke:var(--accent,#6c8aff);stroke-width:1.5}.mg-segments{display:inline-flex;gap:3px;padding:3px;border-radius:10px;background:var(--mg-track);flex:none}.mg-segments button{border:0;background:transparent;border-radius:7px;padding:6px 9px;font-size:12px;color:inherit;white-space:nowrap;cursor:pointer}.mg-segments [aria-pressed=true]{background:var(--panel-bg,rgba(255,255,255,.9));box-shadow:0 1px 3px rgba(35,47,105,.07);color:var(--accent,#6c8aff)}.mg-chart-legend{display:flex;gap:14px;font-size:11px;color:var(--text-2,#5b6685);flex-wrap:wrap}.mg-chart-legend span{display:inline-flex;gap:5px;align-items:center}.mg-chart-legend i{height:7px;width:7px;border-radius:2px}.mg-table-details{margin-top:10px}.mg-table-details summary,.mg-notes summary{cursor:pointer;font-size:12px;color:var(--text-2,#5b6685);padding:8px 0}.mg-city-button{border:0;background:transparent;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}.mg-city-button:disabled{cursor:default}.mg-city-button:hover{background:var(--mg-track);border-radius:10px}.mg-legend-button{padding:0;text-align:left;color:inherit;font-size:12px}.mg-legend-button:disabled{opacity:1;cursor:default}.mg-notes{font-size:12px;line-height:1.9;margin-top:18px}.mg-notes ul{padding-left:20px}.mg-dashboard [data-mg-panels]{display:grid;gap:18px;min-width:0}.mg-dashboard [data-mg-panels]>*{min-width:0;margin:0}.mg-dashboard [data-mg-panels]>.kpi-grid+.analytics-grid{margin-top:0}.mg-dashboard .panel-head{gap:12px;flex-wrap:wrap}.mg-dashboard .city-list{max-height:365px;overflow:auto}.mg-dashboard .donut-legend{max-height:280px;overflow:auto;min-width:0}.mg-dashboard .donut-legend li{gap:7px}.mg-dashboard .donut{flex:none}.mg-dashboard .table{min-width:560px}.mg-dashboard .error-text:empty{display:none}.mg-dashboard .table-wrap{max-width:100%;overflow:auto}.mg-dashboard [aria-busy=true]{cursor:progress}html[data-theme=dark] .mg-segments [aria-pressed=true]{background:#293248;color:#b9c7ff}html[data-theme=dark] .mg-axis{fill:#b7c1d9}html[data-theme=dark] .mg-scope small,html[data-theme=dark] .mg-notes{color:#b7c1d9}.mg-team-tabs{display:flex;gap:4px;align-items:center;margin-bottom:18px}.mg-team-warning{padding:12px 16px;font-size:12px;border-radius:12px;background:rgba(245,178,71,.1);margin-bottom:16px}.mg-setting-nav{display:flex;gap:6px;flex-wrap:wrap;position:sticky;top:10px;z-index:2;padding:10px 0}.mg-setting-nav button{height:34px}.mg-setting-nav .is-active{color:var(--accent,#6c8aff);background:rgba(108,138,255,.12)}.mg-settings-page>[data-settings-pane][hidden]{display:none}.mg-audit-empty{padding:28px;text-align:center;color:var(--text-2,#5b6685)}
@media(min-width:1181px){.mg-composition-three{grid-template-columns:repeat(3,minmax(0,1fr))}.mg-composition-three>.panel{min-width:0}.mg-dashboard .mg-composition-three .donut-body{flex-wrap:wrap;justify-content:center}.mg-dashboard .mg-composition-three .donut-legend{flex:1 1 155px}}
@media(max-width:1420px){.mg-trends-grid{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr)}.mg-dashboard .donut-body{flex-wrap:wrap;justify-content:center}.mg-dashboard .donut-legend{flex:1 1 180px}.mg-filter .field{max-width:none}}
@media(max-width:1180px){.mg-trends-grid,.mg-composition{grid-template-columns:minmax(0,1fr)}.mg-dashboard .donut-body{flex-wrap:nowrap;justify-content:space-evenly}.mg-dashboard .donut-legend{flex:1}.mg-trends-grid>.coverage-panel{min-height:280px}}
@media(max-width:600px){.mg-filter{padding:14px}.mg-filter .field{flex:1 1 calc(50% - 12px);min-width:0;max-width:none}.mg-filter-tools{width:100%;justify-content:flex-end}.mg-dashboard .donut-body{flex-wrap:wrap}.mg-dashboard .donut-legend{flex:1 1 100%}.mg-dashboard .panel-head .mg-segments{margin-left:0}.mg-trend{min-width:330px}.mg-trend-panel{overflow:auto}.mg-scope{font-size:12px}.mg-filter-secondary{gap:10px}}
.mg-quick-links{display:flex;flex-wrap:wrap;gap:10px;padding:8px 0 16px}.mg-dash-lower{grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr)}.mg-dash-lower .table-wrap{max-width:100%;overflow:auto}.mg-dash-lower .table{min-width:520px}.mg-dash-lower>section{min-width:0}.mg-dash-lower .team-mini-list{max-height:440px;overflow:auto}.mg-dash-lower .tm-main small{font-size:11px;color:var(--text-2,#5b6685)}
@media(max-width:1250px){.mg-dash-lower{grid-template-columns:minmax(0,1fr)}}

/* Management parity: compact audit filters and source-aware sales facts. */
.audit-filters{flex-wrap:wrap}.audit-filters .input[type=date]{width:144px;min-width:132px;height:36px}.audit-filters .error-text{flex-basis:100%;margin:0}.audit-filters .error-text:empty{display:none}.mg-audit-details{display:grid;gap:0;margin:0}.mg-audit-details>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px;padding:12px 0;border-bottom:1px solid var(--line,rgba(125,137,185,.18))}.mg-audit-details dt{color:var(--text-2,#5b6685);font-size:13px}.mg-audit-details dd{margin:0;min-width:0}.mg-audit-details pre{margin:0;font:13px/1.7 "Microsoft YaHei",sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;color:inherit}.mg-sales-brand-metrics{margin-top:18px}.mg-sales-brand-metrics .table-toolbar p{margin:6px 0 0;font-size:12px;color:var(--text-2,#5b6685)}.mg-sales-source-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 0}.mg-sales-source-checks label{display:flex;align-items:flex-start;gap:8px;min-width:0;font-size:13px}.mg-sales-source-checks small{display:block;color:var(--text-2,#5b6685);font-size:11px;line-height:1.7}.mg-field-templates{margin:14px 0}.mg-field-templates .form-hint{flex:1 1 240px}#sales-compare .customer-comparison-form{margin:14px 0}#sales-compare .customer-match-controls{max-width:650px}#sales-compare [data-compare-candidates]:empty{display:none}
@media(max-width:600px){.audit-filters{width:100%;justify-content:flex-start}.audit-filters .input[type=date]{width:calc(50% - 18px);min-width:0}.mg-audit-details>div{grid-template-columns:1fr;gap:5px}.mg-sales-source-checks{grid-template-columns:1fr}.mg-sales-brand-metrics .table-wrap{max-width:100%;overflow:auto}.mg-sales-brand-metrics .table{min-width:650px}}

/* Analytics: one explicit time scope, readable legends and balanced charts. */
.mg-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.mg-filter-heading .mg-filter-tools{margin:0;align-self:auto}
.mg-period-presets{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.mg-period-presets button{height:36px;min-width:54px;padding:0 12px;border:1px solid var(--line-2,rgba(125,137,185,.18));border-radius:10px;background:var(--glass,rgba(255,255,255,.55));color:var(--ink-2,#4b5578);font-family:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.mg-period-presets button:hover{border-color:var(--accent);background:var(--accent-soft)}
.mg-period-presets button[aria-pressed=true]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent-soft)}
.mg-period-presets button:focus-visible,.mg-team-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.mg-dashboard .mg-filter-primary .field{max-width:175px;flex:0 1 150px}
.mg-dashboard .mg-filter-primary .field:nth-child(-n+2){flex-basis:110px;min-width:100px}
.mg-dashboard .mg-trends-grid{grid-template-columns:minmax(0,1fr) minmax(250px,285px);align-items:stretch}
.mg-dashboard .panel-head h3{font-size:15px;line-height:1.45}
.mg-dashboard .panel-head p{font-size:12px;line-height:1.65;color:var(--ink-3,#6c7794)}
.mg-dashboard .mg-chart-legend{font-size:12px;color:var(--ink-2,#4b5578);margin-bottom:5px}
.mg-dashboard .coverage-panel{display:flex;flex-direction:column;justify-content:center;padding:20px}
.mg-dashboard .coverage-panel .panel-head{align-items:flex-start;gap:8px;margin-bottom:20px}
.mg-dashboard .coverage-panel .panel-tag{font-size:12px;color:var(--accent);background:var(--accent-soft)}
.mg-dashboard .coverage-hero{gap:14px;margin:0 0 22px}
.mg-dashboard .cov-ring{width:82px;height:82px;background:conic-gradient(from -90deg,#45cda5 0 calc(var(--v)*1%),var(--mg-track) 0 100%);box-shadow:none}
.mg-dashboard .cov-ring::before{inset:7px}
.mg-dashboard .cov-ring .sla-ring-inner strong{font-size:24px;color:var(--ink,#1f2743)}
.mg-dashboard .cov-ring .sla-ring-inner span{font-size:11px;color:var(--ink-3,#6c7794)}
.mg-dashboard .coverage-hero>div:last-child{min-width:0}
.mg-dashboard .coverage-hero>div:last-child strong{font-size:24px;color:var(--ink,#1f2743);line-height:1.4;overflow-wrap:anywhere}
.mg-dashboard .coverage-hero>div:last-child strong small{font-size:12px;color:var(--ink-3,#6c7794)}
.mg-dashboard .coverage-hero>div:last-child p{font-size:12px;color:var(--ink-2,#4b5578);margin-top:2px}
.mg-dashboard .coverage-hero>div:last-child span{font-size:12px;color:var(--ink-3,#6c7794);line-height:1.7}
.mg-dashboard .coverage-legend{font-size:12px;color:var(--ink-2,#4b5578);gap:10px 16px;margin-top:12px}
.mg-dashboard .coverage-legend i{width:8px;height:8px}
.mg-dashboard .mg-composition-three{grid-template-columns:minmax(0,1.12fr) repeat(2,minmax(0,1fr));align-items:stretch}
.mg-dashboard .mg-composition-three>.panel{min-width:0;padding:20px}
.mg-dashboard .mg-composition-three .donut-body{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:18px 14px}
.mg-dashboard .donut{width:112px;height:112px;box-shadow:none}
.mg-dashboard .donut::before{inset:12%;box-shadow:none}
.mg-dashboard .donut-hole{background:transparent}
html[data-theme=dark] .mg-dashboard .donut-hole{background:transparent}
.mg-dashboard .donut-hole strong{font-size:25px;color:var(--ink,#1f2743)}
.mg-dashboard .donut-hole span{font-size:11px;color:var(--ink-3,#6c7794);margin-top:4px}
.mg-dashboard .mg-composition-three .donut-legend{flex:1 1 145px;width:auto;padding:0;margin:0;gap:3px;max-height:290px}
.mg-dashboard .donut-legend li{display:grid;grid-template-columns:8px minmax(0,1fr) max-content 38px;gap:7px;min-height:30px;color:var(--ink-2,#4b5578)}
.mg-dashboard .donut-legend i{width:8px;height:8px}
.mg-dashboard .donut-legend span,.mg-dashboard .mg-legend-button{font-size:13px;line-height:1.5;color:var(--ink-2,#4b5578);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mg-dashboard .mg-legend-button{justify-self:start;max-width:100%;margin-left:0}
.mg-dashboard .donut-legend b{font-size:14px;font-weight:650;color:var(--ink,#1f2743)}
.mg-dashboard .donut-legend small{width:auto;font-size:12px;color:var(--ink-3,#6c7794);text-align:right}
.mg-dashboard .donut-legend .mg-chart-empty{display:block;font-size:13px}
.mg-dashboard .city-list{gap:5px;max-height:304px;padding-right:3px}
.mg-dashboard .city-row{gap:9px;padding:9px 3px;min-height:49px}
.mg-dashboard .city-rank{width:23px;font-size:12px;font-variant-numeric:tabular-nums;color:var(--ink-3,#6c7794)}
.mg-dashboard .city-top{gap:8px;margin-bottom:7px;flex-wrap:wrap}
.mg-dashboard .city-top strong{font-size:14px;font-weight:600;line-height:1.4;color:var(--ink,#1f2743)}
.mg-dashboard .city-top span{font-size:12px;line-height:1.4;color:var(--ink-3,#6c7794)}
.mg-dashboard .city-top em{font-style:normal;color:var(--ink-2,#4b5578)}
.mg-dashboard .city-top b{font-size:12px;font-weight:650;margin-left:9px;color:var(--accent)}
.mg-dashboard .city-bar{height:6px}
.mg-dashboard .mg-axis{font-size:13px}
html[data-theme=dark] .mg-period-presets button{background:rgba(125,146,193,.08);color:var(--ink-2)}
html[data-theme=dark] .mg-period-presets button[aria-pressed=true]{background:var(--accent-soft);color:#c4d0ff;border-color:#839bea}
html[data-theme=dark] .mg-dashboard .donut-legend span,html[data-theme=dark] .mg-dashboard .mg-legend-button{color:var(--ink-2)}

/* Team navigation shares the KPI row; all team filter chips share one width. */
.mg-team-page .team-stats.mg-team-stats{grid-template-columns:158px repeat(4,minmax(0,1fr));gap:12px;align-items:stretch;margin-bottom:18px}
.mg-team-page .mg-team-tabs{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;margin:0;min-width:0}
.mg-team-page .mg-team-tabs button{display:flex;align-items:center;justify-content:flex-start;gap:9px;padding:10px 14px;min-height:49px;border:1px solid var(--line-2,rgba(125,137,185,.18));border-radius:12px;background:var(--glass,rgba(255,255,255,.55));font-size:14px;font-weight:600;line-height:1.4;color:var(--ink-2,#4b5578);cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.mg-team-page .mg-team-tabs button svg{flex:none;color:var(--ink-3,#6c7794)}
.mg-team-page .mg-team-tabs button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}
.mg-team-page .mg-team-tabs button[aria-pressed=true] svg{color:var(--accent)}
.mg-team-page .mg-team-tabs button:hover{background:var(--accent-soft)}
.mg-team-page .team-stat{min-width:0;min-height:112px;padding:17px 15px;gap:10px}
.mg-team-page .team-stat small{font-size:13px;color:var(--ink-2,#4b5578);line-height:1.5}
.mg-team-page .team-stat strong{font-size:29px;color:var(--ink,#1f2743);line-height:1.3;margin-top:2px}
.mg-team-page .team-stat strong em{font-size:12px;color:var(--ink-3,#6c7794);margin-left:4px}
.mg-team-page .team-stat p{font-size:12px;color:var(--ink-3,#6c7794);line-height:1.5;margin-top:4px}
.mg-team-page .team-stat .ts-icon{width:32px;height:32px;border-radius:10px}
.mg-team-page .team-panel-head{align-items:center}
.mg-team-page .team-filter-chips{gap:8px;min-width:0;max-width:100%}
.mg-team-page .team-filter-chip{width:var(--team-chip-width,auto);max-width:100%;height:36px;flex:0 1 auto}
.mg-team-page .team-filter-chip>button:first-child{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-width:0;padding:0 12px;font-size:13px;color:var(--ink-2,#4b5578)}
.mg-team-page .team-chip-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mg-team-page .team-filter-chip b{font-size:12px;margin-left:0;flex:none;color:var(--ink-3,#6c7794)}
.mg-team-page .team-filter-chip.is-active{border-color:var(--accent);background:var(--accent-soft);box-shadow:none}
.mg-team-page .team-filter-chip.is-active>button:first-child,.mg-team-page .team-filter-chip.is-active b{color:var(--accent)}
.mg-team-page .team-chip-edit{width:30px;flex:none;color:var(--ink-3,#6c7794)}
.mg-team-page .team-head-actions .btn{height:36px;font-size:13px;padding:0 12px}
html[data-theme=dark] .mg-team-page .mg-team-tabs button{background:rgba(125,146,193,.08);color:var(--ink-2)}
html[data-theme=dark] .mg-team-page .mg-team-tabs button[aria-pressed=true]{background:var(--accent-soft);color:#c4d0ff;border-color:#839bea}
@media(max-width:1420px){
  .mg-dashboard .mg-composition-three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mg-dashboard .mg-composition-three>.city-panel{grid-column:1/-1}
  .mg-dashboard .city-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 22px}
  .mg-team-page .team-stats.mg-team-stats{grid-template-columns:142px repeat(4,minmax(0,1fr));gap:10px}
  .mg-team-page .team-stat{padding:15px 12px;gap:8px}
  .mg-team-page .team-stat .ts-icon{width:28px;height:28px}
  .mg-team-page .team-stat strong{font-size:27px}
}
@media(max-width:1180px){
  .mg-dashboard .mg-trends-grid{grid-template-columns:minmax(0,1fr) minmax(245px,270px)}
  .mg-dashboard .mg-trends-grid>.coverage-panel{min-height:0}
  .mg-dashboard .mg-composition-three .donut-body{flex-wrap:wrap;justify-content:center}
  .mg-dashboard .coverage-panel{padding:18px}
  .mg-team-page .team-stat{flex-direction:column;justify-content:center}
  .mg-team-page .team-stat .ts-icon{display:none}
}
@media(max-width:760px){
  .mg-dashboard .mg-trends-grid,.mg-dashboard .mg-composition-three{grid-template-columns:minmax(0,1fr)}
  .mg-dashboard .city-list{display:flex;gap:5px}
  .mg-dashboard .coverage-panel .panel-head{margin-bottom:14px}
  .mg-dashboard .coverage-hero{justify-content:center;margin-bottom:18px}
  .mg-dashboard .mg-composition-three .donut-body{flex-wrap:nowrap;justify-content:space-evenly}
  .mg-dashboard .mg-composition-three .donut-legend{flex:1;max-width:330px}
  .mg-team-page .team-stats.mg-team-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mg-team-page .mg-team-tabs{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}
  .mg-team-page .mg-team-tabs button{justify-content:center;min-height:45px;padding:9px 8px;font-size:13px}
  .mg-team-page .team-stat{min-height:104px}
}
@media(max-width:420px){
  .mg-filter-heading{gap:10px}
  .mg-period-presets{gap:4px;width:100%;justify-content:space-between}
  .mg-period-presets button{min-width:0;padding:0 9px;font-size:12px;flex:1}
  .mg-filter-heading .mg-filter-tools{width:100%;justify-content:flex-start}
  .mg-filter-heading .btn{padding:0 10px}
  .mg-dashboard .mg-composition-three>.panel{padding:17px}
  .mg-dashboard .mg-composition-three .donut-body{flex-wrap:wrap}
  .mg-dashboard .mg-composition-three .donut-legend{flex:1 1 100%}
}
@media(prefers-reduced-motion:reduce){.mg-period-presets button,.mg-team-page .mg-team-tabs button{transition:none}}

/* Time, ownership and actions share the toolbar; extra criteria flow into it. */
.mg-filter-compact .mg-filter-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
.mg-filter-compact .mg-filter-primary{display:contents}
.mg-filter-compact .mg-filter-extra{display:flex;flex:1 1 100%;align-items:center;flex-wrap:wrap;gap:8px}
.mg-filter-compact .mg-filter-extra[hidden]{display:none}
.mg-dashboard .mg-filter-compact .field{flex:0 0 104px;min-width:0;max-width:104px;margin:0}
.mg-dashboard .mg-filter-compact .mg-filter-primary .mg-field-year{flex:0 0 96px;max-width:96px;min-width:0}
.mg-dashboard .mg-filter-compact .mg-filter-primary .mg-field-month{flex:0 0 84px;max-width:84px;min-width:0}
.mg-dashboard .mg-filter-compact .mg-filter-primary :is(.mg-field-team_id,.mg-field-member_id){flex:0 0 122px;max-width:122px;min-width:0}
.mg-filter-compact .mg-sr-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mg-filter-compact .mg-filter-tools{flex:none;gap:6px;margin-left:auto;align-self:center}
.mg-filter-compact .btn{padding-inline:9px;gap:5px;font-size:12.5px}
.mg-filter-compact .mg-period-presets{flex:none;flex-wrap:nowrap;gap:4px}
.mg-filter-compact .mg-period-presets button{height:38px;min-width:46px;padding-inline:9px}
.mg-filter-compact .mg-more-filter b{display:inline-grid;place-items:center;min-width:16px;height:16px;border-radius:5px;background:var(--accent-soft);color:var(--accent);font-size:11px}
.mg-more-filter[aria-expanded=true]>.ico:last-child{transform:rotate(180deg)}
.mg-filter-compact .mg-view-switch{border-color:var(--accent);font-weight:650}

/* Customer structure is distinct from the paired trend and city coverage. */
.mg-dashboard .mg-customer-overview{grid-template-columns:minmax(0,.85fr) repeat(2,minmax(0,1.1fr));align-items:stretch}
.mg-dashboard .mg-customer-overview>.panel{min-width:0;padding:20px}
.mg-dashboard .mg-customer-overview .coverage-panel{justify-content:center}
.mg-dashboard .mg-customer-overview .donut-body{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px;min-height:240px}
.mg-dashboard .mg-customer-overview .donut{width:108px;height:108px}
.mg-dashboard .mg-customer-overview .donut-legend{flex:1 1 170px;min-width:0;width:auto;max-width:320px;margin:0;padding:0;max-height:260px}
.mg-dashboard .mg-trend-city{display:grid;grid-template-columns:minmax(0,2.05fr) minmax(290px,1fr);gap:18px;align-items:stretch}
.mg-dashboard .mg-trend-city>.panel{min-width:0}
.mg-dashboard .mg-trend-city .city-list{display:flex;max-height:315px}
.mg-dashboard .mg-trend-panel>.mg-trend{max-height:320px;min-width:0}
.mg-dashboard .mg-axis{font-size:14px}
@media(max-width:1250px){
  .mg-filter-compact .mg-filter-row{gap:6px}
  .mg-filter-compact .mg-filter-extra{display:contents}
  .mg-dashboard .mg-filter-compact .mg-filter-extra .field{flex-basis:96px;max-width:96px}
  .mg-filter-compact .mg-filter-extra .select{padding-left:8px}
  .mg-dashboard .mg-trend-city{grid-template-columns:minmax(0,1fr)}
  .mg-dashboard .mg-trend-city .city-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 22px;max-height:250px}
  .mg-dashboard .mg-customer-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mg-dashboard .mg-customer-overview>.coverage-panel{grid-column:1/-1}
  .mg-dashboard .mg-customer-overview .coverage-hero{justify-content:flex-start;margin-bottom:12px}
  .mg-dashboard .mg-customer-overview .donut-body{flex-wrap:wrap}
}
@media(max-width:760px){
  .mg-filter-compact .mg-filter-row{gap:8px}
  .mg-filter-compact .mg-period-presets{width:100%}
  .mg-filter-compact .mg-period-presets button{flex:1}
  .mg-dashboard .mg-filter-compact .field,.mg-dashboard .mg-filter-compact .mg-filter-primary :is(.mg-field-year,.mg-field-month,.mg-field-team_id,.mg-field-member_id){flex:1 1 calc(50% - 8px);max-width:none;min-width:0}
  .mg-dashboard .mg-filter-compact .mg-filter-extra .field{flex:1 1 calc(50% - 8px);max-width:none}
  .mg-filter-compact .mg-filter-tools{width:100%;justify-content:flex-start;flex-wrap:nowrap;margin:0;gap:5px}
  .mg-filter-compact .mg-filter-tools .btn{padding-inline:7px;font-size:12px;gap:4px}
  .mg-dashboard .mg-customer-overview,.mg-dashboard .mg-trend-city .city-list{grid-template-columns:minmax(0,1fr)}
  .mg-dashboard .mg-customer-overview>.coverage-panel{grid-column:auto}
  .mg-dashboard .mg-customer-overview .donut-body{flex-wrap:nowrap;min-height:220px}
}
