/* FAIL-REASON-001：总控失败原因（数据看板失败卡、待人工复核构成、客户「失败记录」页签） */
.frc-sub { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.frc-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--d-surface-3, #eee);
  font-size: 12px;
  color: var(--d-ink-2, #555);
}
.frc-pill b { color: var(--d-ink, #111); font-variant-numeric: tabular-nums; }
.frc-row { display: grid; grid-template-columns: 168px 1fr 40px; align-items: center; gap: 12px; padding: 7px 0; }
.frc-row .lab { font-size: 13px; color: var(--d-ink, #111); display: flex; gap: 6px; align-items: center; white-space: nowrap; min-width: 0; }
.frc-row .kind { font-size: 11px; color: var(--d-ink-3, #888); }
.frc-row .bar { height: 8px; border-radius: 4px; background: var(--d-surface-3, #eee); overflow: hidden; }
.frc-row .bar b { display: block; height: 100%; background: var(--d-danger, #d70015); }
.frc-row .bar b.q { background: var(--cv-warning, #b25000); }
.frc-row .n { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.frc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.frc-more {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font-size: 12px;
  color: var(--cv-accent, #0071e3);
  cursor: pointer;
}
.frc-link {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--cv-accent, #0071e3) !important;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.frc-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.frc-tbl th { font-size: 12px; font-weight: 500; color: var(--cv-ink-3, #888); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--cv-hairline, #e5e5e5); }
.frc-tbl td { padding: 8px; border-bottom: 1px solid var(--cv-hairline, #e5e5e5); vertical-align: top; }
.frc-tbl .t { white-space: nowrap; color: var(--cv-ink-2, #555); font-variant-numeric: tabular-nums; }
.frc-tbl .r { font-weight: 600; }
.frc-tbl .h { font-size: 12px; color: var(--cv-ink-2, #555); line-height: 1.5; }
.frc-src { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--d-surface-3, #eee); color: var(--cv-ink-2, #555); white-space: nowrap; }
.frc-note { font-size: 12px; color: var(--cv-ink-3, #888); line-height: 1.6; margin: 8px 0 0; }
.frc-h3-note { font-weight: 400; margin-left: 6px; font-size: 12px; }
.frc-pop {
  position: absolute;
  z-index: 60;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: var(--cv-surface-2, #fff);
  border-radius: 12px;
  box-shadow: var(--cv-shadow-pop, 0 12px 32px rgba(0, 0, 0, .16));
  padding: 14px 16px;
  border: 1px solid var(--cv-hairline, #e5e5e5);
}
.frc-pop h4 { margin: 0 0 6px; font-size: 13px; }
.frc-pop .sec { margin-top: 10px; }
.frc-pop .li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--cv-hairline, #e5e5e5); }
.frc-pop .li:last-child { border-bottom: 0; }
.frc-tag { font-size: 11px; color: var(--cv-ink-3, #888); margin-left: 6px; font-weight: 400; }
.frc-tag.danger { color: var(--cv-danger, #d70015); }
.frc-x { font-size: 11px; color: var(--cv-ink-3, #888); margin-left: 6px; font-weight: 400; }
#dash-clients tr[data-license-id] { cursor: pointer; }
/* 数据看板页的按钮全局样式会盖掉抽屉页签，这里按授权管理页的页签外观收回来 */
[data-frc-drawer] .cv-dtabs button {
  background: transparent !important;
  color: var(--cv-ink-2, #555) !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: 36px;
  padding: 0 12px !important;
  font-size: 13px !important;
}
[data-frc-drawer] .cv-dtabs button.on { color: var(--cv-ink, #111) !important; font-weight: 500; border-bottom-color: var(--cv-accent, #0071e3) !important; }
/* 数据看板页套着 taste-system.css 的全局按钮样式（实底蓝块、最小高度）：文字链式按钮收回成纯文字 */
button.frc-more,
button.frc-link {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: var(--cv-accent, #0071e3) !important;
}
button.frc-more { font-size: 12px !important; }
.dash-side-kv button.frc-link.v { display: block; font-size: inherit; font-weight: inherit; text-align: left; }
/* FAIL-DETAIL-001：失败明细（真实原因 + 技术原文） */
.frc-evs { display: flex; flex-direction: column; }
.frc-ev { padding: 10px 0; border-bottom: 1px solid var(--cv-hairline, #e5e5e5); }
.frc-ev:last-child { border-bottom: 0; }
.frc-ev-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--cv-ink-3, #888); }
.frc-ev-meta .t { font-variant-numeric: tabular-nums; color: var(--cv-ink-2, #555); }
.frc-ev-meta .w { min-width: 0; overflow-wrap: anywhere; }
.frc-ev-cause { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--cv-ink, #111); line-height: 1.5; overflow-wrap: anywhere; }
.frc-ev-act { display: flex; gap: 14px; margin-top: 4px; }
.frc-ev-detail {
  margin: 6px 0 0;
  padding: 8px 10px;
  max-height: 220px;
  overflow: auto;
  border-radius: 8px;
  background: var(--d-surface-3, #f2f2f2);
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--cv-ink-2, #555);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
button.frc-chip {
  appearance: none;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 2px 10px !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: var(--d-surface-3, #eee) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  color: var(--d-ink-2, #555) !important;
  cursor: pointer;
}
button.frc-chip b { color: var(--d-ink, #111); font-variant-numeric: tabular-nums; }
button.frc-chip.on { border-color: var(--cv-accent, #0071e3) !important; color: var(--cv-accent, #0071e3) !important; background: transparent !important; }
