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

  &-list {
    display: inline-block;
    width: $transfer-list-width;
    // height: $max-height;
    font-size: $transfer-list-font-size;
    vertical-align: middle;
    position: relative;
    padding-top: $transfer-list-padding-top;

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

    &-header {
      padding: $transfer-list-header-padding;
      background: $transfer-header-bg;
      height: $transfer-header-height;
      line-height: $transfer-header-height;
      color: $text-color;
      border: 1px solid $border-color-base;
      border-bottom: 1px solid #ededed;//**********************************
      border-radius: $transfer-border-radius $transfer-border-radius 0 0;
      overflow: hidden;
      position: absolute;
      top: $transfer-list-header-top;
      left: $transfer-list-header-left;
      width: 100%;
      z-index: 1;

      &-title {
        cursor: pointer;
        font-weight: bold;//****************
      }

      & > span {
        padding-left: $transfer-list-header-span-padding-left;
      }

      &-count {
        margin: 0 !important;
        float: none;//****************
        color: #999;//****************
      }

      .head-clear {
        cursor: pointer;
      }
    }

    &-body {
      // height: 100%;
      height: $max-height;
      border: 1px solid $border-color-base;
      border-top: none;
      border-radius: 0 0 $transfer-border-radius $transfer-border-radius;
      position: relative;
      overflow: hidden;
      z-index: 0;

      &-with-search {
        padding-top: $transfer-list-body-with-search-padding-top;
      }

      &-with-footer {
        border-radius: 0;
      }
    }

    &-content {
      height: 100%;
      padding: $transfer-list-content-padding;
      overflow: auto;

      &-item {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;

        & > span {
          //padding-left: 4px;
        }

        & > .delete-icon {
          display: none;
          float: right;
        }
      }

      &-item:hover {
        background: $transfer-list-content-item-hover-color;

        & > .delete-icon {
          display: block;
        }
      }

      &-not-found {
        display: none;
        text-align: center;
        color: $btn-disable-color;
      }

      &-not-found:only-child {
        display: block;
      }
    }

    &-data-not-found {
      text-align: center;
      color: $btn-disable-color;
    }

    &-body-with-search &-content {
      padding: $transfer-body-with-search-padding;
    }

    &-body-search-wrapper {
      padding: $transfer-body-search-wrapper-padding;
      position: absolute;
      top: $transfer-body-search-wrapper-top;
      left: $transfer-body-search-wrapper-left;
      right: $transfer-body-search-wrapper-right;
    }

    &-search {
      position: relative;
    }

    &-footer {
      border: 1px solid $border-color-base;
      padding: $transfer-footer-padding;
      border-top: none;
      border-radius: 0 0 $border-radius-base $border-radius-base;
      bottom: $transfer-footer-bottom;
      left: $transfer-footer-left;
      right: $transfer-footer-right;
      // min-height: 35px;
      @include clearfix();
    }
  }

  &-operation {
    display: inline-block;
    overflow: hidden;
    margin: $transfer-operation-margin;
    vertical-align: middle;

    .#{$btn-prefix-cls} {
      display: block;
      min-width: $btn-circle-size-small;
      width: 28px;
      height: 20px;
      margin-bottom: $transfer-operation-btn-margin-bottom;

      &:last-child {
        margin-bottom: $transfer-operation-btn-last-child-margin-bottom;
      }
    }
  }
}

@include select-item($transfer-prefix-cls, $transfer-item-prefix-cls);
.#{$transfer-item-prefix-cls} {
  padding: 5px 8px;//****************覆盖mixin

  &-disabled {
    color: $transfer-list-content-item-disabled-color;
    cursor: $cursor-disabled;

    &:hover {
      color: $transfer-list-content-item-disabled-hover-color;
      background-color: $transfer-item-hover-background-color;
      cursor: $cursor-disabled;
    }
  }
}
.#{$transfer-item-prefix-cls}:hover {
  background: $transfer-list-content-item-hover-color;
}
