/* ============================================================
   STATS ROW — compact summary metrics, displayed inline
   Used above tables to summarize the filtered set.
   ============================================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  overflow: hidden;
}

@media (max-width: 720px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stats-row__item {
  background: var(--bg-surface);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stats-row__label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stats-row__value {
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stats-row__value--positive { color: var(--color-success-text); }
.stats-row__value--negative { color: var(--color-danger-text); }

.stats-row__sub {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}
