/* =========================================================
 * 편입N 목업 시안 — 관리자 공용 CSS (P0 소유, 이후 단위는 수정 금지)
 * 로드 순서: tokens.css → site.css(버튼·배지·폼·탭·모달 공용) → admin.css → pages/pN.css
 * 목차: 1 셸(사이드바·상단바)  2 페이지 머리  3 통계 카드  4 패널·그리드  5 필터 바
 *       6 데이터 표  7 상태 배지  8 폼 패널  9 차트  10 기타(알림 목록·정렬 목록·로그인)
 * ========================================================= */
body.adm-body { background: var(--bg); font-size: 14px; }

/* ---------- 1. 셸 ---------- */
.adm { display: grid; grid-template-columns: var(--adm-side-w) minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--navy) var(--adm-side-w), transparent 0); }
.adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--navy); color: var(--slate-300); scrollbar-width: thin; scrollbar-color: var(--navy-line) transparent; z-index: 30; }
.adm-side-logo { display: flex; align-items: center; gap: 8px; height: var(--adm-top-h); padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.adm-side-logo .logo-img { height: 28px; }
.adm-side-logo small { font-size: 11px; font-weight: 700; color: var(--slate-400); background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 3px; }
.adm-nav { padding: 10px 10px 40px; }
.adm-group + .adm-group { margin-top: 2px; }
.adm-group-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); font-size: 14px; font-weight: 700; color: #dfe5ef; text-align: left; }
.adm-group-head:hover { background: rgba(255,255,255,.05); }
.adm-group-head .ico:first-child { color: var(--slate-400); }
.adm-group-head .chev { margin-left: auto; transition: transform .2s; color: var(--slate-500); }
.adm-group.is-open .adm-group-head .chev { transform: rotate(180deg); }
.adm-group.is-current .adm-group-head { color: #fff; }
.adm-group.is-current .adm-group-head .ico:first-child { color: #ff6a5e; }
.adm-sub { display: none; padding: 2px 0 8px 34px; }
.adm-group.is-open .adm-sub { display: block; }
.adm-sub a { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--slate-400); line-height: 1.4; }
.adm-sub a:hover { color: #fff; background: rgba(255,255,255,.04); }
.adm-sub a.is-active { color: #fff; background: rgba(255,255,255,.1); font-weight: 700; }
.adm-sub a.is-active::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #ff6a5e; flex-shrink: 0; margin-left: -10px; }
.adm-sub a.is-locked { color: #5e6c8c; }
.adm-sub a.is-locked .ico { margin-left: auto; }
.adm-sub .note-tag { height: 17px; font-size: 10px; padding: 0 5px; margin-left: auto; }

.adm-frame { min-width: 0; display: flex; flex-direction: column; }
.adm-top { position: sticky; top: 0; z-index: 20; height: var(--adm-top-h); background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.adm-top .adm-burger { display: none; width: 38px; height: 38px; border-radius: var(--radius); place-items: center; color: var(--navy); }
.adm-top .adm-burger:hover { background: var(--bg); }
.adm-search { position: relative; width: 280px; }
.adm-search .input { height: 38px; padding-left: 36px; background: var(--bg); border-color: transparent; font-size: 13px; }
.adm-search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--slate-500); }
.adm-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.adm-role { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--slate-500); }
.adm-role .seg button { font-size: 12px; padding: 5px 10px; }
.adm-bell { position: relative; width: 38px; height: 38px; border-radius: var(--radius); display: grid; place-items: center; color: var(--slate-600); }
.adm-bell:hover { background: var(--bg); }
.adm-bell .count { position: absolute; top: 5px; right: 5px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 3px; }
.adm-me { display: flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid var(--line); font-size: 13px; }
.adm-me .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.adm-me b { display: block; font-size: 13px; }
.adm-me span { font-size: 11px; color: var(--slate-500); }
.adm-main { padding: 24px 28px 60px; min-width: 0; flex: 1; }
.adm-dim { display: none; }

@media (max-width: 1279px) {
  .adm-search { width: 200px; }
  .adm-me div { display: none; }
}
@media (max-width: 1023px) {
  .adm { grid-template-columns: minmax(0, 1fr); background: none; }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .adm.is-side-open .adm-side { transform: none; box-shadow: var(--shadow-pop); }
  .adm.is-side-open .adm-dim { display: block; position: fixed; inset: 0; background: rgba(10,18,40,.45); z-index: 25; }
  .adm-top { padding: 0 14px; }
  .adm-top .adm-burger { display: inline-grid; }
  .adm-search { display: none; }
  .adm-main { padding: 18px 16px 48px; }
}
@media (max-width: 767px) {
  .adm-role > span { display: none; }
  .adm-role .seg button { padding: 5px 7px; font-size: 11px; }
  .adm-me { display: none; }
  .adm-top-right { gap: 4px; }
  .adm-top .adm-site { display: none; }
}

/* ---------- 2. 페이지 머리 ---------- */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.adm-crumb { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--slate-500); margin-bottom: 4px; }
.adm-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; line-height: 1.3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-head p { color: var(--slate-500); font-size: 13px; margin-top: 2px; }
.adm-head .row { gap: 6px; }
.adm-section-title { font-size: 16px; font-weight: 800; margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.adm-section-title[id] { scroll-margin-top: calc(var(--adm-top-h) + 12px); }   /* 사이드바 앵커 메뉴(대시보드 #sales 등)로 왔을 때 상단바에 가리지 않게 */

/* ---------- 3. 통계 카드 ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi-grid.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
a.kpi:hover { border-color: var(--navy); }
.kpi-label { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; color: var(--slate-600); font-weight: 600; }
.kpi-value { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.2; color: var(--navy); }
.kpi-value small { font-size: 14px; font-weight: 600; color: var(--slate-500); margin-left: 2px; letter-spacing: 0; }
.kpi-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--slate-500); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 12px; }
.delta.is-up { color: var(--red); }
.delta.is-up::before { content: "▲"; font-size: 9px; }
.delta.is-down { color: var(--blue); }
.delta.is-down::before { content: "▼"; font-size: 9px; }
.kpi.is-accent { background: var(--navy); border-color: var(--navy); }
.kpi.is-accent .kpi-label, .kpi.is-accent .kpi-sub { color: var(--slate-300); }
.kpi.is-accent .kpi-value { color: #fff; }
.kpi .progress { margin-top: 6px; }
@media (max-width: 1279px) { .kpi-grid.is-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .kpi-grid, .kpi-grid.is-3, .kpi-grid.is-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .kpi { padding: 14px; } .kpi-value { font-size: 22px; } .kpi-grid { gap: 10px; } }

/* ---------- 4. 패널·그리드 ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.panel-head .muted { font-size: 12px; }
.panel-body { padding: 18px; }
.panel-body.is-flush { padding: 0; }
.panel-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.panel + .panel, .panel + .adm-grid, .adm-grid + .panel, .adm-grid + .adm-grid, .kpi-grid + .panel, .kpi-grid + .adm-grid, .filter-bar + .panel { margin-top: 16px; }
.adm-grid { display: grid; gap: 16px; align-items: start; }
.adm-grid > *, .kpi-grid > * { margin-top: 0 !important; }
.adm-grid.is-stretch { align-items: stretch; }
.adm-grid.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adm-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.adm-grid.is-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.adm-grid.is-side { grid-template-columns: 300px minmax(0, 1fr); }
@media (max-width: 1279px) { .adm-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .adm-grid.is-2, .adm-grid.is-3, .adm-grid.is-main, .adm-grid.is-side { grid-template-columns: minmax(0, 1fr); } }
/* (EQH 2026-11-20) 한 줄에 좌우로 놓인 섹션의 높이 맞춤 — 2열이 되는 1024px 이상에서만. 1열(1023 이하)·390 은 이전과 같다.
   - 칸이 패널이면 그 패널이, 칸이 패널 묶음(.stack / 클래스 없는 div)이면 그 안의 마지막 패널(section)이 남는 높이를 채운다.
   - 채우는 패널은 세로 flex: 머리·도구줄은 위, .panel-foot/.dt-foot/.form-bottom 은 바닥, 남는 높이는 .panel-body 가 쓴다.
     본문에 차트(.line-chart/.bar-chart)만 있으면 차트가 높이를 채우고, 빈 상태(.empty)는 세로 가운데.
   - .panel.is-fit : 한쪽이 지나치게 긴 줄에서 긴 쪽 패널. 줄 높이를 옆 칸(최소 --fit-h)에 맞추고 표·본문은 패널 안에서 세로 스크롤(표 머리 고정).
   - .adm-grid.is-top : 맞추지 않을 격자(예외). 따라다니는(sticky) 칸은 각 단위 CSS 에서 align-self: start. */
@media (min-width: 1024px) {
  .adm-main .adm-grid:not(.is-top) { align-items: stretch; }
  .adm-main .adm-grid:not(.is-top) > div:not([class]) { display: flex; flex-direction: column; }
  .adm-main .adm-grid:not(.is-top) > .panel,
  .adm-main .adm-grid:not(.is-top) > :is(.stack, div:not([class])) > .panel:last-of-type { flex: 1 0 auto; display: flex; flex-direction: column; }
  .adm-main .adm-grid:not(.is-top) .panel > * { flex-shrink: 0; }
  .adm-main .adm-grid:not(.is-top) > .panel > .panel-body,
  .adm-main .adm-grid:not(.is-top) > * > .panel:last-of-type > .panel-body { flex-grow: 1; }
  .adm-main .adm-grid:not(.is-top) .panel > :is(.panel-foot, .dt-foot, .form-bottom) { margin-top: auto; }
  .adm-main .adm-grid:not(.is-top) .panel > .empty { margin-block: auto; }
  .adm-main .adm-grid:not(.is-top) .panel > .panel-body:has(> .line-chart, > .bar-chart) { display: flex; flex-direction: column; }
  .adm-main .adm-grid:not(.is-top) .panel > .panel-body > :is(.line-chart, .bar-chart) { flex: 1 0 auto; }
  .adm-main .adm-grid:not(.is-top) > .panel.is-fit { contain: size; contain-intrinsic-height: var(--fit-h, 560px); }
  .adm-main .adm-grid:not(.is-top) > .panel.is-fit > :is(.dt-wrap, .panel-body) { flex: 1 1 0; min-height: 0; overflow-y: auto; }
}

/* 학생 유형 전환 바 (LMS: 인강 / 학원) */
.mode-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.mode-bar > b { font-size: 13px; }
.mode-bar .seg { background: var(--bg); }
.mode-bar .seg .is-active { background: var(--navy); color: #fff; }
.mode-bar .muted { font-size: 12px; }

/* ---------- 5. 필터 바 ---------- */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.filter-bar .fb-item { display: grid; gap: 4px; min-width: 0; }
.filter-bar .fb-item > label, .filter-bar .fb-item > span { font-size: 12px; font-weight: 700; color: var(--slate-600); }
.filter-bar .input, .filter-bar .select { height: 36px; font-size: 13px; }
.filter-bar .select { padding-right: 30px; background-position: right 10px center; min-width: 120px; }
.filter-bar .input { min-width: 180px; }
.filter-bar .fb-range { display: flex; align-items: center; gap: 4px; }
.filter-bar .fb-range .input { min-width: 0; width: 140px; }
.filter-bar .fb-actions { display: flex; gap: 6px; margin-left: auto; }
.filter-bar .btn { height: 36px; }
@media (max-width: 767px) {
  .filter-bar .fb-item { flex: 1 1 100%; }
  .filter-bar .input, .filter-bar .select, .filter-bar .fb-range .input { width: 100%; min-width: 0; }
  .filter-bar .fb-range { width: 100%; }
  .filter-bar .fb-actions { width: 100%; margin-left: 0; }
  .filter-bar .fb-actions .btn { flex: 1; }
}

/* ---------- 6. 데이터 표 ---------- */
.dt-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.dt-tools .row { gap: 6px; }
.dt-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dt { width: 100%; font-size: 13px; }
.dt th { position: sticky; top: 0; padding: 10px 12px; background: #f8f9fb; border-bottom: 1px solid var(--line); color: var(--slate-600); font-weight: 700; font-size: 12px; text-align: left; white-space: nowrap; }
.dt td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); color: var(--navy); vertical-align: middle; white-space: nowrap; }
.dt td.is-wrap { white-space: normal; min-width: 200px; }
.dt tbody tr:hover td { background: #fafbfd; }
.dt tbody tr.is-selected td { background: var(--blue-soft); }
.dt .t-right, .dt th.t-right { text-align: right; }
.dt .t-center, .dt th.t-center { text-align: center; }
.dt .chk { width: 36px; }
.dt .chk input { width: 16px; height: 16px; accent-color: var(--navy); margin: 0; }
.dt a.link { color: var(--blue); font-weight: 600; }
.dt a.link:hover { text-decoration: underline; }
.dt .dt-actions { display: flex; gap: 4px; justify-content: flex-end; }
.dt .sub { display: block; font-size: 11px; color: var(--slate-500); }
.dt .num { font-variant-numeric: tabular-nums; }
.dt-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 18px; font-size: 12px; color: var(--slate-500); }
.dt-foot .pager { margin: 0; }
.dt-foot .pager a, .dt-foot .pager span { min-width: 30px; height: 30px; }

/* ---------- 7. 상태 배지 ---------- */
.st { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--slate-600); }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.is-ok { background: var(--green-soft); color: var(--green); }       /* 완료·정상·결제완료 */
.st.is-wait { background: var(--amber-soft); color: var(--amber); }     /* 대기·접수·처리중 */
.st.is-warn { background: var(--orange-soft); color: var(--orange); }   /* 주의·만료 임박 */
.st.is-red { background: var(--red-soft); color: var(--red); }          /* 취소·환불·차단·실패 */
.st.is-info { background: var(--blue-soft); color: var(--blue); }       /* 진행중·발송중 */
.st.is-off { background: var(--line-soft); color: var(--slate-500); }   /* 비활성·휴면·종료 */

/* ---------- 8. 폼 패널 ---------- */
.fg { display: grid; border-top: 1px solid var(--line); }
.fg-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.fg-label { padding: 14px 16px; background: #fafbfc; font-size: 13px; font-weight: 700; color: var(--slate-600); display: flex; align-items: flex-start; gap: 2px; }
.fg-field { padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.fg-field > .input, .fg-field > .select, .fg-field > .textarea { max-width: 520px; }
.fg-field .input, .fg-field .select { height: 38px; font-size: 13px; }
.fg-field .select { padding-right: 30px; background-position: right 10px center; }
.fg-field .hint { width: 100%; }
.panel .fg { border-top: 0; }
.upload-box { width: 100%; border: 1px dashed var(--slate-300); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--slate-500); font-size: 13px; background: #fbfcfd; }
.upload-box .ico { margin: 0 auto 6px; color: var(--slate-400); }
.form-bottom { display: flex; justify-content: center; gap: 8px; padding: 18px; }
@media (max-width: 767px) {
  .fg-row { grid-template-columns: minmax(0, 1fr); }
  .fg-label { padding: 10px 14px 4px; background: #fff; }
  .fg-field { padding: 4px 14px 12px; }
}

/* ---------- 9. 차트 ---------- */
/* 세로 막대: <div class="bar-chart"><div class="bc-col"><span class="bc-bar" style="--v:72%" data-v="7.2"></span><span class="bc-label">월</span></div>…</div>
   또는 <div class="bar-chart" data-bar-chart="12,18,9" data-labels="월,화,수"></div> (admin-chrome.js 가 그림) */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 220px; padding: 22px 4px 0; border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--line-soft) 1px, transparent 1px); background-size: 100% 25%; background-position: 0 22px; }
.bc-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.bc-bar { width: min(100%, 34px); height: var(--v, 0%); background: var(--navy); border-radius: 3px 3px 0 0; position: relative; transition: height .4s var(--ease); }
.bc-bar.is-red, .bc-col.is-hl .bc-bar { background: var(--red); }
.bc-bar.is-soft { background: var(--slate-300); }
.bc-bar[data-v]::after { content: attr(data-v); position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 3px; font-size: 11px; font-weight: 700; color: var(--slate-600); white-space: nowrap; }
.bc-label { position: absolute; top: 100%; margin-top: 6px; font-size: 11px; color: var(--slate-500); white-space: nowrap; }
.bar-chart + .chart-axis-space { height: 24px; }
.bar-chart.is-pair .bc-col { flex-direction: row; align-items: flex-end; justify-content: center; gap: 3px; }
.bar-chart.is-pair .bc-bar { width: min(45%, 16px); }
/* 가로 막대 목록 */
.hbar { display: grid; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13px; }
.hbar-row > span:first-child { color: var(--slate-600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; background: var(--line-soft); border-radius: 5px; overflow: hidden; }
.hbar-track > span { display: block; height: 100%; width: var(--v, 0%); background: var(--navy); border-radius: inherit; }
.hbar-row.is-hl .hbar-track > span { background: var(--red); }
.hbar-row > b { text-align: right; font-variant-numeric: tabular-nums; }
/* 선 차트: <div class="line-chart" data-line-chart="12,18,15" data-labels="월,화,수" data-line2="8,9,12"></div> */
.line-chart { width: 100%; height: 220px; position: relative; display: flex; flex-direction: column; }
.line-chart svg { width: 100%; flex: 1; min-height: 0; overflow: visible; display: block; }
.line-chart .lc-grid { stroke: var(--line-soft); stroke-width: 1; }
.line-chart .lc-line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.line-chart .lc-line.is-2 { stroke: var(--navy); stroke-dasharray: 5 4; stroke-width: 2; }
.line-chart .lc-area { fill: url(#lcGrad); opacity: 1; }
.line-chart .lc-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--slate-500); margin-top: 6px; flex-shrink: 0; }
@media (max-width: 767px) { .line-chart .lc-labels span:nth-child(even) { visibility: hidden; } }
/* 도넛: <div class="donut" style="--a:62;--b:28"><b>62%</b><span>모바일</span></div>  a=red, b=navy, 나머지=회색 */
.donut { --a: 50; --b: 30; width: 150px; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--red) 0 calc(var(--a) * 1%), var(--navy) 0 calc((var(--a) + var(--b)) * 1%), var(--slate-300) 0); display: grid; place-content: center; text-align: center; position: relative; flex-shrink: 0; }
.donut::before { content: ""; position: absolute; inset: 22px; background: #fff; border-radius: 50%; }
.donut > * { position: relative; }
.donut b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.donut span { font-size: 11px; color: var(--slate-500); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--slate-600); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--navy); display: inline-block; }
.legend i.is-red { background: var(--red); } .legend i.is-gray { background: var(--slate-300); } .legend i.is-blue { background: var(--blue); }
.legend i.is-dash { height: 0; border-top: 2px dashed var(--navy); background: none; border-radius: 0; }

/* ---------- 10. 기타 ---------- */
/* 미처리 건 알림 */
.alert-list li + li { border-top: 1px solid var(--line-soft); }
.alert-list a { display: flex; align-items: center; gap: 12px; padding: 13px 18px; }
.alert-list a:hover { background: #fafbfd; }
.alert-list .al-t { flex: 1; min-width: 0; }
.alert-list .al-t b { display: block; font-size: 14px; }
.alert-list .al-t span { font-size: 12px; color: var(--slate-500); }
.alert-list .al-n { font-size: 20px; font-weight: 800; color: var(--red); }
.alert-list .al-n small { font-size: 12px; color: var(--slate-500); font-weight: 600; margin-left: 1px; }
/* 정렬(드래그) 목록 — 동작은 각 단위 JS */
.sort-list { display: grid; gap: 8px; }
.sort-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sort-item .handle { color: var(--slate-400); cursor: grab; display: grid; place-items: center; }
.sort-item.is-dragging { opacity: .5; border-style: dashed; }
.sort-item.is-over { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.sort-item .si-main { flex: 1; min-width: 0; }
.sort-item.is-off { background: #fafbfc; color: var(--slate-500); }
/* 타임라인/로그 */
.timeline { display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 16px 20px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline time { display: block; font-size: 11px; color: var(--slate-500); }

/* 관리자 로그인 */
.adm-login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #fff; }
.adm-login-visual { background: radial-gradient(circle at 80% 20%, #2d4a8a 0, transparent 45%), linear-gradient(135deg, #0f1b38, #16254a 60%, #22345f); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.adm-login-visual::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgba(255,255,255,.04); }
#login-logo .logo-img { height: 40px; }
.adm-login-visual h2 { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.3; }
.adm-login-visual p { color: var(--slate-300); margin-top: 12px; font-size: 15px; }
.adm-login-visual ul { display: grid; gap: 10px; margin-top: 28px; position: relative; z-index: 1; }
.adm-login-visual li { font-size: 14px; color: #dfe5ef; }
.adm-login-form { display: grid; place-items: center; padding: 40px 24px; }
.adm-login-form .box { width: 100%; max-width: 400px; border: 0; padding: 0; }
.adm-login-form h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.6px; }
@media (max-width: 1023px) {
  .adm-login { grid-template-columns: minmax(0, 1fr); }
  .adm-login-visual { padding: 28px 20px; }
  .adm-login-visual h2 { font-size: 24px; }
  .adm-login-visual ul { display: none; }
}

/* ---------- F2 보정 (2026-11-13) ---------- */
/* 사이드바: 사이트맵 한 메뉴가 화면 둘로 나뉜 곳(게시판·상담 신청)의 소제목 */
.adm-subhead { padding: 8px 10px 3px; font-size: 12px; font-weight: 700; color: var(--slate-400); letter-spacing: -0.2px; }
.adm-sub a.is-nested { padding-left: 20px; font-size: 12.5px; }
.adm-sub a.is-nested.is-active::before { margin-left: -12px; }
/* 권한 밖 화면 안내(모든 관리자 화면 공통, admin-chrome.js 가 붙임) */
.adm-lock-note { margin-bottom: 16px; font-size: 13.5px; }
/* 로그인 권한 카드: 390 에서 "캠퍼스관리자" 가 글자 중간에서 끊기지 않게 */
.adm-login-form .option-card strong { word-break: keep-all; }
@media (max-width: 479px) { .adm-login-form .option-card { padding-left: 10px; padding-right: 10px; font-size: 12px; } .adm-login-form .option-card strong { font-size: 13px; } }

/* (F3) 관리자 표 가로 스크롤 안내 — admin-chrome.js 가 .dt-wrap 이 넘칠 때만 붙인다. 모양은 site.css 의 .tbl-hint 를 그대로 쓰고 여백만 패널에 맞춘다 */
.adm-tbl-hint { margin: 0; padding: 8px 14px 4px; }
.dt-wrap.is-overflow { background:
  linear-gradient(90deg, #fff 30%, rgba(255,255,255,0)) left center / 24px 100% no-repeat local,
  linear-gradient(270deg, #fff 30%, rgba(255,255,255,0)) right center / 24px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(15,30,60,.16), rgba(15,30,60,0)) left center / 10px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(15,30,60,.16), rgba(15,30,60,0)) right center / 10px 100% no-repeat scroll; }

/* 시안 초기화면 버튼(admin-chrome.js) — 모양은 site.css .mock-home.
 * 1024 이상: 사이드바 맨 아래에 붙여 둔다(사이드바를 스크롤해도 항상 보임, 끝까지 내리면 메뉴 아래에 자리 잡아 메뉴를 가리지 않음).
 * 1023 이하: 사이드바가 숨으므로 화면 좌측 하단 고정 버튼(.adm-home-float)으로 대신한다. */
.adm-side-home { display: none; }
@media (min-width: 1024px) {
  .adm-side { display: flex; flex-direction: column; }
  .adm-side > * { flex-shrink: 0; }
  .adm-side-home { display: block; position: sticky; bottom: 0; margin-top: auto; padding: 10px 20px 14px; background: var(--navy); border-top: 1px solid rgba(255,255,255,.08); z-index: 1; }
  .adm-home-float { display: none; }
}
@media (max-width: 1023px) { .adm.is-side-open .adm-home-float { display: none; } }
