/* ══════════════════════════════════════════════════════
   hipool 고유 스타일 — 디자인 토큰(design/*.css) 위에 얹는 페이지 보강
══════════════════════════════════════════════════════ */

/* hidden 속성은 display 클래스보다 우선(예: .picked-card[hidden] 도 확실히 숨김) */
[hidden] { display: none !important; }

/* 로고 배경: OK 박스 — 파비콘과 같은 브랜드 블루 */
.sb-logo-ic {
    background: #3B6EC5 !important;
    box-shadow: none !important;
}
.sb-logo-ic .brand-mk-svg { width: 100%; height: 100%; display: block; }

/* 캘린더형 인풋: 전체 클릭 시 피커 오픈(forms.js와 함께) */
input[type="date"] { cursor: pointer; }
/* ── 로그인 ───────────────────────────────── */
/* 로그인 화면은 테마와 무관하게 밝은 면을 유지한다. 2색 워드마크(logo.svg)가 놓이는 자리. */
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: #ffffff; color: #132433;
    padding: 40px 24px;
}
.login-card { width: 100%; max-width: 704px; display: flex; align-items: center; }
.login-aside { flex: 1; min-width: 0; padding-right: 38px; }
.login-brand { display: block; }
.login-brand-img { max-width: 100%; max-height: 46px; display: block; }
.login-brand .brand-wm { display: block; }
.login-brand .brand-wm-svg { display: block; width: 182px; height: auto; }
.login-lead { margin: 17px 0 0; font-size: 14px; color: #132433; }
.login-feats { display: flex; flex-wrap: wrap; gap: 6px; margin: 13px 0 0; padding: 0; list-style: none; }
.login-feats li {
    font-size: 11.5px; color: #125e9c;
    background: #eef5fb; border: 1px solid #d6e8f6;
    border-radius: 20px; padding: 4px 11px;
}
.login-div { flex: none; width: 1px; align-self: stretch; background: #e2ebf3; }
.login-main { flex: none; width: 286px; padding-left: 38px; }
.login-tt { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: #132433; letter-spacing: -0.2px; }
.login-form .fgroup { margin-bottom: 13px; }
.login-form .flabel { color: #4a6076; }
.login-form .inp { background: #fbfdff; border-color: #d9e4ee; color: #132433; padding: 9px 11px; font-size: 12.5px; }
.login-form .inp:focus { border-color: #2a86cf; }
.login-form .btn { width: 100%; justify-content: center; padding: 10px; margin-top: 5px; font-size: 13px; }
.login-form .btn-p { background: #125e9c; border-color: #125e9c; color: #fff; }
.login-form .btn-p:hover { background: #0d4a7d; border-color: #0d4a7d; }
.login-msg { font-size: 11.5px; text-align: center; margin: 0 0 14px; padding: 7px 10px; border-radius: 7px; }
.login-msg.err { color: #c0392b; background: #fcecea; }
.login-msg.ok { color: #0f9b86; background: #e6f6f3; }

@media (max-width: 720px) {
    .login-wrap { align-items: flex-start; padding: 44px 22px; }
    .login-card { flex-direction: column; align-items: stretch; max-width: 380px; }
    .login-aside { padding-right: 0; }
    .login-brand .brand-wm-svg { width: 156px; }
    .login-div { width: auto; height: 1px; align-self: auto; margin: 26px 0; }
    .login-main { width: auto; padding-left: 0; }
}
/* ── 헤더 우측: 지점 선택기 ───────────────── */
.center-select {
    appearance: none;
    background-color: var(--surface);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23848d97' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 9px center;
    border: 1px solid var(--bd2); border-radius: 7px;
    padding: 6px 26px 6px 11px; font-size: 12px; color: var(--t1);
    cursor: pointer; max-width: 220px; transition: border 0.13s;
}
.center-select:hover { border-color: color-mix(in srgb, var(--green) 40%, var(--bd2)); }
.center-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--t2);
    padding: 6px 11px; border: 1px solid var(--bd); border-radius: 7px;
}

/* ── 페이지 폼(상세/등록) ─────────────────── */
.form-card { max-width: 880px; }
.form-grid3 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.fgroup-wide { grid-column: 1 / -1; }
.ro-value { font-size: 14px; font-weight: 700; color: var(--t1); font-family: var(--font-mono); }
.page-actions { display: flex; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--bd); }
.page-actions .spacer { flex: 1; }

/* ── 모달 푸터: 삭제는 좌측 ──────────────── */
.m-ft .btn-d { margin-right: auto; }

/* ── 링크 / 상태 ──────────────────────────── */
.lnk { color: var(--blue); font-weight: 500; cursor: pointer; }
.lnk:hover { text-decoration: underline; }

/* ── 유틸리티 (인라인 스타일 대체) ────────── */
.fill { flex: 1; }
.tbl-flush { border: none !important; border-radius: 0 !important; }
.mb-md { margin-bottom: 14px; }
.mb-lg { margin-bottom: 16px; }
.muted { color: var(--t3); }
.bg-green { background: var(--green); }
.bg-blue { background: var(--blue); }
.bg-amber { background: var(--amber); }
.bg-red { background: var(--red); }

/* ── 회원 컨텍스트 바(수강·수강권) ──────────── */
.ctx-row { display: flex; align-items: center; gap: 12px; padding-top: 14px; }
.ctx-name { font-size: 14px; font-weight: 600; }
.ctx-phone { color: var(--t3); }

/* ── 넓은 모달 · 폼 그리드 ────────────────── */
.modal-xl { max-width: 720px; }
.modal-staff { max-width: 880px; height: min(90vh, 680px); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 16px; }
.form-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px 16px; }

/* ── 분할결제(카드·현금) 행 ─────────────────── */
.flabel-sub { font-weight: 500; font-size: 11px; color: var(--t3); margin-left: 4px; }
.pay-split { display: flex; flex-direction: column; gap: 8px; }
.pay-row { display: flex; align-items: center; gap: 8px; }
.pay-row .inp:not(.sel) { flex: 1; min-width: 0; }
.pay-row .sel { flex: 0 0 150px; }
/* 수단 이름은 누르는 버튼이다 — 누르면 남은 금액이 그 칸에 들어간다. */
.pay-tag {
    flex: 0 0 82px;
    appearance: none;
    font: inherit;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--t2);
    padding: 7px 0;
    background: var(--bg2);
    border: 1px solid var(--bd);
    border-radius: var(--r2);
    cursor: pointer;
}
.pay-tag:hover { border-color: var(--green); color: var(--t1); }
.pay-note { font-size: 11px; color: var(--t3); white-space: nowrap; }
.pay-sum { margin-top: 9px; font-size: 12.5px; color: var(--t2); font-variant-numeric: tabular-nums; }
.pay-sum.over { color: var(--red); font-weight: 700; }
.pay-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
@media (max-width: 560px) { .pay-two { grid-template-columns: minmax(0, 1fr); } }

/* ── 옵션 체크 묶음 ──────────────────────── */
.check-group {
    display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
    padding: 9px 12px; background: var(--bg3); border: 1px solid var(--bd); border-radius: 7px;
}
.chk { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--t2); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--green); margin: 0; }

/* ── 발급 모달 회원 선택기(리치) ──────────── */
.picked-card {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 12px; background: var(--bg3); border: 1px solid var(--bd); border-radius: 7px;
}
.picked-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.picked-name { font-size: 13px; font-weight: 600; color: var(--t1); }
.picked-meta { font-size: 11px; color: var(--t3); }

/* 검색 드롭다운: 오버레이(absolute) — 모달 크기 불변, 리스트 내부 스크롤 */
#memberSearchRow { position: relative; }
.member-results {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
    background: var(--surface); border: 1px solid var(--bd2); border-radius: 8px;
    box-shadow: var(--shadow); max-height: 264px; overflow-y: auto;
}
.member-results .tbl tbody tr { cursor: pointer; }

/* ── 헤더 좌측 그룹 ──────────────────────── */
.hdr-lt { display: flex; align-items: center; }

/* ── 모바일 내비 토글(데스크톱 숨김) ──────── */
.nav-toggle {
    display: none; width: 32px; height: 32px; margin-right: 6px;
    align-items: center; justify-content: center;
    background: transparent; border: 1px solid var(--bd); border-radius: 7px;
    color: var(--t2); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--bd2); color: var(--t1); }
.sb-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); z-index: 55;
}
.sb-overlay.on { display: block; }

/* ══════════ 반응형 ══════════ */
@media (max-width: 1024px) {
    .form-3col { grid-template-columns: 1fr 1fr; }
    .bento > .c-sp3 { grid-column: span 6; }
    .nav-toggle { display: inline-flex; }
    .sidebar {
        position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
        transform: translateX(-100%); transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .sidebar.open { transform: translateX(0); box-shadow: 6px 0 24px rgba(0, 0, 0, 0.3); }
}
@media (max-width: 820px) {
    .frow, .form-2col, .form-3col, .form-grid3 { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento > [class*="c-sp"] { grid-column: auto; }
    .modal, .modal-lg, .modal-xl, .modal-staff { max-width: 96vw; }
    .tbl-wrap { overflow-x: auto; }
    .content { padding: 14px 14px 24px; }
    .hdr { gap: 8px; }
    .hdr-lt { flex: 0 1 auto; min-width: 0; }
    .bc { min-width: 0; white-space: nowrap; }
    .bc-c { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .hdr-rt { flex: 1 1 0; min-width: 0; justify-content: flex-end; }
    .center-box { display: flex; min-width: 0; }
    .center-select { flex: 0 1 auto; min-width: 0; }
    .center-label { min-width: 0; white-space: nowrap; }
    .nav-toggle, .theme-tg { flex: none; }
    .sec-hd { flex-wrap: wrap; gap: 10px; }
}
@media (max-width: 480px) {
    .hdr { padding: 0 12px; }
    .bc-r, .bc-sep { display: none; }
    .sec-title { font-size: 15px; }
    .filter-bar { gap: 6px; }
    .topbar-right, .hdr-rt { gap: 6px; }
}
@media (max-width: 820px), (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
    select:not(.center-select), textarea { font-size: 16px !important; }
}

/* ── 테이블 셀 보조행(전화 등) ───────────── */
.tbl td .sub { font-size: 10.5px; color: var(--t3); margin-top: 2px; }

/* ── 카드 헤더 카운트(비대문자) ──────────── */
.card-cnt { font-size: 11px; font-weight: 600; color: var(--t2); }

/* ── KPI 6분할(회계 정산) ────────────────── */
.c-sp2 { grid-column: span 2; }

/* ── 모달 내 미니 테이블(영수증 목록 등) ──── */
.modal-tbl { border: 1px solid var(--bd); border-radius: 7px; max-height: 200px; overflow-y: auto; margin-bottom: 14px; }
.tx-info { font-size: 12px; color: var(--t2); margin-bottom: 12px; }
.tx-info b { color: var(--t1); }
.ro-row { display: flex; align-items: center; gap: 10px; }

/* 선택 체크박스 컬럼(목록 일괄 선택) */
.tbl .col-chk { width: 34px; text-align: center; }

/* ── 빈 상태 / 메시지 ─────────────────────── */
.tbl td.empty { text-align: center; color: var(--t3); padding: 22px; }
.inline-err { color: var(--red); font-size: 11px; margin-top: 10px; }
textarea.inp { resize: vertical; min-height: 64px; }

/* ── 섹션 헤더 액션 묶음 ──────────────────── */
.sec-actions { display: flex; gap: 8px; }

/* ── 카드 헤더 우측 액션 버튼 ─────────────── */
.card-hd-act { margin-left: auto; }

/* ── 카드 본문 패딩 / 폼 액션 우측정렬 ─────── */
.card-pad { padding: 14px 16px; }
.form-actions-right { display: flex; justify-content: flex-end; margin-top: 10px; }

/* ── 권한 매트릭스 ─────────────────────────── */
.tbl-matrix th, .tbl-matrix td { text-align: center; white-space: nowrap; vertical-align: middle; }
.tbl-matrix .mtx-perm { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--bg2); }
.tbl-matrix .mtx-role { min-width: 96px; }
.tbl-matrix .mtx-role.mtx-lock { opacity: 0.65; }
.mtx-rname { font-weight: 600; font-size: 12px; }
.mtx-rcode { font-size: 10px; color: var(--t3); margin: 1px 0 4px; }
.tbl-matrix tr.mtx-group td { text-align: left; background: var(--bg3); font-weight: 600; color: var(--t2); font-size: 11px; letter-spacing: 0.3px; }
.mtx-pname { display: block; font-size: 12px; }
.mtx-scope { display: inline-block; font-size: 9.5px; font-weight: 700; color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 5px; padding: 0 5px; margin-right: 6px; vertical-align: middle; }
.mtx-pcode { font-size: 10px; color: var(--t3); }
.mtx-cell input { cursor: pointer; width: 15px; height: 15px; }

.eff-hint { font-size: 10.5px; font-weight: 500; color: var(--amber); margin-left: 6px; }
/* 직원 모달: 좌 폼 / 우 효과권한 — 모달 본문 고정, 넘치는 우측(권한 카드)만 내부 스크롤 */
.modal-staff .m-bd { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.staff-edit-grid { flex: 1 1 auto; min-height: 0; display: flex; gap: 22px; align-items: stretch; }
.staff-edit-grid > form { flex: 1 1 0; min-width: 0; min-height: 0; overflow-y: auto; padding-right: 4px; }
.staff-eff-col { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--bd); padding-left: 20px; }
.staff-eff-col > .flabel { flex: 0 0 auto; margin-bottom: 10px; }
.eff-perms { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 2px 4px 2px 2px; }
@media (max-width: 720px) {
    .modal-staff .m-bd { overflow-y: auto; }
    .staff-edit-grid { flex-direction: column; gap: 14px; }
    .staff-edit-grid > form { overflow: visible; }
    .staff-eff-col { border-left: none; padding-left: 0; border-top: 1px solid var(--bd); padding-top: 14px; }
    .eff-perms { overflow: visible; }
}
.eff-mod { border: 1px solid var(--bd); border-radius: 8px; padding: 8px 10px; background: var(--bg2); }
.eff-mod b { display: block; font-size: 11px; color: var(--t1); margin-bottom: 5px; }
.eff-tag { display: inline-block; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; margin: 2px 3px 0 0; background: color-mix(in srgb, var(--brand) 13%, transparent); color: var(--brand); font-weight: 600; }
.eff-empty { font-size: 12px; color: var(--t3); padding: 10px; }

/* 회원 퀵정보 모달 */
.mi-head { display: flex; align-items: center; gap: 12px; }
.mi-av { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.mi-name { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mi-sub { font-size: 12px; color: var(--t3); margin-top: 2px; }
.mi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .mi-grid { grid-template-columns: 1fr; } }
.mi-sect { font-size: 11px; font-weight: 800; color: var(--t2); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 9px; }
.mi-kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--bd); font-size: 13px; }
.mi-kv span { color: var(--t3); flex: 0 0 auto; }
.mi-kv b { color: var(--t1); font-weight: 600; text-align: right; word-break: break-all; }
.mi-kv-last { border-bottom: none; }
.mi-tk { border: 1px solid var(--bd); border-radius: 10px; padding: 11px 12px; background: var(--bg2); margin-bottom: 10px; }
.mi-tk-nm { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.mi-tk-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--t2); margin-top: 3px; }
.mi-tk-row b { color: var(--t1); }
.mi-tk-none { border: 1px dashed var(--bd2); border-radius: 10px; padding: 14px; text-align: center; font-size: 12px; color: var(--t3); margin-bottom: 10px; }
.mi-spacer { margin-right: auto; }

/* ── 전폭 버튼(모달 내 회원 검색 트리거) ──── */
.btn-block { width: 100%; justify-content: center; }

/* ── 정의 목록(배정 정보) ─────────────────── */
.info-dl { display: grid; grid-template-columns: 84px 1fr; gap: 8px 12px; font-size: 13px; }
.info-dl dt { color: var(--t3); }
.info-dl dd { color: var(--t1); margin: 0; }

/* ── 카드 푸터 / 간격 보조 ────────────────── */
.card-ft { padding: 0 15px 15px; }
.mb-sm { margin-bottom: 10px; }

/* ── 메시지 발송/설정 레이아웃 ────────────── */
.msg-send-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.msg-set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
@media (max-width: 880px) {
    .msg-send-grid { grid-template-columns: 1fr; }
}

/* ── 템플릿 미리보기 ──────────────────────── */
.tpl-preview {
    border: 1px solid var(--bd); border-radius: 8px; background: var(--bg3);
    padding: 12px 14px; font-size: 12.5px; line-height: 1.7; color: var(--t1);
    white-space: pre-wrap; min-height: 60px; max-height: 220px; overflow-y: auto;
}
.tpl-preview.muted { color: var(--t3); }

/* ── 변수 키/값 입력 행 ───────────────────── */
.kv-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.kv-row { display: flex; gap: 8px; align-items: center; }
.kv-row .inp { flex: 1; }
.kv-del {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--bd2); background: var(--surface); color: var(--t3);
}
.kv-del:hover { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }

/* ── 수신자 리스트 ────────────────────────── */
.recip-list { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.recip-list > .empty { text-align: center; color: var(--t3); padding: 24px; }
.recip-item {
    display: flex; align-items: center; gap: 10px; padding: 7px 10px;
    border: 1px solid var(--bd); border-radius: 7px; background: var(--bg3);
}
.recip-item .recip-name { font-size: 12.5px; font-weight: 600; color: var(--t1); }
.recip-item .recip-phone { font-size: 11px; color: var(--t3); margin-left: auto; }
.recip-item .kv-del { margin-left: 4px; }

.route-pick { align-items: flex-end; }
.route-pick .fgroup { max-width: 240px; }
.route-pick-act { display: flex; align-items: flex-end; margin-left: auto; }
.tbl tr.row-link { cursor: pointer; }
.tbl tr.row-link:hover { background: var(--bg3); }
.tbl tr.row-sel { background: color-mix(in srgb, var(--green) 12%, transparent); }

.rpt-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rpt-presets { display: flex; gap: 6px; }
.rpt-range { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.rpt-range .inp { width: 150px; }
.rpt-tilde { color: var(--t3); }
.rpt-chart { padding: 8px 2px 0; overflow-x: auto; min-height: 190px; }
.rpt-chart > .empty { display: flex; align-items: center; justify-content: center; height: 182px; color: var(--t3); }
.rpt-chart svg { display: block; }
.rpt-svg-i { fill: var(--green); }
.rpt-svg-e { fill: var(--red); }
.rpt-svg-lb { fill: var(--t3); font-size: 10.5px; }
.rpt-svg-axis { stroke: var(--bd); stroke-width: 1; }
.rpt-legend { display: flex; gap: 16px; padding: 10px 4px 0; }
.rpt-lg { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t2); }
.rpt-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.rpt-share { display: flex; flex-direction: column; gap: 12px; }
.rpt-share-row { display: flex; flex-direction: column; gap: 4px; }
.rpt-share-hd { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--t1); }
.rpt-share-hd .mono { color: var(--t2); }
.rpt-share-track { display: block; width: 100%; }
.rpt-share-bg { fill: var(--bg3); }
.rpt-share-fg { fill: var(--green); }
.rpt-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rpt-stats li { display: flex; justify-content: space-between; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--bd); }
.rpt-stats li:last-child { border-bottom: none; }
.rpt-stat-lb { font-size: 12.5px; color: var(--t2); }
.rpt-stat-vl { font-size: 15px; font-weight: 700; color: var(--t1); }

/* 클릭 가능한 요약 카드(세그먼트 동기화) */
.stat-clk { cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.stat-clk:hover { border-color: var(--green); }
.stat-clk.on { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

/* 문의 리드 칸반 보드 */
.kanban { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.chip.chip-link { text-decoration: none; cursor: pointer; }
.chip.chip-link:hover { text-decoration: underline; }

/* 셀렉트 + 추가/삭제 버튼 */
.sel-manage { display: flex; gap: 6px; align-items: center; }
.sel-manage select { flex: 1; min-width: 0; }
.sel-manage .btn { flex: none; width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; line-height: 1; }

/* 안내 배너(가격 입력 유도 등) */
.notice { display: flex; align-items: center; gap: 10px; background: var(--am2); border: 1px solid var(--bd); border-radius: 10px; padding: 11px 14px; margin-bottom: 16px; font-size: 13px; color: var(--t1); line-height: 1.5; }
.notice .ic { flex: none; width: 18px; height: 18px; color: var(--amber); }
.notice b { color: var(--amber); font-variant-numeric: tabular-nums; }
.chip.pc-noprice { cursor: pointer; }
.chip.pc-noprice:hover { text-decoration: underline; }
.inp.price-flash { animation: priceflash 1.1s ease; }
@keyframes priceflash { 0%, 40% { box-shadow: 0 0 0 3px var(--am2); border-color: var(--amber); } 100% { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .inp.price-flash { animation: none; } }

/* 프로그램 종목 칩바(상단 점프/필터) */
.prog-cats { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.prog-cat { font-size: 12.5px; font-weight: 600; border: 1px solid var(--bd); background: var(--bg2); border-radius: 99px; padding: 6px 13px; color: var(--t2); cursor: pointer; font-family: inherit; }
.prog-cat:hover { border-color: var(--green); color: var(--t1); }
.prog-cat.on { background: var(--gn2); color: var(--green); border-color: transparent; }
.prog-cat .n { font-variant-numeric: tabular-nums; opacity: .7; margin-left: 5px; }

/* 프로그램 성과 카드 */
.prog-groups { display: flex; flex-direction: column; gap: 26px; }
.prog-group-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; padding-left: 11px; border-left: 4px solid var(--green); }
.pg-name { font-size: 17px; font-weight: 800; color: var(--t1); letter-spacing: -0.3px; }
.pg-cnt { font-size: 12px; font-weight: 600; color: var(--green); background: var(--gn2); border-radius: 99px; padding: 2px 10px; font-variant-numeric: tabular-nums; }
.pg-sum { font-size: 12px; color: var(--t3); margin-left: auto; font-variant-numeric: tabular-nums; }
.prog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prog-card { border: 1px solid var(--bd); border-radius: 10px; padding: 14px 15px; background: var(--bg2); cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease; }
.prog-card:hover { border-color: var(--green); box-shadow: var(--shadow, 0 4px 14px rgba(0,0,0,.06)); }
.pc-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pc-nm { font-size: 14px; font-weight: 700; color: var(--t1); letter-spacing: -0.2px; line-height: 1.3; }
.pc-tags { display: inline-flex; gap: 5px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.pc-stats { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.pc-active { display: flex; align-items: baseline; gap: 6px; }
.pc-active b { font-size: 24px; font-weight: 800; letter-spacing: -0.6px; color: var(--t1); font-variant-numeric: tabular-nums; }
.pc-active-link { cursor: pointer; border-radius: 7px; padding: 2px 6px; margin: -2px -6px; }
.pc-active-link:hover { background: var(--gn2); }
.pc-active-link:hover b, .pc-active-link:hover span { color: var(--green); }
.pc-active span { font-size: 11px; color: var(--t3); }
.pc-total { font-size: 12px; color: var(--t2); font-variant-numeric: tabular-nums; }
.pc-bar { display: block; width: 100%; height: 6px; margin-bottom: 11px; }
.pc-bar-bg { fill: var(--bg3); }
.pc-bar-fg { fill: var(--green); }
.pc-ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
@media (max-width: 900px) { .prog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prog-cards { grid-template-columns: 1fr; } }
.kan-col { background: var(--bg2); border: 1px solid var(--bd); border-radius: 10px; display: flex; flex-direction: column; }
.kan-col-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--bd); }
.kan-col-hd .t { font-size: 13px; font-weight: 700; color: var(--t1); display: inline-flex; align-items: center; gap: 8px; }
.kan-col-hd .dt { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.kan-col-hd .dt.new { background: var(--blue); }
.kan-col-hd .dt.visit { background: var(--amber); }
.kan-col-hd .dt.conv { background: var(--green); }
.kan-col-hd .n { font-size: 12px; color: var(--t2); background: var(--bg3); border: 1px solid var(--bd); border-radius: 99px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
.kan-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; max-height: 640px; overflow-y: auto; }
.kan-card { background: var(--bg3); border: 1px solid var(--bd); border-radius: 8px; padding: 11px 12px; cursor: pointer; transition: border-color .12s ease; }
.kan-card:hover { border-color: var(--green); }
.kan-card .kc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.kan-card .kc-ph { font-weight: 700; font-size: 13px; color: var(--t1); }
.kan-card .kc-dt { font-size: 11px; color: var(--t3); }
.kan-card .kc-memo { font-size: 12px; color: var(--t2); margin-top: 6px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kan-card .kc-ft { display: flex; align-items: center; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.kan-empty { padding: 22px 14px; color: var(--t3); font-size: 12px; text-align: center; }

/* 뷰 토글(보드/목록) */
.viewtgl { display: inline-flex; gap: 2px; background: var(--bg3); border: 1px solid var(--bd); border-radius: 8px; padding: 2px; margin-left: auto; }
.viewtgl .vt { font-size: 12px; font-weight: 600; color: var(--t2); background: none; border: 0; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.viewtgl .vt.on { background: var(--bg2); color: var(--t1); box-shadow: 0 1px 2px rgba(0,0,0,.10); }

/* 문의 회원 연결 위젯 */
.fhint { font-size: 11px; color: var(--t3); font-weight: 400; }
.mlink { position: relative; }
.mlink-cur { padding: 8px 11px; border: 1px solid var(--bd); border-radius: 7px; background: var(--bg3); font-size: 13px; margin-bottom: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mlink-cur.linked { border-color: var(--green); background: var(--gn2); }
.mlink-res { background: var(--bg2); border: 1px solid var(--bd); border-radius: 7px; margin-top: 6px; max-height: 200px; overflow-y: auto; }
.mlink-opt { padding: 8px 11px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--bd); }
.mlink-opt:last-child { border-bottom: 0; }
.mlink-opt:hover { background: var(--bg3); }

/* ── 출결 대시보드(KPI 스파크·인사이트·히트맵·추이) ───────── */
.bg-cyan { background: var(--cyan); }
.bg-red { background: var(--red); }

.stat .att-kfoot { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.att-delta { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.att-delta.up { color: var(--green); background: var(--gn2); }
.att-delta.dn { color: var(--red); background: var(--rd2); }
.att-delta.fl { color: var(--t2); background: var(--bg3); }
.att-delta:empty { display: none; }
.att-spark { display: block; width: 100%; height: 30px; margin-top: 12px; }

.att-insights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.att-ins { background: var(--surface); border: 1px solid var(--bd); border-radius: var(--r2); padding: 13px 15px; display: flex; align-items: center; gap: 12px; }
.att-ins-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.att-ins-ic svg { width: 18px; height: 18px; }
.att-ins-ic.ic-g { background: var(--gn2); color: var(--green); }
.att-ins-ic.ic-b { background: var(--bl2); color: var(--blue); }
.att-ins-ic.ic-a { background: var(--am2); color: var(--amber); }
.att-ins-ic.ic-p { background: var(--pu2); color: var(--purple); }
.att-ins-tx { display: flex; flex-direction: column; min-width: 0; }
.att-ins-k { font-size: 11px; color: var(--t2); font-weight: 600; }
.att-ins-v { font-size: 16px; font-weight: 750; letter-spacing: -0.3px; margin-top: 1px; }

.att-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; align-items: stretch; }
.att-empty { color: var(--t3); font-size: 12px; text-align: center; padding: 26px 0; }

.att-hm-wrap { overflow-x: auto; }
table.att-hm { border-collapse: separate; border-spacing: 3px; margin: 2px auto; }
table.att-hm th { font-size: 10px; color: var(--t3); font-weight: 600; padding: 0 2px; text-align: center; white-space: nowrap; }
table.att-hm th.row { text-align: right; padding-right: 8px; }
table.att-hm td { width: 26px; height: 23px; border-radius: 5px; text-align: center; font-size: 9.5px; color: var(--t2); font-variant-numeric: tabular-nums; transition: transform .08s ease; }
table.att-hm td:hover { transform: scale(1.15); outline: 2px solid var(--t1); position: relative; z-index: 2; }
table.att-hm td.hi { color: #fff; }
.h0 { background: var(--bg3); }
.h1 { background: color-mix(in srgb, var(--green) 20%, var(--bg3)); }
.h2 { background: color-mix(in srgb, var(--green) 40%, var(--bg3)); }
.h3 { background: color-mix(in srgb, var(--green) 62%, var(--bg3)); }
.h4 { background: color-mix(in srgb, var(--green) 84%, var(--bg3)); }
.h5 { background: var(--green); }
.att-hm-legend { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 12px; font-size: 11px; color: var(--t2); }
.att-hm-scale { display: flex; gap: 3px; }
.att-hm-scale i { width: 16px; height: 12px; border-radius: 3px; display: block; }

.att-trend-svg { width: 100%; height: auto; display: block; }
.att-toptitle { font-size: 11px; color: var(--t3); font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin: 18px 0 11px; }
.att-distro { display: flex; flex-direction: column; gap: 10px; }
.att-drow { display: grid; grid-template-columns: 54px 1fr 34px; align-items: center; gap: 10px; }
.att-dk { font-size: 11.5px; color: var(--t2); font-weight: 600; }
.att-dv { font-size: 11.5px; color: var(--t1); text-align: right; font-variant-numeric: tabular-nums; }
.att-dbar-svg { display: block; width: 100%; height: 8px; }
.att-dbar-bg { fill: var(--bg3); }
.att-dbar-fg { fill: var(--green); }

@media (max-width: 900px) {
    .att-grid { grid-template-columns: 1fr; }
    .att-insights { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) { table.att-hm td { transition: none; } }

/* ── 출석체크 모달(빠른/연속 체크인) ─────────── */
.m-cnt { font-size: 11px; font-weight: 600; color: var(--green); background: var(--gn2); border-radius: 99px; padding: 2px 10px; margin-left: 8px; font-variant-numeric: tabular-nums; }
.quick-picks { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 10px; }
.quick-picks .fhint { width: 100%; margin-bottom: 1px; }
.qpick { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--t1); background: var(--bg3); border: 1px solid var(--bd); border-radius: 99px; padding: 4px 12px 4px 5px; cursor: pointer; font-family: inherit; }
.qpick:hover { border-color: var(--green); }
.qpick .qav { width: 20px; height: 20px; border-radius: 99px; background: var(--suf2); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--t2); }
.session-log { margin-top: 14px; border-top: 1px solid var(--bd); padding-top: 12px; }
.session-log-hd { font-size: 11px; color: var(--t3); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.session-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; font-size: 12.5px; border-bottom: 1px solid var(--bd); }
.session-row:last-child { border-bottom: 0; }
.session-row .sok { width: 18px; height: 18px; display: grid; place-items: center; color: var(--green); flex: none; }
.session-row .sok svg { width: 14px; height: 14px; }
.session-row .sm { color: var(--t1); }
.session-row .stime { color: var(--t3); font-size: 11px; font-variant-numeric: tabular-nums; margin-left: 2px; }
.session-row.undone { opacity: .5; }
.session-row.undone .sm { text-decoration: line-through; }
.session-undo { margin-left: auto; font-size: 11px; color: var(--t2); background: none; border: 0; cursor: pointer; text-decoration: underline; font-family: inherit; }
.session-undo:hover { color: var(--red); }
.session-row.undone .session-undo { display: none; }

/* 수강권 발급 — 시간표 자동편성(요일지정·레벨·반종류) */
.ti-mode { display: inline-flex; border: 1px solid var(--bd2); border-radius: 9px; overflow: hidden; }
.ti-mode-btn { border: none; background: var(--surface); padding: 8px 22px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.ti-mode-btn + .ti-mode-btn { border-left: 1px solid var(--bd2); }
.ti-mode-btn:hover { color: var(--brand); }
.ti-mode-btn.on { background: var(--brand); color: #fff; }
.ti-trial-count { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1px solid var(--bd2); border-radius: 8px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); font-weight: 700; }
.ti-place { border: 1px solid var(--bd2); border-radius: 10px; padding: 10px 12px; margin: 4px 0; background: color-mix(in srgb, var(--brand) 4%, var(--surface)); }
.ti-place-hd { font-size: 12.5px; font-weight: 800; margin-bottom: 8px; }
.ti-place-hd .flabel-sub { font-weight: 500; }
.ti-days { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ti-preset { border: 1px solid var(--bd2); background: var(--surface); border-radius: 7px; font-size: 12px; font-weight: 700; padding: 4px 10px; cursor: pointer; }
.ti-preset:hover { border-color: var(--brand); color: var(--brand); }
.ti-days-sep { width: 1px; height: 18px; background: var(--bd2); }
.ti-day { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; }
.ti-day input { accent-color: var(--brand); }

/* 발급 모달: 2분할(왼쪽 폼 · 오른쪽 반 시간표) */
.modal-xl.has-grid { max-width: 1140px; }
.ti-split { display: flex; gap: 22px; align-items: flex-start; }
.ti-col-form { flex: 1 1 0; min-width: 0; }
.ti-col-grid { flex: 0 0 48%; max-width: 48%; min-width: 0; align-self: stretch; border-left: 1px solid var(--line); padding-left: 20px; }
.ti-col-grid[hidden] { display: none; }
@media (max-width: 900px) {
    .modal-xl.has-grid { max-width: 96vw; }
    .ti-split { flex-direction: column; }
    .ti-col-grid { flex: none; max-width: none; border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
}

/* 선택한 반 요약 칩 */
.ti-picked { display: flex; flex-wrap: wrap; gap: 6px; }
.ti-pk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px 4px 11px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--bd2)); border-radius: 999px; background: color-mix(in srgb, var(--brand) 9%, var(--surface)); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ti-pk-chip b { font-weight: 800; }
.ti-pk-x { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: none; background: none; cursor: pointer; font-size: 15px; line-height: 1; color: var(--muted); border-radius: 50%; padding: 0; }
.ti-pk-x:hover { color: #e5484d; background: color-mix(in srgb, #e5484d 14%, transparent); }

/* 발급 모달: 반 선택 미니 시간표 */
.ti-cp { overflow-x: auto; }
.ti-cp-msg { font-size: 12.5px; color: var(--muted); padding: 8px 2px; }
.ti-cp-tbl { border-collapse: separate; border-spacing: 4px; width: 100%; }
.ti-cp-tbl th { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: center; padding: 2px; }
.ti-cp-tbl th.ti-cp-time { text-align: right; white-space: nowrap; padding-right: 6px; font-variant-numeric: tabular-nums; }
.ti-cp-tbl td { padding: 0; }
.ti-cp-tbl td { padding: 0; vertical-align: top; }
.ti-cp-stack { display: flex; flex-direction: column; gap: 3px; }
.ti-cp-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-width: 66px; padding: 4px 7px; border: 1px solid var(--bd2); border-radius: 8px; background: var(--surface); cursor: pointer; line-height: 1.25; text-align: left; }
.ti-cp-cell:hover { border-color: var(--brand); }
.ti-cp-cell.sel { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); box-shadow: 0 0 0 1px var(--brand) inset; }
.ti-cp-cell.full { opacity: .45; cursor: not-allowed; }
.ti-cp-ct { font-size: 10.5px; font-weight: 700; color: var(--muted); }
.ti-cp-staff { font-size: 12px; font-weight: 700; }
.ti-cp-cap { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ti-cp-cell.sel .ti-cp-cap { color: var(--brand); }

/* 목록 행 액션 버튼(공통) */
.col-act { width: 132px; white-space: nowrap; text-align: right; }
.act-b { display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 26px; min-width: 26px; padding: 0 8px; margin-left: 4px; border: 1px solid var(--bd); background: var(--surface); color: var(--t2); border-radius: 6px; font-size: 11.5px; font-weight: 600; cursor: pointer; transition: border-color .12s, color .12s; }
.act-b:hover { border-color: var(--bd2); color: var(--t1); }
.act-b svg { width: 13px; height: 13px; display: block; }
.act-b.act-d:hover { border-color: var(--red); color: var(--red); }
.pw-hint { font-size: 11px; color: var(--t3); padding-top: 8px; }

/* 지점 브랜딩·서류 첨부(지점 수정 모달) */
.asset-sec { display: flex; flex-direction: column; gap: 15px; }
.asset-item { display: flex; flex-direction: column; gap: 8px; }
.asset-head b { font-size: 13px; font-weight: 700; color: var(--t1); }
.asset-head small { display: block; margin-top: 2px; font-size: 11px; color: var(--t3); }
.asset-ctl { display: flex; align-items: center; gap: 12px; }
.asset-prev { flex: none; display: flex; align-items: center; justify-content: center; border: 1px solid var(--bd); border-radius: 8px; background: var(--bg2, #f6f8fa); overflow: hidden; }
.asset-prev.sq { width: 56px; height: 56px; }
.asset-prev.wide { width: 156px; height: 48px; }
.asset-prev.doc { min-width: 156px; height: 40px; padding: 0 12px; justify-content: flex-start; }
.asset-prev img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.asset-none { font-size: 11px; color: var(--t3); padding: 0 6px; text-align: center; line-height: 1.35; }
.asset-prev.doc a { font-size: 12px; color: var(--brand, #1a7f37); font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-btns { display: flex; gap: 6px; align-items: center; }
.asset-up { cursor: pointer; margin: 0; }
.asset-up input { display: none; }

@media (max-width: 820px), (pointer: coarse) {
    .btn, .act-b, .pgn-b, .m-x, .mtx-abtn, .nav-toggle, .theme-tg, .lt-tab, .sht-day, .sht-bfc, .wb-mode, .prog-cat,
    .bl-tab, .bl-pv-tabs button, .ct-seg button, .ct-tools button, .fchip, .mg-act, button.mg-pick, .u-edit, .u-pick,
    .pay-tag, .bh-chip, .addr-btn, .ti-mode-btn, input.inp, select.inp, .sht-seg button, .addr-x { min-height: 36px; }
    .sht-modal-x { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; margin: -8px -10px -8px 0; }
    .btn-sm, .act-b, .pgn-b, .m-x, .mtx-abtn, .nav-toggle, .theme-tg, .u-edit, .lt-section, .ct-tools button, .addr-x { min-width: 36px; justify-content: center; }
    .ol-control.ol-zoom button { width: 36px; height: 36px; }
}

@media (max-width: 1024px) {
    .tbl[data-sticky="1"] tr > :nth-child(1), .tbl[data-sticky="2"] tr > :nth-child(2),
    .tbl[data-sticky="3"] tr > :nth-child(3), .tbl[data-sticky="4"] tr > :nth-child(4) {
        position: sticky; left: 0; z-index: 1; background: var(--stk-bg, var(--surface)); box-shadow: inset -1px 0 0 var(--bd);
    }
    .tbl[data-sticky] th { z-index: 2; }
    .tbl[data-sticky="1"] th:nth-child(1), .tbl[data-sticky="2"] th:nth-child(2),
    .tbl[data-sticky="3"] th:nth-child(3), .tbl[data-sticky="4"] th:nth-child(4) { z-index: 3; background: var(--bg2); }
    .tbl[data-sticky] tbody tr:hover { --stk-bg: var(--suf2); }
    .tbl[data-sticky] tr.row-sel { --stk-bg: color-mix(in srgb, var(--green) 12%, var(--surface)); }
    .tbl[data-sticky] td[colspan] { position: static; box-shadow: none; }
}
@media (max-width: 820px) {
    .content.content-pane { overflow-y: auto; }
    .content.content-pane > .pane-fill, .card.pane-fill > .tbl-wrap { flex: 0 0 auto; }
}
