@import "mixins/mixins";
@import "common/var";
@import "mixins/utils";

@include b(unidirectionalTransfer) {
    width: 100%;
    height: 100%;
    @include e(right-panel) {       
        border: 1px solid $--transfer-border-color;
        border-left: 0;
        border-radius: 0 $--transfer-border-radius $--transfer-border-radius 0;
        overflow: hidden;
        background: $--color-white;
        display: inline-block;
        vertical-align: middle;
        width: 350px;
        max-height: 100%;
        box-sizing: border-box;
        position: relative;
    }
    @include e(left-panel) {
        border: 1px solid $--transfer-border-color;
        border-radius: $--transfer-border-radius 0 0 $--transfer-border-radius;       
        overflow: hidden;
        background: $--color-white;
        display: inline-block;
        vertical-align: middle;
        width: 350px;
        max-height: 100%;
        box-sizing: border-box;
        position: relative;
        .el-icon-close {
            position: relative;
            top: 3px;
        }
    }
    @include e(header) {
        height: $--transfer-panel-header-height;
        line-height: $--transfer-panel-header-height;
        background: $--table-header-background-color;
        margin: 0;
        padding-left: 15px;
        border-bottom: 1px solid $--transfer-border-color;
        box-sizing: border-box;
        color: $--color-black;

        .el-checkbox {
            display: block;
            line-height: 40px;

            .el-checkbox__label {
                font-size: 16px;
                color: $--color-text-primary;
                font-weight: normal;

                span {
                    position: absolute;
                    right: 15px;
                    color: $--color-text-secondary;
                    font-size: 14px;
                    font-weight: normal;
                }
            }
        }
    }
    @include e(body) {
        height: $--transfer-panel-body-height;
        .el-tree {
            margin-left: -24px;
        }
        .istree {
            margin-left: 0;
        }
        .el-tree-node__content {
            min-height: 36px;
        }
        .el-icon-close {
            color: $--color-gray;
            &:hover {
                color: $--color-brown-black;
            }
        }

        @include when(with-footer) {
            padding-bottom: $--transfer-panel-footer-height;
        }
    }
    @include e(list) {
        margin: 0;
        padding: 6px 0;
        list-style: none;
        height: $--transfer-panel-body-height;
        overflow: auto;
        box-sizing: border-box;
    
        @include when(filterable) {
          height: #{$--transfer-panel-body-height - $--transfer-filter-height - 10px};
          padding-top: 0;
        }
    }
    @include e(footer) {
        height: $--transfer-panel-footer-height;
        background: $--color-white;
        margin: 0;
        padding: 0;
        border-top: 1px solid $--transfer-border-color;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: $--index-normal;
        @include utils-vertical-center;

        .el-checkbox {
            padding-left: 20px;
            color: $--color-text-regular;
        }
    }
    @include e(filter) {
        text-align: center;
        margin: 16px;
        margin-bottom: 10px;
        box-sizing: border-box;
        display: block;
        width: calc(100% - 16px * 2) !important;
    
        .el-input__inner {
          height: $--transfer-filter-height;
          width: 100%;
          font-size: 12px;
          display: inline-block;
          box-sizing: border-box;
          border-radius: $--border-radius-base;
          padding-right: 10px;
          padding-left: 16px;
        }
    
        .el-input__icon {
          margin-left: 5px;
        }
    
        .el-icon-circle-close {
          cursor: pointer;
        }
    }

    .el-transfer-panel__empty {
        margin: 0;
        height: $--transfer-item-height;
        line-height: $--transfer-item-height;
        padding: 6px 15px 0;
        color: $--color-text-secondary;
        text-align: center;
    }

    .el-checkbox__label {
        padding-left: 8px;
    }

    .el-checkbox__inner {
        height: 14px;
        width: 14px;
        &::after {
            height: 6px;
            width: 3px;
            left: 4px;
        }
    }
}
