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

.@{prefix}-department-picker-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;

  .opt-bar {
    margin: 0 0 5px 10px;

    .select-all-btn {
      display: inline-flex;
      flex-direction: row;
      align-items: center;
      cursor: pointer;

      &.disabled {
        cursor: not-allowed !important;

        .fm-check {
          background-color: @checked-disabled-bg;
          color: @checked-disabled-bor;

          &:before {
            content: "";
          }
        }
      }
    }
  }

  .item-content {
    cursor: pointer;
    flex: 1 1 auto;
    color: @primary-font-color;
    display: flex;
    align-items: center;
    overflow: hidden;

    .name {
      max-width: 290px;
    }

    .user-info {
      margin-left: 8px;
      max-width: 200px;
    }

    .fullname {
      font-size: 12px;
      color: @secondary-text-color;
    }

    .name-wrapper {
      .name,
      .fullname {
        color: @disabled-font-color;
      }
    }

    .fm-employee,
    .fm-cube {
      color: @weak-text-color;
      margin-right: 8px;
      font-size: 16px;
    }
  }

  .item-root {
    color: @maycur-color;

    .fm-cube {
      color: @maycur-color;
    }
  }

  .fm-check {
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background-color: #fff;
    color: #fff;
    border-radius: 100%;
    font-size: 12px;
    display: inline-block;
    margin-right: 10px;

    &.selected {
      color: #fff;
      background-color: @maycur-color !important;
      border-color: @maycur-color !important;
    }
  }

  .fm-radio {
    color: #e1e1e1;
    font-size: 16px;
    margin-right: 10px;
  }

  .fm-radio.disable {
    color: gray;
    cursor: not-allowed;

    &:before {
      background-color: #eee;
      border-radius: 50%;
    }
  }

  .fm-circle-check-o {
    font-size: 16px;
    color: @maycur-color;
    margin-right: 10px;
  }

  .ant-list {
    .ant-list-item {
      padding: 5px 0;
      flex: none;
      cursor: pointer;
      overflow: hidden;

      .fm-check {
        cursor: pointer;
      }

      &.selected {
        .fm-check {
          background-color: @maycur-color !important;
          border-color: @maycur-color !important;
        }
      }

      &-content {
        justify-content: space-between;
      }

      &.notick {
        cursor: default;
        overflow: hidden;

        .modal-item-content {
          cursor: not-allowed;
        }

        .fm-check {
          // background-color: @checked-disabled-bg;
          // color: @checked-disabled-bor;
          // &:before{
          //     content: ''
          // }
          display: none;
        }

        .fm-circle-check-o,
        .fm-radio {
          display: none;
        }

        .modal-item-name {
          position: relative;
          top: -3px;
        }
      }

      .fm-check {
        flex: 0 0 auto;
      }

      .fm-organization {
        flex: 1 1 auto;
        min-width: 80px;
        height: 22px;
        line-height: 22px;
        font-size: 12px;
        text-align: center;
        color: @maycur-color;
        border-radius: 3px;
        cursor: pointer;

        &:before {
          font-size: 14px;
        }

        &:hover {
          color: @maycur-color;
          background-color: #fff;
        }
      }
    }
  }
}
