/* ───── Dashboard charts ───── */
.dash-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.dash-chart-card h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
}
.dash-chart-wrap {
  position: relative;
  height: 220px;
}

@media (max-width: 900px) {
  .dash-charts { grid-template-columns: 1fr; }
  .dash-chart-wrap { height: 180px; }
}

/* Top drivers ranking */
.dash-top-list { display: flex; flex-direction: column; gap: 8px; }
.dash-top-row {
  display: grid;
  grid-template-columns: 30px 180px 1fr 200px;
  gap: 12px; align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.dash-top-row:last-child { border-bottom: 0; }
.dash-top-rank {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC107, #B8860B);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.dash-top-row:nth-child(1) .dash-top-rank { background: linear-gradient(135deg, #FFD700, #FFA500); }
.dash-top-row:nth-child(2) .dash-top-rank { background: linear-gradient(135deg, #C0C0C0, #808080); color: #fff; }
.dash-top-row:nth-child(3) .dash-top-rank { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #fff; }

.dash-top-name a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  border-bottom: 1px dashed transparent;
}
.dash-top-name a:hover { border-bottom-color: #FFC107; color: #B8860B; }

.dash-top-bar {
  height: 8px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}
.dash-top-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFC107, #B8860B);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.dash-top-stats {
  text-align: right;
  font-size: 12.5px;
  color: #111827;
}

@media (max-width: 760px) {
  .dash-top-row { grid-template-columns: 30px 1fr; }
  .dash-top-bar { order: 3; grid-column: 1 / -1; }
  .dash-top-stats { grid-column: 1 / -1; text-align: left; }
}
