@use '../variables' as *;

/* 编辑简历名称弹窗样式 */
.resume-edit-name-dialog {
  .el-dialog__header {
    padding: 0.2rem 0.2rem 0;
  }

  .el-dialog__body {
    padding: 0 0.3rem 0.3rem;
  }

  &__body {
    display: flex;
    flex-wrap: wrap;
    gap: 0.24rem;
  }

  /* 表单字段 */
  &__field {
    width: 100%;
  }

  /* 标签 */
  &__label {
    display: block;
    font-size: 0.16rem;
    font-weight: 600;
    color: $text-dark;
    margin-bottom: 0.12rem;
  }

  /* 必填星号 */
  &__required {
    color: $danger;
    margin-right: 0.04rem;
  }

  /* 输入框 */
  &__input {
    .el-input__wrapper {
      border-radius: 0.1rem;
      padding: 0.04rem 0.14rem;
      box-shadow: 0 0 0 1px $border-color;
    }

    .el-input__inner {
      font-size: 0.14rem;
      color: $text-dark;
      height: 0.36rem;
      line-height: normal;

      &::placeholder {
        color: $text-light;
      }
    }
  }

  /* 底部按钮区域 */
  &__footer {
    width: 100%;
    display: flex;
    gap: 0.16rem;
    margin-top: 0.08rem;
  }

  /* 按钮通用 */
  &__btn {
    flex: 1;
    height: 0.46rem;
    border-radius: 0.23rem;
    font-size: 0.15rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;

    &:active {
      opacity: 0.8;
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    /* 取消按钮 */
    &--cancel {
      background: $bg-main;
      color: $text-dark;
    }

    /* 保存按钮 */
    &--save {
      background: $accent;
      color: $bg-white;
    }
  }
}
