/* 압도마케팅 — 토스풍 디자인 시스템 */

:root {
  --blue: #3182f6;
  --blue-dark: #1b64da;
  --blue-soft: #e8f1ff;
  --ink: #191f28;
  --gray: #6b7684;
  --gray-light: #8b95a1;
  --line: #e5e8eb;
  --bg: #f2f4f6;
  --card: #ffffff;
  --green: #00b86b;
  --orange: #ff8c42;
  --red: #f04452;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 2px 8px rgba(0, 19, 43, 0.06);
  --shadow-hover: 0 6px 20px rgba(0, 19, 43, 0.1);
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ───────── 네비 ───────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-back:hover { background: var(--bg); }
.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  padding: 2px 7px;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 2px;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-right a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  text-decoration: none;
}
.nav-right a:hover { color: var(--ink); }
.credit-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ───────── 레이아웃 ───────── */
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.page-head { margin: 8px 4px 20px; }
.page-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.sub { margin-top: 6px; color: var(--gray); font-size: 14px; }

/* ───────── 카드 ───────── */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.card.narrow { max-width: 420px; margin: 40px auto; }
.card h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.card .sub { margin-bottom: 20px; }

/* ───────── 폼 필드 ───────── */
.field { margin-bottom: 16px; }
.field label, .field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 7px;
}
.req { color: var(--blue); margin-left: 2px; }
.opt { color: var(--gray-light); font-weight: 500; }
.req { color: var(--red); font-weight: 700; }
.label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.label-row label, .label-row .field-label { margin-bottom: 0; }
.help-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border: none;
  border-radius: 7px;
  padding: 3px 9px;
  cursor: pointer;
}
.help-text {
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
  border-radius: 8px;
  padding: 9px 11px;
  margin: 4px 0 8px;
  line-height: 1.5;
}
.field input, .field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 14px 14px;
  transition: border-color .15s, background .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--gray-light); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
}
.field textarea { resize: vertical; }

/* ───────── 결제방식 토글 ───────── */
.pay-toggle { margin-bottom: 18px; }
.seg {
  display: flex;
  gap: 8px;
}
.seg-item {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.seg-item input { position: absolute; opacity: 0; }
.seg-item span {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 13px 8px;
  transition: all .15s;
}
.seg-item span em { font-style: normal; font-weight: 500; font-size: 12px; opacity: .8; }
.seg-item input:checked + span {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: var(--blue);
}
.time-input { margin-top: 10px; }
.row-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ───────── 버튼 ───────── */
.btn-primary {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 14px;
  padding: 16px;
  margin-top: 8px;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:active { transform: scale(.99); }

.note { margin-top: 16px; text-align: center; font-size: 13px; color: var(--gray); }
.note a { color: var(--blue); font-weight: 600; text-decoration: none; }

/* ───────── 잔여 건수 히어로 ───────── */
.credit-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #4593fc 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(49, 130, 246, 0.28);
}
.credit-label { font-size: 14px; opacity: .9; font-weight: 500; }
.credit-value { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; margin-top: 4px; }
.credit-value span { font-size: 20px; font-weight: 600; margin-left: 4px; }

/* ───────── 액션 카드 ───────── */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.action-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .12s, box-shadow .12s;
}
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.action-card.primary { background: var(--ink); color: #fff; }
.action-card.promo {
  position: relative;
  border: 2px solid var(--blue);
  background: linear-gradient(135deg, #e7f0ff 0%, #f5f9ff 55%, #fff 100%);
  box-shadow: 0 8px 22px rgba(49, 130, 246, 0.20);
  overflow: visible;
}
.action-card.promo:hover { box-shadow: 0 12px 30px rgba(49, 130, 246, 0.30); }
.promo-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #f04452, #ff7a59);
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(240, 68, 82, 0.35);
  margin-bottom: 8px;
  white-space: nowrap;
  animation: promoPulse 2.2s ease-in-out infinite;
}
@keyframes promoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
.action-card.promo .action-title { color: var(--blue-dark); font-size: 17px; }
.action-emoji { font-size: 26px; }
.action-title { font-size: 16px; font-weight: 700; margin-top: 10px; }
.action-desc { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.action-card.primary .action-desc { color: rgba(255,255,255,.7); }

/* ───────── 내역 리스트 ───────── */
.list-section { margin-bottom: 28px; }
.list-section h2, .admin-section h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 4px 12px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.record-list { display: flex; flex-direction: column; gap: 8px; }
.record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.record-title { font-size: 15px; font-weight: 600; }
.record-meta { font-size: 12.5px; color: var(--gray); margin-top: 3px; }
.record-side { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag-credit { color: var(--blue); background: var(--blue-soft); }
.tag-deposit { color: var(--orange); background: #fff1e8; }

.status { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.status-ok { color: var(--green); background: #e5f8ef; }
.status-wait { color: var(--gray); background: var(--bg); }
.status-reject { color: var(--red); background: #ffeaec; }
.btn-edit-sm {
  font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--blue-soft); border-radius: 7px; padding: 4px 9px;
  text-decoration: none; white-space: nowrap;
}

/* 건수 내역 원장 금액 */
.ledger-amt { font-size: 14px; font-weight: 800; white-space: nowrap; }
.ledger-amt.plus { color: var(--green); }
.ledger-amt.minus { color: var(--blue); }
.ledger-amt.pending { color: var(--gray-light); }

.section-hint { font-size: 12.5px; color: var(--gray); margin: -4px 0 12px; }

.empty { color: var(--gray-light); font-size: 14px; text-align: center; padding: 24px; }

/* ───────── 선결제 패키지 카드 ───────── */
.pkg-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}
.pkg-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #cfe0ff;
  background: rgba(255,255,255,0.12);
  padding: 4px 12px;
  border-radius: 999px;
}
.pkg-count { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; margin-top: 12px; }
.pkg-price-row {
  display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 6px;
}
.pkg-original {
  font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,0.5); text-decoration: line-through;
}
.pkg-price { font-size: 24px; font-weight: 800; color: #6ba6ff; }
.pkg-save {
  display: inline-block; margin-top: 10px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: var(--red); padding: 4px 12px; border-radius: 999px;
}

/* 신청 입금액 안내 */
.amount-info {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 16px;
}
.amount-info b { font-weight: 800; }
.amt-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 2px 0; }
.amt-row.muted { color: var(--gray); }
.amt-row.muted b { font-weight: 700; }
.amt-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(49,130,246,0.25);
}

/* ───────── 안내 박스 ───────── */
.info-box {
  margin-top: 16px;
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.info-title { font-size: 13px; font-weight: 700; color: var(--blue-dark); }
.info-bank { font-size: 16px; font-weight: 700; margin-top: 6px; }
.info-price { font-size: 14px; color: var(--ink); margin-top: 4px; }
.info-note { font-size: 12.5px; color: var(--gray); margin-top: 10px; line-height: 1.6; }

/* ───────── 관리자 ───────── */
.admin-section { margin-bottom: 32px; }
.count-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 2px 9px;
  border-radius: 999px;
}
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.admin-title { font-size: 15px; font-weight: 700; }
.admin-meta { font-size: 12.5px; color: var(--gray); margin-top: 3px; }
.admin-meta b { color: var(--ink); }
.deposit-expect {
  font-size: 13px;
  color: var(--ink);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 6px;
}
.deposit-expect .amt { color: var(--blue-dark); font-weight: 800; }
.deposit-expect .break { display: block; font-size: 11.5px; color: var(--gray); margin-top: 2px; }
.app-detail { margin-top: 8px; }
.app-detail > summary { font-size: 12.5px; font-weight: 700; color: var(--blue); cursor: pointer; }
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  margin: 8px 0; padding: 10px; background: var(--bg); border-radius: 10px;
}
.detail-grid > div { font-size: 13px; display: flex; flex-direction: column; }
.detail-grid > div.full { grid-column: 1 / -1; }
.detail-grid span { font-size: 11px; color: var(--gray); }
.detail-grid b { color: var(--ink); word-break: break-all; }

.btn-confirm {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-confirm:hover { background: var(--blue-dark); }

/* 확정 카드 */
.confirm-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
}
.card-delete { position: absolute; top: -9px; right: -9px; margin: 0; }
.btn-x {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(240, 68, 82, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.btn-x:hover { background: #d63341; }
.confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.confirm-head .admin-title { display: inline; margin-right: 6px; }
.confirm-head .admin-meta { display: inline; margin-left: 4px; }
.confirm-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.btn-copy {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
}
.btn-copy.copied { color: #fff; background: var(--green); }
.btn-photo {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: #e5f8ef;
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn-photo:hover { background: #d2f2e2; }
.btn-ghost {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  background: var(--bg);
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
}
/* 리뷰용 택배 주문 / 송장 */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-order {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-order:hover { background: #e07b1f; }
.tag-order { color: var(--orange); background: #fff1e8; }
.tag-track { color: var(--green); background: #e5f8ef; }

/* 리뷰박스 패널 */
.box-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line, #eef0f3);
}
.box-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.box-panel-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.roster-input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 10px;
  padding: 10px;
  resize: vertical;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.reviewer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 10px;
}
.reviewer-table th, .reviewer-table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line, #eef0f3);
}
.reviewer-table th { color: var(--gray); font-weight: 600; font-size: 12px; }
.reviewer-table .muted { color: var(--gray-light); }
.box-panel-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* 배치(하루치 명단) */
.batch { margin-bottom: 12px; }
.batch-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.batch-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.js-batch-toggle { cursor: pointer; user-select: none; }
.batch-arrow { color: var(--gray); font-size: 11px; }
.batch-del { margin: 0 0 0 auto; }
.btn-x-sm {
  width: 20px; height: 20px; border: none; border-radius: 50%;
  background: var(--bg); color: var(--gray); font-size: 14px; line-height: 1;
  cursor: pointer; padding: 0;
}
.btn-x-sm:hover { background: #ffeaec; color: var(--red); }
.roster-add { margin: 10px 0; padding: 10px; background: var(--bg); border-radius: 10px; }
.roster-add .batch-title { margin-bottom: 6px; }
.sheet-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sheet-input {
  flex: 1;
  min-width: 200px;
  font-family: inherit;
  font-size: 13px;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 10px;
  padding: 9px 11px;
  box-sizing: border-box;
}
.roster-manual { margin-top: 8px; }
.roster-manual > summary { font-size: 12.5px; color: var(--gray); cursor: pointer; }

/* 고객 화면 송장 목록 */
.tracking-box {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--bg);
  border-radius: 10px;
}
.tracking-title { font-size: 12px; font-weight: 700; color: var(--gray); margin-bottom: 4px; }
.tracking-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 2px 0;
}
.tracking-name { color: var(--ink); }
.tracking-name .muted, .tracking-row .muted { color: var(--gray-light); }
.tracking-no { font-weight: 600; color: var(--blue); white-space: nowrap; }

/* 송장 확인 (펼침 버튼) */
.tracking-details { margin-top: 8px; }
.tracking-summary {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.tracking-summary::-webkit-details-marker { display: none; }
.tracking-summary::before { content: "📦 "; }
.tracking-details[open] .tracking-summary { margin-bottom: 6px; }
.tracking-table { margin-bottom: 10px; }
.tracking-table .batch-th { font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--bg); }

/* 열 복사: 헤더 클릭 시 그 열만 복사 */
.copy-hint { font-size: 12px; color: var(--gray-light); margin: 6px 0; }
.copytable thead th[data-col] {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.copytable thead th[data-col]:hover { color: var(--blue); background: var(--blue-soft); }
.copytable thead th[data-col].col-copied { color: #fff; background: var(--green); }
.copytable thead th[data-col].col-copied::after { content: " ✓ 복사됨"; font-weight: 700; }

.field-hint { font-size: 12px; color: var(--gray-light); margin-top: 6px; }

/* 파일 선택 (커스텀) — 다른 입력칸과 통일 */
.file-input {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.file-input:hover { border-color: var(--blue); background: #fff; }
.file-btn {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 8px 14px;
  border-radius: 9px;
}
.file-name {
  font-size: 14px;
  color: var(--gray-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-name.has-file { color: var(--ink); font-weight: 600; }
.btn-ghost:hover { color: var(--red); }
.vendor-text {
  width: 100%;
  font-family: 'Pretendard', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  border: none;
  border-radius: 12px;
  padding: 14px;
  resize: vertical;
}

/* 거래처 관리 바로가기 (관리자 대시보드) */
.customers-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
.customers-link:hover { box-shadow: var(--shadow-hover); }
.customers-link-title { font-size: 16px; font-weight: 700; }
.customers-link-desc { font-size: 12.5px; color: var(--gray); margin-top: 3px; }
.customers-link-arrow { font-size: 20px; color: var(--blue); font-weight: 700; }

/* 거래처 통계 박스 */
.stat-row { display: flex; gap: 10px; margin-bottom: 20px; }
.stat-box {
  flex: 1;
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.stat-box.accent { background: var(--ink); color: #fff; }
.stat-label { font-size: 12px; color: var(--gray); font-weight: 600; }
.stat-box.accent .stat-label { color: rgba(255,255,255,0.7); }
.stat-value { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.stat-value.sm { font-size: 18px; }
.stat-value span { font-size: 13px; font-weight: 600; margin-left: 2px; }

/* 거래처 목록 카드 */
.cust-list { display: flex; flex-direction: column; gap: 10px; }
.cust-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
}
.cust-card:hover { box-shadow: var(--shadow-hover); }
.cust-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cust-name { font-size: 16px; font-weight: 700; }
.cust-id { font-size: 12px; color: var(--gray-light); margin-left: 6px; }
.cust-credit {
  font-size: 13px; font-weight: 700; color: var(--blue);
  background: var(--blue-soft); padding: 5px 12px; border-radius: 999px;
}
.cust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.cust-stats > div { display: flex; justify-content: space-between; font-size: 13px; }
.cust-stats span { color: var(--gray); }
.cust-stats b { font-weight: 700; }

/* 거래처 상세 */
.back-link { display: inline-block; font-size: 13px; font-weight: 600; color: var(--gray);
  text-decoration: none; margin-bottom: 8px; }
.back-link:hover { color: var(--ink); }
.breakdown {
  display: flex; gap: 10px; margin-bottom: 28px;
}
.breakdown > div {
  flex: 1; background: var(--card); border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px;
}
.breakdown span { font-size: 12px; color: var(--gray); }
.breakdown b { font-size: 16px; font-weight: 700; }

/* ───────── 플래시 ───────── */
.flash-area { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 12px;
}
.flash.success { color: var(--blue-dark); background: var(--blue-soft); }
.flash.error { color: var(--red); background: #ffeaec; }

/* ───────── 모달 ───────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px 20px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  animation: pop .15s ease-out;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-msg {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  white-space: pre-line;
  text-align: center;
  color: var(--ink);
}
.modal-btns { display: flex; gap: 8px; margin-top: 24px; }
.modal-btns button { flex: 1; margin: 0; }
.modal-btns .btn-ghost { padding: 15px; font-size: 15px; }

/* ───────── 위험 구역 (계정 삭제) ───────── */
.danger-zone {
  margin-top: 32px;
  padding: 20px;
  border: 1px solid #ffd4d9;
  background: #fff6f7;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.danger-info { display: flex; flex-direction: column; gap: 4px; }
.danger-info b { font-size: 15px; color: var(--red); }
.danger-info span { font-size: 13px; color: var(--gray); line-height: 1.5; }
.btn-danger {
  border: 0;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-danger:hover { background: #d63341; }

/* ───────── 반응형 ───────── */
@media (max-width: 480px) {
  .credit-value { font-size: 38px; }
  .admin-row { flex-direction: column; align-items: stretch; }
  .btn-confirm { width: 100%; }
  .danger-zone { flex-direction: column; align-items: stretch; }
  .btn-danger { width: 100%; }
}
