/* --- Configuración --- */
#multiple-config {
    /* section ya tiene estilos base en main.css */
    display: flex;
    flex-direction: column;
}

/* --- Tabla de Puntuación --- */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
    /* Evitamos repetir borde y fondo del section padre */
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 300px;
}

th, td {
    padding: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

th {
    background-color: var(--table-header-bg);
    font-weight: bold;
    color: var(--text-color-light);
    cursor: pointer;
    user-select: none;
    min-width: 80px;
}
th:hover {
    background-color: var(--table-row-hover-bg);
}

/* Inputs de puntuación */
.score-input {
    width: 100%;
    min-width: 50px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    text-align: center;
    padding: 5px;
}
.score-input:focus {
    background-color: rgba(255, 255, 255, 0.05);
    outline: none;
    border-radius: var(--border-radius-sm);
}

/* Totales */
.total-cell, .col-total-cell {
    font-weight: bold;
    color: var(--yellow);
    font-size: 1.2rem;
}

#grand-total-cell {
    background-color: rgba(255, 215, 0, 0.1) !important;
    border: 2px solid var(--yellow);
}

tfoot th {
    background-color: var(--bg-darkest);
}

tfoot td {
    background-color: rgba(255,255,255,0.02);
}

.table-controls {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Ajustes Responsive */
@media (max-width: 600px) {
    th, td {
        padding: 5px;
    }
    .score-input {
        font-size: 1rem;
    }
}
