@import "../../../style/variables.less";
@import "../../../DepartmentSelectionModal/style/DepartmentSelectionModal.less";
@import "../../../NameCard/style/NameCard.less";

.staffFieldSpace() {
  @cmName: ~"@{prefix}-staff-field";

  .@{cmName}-select {
    text-align: center;
    position: relative;
    cursor: pointer;

    input {
      cursor: pointer;
      text-overflow: ellipsis;
      padding-right: 12px !important;
    }

    .select-down {
      position: absolute;
      // bottom: 8px;
      // right: 0;
      line-height: 1;
      margin-top: -6px;
      top: 50%;
      right: 0;
      font-size: 12px;
      color: rgba(0, 0, 0, 0.25);
      cursor: pointer;
    }

    &:hover .select-down {
      color: @maycur-color;
    }

    .user-info {
      line-height: 27px;
      height: 27px;
      border-bottom: 1px dashed #e1e1e1;
      text-align: left;
      cursor: pointer;

      .name-card {
        .ant-popover-inner-content {
          padding: 0;
        }

        .ant-popover-arrow {
          display: none;
        }
      }

      .icon-circle {
        display: inline-block;
        width: 18px;
        height: 16px;
        line-height: 15px;
        border: 1px solid @maycur-color;
        border-radius: 10px;
        text-align: center;
        margin-left: 5px;
      }

      .fm-more-o {
        color: @maycur-color;
        font-size: 12px;
      }
    }
  }

  :global {
    .mk-select-dropdown.staff-picker-dropdown {
      .mk-select-dropdown-menu {
        .mk-select-dropdown-menu-item {
          display: flex;
          flex-direction: column;

          .full-name {
            font-size: 12px;
            color: #a4a8ab;
          }
        }
      }
    }

    .mk-form-item-control-wrapper {

      .mk-select-selection-selected-value,
      .mk-select-selection__choice__content {
        .full-name {
          display: none;
        }
      }
    }
  }

  /* collectionField */
  .container {
    display: flex;

    :global {
      .ant-select {
        width: 100%;
        min-width: 125px;

        .ant-select-selection {
          border: 1px solid #d9d9d9;
        }
      }

      .ant-input {
        min-width: 135px;
        margin-left: 15px;
        padding: 0 12px;
        border: 1px solid #d9d9d9;
      }
    }

    .staffPicker {
      height: 32px;
      line-height: 32px;
    }

    .tag {
      margin-left: 5px;
      padding: 0 2px;
      background-color: #efbc23;
      color: #fff;
      border: none;
      line-height: 26px;
    }
  }
}

.staffFieldSpace();