/* ─── Analytics Grid (ported from Mologo Mockups) ────────── */
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.analytics-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analytics-card-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tsec);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* KPI Chips */
.kpi-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.kpi-chip {
  flex: 1;
  min-width: 80px;
  background: var(--bg);
  border-radius: var(--r-md);
  padding: 10px 12px;
}
.kpi-chip-label {
  font-size: 10.5px;
  color: var(--tsec);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.kpi-chip-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.kpi-chip-sub {
  font-size: 11px;
  color: var(--tsec);
  margin-top: 2px;
}

/* Chart */
.analytics-chart-wrap {
  height: 160px;
  position: relative;
}

/* Top Clients */
.top-clients-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.top-client-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-client-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-client-bar-wrap {
  flex: 2;
  height: 6px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}
.top-client-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.top-client-amount {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
  .analytics-grid { grid-template-columns: 1fr; }
}
