@import '~antd/es/style/themes/default.less';
.base-wedget {
    cursor: move;
    display: flex;
    flex-direction: column;
    height: 100%;
    .header {
        display: flex;
        flex: 0 0 auto;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        padding: 6px;
        box-sizing: border-box;
        background-color: rgb(242, 242, 242);
        height: 32px;
        cursor: move;
        font-size: 12px;
        font-weight: 400;
        .btn {
            box-sizing: border-box;
            outline: medium;
            background: none;
            cursor: pointer;
            font-family: inherit;
            font-size: inherit;
            text-decoration: none;
            transition: all 0.3s ease-out 0s;
            display: inline-block;
            border: 1px solid transparent;
            overflow: hidden;
            vertical-align: middle;
            text-align: center;
            color: rgb(85, 85, 85);
            white-space: nowrap;
            padding: 0px 12px;
            height: 32px;
            line-height: 30px;
        }
        .close {
            position: absolute;
            right: 8px;
            cursor: pointer;
            top: -2px;
        }
    }
    .body {
        flex: 1 1 auto;
        min-height: 0px;
        margin: 0;
        line-height: 1.15;
        -ms-text-size-adjust: 100%;
        -webkit-text-size-adjust: 100%;
        font-size: 100%;
        font-family: -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,simsun,sans-serif;
        font-size: 12px;
        line-height: 1.28571;
        color: #111;
        .search {
            margin-bottom: 0px;
            padding-right: 16px;
            padding-bottom: 8px;
            padding-left: 16px;
            background-color: rgb(242, 242, 242);
            -webkit-box-flex: 0;
            flex: 0 0 auto;
            :global(.ant-select-auto-complete) {
                width: 100%;
            }
            :global(.ant-input-suffix) {
                color: #888888;
            }
            :global(.ant-input) {
                font-size: 12px;
            }
        }
        .result {
            -webkit-box-flex: 1;
            flex: 1 1 auto;
            display: -webkit-box;
            display: flex;
            -webkit-box-orient: vertical;
            -webkit-box-direction: normal;
            flex-direction: column;
            min-height: 120px;
            overflow: hidden;
            height: 100%;
            :global(.ant-tabs-nav) {
                -webkit-box-flex: 0;
                flex: 0 0 auto;
                margin-left: 16px;
                margin-right: 16px;
                margin-bottom: 0px;
            }
            :global(.ant-tabs) {
                overflow: hidden;
                height: 100%;
            }
            :global(.ant-tabs-tab-btn) {
                font-size: 12px!important;
                padding: 0px 16px;
            }
            :global(.ant-tabs-tabpane) {
                display: flex;
                overflow: hidden;
                height: 100%;
            }
            :global(.ant-tabs-content) {
                overflow: hidden;
                height: 100%;
            }
        }
    }

    .empty {
        -webkit-box-flex: 1;
        flex: 1 1 auto;
        display: -webkit-box;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        flex-direction: column;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        img {
            border-style: none;
        }
        p {
            margin-bottom: 6px;
            font-size: 12px;
            font-weight: 400;
            line-height: 20px;
        }
    }
}

.searchList {
    .group-label {
        padding: 0 12px;
        color: #888;
    }
    .group-item {
        position: relative;
        padding: 0 12px;
        -webkit-transition: background .2s ease;
        transition: background .2s ease;
        color: #333;
        cursor: pointer;
    }
    .item-inner {
        height: 32px;
        line-height: 32px;
        font-size: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-wrap: normal;
    }
    .item-text {
        vertical-align: middle;
        color: #333;
    }
    :global(.ant-select-item-option) {
        padding: 0 2px!important;
    }
    :global(.rc-virtual-list-scrollbar) {
        width: 0!important;
    }
}

.resultContainer {
    padding: 8px 16px;
    -webkit-box-flex: 1;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    .item {
        display: flex;
        -webkit-box-pack: justify;
        justify-content: space-between;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        flex-direction: row;
        flex-wrap: nowrap;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
        color: inherit;
        padding: 0 0;
        text-decoration: none;
        &:hover {
            background-color: #f7f7f7;
            cursor: pointer;
            :global(.anticon-right-circle) {
                opacity: 1!important;
            }
            .href {
                opacity: 1;
            }
        }
        .title {
            -webkit-box-flex: 0;
            flex: 0 1 auto;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            display: flex;
            align-items: center;
            :global(.anticon-right-circle) {
                margin-left: 8px;
                color: #c1c1c1;
                opacity: 0;
                -webkit-transition: opacity none;
                transition: opacity none;
                font-size: 14px;
            }
        }
        .href {
            opacity: 0;
            margin-left: 4px;
            color: rgb(193, 193, 193);
            transition: none 0s ease 0s;
        }
        .subtitle {
            color: #c1c1c1;
            -webkit-box-flex: 0;
            flex: 0 0 auto;
            margin-left: 12px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }
    .footer {
        margin-top: 4px;
        float: right;
        :global(li.ant-pagination-item:not(.ant-pagination-item-active)), :global(.ant-pagination-prev), :global(.ant-pagination-next) {
            // padding: 0 6px;
            border-width: 1px;
            border-radius: 0;
            border: 1px solid #dedede;
            background: #fff!important;
            min-width: 24px;
            margin: 0 0 0 -1px!important;
            color: #333;
            height: 24px;
            line-height: 22px;
            font-size: 12px;
            border-color: #dedede;

        }
        :global(.ant-pagination-prev), :global(.ant-pagination-next) {
            padding: 0 6px;
        }
        :global(.ant-pagination-item-active) {
            border-color: @primary-color!important;
            border-radius: 0;
            box-shadow: none;
            background: #fff;
            z-index: 1;
            position: relative;
        }
    }
}

.withHightLight {
    display: inline-block;
    em {
        color: @primary-color;
        font-style: inherit;
        font-weight: 500;
    }
}
