/* Licitaciones (/licitaciones) — filter toolbar layout.
   Responsive grid: every filter is a uniform cell, ranges are paired inside a
   single cell, and the action row (switch + buttons) sits in a footer. */

.lic-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
    gap: 0.85rem 1.1rem;
    align-items: end;
}

.lic-filter {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.lic-filter > .rz-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rz-text-secondary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Every input stretches to its cell */
.lic-filter .rz-dropdown,
.lic-filter .rz-textbox,
.lic-filter .rz-spinner,
.lic-filter .rz-calendar {
    width: 100% !important;
}

/* Wider cells for free text and the category picker */
.lic-filter-wide {
    grid-column: span 2;
}

/* Min–max / from–to pairs inside one cell */
.lic-filter-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

/* Footer: switch on the left, actions on the right */
.lic-filters-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rz-base-300, #e2e8f0);
}

.lic-filters-footer .lic-footer-spacer {
    flex: 1;
}

.lic-switch-label {
    font-size: 0.8rem;
    color: var(--rz-text-secondary-color);
}

/* Multi-select chips: keep cells compact */
.lic-filter .rz-dropdown .rz-dropdown-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .lic-filter-wide {
        grid-column: span 1;
    }
}

/* Triage mark toggles (star / eligible / discarded) */
.lic-marks {
    display: flex;
    gap: 2px;
}

.lic-marks .rz-button {
    min-width: 26px;
    width: 26px;
    height: 26px;
    padding: 0;
}

.lic-marks .rz-button .rzi {
    font-size: 16px;
}

.lic-marks .lic-mark-off .rzi {
    color: var(--rz-text-disabled-color);
}

/* Direct pliego links (PCAP / PPT) */
.lic-pliegos {
    display: flex;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.lic-pliegos a {
    text-decoration: none;
    color: var(--rz-link-color);
}

.lic-pliegos a:hover {
    text-decoration: underline;
}
