
/* ============================================================
   通知 · 流程模块卡片重构
   参考截图二的卡片结构（图标 + 服务名 + 标题 + 日期 + 描述），
   叠加 AI 建议 与 同意/驳回 操作。
   通过 MutationObserver 注入到 React 渲染的 .notif-page__process。
   ============================================================ */

.notif-page__process .lingee-flow {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 24px;
  box-sizing: border-box;
}

.lingee-flow__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 8px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 8px;
}

.lingee-flow__chip {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.lingee-flow__chip:hover { background: #f5f7fa; color: rgba(0, 0, 0, 0.85); }
.lingee-flow__chip.is-active { background: #eef3ff; color: #276ff5; font-weight: 500; }
.lingee-flow__chip-count { margin-left: 4px; opacity: 0.55; font-size: 12px; }

.lingee-flow__bulk {
  margin-left: auto;
  font-size: 13px;
  color: #276ff5;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
}
.lingee-flow__bulk:hover { background: #f5f7fa; }

/* ===== 卡片 ===== */
.lingee-flow-card {
  position: relative;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.lingee-flow-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border-color: #e0e0e0;
}
.lingee-flow-card.is-done {
  background: #fafafa;
  border-color: #f0f0f0;
}
.lingee-flow-card.is-done .lingee-flow-card__title,
.lingee-flow-card.is-done .lingee-flow-card__body {
  color: rgba(0, 0, 0, 0.55);
}

/* 未读小红点 */
.lingee-flow-card__dot {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 0 2px #fff;
}
.lingee-flow-card.is-done .lingee-flow-card__dot { display: none; }

/* 顶部 header：图标 + 服务名 + 状态 tag + ··· */
.lingee-flow-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lingee-flow-card__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  color: #fff;
}
.lingee-flow-card__icon svg { width: 16px; height: 16px; }

.lingee-flow-card__icon.is-blue   { background: linear-gradient(135deg, #4a8bff 0%, #276ff5 100%); }
.lingee-flow-card__icon.is-teal   { background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%); }
.lingee-flow-card__icon.is-purple { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); }
.lingee-flow-card__icon.is-red    { background: linear-gradient(135deg, #ff7875 0%, #f5222d 100%); }
.lingee-flow-card__icon.is-amber  { background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
.lingee-flow-card__icon.is-green  { background: linear-gradient(135deg, #4ade80 0%, #16a34a 100%); }
.lingee-flow-card__icon.is-cyan   { background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%); }
.lingee-flow-card__icon.is-gray   { background: #9ca3af; }

.lingee-flow-card__service {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.85);
  line-height: 1.2;
}
.lingee-flow-card.is-done .lingee-flow-card__service { color: rgba(0, 0, 0, 0.55); }

/* 状态标签 */
.lingee-flow-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
  margin-left: 2px;
}
.lingee-flow-card__badge.is-confirm  { background: #fff1f0; color: #d4380d; }
.lingee-flow-card__badge.is-suggest  { background: #fff7e6; color: #d46b08; }
.lingee-flow-card__badge.is-trial    { background: #f0f5ff; color: #2f54eb; }
.lingee-flow-card__badge.is-risk-h   { background: #fff1f0; color: #cf1322; }
.lingee-flow-card__badge.is-risk-m   { background: #fffbe6; color: #d4b106; }
.lingee-flow-card__badge.is-approval { background: #f0f5ff; color: #2f54eb; }
.lingee-flow-card__badge.is-done     { background: #f6ffed; color: #389e0d; }
.lingee-flow-card__badge.is-info     { background: #e6f7ff; color: #0958d9; }

.lingee-flow-card__more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: rgba(0, 0, 0, 0.35);
  cursor: pointer;
  margin-right: 16px; /* 让出右上红点位置 */
}
.lingee-flow-card__more:hover { background: #f5f5f5; color: rgba(0, 0, 0, 0.65); }

/* 标题 + 时间 */
.lingee-flow-card__line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.lingee-flow-card__title {
  font-size: 15px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
  line-height: 1.45;
  flex: 1;
  min-width: 0;
}
.lingee-flow-card__time {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  flex: 0 0 auto;
  white-space: nowrap;
  padding-top: 4px;
}

/* 描述 */
.lingee-flow-card__body {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.65);
}

/* AI 建议块 */
.lingee-flow-ai {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f5f8ff 0%, #f7f3ff 100%);
  border: 1px solid #e6ecff;
  border-radius: 10px;
}
.lingee-flow-ai__icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lingee-flow-ai__icon svg { width: 12px; height: 12px; }
.lingee-flow-ai__main { flex: 1; min-width: 0; }
.lingee-flow-ai__title {
  font-size: 12px;
  font-weight: 600;
  color: #5b3bd9;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lingee-flow-ai__conf {
  font-size: 11px;
  color: rgba(0, 0, 0, 0.45);
  font-weight: 400;
  background: rgba(255,255,255,0.6);
  padding: 1px 6px;
  border-radius: 4px;
}
.lingee-flow-ai__text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.72);
}
.lingee-flow-ai__text b {
  color: #5b3bd9;
  font-weight: 600;
}

/* 操作按钮 */
.lingee-flow-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lingee-flow-btn {
  font-size: 13px;
  line-height: 1;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: rgba(0, 0, 0, 0.75);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.lingee-flow-btn:hover { background: #f5f7fa; border-color: #d9d9d9; }
.lingee-flow-btn.is-primary {
  background: #fff;
  color: #276ff5;
  border-color: #b1c8ff;
}
.lingee-flow-btn.is-primary:hover { background: #eef3ff; border-color: #276ff5; }
.lingee-flow-btn.is-danger {
  background: #fff;
  color: #f5222d;
  border-color: #ffccc7;
}
.lingee-flow-btn.is-danger:hover { background: #fff1f0; border-color: #ff7875; }
.lingee-flow-btn.is-ghost {
  background: transparent;
  border-color: transparent;
  color: rgba(0, 0, 0, 0.55);
}
.lingee-flow-btn.is-ghost:hover { background: #f5f5f5; }

/* 已处理状态 */
.lingee-flow-card__result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.45);
}
.lingee-flow-card__result svg { width: 14px; height: 14px; color: #16a34a; }

/* 暗色适配（如有） */
@media (prefers-color-scheme: dark) {
  /* 保持浅色，避免破坏 React 主题 */
}

/* 接管后隐藏 React 原生的 collab-center */
.notif-page__process > .collab-center {
  display: none !important;
}

