/* 지관 플랫폼 관리자 화면: 공통 스타일
   앱과 같은 글꼴·색·여백을 쓴다. 숫자는 크게, 설명은 한 줄로, 근거가 다른 숫자는 따로 둔다. */
@font-face {
  font-family: "Pretendard";
  src: url("a/3ed7f0bb007708f12e47ced84c504884.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
x-dc { display: block; }

.ad {
  --bg: #ffffff;
  --surface: #f5f5f2;
  --surface-2: #ecece8;
  --line: #e4e3df;
  --line-strong: #c8c7c1;
  --text: #191919;
  --text-2: #474747;
  --text-3: #6b6b6b;
  --brand: #006633;
  --brand-dark: #004d26;
  --brand-wash: #e8f2ec;
  --warn: #9a4a00;
  --warn-wash: #fdf1e3;
  box-sizing: border-box;
  min-height: 100vh;
  background: var(--bg);
  font-family: Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
.ad *, .ad *::before, .ad *::after { box-sizing: border-box; }
:where(.ad) :where(h1, h2, h3, p, ul, ol, figure, table) { margin: 0; }
:where(.ad) :where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(.ad) a { color: inherit; text-decoration: none; }
:where(.ad) button { cursor: pointer; background: none; border: 0; padding: 0; }
.ad a:focus-visible, .ad button:focus-visible, .ad select:focus-visible, .ad input:focus-visible { outline: 3px solid rgba(0, 102, 51, 0.45); outline-offset: 2px; }
.ad svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 틀: 왼쪽 메뉴 + 본문. 좁은 화면에서는 메뉴가 위로 올라간다 */
.ad-shell { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100vh; }
.ad-side { flex: 1 1 236px; border-right: 1px solid var(--line); padding: 28px 16px 32px; display: flex; flex-direction: column; gap: 4px; background: var(--bg); }
.ad-main { flex: 999 1 560px; min-width: 0; padding: 32px 44px 72px; }
.ad-wrap { max-width: 1160px; }
.ad-brand { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; padding: 0 12px 18px; display: flex; flex-direction: column; gap: 0; }
.ad-brand small { font-size: 14px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.ad-grp { font-size: 14px; font-weight: 600; color: var(--text-3); padding: 14px 12px 4px; }
.ad-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--text-2); text-align: left; width: 100%; }
.ad-nav:hover { background: var(--surface); }
.ad-nav.on { background: var(--brand-wash); color: var(--brand); font-weight: 700; }
.ad-nav .n { font-size: 14px; font-weight: 700; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--warn-wash); color: var(--warn); display: inline-flex; align-items: center; justify-content: center; }
.ad-subnav { display: flex; flex-direction: column; gap: 2px; padding: 2px 0 6px 12px; }
.ad-subnav .ad-nav { min-height: 38px; font-size: 15px; font-weight: 500; }
.ad-subnav .ad-nav.on { background: none; color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.ad-me { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* 머리 */
.ad-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.ad-crumb { font-size: 14px; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ad-crumb a { text-decoration: underline; text-underline-offset: 4px; }
.ad-title { font-size: 28px; line-height: 38px; font-weight: 700; letter-spacing: -0.025em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ad-desc { font-size: 16px; line-height: 26px; color: var(--text-2); margin-top: 6px; max-width: 760px; }
.ad-ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ex { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 14px; background: var(--surface-2); color: var(--text-2); font-size: 14px; font-weight: 600; letter-spacing: 0; }

/* 단추, 고르기, 입력 */
.ab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1.5px solid #f1f0ec; background: #f1f0ec; font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; }
.ab.primary { background: var(--brand); border-color: var(--brand); color: #ffffff; }
.ab.soft { background: var(--surface); border-color: var(--surface); }
.ab.sm { height: 36px; padding: 0 12px; font-size: 14px; }
.ab.on { border-color: var(--brand); background: var(--brand-wash); color: var(--brand); }
.asel { height: 42px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--bg); font-size: 15px; font-weight: 600; }
.ain { height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--bg); font-size: 16px; width: 100%; min-width: 0; }
.ata { padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--bg); font-size: 16px; line-height: 26px; width: 100%; resize: vertical; min-height: 88px; }
.alab { font-size: 15px; font-weight: 600; color: var(--text-2); display: block; margin-bottom: 6px; }
.afield { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.ahelp { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.seg2 { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface); gap: 2px; flex-wrap: wrap; }
.seg2 button { height: 36px; padding: 0 14px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.seg2 button.on { background: #ffffff; color: var(--text); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.tg { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; border-bottom: 1px solid var(--line); text-align: left; width: 100%; font-size: 16px; }
.tg:last-child { border-bottom: 0; }
.sw { width: 46px; height: 28px; border-radius: 14px; background: var(--line-strong); position: relative; flex: none; display: inline-block; }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #ffffff; }
.sw.on { background: var(--brand); }
.sw.on::after { left: auto; right: 3px; }
.ck { width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ck.on { background: var(--brand); border-color: var(--brand); }
.ck.on::after { content: ""; width: 6px; height: 12px; border: solid #ffffff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }

/* 구역 */
.sec2 { margin-top: 44px; }
.sec2 > .h2row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.h2 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.sub { font-size: 14px; line-height: 21px; color: var(--text-3); }
.note { font-size: 14px; line-height: 22px; color: var(--text-3); }
.pnl { background: var(--surface); border-radius: 16px; padding: 24px; }
.bx { border: 1.5px solid var(--line); border-radius: 16px; padding: 24px; }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols > .c1 { flex: 3 1 420px; min-width: 0; }
.cols > .c2 { flex: 2 1 300px; min-width: 0; }
.grid-a { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 0; }
.grid-b { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.grid-c { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }

/* 큰 숫자 */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi { padding: 20px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi:first-child { border-left: 0; padding-left: 4px; }
.kpi .k { font-size: 15px; line-height: 22px; color: var(--text-2); font-weight: 600; }
.kpi .v { font-size: 34px; line-height: 42px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 16px; font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.kpi .d { font-size: 14px; line-height: 20px; color: var(--text-3); }
.up::before { content: "▲ "; font-size: 11px; }
.down::before { content: "▼ "; font-size: 11px; }
.big { font-size: 48px; line-height: 56px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.big small { font-size: 20px; font-weight: 600; margin-left: 4px; letter-spacing: 0; }

/* 재단 지표 칸 */
.mcell { padding: 22px 22px 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mcell .nm { font-size: 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.mcell .nm a { font-size: 14px; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.mcell .v { font-size: 30px; line-height: 38px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mcell .v small { font-size: 15px; font-weight: 600; margin-left: 2px; letter-spacing: 0; }
.mcell .x { font-size: 15px; line-height: 22px; color: var(--text-2); }
.mcell .why { font-size: 13.5px; line-height: 20px; color: var(--text-3); margin-top: 6px; }
.mgrid { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* 표 */
.tw { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.tbl th { text-align: left; font-size: 14px; font-weight: 600; color: var(--text-3); padding: 10px 12px; border-bottom: 1.5px solid var(--line-strong); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl .r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl.nw td { white-space: nowrap; }
.tbl tr.sel td { background: var(--brand-wash); }
.tbl tr.hl td { background: var(--warn-wash); }
.tbl tfoot td { font-weight: 700; border-bottom: 0; border-top: 1.5px solid var(--line-strong); }
.thumb { width: 40px; height: 56px; border-radius: 6px; object-fit: cover; display: block; background: var(--surface-2); }

/* 상태 표시 */
.st { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 14px; font-size: 14px; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.st.ok { background: var(--brand-wash); color: var(--brand); }
.st.wait { background: var(--warn-wash); color: var(--warn); }
.st.dark { background: #191919; color: #ffffff; }

/* 막대 */
.hb { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 96px; gap: 14px; align-items: center; min-height: 40px; font-size: 15px; }
.hb .tr { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.hb .tr i { display: block; height: 100%; border-radius: 6px; background: var(--brand); }
.hb .tr i.mute { background: var(--line-strong); }
.hb .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.prog { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--brand); border-radius: 5px; }

/* 흐름(깔때기) */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 0; border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; }
.flow .st2 { padding: 20px 20px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; position: relative; }
.flow .st2:first-child { border-left: 0; }
.flow .st2 .k { font-size: 15px; color: var(--text-2); font-weight: 600; line-height: 22px; }
.flow .st2 .v { font-size: 28px; line-height: 36px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.flow .st2 .c { font-size: 14px; color: var(--brand); font-weight: 700; }
.flow .st2 .tr { height: 8px; border-radius: 4px; background: var(--surface-2); margin-top: 10px; overflow: hidden; }
.flow .st2 .tr i { display: block; height: 100%; background: var(--brand); }

/* 선 그래프: 선은 SVG, 글자는 HTML */
.chart { display: flex; flex-direction: column; gap: 8px; }
.chart svg { width: 100%; height: 180px; display: block; }
.chart .xl { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--text-2); }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; background: var(--brand); vertical-align: middle; margin-right: 6px; }
.legend i.mute { background: var(--line-strong); }

/* 목록 줄 */
.li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; width: 100%; }
.li:last-child { border-bottom: 0; }
.li .t { font-size: 16px; font-weight: 700; }
.li .s { font-size: 15px; color: var(--text-2); }

/* 문서 미리보기 (보고서) */
.paper { max-width: 820px; border: 1.5px solid var(--line); border-radius: 12px; padding: 48px 56px; background: #ffffff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.05); }
.paper h2 { font-size: 19px; line-height: 28px; font-weight: 700; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.paper h2:first-of-type { margin-top: 24px; }
.paper p, .paper li { font-size: 16px; line-height: 27px; color: var(--text); }
.paper ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.mark { background: #fff4c2; border-radius: 3px; padding: 0 2px; }

/* 알림 */
.atoast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); z-index: 50; padding: 14px 20px; border-radius: 12px; background: rgba(25, 25, 25, 0.94); color: #ffffff; font-size: 15px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); max-width: calc(100% - 48px); text-align: center; }

/* 출석 QR 띄우기(태블릿 가로) */
.qk { width: 1180px; height: 820px; box-sizing: border-box; padding: 28px 36px; background: #f4f3ef; display: flex; flex-direction: column; gap: 22px; position: relative; }
.qk-top { display: flex; align-items: center; gap: 16px; }
.qk-back { font-size: 16px; font-weight: 600; color: #474747; }
.qk-tag { flex: 1; font-size: 15px; color: #6b6b6b; }
.qk-main { flex: 1; display: grid; grid-template-columns: 1fr 340px; gap: 24px; min-height: 0; }
.qk-qrbox { background: #ffffff; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 28px; }
.qk-k { font-size: 17px; font-weight: 700; color: #1f6b3a; }
.qk-qrbox h1 { margin: 0; font-size: 34px; line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.qk-qrbox p { margin: 0; font-size: 19px; color: #474747; }
.qk-qr { width: 360px; height: 360px; margin-top: 10px; }
.qk-qr svg { width: 100%; height: 100%; display: block; }
.qk-ref { font-size: 15px; color: #6b6b6b; }
.qk-side { background: #ffffff; border-radius: 24px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.qk-count { display: flex; flex-direction: column; gap: 6px; }
.qk-count .k { font-size: 16px; font-weight: 700; color: #1f6b3a; }
.qk-count b { font-size: 48px; line-height: 56px; font-weight: 800; }
.qk-count small { font-size: 20px; color: #6b6b6b; font-weight: 600; }
.qk-count .progress { display: block; height: 10px; border-radius: 5px; background: #e4e3df; overflow: hidden; }
.qk-count .progress i { display: block; height: 100%; background: #1f6b3a; border-radius: 5px; }
.qk-side h2 { margin: 10px 0 0; font-size: 18px; font-weight: 800; }
.qk-list { display: flex; flex-direction: column; gap: 12px; flex: 1; overflow: hidden; }
.qk-list div { display: flex; justify-content: space-between; font-size: 17px; }
.qk-list span { color: #6b6b6b; }
.qk-manual, .qk-demo { width: 100%; }
.qk-toast { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 14px 22px; border-radius: 14px; background: #191919; color: #ffffff; font-size: 16px; }

/* 질문 달력: 형태 표시 */
.qf { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: var(--brand-wash, #e8f2ec); color: var(--brand, #006633); font-size: 14px; font-weight: 700; white-space: nowrap; }

/* 보조 단추(2026-10-24): 기본 .ab가 연한 회색 채움(앱과 같은 결). 아래는 비교용으로 쓰던 줄 */
.ab-fill .ab:not(.primary):not(.on) { border-color: #f1f0ec; background: #f1f0ec; }

/* 성과: 개발 참고 접기 */
.dev-fold { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dev-fold summary { list-style: none; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; }
.dev-fold summary::-webkit-details-marker { display: none; }
.dev-fold summary .h2 { font-size: 17px; color: var(--text-2); }
.dev-fold[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 8px; }
