.product-sales-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.product-sales-filters label { min-width: 0; max-width: 100%; }
.product-sales-filters [data-product] { max-width: min(16rem, 64vw); }
.product-charts, .product-geography {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 18px;
}
.product-charts { margin-bottom: 18px; align-items: start; }
.product-charts > *, .product-map-panel, .product-zone-panel { min-width: 0; }
.product-ranking { max-height: 370px; overflow: auto; }
.product-ranking table { font-size: .87rem; }
.product-ranking thead th { position: sticky; top: 0; z-index: 1; }
.product-ranking th, .product-ranking td { padding: 12px; }
.product-ranking tbody th { background: white; font-weight: 560; font-size: inherit; }
.product-ranking tbody th a { min-width: 5rem; overflow-wrap: anywhere; }
.product-ranking td strong { font-weight: 620; }
.product-ranking .product-selected > * { background: #eef6fa; }
.product-ranking .product-selected > :first-child { box-shadow: inset 3px 0 var(--blue); }
.product-ranking progress, .product-zones progress {
  display: block;
  width: 100%;
  height: 6px;
  min-width: 3rem;
  margin-top: 5px;
  appearance: none;
  background: #e6edf2;
  border: none;
  border-radius: 4px;
  overflow: hidden;
}
.product-ranking progress::-webkit-progress-bar, .product-zones progress::-webkit-progress-bar { background: #e6edf2; }
.product-ranking progress::-webkit-progress-value { background: #217eac; }
.product-ranking progress::-moz-progress-bar { background: #217eac; }
.product-zones progress::-webkit-progress-value { background: #168575; }
.product-zones progress::-moz-progress-bar { background: #168575; }
.product-trend-controls { display: flex; justify-content: flex-end; gap: 0; padding: 14px 16px 0; }
.product-trend-controls button { background: white; border: 1px solid #b9cbd6; min-height: 32px; padding: 4px 10px; font-size: .83rem; }
.product-trend-controls button:first-child { border-radius: 5px 0 0 5px; }
.product-trend-controls button:last-child { border-radius: 0 5px 5px 0; border-left: 0; }
.product-trend-controls button[aria-pressed="true"] { background: #165979; color: white; }
.product-trend {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: 135px 18px;
  gap: 5px 9px;
  margin: 14px 16px 0;
  color: var(--muted);
  font: .75rem/1.15 Inter, sans-serif;
  font-variant-numeric: tabular-nums;
}
.product-trend svg { display: block; width: 100%; height: 100%; fill: #217eac; }
.product-trend-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; fill: none; }
.product-trend-axis { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.product-trend .product-trend-dates { grid-column: 2; fill: var(--muted); }
.product-geography { grid-template-columns: minmax(0, 1.6fr) minmax(230px, .9fr); padding: 16px; }
.product-zone-panel > h3 { color: var(--navy); margin-bottom: 14px; }
.product-map-panel .hint, .product-zone-panel .hint { margin-top: 9px; }
.product-zones { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.product-zones li > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.product-zones strong { font-size: .9rem; overflow-wrap: anywhere; }
.product-zones span { font-size: .85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-zones small { display: block; margin-top: 4px; }
@media (max-width: 1060px) {
  .product-charts { grid-template-columns: minmax(0, 1fr); }
  .product-geography { grid-template-columns: minmax(0, 1.3fr) minmax(200px, .9fr); }
}
@media (max-width: 800px) {
  .product-geography { grid-template-columns: minmax(0, 1fr); }
  .product-sales-filters { justify-content: flex-start; }
}
@media (max-width: 540px) {
  .product-sales-filters { width: 100%; }
  .product-sales-filters [data-product] { max-width: min(12rem, 62vw); }
  .product-ranking th, .product-ranking td { padding: 10px; }
  .product-geography { padding: 12px; }
}
