/* ════════════════════════════════════════
   종합현황(대시보드) — public/css/exec-dash.css
   ★글꼴: 에스코어드림(S-Core Dream) 4종 — 4 Regular·5 Medium·6 Bold·7 ExtraBold.
     라이선스상 글꼴 파일은 고치지 않고 OTF 원본 그대로 쓴다(public/fonts/).
     이 화면(.xd) 안에서만 쓴다 — 다른 화면 글꼴은 바뀌지 않는다.
   ★색: 교단 CI 주 색상 Denim #2f557f · Tree Frog #448d21 · Campfire #e36520 기준.
════════════════════════════════════════ */
@font-face { font-family: 'SCDream'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/SCDream4.otf') format('opentype'); }
@font-face { font-family: 'SCDream'; font-weight: 500; font-style: normal; font-display: swap; src: url('/fonts/SCDream5.otf') format('opentype'); }
@font-face { font-family: 'SCDream'; font-weight: 600; font-style: normal; font-display: swap; src: url('/fonts/SCDream6.otf') format('opentype'); }
@font-face { font-family: 'SCDream'; font-weight: 700 800; font-style: normal; font-display: swap; src: url('/fonts/SCDream7.otf') format('opentype'); }

.xd {
  --xd-bg: #F3F4F7; --xd-card: #FFFFFF; --xd-line: #E1E4EA; --xd-line2: #CBD1DA;
  --xd-text: #1C2430; --xd-text2: #3A4452; --xd-sub: #5B6576;
  --xd-denim: #2F557F; --xd-denim-d: #1E3A5A; --xd-good: #448D21; --xd-bad: #B4501A; --xd-warn: #E36520;
  --xd-good-bg: #EEF6E9; --xd-bad-bg: #FBEEE6; --xd-mid-bg: #F1F3F6;
  font-family: 'SCDream', 'Malgun Gothic', sans-serif; color: var(--xd-text); background: var(--xd-bg);
  margin: -24px; min-height: calc(100% + 48px); font-size: 14px; line-height: 1.5;
}
.xd *, .xd *::before, .xd *::after { box-sizing: border-box; }
.xd button, .xd select { font-family: inherit; }
.xd-num { font-variant-numeric: tabular-nums; }

/* ── 머리 ───────────────────── */
.xd-head { background: var(--xd-card); border-bottom: 1px solid var(--xd-line); }
.xd-head-in { max-width: 1400px; margin: 0 auto; padding: 18px 24px 14px; display: flex; flex-direction: column; gap: 14px; }
.xd-head-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.xd-kicker { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--xd-denim); }
.xd-title { margin: 2px 0; font-size: 24px; font-weight: 700; }
.xd-title small { font-size: 15px; font-weight: 500; color: var(--xd-sub); }
.xd-basis { font-size: 12px; color: var(--xd-sub); }
.xd-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.xd-tools label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--xd-sub); }
.xd-tools input { height: 34px; min-width: 140px; border: 1px solid var(--xd-line2); border-radius: 6px; padding: 0 8px; font-size: 13px; color: var(--xd-text); background: #fff; }
.xd-tools select { height: 34px; min-width: 96px; border: 1px solid var(--xd-line2); border-radius: 6px; padding: 0 8px; font-size: 13px; color: var(--xd-text); background: #fff; }
.xd-btn { height: 34px; padding: 0 14px; border: 1px solid var(--xd-line2); border-radius: 6px; background: #fff; color: var(--xd-text2); font-size: 13px; cursor: pointer; }
.xd-btn:hover { border-color: var(--xd-denim); color: var(--xd-denim); }
.xd-btn:disabled, .xd-btn:disabled:hover { opacity: .45; cursor: default; border-color: var(--xd-line2); color: var(--xd-text2); }   /* 「← 이전」 — 더 돌아갈 단계가 없을 때(2026-10-13) */
@media print { .xd-back { display: none; } }

/* 알약형 탭(2026-10-07 결정) */
.xd-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: #EEF1F5; border: 1px solid var(--xd-line); border-radius: 12px; width: fit-content; max-width: 100%; }
.xd-tab { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--xd-text2); font-size: 14px; font-weight: 500; cursor: pointer; }
.xd-tab:hover { background: rgba(47,85,127,.08); }
.xd-tab.on { background: var(--xd-denim); color: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(20,30,48,.18); }
.xd-tab svg { width: 15px; height: 15px; }

/* 항목 탭 줄 + 종합의 보기 방식(상세 분석 | 브리핑) */
.xd-navrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.xd-tab.wait { color: #9AA3B0; }
.xd-seg button svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }

/* ── 본문 ───────────────────── */
.xd-main { max-width: 1400px; margin: 0 auto; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 20px; }
.xd-card { background: var(--xd-card); border: 1px solid var(--xd-line); border-radius: 10px; padding: 18px 20px; }
.xd-card h2 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.xd-cap { font-size: 12px; color: var(--xd-sub); margin-bottom: 12px; }
.xd-note { font-size: 12px; color: var(--xd-sub); margin-top: 10px; }
.xd-msg { padding: 40px; text-align: center; color: var(--xd-sub); }
.xd-grid2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }   /* 시안 A: 추이 flex 999 1 640 / 표준 달성 1 1 360 */
.xd-grid2 > * { min-width: 0; flex: 1 1 360px; }
.xd-grid2 > .xd-trend { flex: 999 1 640px; }

/* KPI */
.xd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.xd-kpi { background: var(--xd-card); border: 1px solid var(--xd-line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.xd-kpi-h { display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.xd-kpi-l { font-size: 13px; color: var(--xd-sub); }
.xd-kpi-v { font-size: 30px; font-weight: 700; line-height: 1.25; }
.xd-kpi-v small { font-size: 14px; font-weight: 500; color: var(--xd-sub); }
/* 십일금 원 단위 큰 숫자 — 자릿수가 많아 줄인다(2026-10-08) */
.xd-kpi-v .xd-won, .xd-sbox-v .xd-won { font-size: 21px; letter-spacing: -0.3px; }
.xd-sbox-v small { font-size: 14px; font-weight: 500; color: var(--xd-sub); }
.xd-kpi-s { font-size: 12px; color: var(--xd-text2); }
.xd-kpi-s2 { font-size: 12px; }
.xd-kpi-s2.sub { color: var(--xd-sub); }
.xd-kpi-s2.ok { color: #2E6B15; font-weight: 600; }
.xd-kpi-s2.low { color: var(--xd-bad); font-weight: 600; }

/* 삼대성장 추이 — 제목 오른쪽 범례 + 기간 알약 버튼, 아래 비교표 상자 */
.xd-trend { display: flex; flex-direction: column; gap: 10px; }
.xd-trend-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.xd-trend-h .xd-cap { margin-bottom: 0; }
.xd-trend-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12px; }
.xd-lg { display: inline-flex; align-items: center; gap: 6px; }
.xd-lg i { display: inline-block; width: 16px; height: 4px; }
.xd-seg { display: inline-flex; gap: 2px; padding: 3px; background: #EEF1F5; border: 1px solid var(--xd-line); border-radius: 9px; }
.xd-seg button { min-height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--xd-text2); font-size: 12px; font-weight: 500; cursor: pointer; }
.xd-seg button.on { background: var(--xd-denim); color: #fff; font-weight: 600; }
.xd-cmp-box { font-size: 12px; color: var(--xd-text2); background: #F6F7F9; border-radius: 8px; padding: 10px 12px; overflow-x: auto; }
.xd-cmp { border-collapse: collapse; width: 100%; white-space: nowrap; }
.xd-cmp th { text-align: right; font-weight: 600; color: var(--xd-sub); padding: 2px 8px; }
.xd-cmp td { text-align: right; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.xd-cmp th:first-child, .xd-cmp td:first-child { text-align: left; }

/* 달성 막대 — 시안 A: 높이 14, 지표별 색(JS 가 넣음), 세로선 = 경과율(진한 남색) */
.xd-bar-row { padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.xd-bar-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.xd-bar-h b { font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.xd-bar-h > span { text-align: right; }
.xd-bar { position: relative; height: 14px; background: #EEF0F4; border-radius: 7px; }
.xd-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 7px; }
.xd-bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--xd-text); }
.xd-bar-row .xd-note { font-size: 11px; }
.xd-rate-ok { color: #2E6B15; font-weight: 700; }
.xd-rate-low { color: var(--xd-bad); font-weight: 700; }
.xd-nodata { font-size: 12px; color: #7F264A; background: #F8EEF2; border-radius: 6px; padding: 6px 10px; }

/* 판정 색(글자색) */
.xd-good { color: var(--xd-good); font-weight: 600; }
.xd-bad { color: var(--xd-bad); font-weight: 600; }

/* 지역별 현황 + 주의 신호 — 한 줄에 나란히, 좁으면 아래로 */
.xd-row2 { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.xd-row2 > .xd-region { flex: 999 1 760px; min-width: 0; }
.xd-row2 > .xd-alerts { flex: 1 1 340px; min-width: 0; }

/* 지역표 — 목록형 테이블 표준(머리 고정·순수 CSS), 시안 A 선: 머리 아래·합계 위 2px */
.xd-tbl-wrap { max-height: 640px; overflow: auto; }
.xd-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.xd-tbl th { position: sticky; top: 0; z-index: 1; background: #fff; color: var(--xd-text2); font-weight: 600; padding: 8px; border-bottom: 2px solid var(--xd-text); white-space: nowrap; text-align: right; }
.xd-tbl td { padding: 7px 8px; border-bottom: 1px solid #EEF0F4; text-align: right; white-space: nowrap; }
.xd-tbl th:first-child, .xd-tbl td:first-child { text-align: left; }
.xd-tbl tr.sum td { position: sticky; bottom: 0; background: #F6F7F9; font-weight: 700; padding: 9px 8px; border-top: 2px solid var(--xd-text); border-bottom: 0; }
.xd-tbl tbody tr:not(.sum):hover td { background: #F8FAFC; }
.xd-mini { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.xd-mini-bar { position: relative; display: inline-block; width: 60px; height: 8px; background: #EEF0F4; border-radius: 4px; }
.xd-mini-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--xd-warn); border-radius: 4px; }

/* 주의 신호 — 시안 A: 색 바탕 상자 + 채운 꼬리표 */
.xd-alerts h2 { margin-bottom: 12px; }
.xd-alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; line-height: 1.5; }
.xd-alert b { display: block; }
.xd-alert span:not(.xd-tag) { color: var(--xd-text2); }
.xd-tag { flex-shrink: 0; min-width: 44px; text-align: center; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 6px; }
.xd-alert.risk { background: #FDF1EA; }  .xd-alert.risk .xd-tag { background: var(--xd-bad); color: #fff; }
.xd-alert.care { background: #FFF6E6; }  .xd-alert.care .xd-tag { background: #FFA92D; color: var(--xd-text); }
.xd-alert.data { background: #EEF3F8; }  .xd-alert.data .xd-tag { background: var(--xd-denim); color: #fff; }
.xd-alert.review { background: #F1ECF7; }  .xd-alert.review .xd-tag { background: #4B207F; color: #fff; }   /* 합병 검토(2026-10-11) */
.xd-merge-h { margin: 16px 0 6px; font-size: 14px; font-weight: 700; }
.xd-merge td small { font-size: 11px; }
.xd-merge td { vertical-align: top; }


/* ── 항목 ① 삼대성장 ───────────────────── */
.xd-card h2 small { font-size: 12px; font-weight: 400; color: var(--xd-sub); }
.xd-gcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.xd-gcard { background: var(--xd-card); border: 1px solid var(--xd-line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.xd-gcard-h { display: flex; justify-content: space-between; align-items: baseline; }
.xd-gcard-h h2 { margin: 0; font-size: 15px; font-weight: 600; }
.xd-gcard-h span { font-size: 12px; color: var(--xd-sub); }
.xd-gcard-v { font-size: 26px; font-weight: 700; }
.xd-gcard-v span { font-size: 13px; font-weight: 500; }
.xd-row2 > .xd-g-years { flex: 999 1 700px; min-width: 0; }
.xd-row2 > .xd-g-regions { flex: 1 1 400px; min-width: 0; }
.xd-tbl tr.xd-partial td { color: var(--xd-sub); }
.xd-rbars { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; }
.xd-rbar { display: grid; grid-template-columns: 76px 1fr 64px; align-items: center; gap: 8px; padding: 2px 4px; border: 0; border-radius: 4px; background: none; font-size: 13px; color: var(--xd-text); text-align: left; cursor: pointer; }
.xd-rbar:hover { background: #F3F5F8; }
.xd-rbar-t { height: 12px; display: flex; justify-content: flex-end; }
.xd-rbar-t i { display: block; border-radius: 3px; }
.xd-rbar > span:last-child { text-align: right; }
.xd-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--xd-sub); }
.xd-g-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--xd-text2); }
.xd-g-list .xd-tbl-wrap { max-height: none; }   /* 20줄 한 페이지를 안쪽 스크롤 없이 */
.xd-chip { display: inline-block; padding: 0 5px; border-radius: 3px; background: #EEF3F8; color: var(--xd-denim); font-size: 10px; font-weight: 600; }
.xd-region tbody tr:not(.sum) { cursor: pointer; }

/* ── 항목 ② 침례자 ───────────────────── */
.xd-row2 > .xd-bp-left { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; }
.xd-row2 > .xd-bp-right { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.xd-bp-chart { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.xd-ages { display: flex; flex-direction: column; gap: 6px; font-size: 13px; margin-bottom: 10px; }
.xd-age { display: grid; grid-template-columns: 64px 1fr 84px; gap: 8px; align-items: center; }
.xd-age-t { height: 14px; background: #EEF0F4; border-radius: 3px; }
.xd-age-t i { display: block; height: 14px; border-radius: 3px; }
.xd-age > span:last-child { text-align: right; }
.xd-warn-box { background: #FDF1EA; }
.xd-toplist { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.9; columns: 2; column-gap: 24px; }
.xd-tbl tr.xd-click { cursor: pointer; }
.xd-tbl tr.xd-sub td { background: #FAFBFC; font-size: 12px; color: var(--xd-text2); }
.xd-tbl tr.xd-sub td:first-child { padding-left: 28px; }

/* ── 항목 ③ 십일금 ───────────────────── */
.xd-row2 > .xd-t-annual { flex: 999 1 640px; min-width: 0; }
.xd-row2 > .xd-t-regions { flex: 1 1 380px; min-width: 0; }
.xd-rbar.xd-rbar-t3 { grid-template-columns: 62px 1fr 150px; }   /* 원 단위 금액·비중이 한 줄에 들어가게(2026-10-08) */
.xd-rbar.xd-rbar-t3 > span:last-child { white-space: nowrap; }
.xd-guide { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.7; display: flex; flex-direction: column; gap: 6px; }

/* ── 항목 ④ 교회정보 ───────────────────── */
.xd-row2 > .xd-c-size, .xd-row2 > .xd-c-regions { flex: 1 1 420px; min-width: 0; }
.xd-row2 > .xd-c-ages, .xd-row2 > .xd-c-oc { flex: 2 1 560px; min-width: 0; }
.xd-sizes { display: flex; flex-direction: column; gap: 8px; font-size: 13px; margin-bottom: 10px; }
.xd-size { display: grid; grid-template-columns: 96px 1fr 44px; gap: 8px; align-items: center; }
.xd-size-t { height: 18px; }
.xd-size-t i { display: block; height: 18px; border-radius: 3px; }
.xd-size > span:last-child { text-align: right; }
.xd-ageps { display: flex; flex-direction: column; gap: 5px; font-size: 12px; margin-bottom: 10px; }
.xd-agep { display: grid; grid-template-columns: 92px 1fr 70px; gap: 8px; align-items: center; }
.xd-agep-t { display: flex; flex-direction: column; gap: 2px; }
.xd-agep-t i { display: block; }
.xd-agep > span:last-child { text-align: right; }
/* 목록 표의 글자 칸(교회명·구분·지역·도시·담임목회자)은 왼쪽 맞춤 — 숫자 칸(xd-num)만 오른쪽 */
.xd-tbl th.l, .xd-tbl td.l { text-align: left; }
.xd-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; font-size: 13px; }
.xd-tile { display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--xd-line); border-radius: 8px; padding: 8px 10px; background: #fff; cursor: pointer; color: var(--xd-text); }
.xd-tile:hover { border-color: var(--xd-denim); }
.xd-tile span { color: var(--xd-sub); }
.xd-tile b { font-size: 18px; }

/* ── 항목 ⑤ 목회자 ───────────────────── */
.xd-row3 { display: flex; flex-wrap: wrap; gap: 20px; }
.xd-row3 > * { flex: 1 1 420px; min-width: 0; }
.xd-size.xd-size-p { grid-template-columns: 64px 1fr 36px; }
.xd-row2 > .xd-p-burden { flex: 999 1 640px; min-width: 0; }
.xd-row2 > .xd-p-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.xd-pchips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.xd-pchip { padding: 6px 12px; border-radius: 16px; background: #F1ECF7; color: #4B207F; }
.xd-pchip.b { font-weight: 600; }
.xd-pchip.g { background: #F1F2F5; color: var(--xd-text2); }

/* ── 항목 ⑥ 각교회 표준 ───────────────────── */
.xd-sboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.xd-sbox { border: 1px solid var(--xd-line); border-radius: 8px; padding: 14px; }
.xd-sbox-v { font-size: 26px; font-weight: 700; }
.xd-sbox-s { font-size: 13px; }
.xd-sbox-k { font-size: 12px; color: var(--xd-sub); }
.xd-sbands { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; }
.xd-sbands h2 { font-size: 15px; }
.xd-stack { display: flex; height: 28px; border-radius: 6px; overflow: hidden; font-size: 11px; font-weight: 600; margin: 8px 0; }
.xd-stack span { display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.xd-row2 > .xd-s-remain { flex: 999 1 640px; min-width: 0; }
.xd-row2 > .xd-s-review { flex: 1 1 380px; min-width: 0; }
.xd-review { font-size: 11px; padding: 1px 6px; border-radius: 8px; background: #FFF6E6; color: #8A5A00; }

/* ── 항목 ⑦ 교회 상세 ───────────────────── */
.xd-link { border: 0; background: none; padding: 0; font: inherit; color: var(--xd-denim); cursor: pointer; text-align: left; }
.xd-link:hover { text-decoration: underline; }
.xd-dt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.xd-dt-name { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.xd-dt-group { padding: 10px 0; border-top: 1px solid var(--xd-line); }
.xd-dt-group b { display: block; margin-bottom: 6px; font-size: 13px; }
.xd-dt-pick { border: 0; cursor: pointer; font-family: inherit; }
.xd-dt-pick:hover { background: #E4E9F1; }
.xd-row2 > .xd-dt-ops, .xd-row2 > .xd-dt-bap { flex: 1 1 420px; min-width: 0; }
.xd-row2 > .xd-dt-ages, .xd-row2 > .xd-dt-memo { flex: 1 1 420px; min-width: 0; }

/* ── 시안 B 브리핑 ───────────────────── */
.xd-brief { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.xd-bcard { background: var(--xd-card); border: 1px solid var(--xd-line); border-top: 4px solid var(--xd-denim); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.xd-bcard-t { font-size: 13px; font-weight: 600; color: var(--xd-denim); }
.xd-bcard-v { font-size: 30px; font-weight: 800; }
.xd-bcard-x { font-size: 13px; color: var(--xd-text2); }
.xd-dec { list-style: none; margin: 0; padding: 0; counter-reset: dec; }
.xd-dec li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid var(--xd-line); font-size: 14px; }
.xd-dec li:first-child { border-top: 0; }
.xd-dec li::before { counter-increment: dec; content: counter(dec); position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--xd-denim); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 24px; }
.xd-credit { font-size: 11px; color: var(--xd-sub); text-align: right; }

/* ── 모바일(640px 이하) — 「종합현황 브리핑」 ───────────────────── */
/* ── 1차 추가 ① 조기경보(2026-10-08) ── */
.xd-al-kpi { font: inherit; text-align: left; cursor: pointer; color: var(--xd-text); }
.xd-al-kpi:hover { border-color: var(--xd-denim); }
.xd-al-kpi.on { border: 2px solid var(--xd-denim); background: #EAF0F6; }
.xd-row2 > .xd-al-list { flex: 999 1 720px; min-width: 0; }
.xd-row2 > .xd-al-reg { flex: 1 1 400px; min-width: 0; }
.xd-al-reg tbody tr { cursor: pointer; }
.xd-al-reg tbody tr:hover { background: #F3F5F8; }
.xd-row-on td { background: #EAF0F6; font-weight: 600; }
.xd-al-hit { color: var(--xd-bad); font-weight: 700; }
.xd-al-sig { display: inline-block; margin: 1px 4px 1px 0; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.xd-al-sig.d { background: #FBE9DF; color: #B4501A; }
.xd-al-sig.b { background: #F6E6EC; color: #7F264A; }
.xd-al-sig.a { background: #ECE6F4; color: #4B207F; }
.xd-al-list td small { color: var(--xd-sub); font-size: 11px; }
/* ── 1차 추가 ③ 다음세대(2026-10-08) ── */
.xd-gcards.xd-ng-cards { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.xd-row2 > .xd-ng-bandcard { flex: 1 1 380px; min-width: 0; }
.xd-row2 > .xd-ng-reg { flex: 999 1 640px; min-width: 0; }
.xd-ng-reg tbody tr { cursor: pointer; }
.xd-ng-reg tbody tr:hover { background: #F3F5F8; }
.xd-ng-reg td small, .xd-ng-list td small { color: var(--xd-sub); font-size: 11px; }
.xd-ng-list td small.xd-rate-low { color: var(--xd-bad); }
.xd-ng-legend { display: flex; gap: 14px; font-size: 12px; color: var(--xd-text2); margin: 4px 0 8px; }
.xd-ng-legend i, .xd-ng-bars i { display: inline-block; border-radius: 3px; }
.xd-ng-legend i { width: 12px; height: 10px; margin-right: 5px; vertical-align: -1px; }
.xd-ng-legend i.o, .xd-ng-bars i.o { background: #C9D3DF; }
.xd-ng-legend i.c, .xd-ng-bars i.c { background: #2F557F; }
.xd-ng-band { display: grid; grid-template-columns: 92px 1fr 150px; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; border-bottom: 1px solid #EEF1F4; }
.xd-ng-band.ref { color: var(--xd-sub); }
.xd-ng-band.ref .xd-ng-bars i.c { background: #8FA6C0; }
.xd-ng-bars { display: flex; flex-direction: column; gap: 3px; }
.xd-ng-bars i { height: 8px; min-width: 1px; }
.xd-ng-band > span:last-child { text-align: right; white-space: nowrap; }
/* ── 교회 위치 지도(2026-10-11) ── */
.xd-map-wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.xd-map-side { flex: 1 1 280px; max-width: 340px; min-width: 0; display: flex; flex-direction: column; gap: 12px; max-height: 760px; }
.xd-map-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.xd-map-slot { position: relative; }
.xd-map-canvas { width: 100%; height: 680px; border-radius: 8px; overflow: hidden; border: 1px solid var(--xd-line); background: #E6ECF0; }
.xd-map-status { font-size: 13px; color: var(--xd-text2); min-height: 20px; }
.xd-map-search { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--xd-sub); }
.xd-map-search input { height: 40px; border: 1px solid var(--xd-line2); border-radius: 6px; padding: 0 10px; font-size: 14px; color: var(--xd-text); }
.xd-map-rgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.xd-map-rg { display: flex; justify-content: space-between; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--xd-line); border-radius: 6px; background: #fff; font-size: 13px; color: var(--xd-text); cursor: pointer; }
.xd-map-rg:first-child { grid-column: 1 / -1; }
.xd-map-rg.on { border-color: var(--xd-denim); background: #EAF0F6; color: #1F3B5A; font-weight: 700; }
.xd-map-kinds { display: flex; flex-direction: column; gap: 4px; }
.xd-map-kind { display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 28px; }
.xd-map-kind .xd-num { margin-left: auto; color: var(--xd-sub); }
.xd-map-listh { font-size: 13px; border-top: 1px solid var(--xd-line); padding-top: 10px; }
.xd-map-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1 1 auto; min-height: 120px; }
.xd-map-item { display: flex; gap: 8px; align-items: flex-start; width: 100%; padding: 7px 4px; border: 0; border-bottom: 1px solid #EEF1F4; background: none; text-align: left; font-size: 13px; color: var(--xd-text); cursor: pointer; }
.xd-map-item:hover { background: #F3F5F8; }
.xd-map-item:disabled { cursor: default; opacity: .75; }
.xd-map-item small { color: var(--xd-sub); font-size: 11px; }
.xd-map-ic { position: relative; flex: none; display: inline-flex; }
.xd-map-ic em { position: absolute; top: -4px; right: -7px; min-width: 15px; height: 15px; padding: 0 3px; box-sizing: border-box; border-radius: 8px; background: #1C2430; color: #fff; font-size: 9px; font-style: normal; font-weight: 700; line-height: 15px; text-align: center; }
.xd-map-kind svg { flex: none; }
/* 지도 교회 표시 — 교회 아이콘 + 아래 교회 이름(2026-10-11) */
.xd-mk { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.xd-mk-ic { position: relative; line-height: 0; filter: drop-shadow(0 1px 1.5px rgba(28, 36, 48, .45)); }
.xd-mk-b { position: absolute; top: -6px; left: 22px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #1C2430; color: #fff; border: 1.5px solid #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 15px; text-align: center; white-space: nowrap; }
.xd-mk-nm { margin-top: 1px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 700; color: #1C2430; letter-spacing: -0.2px;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 0 3px #fff; }
.xd-map-bubble { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #2F557F; color: #fff; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(28, 36, 48, .4); cursor: pointer; line-height: 1.15; }
.xd-map-bubble b { font-size: 15px; }
.xd-map-bubble span { font-size: 10px; }
.xd-map-info { padding: 10px 12px; font-size: 13px; line-height: 1.5; max-height: 320px; overflow-y: auto; color: #1C2430; }
.xd-map-info-one + .xd-map-info-one { border-top: 1px solid #EEF1F4; margin-top: 8px; padding-top: 8px; }
.xd-map-info small { color: #5B6576; }
.xd-map-info-s { color: #5B6576; font-size: 12px; }
.xd-map-info-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.xd-map-info-b .xd-btn { height: 30px; display: inline-flex; align-items: center; text-decoration: none; font-size: 12px; }
@media (max-width: 640px) {
  .xd-map-side { max-width: none; max-height: none; order: 2; }
  .xd-map-main { order: 1; }
  .xd-map-canvas { height: 60vh; }
  .xd-map-list { max-height: 50vh; }
}
/* 교회 상세 침례자 명단(2026-10-08) */
.xd-dt-names-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: 12px; color: var(--xd-sub); }
.xd-dt-names-h b { font-size: 14px; color: var(--xd-text); }

@media (max-width: 1100px) { .xd-grid2 { grid-template-columns: 1fr; } .xd-brief { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .xd-head-in { padding: 14px 16px 12px; gap: 10px; }
  .xd-title { font-size: 20px; }
  .xd-title small { display: none; }
  .xd-main { padding: 14px 16px 28px; gap: 14px; }
  .xd-tabs { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .xd-tab { flex: none; padding: 0 12px; white-space: nowrap; }
  .xd-gcards { grid-template-columns: 1fr; }
  .xd-sbands { grid-template-columns: 1fr; }
  .xd-brief { grid-template-columns: 1fr; }
  .xd-bcard-v { font-size: 26px; }
  .xd-kpis { grid-template-columns: repeat(2, 1fr); }
  .xd-kpi-v { font-size: 22px; }
  .xd-kpi-v .xd-won, .xd-sbox-v .xd-won { font-size: 15px; }
  .xd-kpi-h svg { width: 44px; height: 16px; }
  .xd-card { padding: 14px 16px; }
  .xd-hide-m { display: none; }
}
@media print {
  .xd { margin: 0; background: #fff; }
  .xd-tools, .xd-tabs { display: none; }
  .xd-card, .xd-bcard { break-inside: avoid; }
}
