/**
 * PisellContactBrief 样式
 * 类名前缀 pisell-contact-brief-
 */
.pisell-contact-brief-wrap {
  box-sizing: border-box;
  min-width: 0;
}

/* 编辑图标与右侧操作区 */
.pisell-contact-brief-action-edit {
  font-size: 16px;
  color: #667085;
}

/* 新建按钮：水平布局，占位头像 + 文案 + plus 图标，与设计稿一致 */
.pisell-contact-brief-create-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 6px 14px;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 8px;
  border: 1px solid #d0d5dd;
  background-color: #ffffff;
  transition: background-color 0.2s, border-color 0.2s;

  &:hover {
    background-color: #f9fafb;
    border-color: #d0d5dd;
  }
}

.pisell-contact-brief-create-btn-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f2f4f7;
}

.pisell-contact-brief-create-btn-avatar-inner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #e4e7ec;
}

.pisell-contact-brief-create-btn-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pisell-contact-brief-create-btn-icon {
  flex-shrink: 0;
  font-size: 24px;
  color: #667085;
}

/* 弹窗：对齐 Figma 新建/编辑弹窗，新建与编辑完全一致 */
.pisell-contact-brief-modal {
  /* 容器：12px 圆角、Shadow xl */

  .ant-modal-content,
  .pisell-lowcode-modal-content {
    border-radius: 12px;
    box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03);
    overflow: hidden;
    padding: 0;
  }

  /* Header：24px 16px，标题 18px Semibold #101828 */

  .ant-modal-header,
  .pisell-lowcode-modal-header {
    padding: 16px 24px;
    border-bottom: none;
    margin-bottom: 0;
  }

  .ant-modal-title,
  .pisell-lowcode-modal-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    color: #101828;
  }

  /* Header 下方分割线 */

  .ant-modal-header + .ant-modal-body,
  .pisell-lowcode-modal-header + .pisell-lowcode-modal-body {
    border-top: 1px solid #eaecf0;
  }

  /* Body：24px padding */

  .ant-modal-body,
  .pisell-lowcode-modal-body {
    padding: 24px;
  }

  /* 表单：表单项间距 24px */

  .pisell-contact-brief-modal-form.ant-form,
  .pisell-contact-brief-modal-form.pisell-lowcode-form {
    .ant-form-item,
    .pisell-lowcode-form-item {
      margin-bottom: 24px;
    }

    .ant-form-item:last-child,
    .pisell-lowcode-form-item:last-child {
      margin-bottom: 0;
    }
  }

  /* 第一行：Firstname + Lastname 两列，间距 16px */

  .pisell-contact-brief-modal-form-row {
    display: flex;
    gap: 16px;

    .ant-form-item,
    .pisell-lowcode-form-item {
      flex: 1;
      margin-bottom: 0;
    }
  }

  /* Label：14px Medium #344054 */

  .ant-form-item-label > label,
  .pisell-lowcode-form-item-label > label {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #344054;
  }

  /* Footer：顶部分割线、24px padding、按钮间距 12px */

  .ant-modal-footer,
  .pisell-lowcode-modal-footer {
    padding: 24px;
    border-top: 1px solid #eaecf0;
    gap: 12px;
    margin-top: 0;
  }

  /* 取消：白底、边框 #D0D5DD、48px 高、16px Semibold #344054 */

  .ant-btn-default,
  .pisell-lowcode-btn-default {
    height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    border-color: #d0d5dd;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #344054;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  }

  /* 主按钮：Primary #7F56D9、白字 */

  .ant-btn-primary,
  .pisell-lowcode-btn-primary {
    height: 48px;
    padding: 12px 20px;
    border-radius: 8px;
    background-color: #7f56d9;
    border-color: #7f56d9;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #fff;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  }
}
