/* 03-tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

thead tr {
  background: rgba(7, 12, 18, 0.9);
}

th {
  padding: 14px 14px;
  text-align: left;
  color: var(--text-soft);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(7, 12, 18, 0.92);
}

td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(143, 169, 196, 0.08);
  color: var(--text);
  vertical-align: middle;
}

tbody tr {
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

tbody tr:hover {
  background: rgba(111, 168, 255, 0.065);
  box-shadow: inset 3px 0 0 rgba(124, 224, 211, 0.46);
}

tbody tr:last-child td {
  border-bottom: none;
}

.pilot-name {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pilot-text {
  display: inline-block;
  line-height: 1.4;
}

.vehicle,
.escuderia {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.class-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #dff5ff;
  background: rgba(111, 168, 255, 0.12);
  border: 1px solid rgba(111, 168, 255, 0.2);
}

.time-cell,
.time-pending,
.time-empty,
.time-bad,
.diff-cell,
.speed-cell {
  font-family: "JetBrains Mono", "Courier New", monospace;
  white-space: nowrap;
  font-weight: 800;
}

.time-cell {
  color: #83f0b3;
}

.time-pending {
  color: #f2d58a;
}

.time-empty {
  color: #6d7b8c;
}

.time-bad {
  color: #ff8a8a;
}

.rally-assigned-result {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1.1;
}

.rally-assigned-result small {
  font-size: 0.78em;
  color: inherit;
  opacity: 0.92;
}

.diff-cell {
  color: #9fb0c4;
}

.speed-cell {
  color: #8ecfff;
}

.flags {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex: 0 0 auto;
}

.flag {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}

.auth-icon {
  font-weight: 900;
  font-size: 0.95rem;
}

.auth-ok {
  color: var(--success);
}

.auth-no {
  color: var(--danger);
}
