/* estilos.css ajustado para la tabla CVC */

body {
    font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f8;
    margin: 0;
    padding: 20px;
    color: #000000;
}

h1 {
    text-align: center;
    color: #000000;
    margin-bottom: 30px;
    font-size: 20px;
}

form {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow-x: auto; /* permite scroll horizontal para tablas anchas */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    min-width: 1600px; /* ajustado al nuevo número de columnas */
    table-layout: fixed; /* para que los anchos de columna sean fijos */
}

th, td {
    padding: 8px 10px;
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    white-space: nowrap;
}

/* Encabezados */
th {
    background-color: #071E61;
    color: white;
    font-weight: normal;
    font-size: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: normal;
    line-height: 1.2em;
    padding: 10px 8px;
    word-wrap: break-word;
}

/* =========================
   ANCHOS DE COLUMNAS
========================= */
#tablaRegistro th:nth-child(1),
#tablaRegistro td:nth-child(1) {
    width: 280px; /* Nombre del Comité */
}

#tablaRegistro th:nth-child(2),
#tablaRegistro td:nth-child(2) {
    width: 260px; /* Nombre del Indicador */
}

#tablaRegistro th:nth-child(3),
#tablaRegistro td:nth-child(3) {
    width: 170px; /* Periodo Reportado */
}

#tablaRegistro th:nth-child(4),
#tablaRegistro td:nth-child(4) {
    width: 170px; /* Resultado del Periodo */
}

#tablaRegistro th:nth-child(5),
#tablaRegistro td:nth-child(5) {
    width: 220px; /* Responsable del Registro */
}

/* Inputs y selects: estilo consistente */
input[type="date"],
input[type="text"],
select {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="date"]:focus,
input[type="text"]:focus,
select:focus {
    border-color: #8CBDEE;
    outline: none;
}

/* Botones */
button {
    background-color: #071E61;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #8CBDEE;
}

button:active {
    background-color: #145374;
}

/* Responsive */
@media (max-width: 768px) {
    form {
        padding: 15px;
    }

    table {
        min-width: 1400px;
    }

    th, td {
        padding: 6px 8px;
        font-size: 11px;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    table {
        min-width: 1200px;
    }
}

/* Header */
.header {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #071E61;
    margin-bottom: 30px;
}

.logo {
    max-height: 60px;
    width: auto;
    margin-right: 20px;
}