.torneo-container {
  padding: 1rem;
  overflow-x: auto;
  max-width: 100%;
}

/* Tabla general */
.torneo-tabla {
  font-size: 0.8rem;
  border-collapse: collapse;
  width: 100%;
  min-width: 600px;
}

/* Todas las celdas por defecto */
.torneo-tabla th,
.torneo-tabla td {
  border: 1px solid #ccc;
  text-align: center;
  padding: 4px 6px;
  white-space: nowrap;
  font-size: 0.78rem;
}

/* Cabecera general */
.torneo-tabla th {
  background-color: #f0f0f0;
  color: #000;
}

/* ID columna (primera): compacta */
.torneo-tabla td:first-child,
.torneo-tabla th:first-child {
  width: 40px;
  max-width: 40px;
}

/* Columna "Pareja" (segunda): más ancha */
.torneo-tabla td:nth-child(2),
.torneo-tabla th:nth-child(2) {
  width: 260px;
  max-width: 260px;
  text-align: left;
  padding-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Columnas de rondas: compactas (R1, R2, etc.) */
.torneo-tabla td:nth-child(n+3),
.torneo-tabla th:nth-child(n+3) {
  width: 45px;
  max-width: 45px;
  padding: 3px 4px;
  text-align: center;
}

/* 🟥 Pareja que ha perdido */
.perdida {
  background-color: #f8d7da;
  color: #000;
}

/* 🟦 Pareja exenta */
.exenta {
  background-color: #cce5ff;
  color: #000;
}

/* 🟨 Ronda activa (cabecera) */
.ronda-viva {
  background-color: #fff3cd !important;
  color: #000 !important;
  font-weight: bold;
}

/* 🟩 Pareja que ha ganado (opcional) */
.ganadora {
  background-color: #d4edda;
  color: #000;
}
