@import '~choerodon-ui/lib/style/themes/default';

.c7n-iam-generalsetting {

  &-content {
    display: flex;
  }

  &-section {
    margin-left: .11rem;
    font-size: .14rem;

    & >table {
      width: auto;
    }

    &-title {
      font-size: .16rem;
      font-weight: 500;
      margin: 0 0 .15rem .16rem;
    }

    .@{c7n-pro-prefix}-field-label-output {
      color: var(--text-color3);
    }
  }

  &-logo {
    margin: 0 1rem;
    display: flex;

    &-title {
      width: 100px;
      color: var(--text-color3);
      font-size: .14rem;
    }

    &-content {
      flex: 1;
    }
  }

  .btnGroup {
    margin-top: 12px;

    button:last-child {
      margin-left: 12px;
    }

    button.cancel {
      color: #3f51b5;
    }
  }

  &-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);

    &-wrap {
      position: absolute !important;
      width: 64px;
      height: 64px;
      border-radius: 50% !important;
      font-size: 35px;
      line-height: 64px;
      font-weight: 700;
      background-size: 100%;
      background-position: center;
      background-repeat: no-repeat;
      color: #3f51b5;
      text-transform: uppercase;
      text-align: center;
    }

    &-button {
      position: absolute !important;
      width: 100%;
      height: 100% !important;
      border-radius: inherit !important;
      top: 0;
      left: 0;
      cursor: pointer;
      transition: opacity 0.3s;

      .c7n-upload {
        display: block;
        width: 100%;
        height: 100%;
      }

      &-icon {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background-color: rgba(0, 0, 0, 0.26);
        color: #fff;

        .icon {
          font-size: 24px;
          line-height: 64px;
        }
      }

      &-create {
        opacity: 1;
      }

      &-edit {
        opacity: 0;
      }
    }

    &:hover &-button {
      opacity: 1;
    }
  }
}

.c7n-iam-confirm-modal {
  .c7n-pro-modal-body {
    overflow-x: hidden;
  }
}

.c7n-projects-enable-tips {
  font-weight: 400;
  color: rgb(243, 40, 61);
  margin-top: 0.1rem;
  background-color: rgba(247, 103, 118, 0.1);
  padding: 9px 26px;
  // width: calc(100% + 40px);
  // margin-left: -20px;
}
