/* 더큰나래 원생관리 — 공통 디자인 (시안 ①·③, 엑셀 메뉴 색 #2F3E50 기준) */
:root {
  --navy: #2F3E50; --navy-2: #3D5068; --navy-text: #D5DEE8; --navy-sub: #C5D0DC;
  --line: #D9DFE7; --field: #C6CDD6; --bg: #F4F5F7; --gray: #EEF1F5;
  --text: #1E2833; --sub: #5B6573; --red: #B03A2E; --green: #1E6B3A; --hl: #FFF6E0;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
       font: 14px/1.5 'Malgun Gothic', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }
a { color: var(--navy); }
[hidden] { display: none !important; }

/* ── 맨 위 줄 ── */
.top { background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; align-items: center;
       gap: 8px 20px; padding: 8px 24px; min-height: 56px; }
.top a { color: var(--navy-text); text-decoration: none; }
.brand { font-weight: bold; font-size: 16px; color: #fff !important; }
.badge-practice { background: #F5B041; color: #3B2A00; font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: bold; }
.top-search { position: relative; flex: 1 1 220px; max-width: 300px; display: flex; align-items: center; gap: 8px;
              background: var(--navy-2); border-radius: 8px; padding: 0 12px; height: 36px; }
.top-search input[type=search] { flex: 1; border: 0; outline: none; background: transparent; color: #fff; font: inherit; height: 34px; padding: 0; }
.top-search input::placeholder { color: var(--navy-sub); }
.top-search .suggest { position: absolute; top: 40px; left: 0; right: 0; min-width: 300px; z-index: 20; color: var(--text); }
.top nav { display: flex; flex-wrap: wrap; gap: 2px; }
.top nav a { padding: 7px 12px; border-radius: 6px; }
.top nav a.on, .top nav a:hover { background: var(--navy-2); color: #fff; }
.who { margin-left: auto; font-size: 12px; color: var(--navy-text); }

main { max-width: 1140px; margin: 0 auto; padding: 22px 16px 60px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 15px; margin: 0 0 10px; color: var(--navy); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.card.warn { border-color: #E6B0AA; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.flash.ok  { background: #E6F4EC; color: var(--green); }
.flash.err { background: #FBEAE8; color: var(--red); }

input[type=text], input[type=tel], input[type=password], input[type=date], input[type=search], select, textarea {
  width: 100%; height: 36px; padding: 0 9px; border: 1px solid var(--field); border-radius: 7px;
  font: inherit; font-size: 14px; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #9FB3CC; outline-offset: 0; border-color: var(--navy); }
input:disabled, select:disabled { background: var(--gray); color: #3A4450; }
input[type=checkbox] { width: 18px; height: 18px; vertical-align: middle; accent-color: var(--navy); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border: 0;
       border-radius: 8px; background: var(--navy); color: #fff; font: inherit; font-weight: bold; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-2); color: #fff; }
.btn.light { background: #E3E8EF; color: var(--navy); }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.big { height: 46px; padding: 0 32px; font-size: 16px; }

.muted { color: var(--sub); font-size: 12px; font-weight: normal; }
.hint { color: var(--sub); font-size: 12px; margin: 10px 0 0; }
.right { margin-left: auto; }
.scroll { overflow-x: auto; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar input[type=search] { max-width: 260px; }
.toolbar select, .toolbar input[type=date] { width: auto; }

.st { display: inline-block; padding: 1px 10px; border-radius: 10px; font-size: 12px; font-weight: normal; white-space: nowrap; }
.st-재원 { background: #E3F1E8; color: #1E6B3A; }
.st-휴원 { background: #FFF2CC; color: #7A5500; }
.st-퇴원 { background: #ECEFF3; color: #5B6573; }
.st-미등록 { background: #F2E8F6; color: #6C3483; }

/* ── 목록 표 ── */
table.list { width: 100%; border-collapse: collapse; background: #fff; }
table.list th { background: var(--navy); color: #fff; font-weight: normal; padding: 7px 9px; text-align: left; white-space: nowrap; }
table.list td { border-bottom: 1px solid #EDF0F4; padding: 7px 9px; vertical-align: top; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: var(--hl); }

/* ── 학생 찾기 (시안 ①) ── */
.finder { max-width: 560px; margin: 70px auto 0; }
.finder-label { display: block; font-size: 15px; font-weight: bold; color: var(--navy); margin-bottom: 10px; }
.finder-form { position: relative; }
.finder-box { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--navy);
              border-radius: 12px; padding: 0 16px; height: 56px; }
.finder-box input { border: 0; outline: none; height: 52px; font-size: 18px; padding: 0; background: transparent; }
.finder-box input:focus { outline: none; }
.finder .suggest { position: absolute; left: 0; right: 0; top: calc(100% - 4px); z-index: 10; border: 2px solid var(--navy); border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; }
.finder .suggest.static { position: static; border-radius: 12px; margin-top: 8px; border-top: 2px solid var(--navy); }
.finder-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px;
               color: var(--sub); padding-top: 12px; }
.new-link { font-weight: bold; font-size: 14px; }

/* 자동완성 목록 */
.suggest { list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--line);
           border-radius: 10px; box-shadow: 0 10px 24px rgba(30,40,51,.14); }
.suggest li, .suggest li a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; color: var(--text); text-decoration: none; }
.suggest li a { padding: 0; flex: 1; }
.suggest li b { min-width: 72px; font-size: 15px; }
.suggest li .info { flex: 1; color: var(--sub); font-size: 13px; }
.suggest li.on, .suggest li:hover { background: var(--hl); }
.suggest li.empty { color: var(--sub); cursor: default; }
.suggest li.empty:hover { background: none; }

/* ── 학생 화면 (시안 ③) ── */
.sheet { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.summary { flex: 1 1 230px; max-width: 280px; background: var(--navy); color: #fff; border-radius: 14px; padding: 22px;
           display: flex; flex-direction: column; gap: 16px; position: sticky; top: 12px; }
.summary h1 { font-size: 23px; color: #fff; }
.sum-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.summary .sub { font-size: 12px; color: var(--navy-sub); margin-top: -10px; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.summary dl div { display: flex; justify-content: space-between; gap: 10px; }
.summary dt { color: var(--navy-sub); white-space: nowrap; }
.summary dd { margin: 0; font-weight: bold; text-align: right; }
.recent { border-top: 1px solid #4A5D75; padding-top: 14px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.recent .cap { color: var(--navy-sub); }
.links { display: flex; flex-direction: column; gap: 8px; }
.links a, .links .soon { display: block; text-align: center; padding: 10px; border-radius: 8px; background: var(--navy-2); color: #fff; text-decoration: none; font-size: 14px; }
.links a:hover { background: #4A6080; }
.links .soon { opacity: .55; cursor: default; font-size: 13px; }

.panes { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.panes form { display: flex; flex-direction: column; gap: 14px; }
.pane { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px 18px; min-width: 0; }
.pane legend { padding: 0 6px; font-weight: bold; color: var(--navy); font-size: 14px; }
details.pane { padding: 14px 20px; }
details.pane summary { cursor: pointer; font-weight: bold; color: var(--navy); font-size: 14px; }
.g3, .g4 { display: grid; gap: 12px 16px; }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sub); min-width: 0; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; min-height: 30px; }
.memos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 12px; }
.memos > div:empty { display: none; }

table.car { border-collapse: collapse; margin-bottom: 10px; }
table.car th { font-weight: normal; color: var(--sub); padding: 4px 6px; text-align: center; }
table.car th[scope=row] { text-align: left; color: var(--text); padding-right: 12px; }
table.car td { padding: 3px 4px; }
table.car select { min-width: 74px; }

.save-bar { position: sticky; bottom: 0; z-index: 5; background: rgba(244,245,247,.96); padding: 12px 0;
            display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.change-add { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 8px !important; align-items: center;
              padding-bottom: 12px; border-bottom: 1px solid #EDF0F4; }
.change-add select { width: 120px; }
.change-add input[type=date] { width: 100%; }
.change-add input[type=text] { width: 100%; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid #F0F2F5; }
.timeline li:last-child { border-bottom: 0; }
.timeline .d { width: 82px; flex: none; color: var(--sub); font-size: 13px; }
.timeline .c { width: 92px; flex: none; font-weight: bold; }
.timeline .t { flex: 1; min-width: 0; }
.timeline .by { color: var(--sub); font-size: 12px; white-space: nowrap; }
.timeline form { margin: 0; }
.timeline .x { border: 0; background: none; color: #9AA3AE; font-size: 18px; cursor: pointer; padding: 0 4px; }
.timeline .x:hover { color: var(--red); }

/* ── 레/청 (1·2·3차 나란히) ── */
table.rt { border-collapse: collapse; width: 100%; }
table.rt th, table.rt td { padding: 4px 6px; }
table.rt thead th { color: var(--navy); font-size: 13px; text-align: left; }
table.rt tbody th { text-align: left; font-weight: normal; color: var(--sub); white-space: nowrap; width: 100px; font-size: 13px; }
table.rt td { min-width: 130px; }

.perm-table td, .perm-table th { text-align: center; }
.perm-table td:first-child, .perm-table th:first-child { text-align: left; }
table.form { width: 100%; border-collapse: collapse; }
table.form th { width: 108px; text-align: left; font-weight: normal; color: var(--sub); padding: 4px 8px 4px 0; white-space: nowrap; }
table.form td { padding: 3px 0; }

.login-box { max-width: 360px; margin: 70px auto; }
.login-box .btn { width: 100%; margin-top: 14px; height: 44px; }
.login-box label { display: block; margin: 10px 0 4px; color: var(--sub); }

@media (max-width: 760px) {
  .summary { max-width: none; position: static; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memos { grid-template-columns: 1fr; }
  .who { width: 100%; margin-left: 0; }
  .top-search { max-width: none; }
  .finder { margin-top: 30px; }
}

/* ── 위쪽: 마지막으로 본 학생 (55번: 늘 같은 폭 자리 · 작은 글자 · 한 줄) ── */
.top .cur-slot { flex: 0 0 210px; width: 210px; min-width: 0; display: flex; align-items: center; }
.top a.cur-student { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; background: var(--navy-2);
  color: #fff; border-radius: 7px; padding: 4px 9px; font-size: 11px; line-height: 1.4; max-width: 100%; min-width: 0; }
.top a.cur-student:hover { background: #4A6080; color: #fff; }
.cur-student b { font-size: 12px; flex: 0 0 auto; }
.cur-student .st { font-size: 10px; padding: 1px 6px; flex: 0 0 auto; }
.cur-student span:not(.st) { color: var(--navy-text); flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .top .cur-slot { flex-basis: 100%; width: auto; } }

/* ── 학생 화면 변동신청: 분류별 펼치기 ── */
.cats { display: flex; flex-direction: column; }
.cat { border-bottom: 1px solid #EDF0F4; }
.cats > .cat:last-child { border-bottom: 0; }
.cat > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 11px 4px; cursor: pointer; }
.cat > summary::-webkit-details-marker { display: none; }
.cat > summary::before { content: '▸'; color: var(--sub); width: 12px; flex: none; }
.cat[open] > summary::before { content: '▾'; }
.cat > summary:hover { background: #F8F9FB; }
.cat-name { font-weight: bold; width: 110px; flex: none; }
.cat-n { background: var(--navy); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 10px; flex: none; }
.cat-last { color: var(--sub); font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-last.none { color: #9AA3AE; }
.cat-body { padding: 4px 0 12px 28px; }
.cats.inner { padding-left: 16px; border-left: 2px solid #EDF0F4; margin: 0 0 8px 6px; }
.change-add .fld { flex: 0 0 140px; }
.change-add .fld.grow { flex: 1 1 200px; }
.change-add { align-items: flex-end !important; }
.cat .timeline .d { width: 100px; }
@media (max-width: 760px) { .cat-name { width: 84px; } .cat-body { padding-left: 8px; } }

/* 목록 관리: 한 줄에 하나씩 */
textarea.list-edit { height: auto; padding: 8px 10px; line-height: 1.7; resize: vertical; font-size: 14px; }

/* 동명이인: 연락처까지 같은 학생 강조 */
table.list tr.match td { background: #FFF3C4 !important; }
.badge-same { background: var(--red); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 9px; font-weight: normal; }

/* 저장 알림 */
.flash.pop { animation: pop 2.4s ease-out 1; font-size: 15px; }
.flash.ok.pop { border: 1px solid #9ED4B2; }
@keyframes pop { 0% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(30,107,58,.18); } 100% { transform: none; box-shadow: none; } }
.saved-tag { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 8px;
  background: #E6F4EC; color: var(--green); font-weight: bold; font-size: 15px; animation: pop 2.4s ease-out 1; }
.saved-tag.none { background: #EEF1F5; color: var(--sub); }
.just-changed { animation: glow 3s ease-out 1; border-radius: 8px; }
.just-changed input, .just-changed select { background: #FFF6D6; }
@keyframes glow { 0%, 40% { background: #FFE58A; } 100% { background: transparent; } }

/* 등록처리 화면 */
ul.rules { margin: 6px 0 12px; padding-left: 20px; color: var(--sub); font-size: 13px; }
table.list tr.out td { color: #9AA3AE; background: #F6F7F9 !important; }
table.list tr.me td { background: #EEF4FF !important; }
select.letter-pick { width: 110px; }

/* 상담 */
.panes form.pane-form { display: flex; flex-direction: column; gap: 14px; }
.counsel-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.counsel-top > .fld:first-child { flex: 0 0 170px; }
.counsel-top > .fld:last-child { flex: 1 1 360px; }
.who-grid { display: flex; flex-wrap: wrap; gap: 5px; }   /* 60번: 이름 길이만큼 작은 버튼 */
.who-grid .who-pick span { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 7px; white-space: nowrap; }
.who-pick { position: relative; }
.who-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.who-pick span { display: flex; align-items: center; justify-content: center; height: 36px; border: 1px solid var(--field);
  border-radius: 8px; font-size: 14px; color: var(--text); cursor: pointer; background: #fff; }
.who-pick input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: bold; }
.who-pick input:focus-visible + span { outline: 2px solid #9FB3CC; }
textarea { height: auto; padding: 8px 10px; line-height: 1.6; resize: vertical; }
.counsel-list { list-style: none; margin: 0; padding: 0; }
.counsel-list li { padding: 12px 6px; border-bottom: 1px solid #EDF0F4; }
.counsel-list li:last-child { border-bottom: 0; }
.counsel-list li.editing { background: #EEF4FF; border-radius: 8px; }
.c-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.c-who { background: #E3E8EF; color: var(--navy); font-size: 12px; padding: 1px 8px; border-radius: 10px; }
.c-act { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.c-act form { margin: 0; }
.c-act .x { border: 0; background: none; color: #9AA3AE; font-size: 18px; cursor: pointer; }
.c-act .x:hover { color: var(--red); }
.c-body { line-height: 1.65; white-space: normal; word-break: break-word; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 12px; }
.tabs a { padding: 9px 16px; text-decoration: none; color: var(--sub); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.on { color: var(--navy); font-weight: bold; border-bottom-color: var(--navy); }
@media (max-width: 760px) { .counsel-top > .fld:first-child { flex-basis: 100%; } }

/* 상담 내용 칸: 비어 있어도 8줄 높이, 쓰는 만큼 늘어나다가 너무 길면 스크롤 */
textarea.counsel-text { min-height: 200px; height: 200px; max-height: 560px; overflow-y: auto; font-size: 15px; }

/* 오늘의 현황 */
.today { max-width: 1140px; margin: 44px auto 0; }
.today-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.today-head h2 { margin: 0; font-size: 17px; }
.today-date { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.today-date input[type=date] { width: auto; }
.today-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); align-items: start; }
.today-box { margin: 0; padding: 14px 16px; }
.today-box h3 { margin: 0 0 8px; font-size: 14px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.today-box .cnt { background: var(--navy); color: #fff; font-size: 12px; padding: 0 9px; border-radius: 10px; }
.today-box .cnt.zero { background: #E3E8EF; color: var(--sub); }
.today-box .more { margin-left: auto; font-size: 12px; font-weight: normal; }
.today-box .none { margin: 4px 0; color: #9AA3AE; font-size: 13px; }
.today-box ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.today-box li a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 7px 4px; border-bottom: 1px solid #F0F2F5; color: var(--text); text-decoration: none; }
.today-box li:last-child a { border-bottom: 0; }
.today-box li a:hover { background: var(--hl); }
.today-box li b { min-width: 64px; }
.today-box .sg, .today-box .cls { color: var(--sub); font-size: 13px; }
.today-box .ex { width: 100%; padding-left: 0; color: var(--navy); font-size: 12px; }
.new-link { white-space: nowrap; }

/* ── 입구 출결 화면 ── */
body.kiosk-body { background: var(--navy); margin: 0; }
.kiosk { min-height: 100vh; box-sizing: border-box; display: flex; flex-wrap: wrap; gap: 32px 44px; padding: 40px 48px; color: #fff; align-items: center; position: relative; }
.k-left { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; min-width: 0; align-self: stretch; }
.k-brand { font-size: 20px; } .k-brand span { color: var(--navy-sub); font-size: 14px; margin-left: 6px; }
.k-clock { font-size: 56px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; }
.k-date { font-size: 18px; color: var(--navy-sub); margin-top: -8px; }
.k-ask { margin-top: 14px; font-size: 18px; color: var(--navy-text); }
.k-dots { display: flex; gap: 14px; }
.k-dots i { width: 64px; height: 76px; border-radius: 14px; background: var(--navy-2); border: 2px solid #4A6080; box-sizing: border-box; }
.k-dots i.on { background: #fff; border-color: #fff; position: relative; }
.k-dots i.on::after { content: '●'; color: var(--navy); font-size: 26px; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; }
.k-msg { margin-top: 10px; min-height: 220px; }
.k-help { background: var(--navy-2); border-radius: 16px; padding: 20px 22px; font-size: 15px; color: var(--navy-text); line-height: 1.8; }
.k-help b { color: #fff; }
.k-card { border-radius: 18px; padding: 24px 26px; color: var(--text); display: flex; flex-direction: column; gap: 6px; animation: pop 1.2s ease-out 1; }
.k-card.ok { background: #E6F4EC; } .k-card.blue { background: #E6F0FB; } .k-card.warn { background: #FFF6D6; }
.k-card.err { background: #FBEAE8; color: #8A2A20; } .k-card.plain, .k-card.pick { background: #fff; }
.k-title { font-size: 17px; font-weight: bold; } .k-title.ok { color: var(--green); } .k-title.blue { color: #1F4E8A; } .k-title.warn { color: #7A5500; }
.k-name { font-size: 40px; font-weight: 900; }
.k-sub { font-size: 18px; color: #3A4450; }
.k-big { font-size: 22px; font-weight: bold; }
.k-note { margin-top: 4px; font-size: 16px; color: #7A5500; font-weight: bold; }
.k-alert { margin-top: 10px; background: #FBEAE8; color: #8A2A20; border-radius: 12px; padding: 14px 18px; font-size: 18px; font-weight: bold; line-height: 1.5; }
.k-undo { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.k-undo button { height: 56px; padding: 0 26px; border: 2px solid var(--red); border-radius: 14px; background: #fff; color: var(--red); font: inherit; font-size: 20px; font-weight: bold; cursor: pointer; }
.k-undo span { color: var(--sub); font-size: 15px; }
.k-picks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.k-pick { flex: 1 1 160px; height: 72px; border: 2px solid var(--navy); border-radius: 14px; background: #fff; font: inherit; font-size: 24px; font-weight: bold; color: var(--navy); cursor: pointer; }
.k-pad { flex: 0 1 470px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.k-pad button { height: 112px; border: 0; border-radius: 22px; background: #fff; color: var(--text); font: inherit; font-size: 44px; font-weight: bold; cursor: pointer; touch-action: manipulation; }
.k-pad button:active { transform: scale(.96); background: #E3E8EF; }
.k-pad button.k-small { background: var(--navy-2); color: var(--navy-text); font-size: 22px; font-weight: 500; }
.k-exit { position: absolute; right: 14px; bottom: 10px; color: #6F829A; font-size: 12px; text-decoration: none; }
@media (max-width: 760px) { .kiosk { padding: 20px 16px; } .k-pad button { height: 84px; font-size: 34px; } .k-clock { font-size: 40px; } .k-dots i { width: 52px; height: 62px; } }

/* 출결 관리 */
.att-class { padding: 0; overflow: hidden; }
.att-head { padding: 10px 14px; background: #EEF1F5; }
.att-head b { color: var(--navy); font-size: 15px; margin-right: 6px; }
table.att th { background: #fff; color: var(--sub); font-size: 12px; border-bottom: 1px solid var(--line); }
table.list tr.absent td { background: #FBEAE8 !important; }
.red { color: var(--red); font-weight: bold; }
.early { font-size: 12px; color: #7A5500; margin-top: 2px; }
.tag-next { font-size: 11px; background: #FFF2CC; color: #7A5500; padding: 1px 6px; border-radius: 8px; }
details.fix summary { cursor: pointer; font-size: 13px; color: var(--navy); text-decoration: underline; white-space: nowrap; }
.fix-box { position: absolute; right: 16px; z-index: 30; background: #fff; border: 1px solid #C7D7F0; border-radius: 10px; box-shadow: 0 10px 24px rgba(30,40,51,.16);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; width: min(680px, 92vw); }
/* 고치기: 그 학생 줄 바로 아래 한 줄로 펼침 (반 상자 안에 갇히지 않게) */
details.fix[open] summary { font-weight: bold; text-decoration: none; }
tr.fix-tr > td { background: #F4F8FE !important; padding: 0 !important; border-bottom: 2px solid #C7D7F0; }
tr.fix-tr .fix-box { position: static; width: auto; max-width: none; box-shadow: none; border: 0; border-radius: 0; padding: 12px 14px 14px; }
tr.fix-tr .fix-row { padding-bottom: 8px; border-bottom: 1px dashed #D6DFEA; }
tr.fix-tr .fix-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.fix-close { align-self: flex-end; }
.fix-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.fix-row select, .fix-row input[type=time], .fix-row input[type=datetime-local] { width: auto; }
.chk.small { font-size: 13px; min-height: 0; gap: 3px; }
td { position: relative; }
.warn-tag { background: #FBEAE8; color: var(--red); font-size: 12px; padding: 1px 8px; border-radius: 10px; font-weight: bold; }
/* 등록처리 */
.reg-h { font-size: 1.05rem; margin: 18px 0 8px; color: var(--navy); }
.reg-code { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; }
.reg-code label { display: flex; flex-direction: column; gap: 4px; font-size: .9em; }
.kind-tag { display:inline-block; padding:1px 7px; border-radius:9px; font-size:.8em; font-weight:600; }
.kind-신규 { background:#e6f0ff; color:#1d4ed8; }
.kind-재등 { background:#fdf0e1; color:#b45309; }
select.kind-신규, select.kind-재등 { padding:2px 6px; }

/* ── 입력칸: 5칸 · 값 길이에 맞춘 너비 · 제목은 연하게, 값은 진하게 ── */
.panes { container-type: inline-size; }
.g5 { display: grid; gap: 12px 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
.g5 .wide { grid-column: span 2; }
.fld.xs input, .fld.xs select { max-width: 84px; }
.fld.s input, .fld.s select { max-width: 150px; }
@container (max-width: 700px) { .g5 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 560px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 420px) { .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g5 .wide { grid-column: span 2; } }
.fld > span { font-size: 11.5px; color: #8592A0; letter-spacing: .01em; }
.fld input[type=text], .fld input[type=tel], .fld input[type=date], .fld select, .fld textarea {
  color: #15202B; font-weight: 600; border-color: #D9E0E8; }
.fld input::placeholder { font-weight: 400; color: #A9B4C0; }
.fld input:disabled, .fld select:disabled { background: #F4F6F9; color: #15202B; }
.chk.cell { min-height: 36px; font-size: 13px; color: #8592A0; }
.chk:has(input:checked) { color: var(--navy); font-weight: 600; }
.memos .fld input { font-weight: 500; }

/* ── 위쪽 메뉴: 펼치는 메뉴 (반별 ▾ · 현황 ▾ · 관리 ▾) ── */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; padding: 7px 12px; border-radius: 6px; color: var(--navy-text); }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu > summary.on, details.menu > summary:hover, details.menu[open] > summary { background: var(--navy-2); color: #fff; }
.menu-list { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; min-width: 170px; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20,30,45,.22); padding: 6px; display: flex; flex-direction: column; max-height: 70vh; overflow: auto; }
.menu-list.right { left: auto; right: 0; }
.top .menu-list a { color: var(--navy); padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.top .menu-list a:hover { background: #EEF2F7; }
.admin-menu { margin-left: 8px; }
.nav-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #E5534B; color: #fff; font-size: 11px; font-weight: bold; text-align: center; line-height: 18px; margin-left: 3px; }

/* ── 학생 왼쪽: 학생 메뉴 · 형제 ── */
.sub-menu { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #4A5D75; padding-top: 12px; }
.sub-menu a, .sub-menu .soon { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 8px; color: var(--navy-text); text-decoration: none; font-size: 14px; }
.sub-menu a:hover { background: var(--navy-2); color: #fff; }
.sub-menu a.on { background: #fff; color: var(--navy); font-weight: bold; }
.sub-menu .soon { opacity: .5; font-size: 13px; cursor: default; }
.sibs { border-top: 1px solid #4A5D75; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sibs .cap { color: var(--navy-sub); }
.sibs a, .sibs div:not(.cap) { color: #fff; text-decoration: none; line-height: 1.45; }
.sibs a:hover b { text-decoration: underline; }
.sibs span { color: var(--navy-sub); font-size: 12px; }

/* ── 휴원 요청 · 오늘의 현황 경고 ── */
.tag-req { font-size: 11px; background: #E8EEF7; color: var(--navy); padding: 1px 7px; border-radius: 8px; }
.ex-warn { color: var(--red); }
.rest-req { flex: 1 1 100% !important; }
.rest-req > div { display: flex; flex-wrap: wrap; gap: 4px 14px; min-height: 30px; align-items: center; }

/* ── 반별 ── */
.class-tabs { flex-wrap: wrap; }
.class-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.class-side { display: flex; flex-direction: column; gap: 14px; }
.class-side .card { margin: 0; }
@media (max-width: 900px) { .class-grid { grid-template-columns: 1fr; } }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.small-link { font-size: 12px; font-weight: normal; margin-left: 8px; }
.tt-day { font-weight: bold; color: var(--navy); margin: 10px 0 4px; font-size: 13px; }
.tt-row { display: flex; gap: 10px; font-size: 13px; padding: 3px 0; border-bottom: 1px dashed #E3E8EF; }
.tt-time { min-width: 92px; color: var(--sub); }

/* ── 시간표 ── */
.tt-when { display: flex; gap: 6px; align-items: center; }
.tt-when select, .tt-when input { width: auto; }
.tt-sec { margin-bottom: 20px; }
.tt-sec h2 { margin-bottom: 8px; }
.tt-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.tt-col { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tt-name { display: block; background: var(--navy); color: #fff !important; text-decoration: none; text-align: center; font-weight: bold; padding: 8px 6px; }
.tt-cnt { text-align: center; font-size: 13px; color: var(--sub); padding: 6px 0 2px; }
.tt-now { text-align: center; font-size: 13px; padding: 4px 6px 8px; border-bottom: 1px solid var(--line); color: #A0A9B4; }
.tt-col.live .tt-now { background: #FFF3C4; color: #6B4E00; font-weight: bold; }
.tt-list { list-style: none; margin: 0; padding: 6px 8px 10px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.tt-list a { color: var(--text); text-decoration: none; font-weight: 600; }
.tt-list a:hover { text-decoration: underline; }
.tt-list span { color: var(--sub); font-size: 12px; }
.tt-group { border-top: 1px solid var(--line); padding: 8px 0 12px; }
.tt-group:first-of-type { border-top: 0; }
.tt-edit-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 4px 0; }
.tt-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tt-form input[type=time] { width: 112px; height: 34px; border: 1px solid var(--field); border-radius: 7px; padding: 0 6px; font: inherit; }
.tt-form select { width: auto; min-width: 74px; height: 34px; }
.tt-label { min-width: 54px; font-size: 12px; }
.tt-add { margin-top: 8px; background: #F6F8FB; border-radius: 8px; padding: 8px 10px; }
.tt-copy { margin-top: 6px; font-size: 13px; }

/* ── 업무 전달 ── */
.task-send textarea.counsel-text { min-height: 80px; height: 90px; }
.task-to { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.task-to label { position: relative; }
.task-to span { padding: 0 12px; }
.task-to small { font-weight: normal; opacity: .8; margin-left: 4px; }
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task { margin: 0; padding: 12px 16px; }
.task.new { border-left: 4px solid #E5534B; }
.task.done { opacity: .62; }
.task-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; }
.task-body { margin: 8px 0 6px; font-size: 15px; line-height: 1.55; }
.task-note { font-size: 13px; color: var(--green); margin-bottom: 6px; }
.task-act { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.task-act .x { border: 0; background: none; color: #9AA3AE; font-size: 18px; cursor: pointer; }
.task-act input[type=text] { height: 32px; }
@media (max-width: 600px) { .menu-list { left: auto; right: 0; } }
.task-to-h { font-size: 12px; color: #8592A0; margin-bottom: 4px; }
/* 긴 글 칸(상담 내용 · 메모 · 업무 전달 내용)은 보통 굵기 */
textarea, .fld textarea, textarea.counsel-text, .memos .fld input { font-weight: 400; }
/* 위쪽 메뉴: PC에서만 고정 (휴대폰은 그대로) */
@media (min-width: 761px) {
  .top { position: sticky; top: 0; z-index: 60; }
  .summary { top: calc(var(--top-h, 56px) + 12px); }
}
/* 시간표: 탭 + 고정 머리줄 + 촘촘한 명단 (40명 넘는 반) */
.tt-cols { grid-auto-flow: unset; grid-template-columns: repeat(var(--n, 6), minmax(140px, 1fr)); overflow: auto;
  max-height: calc(100vh - var(--top-h, 56px) - 170px); min-height: 320px; align-items: start; padding-bottom: 0; }
.tt-col { overflow: visible; }
.tt-head { position: sticky; top: 0; z-index: 2; background: #fff; border-radius: 10px 10px 0 0; overflow: hidden; }
.tt-list { padding: 4px 8px 8px; gap: 0; font-size: 12.5px; }
.tt-list li { line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-list span { font-size: 11px; }
@media (max-width: 760px) { .tt-cols { max-height: none; } }
/* 날짜칸 (글자칸 + 달력 버튼) */
.date-wrap { position: relative; display: inline-flex; align-items: center; width: 100%; min-width: 0; }
.date-wrap .date-text { padding-right: 34px; }
.date-wrap.has-dow .date-text { padding-right: 58px; }
.date-dow { position: absolute; right: 31px; top: 50%; transform: translateY(-50%); font-size: 11px; color: #5D6B7A; pointer-events: none; }
.date-dow.sun { color: #D14343; } .date-dow.sat { color: #3B6BB5; }
.date-wrap .date-text.bad { border-color: var(--red); background: #FFF6F5; }
.date-text::placeholder { color: #B8C1CB; font-weight: 400; }
.date-pick { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0;
  accent-color: var(--navy); color-scheme: light; }
.date-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--navy);
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.date-btn:hover { background: #EEF2F7; }
.date-btn:disabled { opacity: .35; cursor: default; }
.toolbar .date-wrap, .tt-form .date-wrap, .today-date .date-wrap, .change-add .date-wrap { width: 150px; }
input[type=date] { accent-color: var(--navy); }
.code-note { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #F4F7FB; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.code-note[hidden] { display: none; }
.code-note .warn { color: var(--red); font-weight: 600; }
.code-note .ok { color: var(--green); }
.tb-table td { padding: 4px 6px; }
.tb-table input[type=text] { height: 32px; }
.tb-table thead th { position: sticky; top: 0; z-index: 1; }
/* 변동신청 추가 칸: 간격 넉넉히 · 줄 맞춤 · 시각칸도 같은 모양 */
.change-add { gap: 12px 14px !important; align-items: flex-end !important; }
.change-add .fld { flex: 0 0 168px; }
.change-add .fld.grow { flex: 1 1 220px; }
.change-add .fld.full { flex: 1 1 100%; }
.change-add .date-wrap { width: 100%; }
.change-add .btn { flex: none; }
input[type=time] { height: 36px; padding: 0 9px; border: 1px solid var(--field); border-radius: 7px; font: inherit; font-size: 14px;
  background: #fff; color: var(--text); width: 100%; min-width: 0; box-sizing: border-box; }
.fld input[type=time] { color: #15202B; font-weight: 600; border-color: #D9E0E8; }
.tt-form input[type=time], .fix-row input[type=time], .tt-when input[type=time] { width: 116px; }
.rest-req > div { gap: 8px 18px; }
.req-item { display: inline-flex; align-items: center; gap: 6px; }
.req-detail { width: 160px !important; height: 32px !important; font-weight: 400 !important; }
/* 직접 만든 달력 */
.cal { position: absolute; z-index: 200; width: 264px; background: #fff; border: 1px solid #D9E0E8; border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20,30,45,.2); padding: 10px; font-size: 13px; user-select: none; }
.cal[hidden] { display: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-head b { color: var(--navy); font-size: 14px; }
.cal-head button { border: 0; background: none; color: var(--navy); width: 30px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.cal-head button:hover { background: #EEF2F7; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-w { font-size: 11px; color: #8592A0; padding: 4px 0; }
.cal-d { border: 0; background: none; height: 32px; border-radius: 8px; cursor: pointer; font: inherit; color: var(--text); }
.cal-d:hover { background: #EEF2F7; }
.cal .sun { color: #D14343; }
.cal .sat { color: #3B6BB5; }
.cal-d.cal-today { box-shadow: inset 0 0 0 1.5px var(--navy); font-weight: bold; }
.cal-d.sel { background: var(--navy); color: #fff; font-weight: bold; }
.cal-foot { display: flex; justify-content: space-between; margin-top: 8px; border-top: 1px solid #EEF1F5; padding-top: 8px; }
.cal-foot button { border: 0; background: #EEF2F7; color: var(--navy); border-radius: 6px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 12px; }
/* 결제 */
table.pay-table tr.m-first td { border-top: 2px solid #DCE3EB; }
table.pay-table tr.unpaid td { background: #FFF6F5; }
table.pay-table td[rowspan] { vertical-align: top; background: #FAFBFD; }

/* ── 결제 2단계 · 카드 잠금 · 회비 문자 ── */
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--field); }
.btn.ghost:hover { background: #EEF2F7; color: var(--navy); }
.btn.danger { background: var(--red); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin: 10px 0; }
.card.narrow { max-width: 640px; }
.card.danger { border-left: 4px solid var(--red); }
.small-list li { margin: 3px 0; color: var(--sub); }
.mono, .card1 { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.card1.open { font-weight: 700; color: var(--navy); }
form.inline { display: inline; }
/* 결제 정보: 줄마다 칸 너비를 따로 */
.payrow { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin-bottom: 14px; }
.payrow .fld { flex: 0 0 150px; }
.payrow .fld.xs { flex-basis: 76px; }
.payrow .fld.s { flex-basis: 120px; }
.payrow .fld.m { flex-basis: 190px; }
.payrow .fld.grow { flex: 1 1 260px; }
.payrow .fld input, .payrow .fld select { max-width: none; width: 100%; }
.payrow .chk.cell { flex: 0 0 auto; padding: 0 6px 8px 0; }
.payrow .card2-fld { flex: 1 1 250px; max-width: 360px; }
.card2-in { display: flex; gap: 6px; align-items: center; }
.card2-in select { flex: 1 1 90px; min-width: 0; }
.card2-in input[type=text] { padding-left: 8px; padding-right: 8px; }
.card2-in input[type=text] { flex: 0 0 74px; width: 74px; }
.card2-in .chk { flex: 0 0 auto; font-size: 12.5px; color: var(--text); white-space: nowrap; }
.c2-hint { min-height: 16px; color: var(--sub); }
.c2-raw { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.card1-fld input:disabled { background: #F4F6F9; color: #8592A0; }
.exp-tag { font-size: 11px; padding: 1px 7px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.exp-tag.soon { background: #FDEBD3; color: #9A5A00; }
.exp-tag.expired { background: #F6DCD8; color: var(--red); }
.cardlock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #F2F4F8; border: 1px solid var(--line);
            border-radius: 8px; padding: 8px 12px; margin: 4px 0 14px; font-size: 13px; }
.cardlock.opened { background: #EAF4EC; border-color: #BFD9C6; }
.cardlock.off { color: var(--sub); }
.cardlock .cl-state { font-weight: 700; color: var(--navy); }
.cardlock .cl-pass { height: 32px; border: 1px solid var(--field); border-radius: 6px; padding: 0 10px; width: 190px; }
.pay-tabs { margin-top: 4px; }
.unpaid-list tr.late td { background: #FBEDEB; }
.unpaid-list tr.late .days { color: var(--red); font-weight: 700; }
.unpaid-list td, .auto-list td { vertical-align: top; white-space: nowrap; }
.unpaid-list td.note, .auto-list td.why { white-space: normal; min-width: 140px; }
.unpaid-list td.note { max-width: 220px; color: var(--sub); font-size: 12.5px; }
.unpaid-note { margin: 0 0 8px; color: var(--red); font-weight: 600; }
.exp-card { margin-top: 14px; }
legend .btn { margin-left: 8px; vertical-align: middle; }
/* 회비 문자 창 */
.sms-pop { position: fixed; inset: 0; background: rgba(20, 30, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.sms-box { background: #fff; border-radius: 12px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.sms-box header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 8px; }
.sms-box header b { font-size: 16px; color: var(--navy); white-space: nowrap; }
.sms-box header select { flex: 0 1 220px; min-width: 0; height: 32px; border: 1px solid var(--field); border-radius: 6px; padding: 0 8px; }
.sms-box header .x { margin-left: auto; }
.sms-box .sms-note { padding: 0 16px; font-size: 12.5px; color: var(--sub); min-height: 18px; }
.sms-box textarea { margin: 8px 16px; width: calc(100% - 32px); flex: 1 1 auto; min-height: 320px; border: 1px solid var(--field); border-radius: 8px; padding: 10px 12px;
                    font: 13.5px/1.6 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; resize: vertical; }
.sms-box footer { display: flex; gap: 8px; align-items: center; padding: 8px 16px 14px; }
.sms-box footer .done { color: var(--green); font-weight: 700; }
.sms-box footer .len { margin-left: auto; color: var(--sub); font-size: 12px; }
/* 문자 문구 관리 */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.tpl-grid textarea { width: 100%; min-height: 360px; font: 13px/1.55 'Malgun Gothic', sans-serif; border: 1px solid var(--field); border-radius: 8px; padding: 8px 10px; }
.tpl-grid .tpl-head { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.tpl-grid .tpl-head input { flex: 1; height: 32px; border: 1px solid var(--field); border-radius: 6px; padding: 0 8px; font-weight: 700; }
.ph-list code { background: #EEF2F7; padding: 1px 6px; border-radius: 5px; margin: 0 2px; font-size: 12.5px; }
.cf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 14px; }
.cf-grid input { max-width: 110px; }
/* 회비 계산 · 형제 함께 · 납부 수정 */
details.calc-box { padding: 0; }
details.calc-box > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--navy); list-style: none; }
details.calc-box > summary::before { content: '▸ '; }
details.calc-box[open] > summary::before { content: '▾ '; }
details.calc-box > summary::-webkit-details-marker { display: none; }
details.calc-box > *:not(summary) { margin-left: 16px; margin-right: 16px; }
details.calc-box[open] { padding-bottom: 14px; }
/* 53번: 결제 정보 상자 안에 들어간 회비 계산 */
.payinfo details.calc-box.in-info { margin: 12px -10px 0; border: 1px solid #CBD5E1; border-radius: 10px; background: #F7F9FC; }
.payinfo details.calc-box.in-info > summary { padding: 9px 12px; }
.payinfo details.calc-box.in-info > *:not(summary) { margin-left: 12px; margin-right: 12px; }
.payinfo details.calc-box.in-info[open] { background: #fff; padding-bottom: 12px; }
.payinfo details.calc-box.in-info + .pgroup { margin-top: 12px; }
.calc-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 12px; }
.calc-tabs button { background: none; border: 0; padding: 8px 14px; color: var(--sub); border-bottom: 3px solid transparent; margin-bottom: -2px; cursor: pointer; font: inherit; }
.calc-tabs button.on { color: var(--navy); font-weight: 700; border-bottom-color: var(--navy); }
.calc-fee { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: flex-end; margin-bottom: 12px; }
.calc-fee .fld { flex: 0 0 140px; margin-right: 6px; }
.chip { border: 1px solid var(--field); background: #fff; border-radius: 14px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; color: var(--navy); }
.chip:hover { background: #EEF2F7; }
.calc-result { background: #F6F8FB; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-top: 12px; }
.calc-result li { margin: 3px 0; }
table.preview { margin-top: 8px; width: auto; }
table.preview td, table.preview th { padding: 5px 12px; }
.calc-log { margin-top: 12px; font-size: 13px; color: var(--sub); }
.calc-log li { margin: 2px 0; }
.sib-pay { margin-top: 12px; padding: 10px 12px; background: #F6F8FB; border: 1px solid var(--line); border-radius: 8px; }
.sib-rows { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.sib-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sib-row select, .sib-row input[type=text] { height: 32px; border: 1px solid var(--field); border-radius: 6px; padding: 0 8px; }
.sib-row input[type=text] { width: 80px; }
fieldset.pane.editing { border-color: #E3B341; box-shadow: 0 0 0 3px #FFF3D1; }
tr.editing td { background: #FFF6E0 !important; }
.tag-req.sib { background: #EAF4EC; color: var(--green); }
.fee-tip { color: var(--sub); }
.small { font-size: 12px; }
.calc-apply { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.calc-pane > .btn, .calc-apply .btn { width: auto; flex: 0 0 auto; }
.calc-pane { display: block; }
.calc-pane { display: block; }
.calc-pane .payrow { margin-bottom: 8px; }
.panes form.calc-apply { flex-direction: row; gap: 8px; }
.sib-row select { width: auto; flex: 0 0 120px; }
.sib-row input[type=text] { flex: 0 0 80px; }
.sib-row > label.chk { flex: 0 0 auto; min-width: 110px; }
.calc-pane > .btn { margin-top: 6px; }

/* ── 42. 글자 크기 엑셀처럼 (9pt ≈ 12px, 8pt ≈ 11px) — 입구 출결 화면(kiosk)은 그대로 ── */
body:not(.kiosk-body) { font-size: 12px; }
body:not(.kiosk-body) input[type=text], body:not(.kiosk-body) input[type=tel], body:not(.kiosk-body) input[type=password],
body:not(.kiosk-body) input[type=date], body:not(.kiosk-body) input[type=search], body:not(.kiosk-body) input[type=time], body:not(.kiosk-body) select { font-size: 12px; height: 30px; padding: 0 8px; }
body:not(.kiosk-body) textarea { font-size: 12px; }
body:not(.kiosk-body) textarea.counsel-text { font-size: 13px; }
body:not(.kiosk-body) textarea.list-edit { font-size: 12px; }
body:not(.kiosk-body) .finder-box input { height: 48px; font-size: 17px; padding: 0; }
body:not(.kiosk-body) .fld > span { font-size: 11px; }
body:not(.kiosk-body) .fld { font-size: 11px; }
body:not(.kiosk-body) .chk { font-size: 12px; min-height: 26px; }
body:not(.kiosk-body) .chk.cell { font-size: 12px; min-height: 30px; }
body:not(.kiosk-body) .muted, body:not(.kiosk-body) .hint { font-size: 11px; }
body:not(.kiosk-body) .btn { height: 32px; padding: 0 14px; }
body:not(.kiosk-body) .btn.small { height: 26px; padding: 0 10px; font-size: 12px; }
body:not(.kiosk-body) .btn.big { height: 40px; font-size: 14px; }
body:not(.kiosk-body) table.list th, body:not(.kiosk-body) table.list td { padding: 5px 8px; }
body:not(.kiosk-body) .pane legend, body:not(.kiosk-body) details.pane summary { font-size: 13px; }
body:not(.kiosk-body) .summary dl { font-size: 12px; gap: 7px; }
body:not(.kiosk-body) .links a { font-size: 12px; padding: 8px; }
body:not(.kiosk-body) h2 { font-size: 14px; }
body:not(.kiosk-body) h1 { font-size: 19px; }
body:not(.kiosk-body) .summary h1 { font-size: 20px; }
body:not(.kiosk-body) .st { font-size: 11px; }
body:not(.kiosk-body) .today-box h3 { font-size: 13px; }
body:not(.kiosk-body) .today-box .sg, body:not(.kiosk-body) .today-box .cls, body:not(.kiosk-body) .today-box .none { font-size: 12px; }
body:not(.kiosk-body) .cardlock .cl-pass { height: 28px; }

/* ── 43. 긴 안내문은 한 줄만, ⓘ 누르면 펼침 (app.js) ── */
.hint.fold { position: relative; padding-right: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint.fold.open { white-space: normal; }
.hint .tip-btn { position: absolute; right: 0; top: 0; border: 0; background: none; color: var(--navy); cursor: pointer; font-size: 12px; padding: 0 2px; }

/* ── 44. 결제 정보 묶음 · 받을 금액 강조 · 결제 메모 ── */
.payinfo .pgroup { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.payinfo .pgroup:first-of-type { border-top: 0; margin-top: 0; padding-top: 4px; }
.pg-title { font-size: 11px; font-weight: 700; color: #8592A0; letter-spacing: .04em; margin-bottom: 6px; }
.payinfo .payrow { margin-bottom: 8px; }
.pgroup.once { border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; margin-left: -10px; margin-right: -10px; }
.pgroup.once.on { background: #FFF3E0; border-color: #F2C48D; }
.pgroup.once.on .pg-title { color: #9A5A00; }
.amt-box { flex: 0 0 140px; display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: #8592A0; }
.amt-box > b { height: 30px; display: flex; align-items: center; padding: 0 10px; border-radius: 7px; background: #F4F6F9; color: #8592A0; font-size: 13px; }
/* 58번: 받을 금액 칸 = 연한 딸기우유빛 핑크 (위쪽 메뉴 네이비와 다르게) */
.amt-box.now > b, .amt-box.input.now input, .payinfo .fld.now-fld input { background: #FFE3EC; color: #8A1F45; font-size: 15px; font-weight: 800; border: 1px solid #F4A7BE; }
.amt-box.now > b { box-sizing: border-box; }
.amt-box.input input { height: 30px; }
.amt-box.off > b { text-decoration: none; }
.now-tag { background: #8A1F45; color: #fff; font-size: 10px; padding: 0 6px; border-radius: 8px; margin-left: 4px; }
.auto-line { margin: 6px 0 0; font-size: 12px; color: #9A5A00; }
.auto-line b { color: #9A5A00; } .auto-line b.to { background: #9A5A00; color: #fff; padding: 1px 8px; border-radius: 6px; }
.now-line { margin: 0 0 4px; font-size: 12px; color: var(--sub); }
.now-line b { background: var(--navy); color: #fff; padding: 2px 10px; border-radius: 7px; font-size: 14px; margin: 0 4px; }
.pay-memo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 10px; border-radius: 8px; background: #F6F8FB; }
.pay-memo.on { background: #FFF3E0; }
.pay-memo .pm-title { font-size: 11px; color: #8592A0; margin-right: 4px; }
.pay-memo input[type=radio] { accent-color: var(--navy); }
.pay-memo input[type=text] { width: 180px; height: 26px; }
.memo-tag { font-size: 10.5px; background: #FDEBD3; color: #9A5A00; padding: 1px 7px; border-radius: 8px; margin-left: 4px; white-space: nowrap; }
tr.memo-row td { background: #FFF6EA; }
.memo-warn { color: #9A5A00; font-size: 12px; }
/* 46. 분할납 */
.split-pay { margin-top: 10px; padding: 10px 12px; background: #F6F8FB; border: 1px solid var(--line); border-radius: 8px; }
.split-pay #splitRows { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.split-row .sr-n { flex: 0 0 48px; color: var(--navy); }
.split-row input[type=date], .split-row .date-wrap { flex: 0 0 140px; width: 140px; }
.split-sum { margin-left: 8px; font-weight: 700; }
.split-sum.short { color: var(--red); } .split-sum.ok { color: var(--green); }
.fee-tip:empty { display: none; }
.fld .fee-tip { position: absolute; margin-top: 52px; font-size: 10.5px; }
.amt-box { flex-basis: 150px; }
.amt-box > span { white-space: nowrap; }
/* 결제 정보 줄 맞추기: 칸 윗줄(제목)을 맞추고 체크칸은 입력칸 높이에 맞춤 */
.payinfo .payrow { align-items: flex-start; }
.payinfo .payrow > .chk.cell { margin-top: 20px; min-height: 30px; padding: 0 6px 0 0; }
.payinfo .payrow > .fld > span, .payinfo .payrow .amt-box > span { min-height: 16px; line-height: 16px; }
.payinfo .payrow > .fld, .payinfo .payrow > .amt-box { gap: 4px; }
.payinfo .c2-hint { display: block; min-height: 0; margin-top: 3px; }
.payinfo .c2-hint:empty { display: none; }

/* 57번: 고르는 칸이 '-'(안 고름)이면 연한 회색 · 보통 굵기 */
select.is-blank { color: #A9B4C0 !important; font-weight: 400 !important; }
select.is-blank option { color: var(--text); font-weight: 400; }
.blank-note { color: #8592A0; font-weight: 400; }
.payinfo .fld.now-fld > span, .now-tag { white-space: nowrap; }

/* 70번: 표의 이름 칸 가운데 (app.js가 '이름·학생·직원' 열에 nm-c를 붙임) */
table .nm-c, table.list th.nm-c, table.list td.nm-c { text-align: center; }

/* 59번: 등록 전 상담 */
fieldset.precounsel { border-color: #E3D9F2; background: #FCFBFF; }
fieldset.precounsel legend { color: #4E4A85; }
details.pc-peek { display: inline-block; margin-left: 6px; position: relative; }
details.pc-peek > summary { list-style: none; cursor: pointer; font-size: 11px; background: #EEEDF8; color: #4E4A85; padding: 1px 8px; border-radius: 9px; }
details.pc-peek > summary::-webkit-details-marker { display: none; }
details.pc-peek .pc-pop { position: absolute; z-index: 30; left: 0; top: 22px; width: 380px; max-height: 320px; overflow: auto; background: #fff;
  border: 1px solid #D6D3F0; border-radius: 10px; box-shadow: 0 8px 22px rgba(30,30,80,.15); padding: 10px 12px; font-size: 12px; white-space: normal; cursor: default; }
details.pc-peek .pc-pop p { margin: 0 0 8px; line-height: 1.55; }
details.pre-box { background: #FCFBFF; border: 1px solid #E3D9F2; border-radius: 12px; padding: 0 16px; }
details.pre-box > summary { cursor: pointer; padding: 11px 0; font-weight: 700; color: #4E4A85; }
details.pre-box[open] { padding-bottom: 10px; }
.kind-tag.pre { background: #EEEDF8; color: #4E4A85; }
.card.pre-note { background: #FCFBFF; border-color: #E3D9F2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* 65번: 출결 연락처 ✎ */
td.att-tel { white-space: nowrap; }
details.tel-fix { display: inline-block; position: relative; margin-left: 4px; }
details.tel-fix > summary { list-style: none; cursor: pointer; color: #8592A0; font-size: 12px; padding: 0 4px; border-radius: 4px; }
details.tel-fix > summary::-webkit-details-marker { display: none; }
details.tel-fix > summary:hover { background: #EEF2F7; color: var(--navy); }
details.tel-fix[open] { display: block; margin-left: 0; }
details.tel-fix .tel-box { margin-top: 6px; width: 300px; background: #fff; border: 1px solid #D9E0E8; border-radius: 10px;
  padding: 10px 12px; white-space: normal; display: flex; flex-direction: column; gap: 6px; }   /* 표 안에 펼침 (스크롤 상자에 잘리지 않게) */
details.tel-fix .tel-row { display: flex; gap: 6px; } details.tel-fix .tel-row input { min-width: 0; }
details.tel-fix .tel-row input[name=att_phone_who] { width: 110px; flex: 0 0 110px; }
details.tel-fix .tel-box .btn { align-self: flex-start; }

/* 63번: 휴대폰(좁은 화면) — 위쪽 줄은 학원 이름 · ☰ 만, 누르면 메뉴 펼침 */
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .top { padding: 8px 14px; min-height: 50px; gap: 8px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 40px; height: 36px; border: 0;
    border-radius: 8px; background: var(--navy-2); color: #fff; font-size: 20px; cursor: pointer; }
  .top:not(.open) > .cur-slot, .top:not(.open) > nav, .top:not(.open) > .admin-menu, .top:not(.open) > .who { display: none; }
  .top.open > nav { flex-direction: column; width: 100%; gap: 2px; }
  .top.open > nav a, .top.open > nav summary { display: block; padding: 10px 12px; }
  .top.open .menu-list { position: static; box-shadow: none; margin: 2px 0 6px 12px; }
  .top.open > .admin-menu { width: 100%; }
  .top.open > .cur-slot { flex-basis: 100%; }
  .top.open > .who { width: 100%; padding: 6px 12px 4px; border-top: 1px solid rgba(255,255,255,.12); }
}
/* 62·64번: 오늘의 현황 위 관리자 알림 */
.admin-alert { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 14px; border-radius: 10px; margin: 0 0 10px; font-size: 13px; }
.admin-alert.warn { background: #FFF6E5; border: 1px solid #F2D09A; color: #7A4A00; }
.admin-alert.info { background: #F1F0FB; border: 1px solid #D6D3F0; color: #3F3B78; }
/* 64번: 카드 번호 전달 */
.xfer-list { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 8px; }
.xfer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #F1F0FB; border: 1px solid #D6D3F0; border-radius: 9px; padding: 7px 10px; font-size: 12px; }
.xfer-show { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; color: #3F3B78; }
.xsend { margin-top: 8px; background: #F7F6FD; border: 1px dashed #C9C5EA; border-radius: 10px; padding: 9px 12px; font-size: 12px; }
.xsend-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.xsend-row #xNum { width: 190px; } .xsend-row #xCo { width: 120px; } .xsend-row #xYm { width: 120px; }
.xsend-msg { margin: 4px 0 0; min-height: 14px; } .xsend-log { margin: 4px 0 0; color: #5D6B7A; }

/* 66·67번: 토픽 · 1:1 */
.tp-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.tp-side { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; position: sticky; top: calc(var(--top-h, 60px) + 10px); }
.tp-sh { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--navy); font-size: 12px; margin: 6px 4px; }
.tp-list { list-style: none; margin: 0 0 10px; padding: 0; }
.tp-list li { display: flex; align-items: center; justify-content: space-between; border-radius: 8px; }
.tp-list li a { flex: 1; padding: 7px 9px; color: var(--text); text-decoration: none; font-size: 13px; }
.tp-list li.on { background: var(--navy); } .tp-list li.on a { color: #fff; font-weight: 700; }
.tp-list li:not(.on):hover { background: #EEF2F7; }
.tp-list li.arch a { color: #9AA3AE; }
.tp-list .nav-badge { margin-right: 8px; }
.tp-newdm { display: flex; gap: 4px; } .tp-newdm select { flex: 1; min-width: 0; }
.tp-main { min-width: 0; }
.tp-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tp-head h1 { margin: 0; font-size: 18px; color: var(--navy); }
.tp-pins { display: flex; flex-direction: column; gap: 3px; background: #FFF8E6; border: 1px solid #F2DCA5; border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: 12px; }
.tp-pins a { color: #7A5300; text-decoration: none; }
.tp-stream { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; max-height: calc(100vh - 330px); min-height: 240px; overflow-y: auto; }
.tp-thread { border-bottom: 1px solid #EEF0F4; padding: 8px 0; }
.tp-post { font-size: 13px; }
.tp-post.reply { margin: 6px 0 0 18px; padding-left: 10px; border-left: 3px solid #E3E8EE; }
.tp-ph { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.tp-pin { color: #9A5A00; font-size: 11px; } .tp-read { color: #8592A0; font-size: 11px; }
.tp-act { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; font-size: 11px; }
.tp-act form.inline { display: inline; } .linkbtn { border: 0; background: none; color: #5D6B7A; cursor: pointer; font-size: 11px; padding: 0; }
.linkbtn:hover { color: var(--navy); text-decoration: underline; }
details.tp-edit > summary { cursor: pointer; color: #5D6B7A; list-style: none; } details.tp-edit[open] { flex-basis: 100%; }
details.tp-edit form { display: flex; gap: 6px; margin-top: 4px; } details.tp-edit textarea { flex: 1; min-height: 50px; }
.tp-body { margin-top: 3px; line-height: 1.6; white-space: normal; word-break: break-word; }
.tp-stu { margin-top: 4px; font-size: 12px; background: #F4F6F9; display: inline-block; padding: 2px 8px; border-radius: 7px; }
details.tp-replies > summary { cursor: pointer; font-size: 11px; color: #5D6B7A; margin-top: 4px; list-style: none; }
details.tp-replies > summary::before { content: '💬 '; }
.tp-rform { display: flex; gap: 6px; margin: 6px 0 0 18px; } .tp-rform textarea { flex: 1; min-height: 30px; height: 30px; }
.tp-form { margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tp-form textarea { width: 100%; min-height: 60px; }
.tp-fbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.tp-stupick { position: relative; width: 240px; } .tp-stupick input { width: 100%; }
.tp-mem { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.tp-stream.dm { display: flex; flex-direction: column; gap: 8px; }
.dm-msg { max-width: 70%; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.dm-msg .dm-b { background: #F1F3F7; border-radius: 12px 12px 12px 4px; padding: 7px 11px; line-height: 1.55; word-break: break-word; }
.dm-msg.mine { align-self: flex-end; align-items: flex-end; } .dm-msg.mine .dm-b { background: var(--navy); color: #fff; border-radius: 12px 12px 4px 12px; }
.dm-msg span { font-size: 10.5px; }
@media (max-width: 760px) { .tp-wrap { grid-template-columns: 1fr; } .tp-side { position: static; } .tp-stream { max-height: none; } }

/* 71번: 신청서·폼 (직원 화면) */
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.fm-card h2 { margin: 2px 0 6px; font-size: 16px; } .fm-card h2 a { color: var(--navy); text-decoration: none; }
.fm-card.off { opacity: .65; } .fm-kind { font-size: 11px; color: #4E4A85; }
.fm-new { display: inline-block; background: #4E4A85; color: #fff; border-radius: 10px; padding: 1px 10px; font-size: 12px; text-decoration: none; }
.fm-new.zero { background: #EEF0F4; color: #8592A0; }
.fm-link { display: flex; gap: 6px; align-items: center; } .fm-link input { flex: 1; min-width: 0; font-size: 11px; color: #5D6B7A; }
.fm-tpls { display: flex; gap: 8px; flex-wrap: wrap; }
.fm-row { border: 1px solid #E3E8EE; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; background: #FBFCFD; }
.fm-row.gone { opacity: .45; }
.fm-r1 { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .fm-r1 > input[type=text] { flex: 1 1 260px; }
.fm-r1 select { width: 190px; } .fm-map { width: 18px; text-align: center; }
.fm-opts, .fm-text { margin-top: 6px; }
.fm-ans { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.fm-qa th { width: 34%; background: #F4F6F9; color: var(--navy); font-weight: 600; white-space: normal; }
.fm-cand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 9px; border: 1px solid #E3E8EE; border-radius: 9px; margin-bottom: 6px; cursor: pointer; }
.fm-cand.same { border-color: #E3B341; background: #FFF9E8; } .same-tag { color: #8A5A00; font-size: 11px; }
.fm-btns { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; } .fm-btns .muted { font-size: 11px; }
.fm-dot { display: inline-block; background: #D14343; color: #fff; font-size: 10px; border-radius: 8px; padding: 0 6px; }
.qr-pop { position: fixed; inset: 0; background: rgba(20,25,40,.45); display: flex; align-items: center; justify-content: center; z-index: 300; }
.qr-pop[hidden] { display: none; }
.qr-box { background: #fff; border-radius: 14px; padding: 18px 22px; text-align: center; display: flex; flex-direction: column; gap: 8px; max-width: 360px; }
.qr-box small { word-break: break-all; color: #5D6B7A; }
@media print { body * { visibility: hidden; } .qr-pop, .qr-pop * { visibility: visible; } .qr-pop { position: absolute; background: none; } .qr-box button { display: none; } }
@media (max-width: 760px) { .fm-ans { grid-template-columns: 1fr; } }

/* 71번: 공개 신청서 (학부모님 휴대폰) */
body.pub-form { background: #F1F0F7; }
.pf-wrap { max-width: 640px; margin: 0 auto; padding: 18px 14px 40px; }
.pf-head { background: var(--navy); color: #fff; border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.pf-ac { font-size: 12px; opacity: .8; } .pf-head h1 { margin: 4px 0 0; font-size: 20px; color: #fff; }
.pf-card { background: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 12px; border: 1px solid #E3E1EE; }
.pf-intro { font-size: 14px; line-height: 1.65; }
.pf-err { border-color: #E6B0AA; background: #FFF6F5; color: #9A2B20; } .pf-err ul { margin: 6px 0 0; padding-left: 18px; }
.pf-done { text-align: center; font-size: 15px; } .pf-done b { font-size: 18px; color: #1E7F4F; }
.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fq { padding: 12px 0; border-bottom: 1px solid #F0EFF5; }
.fq-l { font-weight: 700; font-size: 14px; margin-bottom: 8px; color: #1F2330; } .req { color: #D14343; }
body.pub-form .fq input[type=text], body.pub-form .fq input[type=tel], body.pub-form .fq input[type=date], body.pub-form .fq select, body.pub-form .fq textarea { width: 100%; height: 42px; font-size: 15px; border: 1px solid #D9DCE6; border-radius: 9px; padding: 0 12px; background: #fff; }
body.pub-form .fq textarea { height: auto; padding: 10px 12px; }
.fq-row { display: flex; gap: 8px; } .fq-row > * { flex: 1; min-width: 0; }
.fq-opts { display: flex; flex-direction: column; gap: 6px; }
.fq-o { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid #E3E1EE; border-radius: 9px; font-size: 14px; cursor: pointer; }
.fq-o input { width: 18px; height: 18px; accent-color: var(--navy); }
.fq-o.agree { margin-top: 8px; background: #F7F6FD; }
.fq-rules { background: #F8F8FB; border-radius: 9px; padding: 10px 12px; font-size: 13px; line-height: 1.6; max-height: 260px; overflow-y: auto; color: #3A3F4F; }
.fq-par { display: grid; grid-template-columns: 52px 1fr 1.3fr; gap: 6px; align-items: center; font-size: 13px; }
.pf-send { width: 100%; height: 48px; font-size: 16px; margin-top: 10px; }

/* ── 69번: 반별 테스트 성적 (표 머리 = 차분한 보라 #4E4A85 · 문항 배지 #625D9E · 범위 #D6D3F0) ── */
.top .menu-list a.menu-strong { font-weight: bold; border-bottom: 1px solid var(--line); border-radius: 6px 6px 0 0; margin-bottom: 2px; }
.sc-top h1 { margin-right: 6px; }
.daynav { display: flex; align-items: center; gap: 6px; }
.daynav .sc-date { margin: 0; } .daynav .sc-date .date-wrap { width: 150px; }
.seg { display: inline-flex; border: 1px solid var(--field); border-radius: 8px; overflow: hidden; }
.seg a { padding: 6px 12px; text-decoration: none; color: var(--sub); font-size: 13px; background: #fff; }
.seg a + a { border-left: 1px solid var(--field); }
.seg a.on { background: #4E4A85; color: #fff; font-weight: bold; }
.sc-items { padding: 12px 16px; }
.sc-items > summary { cursor: pointer; list-style: none; }
.sc-items > summary::-webkit-details-marker { display: none; }
.sc-items > summary::before { content: '▸ '; color: var(--sub); }
.sc-items[open] > summary::before { content: '▾ '; }
.sc-items[open] > summary { margin-bottom: 10px; }
.sc-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 12px; background: #F3F2FA; border-radius: 8px; }
table.sc-it th { background: #4E4A85; }
table.sc-it td { padding: 4px 6px; }
table.sc-it td.w80 { width: 80px; } table.sc-it td.w120 { width: 150px; }
table.sc-it tr.new td { background: #FAFAFD; }
.muted-w { font-size: 11px; opacity: .8; font-weight: normal; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .sc-grid { grid-template-columns: minmax(0, 1fr); } }
.sc-side svg.chart { max-width: 340px; }
.sc-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
table.score { border-collapse: collapse; width: 100%; font-size: 12px; }
table.score th { background: #4E4A85; color: #fff; font-weight: bold; padding: 7px 6px; text-align: center; vertical-align: top; border-right: 1px solid #5E5A95; white-space: nowrap; }
table.score th small { display: block; font-weight: normal; color: #D6D3F0; font-size: 11px; margin-top: 1px; }
table.score th .q { display: inline-block; margin-top: 4px; background: #625D9E; border-radius: 8px; padding: 0 7px; font-size: 11px; font-weight: normal; }
table.score th .cut { display: block; font-size: 11px; color: #FFC9C9; font-weight: normal; margin-top: 2px; }
table.score td { border-bottom: 1px solid #EDEBF5; border-right: 1px solid #F2F1F8; padding: 3px 5px; text-align: center; white-space: nowrap; }
table.score td.nm { font-weight: bold; padding: 3px 8px; }   /* 70번: 이름 칸 가운데 */
table.score td.nm a { color: var(--text); text-decoration: none; } table.score td.nm a:hover { text-decoration: underline; }
table.score td.sub { color: var(--sub); }
table.score td input { width: 46px; height: 26px; text-align: center; padding: 0 2px; font-size: 12.5px; font-weight: bold; border-color: #DCDAE8; }
table.score td input:disabled { background: transparent; border-color: transparent; color: var(--text); }
table.score td.in { background: #FFFDF0; }
table.score td.over { background: #FDE3E3; } table.score td.over input { color: #B42318; }
table.score td.bad input { border-color: var(--red); background: #FFF0EE; }
table.score td .pc { display: block; font-size: 10.5px; color: #B42318; }
table.score td.tot b { color: #4E4A85; font-size: 13px; }
table.score td.re { text-align: left; font-size: 12px; }
table.score tr.abs td { background: #F6F7F9; } table.score tr.abs td.nm a { color: #8A93A0; }
table.score tr.avg td { background: #F3F2FA; font-weight: bold; color: #4E4A85; }
table.score tr.rate td { background: #FAFAFD; color: var(--sub); }
.tag { display: inline-block; font-size: 10.5px; font-weight: normal; padding: 0 6px; border-radius: 8px; margin-left: 4px; vertical-align: 1px; }
.tag.new { background: #E3F4E8; color: #1E7F4F; } .tag.mv { background: #E5EBFA; color: #3B55A0; }
.tag.abs { background: #ECEEF2; color: #6B7480; } .tag.late { background: #FFF1D6; color: #8A5A00; } .tag.wait { background: #F1F3F6; color: #8A93A0; }
.tag.gone { background: #FBEAE8; color: var(--red); }
.legend { font-size: 12px; color: var(--sub); margin: 8px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid #E5E5EA; vertical-align: -2px; margin-left: 6px; }
.lg-over { background: #FDE3E3; } .lg-in { background: #FFFDF0; } .lg-abs { background: #F6F7F9; }
.sc-side .box { padding: 14px 16px; }
.sc-side .box h3 { font-size: 14px; margin: 0 0 8px; color: #4E4A85; }
.sc-side textarea { height: auto; min-height: 150px; padding: 8px 10px; font-size: 12.5px; line-height: 1.6; font-weight: normal; }
.re-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 7px 0; border-bottom: 1px dashed #E6E8EF; font-size: 12.5px; }
.re-row b { min-width: 52px; } .re-row.pass { opacity: .65; }
.re-in { margin-left: auto; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--sub); }
.re-in input { width: 48px !important; height: 26px !important; text-align: center; }
.ok-t { color: var(--green); font-weight: bold; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-ro { background: #F3F2FA; border-radius: 12px; padding: 3px 10px; font-size: 12.5px; color: #3D3A6B; }
.del-sheet { text-align: right; margin: -4px 0 10px; }
.tag-mine { font-size: 11px; background: #F3F2FA; color: #4E4A85; padding: 0 6px; border-radius: 8px; }
.sc-board td { vertical-align: middle; }
.sc-days { display: flex; flex-wrap: wrap; gap: 4px; }
table.sc-board td:nth-child(3) { min-width: 300px; }
.sc-day { font-size: 12px; padding: 3px 8px; border-radius: 7px; text-decoration: none; border: 1px solid transparent; }
.sc-day.ok { background: #E3F4E8; color: #1E7F4F; } .sc-day.no { background: #FFF4E5; color: #9A5A00; border-color: #F3D9B1; }
.sc-day.tday { background: #fff; color: var(--navy); border-color: var(--field); }
.sc-ok-t { color: #1E7F4F; } .sc-no-t { color: #9A5A00; }
/* 학생 성적 */
.sc-filter { gap: 6px; }
.pill { padding: 5px 13px; border-radius: 16px; border: 1px solid var(--field); background: #fff; color: var(--sub); text-decoration: none; font-size: 12.5px; }
.pill.on { background: #4E4A85; border-color: #4E4A85; color: #fff; font-weight: bold; }
.sc-filter .sep { width: 10px; }
.sc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 14px; }
@media (max-width: 900px) { .sc-cards { grid-template-columns: 1fr 1fr; } }
.sc-card { background: #F7F6FC; border: 1px solid #E6E4F2; border-radius: 10px; padding: 10px 14px; }
.sc-card span { font-size: 12px; color: var(--sub); } .sc-card b { display: block; font-size: 22px; color: #4E4A85; margin: 2px 0; }
.sc-card b.red { color: var(--red); } .sc-card b em { font-style: normal; font-size: 13px; color: var(--sub); font-weight: normal; } .sc-card b.muted-b { color: #AEB6C4; }
.sc-card small { font-size: 11.5px; color: var(--sub); }
.sc-chart { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.sc-chart .lg { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--sub); margin-bottom: 4px; }
.sc-chart .lg i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: 3px; margin-right: 5px; }
.sc-chart .lg i.dot { width: 8px; height: 8px; border-radius: 50%; background: #C0392B; vertical-align: 0; }
svg.chart { display: block; max-width: 100%; height: auto; }
table.sc-tbl th { background: #4E4A85; text-align: center; }
table.sc-tbl td.c { text-align: center; vertical-align: middle; }
table.sc-tbl td.over { background: #FDE3E3; color: #B42318; font-weight: bold; }
table.sc-tbl tr.mv-row td { background: #EEF2FC; color: #3B55A0; font-size: 12.5px; }
table.sc-tbl tr.out td.c { color: #9AA3AE; }
/* 월간 리포트 */
table.rp-tbl td { vertical-align: middle; }
table.rp-tbl td.c { text-align: center; }
table.rp-tbl textarea { min-height: 52px; height: auto; padding: 6px 8px; font-size: 12.5px; line-height: 1.5; font-weight: normal; }
.rp-link { font-size: 12px; min-width: 150px; }
.nowrap { white-space: nowrap; }
.rp-all { height: auto; min-height: 220px; padding: 10px; font-size: 12.5px; line-height: 1.6; font-weight: normal; }

/* 77번: 버전 표시 */
.app-ver { font-size: 10.5px; color: var(--navy-sub); opacity: .75; margin-left: -12px; align-self: center; letter-spacing: .2px; }
@media (max-width: 760px) { .app-ver { display: none; } }
/* 78번: 사이트 주소 */
ol.steps { margin: 6px 0 0; padding-left: 20px; line-height: 1.8; font-size: 13px; }
table.kv th { background: #F3F5F8; color: var(--navy); }
/* 73번: 자동으로 채운 범위 */
table.sc-it input.auto { background: #FFF7E0; border-color: #F0C870; }
/* 74번: 테스트 결과 문자 */
.btn.tiny { height: 22px; padding: 0 7px; font-size: 11px; border-radius: 6px; font-weight: normal; }
.tsms-cfg { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; padding: 10px 12px; background: #F7F6FC; border-radius: 8px; }
.tsms-cfg .fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sub); }
.tsms-cfg textarea { height: auto; min-height: 44px; padding: 6px 8px; font-weight: normal; }
/* 76번: 특별 테스트 */
.sc-sp { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; }
.sc-sp .fld { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--sub); flex: 1 1 260px; max-width: 360px; }
.sc-sp .fld.s { flex: 0 0 90px; }
table.score td input[name^="raw"] { width: 60px; }
.grade { font-size: 12px; padding: 1px 7px; border-radius: 8px; background: #F3F2FA; color: #4E4A85; }
.grade.g1 { background: #4E4A85; color: #fff; } .grade.g2 { background: #7C77B8; color: #fff; }
/* 75번: 리포트 기간 */
.rp-period { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; }
.rp-custom { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.rp-custom .date-wrap { width: 140px; }
/* 엑셀 가져오기 */
.imp-help { margin: 10px 0 0; font-size: 13px; line-height: 1.8; padding-left: 18px; list-style: disc; }
.imp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.imp-grid > div { background: #F7F8FA; border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.imp-h { font-size: 13.5px; margin: 16px 0 6px; color: var(--navy); }
.imp-warn { font-size: 12.5px; max-height: 260px; overflow: auto; background: #FFF8EC; border-radius: 8px; padding: 8px 8px 8px 26px; margin: 0; }
table.imp-pay td, table.imp-pay th { text-align: center; white-space: nowrap; }
