@import '../../style/vars';

@--border-color: @border-color-split;
@--border-radius: @border-radius-base;
@--header-h: 40px;
@--padding-left: 1em;
.z-transfer-row {
  height: 400px;
}
.z-transfer-box {
  user-select: none;
  position: relative;
  height: 100%;
  border-width: 1px;
  border-style: solid;
  border-color: @--border-color;
  border-radius: @--border-radius;

  &.is-over {
    border-style: dashed;
    border-color: @--primary-5;
  }
  .z-transfer-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: @--header-h;
    line-height: @--header-h;
    color: @--primary-color;
    border-bottom: 1px solid @--border-color;
    padding: 0 @--padding-left;
  }
  .z-transfer-body {
    position: absolute !important;
    top: @--header-h;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    overflow-x: hidden !important;
  }
  .z-transfer-ul {
    list-style: none;
    padding: 6px 0;
    &.is-ul-over {
      background-color: fade(@--primary-color, (0.3 * 100));
    }
  }
  .z-transfer-li {
    padding: 6px @--padding-left;
    &::after {
      display: block;
      content: ' ';
      height: 0;
      clear: both;
    }
    cursor: move;
    &:not(.is-li-disabled):hover {
      background-color: @--primary-1;
    }
    &.is-li-move {
      border-top: 1px dashed @--primary-5;
      border-bottom: 1px dashed @--primary-5;
    }
    &.is-li-droged {
      border-top: 1px dashed @--primary-3;
      border-bottom: 1px dashed @--primary-3;
      background-color: @--primary-1;
      margin-top: -1px;
    }
    &.is-li-disabled {
      cursor: no-drop;
      color: lighten(@text-color, 60%);
    }
    &.is-sub {
      cursor: pointer;
      font-weight: 600;
      color: #333333;
      // color: lighten(@text-color, 60%);
      // &:not(:first-child){
      //     border-top: 1px solid lighten(@--border-color, 10%);
      // }
    }
    .z-right {
      margin-top: 0.4em;
      float: right;

      transition: all 0.3s ease-in-out;
      &.is-90 {
        transform: rotate(90deg);
      }
    }
  }
}
.z-transfer-item-clone {
  padding: 6px @--padding-left;
  background-color: @--primary-1;
  border: 1px dashed @--primary-3;
  cursor: move;
}

.z-min-height {
  min-height: 100% !important;
}
@--arrow-w: 16px;
.z-arrow-right {
  font-size: 12px;
  position: absolute;
  top: 0;
  width: @--arrow-w;
  right: -@--arrow-w / 2;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  .z-swap-right-down {
    transform: rotate(180deg);
  }
}
