.ty-filter-select {

    /* 一行文字超出省略号 */
    .ty-one-line {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    &-input {
        position: relative;
        min-height: 40px;
        box-sizing: border-box;
        display: flex;
        background-color: var(--ty-filter-input-bg-color, #fff);
        padding-right: 8px;
        padding-left: 8px;
        padding-top: 4px;
        padding-bottom: 4px;
        border-radius: 8px;
        align-items: center;
        justify-content: space-between;
        border: 1px solid var(--ty-color-border, rgba(174, 174, 174, 0.45));

        &>img {
            width: 16px;
            height: 16px;
        }

        .ty-split-line {
            width: 1px;
            height: 16px;
            background-color: var(--ty-color-text-label, rgba(0, 0, 0, 0.65));
            margin: 0px 8px;
        }

        .ty-split-none {
            width: 0px;
            height: 16px;
            margin-left: 8px;
        }


        .ty-clear-icon {
            color: var(--ty-color-text-description, rgba(0, 0, 0, 0.45));
            cursor: pointer;
            display: flex;
        }

        // 兼容低版本浏览器能留些缝隙
        .ty-gap-mini {
            row-gap: 4px;

            &>* {
                margin-right: 4px;

                &:last-child {
                    margin-right: 0;
                }
            }
        }
    }

    &-tag {
        height: 100%;
        display: flex;
        flex: 1 1 0%;
        flex-wrap: wrap;

        &-item {
            display: flex;
            align-items: center;
            font-size: 12px;
            color: var(--ty-color-text-label, rgba(0, 0, 0, 0.65));
            background-color: var(--ty-filter-tag-bg-color, rgba(0, 0, 0, 0.04));
            padding-left: 8px;
            padding-right: 8px;
            padding-top: 4px;
            padding-bottom: 4px;
            border-radius: 2px;
            word-break: break-all;
        }

        .close-icon {
            font-size: 12px;
            cursor: pointer;
            color: var(--ty-color-text-label, rgba(0, 0, 0, 0.65));
            display: flex;
        }
    }

    &-input-inner {
        position: initial;
        display: inline-flex;

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
            background-color: transparent;
        }

        /*定义滚动条的轨道，内阴影及圆角*/
        ::-webkit-scrollbar-track {
            border-radius: 10px;
            background-color: transparent;
        }

        /*定义滑块，内阴影及圆角*/
        ::-webkit-scrollbar-thumb {
            /*width: 10px;*/
            height: 20px;
            border-radius: 10px;
            background-color: transparent;
        }

        :hover {
            &::-webkit-scrollbar {
                background-color: var(--ty-color-bg-container, #ffffff);
            }

            /*定义滚动条的轨道，内阴影及圆角*/
            &::-webkit-scrollbar-track {
                background-color: var(--ty-color-bg-container, #ffffff);
            }

            /*定义滑块，内阴影及圆角*/
            &::-webkit-scrollbar-thumb {
                background-color: var(--ty-wc-bg-gray, #DEE0E5);
            }
        }

        .ty-filter-input-el {
            min-width: 240px;
            height: 100%;
            font-size: 14px;
            box-sizing: border-box;
            padding: 4px 0;
            border: none;
            background-color: var(--ty-filter-input-bg-color, #fff);
            color: var(--ty-color-text-heading, rgba(0, 0, 0, 0.85));

            &::placeholder {
                color: var(--ty-color-text-placeholder, rgba(0, 0, 0, 0.25));
                font-size: 12px;
                line-height: 28px;
            }

            &:focus-visible {
                outline: none;
            }
        }

        div.ty-filter-down {
            position: absolute;
            top: 100%;
            z-index: 199;
            max-width: 100%;

            &-box {
                min-width: 240px;
                max-height: 400px;
                min-height: 32px;
                overflow-y: auto;
                overflow-x: hidden;
                background-color: var(--ty-filter-input-bg-color, #fff);
                border-radius: 6px;
                border: 1px solid rgba(174, 174, 174, .45);
                box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 12%), 0 2px 2px -4px rgba(0, 0, 0, 15%);
            }

            &-polarUnion {
                display: flex;
                max-width: 100%;
                flex-wrap: wrap;

                .ty-filter-down-box {
                    min-width: 240px;
                }
            }

            &-item {
                white-space: nowrap;
                box-sizing: border-box;
                min-height: 28px;
                padding: 8px;
                cursor: pointer;
                font-size: 12px;
                color: var(--ty-color-text-label, rgba(0, 0, 0, 0.65));

                &:hover {
                    background-color: var(--ty-table-header-bg, #f9f7f7);
                }

                &-active {
                    background-color: var(--ty-table-header-bg, #f9f7f7);
                }
            }

            &-enter {
                display: flex;
                padding: 16px 10px;
                align-items: flex-start;

                input {
                    width: 200px;
                    font-size: 12px;
                }

                button {
                    margin-left: 8px;
                }
            }

            &-loading {
                width: 100%;
                height: 100%;
                position: absolute;
                left: 0;
                top: 0;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            &-polarUnion-loading {
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                pointer-events: none;
                /* 允许鼠标事件穿透 */
            }
        }

        .ty-block {
            display: block;
        }

        .ty-hidden {
            display: none;
        }

        .ty-filter-down-tip {
            color: #f00;
            font-size: 12px;
            margin-top: 8px;
            display: block;
            margin-left: 4px;
        }
    }
}