/* Popup "Vòng đời kỳ đánh giá" (CycleLifecycleGuideModal.razor) — layout khớp nguồn tham chiếu
   specs/015-evaluation-process-overview/ui/12-popup-vong-doi-ky.html (2026-09-15, người dùng cung cấp). Global CSS
   theo feature, đúng convention chung của app (.claude/rules/server/blazor-css.md) — không dùng CSS isolation.

   KHÔNG định nghĩa lại màu chip ở đây — dùng nguyên .tag.c-prep/.c-sched/.c-active/.c-done/.c-cancel đã có trong
   evaluation-template.css (nguồn màu chip trạng thái Kỳ đánh giá duy nhất, xem CycleLabels.ChipClass). Section
   "Các trạng thái"/"Luồng chuyển trạng thái" dùng `inner_section` có sẵn (blazor-page-layout.md mục 1), không phải
   `.card` riêng như file HTML gốc. */

.modal-card-body.eval-lifecycle-guide {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f6f8fc;
}

.eval-lifecycle-guide__intro {
  margin: 0;
  font-size: 13px;
  color: #6e6e73;
  line-height: 1.6;
}

.eval-lifecycle-guide__section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6e6e73;
  margin: 0 0 14px;
}

/* Bảng tham chiếu trạng thái */
.eval-lifecycle-guide__ref {
  display: flex;
  flex-direction: column;
}

.eval-lifecycle-guide__ref-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #eeeff2;
}

.eval-lifecycle-guide__ref-row:first-child {
  border-top: none;
  padding-top: 2px;
}

.eval-lifecycle-guide__ref-text {
  font-size: 13.5px;
  color: #363636;
  line-height: 1.55;
}

/* Sơ đồ luồng chính */
.eval-lifecycle-guide__flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.eval-lifecycle-guide__node {
  width: 212px;
  flex: none;
  background: #fff;
  border: 1px solid #ebebec;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: 0.16s ease;
}

.eval-lifecycle-guide__node:hover {
  box-shadow: 0 8px 26px rgba(20, 40, 90, 0.09);
  transform: translateY(-2px);
}

.eval-lifecycle-guide__node .tag {
  height: 24px;
}

.eval-lifecycle-guide__node-desc {
  font-size: 12.5px;
  color: #6e6e73;
  margin-top: 10px;
  line-height: 1.55;
}

.eval-lifecycle-guide__conn {
  flex: 1 1 auto;
  min-width: 56px;
  max-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  align-self: center;
  padding: 0 4px;
}

.eval-lifecycle-guide__conn-label {
  font-size: 10.5px;
  color: #6e6e73;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}

.eval-lifecycle-guide__conn svg {
  color: #c2c8d6;
  flex: none;
}

/* Nhánh Hủy (ngoại lệ) */
.eval-lifecycle-guide__cancel {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6px;
}

.eval-lifecycle-guide__drop {
  color: #c2c8d6;
}

.eval-lifecycle-guide__node--cancel {
  width: 230px;
  border-style: dashed;
  border-color: #ebc0c0;
  background: #fef6f6;
}

.eval-lifecycle-guide__cancel-caption {
  margin: 12px 0 0;
  max-width: 520px;
  text-align: center;
  font-size: 12.5px;
  color: #6e6e73;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .eval-lifecycle-guide__flow {
    flex-direction: column;
    align-items: center;
  }

  .eval-lifecycle-guide__node {
    width: 100%;
    max-width: 360px;
  }

  .eval-lifecycle-guide__conn {
    flex-direction: row;
    gap: 8px;
    min-width: 0;
    max-width: none;
    padding: 6px 0;
  }

  .eval-lifecycle-guide__conn svg {
    transform: rotate(90deg);
  }

  .eval-lifecycle-guide__ref-row {
    grid-template-columns: 130px 1fr;
  }
}
