/* ==========================================================================
   관리자 (admin.html) — 리포트 11장 체크리스트 '관리자' 항목
   통계 숫자 타일 9칸 · 좌측 사이드 내비 · 승인 대기 리스트 · 테이블 스타일
   --------------------------------------------------------------------------
   운영 화면이므로 공개 페이지의 네이비 헤더 · GNB · 푸터를 쓰지 않고
   '좌측 네이비 사이드바 + 상단 슬림 바' 구조로 바꿉니다. 색·서체·버튼·
   라운드는 tokens.css 를 그대로 따르므로 브랜드는 공개 화면과 같습니다.
   ========================================================================== */

:root { --ad-side: 252px; --ad-top: 64px; }

.ad { display: grid; grid-template-columns: var(--ad-side) minmax(0, 1fr); min-height: 100vh; }

/* --- 좌측 사이드 내비 ---------------------------------------------------- */
.adside {
  background: var(--navy); color: var(--on-navy);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.adside__brand {
  height: var(--ad-top); flex: none; display: flex; align-items: center; gap: 10px;
  padding: 0 18px; border-bottom: 1px solid var(--line-navy);
}
.adside__brand .brand__emblem { width: 32px; height: 32px; }
.adside__brand b { font-size: 14.5px; font-weight: 700; color: #fff; letter-spacing: -0.04em; }
.adside__brand span { font-size: 11px; color: var(--yellow); display: block; letter-spacing: 0; }

.adnav { padding: 14px 10px; display: grid; gap: 2px; }
.adnav__h {
  padding: 14px 10px 7px; font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.4); letter-spacing: .04em;
}
.adnav a {
  display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px;
  border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,.76); letter-spacing: -0.03em;
  transition: background var(--t-fast), color var(--t-fast);
}
.adnav a:hover { background: var(--navy-2); color: #fff; }
.adnav a .ic { width: 19px; height: 19px; flex: none; opacity: .72; }
.adnav a[aria-current="page"] { background: var(--navy-2); color: #fff; font-weight: 700; }
.adnav a[aria-current="page"] .ic { color: var(--yellow); opacity: 1; }
/* 처리할 건수 — 사이드바에서 바로 읽히게 한다 */
.adnav__n {
  margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill); background: var(--yellow); color: var(--navy);
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}

.adside__foot { margin-top: auto; padding: 16px 14px 20px; border-top: 1px solid var(--line-navy); }
/* 로그아웃은 실제 동작(세션 종료)이라 button 이다. 링크와 같은 모양을
   유지해야 사이드바 안에서 따로 튀지 않는다. */
.adside__foot a,
.adside__foot button { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.6); min-height: 32px; }
.adside__foot button { width: 100%; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.adside__foot a:hover,
.adside__foot button:hover { color: var(--yellow); }
.adside__foot button:disabled { opacity: .5; cursor: default; }
.adside__foot .ic { width: 16px; height: 16px; }

/* --- 상단 슬림 바 -------------------------------------------------------- */
.adtop {
  position: sticky; top: 0; z-index: 60; height: var(--ad-top); flex: none;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 clamp(18px, 2.2vw, 32px);
}
.adtop__burger { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); place-items: center; color: var(--navy); }
.adtop__burger:hover { background: var(--off); }
.adtop h1 { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -0.04em; }
.adtop__crumb { font-size: 12px; color: var(--ink-3); }

.adsearch { margin-left: auto; position: relative; display: flex; align-items: center; }
.adsearch .ic { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.adsearch input {
  width: 248px; height: 40px; padding: 0 14px 0 38px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--off);
  font-size: 14px; transition: border-color var(--t-fast), background var(--t-fast);
}
.adsearch input:focus { outline: none; background: #fff; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(46,74,104,.1); }
.adsearch input::placeholder { color: var(--ink-3); }

.adme { display: flex; align-items: center; gap: 9px; flex: none; padding-left: 16px; border-left: 1px solid var(--line); }
.adme__av {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--navy); color: var(--yellow); font-size: 12px; font-weight: 700;
}
.adme__t b { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.adme__t span { font-size: 11.5px; color: var(--ink-3); }

/* --- 본문 --------------------------------------------------------------- */
.admain { display: flex; flex-direction: column; min-width: 0; background: var(--off); }
.adbody { padding: clamp(20px, 2.4vw, 32px) clamp(18px, 2.2vw, 32px) 56px; display: grid; gap: clamp(18px, 2vw, 26px); }

.adsect__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.adsect__head h2 { font-size: 17.5px; font-weight: 700; color: var(--navy); letter-spacing: -0.04em; }
.adsect__head p { margin-top: 5px; font-size: 13.5px; color: var(--ink-2); }

/* --- 통계 숫자 타일 9칸 --------------------------------------------------
   9개 모두 '현재 값 하나'이므로 차트가 아니라 숫자 타일이 맞는 형태입니다.
   값은 큰 글자라 비례숫자(기본)를 쓰고, tabular-nums 는 세로로 줄을 맞춰야
   하는 표 열에만 씁니다.
   ----------------------------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 17px 18px 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
a.tile:hover { border-color: var(--navy-3); box-shadow: var(--sh-1); }
.tile__label { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.02em; }
.tile__v { margin-top: 7px; display: flex; align-items: baseline; gap: 4px; }
.tile__n { font-size: 31px; font-weight: 700; color: var(--navy); letter-spacing: -0.045em; line-height: 1.1; }
.tile__u { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }

/* 증감 — 화살표 + 부호 + 기준기간을 함께 적어 색에만 의존하지 않게 한다 */
.tile__d { margin-top: 9px; display: flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; }
.tile__d svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile__d em { font-style: normal; font-variant-numeric: tabular-nums; }
.tile__d i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.tile__d--good { color: var(--st-ok-tx); }
.tile__d--bad  { color: var(--st-no-tx); }
.tile__d--flat { color: var(--ink-3); }

/* 가장 먼저 처리해야 하는 타일 — 크기는 그대로 두고 면으로만 강조 */
.tile--lead { background: var(--cream); border-color: var(--line-cream); }
.tile--lead::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  border-radius: 0 2px 2px 0; background: var(--yellow-3);
}
.tile--lead .tile__label { color: var(--navy-2); }
a.tile--lead:hover { border-color: var(--yellow-3); }

/* 예시 수치 표시 */
.tile__est {
  position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 700;
  color: var(--ink-3); background: var(--off); border-radius: var(--r-xs); padding: 2px 6px;
}
.tile--lead .tile__est { background: rgba(255,255,255,.7); }

/* --- 패널 --------------------------------------------------------------- */
.adpanel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.adpanel__head {
  padding: 18px 20px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.adpanel__head h2 { font-size: 16.5px; font-weight: 700; color: var(--navy); letter-spacing: -0.04em; }
.adpanel__head p { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.adpanel__act { display: flex; align-items: center; gap: 8px; }

/* 상태 탭 — 건수를 함께 보여 어디를 봐야 하는지 먼저 읽히게 한다 */
.adtabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.adtab {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--off); color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; transition: background var(--t-fast), color var(--t-fast);
}
.adtab:hover { background: var(--cream); color: var(--navy); }
.adtab b { font-variant-numeric: tabular-nums; }
.adtab.is-on { background: var(--navy); color: #fff; }
.adtab.is-on b { color: var(--yellow); }

/* 선택 일괄 처리 막대 */
.adbulk {
  display: none; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 20px; background: var(--yellow-2); border-bottom: 1px solid var(--line-cream);
}
.adbulk.is-on { display: flex; }
.adbulk__n { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.adbulk__n b { font-variant-numeric: tabular-nums; }
.adbulk .btn-line { min-height: 36px; background: #fff; }
.adbulk__clear { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--navy-2); }
.adbulk__clear:hover { color: var(--navy); }

/* --- 테이블 스타일 ------------------------------------------------------- */
.atable__wrap { overflow-x: auto; }
.atable { width: 100%; min-width: 980px; border-collapse: collapse; }
.atable th, .atable td { text-align: left; padding: 13px 14px; vertical-align: middle; }
/* 열 머리는 고정(sticky)하지 않는다.
   .atable__wrap 이 가로 스크롤 때문에 overflow 컨테이너라서, th 의 sticky 는
   뷰포트가 아니라 그 래퍼를 기준으로 걸린다. 래퍼는 세로로 스크롤되지 않으므로
   머리가 고정되지도 않으면서 top 값만큼(64px) 아래로 밀려 빈 띠가 생겼다.
   고정 머리가 필요해지면 래퍼에 max-height 를 주어 세로 스크롤을 만들고
   top: 0 으로 붙여야 한다. */
.atable thead th {
  background: var(--off); border-bottom: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.atable tbody tr { border-bottom: 1px solid var(--line-2); transition: background var(--t-fast); }
.atable tbody tr:hover { background: var(--off); }
/* 선택된 행 — 행 배경이 행 안의 배지 배경과 겹치면 배지가 사라진다.
   --yellow-2 는 .grade--premium 과 같은 값이라 쓸 수 없고, --off 는 BASIC
   .pill 과 같다. 어느 배지 배경과도 겹치지 않는 옅은 네이비 틴트를 쓰고,
   '활성'을 뜻하는 옐로우는 왼쪽 띠로만 얹는다. */
.atable tbody tr.is-sel { background: #DCE6F2; box-shadow: inset 3px 0 0 var(--yellow-3); }
.atable tbody tr.is-sel:hover { background: #D3E0EF; }
/* 미제출 서류 칸은 선택 배경 위에서도 보이도록 흰색으로 */
.atable tbody tr.is-sel .docs__bar i { background: #fff; }
.atable tbody tr.is-sel .docs__bar i.is-on { background: var(--navy-3); }
.atable tbody tr.is-sel .docs.is-short .docs__bar i.is-on { background: var(--st-wait); }
.atable tbody tr:last-child { border-bottom: 0; }
.atable td { font-size: 14px; }
.atable .c-chk { width: 44px; padding-right: 0; }
.atable .c-num { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.atable .c-act { width: 1%; white-space: nowrap; }

.atable__who b { font-weight: 700; color: var(--navy); }
.atable__who span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }
.atable__org b { display: block; font-weight: 600; color: var(--ink); }
.atable__org span { font-size: 12.5px; color: var(--ink-3); }
.atable__note { display: block; margin-top: 3px; font-size: 12px; color: var(--st-no-tx); }

/* 서류 제출 — 분수 + 미제출 표시 */
.docs { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 600; }
.docs__bar { display: inline-flex; gap: 2px; }
.docs__bar i { width: 7px; height: 14px; border-radius: 2px; background: var(--line); }
.docs__bar i.is-on { background: var(--navy-3); }
.docs.is-short { color: var(--st-wait-tx); }
.docs.is-short .docs__bar i.is-on { background: var(--st-wait); }

.atable .btn-line { min-height: 34px; padding: 0 12px; font-size: 13px; }
.atable__act { display: flex; gap: 6px; }

/* 행 선택 체크박스 — .fopt 와 같은 생김새를 쓴다 */
.achk { display: inline-flex; cursor: pointer; }
.achk input { position: absolute; opacity: 0; width: 0; height: 0; }
.achk .box {
  width: 18px; height: 18px; border-radius: var(--r-xs); border: 1.5px solid var(--line);
  background: #fff; position: relative; transition: border-color var(--t-fast), background var(--t-fast);
}
.achk input:checked + .box { border-color: var(--navy); background: var(--navy); }
.achk input:checked + .box::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(42deg);
}
.achk input:focus-visible + .box { outline: 2px solid var(--yellow); outline-offset: 2px; }

.atable__foot { padding: 6px 20px 18px; }
.atable__foot .pager { padding-top: 14px; }

.adempty { padding: 52px 20px; text-align: center; }
.adempty strong { display: block; font-size: 15.5px; color: var(--navy); }
.adempty p { margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }

/* --- 시안 안내 ----------------------------------------------------------- */
.adnotice { padding: 0 clamp(18px, 2.2vw, 32px) 40px; }
.adnotice .notice-bar__in { background: #fff; border: 1px solid var(--line); }
.adnotice .notice-bar__in .pill { background: var(--off); }
.adnotice .notice-bar__links a, .adnotice .notice-bar__links span { background: var(--off); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1240px) {
  :root { --ad-side: 224px; }
  .adsearch input { width: 190px; }
}
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adme__t { display: none; }
}
@media (max-width: 900px) {
  .ad { grid-template-columns: 1fr; }
  .adside {
    position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 97; height: 100vh;
    transform: translateX(-100%); transition: transform .32s var(--ease);
  }
  .adside.is-open { transform: none; }
  .adtop__burger { display: grid; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adscrim { position: fixed; inset: 0; z-index: 96; background: rgba(17,38,64,.5); }
}
@media (max-width: 640px) {
  .adsearch { display: none; }
  .adtop h1 { font-size: 15.5px; }
}
/* 타일은 2열을 최대한 유지한다 — 9칸이 1열로 쌓이면 화면이 너무 길어진다 */
@media (max-width: 479px) {
  .tiles { grid-template-columns: 1fr; }
}

/* --- 정렬 가능한 열 머리 --------------------------------------------------
   정렬 상태는 th 의 aria-sort 가 단일 출처입니다. 화살표는 그 값을 따라
   그려지므로 마크업과 보이는 모습이 어긋날 수 없습니다.
   ----------------------------------------------------------------------- */
.asort {
  display: inline-flex; align-items: center; gap: 5px;
  font: inherit; font-weight: 700; color: inherit; letter-spacing: inherit;
}
.asort::after {
  content: ""; width: 0; height: 0; flex: none;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent;
  border-top: 4.5px solid currentColor; opacity: .3;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.asort:hover { color: var(--navy); }
.asort:hover::after { opacity: .6; }
th[aria-sort="descending"] .asort, th[aria-sort="ascending"] .asort { color: var(--navy); }
th[aria-sort="descending"] .asort::after { opacity: 1; }
th[aria-sort="ascending"] .asort::after { opacity: 1; transform: rotate(180deg); }

.adnav__n[hidden] { display: none; }

/* 표의 min-width(980px) 가 그리드 열 너비를 끌어올려 좁은 화면에서 본문 전체가
   가로로 밀리는 것을 막는다. 가로 스크롤은 .atable__wrap 안에서만 생겨야 한다. */
.adbody > * { min-width: 0; }
.adpanel, .atable__wrap { min-width: 0; }

/* --- 아직 만들지 않은 메뉴 ------------------------------------------------
   빈 링크(href="#")로 두면 눌렀을 때 아무 일도 안 나서 고장으로 읽힙니다.
   링크가 아닌 요소로 두고 '3차' 꼬리표를 붙여 의도를 분명히 합니다.
   ----------------------------------------------------------------------- */
.adnav__soon {
  display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px;
  border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500;
  color: rgba(255,255,255,.34); letter-spacing: -0.03em; cursor: default;
}
.adnav__soon .ic { width: 19px; height: 19px; flex: none; opacity: .4; }
.adnav__soon em {
  margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700;
  color: rgba(255,255,255,.42); border: 1px solid var(--line-navy);
  border-radius: var(--r-xs); padding: 1px 5px; letter-spacing: 0;
}

/* --- 4칸 요약 타일 (관리 화면 상단) -------------------------------------- */
.tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- 입점 기간 ------------------------------------------------------------
   남은 일수는 색뿐 아니라 숫자로도 적어 색에만 기대지 않는다.
   ----------------------------------------------------------------------- */
.term { display: flex; flex-direction: column; gap: 3px; }
.term__d { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.term__n { font-size: 12.5px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.term__n.is-soon { color: var(--st-wait-tx); }
.term__n.is-no   { color: var(--st-no-tx); }

/* --- 조회 · 문의 ---------------------------------------------------------- */
.perf {
  display: grid; grid-template-columns: auto auto; gap: 1px 6px;
  font-variant-numeric: tabular-nums; align-items: baseline;
}
.perf b { font-size: 14px; font-weight: 700; color: var(--navy); text-align: right; }
.perf span { font-size: 12px; color: var(--ink-3); }

/* --- 문의 경로 ------------------------------------------------------------ */
.chan {
  display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 10px 0 8px;
  border-radius: var(--r-sm); background: var(--off); color: var(--ink-2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.chan svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* 전화는 받은 즉시 끝나는 경우가 많아 폼 문의와 후속 처리가 다르다 — 면으로 구분 */
.chan--call { background: var(--cream); color: var(--navy); }

/* --- 문의 내용 ------------------------------------------------------------ */
.atable__subj { font-size: 14px; color: var(--ink); min-width: 220px; }

@media (max-width: 1100px) { .tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px)  { .tiles--4 { grid-template-columns: 1fr; } }

/* ==========================================================================
   통계 · 리포트 차트
   막대는 24px 이하 / 데이터 끝만 4px 라운드 · 바닥은 각지게 / 격자는 실선
   헤어라인 / 값과 라벨은 글자색 토큰을 쓴다(막대 색을 글자에 쓰지 않는다).
   ========================================================================== */
.chartgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 20px); }
.chart__body { padding: 18px 20px 6px; }
.chart__table { padding: 0 20px 18px; }
.chart__table[hidden] { display: none; }
.chart__note { padding: 0 20px 16px; font-size: 12.5px; color: var(--ink-3); }

/* --- 세로 막대 --- */
.cc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.cc__y {
  display: flex; flex-direction: column; justify-content: space-between;
  height: 168px; font-size: 11px; color: var(--ink-3);
  text-align: right; font-variant-numeric: tabular-nums;
}
.cc__y span { line-height: 1; transform: translateY(-.4em); }
.cc__area { position: relative; min-width: 0; }
/* 격자 — 점선 금지, 바탕보다 한 단계만 진한 실선 */
.cc__grid {
  position: absolute; left: 0; right: 0; top: 0; height: 168px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.cc__grid i { display: block; height: 1px; background: var(--line-2); }
.cc__plot { position: relative; height: 168px; display: flex; align-items: flex-end; gap: 5px; }
.cc__col {
  flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column;
  justify-content: flex-end; align-items: center; border-radius: var(--r-xs);
}
.cc__col:hover, .cc__col:focus-visible { background: rgba(23,47,75,.045); outline: none; }
.cc__col:focus-visible { box-shadow: 0 0 0 2px var(--yellow); }
.cc__bar {
  width: 100%; max-width: 24px; min-height: 2px; background: #294866;
  border-radius: 4px 4px 0 0;   /* 데이터 끝만 둥글게, 바닥은 각지게 */
}
.cc__v { font-size: 11px; font-weight: 700; color: var(--navy); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.cc__axis { display: flex; gap: 5px; margin-top: 7px; }
.cc__axis span { flex: 1; min-width: 0; text-align: center; font-size: 11px; color: var(--ink-3); }

/* --- 가로 막대 --- */
.hb { display: grid; gap: 9px; }
.hb__row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 12px;
  align-items: center; border-radius: var(--r-xs); padding: 2px 4px; margin-inline: -4px;
}
.hb__row:hover, .hb__row:focus-visible { background: rgba(23,47,75,.045); outline: none; }
.hb__row:focus-visible { box-shadow: 0 0 0 2px var(--yellow); }
.hb__l { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb__track { height: 14px; background: var(--off); border-radius: 4px; }
.hb__fill { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; }
.hb__v { font-size: 13px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

/* --- 누적 막대 (등급 구성) --- */
.sb { display: flex; gap: 2px; height: 30px; }   /* 2px 틈이 칸을 가른다 — 테두리 금지 */
.sb__seg { display: block; height: 100%; }
.sb__seg:first-child { border-radius: 4px 0 0 4px; }
.sb__seg:last-child  { border-radius: 0 4px 4px 0; }
.sb__seg:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.lg { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.lg__i { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.lg__i i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.lg__i b { color: var(--navy); font-variant-numeric: tabular-nums; }

/* --- 툴팁 --- */
.ctip {
  position: absolute; z-index: 200; transform: translate(-50%, -100%);
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 600;
  padding: 6px 10px; border-radius: var(--r-sm); pointer-events: none;
  white-space: nowrap; box-shadow: var(--sh-2);
}
.ctip[hidden] { display: none; }

.atable--tight { min-width: 0; }
.atable--tight th, .atable--tight td { padding: 9px 12px; font-size: 13.5px; }

@media (max-width: 1100px) { .chartgrid { grid-template-columns: 1fr; } }

/* --- 공지 관리 · 인증 요청 추가 조각 ------------------------------------- */
.pinned {
  display: inline-flex; align-items: center; gap: 4px; margin-right: 6px;
  height: 21px; padding: 0 7px 0 5px; border-radius: var(--r-xs);
  background: var(--yellow-2); color: var(--navy); font-size: 11px; font-weight: 700;
}
.pinned svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.dim { font-style: normal; color: var(--ink-3); }

/* 확인 방법 — 추천은 사람이 보증하는 것이라 서류 제출과 후속 확인이 다르다 */
.chan--refer { background: var(--cream); color: var(--navy); }

/* --- 설정 폼 ------------------------------------------------------------- */
.setform { padding: 6px 20px 18px; }
.setform .frow { grid-template-columns: 180px minmax(0, 1fr); }
.setform .frow--stack { align-items: start; }
.setform .formfoot { padding-top: 18px; }
.setform .formfoot__note { color: var(--st-wait-tx); font-weight: 600; }
.setform .atable__wrap { margin-bottom: 4px; }
.inp--sm { height: 40px; font-size: 14px; max-width: 160px; }

@media (max-width: 960px) { .setform .frow { grid-template-columns: 1fr; } }

/* --- 처리 결과 안내 (토스트) ---------------------------------------------
   서버 응답을 기다리는 화면이 되면서 '눌렀는데 아무 반응이 없다'를 막을
   자리가 필요해졌습니다. 기존 [data-live] 는 .sr(스크린리더 전용)이라
   눈으로는 보이지 않아, 보이는 안내를 따로 둡니다.

   표 아래쪽 행에서 버튼을 누르면 화면 위쪽 안내는 보이지 않으므로
   위치를 고정합니다. 성공은 잠시 뒤 사라지고, 실패는 직접 닫을 때까지
   남습니다 — 실패를 놓치면 처리된 줄 알고 넘어가기 때문입니다.
   ----------------------------------------------------------------------- */
.adtoast {
  position: fixed; z-index: 90;
  left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: flex-start; gap: 10px;
  max-width: min(560px, calc(100vw - 32px));
  padding: 13px 14px 13px 15px;
  border-radius: var(--r-md);
  background: var(--navy); color: #fff;
  box-shadow: 0 8px 28px -10px rgba(23, 47, 75, .5), 0 2px 6px rgba(23, 47, 75, .2);
  font-size: 14px; font-weight: 600; line-height: 1.5;
  word-break: keep-all; overflow-wrap: break-word;
}
.adtoast[hidden] { display: none; }
.adtoast__ic { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.adtoast__x {
  flex: none; margin: -4px -4px -4px 2px; width: 28px; height: 28px;
  border: 0; border-radius: var(--r-xs); background: transparent;
  color: inherit; opacity: .7; cursor: pointer; font-size: 17px; line-height: 1;
}
.adtoast__x:hover { opacity: 1; background: rgba(255, 255, 255, .14); }

/* 실패 — 색만으로 구분하지 않도록 아이콘을 함께 바꾼다 */
.adtoast--error { background: var(--st-no); }
.adtoast--busy  { background: var(--ink-2); }

@media (max-width: 600px) {
  .adtoast { left: 16px; right: 16px; bottom: 16px; transform: none; max-width: none; }
}

/* --- 발급된 계정 안내 ----------------------------------------------------
   입점 승인 시 임시 비밀번호가 한 번만 표시됩니다. 메일 발송이 없어 사무국이
   이 화면에서 받아 적어 전달해야 하므로, 자동으로 사라지지 않게 합니다.
   ----------------------------------------------------------------------- */
.adissued {
  margin: 0 20px 16px;
  border: 1px solid var(--st-ok);
  border-left-width: 4px;
  border-radius: var(--r-md);
  background: var(--st-ok-bg);
  padding: 15px 16px 13px;
}
.adissued[hidden] { display: none; }
.adissued__h {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: var(--st-ok-tx);
}
.adissued__h svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.adissued__note { margin: 6px 0 11px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.adissued table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adissued th, .adissued td {
  text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid rgba(30, 122, 70, .18);
  vertical-align: top;
}
.adissued th { font-size: 12px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.adissued tr:last-child td { border-bottom: 0; }
.adissued code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; font-weight: 700; color: var(--navy);
  background: #fff; border: 1px solid rgba(23, 47, 75, .16);
  border-radius: var(--r-xs); padding: 2px 7px; user-select: all;
}
.adissued__foot { display: flex; gap: 8px; align-items: center; margin-top: 12px; }

@media (max-width: 760px) {
  .adissued { margin-inline: 14px; }
  .adissued table, .adissued thead, .adissued tbody, .adissued tr, .adissued th, .adissued td { display: block; }
  .adissued thead { display: none; }
  .adissued tr { padding: 8px 0; border-bottom: 1px solid rgba(30, 122, 70, .18); }
  .adissued td { padding: 2px 0; border: 0; }
  .adissued td::before { content: attr(data-l) " "; font-size: 12px; color: var(--ink-2); font-weight: 600; }
}

/* --- 일반 등록 (4차) -----------------------------------------------------
   승인 목록의 '서류' 칸과 동문 관리의 '공개 설정' 칸. 일반 등록은 받을
   서류가 없고(docs_need = 0) 등급도 없으므로, 빈 칸 대신 '해당 없음'을
   적어 서류를 못 받은 건과 구분합니다. */
.docs--none { font-size: 13px; color: var(--ink-3); }

.privsum { display: grid; gap: 3px; }
.privsum b { font-size: 13.5px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.privsum span { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.atable__tr--general .atable__org b { font-weight: 600; }
