@import "../../../style/variables.less";
@prefix-cls: ~"@{prefix}-manage-select";

.@{prefix-cls} {
    width: calc(50vw) !important;
    max-width: 800px;

    .content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: -5px;

        .left,
        .right {
            display: flex;
            flex-direction: column;
            flex: 0 0 auto;
            padding: 0 10px 10px;
            height: calc(~"80vh - 122px") !important;
            max-height: 460px;

            .ant-list {
                flex: 1 1 auto;
                overflow: auto;
            }

            .ant-tabs-content {
                height: calc(~"100% - 46px")
            }
        }

        .middle {
            align-self: center;
        }

        .left {
            width: 49%;

            .search-box {
                flex: 0 0 auto;
                position: relative;

                .fm {
                    border-radius: 3px;
                    cursor: pointer;
                    position: absolute;
                    background-color: #fff;
                    right: 4px;
                    top: 4px;
                    width: 22px;
                    height: 22px;
                    font-size: 14px;
                    line-height: 22px;
                    text-align: center;
                    color: @maycur-color;
                    z-index: 2;

                    &:hover {
                        color: @reject-color;
                        background-color: @reject-bg-color;
                    }
                }

                .ant-input {
                    border-bottom: none;
                }
            }

            .search-list,
            .source-list {
                display: flex;
                flex-direction: column;
                flex: 1 1 auto;
                height: calc(~"100% - 30px");
            }

            .opt-bar {
                margin: 0 0 5px 0;
                padding: 8px 0;
                border-bottom: 1px solid @border-color;

                .select-all-btn {
                    display: inline-flex;
                    flex-direction: row;
                    align-items: center;
                    cursor: pointer;
                }
            }
        }

        .right {
            width: 49%;

            .status-bar {
                flex: 0 0 auto;
                border-bottom: 3px solid #ebebeb;
                padding: 5px 0 7px;
                font-size: 14px;
                display: flex;
                flex-direction: row;
                align-items: flex-start;
                color: #555;

                >span {
                    line-height: 18px;
                }

                .bar-label {
                    flex: 0 0 auto;
                }

                .dep-count {
                    flex: 0 1 auto;
                    margin-right: 2px;
                }

                .staff-count {
                    flex: 0 1 auto;
                    margin-right: 2px;
                }

                .clear-all {
                    flex: 1 0 auto;
                    text-align: right;

                    .btn {
                        display: inline-block;
                        padding: 3px 5px;
                        cursor: pointer;
                        margin-top: -4px;
                        color: @maycur-color;

                        &:hover {
                            color: @reject-color;
                            background-color: @reject-bg-color;
                        }
                    }
                }
            }

            .ant-alert {
                flex: 0 0 auto;
                padding: 6px 10px;
                border-radius: 0;
                line-height: 17px;
                font-size: 12px;
                border: none;
                margin: 0 -10px;
                color: @weak-text-color;

                +.ant-list {
                    border-top: none;
                }
            }

            .ant-list {
                margin-top: 10px;
            }
        }

        .ant-tabs {
            display: flex;
            flex-direction: column;

            .ant-tabs-bar {
                border-bottom-width: 3px;
                margin-bottom: 10px;
                box-sizing: content-box;
            }

            .ant-tabs-nav-container {
                bottom: -3px;
                margin-bottom: 0;
                padding: 0;

                .ant-tabs-nav-wrap {
                    margin-bottom: 0;
                }
            }

            .ant-tabs-ink-bar {
                height: 3px;
                bottom: 0;
            }

            .ant-tabs-tabpane {
                display: flex;
                flex-direction: column;
            }

            .ant-tabs-nav {
                .ant-tabs-tab {
                    padding-top: 0;
                }

                .ant-tabs-tab-active {
                    color: #555;
                }
            }
        }


        .item-name {
            flex: 1 1 auto;
            color: @primary-font-color;
            margin-right: 5px;

            .fm {
                color: @maycur-color;
                margin-right: 5px;
            }
        }

        .fm-check {
            width: 18px;
            height: 18px;
            line-height: 18px;
            text-align: center;
            background-color: #fff;
            color: #fff;
            border-radius: 0;
            border: 1px solid @border-color;
            font-size: 12px;
            display: inline-block;

            &.selected {
                background-color: @maycur-color;
                border-color: @maycur-color;
                color: #fff;
            }
        }

        .strong {
            color: @maycur-color;
            margin: 0 3px;
        }

        .ant-input-search {
            .ant-input {
                height: 30px;
                font-size: 12px;
                border: 0;

                &:hover,
                &:focus {
                    border: 0;
                }
            }
        }

        .ant-breadcrumb {
            font-size: 14px;
            margin: 8px 0 0 0;

            >span:last-child {
                color: @weak-text-color;
            }

            .ant-breadcrumb-link {
                color: @main-text-color;
            }
        }

        .ant-list-item {
            padding: 5px 0 5px 10px;
            border-bottom: 0;
            // cursor: pointer;

            .fm-check {
                flex: 0 0 auto;
                // margin-top: 2px;
            }

            .fm-organization {
                flex: 0 0 auto;
                width: 22px;
                height: 22px;
                line-height: 22px;
                font-size: 14px;
                text-align: center;
                color: @maycur-color;
                border-radius: 3px;

                &:hover {
                    background-color: @maycur-color;
                    color: #fff;
                }
            }

            .fm-trash {
                width: 22px;
                height: 22px;
                line-height: 22px;
                font-size: 14px;
                text-align: center;
                color: @maycur-color;
                border-radius: 3px;
                cursor: pointer;

                &:hover {
                    background-color: @reject-bg-color;
                    color: @reject-color;
                }
            }

            &.selected {
                .fm-check {
                    background-color: @maycur-color;
                    border-color: @maycur-color;
                }
            }
        }

    }

    .title {
        display: flex;
        justify-content: space-between;
        padding: 0 40px 0 10px;
        line-height: 24px;
        margin: 0;
        color: rgba(0, 0, 0, 0.85);
        font-weight: 500;
        font-size: 15px;

        .switch {
            display: flex;
            align-items: center;
        }

        .ant-switch {
            margin-right: 10px;
            height: 20px;

            &::after {
                width: 16px;
                height: 16px;
            }
        }

        .fm-question {
            color: @maycur-color;
            margin-left: 10px;
            cursor: pointer;
        }
    }

    .footer {
        display: flex;
        justify-content: space-between;
        padding-left: 10px;

        .help {
            line-height: 36px;
            color: @report-label-color;
        }
    }

    .ant-modal-footer {
        border-top: none;
    }

    // .fm{
    //     color:@maycur-color;
    // }

}

.@{prefix-cls} {
    width: 250px;
}