/* 跟进条目共享样式 — v3.28.8
 * 复盘页 (engine_followup_review) + 客户详情页 (customer_detail) 通用
 * 原在 engine_followup_review.html 行内 CSS, 抽出到此共享文件
 */

.manual-item {
  position: relative;
  background: #F0FDF4;
  border-left: 3px solid #10B981;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--gray-700);
  border-radius: 4px;
  margin-bottom: 5px;
}

/* AI 采用 - 按源区分 */
.manual-item.ai-confirmed {
  background: #F5F3FF;
  border-left-color: #7C3AED;
}
.manual-item.ai-confirmed-internal {
  background: #FFF7ED;
  border-left-color: #EA580C;
}
.manual-item.ai-confirmed-both {
  background: #EFF6FF;
  border-left-color: #2563EB;
}

/* 日期 */
.manual-item .m-date {
  font-weight: 700;
  color: #065F46;
  font-family: var(--num-font);
}
.manual-item.ai-confirmed .m-date { color: #4C1D95; }
.manual-item.ai-confirmed-internal .m-date { color: #9A3412; }
.manual-item.ai-confirmed-both .m-date { color: #1E3A8A; }

/* 用户/时间 */
.manual-item .m-user {
  color: var(--gray-500);
  margin-left: 6px;
  font-size: 11px;
}

/* AI 小标签 */
.manual-item .m-tag {
  background: #7C3AED;
  color: #fff;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  vertical-align: middle;
}
.manual-item.ai-confirmed-internal .m-tag { background: #EA580C; }
.manual-item.ai-confirmed-both .m-tag { background: #2563EB; }

/* 正文 */
.manual-item .m-content {
  margin-top: 3px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* 操作按钮 (hover 显示) */
.m-ops {
  position: absolute;
  top: 6px;
  right: 8px;
  display: none;
  gap: 4px;
}
.manual-item:hover .m-ops { display: flex; }

.m-op-btn {
  padding: 2px 6px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.m-op-btn:hover { border-color: var(--primary); color: var(--primary); }
.m-op-btn.danger:hover { border-color: #DC2626; color: #DC2626; }
.m-op-btn .material-icons { font-size: 12px; }

/* 编辑区 */
.m-edit-area { display: none; margin-top: 4px; }
.m-edit-area textarea {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  resize: vertical;
  min-height: 40px;
}
.m-edit-actions { display: flex; gap: 6px; margin-top: 4px; }

/* 删除确认 */
.m-confirm-del {
  display: none;
  margin-top: 4px;
  padding: 5px 8px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 4px;
  font-size: 12px;
  color: #991B1B;
  align-items: center;
  gap: 6px;
}

/* 手机自适应 */
@media (max-width: 640px) {
  .m-ops { position: static; display: flex; margin-top: 4px; }
  .manual-item .m-date, .manual-item .m-user { display: inline-block; }
}
