* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #211f1c; --paper: #f6f4ef; --surface: #fffdfb;
  --line: #e2ddd0; --muted: #867d6e; --faint: #a89f8f; --submuted: #5c5346; --tint: #efe9dd;

  --primary: #0d6b56; --primary-bg: #e1efe8;
  --stay: #a8552e; --stay-bg: #f5e6da;
  --danger: #ab3327; --danger-bg: #f6e1dc;
  --success: #3c7a45; --success-bg: #e4efe0;
  --warning: #93641c; --warning-bg: #f3ead1;
  --card-pay: #3c6c8a; --card-pay-bg: #e0ebf1;
  --online: #8a4a6b; --online-bg: #f1e3ea;
}
html { font-size: 16px; }
body { font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 8px 12px; transition: transform .08s ease, background-color .15s ease, border-color .15s ease; }
button:not(:disabled):active { transform: scale(0.96); }
button.primary { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
button.danger { background: var(--danger); color: #fff; border-color: var(--danger); }
/* 수정 — 추가(primary)와 혼동되지 않도록 다른 색으로 구분 */
button.edit { background: var(--warning); color: #fff; border-color: var(--warning); font-weight: 700; }
input, select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); color: var(--ink); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
/* Phosphor 아이콘 정렬 — 텍스트와 나란히 놓일 때 베이스라인 보정 */
.ph { line-height: 1; vertical-align: -0.125em; }
.hidden { display: none !important; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; margin-top: 8px; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* 로그인 */
.overlay { position: fixed; inset: 0; background: var(--paper); z-index: 100; display: flex; align-items: center; justify-content: center; }
.login-box { display: flex; flex-direction: column; gap: 12px; width: min(320px, 85vw); text-align: center; }
.login-box h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.login-box input { text-align: center; font-size: 20px; padding: 12px; }
.login-box select { text-align: center; font-size: 18px; padding: 12px; }
.login-box button { padding: 12px; font-size: 18px; }
/* 로그인 역할 선택 — 계정은 사용자/관리자 둘뿐이다 */
.login-roles { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.login-roles button { flex: 1; border: none; border-radius: 0; background: var(--surface); color: var(--muted); font-weight: 700; }
.login-roles button + button { border-left: 1px solid var(--line); }
.login-roles button.on { background: var(--primary); color: #fff; }

/* 상단바 / 하단탭 */
#topbar { position: fixed; top: 0; left: 0; right: 0; height: 52px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 4px; padding: 0 10px; z-index: 10; }
#topbar #date-today { flex: 1; text-align: center; font-weight: 700; border: none; background: none; font-size: 16px; }
/* 날짜 화살표: 박스 버튼이 아니라 고스트 아이콘 버튼 (Toss식 절제) */
#topbar #date-prev, #topbar #date-next { width: 36px; height: 36px; padding: 0; border: none; background: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: var(--submuted); }
#topbar #date-prev:hover, #topbar #date-next:hover, #topbar #date-today:hover { background: var(--tint); }
#current-user { font-size: 14px; font-weight: 700; color: var(--submuted); padding: 0 4px 0 8px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#current-user:empty { padding: 0; }
/* 근무자 선택 — 사용자 계정은 여기서 이름을 바꿔가며 쓴다 */
#staff-pick { font-size: 14px; font-weight: 700; color: var(--submuted); border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; background: var(--surface); max-width: 110px; }
#btn-logout { width: 36px; height: 36px; padding: 0; border: none; background: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--submuted); }
#btn-logout:hover { background: var(--tint); color: var(--danger); }
/* 홈 화면 앱 설치 — 설치할 수 있을 때만 보인다. 폰에선 아이콘만 */
#btn-install { height: 34px; padding: 0 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--ink); }
#btn-install.hidden { display: none; }
#btn-install i { font-size: 17px; }
@media (max-width: 640px) {
  #btn-install { width: 34px; padding: 0; justify-content: center; border: none; } #btn-install span { display: none; }
  #topbar #date-today { white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; padding-left: 4px; padding-right: 4px; font-size: 15px; } /* 단추가 하나 늘어도 날짜는 한 줄 */
}

/* 근무자 로그인 비밀번호 설정 행 */
/* 로그인 비밀번호 — 관리자·사용자 두 계정 */
.acct-pw-row { display: flex; gap: 6px; align-items: center; padding: 7px 0; flex-wrap: wrap; }
.acct-pw-row + .acct-pw-row { border-top: 1px solid var(--line); }
.acct-pw-name { min-width: 128px; font-size: 14px; font-weight: 700; }
.acct-pw-row input { flex: 1 1 140px; min-width: 0; }
#tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: 60px; background: var(--surface); border-top: 1px solid var(--faint); display: flex; z-index: 10; }
#tabbar button { flex: 1; border: none; border-radius: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0; color: var(--muted); }
#tabbar button .ph { font-size: 22px; }
#tabbar button span { font-size: 11px; font-weight: 600; }
/* 좁은 화면에서는 탭이 11개라 칸이 34px밖에 안 된다 — '월간 기록' 같은 라벨이
   두 줄로 접히거나 옆 탭을 침범하지 않도록 글자만 줄인다.
   라벨을 줄여 쓰는 대신 글자를 줄인다: 쓰던 메뉴 이름이 바뀌는 편이 더 헷갈린다.
   (가로 스크롤은 만들지 않는다) */
@media (max-width: 640px) {
  #tabbar button span { font-size: 9px; letter-spacing: -0.03em; white-space: nowrap; }
  #tabbar button .tab-long { display: none; }
}
/* 긴 메뉴 이름은 폰에서만 짧은 이름으로 (온라인예약 → 온라인) */
.tab-short { display: none; }
@media (max-width: 640px) { #tabbar button .tab-short { display: inline; } }
#tabbar button.active { color: var(--primary); }
/* 처리 안 한 메모 개수 — 아이콘 오른쪽 위에 붙는 작은 원 */
#tabbar button { position: relative; }
.tab-badge { position: absolute; top: 6px; left: 50%; margin-left: 6px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 800;
  line-height: 16px; text-align: center; }
/* 사이드바 하단 요약 — 데스크톱에서만 보인다 (모바일 탭바에는 자리가 없다) */
#nav-summary { display: none; }
#view { padding: 62px 10px 80px; max-width: 720px; margin: 0 auto; } /* 하단 80px = 고정 탭바(60px) + 여백, 마지막 콘텐츠가 가려지지 않도록 */
#view.has-entrybar { padding-bottom: 340px; } /* ledger.js의 고정 입력 독(.entry-panel)이 가리지 않도록 여백 확보 */

/* 칩/배지 */
.chip { border-radius: 999px; padding: 5px 12px; font-size: 14px; }
.chip.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.badge { border-radius: 6px; padding: 2px 8px; font-size: 13px; font-weight: 700; }
.badge.rental { background: var(--primary-bg); color: var(--primary); }
.badge.stay { background: var(--stay-bg); color: var(--stay); }
.badge.noshow { background: var(--danger-bg); color: var(--danger); }
/* 연박 — 숙박 갈색과 인접하되 구분되는 앰버. 대실=초록/숙박=갈색 기억을 건드리지 않는다 */
.badge.longstay { background: var(--warning-bg); color: var(--warning); }

/* 노쇼 토글 — 메모 섹션 라벨 줄 오른쪽의 작은 칩 */
.noshow-toggle { float: right; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 2px 10px; font-size: 12px; color: var(--muted); }
.noshow-toggle.on { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 700; }
.pay { border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.pay-cash { background: var(--success-bg); color: var(--success); }
.pay-card { background: var(--card-pay-bg); color: var(--card-pay); }
.pay-online { background: var(--online-bg); color: var(--online); }
.pay-transfer { background: var(--warning-bg); color: var(--warning); }
.pay-mixed { background: var(--tint); color: var(--submuted); }

/* 장부 리스트 */
/* 전체/대실/숙박/삭제됨 — 필터가 아니라 뷰를 바꾸는 탭이라는 걸 명확히: 밑줄 탭 스타일 */
.filters { display: flex; gap: 0; margin-bottom: 22px; border-bottom: 2px solid var(--line); }
.filter-tab { flex: 1; border: none; border-radius: 0; background: none; padding: 12px 4px; margin-bottom: -2px; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 600; font-size: 16px; }
.filter-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
/* 리스트: 각 기록을 위아래 여백이 있는 개별 카드로 표시한다.
   각 칸에 고정 너비를 줘서(min-width가 아니라 width) 내용 길이가 달라도 세로로 줄이 맞는다.
   이름·메모만 flex:1로 남는 공간을 갖고, 넘치는 칸은 ...으로 줄인다. */
.list { display: flex; flex-direction: column; }
.list > * { flex-shrink: 0; } /* PC에선 목록이 창 높이의 스크롤 칸이라, 줄이 많으면 각 줄이 최소 높이로 눌려 글이 넘친다 */
/* 항목은 개별 카드이며, 안쪽 텍스트 크기와 무관하게 균일한 세로 높이를 갖는다 (min-height + 세로 가운데 정렬) */
.row { display: flex; flex-direction: column; justify-content: center; min-height: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; cursor: pointer; }
.row:last-child { margin-bottom: 0; }
@media (hover: hover) { .row:hover { border-color: var(--faint); } }
.row.editing { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-bg); }
/* 묶음 결제(같은 결제를 여러 방으로 나눠 표기) — 한 결제를 방마다 줄로 나누되
   카드 사이 간격 없이 붙이고 내부는 점선으로 나눠 하나의 블록임을 표시한다.
   이름·금액은 첫 줄에만, 다음 줄부터는 시각·구분을 비우고 '└ 함께'(render에서 처리). */
.row.grouped-first { min-height: 0; margin-bottom: 0; border-bottom: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 6px; }
.row.grouped-mid { min-height: 0; margin-bottom: 0; border-top: 1px dashed var(--line); border-bottom: none; border-radius: 0; padding: 6px 14px; }
.row.grouped-last { min-height: 0; border-top: 1px dashed var(--line); border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 6px; }
.row.grouped-mid .row-main > .no, .row.grouped-mid .time, .row.grouped-mid .badge,
.row.grouped-last .row-main > .no, .row.grouped-last .time, .row.grouped-last .badge { visibility: hidden; }
.row-main .memo .g-with { color: var(--faint); font-size: 12.5px; font-weight: 600; }
.row-main { display: flex; align-items: center; gap: 5px; }
.row-main .no { color: var(--faint); background: var(--tint); border-radius: 4px; font-size: 12px; font-weight: 700; width: 20px; flex: 0 0 20px; text-align: center; padding: 2px 0; font-variant-numeric: tabular-nums; }
.row-main .time { color: var(--ink); font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; width: 38px; flex: 0 0 38px; }
.row-main .badge { width: 40px; flex: 0 0 40px; padding: 2px 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.row-main .rooms { font-weight: 700; width: 52px; flex: 0 0 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 이름 칸 — 위 이름·단골(검정), 아래 작은 줄(플랫폼·여러 방·현금+카드 나눔·연박 기간·예약금). 없으면 한 줄 */
.row-main .memo { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.row-main .memo .memo-line { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; font-size: 14px; font-weight: 600; color: var(--ink); }
.row-main .memo .memo-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main .memo .vip { flex: 0 0 auto; margin-left: 0; }
.memo-sub { display: flex; align-items: center; gap: 4px; min-width: 0; font-size: 11.5px; line-height: 1.35; color: var(--muted); white-space: nowrap; overflow: hidden; font-variant-numeric: tabular-nums; }
.memo-sub > span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* 연박 기간 칩 — '1/3박 · 10/26 퇴실' */
.ls-chip { flex: 0 0 auto; font-size: 10px; font-weight: 800; line-height: 15px; color: var(--warning); background: var(--warning-bg); padding: 0 5px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ls-chip b { color: var(--ink); }
.ls-chip.out { color: var(--danger); background: var(--danger-bg); }
.noshow-tag { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; background: var(--danger-bg); color: var(--danger); border-radius: 4px; padding: 0 5px; }
.row.noshow .rooms, .row.noshow .memo-t { text-decoration: line-through; color: var(--faint); }
.row-main .amount { font-weight: 700; font-variant-numeric: tabular-nums; width: 70px; flex: 0 0 70px; text-align: right; }
.row-main .amount .amt-pre { color: var(--faint); font-weight: 700; font-size: 13px; }
.row-main .amount .amt-unpaid { color: var(--danger); font-weight: 800; font-size: 13px; }
.row-main .pay { width: 50px; flex: 0 0 50px; padding: 2px 0; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.row-staff { margin-top: 4px; padding-left: 25px; font-size: 11px; color: var(--muted); }
/* 하단 고정 패널 — 요약/빠른금액/입력바를 세로로 쌓는 단일 컨테이너.
   entrybar가 좁은 화면에서 여러 줄로 줄바꿈돼도 서로 겹치지 않는다 (bottom 오프셋을
   각자 추측해 고정하는 대신, 컨테이너 자체만 tabbar 위 60px에 고정하고 내부는 자연 흐름). */
/* 탭바와 맞닿아 있으므로 세 가지로 분리한다: 위로 퍼지는 그림자(떠 있는 층),
   상단 라운드(독의 시작점), 그리고 탭바의 흰색과 다른 배경 톤. */
.entry-panel { position: fixed; bottom: 60px; left: 0; right: 0; display: flex; flex-direction: column; z-index: 9; box-shadow: 0 -10px 28px rgba(33, 31, 28, .16); }
/* 입력 독 접기 핸들 — 모바일에서만 보인다 (데스크톱은 우측 사이드바라 접을 필요가 없다) */
.panel-toggle { display: none; }
@media (max-width: 1023px) {
  .panel-toggle {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    align-self: center; margin-bottom: -1px; padding: 5px 16px 6px;
    border: 1px solid var(--line); border-bottom: none; border-radius: 12px 12px 0 0;
    background: var(--surface); font-size: 12px; font-weight: 600; color: var(--submuted);
  }
  .entry-panel.collapsed .entry-card { display: none; }
  /* 접었을 때는 요약 줄만 남으므로 목록 아래 여백도 그만큼 줄인다 */
  #view.has-entrybar.entry-collapsed { padding-bottom: 150px; }
}
.summary { background: var(--ink); color: #fff; padding: 8px 14px; font-size: 13px; border-radius: 16px 16px 0 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sum-item { display: flex; align-items: baseline; gap: 5px; }
.sum-label { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.sum-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.sum-flags { font-size: 12px; font-weight: 700; color: #eec2b8; }
.sum-note { font-size: 13px; }

/* 입력 카드 (모바일 하단 독) — 섹션(.es)을 display:contents로 펼쳐서 컴팩트한 flex-wrap 바로 만든다.
   섹션 라벨(.es-label)은 데스크톱 사이드바 전용이라 여기선 숨긴다. */
.entry-card { background: var(--tint); border-top: 2px solid var(--primary); padding: 8px 10px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.entry-card .es, .entry-card .es-actions, .entry-card .es-row { display: contents; }
.entry-card .es-label { display: none; }
#in-amount { width: 110px; font-size: 14px; }
#in-memo { flex: 1; min-width: 80px; }
#in-guest { width: 110px; }
#in-nights { width: 56px; text-align: right; }
#btn-rooms.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.entry-card button:disabled { opacity: 0.5; cursor: not-allowed; }
.stay-edit-hint { flex-basis: 100%; font-size: 12px; color: var(--primary); font-weight: 700; }

/* 대실/숙박 세그먼트 — 두 값이 모두 보여서 탭 한 번으로 선택 */
.type-seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.type-seg button { border: none; border-radius: 0; background: var(--surface); padding: 8px 14px; font-weight: 600; color: var(--muted); }
.type-seg button + button { border-left: 1px solid var(--line); }
/* 선택된 항목 — 기본은 주요색, 숙박만 러스트색으로 구분한다 (선결제/매일결제 등 다른 세그먼트도 이 규칙을 쓴다) */
.type-seg button.on { background: var(--primary-bg); color: var(--primary); font-weight: 700; }
.type-seg button.on[data-type="stay"] { background: var(--stay-bg); color: var(--stay); }
.type-seg button:disabled { opacity: 0.5; cursor: not-allowed; }

/* 결제수단 — 드롭다운 대신 버튼 그룹에서 하나 선택 */
.pay-seg { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; }
.pay-seg button { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 6px 12px; font-size: 13px; color: var(--muted); }
.pay-seg button.on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
/* 숙박을 고르면 입력 패널 전체가 숙박 색(러스트)으로 바뀐다 — 대실과 헷갈리지 않게 */
.entry-card.mode-stay .pay-seg button.on,
.entry-card.mode-stay .roomcell.on,
.entry-card.mode-stay .chip.on { background: var(--stay); border-color: var(--stay); color: #fff; }
.entry-card.mode-stay #btn-save.primary { background: var(--stay); border-color: var(--stay); }

.quick { flex-basis: 100%; background: none; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
/* 예약 폼은 좁은 고정 독이 아니라 세로 공간이 넉넉한 카드형 폼이므로, 스크롤 대신 항상 줄바꿈한다.
   금액 버튼과 바로 아래 입력창 사이 간격은 장부 입력 패널(.entry-card .quick)과 같은 8px로 맞춘다. */
#sf-quick { flex-wrap: wrap; overflow-x: visible; margin-bottom: 8px; }

/* 시간 입력 — 직접 타이핑 + 마우스로 고르는 시/분 패널 */
/* 모바일 독에서는 .es가 display:contents라 이 둘이 직접 flex 자식이 된다 —
   전체 폭을 차지하게 해서 '추가' 버튼이 옆으로 밀리지 않게 한다 */
.time-row { display: flex; gap: 6px; align-items: center; flex: 1 1 100%; flex-wrap: wrap; }
.time-row #in-time { flex: 1 1 90px; }
.timepick { flex-basis: 100%; }
.time-row #in-time { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.time-row button { padding: 8px 10px; font-size: 13px; color: var(--submuted); }
.time-row .tstep { padding: 8px 8px; font-size: 13px; font-weight: 700; color: var(--submuted); flex: 0 0 auto; }
.time-row .tstep:hover { background: var(--tint); }

/* 대화상자 (시스템 prompt 대체) */
.modal-back { position: fixed; inset: 0; z-index: 200; background: rgba(33, 31, 28, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 16px; width: min(440px, 100%); max-height: 85dvh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(33, 31, 28, .3); }
.modal-head { padding: 16px 16px 10px; }
.modal-head h3 { font-size: 16px; margin: 0 0 2px; }
.modal-legend { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.lg-free, .lg-busy { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-free { border: 1px solid var(--line); background: var(--surface); }
.lg-busy { background: var(--stay-bg); margin-left: 8px; }
.modal-rooms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0 16px 12px; overflow-y: auto; }
.modal-foot { padding: 10px 16px 16px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.modal-foot button { padding: 10px 20px; }

/* 현금+카드 — 두 금액을 나란히 받고 총액은 아래에 합산해 보여준다 */
.split-row { display: flex; align-items: flex-end; gap: 6px; }
.split-f { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.split-f span { font-size: 12px; font-weight: 600; color: var(--muted); }
.split-f input { width: 100%; min-width: 0; text-align: right; }
.split-plus { padding-bottom: 10px; color: var(--muted); font-weight: 700; }
.split-total { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.split-total b { font-size: 16px; color: var(--text); }

/* 저장 결과 알림 — 멀리서도 무엇이 기록됐는지 읽히도록 호실·금액을 크게 세우고,
   대실(초록)·숙박(갈색)·수정(노랑)을 위쪽 색띠와 글자색으로 구분한다. */
.modal-back.saved { background: rgba(33, 31, 28, .28); }
/* 저장 알림 — 모텔 룸키. 열쇠고리가 흔들리며 내려오고 호실 번호가 주인공이다.
   색은 대실(청록)·숙박(주황)·연박·수정(노랑). 배경은 옅게 어둡게 해 눈에 띄게 한다 */
.rk-back { align-items: flex-start; padding-top: max(13vh, 84px); background: rgba(21, 32, 58, .38); animation: rk-fade .18s ease-out both; }
.rk-back.out { animation: rk-fade-out .18s ease-in both; }
.rk { width: min(270px, 100%); display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: rk-swing .9s cubic-bezier(.3, 1.4, .5, 1) both; }
.rk.tone-rental { --tone: var(--primary); }
.rk.tone-stay { --tone: var(--stay); }
.rk.tone-longstay, .rk.tone-edit { --tone: var(--warning); }
.rk-day { background: #ffe27a; color: #5a4300; font-size: 13px; font-weight: 800; border-radius: 999px; padding: 4px 12px; margin-bottom: 6px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.rk-ring { width: 34px; height: 34px; border-radius: 999px; border: 5px solid #c9cfda; margin-bottom: -8px; position: relative; z-index: 1; }
.rk-tag { position: relative; width: 100%; background: var(--tone); color: #fff; border-radius: 28px 28px 36px 36px; padding: 20px 18px 22px; text-align: center; box-shadow: 0 22px 50px rgba(21, 32, 58, .35); overflow: hidden; }
.rk-tag::before { content: ""; position: absolute; top: 11px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 999px; background: rgba(0, 0, 0, .22); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25); }
.rk-x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; padding: 0; display: flex; align-items: center; justify-content: center; border: none; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 14px; }
.rk-x:hover { background: rgba(255, 255, 255, .28); }
.rk-kind { margin-top: 10px; font-size: 14px; font-weight: 800; letter-spacing: .04em; opacity: .92; }
.rk-room { font-size: 64px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.rk-room small { font-size: 24px; font-weight: 800; margin-left: 2px; }
.rk-room em { display: block; font-style: normal; font-size: 14px; font-weight: 800; letter-spacing: 0; opacity: .9; margin-top: 4px; }
.rk-say { font-size: 16px; font-weight: 800; }
.rk-slip { background: var(--surface); color: var(--ink); border-radius: 16px; margin: 14px 0 0; padding: 11px 14px; text-align: left; font-size: 14px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.rk-slip dt { color: var(--muted); font-weight: 600; }
.rk-slip dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-slip dd.amt { font-size: 20px; font-weight: 900; color: var(--tone); }
.rk-undo { margin-top: 12px; width: 100%; padding: 11px; font-size: 15px; font-weight: 800; color: #fff; background: rgba(0, 0, 0, .18); border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.rk-undo:hover { background: rgba(0, 0, 0, .28); }
.rk-bar { position: absolute; left: 0; bottom: 0; height: 5px; width: 100%; background: rgba(255, 255, 255, .7); transform-origin: 0 50%; animation: rk-count linear both; }
.rk.undone .rk-tag { background: var(--submuted); }
@keyframes rk-swing { 0% { transform: translateY(-120px) rotate(-14deg); opacity: 0; } 35% { opacity: 1; } 60% { transform: translateY(0) rotate(5deg); } 80% { transform: rotate(-2deg); } 100% { transform: none; } }
@keyframes rk-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rk-fade-out { to { opacity: 0; } }
@keyframes rk-count { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* 기기의 '동작 줄이기'·'애니메이션 끄기' 설정과 상관없이 움직인다 — 사장님이 흔들림을 원했고,
   막대는 되돌리기 남은 시간을 알려 주는 기능이라 멈추면 안 된다 */

/* 호실 팝업 (모바일) — 데스크톱에선 항상 펼쳐진 인라인 섹션으로 재정의된다 */
.roomgrid { position: absolute; bottom: 100%; left: 10px; right: 10px; max-width: 700px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 30px rgba(33,31,28,.18); padding: 10px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; z-index: 20; max-height: 60vh; overflow-y: auto; }
.roomcell { padding: 12px 0; font-weight: 700; font-size: 16px; }
.roomcell.on { background: var(--primary); color: #fff; border-color: var(--primary); }
/* 오늘 밤 이미 사용 중인 객실 — 선택은 가능하되(중복 판매/수정 대비) 한눈에 구분되게 한다 */
.roomcell.busy { background: var(--stay-bg); color: var(--stay); border-color: var(--stay-bg); }
.roomcell.busy.on { background: var(--primary); color: #fff; border-color: var(--primary); }
/* 타입별 잔여 객실 */
.vac-row { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: 6px; }
.vac { font-size: 11px; font-weight: 600; color: var(--muted); background: var(--tint); border-radius: 5px; padding: 1px 6px; }
.vac b { color: var(--primary); font-weight: 800; }
.vac.full b { color: var(--danger); }

/* 정산 */
.card-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.card-box h3 { font-size: 15px; margin: 0 0 10px; } /* 섹션 제목 통일 스케일: 15px */
.sub { color: var(--muted); font-size: 13px; }
.exp-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.exp-row .amount { margin-left: auto; font-weight: 700; }
/* 지출 입력폼 — 섹션(.board-sect)의 padding-bottom이 0이므로 폼 자체가 아래 여백을 갖는다 */
/* 지출 입력폼 — 인풋은 기본 폭(약 170px)이 있어서 min-width:0 이 없으면 좁은 화면에서 넘친다.
   모바일에서는 내역이 한 줄을 다 쓰고 금액·추가가 다음 줄로 내려간다. */
.exp-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-bottom: 14px; }
.exp-form input[name=label] { flex: 1 1 100%; min-width: 0; }
/* 화면 키보드 아이콘이 내역 칸을 .kb-row로 감싸므로, 감싼 상자도 한 줄 전체를 써야
   결제수단·금액·추가가 둘째 줄로 내려간다 (안 그러면 7개가 한 줄에 몰려 내역 칸이 눌린다) */
.exp-form > .kb-row[data-for="label"] { flex: 1 1 100%; }
.exp-form input[name=amount] { flex: 1 1 0; min-width: 0; text-align: right; }
.exp-form button { flex: 0 0 auto; }
/* 입금의 현금/카드 선택 — 기본 .pay-seg는 한 줄을 다 쓰지만 여기서는 금액·추가와 같은 줄에 둔다 */
.exp-form .pay-seg { flex: 0 0 auto; flex-wrap: nowrap; }

/* 통계 — 월 기준, 전달 비교 (stats.js). 색은 장부와 같은 대실 초록·숙박 갈색 */
:root { --st-prev: #c4bcae; --st-h1: #e6f1ec; --st-h2: #bfdccf; --st-h3: #8ec4ac; --st-h4: #4aa585; --st-h5: #0d6b56; }
h3.sect { margin: 18px 0 8px; font-size: 15px; }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.st-month { display: flex; align-items: center; gap: 8px; }
.st-month h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.st-month .sub { word-break: keep-all; }
/* 제목은 한 줄 — 옆 설명에 밀려 "2026년 / 9월"로 접히지 않게. 좁은 화면에선 설명이 아랫줄로 내려간다 */
.st-month { flex-wrap: wrap; }
.st-month h2 { white-space: nowrap; }
@media (max-width: 640px) { .st-month .sub { flex-basis: 100%; margin: 2px 0 0; } }
/* 월간기록·청소·손님찾기·메모도 같은 머리말을 쓴다 — 아래 카드가 머리말에 붙지 않게 */
.st-head + .card-box { margin-top: 2px; }
/* 메모 섹션의 색 구분은 제목 옆 숫자로만 — 통계처럼 제목은 잉크색 */
.memo-sect h3.sect .sub { font-weight: 700; }
.memo-pending h3.sect .sub { color: var(--stay); }
.memo-done h3.sect .sub { color: var(--success); }
.st-month button { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.st-month .sub { margin-left: 4px; }
.st-legend { display: flex; gap: 12px; font-size: 13px; color: var(--submuted); }
.st-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.st-kpis { grid-template-columns: repeat(2, 1fr); }
.st-chip { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-right: 4px; }
.st-chip.up { background: var(--success-bg); color: var(--success); }
.st-chip.down { background: var(--danger-bg); color: var(--danger); }
.st-chip.flat { background: var(--tint); color: var(--muted); }
.st-sect { margin-bottom: 14px; }
.st-sect h3.sect { margin-top: 0; }
.st-why { margin: -2px 0 12px; font-size: 13px; color: var(--muted); word-break: keep-all; }
.st-chart { position: relative; }
.st-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-chart text { font-family: inherit; fill: var(--muted); font-size: 12px; }
.st-chart .lbl { fill: var(--ink); font-weight: 700; }
.st-chart .sat { fill: var(--card-pay); }   /* 토요일 — 파랑 */
.st-chart .sun { fill: var(--danger); }     /* 일요일 — 빨강 */
.st-chart .hot { fill: var(--danger); font-weight: 700; } /* 30℃ 넘은 날 기온 */
.st-chart .dim { fill: var(--muted); font-weight: 400; }
.st-chart .grid { stroke: var(--line); stroke-width: 1; }
.st-chart .axis { stroke: var(--faint); stroke-width: 1; }
.st-bar { cursor: pointer; }
.st-bar:hover { filter: brightness(1.08); }
.st-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 12px; line-height: 1.5; padding: 7px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; z-index: 5; }
.st-chart.hover .st-tip { opacity: 1; }
.st-ai-auto { display: inline-block; font-size: 11px; font-weight: 800; color: #6b4fd8; background: #f0ecff; border-radius: 999px; padding: 1px 8px; }
.st-ins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
/* 통계 — 사람 기준 신규·재방문·단골 */
.kpi-row.st-kpis.gx-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.gx-kpis .kpi-sub { font-size: 11.5px; color: var(--muted); }
.gx-kpis .gx-fresh .kpi-value { color: #1f5eff; }
.gx-kpis .gx-ret .kpi-value { color: var(--primary); }
.gx-kpis .gx-reg .kpi-value { color: #b07d12; }
.gx-h { font-size: 13.5px; font-weight: 800; margin: 0 0 6px; }
.gx-h .dim { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.st-tbl td.pf .plat-logo { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; display: inline-flex; }
.gx-bar i { background: #1f5eff; }
.gx-flow { display: flex; flex-direction: column; gap: 6px; }
.gx-flow-row { display: grid; grid-template-columns: minmax(120px, auto) 1fr 44px; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; }
.gx-flow-nm { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.gx-flow-nm .plat-logo { width: 18px; height: 18px; }
.gx-flow-bar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; background: var(--tint); }
.gx-flow-bar i { display: block; height: 100%; }
.gx-flow-n { text-align: right; font-variant-numeric: tabular-nums; }
.gx-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.gx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.gx-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.st-tbl td.gx-heat { font-weight: 700; }
.gx-heat.h1 { background: #e8efff; } .gx-heat.h2 { background: #cddcff; } .gx-heat.h3 { background: #a9c2ff; }
.gx-heat sup { color: var(--muted); font-size: 9px; margin-left: 1px; }
/* 통계 — 플랫폼별 대실·숙박 단가 */
.px-tbl .bl { border-left: 1px solid var(--line); }
.px-tbl .px-grp th { text-align: center; font-weight: 800; border-bottom: none; padding-bottom: 0; }
.px-tbl .px-grp th.r { color: var(--primary); } .px-tbl .px-grp th.s { color: var(--stay); }
.px-dist { position: relative; display: inline-block; width: 130px; height: 14px; vertical-align: middle; }
.px-dist::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line); }
.px-box { position: absolute; top: 2px; height: 10px; border-radius: 3px; opacity: .35; }
.px-med { position: absolute; top: 0; width: 2px; height: 14px; background: var(--ink); margin-left: -1px; }
.st-ins div { background: var(--tint); border-radius: 10px; padding: 9px 12px; font-size: 13px; color: var(--submuted); word-break: keep-all; }
.st-ins b { color: var(--ink); }
.st-tbl { overflow-x: auto; }
/* 차트 아래 상시 노출되는 표 — 접기(details)를 없앴으므로 차트와의 사이만 띄운다 */
.st-tbl-open { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.st-tbl table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-tbl th, .st-tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-tbl th { font-size: 12px; color: var(--muted); font-weight: 600; }
.st-tbl th:first-child, .st-tbl td:first-child, .st-tbl .l { text-align: left; }
.st-tbl td.pf { font-weight: 800; }
.st-tbl tr.wk td { background: var(--tint); }
.st-tbl tr.sum td { font-weight: 800; border-top: 2px solid var(--ink); }
.st-tbl .dim { color: var(--muted); font-weight: 400; font-size: 12px; }
.st-tbl .bad { color: var(--danger); font-weight: 700; }
.st-stack { display: flex; height: 12px; border-radius: 4px; overflow: hidden; gap: 2px; min-width: 140px; background: var(--tint); margin-bottom: 3px; }
.st-stack i { display: block; height: 100%; }
.st-stack .r { background: var(--primary); }
.st-stack .s { background: var(--stay); }
.st-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
/* min-width: 0이 없으면 넓은 표가 그리드 칸을 밀어내 페이지가 가로로 넘친다 (표는 .st-tbl 안에서 스크롤) */
.st-two > * { min-width: 0; }
.st-hbars { display: grid; grid-template-columns: 76px 1fr auto; row-gap: 10px; column-gap: 10px; align-items: center; }
.st-hbars .nm { font-weight: 700; font-size: 14px; }
.st-hbars .trk { display: flex; flex-direction: column; gap: 3px; }
.st-hbars .trk i { display: block; height: 12px; border-radius: 3px; }
.st-hbars .trk .c { background: var(--primary); }
.st-hbars .trk .p { background: var(--st-prev); height: 8px; }
.st-hbars .val { font-size: 14px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-hbars .val small { color: var(--muted); font-size: 12px; margin-left: 6px; }
/* 요일별 구분 토글 (합계·대실·숙박) — 기록 탭의 필터 칩과 같은 모양 */
.st-seg { margin: 0 0 10px; }
/* 대실·숙박 전달 대비 카드 */
.st-cmpcard { background: var(--tint); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.st-cmphead { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.st-cmphead i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
.st-cmprow { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 8px; align-items: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.st-cmprow > span { color: var(--muted); }
.st-cmprow .trk { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.st-cmprow .trk i { display: block; height: 10px; border-radius: 3px; }
.st-cmprow .trk .p { background: var(--st-prev); height: 7px; }
.st-cmprow small { color: var(--muted); font-size: 12px; }
.st-cmpfoot { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.st-floor { font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.st-floor:first-child { margin-top: 0; }
.st-rooms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.st-room { border-radius: 8px; padding: 7px 4px; text-align: center; border: 1px solid var(--line); background: var(--surface); }
.st-room .no { font-size: 14px; font-weight: 800; }
.st-room .rv, .st-room .dl { font-size: 11px; color: var(--submuted); font-variant-numeric: tabular-nums; }
.st-room.l0 { color: var(--faint); }
.st-room.l1 { background: var(--st-h1); } .st-room.l2 { background: var(--st-h2); } .st-room.l3 { background: var(--st-h3); }
.st-room.l4 { background: var(--st-h4); color: #fff; } .st-room.l5 { background: var(--st-h5); color: #fff; }
.st-room.l4 .rv, .st-room.l4 .dl, .st-room.l5 .rv, .st-room.l5 .dl { color: rgba(255,255,255,.88); }
.st-ramp { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.st-ramp i { display: block; width: 24px; height: 10px; border-radius: 2px; }
.st-ramp .l1 { background: var(--st-h1); } .st-ramp .l2 { background: var(--st-h2); } .st-ramp .l3 { background: var(--st-h3); } .st-ramp .l4 { background: var(--st-h4); } .st-ramp .l5 { background: var(--st-h5); }
@media (max-width: 640px) {
  .st-two { grid-template-columns: 1fr; }
  .st-ins { grid-template-columns: 1fr; }
  .st-hbars { grid-template-columns: 60px 1fr auto; }
}
/* 뒤쪽 데스크톱 규칙(.kpi-row 3열)보다 우선하도록 선택자를 겹친다 */
@media (min-width: 1024px) { .kpi-row.st-kpis { grid-template-columns: repeat(4, 1fr); } }

/* 통계 요약 지표 — 막대만 반복되던 화면 상단에 핵심 수치를 먼저 보여준다 */
.kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi-value { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi-value .unit { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.kpi-sub { font-size: 11px; color: var(--faint); }
/* 차트 카드 묶음 — 모바일은 1열, 데스크톱에서 2열(시계열은 전폭)로 확장된다 */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.stats-grid .card-box { margin-bottom: 0; }

/* 설정 카드 묶음 — 모바일 1열. 데스크톱에서 2열 매서너리(카드가 쪼개지지 않음)로 확장 */
.settings-grid { column-count: 1; }

/* 설정 */
/* touch-action: none — 이게 없으면 폰에서 태그를 끄는 대신 화면이 스크롤된다 */
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--primary-bg); color: var(--primary); border-radius: 999px; padding: 6px 12px; margin: 3px; font-weight: 600; cursor: grab; touch-action: none; }
.tag.dragging { opacity: 0.4; }
.tag.drag-over { outline: 2px dashed var(--primary); outline-offset: 2px; }
.tag button { border: none; background: none; color: inherit; padding: 0; font-size: 15px; cursor: pointer; }
.add-form { display: flex; gap: 6px; margin-top: 10px; }
/* min-width: 0이 없으면 input이 기본 너비(약 190px) 아래로 줄지 않는다.
   호실 추가 폼은 입력칸이 둘이라 좁은 화면에서 카드 밖으로 밀려 나갔다. */
.add-form input { flex: 1; min-width: 0; }
.method-row { display: flex; gap: 6px; align-items: center; padding: 6px 0; }
.method-row input { flex: 1; }
/* 호실 관리 — 호실번호 + 타입 + 삭제 */
.room-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.room-row { display: flex; gap: 6px; align-items: center; }
/* 순서 이동 손잡이 — 여기서만 드래그가 시작되므로 나머지 부분에서는 화면이 정상적으로 스크롤된다.
   손가락으로 집기 좋게 폰에서는 더 넓게 잡는다. */
.room-drag { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 26px; align-self: stretch; color: var(--faint); cursor: grab; touch-action: none; }
.room-drag:active { cursor: grabbing; }
.room-drag .ph { font-size: 18px; }
@media (max-width: 640px) { .room-drag { width: 34px; } .room-drag .ph { font-size: 20px; } }
/* 드래그 중에는 글자가 선택돼 끌려 나오지 않게 한다 */
body.reordering, body.reordering * { user-select: none; -webkit-user-select: none; }
.room-row.dragging { opacity: 0.4; }
.room-row.drag-over { outline: 2px dashed var(--primary); outline-offset: 2px; }
.room-no { min-width: 44px; font-weight: 700; font-size: 14px; }
.room-type { flex: 1; min-width: 0; }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.toggle-row input { width: 18px; height: 18px; }


/* 예약·투숙 탭 — 다른 메뉴와 같은 카드박스 언어: 제목이 카드 안에 있고,
   행 리스트는 카드 좌우 패딩을 상쇄해 꽉 채운다. 색은 왼쪽 인셋 바 + 상태 텍스트로만. */
.board-sect { padding-bottom: 0; margin-bottom: 28px; }
.board-sect h3 { display: flex; align-items: center; gap: 8px; }
/* 섹션 제목 컬러 액센트 — 앞 점 + 글자색으로 섹션 성격을 구분한다 */
.board-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 8px; background: var(--faint); }
.board-arrive h3 { color: var(--primary); }
.board-arrive .board-dot { background: var(--primary); }
.board-stay h3 { color: var(--stay); }
.board-stay .board-dot { background: var(--stay); }
.board-depart h3 { color: var(--submuted); }
.board-depart .board-dot { background: var(--muted); }
.board-upcoming h3 { color: var(--card-pay); }
.board-upcoming .board-dot { background: var(--card-pay); }
/* 통계 — 신규·재방문 막대와 범례 */
.st-stack i.n { background: var(--primary); }
.st-stack i.o { background: #d9b45a; }
.st-legend-line { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.st-legend-line .lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.st-legend-line .lg.n { background: var(--primary); }
.st-legend-line .lg.o { background: #d9b45a; }
.st-tbl tr.tot td { border-top: 2px solid var(--line); font-weight: 700; }
/* 단골 표시 — 이름 옆 작은 배지. 단골은 금색, 재방문은 옅게 */
.vip { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 1.5; background: #fbefc9; color: #8a5a00; white-space: nowrap; }
.vip.re { background: var(--tint); color: var(--submuted); font-weight: 700; }
/* 장부 우측 — 온라인예약 카드. 대실/금액/결제수단이 한눈에, 누르면 바로 입실 체크 */
.online-col { display: none; }
/* 예약 경로 로고 — 동그라미 안 공식 아이콘. 그림이 없으면 브랜드 색 바탕에 글자 */
.plat-logo { position: relative; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; box-shadow: 0 0 0 1px rgba(21, 32, 58, .08); background: var(--faint); }
.plat-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plat-logo .pl-txt { font-size: 7.5px; font-weight: 900; letter-spacing: -.04em; }
.plat-logo.pl-yanolja { background: #2b4cfb; }
.plat-logo.pl-goodchoice { background: #e5232a; }
.plat-logo.pl-naver { background: #03c75a; } .plat-logo.pl-naver .pl-txt { font-size: 11px; }
.plat-logo.pl-phone { background: #3a4f7a; }
.plat-logo.pl-walkin { background: #7c8698; }
.plat-logo.pl-etc { background: #b4bccb; }
/* ＋ 예약 카드 — 오른쪽 카드 칸 머리, 카드가 없으면 필터 줄 끝 */
.add-card-btn { display: inline-flex; align-items: center; gap: 3px; padding: 4px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 800; color: var(--action, #1f5eff); background: var(--action-bg, #e6eeff); border: 1.5px dashed currentColor; white-space: nowrap; }
.filters .add-card-btn { margin-left: auto; align-self: center; flex: 0 0 auto; }
/* 예약 카드 추가 창 */
.mc-modal { width: min(460px, 94vw); }
.mc-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 16px 10px; overflow-y: auto; min-height: 0; }
.mc-body > * { flex-shrink: 0; } /* 높이가 정해진 칸 안에서 줄어들지 않게 — 구분 버튼이 찌그러졌다 */
.mc-modal .mc-kind { display: grid; grid-template-columns: 1fr 1fr; }
.mc-modal .mc-kind button { padding: 9px; font-weight: 800; }
.mc-body > input, .mc-booking input, .mc-body > .kb-row, .mc-two input { width: 100%; box-sizing: border-box; min-width: 0; }
.mc-label { font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.mc-label .sub { font-weight: 600; }
.mc-route { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mc-route button { padding: 8px 4px; font-weight: 800; font-size: 13px; }
.mc-route button.on { color: #fff; border-color: transparent; }
.mc-route button.on.phone { background: #3a4f7a; } .mc-route button.on.yanolja { background: #e8336d; }
.mc-route button.on.goodchoice { background: #d8222a; } .mc-route button.on.naver { background: #12a150; }
.mc-route button.on.walkin, .mc-route button.on.etc { background: #67728a; }
.mc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mc-two .kb-row { min-width: 0; }
.mc-dur { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.mc-dur-in { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.mc-dur-in input { width: 64px; text-align: center; }
.mc-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.mc-hint b { color: var(--ink); }
.mc-later { color: var(--warning); font-weight: 700; }
.mc-calls-btn { align-self: flex-start; font-size: 12.5px; padding: 5px 10px; }
.mc-calls { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mc-calls button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 7px 10px; text-align: left; background: var(--surface); }
.mc-calls button:first-child { border-top: none; }
.mc-calls button:hover { background: var(--tint); }
.mc-calls button span { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.ck-pay { display: flex; flex-direction: column; gap: 4px; }
.mc-paste { border: 1.5px dashed #b9c4dc; border-radius: 10px; padding: 8px 10px; background: var(--tint); }
.mc-paste summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--submuted); list-style: none; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mc-paste summary::-webkit-details-marker { display: none; }
.mc-paste summary .sub { font-weight: 600; font-size: 11.5px; }
.mc-paste textarea { width: 100%; box-sizing: border-box; margin-top: 8px; font: inherit; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; resize: vertical; background: var(--surface); }
.mc-paste-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mc-paste-foot .mc-hint { flex: 1; color: var(--danger); }
.mc-paste-foot button { flex: 0 0 auto; font-size: 12.5px; padding: 7px 12px; }
/* 예약 카드 칸 위 요약 — 예약 구분 칩, 객실 타입 표(누르면 그 타입만), 경로별 개수 */
.oc-sum { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.oc-sum-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; white-space: nowrap; }
.oc-sum-top b { font-size: 15px; }
.oc-sum-top .sub { font-size: 11.5px; font-weight: 700; color: var(--stay); }
.oc-sum-top .add-card-btn { margin-left: auto; align-self: center; }
.oc-kinds { display: flex; gap: 5px; flex-wrap: wrap; }
.oc-kind { padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; border: 1.5px solid transparent; background: var(--tint); color: var(--submuted); }
.oc-kind.rental { background: var(--primary-bg); color: var(--primary); }
.oc-kind.stay { background: var(--stay-bg); color: var(--stay); }
.oc-kind.on { border-color: currentColor; }
.oc-kind.all.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
/* 카드는 두 줄(2열) — 칸이 좁으면 한 줄로 */
.oc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; align-items: start; }
/* 객실 등급 묶음 — 1등급 보라, 2등급 파랑, 그 아래와 미정은 회색. 머리를 누르면 접힌다 */
/* 객실 타입 색 — 진한 색(--tc), 바탕(--tc-bg), 테두리(--tc-line). 대실(청록)·숙박(주황)과 겹치지 않는 색만 */
.rc-gold { --tc: #b07d12; --tc-bg: #fbf0d4; --tc-line: #f0dca6; --tc-ink: #6e4d06; }
.rc-blue { --tc: #2b6cd4; --tc-bg: #e4eefc; --tc-line: #c8daf6; --tc-ink: #1d4c99; }
.rc-violet { --tc: #7a4fd0; --tc-bg: #efe8fc; --tc-line: #ddd0f6; --tc-ink: #57349e; }
.rc-sky { --tc: #1688b8; --tc-bg: #e0f2fb; --tc-line: #bfe2f3; --tc-ink: #0e6187; }
.rc-sand { --tc: #8a6d3b; --tc-bg: #f4efe4; --tc-line: #e2d5bb; --tc-ink: #64491f; }
.rc-rose { --tc: #c0396b; --tc-bg: #fbe6ee; --tc-line: #f3c9d8; --tc-ink: #8f2550; }
.rc-unk { --tc: var(--faint); --tc-bg: transparent; --tc-line: #c3cbd9; --tc-ink: var(--ink); }
/* 바탕은 세로 그라데이션 — 이름 줄은 타입 색, 아래로 갈수록 아주 옅은 회색으로 풀려 흰 카드가 떠 보인다 */
/* 타입 묶음 — 색 상자 대신 얇은 글자 머리(색 점 · 타입 · n실 · 남은 · 예약) 아래 티켓 카드들 */
.oc-grp { display: flex; flex-direction: column; gap: 7px; }
.oc-grp .oc-gh { color: var(--tc-ink, var(--ink)); }
.oc-slot { padding: 9px 12px; border: 1.5px dashed var(--tc-line, var(--line)); border-radius: 12px; background: rgba(255, 255, 255, .5); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.oc-gh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; width: 100%; padding: 2px 4px 0; border: none; border-radius: 0; background: none; font-size: 13px; font-weight: 800; color: var(--ink); white-space: nowrap; text-align: left; }
.oc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tc, var(--faint)); align-self: center; flex: 0 0 auto; }
.oc-ty { font-size: 14.5px; font-weight: 800; }
.oc-cnt { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--submuted); }
.oc-cnt b { color: var(--ink); font-variant-numeric: tabular-nums; }
.oc-tot { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.oc-gh .ph { color: var(--faint); font-size: 12px; }
/* 오늘 밤 객실 현황 — 예약 카드 칸 맨 위 한 장. 큰 숫자(남은 방) + 타입별 막대를 표처럼 (숫자는 막대 밖 오른쪽) */
.oc-night { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ocn-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.ocn-h .lb { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.ocn-h .big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--primary); font-variant-numeric: tabular-nums; }
.ocn-h .big.low { color: var(--danger); }
.ocn-h .big small { margin-left: 2px; font-size: 14px; font-weight: 700; color: var(--faint); }
.ocn-h .leg { margin-left: auto; display: flex; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--submuted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ocn-h .sw { display: inline-flex; width: 9px; height: 9px; border-radius: 3px; overflow: hidden; margin-right: 3px; vertical-align: -1px; }
.ocn-h .sw.in { background: #7c869b; }
.ocn-h .sw b { flex: 1; background: var(--tc); }
.ocn-bars { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 9px; align-items: center; }
.ocn-bars .nm { font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.ocn-bars .nm small { margin-left: 3px; font-size: 11px; font-weight: 700; color: var(--faint); }
.ocn-bars .bar { display: flex; gap: 2px; height: 14px; border-radius: 5px; overflow: hidden; background: var(--tint); }
.ocn-bars .bar i { display: block; height: 100%; }
.ocn-bars .bar .in { background: #7c869b; }
.ocn-bars .bar .rv { background: var(--tc, var(--action)); }
.ocn-bars .lf { text-align: right; font-size: 13.5px; font-weight: 800; color: var(--primary); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ocn-bars .lf.low, .oc-left.low { color: var(--danger); }
.ocn-foot { padding-top: 8px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--muted); }
.ocn-foot b { color: var(--warning); }
/* 묶음 머리 — 막대 대신 '남은 n · 예약 n' 글자만 */
.oc-left { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.oc-left + .oc-cnt { margin-left: 8px; }
.type-rank { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.rank-tag { cursor: grab; }
.rank-tag b { color: var(--tc, var(--primary)); margin-right: 2px; }
.rank-tag[class*="rc-"] { background: var(--tc-bg); border-color: var(--tc-line); color: var(--tc-ink); }
.type-colors { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.type-color { display: flex; align-items: center; gap: 5px; }
.tc-name { font-size: 13px; font-weight: 800; min-width: 52px; }
.tc-sw { width: 26px; height: 26px; padding: 0; border-radius: 8px; background: var(--tc-bg); border: 1.5px solid var(--tc-line); position: relative; }
.tc-sw::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--tc); opacity: .55; }
.tc-sw.on { border-color: var(--tc); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--tc); }
.tc-sw.on::after { opacity: 1; }
.oc-empty { grid-column: 1 / -1; margin: 0; padding: 14px; text-align: center; font-size: 12.5px; color: var(--muted); background: var(--surface); border-radius: 12px; }
/* 입실 체크 — 예약의 객실 타입과 같은 방에 테두리 */
.ck-rooms .roomcell.fit:not(.on):not(.busy) { background: var(--surface); box-shadow: 0 0 0 1px var(--tc-line), 0 2px 6px rgba(21, 32, 58, .10); }
.ck-rooms .roomcell.fit.busy { box-shadow: 0 0 0 1px var(--tc-line); }
.ck-rooms.dim .roomcell:not(.fit):not(.on) { opacity: .38; }
.modal-rooms.ck-rooms { padding: 4px; margin: -4px; } /* 스크롤 칸이라 가장자리 방의 그림자가 잘리지 않게 */
.ck-rooms .roomcell { transition: opacity .15s ease; }
.ck-room-label { display: flex; align-items: center; gap: 4px; }
.ck-room-label .sub { margin-left: 2px; }
.rt-chip { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: var(--tc); color: #fff; margin-right: 2px; }
.ck-dim-toggle { margin-left: auto; padding: 2px 8px; border: none; background: none; font-size: 12px; font-weight: 800; color: var(--action, #1f5eff); }
/* 예약 — 매일결제 입금 확인 모달 */
.pay-modal { width: min(420px, 100%); }
.pay-body { padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 12px; }
.pay-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; color: var(--submuted); }
.pay-field input { width: 100%; box-sizing: border-box; font-size: 17px; font-weight: 700; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-methods button { padding: 7px 12px; font-size: 13px; font-weight: 600; }
.pay-methods button.on { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); font-weight: 700; }
.pay-modal .modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
/* 온라인예약 — 입실 체크 모달 */
.ck-modal { width: min(520px, 100%); }
.ck-body { padding: 4px 16px 8px; overflow: auto; }
.ck-label { font-size: 13px; font-weight: 700; margin: 6px 0 6px; }
.ck-label .sub { font-weight: 600; color: var(--primary); margin-left: 4px; }
.ck-rooms { padding: 0; max-height: 40vh; }
.ck-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin-top: 12px; }
.ck-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--submuted); }
.ck-fields label .sub { font-weight: 500; color: var(--muted); margin-left: 4px; }
.ck-fields label:first-child { grid-column: 1 / -1; }
.ck-fields input { width: 100%; box-sizing: border-box; font-size: 15px; }
.ck-fields .kb-row { display: flex; gap: 6px; }
.ck-fields .kb-row input { flex: 1; min-width: 0; }
.ck-modal .modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) { .ck-fields { grid-template-columns: 1fr; } }
/* 온라인예약 — 머리 오른쪽 버튼과 붙여넣기 모달 */
.ib-head-actions { display: flex; align-items: center; gap: 10px; }
.ib-head-actions .sub { font-size: 13px; font-weight: 600; color: var(--submuted); }
.ib-head-actions button { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.ib-paste-modal { width: min(560px, 100%); }
.ib-paste-body { padding: 4px 16px 10px; display: flex; flex-direction: column; gap: 6px; }
.ib-paste-body textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); color: var(--ink); font: 13px/1.5 ui-monospace, Menlo, monospace; resize: vertical; }
.ib-paste-body textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.ib-paste-body .sub { min-height: 16px; color: var(--danger); font-size: 12px; }
.ib-paste-modal .modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 640px) { .ib-head-actions { width: 100%; justify-content: space-between; } }
/* 설정 — 알림 수신 카드 */
.inb-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inb-token { flex: 1 1 200px; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 13px; padding: 7px 10px; background: var(--tint); border-radius: 8px; word-break: break-all; user-select: all; }
.inb-fee { margin-top: 12px; }
.inb-fee input { width: 80px; }
.inb-rtmap { margin-top: 12px; align-items: flex-start; }
.inb-rtmap textarea { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; resize: vertical; background: var(--surface); }
.inb-rtmap > .sub:not(.acct-pw-name .sub) { flex: 1 1 100%; order: 3; font-size: 12px; color: var(--muted); word-break: keep-all; }
.inb-fee > .sub:not(.acct-pw-name .sub) { flex: 1 1 200px; font-size: 12px; color: var(--muted); word-break: keep-all; }
.inb-auto { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; word-break: keep-all; }
.inb-auto input { margin-top: 3px; }
.inb-auto .sub { font-weight: 400; }
.inb-guide { margin-top: 12px; font-size: 13px; color: var(--submuted); }
.inb-guide summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.inb-guide ol { padding-left: 20px; line-height: 1.7; word-break: keep-all; }
.inb-guide code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
.board-empty { padding: 12px 14px; font-size: 13px; color: var(--faint); }

/* 선택지 버튼 그룹 — 드롭다운을 대체한다 */
.sf-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sf-seg button { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 9px 4px; font-size: 13px; color: var(--muted); }
.sf-seg button.on { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }

/* 장부의 가상 줄 (예약대기/미수/선결제 연박표시) — 순번 없이 목록 맨 위에 표시된다.
   플랫 리스트라 카드 테두리 대신 왼쪽 인셋 바 + 배경 틴트로 상태를 표시한다. */
.row.virtual-waiting { border-color: var(--primary); background: var(--primary-bg); box-shadow: inset 3px 0 0 var(--primary); }
.row.virtual-waiting .memo { color: var(--primary); font-weight: 600; }
.row.virtual-unpaid { border-color: var(--danger); background: var(--danger-bg); box-shadow: inset 3px 0 0 var(--danger); }
.row.virtual-unpaid .memo { color: var(--danger); font-weight: 600; }
.row.virtual-prepaid-cont { background: var(--tint); color: var(--muted); cursor: default; }
.row.virtual-prepaid-cont .memo { color: var(--muted); }

/* 일일정산 — 매일 뽑는 A4 두 장(1장 정산 · 2장 기록). 화면의 종이가 곧 인쇄물이다(글자는 pt·간격은 mm로 둬서 화면과 종이가 같다).
   색은 장부 화면과 같다: 대실 청록 · 숙박 주황, 현금 초록 · 카드 남색 · 계좌 보라 · 플랫폼(각 브랜드 색).
   진하게 칠하는 곳은 머리띠와 금고 현금 칸뿐 — 흑백 프린터에서도 회색 단계로 구분된다. */
.dr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.dr-view { min-width: 0; overflow-x: auto; }
.dr-paper + .dr-paper { margin-top: 16px; }
.dr-paper { --d-ink: #15203a; --d-sub: #4a5470; --d-mut: #7a8399; --d-faint: #a9b1c3; --d-line: #e2e6ef; --d-tint: #f4f6fa; --d-navy: #1d2a44;
  page: daily; width: 210mm; min-height: 297mm; box-sizing: border-box; margin: 0 auto; background: #fff; color: var(--d-ink); box-shadow: 0 6px 24px rgba(21, 32, 58, .14); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; font-variant-numeric: tabular-nums; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
/* 색 꼬리 — 글자 색(--c)과 옅은 바탕(--b) */
.dr-paper .t-rental { --c: #0b9b80; --b: #e2f5f0; } .dr-paper .t-stay { --c: #e2621f; --b: #fdeee4; }
.dr-paper .t-cash { --c: #1c8a55; --b: #e3f4ea; } .dr-paper .t-card { --c: #3a5fa8; --b: #e6ecf8; } .dr-paper .t-transfer { --c: #7a4fd0; --b: #efe9fb; }
.dr-paper .t-online { --c: #c0396b; --b: #fbe8ef; } .dr-paper .t-mixed { --c: #3f4a63; --b: #eef1f6; }
.dr-paper .t-yanolja { --c: #2b4cfb; --b: #e7ecff; } .dr-paper .t-goodchoice { --c: #e5232a; --b: #fde6e6; } .dr-paper .t-naver { --c: #03a94d; --b: #e0f6ea; }
.dr-head { display: flex; align-items: flex-end; gap: 4mm; padding: 5mm 9mm 4.5mm; background: var(--d-navy); color: #fff; }
.dr-ttl { display: flex; flex-direction: column; gap: 0.8mm; }
.dr-ttl .kick { font-size: 7.5pt; font-weight: 800; letter-spacing: .12em; color: #9fb0d6; }
.dr-head h2 { margin: 0; font-size: 17pt; font-weight: 800; letter-spacing: -0.02em; }
.dr-head h2 small { margin-left: 2mm; font-size: 10.5pt; font-weight: 600; color: #c9d3ea; }
.dr-meta { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.5mm; }
.dr-meta .chip { display: inline-flex; align-items: center; gap: 1mm; padding: 0.8mm 2.6mm; border-radius: 999px; background: rgba(255, 255, 255, .13); font-size: 8pt; font-weight: 700; white-space: nowrap; }
.dr-meta .chip small { font-size: 7.5pt; font-weight: 600; color: #b8c4e0; }
.dr-body { flex: 1; display: flex; flex-direction: column; gap: 4.2mm; padding: 4.5mm 9mm 7mm; }
.dr-none { color: var(--d-mut); padding: 3mm 0 !important; text-align: center !important; }
.dr-dot { display: inline-block; width: 2.1mm; height: 2.1mm; border-radius: 50%; margin-right: 1.2mm; background: var(--c); vertical-align: 0; }
.dr-tag { display: inline-block; padding: 0 1.6mm; border-radius: 1.4mm; font-size: 7pt; font-weight: 800; line-height: 4mm; color: var(--c); background: var(--b); white-space: nowrap; }
/* 정산 장 — 큰 숫자 세 장 */
.dr-hero { display: grid; grid-template-columns: 1.25fr 1fr 1.15fr; gap: 2.6mm; }
.dr-hero .k { display: flex; flex-direction: column; gap: 1mm; padding: 3mm 3.6mm; border-radius: 3.6mm; background: var(--d-tint); }
.dr-hero .l { font-size: 8pt; font-weight: 800; color: var(--d-sub); }
.dr-hero .l small { margin-left: 1mm; font-weight: 600; color: var(--d-mut); }
.dr-hero b { font-size: 18pt; font-weight: 800; letter-spacing: -0.02em; }
.dr-hero b small { margin-left: 0.3mm; font-size: 10pt; }
.dr-hero .s { font-size: 7.5pt; font-weight: 600; color: var(--d-mut); }
.dr-hero .cash { background: #1c8a55; color: #fff; }
.dr-hero .cash .l, .dr-hero .cash .l small, .dr-hero .cash .s { color: #d6f0e1; }
.dr-split { display: flex; height: 2.6mm; border-radius: 1.6mm; overflow: hidden; margin-top: 0.6mm; background: var(--d-line); }
.dr-split i { display: block; height: 100%; background: var(--c); }
.dr-lg { display: flex; flex-wrap: wrap; gap: 0.6mm 2.6mm; font-size: 7.5pt; font-weight: 700; color: var(--d-sub); }
.dr-lg b { font-size: 7.5pt; font-weight: 800; color: var(--d-ink); }
.dr-sec { display: flex; flex-direction: column; gap: 2mm; min-width: 0; }
.dr-sh { display: flex; align-items: center; gap: 2mm; margin: 0; font-size: 9.5pt; font-weight: 800; }
.dr-sh::before { content: ""; width: 1.1mm; height: 4mm; border-radius: 0.6mm; background: var(--accent, var(--d-navy)); }
.dr-sh span { font-size: 7.5pt; font-weight: 600; color: var(--d-mut); }
.dr-sh em { margin-left: auto; font-style: normal; font-size: 8pt; font-weight: 700; color: var(--d-sub); }
.t-cash-accent { --accent: #1c8a55; } .t-card-accent { --accent: #3a5fa8; } .t-transfer-accent { --accent: #7a4fd0; } .t-io-accent { --accent: #d23a2e; }
/* 결제수단 — 비율 막대 + 대실·숙박 표 */
.dr-mix { display: flex; gap: 0.5mm; height: 5.6mm; border-radius: 1.8mm; overflow: hidden; }
.dr-mix i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 7.5pt; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; background: var(--c); }
.dr-mx { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 8.5pt; }
.dr-mx th { padding: 1.3mm 2.6mm; border-bottom: 1.5px solid var(--d-ink); font-size: 7.5pt; font-weight: 800; color: var(--d-mut); text-align: right; }
.dr-mx th:first-child { text-align: left; }
.dr-mx th.t-rental, .dr-mx th.t-stay { color: var(--c); }
.dr-mx td { padding: 1.5mm 2.6mm; border-bottom: 1px solid var(--d-line); text-align: right; }
.dr-mx td:first-child { text-align: left; font-weight: 800; }
.dr-mx td small { margin-left: 1mm; font-size: 7pt; color: var(--d-mut); font-weight: 600; }
.dr-mx .c { margin-right: 1.3mm; font-size: 7.5pt; color: var(--d-mut); font-weight: 600; }
.dr-mx .z { color: var(--d-faint); }
.dr-mx td.b { font-weight: 800; }
.dr-mx tr.dr-sub td { padding-top: 1mm; padding-bottom: 1mm; font-size: 8pt; background: #fbf6f8; }
.dr-mx tr.dr-sub td:first-child { padding-left: 6mm; font-weight: 700; }
.dr-mx tr.tot td { border-bottom: none; background: var(--d-tint); font-weight: 800; }
.dr-mx tr.tot td:first-child { border-radius: 2mm 0 0 2mm; } .dr-mx tr.tot td:last-child { border-radius: 0 2mm 2mm 0; }
/* 금고 현금 계산 — 칸을 이어 붙인 식 */
.dr-eqn { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.15fr; gap: 1.6mm; align-items: stretch; }
.dr-eqn .op { display: flex; align-items: center; font-size: 14pt; font-weight: 800; color: var(--d-faint); }
.dr-eqn .tile { display: flex; flex-direction: column; gap: 0.5mm; padding: 2.2mm 2.8mm; border: 1.5px solid var(--d-line); border-radius: 3mm; }
.dr-eqn .tile .l { font-size: 7.5pt; font-weight: 800; color: var(--d-mut); }
.dr-eqn .tile b { font-size: 12.5pt; font-weight: 800; }
.dr-eqn .tile .s { font-size: 7pt; font-weight: 600; color: var(--d-mut); }
.dr-eqn .tile.res { border-color: #1c8a55; background: #e3f4ea; }
.dr-eqn .tile.res .l, .dr-eqn .tile.res b { color: #1c8a55; }
.dr-eqn .tile.res b { font-size: 13.5pt; }
.dr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 4.2mm; align-items: start; }
.dr-ls { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8.5pt; }
.dr-ls th { padding: 1mm 1.3mm; border-bottom: 1.5px solid var(--d-ink); font-size: 7pt; font-weight: 800; color: var(--d-mut); text-align: center; }
.dr-ls td { padding: 1.2mm 1.3mm; border-bottom: 1px solid var(--d-line); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-ls td.rm { font-weight: 800; }
.dr-ls td.l { text-align: left; }
.dr-ls td.am { text-align: right; font-weight: 800; }
.dr-ls td.mut { color: var(--d-mut); }
.dr-ls td.in { color: #1c8a55; font-weight: 800; } .dr-ls td.out { color: #d23a2e; font-weight: 800; }
.dr-ck { display: inline-block; width: 3.2mm; height: 3.2mm; border: 1.5px solid #3a5fa8; border-radius: 0.8mm; vertical-align: -0.6mm; }
/* 기록 장 — 요약 줄 + 색 머리 표 두 개 */
.dr-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6mm; }
.dr-mini > div { display: flex; align-items: baseline; gap: 2mm; padding: 2.4mm 3.2mm; border-radius: 3.2mm; background: var(--d-tint); }
.dr-mini span { font-size: 8pt; font-weight: 800; color: var(--c, var(--d-sub)); }
.dr-mini small { font-size: 7.5pt; font-weight: 600; color: var(--d-mut); }
.dr-mini b { margin-left: auto; font-size: 12.5pt; font-weight: 800; }
.dr-tables { display: grid; grid-template-columns: 1fr 1fr; gap: 4.2mm; align-items: start; }
.dr-box { border: 1px solid var(--d-line); border-radius: 3.2mm; overflow: hidden; }
.dr-box.stay { --c: #e2621f; } .dr-box.rental { --c: #0b9b80; }
.dr-bh { display: flex; align-items: baseline; gap: 2mm; padding: 2.4mm 3.2mm; background: var(--c); color: #fff; }
.dr-bh b { font-size: 11pt; } .dr-bh span { font-size: 8pt; font-weight: 700; opacity: .9; }
.dr-bh .sum { margin-left: auto; font-size: 11pt; font-weight: 800; opacity: 1; }
.dr-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 8.5pt; }
.dr-table th { padding: 1mm 1mm; background: var(--d-tint); font-size: 7pt; font-weight: 800; color: var(--d-mut); text-align: center; }
.dr-table td { padding: 0.8mm 1mm; border-top: 1px solid var(--d-line); line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-table tbody tr:nth-child(even) td { background: #fafbfd; }
.dr-table td.no { font-size: 7pt; font-weight: 700; color: var(--d-faint); }
.dr-table td.rm { font-size: 9pt; font-weight: 800; }
.dr-table td.am { text-align: right; font-weight: 800; padding-right: 1.8mm; }
.dr-table td.mm { text-align: left; font-size: 7.5pt; color: var(--d-sub); }
.dr-table tr.cont td { color: var(--d-mut); }
.dr-lstag { display: inline-block; margin-right: 1mm; padding: 0 1.4mm; border-radius: 1.2mm; font-size: 7pt; font-weight: 800; line-height: 3.8mm; color: #8a5a00; background: #fbefc9; }
/* 오른쪽 도구 — 인쇄 · 금고 현금 · 입금 · 지출 (인쇄되지 않는다) */
.dr-tools { display: flex; flex-direction: column; gap: 12px; }
.dr-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dr-card h4 { margin: 0; display: flex; align-items: baseline; gap: 6px; font-size: 14.5px; }
.dr-card h4 span { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.dr-print { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; font-size: 17px; font-weight: 800; border-radius: 12px; }
.dr-info { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.dr-info b { color: var(--ink); }
.dr-cash { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--success-bg); color: var(--success); font-weight: 800; }
.dr-cash b { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dr-items { display: flex; flex-direction: column; }
.dr-items > div { display: flex; align-items: center; gap: 6px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14px; }
.dr-items > div:first-child { border-top: none; }
.dr-items .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-items small { color: var(--muted); font-size: 11.5px; }
.dr-items b { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dr-items button { width: 26px; height: 26px; padding: 0; border: none; background: none; color: var(--faint); flex: 0 0 auto; }
.dr-items button:hover { color: var(--danger); }
.dr-items .none { justify-content: center; color: var(--faint); font-size: 13px; }
.dr-card .exp-form { margin-top: 0; padding-bottom: 0; }
.dr-card .exp-form .pay-seg { flex-basis: 100%; } /* 도구 칸이 좁다 — 현금/카드/계좌는 한 줄, 금액·추가는 다음 줄 */
.dr-cash { flex-wrap: wrap; }
.dr-cash span { white-space: nowrap; }
/* 폰·좁은 화면 — 종이 대신 화면 폭에 맞춘 세로 배치 (인쇄는 PC에서) */
@media screen and (max-width: 900px) {
  .dr-paper { width: auto; min-height: 0; }
  .dr-tables, .dr-two { grid-template-columns: 1fr; }
  .dr-hero, .dr-mini { grid-template-columns: 1fr; }
  .dr-eqn { grid-template-columns: 1fr; }
  .dr-eqn .op { justify-content: center; }
}

/* 인쇄 — 일일정산은 A4 세로 두 장이 기본(1장 정산 · 2장 기록). 기록이 아주 많으면 기록 장이 이어지고, 머리글이 반복된다 */
@page { size: A4 portrait; margin: 12mm 10mm; }
@page daily { size: A4 portrait; margin: 9mm 9mm 11mm; @bottom-right { content: counter(page) " / " counter(pages); font-size: 7pt; color: #777; } }
@media print {
  .no-print, #topbar, #tabbar, #login { display: none !important; }
  #view, #view.has-entrybar { padding: 0 !important; max-width: 100% !important; margin: 0 !important; }
  body { background: #fff; }
  .dr { display: block; }
  .dr-view { overflow: visible; }
  .dr-paper { width: auto; min-height: 0; padding: 0; margin: 0; box-shadow: none; border-radius: 0; zoom: 1 !important; }
  .dr-paper + .dr-paper { margin-top: 0; break-before: page; } /* 둘째 장(기록)은 늘 새 장에서 */
  .dr-paper, .dr-paper * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* 행이 페이지 경계에서 잘리지 않게 */
  tr { break-inside: avoid; }
  thead { display: table-header-group; } /* 표가 다음 장으로 넘어가면 머리글도 반복 */
}

/* 메모(할 일) 탭 */
.memo-add { padding: 12px 14px; }
.memo-form { display: flex; gap: 8px; }
.memo-form input { flex: 1; min-width: 0; }
.memo-sect { padding-bottom: 0; margin-bottom: 20px; }
.memo-sect h3 { display: flex; align-items: center; gap: 8px; }
.memo-count { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 섹션별 컬러 — 할 일(처리 필요)은 주황, 완료는 녹색 */
.memo-dot { width: 8px; height: 8px; border-radius: 999px; flex: 0 0 8px; background: var(--faint); }

.memo-list { margin: 0 -14px; border-top: 1px solid var(--line); }
.memo-empty { padding: 14px; font-size: 13px; color: var(--faint); }
.memo-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.memo-item:last-child { border-bottom: none; }
/* 처리 체크 — 원형 버튼, 완료 시 채워짐 */
.memo-body { flex: 1 1 0; min-width: 0; }
.memo-content { font-size: 15px; font-weight: 500; word-break: break-word; }
.memo-item.done .memo-content { text-decoration: line-through; color: var(--muted); }
.memo-meta { margin-top: 3px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
/* 메모 — 중요·완료 버튼 (글자로 보이는 버튼) */
.memo-btns { flex: 0 0 auto; display: flex; gap: 4px; align-items: center; margin-top: 1px; }
.memo-btn { display: inline-flex; align-items: center; gap: 3px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--muted); background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.memo-btn.ok { color: var(--success); border-color: #b9e2cb; }
.memo-btn.ok:hover { background: var(--success); border-color: var(--success); color: #fff; }
.memo-btn.star:hover { border-color: #f2b705; color: #8a6400; }
.memo-btn.star.on { background: #fff6d6; border-color: #f2b705; color: #8a6400; }
.memo-item.imp { background: #fff6d6; box-shadow: inset 4px 0 0 #f2b705; }
.memo-imp h3.sect { color: #8a6400; }
.memo-imp h3.sect .ph-fill { color: #f2b705; }
.memo-imp h3.sect .sub { color: #8a6400; }
.memo-imp-toggle { flex: 0 0 auto; width: 42px; padding: 0; font-size: 18px; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; }
.memo-imp-toggle.on { background: #fff6d6; border-color: #f2b705; color: #b88a00; }
#memo-badge.imp { background: #f2b705; color: #3d2c00; }
/* 폰 — 버튼은 내용 아래 줄 오른쪽으로, 지우기(×)는 내용 옆에 남긴다 */
@media (max-width: 640px) {
  .memo-item { flex-wrap: wrap; }
  .memo-body { flex: 1 1 calc(100% - 40px); }
  .memo-del { order: 2; }
  .memo-btns { order: 3; width: 100%; justify-content: flex-end; }
}
.memo-del { flex: 0 0 auto; width: 28px; height: 28px; padding: 0; border: none; background: none; color: var(--faint); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.memo-del:hover { background: var(--danger-bg); color: var(--danger); }

/* 월간 기록 — 예약 메뉴와 같은 섹션 언어(컬러 점 + 제목). 월 이동은 우측 정렬. */
.cal-card { margin-bottom: 20px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cal-header h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { width: 32px; height: 32px; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--submuted); }
/* minmax(0,1fr) — 셀의 aspect-ratio가 트랙 폭을 밀어내 컨테이너를 넘치지 않도록 한다 */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: 12px; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.cal-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; gap: 2px; }
.cal-cell.empty { border: none; background: none; cursor: default; }
.cal-cell.today { border-color: var(--primary); border-width: 2px; }
.cal-cell.selected { background: var(--primary); border-color: var(--primary); }
.cal-cell.selected .cal-day, .cal-cell.selected .cal-total { color: #fff; }
.cal-head { display: flex; align-items: baseline; gap: 4px; min-width: 0; max-width: 100%; }
.cal-day { font-size: 13px; font-weight: 700; }
/* 그날 근무자 — 좁은 칸에서 날짜를 밀어내지 않도록 줄여서 넣고, 넘치면 말줄임 */
.cal-staff { font-size: 10px; font-weight: 600; color: var(--muted); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-cell.selected .cal-staff { color: rgba(255, 255, 255, 0.85); }
/* 그날 날씨 — 날짜 옆 아이콘 + 최고기온 (월간 기록 달력) */
.cal-wx { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; line-height: 1; }
.cal-wx small { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-cell.selected .cal-wx small { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 640px) { .cal-wx { font-size: 11px; } .cal-wx small { display: none; } }
/* 폰에서는 칸이 43px밖에 안 돼 날짜 옆에 두면 '서창현'이 '서…'로 잘려 누군지 알 수 없다.
   한 줄 내려 칸 전체 폭을 쓰게 한다 (칸이 넓어지는 태블릿부터는 다시 날짜 옆에 붙는다) */
@media (max-width: 640px) {
  .cal-head { flex-direction: column; align-items: center; gap: 0; width: 100%; }
  .cal-staff { font-size: 9px; line-height: 1.3; }
}
.cal-total { font-size: 11px; color: var(--success); font-weight: 600; }
/* 날짜별 대실/숙박 건수 — 장부의 대실(초록)·숙박(러스트) 색과 동일하게 맞춘다 */
.cal-counts { display: flex; gap: 4px; flex-wrap: wrap; font-size: 10px; font-weight: 700; line-height: 1.2; }
.cal-counts .cnt-rental { color: var(--primary); }
.cal-counts .cnt-stay { color: var(--stay); }
.cal-counts .cnt-longstay { color: var(--warning); }
.cal-cell.selected .cal-counts .cnt-rental, .cal-cell.selected .cal-counts .cnt-stay,
.cal-cell.selected .cal-counts .cnt-longstay { color: rgba(255, 255, 255, 0.9); }

/* ───────────────────────────────────────────────────────────
   데스크톱 (≥1024px): 하단 탭바를 왼쪽 사이드바로 전환하고 본문을 넓힌다.
   모바일 레이아웃은 이 블록 밖에서 그대로 유지된다. DOM/JS 변경 없이 CSS만으로 처리.
   ─────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  /* 사이드바 폭은 220px로 통일 — 아래 여러 곳에서 반복 사용된다 */

  /* 하단 탭바 → 왼쪽 세로 사이드바 (Linear식: 페이지와 같은 배경의 플랫 구조, 활성 항목만 틴트 필) */
  #tabbar {
    top: 0; bottom: 0; left: 0; right: auto;
    width: 220px; height: auto;
    flex-direction: column; justify-content: flex-start; gap: 2px;
    padding: 64px 12px 16px;
    background: var(--paper);
    border-top: none; border-right: 1px solid var(--line);
  }
  /* 사이드바 상단 워드마크 — 상단바(날짜) 높이와 맞춰 정렬 */
  #tabbar::before {
    content: "숙박 장부";
    position: absolute; top: 0; left: 0; right: 0; height: 52px;
    display: flex; align-items: center; padding: 0 22px;
    font-size: 15px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink);
  }
  #tabbar button {
    flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 10px;
    height: 38px; padding: 0 10px; border-radius: 8px; color: var(--submuted);
  }
  #tabbar button .ph { font-size: 18px; color: var(--muted); }
  #tabbar button span { font-size: 14px; }
  #tabbar button:hover { background: var(--tint); }
  #tabbar button.active { background: var(--primary-bg); color: var(--primary); }
  #tabbar button.active .ph { color: var(--primary); }
  /* 사이드바에서는 배지를 메뉴 줄 오른쪽 끝에 세로 가운데로 */
  .tab-badge { position: static; margin-left: auto; }

  /* 사이드바 하단 한눈 요약 — 어느 화면에 있든 오늘 상황이 보이게 */
  #nav-summary {
    display: block; margin-top: auto; padding: 12px 10px 4px;
    border-top: 1px solid var(--line); font-size: 12px;
  }
  .ns-title { font-size: 11px; font-weight: 800; color: var(--faint); margin-bottom: 6px; }
  .ns-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 3px 0; }
  .ns-row span { color: var(--muted); }
  .ns-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
  .ns-row.cash b { color: var(--success); }
  .ns-todo { margin-top: 8px; padding: 5px 8px; border-radius: 7px;
    background: var(--warning-bg); color: var(--warning); font-weight: 700; text-align: center; }

  /* 상단바: 사이드바 오른쪽에서 시작. 날짜 조절기를 왼쪽에 붙인다(넓은 폭에서 가운데 뜨지 않게) */
  #topbar { left: 220px; padding: 0 24px; gap: 2px; }
  #topbar #date-today { flex: 0 0 auto; height: 36px; padding: 0 10px; border-radius: 10px; }
  #staff-select { margin-left: auto; max-width: 160px; }

  /* 본문: 사이드바만큼 밀고, 모든 페이지가 같은 좌상단 기준점에서 시작한다.
     가운데 정렬 금지 — 콘텐츠 최대폭 1200px, 왼쪽 정렬로 통일 (Linear/Stripe 방식). */
  #view, #view.has-entrybar { margin-left: 220px; max-width: none; padding: 72px 40px 56px; }
  /* 가로 정렬만 좌상단으로 리셋하고, 각 블록의 세로 여백(margin-bottom)은 유지해 섹션 간 리듬을 살린다 */
  #view > * { width: 100%; max-width: 1200px; margin-left: 0; margin-right: 0; }

  /* 장부 재해석: 모바일의 하단 고정 독을 → 좌측 기록 리스트 + 우측 상시 입력 패널 2열로.
     DOM은 그대로(.filters/.list/.entry-panel)이고 그리드 영역으로 재배치한다. */
  #view.has-entrybar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px; /* 우측 패널 — 요약 숫자(1,951,000원)가 한 줄에 들어갈 폭 */
    grid-template-rows: auto 1fr; /* 남는 세로 공간은 리스트 행이 갖는다 — 필터 줄이 늘어나지 않게 */
    grid-template-areas: "filters entry" "list entry";
    align-content: start;
    column-gap: 28px;
    row-gap: 18px; /* 필터 ↔ 리스트 세로 여백 (그리드 자식은 margin이 0으로 초기화되므로 gap으로 준다) */
    max-width: 1200px; /* 다른 페이지의 콘텐츠 최대폭과 동일 기준 */
    padding-bottom: 56px;
  }
  #view.has-entrybar > * { width: auto; max-width: none; margin: 0; } /* 폭은 그리드가 정한다 */
  /* 오늘 입실할 온라인예약이 있으면 맨 오른쪽에 카드 열이 하나 더 붙는다 */
  #view.has-entrybar.has-online {
    grid-template-columns: minmax(0, 1fr) 340px clamp(260px, 47vw - 357px, 320px); /* 예약 카드 칸은 260~320 — 더 좁으면 글자가 자글자글해진다. 대신 입력 패널을 340으로 */
    grid-template-areas: "filters entry online" "list entry online";
    column-gap: 18px;
    max-width: 1400px; /* 3열일 때는 화면이 허락하는 만큼 넓게 써서 리스트가 좁아지지 않게 */
  }
  /* 3열이면 리스트가 좁다 — 줄 번호 칸을 좁히고 칸 폭을 조금씩 줄여 가운데 이름 자리를 확보한다 */
  #view.has-entrybar.has-online .list .row { padding: 10px 12px; }
  #view.has-entrybar.has-online .row-main { gap: 6px; }
  #view.has-entrybar.has-online .row-main .no { width: 18px; flex-basis: 18px; font-size: 11px; }
  #view.has-entrybar.has-online .row-main .time { width: 40px; flex-basis: 40px; }
  #view.has-entrybar.has-online .row-main .amount { width: 74px; flex-basis: 74px; }
  #view.has-entrybar.has-online .row-main .pay { width: 50px; flex-basis: 50px; }
  #view.has-entrybar.has-online .row-main .pay.hold { width: auto; flex-basis: auto; }
  #view.has-entrybar.has-online .roomcell { padding: 10px 0; font-size: 15px; }
  #view.has-entrybar > .online-col { grid-area: online; align-self: start; position: sticky; top: 72px; display: flex; flex-direction: column; gap: 10px; }
  /* 카드가 많아 화면보다 길어지면 카드 칸만 따로 스크롤 — 요약(예약 카드 N · 거르기)은 위에 붙어 있다 */
  #view.has-entrybar > .online-col { max-height: calc(100vh - 88px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 4px; }
  #view.has-entrybar > .online-col > .oc-sum { position: sticky; top: 0; z-index: 2; box-shadow: 0 6px 10px -8px rgba(21, 32, 58, .25); }
  #view.has-entrybar > .filters { grid-area: filters; }
  #view.has-entrybar > .list { grid-area: list; align-self: start; }
  /* 필터 탭: 전폭으로 퍼뜨리지 않고 왼쪽 정렬 탭 (Stripe 탭 패턴) */
  .filter-tab { flex: 0 0 auto; padding: 12px 20px; font-size: 17px; }
  /* PC에서는 리스트 항목을 조금 더 크게 */
  .list .row { min-height: 56px; padding: 10px 18px; }
  .list .row.grouped-first, .list .row.grouped-mid, .list .row.grouped-last { min-height: 0; }
  .row-main { gap: 7px; }
  .row-main .time { font-size: 14.5px; width: 42px; flex-basis: 42px; }
  .row-main .rooms { font-size: 17px; }
  .row-main .memo .memo-line { font-size: 14.5px; }
  .row-main .amount { font-size: 16px; width: 84px; flex-basis: 84px; }
  .row-main .pay { width: 56px; flex-basis: 56px; }

  /* 하단 고정 독 → 우측 컬럼: 위에 오늘 요약 카드, 아래에 입력 카드 (sticky) */
  #view.has-entrybar > .entry-panel {
    grid-area: entry; align-self: start;
    position: sticky; top: 72px; left: auto; right: auto; bottom: auto;
    display: flex; flex-direction: column; gap: 12px;
    background: none; border: none; box-shadow: none;
    /* 객실 전부 표시 + 5개 섹션이면 패널이 뷰포트보다 커질 수 있다.
       sticky 요소가 화면보다 크면 하단(추가 버튼)에 닿지 못하므로 패널 내부 스크롤을 허용한다.
       객실 그리드 자체는 여전히 스크롤 없이 전부 렌더된다. */
    max-height: calc(100dvh - 84px); overflow-y: auto; padding-right: 2px;
  }
  /* 패널이 flex column이라 자식이 줄어들면 entry-card(overflow:hidden) 안에서 추가 버튼이 잘린다.
     자식을 자연 높이로 고정해 넘칠 때 패널 자체가 스크롤되도록 한다. */
  #view.has-entrybar > .entry-panel > * { flex-shrink: 0; }
  /* 1. 오늘 요약 — 별도 카드로 승격, 수치를 크게 */
  .entry-panel > .summary {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    color: var(--ink); padding: 14px 16px;
    display: grid; grid-template-columns: auto auto 1fr; gap: 10px 16px; /* 칸 폭은 숫자 길이대로 — 비율로 나누면 7자리 금액이 옆 칸에 겹친다 */
  }
  /* 예약 카드 칸이 붙어 입력 패널이 좁을 때(340px) — 숫자를 한 단계 줄여 세 칸이 한 줄에 들어가게 */
  #view.has-entrybar.has-online > .entry-panel > .summary { padding: 14px; column-gap: 12px; }
  #view.has-entrybar.has-online > .entry-panel > .summary .sum-val { font-size: 16px; }
  .entry-panel > .summary .sum-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
  .entry-panel > .summary .sum-val { white-space: nowrap; }
  .entry-panel > .summary .sum-label { color: var(--muted); }
  .entry-panel > .summary .sum-val { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
  .entry-panel > .summary .sum-item.total .sum-val { color: var(--primary); }
  .entry-panel > .summary .sum-flags { grid-column: 1 / -1; color: var(--danger); }
  .entry-panel > .summary .sum-note { color: var(--muted); }
  /* 2. 입력 카드 — 라벨 있는 세로 섹션 폼: 유형 → 객실(전부표시) → 금액 → 결제수단(버튼) → 예약자·메모 → 추가 */
  .entry-card {
    display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 6px 20px rgba(33, 31, 28, .06); overflow: hidden; padding: 0; border-top: none;
  }
  .entry-card .es { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .entry-card .es-label { display: block; font-size: 12px; font-weight: 600; color: var(--submuted); margin-bottom: 8px; }
  .entry-card .es-row { display: flex; gap: 8px; margin-top: 8px; }
  .entry-card #in-amount, .entry-card #in-memo, .entry-card #in-guest,
  .entry-card #in-nights, .entry-card #in-paymode, .entry-card #in-time { width: 100%; }
  .entry-card #in-amount { font-size: 14px; }
  /* 유형: 두 버튼 균등 분할 */
  .entry-card .type-seg button { flex: 1; padding: 10px; }
  /* 객실: 토글 버튼 숨기고 그리드를 항상 인라인으로, 스크롤 없이 전부 표시 */
  .entry-card #btn-rooms { display: none; }
  .entry-card .es-rooms #roomgrid {
    display: grid !important; position: static; left: auto; right: auto; bottom: auto;
    max-width: none; max-height: none; margin: 0; padding: 0; box-shadow: none; border: none; overflow: visible;
    grid-template-columns: repeat(5, 1fr); gap: 6px;
  }
  .entry-card .roomcell { padding: 9px 0; font-size: 14px; }
  /* 금액: 빠른칩은 가로 스크롤 없이 줄바꿈으로 전부 나열 */
  .entry-card .quick { flex-basis: auto; margin-bottom: 8px; flex-wrap: wrap; overflow-x: visible; }
  /* 결제수단: 버튼 3열 그리드 */
  .entry-card .pay-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .entry-card .pay-seg button { padding: 9px 4px; text-align: center; }
  /* 추가/수정/삭제 */
  .entry-card .es-actions { display: flex; gap: 8px; padding: 12px 14px; }
  .entry-card .es-actions #btn-save { flex: 1; }


  /* 통계: 요약 4열 + 차트 2열(일별·월별 시계열은 전폭) */
  .kpi-row { grid-template-columns: repeat(3, 1fr); gap: 12px; } /* KPI 6개 → 2×3 */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .stats-grid .card-box.wide { grid-column: 1 / -1; }

  /* 설정: 2열 매서너리. 카드는 열 사이에서 쪼개지지 않고, 호실만 전폭으로 얹는다 */
  .settings-grid { column-count: 2; column-gap: 16px; }
  .settings-grid > .card-box { break-inside: avoid; }
  .settings-grid > .sg-wide { column-span: all; }

  /* 일일정산: 왼쪽 종이(A4 실제 크기) + 오른쪽 도구 칸. 화면이 좁으면 종이를 조금 줄여 보인다 */
  /* 일일정산: 왼쪽 종이 + 오른쪽 도구 칸. 화면 폭 제한을 풀고, 종이는 남는 폭에 맞춰 크게 그린다(report.js가 비율을 정한다) */
  #view[data-view="report"]:not(.report-classic) { max-width: none; padding-left: 24px; padding-right: 24px; }
  #view[data-view="report"]:not(.report-classic) > * { max-width: none; }
  .dr { grid-template-columns: minmax(0, 1fr) 280px; }

  /* 월간 달력: 헤더도 좌상단 기준 정렬, 커진 칸에 맞춰 글자 확대 */
  .cal-header { justify-content: flex-start; gap: 8px; }
  .cal-grid { gap: 8px; }
  .cal-dow { font-size: 14px; }
  .cal-cell { aspect-ratio: auto; min-height: 96px; align-items: stretch; justify-content: flex-start; padding: 10px 12px; border-radius: 12px; }
  .cal-head { align-self: flex-start; width: 100%; }
  .cal-day { font-size: 18px; }
  .cal-staff { font-size: 12px; }
  .cal-counts { font-size: 13px; gap: 8px; margin-top: 3px; }
  .cal-total { font-size: 15px; font-weight: 700; margin-top: auto; align-self: flex-end; }
  /* 선택한 날짜 상세: 정산 | 지출 2열 */
  /* 정산은 전폭, 입금·지출은 나란히 2열 */
  #cal-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  #cal-detail .card-box { margin-bottom: 0; }
  #cal-detail > .board-arrive { grid-column: 1 / -1; }
}

/* 작업 기록 탭 — 누가 언제 무엇을 했는지. 등록·수정·삭제를 색으로 구분한다. */
.log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
button.danger-ghost { border-color: var(--danger); color: var(--danger); background: var(--surface); padding: 6px 12px; font-size: 13px; font-weight: 700; }
button.danger-ghost:hover { background: var(--danger-bg); }

.log-list { display: flex; flex-direction: column; gap: 6px; }
.log-row {
  display: grid; align-items: center; gap: 8px;
  grid-template-columns: 84px 46px 44px 1fr auto auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.log-at { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.log-act { text-align: center; border-radius: 6px; padding: 2px 0; font-size: 12px; font-weight: 800; }
.log-act.act-create { background: var(--primary-bg); color: var(--primary); }
.log-act.act-update { background: var(--warning-bg); color: var(--warning); }
.log-act.act-delete { background: var(--danger-bg); color: var(--danger); }
.log-target { font-size: 12px; font-weight: 700; color: var(--submuted); }
.log-summary { font-size: 14px; font-weight: 600; word-break: break-all; }
.log-staff { font-size: 12px; color: var(--muted); white-space: nowrap; }
.log-del { border: none; background: none; color: var(--faint); padding: 2px 4px; }
.log-del:hover { color: var(--danger); }

/* 모바일 — 요약을 아랫줄로 내려 가로 폭을 확보한다 */
@media (max-width: 640px) {
  .log-row { grid-template-columns: auto 46px 44px 1fr auto; row-gap: 4px; }
  .log-summary { grid-column: 1 / -1; }
}

/* 접속 현황 — 지금 몇 대가 켜져 있는지, 어느 기기가 어느 메뉴를 다녔는지 (관리자 전용) */
.pr-head { margin-bottom: 14px; }
.pr-count { margin: 6px 0 4px; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--primary); }
.pr-count span { font-size: 16px; font-weight: 700; margin-left: 4px; color: var(--submuted); }
.pr-note { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); word-break: keep-all; }
.pr-hint { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); word-break: keep-all; }

.pr-list { display: flex; flex-direction: column; gap: 8px; }
.pr-device {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  display: flex; flex-direction: column; gap: 5px;
}
.pr-device.on { border-color: var(--primary); background: var(--primary-bg); }
.pr-d-main { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 접속 중인 기기에만 색이 들어간 점 — 목록을 훑을 때 켜진 기기가 먼저 잡힌다 */
.pr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: 0 0 auto; }
.pr-device.on .pr-dot { background: var(--primary); }
.pr-nick { font-size: 15px; font-weight: 800; }
.pr-me { font-size: 11px; font-weight: 700; color: var(--primary); background: var(--surface); border: 1px solid var(--primary); border-radius: 5px; padding: 1px 5px; }
.pr-kind { font-size: 13px; font-weight: 600; color: var(--submuted); }
.pr-auto { font-size: 12px; font-weight: 600; color: var(--muted); }
/* 별명·삭제 — 줄 오른쪽 끝의 작은 아이콘 버튼 */
.pr-actions { margin-left: auto; display: inline-flex; gap: 4px; }
.pr-actions button { padding: 4px 7px; font-size: 14px; line-height: 1; color: var(--muted); background: transparent; border-color: transparent; }
.pr-actions button:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }
.pr-actions [data-dev-del]:hover { color: var(--danger); border-color: var(--danger); }
.pr-nick-in { flex: 1 1 160px; min-width: 0; max-width: 260px; font-size: 14px; font-weight: 700; padding: 5px 8px; }
.pr-d-main .primary, .pr-d-main [data-nick-cancel] { padding: 5px 10px; font-size: 13px; }
.pr-d-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pr-ip { font-variant-numeric: tabular-nums; color: var(--faint); }
.pr-d-first { color: var(--faint); }

@media (max-width: 640px) {
  .pr-count { font-size: 34px; }
  .pr-d-sub { gap: 8px; }
}

/* 이 손님 누구? — 이름으로 지난 이용 내역 찾기 */
/* 숫자 키패드 — PC에서 금액 칸에 포커스하면 뜬다 (ui.js attachKeypad) */
.numpad {
  position: fixed; z-index: 300; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; /* 모달(200) 안의 칸에서도 위에 뜨게 */
  padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 28px rgba(33, 31, 28, .18);
}
.numpad button { padding: 10px 0; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.numpad button:hover { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
.numpad .np-fn { font-size: 14px; font-weight: 600; }
.numpad .np-done { background: var(--primary); color: #fff; border-color: var(--primary); }
.numpad .np-done:hover { background: var(--primary); color: #fff; }

/* 화면 키보드 — 글자 칸 옆 ⌨ 아이콘 (ui.js attachKeyboard) */
.kb-row { display: flex; gap: 6px; flex: 1 1 0; min-width: 0; }
.kb-row > input { flex: 1 1 0; min-width: 0; }
.kb-btn { flex: 0 0 auto; width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; }
.kb-btn.on { color: var(--primary); border-color: var(--primary); background: var(--primary-bg); }
.oskb {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 72px; z-index: 300; /* 모달(200) 위 */
  width: min(760px, calc(100vw - 16px)); padding: 8px; display: flex; flex-direction: column; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(33, 31, 28, .22);
}
@media (min-width: 1024px) { .oskb { bottom: 16px; } }
/* 칸이 화면 아래쪽에 있으면 위로 띄운다 (상단바 52px 아래) */
.oskb.top { bottom: auto; top: 64px; }
.oskb-keys { display: flex; flex-direction: column; gap: 6px; }
/* 미리보기 — 키보드가 칸을 가려도 지금 치는 내용이 보인다 */
.oskb-preview { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 16px; overflow: hidden; }
.oskb-ph { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.oskb-val { flex: 0 1 auto; min-width: 0; font-weight: 600; white-space: pre; overflow: hidden; }
.oskb-caret { flex: 0 0 2px; width: 2px; height: 20px; background: var(--primary); animation: oskb-blink 1s steps(2) infinite; }
@keyframes oskb-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .oskb-caret { animation: none; } }
.oskb-row { display: flex; gap: 5px; }
.oskb-row button { flex: 1 1 0; min-width: 0; height: 42px; padding: 0; font-size: 17px; font-weight: 600; }
.oskb-row button:hover { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
.oskb-row button.fn { flex: 1.6 1 0; font-size: 14px; }
.oskb-row button.sp { flex: 5 1 0; font-size: 14px; }
.oskb-row button.on { background: var(--primary-bg); border-color: var(--primary); color: var(--primary); }
.oskb-row button.done { background: var(--primary); color: #fff; border-color: var(--primary); }
.oskb-row button.done:hover { background: var(--primary); color: #fff; }

/* 통계 분석 코멘트 (Claude API) — 차트 옆 숫자를 사람 말로 옮긴 한두 문장 */
.st-ai { display: none; }
.st-ai.on {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 0 0 12px; padding: 10px 12px;
  background: var(--primary-bg); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0;
  font-size: 13px; line-height: 1.6; color: var(--submuted); word-break: keep-all;
}
.st-ai .ph { color: var(--primary); font-size: 15px; flex: 0 0 auto; margin-top: 1px; }
/* 총평은 본문처럼 크게 — 이달 장사를 한눈에 읽는 자리 */
.st-ai-sect .st-ai.on { font-size: 15px; color: var(--ink); margin-bottom: 0; }
.st-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 10px; min-height: 22px; }
.st-ai-load { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.st-ai-load .ph { animation: st-spin 1s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .st-ai-load .ph { animation: none; } }
/* 코멘트 본문 + 지난달 제안 되짚기 / 다음 달 제안 줄 */
.st-ai-body { flex: 1; min-width: 0; }
.st-ai-line { margin-top: 6px; font-size: 13px; color: var(--submuted); }
.st-ai-line b { color: var(--primary); margin-right: 4px; }
.st-fb-reason { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-fb-reason b { color: var(--danger); }
.st-fb-reason input { flex: 1 1 200px; min-width: 0; padding: 5px 8px; font-size: 13px; }
.st-fb-reason button { padding: 5px 10px; font-size: 13px; }
/* 좋음/틀림 — 코멘트 오른쪽 끝, 사장님만 보인다 */
.st-fb { display: inline-flex; gap: 4px; flex: 0 0 auto; margin-left: 4px; }
.st-fb button { padding: 3px 6px; font-size: 14px; line-height: 1; color: var(--muted); background: transparent; border-color: transparent; }
.st-fb button:hover { color: var(--ink); border-color: var(--line); background: var(--surface); }
.st-fb button.on { color: var(--primary); border-color: var(--primary); background: var(--surface); }
.st-fb button[data-vote="down"].on { color: var(--danger); border-color: var(--danger); }
/* 이달 특이사항 — 총평 아래 한 줄 */
.st-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.st-note:empty { display: none; }
.st-note label { font-size: 13px; font-weight: 700; flex: 0 0 auto; }
.st-note .kb-row { flex: 1 1 240px; min-width: 0; }
.st-note input { width: 100%; min-width: 0; }
/* 오늘이 아닌 날짜 확인 창 */
.date-warn { width: min(360px, 100%); padding: 22px 20px 18px; align-items: center; text-align: center; gap: 0; }
.dw-icon { width: 52px; height: 52px; border-radius: 999px; background: var(--warning-bg); color: var(--warning); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 10px; }
.date-warn h3 { font-size: 18px; font-weight: 800; margin: 0 0 8px; }
.dw-date { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0 0 8px; }
.dw-date b { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--warning); }
.dw-date span { font-size: 13px; font-weight: 700; color: var(--muted); }
.dw-body { font-size: 14px; color: var(--submuted); margin: 0 0 16px; word-break: keep-all; }
.dw-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.dw-actions button { width: 100%; padding: 12px; font-size: 15px; font-weight: 700; }
.dw-actions .dw-cancel { border: none; background: none; color: var(--muted); padding: 6px; font-weight: 600; }
/* 통화 기록 */
.cl-period { display: flex; gap: 4px; }
.cl-period button { padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14.5px; }
.cl-period button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.cl-search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 14px; }
.cl-search .ph { color: var(--muted); font-size: 18px; }
.cl-search input { flex: 1; min-width: 0; border: none; background: transparent; padding: 12px 0; font-size: 15px; }
.cl-search input:focus-visible { outline: none; }
.cl-search .kb-row { flex: 1; display: flex; gap: 6px; align-items: center; }
.cl-sect { margin-bottom: 14px; }
.cl-warn-sect h3 { color: var(--danger); }
.cl-list { margin: 0 -14px; border-top: 1px solid var(--line); }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.cl-row:hover { background: var(--tint); }
.cl-row.open { background: var(--tint); }
.cl-row.warn { box-shadow: inset 3px 0 0 var(--danger); }
.cl-main { flex: 1 1 0; min-width: 0; }
.cl-who { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; }
.cl-who b.dim { color: var(--muted); font-weight: 600; }
.cl-guest { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--primary-bg); color: var(--primary); }
.cl-flag { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--danger); color: #fff; }
.cl-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.cl-tel { font-weight: 700; color: var(--ink); text-decoration: none; }
.cl-tel:hover { color: var(--primary); text-decoration: underline; }
.cl-tel.none { color: var(--faint); }
.cl-nums { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.cl-nums b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.cl-nums b small { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 1px; }
.cl-nums span { font-size: 12px; color: var(--muted); }
.cl-last { flex: 0 0 96px; display: flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cl-last .ph { font-size: 16px; }
.cl-last.in .ph, .cl-call.in .ph { color: var(--primary); }
.cl-last.out .ph, .cl-call.out .ph { color: var(--card-pay); }
.cl-last.missed .ph, .cl-call.missed .ph, .cl-last.rejected .ph, .cl-call.rejected .ph { color: var(--danger); }
.cl-hist { padding: 6px 14px 10px 30px; background: var(--tint); border-bottom: 1px solid var(--line); }
.cl-call { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.cl-call-when { width: 92px; flex: 0 0 92px; color: var(--submuted); }
.cl-call-dir { width: 48px; flex: 0 0 48px; font-weight: 700; }
.cl-call.missed .cl-call-dir, .cl-call.rejected .cl-call-dir { color: var(--danger); }
.cl-call-dur { color: var(--muted); }
.cl-hist-foot { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.cl-mic { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-weight: 700; }
.cl-sumline { display: flex; gap: 5px; align-items: flex-start; margin-top: 4px; font-size: 13px; color: var(--submuted); line-height: 1.45; }
.cl-sumline .ph, .cl-sum .ph { color: var(--primary); flex: 0 0 auto; margin-top: 2px; }
.cl-sumline span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cl-rec { margin: 2px 0 8px 26px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.cl-sum { display: flex; gap: 6px; margin: 0 0 6px; font-size: 15.5px; font-weight: 600; line-height: 1.5; }
.cl-rec-note { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.cl-rec-note.err { color: var(--danger); }
.cl-rec-note button { padding: 3px 10px; font-size: 12px; }
.cl-rec-act { display: flex; gap: 6px; }
.cl-rec-act button { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; font-size: 14.5px; font-weight: 700; border-radius: 999px; }
.cl-player audio { width: 100%; margin-top: 8px; }
.cl-talk { margin-top: 8px; padding: 12px 14px; background: var(--tint); border-radius: 8px; font-size: 15px; line-height: 1.65; white-space: pre-line; max-height: 320px; overflow-y: auto; }
/* 다시 걸 번호 — 처리 완료 */
.cl-done { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; font-size: 13px; font-weight: 700; border-radius: 999px; }
.cl-done:hover { border-color: var(--success); color: var(--success); }
.cl-undo { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--success-bg); color: var(--success); font-size: 13.5px; font-weight: 600; }
.cl-undo span { flex: 1; min-width: 0; }
.cl-undo button { padding: 4px 12px; font-size: 12.5px; }
.cl-call-done { font-size: 11px; font-weight: 700; color: var(--success); background: var(--success-bg); padding: 1px 7px; border-radius: 999px; }

/* 예약 관련 통화 — 통화 내용에서 뽑은 것 */
.cl-topic { font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--tint); color: var(--submuted); }
.cl-topic.ok { background: var(--success-bg); color: var(--success); }
.cl-topic.chg { background: var(--warning-bg); color: var(--warning); }
.cl-topic.cxl { background: var(--danger-bg); color: var(--danger); }
.cl-topic.ask { background: var(--card-pay-bg); color: var(--card-pay); }
@media (max-width: 640px) {
  .cl-rec { margin-left: 0; }
  .cl-done span { display: none; }
  .cl-period { width: 100%; }
  .cl-period button { flex: 1; }
  .cl-last { flex-basis: auto; }
  .cl-last span { display: none; }
}
/* 설정 — 화면 디자인 선택 */
.design-seg { margin-top: 4px; }
.design-seg button { flex: 1; padding: 10px; }
/* 설정 — 백업 목록 */
.bk-list { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.bk-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--tint); color: var(--ink); text-decoration: none; font-size: 13px; font-variant-numeric: tabular-nums; }
.bk-item:hover { background: var(--primary-bg); color: var(--primary); }
.bk-item .ph { color: var(--primary); }
.bk-item small { margin-left: auto; color: var(--muted); }
.st-why code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--tint); padding: 1px 5px; border-radius: 4px; }
/* 설정의 API 키 줄 — 비밀번호 줄과 같은 모양 */
.acct-row #ant-key { flex: 1; min-width: 0; }
/* 설정의 우리 모텔 사정 — 여러 줄 메모 */
.ai-ctx { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.ai-ctx label { font-size: 14px; font-weight: 700; }
.ai-ctx textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); color: var(--ink); font: inherit; line-height: 1.5; resize: vertical; }
.ai-ctx textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.ai-ctx-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-ctx-foot button { flex: 0 0 auto; white-space: nowrap; }
.ai-ctx-foot .sub { font-size: 12px; color: var(--muted); word-break: keep-all; }
.ai-ctx-btns { display: flex; gap: 6px; flex: 0 0 auto; }
.ai-ctx-foot.stack { flex-direction: column; align-items: stretch; }
.ai-ctx-foot.stack .ai-ctx-btns { justify-content: flex-end; }

/* 청소팀 근무표 — 칸마다 근무 인원·청소할 방, 일손이 모자란 날은 빨강·노랑 */
.cw-head-r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cw-head-r > button { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.cw-tabs { display: flex; gap: 4px; }
.cw-tabs button { border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 700; color: var(--submuted); }
.cw-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cw-intro { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #e6eeff; color: #1d4cc4; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; }
.cw-intro span { flex: 1 1 260px; }
.cw-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.cw-grid > .card-box { margin: 0; }
.cw-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cw-dow { text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); padding: 2px 0 4px; }
.cw-dow.sun { color: var(--danger); } .cw-dow.sat { color: #1f5eff; }
.cw-c { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-height: 92px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; font-size: 12px; min-width: 0; }
.cw-c.empty { border: none; background: none; cursor: default; }
.cw-c.tight { background: var(--warning-bg); border-color: #e6d3a3; }
.cw-c.short { background: var(--danger-bg); border-color: #e8b4ab; }
.cw-c.today { border: 2px solid var(--ink); }
.cw-c.sel { box-shadow: 0 0 0 2px #1f5eff; }
.cw-d { display: flex; justify-content: space-between; width: 100%; font-size: 14px; font-weight: 800; }
.cw-d small { font-size: 11px; color: var(--muted); font-weight: 700; }
.cw-lv { font-size: 10.5px; font-weight: 800; border-radius: 5px; padding: 1px 5px; }
.cw-lv.ok { background: var(--success-bg); color: var(--success); }
.cw-lv.tight { background: #f5dfa3; color: #7a5300; }
.cw-lv.short { background: #f1c1b8; color: var(--danger); }
.cw-rooms { display: flex; align-items: baseline; gap: 2px; line-height: 1.05; }
.cw-rooms b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.cw-rooms span { font-size: 12px; font-weight: 700; color: var(--muted); }
.cw-rooms em { font-style: normal; font-size: 10.5px; }
.cw-rooms .dim { color: var(--faint); font-size: 16px; }
.cw-c.short .cw-rooms b { color: var(--danger); } .cw-c.tight .cw-rooms b { color: #8a5d00; }
.cw-crew { font-size: 12px; font-weight: 700; color: var(--submuted); }
.cw-crew i { font-style: normal; margin-left: 4px; color: #1d4cc4; }
.cw-offs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; max-width: 100%; margin-top: auto; }
.cw-offs .k { background: none; padding: 0 2px 0 0; color: var(--danger); font-weight: 800; }
.cw-offs span { background: rgba(0, 0, 0, .06); border-radius: 4px; padding: 0 4px; font-size: 11px; font-weight: 700; color: var(--submuted); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cw-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.cw-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -2px; }
.cw-legend .lg-ok { background: var(--success-bg); border: 1px solid #c7dfc3; }
.cw-legend .lg-short { background: var(--danger-bg); border: 1px solid #e8b4ab; }
.cw-legend .lg-tight { background: var(--warning-bg); border: 1px solid #e6d3a3; }
.cw-day h3.sect { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 18px; }
.cw-warn { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.cw-warn.ok { background: var(--success-bg); color: var(--success); }
.cw-warn.short { background: var(--danger-bg); color: var(--danger); }
.cw-warn.tight { background: var(--warning-bg); color: var(--warning); }
.cw-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 6px; margin-bottom: 12px; }
.cw-sum > div { background: var(--tint); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.cw-sum span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cw-sum b { font-size: 21px; font-variant-numeric: tabular-nums; }
.cw-sum small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cw-people { display: flex; flex-direction: column; gap: 6px; }
.cw-p { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; }
.cw-av { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; flex: 0 0 auto; }
.cw-av.sm { width: 26px; height: 26px; font-size: 12px; margin-right: 8px; vertical-align: middle; }
.cw-p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cw-p-main b { font-size: 15.5px; }
.cw-p-main small { font-size: 12.5px; color: var(--muted); }
.cw-fixed { font-size: 11.5px; font-weight: 700; color: #1d4cc4; }
.cw-tog { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: 0 0 auto; }
.cw-tog button { border: none; border-radius: 0; padding: 7px 13px; font-size: 13.5px; font-weight: 800; color: var(--muted); background: var(--surface); }
.cw-tog button.on.w { background: var(--primary); color: #fff; }
.cw-tog button.on.o { background: var(--danger); color: #fff; }
.cw-temp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.cw-temp .cw-add { flex: 1 1 100%; margin-top: 4px; }
.cw-temp .dim { color: var(--faint); }
.cw-extra-h .ph { margin-right: 3px; }
.cw-x.t { background: #e6eeff; color: #1d4cc4; }
.cw-temps-sum { padding: 10px 14px 0; font-size: 14px; color: var(--submuted); }
.cw-temps-sum b { color: #1d4cc4; }
.cw-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 13.5px; }
.cw-extra-h { font-weight: 700; color: var(--muted); margin-right: 2px; }
.cw-extra .dim { color: var(--faint); }
.cw-x { display: inline-flex; align-items: center; gap: 2px; background: var(--danger-bg); color: var(--danger); border-radius: 999px; padding: 2px 4px 2px 10px; font-weight: 700; }
.cw-x button { border: none; background: none; padding: 2px 4px; color: inherit; }
.cw-add { display: flex; gap: 6px; margin-top: 10px; }
.cw-add input { flex: 1; min-width: 0; }
.cw-ptable { padding: 0; overflow: hidden; }
.cw-ptable table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cw-ptable th, .cw-ptable td { text-align: left; padding: 11px 14px; }
.cw-ptable .r { text-align: right; }
.cw-ptable .dim { color: var(--faint); }
.cw-ptable .mk-note { padding: 0 14px 12px; }
.cw-editor h3.sect { margin: 0 0 10px; }
.cw-rows { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.cw-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cw-row .cw-name { flex: 0 1 180px; min-width: 120px; }
.cw-row .kb-row { flex: 0 1 220px; }
.cw-dows { display: flex; gap: 3px; }
.cw-dows button { width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 13px; font-weight: 800; color: var(--submuted); }
.cw-dows button.sun { color: var(--danger); } .cw-dows button.sat { color: #1f5eff; }
.cw-dows button.on { background: var(--danger); border-color: var(--danger); color: #fff; }
.cw-del { padding: 6px 9px; color: var(--muted); }
.cw-load-set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0 4px; font-size: 14px; color: var(--submuted); }
.cw-load-set input { width: 58px; text-align: center; margin-right: 4px; }
.cw-load-set .ok { color: var(--success); } .cw-load-set .tight { color: var(--warning); } .cw-load-set .short { color: var(--danger); }
.cw-ed-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
@media (max-width: 1099px) { .cw-grid { grid-template-columns: 1fr; } }
.cw-c.fut { background: #fafbfd; }
.cw-x { display: none; }
/* PC — 달력은 전폭으로 크게, 날짜 자세히는 누르면 오른쪽에서 열리는 서랍 (좁은 화면은 지금처럼 달력 아래 칸) */
@media (min-width: 1100px) {
  .cw-grid { grid-template-columns: minmax(0, 1fr); }
  .cw-cal-grid { gap: 6px; }
  .cw-c { min-height: 132px; padding: 8px 10px; gap: 6px; font-size: 13px; border-radius: 12px; }
  .cw-d { font-size: 15px; }
  .cw-lv { font-size: 11px; padding: 1px 7px; border-radius: 999px; }
  .cw-rooms b { font-size: 34px; }
  .cw-rooms span { font-size: 13px; }
  .cw-rooms .dim { font-size: 20px; }
  .cw-crew { font-size: 13px; }
  .cw-offs { gap: 3px; }
  .cw-offs span { font-size: 12.5px; padding: 1px 6px; border-radius: 5px; }
  .cw-day { position: fixed; top: 64px; right: 16px; bottom: 16px; z-index: 30; width: 380px; margin: 0; overflow-y: auto; box-shadow: -12px 0 40px rgba(21, 32, 58, .22); transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .cw-day.open { transform: none; visibility: visible; }
  .cw-x { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 32px; height: 32px; padding: 0; border: none; border-radius: 8px; background: none; color: var(--muted); font-size: 16px; }
  .cw-x:hover { background: var(--tint); color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .cw-day { transition: none; } }
@media (max-width: 640px) {
  .cw-c { min-height: 78px; padding: 4px; }
  .cw-lv, .cw-crew i, .cw-rooms em, .cw-offs .k { display: none; }
  .cw-rooms b { font-size: 19px; }
  .cw-crew { font-size: 10.5px; }
  .cw-offs span { font-size: 10px; padding: 0 2px; }
  .cw-head-r { width: 100%; }
}

/* ── 월간 리포트 — 화면에선 A4 종이처럼, 인쇄하면 쪽마다 한 장 ───────────── */
.rp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.rp-bar .st-month { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-bar h2 { margin: 0; font-size: 20px; }
.rp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-actions button { display: inline-flex; align-items: center; gap: 5px; }
.rp-actions button.stale { border-color: var(--warning); color: var(--warning); }
.rp-status { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--tint); color: var(--submuted); display: inline-flex; gap: 4px; align-items: center; }
.rp-status.fin { background: var(--success-bg); color: var(--success); }
.rp-archive { width: 100%; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rp-archive button { padding: 4px 12px; font-size: 13px; border-radius: 999px; }
.rp-archive button.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.rp-paper { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.rp-defs { position: absolute; width: 0; height: 0; }
.rp-page {
  width: 210mm; max-width: 100%; min-height: 297mm; box-sizing: border-box; padding: 13mm 12mm;
  background: #fff; color: #1b1f2a; box-shadow: 0 2px 14px rgba(21, 32, 58, .12); border-radius: 4px;
  font-size: 12.5px; line-height: 1.5;
  --ink: #1b1f2a; --muted: #5f6675; --line: #d9dde5; --tint: #f3f5f8;
}
.rp-page .st-chart text { font-size: 13px; }
.rp-ph { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #1b1f2a; padding-bottom: 6px; margin-bottom: 12px; font-size: 11px; color: #5f6675; }
.rp-ph b { font-size: 17px; color: #1b1f2a; }
.rp-cover { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 3px solid #1b1f2a; padding-bottom: 10px; margin-bottom: 14px; }
.rp-cover h1 { margin: 2px 0 2px; font-size: 30px; letter-spacing: -.5px; }
.rp-kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--primary); }
.rp-cover-n { font-size: 11px; color: #5f6675; }
.rp-h { font-size: 13.5px; margin: 14px 0 6px; display: flex; gap: 8px; align-items: baseline; }
.rp-dim { color: #5f6675; font-weight: 400; }
.rp-small { font-size: 11.5px; margin: 4px 0 0; }
.rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rp-kpi { border: 1px solid #d9dde5; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.rp-kpi-l { font-size: 11px; color: #5f6675; font-weight: 700; }
.rp-kpi-v { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rp-kpi-v small { font-size: 12px; margin-left: 1px; }
.rp-kpi-c { font-size: 11px; color: #5f6675; font-variant-numeric: tabular-nums; }
.rp-d { font-weight: 800; }
.rp-d.up { color: var(--success); }
.rp-d.down { color: var(--danger); }
.rp-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.rp-page .st-cmpcard { background: #f3f5f8; }
.rp-ai { display: flex; gap: 6px; margin: 6px 0 0; padding: 7px 10px; background: #f3f5f8; border-left: 3px solid var(--primary); border-radius: 0 6px 6px 0; }
.rp-ai .ph { color: var(--primary); margin-top: 2px; flex: 0 0 auto; }
.rp-note { margin: 8px 0 0; padding: 7px 10px; border: 1px dashed #d9dde5; border-radius: 6px; }
.rp-legend { display: flex; gap: 14px; justify-content: flex-end; font-size: 11px; color: #5f6675; }
.rp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rp-legend i { width: 12px; height: 10px; border-radius: 2px; display: inline-block; }
.rp-legend .r { background: var(--primary); }
.rp-legend .s { background: repeating-linear-gradient(45deg, var(--stay) 0 2px, var(--stay-bg) 2px 5px); }
.rp-legend .p { background: var(--st-prev); }
.rp-tbl-wrap { overflow-x: auto; }
.rp-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.rp-tbl th { text-align: left; font-size: 11px; color: #5f6675; font-weight: 700; border-bottom: 1.5px solid #1b1f2a; padding: 4px 6px; white-space: nowrap; }
.rp-tbl td { border-bottom: 1px solid #d9dde5; padding: 4px 6px; white-space: nowrap; }
.rp-tbl.rp-num td:not(:first-child), .rp-tbl.rp-num th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.rp-tbl tr.rp-total td { font-weight: 800; border-top: 1.5px solid #1b1f2a; }
.rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-calls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rp-calls > div { border: 1px solid #d9dde5; border-radius: 8px; padding: 7px 9px; display: flex; flex-direction: column; }
.rp-calls span { font-size: 11px; color: #5f6675; font-weight: 700; }
.rp-calls b { font-size: 18px; font-variant-numeric: tabular-nums; }
.rp-calls b small { font-size: 11px; }
.rp-calls em { font-style: normal; font-size: 10.5px; color: #5f6675; }

/* 사장님 코멘트 — 비어 있으면 손글씨용 줄 */
.rp-pen { margin-top: 14px; border: 1.5px solid #1b1f2a; border-radius: 8px; padding: 8px 10px; }
.rp-pen-head { font-weight: 800; font-size: 12.5px; display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.rp-pen textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 1.6; border: 1px solid var(--line); border-radius: 6px; padding: 8px; resize: vertical; background: #fffdf6; color: #1b1f2a; }
.rp-pen .kb-row { display: flex; gap: 6px; align-items: flex-start; }
.rp-pen-text { white-space: pre-wrap; font-size: 13px; line-height: 1.7; }
.rp-pen-lines i { display: block; height: 9mm; border-bottom: 1px solid #c9ced8; }
.rp-print-only { display: none; }

/* 마지막 쪽 */
.rp-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-sum > div, .rp-next { border: 1px solid #d9dde5; border-radius: 8px; padding: 8px 12px; }
.rp-sum h4, .rp-next h4 { margin: 0 0 4px; font-size: 12.5px; display: flex; gap: 6px; align-items: center; }
.rp-sum .good h4 { color: var(--success); }
.rp-sum .bad h4 { color: var(--danger); }
.rp-next { margin-top: 10px; }
.rp-next h4 { color: var(--primary); }
.rp-sum ul, .rp-next ol { margin: 0; padding-left: 18px; }
.rp-sum li, .rp-next li { margin: 3px 0; }
.rp-plan { display: flex; flex-direction: column; }
.rp-plan-row { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #c9ced8; min-height: 9mm; }
.rp-plan-row .box { width: 13px; height: 13px; border: 1.5px solid #1b1f2a; border-radius: 2px; flex: 0 0 auto; }
.rp-plan-row input { flex: 1; border: none; background: transparent; font: inherit; font-size: 14px; padding: 6px 0; color: #1b1f2a; }
.rp-plan-row .kb-row { flex: 1; display: flex; gap: 6px; align-items: center; }
.rp-plan-row .t { font-size: 13px; }
.rp-sign { display: flex; justify-content: flex-end; gap: 24px; margin-top: 18mm; }
.rp-sign div { display: flex; align-items: flex-end; gap: 8px; font-size: 12px; color: #5f6675; }
.rp-sign i { display: block; width: 42mm; border-bottom: 1px solid #1b1f2a; height: 8mm; }

/* 그래프 높이 — 한 쪽(A4)에 그래프 셋과 코멘트 칸이 들어가게 고정한다 (폭은 viewBox 비율대로 맞춰진다) */
.rp-chart svg { height: 44mm; }
.rp-chart.tall svg { height: 58mm; }

/* 폰 화면에서만 — 인쇄 폭(약 190mm)도 760px보다 좁아 그냥 두면 인쇄에도 걸린다 */
@media screen and (max-width: 760px) {
  .rp-chart svg, .rp-chart.tall svg { height: auto; }
  .rp-page { min-height: 0; padding: 16px 14px; }
  .rp-kpis, .rp-calls { grid-template-columns: 1fr 1fr; }
  .rp-cmp, .rp-two, .rp-sum { grid-template-columns: 1fr; }
}

@media print {
  #view[data-view="monthly"] { padding: 0 !important; }
  .rp-paper { display: block; }
  .rp-page { width: auto; min-height: 0; padding: 0; margin: 0; box-shadow: none; border-radius: 0; break-after: page; }
  .rp-page:last-child { break-after: auto; }
  .rp-print-only { display: block !important; }
  .rp-pen, .rp-ai, .rp-tbl-wrap, .rp-chart, .rp-sum, .rp-next, .rp-calls, .rp-kpis { break-inside: avoid; }
  .rp-page, .rp-page * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 통계 — 호텔AI 채팅 (오른쪽 아래 버튼 + 오른쪽 패널, 통계 화면에서만) */
#ai-chat-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border: none; border-radius: 999px; background: #6b4fd8; color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 8px 20px rgba(107, 79, 216, .35); }
#ai-chat-fab .ph-fill { font-size: 18px; }
#ai-chat { position: fixed; right: 16px; top: 68px; bottom: 16px; width: min(420px, calc(100vw - 32px)); z-index: 41; display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; box-shadow: 0 16px 48px rgba(21, 32, 58, .25); overflow: hidden; }
#ai-chat.hidden, #ai-chat-fab.hidden { display: none; }
#ai-chat header { display: flex; align-items: center; gap: 6px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
#ai-chat header .ph-sparkle { color: #6b4fd8; font-size: 17px; }
#ai-chat header .sub { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: auto; }
#ai-chat header button { width: 32px; height: 32px; padding: 0; border: none; background: none; color: var(--muted); font-size: 16px; border-radius: 8px; }
#ai-chat header button:hover { background: var(--tint); color: var(--ink); }
#ai-chat .msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; line-height: 1.6; }
#ai-chat .me { align-self: flex-end; max-width: 85%; background: #1f5eff; color: #fff; border-radius: 14px 14px 4px 14px; padding: 8px 12px; white-space: pre-wrap; word-break: keep-all; }
#ai-chat .bot { align-self: flex-start; max-width: 94%; background: var(--tint); border-radius: 14px 14px 14px 4px; padding: 9px 12px; word-break: keep-all; }
#ai-chat .bot .gap { height: 6px; }
#ai-chat .bot .li { padding-left: 4px; }
#ai-chat .bot .tbl { overflow-x: auto; max-width: 100%; }
#ai-chat .bot { min-width: 0; }
#ai-chat .bot table { border-collapse: collapse; margin: 6px 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
#ai-chat .bot th, #ai-chat .bot td { padding: 3px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
#ai-chat .bot th:first-child, #ai-chat .bot td:first-child { text-align: left; }
#ai-chat .bot th { color: var(--muted); font-weight: 700; }
#ai-chat .bot .src { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
#ai-chat .bot.err { background: var(--danger-bg); color: var(--danger); }
#ai-chat .typing { color: var(--muted); }
#ai-chat .intro { color: var(--submuted); font-size: 13px; background: #f0ecff; border-radius: 12px; padding: 12px 14px; }
#ai-chat .intro .dim { color: var(--muted); font-size: 12px; }
#ai-chat .chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px; }
#ai-chat .chips:not(:empty) { padding-bottom: 10px; }
#ai-chat .chips button { padding: 5px 10px; border: none; border-radius: 999px; background: #f0ecff; color: #6b4fd8; font-size: 12px; font-weight: 700; }
#ai-chat form { display: flex; gap: 6px; align-items: flex-end; margin: 0 12px 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; }
#ai-chat form:focus-within { border-color: #6b4fd8; }
#ai-chat textarea { flex: 1; min-width: 0; border: none; outline: none; resize: none; font: inherit; font-size: 13.5px; padding: 5px 0; background: none; color: var(--ink); max-height: 120px; }
#ai-chat #ai-chat-send { width: 34px; height: 34px; padding: 0; border: none; border-radius: 9px; background: #6b4fd8; color: #fff; font-size: 16px; flex: 0 0 auto; }
#ai-chat #ai-chat-send:disabled { opacity: .45; }
@media (max-width: 640px) {
  #ai-chat { right: 0; left: 0; top: 0; bottom: 0; width: auto; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); }
  #ai-chat-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* 주변 시세 (관리자) — 경쟁 숙소 가격과 우리 등급 비교 */
.mk-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.mk-seg button { border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.mk-seg button.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.mk-seg button small { margin-left: 5px; font-size: 11px; font-weight: 600; opacity: .7; }
.grade { font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.grade.g1 { background: #e4eefc; color: #1d4c99; } .grade.g2 { background: #fbe6ee; color: #8f2550; } .grade.g3 { background: #f4ecda; color: #6b4d12; }
.grade.gr { background: var(--primary-bg); color: var(--primary); }
.mk-note { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.55; word-break: keep-all; }
.mk-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.mk-tbl th, .mk-tbl td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mk-tbl th { font-size: 12px; color: var(--muted); font-weight: 600; }
.mk-tbl th:first-child, .mk-tbl td:first-child { text-align: left; }
.mk-tbl tr[data-open] { cursor: pointer; }
@media (hover: hover) { .mk-tbl tr[data-open]:hover td { background: var(--tint); } }
.mk-tbl tr.me td { background: #eef3ff; font-weight: 800; }
.mk-tbl tr.sum td { font-weight: 800; border-top: 2px solid var(--ink); }
.mk-tbl td .ph-caret-right, .mk-tbl td .ph-caret-down { color: var(--faint); margin-right: 4px; font-size: 12px; }
.mk-tbl .plat-logo { width: 16px; height: 16px; vertical-align: -3px; margin-left: 2px; display: inline-flex; }
.mk-star { color: var(--warning); margin-right: 3px; font-size: 12px; }
.mk-sold { color: var(--faint); text-decoration: line-through; }
.mk-tbl .dim, .mk-read .dim { color: var(--faint); font-weight: 400; font-size: 11.5px; }
.mk-detail > td { background: var(--paper); padding: 8px 10px 12px !important; text-align: left !important; white-space: normal !important; }
.mk-rooms { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mk-rooms th, .mk-rooms td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
.mk-rooms th { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.mk-rooms .l { text-align: left; }
.mk-rooms .mk-rn { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-rooms select { padding: 3px 6px; font-size: 12px; }
.mk-acts { display: flex; gap: 6px; margin-top: 8px; }
.mk-acts button { font-size: 12px; padding: 5px 10px; }
.mk-rank { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 13px; color: var(--submuted); }
.mk-rank b { color: var(--ink); }
.mk-up .mk-up-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.mk-up .mk-up-row .mk-note { margin: 0; }
.mk-file { display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--faint); border-radius: 8px; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.mk-read { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mk-read th, .mk-read td { padding: 5px 4px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.mk-read th { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mk-read .l { text-align: left; }
.mk-read input, .mk-read select { padding: 4px 6px; font-size: 12.5px; }
.mk-read input[data-f="rent"], .mk-read input[data-f="stay"] { width: 80px; text-align: right; }
.mk-read .mk-in-room { width: 180px; }
.mk-read .mk-chk { white-space: nowrap; font-size: 12px; }
.mk-read .mk-chk label { margin-left: 6px; }
.mk-read button { padding: 4px 7px; }
.mk-add summary { cursor: pointer; font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 6px; }

/* 예약 카드 결제 상태 — 받을 돈(미수) · 예약금 · 결제 완료 */
.mc-paybox { display: flex; flex-direction: column; gap: 6px; }
.mc-paybox[hidden], .mc-dep[hidden], .mc-paym[hidden] { display: none; }
.mc-pays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mc-pays button { padding: 8px 4px; font-weight: 800; font-size: 13px; }
.mc-pays button.on { color: #fff; border-color: transparent; }
.mc-pays button.on.due { background: var(--danger); } .mc-pays button.on.deposit { background: var(--warning); } .mc-pays button.on.paid { background: var(--success); }
.mc-dep input { width: 100%; box-sizing: border-box; }
.mc-paym { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.mc-paym .sub { font-size: 12px; color: var(--muted); font-weight: 700; margin-right: 2px; }
.mc-hint .mc-due { color: var(--danger); }
.mc-room-pick summary { cursor: pointer; font-size: 12px; font-weight: 800; color: var(--muted); margin-top: 6px; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.mc-room-pick summary .sub { font-weight: 600; }
.mc-room-pick summary b { color: var(--ink); }
.oc-due-sum { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--danger); white-space: nowrap; font-variant-numeric: tabular-nums; }
.oc-due-sum b { font-weight: 800; }
.ck-paid-note { font-size: 13px; color: var(--warning); background: var(--warning-bg); border-radius: 8px; padding: 7px 10px; }
.ck-paid-note.ok { color: var(--success); background: var(--success-bg); }
.ck-paid-note b { color: var(--ink); }
.ck-due { color: var(--danger); }
.ls-chip.dep { color: var(--success); background: var(--success-bg); }
.es-dep { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 700; color: var(--success); }
.ck-fields .ck-paid-note { grid-column: 1 / -1; }

/* 예약 카드 추가 창 — 두 단(왼쪽 ‘무슨 예약’, 오른쪽 ‘누가·얼마’) + 카드 미리보기 + 아래 한 줄 요약 */
.mc-modal.mc-a { width: min(860px, 96vw); max-height: 92dvh; }
.mc-a .mc-head { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.mc-a .mc-head h3 { margin: 4px 0 0; }
.mc-a .mc-head .mc-paste { margin-left: auto; padding: 5px 10px; flex: 0 1 auto; }
.mc-a .mc-head .mc-paste[open] { flex: 1 1 100%; margin-left: 0; }
.mc-a .mc-head .mc-paste summary { font-size: 12.5px; }
.mc-a .mc-cols { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; padding: 0; }
.mc-col { display: flex; flex-direction: column; gap: 6px; padding: 10px 18px 14px; min-width: 0; }
.mc-col > input { width: 100%; box-sizing: border-box; min-width: 0; }
.mc-col2 { border-left: 1px solid var(--line); background: #fbf9f4; }
/* 객실 타입 — 색 점 · 이름 · 방 수 버튼(3열). 고르면 그 타입 색으로 채우고, 아래 같은 색 판에 호실 버튼 */
.mc-rtypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.mc-rtypes button { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 8px 10px; font-size: 13px; font-weight: 800; text-align: left; }
.mc-rtypes button .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-rtypes button small { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--faint); font-variant-numeric: tabular-nums; }
.mc-rtypes button.on { background: var(--tc-bg); border-color: var(--tc); color: var(--tc-ink); box-shadow: inset 0 0 0 1px var(--tc); }
.mc-rtypes button.on small { color: var(--tc-ink); }
.mc-rtypes button.rc-unk.on { background: var(--tint); border-color: var(--submuted); color: var(--ink); box-shadow: inset 0 0 0 1px var(--submuted); }
.mc-roompick { padding: 8px 10px 10px; border-radius: 10px; background: var(--tc-bg, var(--tint)); border: 1px solid var(--tc-line, var(--line)); }
.mc-roompick[hidden] { display: none; }
.mc-roompick-h { margin-bottom: 6px; font-size: 12px; font-weight: 800; color: var(--tc-ink, var(--muted)); }
.mc-roompick-h .sub { font-weight: 600; opacity: .8; }
.mc-a .mc-rooms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.mc-a .mc-rooms button { padding: 7px 0; font-size: 13.5px; font-weight: 800; background: var(--surface); border-color: var(--tc-line, var(--line)); font-variant-numeric: tabular-nums; }
.mc-a .mc-rooms button.on { background: var(--tc, var(--ink)); border-color: var(--tc, var(--ink)); color: #fff; }
.mc-preview { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--tint); margin-top: 4px; }
.mc-prev-card { flex: 1 1 auto; min-width: 0; pointer-events: none; }
.mc-prev-card .oc-grp { padding: 0; }
.mc-prev-cap { font-size: 11.5px; color: var(--muted); line-height: 1.55; padding-top: 4px; }
.mc-prev-cap b { display: block; color: var(--ink); font-size: 12.5px; margin-bottom: 2px; }
.mc-amount { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mc-dep-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mc-dep-row[hidden] { display: none; }
.mc-dep-row .mc-dep { flex: 1 1 120px; }
.mc-more summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; gap: 6px; align-items: center; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; list-style: none; }
.mc-more summary::-webkit-details-marker { display: none; }
.mc-more-body { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.mc-more-body > input, .mc-more-body .mc-booking input { width: 100%; box-sizing: border-box; }
.mc-a .mc-foot { align-items: center; gap: 8px; }
.mc-sum { margin-right: auto; font-size: 12.5px; color: var(--submuted); line-height: 1.5; min-width: 0; }
.mc-sum b { color: var(--ink); }
.mc-sum .mc-due { color: var(--danger); font-weight: 700; }
.mc-sum .dim { color: var(--faint); }
@media (max-width: 760px) {
  .mc-a .mc-cols { grid-template-columns: 1fr; }
  .mc-col2 { border-left: none; border-top: 1px solid var(--line); }
  .mc-a .mc-foot { flex-wrap: wrap; }
  .mc-sum { flex: 1 1 100%; }
}

/* 통화 기록 — 왼쪽 최근 통화 목록(한 통화 한 줄), 오른쪽 자세히. 좁은 화면은 고른 줄 아래에 펼친다 */
.cl-cbstrip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--danger-bg); border: 1px solid #ecc6bf; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.cl-cb-t { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 800; color: var(--danger); margin-right: 4px; }
.cl-cb { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid #ecc6bf; border-radius: 999px; padding: 4px 5px 4px 12px; font-size: 14.5px; font-weight: 700; }
.cl-cb small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.cl-cb-call, .cl-cb-ok { width: 30px; height: 30px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; text-decoration: none; }
.cl-cb-call { background: var(--danger); color: #fff; }
.cl-cb-ok { color: var(--muted); }
.cl-cb-ok:hover { color: var(--success); border-color: var(--success); }
.cl-cbstrip .cl-undo { margin: 0; padding: 3px 4px 3px 10px; border-radius: 999px; font-size: 12.5px; }
.cl-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.cl-fchip { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 8px 14px; font-size: 14.5px; font-weight: 700; color: var(--submuted); }
.cl-fchip b { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.cl-fchip.red b { color: var(--danger); }
.cl-fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cl-fchip.on b { color: #fff; }
.cl-stats { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
.cl-stats b { color: var(--ink); }
.cl-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: start; }
.cl-feed { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cl-day { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 800; color: var(--muted); background: var(--tint); padding: 7px 16px; position: sticky; top: 0; z-index: 1; }
.cl-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); cursor: pointer; }
.cl-day + .cl-item { border-top: none; }
.cl-item:hover { background: var(--paper); }
.cl-item.sel { background: #eef3ff; box-shadow: inset 3px 0 0 #1f5eff; }
.cl-ic { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.cl-ic.in { background: var(--primary-bg); color: var(--primary); }
.cl-ic.out { background: var(--card-pay-bg); color: var(--card-pay); }
.cl-ic.missed, .cl-ic.rejected { background: var(--danger-bg); color: var(--danger); }
.cl-item-main { min-width: 0; }
.cl-item-who { display: flex; align-items: center; gap: 6px; font-size: 16px; min-width: 0; }
.cl-item-who b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-item-who b.num { font-variant-numeric: tabular-nums; }
.cl-item-mic { color: var(--faint); font-size: 15px; }
.cl-item-line { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.cl-item-line .cl-visit { margin-right: 5px; }
.cl-miss { color: var(--danger); font-weight: 700; }
.cl-item-when { font-size: 14.5px; font-weight: 700; color: var(--submuted); font-variant-numeric: tabular-nums; }
.cl-visit { display: inline-block; font-size: 12px; font-weight: 800; color: var(--stay); background: var(--stay-bg); border-radius: 5px; padding: 0 6px; white-space: nowrap; }
.cl-more { display: block; width: 100%; border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 12px; font-size: 14.5px; font-weight: 700; color: var(--muted); background: var(--surface); }
.cl-detail { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cl-detail-side { position: sticky; top: 64px; max-height: calc(100dvh - 150px); overflow-y: auto; }
.cl-detail-inline { display: none; margin: 0 10px 10px; border-color: #c9d6fb; }
.cl-dh { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.cl-dh-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cl-dh-who > b { font-size: 22px; font-weight: 800; }
.cl-dh-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cl-btn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 14px; font-size: 14.5px; font-weight: 700; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; white-space: nowrap; }
.cl-btn.pri { background: #1f5eff; border-color: #1f5eff; color: #fff; }
.cl-hascard { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--success); background: var(--success-bg); border-radius: 999px; padding: 3px 10px; }
.cl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cl-facts > div { background: var(--tint); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.cl-facts span { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cl-facts b { font-size: 18px; font-variant-numeric: tabular-nums; }
.cl-facts small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-selcall { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.cl-selcall-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.cl-selcall-h b { color: var(--ink); }
.cl-selcall-h .cl-ic { width: 30px; height: 30px; font-size: 15px; }
.cl-detail .cl-rec { margin: 0; padding: 0; border: none; background: none; }
.cl-norec { margin: 0; font-size: 14.5px; color: var(--faint); }
.cl-dhist { display: flex; flex-direction: column; gap: 2px; }
.cl-dhist-h { font-size: 13.5px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.cl-dhist-row { display: grid; grid-template-columns: 20px 96px minmax(0, 1fr); gap: 8px; align-items: center; text-align: left; border: none; border-radius: 8px; padding: 7px 8px; background: none; font-size: 14.5px; color: var(--submuted); }
.cl-dhist-row:hover { background: var(--tint); }
.cl-dhist-row .w { font-variant-numeric: tabular-nums; color: var(--muted); }
.cl-dhist-row .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-dhist-row .in { color: var(--primary); } .cl-dhist-row .out { color: var(--card-pay); } .cl-dhist-row .missed, .cl-dhist-row .rejected { color: var(--danger); }
@media (max-width: 899px) {
  .cl-split { grid-template-columns: 1fr; }
  .cl-detail-side { display: none; }
  .cl-detail-inline { display: flex; }
  .cl-stats { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .cl-facts { grid-template-columns: 1fr 1fr; }
  .cl-dh-acts { margin-left: 0; }
}

/* 메모 — 예약 관련 칸 (파랑) */
.memo-btn.bk:hover { border-color: #8fb0ff; color: #1d4cc4; }
.memo-btn.bk.on { background: #eaf0ff; border-color: #8fb0ff; color: #1d4cc4; }
.memo-item.bk { background: #f3f6ff; box-shadow: inset 4px 0 0 #4f7cff; }
.memo-bk h3.sect { color: #1d4cc4; }
.memo-bk h3.sect .ph-fill { color: #4f7cff; }
.memo-bk h3.sect .sub { color: #1d4cc4; }
.memo-bk-toggle { flex: 0 0 auto; width: 42px; padding: 0; font-size: 18px; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; }
.memo-bk-toggle.on { background: #eaf0ff; border-color: #8fb0ff; color: #1d4cc4; }
.memo-bk-tag { display: inline-block; font-size: 11px; font-weight: 800; color: #1d4cc4; background: #eaf0ff; border-radius: 5px; padding: 0 6px; margin-right: 6px; vertical-align: 1px; }
/* 통화 기록 → 메모에 추가 창 */
.cl-memo-modal { width: min(460px, 100%); }
.cl-memo-modal .modal-head .sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.cl-memo-body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: 8px; }
.cl-memo-body textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; line-height: 1.55; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; resize: vertical; background: var(--surface); color: var(--ink); }
.cl-memo-flags { display: flex; gap: 6px; }
.cl-btn.done { color: var(--success); border-color: #cfe2cc; background: var(--success-bg); }

/* 손님찾기 — 치는 대로 사람 후보(왼쪽) · 손님 프로필(오른쪽). 좁은 화면은 위아래로 */
.gs-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; margin-bottom: 14px; }
.gs-search .ph { color: var(--muted); font-size: 20px; }
.gs-search input { flex: 1; min-width: 0; border: none; background: transparent; padding: 14px 0; font-size: 17px; }
.gs-search input:focus-visible { outline: none; }
.gs-search .kb-row { flex: 1; display: flex; gap: 6px; align-items: center; }
.gs-gold { color: #c8960c; }
.gs-home { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; align-items: start; }
.gs-home .card-box { margin: 0; }
.gs-home h3.sect { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.gs-mini { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 9px 4px; border: none; border-top: 1px solid var(--line); border-radius: 0; background: none; text-align: left; font-size: 15px; }
.gs-home h3 + .gs-mini { border-top: none; }
.gs-mini:hover { background: var(--tint); }
.gs-mini b { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; min-width: 0; }
.gs-mini span { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.gs-none { margin: 4px 0; font-size: 14px; color: var(--faint); }
.gs-tag { font-size: 12px; font-weight: 800; border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.gs-tag.t-vip { background: #fff3cf; color: #8a6400; }
.gs-tag.t-re { background: var(--primary-bg); color: var(--primary); }
.gs-tag.t-new { background: #e6eeff; color: #1d4cc4; }
.gs-tag.t-warn { background: var(--danger-bg); color: var(--danger); }
.gs-grid { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 1.75fr); gap: 14px; align-items: start; }
.gs-grid > .card-box { margin: 0; }
.gs-list { padding: 0; overflow: hidden; }
.gs-count { font-size: 13px; font-weight: 800; color: var(--muted); padding: 10px 16px 4px; }
.gs-back { display: inline-flex; align-items: center; gap: 6px; margin: 12px; font-size: 14px; font-weight: 700; }
.gs-person { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 16px; border: none; border-top: 1px solid var(--line); border-radius: 0; background: none; text-align: left; }
.gs-count + .gs-person { border-top: none; }
.gs-person:hover { background: var(--paper); }
.gs-person.sel { background: #eef3ff; box-shadow: inset 3px 0 0 #1f5eff; }
.gs-av { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 17px; flex: 0 0 auto; }
.gs-av.big { width: 58px; height: 58px; font-size: 23px; }
.gs-p-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gs-p-name { display: flex; align-items: center; gap: 6px; font-size: 16.5px; font-weight: 800; min-width: 0; white-space: nowrap; }
.gs-p-name > span:first-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gs-p-name mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.gs-p-sub { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-p-right { text-align: right; font-size: 14px; font-weight: 700; color: var(--submuted); font-variant-numeric: tabular-nums; }
.gs-p-right small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.gs-prof { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.gs-ph { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gs-ph-main { min-width: 0; }
.gs-ph-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 25px; font-weight: 800; letter-spacing: -.01em; }
.gs-ph-sub { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.gs-ph-sub > span { display: inline-flex; align-items: center; gap: 4px; }
.gs-ph-sub .dim { color: var(--faint); }
.gs-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.gs-alert { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 700; background: #fff3cf; color: #8a6400; }
.gs-alert.warn { background: var(--danger-bg); color: var(--danger); }
.gs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.gs-stats > div { background: var(--tint); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.gs-stats span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.gs-stats b { display: block; font-size: 22px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gs-stats small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-habits { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-habit { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px 6px 11px; font-size: 14px; color: var(--submuted); background: var(--surface); line-height: 1.2; }
.gs-habit .k { color: var(--muted); font-weight: 600; }
.gs-habit b { color: var(--ink); font-weight: 800; }
.gs-habit > .ph { color: var(--muted); font-size: 16px; }
.gs-habit .plat-logo { width: 18px; height: 18px; display: inline-flex; flex: 0 0 auto; }
.gs-tl-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; font-weight: 800; }
.gs-tl-h .sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.gs-tl-f { margin-left: auto; display: flex; gap: 4px; }
.gs-tl-f button { border-radius: 999px; padding: 5px 12px; font-size: 13.5px; font-weight: 700; color: var(--submuted); }
.gs-tl-f button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gs-tl { position: relative; display: flex; flex-direction: column; }
.gs-tl::before { content: ""; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.gs-ev { position: relative; display: grid; grid-template-columns: 34px 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; font-size: 15px; }
.gs-ev.upcoming { background: linear-gradient(90deg, #fff3cf, transparent 75%); border-radius: 10px; }
.gs-dot { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; position: relative; z-index: 1; border: 3px solid var(--surface); }
.gs-dot.d-stay { background: var(--stay-bg); color: var(--stay); }
.gs-dot.d-rent { background: var(--primary-bg); color: var(--primary); }
.gs-dot.d-call { background: #e6eeff; color: #1d4cc4; }
.gs-dot.d-x { background: var(--danger-bg); color: var(--danger); }
.gs-dot.d-up { background: #fff3cf; color: #8a6400; }
.gs-d { font-weight: 700; color: var(--submuted); font-variant-numeric: tabular-nums; }
.gs-d small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.gs-m { min-width: 0; }
.gs-m b { font-weight: 800; }
.gs-m > span { color: var(--muted); font-size: 14px; }
.gs-ev.call .gs-m { display: flex; align-items: center; gap: 6px; }
.gs-ev.call .gs-sum { color: var(--submuted); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-ev.x .gs-m b { color: var(--danger); }
.gs-a { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 1099px) {
  .gs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .gs-stats { grid-template-columns: 1fr 1fr; }
  .gs-acts { margin-left: 0; }
  .gs-ev { grid-template-columns: 34px 76px minmax(0, 1fr) auto; font-size: 14.5px; }
}

/* 방 잡아두기 — 장부 맨 위 '입실 대기' 줄(노랑)과 호실 버튼의 '대기' */
.row.hold-row { border-color: #e6c35c; background: #fff8e1; box-shadow: inset 3px 0 0 #d4a20b; }
.row.hold-row.later { cursor: default; }
/* 대기 — 번호 칸 자리에 노란 점 (노란 줄과 [입실 처리]로 대기임을 안다) */
.row-main .no.hold-tag::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #d4a20b; }
.ls-chip.hold.ok { color: var(--success); background: var(--success-bg); }
.row.hold-row .memo .memo-line { color: #7a5a00; }
.ls-chip.hold { color: var(--danger); background: var(--danger-bg); }
.row-main .pay.hold { width: auto; flex: 0 0 auto; padding: 0 8px; background: #d4a20b; color: #fff; border-color: #d4a20b; font-weight: 800; }
.row.hold-row.later .pay.hold { background: var(--tint); color: var(--muted); border-color: var(--line); }
.hold-x { flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border: none; border-radius: 50%; background: none; color: var(--faint); display: inline-flex; align-items: center; justify-content: center; }
.hold-x:hover { background: var(--danger-bg); color: var(--danger); }
.roomcell.held { background: #fff3cf; border-color: #e6c35c; color: #7a5a00; }
#btn-hold { display: inline-flex; align-items: center; gap: 4px; border-color: #e6c35c; color: #7a5a00; background: #fff8e1; font-weight: 700; }
.roomcell.held.on { background: var(--primary); color: #fff; border-color: var(--primary); }
#btn-hold[hidden] { display: none; }
@media (max-width: 640px) { .hold-x { width: 22px; } }
/* 메모 고치기 · 통화 일시 */
.memo-btn.pen { color: var(--muted); }
.memo-btn.pen:hover { border-color: var(--faint); color: var(--ink); }
.memo-item.editing { background: var(--paper); }
.memo-edit { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 1.5; border: 1px solid var(--faint); border-radius: 8px; padding: 8px 10px; resize: vertical; background: var(--surface); color: var(--ink); }
.memo-call { color: #1d4cc4; font-weight: 700; }
.memo-call .ph { margin-right: 2px; }

/* 손님찾기 — 찾기 / 손님 명부 탭, 명부 표 */
.gs-tabs { display: flex; gap: 4px; }
.gs-tabs button { border-radius: 999px; padding: 8px 16px; font-size: 14.5px; font-weight: 700; color: var(--submuted); }
.gs-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gs-roster { padding: 0; overflow: hidden; }
.gs-rchips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.gs-rchips button { border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 700; color: var(--submuted); }
.gs-rchips button b { color: var(--ink); font-variant-numeric: tabular-nums; }
.gs-rchips button.warn b { color: var(--danger); }
.gs-rchips button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.gs-rchips button.on b { color: #fff; }
.gs-rtable { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.gs-rtable th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--paper); }
.gs-rtable th.gs-sort { cursor: pointer; }
.gs-rtable th.gs-sort:hover { color: var(--ink); }
.gs-rtable th .ph { margin-left: 3px; font-size: 11px; }
.gs-rtable td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gs-rtable .r { text-align: right; }
.gs-rtable tr[data-pick] { cursor: pointer; }
.gs-rtable tr[data-pick]:hover td { background: #f3f6ff; }
.gs-rtable td .gs-tag { margin-left: 6px; }
.gs-rtable .dim { color: var(--faint); font-size: 13px; }
.gs-rname { font-weight: 800; }
.gs-rphone { color: var(--submuted); }
.gs-rgo { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.gs-tag.t-up { background: #fff3cf; color: #8a6400; }
@media (max-width: 640px) {
  .gs-tabs { width: 100%; }
  .gs-tabs button { flex: 1; }
  .gs-rtable { font-size: 14px; }
}
.st-tbl .gs-rtable th, .st-tbl .gs-rtable td { text-align: left; padding: 11px 14px; font-size: inherit; }
.st-tbl .gs-rtable th { font-size: 13px; }
.st-tbl .gs-rtable .r { text-align: right; }
.st-tbl .gs-rtable td:first-child { width: 34%; }
/* 메모 — 오늘 예약 칸 (메모 글의 날짜가 오늘인 예약 메모를 저절로 모은다) */
.memo-item.today { background: #fff4ec; box-shadow: inset 4px 0 0 #e8742a; }
.memo-today h3.sect { color: #b5531a; }
.memo-today h3.sect .ph-fill { color: #e8742a; }
.memo-today h3.sect .sub { color: #b5531a; }
.cw-join { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.cw-join input { padding: 6px 8px; }
.cw-ptable td b { font-variant-numeric: tabular-nums; }
/* 방 잡아두기 — 여러 방 묶음 */
.ls-chip.grp { color: #1d4cc4; background: #e6eeff; }
.ck-fields .ck-group { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: flex-start; gap: 8px; background: #e6eeff; border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #1d4cc4; cursor: pointer; }
.ck-group input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
.ck-group b { color: var(--ink); }
.ck-group .sub { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
/* 방 잡아두기 묶음 — 머리줄 + 방마다 작은 줄을 한 노란 틀에 */
.hold-group { border: 1.5px solid #e6c35c; border-radius: 12px; background: #fff8e1; box-shadow: inset 4px 0 0 #d4a20b; margin-bottom: 8px; overflow: hidden; }
.hold-group > .row { border: none; border-radius: 0; margin: 0; background: transparent; box-shadow: none; }
.hold-group .hold-gh { padding-bottom: 6px; }
.hold-group .hold-gh .memo-t b { color: #5a4100; }
.hold-group .rooms.hold-n { color: #7a5a00; }
.hold-group .hold-sub { min-height: 0; padding: 5px 14px 5px 14px; border-top: 1px dashed #ecd48f; }
.hold-group .hold-sub .row-main { font-size: 14px; }
.hold-sub-line { width: 38px; flex: 0 0 38px; align-self: stretch; border-left: 2px solid #e6c35c; margin-left: 10px; }
.hold-group .hold-sub .memo-t.dim { color: var(--muted); font-weight: 500; }
.row-main .pay.hold.sub { background: var(--surface); color: #7a5a00; border-color: #e6c35c; font-weight: 700; }
.hold-x-sp { width: 26px; flex: 0 0 26px; }
.hold-group.later .pay.hold { background: var(--tint); color: var(--muted); border-color: var(--line); }
@media (max-width: 640px) { .hold-x-sp { width: 22px; flex-basis: 22px; } .hold-sub-line { width: 14px; flex-basis: 14px; margin-left: 4px; } }
.ls-chip.nights { color: #7a4fd8; background: #f0ecff; }
/* 장부가 세 칸(목록·입력·예약 카드)일 때 목록이 좁다 — 묶음 방 줄의 들여쓰기를 줄인다 */
@media (min-width: 1024px) {
  #view.has-entrybar.has-online .hold-sub-line { width: 18px; flex-basis: 18px; }
  /* 노란 틀이 이미 묶음을 보여 주므로 '함께 잡은 방' 칩은 빼고, 단추·✕를 조여 손님 이름 자리를 만든다 */
  #view.has-entrybar.has-online .hold-row .ls-chip.grp { display: none; }
  #view.has-entrybar.has-online .row-main .pay.hold { padding: 2px 6px; }
  #view.has-entrybar.has-online .hold-x, #view.has-entrybar.has-online .hold-x-sp { width: 20px; flex-basis: 20px; }
}
/* 메모 — 예약 관련 칸의 날짜 묶음 머리 */
.memo-dgroup { display: flex; align-items: center; justify-content: space-between; padding: 7px 14px; background: #eef3ff; border-top: 1px solid #d6e1ff; font-size: 13.5px; font-weight: 800; color: #1d4cc4; }
.memo-dgroup b { font-size: 12.5px; font-weight: 700; color: #4a6bc4; }
.memo-dgroup.none { background: var(--tint); color: var(--submuted); border-top-color: var(--line); }
.memo-dgroup.none b { color: var(--muted); }
.memo-dgroup.past { background: var(--paper); color: var(--muted); border-top-color: var(--line); }
.memo-dgroup.past b { color: var(--faint); }
.memo-list > .memo-dgroup:first-child { border-top: none; }

/* 장부 오른쪽 예약 칸 — 예약 하나 = 티켓 한 장: 왼쪽 표 머리(타입 색)에 시각·박수 | 위 이름·금액 / 아래 경로·호실·메모 · 결제 알약 */
.oc-grp .oc-grid, .oc-grid { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.oc-row { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(21, 32, 58, .06); cursor: pointer; text-align: left; }
.oc-row:hover { border-color: var(--tc, var(--faint)); }
.oc-row.later { cursor: default; }
.oc-row.later:hover { border-color: var(--line); }
.oc-stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px 4px; background: var(--tc-bg, var(--tint)); border-right: 1.5px dashed var(--tc-line, var(--line)); color: var(--tc-ink, var(--ink)); }
.oc-tm { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.1; }
.oc-stub > span { font-size: 11px; font-weight: 800; opacity: .85; white-space: nowrap; }
.oc-body { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding: 10px 12px; }
.oc-top { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.oc-nm { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.oc-nm .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.oc-nm .vip { margin-left: 0; font-size: 10.5px; padding: 0 5px; flex: 0 0 auto; }
.oc-am { margin-left: auto; text-align: right; font-size: 16px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.oc-sub { display: flex; align-items: center; gap: 6px; min-width: 0; }
.oc-ln { flex: 1 1 auto; min-width: 0; font-size: 12.5px; color: var(--submuted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 결제 상태 알약 — 미수 빨강, 예약금 받고 남은 돈 주황, 결제완료 초록, 결제됨·오면 결제 회색 */
.oc-st { flex: 0 0 auto; margin-left: auto; font-size: 11.5px; font-weight: 800; white-space: nowrap; border-radius: 999px; padding: 1px 8px; }
.oc-st.due { color: var(--danger); background: var(--danger-bg); } .oc-st.dep { color: var(--warning); background: var(--warning-bg); }
.oc-st.ok { color: var(--success); background: var(--success-bg); } .oc-st.pf { color: var(--muted); background: var(--tint); }
/* 예약 경로 색 글자 (platText) */
.pl-t { font-weight: 800; color: var(--muted); }
.pl-t.pl-yanolja { color: #2b4cfb; } .pl-t.pl-goodchoice { color: #e5232a; } .pl-t.pl-naver { color: #03a94d; }
.pl-t.pl-phone { color: #3a4f7a; } .pl-t.pl-walkin { color: #5b6577; }
/* 없애기 — 마우스를 올렸을 때만 결제 상태 자리에 (터치 화면은 늘 보이게 오른쪽 여백을 둔다) */
.oc-x { position: absolute; right: 8px; bottom: 7px; width: 22px; height: 22px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--faint); font-size: 12px; opacity: 0; }
.oc-row:hover .oc-x, .oc-x:focus-visible { opacity: 1; }
.oc-x:hover { color: var(--danger); border-color: var(--danger); }
@media (hover: none) {
  .oc-row { padding-right: 36px; }
  .oc-x { opacity: 1; bottom: auto; top: 50%; right: 6px; transform: translateY(-50%); border-color: transparent; background: transparent; }
}
/* 새 예약 — 파란 테두리와 왼쪽 파란 막대. 누군가 확인하면(마우스 0.5초) 모든 PC에서 사라진다 */
.oc-row.fresh { border-color: var(--action, #1f5eff); box-shadow: 0 0 0 2px var(--action-bg, #e6eeff); }
.oc-row.fresh::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--action, #1f5eff); animation: oc-blink 1.4s ease-in-out infinite; }
@keyframes oc-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .oc-row.fresh::before { animation: none; } }
.oc-new { display: none; }
.oc-kinds { align-items: center; }
.oc-kinds .oc-due-sum { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--danger); white-space: nowrap; }
.oc-kinds .oc-due-sum b { font-weight: 800; }
.mc-preview { flex-direction: column; }
.mc-prev-card { width: 100%; }
/* 1440px보다 좁은 PC — 세 칸(목록·입력·예약 카드)이 빠듯하니 좌우 여백을 줄여 장부 목록에 돌린다 */
@media (min-width: 1024px) and (max-width: 1439px) {
  #view.has-entrybar.has-online { padding-left: 24px; padding-right: 24px; }
  /* 줄 번호 칸은 빼고 칸을 조금씩 조여 이름 자리를 만든다 (칸 고정은 그대로) */
  #view.has-entrybar.has-online .row-main { gap: 5px; }
  #view.has-entrybar.has-online .row-main > .no { display: none; }
  #view.has-entrybar.has-online .row-main .rooms { width: 44px; flex-basis: 44px; }
  #view.has-entrybar.has-online .row-main .amount { width: 68px; flex-basis: 68px; font-size: 15px; }
  #view.has-entrybar.has-online .row-main .pay { width: 46px; flex-basis: 46px; font-size: 12px; }
  #view.has-entrybar.has-online .hold-x { width: 20px; }
}
/* 월간 기록 — 이달 요약 + 매출 열지도 달력 + 날짜 서랍(PC) */
#view[data-view="settle"] .t-rental { --c: #0b9b80; } #view[data-view="settle"] .t-stay { --c: #e2621f; }
#view[data-view="settle"] .t-cash { --c: #1c8a55; } #view[data-view="settle"] .t-card { --c: #3a5fa8; }
#view[data-view="settle"] .t-transfer { --c: #7a4fd0; } #view[data-view="settle"] .t-online { --c: #c0396b; }
.mr-metric { display: flex; gap: 4px; }
.mr-metric button { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--submuted); }
.mr-metric button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.mr-sum { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 10px; margin-bottom: 14px; }
.mr-sum > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.mr-sum .l { font-size: 12.5px; font-weight: 800; color: var(--muted); }
.mr-sum b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mr-sum b small { margin-left: 1px; font-size: 13px; }
.mr-sum .s { font-size: 12px; font-weight: 700; color: var(--muted); }
.mr-sum .up { color: var(--success); } .mr-sum .down { color: var(--danger); }
.mr-sum .main { background: var(--ink); border-color: var(--ink); color: #fff; }
.mr-sum .main .l, .mr-sum .main .s { color: #aebadb; } .mr-sum .main .up { color: #7ee0a8; } .mr-sum .main .down { color: #ffb3a8; }
.mr-bar { display: flex; height: 8px; border-radius: 5px; overflow: hidden; margin-top: 2px; background: var(--tint); }
.mr-bar i { display: block; height: 100%; background: var(--c); }
.mr-lg { display: flex; gap: 10px; font-size: 12px; font-weight: 700; color: var(--submuted); }
.mr-lg i { display: inline-block; width: 8px; height: 8px; margin-right: 4px; border-radius: 50%; background: var(--c); }
.mr-cal { margin: 0; }
.mr-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; }
.mr-dow .sun { color: var(--danger); } .mr-dow .sat { color: #1d4cc4; }
.mr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mr-c { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 3px; min-width: 0; min-height: 112px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left; font-size: 12px; }
.mr-c.empty { border: none; background: none; cursor: default; }
.mr-c .top { display: flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 800; }
.mr-c .wx { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mr-c .amt { margin-top: auto; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mr-c .amt small { margin-left: 1px; font-size: 12px; font-weight: 700; }
.mr-c .cnt { display: flex; gap: 6px; font-size: 11.5px; font-weight: 800; }
.mr-c .cnt .r { color: #0b9b80; } .mr-c .cnt .s { color: #e2621f; }
.mr-c .sbar { display: flex; height: 4px; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, .06); }
.mr-c .sbar i { display: block; height: 100%; background: var(--c); }
.mr-c .who { font-size: 11px; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-c.fut { background: #fafbfd; }
/* 열지도 3단계 — 아주 옅은 청록 바탕만. 가장 진한 단계도 남색 글자가 잘 보이는 밝기로 둔다 */
.mr-c.h1, .mr-heat .h1 { background: #f3faf8; border-color: #e1f1ec; }
.mr-c.h2, .mr-heat .h2 { background: #e3f4ee; border-color: #cbe9df; }
.mr-c.h3, .mr-heat .h3 { background: #cdebe1; border-color: #a9dccb; }
.mr-c.h3 .amt { color: #075e4e; }
.mr-c.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.mr-c.sel { box-shadow: 0 0 0 3px #1f5eff; }
.mr-c.best::after { content: "최고"; position: absolute; right: 8px; bottom: 9px; padding: 1px 6px; border-radius: 999px; background: #b07d12; color: #fff; font-size: 10px; font-weight: 800; }
.mr-heat { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mr-heat i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; }
/* 그날 정산 — 좁은 화면은 달력 아래 칸, PC는 오른쪽 서랍 */
.mr-day { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.mr-day h3.sect { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.mr-x { display: none; }
.mr-dk { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mr-dk > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--tint); }
.mr-dk span { font-size: 12px; font-weight: 800; color: var(--muted); }
.mr-dk b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mr-dk small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.mr-dk .cash { background: #1c8a55; } .mr-dk .cash span, .mr-dk .cash small { color: #d6f0e1; } .mr-dk .cash b { color: #fff; }
.mr-mix { display: flex; gap: 2px; height: 22px; border-radius: 6px; overflow: hidden; }
.mr-mix i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; background: var(--c); }
.mr-rows { display: flex; flex-direction: column; }
.mr-rows > div { display: flex; align-items: baseline; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mr-rows > div:first-child { border-top: none; }
.mr-rows b { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mr-rows small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.mr-rows .dot { display: inline-block; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mr-rows .sub { padding-left: 14px; font-size: 12.5px; color: var(--submuted); }
.mr-rows b.in { color: var(--success); } .mr-rows b.out { color: var(--danger); }
.mr-open { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; margin-top: auto; border-radius: 12px; font-size: 15px; font-weight: 800; }
@media (min-width: 1100px) {
  /* #view > * 의 폭 100% 규칙보다 앞서도록 #view를 붙인다 */
  #view > .mr-day { position: fixed; top: 64px; right: 16px; bottom: 16px; z-index: 30; width: 380px; max-width: none; margin: 0; overflow-y: auto; box-shadow: -12px 0 40px rgba(21, 32, 58, .22); transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  #view > .mr-day.open { transform: none; visibility: visible; }
  .mr-x { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 32px; height: 32px; padding: 0; border: none; border-radius: 8px; background: none; color: var(--muted); font-size: 16px; }
  .mr-x:hover { background: var(--tint); color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .mr-day { transition: none; } }
@media (max-width: 1099px) { .mr-sum { grid-template-columns: repeat(2, 1fr); } .mr-sum .main { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .mr-c { min-height: 72px; padding: 5px; }
  .mr-c .wx, .mr-c .who, .mr-c .cnt, .mr-c.best::after { display: none; }
  .mr-c .amt { font-size: 15px; }
  .mr-sum b { font-size: 20px; }
}
/* 온라인예약 — 위 달력(날짜별 객실 타입 칩) · 할 일 탭 · 입실 날짜별 티켓 · 서랍 */
/* 대실 — 숙박 카드(객실 타입 색)와 한눈에 갈리도록 채도를 낮춘 어두운 초록. 장부 예약 카드의 대실 줄도 같은 색 */
.rc-rental, .oc-row.rental { --tc: #4f6b63; --tc-bg: #e2e8e5; --tc-line: #c3cfca; --tc-ink: #34504a; }
.ob-view { display: flex; flex-direction: column; gap: 14px; }
.ob-view > .st-head { margin-bottom: 0; }
.ob-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ob-title h2 { margin: 0; }
.ob-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--success); cursor: help; }
.ob-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px var(--success-bg); }
.ob-cal { margin: 0; }
.ob-ch { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 10px; }
.ob-ch > b { font-size: 17px; }
.ob-ch > button:not(.ob-fold) { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.ob-ch .tot { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ob-legend { margin-left: auto; display: flex; flex-wrap: wrap; gap: 5px; }
.ob-lg { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--tc-line); background: var(--tc-bg); color: var(--tc-ink); font-size: 11.5px; font-weight: 800; }
.ob-lg i { width: 7px; height: 7px; border-radius: 50%; background: var(--tc); }
.ob-fold { font-size: 12.5px; padding: 5px 10px; }
.ob-cal.folded .ob-ch { margin-bottom: 0; }
.ob-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 5px; font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; }
.ob-dow .sun { color: var(--danger); } .ob-dow .sat { color: #1d4cc4; }
.ob-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.ob-c { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; min-height: 86px; padding: 6px 7px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); text-align: left; }
.ob-c.empty { border: none; background: none; cursor: default; }
.ob-c.past { background: #fafbfd; } .ob-c.past .d { color: var(--faint); }
.ob-c.today { outline: 2px solid var(--ink); outline-offset: -2px; }
.ob-c.sel { box-shadow: 0 0 0 2.5px #1f5eff; }
.ob-c .d { display: flex; align-items: baseline; font-size: 13px; font-weight: 800; }
.ob-c .n { margin-left: auto; font-size: 17px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.ob-c .n small { margin-left: 1px; font-size: 11px; font-weight: 700; color: var(--muted); }
/* 달력 칸의 타입 줄 — 모든 칸에서 같은 순서 · 같은 자리. 예약 있는 줄만 옅은 타입 색 바탕, 없는 줄은 아주 옅게 */
.ob-c .cx { margin-left: auto; font-size: 10.5px; font-weight: 800; color: var(--danger); }
.ob-c .cx + .n { margin-left: 6px; }
.ob-rows { display: flex; flex-direction: column; gap: 1px; }
.ob-row { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding-right: 4px; border-radius: 4px; font-size: 12px; line-height: 18px; }
.ob-row i { width: 4px; height: 14px; border-radius: 2px; background: var(--tc); }
.ob-row span { min-width: 0; overflow: hidden; white-space: nowrap; font-weight: 700; color: var(--submuted); }
.ob-row b { font-size: 13px; font-weight: 800; color: var(--tc-ink); font-variant-numeric: tabular-nums; }
.ob-row:not(.on) i { background: #e6eaf1; }
.ob-row:not(.on) span { font-weight: 600; color: #c5ccd8; }
.ob-row:not(.on) b { font-weight: 600; color: #d0d6e0; }
.ob-row.on { background: var(--tc-bg); }
.ob-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 5px; border-radius: 6px; border: 1px solid var(--tc-line); background: var(--tc-bg); color: var(--tc-ink); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.ob-chip b { font-variant-numeric: tabular-nums; }
.ob-chip.cx { border-color: #f1c1b8; background: var(--danger-bg); color: var(--danger); }
.ob-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ob-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--submuted); }
.ob-tabs button b { padding: 0 7px; border-radius: 999px; background: var(--tint); color: var(--ink); font-size: 13px; }
.ob-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.ob-tabs button.on b { background: rgba(255, 255, 255, .2); color: #fff; }
.ob-tabs button.warn b { background: var(--danger-bg); color: var(--danger); }
.ob-tabs .ob-flt { margin-left: auto; background: var(--action-bg, #e6eeff); border-color: #c9d6ff; color: #1f5eff; }
.ob-main { margin: 0; }
/* 날짜 머리줄 — 크게, 옅은 바탕 띠로 날짜 단위를 끊는다. 그 아래 타입 줄 · 예약은 오른쪽으로 들여 한 덩어리로 */
.ob-dg { display: flex; align-items: center; gap: 10px; margin: 24px 0 8px; padding: 9px 12px; border-radius: 10px; background: var(--tint); }
.ob-dg:first-child { margin-top: 0; }
.ob-dg > b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.ob-dg .rel { font-size: 13.5px; font-weight: 800; color: #1f5eff; }
.ob-dg .rel.today { padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.ob-dg .rel.past { color: var(--danger); }
.ob-dg .cnt { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.ob-list { display: flex; flex-direction: column; gap: 7px; }
/* 날짜 안 객실 타입 구분 줄 — 색 점 · 타입 이름 · 건수 */
.ob-tg { display: flex; align-items: center; gap: 6px; margin: 10px 2px 6px; font-size: 13px; font-weight: 800; color: var(--tc-ink, var(--submuted)); }
.ob-tg i { width: 9px; height: 9px; border-radius: 3px; background: var(--tc, var(--faint)); }
.ob-tg b { padding: 0 7px; border-radius: 999px; background: var(--tc-bg, var(--tint)); font-size: 12px; }
.ob-tg::after { content: ""; flex: 1; height: 1px; background: var(--tc-line, var(--line)); }
.ob-tg.rc-cx { --tc: var(--danger); --tc-bg: var(--danger-bg); --tc-line: #f1c1b8; --tc-ink: var(--danger); }
.ob-dg + .ob-tg { margin-top: 4px; }
.ob-main .ob-tg, .ob-main .ob-list { margin-left: 22px; }
@media (max-width: 640px) { .ob-main .ob-tg, .ob-main .ob-list { margin-left: 10px; } .ob-dg > b { font-size: 17px; } }
.ob-tk { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(21, 32, 58, .06); cursor: pointer; }
.ob-tk:hover { border-color: var(--tc, var(--faint)); }
.ob-tk.sel { border-color: #1f5eff; box-shadow: 0 0 0 2px var(--action-bg, #e6eeff); }
.ob-tk .stub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 10px 4px; border-right: 1.5px dashed var(--tc-line, var(--line)); background: var(--tc-bg, var(--tint)); color: var(--tc-ink, var(--ink)); }
.ob-tk .stub b { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ob-tk .stub span { font-size: 11px; font-weight: 800; opacity: .85; }
.ob-tk.cancel .stub { border-right-color: #f1c1b8; background: var(--danger-bg); color: var(--danger); }
.ob-tk .bd { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 10px 12px; }
.ob-tk .l1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ob-tk .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 800; }
.ob-tk .l1 .vip { margin-left: 0; flex: 0 0 auto; }
.ob-tk .am { margin-left: auto; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ob-tk .am small { margin-right: 4px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: line-through; }
.ob-tk .ctag { flex: 0 0 auto; padding: 1px 6px; border-radius: 5px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; }
.ob-tk .l2 { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; color: var(--submuted); white-space: nowrap; }
.ob-tk .rcv { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.ob-ty { padding: 0 6px; border-radius: 6px; border: 1px solid var(--tc-line); background: var(--tc-bg); color: var(--tc-ink); font-size: 11.5px; font-weight: 800; line-height: 18px; }
.ob-tk .acts { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 8px 10px 8px 0; }
.ob-tk .acts button { padding: 6px 12px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.ob-st { padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.ob-st.cx { background: var(--danger-bg); color: var(--danger); }
.ob-fail { display: flex; flex-direction: column; gap: 4px; margin-bottom: 7px; padding: 10px 12px; border: 1.5px dashed #e8b4ab; border-radius: 12px; background: #fffafa; cursor: pointer; }
.ob-fail .t { font-size: 12.5px; font-weight: 800; color: var(--danger); }
.ob-fail .raw { font-size: 12.5px; color: var(--submuted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 서랍 — PC는 오른쪽, 좁은 화면은 화면 아래에서 올라오는 판 */
.ob-drawer { position: fixed; z-index: 30; left: 8px; right: 8px; bottom: 68px; max-height: 70vh; margin: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -12px 40px rgba(21, 32, 58, .25); transform: translateY(calc(100% + 80px)); visibility: hidden; transition: transform .2s ease, visibility .2s; }
.ob-drawer.open { transform: none; visibility: visible; }
.ob-drawer h3.sect { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; }
.ob-x { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; width: 32px; height: 32px; padding: 0; border: none; border-radius: 8px; background: none; color: var(--muted); font-size: 16px; }
.ob-x:hover { background: var(--tint); color: var(--ink); }
.ob-kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 13.5px; }
.ob-kv > span { font-weight: 700; color: var(--muted); }
.ob-kv b { font-weight: 700; } .ob-kv small { font-weight: 600; color: var(--muted); }
.ob-raw { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--tint); font: inherit; font-size: 12px; line-height: 1.6; color: var(--submuted); white-space: pre-wrap; word-break: break-all; }
.ob-dact { display: flex; gap: 8px; margin-top: auto; }
.ob-dact button { flex: 1; padding: 11px 0; font-size: 14px; font-weight: 800; }
@media (min-width: 1100px) {
  .ob-drawer { left: auto; top: 64px; right: 16px; bottom: 16px; width: 380px; max-height: none; box-shadow: -12px 0 40px rgba(21, 32, 58, .22); transform: translateX(calc(100% + 24px)); }
  .ob-drawer.open { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ob-drawer { transition: none; } }
@media (max-width: 640px) {
  .ob-legend { display: none; }
  .ob-c { min-height: 62px; padding: 4px; }
  .ob-row:not(.on) { display: none; } /* 폰 — 칸이 좁아 예약 있는 줄만, 이름 없이 색 막대와 숫자 */
  .ob-row { grid-template-columns: 4px auto; gap: 3px; padding-right: 0; }
  .ob-row span { display: none; }
  .ob-c .cx { display: none; }
  .ob-chip { padding: 0 3px; font-size: 10px; }
  .ob-tk { grid-template-columns: 56px minmax(0, 1fr); }
  .ob-tk .acts { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; padding: 0 10px 10px; }
  .ob-tk .rcv { display: none; }
}
/* 장부 PC — 페이지는 스크롤하지 않고 창 높이에 맞춘다. 기록 목록 · 입력 패널 · 예약 카드 칸이 각자 스크롤한다.
   스크롤바는 평소엔 숨기고, 그 칸 위에 마우스를 올렸을 때만 칸 안쪽 오른쪽에 6px 반투명 막대로 나타난다. */
@media (min-width: 1024px) {
  #view.has-entrybar { height: 100dvh; box-sizing: border-box; padding-bottom: 20px; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
  #view.has-entrybar > .list { align-self: stretch; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 8px 2px 2px; margin: -2px 0 0 -2px; }
  #view.has-entrybar > .entry-panel, #view.has-entrybar > .online-col { align-self: stretch; position: relative; top: auto; min-height: 0; max-height: none; overscroll-behavior: contain; }
  #view.has-entrybar > .list, #view.has-entrybar > .entry-panel, #view.has-entrybar > .online-col { scrollbar-width: thin; scrollbar-color: transparent transparent; }
  #view.has-entrybar > .list:hover, #view.has-entrybar > .entry-panel:hover, #view.has-entrybar > .online-col:hover { scrollbar-color: rgba(21, 32, 58, .28) transparent; }
  #view.has-entrybar > .list::-webkit-scrollbar, #view.has-entrybar > .entry-panel::-webkit-scrollbar, #view.has-entrybar > .online-col::-webkit-scrollbar { width: 6px; }
  #view.has-entrybar > .list::-webkit-scrollbar-thumb, #view.has-entrybar > .entry-panel::-webkit-scrollbar-thumb, #view.has-entrybar > .online-col::-webkit-scrollbar-thumb { border-radius: 3px; background: transparent; }
  #view.has-entrybar > .list:hover::-webkit-scrollbar-thumb, #view.has-entrybar > .entry-panel:hover::-webkit-scrollbar-thumb, #view.has-entrybar > .online-col:hover::-webkit-scrollbar-thumb { background: rgba(21, 32, 58, .28); }
  /* 아래에 더 있음 — 칸 아래를 흐리게 하고 남은 양을 적는다. 끝까지 내리면 사라진다 (ledger.js가 켜고 끈다) */
  .scroll-more { position: sticky; bottom: 0; z-index: 3; flex: 0 0 auto; display: flex; align-items: flex-end; justify-content: center; height: 46px; margin-top: -46px; padding-bottom: 6px; pointer-events: none; background: linear-gradient(rgba(238, 241, 246, 0), var(--paper) 72%); opacity: 0; transition: opacity .15s; }
  .scroll-more.show { opacity: 1; }
  .scroll-more span { padding: 2px 10px; border-radius: 999px; background: var(--surface); box-shadow: 0 1px 4px rgba(21, 32, 58, .14); font-size: 12px; font-weight: 800; color: var(--submuted); }
}
@media (max-width: 1023px) { .scroll-more { display: none; } }
/* 일일정산 클래식 — 개편 전 모양 그대로 (2026-10-22 스타일). 화면 오른쪽 위 [새 문서 | 클래식]으로 바꾼다 */
.report-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 10px; }
.report-header h2 { font-size: 18px; letter-spacing: -0.01em; }
.report-title { margin: 18px 0 8px; font-size: 15px; }
.report-table, .report-settle { width: 100%; border-collapse: collapse; background: var(--surface); }
.report-table th, .report-table td { border: 1px solid var(--line); padding: 6px 8px; font-size: 13px; text-align: center; }
.report-table th { background: var(--tint); }
/* 숙박/대실 현황표 — 내용에 따라 열 폭이 제각각 계산되지 않도록 고정해 두 표를 동일하게 맞춘다.
   (지출내역도 .report-table을 쓰므로 현황표 래퍼 안으로 범위를 한정한다) */
.report-tables .report-table { table-layout: fixed; }
.report-tables .report-table th, .report-tables .report-table td { overflow: hidden; text-overflow: ellipsis; }
/* 열 폭 (NO / 호실 / 시간 / 금액 / 카드 / 비고) — 비고가 나머지를 차지.
   좁은 화면에서 NO·시간이 잘리지 않도록 비율을 잡고 가로 여백을 줄인다. */
.report-tables .report-table th, .report-tables .report-table td { padding-left: 4px; padding-right: 4px; }
.report-tables .report-table th:nth-child(1) { width: 10%; }
.report-tables .report-table th:nth-child(2) { width: 14%; }
.report-tables .report-table th:nth-child(3) { width: 17%; }
.report-tables .report-table th:nth-child(4) { width: 22%; }
.report-tables .report-table th:nth-child(5) { width: 14%; }
.report-table td:nth-child(4) { font-variant-numeric: tabular-nums; font-weight: 700; }
/* 입금내역 — 내역이 한 칸에 결제수단과 나란히 들어가면 좁아서 잘린다. 두 줄로 쌓는다 */
.report-memo .rm-label { display: block; font-weight: 600; }
.report-memo .rm-pay { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
/* 비고·내역 — 가운데 정렬. 한글이 음절 중간에서 끊기지 않도록 낱말 단위로 줄바꿈한다 */
.report-memo { text-align: center; word-break: keep-all; }
.report-empty { color: var(--muted); padding: 16px; }
.report-settle td { padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.report-settle td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.report-settle tr.total td { border-top: 2px solid var(--ink); font-size: 16px; }
.report-settle tr.cash td { color: var(--success); font-size: 16px; }
/* 입출금 합계 — 입금·지출 두 줄을 하나로 요약한 순액 */
.report-settle tr.flow td { color: var(--submuted); border-top: 2px solid var(--line); }
/* 최종 합계 — 매출에 입출금까지 반영한 그날의 최종 금액. 매출 합계와 같은 무게로 강조한다 */
.report-settle tr.final td { font-size: 16px; border-top: 2px solid var(--ink); }
/* 온라인 채널별 하위 항목 — 상위 행보다 들여쓰고 작게 */
.report-settle tr.sub-row td { font-size: 13px; color: var(--muted); padding-top: 5px; padding-bottom: 5px; }
.report-settle tr.sub-row td:first-child { padding-left: 16px; }
.report-settle tr.sub-row td:last-child { font-weight: 600; }
/* 온라인 플랫폼 줄의 대실·숙박 — 플랫폼 이름과 사이를 띄워 한눈에 갈린다 */
.sub-split { margin-left: 18px; color: var(--submuted); white-space: nowrap; }
@media (min-width: 1024px) {
  /* 클래식(개편 전) — 현황표(좌, 넓게) + 정산·지출 요약(우) 2열. 양쪽 다 카드 컨테이너 */
  .report-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
  .report-tables, .report-side { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
  .report-tables .report-title:first-child, .report-side .report-title:first-child { margin-top: 0; }
  .report-table th, .report-table td { padding: 9px 10px; font-size: 14px; }
  .report-tables .report-table th, .report-tables .report-table td { padding-left: 8px; padding-right: 8px; }
  .report-settle td { padding: 10px 6px; }
}
/* 클래식 머리 오른쪽 — 모양 전환 단추 + 인쇄 */
.report-head-r { display: flex; align-items: center; gap: 8px; }
/* 모양 전환 — [새 문서 | 클래식] 두 칸 단추 (새 문서는 도구 칸 맨 위, 클래식은 머리 오른쪽) */
.dr-viewseg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--tint); }
.dr-viewseg button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 12px; border: none; border-radius: 9px; background: none; font-size: 13.5px; font-weight: 800; color: var(--submuted); }
.dr-viewseg button small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.dr-viewseg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 32, 58, .14); }
@media print {
  /* 클래식 인쇄 — 종이 장부는 전통적인 세로 스택 형식을 유지한다 (데스크톱 2열·카드 배치 무시) */
  .report-body { display: block !important; }
  .report-tables, .report-side { border: none !important; padding: 0 !important; background: none !important; }
  /* 정산·지출은 페이지를 강제로 넘기지 않고 이어서 흘린다 — 강제로 넘기면 첫 장 아래가 비어
     기록이 조금만 많아져도 3장이 된다. 대신 이 블록은 중간에서 잘리지 않게 한 덩어리로 유지한다. */
  .report-side { break-inside: avoid; }
  /* A4 폭에 맞춰 여백과 글자를 줄여 한 장에 최대한 담는다 */
  .report-header { margin-bottom: 2mm; }
  .report-header h2 { font-size: 14pt; }
  .report-header .sub { font-size: 8.5pt; }
  .report-title { font-size: 10.5pt; margin: 3mm 0 1.5mm; }
  .report-table, .report-settle { font-size: 8.5pt; }
  .report-table th, .report-table td { padding: 0.9mm 1.5mm; line-height: 1.25; }
  .report-settle td { padding: 1.5mm 1mm; font-size: 9.5pt; }
  .report-settle tr.total td, .report-settle tr.cash td, .report-settle tr.final td { font-size: 10.5pt; }
  .report-settle tr.sub-row td { font-size: 8.5pt; }
}

/* 주변 시세 지도 — 핀 색: 모차보다 1만↑(주황) · 비슷(회색) · 1만↓(파랑) · 마감(빈 점) */
.mk-mapbox { --mk-hi: #c4521c; --mk-hi-bg: #fdeee4; --mk-eq: #5c5346; --mk-lo: #2563c9; --mk-lo-bg: #e8f0fc; }
.mk-map-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mk-map-bar .mk-seg { margin: 0; }
.mk-legend, .mk-count { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--submuted); font-weight: 600; }
.mk-legend { margin-left: auto; }
.mk-legend i, .mk-count i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; background: var(--mk-eq); }
.mk-legend i.hi, .mk-count i.hi { background: var(--mk-hi); } .mk-legend i.lo, .mk-count i.lo { background: var(--mk-lo); }
.mk-legend i.sold, .mk-count i.sold { background: var(--surface); border: 2px solid var(--faint); width: 8px; height: 8px; }
.mk-count b { font-size: 15px; color: var(--ink); margin-left: 2px; }
.mk-map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: stretch; }
.mk-map { height: 560px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: var(--tint); z-index: 0; }
.mk-map .leaflet-tile-pane { filter: grayscale(.85) contrast(.92) brightness(1.05); opacity: .8; }
.mk-map.moving, .mk-map.moving .leaflet-interactive { cursor: crosshair; }
.mk-map .leaflet-control-attribution { font-size: 10px; }
.mk-ring span { position: absolute; transform: translate(-50%, -50%); font-size: 10.5px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.85); padding: 0 5px; border-radius: 6px; white-space: nowrap; }
.mk-pin .tag { position: absolute; left: 0; bottom: 7px; transform: translateX(-50%); white-space: nowrap; display: flex; align-items: center; gap: 5px; cursor: pointer;
  background: #fff; border: 1.5px solid var(--mk-eq); color: var(--ink); border-radius: 9px; padding: 3px 8px; font-size: 13px; font-weight: 800; box-shadow: 0 2px 6px rgba(33,31,28,.18); }
.mk-pin .tag::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 9px; height: 9px; background: inherit; border-right: 1.5px solid; border-bottom: 1.5px solid; border-color: inherit; transform: translateX(-50%) rotate(45deg); }
.mk-pin .tag em { font-style: normal; font-weight: 600; font-size: 11.5px; color: var(--submuted); }
.mk-pin::before { content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--mk-eq); border: 1.5px solid #fff; }
.mk-pin.below .tag { bottom: auto; top: 9px; } .mk-pin.below .tag::after { bottom: auto; top: -6px; transform: translateX(-50%) rotate(225deg); }
.mk-pin.right .tag { bottom: auto; top: 0; left: 10px; transform: translateY(-50%); } .mk-pin.right .tag::after { left: -6px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(135deg); }
.mk-pin.left .tag { bottom: auto; top: 0; left: auto; right: 10px; transform: translateY(-50%); } .mk-pin.left .tag::after { left: auto; right: -6px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }
.mk-pin.hi .tag { border-color: var(--mk-hi); background: var(--mk-hi-bg); color: var(--mk-hi); } .mk-pin.hi::before { background: var(--mk-hi); }
.mk-pin.lo .tag { border-color: var(--mk-lo); background: var(--mk-lo-bg); color: var(--mk-lo); } .mk-pin.lo::before { background: var(--mk-lo); }
.mk-pin.sold .tag { color: var(--faint); border-color: var(--faint); border-style: dashed; } .mk-pin.sold::before { background: #fff; border-color: var(--faint); }
.mk-pin.approx .tag { border-style: dashed; }
.mk-pin.sel .tag { outline: 3px solid rgba(33,31,28,.3); outline-offset: 1px; }
.mk-pin.self .tag { background: var(--ink); border-color: var(--ink); color: #fff; font-size: 14px; padding: 4px 10px; }
.mk-pin.self .tag i { font-style: normal; font-size: 11px; font-weight: 700; opacity: .75; }
.mk-pin.self::before { left: -5px; top: -5px; width: 10px; height: 10px; background: var(--ink); box-shadow: 0 0 0 4px rgba(33,31,28,.18); }
.mk-dot { border-radius: 50%; border: 2px solid #fff; background: var(--mk-eq); box-shadow: 0 1px 3px rgba(33,31,28,.35); cursor: pointer; }
.mk-dot.hi { background: var(--mk-hi); } .mk-dot.lo { background: var(--mk-lo); } .mk-dot.na { background: var(--faint); opacity: .6; }
.mk-dot.sold { background: #fff; border-color: var(--faint); }
.mk-dot.sel { box-shadow: 0 0 0 3px rgba(33,31,28,.35); }
.mk-dot small { position: absolute; left: 12px; top: -4px; font-size: 10.5px; font-weight: 800; color: var(--submuted); background: rgba(255,255,255,.85); padding: 0 3px; border-radius: 4px; }
.mk-cluster span { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer;
  background: #fff; border: 1.5px solid var(--submuted); border-radius: 999px; padding: 3px 9px 3px 3px; font-size: 11px; font-weight: 700; color: var(--submuted); box-shadow: 0 2px 6px rgba(33,31,28,.2); }
.mk-cluster b { width: 22px; height: 22px; border-radius: 50%; background: var(--submuted); color: #fff; display: grid; place-items: center; font-size: 12px; }
.mk-side { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; max-height: 560px; overflow: auto; }
.mk-side-hd { display: flex; align-items: flex-start; gap: 8px; }
.mk-side-hd > .meta { font-size: 12px; color: var(--muted); margin-left: auto; align-self: center; }
.mk-side-hd > div { flex: 1; min-width: 0; }
.mk-side-hd h4 { margin: 0; font-size: 16px; flex: 1; } .mk-side-hd .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.mk-side-hd > button { border: none; background: none; padding: 2px 4px; color: var(--muted); }
.mk-chip { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: var(--surface); white-space: nowrap; }
.mk-big { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mk-big > div { background: var(--tint); border-radius: 10px; padding: 9px 11px; }
.mk-big small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 700; }
.mk-big b { font-size: 19px; margin-right: 4px; } .mk-big b.sold { color: var(--faint); }
.mk-big .d { font-size: 12px; font-weight: 800; color: var(--muted); } .mk-big .d.up { color: var(--mk-hi); } .mk-big .d.dn { color: var(--mk-lo); }
.mk-side-t { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.mk-side-t th { font-size: 11.5px; color: var(--muted); font-weight: 700; text-align: right; padding: 3px 0; }
.mk-side-t td { padding: 6px 0; border-top: 1px solid var(--line); text-align: right; font-weight: 700; }
.mk-side-t th:first-child, .mk-side-t td:first-child { text-align: left; font-weight: 600; }
.mk-side-t td.us { color: var(--muted); }
.mk-side-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.mk-side-acts button { font-size: 12.5px; padding: 6px 10px; }
.mk-glist { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow: auto; }
.mk-glist button { display: flex; justify-content: space-between; gap: 8px; text-align: left; font-size: 13px; padding: 7px 10px; }
.mk-glist b.hi { color: var(--mk-hi); } .mk-glist b.lo { color: var(--mk-lo); } .mk-glist b.sold, .mk-glist b.na { color: var(--faint); }
.mk-noloc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mk-noloc button { font-size: 12px; padding: 4px 9px; }
.mk-move-msg { color: var(--ink); font-weight: 600; margin: 0; }
.mk-collect { font-size: 12.5px; color: var(--muted); margin: -4px 0 10px; display: flex; align-items: center; gap: 6px; }
.mk-collect.warn { color: var(--warning); }
.mk-merge { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mk-merge select { max-width: 220px; font: inherit; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: var(--surface); }
.mk-search { margin: -2px 0 12px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.mk-search summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mk-search summary .sub { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.mk-search .hint { color: var(--submuted); font-size: 12.5px; margin: 8px 0 6px; line-height: 1.6; }
.mk-search textarea { width: 100%; font: inherit; font-size: 12.5px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--paper); resize: vertical; }
.mk-search .act { display: flex; justify-content: flex-end; margin-top: 6px; }
@media (max-width: 900px) {
  .mk-map-grid { grid-template-columns: 1fr; }
  .mk-map { height: 360px; }
  .mk-legend { margin-left: 0; }
}

/* 주변 시세 — 판단 카드: 등급마다 모차 값이 주변과 견줘 어떤지 한 장씩 */
.mk-vcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.mk-vc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mk-vc .hd { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.mk-vc .big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mk-vc .big b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-vc .big b.sold { color: var(--faint); text-decoration: line-through; }
.mk-vc .big span { font-size: 12px; color: var(--submuted); font-weight: 700; }
.mk-vc .facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 8px; }
.mk-vc .facts b { color: var(--ink); font-variant-numeric: tabular-nums; } .mk-vc .facts .warn, .mk-vc .facts .warn b { color: var(--warning); }
.mk-vc .wk { font-size: 11.5px; color: var(--muted); }
.mk-verdict { font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--tint); color: var(--submuted); }
.mk-verdict.up { background: var(--success-bg); color: var(--success); }
.mk-verdict.lo { background: #e8f0fc; color: #2563c9; } .mk-verdict.hi { background: #fdeee4; color: #c4521c; }
.mk-verdict.sold { background: var(--ink); color: var(--surface); } .mk-verdict.na { color: var(--faint); }

/* 가격 사다리 — 한 줄에 핵심 경쟁 숙소를 값 순서로 */
.mk-lad { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 10px; padding: 22px 0; border-top: 1px solid var(--line); }
.mk-lad:first-of-type { border-top: none; padding-top: 14px; }
.mk-lad .axis { position: relative; height: 64px; margin: 0 36px; }
.mk-lad .line { position: absolute; left: 0; right: 0; top: 30px; height: 4px; border-radius: 2px; background: var(--tint); }
.mk-lad .dot { position: absolute; top: 26px; width: 12px; height: 12px; margin-left: -6px; padding: 0; border-radius: 50%; background: var(--submuted); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--submuted); cursor: pointer; }
.mk-lad .dot.sold { background: var(--surface); box-shadow: 0 0 0 1.5px var(--faint); }
.mk-lad .dot:hover { transform: scale(1.25); }
.mk-lad .nm { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--submuted); font-weight: 600; white-space: nowrap; text-align: center; line-height: 1.25; pointer-events: none; }
.mk-lad .nm i { display: block; font-style: normal; font-weight: 800; color: var(--ink); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mk-lad .nm.up { bottom: 38px; } .mk-lad .nm.dn { top: 42px; }
.mk-lad .med { position: absolute; top: 20px; width: 2px; height: 24px; margin-left: -1px; background: var(--faint); }
.mk-lad .me { position: absolute; top: 23px; width: 0; z-index: 1; }
.mk-lad .me::before { content: ''; position: absolute; left: -8px; top: 0; width: 16px; height: 16px; background: var(--ink); transform: rotate(45deg); border-radius: 3px; box-shadow: 0 0 0 3px var(--surface); }
.mk-lad .me b { position: absolute; left: 14px; top: -1px; background: var(--ink); color: var(--surface); font-size: 12px; padding: 2px 8px; border-radius: 7px; white-space: nowrap; }
.mk-lad .me.sold b { background: var(--faint); }
.mk-lad-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.mk-lad-legend i { display: inline-block; vertical-align: -1px; margin-right: 5px; }
.mk-lad-legend i.d { width: 10px; height: 10px; border-radius: 50%; background: var(--submuted); } .mk-lad-legend i.d.s { background: var(--surface); border: 1.5px solid var(--faint); }
.mk-lad-legend i.m { width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg); } .mk-lad-legend i.l { width: 2px; height: 12px; background: var(--faint); }

/* 지도 오른쪽 — 핵심 경쟁 목록 (누르면 자세히) */
.mk-clist { display: flex; flex-direction: column; }
.mk-clist .h, .mk-clist button { display: grid; grid-template-columns: minmax(0, 1fr) 48px 44px 44px; gap: 6px; align-items: center; text-align: left; }
.mk-clist .h { font-size: 11px; color: var(--muted); font-weight: 700; padding: 0 8px 6px; }
.mk-clist .h span:nth-child(n+3), .mk-clist .v { text-align: right; }
.mk-clist button { border: none; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 8px; font-size: 13px; }
.mk-clist button:hover { background: var(--tint); }
.mk-clist button.me { background: var(--tint); border-radius: 8px; border-top-color: transparent; }
.mk-clist .n { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-clist .k { font-size: 11.5px; color: var(--muted); }
.mk-clist .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.mk-clist .v.hi { color: #c4521c; } .mk-clist .v.lo { color: #2563c9; } .mk-clist .v.sold { color: var(--faint); text-decoration: line-through; }
.mk-count > span:first-child { color: var(--muted); font-weight: 600; }
@media (max-width: 1100px) { .mk-vcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { /* 폰 — 카드는 옆으로 넘기는 한 줄, 지도가 첫 화면에 보이게 */
  .mk-vcs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px 12px; padding: 0 12px 4px; scrollbar-width: none; }
  .mk-vcs::-webkit-scrollbar { display: none; }
  .mk-vc { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (max-width: 900px) { .mk-side { max-height: none; } .mk-lad { grid-template-columns: 1fr; gap: 4px; } .mk-lad .axis { margin: 0 24px; } }

/* 지도 옆 숙소 칸 — 플랫폼 번호와 주소 붙여넣기 */
.mk-plat { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; }
.mk-plat .ids { display: flex; gap: 14px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-plat .ids span { display: inline-flex; align-items: center; gap: 5px; } .mk-plat .ids em { font-style: normal; color: var(--faint); font-weight: 600; }
.mk-plat .pr { display: flex; flex-direction: row; gap: 6px; } .mk-plat .pr input { flex: 1; min-width: 0; width: auto; font-size: 12.5px; padding: 6px 9px; } .mk-plat .pr button { font-size: 12.5px; padding: 6px 10px; }
.mk-plat .mk-note { margin: 0; }

/* 장부 안내 줄 — 일행 연박의 나머지 방 수 (205+1) */
.row-main .rooms small.extra { font-size: 11px; font-weight: 700; color: var(--muted); margin-left: 2px; }

/* ───────── 객실 탭 (stays) — 오늘 밤 객실판 · 연박 팀 · 2주 객실표 · 명부 ───────── */
#view[data-view="stays"] .tag { font-size: 11.5px; font-weight: 700; border-radius: 5px; padding: 2px 6px; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
#view[data-view="stays"] .tag.reg { background: var(--primary-bg); color: var(--primary); }
#view[data-view="stays"] .tag.paid { background: var(--warning-bg); color: var(--warning); }
#view[data-view="stays"] .tag.due { background: var(--danger-bg); color: var(--danger); }
#view[data-view="stays"] .tag.resv { background: var(--online-bg); color: var(--online); }
#view[data-view="stays"] .tag.weekly { background: var(--card-pay-bg); color: var(--card-pay); }
#view[data-view="stays"] button.ghost { border-color: transparent; background: var(--tint); color: var(--submuted); }
#view[data-view="stays"] .muted { color: var(--muted); }
.rp-sect h3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-sect h3 > .ph-fill { color: var(--submuted); }
.rp-sect h3 .sub { font-size: 12.5px; font-weight: 500; color: var(--muted); }

/* 객실판 — 층마다 한 줄, 왼쪽 5·3·2층(+빈 줄) / 오른쪽 9·8·7·6층 */
.rp-board-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rp-board-head h2 { font-size: 18px; letter-spacing: -0.02em; }
.rp-board-head .at { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.rp-counts { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.rp-counts span { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 4px 10px; display: inline-flex; gap: 5px; align-items: center; border: 1px solid transparent; }
.rp-counts b { font-size: 14px; font-variant-numeric: tabular-nums; }
.rp-counts .c-empty { border-color: var(--line); color: var(--submuted); }
.rp-counts .c-stay { background: var(--stay-bg); color: var(--stay); }
.rp-counts .c-long { background: var(--warning-bg); color: var(--warning); }
.rp-counts .c-resv { background: var(--online-bg); color: var(--online); }
.rp-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rp-block { display: grid; grid-template-columns: 24px repeat(var(--cols, 5), minmax(0, 1fr)); gap: 6px; align-content: start; }
.rp-fl { font-size: 11.5px; font-weight: 800; color: var(--faint); display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; }
.rp-tile { position: relative; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 7px 8px 6px; min-height: 80px;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; overflow: hidden; text-align: left; font-weight: 400; color: var(--ink); }
.rp-tile .no { font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; font-variant-numeric: tabular-nums; }
.rp-tile .no i { font-size: 16px; }
.rp-tile .st { font-size: 11.5px; font-weight: 700; }
.rp-tile .who { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.rp-tile .tm { margin-top: auto; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.rp-tile .flag { margin-left: auto; font-size: 10px; border-radius: 4px; padding: 1px 4px; white-space: nowrap; color: #fff; }
.rp-tile .flag.due { background: var(--danger); }
.rp-tile .flag.out { background: var(--primary); }
.rp-tile.blank { visibility: hidden; }
.rp-tile.vacant .no { color: var(--faint); }
.rp-tile.vacant .st { color: var(--faint); font-weight: 600; }
.rp-tile.vacant .tm { color: var(--stay); font-weight: 600; }
.rp-tile.stay { background: var(--stay-bg); border-color: #e6c6b0; color: var(--stay); }
.rp-tile.long { background: var(--warning-bg); border-color: #e3d2a4; color: var(--warning); }
.rp-tile.long.multi { box-shadow: inset 0 0 0 1px #c48a2c; }
.rp-tile .nb { display: flex; gap: 2px; margin-top: 3px; }
.rp-tile .nb i { flex: 1; height: 4px; border-radius: 2px; background: rgba(147, 100, 28, .2); }
.rp-tile .nb i.on { background: var(--warning); }
.rp-tile.resv { background: repeating-linear-gradient(-45deg, var(--online-bg) 0 7px, #f8eef3 7px 14px); border: 1px dashed #d1a9bd; color: var(--online); }
.rp-tile.sel { outline: 3px solid var(--ink); outline-offset: 1px; }
.rp-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--submuted); margin-top: 12px; align-items: center; }
.rp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rp-legend .sw { width: 16px; height: 11px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.rp-legend .sw.stay { background: var(--stay-bg); border-color: #e6c6b0; }
.rp-legend .sw.long, .rp-legend .sw.paid { background: var(--warning-bg); border-color: #e3d2a4; }
.rp-legend .sw.daily { background: var(--danger-bg); border-color: #e8c1b8; }
.rp-legend .sw.resv { background: repeating-linear-gradient(-45deg, var(--online-bg) 0 4px, #f8eef3 4px 8px); border: 1px dashed #d1a9bd; }
.rp-legend .sw.grp { background: var(--warning-bg); box-shadow: inset 3px 0 0 #c48a2c; }
.rp-picked { position: relative; margin-top: 12px; border-top: 1px dashed var(--line); padding: 12px 36px 0 0; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.rp-picked .p-room { font-size: 20px; font-weight: 800; }
.rp-picked .p-room small { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.rp-picked .p-main { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; }
.rp-picked .p-main span { font-size: 12.5px; color: var(--submuted); }
.rp-picked .p-act { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-picked .p-act button, .rp-card .c-act button, .rp-todo button, .rp-li button { font-size: 13px; padding: 6px 10px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.rp-picked .p-x { position: absolute; right: 0; top: 12px; padding: 4px 7px; }

/* 오늘 챙길 일 */
.rp-todo { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rp-todo-col { border-radius: 10px; padding: 10px 12px; background: var(--paper); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rp-todo-col h4 { font-size: 13px; display: flex; align-items: center; gap: 5px; }
.rp-todo-col.ask { background: var(--primary-bg); }
.rp-todo-col.ask h4 { color: var(--primary); }
.rp-todo-col.money h4 { color: var(--danger); }
.rp-todo-col.arrive h4 { color: var(--online); }
.rp-todo-col.week h4 { color: var(--card-pay); }
.rp-todo-col .hint { font-size: 11.5px; color: var(--submuted); margin-top: -4px; }
.rp-todo-col .none { font-size: 12.5px; color: var(--faint); }
.rp-todo .ti { display: flex; align-items: center; gap: 8px; background: var(--surface); border-radius: 8px; padding: 7px 9px; }
.rp-todo .ti .rm { font-weight: 800; font-size: 13.5px; min-width: 32px; }
.rp-todo .ti .who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-todo .ti .who b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-todo .ti .who span { font-size: 11.5px; color: var(--muted); }
.rp-todo .ti .need { color: var(--online); }

/* 연박 팀 카드 */
.rp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rp-card { border: 1px solid var(--line); border-radius: 11px; padding: 12px; display: flex; flex-direction: column; gap: 9px; background: var(--surface); min-width: 0; }
.rp-card.tmr { border-color: #b9d8ca; }
.rp-card .c-top { display: flex; align-items: flex-start; gap: 10px; }
.rp-card .c-room { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.rp-card .c-room small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 3px; letter-spacing: 0; }
.rp-card .c-who { flex: 1; min-width: 0; }
.rp-card .c-name { border: none; background: none; padding: 0; font-size: 14.5px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; text-align: left; }
.rp-card .c-name i { font-size: 12px; color: var(--faint); }
.rp-card .tags { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.rp-card .dday { font-size: 12px; font-weight: 800; border-radius: 6px; padding: 3px 7px; white-space: nowrap; background: var(--tint); color: var(--submuted); }
.rp-card .dday.d1 { background: var(--primary); color: #fff; }
.rp-card .dday.d0 { background: var(--stay); color: #fff; }
.rp-nights { display: flex; gap: 3px; }
.rp-nights i { flex: 1; height: 7px; border-radius: 3px; background: var(--tint); }
.rp-nights i.done, .rp-nights i.now { background: var(--warning); }
.rp-nights i.now { box-shadow: 0 0 0 2px var(--warning-bg); }
.rp-nc { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; }
.rp-nc div { background: var(--tint); border-radius: 6px; text-align: center; padding: 3px 0 4px; line-height: 1.25; }
.rp-nc span { display: block; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.rp-nc b { font-size: 12.5px; }
.rp-nc .done { background: var(--warning-bg); }
.rp-nc .now { background: var(--warning); }
.rp-nc .now span, .rp-nc .now b { color: #fff; }
.rp-rooms { display: flex; gap: 4px; flex-wrap: wrap; }
.rp-rooms .rc { font-size: 12px; font-weight: 800; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.rp-rooms .rc.add { border-style: dashed; border-color: var(--warning); color: var(--warning); }
.rp-rooms .rc small { font-weight: 600; }
.rp-card .c-dates { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; color: var(--submuted); }
.rp-card .c-dates b { color: var(--ink); }
.rp-card .c-pay { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--submuted); border-top: 1px dashed var(--line); padding-top: 8px; }
.rp-card .c-pay .amt { font-weight: 800; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-card .c-act { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-next { font-size: 12px; color: var(--card-pay); background: var(--card-pay-bg); border-radius: 7px; padding: 6px 8px; display: flex; gap: 5px; align-items: center; }
.rp-next.on { font-weight: 700; }

/* 연박·예약 받기 */
.rp-intake { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; }
.rp-form { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px 10px; align-items: center; font-size: 13px; }
.rp-form .lb { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.rp-form input { width: 100%; }
.rp-form .inl { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-form .inl input { width: 76px; }
.rp-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rp-seg button { border: none; border-radius: 0; padding: 7px 11px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--surface); }
.rp-seg button + button { border-left: 1px solid var(--line); }
.rp-seg button.on { background: var(--primary); color: #fff; }
.rp-roomgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 5px; margin-top: 6px; }
.rp-roomgrid .roomcell { padding: 7px 0; font-size: 13px; }
.rp-roomgrid .roomcell.busy:not(.on) { color: var(--faint); background: var(--tint); text-decoration: line-through; }
.rp-hint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; font-size: 12px; background: var(--primary-bg); color: var(--primary); border-radius: 6px; padding: 6px 8px; font-weight: 600; }
.rp-hint.new { background: var(--tint); color: var(--submuted); }
.rp-hint button { margin-left: auto; font-size: 12px; padding: 3px 8px; }
.rp-intake-side { font-size: 13px; color: var(--submuted); line-height: 1.7; background: var(--paper); border-radius: 10px; padding: 12px 14px; align-self: start; }
.rp-intake-side b { color: var(--ink); }
.rp-intake-side ul { padding-left: 16px; margin-top: 6px; }

/* 다가오는 예약 · 이름 없는 연박 목록 */
.rp-list, .rp-nl { display: flex; flex-direction: column; }
.rp-li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--tint); }
.rp-li:last-child { border-bottom: none; }
.rp-li .d { font-weight: 800; font-size: 13px; min-width: 70px; font-variant-numeric: tabular-nums; }
.rp-li .m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.rp-li .m b { font-size: 13.5px; }
.rp-li .m span { font-size: 12px; color: var(--muted); }
.rp-li .a { display: flex; gap: 6px; }

/* 2주 객실표 */
.rp-tl-wrap { overflow-x: auto; overflow-y: hidden; }
.rp-tl { display: grid; grid-template-columns: 46px repeat(14, minmax(44px, 1fr)); min-width: 700px; row-gap: 4px; }
.rp-tl .dh { font-size: 11.5px; color: var(--muted); text-align: center; padding-bottom: 6px; font-weight: 600; line-height: 1.3; }
.rp-tl .dh b { display: block; font-size: 13px; color: var(--ink); }
.rp-tl .dh.we b { color: var(--stay); }
.rp-tl .dh.tdy { color: var(--primary); }
.rp-tl .dh.tdy b { color: #fff; background: var(--primary); border-radius: 6px; margin: 0 5px; }
.rp-tl .rl { font-weight: 800; font-size: 13px; display: flex; align-items: center; grid-column: 1; }
.rp-tl .rl.unset { color: var(--online); font-size: 12px; }
.rp-tl .rl.sumlbl { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 6px; }
.rp-tl .lane { grid-column: 2 / -1; height: 28px; border-radius: 6px; background-color: var(--paper);
  background-image: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 14 - 1px), var(--line) calc(100% / 14 - 1px), var(--line) calc(100% / 14)); }
.rp-tl .lane.unset { background-color: var(--online-bg); }
.rp-tl .bar { height: 28px; border-radius: 7px; display: flex; align-items: center; gap: 5px; padding: 0 8px; margin: 0 2px; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; z-index: 1; }
.rp-tl .bar small { font-weight: 600; opacity: .75; }
.rp-tl .bar .cnt { background: var(--online); color: #fff; border-radius: 5px; padding: 1px 6px; font-size: 11px; }
.rp-tl .bar.paid { background: var(--warning-bg); color: var(--warning); border: 1px solid #e3d2a4; }
.rp-tl .bar.daily { background: var(--danger-bg); color: var(--danger); border: 1px solid #e8c1b8; }
.rp-tl .bar.resv { background: repeating-linear-gradient(-45deg, var(--online-bg) 0 6px, #f8eef3 6px 12px); color: var(--online); border: 1px dashed #d1a9bd; }
.rp-tl .bar.cut { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; border-left: none; }
.rp-tl .bar.grp { box-shadow: inset 3px 0 0 #c48a2c; }
.rp-tl .free { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--submuted); border-top: 1px solid var(--line); padding-top: 6px; font-variant-numeric: tabular-nums; }
.rp-tl .now { background: rgba(13, 107, 86, .09); border-radius: 6px; margin: 0 1px; pointer-events: none; z-index: 2; }

/* 명부 · 지난 연박 */
.rp-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.rp-tscroll { overflow-x: auto; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-table th { text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 600; padding: 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rp-table td { padding: 9px 6px; border-bottom: 1px solid var(--tint); vertical-align: top; }
.rp-table .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rp-table .memo { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rp-table tr.nameless td { background: var(--paper); }
.rp-table tr.nameless button { font-size: 12.5px; padding: 6px 10px; font-weight: 700; }
.rp-month { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.rp-month button { padding: 4px 7px; }
.rp-msum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.rp-msum div { background: var(--paper); border-radius: 8px; padding: 8px 10px; }
.rp-msum span { display: block; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.rp-msum b { font-size: 15px; font-variant-numeric: tabular-nums; }

.rp-modal-body { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--submuted); font-weight: 600; }
.rp-modal-body label { display: flex; flex-direction: column; gap: 5px; }
.rp-modal-body .inl { display: inline-flex; align-items: center; gap: 6px; }
.rp-modal-body .inl input { width: 80px; }
.rp-modal-body + .modal-foot { gap: 8px; }

@media (max-width: 1180px) { .rp-todo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1360px) { .rp-two { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .rp-board { grid-template-columns: 1fr; gap: 10px; }
  .rp-block .gap { display: none; }
  .rp-intake, .rp-two { grid-template-columns: 1fr; }
  .rp-counts { margin-left: 0; }
}
@media (max-width: 520px) {
  .rp-todo { grid-template-columns: 1fr; }
  .rp-block { grid-template-columns: 16px repeat(var(--cols, 5), minmax(0, 1fr)); gap: 4px; }
  .rp-tile { min-height: 66px; padding: 5px 5px 4px; border-radius: 8px; }
  .rp-tile .no { font-size: 14px; }
  .rp-tile .no i { font-size: 13px; }
  .rp-tile .st, .rp-tile .who, .rp-tile .tm { font-size: 10.5px; }
  .rp-tile .flag { display: none; }
  .rp-msum { grid-template-columns: repeat(2, 1fr); }
  .rp-cards { grid-template-columns: 1fr; }
}
