/* Team tournament KPIs — all values via tokens; no hex literals. */
.team-tournament-kpis__period { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.team-tournament-kpis__period-links { display: flex; gap: var(--space-2); }
.team-tournament-kpis__period-link { padding: 6px 12px; font-size: 13px; color: var(--text-2); text-decoration: none; border: 1px solid var(--border); border-radius: 6px; }
.team-tournament-kpis__period-link:hover { background: var(--surface-hover); }
.team-tournament-kpis__period-link--active { color: var(--text-1); background: var(--surface-hi); }
.team-tournament-kpis__custom { display: flex; align-items: center; gap: var(--space-2); margin: 0; }
.team-tournament-kpis__label { margin: 0; font-size: 12px; color: var(--text-2); }
.team-tournament-kpis__errors { flex-basis: 100%; color: var(--text-2); font-size: 13px; }
.team-tournament-kpis__errors p { margin: 0; }
.team-tournament-kpis__table { width: 100%; border-collapse: collapse; }
.team-tournament-kpis__head { padding: 8px 4px; font-size: 12px; font-weight: 600; color: var(--text-2); text-align: left; border-bottom: 1px solid var(--border); }
.team-tournament-kpis__row { border-bottom: 1px solid var(--border); }
.team-tournament-kpis__cell { padding: 8px 4px; font-size: 13px; }
.team-tournament-kpis__table .team-tournament-kpis__num { text-align: right; font-variant-numeric: tabular-nums; }
.team-tournament-kpis__empty { color: var(--text-3); font-size: 13px; }

/* Custom range: compact, same height as the preset links (beats Pico's form sizing). */
.team-tournament-kpis__custom input.team-tournament-kpis__date,
.team-tournament-kpis__custom input.team-tournament-kpis__apply {
  height: 30px; margin: 0; padding: 0 10px; font-size: 13px; width: auto; border-radius: 6px;
}
.team-tournament-kpis__custom input.team-tournament-kpis__date { width: 140px; }

/* Headers: small muted labels like the Users table; sort links not styled as links. */
.team-tournament-kpis__table th {
  padding: 10px 8px; font-size: 10.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-3); background: var(--surface-hi);
  text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.team-tournament-kpis__table th:not(:first-child) { text-align: right; }
.team-tournament-kpis__table th a { color: inherit; text-decoration: none; }
.team-tournament-kpis__table th a:hover,
.team-tournament-kpis__table th[aria-sort] a { color: var(--text-1); }

/* Player name: plain text colour, underline only on hover. */
.team-tournament-kpis__table td:first-child a { font-weight: 600; color: var(--text-1); text-decoration: none; }
.team-tournament-kpis__table td:first-child a:hover { text-decoration: underline; }
.team-tournament-kpis__table tbody tr:hover td { background: var(--surface-hover); }
