/*
 * Admin dashboard — metric tiles + panel cards (tokens from base/variables.css).
 */

.admin-dashboard-metrics {
  margin-bottom: var(--space-6);
}

.admin-stat-card {
  margin-bottom: 0 !important;
  border: 1px solid var(--border-primary);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.admin-stat-card:hover {
  border-color: var(--border-secondary);
  box-shadow: var(--shadow-md);
}

.admin-stat-card .card-body {
  padding: var(--space-6) var(--space-8);
}

.admin-stat-card__label {
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.admin-stat-card__value {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.admin-dashboard-panel {
  margin-bottom: 0 !important;
}

.admin-dashboard-panel .card-header {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.admin-dashboard-panel .card-header h2 {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text-primary);
}

.admin-dashboard-panel .table-responsive:last-child {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.admin-dashboard-panel .list-group-flush > .list-group-item:last-child,
.admin-dashboard-panel .list-group-flush > a.list-group-item-action.list-row-link:last-child {
  border-bottom-left-radius: var(--card-frame-radius, var(--radius-lg));
  border-bottom-right-radius: var(--card-frame-radius, var(--radius-lg));
}

/* One edge between chrome header and first flush row */
.admin-dashboard-panel > .list-group-flush > .list-group-item:first-child {
  border-top: none;
}

/* Recent audit logs — stacked summary + meta (same list row padding as pending users) */
.admin-dashboard-audit-log__summary {
  line-height: 1.35;
}

.admin-dashboard-audit-log__meta {
  margin-top: var(--space-1);
  line-height: 1.4;
}
