/* ==========================================
   Setla User — Mobile-First CSS
   색상: #191F28(블랙), #C0C5CE(실버), #F2F4F6(배경)
   폰트: Noto Sans KR
   ========================================== */

:root {
  --brand-black: #191F28;
  --brand-dark: #2D3748;
  --brand-silver: #C0C5CE;
  --brand-surface: #F2F4F6;
  --brand-border: #E5E7EB;
  --brand-white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #3B82F6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--brand-surface);
  color: var(--brand-black);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  background: var(--brand-white);
  position: relative;
}

/* ── Top Header ── */
.top-bar {
  /* 아이폰 노치 여백은 viewport-fit=cover 인 화면(라운지)에서만 값이 생긴다 — 나머지는 0 */
  min-height: calc(56px + env(safe-area-inset-top, 0px));
  background: var(--brand-black);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: env(safe-area-inset-top, 0px) 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-bar-logo {
  font-size: 0.9rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}
.top-bar-logo span {
  font-weight: 700;
  font-size: 0.6rem;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--brand-silver);
  margin-left: 2px;
  padding: 1px 5px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 5px;
}
.top-bar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.top-bar-user strong {
  color: #fff;
  font-weight: 700;
}
/* 이름 아래 지사 두 줄 — RIDE 헤더와 같은 배치 (2026-09-29). 긴 이름·지사명은 말줄임 */
.top-bar-who {
  min-width: 0;
  max-width: 128px;
  text-align: right;
  line-height: 1.3;
}
.top-bar-name {
  font-size: 0.84rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-bar-branch {
  font-size: 0.66rem;
  color: var(--brand-silver);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-bar-branch-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--brand-border);
  flex-shrink: 0;
}

/* 소속 전환 토글 — 겸업 라이더(배민 A지사 / 쿠팡 B지사)만 노출. RIDE 헤더 토글과 같은 모양 */
.scope-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
  flex: 0 0 auto;
}
.sc-btn {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 3px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.sc-btn.active { background: #fff; color: var(--brand-black); }
.sc-btn:active:not(:disabled) { transform: scale(0.94); }
.sc-btn:disabled { opacity: 0.5; cursor: wait; }

/* ── Page Content ── */
.page-content {
  flex: 1;
  padding: 16px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); /* 떠 있는 탭바(바닥 14 + 높이 60) 아래로 내용이 가리지 않게 */
}

.page-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-black);
  margin-bottom: 4px;
}
.page-subtitle {
  font-size: 0.78rem;
  color: var(--brand-silver);
  margin-bottom: 16px;
}

/* ── Cards ── */
.card {
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-silver);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

/* ── Stat Cards (가로 스크롤) ── */
.stat-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.stat-row::-webkit-scrollbar { display: none; }

.stat-card {
  flex: 0 0 auto;
  min-width: 130px;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 14px;
}
.stat-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-silver);
  margin-bottom: 6px;
}
.stat-card-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-black);
}
.stat-card-sub {
  font-size: 0.7rem;
  color: var(--brand-silver);
  margin-top: 2px;
}

/* ── 정산 요약 카드 (메인) ── */
.settlement-hero {
  background: var(--brand-black);
  border-radius: 14px;
  padding: 20px;
  color: #fff;
  margin-bottom: 16px;
}
.settlement-hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-silver);
  margin-bottom: 4px;
}
.settlement-hero-amount {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.settlement-hero-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.settlement-hero-sub {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.settlement-hero-sub-item {
  flex: 1;
}
.settlement-hero-sub-label {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 2px;
}
.settlement-hero-sub-value {
  font-size: 0.92rem;
  font-weight: 700;
}

/* ── 홈 금액 카드 + 입금 보류 (2026-09-29 개편 2단계) ──
   금액이 언제나 맨 위. 입금 보류는 "위 금액이 안 들어온다"는 뜻이라 금액 카드 아래에 붙인다 */
.pay-card {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.pay-card .settlement-hero {
  margin-bottom: 0;
  border-radius: 0;
}
.pay-hold {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px 12px 20px;
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  border-top: none;
  border-radius: 0 0 14px 14px;
  text-decoration: none;
  color: #E11D48;
}
.pay-hold .icon { flex-shrink: 0; margin-top: 1px; }
.pay-hold-body { min-width: 0; }
.pay-hold-title { display: block; font-size: 0.82rem; font-weight: 800; color: #E11D48; }
.pay-hold-sub { display: block; font-size: 0.74rem; color: #9F1239; margin-top: 2px; }

/* ── 홈 안내 (분할 지급 · 공지) — 문구는 그대로, 바탕색 없이 같은 모양. 색은 그림 칸에만 ── */
.home-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.home-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--brand-black);
}
.home-note:active { background: var(--brand-surface); }
.home-note-one { align-items: center; }
.home-note-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.home-note-icon.tone-info { background: #EFF6FF; color: var(--info); }
.home-note-icon.tone-warning { background: #FFFBEB; color: #B45309; }
.home-note-body { min-width: 0; }
.home-note-title { display: block; font-size: 0.8rem; font-weight: 700; line-height: 1.45; }
.home-note-sub { display: block; font-size: 0.72rem; color: #6B7280; margin-top: 2px; line-height: 1.5; }
.home-note-one .home-note-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 카드 머리 — 제목 + 오른쪽 작은 링크 */
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px 0;
}
.card-more {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6B7280;
  text-decoration: none;
}

/* ── Quick Menu Grid ── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
/* 칸 수에 맞춰 너비를 나눈다 (선정산·내 배달은 조건부라 2~4칸) */
.quick-grid.quick-cols-1 { grid-template-columns: repeat(1, 1fr); }
.quick-grid.quick-cols-2 { grid-template-columns: repeat(2, 1fr); }
.quick-grid.quick-cols-3 { grid-template-columns: repeat(3, 1fr); }
.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px;
  background: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--brand-black);
  transition: background 0.15s;
}
.quick-item:active { background: var(--brand-surface); }
.quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.quick-icon.icon-blue { background: #EFF6FF; color: var(--info); }
.quick-icon.icon-green { background: #ECFDF5; color: var(--success); }
.quick-icon.icon-yellow { background: #FFFBEB; color: var(--warning); }
.quick-icon.icon-gray { background: var(--brand-surface); color: #6B7280; }
.quick-icon.icon-orange { background: #FFF7ED; color: #EA580C; }
.quick-icon .icon { width: 20px; height: 20px; }
.quick-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6B7280;
}

/* ── 리스트 아이템 ── */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--brand-surface);
}
.list-item:last-child { border-bottom: none; }
.list-item-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.list-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-black);
}
.list-item-sub {
  font-size: 0.72rem;
  color: var(--brand-silver);
}
.list-item-right {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-black);
  text-align: right;
}
/* 더한 돈은 초록 — 펼친 내역·홈 실적 카드·정산서 PDF 와 같은 색 (종전 파랑, 2026-09-30) */
.list-item-right.positive { color: var(--success); }
.list-item-right.negative { color: var(--danger); }

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
}
.badge-loc { background: var(--brand-surface); color: var(--brand-black); }
.badge-plat { background: #EFF6FF; color: var(--info); }
/* 플랫폼별 색 분리 (2026-09-01) — ui-common.js 가 배지 텍스트(BAEMIN/COUPANG)로 자동 태깅.
   기본 .badge-plat(연파랑)은 태깅 전·미상 플랫폼 폴백 */
.badge-plat-bm { background: #E7F8F7; color: #17A39E; }   /* BAEMIN 민트 (#2AC1BC 계열, 명도 보정) */
.badge-plat-cp { background: #FFF3EE; color: #E94B22; }   /* COUPANG 레드-오렌지 (브랜드 팔레트) */

/* ── Bottom Navigation — 떠 있는 탭바 (2026-09-29) ──
   RIDE·OPS 탭바와 같은 치수: 좌우 14 · 바닥 14 · 높이 60 · 둥글기 20 · 눌린 탭은 연한 바탕.
   어두운 화면(라운지)은 그 화면이 색만 덮어쓴다 — 치수는 여기 한 곳 */
.bottom-nav {
  position: fixed;
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 452px;
  height: 60px;
  padding: 6px;
  gap: 2px;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(25,31,40,0.08);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(25,31,40,0.18), 0 4px 12px rgba(25,31,40,0.08);
  display: flex;
  z-index: 50;
}
.nav-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 14px;
  text-decoration: none;
  color: #8B93A1;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:active { transform: scale(0.92); }
.nav-item.active {
  color: var(--brand-black);
  background: rgba(25,31,40,0.07);
}
.nav-item:focus-visible { outline: 2px solid var(--brand-black); outline-offset: -3px; }
.nav-icon {
  display: block;
  width: 22px;
  height: 22px;
  font-size: 1.2rem;
  line-height: 1;
}
@media (prefers-reduced-motion: reduce) {
  .nav-item { transition: none; }
  .nav-item:active { transform: none; }
}

/* ── 유틸리티 ── */
.text-muted { color: var(--brand-silver); }
.text-right { text-align: right; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

.amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--brand-silver);
}
.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.4;
}
.empty-state-text {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Form ── */
.form-row {
  margin-bottom: 14px;
}
.form-row:last-child { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-silver);
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--brand-border);
  border-radius: 8px;
  background: #F8F9FA;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-input:focus {
  border-color: var(--brand-black);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(25,31,40,0.06);
}
.btn-save {
  width: 100%;
  padding: 14px;
  background: var(--brand-black);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 16px;
}
.btn-save:active { background: var(--brand-dark); transform: scale(0.98); }
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 0.82rem;
  color: #6B7280;
  cursor: pointer;
  border-bottom: 1px solid var(--brand-surface);
}
.check-row:last-child { border-bottom: none; }
.check-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--brand-black);
}

/* ── Accordion ── */
.accordion-item {
  border-bottom: 1px solid var(--brand-surface);
}
.accordion-item:last-child { border-bottom: none; }
.accordion-trigger {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  background: var(--brand-surface);
  border-radius: 0 0 8px 8px;
}
.accordion-item.open .accordion-body {
  /* 항목 수 상한 아님 — 전환 애니메이션용 여유값. 300px 시절 추가지급 8개 초과분이 잘리던 버그 (2026-07-17) */
  max-height: 2000px;
}
.accordion-item.open .acc-hint {
  opacity: 0;
}
.acc-hint {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--info);
  margin-left: 6px;
  transition: opacity 0.2s;
}
.acc-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 0.75rem;
}
.acc-row:first-child { padding-top: 10px; }
.acc-row:last-child { padding-bottom: 10px; }
.acc-row-label {
  color: #6B7280;
  font-weight: 500;
}
.acc-row-value {
  color: var(--success);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.top-bar-logo { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.top-bar-logo img { display: block; width: auto; height: 14px; }

/* ══════════ 공통 부품 (2026-09-29 개편 3단계) ══════════
   화면마다 인라인으로 적던 모양을 한 곳으로. 새 화면은 여기 부품을 먼저 쓴다 */

/* 선 그림을 글자 옆·제목 옆에 놓을 때 */
.icon-inline { display: inline-block; vertical-align: -2px; }
.title-with-icon { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 0.95rem; margin-bottom: 4px; }
.text-with-icon { display: flex; align-items: center; gap: 4px; }
.empty-state-icon .icon { display: block; margin: 0 auto; }
.done-icon { display: flex; justify-content: center; color: var(--success); margin-bottom: 12px; }

/* 안내 띠 — 저장됨·오류·수정 모드·빈 항목 안내 */
.banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 12px;
  margin-bottom: 16px;
}
.banner .icon { flex-shrink: 0; margin-top: 1px; }
.banner-body { min-width: 0; }
.banner-title { font-size: 0.8rem; font-weight: 700; line-height: 1.45; }
.banner-sub { font-size: 0.74rem; margin-top: 2px; line-height: 1.5; }
.banner-action {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
}
.banner-danger { background: #FFF1F2; border-color: #FECDD3; color: #E11D48; }
.banner-danger .banner-sub { color: #9F1239; }
.banner-danger .banner-action { background: #E11D48; }
.banner-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.banner-info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* 이름표 — 값 줄 */
.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--brand-surface);
}
.kv-row:last-child { border-bottom: none; }
.kv-label { font-size: 0.78rem; color: #6B7280; flex-shrink: 0; }
.kv-value { font-size: 0.85rem; font-weight: 700; color: var(--brand-black); text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv-value-sm { font-size: 0.78rem; }
.kv-missing { color: var(--danger); }

/* 입력 칸 도움말 · 한 줄 폼 */
.form-hint { font-size: 0.68rem; color: #9CA3AF; margin-top: 3px; }
.form-hint-lead { font-size: 0.78rem; color: #6B7280; margin: 0 0 12px; }
.inline-form { display: flex; gap: 8px; }
.inline-form .form-input { flex: 1; min-width: 0; }
.btn-save.btn-inline { width: auto; margin: 0; padding: 11px 20px; font-size: 0.82rem; white-space: nowrap; }
#edit-gate { scroll-margin-top: 72px; }

/* 더보기 — 이름 칸과 메뉴 줄 */
.profile-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  margin-bottom: 4px;
}
.profile-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-surface);
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-card-body { min-width: 0; }
.profile-card-name { font-size: 1rem; font-weight: 800; }
.profile-card-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.75rem; color: #6B7280; margin-top: 3px; }
.menu-label { font-size: 0.72rem; font-weight: 700; color: var(--brand-silver); padding: 16px 4px 8px; }
.card.menu-card { padding: 0; }
.card.menu-card-last { margin-top: 16px; }
.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--brand-surface);
  text-decoration: none;
  color: var(--brand-black);
}
.menu-row:last-child { border-bottom: none; }
.menu-row:active { background: var(--brand-surface); }
.menu-row-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-row-title { font-size: 0.85rem; font-weight: 600; }
.menu-row-danger { color: var(--danger); }
.menu-row-danger .menu-row-icon { background: #FEF2F2; }

/* ══════════ 정산 상세 · 분할 지급 산출 근거 (2026-09-30 개편 4단계) ══════════
   화면에 인라인으로 적혀 있던 값을 글자 하나 안 바꾸고 옮긴 것 — 보이는 모양은 종전과 같다.
   이 화면은 가이드 영상에 가장 많이 나오고, HQ 라이더 화면 미리보기·정산서 PDF 와 짝이다 */

/* 위 검은 요약 카드 */
.hero-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.hero-cap { font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.hero-count { font-size: 1rem; font-weight: 700; }
.hero-state { font-size: 0.95rem; font-weight: 700; }
.hero-right { text-align: right; }
.hero-unit { font-size: 0.85rem; font-weight: 600; }
.hero-broker { font-size: 0.64rem; letter-spacing: -0.02em; white-space: nowrap; color: rgba(255,255,255,0.6); margin-top: 2px; }
.hero-broker strong { color: #fff; }

/* 카드 안 줄 */
.card-note { font-size: 0.72rem; color: #9CA3AF; margin-bottom: 10px; line-height: 1.5; }
.list-item.branch-row { padding: 12px 0; border-top: 1px solid #F2F4F6; }
.list-item.indent, .accordion-item.indent { padding-left: 12px; }
.list-item-right.sub-amount { font-size: 0.82rem; color: #6B7280; }
.list-item.total-row { border-top: 1px solid #E5E7EB; }
.total-row .list-item-title, .total-row .list-item-right { font-weight: 800; }
.accordion-trigger:focus-visible { outline: 2px solid var(--brand-black); outline-offset: 2px; border-radius: 6px; }

/* 정산 계산 */
.card.calc-card { background: var(--brand-surface); border: none; }
.calc-box { border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.calc-head { display: flex; justify-content: space-between; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.calc-lines { font-size: 0.72rem; line-height: 1.8; }
.calc-income { background: #fff; }
.calc-income .calc-lines { color: #6B7280; }
.calc-deduct { background: #FEF2F2; }
.calc-deduct .calc-head { color: var(--danger); }
.calc-deduct .calc-lines { color: #9B1C1C; }
.calc-special { background: #FFF7ED; }
.calc-special .calc-head { color: #B45309; }
.calc-special .calc-lines { color: #92400E; }
.calc-final { background: var(--brand-black); border-radius: 8px; padding: 14px; color: #fff; }
.calc-final-row { display: flex; justify-content: space-between; align-items: center; }
.calc-final-label { font-size: 0.82rem; font-weight: 700; }
.calc-final-amount { font-size: 1.1rem; font-weight: 900; }
.calc-final-broker { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; font-size: 0.68rem; letter-spacing: -0.02em; color: rgba(255,255,255,0.65); }
.calc-final-broker-amount { white-space: nowrap; font-size: 0.74rem; }
.calc-final-branch { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.15); }

/* 정산서 PDF 저장 */
.btn-pdf { display: block; margin: 4px 0 16px; padding: 14px; border-radius: 12px; background: #191F28; color: #fff; text-align: center; font-weight: 700; font-size: 0.9rem; text-decoration: none; }

/* 분할 지급 산출 근거 */
.block-link { text-decoration: none; display: block; }
.card.note-card { padding: 12px 14px; }
.card.note-warning { background: #FFFBEB; border-color: #FDE68A; }
.card.note-danger { background: #FFF1F2; border-color: #FECDD3; }
.note-card-title { font-weight: 800; font-size: 0.82rem; }
.note-card-sub { font-size: 0.75rem; margin-top: 3px; }
.note-warning .note-card-title { color: #92400E; }
.note-warning .note-card-sub { color: #78350F; line-height: 1.6; }
.note-warning .note-card-link { color: #92400E; font-weight: 700; }
.note-danger .note-card-title { color: #E11D48; }
.note-danger .note-card-sub { color: #9F1239; }
.card.pay-total-card { background: var(--brand-black); color: #fff; border: none; }
.pay-total-row { display: flex; justify-content: space-between; align-items: baseline; }
.pay-total-label { font-size: 0.82rem; font-weight: 700; }
.pay-total-amount { font-size: 1.3rem; font-weight: 900; }
.pay-total-unit { font-size: 0.82rem; font-weight: 600; }
.pay-total-note { font-size: 0.72rem; color: rgba(255,255,255,0.65); margin-top: 6px; }
.page-footnote { font-size: 0.72rem; color: #6B7280; line-height: 1.6; padding: 4px 6px 16px; }
.page-back { padding: 0 6px 20px; }
.page-back a { font-size: 0.8rem; color: #6B7280; text-decoration: none; }

/* ══════════ 선정산 (2026-09-30) ══════════
   화면에 인라인으로 적혀 있던 값을 글자 하나 안 바꾸고 옮긴 것. 스크립트가 style.display 로 보였다 숨겼다 하는
   칸은 처음에 .is-hidden 으로 숨겨 둔다 (스크립트가 직접 준 값이 이긴다) */
.is-hidden { display: none; }
.card.flush { padding: 0; }
.list-item.padded { padding: 14px 16px; }
.list-item.padded-sm { padding: 12px 16px; }
.card-head-pad { padding: 14px 16px 0; }
.page-state { text-align: center; padding: 40px; color: var(--brand-silver); font-size: 0.82rem; }
.card.fee-card { background: #EFF6FF; border-color: #BFDBFE; }
.fee-card-text { font-size: 0.78rem; color: #1E40AF; font-weight: 600; }
.hero-ratio { font-size: 0.68rem; opacity: 0.6; }
.hero-unit-lg { font-size: 0.9rem; font-weight: 600; }
.adv-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); }
.adv-form-row { display: flex; gap: 8px; }
.adv-input { flex: 1; padding: 11px 14px; border: 1.5px solid rgba(255,255,255,0.2); border-radius: 8px; background: rgba(255,255,255,0.1); color: #fff; font-size: 0.88rem; font-family: inherit; outline: none; }
.adv-btn { padding: 11px 20px; background: #fff; color: var(--brand-black); border: none; border-radius: 8px; font-size: 0.82rem; font-weight: 700; font-family: inherit; cursor: pointer; }
.adv-hint { font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-top: 6px; }
.adv-fee-preview { font-size: 0.72rem; color: rgba(255,255,255,0.7); margin-top: 6px; }
.adv-btn-full { width: 100%; margin-top: 10px; padding: 11px; background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.3); border-radius: 8px; font-size: 0.82rem; font-weight: 700; font-family: inherit; cursor: pointer; }
.adv-blocked { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.adv-msg { font-size: 0.75rem; margin-top: 8px; }
.adv-msg-error { color: #FCA5A5; }
.adv-msg-success { color: #6EE7B7; }
.acc-summary { font-size: 0.82rem; font-weight: 700; }
.acc-note { padding: 2px 16px 10px; font-size: 0.72rem; color: var(--brand-silver); line-height: 1.5; }
.acc-row-value.tone-info { color: var(--info); }
.acc-row-value.tone-danger { color: var(--danger); }
.acc-row-value.tone-paid { color: #7C3AED; }
.acc-row-value.tone-ink { color: var(--brand-black); }
.btn-cancel-adv { display: block; margin-top: 6px; padding: 3px 10px; font-size: 0.68rem; font-weight: 600; color: var(--danger); background: #FEF2F2; border: 1px solid #FECACA; border-radius: 4px; cursor: pointer; font-family: inherit; }
.hist-sub { font-size: 0.72rem; color: var(--brand-silver); margin-top: 4px; }
.auto-toggle { padding: 7px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; font-family: inherit; cursor: pointer; border: 1.5px solid #D1D5DB; background: #fff; color: #6B7280; }
.auto-toggle.is-on { border-color: #10B981; background: #10B981; color: #fff; }
.adv-off-wrap { text-align: center; margin-top: 16px; }
.link-quiet { font-size: 0.72rem; color: var(--brand-silver); background: none; border: none; font-family: inherit; cursor: pointer; text-decoration: underline; }

/* 상태 배지 — 대기·승인·지급완료·거절·취소. HQ·콘솔(admin.css·cat.css)과 같은 색.
   MY 스타일시트에만 빠져 있어 선정산 신청 내역·증명서 발급의 상태가 색 없이 글자로만 나왔다 (2026-09-30) */
.badge-muted { background: var(--brand-surface); color: #6B7280; }
.badge-warning-solid { background: var(--warning); color: #fff; }
.badge-info-solid { background: var(--info); color: #fff; }
.badge-success-solid { background: var(--success); color: #fff; }
.badge-danger-solid { background: var(--danger); color: #fff; }

/* 선정산 — 읽기 고침 (2026-09-30) */
.adv-blocked { text-align: left; color: rgba(255,255,255,0.88); line-height: 1.65; }   /* 신청할 수 없는 이유: 흐린 가운데 정렬 → 읽히는 밝기 */
.auto-row { gap: 12px; }
.auto-row .list-item-left { min-width: 0; }
.auto-toggle { white-space: nowrap; flex-shrink: 0; }                                    /* "꺼짐"이 두 줄로 꺾이던 것 */
.empty-state.compact { padding: 22px 16px 26px; }

/* ══════════ 남은 화면 정리 (2026-09-30) — 증명서 · 수입조회 · 홈 · 공지 ══════════
   화면에 인라인으로 적혀 있던 값을 글자 하나 안 바꾸고 옮긴 것.
   배달장부·내 리스 현황은 그 화면에서만 쓰는 모양이라 각 화면 머리의 <style> 에 있다 */

/* 글자색만 바꾸는 작은 부품 — 더한 돈 · 빼는 돈 · 건수 */
.tone-plus { color: var(--success); }
.tone-minus { color: var(--danger); }
.tone-info { color: var(--info); }

/* 목록 줄 전체가 링크일 때 */
.list-link { text-decoration: none; color: inherit; }

/* 홈 */
.badge.hero-badge { margin-left: 6px; font-size: 0.6rem; }
.hero-empty { font-size: 0.92rem; color: rgba(255,255,255,0.5); margin-top: 8px; }
.stat-unit { font-size: 0.75rem; }

/* 수입조회 — 분할 지급 카드 · 이번 달 요약 */
.card.split-card { margin-bottom: 12px; padding: 14px 16px; }
.card.split-held { background: #FFF1F2; border-color: #FECDD3; }
.card.split-paid { background: #ECFDF5; border-color: #A7F3D0; }
.card.split-wait { background: #EFF6FF; border-color: #BFDBFE; }
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.split-title { font-weight: 800; font-size: 0.9rem; color: var(--brand-black); }
.split-amount { font-weight: 900; font-size: 1.05rem; color: var(--brand-black); }
.split-unit { font-size: 0.8rem; font-weight: 600; }
.split-state { font-size: 0.75rem; font-weight: 700; margin-top: 4px; }
.split-held .split-state { color: #E11D48; }
.split-paid .split-state { color: #047857; }
.split-wait .split-state { color: #1D4ED8; }
.split-sub { font-size: 0.72rem; color: #6B7280; margin-top: 3px; }
.month-label { font-size: 0.72rem; color: var(--brand-silver); margin-bottom: 4px; }
.month-amount { font-size: 1.4rem; font-weight: 900; }
.month-stats { display: flex; gap: 16px; margin-top: 10px; font-size: 0.72rem; color: rgba(255,255,255,0.5); }

/* 증명서 발급 */
.cert-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.badge.cert-plat { margin-left: 4px; }
.cert-period { font-size: 0.82rem; font-weight: 700; color: var(--brand-black); margin-bottom: 4px; }
.cert-note { font-size: 0.68rem; color: var(--brand-silver); margin-bottom: 8px; }
.cert-actions { display: flex; gap: 8px; margin-top: 10px; }
.cert-off { flex: 1; text-align: center; font-size: 0.74rem; color: var(--brand-silver); padding: 10px; }
.btn-save.cert-btn { flex: 1; text-align: center; font-size: 0.78rem; padding: 10px; margin: 0; border: 0; cursor: pointer; }
.empty-state-sub { font-size: 0.72rem; color: var(--brand-silver); margin-top: 6px; }

/* 공지 */
.badge.badge-urgent { background: #FEF2F2; color: #DC2626; margin-bottom: 6px; }
.notice-title { font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.notice-body { font-size: 0.78rem; color: #6B7280; line-height: 1.6; white-space: pre-line; }
.notice-date { font-size: 0.7rem; color: var(--brand-silver); margin-top: 8px; }

/* 프로모션 감액·미지급 사유 줄 (2026-10-12) — 규칙 줄 바로 아래 보조 설명 */
.acc-row.acc-row-adj { padding-top: 0; font-size: 0.7rem; }
.acc-row.acc-row-adj .acc-row-label { color: #9CA3AF; }

/* 하단 위탁 안내 한 줄 — 지사의 법 제26조 제2항 공개 (2026-10-23) */
.dlg-line { margin: 18px 4px 6px; font-size: 0.68rem; color: #9CA3AF; line-height: 1.6; text-align: center; }
.dlg-line a { color: var(--info); text-decoration: none; margin-left: 4px; }
