/* Shared chart card styles (Dashboard sales overview + Orders overview) */
/* ---------- Sales overview ---------- */
.sales { padding-bottom: 16px; }
.sales .card-head { margin-bottom: 10px; }
.sales-controls { display: flex; align-items: center; gap: 20px; }
.legend { display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-rev { background: var(--primary); }
.dot-ord { background: var(--primary-soft); }

.range-tabs {
  display: flex;
  padding: 3px;
  background: #F4F6F5;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.range-tabs button {
  height: 28px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--muted);
}
.range-tabs button.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}

.chart-wrap { position: relative; width: 100%; height: 324px; }
.chart-wrap svg { display: block; overflow: visible; }

.chart-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  background: var(--dark);
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px 10px;
  font-size: 12.5px;
  line-height: 1.35;
  white-space: nowrap;
}
.chart-tip b { display: block; font-weight: 600; margin-bottom: 4px; }
.chart-tip div { display: flex; align-items: center; gap: 6px; }
.chart-tip i {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  border: 2px solid #fff;
  display: inline-block;
}

/* Chart card placed above a list page's table */
.chart-section { margin-bottom: 16px; }
@media (max-width: 900px) {
  .chart-section .card-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .chart-section .sales-controls { flex-wrap: wrap; gap: 12px; }
}
