@import "mixins/mixins";
@import "common/var";
@import "tree";
@import "dialog";

@include b(user-picker) {
    @include e(section-wrapper) {
        border-radius: 5px;
        border: $--border-base
    }

    @include e(filter-wrapper) {
        padding: 12px 20px;
    }

    @include e(custom-filter-wrapper) {
        padding: 12px 20px;
    }

    .filter-wrapper {
        padding: 12px 20px;
    }

    .custom-filter-wrapper {
        padding: 12px 20px;
    }

    .radio {
        .el-tree {
            // 不可全选样式
            .el-tree-node {
                .is-leaf + .el-checkbox .el-checkbox__inner {
                    display: inline-block;
                }
                .el-checkbox .el-checkbox__inner {
                    display: none;
                }
                .el-checkbox {
                    margin-right: 0;
                }
                .is-leaf + .el-checkbox {
                    margin-right: 8px;
                }
            }
        }
    }


    @include e(section-content) {
        width: 100%;
        //height: 400px;
        overflow: auto;
        padding-bottom: 12px;
        box-sizing: border-box;

        .el-tree {
            padding: 12px 20px;
        }
    }

    @include e(section-list) {
        list-style: none;
        margin: 0;
        padding: 0;

        li {
            padding: 4px 25px 4px 20px;
            cursor: pointer;
            position: relative;
            &:hover {
                background-color: $--background-color-base;
            }
            [class^="el-icon-"] {
                right: 10px;
                position: absolute;
                top: 8px;
            }
        }
        &-children {
            list-style: none;
            margin: 0;
            padding: 0;
            li {
                padding: 4px 35px 4px 40px;
                cursor: pointer;
                position: relative;
                &:hover {
                    background-color: $--background-color-base;
                }
                [class^="el-icon-"] {
                    right: 20px;
                    position: absolute;
                    top: 8px;
                }
            }
        }
        &-title {
            padding-left: 20px!important;
            font-weight: 600;
        }
    }

    @include e(section-btns) {
        position: relative;
        height: 100%;
        text-align: center;
        margin-top: 200px;

        .el-button {
            width: 140px;
        }
        .el-button:first-child {
            margin-bottom: 20px;
        }
    }

    @include e(section-header) {
        height: 59px;
        background: $--background-color-gray;
        padding: 20px;
        position: relative;
        border-bottom: $--border-base;
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        align-items: center;
        .right {
            position: absolute;
            right: 24px;
            font-size: $--font-size-small;
            color: $--color-black-45;
        }
    }
}
