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: 1400px; /* 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 por columna, ajustados a contenido real */
th:nth-child(1),
td:nth-child(1) {
    width: 140px;
} /* Fecha */
th:nth-child(2),
td:nth-child(2) {
    width: 120px;
} /* Turno */
th:nth-child(3),
td:nth-child(3) {
    width: 150px;
} /* Servicio */
th:nth-child(4),
td:nth-child(4) {
    width: 200px;
} /* Nombre */
th:nth-child(5),
td:nth-child(5) {
    width: 140px;
} /* Fecha de nacimiento */
th:nth-child(6),
td:nth-child(6) {
    width: 200px;
} /* Fijación del CU */
th:nth-child(7),
td:nth-child(7) {
    width: 200px;
} /* Higiene de genitales */
th:nth-child(8),
td:nth-child(8) {
    width: 200px;
} /* Línea de drenaje */
th:nth-child(9),
td:nth-child(9) {
    width: 200px;
} /* Bolsa colectora */
th:nth-child(10),
td:nth-child(10) {
    width: 200px;
} /* Sistema sin desconexiones */

/* 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: 1200px;
    }

    th,
    td {
        padding: 6px 8px;
        font-size: 11px;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    table {
        min-width: 900px;
    }
}

/* 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;
}
