@import '../../../style/variables.less';
@import '../../../Empty/style/empty.less';

.@{prefix}-department-picker-transfer {
    width: 100%;

    .transfer-content {
        display: flex;
        margin-top: -5px;

        .left,
        .right {
            display: flex;
            flex-direction: column;
            flex: 0 0 auto;
            padding: 0 10px;
            height: 460px;
            width: 49%;

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

        }

        @media screen and (max-height: 850px) {

            .left,
            .right {
                max-height: 370px;
            }
        }

        .middle {
            align-self: center;
        }

        .left {
            .ant-alert {
                margin-bottom: 5px;
                padding-left: 30px;
                font-size: 12px;

                >i {
                    left: 10px;
                }
            }

            .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: @weak-text-color;
                    z-index: 1;

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

                .ant-input {
                    background-color: #f7f7f7;
                    padding-left: 10px;
                }

                .ant-input-group-addon {
                    width: 90px;
                    padding: 0;

                    &:first-child {
                        border: none;
                    }

                    .ant-select {
                        width: 100%;
                        padding: 0 10px;
                    }
                }

                .ant-select-selection {
                    font-size: 12px;

                    .ant-select-selection__rendered {
                        margin: 0;
                    }

                    .ant-select-arrow {
                        right: 0;
                    }
                }
            }

            .searching {
                .ant-input-suffix {
                    display: none;
                }
            }

            .ant-tabs {
                height:100%;

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

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

                .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-content {
                    height: calc(~"100% - 48px");

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

            .search-list,
            .source-list {
                margin-top: 8px;
                flex: 1;
                overflow: auto;
                height: 373px;
            }

            .user-group-wrapper {
                display: flex;
                flex-direction: column;
                flex: 1 1 auto;
                margin: 0;
                overflow: auto;
            }

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

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

        .right {
            .status-bar {
                flex: 0 0 auto;
                border-bottom: 3px solid #e8e8e8;
                padding: 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;
                        }
                    }
                }
            }

            .right-warn-alert {
                margin-top: 10px;
                height: 30px;
                line-height: 30px;
            }

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

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

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

        .item-name {
            flex: 1 1 auto;
            color: @primary-font-color;
            display: flex;

            .name {
                max-width: 290px;
            }

            .user-info {
                margin-left: 8px;
                max-width: 200px;
            }

            .fm {
                color: @weak-text-color;
                margin-right: 8px;
            }
        }

        .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;

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

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

        .ant-list-item {
            display: flex;
            border-bottom: 0;

            .item-content {
                flex: 1;
            }

            .fm:not(.fm-check) {
                flex: none;
                height: 22px;
                line-height: 22px;
                font-size: 16px;
                text-align: center;
                color: @maycur-color;

                &.fm-organization {
                    flex: none;
                    font-size: 12px;

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

                &.fm-trash {
                    cursor: pointer;

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

        }

        .fm-check {
            width: 18px;
            height: 18px;
            line-height: 18px;
            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;
            }
        }
    }
}