@import "../../style/themes/default";
@import "../../style/mixins/index";

@mkui-transfer-modal-select-item-prefix-cls: ~"@{mkui-prefix}-transfer-modal";

.@{mkui-transfer-modal-select-item-prefix-cls} {
  .reset-component;
  &-category {
    padding: 0;
    &-item {
      position: relative;
      display: block;
      &-name {
        display: inline-block;
        position: relative;
        min-height: 32px;
        padding: 6px 12px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        cursor: pointer;
        font-weight: bold;
      }
      .mkui-btn {
        position: absolute;
        right: 0;
        top: 0;
        display: none;
      }
      &:hover {
        .mkui-btn {
          display: inline;
        }
      }
    }
  }
  &-item {
    position: relative;
    min-height: 32px;
    padding: 6px 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;

    &-disabled {
      color: @text-color-disabled;
      cursor: not-allowed;
      .mkui-avatar {
        background-color: #bcbcbc !important;
      }
    }
    .mkui-btn {
      position: absolute;
      right: 0;
      top: 0;
      color: #bcbcbc;
      display: none;
      &:hover {
        cursor: pointer;
        color: @error-color;
      }
    }
    &:hover {
      background-color: @background-color-base;
      .mkui-btn {
        display: inline;
      }
    }
  }
}
