:root { --bg:#f5f6f8; --card:#fff; --ink:#1d2433; --muted:#6b7385; --line:#e3e6ec; --accent:#1f4fa3; --accent-soft:#e8eefb; --bad:#c0392b; --ok:#1e8a4c; --warn:#b26a00; --sum-bg:#fff7e0; --sum-line:#ecdcae; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/1.5 "Malgun Gothic","Apple SD Gothic Neo",system-ui,sans-serif; }
button { font:inherit; cursor:pointer; border:1px solid var(--line); background:#fff; padding:6px 12px; border-radius:6px; }
button.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
/* 아이콘 버튼 (엑셀 내려받기): 글자 버튼과 같은 높이의 정사각형 */
button.ico-btn { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; padding:0; color:var(--ink); }
button.ico-btn:hover:not(:disabled) { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
button.ico-btn:disabled { color:#c3c8d2; cursor:default; }
button.ico-btn svg { display:block; }
button.ico-btn.on { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }   /* 전체 보기 중 */
.fz-clear.ico-btn { height:36px; width:36px; }
input, select { font:inherit; padding:7px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.err { color:var(--bad); min-height:1.5em; }
.err.ok { color:var(--ok); }   /* 비밀번호 규칙 통과 안내 */
/* 로그인 */
.login { min-height:100vh; display:grid; place-items:center; padding:16px; }
.login form { width:min(360px,100%); background:var(--card); border:1px solid var(--line); border-radius:12px; padding:28px; display:grid; gap:12px; }
.login img { height:36px; justify-self:start; }
.login h1 { margin:0; font-size:18px; }
/* 화면 틀 */
.gnb { display:flex; align-items:center; gap:24px; background:#fff; border-bottom:1px solid var(--line); padding:0 20px; height:56px; }
.gnb img { height:28px; }
.gnb .tabs { display:flex; gap:4px; flex:1; }
.gnb .tabs a { padding:8px 14px; border-radius:6px; color:var(--muted); text-decoration:none; font-weight:600; }
.gnb .tabs a.on { background:var(--accent-soft); color:var(--accent); }
.gnb .me { display:flex; gap:10px; align-items:center; color:var(--muted); }
.wrap { display:grid; grid-template-columns:200px 1fr; min-height:calc(100vh - 56px); }
.side { background:#fff; border-right:1px solid var(--line); padding:14px 10px; }
.side h4 { margin:16px 8px 4px; font-size:13px; font-weight:700; color:var(--ink); letter-spacing:.02em; }
.side h4:first-child { margin-top:4px; }
.side a { display:block; padding:6px 10px 6px 20px; border-radius:6px; color:var(--muted); font-size:13px; text-decoration:none; }
.side a:hover { color:var(--ink); background:var(--accent-soft); }
.side a.on { background:var(--accent-soft); color:var(--accent); font-weight:600; }
main { padding:22px 26px; min-width:0; }
main h1 { margin:0 0 4px; font-size:20px; }
.sub { color:var(--muted); margin:0 0 16px; }
.panel { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:16px; margin-bottom:16px; overflow-x:auto; }
table { border-collapse:collapse; width:100%; }
th, td { border-bottom:1px solid var(--line); padding:6px 8px; text-align:left; white-space:nowrap; }   /* 가로 스크롤을 줄이려고 여백을 좁힘 */
/* 한 칸 두 줄 표기 (예: 이름 / 사번) — 아랫줄은 흐리게 */
th .l2, td .l2 { display:block; color:var(--muted); font-weight:400; font-size:12px; }
th { background:#fafbfc; font-weight:600; color:var(--muted); }
.row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.tag { display:inline-block; padding:1px 8px; border-radius:10px; background:var(--accent-soft); color:var(--accent); font-size:12px; }
.tag.off { background:#f3e3e1; color:var(--bad); }
/* 1200% 화면 */
.tag.bad { background:#f3e3e1; color:var(--bad); } .tag.warn { background:#fdf0d8; color:var(--warn); } .tag.ok { background:#e2f3e9; color:var(--ok); } .tag.mute { background:#eef0f3; color:var(--muted); }
b.bad, td.bad { color:var(--bad); } b.warn { color:var(--warn); } b.ok { color:var(--ok); }
th.no, td.no { width:1%; text-align:right; color:var(--muted); font-variant-numeric:tabular-nums; padding-right:6px; }
td.num, th.num { text-align:right; font-variant-numeric:tabular-nums; }
td.ell { max-width:260px; overflow:hidden; text-overflow:ellipsis; }
tr.dim td { color:#a3a9b6; }
/* 대시보드 차트 (한 가지 색 · 얇은 막대 · 끝만 둥글게 · 마우스를 올리면 말풍선) */
.vchart { position:relative; display:flex; align-items:flex-end; gap:2px; height:220px; border-bottom:1px solid var(--line); margin-top:10px;
  background:repeating-linear-gradient(to top, transparent 0 54px, #f0f2f5 54px 55px); }
.vchart .c { flex:1; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; }
.vchart .c i { display:block; width:min(28px, 70%); background:var(--accent); border-radius:4px 4px 0 0; min-height:1px; }
.vchart .c:hover i { background:#163b7d; }
.vchart .c.zero i { background:transparent; }
.vchart .ymax { position:absolute; top:-2px; left:0; font-size:11px; color:var(--muted); background:var(--card); padding-right:4px; }
/* 월별 수입·지급: 달마다 막대 2개(수입 · 지급) — 2px 간격 · 범례 */
.vchart.pair .c { flex-direction:row; align-items:flex-end; justify-content:center; gap:2px; }
.vchart.pair .c i { width:min(16px, 40%); }
.vchart.pair .c i.s1, .lg .s1 { background:#2a78d6; } .vchart.pair .c i.s2, .lg .s2 { background:#eb6834; }
.vchart.pair .c:hover i { filter:brightness(.85); }
.lg { display:inline-flex; gap:14px; font-size:12px; color:var(--muted); margin-left:12px; } .lg span { display:inline-flex; align-items:center; gap:5px; } .lg i { width:10px; height:10px; border-radius:2px; display:inline-block; }
.vx { display:flex; gap:2px; font-size:11px; color:var(--muted); margin-top:4px; } .vx span { flex:1; text-align:center; white-space:nowrap; overflow:visible; }
/* 버튼 묶음: 선택 상자와 같은 높이(37px) · 버튼 사이 구분선 */
.seg { display:inline-flex; align-items:stretch; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:#fff; }
.seg button { border:0; border-radius:0; padding:7px 12px; line-height:1.5; } .seg button + button { border-left:1px solid var(--line); }
.seg button:hover { background:#f4f7fc; }
.seg button.on { background:var(--accent-soft); color:var(--accent); font-weight:600; }
/* 글자 + 입력칸을 한 줄로 (세로 가운데 맞춤) */
label.inl { display:inline-flex; align-items:center; gap:6px; color:var(--muted); white-space:nowrap; }
td.hb { width:45%; } .hb span { display:block; height:8px; background:var(--accent); border-radius:0 4px 4px 0; min-width:1px; }
.hb span.other { background:#9aa3b2; }
#vtip { position:fixed; z-index:2000; pointer-events:none; background:#1d2433; color:#fff; padding:6px 9px; border-radius:6px; font-size:12px; line-height:1.5; display:none; white-space:nowrap; }
/* 모든 표 공통: 열 이름을 눌러 정렬 (▲ 오름차순 · ▼ 내림차순, 정렬 전에는 흐린 ↕) */
th.sortable { cursor:pointer; user-select:none; }
th.sortable:hover { color:var(--accent); }
th.sortable::after { content:'↕'; margin-left:4px; font-size:10px; color:#c3c8d2; }
th.sortable[data-sort="asc"]::after { content:'▲'; color:var(--accent); }
th.sortable[data-sort="desc"]::after { content:'▼'; color:var(--accent); }
/* 두 줄 머리글 가운데 정렬: 정렬 표시는 오른쪽 가운데에 따로 (글자 줄에 붙으면 둘째 줄이 밀림) · 좌우 여백을 같게 해 값과 가운데가 맞음 */
th.th2 { position:relative; text-align:center; line-height:1.25; padding-left:14px; padding-right:14px; width:1%; }
th.th2.sortable::after { position:absolute; right:3px; top:50%; transform:translateY(-50%); margin-left:0; }
td.c { text-align:center; }
/* 다중 선택 조건 — 한 줄 체크박스 (main.js chkRow) */
.chk-row { margin-top:8px; padding-top:8px; border-top:1px dashed var(--line); gap:6px; }
.chk-row label.chk { display:inline-flex; align-items:center; gap:4px; padding:3px 9px; border:1px solid var(--line); border-radius:14px; cursor:pointer; white-space:nowrap; font-size:13px; }
.chk-row label.chk:hover { border-color:var(--accent); }
.chk-row label.chk.on { border-color:var(--accent); color:var(--accent); background:#eef4ff; }
.chk-row label.chk input { margin:0; }
.chk-row .chk-clear { padding:3px 10px; font-size:12px; }
.chk-row .chk-tail { margin-left:auto; display:inline-flex; align-items:center; gap:6px; }   /* 같은 줄 오른쪽 끝 버튼 (보유계약조회) */
/* 다중 선택 조건 (체크박스 드롭다운, main.js msSel) */
.ms { position:relative; display:inline-block; }
.ms-btn { white-space:nowrap; max-width:220px; overflow:hidden; text-overflow:ellipsis; }
.ms-btn.on { border-color:var(--accent); color:var(--accent); }
.ms-pop { position:absolute; z-index:50; top:calc(100% + 4px); left:0; min-width:180px; background:#fff; border:1px solid var(--line); border-radius:6px; box-shadow:0 6px 18px rgba(0,0,0,.12); padding:6px; }
.ms-list { max-height:260px; overflow-y:auto; }
.ms-list label { display:flex; align-items:center; gap:6px; padding:4px 6px; white-space:nowrap; cursor:pointer; border-radius:4px; }
.ms-list label:hover { background:#f3f5f8; }
.ms-act { display:flex; justify-content:space-between; gap:6px; border-top:1px solid var(--line); margin-top:6px; padding-top:6px; }
.ms-act button { padding:3px 10px; font-size:12px; }
.sort-hint { margin:0 0 6px; }
/* 모든 표 공통: 짝수행 색칠 + 마우스 올린 행 강조 (행 구분용) */
tbody tr:nth-child(even) td { background:#f4f7fc; }
tbody tr:hover td { background:#e8eefb; }
tfoot td { background:#fafbfc; border-bottom:0; }
tfoot.sum-top { display:table-row-group; }   /* 머리글 바로 다음에 둔 합계 줄을 그 자리(첫 줄)에 그대로 · NO 칸 없음 */
tfoot.sum-top td { font-weight:700; border-bottom:1px solid var(--line); background:var(--sum-bg); }   /* 첫 행 합계: 연한 크림 — 파란 줄무늬 · 마우스 올림과 구분 */
.tbl-fit tfoot.sum-top { position:sticky; top:var(--head-h, 0); z-index:1; }   /* 세로 스크롤해도 머리글 아래에 고정 (--head-h 는 fitTables 에서) */
.tbl-fit tfoot.sum-top td { box-shadow:inset 0 -1px 0 var(--sum-line); }
tfoot.sum-top td { border-bottom-color:var(--sum-line); }
a.lnk { color:var(--accent); text-decoration:none; } a.lnk:hover { text-decoration:underline; }
.panel > b:first-child { display:inline-block; margin-bottom:8px; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin-bottom:16px; } .kpis.in { margin:0; }
.kpi { background:var(--card); border:1px solid var(--line); border-radius:10px; padding:12px 14px; display:grid; gap:2px; }
/* 한 줄 요약: 칸 수와 상관없이 한 줄에 나란히 (금액이 커도 들어가게 글자 약간 작게) */
.kpis.one { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(0,1fr); gap:8px; }
.kpis.one .kpi { padding:10px 12px; min-width:0; }
.kpis.one .kpi b { font-size:17px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.kpis.one .kpi small { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:11px; }
.kpi span { color:var(--muted); font-size:12px; } .kpi b { font-size:22px; font-variant-numeric:tabular-nums; } .kpi b a { color:inherit; text-decoration:none; }
.kpi.bad b { color:var(--bad); } .kpi.warn b { color:var(--warn); } .kpi.ok b { color:var(--ok); } .kpi.mute b { color:var(--muted); }
.cols { display:grid; grid-template-columns:repeat(auto-fit,minmax(380px,1fr)); gap:16px; } .cols .panel { margin-bottom:0; }
.rt { display:flex; align-items:center; gap:8px; min-width:150px; } .rt b { font-size:13px; font-variant-numeric:tabular-nums; min-width:56px; text-align:right; }
.bar { flex:1; height:6px; background:#eef0f3; border-radius:3px; overflow:hidden; } .bar i { display:block; height:100%; border-radius:3px; }
.bar i.ok { background:var(--ok); } .bar i.warn { background:var(--warn); } .bar i.bad { background:var(--bad); }
/* 표 높이를 화면에 맞춤: 표 안에서 세로·가로 스크롤, 제목 줄 고정 */
.panel:has(> .tbl-fit) { overflow:visible; }
.tbl-fit { overflow:auto; border:1px solid var(--line); border-radius:6px; }
.tbl-fit thead { position:sticky; top:0; z-index:1; }   /* 머리글 여러 줄도 함께 고정 */
.tbl-fit thead th { box-shadow:inset 0 -1px 0 var(--line); }
thead th[colspan] { text-align:center; border-left:1px solid var(--line); border-right:1px solid var(--line); }
th.grp-l, td.grp-l { border-left:1px solid var(--line); }
.notice { background:#fdf6e7; border:1px solid #f0dcae; color:#7a5200; border-radius:8px; padding:8px 12px; margin-bottom:12px; }
/* 한 줄로 나란히 놓인 설명 글씨(.sub)는 아래 여백을 없애 상하 가운데에 맞춤 (안내 줄 · 조회 줄의 'N건' 등) */
.notice .sub, .row > .sub, .row > label > .sub, .kpi .sub { margin:0; }
.notice > .tag, .notice > b, .notice > .sub { line-height:1.5; }
.tbl-fit tr:last-child td { border-bottom:0; }
.pager { display:flex; flex-wrap:wrap; align-items:center; gap:4px; margin-top:12px; }
.pager .pg { background:#fff; font:inherit; cursor:pointer; min-width:32px; padding:4px 8px; text-align:center; border:1px solid var(--line); border-radius:6px; color:var(--ink); text-decoration:none; font-variant-numeric:tabular-nums; }
.pager a.pg:hover { background:var(--accent-soft); }
.pager .pg.on { background:var(--accent); border-color:var(--accent); color:#fff; font-weight:600; }
.pager .pg.off { color:#c3c8d2; }
.pager .sub { margin:0 0 0 10px; }
/* 환수율 */
button.danger { border-color:#e6c3bf; color:var(--bad); }
button.danger:hover { background:#fbeeec; }
td.act { white-space:nowrap; } td.act button { padding:2px 8px; font-size:12px; margin-right:3px; }
table.hw th, table.hw td { padding:6px 7px; }
/* 두 줄 표 (미경과수수료-FP 건별): 가로 스크롤 없이 한 화면에 */
table.ue2 { font-size:12px; }
table.ue2 th, table.ue2 td { padding:4px 6px; line-height:1.35; vertical-align:top; }
table.ue2 th { white-space:normal; vertical-align:middle; }
table.ue2 .l2 { display:block; color:var(--muted); font-weight:400; }
table.ue2 td .l2 { white-space:nowrap; }
table.ue2 td .l2.un { color:var(--warn); }
table.ue2 .l2.bad { color:var(--bad); font-weight:600; }
.zero { color:#c3c8d2; }
/* 증번별_FP · 관리자: 칸 너비 줄임 (머리글 두 줄 · 여백 좁게 · 소속/상품명 최대 너비) */
table.jg-tbl th, table.jg-tbl td { padding:5px 6px; }
table.jg-tbl th { text-align:center; vertical-align:middle; line-height:1.25; }
table.jg-tbl td.ell { max-width:150px; }
table.jg-tbl thead th.suip-h { background:#e3f1e6; color:#1e5b33; }   /* 증번별_FP 수입(모집~합계) 머리글 */
.c-red, .c-red b { color:var(--bad); font-weight:700; }   /* 강조 금액 칸 (증번별_통합 총지급수수료) */
table.jg-tbl th.grp-l, table.jg-tbl td.grp-l { border-left:1px solid #b8bfcc; }   /* 증번별_통합 묶음 세로선 */
.c-blue-l { color:#1565c0; }   /* 파란색만 (증번별_통합 단계별 금액 · 합계 줄은 굵게 유지) */
.c-blue, .c-blue b { color:#1565c0; font-weight:700; }   /* 강조 금액 칸 (증번별_FP · 관리자 지급수수료) */
/* 분급관리(증번별): 왼쪽 인별 | 오른쪽 증번 — 좁은 화면에서는 위아래로 */
.ds-split { display:grid; grid-template-columns:minmax(340px, 34%) minmax(0, 1fr); gap:16px; align-items:start; }
.ds-split > .panel { min-width:0; }
.ds-split .tbl-fit { margin-top:8px; }
@media (max-width:1100px) { .ds-split { grid-template-columns:1fr; } }
/* 지급이력이 열려 있으면 위 두 목록 높이를 줄여 아래 지급이력이 같은 화면에 보이게 (표 높이 맞춤의 인라인 값보다 우선) */
/* 지급이력 펼침 행: 증번 그리드 안, 누른 행 바로 아래 — 높이가 크면 펼침 안에서 따로 스크롤 */
tr.ds-detail > td { padding:0 !important; background:#f7f9fd; border-bottom:2px solid var(--accent); }
.ds-detail-box { max-height:55vh; overflow:auto; padding:10px 12px 12px 18px; border-left:3px solid var(--accent); cursor:default; white-space:normal; }
.ds-detail-box table { background:#fff; }
.ds-detail-box thead { position:static; }   /* 바깥 그리드의 머리글 고정 규칙이 안쪽 표에 걸리지 않게 */
.ds-hist-tbl td[data-tip]:hover { background:#fff7d6; }   /* 마우스를 올리면 지급율·이름 말풍선이 뜨는 칸 */
.ds-hist-tbl tr.grp-top > td { border-top:2px solid var(--line); }   /* 합친 지급이력: 업적월이 바뀌는 줄 */
/* 눌러서 고르는 표: 마우스 올림 · 선택된 줄 */
table.pickable > tbody > tr:not(.ds-detail) { cursor:pointer; }
table.pickable > tbody > tr:not(.ds-detail):hover > td { background:#f3f6fc; }
table.pickable > tbody > tr.on > td { background:var(--accent-soft); }
table.pickable > tbody > tr.on > td:first-child { box-shadow:inset 3px 0 0 var(--accent); }
.modal .box.wide { width:min(1040px,100%); max-height:92vh; overflow:auto; }
.modal .box label { display:grid; gap:3px; font-size:12px; color:var(--muted); }
.hwkeys { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; }
.thyear > b { font-size:12px; color:var(--muted); }
.thgrid { display:grid; grid-template-columns:repeat(12,minmax(56px,1fr)); gap:6px; margin-top:4px; }
.thgrid input { width:100%; padding:5px 6px; text-align:right; font-variant-numeric:tabular-nums; }
@media (max-width:760px) { .thgrid { grid-template-columns:repeat(6,1fr); } }
/* 화면 탭 */
.tabbar { display:flex; flex-wrap:wrap; align-items:flex-end; gap:4px; margin:-8px 0 16px; border-bottom:1px solid var(--line); }
.tabbar:empty { display:none; }
.tabbar .vt { display:flex; align-items:center; max-width:220px; background:#eef0f4; border:1px solid var(--line); border-bottom:0; border-radius:8px 8px 0 0; margin-bottom:-1px; }
.tabbar .vt a { padding:7px 4px 7px 12px; color:var(--muted); text-decoration:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13px; }
.tabbar .vt.on { background:var(--card); }
.tabbar .vt.on a { color:var(--accent); font-weight:600; }
.tabbar .vt .x { border:0; background:none; padding:2px 8px; color:#9aa1ad; font-size:15px; line-height:1; }
.tabbar .vt .x:hover { color:var(--bad); }
.tabbar .vt-all { margin:0 0 4px auto; padding:3px 10px; font-size:12px; color:var(--muted); }
.side a .dot { color:var(--accent); font-size:8px; vertical-align:middle; margin-left:2px; }
.modal { position:fixed; inset:0; z-index:1000; background:rgba(0,0,0,.35); display:grid; place-items:center; padding:16px; }   /* 고정 머리글(z-index:1)보다 항상 위 */
.modal .box { background:#fff; border-radius:12px; padding:22px; width:min(420px,100%); display:grid; gap:10px; }
@media (max-width:760px) { .wrap { grid-template-columns:1fr; } .side { border-right:0; border-bottom:1px solid var(--line); } .gnb { gap:10px; overflow-x:auto; } }

/* 유지율_조직: 가로로 긴 표 — 왼쪽 마감월·조직·보험사 칸 고정, 회차 구분선 */
.ret-wrap { overflow:auto; max-height:70vh; }
.ret-wrap.ret-full { max-height:none; }   /* 유지율_조직: 높이 제한 없이 전체 */
.ret-tbl { border-collapse:separate; border-spacing:0; }
.ret-tbl th, .ret-tbl td { white-space:nowrap; }
.ret-tbl thead th { position:sticky; top:0; z-index:2; }
.ret-tbl .ret-s1, .ret-tbl .ret-s2, .ret-tbl .ret-s3 { position:sticky; z-index:1; background:#fff; }
.ret-tbl thead .ret-s1, .ret-tbl thead .ret-s2, .ret-tbl thead .ret-s3 { z-index:3; background:#fafbfc; }
.ret-tbl .ret-s1 { left:0; min-width:70px; }
.ret-tbl .ret-s2 { left:70px; min-width:200px; }
.ret-tbl .ret-s3 { left:270px; min-width:90px; border-right:2px solid var(--line); }
.ret-tbl.no-isco .ret-s2 { border-right:2px solid var(--line); }   /* 보험사 칸이 없을 때 고정 칸 경계 */
/* 조직 상하구조: 전체 · 사업단(누르면 지점 펼침) · 지점(들여쓰기) */
.ret-tbl tr.ret-lv0 td { font-weight:700; background:#eef3fc; }
.ret-tbl tr.ret-lv0 td.ret-s1, .ret-tbl tr.ret-lv0 td.ret-s2, .ret-tbl tr.ret-lv0 td.ret-s3 { background:#eef3fc; }
.ret-tbl tr.ret-lv1 { cursor:pointer; }
.ret-tbl tr.ret-lv1 td { font-weight:600; background:#f7f8fa; }
.ret-tbl tr.ret-lv1 td.ret-s1, .ret-tbl tr.ret-lv1 td.ret-s2, .ret-tbl tr.ret-lv1 td.ret-s3 { background:#f7f8fa; }
.ret-tbl tr.ret-lv1:hover td { background:#fff7d6; }
.ret-tbl tr.ret-lv2 td.ret-s2 { padding-left:34px; color:var(--ink); }
/* 유지율_FP 목록: 소속(사업단/지점) · FP(이름/사번) 칸 고정 */
.ret-tbl.ret-fp .ret-s2 { min-width:170px; border-right:none; }
.ret-tbl .ret-sf { position:sticky; z-index:1; background:#fff; left:240px; min-width:110px; }
.ret-tbl thead .ret-sf { z-index:3; background:#fafbfc; }
.ret-tbl.ret-fp .ret-s3 { left:350px; }
.ret-tbl.ret-fp.no-isco .ret-sf { border-right:2px solid var(--line); }
.ret-tbl.ret-fp tr.ret-lv0 td.ret-sf { background:#eef3fc; }
.ret-tbl tr.ret-hide { display:none; }
.ret-tbl .ret-tg { display:inline-block; width:16px; color:var(--accent); }
.ret-tbl tr.ret-cont td { border-top-color:transparent; }
.ret-tbl td.ret-rt { border-right:1px solid var(--line); }
.ret-tbl th.ret-key { background:#fff3cd; }
.ret-tbl tr.ret-total td { font-weight:700; border-top:2px solid var(--line); background:#fafafa; }
.ret-tbl .ret-ym { font-weight:400; color:var(--muted); font-size:12px; }   /* 회차 머리글의 업적월 */
/* 유지율: 회차 칸은 유지율만 · 누르면 모집월초·유지월초 창 */
.ret-tbl th.ret-col { min-width:64px; text-align:right; }
.ret-tbl td.ret-pick { cursor:pointer; min-width:64px; }
.ret-tbl td.ret-pick:hover { background:#fff7d6 !important; }
.ret-tbl td.ret-on { background:#ffe8a3 !important; outline:2px solid var(--accent); outline-offset:-2px; }
.ret-pop { position:fixed; z-index:50; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 6px 24px rgba(0,0,0,.15); padding:10px 12px; min-width:240px; }
.ret-pop .ret-pop-t { margin-top:6px; width:100%; }
.ret-pop .ret-pop-t th, .ret-pop .ret-pop-t td { padding:4px 6px; background:none; border-bottom:1px solid var(--line); }
.ret-pop .ret-pop-t th { color:var(--muted); font-weight:600; }
.stg-rt { color:var(--accent); font-weight:600; margin-left:4px; }   /* 지급율산출 단계별 지급율 */

/* 계약마스터-FP 편집 (pageContMst) — 칸 클릭해서 바로 고침 */
table.cm-ed td[contenteditable] { cursor: text; }
table.cm-ed td[contenteditable]:focus { outline: 2px solid #4f6bed; outline-offset: -2px; background: #fff; }
table.cm-ed tr.cm-dirty td { background: #fff8e1; }
table.cm-ed tr.cm-new td { background: #eef7ee; }
table.cm-ed tr.cm-dup td { background: #fdecec; }

/* 화면 공통: 월 선택 달력 (main.js monthPick) */
button.mp-btn { display:inline-flex; align-items:center; gap:10px; padding:7px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); font:inherit; cursor:pointer; min-width:120px; justify-content:space-between; }
button.mp-btn:hover { border-color:var(--accent); }
button.mp-btn i { font-style:normal; font-size:11px; color:var(--muted); }
.mp-pop { position:fixed; z-index:1000; width:272px; background:#fff; border:1px solid var(--line); border-radius:8px; box-shadow:0 8px 24px rgba(20,30,60,.16); padding:12px 14px 14px; }
.mp-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.mp-head b { font-size:15px; color:#2d3a5c; }
.mp-nav { border:0; background:none; font-size:16px; color:#2d3a5c; cursor:pointer; padding:4px 10px; border-radius:6px; }
.mp-nav:hover:not(:disabled) { background:var(--accent-soft); }
.mp-nav:disabled { color:#ccd1db; cursor:default; }
.mp-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px; }
.mp-grid button, .mp-foot button { border:0; background:none; padding:14px 0; border-radius:6px; font:inherit; color:var(--ink); cursor:pointer; }
.mp-grid button:hover:not(:disabled):not(.on), .mp-foot button:hover:not(.on) { background:var(--accent-soft); color:var(--accent); }
.mp-grid button:disabled { color:#c8ccd4; cursor:default; }
.mp-grid button.on, .mp-foot button.on { background:#6a4fd0; color:#fff; font-weight:600; }
.mp-foot { border-top:1px solid var(--line); margin-top:8px; padding-top:6px; text-align:center; }
.mp-foot button { padding:6px 16px; }

/* 계약마스터-FP 화면설명 */
.notice.cm-help { line-height:1.6; }
.notice.cm-help ul { margin:2px 0 8px; padding-left:20px; }
.notice.cm-help ul ul { margin:2px 0; }
table td.cm-mipdiff, table.cm-ed tr td.cm-mipdiff { background:#ffe0b2; font-weight:600; }

/* 지급대상계약 */
table.clickable tbody tr { cursor:pointer; }
table tbody tr.off td { color:var(--muted); background:#fafafa; }

/* 계약마스터-관리자: 조직장 · 사번 한 칸 (위 · 아래 각각 고침) */
table.cm-ed span.mg-v[contenteditable] { display:block; min-height:1.2em; min-width:56px; cursor:text; }
table.cm-ed span.mg-v[contenteditable]:focus { outline:2px solid #4f6bed; outline-offset:-1px; background:#fff; }
table th.mg-rt, table td.mg-rt { width:34px; min-width:34px; max-width:40px; padding-left:4px; padding-right:4px; }

/* 지급대상계약: 수입수수료 머리글 (모집 · 성과 · 계약관리 · 운영비 · 수금 · 갱신 · 기타) */
table thead th.inc-h { background:#ffe7b8; color:#7a4100; font-weight:700; }

/* FP수수료명세서 */
table.cm-ed td.fs-in { background:#fffbe6; min-width:70px; }
table td.fs-big { font-weight:700; }

/* 처리중 표시 (화면 공통 · main.js busyOn/busyOff): 요청 중에는 바로 화면을 덮어 다시 누르지 못하게, 0.15초 뒤부터 이미지 표시 */
#busy { display:none; position:fixed; inset:0; z-index:3000; cursor:wait; }
body.busy #busy { display:grid; place-items:center; }
#busy .busy-box { position:relative; display:flex; align-items:center; gap:10px; padding:14px 22px; background:#fff; border:1px solid var(--line); border-radius:10px;
  box-shadow:0 6px 24px rgba(0,0,0,.15); font-weight:600; color:var(--ink); opacity:0; animation:busy-in .15s ease .15s forwards; }
#busy .busy-spin { width:22px; height:22px; border:3px solid var(--accent-soft); border-top-color:var(--accent); border-radius:50%; animation:busy-rot .8s linear infinite; }
body.busy #busy::before { content:''; position:absolute; inset:0; background:rgba(255,255,255,.35); opacity:0; animation:busy-in .15s ease .15s forwards; }
@keyframes busy-in { to { opacity:1; } }
@keyframes busy-rot { to { transform:rotate(360deg); } }

/* 수수료통계표 (stat-form): 보고서 모양 — 칸마다 테두리 · 업적 파랑 · 전체수입 주황 머리글 · 전체 줄 빨간 굵게 */
.sf-tbl { border-collapse:collapse; width:100%; margin-top:8px; }
.sf-tbl th, .sf-tbl td { border:1px solid #222; padding:7px 10px; font-size:14px; }
.sf-tbl thead th { text-align:center; font-weight:600; background:#f2f2f2; }
.sf-tbl th.sf-a { background:#dbe8f6; } .sf-tbl th.sf-b { background:#fbe1d3; } .sf-tbl th.sf-k { background:#fff; }
.sf-tbl tbody td:nth-child(n+2):nth-child(-n+5) { background:#f4f8fc; } .sf-tbl tbody td:nth-child(n+6) { background:#fdf4ef; }
.sf-tbl.sf-pay tbody td { background:#fff !important; }
.sf-tbl tr.sf-sum td { color:#e00; font-weight:700; }
.sf-tbl tr.sf-tot td { background:#dfe6f2; font-weight:700; }

/* 명세서 상세 돋보기 창 (업적 · 총관리 · 기타 상세): 머리 → 요약 → 검색조건 판 → 표 */
.modal .box.fz-box { width:min(1500px,96vw); gap:14px; }
.fz-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.fz-title { font-size:18px; font-weight:700; color:var(--ink); } .fz-title .tag { font-size:12px; vertical-align:2px; margin-left:4px; }
.fz-who { margin-top:3px; font-size:13px; color:var(--muted); } .fz-who b { color:var(--ink); }
.fz-x { border:1px solid var(--line); background:#fff; border-radius:8px; width:34px; height:34px; font-size:15px; line-height:1; cursor:pointer; color:var(--muted); }
.fz-x:hover { color:var(--ink); border-color:#c5cad3; }
.fz-sum { background:var(--accent-soft); border-radius:8px; padding:10px 14px; font-size:14px; color:var(--ink); line-height:1.6; }
.fz-sum b { color:var(--accent); font-size:16px; }
.fz-filter { display:flex; flex-wrap:wrap; align-items:flex-end; gap:10px 14px; background:#f7f8fa; border:1px solid var(--line); border-radius:10px; padding:12px 16px; }
.fz-ft { align-self:center; font-size:13px; font-weight:700; color:var(--ink); padding-right:12px; margin-right:2px; border-right:1px solid var(--line); line-height:34px; }
.modal .box .fz-f { display:grid; gap:4px; font-size:12px; font-weight:600; color:var(--muted); }
.fz-f select, .fz-f input { min-width:150px; height:36px; padding:0 10px; border:1px solid #cfd4dc; border-radius:7px; background:#fff; font-size:13px; color:var(--ink); }
.fz-f input { width:170px; }
.fz-f select:focus, .fz-f input:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.fz-f .on { border-color:var(--accent); background:#fff; color:var(--accent); font-weight:600; box-shadow:0 0 0 2px var(--accent-soft); }
.fz-clear { height:36px; }
.fz-cnt { margin-left:auto; align-self:center; font-size:13px; color:var(--muted); } .fz-cnt b { color:var(--ink); }
#fz-body { min-width:0; display:grid; gap:10px; }   /* min-width:0 = 넓은 표는 안에서만 가로 스크롤 */
.fz-sec { display:flex; align-items:baseline; gap:8px; margin-top:2px; } .fz-sec b { font-size:14px; color:var(--ink); } .fz-sec span { font-size:12px; color:var(--muted); }
.fz-amt { color:var(--accent); font-weight:700; }   /* 돋보기 창 지급수수료 */
img.rookie { height:18px; width:auto; vertical-align:-4px; margin-left:2px; }   /* MBA과정관리: 이름 옆 Super/Best Rookie 아이콘 */
.rookie-perk { display:inline-flex; align-items:center; gap:4px; flex-wrap:wrap; font-size:13px; color:var(--ink); background:var(--sum-bg); border:1px solid var(--sum-line); border-radius:999px; padding:3px 12px; }   /* MBA과정관리: 화면설명 옆 루키 혜택 */
.rookie-perk .sep { color:var(--muted); margin:0 6px; } .rookie-perk img.rookie { margin-left:0; }
/* 캠페인현황: 좌(캠페인 목록) · 우(달성 현황) 2분할 — 좁은 화면에서는 위아래 */
.cp-wrap { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:16px; align-items:start; }
.cp-wrap > .panel { min-width:0; margin:0; }
@media (max-width:1100px) { .cp-wrap { grid-template-columns:1fr; } }
#cp-list tr.cp-row { cursor:pointer; }
#cp-list tr.cp-row.on td { background:var(--accent-soft); box-shadow:inset 0 0 0 0 transparent; } #cp-list tr.cp-row.on td:first-child { box-shadow:inset 3px 0 0 var(--accent); }
.cp-files { margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }   /* 캠페인현황: 첨부파일 */
.cp-files ul { list-style:none; margin:8px 0 0; padding:0; display:grid; gap:6px; }
.cp-files li { display:flex; align-items:center; gap:10px; } .cp-files li .sub { margin:0; font-size:12px; } .cp-files li button { margin-left:auto; padding:2px 8px; font-size:12px; }
#cp-res select.cp-att { padding:2px 4px; font-size:12px; } #cp-res input.cp-fin { width:110px; text-align:right; padding:2px 6px; font-size:12px; font-variant-numeric:tabular-nums; }   /* 캠페인 최종 지급 입력 */
#cp-res tr.cp-dirty td { background:#fff4d6; }
.modal .box.cp-pv { width:min(1100px, 96vw); }   /* 캠페인 첨부 이미지 미리보기 */
.cp-pv-img { max-height:80vh; overflow:auto; text-align:center; background:#f5f6f8; border-radius:8px; } .cp-pv-img img { max-width:100%; height:auto; display:inline-block; }
.cp-files li .cp-dn { margin-left:auto; } .cp-files li .cp-dn + button { margin-left:0; }
#cc-tbl tr.cc-bad td { background:#fdf1ef; }   /* 캠페인계약관리: 정상 아닌 계약(환수 검토) */
#cc-tbl td.cc-org { text-align:left; max-width:170px; }   /* 캠페인계약관리 소속: 왼쪽 · 좁게(넘치면 … · 마우스 올리면 전체) */
#cp-res td.cp-nm { color:var(--accent); font-weight:600; }   /* 캠페인현황 인별 결과: 이름 파란색 */
.cf-cond { border:1px solid var(--line); border-radius:8px; padding:8px 10px; display:grid; gap:6px; } .cf-cond .row { gap:10px; } .cf-cond .sub { margin:0; font-size:12px; }   /* 캠페인 등록 · 수정: 계약 조건 */
#ic-tbl tr.ic-off td { color:var(--muted); }   /* 사용인코드: 소멸된 코드는 흐리게 */
tr.sc-on td { background:var(--accent-soft); }   /* 수입원장 변환: 고른 보험사 */
/* 수수료명세서(업로드) suip-stmt: 왼쪽 보험사 목록 · 오른쪽 명세서 미리보기 (검은 막대 + 회색 바탕) */
.ss-wrap { display:grid; grid-template-columns:minmax(420px, 30%) minmax(0, 1fr); gap:16px; align-items:start; }
.ss-wrap > .panel { margin-bottom:0; }
#ss-list tbody tr { cursor:pointer; } #ss-list tbody tr:hover td { background:#f5f7fb; }
#ss-list tbody tr.on td { background:var(--accent-soft); } #ss-list tbody tr.on td:first-child { box-shadow:inset 3px 0 0 var(--accent); }
.ss-btn { padding:2px 12px; font-size:12px; background:#eef0fb; border:1px solid #d9ddf3; }
.ss-viewer { border-radius:8px; overflow:hidden; border:1px solid var(--line); background:#d4d4d4; position:sticky; top:12px; }
.ss-bar { display:flex; align-items:center; gap:8px; background:#110d0c; color:#fff; padding:10px 16px; min-height:44px; }
.ss-bar .ss-nm { font-size:13px; opacity:.85; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ss-bar button { background:transparent; border:0; color:#fff; cursor:pointer; padding:2px 8px; }
.ss-bar .ss-pct { font-size:15px; margin-right:6px; } .ss-bar .ss-ico { font-size:20px; line-height:1; } .ss-bar button:hover { color:#cfd6ff; }
.ss-frame { display:block; width:100%; height:calc(100vh - 230px); min-height:520px; border:0; background:#d4d4d4; }
.ss-img { height:calc(100vh - 230px); min-height:520px; overflow:auto; text-align:center; padding:16px; box-sizing:border-box; }
.ss-img img { max-width:none; height:auto; background:#fff; box-shadow:0 1px 6px rgba(0,0,0,.25); }
.ss-empty { height:calc(100vh - 230px); min-height:520px; display:flex; align-items:center; justify-content:center; color:#555; padding:20px; text-align:center; }
@media (max-width:1100px) { .ss-wrap { grid-template-columns:1fr; } .ss-viewer { position:static; } }
/* 수수료DATA(업로드) suip-data: 위 버튼 · 탭 · 표 아이콘 */
.sd-head { margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid var(--line); gap:6px; }
.sd-tbtn { background:#eef0fb; border:1px solid #dfe3f6; font-weight:600; padding:6px 14px; }
.sd-tbtn:disabled { opacity:.45; cursor:not-allowed; }
.sd-tabs { display:flex; border-bottom:1px solid #222; margin-bottom:14px; }
.sd-tabs span { padding:9px 48px; border:1px solid #222; border-bottom:0; border-radius:8px 8px 0 0; background:#fff; font-weight:700; margin-bottom:-1px; }
.sd-filter { margin-bottom:12px; }
.sd-list th { white-space:nowrap; } .sd-list td { white-space:nowrap; }
.sd-list td.ell { max-width:360px; }
.sd-ico { background:transparent; border:0; padding:2px 6px; cursor:pointer; color:#111; line-height:0; }
.sd-ico:hover { color:var(--accent); } .sd-ico:disabled { color:#c4c7cf; cursor:default; }
.sd-ok { color:#1e9e5a; font-weight:700; font-size:16px; }
.modal .box.sd-view { width:min(1400px, 97vw); }
.sd-view-tbl { max-height:72vh; margin-top:10px; } .sd-view-tbl td, .sd-view-tbl th { white-space:nowrap; font-size:12px; }
.sd-kform { gap:6px; padding:6px 0; border-bottom:1px solid var(--line); }
/* 수입원장 변환: 수수료DATA 원장 목록 · 원장 출처 창 */
.sc-dl { width:auto; } .sc-dl td, .sc-dl th { padding:4px 12px 4px 0; }
.sc-f { display:inline-block; margin:1px 4px 1px 0; padding:1px 7px; border-radius:4px; font-size:12px; border:1px solid var(--line); white-space:nowrap; }   /* 수입원장 변환: 원장 파일구분 */
.sc-f.ok { background:#e2f3e9; color:var(--ok); border-color:#bfe3cd; } .sc-f.none { color:var(--muted); background:#f3f4f6; border-style:dashed; } .sc-f.bad { background:#f3e3e1; color:var(--bad); border-color:#e6c3bf; }
.tr-src { margin-top:12px; padding-top:10px; border-top:1px solid var(--line); }
.sd-view-tbl .sd-hit { background:#fff7d6; }   /* 데이터확인: 검색한 칸 */

/* 설문조사: 설문지작성 · 설문지결과 · 설문 응답 (public/main.js pageSurvey*) */
.sv-grid { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:10px 14px; margin-top:10px; }
.sv-grid label { display:grid; gap:4px; font-size:13px; color:var(--muted); } .sv-grid .sv-wide { grid-column:1 / -1; }
.sv-grid input, .sv-grid select, .sv-grid textarea { color:var(--ink); }
.sv-h { display:flex; align-items:center; gap:8px; margin:18px 0 4px; font-size:14px; }
.sv-item .sv-sec { width:64px; }
.sv-no { display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:26px; border-radius:13px; background:var(--accent-soft); color:var(--accent); font-size:13px; }
.sv-play { padding:2px 8px; font-size:12px; white-space:nowrap; } .sv-play.on { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); }
.sv-txt { display:inline-block; max-width:220px; vertical-align:middle; margin-left:4px; }
.sv-player { display:flex; align-items:center; gap:10px; padding:8px 14px; } .sv-player audio { height:34px; }
.sv-ans-list { display:grid; gap:10px; margin-top:10px; max-height:70vh; overflow:auto; }
.sv-ans { border:1px solid var(--line); border-radius:8px; padding:8px 10px; display:grid; gap:6px; } .sv-ans audio { width:100%; max-width:420px; }
.sv-atext, .sv-descr { white-space:pre-wrap; background:#f7f8fa; border-radius:6px; padding:8px 10px; }
.sv-descr { margin:8px 0; }
.sv-mylist { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:10px; margin-top:8px; }
.sv-card { display:grid; gap:4px; border:1px solid var(--line); border-radius:10px; padding:10px 12px; text-decoration:none; color:inherit; justify-items:start; }
.sv-card:hover, .sv-card.on { border-color:var(--accent); background:var(--accent-soft); }
.sv-qcard textarea { width:100%; box-sizing:border-box; }
.sv-saved audio { height:34px; }
.sv-recdot { width:12px; height:12px; border-radius:50%; background:#e5484d; animation:svblink 1s infinite; }
.sv-time { font-variant-numeric:tabular-nums; font-size:16px; }
@keyframes svblink { 50% { opacity:.25; } }
.sv-submit { min-width:200px; height:42px; font-size:15px; }
#sv-my { position:relative; } .sv-n { display:inline-block; min-width:18px; padding:0 5px; border-radius:9px; background:#e5484d; color:#fff; font-size:11px; line-height:18px; text-align:center; }
@media (max-width:800px) { .sv-grid { grid-template-columns:1fr 1fr; } }
.sv-grph { margin:18px 0 6px; font-size:16px; color:var(--accent); } .sv-ans-list .sv-grph { margin:6px 0 0; font-size:14px; }
.sv-gnav { display:flex; flex-wrap:wrap; gap:6px 12px; align-items:center; } .sv-gnav a { text-decoration:none; color:var(--ink); border:1px solid var(--line); border-radius:14px; padding:3px 10px; font-size:13px; }
.sv-gnav a:hover { border-color:var(--accent); } .sv-gnav a.done { background:#e2f3e9; border-color:#bfe3cd; }

/* 질문 카드 (2026-11-30 다시 디자인) — 응답 화면 · 결과 창 · 편집 카드 */
.sv-qcard { background:var(--card); border:1px solid var(--line); border-left:4px solid #d5dae2; border-radius:12px; padding:16px 18px 14px; margin-bottom:12px; max-width:860px; }
.sv-qcard.done { border-left-color:#3aa76d; }
.sv-qhead { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.sv-qcard .sv-qhead { margin-bottom:10px; }
.sv-state { margin-left:auto; font-size:13px; }
.sv-qtext { font-size:16px; line-height:1.75; color:var(--ink); word-break:keep-all; }
.sv-qtext.sm { font-size:14px; line-height:1.65; }
.sv-quote { quotes:none; padding:1px 4px; margin:0 1px; background:#eef3fd; border-radius:4px; font-weight:600; color:#1f3f8f; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.sv-quote.blk { display:block; margin:2px 0; padding:8px 14px; border-left:3px solid var(--accent); border-radius:0 8px 8px 0; font-size:17px; }
.sv-quote::before { content:'\201C'; } .sv-quote::after { content:'\201D'; }
.sv-hint { margin-top:10px; font-size:13px; color:var(--muted); background:#f7f8fa; border-radius:8px; padding:6px 10px; }
.sv-abody { margin-top:12px; padding-top:12px; border-top:1px dashed var(--line); display:grid; gap:10px; }
.sv-kind { display:inline-block; padding:1px 9px; border-radius:10px; font-size:12px; font-weight:600; }
.sv-kind.k-blue { background:#e6efff; color:#2456c9; } .sv-kind.k-green { background:#e2f3e9; color:#23824f; } .sv-kind.k-amber { background:#fdf0d8; color:#a5670b; }
.sv-kind.k-violet { background:#efe8fb; color:#6a3fc0; } .sv-kind.k-teal { background:#dff3f2; color:#17807a; } .sv-kind.k-rose { background:#fbe6ea; color:#b8364f; } .sv-kind.k-slate { background:#eef0f3; color:#56606e; }
.sv-req { font-size:12px; color:#c0392b; font-weight:600; }
.sv-ok { color:#23824f; font-weight:600; font-size:13px; }
.sv-saved { display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .sv-saved audio { height:36px; max-width:100%; }
.sv-recbox { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.sv-recbtn { display:inline-flex; align-items:center; gap:8px; height:44px; padding:0 20px; border-radius:22px; border:0; background:#e5484d; color:#fff; font-size:15px; font-weight:600; cursor:pointer; }
.sv-recbtn:hover { background:#d63c41; } .sv-recbtn .sv-dot { width:12px; height:12px; border-radius:50%; background:#fff; }
.sv-recbtn.again { background:#fff; color:#e5484d; border:1px solid #f0b3b5; } .sv-recbtn.again .sv-dot { background:#e5484d; } .sv-recbtn.again:hover { background:#fff1f1; }
.sv-recbox .danger { height:44px; border-radius:22px; padding:0 18px; }
.sv-link { border:0; background:none; color:var(--accent); padding:4px 6px; cursor:pointer; font-size:13px; } .sv-link:hover { text-decoration:underline; } .sv-link.danger-t { color:#c0392b; }
.sv-prog { height:8px; background:#eef0f3; border-radius:4px; overflow:hidden; margin:10px 0 4px; } .sv-prog i { display:block; height:100%; background:#3aa76d; border-radius:4px; }
.sv-item { border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-top:10px; background:var(--card); display:grid; gap:8px; }
.sv-ihead { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.sv-ihead .sv-grp { width:230px; } .sv-ihead .sv-qno { width:64px; } .sv-ihead .sv-sec { width:64px; }
.sv-ibtn { display:inline-flex; gap:2px; } .sv-ibtn button { padding:2px 8px; } .sv-ibtn .sv-rm { color:#c0392b; }
.sv-item .sv-q { width:100%; box-sizing:border-box; resize:vertical; font-size:14px; line-height:1.6; }
@media (max-width:640px) { .sv-qcard { padding:14px 14px 12px; } .sv-qtext { font-size:15px; } .sv-recbtn { flex:1; justify-content:center; } }

/* 설문 개인 링크 화면 (public/survey.html · survey.js) — 휴대폰 우선 · 묶음 큰 카드 → 한 문항씩 */
.svp-body { background:#f2f4f8; }
#svp { max-width:760px; margin:0 auto; padding:0 14px 40px; }
.svp-loading, .svp-err { margin:60px 0; text-align:center; color:var(--muted); font-size:15px; }
.svp-err { color:var(--bad); background:#fff; border:1px solid #f0d0cb; border-radius:12px; padding:24px; }
.svp-pv { margin:0 -14px; padding:8px 14px; background:#fff7e0; color:#8a5a00; font-size:13px; text-align:center; border-bottom:1px solid #f0dfae; }
.svp-head { display:flex; align-items:center; gap:8px; padding:14px 0 6px; color:var(--muted); font-size:13px; } .svp-head img { height:26px; }
.svp-hero { background:#fff; border-radius:16px; padding:18px 18px 14px; box-shadow:0 1px 3px rgba(20,30,60,.06); }
.svp-hero h1 { margin:0 0 6px; font-size:21px; line-height:1.35; word-break:keep-all; }
.svp-hero p { margin:0; color:#3c4556; font-size:14px; line-height:1.6; }
.svp-meta { display:flex; flex-wrap:wrap; gap:4px 14px; font-size:13px; color:var(--muted); }
.svp-descr { margin-top:10px; background:#fff; border-radius:12px; padding:12px 16px; white-space:pre-wrap; font-size:14px; line-height:1.65; color:#3c4556; }
.svp-tiles { display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; margin-top:16px; }
@media (min-width:620px) { .svp-tiles { grid-template-columns:repeat(3, 1fr); } }
.svp-tile { position:relative; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-end; gap:4px; min-height:150px; padding:14px 14px 18px; border:0; border-radius:18px; color:#fff; text-align:left; overflow:hidden;
  background:linear-gradient(145deg, var(--c1), var(--c2)); box-shadow:0 4px 14px rgba(20,30,60,.16); transition:transform .12s, box-shadow .12s; }
.svp-tile:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(20,30,60,.22); } .svp-tile:active { transform:scale(.98); }
.svp-tno { position:absolute; top:8px; left:14px; font-size:56px; font-weight:800; line-height:1; opacity:.32; letter-spacing:-2px; }   /* 아이콘 없이 큰 번호 */
.svp-ticon { position:absolute; top:10px; right:12px; font-size:38px; line-height:1; filter:drop-shadow(0 2px 3px rgba(0,0,0,.15)); }
.svp-tname { font-size:16px; line-height:1.3; word-break:keep-all; text-shadow:0 1px 2px rgba(0,0,0,.15); }
.svp-tcnt { font-size:12px; opacity:.92; }
.svp-tbar { position:absolute; left:0; right:0; bottom:0; height:6px; background:rgba(255,255,255,.28); } .svp-tbar > i { display:block; height:100%; background:#fff; }
.svp-tile.done::after { content:'✓'; position:absolute; top:12px; right:14px; width:28px; height:28px; border-radius:50%; background:#fff; color:var(--c1); font-weight:800; display:flex; align-items:center; justify-content:center; font-size:16px; }
.svp-submit { margin:22px 0 0; text-align:center; } .svp-note { color:var(--muted); font-size:13px; margin:8px 0 0; }
.svp-btn { height:44px; padding:0 18px; border-radius:22px; font-size:15px; } .svp-btn.primary { background:var(--accent); border-color:var(--accent); color:#fff; } .svp-btn.big { min-width:220px; height:50px; border-radius:25px; font-size:16px; font-weight:600; }
.svp-btn:disabled { opacity:.45; cursor:default; }
.svp-bar { position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:10px; margin:0 -14px; padding:10px 14px; color:#fff; background:linear-gradient(120deg, var(--c1), var(--c2)); box-shadow:0 2px 8px rgba(20,30,60,.15); }
.svp-bar b { flex:1; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .svp-bar > span { font-size:13px; opacity:.95; white-space:nowrap; }
.svp-back { background:rgba(255,255,255,.2); border:0; color:#fff; border-radius:16px; padding:5px 12px; font-size:13px; white-space:nowrap; }
.svp-dots { display:flex; flex-wrap:wrap; gap:6px; margin:12px 0; }
.svp-dots button { min-width:34px; height:30px; padding:0 6px; border-radius:15px; font-size:12px; color:var(--muted); }
.svp-dots button.done { background:#e2f3e9; border-color:#bfe3cd; color:#23824f; } .svp-dots button.on { border:2px solid var(--accent); color:var(--accent); font-weight:700; }
.svp-card { max-width:none; padding:18px 18px 16px; box-shadow:0 1px 3px rgba(20,30,60,.06); } .svp-card .sv-qtext { font-size:17px; }
.svp-ans { margin-top:14px; padding-top:14px; border-top:1px dashed var(--line); display:grid; gap:12px; }
.svp-saved { display:flex; align-items:center; gap:10px; flex-wrap:wrap; } .svp-saved audio { flex:1; min-width:220px; height:40px; } .svp-dur { color:var(--muted); font-size:13px; }
.svp-rec { display:grid; justify-items:center; gap:8px; padding:8px 0 4px; }
.svp-mic { width:88px; height:88px; border-radius:50%; border:0; background:#e5484d; box-shadow:0 6px 18px rgba(229,72,77,.35); display:flex; align-items:center; justify-content:center; padding:0; transition:transform .1s; }
.svp-mic:active { transform:scale(.95); } .svp-micdot { width:30px; height:30px; border-radius:50%; background:#fff; }
.svp-mic.again { background:#fff; border:2px solid #f0b3b5; box-shadow:none; } .svp-mic.again .svp-micdot { background:#e5484d; width:26px; height:26px; }
.svp-mic.on { animation:svpulse 1.4s infinite; } .svp-stopsq { width:28px; height:28px; border-radius:5px; background:#fff; }
@keyframes svpulse { 0% { box-shadow:0 0 0 0 rgba(229,72,77,.5); } 70% { box-shadow:0 0 0 22px rgba(229,72,77,0); } 100% { box-shadow:0 0 0 0 rgba(229,72,77,0); } }
.svp-reclabel { font-size:15px; font-weight:600; color:var(--ink); display:flex; align-items:center; gap:6px; } .svp-reclabel span { color:var(--muted); font-weight:400; font-size:13px; }
.svp-time { font-size:22px; font-variant-numeric:tabular-nums; color:#e5484d; }
.svp-recsub { display:flex; align-items:center; justify-content:center; gap:12px; flex-wrap:wrap; }
.svp-text { width:100%; font:inherit; font-size:15px; line-height:1.6; padding:10px 12px; border:1px solid var(--line); border-radius:10px; resize:vertical; }
.svp-nav { display:flex; justify-content:space-between; gap:10px; margin-top:14px; } .svp-nav .svp-btn { flex:1; max-width:220px; }
#svp-busy { position:fixed; inset:0; background:rgba(255,255,255,.4); z-index:50; display:flex; align-items:center; justify-content:center; }
#svp-busy[hidden] { display:none; }
#svp-busy span { width:36px; height:36px; border:4px solid var(--accent-soft); border-top-color:var(--accent); border-radius:50%; animation:svspin .8s linear infinite; }
@keyframes svspin { to { transform:rotate(360deg); } }

/* 화면 공통: 틀 고정 (table[data-freeze] — public/main.js freezeAll) */
.tbl-fit th.frz, .tbl-fit td.frz { position:sticky; z-index:1; }
td.frz { background:#fff; }   /* 짝수 줄 · 마우스 올린 줄 배경은 원래 규칙이 이김 */
.tbl-fit thead th.frz { z-index:3; }
.tbl-fit .frz-last { box-shadow:inset -1px 0 0 var(--line), 4px 0 6px -4px rgba(20,30,60,.18); }

/* 설문지작성 높이 · 가운데 맞추기 (2026-11-30): 입력칸 · 선택칸 · 버튼 36px, 제목과 설명은 글자 밑선 맞춤 */
.sv-edit input:not([type=checkbox]):not([type=radio]), .sv-edit select { height:36px; vertical-align:middle; }
.sv-edit .row > button, .sv-edit .sv-h > button { height:36px; }
.sv-edit .sv-grid label { align-content:start; }
/* 블록 제목 줄: 제목 · 설명 · 요약 · 버튼을 모두 36px 줄 가운데에 (글자 줄 높이도 36px로 맞춰 위아래가 같게) */
.sv-edit .sv-h, .sv-edit .sv-blkh { align-items:center; min-height:36px; gap:8px; line-height:1.3; }
.sv-edit .sv-h > *, .sv-edit .sv-blkh > * { align-self:center; }
.sv-edit .sv-h > button, .sv-edit .sv-blkh > button { display:inline-flex; align-items:center; justify-content:center; gap:6px; height:36px; padding:0 14px; line-height:1; white-space:nowrap; }
.sv-edit .sv-h > .sub, .sv-edit .sv-blkh > .sub { display:inline-block; margin:0; line-height:36px; white-space:nowrap; }   /* 공통 .sub 아래 여백(16px) 때문에 설명이 위로 뜨던 것 없앰 */   /* 글자 사이 공백이 사라지지 않게 inline-block */
.sv-edit .sv-h .sub { font-weight:400; font-size:13px; }
.sv-edit .chk-row { align-items:center; }
.sv-edit .chk-row > b.sub { min-width:52px; line-height:30px; }
.sv-edit .chk-row label.chk { height:30px; box-sizing:border-box; }
.sv-edit .chk-row .chk-clear { height:30px; }
.sv-edit .sv-ihead { align-items:center; } .sv-edit .sv-ihead .sv-ibtn button { height:36px; min-width:32px; }
.sv-edit .sv-ihead label.inl { height:36px; }
.sv-edit label.inl input[type=checkbox] { margin:0; }
.modal .box.sv-tgtbox { width:min(1180px,96vw); gap:12px; }
.sv-tgtbox .seg button.on { background:var(--accent); border-color:var(--accent); color:#fff; }
/* 설문 목록에서 바로 고치기 (설문지작성) */
.sv-list td { vertical-align:middle; }
.sv-list .svl-in { height:32px; padding:4px 8px; }
.sv-list .svl-title { width:100%; min-width:280px; font-weight:600; }
.sv-list .svl-st { min-width:86px; }
.sv-list input[type=date].svl-in { width:150px; }
.sv-titlebox { padding:6px 0 2px; } .sv-titlebox .sv-ttl { font-size:15px; color:var(--ink); }

/* 설문지작성 블록: ① 설문 목록(설문마다 2줄 — 타이틀 · 상태 · 일자 / 안내) ② 대상자 조건 ③ 설문항목 */
.sv-blk .sv-bt { font-size:15px; color:var(--ink); font-weight:700; }
.sv-blkh { margin-bottom:8px; }
.sv-blk > .sv-h:first-child { margin-top:0; }
.sv-listbox { max-height:420px; }
.sv-list tbody { cursor:pointer; border-bottom:2px solid var(--line); }
.sv-list tbody tr td { background:#fff !important; border-bottom:0; }
.sv-list tbody.on tr td { background:#eef3fd !important; }
.sv-list tbody:hover:not(.on) tr td { background:#f7f9fd !important; }
.sv-list tbody.on tr:first-child td:first-child { box-shadow:inset 3px 0 0 var(--accent); } .sv-list tbody.on tr.sv-r2 td:first-child { box-shadow:inset 3px 0 0 var(--accent); }
.sv-list tr.sv-r2 td { padding-top:0; }
.sv-list .svl-descr { width:100%; min-height:44px; resize:vertical; font:inherit; font-size:13px; line-height:1.5; padding:6px 8px; border:1px solid var(--line); border-radius:6px; color:#3c4556; }
.sv-list .sv-descr-ro { white-space:pre-wrap; }
.sv-list tbody.new input:not([type=checkbox]), .sv-list tbody.new select { height:32px; padding:4px 8px; }
.sv-list tbody.new #sv-title { width:100%; min-width:280px; font-weight:600; }
.sv-list tbody.new input[type=date] { width:150px; }

/* 영업관리 > 계약업로드 (업로드_계약/수금 · 업로드_수금등록) */
/* 업적일자 · 수금일: 평소엔 글자처럼(테두리 · 배경 없음, 비어 있으면 '연도-월-일'도 숨김), 마우스를 올리거나 누르면 입력칸 */
#cu-list input.cu-dt { height:26px; padding:1px 4px; width:128px; font-size:13px; border:1px solid transparent; background:transparent; text-align:center; }
#cu-list input.cu-dt:hover:not(:disabled), #cu-list input.cu-dt:focus { border-color:var(--line); background:#fff; }
#cu-list input.cu-dt:not(:focus):invalid::-webkit-datetime-edit { color:transparent; }
#cu-list input.cu-dt:not(:hover):not(:focus)::-webkit-calendar-picker-indicator { opacity:0; }
.cu-mapbtn { padding:2px 8px; font-size:12px; } .cu-mapbtn.on { background:#e2f3e9; border-color:#bfe3cd; color:#23824f; }
.sd-tabs span[data-cutab]:hover:not(.on) { color:var(--accent); }
.sg-files { margin-top:8px; padding-top:8px; border-top:1px dashed var(--line); gap:6px; }
.sg-file { font-size:12px; border:1px solid var(--line); border-radius:12px; padding:2px 10px; color:var(--muted); } .sg-file.made { border-color:#bfe3cd; background:#f1faf4; color:#23824f; }
.sg-tbl thead th { text-align:center; }

/* 서버 구분 띠 (QA 등 — .env APP_ENV, src/app.js /env.js) */
.env-bar { position:sticky; top:0; z-index:900; background:#e8590c; color:#fff; text-align:center; font-size:13px; padding:4px 12px; letter-spacing:.01em; }
.env-bar b { margin-right:6px; padding:0 6px; border-radius:4px; background:rgba(255,255,255,.22); }
body.login .env-bar { position:fixed; left:0; right:0; }
