@transfer-prefix-cls: ~"@{css-prefix}transfer";
@transfer-item-prefix-cls: ~"@{css-prefix}transfer-list-content-item";
.@{transfer-prefix-cls} {
  position: relative;
  line-height: @line-height-base;
  ::-webkit-scrollbar {
    width: 6px;
    cursor: pointer;
  }
  ::-webkit-scrollbar-track {
    background-color: @color-scrollbar-track !important;
  }
  ::-webkit-scrollbar-thumb {
    background-color: @color-scrollbar !important;
    border-radius: 6px;
  }
  &-list{
    display: inline-block;
    min-width: 200px;
    height: 256px;
    font-size: @font-size-base;
    vertical-align: middle;
    position: relative;
    padding-top: 32px;

    &-with-footer{
      padding-bottom: 35px;
    }

    &-header {
      padding: 6px 10px;
      background: @color-bg-page;
      color: @color-complementary-3;
      border: 1px solid @color-bg-pause-frame;
      border-bottom: none;
      border-radius: @border-radius-base @border-radius-base 0 0;
      overflow: hidden;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      display:flex;
      vertical-align:middle;
      .haloe-checkbox-inner{
        background-color: @color-functional-white;
      }
      .haloe-checkbox-checked .haloe-checkbox-inner {
        border-color: @color-brand-primary;
        background-color: @color-brand-primary;
      }
      &-title{
        cursor: pointer;
        margin-left: -10px;
        &.no-checkbox {
          cursor: auto;
          margin-left: 0;
        }
      }

      &-count {
        display: inline-block;
        color:@color-complementary-3;
        font-size: @font-size-base;
        margin-left: 10px;
        width: 50px;
      }
    }

    &-body{
      height: 100%;
      border: 1px solid @color-bg-pause-frame;
      border-top: none;
      border-radius: 0 0 @border-radius-base @border-radius-base;
      position: relative;

      &-with-search{
        padding-top: 52px;
      }
      &-with-footer{
        border-radius: 0;
      }
    }

    &-content{
      height: 100%;
      padding: 0;
      overflow: auto;
      &.as-table {
        padding: 8px 10px 10px 10px !important;
        height: auto;

        .haloe-table-header thead th:not(:first-child) .haloe-table-cell{
          border-left: none;
        }
    }
      &-item{
        overflow: hidden;
        white-space: nowrap;
        padding: 7px 10px !important;
        text-overflow: ellipsis;
        display: flex;
        vertical-align: middle;
        // color: #9D9EA9 !important;
        & > div{
          margin-left: -10px;
          margin-top: 5px;
        }
        // &-disabled{
        //   color:  #9D9EA9!important;
        //   // background-color: @color-complementary-8;
        // }
      }
      //新增向右穿梭框由列表可删除ICON
      .@{transfer-prefix-cls}-list-close {
        margin-left: auto ;
        color:@transfer-close-color;
        font-size: 16px;
      }
        .@{icon-prefix-cls}-close:hover {
          color:  @transfer-close-hover-color;
        }

      &-not-found{
        display: none;
        text-align: center;
        margin-top: 70px;
        color: @transfer-disabled-color;
        > img{
          display: inline-block;
        }
      }
      li&-not-found:only-child{
        display: block;
      }
    }
    &-body-with-search &-content{
      // padding: 8px 0 0;
    }

    &-body-search-wrapper{
      padding: 10px 10px 0;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
       .haloe-input{
        border: none;
        border-bottom:1px solid @gray-300 !important
      }
    }

    &-search{
      position: relative;
  
    }

    &-footer{
      border: 1px solid @border-color-base;
      border-top: none;
      border-radius: 0 0 @border-radius-base @border-radius-base;
      bottom: 0;
      left: 0;
      right: 0;

      .clearfix();
    }

    &-disabled{
      opacity: 0.6;
     // background-color: @color-complementary-8;
      cursor: not-allowed;
      .@{transfer-prefix-cls}-list-content-item{
        color: @font-500!important;
      }
    }
    &-table-not-found{ 
          text-align: center;
          margin-top: 70px;
          color:@transfer-disabled-color;
          > img{
          display: inline-block;
        }
      }
      &-tree-wrapper{
        height: 100%;
        overflow-x: auto;
        overflow-y: auto;
        padding: 0;
        width: 100%;
        box-sizing: border-box;
      }
  }

  &-operation {
    display: inline-block;
    margin: 0 16px;
    vertical-align: middle;

    &-btn {
      display: block;
      width: 24px;
      height: 24px;
      text-align: center;
      padding: 0;
      font-size: @font-size-large;
      border:none;
      line-height: 1;
      i {
        line-height:normal;
      }
      &:first-child {
        margin-bottom: 12px;
      }
    }
    .haloe-icon{
      vertical-align: middle;
    }
  }


}
.select-item(@transfer-prefix-cls, @transfer-item-prefix-cls);
