/* ============================================================================
   회원 목록 — 시안 proto/members.html <style> '회원 목록' 절을 옮긴 것(BRIEF_v1 6-3 · IMPL_PLAN_B B3).
   새 색·새 크기 0: 값은 tokens.css 변수 또는 components.css 에 이미 있는 수치다. 인라인 style 은 CSP 로 막혀 있어
   시안의 style="…" 자리는 클래스로, 동적 값(PT 회차 막대 채움)은 CSS 변수(CSSOM setProperty)로 받는다.
   B 와 다른 점(시안 대비): 탭 5개(오늘 챙길·상담·체험 없음 — D), 칩 4개(몸 상태 분석 전 없음 — D), 몸 리포트 열 없음(D),
   [회원 등록]·[거르기](상품·담당 강사)·[PT 재등록] 없음(B5·F), 머리 줄 찾기 결과에 [회원 등록] 없음(B5).
   ========================================================================== */

/* ── 찾기 · 탭 · 칩 ─────────────────────────────────────────────────────── */
.mem-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.mem-tools .search { max-width: 560px; }
.mem-hint { margin-top: -6px; }
.mem-tabs .pill-tabs { overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.mem-tabs .pill-tabs::-webkit-scrollbar { display: none; }
.filters { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.filters::-webkit-scrollbar { display: none; }

/* 오늘 방문 기간 카드 */
.mem-range { margin-bottom: 16px; }
.mem-range .rc-when { flex-wrap: wrap; }
.mem-range .rc-unit { margin-left: 2px; }

/* ── 목록 패널 ───────────────────────────────────────────────────────────── */
.mem-list { overflow: hidden; transition: opacity var(--t-micro) var(--ease-micro); }
.mem-list.is-pending .mem-body { opacity: .55; }
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px 12px; }
.list-bar .lb-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.list-bar .lb-n { white-space: nowrap; }
.list-bar .lb-busy { display: none; align-self: center; }
.mem-list.is-pending .lb-busy { display: inline-flex; }
.list-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-top: 1px solid var(--line); }
.list-foot[hidden] { display: none; }
.mem-body .empty { padding: 48px 24px 56px; }
.mem-pad { padding: 8px 24px 24px; }
.mem-body > .page-loader { padding: 56px 0 64px; }

/* 묶음 머리(경고 먼저) */
.table tr.grp td { height: auto; padding: 20px 0 8px; border-bottom: 1px solid var(--line); }
.table tbody tr.grp:first-child td { padding-top: 12px; }
.table tr.grp:hover td { background: none; }
.grp-label { display: inline-flex; align-items: center; gap: 6px; }
.grp-label b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.mgroup { display: flex; align-items: center; gap: 6px; min-height: 36px; padding: 8px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.mgroup b { color: var(--ink); font-weight: 700; }

/* 표 칸 */
.mem-table th.sr-th { width: 0; padding: 0; }
.mem-table .name-line { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.mem-link { color: inherit; border-radius: 4px; }
.mem-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.mem-table .t-value.is-quiet { color: var(--muted); }
.mem-table td.col-xl.is-wrap { min-width: 232px; }
.tr-cell { display: inline-flex; align-items: center; gap: 6px; }
.pt-mini { flex: none; display: block; width: 112px; height: 6px; margin-top: 6px; }
.pt-mini .bar-fill { min-width: 0; width: calc(var(--p, 0) * 1%); }
/* 마우스를 올리면 나오는 [입장 처리]·[퇴장 처리]: 폭 0 칸에서 왼쪽 칸(최근 방문) 위로 뜬다 — 늘 비어 있는 열을 두지 않으려고(시안) */
.table .act-cell { width: 0; padding: 0; position: relative; }
.act-cell .row-act { position: absolute; right: 8px; top: 50%; margin-top: -16px; }
.lv, .tr-td > * { transition: opacity var(--t-micro) var(--ease-micro); }
tr.has-act:hover .lv, tr.has-act:focus-within .lv { opacity: 0; }
.md-line { display: none; }
@media (max-width: 1279px) {
  .mem-table .col-xl { display: none; }
  .md-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; }
  .mem-table td.sig-cell { white-space: normal; min-width: 184px; }
  /* 태블릿은 최근 방문 열이 없어 단추가 담당 칸 위로 뜬다 */
  tr.has-act:hover .tr-td > *, tr.has-act:focus-within .tr-td > * { opacity: 0; }
}
/* 마우스가 없는 기기(아이패드 등)는 마우스 올림이 없다 — 단추를 늘 보이는 제 칸에 둔다 */
@media (hover: none) {
  .table .act-cell { width: auto; padding: 8px 0 8px 12px; }
  .act-cell .row-act { position: static; margin: 0; opacity: 1; }
  tr.has-act:hover .lv, tr.has-act:focus-within .lv, tr.has-act:hover .tr-td > *, tr.has-act:focus-within .tr-td > * { opacity: 1; }
}

/* 폰 압축 행(V7): 오른쪽 캡션을 이름 줄에, 칩·태그 줄은 폭을 다 쓴다(한 화면 10명) */
.mrow { color: inherit; }
.mrow-cap .w { color: var(--stop); font-weight: 700; }
.mrow .badge { align-self: center; }
.mrow-extra .dot { margin-right: 2px; }
@media (max-width: 767px) {
  .list-bar { padding: 12px 20px; border-bottom: 1px solid var(--line); }
  .mrow.is-compact .mrow-cap { grid-row: 1; align-self: center; }
  .mrow.is-compact > .ico { grid-row: 1; }
  .mrow.is-compact .mrow-chips { grid-column: 1 / -1; }
  .mrow.is-compact .mrow-head { overflow: hidden; }
  .mem-tools .search { max-width: none; }
  .mem-pad { padding: 8px 20px 20px; }
}

/* ── 시트: 정렬 · 방문 기간 ──────────────────────────────────────────────── */
.sheet-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.period-sheet { display: flex; flex-direction: column; gap: 24px; }
.period-sheet .seg { flex-wrap: wrap; }
@media (max-width: 767px) { .sheet-two { grid-template-columns: 1fr; } }

/* ── 머리 줄 찾기(PC 팝오버 · 폰 시트) ──────────────────────────────────── */
.hb-search-pop { left: 24px; right: 24px; max-width: 480px; top: calc(100% + 8px); max-height: min(560px, calc(100vh - var(--head) - 32px)); overflow-y: auto; }
.hb-search-pop .pop-item { cursor: pointer; }
.hb-search-pop .pop-item .btn { flex: none; }
.bottom-sheet.is-search { height: 88vh; }
.hb-search-sheet { display: flex; flex-direction: column; gap: 12px; }
.hb-sheet-results { margin: 0 -20px; }
.hb-sheet-results .pop-item { padding-left: 20px; padding-right: 16px; cursor: pointer; }

/* ── 예외 입장 사유 대화상자 ───────────────────────────────────────────── */
.dialog.is-form .dlg-field { margin-top: 16px; }
.dialog.is-form textarea.input { min-height: 80px; resize: vertical; }
