/* Tổng quan vận hành · một tuyến thực tế cho toàn bộ ngày báo cáo */
.overview-page-head {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 28%);
  gap: 16px;
  align-items: end;
  justify-content: center;
  min-height: 72px;
  margin-bottom: 20px;
  text-align: center;
}

.overview-heading { min-width: 0; overflow-wrap: anywhere; }

.overview-heading h3 {
  margin: 0;
  color: #20262c;
  font-size: 23px;
  letter-spacing: .025em;
}

.overview-heading #overviewReportDate {
  display: block !important;
  margin: 8px 0 0;
  color: #68717b;
  font-size: 12px;
}

.overview-load-message {
  display: block !important;
  min-height: 14px;
  line-height: 14px;
  margin: 6px 0 0 !important;
  color: #b84242 !important;
  font-size: 10px !important;
}

.overview-route-filter {
  position: static;
  display: grid;
  gap: 5px;
  min-width: 0;
  text-align: left;
}

.overview-route-filter label {
  color: #68717b;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.overview-route-filter .field {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #20262c;
  font-size: 11px;
}

.stats .stat[data-coverage]::after {
  content: attr(data-coverage) " cửa hàng ghé mua";
  display: block;
  margin-top: 4px;
  color: #68717b;
  font-size: 10px;
  font-weight: 500;
}

.stats .compare.up { color: #247a4a !important; }
.stats .compare.down { color: #b84242 !important; }
.stats .compare.flat { color: #68717b !important; }

.dashboard .panel:first-child .chart-body { padding-bottom: 18px !important; }
.dashboard .panel:first-child .weekly-wrap { height: 286px; }
.dashboard .panel:nth-child(2) .top-list { min-height: 286px; }

.legend i.today { background: #f5c518; }

.scatter-panel,
.sales-share-panel { min-height: 360px; }

.scatter-panel .panel-head { align-items: center; }

.chart-action {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
  background: #fff;
  color: #2f3a44;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.chart-action:hover { border-color: #d9ae0d; background: #f8f9fa; }

.scatter-body { padding: 14px 16px 12px; }

.scatter-body canvas {
  width: 100%;
  height: 238px;
  display: block;
  cursor: pointer;
}

.scatter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin: 4px 0 0 36px;
  color: #59636d;
  font-size: 10px;
}

.scatter-legend span { display: inline-flex; align-items: center; gap: 5px; }
.scatter-legend i,
.scatter-mini h5 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.sales-share-panel .donut-layout {
  grid-template-columns: 154px 1fr !important;
  min-height: 267px;
}

.sales-share-panel .donut {
  width: 146px !important;
  height: 146px !important;
}

.sales-share-panel .donut::after { inset: 30px !important; }
.sales-share-panel .donut-center b { font-size: 13px !important; }

.scatter-detail-modal { width: min(1120px, 100%) !important; }

.scatter-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background: #f8f9fa;
}

.scatter-mini {
  min-height: 260px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.scatter-mini h5 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  color: #20262c;
  font-size: 12px;
}

.scatter-mini canvas { width: 100%; height: 210px; display: block; }

.overview-loading .dashboard,
.overview-loading .donut-row,
.overview-loading .stats { opacity: .55; pointer-events: none; }

@media (max-width: 1050px) {
  .overview-route-filter { min-width: 0; }
  .scatter-detail-grid { grid-template-columns: 1fr; }
  .scatter-mini { min-height: 270px; }
}

@media (max-width: 760px) {
  .overview-page-head { display: block !important; min-height: 0; }
  .overview-route-filter { position: static; min-width: 0; margin: 14px auto 0; max-width: 310px; }
  .dashboard .panel:first-child .weekly-wrap { height: 250px; }
  .scatter-body { padding: 12px 9px; }
  .scatter-body canvas { height: 225px; }
  .scatter-legend { margin-left: 36px; }
  .sales-share-panel .donut-layout { grid-template-columns: 1fr !important; }
  .scatter-detail-grid { padding: 12px; }
}
