/* Estilo para la lista de documentos */
#document-list {
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

#document-list h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #333;
}

#document-list table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#document-list th, #document-list td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#document-list th {
    background-color: #4CAF50;
    color: white;
}

#document-list tr:nth-child(even) {
    background-color: #f2f2f2;
}

#document-list tr:hover {
    background-color: #ddd;
}

#document-list td a {
    color: #007BFF;
    text-decoration: none;
}

#document-list td a:hover {
    text-decoration: underline;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    #document-list {
        padding: 10px;
        margin-top: 10px;
    }

    #document-list h3 {
        font-size: 1em;
        margin-top: 15px;
        margin-bottom: 8px;
    }

    #document-list table, #document-list th, #document-list td {
        width: 100%;
        display: block;
    }

    #document-list th, #document-list td {
        padding: 10px;
        text-align: left;
    }

    #document-list th {
        background-color: #4CAF50;
        color: white;
        display: none; /* Ocultar encabezados en dispositivos móviles */
    }

    #document-list tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid #ddd;
        margin-bottom: 10px;
        padding: 10px;
    }

    #document-list tr:nth-child(even) {
        background-color: transparent;
    }

    #document-list td {
        border: none;
        padding: 5px 0;
    }

    #document-list td a {
        color: #007BFF;
    }
    
    /* Añadir etiquetas para identificar los datos */
    #document-list td::before {
        content: attr(data-label);
        font-weight: bold;
        color: #333;
        display: block;
    }
}