/* ===================================================================================
   FOON Design System — Simple · Trust · Fast · Smart
   Enterprise SaaS + FinTech + AI Authentication
   - 토큰(:root) → 기본 요소 → 레이아웃(셸) → 컴포넌트 → 모바일(직원 앱) → 키오스크 → 인쇄
   - 모든 사이트가 이 파일 하나를 공유한다. 사이트 고유 스타일은 각 사이트 wwwroot/app.css 에 둔다.
   =================================================================================== */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  /* 브랜드 */
  --fn-brand: #2F5BFF;          /* Trust Blue — 주요 동작 */
  --fn-brand-ink: #1B3FD6;
  --fn-brand-soft: #EBF0FF;
  --fn-on: #12B886;             /* ON Green — 승인·완료·'ON' */
  --fn-on-soft: #E3F8F0;
  --fn-navy: #0B1530;           /* 사이드바·키오스크 배경 */
  --fn-navy-2: #14224A;
  /* 중립 */
  --fn-bg: #F5F7FB;
  --fn-surface: #FFFFFF;
  --fn-surface-2: #F9FAFC;
  --fn-line: #E4E8F0;
  --fn-line-strong: #CFD6E4;
  --fn-ink: #0F172A;
  --fn-ink-2: #3E4A61;
  --fn-muted: #7B8599;
  /* 상태 */
  --fn-warn: #D98A00;  --fn-warn-soft: #FFF5DB;
  --fn-danger: #E03E45; --fn-danger-soft: #FDECEC;
  --fn-info: #2F7CF6;  --fn-info-soft: #E8F1FE;
  --fn-violet: #7C5CFF; --fn-violet-soft: #F0ECFF;
  /* 차트 시리즈(임직원 / 외부인 / 단체) */
  --fn-s1: #2F5BFF; --fn-s2: #12B886; --fn-s3: #F5A524;
  /* 형태 */
  --fn-radius: 12px; --fn-radius-sm: 8px; --fn-radius-lg: 18px;
  --fn-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 2px 8px rgba(15, 23, 42, .04);
  --fn-shadow-lg: 0 12px 40px rgba(15, 23, 42, .16);
  --fn-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  --fn-mono: ui-monospace, SFMono-Regular, Consolas, "D2Coding", monospace;
  --fn-side-w: 244px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--fn-font); font-size: 14px; line-height: 1.5; color: var(--fn-ink); background: var(--fn-bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
a { color: var(--fn-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--fn-line); margin: 16px 0; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--fn-mono); font-size: 12.5px; }
.muted { color: var(--fn-muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.hide-sm { }
.tone-on { color: var(--fn-on); } .tone-danger { color: var(--fn-danger); } .tone-warn { color: var(--fn-warn); } .tone-brand { color: var(--fn-brand); }

/* ───────────── 브랜드 로고 ───────────── */
.fn-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -0.02em; font-size: 20px; color: inherit; }
.fn-logo .mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--fn-brand) 0%, #5B7CFF 55%, var(--fn-on) 100%);
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 4px 12px rgba(47, 91, 255, .35); }
.fn-logo .word b { color: var(--fn-on); }
.fn-logo .fn-logo-img { height: 1.3em; width: auto; display: block; } /* 이미지 로고(가로 약 3.7 : 1) */
.fn-logo .product { font-weight: 600; font-size: 13px; opacity: .7; margin-left: 2px; }

/* ───────────── 앱 셸(사이드바 + 상단바) ───────────── */
.fn-shell { display: grid; grid-template-columns: var(--fn-side-w) 1fr; min-height: 100vh; }
.fn-side { background: var(--fn-navy); color: #C9D2E8; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.fn-side .brand { padding: 14px 20px 10px; color: #fff; }
.fn-side .org { margin: 0 12px 6px; padding: 8px 12px; border-radius: 10px; background: var(--fn-navy-2); font-size: 12.5px; color: #AEB9D6; }
.fn-side .org b { display: block; color: #fff; font-size: 13.5px; }
.fn-nav { padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 0; }
.fn-nav .group { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #6F7C9E; padding: 7px 10px 2px; text-transform: uppercase; }
.fn-nav a { display: flex; align-items: center; gap: 10px; padding: 3px 10px; line-height: 1.45; border-radius: 8px; color: #C9D2E8; font-weight: 500; text-decoration: none; }
.fn-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.fn-nav a.active { background: var(--fn-brand); color: #fff; box-shadow: 0 4px 14px rgba(47, 91, 255, .35); }
.fn-nav a .ico { width: 18px; height: 18px; opacity: .9; flex: none; }
.fn-nav a .count { margin-left: auto; background: var(--fn-danger); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 7px; font-weight: 700; }
.fn-side .foot { margin-top: auto; padding: 8px 20px 10px; font-size: 11.5px; color: #6F7C9E; }
.fn-main { min-width: 0; display: flex; flex-direction: column; }
.fn-top { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--fn-line); position: sticky; top: 0; z-index: 20; }
.fn-top .menu-btn { display: none; }
.fn-top .who { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; }
.fn-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--fn-brand-soft); color: var(--fn-brand); display: grid; place-items: center; font-weight: 700; }
.fn-content { padding: 24px 28px 48px; max-width: 1440px; width: 100%; }
.fn-powered { font-size: 11px; color: var(--fn-muted); }

/* ───────────── 페이지 머리 ───────────── */
.fn-page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.fn-page-head .titles { flex: 1; min-width: 240px; }
.fn-page-head .eyebrow { font-size: 12px; font-weight: 600; color: var(--fn-brand); margin-bottom: 2px; }
.fn-page-head p { color: var(--fn-muted); margin-top: 4px; }
.fn-page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ───────────── 그리드 · 카드 ───────────── */
.fn-grid { display: grid; gap: 16px; }
.fn-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fn-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fn-grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fn-grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fn-grid.w21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.fn-grid.w12 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.fn-card { background: var(--fn-surface); border: 1px solid var(--fn-line); border-radius: var(--fn-radius); box-shadow: var(--fn-shadow); }
.fn-card > .head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--fn-line); }
.fn-card > .head h3 { flex: 1; }
.fn-card > .body { padding: 18px; }
.fn-card > .body.flush { padding: 0; }
.fn-card > .foot { padding: 12px 18px; border-top: 1px solid var(--fn-line); background: var(--fn-surface-2); border-radius: 0 0 var(--fn-radius) var(--fn-radius); }

/* 통계 카드 */
.fn-stat { padding: 16px 18px; background: var(--fn-surface); border: 1px solid var(--fn-line); border-radius: var(--fn-radius); box-shadow: var(--fn-shadow); position: relative; overflow: hidden; }
.fn-stat .label { font-size: 12.5px; color: var(--fn-muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.fn-stat .value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.fn-stat .value small { font-size: 15px; font-weight: 600; color: var(--fn-ink-2); margin-left: 2px; }
.fn-stat .sub { font-size: 12.5px; color: var(--fn-ink-2); margin-top: 4px; }
.fn-stat.hero { background: linear-gradient(135deg, var(--fn-navy) 0%, #1A2E6B 100%); color: #fff; border: 0; }
.fn-stat.hero .label, .fn-stat.hero .sub { color: #AFC0EA; }
.fn-stat.hero .value small { color: #D6E0FA; }
.fn-stat.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 184, 134, .45), transparent 70%); }
.fn-stat .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ───────────── 버튼 · 입력 ───────────── */
.fn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--fn-radius-sm);
  border: 1px solid var(--fn-line-strong); background: var(--fn-surface); color: var(--fn-ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, box-shadow .12s; text-decoration: none !important; }
.fn-btn:hover { background: var(--fn-surface-2); border-color: var(--fn-muted); }
.fn-btn:disabled { opacity: .5; cursor: not-allowed; }
.fn-btn.primary { background: var(--fn-brand); border-color: var(--fn-brand); color: #fff; }
.fn-btn.primary:hover { background: var(--fn-brand-ink); }
.fn-btn.on { background: var(--fn-on); border-color: var(--fn-on); color: #fff; }
.fn-btn.on:hover { filter: brightness(.95); }
.fn-btn.danger { background: var(--fn-surface); border-color: #F3B8BA; color: var(--fn-danger); }
.fn-btn.danger:hover { background: var(--fn-danger-soft); }
.fn-btn.ghost { border-color: transparent; background: transparent; }
.fn-btn.ghost:hover { background: var(--fn-brand-soft); color: var(--fn-brand); }
.fn-btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.fn-btn.lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.fn-btn.block { width: 100%; }
/* 입력 칸 묶음(2026-10-18 사용자 요청): 제목(label)은 자기 입력 칸에 붙이고(4px), 칸과 칸 사이는 넓힌다(16px) — 제목이 위 칸의 설명처럼 보이지 않게 */
.fn-form { display: flex; flex-direction: column; gap: 16px; }
.fn-field { display: flex; flex-direction: column; gap: 4px; }
/* 묶음(.fn-form/.fn-form-grid) 없이 입력 칸을 바로 쌓은 곳(모달·카드 본문) — 칸 사이를 같은 16px 로(2026-10-19 사용자 요청: 제목 위는 넓게, 제목과 칸은 붙게) */
:is(.fn-modal > .body, .fn-card > .body) > :is(.fn-field, .fn-grid, .fn-form-grid, .fn-form) + :is(.fn-field, .fn-grid, .fn-form-grid, .fn-form) { margin-top: 16px; }
.stack > .fn-field + .fn-field { margin-top: 4px; } /* .stack(간격 12px) 안의 입력 칸도 16px */
.fn-field > label, .fn-label { font-size: 12.5px; font-weight: 600; color: var(--fn-ink-2); }
.fn-field .hint { font-size: 12px; color: var(--fn-muted); }
.fn-input, .fn-select, .fn-textarea { height: 38px; padding: 0 12px; border: 1px solid var(--fn-line-strong); border-radius: var(--fn-radius-sm);
  background: var(--fn-surface); color: var(--fn-ink); font: inherit; width: 100%; outline: none; transition: border-color .12s, box-shadow .12s; }
.fn-textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.fn-input:focus, .fn-select:focus, .fn-textarea:focus { border-color: var(--fn-brand); box-shadow: 0 0 0 3px rgba(47, 91, 255, .15); }
.fn-input.sm, .fn-select.sm { height: 32px; font-size: 13px; }
.fn-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 16px; }
.fn-form-grid .full { grid-column: 1 / -1; }
.fn-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.fn-check input { width: 16px; height: 16px; accent-color: var(--fn-brand); }
.fn-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.fn-toolbar .fn-input, .fn-toolbar .fn-select { width: auto; min-width: 140px; }
.fn-seg { display: inline-flex; background: #EEF1F7; border-radius: 10px; padding: 3px; gap: 2px; }
.fn-seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--fn-ink-2); cursor: pointer; }
.fn-seg button.active { background: var(--fn-surface); color: var(--fn-ink); box-shadow: var(--fn-shadow); }

/* ───────────── 표 ───────────── */
.fn-table-wrap { overflow-x: auto; }
.fn-table { width: 100%; border-collapse: collapse; }
.fn-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--fn-muted); background: var(--fn-surface-2); padding: 8px 14px;
  border-bottom: 1px solid var(--fn-line); white-space: nowrap; position: sticky; top: 0; }
/* 행 높이(2026-10-06 사용자 요청으로 줄임): 글자만 있는 줄 약 34px · 버튼 있는 줄 약 40px */
.fn-table td { padding: 6px 14px; border-bottom: 1px solid var(--fn-line); vertical-align: middle; line-height: 1.45; }
.fn-table td .fn-btn.sm { height: 26px; }
.fn-table td .fn-select.sm, .fn-table td .fn-input.sm { height: 28px; }
/* 제목 칸 정렬을 값 칸과 맞춘다(위 th 기본 왼쪽 정렬이 .num·.right·.center 를 덮지 않게) */
.fn-table th.num, .fn-table th.right { text-align: right; }
.fn-table th.center { text-align: center; }
.fn-table tr:last-child td { border-bottom: 0; }
.fn-table tbody tr:hover td { background: #FAFBFF; }
.fn-table tr.clickable { cursor: pointer; }
.fn-table tfoot td { font-weight: 700; background: var(--fn-surface-2); border-top: 1px solid var(--fn-line); }
.fn-table .actions { text-align: right; white-space: nowrap; }

/* ───────────── 배지 ───────────── */
.fn-badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap;
  background: #EEF1F7; color: var(--fn-ink-2); }
.fn-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.fn-badge.plain::before { display: none; }
.fn-badge.on { background: var(--fn-on-soft); color: #0B8A63; }
.fn-badge.brand { background: var(--fn-brand-soft); color: var(--fn-brand-ink); }
.fn-badge.warn { background: var(--fn-warn-soft); color: #A86B00; }
.fn-badge.danger { background: var(--fn-danger-soft); color: #C0272E; }
.fn-badge.info { background: var(--fn-info-soft); color: #1F63CF; }
.fn-badge.violet { background: var(--fn-violet-soft); color: #5B3FE0; }
.fn-badge.muted { background: #F0F2F6; color: var(--fn-muted); }

/* ───────────── 알림 상자 · 빈 상태 ───────────── */
.fn-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid; font-size: 13.5px; align-items: flex-start; }
.fn-alert.info { background: var(--fn-info-soft); border-color: #C9DCFB; color: #1F4E9C; }
.fn-alert.warn { background: var(--fn-warn-soft); border-color: #F5DD9C; color: #7A5200; }
.fn-alert.danger { background: var(--fn-danger-soft); border-color: #F6C3C5; color: #962027; }
.fn-alert.on { background: var(--fn-on-soft); border-color: #B6EAD7; color: #0B6B4D; }
.fn-alert b { font-weight: 700; }
.fn-empty { padding: 48px 20px; text-align: center; color: var(--fn-muted); }
.fn-empty .ico { font-size: 28px; margin-bottom: 8px; opacity: .6; }
.fn-loading { padding: 40px; text-align: center; color: var(--fn-muted); }
.fn-spinner { width: 22px; height: 22px; border: 3px solid var(--fn-brand-soft); border-top-color: var(--fn-brand); border-radius: 50%; animation: fn-spin .8s linear infinite; display: inline-block; }
@keyframes fn-spin { to { transform: rotate(360deg); } }

/* ───────────── 키-값 · 탭 ───────────── */
.fn-kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 13.5px; }
.fn-kv dt { color: var(--fn-muted); font-weight: 600; }
.fn-kv dd { margin: 0; }
.fn-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--fn-line); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; } /* overflow-y: 가로 스크롤만 — 탭의 -1px 겹침 때문에 세로 스크롤바가 생기던 것 방지 */
.fn-tabs button, .fn-tabs a { border: 0; background: transparent; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--fn-muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.fn-tabs .active { color: var(--fn-brand); border-bottom-color: var(--fn-brand); }

/* ───────────── 정산 진행 단계 ───────────── */
.fn-steps { display: flex; align-items: flex-start; gap: 0; overflow-x: auto; padding: 4px 0; }
.fn-step { flex: 1; min-width: 92px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; font-size: 12px; color: var(--fn-muted); }
.fn-step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--fn-line); z-index: 0; }
.fn-step:first-child::before { display: none; }
.fn-step .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--fn-surface); border: 2px solid var(--fn-line-strong); display: grid; place-items: center;
  font-weight: 800; font-size: 12px; z-index: 1; color: var(--fn-muted); }
.fn-step .name { margin-top: 6px; font-weight: 700; }
.fn-step .when { font-size: 11px; }
.fn-step.done { color: var(--fn-ink-2); }
.fn-step.done .dot { background: var(--fn-on); border-color: var(--fn-on); color: #fff; }
.fn-step.done::before, .fn-step.current::before { background: var(--fn-on); }
.fn-step.current .dot { border-color: var(--fn-brand); color: var(--fn-brand); box-shadow: 0 0 0 4px var(--fn-brand-soft); }
.fn-step.current { color: var(--fn-brand); }
.fn-step.blocked .dot { border-color: var(--fn-danger); color: var(--fn-danger); }
.fn-step.blocked { color: var(--fn-danger); }

/* ───────────── 타임라인(이의제기 이력·감사) ───────────── */
.fn-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--fn-line); }
.fn-timeline li { position: relative; padding: 0 0 16px 14px; }
.fn-timeline li::before { content: ""; position: absolute; left: -25px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--fn-surface); border: 2px solid var(--fn-brand); }
.fn-timeline .meta { font-size: 12px; color: var(--fn-muted); }

/* ───────────── 차트(SVG) · 가로 막대 ───────────── */
.fn-chart { width: 100%; height: auto; display: block; }
.fn-chart text { font-family: var(--fn-font); font-size: 11px; fill: var(--fn-muted); }
.fn-chart .grid line { stroke: var(--fn-line); stroke-width: 1; }
.fn-legend { display: flex; gap: 14px; font-size: 12px; color: var(--fn-ink-2); flex-wrap: wrap; }
.fn-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.fn-hbars { display: flex; flex-direction: column; gap: 10px; }
.fn-hbar .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.fn-hbar .track { height: 8px; background: #EEF1F7; border-radius: 999px; overflow: hidden; }
.fn-hbar .fill { height: 100%; background: var(--fn-brand); border-radius: 999px; }

/* ───────────── 모달 · 토스트 ───────────── */
.fn-modal-back { position: fixed; inset: 0; background: rgba(11, 21, 48, .45); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fn-fade .12s; }
.fn-modal { background: var(--fn-surface); border-radius: var(--fn-radius-lg); box-shadow: var(--fn-shadow-lg); width: 100%; max-width: 560px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.fn-modal.wide { max-width: 860px; }
.fn-modal > .head { padding: 18px 22px 12px; display: flex; align-items: center; gap: 8px; }
.fn-modal > .head h2 { flex: 1; }
.fn-modal > .body { padding: 6px 22px 18px; overflow-y: auto; }
.fn-modal > .foot { padding: 14px 22px; border-top: 1px solid var(--fn-line); display: flex; justify-content: flex-end; gap: 8px; }
.fn-toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.fn-toast { min-width: 260px; max-width: 420px; padding: 12px 16px; border-radius: 10px; background: var(--fn-navy); color: #fff; box-shadow: var(--fn-shadow-lg);
  font-weight: 500; animation: fn-rise .18s; border-left: 4px solid var(--fn-brand); }
.fn-toast.success { border-left-color: var(--fn-on); }
.fn-toast.danger { border-left-color: var(--fn-danger); }
@keyframes fn-fade { from { opacity: 0; } }
@keyframes fn-rise { from { opacity: 0; transform: translateY(8px); } }

/* ───────────── 로그인 ───────────── */
.fn-auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.fn-auth .visual { background: radial-gradient(1200px 600px at 10% 10%, #1D3A9E 0%, var(--fn-navy) 55%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.fn-auth .visual h1 { font-size: 40px; line-height: 1.2; font-weight: 800; letter-spacing: -0.03em; }
.fn-auth .visual h1 em { font-style: normal; color: var(--fn-on); }
.fn-auth .visual p { color: #B7C4E8; margin-top: 14px; font-size: 15px; max-width: 440px; }
.fn-auth .visual .ring { position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 2px solid rgba(18, 184, 134, .35);
  box-shadow: 0 0 0 40px rgba(18, 184, 134, .06), 0 0 0 90px rgba(47, 91, 255, .06); }
.fn-auth .panel { display: grid; place-items: center; padding: 40px 24px; background: var(--fn-surface); }
.fn-auth form { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.fn-auth .demo { margin-top: 8px; padding: 12px; border-radius: 10px; background: var(--fn-surface-2); border: 1px dashed var(--fn-line-strong); font-size: 12.5px; color: var(--fn-ink-2); }
.fn-auth .demo code { font-family: var(--fn-mono); color: var(--fn-brand-ink); }
/* 로그인 부가 기능: 로그인 저장·상태 유지 · 카카오 · 찾기·가입 · 약관 링크 */
.fn-auth .opts { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.fn-auth .or { display: flex; align-items: center; gap: 10px; color: var(--fn-ink-3); font-size: 12.5px; }
.fn-auth .or::before, .fn-auth .or::after { content: ""; flex: 1; height: 1px; background: var(--fn-line); }
.fn-btn.kakao { background: #FEE500; color: #191600; border-color: #FEE500; font-weight: 700; }
.fn-btn.kakao:hover { filter: brightness(.97); }
.fn-auth .links { text-align: center; font-size: 13px; color: var(--fn-ink-3); }
.fn-auth .links a { color: var(--fn-ink-2); text-decoration: none; }
.fn-auth .links a:hover { text-decoration: underline; }
.fn-auth .links .sep { margin: 0 8px; opacity: .6; }
.fn-auth .legal { border-top: 1px solid var(--fn-line); padding-top: 14px; margin-top: 4px; text-align: center; font-size: 12px; color: var(--fn-ink-3); }
.fn-auth .legal a { color: var(--fn-ink-3); }
.fn-auth form.wide { max-width: 560px; }
.fn-auth .agree { border: 1px solid var(--fn-line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }

/* ───────────── 직원 모바일 앱 ───────────── */
.fn-m { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--fn-bg); display: flex; flex-direction: column; }
.fn-m-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--fn-surface); border-bottom: 1px solid var(--fn-line); position: sticky; top: 0; z-index: 10; }
.fn-m-top h1 { font-size: 17px; flex: 1; }
.fn-m-body { flex: 1; padding: 16px 16px 96px; display: flex; flex-direction: column; gap: 14px; }
.fn-m-tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--fn-surface); border-top: 1px solid var(--fn-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
.fn-m-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--fn-muted); padding: 6px 0; text-decoration: none; }
.fn-m-tabs a.active { color: var(--fn-brand); }
.fn-m-tabs a .ico { width: 22px; height: 22px; }
.fn-m-card { background: var(--fn-surface); border-radius: 16px; padding: 18px; box-shadow: var(--fn-shadow); border: 1px solid var(--fn-line); }
.fn-m-hero { border-radius: 20px; padding: 22px; color: #fff; background: linear-gradient(145deg, var(--fn-brand) 0%, #4F6BFF 50%, #13B38A 130%); box-shadow: 0 10px 30px rgba(47, 91, 255, .3); }
.fn-m-hero.off { background: linear-gradient(145deg, #4B5570, #6B7590); box-shadow: none; }
.fn-m-hero .big { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.fn-m-list { display: flex; flex-direction: column; }
.fn-m-list .item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--fn-line); }
.fn-m-list .item:last-child { border-bottom: 0; }
.fn-qr { background: #fff; padding: 14px; border-radius: 16px; display: inline-block; box-shadow: var(--fn-shadow); }
.fn-qr svg { display: block; width: 220px; height: 220px; }

/* ───────────── 식당 키오스크 ───────────── */
.fn-kiosk { min-height: 100vh; background: radial-gradient(900px 600px at 50% 0%, #1B3690 0%, var(--fn-navy) 60%); color: #fff; display: flex; flex-direction: column; user-select: none; }
.fn-kiosk .k-top { display: flex; align-items: center; padding: 22px 32px; gap: 12px; }
.fn-kiosk .k-top .clock { margin-left: auto; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fn-kiosk .k-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; gap: 18px; }
.fn-kiosk .k-title { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.fn-kiosk .k-sub { font-size: 20px; color: #B7C4E8; }
.fn-kiosk .k-face { width: 340px; height: 340px; border-radius: 50%; position: relative; display: grid; place-items: center; overflow: hidden;
  background: rgba(255, 255, 255, .04); box-shadow: 0 0 0 3px rgba(18, 184, 134, .6), 0 0 60px rgba(18, 184, 134, .25); }
.fn-kiosk .k-face video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.fn-kiosk .k-face .scan { position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--fn-on), transparent); animation: fn-scan 2.2s ease-in-out infinite; }
@keyframes fn-scan { 0% { top: 10%; } 50% { top: 88%; } 100% { top: 10%; } }
.fn-kiosk .k-btn { height: 72px; padding: 0 36px; border-radius: 18px; border: 0; font: inherit; font-size: 22px; font-weight: 800; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.fn-kiosk .k-btn.primary { background: var(--fn-on); border-color: var(--fn-on); }
.fn-kiosk .k-btn.brand { background: var(--fn-brand); border-color: var(--fn-brand); }
.fn-kiosk .k-result { width: min(640px, 92vw); border-radius: 28px; padding: 40px; background: #fff; color: var(--fn-ink); box-shadow: var(--fn-shadow-lg); animation: fn-rise .2s; }
.fn-kiosk .k-result .icon { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 52px; color: #fff; background: var(--fn-on); }
.fn-kiosk .k-result.denied .icon { background: var(--fn-danger); }
.fn-kiosk .k-result.review .icon { background: var(--fn-warn); }
.fn-kiosk .k-result .who { font-size: 36px; font-weight: 800; }
.fn-kiosk .k-result .msg { font-size: 22px; margin-top: 10px; color: var(--fn-ink-2); }
.fn-kiosk .k-foot { display: flex; justify-content: space-between; padding: 16px 32px; font-size: 13px; color: #8FA0CC; }
.fn-kiosk .k-input { height: 64px; font-size: 28px; text-align: center; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; width: min(420px, 90vw); letter-spacing: .08em; outline: none; }
.fn-kiosk .k-input:focus { border-color: var(--fn-on); }
.fn-kiosk .k-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fn-kiosk .k-count { font-size: 64px; font-weight: 800; min-width: 120px; }

/* ───────────── 반응형 ───────────── */
@media (max-width: 1200px) { .fn-grid.c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fn-grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .fn-shell { grid-template-columns: 1fr; }
  .fn-side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .fn-shell.open .fn-side { transform: none; box-shadow: var(--fn-shadow-lg); }
  .fn-shell.open::after { content: ""; position: fixed; inset: 0; background: rgba(11, 21, 48, .4); z-index: 40; }
  .fn-top { padding: 0 16px; }
  .fn-top .menu-btn { display: inline-flex; }
  .fn-content { padding: 16px 16px 40px; }
  .fn-grid.c2, .fn-grid.c3, .fn-grid.w21, .fn-grid.w12 { grid-template-columns: 1fr; }
  .fn-form-grid { grid-template-columns: 1fr; }
  .fn-auth { grid-template-columns: 1fr; }
  .fn-auth .visual { display: none; }
  .hide-sm { display: none !important; }
}
@media (max-width: 560px) { .fn-grid.c4, .fn-grid.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fn-stat .value { font-size: 22px; } .fn-kv { grid-template-columns: 1fr; gap: 2px 0; } .fn-kv dd { margin-bottom: 8px; } }

/* ───────────── 인쇄(정산명세서 PDF) ───────────── */
.print-only { display: none; }
@media print {
  body { background: #fff; }
  .fn-side, .fn-top, .no-print, .fn-toasts { display: none !important; }
  .fn-shell { display: block; }
  .fn-content { padding: 0; max-width: none; }
  .fn-card { box-shadow: none; border-color: #bbb; break-inside: avoid; }
  .print-only { display: block; }
}

/* 비밀번호 칸 눈 아이콘(보기/숨기기) — 모든 사이트 공통 */
.fn-pw { position: relative; display: block; }
.fn-pw > input { width: 100%; padding-right: 44px; }
.fn-pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--fn-ink-3, #8A94A6); cursor: pointer; border-radius: 8px; }
.fn-pw-eye:hover { color: var(--fn-ink, #1A2233); background: rgba(0, 0, 0, .05); }
.fn-pw-eye .slash { display: none; }
.fn-pw-eye.on .slash { display: inline; }
.fn-pw-eye.on { color: var(--fn-brand, #2F5BFF); }

/* 지도 핀(직원 앱 주변 제휴식당) — 외부 그림 없이 CSS 로 그린다 */
.foon-pin-wrap { background: none; border: 0; }
.foon-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--fn-brand, #2F5BFF); transform: rotate(-45deg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35); border: 2px solid #fff; display: grid; place-items: center; }
.foon-pin span { width: 9px; height: 9px; border-radius: 50%; background: #fff; }

/* 직원 앱 메뉴(식단표) 날짜 칩 */
.em-daychips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; }
.em-daychips button { flex: none; width: 52px; padding: 8px 0; border-radius: 12px; border: 1px solid var(--fn-line, #e3e8f0); background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--fn-ink-2, #445); cursor: pointer; }
.em-daychips button b { font-size: 17px; }
.em-daychips button.on { background: var(--fn-brand, #2F5BFF); border-color: var(--fn-brand, #2F5BFF); color: #fff; }
.foon-map-label { background: #fff; border-radius: 8px; padding: 6px 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); font-size: 12.5px; white-space: nowrap; }
.foon-map-label span { color: #667; }
.foon-me { width: 16px; height: 16px; border-radius: 50%; background: #2F5BFF; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(47, 91, 255, .25); }

/* 직원 앱 메뉴·식당 검색 */
.em-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--fn-line, #e3e8f0); border-radius: 12px; padding: 0 12px; margin-bottom: 12px; color: var(--fn-ink-3, #8a94a6); }
.em-search input { flex: 1; border: 0; outline: 0; height: 44px; font-size: 15px; background: transparent; color: var(--fn-ink, #1a2233); min-width: 0; }
.em-search input::-webkit-search-cancel-button { display: none; }
.em-search button { border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; padding: 4px; }
.em-search:focus-within { border-color: var(--fn-brand, #2F5BFF); }
.fn-m-card mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* 얼굴 촬영(FaceCapture) — 입력칸은 숨기지 않고 버튼 위에 투명하게 겹친다(아이폰 Safari 카메라 창 문제) */
.face-cap-btns { display: flex; flex-direction: column; gap: 8px; }
.face-cap-file { position: relative; overflow: hidden; cursor: pointer; }
.face-cap-overlay { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
/* 엑셀 끌어다 놓기 영역(2026-10-23) — 안의 파일 선택 칸(face-cap-overlay)이 영역 전체를 덮는다. 끌어 올리는 동안 .over(foon.js) */
.fn-page-head h1 .title-note { margin-left: 12px; font-size: .55em; font-weight: 700; color: var(--fn-brand, #2f5bff); vertical-align: middle; }
.fee-sec-title { font-weight: 800; font-size: 15px; padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid var(--fn-line); }
.fn-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 120px; padding: 18px; border: 2px dashed var(--fn-line); border-radius: 14px; background: #f7f9fc; color: var(--fn-ink-2); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.fn-drop:hover, .fn-drop.over { border-color: var(--fn-brand, #2f5bff); background: #eef3ff; }
.fn-drop.busy { opacity: .6; pointer-events: none; }
.face-cap-preview { display: flex; justify-content: center; }
.face-cap-preview img { width: 180px; height: 240px; object-fit: cover; border-radius: 12px; border: 1px solid var(--fn-line); background: #eef0f3; }
.face-thumb { width: 36px; height: 48px; border-radius: 6px; object-fit: cover; background: #eef0f3; display: inline-flex; align-items: center; justify-content: center; color: var(--fn-muted); }
.face-big { width: 180px; height: 240px; object-fit: cover; border-radius: 12px; border: 1px solid var(--fn-line); background: #eef0f3; }
.face-member { display: flex; gap: 24px; flex-wrap: wrap; }
.face-member-col { display: flex; flex-direction: column; }
.face-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--fn-muted); }
.face-link { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.face-link .fn-qr { width: 180px; flex: none; }
.face-link > div:last-child { flex: 1; min-width: 220px; }

/* 서버 재연결 안내(ReconnectModal) — 평소 숨김, 상태 class 가 붙으면 가운데 카드로 크게 */
#components-reconnect-modal { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .45); align-items: center; justify-content: center; padding: 16px; }
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected { display: flex; }
#components-reconnect-modal .rc-card { background: var(--fn-surface, #fff); border-radius: 16px; padding: 24px 20px; width: 100%; max-width: 340px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
#components-reconnect-modal .rc-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
#components-reconnect-modal .rc-sub { color: var(--fn-muted); font-size: 14px; margin-bottom: 14px; }
#components-reconnect-modal .rc-show, #components-reconnect-modal .rc-failed, #components-reconnect-modal .rc-rejected { display: none; }
#components-reconnect-modal.components-reconnect-show .rc-show,
#components-reconnect-modal.components-reconnect-failed .rc-failed,
#components-reconnect-modal.components-reconnect-rejected .rc-rejected { display: block; }

/* 얼굴등록 창(biz /faces) — UFaceOK 신규 얼굴등록 창과 같은 구성: 왼쪽 사진 · 오른쪽 방법별 묶음(fieldset) */
.uf-detail { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 12px; }
.uf-detail > *:not(:first-child) { border-left: 1px solid var(--fn-line); padding-left: 16px; }
.uf-face { width: 100%; max-width: 300px; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: #eef1f6; display: grid; place-items: center; border: 1px solid var(--fn-line); }
.uf-face.sm { max-width: 150px; }
.uf-face img { width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; }
.uf-face-none { text-align: center; color: var(--fn-muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.uf-pending { border: 1px solid var(--fn-line); border-radius: 12px; padding: 12px; }
.uf-pending-head { font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #7A5200; }
.uf-form { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.uf-fs { border: 1px solid var(--fn-line); border-radius: 10px; padding: 10px 14px 12px; margin: 0; width: 100%; box-sizing: border-box; }
/* 방문자 직접 등록 — 인쇄용 안내문(화면에서는 숨김, 인쇄할 때는 이것만) */
.qr-poster { display: none; text-align: center; padding: 40px 30px; }
.qr-poster-title { font-size: 44px; font-weight: 800; }
.qr-poster-sub { font-size: 24px; margin-top: 6px; }
.qr-poster-code { width: 340px; margin: 30px auto; }
.qr-poster-code .fn-qr { display: block; box-shadow: none; }
.qr-poster-code .fn-qr svg { width: 100%; height: auto; }
.qr-poster ol { display: inline-block; text-align: left; font-size: 22px; line-height: 1.9; }
.qr-poster-foot { margin-top: 30px; font-size: 15px; color: #555; }
@media print {
  .qr-poster { display: block !important; }
  .fn-content:has(.qr-poster) > :not(.qr-poster), main:has(.qr-poster) > :not(.qr-poster) { display: none !important; }
}
/* 방문자 직접 등록 — QR 카드 · 확인 화면 */
.self-qr { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
/* QR 그림(.fn-qr svg 는 220px 고정)이 칸보다 커서 안내문을 가리던 것 수정(2026-10-12) — 칸 폭에 맞춰 줄인다 */
.self-qr-code { width: 200px; max-width: 100%; flex: none; }
.self-qr-code .fn-qr { display: block; width: 100%; box-sizing: border-box; }
.self-qr-code .fn-qr svg { width: 100%; height: auto; }
.self-qr-info { flex: 1; min-width: 260px; }
.gs-done .gs-title { font-size: 22px; font-weight: 800; margin-top: 8px; }
.gs-done .gs-big { font-size: 30px; font-weight: 800; margin: 10px 0 4px; }
.gs-done .gs-time { font-size: 20px; margin-top: 10px; letter-spacing: 1px; }
.gs-done.ok { border-color: var(--fn-on); } .gs-done.ok > svg, .gs-done.ok .gs-title { color: var(--fn-on); }
.gs-done.wait { border-color: var(--fn-warn, #d97706); } .gs-done.wait > svg, .gs-done.wait .gs-title { color: var(--fn-warn, #d97706); }
.gs-done.pend { border-color: var(--fn-brand); } .gs-done.pend .gs-title { color: var(--fn-brand); }
.gs-done .gs-code { font-size: 84px; font-weight: 800; line-height: 1.05; letter-spacing: 4px; color: var(--fn-brand); }
/* 식당 화면 — 방문자 직접 등록 확인 대기 */
.self-pending { border-color: var(--fn-brand); }
.self-code { display: inline-block; min-width: 46px; text-align: center; font-size: 20px; font-weight: 800; color: var(--fn-brand); background: rgba(0,0,0,.04); border-radius: 8px; padding: 2px 8px; }
.gs-done.no { border-color: var(--fn-danger); } .gs-done.no > svg, .gs-done.no .gs-title { color: var(--fn-danger); }
/* 검색해서 고르는 선택 칸(SearchSelect) */
.ss { position: relative; }
.ss-in { position: relative; display: flex; align-items: center; }
.ss-in > svg { position: absolute; left: 11px; color: var(--fn-muted); pointer-events: none; }
.ss-in .fn-input { width: 100%; padding-left: 32px; padding-right: 32px; }
.ss-x { position: absolute; right: 6px; border: 0; background: transparent; color: var(--fn-muted); cursor: pointer; padding: 4px; display: grid; place-items: center; }
.ss-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; background: var(--fn-surface); border: 1px solid var(--fn-line); border-radius: 10px; box-shadow: var(--fn-shadow); padding: 4px; }
.ss-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; font: inherit; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: inherit; }
.ss-item:hover { background: rgba(0,0,0,.05); }
.ss-item.on { font-weight: 700; color: var(--fn-brand); }
.ss-empty { padding: 10px; font-size: 13px; color: var(--fn-muted); }
/* 인증 기록 — 인증 사진 작은 그림(누르면 크게) */
.log-photo { display: inline-grid; place-items: center; width: 26px; height: 30px; padding: 0; border: 1px solid var(--fn-line); border-radius: 8px; overflow: hidden; background: #eef1f6; cursor: zoom-in; }
.log-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.log-photo { border-radius: 5px; vertical-align: middle; }
.log-photo.none { cursor: default; color: #c3c9d4; border-style: dashed; }
/* 인증 기록 표 — 촘촘한 줄 · 이름 옆 번호 칩 · 결과 배지 · 번호 페이지 */
.log-table td { padding-top: 4px; padding-bottom: 4px; }
.log-chip { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #eef1f6; color: #4a5568; font-size: 12px; font-weight: 500; }
.log-res { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.log-res.ok { background: #dcf5e7; color: #12824a; }
.log-res.wait { background: #fdf0d5; color: #9a6400; }
.log-res.no { background: #fde3e3; color: #c0392b; }
.log-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; }
.log-pager .fn-btn.sm { min-width: 30px; padding: 0 8px; justify-content: center; }
/* 로그인 없이 여는 확인 화면(대행 기업 정산 확인 링크) */
.pub-page { max-width: 720px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 100vh; }
.pub-brand { display: flex; justify-content: center; padding: 8px 0; }
.pub-sec { font-size: 15px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
/* 월 마감 — 대행 기업의 기업 확인 받기 */
.mc-box { border: 1px dashed var(--fn-line); border-radius: 10px; padding: 12px 14px; }
.mc-box .mc-link { display: flex; gap: 6px; align-items: center; }
.mc-box .mc-link input { flex: 1; min-width: 0; }
/* 단말 등록 — 설치 전·후 점검표 */
.dev-check ul { margin: 2px 0 0; padding-left: 20px; line-height: 1.7; }
.dev-check .dev-check-h { margin: 12px 0 2px; font-weight: 700; }
.dev-check code { font-family: var(--fn-mono, ui-monospace, monospace); background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }
/* 방법 3 · PC 카메라 미리보기(거울처럼 보이게 좌우 반전 — 저장되는 사진은 반전하지 않는다) */
.uf-cam { width: 100%; max-width: 320px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background: #111; }
.uf-cam video { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.uf-fs legend { font-weight: 700; padding: 0 6px; font-size: 14px; }
.uf-fs p { margin: 4px 0 8px; }
.uf-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.uf-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c3c9d4; margin-right: 4px; }
.uf-dot.on { background: var(--fn-on, #12B886); }
.uf-danger { color: var(--fn-danger, #D6336C) !important; }
.uf-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.uf-compare .uf-face { max-width: none; }
.uf-qr { width: 230px; margin: 0 auto; }
@media (max-width: 720px) { .uf-detail { grid-template-columns: 1fr; } .uf-detail > *:not(:first-child) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .uf-compare { grid-template-columns: 1fr; } }

/* ── 식단표 음식 칸 · 음식 선택(파트너 메뉴 관리) ── */
.dish-cell { min-height: 96px; padding: 6px; border: 1px solid var(--fn-line); border-radius: 8px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; background: #fff; }
.dish-cell .dish-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; } /* 식단 칸은 음식 한 줄에 하나 */
.dish-cell:hover, .dish-cell:focus { border-color: var(--fn-brand); outline: none; background: var(--fn-brand-soft); }
.dish-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px; border-radius: 999px; font-size: 12px; line-height: 1.6; background: #EEF1F6; color: #344054; border: 1px solid transparent; white-space: nowrap; }
.dish-chip.unreg { background: #fff; border: 1px dashed #98A2B3; color: #667085; }
.dish-chip .x { border: 0; background: none; cursor: pointer; padding: 0 0 0 4px; color: inherit; font-size: 14px; line-height: 1; }
.dish-chip.c-rice { background: #FFF4E5; color: #9A5B00; }
.dish-chip.c-soup { background: #FDECEC; color: #B42318; }
.dish-chip.c-main { background: #EAF1FF; color: #1F4FD1; }
.dish-chip.c-side { background: #EAF7EE; color: #1D7A3E; }
.dish-chip.c-kimchi { background: #FFE9E3; color: #C4320A; }
.dish-chip.c-noodle { background: #F4EDFF; color: #6D33C9; }
.dish-chip.c-dessert { background: #FDEFF6; color: #B0306F; }
.dish-chip.c-drink { background: #E7F7FA; color: #0E7490; }
.dish-chip.c-etc { background: #EEF1F6; color: #475467; }
.dish-picked { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; padding: 8px; border: 1px solid var(--fn-line); border-radius: 10px; background: var(--fn-surface-2); }
.dish-group { margin-bottom: 12px; }
.dish-opt { border: 1px solid var(--fn-line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.dish-opt:hover { border-color: var(--fn-brand); }
.dish-opt.on { background: var(--fn-brand); border-color: var(--fn-brand); color: #fff; }
.dish-quickadd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed var(--fn-line); border-radius: 10px; }

/* ── 상단바: 로그인 제한시간 · 사용설명서 ── */
.login-timer { display: flex; align-items: center; gap: 6px; color: var(--fn-muted); font-size: 13px; white-space: nowrap; }
.login-timer-value { font-family: ui-monospace, Consolas, monospace; font-weight: 700; color: var(--fn-ink); min-width: 3.2em; }
.login-timer-value.ending { color: var(--fn-danger); }
.login-timer.disabled .login-timer-value { color: var(--fn-muted); }
.login-timer-paused { font-size: 12px; font-weight: 700; color: var(--fn-muted); background: var(--fn-surface-2); border-radius: 6px; padding: 1px 6px; }
.login-timer .fn-select { height: 30px; font-size: 13px; padding: 0 8px; width: auto; }
.manual-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--fn-brand-soft); color: var(--fn-brand);
  border: 1px solid rgba(47, 91, 255, .3); font-weight: 700; font-size: 13px; line-height: 1; white-space: nowrap; text-decoration: none !important; }
.manual-btn:hover, .manual-btn:focus-visible { background: var(--fn-brand); color: #fff; border-color: var(--fn-brand); }
/* 상단바가 좁으면 덜 중요한 것부터 숨긴다: 해제 글자 → 날짜·이름 → 시간 선택 */
.fn-top > .small.muted, .fn-top .who .strong, .fn-top .who .small { white-space: nowrap; }
@media (max-width: 1360px) { .login-timer-label span { display: none; } } /* 글자만 숨기고 체크박스는 남긴다(마우스를 올리면 설명) */
@media (max-width: 1100px) { .fn-top > .small.muted, .fn-top .who > .hide-sm { display: none; } }
@media (max-width: 560px) { .login-timer .fn-select { display: none; } .manual-btn { padding: 6px; } .manual-btn span { display: none; } }
/* 사용설명서 */
/* 사용설명서 전용 창(ManualLayout) — 메뉴 없이 설명서만. 왼쪽 차례 + 본문 + 그림 */
.man-shell { min-height: 100vh; background: var(--fn-bg, #f4f5f7); }
.man-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--fn-surface); border-bottom: 1px solid var(--fn-line); }
.man-top-title { font-weight: 800; font-size: 16px; }
.man-top .spacer { flex: 1; }
.man-main { max-width: 1180px; margin: 0 auto; padding: 20px; }
.man { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.man-toc { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow-y: auto; background: var(--fn-surface); border: 1px solid var(--fn-line); border-radius: 12px; padding: 12px; font-size: 14px; }
.man-toc-title { font-weight: 800; margin-bottom: 6px; }
.man-toc a { display: block; padding: 5px 8px; border-radius: 6px; color: inherit; text-decoration: none; font-weight: 600; }
.man-toc a.sub { padding-left: 20px; font-weight: 400; color: var(--fn-muted); font-size: 13px; }
.man-toc a:hover { background: rgba(0,0,0,.05); }
.man-body { background: var(--fn-surface); border: 1px solid var(--fn-line); border-radius: 14px; padding: 28px 34px; line-height: 1.75; font-size: 15px; }
.man-body h1 { font-size: 26px; margin: 0 0 6px; }
.man-lead { color: var(--fn-muted); margin: 0 0 8px; }
.man-body section { padding-top: 14px; scroll-margin-top: 70px; }
.man-body h2 { font-size: 20px; margin: 22px 0 10px; padding-top: 18px; border-top: 2px solid var(--fn-line); }
.man-body h3 { font-size: 16px; margin: 20px 0 6px; scroll-margin-top: 70px; }
.man-body ul, .man-body ol { margin: 6px 0 10px; padding-left: 22px; }
.man-body li { margin: 3px 0; }
.man-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 14px; }
.man-table th, .man-table td { border: 1px solid var(--fn-line); padding: 7px 10px; text-align: left; vertical-align: top; }
.man-table th { background: var(--fn-surface-2); font-weight: 700; white-space: nowrap; }
.man-fig { margin: 14px 0 18px; }
.man-fig img { display: block; width: 100%; max-width: 800px; border: 1px solid var(--fn-line); border-radius: 10px; box-shadow: var(--fn-shadow); }
.man-fig.narrow img { max-width: 260px; }
.man-fig figcaption { margin-top: 6px; font-size: 13px; color: var(--fn-muted); }
.man-box { background: var(--fn-brand-soft); border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.man-warn { background: #fff7e6; border: 1px solid #f3d38a; border-radius: 10px; padding: 12px 16px; margin: 12px 0; }
.man-two { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; align-items: start; }
@media (max-width: 860px) { .man { grid-template-columns: 1fr; } .man-toc { position: static; max-height: none; } .man-body { padding: 18px; } .man-two { grid-template-columns: 1fr; } .man-top-hint { display: none; } }
@media print { .man-shell { background: #fff; } .man { display: block; } .man-main { padding: 0; max-width: none; } .man-body { border: 0; padding: 0; } .man-fig, .man-table, .man-box, .man-warn { break-inside: avoid; } .man-fig img { box-shadow: none; max-width: 620px; } }
.manual-sec { margin-bottom: 18px; }
.manual-sec h3 { font-size: 15px; margin: 0 0 8px; }
.manual-item { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--fn-line); }
.manual-item a { font-weight: 700; }
@media (max-width: 560px) { .manual-item { grid-template-columns: 1fr; gap: 2px; } }
.app-dl-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--fn-brand-soft); color: var(--fn-brand); }
.face-cap-guide { text-align: center; }
.face-cap-guide img { width: 180px; max-width: 60%; opacity: .9; }

/* ── 통계 가로 막대(StatBars) ── */
.stat-bars { display: flex; flex-direction: column; gap: 9px; }
.stat-bar-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.stat-bar-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.stat-bar-track { position: relative; height: 12px; border-radius: 6px; background: #EEF1F6; }
.stat-bar-fill { height: 100%; border-radius: 6px; min-width: 2px; }
.stat-bar-base { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--fn-ink); opacity: .55; }
.stat-bar-val { white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 86px; text-align: right; }
.wx { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* 표의 동작 버튼: 세로 가운데 맞춤 + 자리 고정(줄마다 같은 자리) */
.fn-table td .fn-btn { vertical-align: middle; }
.btn-slots { display: inline-grid; grid-template-columns: auto 84px 56px; gap: 6px; align-items: center; }
.btn-slots .fn-btn { width: 100%; padding: 0 10px; white-space: nowrap; }
/* 표의 동작 버튼 간격을 같게: 마크업의 줄바꿈(공백) 유무에 따라 버튼 사이가 붙거나 벌어지던 것을 없앤다.
   버튼이 둘 이상 있는 칸은 공백 폭을 0 에 가깝게 줄이고(글자는 그대로 보인다) 버튼 사이를 6px 로 고정한다. */
.fn-table td:has(> .fn-btn + .fn-btn), .fn-table td:has(> .fn-btn + label.fn-btn) { word-spacing: -0.26em; }
.fn-table td .fn-btn { word-spacing: normal; }
.fn-table td > .fn-btn + .fn-btn { margin-left: 6px; }
/* 얼굴 사진 유무 표시: 등록됨 = 파란 웃는 얼굴 · 없음 = 빨간 우는 얼굴 */
.face-ind { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.face-ind.ok { background: var(--fn-brand-soft); color: var(--fn-brand); }
.face-ind.none { background: var(--fn-danger-soft); color: var(--fn-danger); }

/* 시간 입력(TimeInput) — 시:분 칸 + 오전/오후 선택 */
.fn-time { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.fn-time .fn-time-hm { width: 76px; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; }
.fn-time .fn-time-ap { width: 78px; min-width: 0; }

/* 실시간 화면 — 방금 들어온 줄을 잠깐 강조한다(오늘 식수) */
@keyframes fn-row-new { 0% { background: rgba(22, 163, 74, .28); } 100% { background: transparent; } }
.fn-table tr.row-new td { animation: fn-row-new 4s ease-out 1; }

/* 메뉴 관리(운영센터) — 묶음 구분 줄 · 끌 수 있는 줄 */
.menu-admin tr.menu-admin-group td { background: var(--fn-bg, #F4F6FA); font-size: 12px; font-weight: 700; color: var(--fn-muted); padding: 6px 14px; }
.menu-admin tr[draggable="true"] { cursor: grab; }
.menu-admin tr[draggable="true"]:active { cursor: grabbing; }
.menu-admin tr.dragging td { background: rgba(47, 91, 255, .10); }
.menu-admin .menu-admin-grip { color: #B6BFD2; display: inline-flex; }
.menu-admin input[type="checkbox"] { width: 16px; height: 16px; }
.fn-time .fn-time-hm.invalid { border-color: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .15); }

/* 실시간 식수 — 방금 인증(누가 먹었는지 크게) */
.now-card { overflow: hidden; }
/* 사진 두 장(등록·인증)을 나란히, 되도록 크게: 사진 영역이 카드의 절반 이상을 차지한다 */
.now-wrap { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 18px 22px; }
.now-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0; grid-row: 1 / span 2; }
.now-photos .now-photo + .now-photo { border-left: 0; border-radius: 0 12px 12px 0; }
.now-photos .now-photo:first-child { border-radius: 12px 0 0 12px; }
.now-photo { border: 1px solid var(--fn-line); border-radius: 12px; overflow: hidden; background: var(--fn-surface-2, #F6F7FA); }
.now-photo .cap { text-align: center; font-size: 14px; font-weight: 700; padding: 6px 0; border-bottom: 1px solid var(--fn-line); background: var(--fn-surface); }
.now-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.now-photo .none { aspect-ratio: 3 / 4; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--fn-muted, #8A93A6); font-size: 12px; text-align: center; padding: 0 12px; }
.now-photo .none svg { width: 40px; height: 40px; opacity: .5; }
.now-main .who { font-size: 24px; font-weight: 600; line-height: 1.35; margin-bottom: 12px; }
.now-main .who b { font-size: 30px; font-weight: 800; }
.now-main dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 14px; margin: 0; font-size: 16px; }
.now-main dt { color: var(--fn-muted, #8A93A6); font-weight: 600; }
.now-main dd { margin: 0; font-weight: 600; }
.now-count { text-align: center; border-top: 1px solid var(--fn-line); padding-top: 14px; }
.now-count .cap { font-size: 14px; font-weight: 700; color: var(--fn-muted, #8A93A6); }
.now-count .cnt { font-size: 52px; font-weight: 800; line-height: 1.2; white-space: nowrap; }
.now-count .cnt span { color: var(--fn-muted, #8A93A6); font-weight: 400; }
@media (max-width: 1100px) { .now-wrap { grid-template-columns: 1fr; } .now-photos { grid-row: auto; } }
@media (max-width: 640px) { .now-main .who { font-size: 20px; } .now-main .who b { font-size: 24px; } }

/* 실시간 식수 — 식수인원 진행 현황(등록 인원 중 몇 명이 먹었는지) */
.prog-card { padding: 18px 22px; }
.prog-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.prog-title { font-size: 18px; font-weight: 600; }
.prog-title b { font-size: 24px; font-weight: 800; }
.prog-big { display: flex; align-items: baseline; gap: 8px; }
.prog-big b { font-size: 64px; font-weight: 800; line-height: 1; color: var(--fn-brand, #2F5BFF); }
.prog-big span { font-size: 22px; font-weight: 700; }
.prog-big em { font-style: normal; font-size: 22px; font-weight: 800; color: var(--fn-muted, #8A93A6); margin-left: 6px; }
.prog-rest { font-size: 15px; color: var(--fn-muted, #8A93A6); margin-left: auto; }
.prog-rest b { color: inherit; font-weight: 800; }
.prog-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.prog-state { font-size: 14px; font-weight: 800; border-radius: 999px; padding: 4px 12px; background: var(--fn-surface-2); color: var(--fn-muted); }
.prog-state.on { background: var(--fn-brand-soft); color: var(--fn-brand); }
.prog-state.next { background: var(--fn-info-soft); color: var(--fn-info); }
.prog-meal { font-size: 22px; font-weight: 800; }
.prog-time { font-size: 16px; color: var(--fn-muted); font-weight: 600; }
.prog-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.prog-stat { border: 1px solid var(--fn-line); border-radius: var(--fn-radius); padding: 10px 14px; }
.prog-stat label { display: block; font-size: 13px; color: var(--fn-muted); font-weight: 600; }
.prog-stat div { font-size: 16px; font-weight: 700; margin-top: 2px; }
.prog-stat b { font-size: 28px; font-weight: 800; }
.prog-stat.main { border-color: var(--fn-brand); }
.prog-stat.main b { font-size: 44px; color: var(--fn-brand); line-height: 1.1; }
.prog-stat em { font-style: normal; font-size: 18px; font-weight: 800; color: var(--fn-muted); margin-left: 6px; }
.prog-stat small { display: block; font-size: 12px; color: var(--fn-muted); margin-top: 2px; }
.prog-stat small.on { color: var(--fn-brand); font-weight: 700; }
.prog-stat.warn { border-color: var(--fn-warn); }
.prog-stats.sm .prog-stat b { font-size: 24px; }
.prog-stats.sm .prog-stat.main b { font-size: 30px; }
.plan-kind-row td { background: var(--fn-surface-2); font-weight: 800; }
.prog-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.prog-trio .trio { border: 1px solid var(--fn-line); border-radius: var(--fn-radius); padding: 12px 16px; border-top-width: 4px; }
.prog-trio .trio label { display: block; font-size: 15px; font-weight: 700; color: var(--fn-ink-2); }
.prog-trio .trio div { font-size: 20px; font-weight: 700; margin-top: 2px; }
.prog-trio .trio b { font-size: 52px; font-weight: 800; line-height: 1.1; }
.prog-trio .trio em { font-style: normal; font-size: 20px; font-weight: 800; color: var(--fn-muted); margin-left: 6px; }
.prog-trio .trio small { display: block; font-size: 13px; color: var(--fn-muted); margin-top: 2px; }
.prog-trio .total { border-top-color: var(--fn-ink-2); }
.prog-trio .done { border-top-color: var(--fn-brand); }
.prog-trio .done b { color: var(--fn-brand); }
.prog-trio .left { border-top-color: var(--fn-warn); }
@media (max-width: 760px) { .prog-trio { grid-template-columns: 1fr; } .prog-trio .trio b { font-size: 40px; } }
.fn-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.fn-pager .fn-btn { min-width: 34px; justify-content: center; }
.fn-pager-gap { padding: 0 4px; color: var(--fn-muted); }
/* 식당 태블릿(2026-10-24) */
.tab-shell { min-height: 100vh; background: var(--fn-bg); }
.tab-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 20px; background: var(--fn-navy, #0B1530); color: #fff; }
.tab-brand { display: flex; align-items: center; }
.tab-org { display: flex; flex-direction: column; line-height: 1.25; }
.tab-org b { font-size: 15px; } .tab-org span { font-size: 12px; opacity: .7; }
.tab-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 8px; }
.tab-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; color: #cfd6e6; font-weight: 700; font-size: 15px; text-decoration: none; }
.tab-nav a.active, .tab-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.tab-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tab-clock { font-size: 15px; opacity: .85; }
.tab-content { max-width: 1400px; margin: 0 auto; }
.tab-home { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.tab-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; border-radius: 18px; background: var(--fn-surface); border: 1px solid var(--fn-line); box-shadow: var(--fn-shadow); color: var(--fn-ink); text-decoration: none; text-align: center; padding: 20px; }
.tab-tile:hover { border-color: var(--fn-brand); }
.tab-tile svg { color: var(--fn-brand); }
.tab-tile b { font-size: 24px; font-weight: 800; }
.tab-tile span { color: var(--fn-muted); font-size: 15px; }
.tab-pin-wrap { display: flex; justify-content: center; padding-top: 24px; }
.pin-pad { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 320px; max-width: 100%; margin: 0 auto; }
.pin-title { font-size: 18px; font-weight: 800; }
.pin-dots { display: flex; gap: 10px; margin: 6px 0; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--fn-line-strong, #c5cbd6); }
.pin-dots i.on { background: var(--fn-brand); border-color: var(--fn-brand); }
.pin-error { color: var(--fn-danger); font-size: 14px; font-weight: 700; text-align: center; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.pin-keys button { height: 60px; border-radius: 12px; border: 1px solid var(--fn-line); background: var(--fn-surface); font-size: 22px; font-weight: 800; color: var(--fn-ink); cursor: pointer; }
.pin-keys button.ok { background: var(--fn-brand); color: #fff; border-color: var(--fn-brand); font-size: 18px; }
.pin-keys button.del { font-size: 16px; color: var(--fn-muted); }
.pin-keys button:disabled { opacity: .45; cursor: default; }
@media (max-width: 760px) { .tab-home { grid-template-columns: 1fr; } .tab-tile { min-height: 140px; } }
/* 왼쪽 기업 목록(2026-10-25) */
.co-split { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.co-list { border: 1px solid var(--fn-line); border-radius: var(--fn-radius); background: var(--fn-surface); overflow: hidden; position: sticky; top: 72px; }
.co-head { padding: 10px; border-bottom: 1px solid var(--fn-line); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.co-head .fn-input { width: 100%; }
.co-items { max-height: 60vh; overflow-y: auto; }
.co-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--fn-line); background: transparent; text-align: left; cursor: pointer; color: var(--fn-ink); font: inherit; }
.co-item:hover { background: var(--fn-surface-2); }
.co-item.active { background: var(--fn-brand-soft); box-shadow: inset 3px 0 0 var(--fn-brand); }
.co-name { font-weight: 700; }
.co-sub { font-size: 12px; color: var(--fn-muted); }
.co-main { min-width: 0; }
@media (max-width: 760px) { .co-split { grid-template-columns: 1fr; } .co-list { position: static; } .co-items { max-height: 240px; } }
.prog-bar { height: 14px; border-radius: 999px; background: var(--fn-line, #E5E8EF); overflow: hidden; margin-top: 12px; }
.prog-bar i { display: block; height: 100%; border-radius: 999px; background: var(--fn-brand, #2F5BFF); transition: width .4s ease; }
.prog-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prog-kinds span { border: 1px solid var(--fn-line, #E5E8EF); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.prog-kinds span.on { border-color: var(--fn-brand, #2F5BFF); font-weight: 700; }
.prog-kinds small { color: var(--fn-muted, #8A93A6); }
@media (max-width: 640px) { .prog-big b { font-size: 48px; } .prog-rest { margin-left: 0; } }
/* 인증 사진은 단말이 찍은 원본 비율이 달라도 잘리지 않게 전체를 보여 준다 */
.now-photos .now-photo + .now-photo img { object-fit: contain; background: #0B1530; }
/* 방금 인증 — 거절된 인증(누구인지와 사유를 크게) */
.now-card.denied { border-color: #F3B8BA; box-shadow: 0 0 0 2px var(--fn-danger-soft, #FDECEC) inset; }
.now-main .why { display: flex; align-items: flex-start; gap: 8px; font-size: 20px; font-weight: 700; color: var(--fn-danger, #D92D20); background: var(--fn-danger-soft, #FDECEC); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.now-main .why svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }

/* 식수 플랜 배정 — 왼쪽 플랜 목록, 오른쪽 미적용/적용 두 목록 사이를 옮긴다 */
.plan-assign { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
.plan-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--fn-line); background: none; cursor: pointer; font: inherit; color: inherit; }
.plan-item:last-child { border-bottom: 0; }
.plan-item:hover { background: var(--fn-surface-2, #F6F7FA); }
.plan-item.on { background: #EEF3FF; box-shadow: inset 3px 0 0 var(--fn-brand, #2F5BFF); }
.plan-item .nm { font-weight: 700; }
.plan-item .sub { font-size: 12px; color: var(--fn-muted, #8A93A6); }
.plan-dual { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; }
.plan-box { max-height: 460px; overflow: auto; }
.plan-row { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-bottom: 1px solid var(--fn-line); cursor: pointer; }
.plan-row:hover { background: var(--fn-surface-2, #F6F7FA); }
.plan-row.all { position: sticky; top: 0; background: var(--fn-surface, #fff); font-size: 13px; color: var(--fn-muted, #8A93A6); z-index: 1; }
.plan-move { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.plan-move .fn-btn { white-space: nowrap; }
@media (max-width: 1000px) { .plan-assign { grid-template-columns: 1fr; } .plan-dual { grid-template-columns: 1fr; } .plan-move { flex-direction: row; } }

/* 선불식수 설정 안내(단계별 설명 + 화면 예시 그림) */
.guide { padding: 0; }
.guide > summary { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; cursor: pointer; list-style: none; }
.guide > summary::-webkit-details-marker { display: none; }
.guide > summary::after { content: "펼치기"; margin-left: auto; font-size: 12px; color: var(--fn-brand, #2F5BFF); font-weight: 700; }
.guide[open] > summary::after { content: "접기"; }
.guide > summary svg { width: 20px; height: 20px; color: var(--fn-brand, #2F5BFF); }
.guide-body { padding: 4px 22px 20px; border-top: 1px solid var(--fn-line); }
.guide-lead { margin: 14px 0 6px; line-height: 1.7; }
.guide-steps { list-style: none; margin: 0; padding: 0; }
.guide-steps > li { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: center; padding: 18px 0; border-bottom: 1px dashed var(--fn-line); }
.guide-steps h4 { margin: 0 0 6px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.guide-steps .no { display: inline-grid; place-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--fn-brand, #2F5BFF); color: #fff; font-size: 15px; font-weight: 800; flex: none; }
.guide-steps .must { font-size: 12px; font-weight: 700; color: var(--fn-danger, #E03E45); background: var(--fn-danger-soft, #FDECEC); border-radius: 999px; padding: 2px 10px; }
.guide-steps p { margin: 0 0 6px; }
.guide-steps ul, .guide-faq ul { margin: 0; padding-left: 20px; line-height: 1.75; }
.guide-faq { margin-top: 16px; background: var(--fn-surface-2, #F6F7FA); border-radius: 12px; padding: 14px 18px; }
.guide-faq h4 { margin: 0 0 6px; font-size: 15px; }
/* 화면 예시 그림 */
.guide .mock { border: 1px solid var(--fn-line); border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(16, 24, 40, .08); padding: 14px; font-size: 12px; display: grid; gap: 8px; }
.guide .m-title { font-weight: 800; font-size: 13px; }
.guide .m-field { display: grid; gap: 3px; } .guide .m-field span { color: var(--fn-muted, #8A93A6); font-size: 11px; }
.guide .m-field i, .guide .m-row i { font-style: normal; border: 1px solid var(--fn-line); border-radius: 7px; padding: 5px 8px; background: #fff; }
.guide .m-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 6px; align-items: center; } .guide .m-row em { font-style: normal; font-weight: 700; }
.guide .days { display: flex; gap: 2px; } .guide .days b, .guide .days u { text-decoration: none; width: 18px; height: 18px; border-radius: 5px; display: grid; place-content: center; font-size: 10px; }
.guide .days b { background: var(--fn-brand, #2F5BFF); color: #fff; } .guide .days u { background: #EEF0F4; color: #9AA3B5; }
.guide .m-btn { justify-self: end; background: var(--fn-brand, #2F5BFF); color: #fff; border-radius: 7px; padding: 5px 12px; font-weight: 700; white-space: nowrap; }
.guide .m-btn.ghost { background: #fff; color: var(--fn-danger, #E03E45); border: 1px solid #F3B8BA; }
.guide .m-note { color: var(--fn-muted, #8A93A6); font-size: 11px; }
.guide .m-cols { display: grid; grid-template-columns: 70px 1fr auto 1fr; gap: 8px; align-items: start; }
.guide .m-cap { font-weight: 800; font-size: 11px; margin-bottom: 4px; }
.guide .m-pick { border-radius: 6px; padding: 4px 6px; } .guide .m-pick.on { background: #EEF3FF; box-shadow: inset 2px 0 0 var(--fn-brand, #2F5BFF); font-weight: 700; }
.guide .m-chk { padding: 3px 0 3px 18px; position: relative; white-space: nowrap; }
.guide .m-chk::before { content: ""; position: absolute; left: 0; top: 5px; width: 11px; height: 11px; border: 1px solid #B8C0D0; border-radius: 3px; background: #fff; }
.guide .m-chk.on::before { background: var(--fn-brand, #2F5BFF); border-color: var(--fn-brand, #2F5BFF); }
.guide .m-mid { display: grid; gap: 6px; align-self: center; } .guide .m-mid .m-btn { justify-self: stretch; text-align: center; padding: 4px 8px; }
.guide .m-face { justify-self: center; width: 64px; height: 80px; border-radius: 10px; background: #E9EEF8; display: grid; place-content: center; }
.guide .m-face span { width: 30px; height: 30px; border-radius: 50%; background: #B9C6E4; box-shadow: 0 26px 0 6px #B9C6E4; margin-top: -14px; }
.guide .m-face.sm { width: 44px; height: 56px; flex: none; } .guide .m-face.sm span { width: 20px; height: 20px; box-shadow: 0 18px 0 4px #B9C6E4; margin-top: -10px; }
.guide .m-line em { font-style: normal; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-right: 4px; }
.guide .m-line em.ok { background: #E3F6EC; color: #1E8E57; } .guide .m-line em.wait { background: #FFF2DC; color: #B26A00; } .guide .m-line em.none { background: #EEF0F4; color: #7B8599; }
.guide .m-big { font-size: 13px; } .guide .m-big strong { font-size: 24px; color: var(--fn-brand, #2F5BFF); }
.guide .m-bar { height: 8px; border-radius: 999px; background: #E5E8EF; overflow: hidden; } .guide .m-bar span { display: block; height: 100%; background: var(--fn-brand, #2F5BFF); border-radius: 999px; }
.guide .m-now { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--fn-line); padding-top: 8px; } .guide .m-now small { color: var(--fn-muted, #8A93A6); }
@media (max-width: 900px) { .guide-steps > li { grid-template-columns: 1fr; } .guide .pic { max-width: 380px; } }
/* 플랜 배정 — 목록별 찾기와 끌어다 놓기 */
.plan-find { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--fn-line); color: var(--fn-muted, #8A93A6); }
.plan-find .fn-input { flex: 1; min-width: 0; height: 34px; }
.plan-row[draggable=true] { cursor: grab; user-select: none; }
.plan-row[draggable=true]:active { cursor: grabbing; }
.plan-box { min-height: 120px; }
.plan-box.drop-on { background: #EEF3FF; outline: 2px dashed var(--fn-brand, #2F5BFF); outline-offset: -4px; }
/* 플랜 배정 — 참고 화면 구성: 두 목록 틀(제목·검색·전체 선택/선택 해제) + 가운데 화살표 */
.plan-pane { border: 1px solid var(--fn-line); border-radius: 12px; overflow: hidden; background: var(--fn-surface, #fff); display: flex; flex-direction: column; min-width: 0; }
.plan-pane .pane-head { padding: 12px 14px; font-weight: 800; background: var(--fn-surface-2, #F6F7FA); border-bottom: 1px solid var(--fn-line); }
.plan-pane .pane-tools { display: grid; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--fn-line); }
.plan-pane .pane-tools .plan-find { padding: 0; border: 0; position: relative; }
.plan-pane .pane-tools .plan-find svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
.plan-pane .pane-tools .plan-find .fn-input { padding-left: 30px; height: 38px; }
.plan-pane .pane-tools .fn-select { width: 100%; }
.plan-pane .plan-box { flex: 1; max-height: 520px; overflow: auto; }
.plan-pane .plan-row b { font-weight: 700; }
.plan-no { font-family: var(--fn-mono, ui-monospace, Consolas, monospace); font-size: 12px; background: var(--fn-surface-2, #F1F3F7); border-radius: 6px; padding: 2px 8px; color: var(--fn-muted, #5B6478); }
.plan-tag { font-size: 12px; background: #FFF2DC; color: #8A5A00; border-radius: 999px; padding: 1px 8px; }
.plan-move .fn-btn { width: 40px; height: 40px; padding: 0; display: inline-grid; place-content: center; border-radius: 10px; }
.plan-move .fn-btn:not(:disabled) { border-color: var(--fn-brand, #2F5BFF); color: var(--fn-brand, #2F5BFF); }
