@import '../../_coreStyles.scss';
.vss-FilterBar {
    display: flex;
    flex-shrink: 0;
    background: $transblack-6;
    padding: 8px;
    height: 48px;
    border-radius: 4px;
    margin-top: 8px;
    margin-bottom: 8px;

    @media screen and (-ms-high-contrast: active) {
        border: 1px solid windowtext;
    }

    .filter-bar-button {
        padding: 0 8px;
        &.disabled {
            background-color: transparent;
        }
    }

    .vss-FilterBar--list {
        display: flex;
        align-items: flex-start;
        flex-wrap: nowrap;
        padding-left: 0;
        width: 100%; //Needed for IE

        &.justify-right {
            justify-content: flex-end;
        }

        .vss-FilterBar--item {
            flex-shrink: 0;
            max-width: 100%;

            &.max-width-small .vss-PickListDropdown--title .vss-PickListDropdown--title-textContainer,
            &.max-width-small .bolt-filter-dropdown-label {
                max-width: 150px;
            }

            &.vss-FilterBar--item-keyword-container {
                align-self: center;
                flex-grow: 1;
                margin-right: 8px;
                min-width: 220px;
                display: flex;

                .keyword-filter-icon {
                    font-size: $fontSizeML;
                }
            }

            input::-ms-clear {
                display: none;
            }

            .vss-PickListDropdown {
                border-radius: 2px;

                &:hover {
                    background: $transblack-6;
                }

                .vss-PickListDropdown--title-text-withSelections {
                    font-weight: $fontWeightSemiBold;
                }
            }

            .vss-FilterBar--item-keyword input {
                /** Keyword filter has a search icon to the left which adds its own 10px of padding */
                padding: 0;
            }

            .vss-PickListDropdown--title {
                border: 0;
                background: transparent;
                padding: 6px 12px;
                overflow: visible;
                border-radius: 2px;

                .vss-PickListDropdown--title-textContainer {
                    margin: 0;
                    max-width: 340px;
                }

                .vss-Icon {
                    margin-left: 10px;
                    margin-right: 0;
                    color: $secondary-text;
                }
            }
        }

        .vss-FilterBar--right-items {
            display: flex;
            flex-shrink: 0;
            margin-left: 8px;

            .vss-FilterBar--action {
                &.vss-FilterBar--action-apply .ms-Icon {
                    font-size: 14px;
                }

                &.vss-FilterBar--action-clear {
                    display: flex;
                    justify-content: center;
                    align-items: center;

                    .filter-bar-button:not([disabled]):hover {
                        background-color: transparent;
                    }
                }

                .filter-bar-button {
                    height: 32px;
                    overflow: visible;
                }
            }

            .vss-FilterBar--page-button-container {
                display: flex;

                .vss-FilterBar-page-button {
                    width: 32px;
                    min-width: 32px;
                    margin-right: 10px;
                    background-color: transparent;
                    color: $primary-text;

                    &:hover:not([disabled]) {
                        background-color: $transblack-6;
                    }

                    &[disabled] {
                        color: $disabled-text;
                    }
                }
            }
        }
    }
}

.bolt-filterbar-white {
    background: $calloutBackgroundColor;
}