/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}


header {
    background-color: #35aaf2;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    letter-spacing: 1px;
}

body {
    background-color: #f9f9f9;
    color: #333;
    padding: 30px;
    font-size: 16px;
    line-height: 1.5;
}

main#mxin {
    max-width: 1300px;
    margin: auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

h1 {
    text-align: center;
    font-size: 1.8rem;
    color: #fff;
    /* margin-bottom: 30px; */
    font-weight: 600;
}

.logo{
    width: 300px;
}
.cabeza{
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Filtros */
.containerFilters{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}



.containerFilters > div {
    flex: 1 1 30%;
    min-width: 220px;
}

h4 {
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #555;
}
.telNumber  {
    width: 200px;
}
select,
input[type="date"],
input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #7c7c7c;
    border-radius: 4px;
    background-color: #fafafa;
    transition: border-color 0.2s;
    font-size: 0.95rem;
}

input[type="text"] {
    width: 200px;
}



select:focus,
input:focus {
    border-color: #35aaf2;
    outline: none;
}

/* Botones y links */
.clear {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: 20px 0;
}

button,
a.link {
    background-color: #35aaf2;
    color: #fff;
    border: 1px solid #aaa;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

button:hover,
a.link:hover {
    background-color: #1871b5;
}



.scroll-head {
    overflow-x: auto;
    overflow-y: hidden;
    height: 16px;   /* solo muestra la barra */
    margin-bottom: 5px;
    width: 500px;
}

.scroll-sync {
    height: 1px;    /* no ocupa espacio visible */
}


.containerTable {
    overflow-y: auto;
    overflow-x: auto;
    margin-top: 30px;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
}


/* Dejar el encabezado fijo */
.containerTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #35aaf2; /* mismo color del header */
}



/* Tabla general */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    font-size: 0.95rem;
    min-width: 1000px;
}

/* Encabezado */
thead {
    /* background-color: #fafafa; */
    background-color: #35aaf2;
    border-bottom: 2px solid #e0e0e0;
}

th {
    text-align: left;
    padding: 14px 12px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

/* Filas */
tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: #f9f9f9;
}

td {
    padding: 12px 12px;
    color: #444;
    white-space: nowrap;
    font-size: 13px;
}

/* Celda observación destacada */
td.obs {
    font-weight: 500;
    color: #2d3436;
}

/* Alternar colores de fila */
tbody tr:nth-child(even) {
    background-color: #fcfcfc;
}




.text{
    font-size: 13px;
}

/* Responsive sugerido */
@media (max-width: 768px) {
    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 10px;
    }
}


.obs {
    min-width: 250px;
}
.observacion-select{
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .containerFilters > div {
        flex: 1 1 100%;
    }

    .clear {
        flex-direction: column;
        align-items: stretch;
    }

    button,
    a.link {
        width: 100%;
        text-align: center;
    }
}
