/*
    filter-toolbar
    --------------
    Compact filter panel rendered by SearchCriteriaPanel above data
    grids. Replaces the old grey card + footer-button layout with a
    single white toolbar: slim header (title, active-filter badge,
    Clear all, refresh) and the filter fields directly below.
*/

.filter-toolbar {
    background: #fff;
    border: 1px solid #e4e8ee;
    border-radius: 0.5rem;
    padding: 0.65rem 0.9rem 0.85rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.filter-toolbar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.4rem;
}

.filter-toolbar__title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b4863;
}

.filter-toolbar__title i {
    font-size: 1.05rem;
    color: #6c757d;
}

/* Pill showing how many filters are currently active. */
.filter-toolbar__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.2rem;
    height: 1.2rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #e7f1ff;
    color: #2f6fce;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

/* Action row below the filter fields, left-aligned with them. */
.filter-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.65rem;
}

/* "Clear all" — quiet text action that hints danger on hover. */
.filter-toolbar__clear {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 0;
    background: transparent;
    padding: 0.35rem 0.6rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #6c757d;
    cursor: pointer;
}

.filter-toolbar__clear i {
    font-size: 1.05rem;
}

.filter-toolbar__clear:hover,
.filter-toolbar__clear:focus {
    color: #dc3545;
    background: #f8f9fa;
}

/* Field labels: small, muted, uppercase — reads as a toolbar rather
   than a form. Applies to whatever the page renders inside. */
.filter-toolbar label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8a94a6;
    margin-bottom: 0.2rem;
    white-space: nowrap;
}

/* Slightly denser controls inside the toolbar. */
.filter-toolbar .form-control,
.filter-toolbar .form-select {
    font-size: 0.875rem;
}
