@import "mixins/mixins";
@import "common/var";
@import "tree";
@import "input";
@import "dialog";
@import "row";
@import "col";
@import "button";
@import "radio";

@include b(tree-transfer) {
  width: 800px;
  &__input {
    width: 95%;
    transform: translateX(2.5%);
    margin-bottom: 10px;
  }
  &__col {
    height: 400px;
    border: 1px solid #d3d3d3;
  }
  &__head {
    padding: 10px;
    background-color: #f5f5f5;
    margin-bottom: 10px;
  }
  &__nodes {
    display: flex;
    flex-direction: column;
    max-height: 350px;
    &--search {
      max-height: 300px;
    }
  }
  &__scroll {
    display: flex;
    flex-direction: column;
    max-height: 350px;
    margin-bottom: -1px!important;
    margin-right: -5px!important;
    &--search {
      max-height: 300px;
    }
  }
  &__tree {
    max-height: 330px;
    overflow: auto;
    &--search {
      max-height: 280px;
    }
  }
  &__list {
    &__title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: 30px;
      cursor: pointer;
      font-size: 20px;
      font-weight: bold;
      margin-left: 10px;
    }
  }
  &__node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 30px;
    cursor: pointer;
    * {
      cursor: pointer;
    }
    &:hover {
      background: #fafafa;
    }
    &__label {
      max-width: calc(100% - 40px);
      font-size: 20px;
      line-height: 30px;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
      margin-left: 10px;
      &--group {
        max-width: calc(100% - 60px);
        margin-left: 30px;
      }
    }
    &__icon {
      cursor: pointer;
      font-size: 14px;
      margin-right: 15px;
    }
  }
  &__placenode {
    width: 105px;
  }
  &__btngroup {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    &__all {
      width: 120px;
    }
    &__clear {
      width: 120px;
      margin-top: 20px!important;
      margin-left: 0!important;
    }
  }
  .el-radio {
    margin-top: 2px;
    margin-right: 5px;
  }
  .el-radio__label {
    display: none;
  }
  ::-webkit-scrollbar {/*滚动条整体样式*/
    width: 5px;     /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
  }
  ::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
    border-radius: 10px;
    background: #e5e5e5;
  }
  ::-webkit-scrollbar-track {/*滚动条里面轨道*/
    border-radius: 10px;
    background: #EDEDED;
  }
}

.custom-tree-node, .wrap-tree-node {
  flex: 1;
  display: flex;
  align-items: center;
  font-size: 20px;
  padding-right: 8px;
  &__icon {
    margin-right: 5px;
  }
}
