/* Estilos generales para la tabla */
/* Darle un fondo al filtro */

.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
}
#files_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#files_table th {
    background-color: #4b8548;
    color: white;
    padding: 10px;
    font-weight: bold;
    text-align: left;
}

#files_table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Alternar colores de filas */
#files_table tr:nth-child(even) {
    background-color: #f2f8f2;
}

#files_table tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Estilos del botón de descarga */
.download-button {
    display: inline-block;
    background-color: #a8d836;
    color: black;
    padding: 5px 10px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: none;
}

.download-button:hover {
    background-color: #91c12f;
}

/* Estilos de los filtros */
#filter_button {
    background-color: black;
    color: white;
    padding: 7px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#filter_button:hover {
    background-color: #333;
}

input[type="date"] {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#filter-container {
    background: red; /* Un gris claro, cambia si quieres otro color */
    padding: 10px;
    border-radius: 5px;
}


/* Contenedor con scroll horizontal en dispositivos móviles */
@media screen and (max-width: 768px) {
    .table-responsive {
        width: 100%;
        overflow-x: auto; /* Agrega desplazamiento horizontal */
        -webkit-overflow-scrolling: touch; /* Mejora la experiencia en móviles */
    }

    #files_table {
        width: 100%;
        min-width: 600px; /* Evita que la tabla se colapse demasiado */
    }

    /* Ajustar padding y tamaño de los botones */
    .download-button {
        padding: 7px 12px;
        font-size: 14px;
    }

    /* Optimizar la disposición de los filtros */
    #filter-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    input[type="date"] {
        width: 100%;
        max-width: 250px;
    }

    #filter_button {
        width: 100%;
        max-width: 250px;
    }
}


/* mantener los inputs del mismo tamaño */


