/* NCCL-EP 深度报告专属样式：动画演示板（epg-*）与双值条形图。
   基础组件（nav/header/section/table/card/board/btn/flyer…）由公共 css/report.css 提供（TIDE 基件）。 */

/* ==================== 动画板：双路径时间轴（Fig. 3 / Fig. 4 示意图） ==================== */
.report .board .stage.epg { min-height: 340px; padding: 16px 14px 30px; }
.epg-wrap { position: relative; min-width: 680px; height: 288px; }

/* 组标题与行标签 */
.epg-gtit { position: absolute; left: 0; top: 0; font-size: 0.8rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.epg-gtit b { color: var(--primary); }
.epg-lbl { position: absolute; left: 0; width: 108px; font-size: 0.66rem; color: var(--text-muted); line-height: 1.35; white-space: pre-line; }

/* 泳道 */
.epg-lane { position: absolute; left: 114px; right: 8px; background: #eef2f6; border-radius: 6px; }

/* 通用块 */
.epg-box {
  position: absolute; top: 4px; bottom: 4px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; color: #fff; text-align: center; line-height: 1.3;
  overflow: hidden; padding: 0 3px;
}
.epg-send { background: #c0392b; }
.epg-work { background: #ffffff; border: 1px solid #d5d8dc; color: #2c3e50; }
.epg-inf  { background: #00897b; }
.epg-tail { background: repeating-linear-gradient(45deg, #c0392b, #c0392b 5px, #7b241c 5px, #7b241c 10px); color: #fff; }
.epg-recv { background: #f39c12; }
.epg-cpu  { background: #7c3aed; }
.epg-box b { font-weight: 700; }

/* 高亮与淡化 */
.epg-box.hot { animation: epgPulse 1.2s ease-in-out infinite; }
@keyframes epgPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 82, 118, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(26, 82, 118, 0.5); }
}
.epg-dim { opacity: 0.32; }

/* 结束线 / 完成标签 / 暴露小计 */
.epg-end { position: absolute; top: -12px; bottom: -7px; width: 0; border-left: 2px dashed #c0392b; }
.epg-end.good { border-left-style: solid; border-left-color: #27ae60; }
.epg-end-lbl {
  position: absolute; font-size: 0.62rem; font-weight: 700; white-space: nowrap;
  transform: translateX(4px); color: #c0392b;
}
.epg-end-lbl.good { color: #27ae60; }
.epg-chip {
  position: absolute; top: -13px; background: #c0392b; color: #fff;
  font-size: 0.62rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.epg-chip.good { background: #27ae60; }

/* 时间刻度尺 */
.epg-ruler { position: absolute; left: 114px; right: 8px; bottom: 0; height: 14px; }
.epg-tick { position: absolute; top: 0; border-left: 1px solid #d5d8dc; padding-left: 3px; font-size: 0.58rem; color: var(--text-muted); line-height: 1; }

/* 控件区步号 */
.report .controls .legend.epg-step { padding: 0; white-space: nowrap; }

/* ==================== 条形图：默认 vs Free Flow 双值行 ==================== */
.report .bars .bar-row .duo { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.report .bars .bar-row .duo .minitrack { display: flex; align-items: center; }
.report .bars .bar-row .duo .track { height: 12px; }
.report .bars .track.epb-def .fill { background: linear-gradient(90deg, #c0392b, #e74c3c); }
.report .bars .track.epb-ff  .fill { background: linear-gradient(90deg, var(--primary), var(--accent)); }
.report .bars .duo-name { font-size: 0.68rem; color: var(--text-muted); flex: 0 0 54px; text-align: right; padding-right: 6px; }

@media (max-width: 720px) {
  .epg-wrap { min-width: 640px; }
}