.st-filter {
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.st-filter__row {
    display: flex;
    align-items: flex-start;
    gap: 10px 14px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.st-filter__label {
    flex-shrink: 0;
    min-width: 85px;
    padding-top: 7px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.st-filter__controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.st-filter__select {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.st-filter__select::after {
    position: absolute;
    top: 50%;
    right: 10px;
    content: "";
    width: 6px;
    height: 6px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

.st-filter__select select {
    width: 100%;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
}

.st-filter__select select:disabled {
    background: #f7f7f7;
    color: #aaa;
    cursor: not-allowed;
}

.st-filter__select.is-set select {
    border-color: #1a1a1a;
    background: #f5f5f5;
    color: #1a1a1a;
    font-weight: 400;
}

.st-filter__select--year select {
    min-width: 124px;
    padding: 6px 28px 6px 12px;
    border-radius: 20px;
    font-size: 16px;
}

.st-filter__select--year.is-set select {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}

.st-filter__select--company select,
.st-filter__select--role select {
    min-width: 260px;
    padding: 7px 32px 7px 14px;
    border-radius: 4px;
    font-size: 16px;
}

.st-filter__separator {
    color: #ccc;
    line-height: 1;
}

.st-filter__categories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.st-filter__category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 30px;
    padding: 5px 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.st-filter__category:hover {
    border-color: #777;
}

.st-filter__category.is-active {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
    font-weight: 400;
}

.st-filter__category:disabled {
    border-color: #e5e5e5;
    color: #ccc;
    cursor: not-allowed;
}

.st-filter__count {
    opacity: .65;
    font-size: 13px;
    font-weight: 400;
}

.st-filter__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}

.st-filter__reset {
    padding: 5px 12px;
    border: 1px solid #bcd0f5;
    border-radius: 4px;
    background: #f5f8ff;
    color: #2563eb;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.st-filter__reset:hover {
    background: #e9f0ff;
}

.st-filter__result {
    margin: 0;
    color: #555;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
}

.st-filter-empty {
    padding: 50px 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

[data-st-filter-item][hidden],
[data-st-filter-results][hidden],
[data-st-filter-empty][hidden] {
    display: none !important;
}

@media (max-width: 767px) {
    .st-filter {
        font-size: 14px;
    }

    .st-filter__row {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 10px 0;
    }

    .st-filter__label {
        min-width: 0;
        padding-top: 0;
        font-size: 14px;
    }

    .st-filter__controls--category {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .st-filter__select--year {
        flex-shrink: 0;
        width: 104px;
    }

    .st-filter__select--year select {
        min-width: 0;
        min-height: 30px;
        padding-top: 5px;
        padding-right: 24px;
        padding-bottom: 5px;
        font-size: 12px;
    }

    .st-filter__categories {
        flex: 1;
        flex-wrap: nowrap;
        gap: 4px;
        min-width: 0;
    }

    .st-filter__category {
        flex: 1;
        min-width: 0;
        padding: 5px 3px;
        white-space: nowrap;
        font-size: 12px;
    }

    .st-filter__count {
        font-size: 10px;
    }

    .st-filter__controls--company,
    .st-filter__select--company,
    .st-filter__select--role {
        width: 100%;
    }

    .st-filter__select--company select,
    .st-filter__select--role select {
        min-width: 0;
        font-size: 14px;
    }

    .st-filter__reset {
        font-size: 12px;
    }

    .st-filter__result {
        font-size: 14px;
    }

    .st-filter-empty {
        font-size: 14px;
    }

    .st-filter__footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    .st-filter__controls--category {
        flex-wrap: wrap;
    }

    .st-filter__separator {
        display: none;
    }

    .st-filter__categories {
        flex-basis: 100%;
    }

    .st-filter__category {
        gap: 3px;
        font-size: 11px;
    }

    .st-filter__count {
        font-size: 9px;
    }
}
