/*
 * filters.css — Ops UI Library: Filters
 * Pill-based filter groups. Generic component for any CRM tab.
 * Uses CSS variables from index.html for automatic dark/light theme support.
 *
 * Also owns .pill / .pill--active used by contacts pagination.
 */

/* ── Filters wrapper ─────────────────────────────────────── */

.filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
}

/* ── Filter group (label + pills row) ────────────────────── */

.filter-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    min-width: 90px;
}

.filter-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

/* ── Pill button (shared with pagination limit pills) ─────── */

.pill {
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.pill:hover {
    color: var(--text-1);
    background: var(--sidebar-active);
}

.pill--active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

.pill--active:hover {
    opacity: 0.88;
    background: var(--accent);
}
