/* Filters Toolbar */
.filters-toolbar {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 8px 12px;
    flex-shrink: 0;
}

.filters-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Search */
.filters-search-wrapper {
    position: relative;
    flex: 0 1 280px;
    min-width: 180px;
}

.filters-search {
    width: 100%;
    padding: 6px 28px 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
}

.filters-search:focus {
    border-color: #1565c0;
}

.filters-search-clear {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.filters-search-clear:hover {
    color: #333;
}

/* Chips */
.filters-chips {
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-chip {
    padding: 3px 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    font-size: 11px;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.filter-chip:hover {
    border-color: #1565c0;
    color: #1565c0;
}

.filter-chip.active {
    background: #1565c0;
    border-color: #1565c0;
    color: #fff;
}

/* Инвертированное состояние — фильтр отрицания (например «Без оплаты»). */
.filter-chip.inverted {
    background: #fff;
    border-color: #c62828;
    color: #c62828;
    text-decoration: line-through;
    text-decoration-color: #c62828;
    text-decoration-thickness: 1.5px;
}

.filter-chip.inverted:hover {
    background: #ffebee;
}

.filters-divider {
    width: 1px;
    height: 16px;
    background: #e0e0e0;
    margin: 0 4px;
}

/* Counter */
.filters-counter {
    font-size: 11px;
    color: #999;
    margin-left: auto;
    white-space: nowrap;
}
