/* «재등록 보드»(ops_renewal_board) 공용 뼈대 — ADR 0190.
   공용 토큰만 쓴다. 브랜드 옷(머슬팩토리 검정·네온)은 어댑터 몫이다. */
.fx-orb { display: flex; flex-direction: column; gap: 14px; }
.orb-head { display: flex; align-items: center; gap: 10px; }
.orb-note { color: var(--text-sub); font-size: 12px; }
.orb-sp { flex: 1 1 auto; }
.orb-link { background: none; border: 0; color: var(--primary-fill); font-size: 13px; font-weight: 700;
  cursor: pointer; padding: 6px 2px; min-height: 44px; white-space: nowrap; }
/* 머리 한 줄(2026-12-04): 제목 없이 «n분 전 기준 · 만료자 카드 ›»만 작게·회색으로. */
.orb-head-slim { justify-content: flex-end; min-height: 0; gap: 8px; }
.orb-link-slim { min-height: 0; padding: 2px; font-size: 12px; font-weight: 600; color: var(--text-sub); }
.orb-msg { color: var(--text-sub); font-size: 13px; margin: 0; padding: 18px 8px; text-align: center; }
.orb-sk { border-radius: 10px; background: linear-gradient(90deg, var(--border) 25%, var(--card) 50%, var(--border) 75%);
  background-size: 200% 100%; animation: orb-sk 1.2s infinite linear; }
@keyframes orb-sk { to { background-position: -200% 0; } }

/* 거르기 한 줄: 기간 세그먼트 + 구분 세그먼트(2026-12-04, 지점 알약 삭제). */
.orb-filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.orb-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; background: var(--card); padding: 3px; }
.orb-seg button { border: 0; background: none; color: var(--text-sub); font-size: 13px; font-weight: 600;
  border-radius: 999px; padding: 0 14px; min-height: 34px; cursor: pointer; position: relative; white-space: nowrap; }
.orb-seg button[aria-pressed="true"] { background: var(--text); color: var(--card); }
.orb-seg button::after { content: ""; position: absolute; left: 0; right: 0; top: -5px; bottom: -5px; }

/* KPI 5~6장(재등록률·[진행 중이면 가장 최근 확정 달]·비중·이탈·연락률·PT 전환율).
   6장째가 5열 격자에서 혼자 둘째 줄로 감겼다(2026-12-04 현장 화면).
   ≥1280은 6열 한 줄, 그 아래 데스크톱은 3열 × 2줄이라 혼자 남는 줄이 없다(5장이면 3+2).
   폰(768 이하)은 2열 유지. 카드 안 줄바꿈은 단어 단위(keep-all).
   글자 위계(2026-12-04 kpi4 현장 «폰트 부담»): 큰 줄은 숫자만 20/700(컴퓨터·폰 같음),
   낱말(재등록·PT 등록)은 작은 라벨 12/600/sub, 설명은 12/sub 한 줄.
   카드 높이는 줄에서 맞추고(stretch) 줄 수를 줄여 빈 공간을 덜 둔다. */
.orb-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.orb-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.orb-kpi { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px;
  word-break: keep-all; overflow-wrap: break-word; }
.orb-kpi-l { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-sub); font-weight: 600; }
/* 큰 숫자는 절대 쪼개지 않는다(390에서 «52.»/«9%» 갈림, 2026-12-04). */
.orb-kpi-v { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; white-space: nowrap; }
.orb-kpi-v small { font-size: 12px; font-weight: 600; color: var(--text-sub); }
/* 진행 중 큰 자리의 낱말(재등록·PT 등록): 숫자 옆 작은 라벨로만 둔다(kpi4). FC/PT 접두(i)는 그대로. */
.orb-kpi-w { font-size: 12px; font-weight: 600; color: var(--text-sub); }
.orb-kpi-2 { display: flex; gap: 14px; }
.orb-kpi-2.is-open { flex-direction: column; gap: 8px; }
.orb-kpi-2 > div { min-width: 0; }
.orb-kpi-2 i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-sub); }
.orb-kpi em { font-style: normal; font-size: 12px; color: var(--text-sub); }
.orb-dl { font-size: 12px; font-weight: 700; white-space: nowrap; }
.orb-dl.is-up { color: #15803D; }
.orb-dl.is-dn { color: var(--text); border-bottom: 1px dashed var(--text-sub); }
.orb-share { width: 100%; height: 12px; display: block; }
.orb-lg { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--text-sub); }
.orb-lg b { color: var(--text); }
.orb-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.fx-orb .s-pre { fill: #15803D; background: #15803D; }
.fx-orb .s-at { fill: #86EFAC; background: #86EFAC; }
.fx-orb .s-post { fill: #CBD5E1; background: #CBD5E1; }
.fx-orb .s-renew { fill: #15803D; background: #15803D; }
.fx-orb .s-will { fill: #86EFAC; background: #86EFAC; }
.fx-orb .s-ing { fill: #94A3B8; background: #94A3B8; }
.fx-orb .s-decl { fill: #1E293B; background: #1E293B; }
.fx-orb .s-none { fill: none; background: none; }
.orb-bar { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.orb-bar > i { display: block; height: 100%; border-radius: 999px; }

/* 두 칸 구역 */
.orb-two { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.orb-two.is-tbl { grid-template-columns: 1.3fr 1fr; }
.orb-sec { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.orb-sech { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.orb-sech h2 { margin: 0; font-size: 15px; font-weight: 800; }
.orb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.orb-dot.is-fc { background: #1E293B; }
.orb-dot.is-pt { background: #15803D; border-radius: 2px; }
.orb-dot.is-ptc { background: none; border-radius: 0; width: 0; height: 0; margin: 1px 4px 1px 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid #15803D; }
.orb-dot.is-open { background: none; border: 2px solid #1E293B; width: 8px; height: 8px; }
.orb-dot.is-thin { background: none; border: 2px dashed #64748B; width: 8px; height: 8px; }
/* PT 전환 미니 그래프: 메인 아래 작은 별도 그래프(2026-12-04). */
.orb-trend-ptc { display: flex; flex-direction: column; gap: 8px; margin-top: 4px;
  padding-top: 10px; border-top: 1px dashed var(--border); }
.orb-subh { margin: 0; font-size: 13px; font-weight: 800; }
.orb-readout { margin: 0; font-size: 13px; color: var(--text-sub); }
.orb-readout b { color: var(--text); }
.orb-ch { width: 100%; height: auto; display: block; }
.orb-ch text { font-size: 11px; fill: var(--text-sub); }
.orb-ch .t-b { font-weight: 800; fill: var(--text); }
/* 값 라벨(점 위 정수 %)·표본 적음(2026-12-04). 값은 본문색 굵게, 표본은 보조색. */
.orb-ch .t-v { font-size: 10px; font-weight: 800; fill: var(--text); }
.orb-ch .t-thin { font-size: 9px; font-weight: 700; fill: var(--text-sub); }
.orb-ch .grid { stroke: var(--border); stroke-width: 1; }
.orb-ch .hit { fill: transparent; cursor: pointer; }
.orb-ch .hit.is-on { fill: var(--border); opacity: 0.45; }
.orb-ch .l-fc { stroke: #1E293B; stroke-width: 2; fill: none; }
.orb-ch .l-pt { stroke: #15803D; stroke-width: 2; fill: none; }
.orb-ch .l-ptc { stroke: #15803D; stroke-width: 2; fill: none; }
.orb-ch .l-dash { stroke-dasharray: 5 4; }
.orb-ch .p-fc { fill: #1E293B; }
.orb-ch .p-pt { fill: #15803D; }
.orb-ch .p-ptc { fill: #15803D; }
.orb-ch .p-fc.is-open { fill: var(--card); stroke: #1E293B; stroke-width: 2; }
.orb-ch .p-pt.is-open { fill: var(--card); stroke: #15803D; stroke-width: 2; }
.orb-ch .p-ptc.is-open { fill: var(--card); stroke: #15803D; stroke-width: 2; }
/* 표본 적음(n<5): 확정이어도 속 빈 점(점선 테두리로 구분). */
.orb-ch .p-fc.is-thin { fill: var(--card); stroke: #1E293B; stroke-width: 2; stroke-dasharray: 3 2; }
.orb-ch .p-pt.is-thin { fill: var(--card); stroke: #15803D; stroke-width: 2; stroke-dasharray: 3 2; }
.orb-ch .p-ptc.is-thin { fill: var(--card); stroke: #15803D; stroke-width: 2; stroke-dasharray: 3 2; }
.orb-ch .seg { cursor: pointer; stroke: none; }
.orb-ch .seg.s-will { fill: #86EFAC; }
.orb-ch .seg.s-ing { fill: #94A3B8; }
.orb-ch .seg.s-decl { fill: #1E293B; }
.orb-ch .seg.s-none { fill: var(--card); stroke: #94A3B8; stroke-width: 1.5; stroke-dasharray: 4 3; }

/* 연락 효과 가로 막대 */
.orb-hb-row { display: grid; grid-template-columns: 86px 1fr auto; gap: 4px 8px; align-items: center; font-size: 12px; }
.orb-hb-row > span:first-child { color: var(--text-sub); white-space: nowrap; }
.orb-hb-row > b { font-size: 13px; }
.orb-hb-row > small { grid-column: 2 / 4; color: var(--text-sub); }
.orb-hb-row .orb-bar { height: 12px; }
.orb-hb-t { font-size: 12px; font-weight: 700; color: var(--text-sub); margin: 6px 0 0; }
.orb-blank { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 8px; text-align: center; }
.orb-blank b { font-size: 14px; }
.orb-blank span { font-size: 12px; color: var(--text-sub); }
.orb-blank .orb-bar { width: 100%; max-width: 240px; height: 6px; }

/* 표 + 폰 카드 — 표는 카드 폭 안에(고정 배치·칸 줄바꿈, 가로 넘침 없음, 2026-12-04 1440 실측). */
.orb-tw { overflow: visible; }
.orb-table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.orb-table th, .orb-table td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--border);
  white-space: normal; overflow-wrap: break-word; word-break: keep-all; vertical-align: top; }
.orb-table th.l, .orb-table td.l { text-align: left; }
.orb-table thead th { font-size: 12px; color: var(--text-sub); font-weight: 700; }
.orb-table tfoot td { font-weight: 800; border-bottom: 0; }
.orb-table tr.is-pick { cursor: pointer; }
.orb-table tr.is-pick.is-on td:first-child { box-shadow: inset 3px 0 0 var(--text); }
.orb-table tr.is-pick.is-on { background: var(--bg); }
.orb-table tr.is-thin { opacity: 0.62; }
.orb-table td small { display: block; font-size: 11px; color: var(--text-sub); font-weight: 400;
  white-space: normal; overflow-wrap: break-word; }
.orb-table td.sum { font-weight: 800; }
/* 지점 비교 7열: 지점·대상·재등록·재등록률·PT 전환·만료 전 연락률·이탈자 등록. */
.orb-table-br th:nth-child(1), .orb-table-br td:nth-child(1) { width: 14%; }
.orb-table-br th:nth-child(2), .orb-table-br td:nth-child(2) { width: 9%; }
.orb-table-br th:nth-child(3), .orb-table-br td:nth-child(3) { width: 9%; }
.orb-table-br th:nth-child(4), .orb-table-br td:nth-child(4) { width: 20%; }
.orb-table-br th:nth-child(5), .orb-table-br td:nth-child(5) { width: 20%; }
.orb-table-br th:nth-child(6), .orb-table-br td:nth-child(6) { width: 14%; }
.orb-table-br th:nth-child(7), .orb-table-br td:nth-child(7) { width: 14%; }
/* 담당자 7열: 담당 FC·맡은 대상·연락·재등록·재등록률·PT 전환·평균 연락. */
.orb-table-st th:nth-child(1), .orb-table-st td:nth-child(1) { width: 17%; }
.orb-table-st th:nth-child(2), .orb-table-st td:nth-child(2) { width: 13%; }
.orb-table-st th:nth-child(3), .orb-table-st td:nth-child(3) { width: 9%; }
.orb-table-st th:nth-child(4), .orb-table-st td:nth-child(4) { width: 9%; }
.orb-table-st th:nth-child(5), .orb-table-st td:nth-child(5) { width: 22%; }
.orb-table-st th:nth-child(6), .orb-table-st td:nth-child(6) { width: 15%; }
.orb-table-st th:nth-child(7), .orb-table-st td:nth-child(7) { width: 15%; }
.orb-rbar { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.orb-rbar .orb-bar { width: 48px; flex: none; height: 6px; }
.orb-rbar b { white-space: nowrap; }
.orb-bcards { display: none; }
.orb-bcard { display: flex; flex-direction: column; gap: 8px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px;
  font-size: 13px; color: var(--text); cursor: pointer; }
div.orb-bcard { cursor: default; }
.orb-bcard.is-on { border-color: var(--text); box-shadow: inset 3px 0 0 var(--text); }
.orb-bcard.is-thin { opacity: 0.75; }
.orb-bcard-h { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; }
.orb-bcard-h > span { font-size: 16px; }
.orb-bcard-s { display: flex; flex-direction: column; gap: 4px; color: var(--text-sub); font-size: 12px; }
.orb-bcard-s b { color: var(--text); }
.orb-bcard .orb-bar { height: 6px; }

@media (max-width: 1279px) {
  .orb-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .orb-kpi { padding: 14px; }
}
@media (max-width: 1023px) {
  .orb-two, .orb-two.is-tbl { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .orb-kpis { grid-template-columns: 1fr 1fr; }
  .orb-filters { row-gap: 8px; }
  .orb-tw { display: none; }
  .orb-bcards { display: flex; flex-direction: column; gap: 8px; }
  .orb-table th, .orb-table td { white-space: normal; }
  /* 폰 2열 카드가 좁아 FC·PT 큰 숫자가 갈린다 — 위아래로 쌓는다(2026-12-04 390 실측).
     크기는 컴퓨터와 같은 20으로 두고 키우기·줄이기 규칙을 두지 않는다(kpi4). */
  .orb-kpi-2 { flex-direction: column; gap: 8px; }
}

:root[data-formula-theme="dark"] .orb-seg button[aria-pressed="true"] { background: #F3F4F6; border-color: #F3F4F6; color: #111827; }
:root[data-formula-theme="dark"] .orb-dl.is-up { color: #4ADE80; }
:root[data-formula-theme="dark"] .orb-dl.is-dn { color: #F3F4F6; border-bottom-color: #9AA4B2; }
:root[data-formula-theme="dark"] .fx-orb .s-pre { fill: #4ADE80; background: #4ADE80; }
:root[data-formula-theme="dark"] .fx-orb .s-at { fill: #166534; background: #166534; }
:root[data-formula-theme="dark"] .fx-orb .s-post { fill: #475569; background: #475569; }
:root[data-formula-theme="dark"] .fx-orb .s-renew { fill: #4ADE80; background: #4ADE80; }
:root[data-formula-theme="dark"] .fx-orb .s-will { fill: #166534; background: #166534; }
:root[data-formula-theme="dark"] .fx-orb .s-ing { fill: #64748B; background: #64748B; }
:root[data-formula-theme="dark"] .fx-orb .s-decl { fill: #F3F4F6; background: #F3F4F6; }
:root[data-formula-theme="dark"] .orb-dot.is-fc { background: #F3F4F6; }
:root[data-formula-theme="dark"] .orb-dot.is-pt { background: #4ADE80; }
:root[data-formula-theme="dark"] .orb-dot.is-ptc { border-bottom-color: #4ADE80; }
:root[data-formula-theme="dark"] .orb-dot.is-open { border-color: #F3F4F6; }
:root[data-formula-theme="dark"] .orb-ch .l-fc { stroke: #F3F4F6; }
:root[data-formula-theme="dark"] .orb-ch .l-pt { stroke: #4ADE80; }
:root[data-formula-theme="dark"] .orb-ch .l-ptc { stroke: #4ADE80; }
:root[data-formula-theme="dark"] .orb-ch .p-fc { fill: #F3F4F6; }
:root[data-formula-theme="dark"] .orb-ch .p-pt { fill: #4ADE80; }
:root[data-formula-theme="dark"] .orb-ch .p-ptc { fill: #4ADE80; }
:root[data-formula-theme="dark"] .orb-ch .p-fc.is-open { fill: #0F1524; stroke: #F3F4F6; }
:root[data-formula-theme="dark"] .orb-ch .p-pt.is-open { fill: #0F1524; stroke: #4ADE80; }
:root[data-formula-theme="dark"] .orb-ch .p-ptc.is-open { fill: #0F1524; stroke: #4ADE80; }
:root[data-formula-theme="dark"] .orb-ch .p-fc.is-thin { fill: #0F1524; stroke: #F3F4F6; }
:root[data-formula-theme="dark"] .orb-ch .p-pt.is-thin { fill: #0F1524; stroke: #4ADE80; }
:root[data-formula-theme="dark"] .orb-ch .p-ptc.is-thin { fill: #0F1524; stroke: #4ADE80; }
:root[data-formula-theme="dark"] .orb-dot.is-thin { border-color: #9AA4B2; }
:root[data-formula-theme="dark"] .orb-ch .seg.s-will { fill: #166534; }
:root[data-formula-theme="dark"] .orb-ch .seg.s-ing { fill: #64748B; }
:root[data-formula-theme="dark"] .orb-ch .seg.s-decl { fill: #F3F4F6; }
:root[data-formula-theme="dark"] .orb-ch .seg.s-none { fill: #0F1524; stroke: #64748B; }
:root[data-formula-theme="dark"] .orb-table tr.is-pick.is-on td:first-child { box-shadow: inset 3px 0 0 #F3F4F6; }
:root[data-formula-theme="dark"] .orb-bcard.is-on { border-color: #F3F4F6; box-shadow: inset 3px 0 0 #F3F4F6; }
@media (prefers-reduced-motion: reduce) {
  .orb-sk { animation: none; }
}
