div>#lbq-viewer {
    width: 100%;
}

#lbq-viewer {
    margin: 4px 0px 0px 0px;
}

/*#lbq-cards {
    width: 100%;
    align-items: stretch;
}
*/
/* Contenedor de tarjetas como grid */
#lbq-cards {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch; /* todas las celdas misma altura */
}

#lbq-cards .criteria-field {

}

/*.lbq-card {
    background-color: var(--body-background-color);
    color: var(--card-item-foreground-color);
    border: 1px solid var(--card-item-border-color);
    border-radius: var(--card-item-border-round);
    padding: 15px;
    width: 22%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: box-shadow 0.25s ease;
    height: 100%;
}*/
/* Tarjeta ocupa toda la celda */
.lbq-card {
    background-color: var(--body-background-color);
    color: var(--card-item-foreground-color);
    border: 1px solid var(--card-item-border-color);
    border-radius: var(--card-item-border-round);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: box-shadow 0.25s ease;
    height: 260px;
    box-sizing: border-box;
}


.lbq-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

.lbq-card .lbq-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Descripción: 3 líneas + empujar hacia abajo el resto */
.lbq-card .lbq-desc {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.lbq-card .pdf-document-preview {
    margin-top: 10px;
}

#lbq-filter-ano {
    width: 80ox;
}

#lbq-filter-mes {
    width: 120px;
}

#lbq-sort {
    width: 100px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    min-height: 32px;
}

#lbq-filter-mes {
    width: 120px;
}

#lbq-search {
    flex-basis: 50%;
}

.lbq-card .pdf-document-preview {
    height: 48px;
    width: 48px;
}

.lbq-card .pdf-document-preview:hover {
    box-shadow: unset;
}

/* Tablet */
/*@media (min-width: 601px) and (max-width: 1024px) {

    .lbq-card {
        width: 48%;
    }

}*/

/* Mobile */
/*@media (max-width: 600px) { 

    #lbq-filter-ano,
    #lbq-filter-mes,
    #lbq-filter-sort,
    #lbq-search {
        width: 100%;
    }

    .lbq-card {
        width: 100%;
    }
}*/

/* Tablet */
@media (min-width: 601px) and (max-width: 1024px) {
    #lbq-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lbq-card {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    #lbq-cards {
        grid-template-columns: 1fr;
    }
    #lbq-filter-mes {
        width: 100%;
    }
    
    #lbq-sort {
        width: 100%;
    }
    .lbq-card {
        height: auto; /* En móvil no importa */
    }
}
