/* 2026 건강검진 신청 시스템 — 블루/그레이 기업 테마, 반응형 */
:root {
  /* 한경협 국제경영원 CI 색 (로고에서 추출) */
  --blue: #20409A;
  --blue-dark: #17307a;
  --blue-bg: #eef2fb;
  --ci-green: #41BA7C;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --ink-3: #9ca3af;
  --line: #e5e7eb;
  --bg: #f3f4f6;
  --card: #ffffff;
  --red: #dc2626;
  --green: #059669;
  --amber: #b45309;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard", "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.55;
  /* 한글 단어 중간 끊김 방지 (띄어쓰기 단위 줄바꿈) */
  word-break: keep-all; overflow-wrap: break-word; line-break: strict;
}
button { font-family: inherit; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 16px; }

/* ---------- 헤더 ---------- */
.topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar-in {
  max-width: 1080px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
/* 상단 로고 — 누르면 홈으로 */
.logo {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; padding: 2px 4px 2px 0; cursor: pointer; font: inherit;
  border-radius: 8px;
}
.logo:hover { background: var(--blue-bg); }
.logo img { height: 30px; width: auto; display: block; }
.logo .bar { width: 1px; height: 22px; background: var(--line); }
.logo .svc {
  font-weight: 800; font-size: 17px; color: var(--blue); letter-spacing: -1px;
  font-family: "맑은 고딕", "Malgun Gothic", "Pretendard", sans-serif;
}
.logo .svc small {
  display: block; font-weight: 600; color: var(--ink-3); font-size: 10.5px; letter-spacing: 0;
  margin-top: 1px;
}
@media (max-width: 560px) {
  .logo img { height: 24px; }
  .logo .svc { font-size: 15px; }
  .logo .svc small { display: none; }
}
.topbar .sp { flex: 1; }
.userchip {
  background: var(--blue-bg); color: var(--blue-dark);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.linkbtn {
  background: none; border: none; color: var(--ink-2); cursor: pointer;
  font-size: 13px; text-decoration: underline; padding: 4px;
}

/* ---------- 카드/버튼 공통 ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-bottom: 16px;
}
.card h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.3px; }
.card h3 { margin: 18px 0 8px; font-size: 15px; }
.sub { color: var(--ink-2); font-size: 13px; margin: 0 0 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue); color: #fff; border: none; cursor: pointer;
  padding: 11px 20px; border-radius: 9px; font-size: 15px; font-weight: 700;
  transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn:disabled { background: var(--ink-3); cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--blue-dark); border: 1.5px solid var(--blue); }
.btn.ghost:hover { background: var(--blue-bg); }
.btn.danger { background: #fff; color: var(--red); border: 1.5px solid var(--red); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.right { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

input[type=text], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 9px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.fld { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fld > span:first-child { display: block; margin-bottom: 5px; }

.err {
  background: #fef2f2; color: var(--red); border: 1px solid #fecaca;
  padding: 10px 14px; border-radius: 9px; margin: 10px 0; font-size: 14px;
}
.ok-banner {
  background: #ecfdf5; color: var(--green); border: 1px solid #a7f3d0;
  padding: 10px 14px; border-radius: 9px; margin: 10px 0; font-size: 14px; font-weight: 600;
}
.notice {
  background: var(--blue-bg); border: 1px solid #bfdbfe; color: var(--blue-dark);
  padding: 10px 14px; border-radius: 9px; margin: 8px 0; font-size: 13.5px;
}
.notice.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.notice ul, .err-banner ul { margin: 6px 0 0; padding-left: 18px; }
.err-banner {
  background: #fef2f2; color: var(--red); border: 1px solid #fecaca;
  padding: 10px 14px; border-radius: 9px; margin: 10px 0; font-size: 14px;
}

/* 숫자 4자리 비밀번호 입력칸 */
input.pin {
  max-width: 160px; letter-spacing: 12px; text-align: center;
  font-size: 20px; font-weight: 700; padding: 10px 12px;
}

/* ---------- 직원 홈 메뉴 (큰 아이콘 칸) ---------- */
.hello { margin: 4px 0 16px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.hello span { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 22px 18px 18px; cursor: pointer; text-align: left; font: inherit;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.tile:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(37,99,235,.12); transform: translateY(-2px); }
.tile .ic { font-size: 34px; line-height: 1.1; margin-bottom: 6px; }
.tile .tt { font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; }
.tile .td { font-size: 12.5px; color: var(--ink-2); }
.tile.accent { background: var(--blue-bg); border-color: var(--blue); }
.tile.accent .tt { color: var(--blue-dark); }
.backbar { margin-bottom: 12px; }

/* ---------- 대상자 명단 관리 ---------- */
.paste-box { margin-top: 14px; border: 1px dashed var(--line); border-radius: 9px; padding: 10px 14px; }
.paste-box .pb-title { display: block; font-size: 13.5px; color: var(--blue-dark); margin-bottom: 4px; }

/* 엑셀 양식 안내 + 읽은 방식 표시 (담당자가 스스로 고칠 수 있게) */
.guide-box {
  margin-top: 14px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 14px; background: #fff;
}
.guide-box > summary { cursor: pointer; font-weight: 800; font-size: 13.5px; color: var(--blue-dark); }
.guide-box .tbl { font-size: 12.5px; }
.guide-box .tbl td { padding: 5px 8px; }
.readmap {
  background: var(--blue-bg); border: 1px solid #dbe3f7; border-radius: 9px;
  padding: 10px 14px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 5px;
}
.readmap > b { font-size: 13px; color: var(--blue-dark); }
.readmap > span { font-size: 12.5px; color: var(--ink-2); }
.readmap .cols { display: flex; flex-wrap: wrap; gap: 5px; }
.colchip {
  font-size: 12px; border-radius: 6px; padding: 3px 8px; background: #fff;
  border: 1px solid var(--line); color: var(--ink-2);
}
.colchip.ok b { color: var(--blue-dark); }
.colchip.bad { background: #fef2f2; border-color: #fecaca; color: var(--red); font-weight: 700; }
.paste-box textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; margin: 8px 0; }
.roster-tbl input[type=text], .roster-tbl input:not([type]) , .roster-tbl input[type=number] {
  padding: 5px 7px; font-size: 13px; border-radius: 6px;
}
.roster-tbl td { padding: 4px 6px; vertical-align: middle; }
.roster-tbl th { white-space: nowrap; }

/* ---------- 로그인 ---------- */
.login-hero { max-width: 480px; margin: 6vh auto 0; }
.login-hero .brand { text-align: center; margin-bottom: 20px; }
.login-hero .brand img { height: 46px; width: auto; margin-bottom: 12px; }
.login-hero .brand b {
  display: block; font-size: 25px; color: var(--blue); letter-spacing: -1.2px;
  font-family: "맑은 고딕", "Malgun Gothic", "Pretendard", sans-serif;
}
.login-hero .brand p { color: var(--ink-2); margin: 6px 0 0; font-size: 14px; }
.tabs { display: flex; border-bottom: 1.5px solid var(--line); margin-bottom: 18px; }
.tabs button {
  flex: 1; background: none; border: none; padding: 10px; font-size: 14.5px; font-weight: 700;
  color: var(--ink-3); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
}
.tabs button.on { color: var(--blue-dark); border-bottom-color: var(--blue); }

/* ---------- 스텝바 ---------- */
.stepbar { display: flex; gap: 0; margin: 4px 0 18px; }
.step { flex: 1; text-align: center; position: relative; }
.step .dot {
  width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 2px solid var(--line); color: var(--ink-3);
  font-weight: 800; font-size: 13px; position: relative; z-index: 2;
}
.step .lbl { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.step:not(:first-child)::before {
  content: ""; position: absolute; top: 14px; left: -50%; width: 100%; height: 2px;
  background: var(--line); z-index: 1;
}
.step.done .dot, .step.now .dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.step.done:not(:first-child)::before, .step.now:not(:first-child)::before { background: var(--blue); }
.step.now .lbl { color: var(--blue-dark); }
.step.done .lbl { color: var(--ink-2); }

/* ---------- 기관 카드 ---------- */
.hosp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.hosp {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 16px;
  cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.hosp:hover { border-color: #93c5fd; }
.hosp.sel { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-bg); }
.hosp .nm { font-weight: 800; font-size: 16px; }
.hosp .tel { color: var(--ink-2); font-size: 13px; margin: 2px 0 8px; }
.hosp ul { margin: 8px 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.hosp .note { font-size: 12px; color: var(--amber); margin-top: 6px; }
.hosp .dl { font-size: 13px; color: var(--blue-dark); text-decoration: underline; }

/* ---------- 항목 선택 ---------- */
.grp { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.grp-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.grp-head b { font-size: 15px; }
.pick-badge {
  background: var(--blue-bg); color: var(--blue-dark); font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
}
.pick-badge.full { background: #ecfdf5; color: var(--green); }
.grp .gnote { font-size: 12px; color: var(--amber); width: 100%; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.item {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px;
  border-radius: 9px; border: 1.5px solid transparent; cursor: pointer; position: relative;
}
.item:hover { background: var(--bg); }
.item.sel { background: var(--blue-bg); border-color: #bfdbfe; }
.item.dis { opacity: .45; cursor: not-allowed; }
.item input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; flex: none; }
.item .inm { font-size: 14px; font-weight: 600; }
.gender-badge {
  font-size: 10.5px; font-weight: 800; border-radius: 4px; padding: 1px 5px; margin-left: 5px;
  vertical-align: 1px;
}
.gender-badge.M { background: #e0f2fe; color: #0369a1; }
.gender-badge.F { background: #fce7f3; color: #be185d; }

/* 로그인 — 4자리 번호 확인용 체크박스 (오타로 잘못 설정하는 것 방지) */
.showpw {
  display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 10px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.showpw input { width: 15px; height: 15px; accent-color: var(--blue); }

/* ---------- 지난 검진에서 고른 항목 표시 ---------- */
/* 진한 음영 = 그때 받은 검사, 옅은 음영 = 비슷한 검사. 선택(파랑)과 색이 겹치지 않게 노랑 계열. */
.item.prev-exact { background: #fef3c7; border-color: #fcd34d; }
.item.prev-similar { background: #fffbeb; border-color: #fef3c7; }
.item.prev-exact.sel, .item.prev-similar.sel {
  background: var(--blue-bg); border-color: var(--blue);
  box-shadow: inset 4px 0 0 #f59e0b; /* 선택되면 파랑 + 왼쪽에 노란 띠 */
}
.prev-badge {
  font-size: 10.5px; font-weight: 800; border-radius: 4px; padding: 1px 6px; margin-left: 5px;
  background: #fde68a; color: #92400e; vertical-align: 1px; white-space: nowrap; cursor: help;
}
.prev-badge.similar { background: #fef3c7; color: #b45309; font-weight: 700; }
.prev-count { font-size: 12px; font-weight: 700; color: #92400e; }

/* 안내 상자 (기관 선택·항목 선택 화면 상단) */
.prev-note {
  background: #fffbeb; border: 1px solid #fcd34d; border-left: 4px solid #f59e0b;
  border-radius: 10px; padding: 11px 14px; margin: 0 0 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.prev-note b { font-size: 14px; color: #92400e; }
.prev-note .where { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.prev-note .how { font-size: 12.5px; color: var(--ink-2); }
.prev-note .miss {
  font-size: 12.5px; color: #92400e; background: #fef3c7;
  border-radius: 6px; padding: 6px 9px; margin-top: 2px;
}
.prev-note .swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin: 0 2px;
}
.prev-note .swatch.exact { background: #fde68a; border: 1px solid #f59e0b; }
.prev-note .swatch.similar { background: #fffbeb; border: 1px solid #fcd34d; }
.repeat-warn { color: #92400e; }

/* 홈(첫 화면) 지난 기록 알림 카드 */
.prev-card {
  background: #fff; border: 1px solid #fcd34d; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 14px;
}
.prev-card .ph { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.prev-card .ph .ic { font-size: 17px; }
.prev-card .ph b { font-size: 15px; color: #92400e; }
.prev-card .ph .sub { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.prev-card .pf { font-size: 12.5px; color: var(--ink-2); margin: 10px 0; }

/* 지난 기록 1건 — 연도·수검자·검진기관 + 번호 매긴 선택검사 */
.rec { border-top: 1px dashed var(--line); padding: 12px 0 4px; }
.rec:first-of-type { border-top: 0; }
.rec-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.rec-head .yr {
  background: #fde68a; color: #92400e; font-weight: 800; font-size: 12.5px;
  border-radius: 6px; padding: 2px 9px;
}
.rec-head .who { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.rec-head .where { font-size: 15px; font-weight: 800; color: var(--ink); }
.rec-items {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px;
}
.rec-items li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; }
.rec-items .no {
  flex: none; width: 21px; height: 21px; border-radius: 6px; background: var(--blue-bg);
  color: var(--blue-dark); font-size: 11.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.rec-items .nm { font-weight: 600; }
.rec-items .nm small { display: block; font-weight: 500; color: var(--ink-3); font-size: 11.5px; }
.rec-items .gastro .no { background: #eef2ff; color: #3730a3; }
.rec-items .extra .no { background: #fffbeb; color: var(--amber); }
.rec-none { font-size: 13.5px; color: var(--ink-3); }
.card .rec:first-of-type { border-top: 0; }

/* 툴팁 (?) */
.q {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%; background: var(--line); color: var(--ink-2);
  font-size: 11px; font-weight: 800; margin-left: 6px; cursor: help; position: relative;
  vertical-align: 1px; flex: none;
}
.q .tipbox {
  display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: 290px; background: #1f2937; color: #f9fafb; font-size: 12.5px; font-weight: 400;
  padding: 10px 12px; border-radius: 8px; z-index: 30; line-height: 1.55; text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); white-space: pre-line;
}
.q:hover .tipbox, .q:focus .tipbox { display: block; }

/* ---------- 추가검사 (본인부담) ---------- */
.grp.extras { border-color: #fcd34d; background: #fffdf5; }
.price-tag { font-size: 12.5px; font-weight: 800; color: var(--amber); margin-left: 6px; white-space: nowrap; }
.extra-total {
  position: sticky; bottom: 10px; margin-top: 10px;
  background: #1f2937; color: #fff; border-radius: 10px; padding: 11px 16px;
  display: flex; justify-content: space-between; align-items: center; font-size: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.extra-total b { font-size: 17px; color: #fbbf24; }

/* ---------- 마이페이지 / 테이블 ---------- */
.bk {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center; background: #fff;
}
.bk .who { font-weight: 800; }

/* ---------- 아래 고정 이동 버튼 (고른 즉시 누를 수 있게) ---------- */
.actionbar {
  position: sticky; bottom: 0; z-index: 15;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 18px -16px -16px; padding: 12px 16px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px);
  border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
}
.actionbar .ab-hint { flex: 1; min-width: 180px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.actionbar .ab-hint.warn { color: var(--amber); }
.actionbar .ab-btns { display: flex; gap: 10px; margin-left: auto; }
.actionbar.ready { border-top-color: #bfdbfe; }
.btn.pulse { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); animation: pulse 1.8s ease-out 2; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .45); }
  70% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
@media (prefers-reduced-motion: reduce) { .btn.pulse { animation: none; } }
@media (max-width: 640px) {
  .actionbar { gap: 8px; }
  .actionbar .ab-btns { width: 100%; }
  .actionbar .ab-btns .btn { flex: 1; }
}

/* ---------- 라벨-값 목록 (신청 완료·내 신청 내역 공통) ---------- */
.dc-list, .bc-list { margin: 0; }
.dc-list .row2, .bc-list .row2 {
  display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px;
  padding: 10px 0; border-top: 1px solid var(--line); align-items: start;
}
.dc-list .row2:first-child, .bc-list .row2:first-child { border-top: 0; }
.dc-list dt, .bc-list dt { color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.dc-list dt small, .bc-list dt small { font-weight: 500; color: var(--ink-3); }
.dc-list dd, .bc-list dd { margin: 0; font-size: 14px; }
.dc-list .tel { color: var(--ink-3); font-size: 12.5px; margin-left: 8px; white-space: nowrap; }
@media (max-width: 560px) {
  .dc-list .row2, .bc-list .row2 { grid-template-columns: 1fr; gap: 4px; }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--blue-bg); color: var(--blue-dark); border: 1px solid #dbeafe;
  border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600;
}
.chip.cost { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.amount { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--amber); }
.slotpill {
  background: #eef2ff; color: #3730a3; border-radius: 6px; padding: 3px 9px;
  font-size: 12.5px; font-weight: 800; margin-right: 6px;
}
.datepill {
  display: inline-block; border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 9px; font-size: 13px; margin-right: 6px; color: var(--ink-2);
}
.datepill.first { border-color: var(--blue); color: var(--blue-dark); font-weight: 700; }

/* ---------- 신청 완료 화면 ---------- */
.donecard {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-top: 6px;
}
.dc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.dc-head .mark {
  width: 44px; height: 44px; border-radius: 50%; background: #ecfdf5; color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 900; flex: none;
}
.dc-head h2 { margin: 0; font-size: 19px; }
.dc-head p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.dc-next {
  margin-top: 16px; background: var(--blue-bg); border-radius: 10px; padding: 12px 16px; font-size: 13.5px;
}
.dc-next > b { display: block; margin-bottom: 4px; color: var(--blue-dark); }
.dc-next ol { margin: 0 0 0 18px; padding: 0; color: var(--ink-2); }
.dc-next .sub { margin: 8px 0 0; }
.dc-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.dc-btns .btn { flex: 1; min-width: 160px; }

/* ---------- 내 신청 내역 카드 ---------- */
.bcard {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 14px 16px; margin-top: 12px;
}
.bcard.cancelled { opacity: .6; }
.bc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.bc-head .who { font-size: 15px; }
.bc-head .kind { color: var(--ink-2); font-size: 13px; }
.bc-head .bc-btns { display: flex; gap: 8px; margin-left: auto; }
.bk .meta { color: var(--ink-2); font-size: 13.5px; flex: 1; min-width: 200px; }
.bk.cancelled { opacity: .55; }
.status-pill { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.status-pill.active { background: #ecfdf5; color: var(--green); }
.status-pill.cancelled { background: #f3f4f6; color: var(--ink-3); }

.tbl-wrap { overflow-x: auto; }
table.tbl { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--ink-2); font-size: 12px; border-bottom: 2px solid var(--line); padding: 8px 10px; white-space: nowrap; }
.tbl td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }

/* ---------- 관리자 대시보드 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.stat .k { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.stat .v { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-top: 2px; }
.stat .v small { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.stat.warn .v { color: var(--amber); }
.stat.good .v { color: var(--green); }

.bar-chart .brow { display: grid; grid-template-columns: 130px 1fr 46px; align-items: center; gap: 10px; margin: 7px 0; }
.bar-chart .bnm { font-size: 13px; font-weight: 600; text-align: right; color: var(--ink-2); }
.bar-chart .btrack { background: var(--bg); border-radius: 4px; height: 22px; position: relative; }
.bar-chart .bfill {
  background: var(--blue); height: 100%; border-radius: 4px 4px 4px 4px; min-width: 2px;
  transition: width .3s;
}
.bar-chart .bval { font-size: 13px; font-weight: 700; }
.bar-chart .blimit { font-size: 11px; color: var(--ink-3); }

.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-tabs button {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer;
}
.admin-tabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.hist { font-size: 13.5px; border-left: 3px solid var(--line); padding-left: 12px; margin: 10px 0; }
.hist .ts { color: var(--ink-3); font-size: 12px; }

/* 요약 박스 */
.summary { background: var(--bg); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; }
.summary dt { font-weight: 800; font-size: 12.5px; color: var(--ink-2); margin-top: 8px; }
.summary dd { margin: 2px 0 0; }

@media (max-width: 640px) {
  .card { padding: 16px 14px; }
  .step .lbl { font-size: 10.5px; }
  .bar-chart .brow { grid-template-columns: 92px 1fr 40px; }
}
