/* ============================================================
   성진트랜스 ERP — 공통 스타일
   구버전은 jQuery + Bootstrap + FontAwesome + DataTables를 모두 불러
   첫 화면에만 1MB 가까이 받았다. 여기서는 이 파일 하나로 끝낸다.
   ============================================================ */

:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --line: #e2e6ee;
  --line-strong: #cfd6e4;

  --text: #1c2434;
  --text-dim: #66708a;
  --text-faint: #99a1b5;

  --brand: #1e4fd8;
  --brand-dark: #163bab;
  --brand-soft: #eaf0ff;

  --in: #0d7a4a;
  --in-soft: #e4f6ec;
  --out: #c2410c;
  --out-soft: #fdeee4;
  --danger: #c02626;
  --danger-soft: #fdeaea;
  --warn: #9a6700;
  --warn-soft: #fff6df;

  --sidebar-w: 216px;
  --header-h: 56px;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 4px 14px rgba(20, 30, 60, .05);

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* 숫자는 자릿수가 흔들리지 않게 고정폭으로 */
.num, td.num, th.num, .money {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ── 레이아웃 ─────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/**
 * 사이드바 접기.
 * 1024×768 같은 낮은 해상도에서는 216px 사이드바가 가로의 21%를 먹어,
 * 표의 오른쪽 끝(수정·삭제 버튼)이 잘린다. 접으면 162px을 되찾는다.
 */
.layout.nav-collapsed { --sidebar-w: 54px; }
.layout.nav-collapsed .sidebar .brand { justify-content: center; padding: 0; font-size: 13px; }
.layout.nav-collapsed .sidebar .lbl,
.layout.nav-collapsed .sidebar .brand small,
.layout.nav-collapsed .sidebar .group,
.layout.nav-collapsed .sidebar .foot { display: none; }
.layout.nav-collapsed .sidebar a.item .ico { font-size: 15px; }
.layout.nav-collapsed .sidebar a.item { justify-content: center; padding: 10px 0; }
.layout.nav-collapsed .sidebar nav { padding: 8px 6px; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: #101a33;
  color: #cbd3e6;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: -.2px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar .brand small {
  font-weight: 500;
  font-size: 11px;
  color: #7d89a8;
  letter-spacing: 0;
}

.sidebar nav { padding: 10px 8px; overflow-y: auto; flex: 1; }

.sidebar .group {
  padding: 14px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #6d7999;
  letter-spacing: .04em;
}

.sidebar a.item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 6px;
  color: #cbd3e6;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.sidebar a.item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar a.item.active { background: var(--brand); color: #fff; font-weight: 700; }
.sidebar a.item .ico { width: 16px; text-align: center; opacity: .85; font-size: 13px; }

.sidebar .foot {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: #7d89a8;
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar h1 { font-size: 16px; font-weight: 800; margin: 0; letter-spacing: -.2px; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: 13px; color: var(--text-dim); }
.topbar .who b { color: var(--text); }

.content { padding: 18px; flex: 1; }

/* ── 카드 ─────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 14px; }

.card > header {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.card > header h2 { font-size: 13.5px; font-weight: 700; margin: 0; }
.card > header .spacer { flex: 1; }
.card > .body { padding: 11px 12px; }
.card > .body.flush { padding: 0; }

/* ── 폼 ───────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--text-dim); }

input, select, textarea {
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 5px 8px;
  min-width: 0;
  max-width: 100%;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/**
 * 날짜 입력은 iOS Safari에서 고유 너비를 갖는다. width를 줘도 무시하고 자기 크기대로
 * 벌어져 카드 밖으로 삐져나오므로, 기본 렌더링을 끄고 컨테이너에 맞춘다.
 * (탭하면 날짜 선택기는 그대로 뜬다)
 */
input[type="date"], input[type="time"] {
  -webkit-appearance: none;
  appearance: none;
  min-width: 0;
  max-width: 100%;
  text-align: left;
}

input[readonly] { background: #f6f8fb; color: var(--text-dim); }
input:disabled, select:disabled { background: #f1f3f7; color: var(--text-faint); }
input.num { text-align: right; font-variant-numeric: tabular-nums; }

.filters {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

/* ── 버튼 ─────────────────────────────────── */
.btn {
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  border-radius: 6px;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover:not(:disabled) { background: #f5f7fb; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--brand-dark); }
.btn.danger { background: #fff; border-color: #e6b3b3; color: var(--danger); }
.btn.danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn.sm { padding: 4px 8px; font-size: 12px; }
.btn.link { border-color: transparent; background: transparent; color: var(--brand); padding: 4px 6px; }
.btn.link:hover:not(:disabled) { background: var(--brand-soft); }

/* ── 표 ───────────────────────────────────── */
.table-wrap { overflow-x: auto; }

/**
 * 리스트는 한 화면에 최대한 많이 보이는 것이 우선이다(수정요청 1번).
 * 행 높이와 좌우 여백을 줄이고, 홀짝 행의 명암을 달리해 눈이 줄을 놓치지 않게 한다.
 */
table.grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }

table.grid th, table.grid td {
  padding: 5px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  line-height: 1.35;
}

table.grid thead th {
  position: sticky;
  top: 0;
  background: #eef2f8;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-strong);
  padding: 6px 8px;
  z-index: 1;
}

/* 홀수/짝수 행 구분 */
table.grid tbody tr:nth-child(odd) { background: #ffffff; }
table.grid tbody tr:nth-child(even) { background: #f6f8fc; }
table.grid tbody tr:hover { background: #e8efff; }

table.grid tfoot td {
  font-weight: 700;
  background: #eef2f8;
  border-top: 1px solid var(--line-strong);
  padding: 6px 8px;
}

table.grid .wrap { white-space: normal; min-width: 140px; }

/**
 * 작업 버튼 열은 오른쪽에 고정한다.
 * 낮은 해상도에서 표가 가로로 넘칠 때, 수정·삭제가 화면 밖으로 밀려나
 * "버튼이 없어졌다"고 여기는 일을 막는다.
 */
table.grid th.act, table.grid td.act {
  position: sticky;
  right: 0;
  text-align: right;
  box-shadow: -6px 0 6px -6px rgba(20, 30, 60, .22);
}

table.grid thead th.act { background: #eef2f8; z-index: 2; }
table.grid tbody tr:nth-child(odd) td.act { background: #ffffff; }
table.grid tbody tr:nth-child(even) td.act { background: #f6f8fc; }
table.grid tbody tr:hover td.act { background: #e8efff; }

/* 표 안의 버튼도 같이 납작하게 */
table.grid .btn.sm { padding: 2px 7px; font-size: 11.5px; }
table.grid td .btn + .btn { margin-left: 2px; }

.empty {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* ── 뱃지 ─────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.6;
}

.badge.in { background: var(--in-soft); color: var(--in); }
.badge.out { background: var(--out-soft); color: var(--out); }
.badge.off { background: #eef0f4; color: var(--text-dim); }
.badge.on { background: var(--brand-soft); color: var(--brand); }
.badge.danger-badge { background: var(--danger-soft); color: var(--danger); }
.badge.opening { background: #ede7fb; color: #5b3fa8; }
@media (min-width: 761px) { .mobile-switch { display: none; } }

/* ── 토스트 ───────────────────────────────── */
#toasts {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(420px, calc(100vw - 32px));
}

.toast {
  background: #16203a;
  color: #fff;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(10, 20, 40, .28);
  animation: toast-in .16s ease-out;
  word-break: break-word;
}

.toast.err { background: var(--danger); }
.toast.ok { background: var(--in); }

@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }

/* ── 모달 ─────────────────────────────────── */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(16, 26, 51, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}

.modal {
  background: var(--surface);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(10, 20, 40, .3);
  width: min(560px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
}

.modal > header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 15px;
}

.modal > .body { padding: 16px; overflow-y: auto; }
.modal > footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }

/* 페이지 이동 줄. [hidden]이 인라인 display에 밀리지 않도록 클래스로 둔다. */
.pager { display: flex; align-items: center; gap: 10px; justify-content: center; }
[hidden] { display: none !important; }

/* ── 로딩 / 상태 ──────────────────────────── */
.loading { padding: 32px; text-align: center; color: var(--text-faint); font-size: 13px; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  display: inline-block;
  animation: spin .6s linear infinite;
  vertical-align: -2px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── 합계 타일 ────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }

.tile {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 11px;
}

.tile .k { font-size: 11.5px; color: var(--text-dim); font-weight: 600; }
.tile .v {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

.tile.accent { background: var(--brand-soft); border-color: #c7d5ff; }
.tile.accent .v { color: var(--brand-dark); }

/* ── 반응형 ───────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .18s; }
  .sidebar.open { transform: none; }
  .layout.nav-open::after {
    content: ''; position: fixed; inset: 0; background: rgba(16, 26, 51, .4); z-index: 50;
  }
  .form-grid { grid-template-columns: 1fr; }
}

@media (min-width: 901px) { .nav-toggle { display: none; } }
@media (max-width: 900px) { .nav-collapse { display: none; } }

.nav-collapse { padding: 4px 9px; font-size: 14px; line-height: 1; }

/* ============================================================
   커스텀 드롭다운
   진짜 <select>는 DOM에 남기고 화면만 우리 것으로 바꾼다.
   ============================================================ */

.cs { position: relative; display: block; min-width: 0; }

/* 진짜 select는 자리를 차지하지 않게 숨기되, 폼 안에는 남겨둔다 */
.cs-native {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.cs-btn {
  font: inherit;
  font-size: 13px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 5px 8px;
  cursor: pointer;
  text-align: left;
  min-height: 29px;
}

.cs-btn:hover:not(:disabled) { border-color: #b9c3d6; }

.cs-btn:focus-visible,
.cs-btn[aria-expanded="true"] {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.cs-btn:disabled { background: #f1f3f7; color: var(--text-faint); cursor: not-allowed; }
.cs-btn.cs-placeholder .cs-label { color: var(--text-faint); }

.cs-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-arrow {
  flex: 0 0 auto;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-dim);
  transition: transform .12s;
}

.cs-btn[aria-expanded="true"] .cs-arrow { transform: rotate(180deg); }

/* ── 목록 패널 ─────────────────────────────
   표(overflow:auto) 안에서도 잘리지 않게 body에 띄우고 fixed로 배치한다 */
.cs-panel {
  position: fixed;
  z-index: 300;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20, 30, 60, .18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cs-in .12s ease-out;
}

@keyframes cs-in { from { opacity: 0; transform: translateY(-3px); } }

.cs-search { padding: 7px; border-bottom: 1px solid var(--line); }
.cs-search input { width: 100%; font-size: 13px; }

.cs-list { overflow-y: auto; padding: 4px; }

.cs-opt {
  padding: 7px 9px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
}

.cs-opt.cs-active { background: var(--brand-soft); }
.cs-opt.cs-selected { font-weight: 700; color: var(--brand); }
.cs-opt.cs-selected::after { content: ' ✓'; }
.cs-opt.cs-disabled { color: var(--text-faint); cursor: not-allowed; }
.cs-empty { padding: 18px; text-align: center; color: var(--text-faint); font-size: 13px; }

/* ── 폰: 아래에서 올라오는 시트 ───────────── */
.cs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 26, 51, .4);
  z-index: 299;
}

.cs-panel.cs-sheet {
  left: 0; right: 0; bottom: 0; top: auto;
  width: 100%;
  max-height: 70vh;
  border-radius: 14px 14px 0 0;
  border-bottom: none;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: cs-up .18s ease-out;
}

@keyframes cs-up { from { transform: translateY(100%); } }

.cs-panel.cs-sheet .cs-grip {
  width: 38px; height: 4px;
  background: var(--line-strong);
  border-radius: 99px;
  margin: 9px auto 3px;
  flex: 0 0 auto;
}

.cs-panel.cs-sheet .cs-search input { font-size: 16px; padding: 10px 12px; }
.cs-panel.cs-sheet .cs-list { padding: 6px 8px 14px; }

.cs-panel.cs-sheet .cs-opt {
  padding: 14px 12px;
  font-size: 16px;
  white-space: normal;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .cs-panel { animation: none; }
}

/* ============================================================
   대시보드
   ============================================================ */

.dash { display: flex; flex-direction: column; gap: 14px; }
.dash .card + .card { margin-top: 0; }

.dash-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

/* ── 헤드라인 숫자 ─────────────────────────── */
.hero-row { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; }

.hero {
  flex: 0 0 auto;
  min-width: 260px;
  background: linear-gradient(135deg, #16307d 0%, #1e4fd8 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero .k { font-size: 12.5px; font-weight: 600; opacity: .82; }

.hero .v {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.hero .v small { font-size: 17px; font-weight: 700; margin-left: 3px; letter-spacing: 0; }
.hero .sub { font-size: 12px; opacity: .8; margin-top: 5px; font-variant-numeric: tabular-nums; }

/* ── 입고 / 출고 / 순증감 ──────────────────── */
.move-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.move {
  flex: 1;
  min-width: 232px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 13px;
  background: #fbfcfe;
}

.move .dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; align-self: center; }
.move.in .dot { background: var(--in); }
.move.out .dot { background: var(--out); }
/* '이달 입고', '팔레트' 같은 짧은 말이 한 글자씩 세로로 쌓이지 않게 줄바꿈을 막는다 */
.move .lbl { font-size: 12.5px; color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.move b {
  font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums;
  letter-spacing: -.4px; margin-left: auto; white-space: nowrap;
}
.move .unit { font-size: 12px; color: var(--text-dim); white-space: nowrap; flex: 0 0 auto; }
.move .meta { font-size: 11.5px; color: var(--text-faint); width: 100%; text-align: right; white-space: nowrap; }
.move.net { background: var(--brand-soft); border-color: #c7d5ff; }
.move.net b { color: var(--brand-dark); }

/* ── 차트 ──────────────────────────────────── */
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }

/* 격자와 축은 데이터보다 뒤로 물러나 있어야 한다 */
.chart-wrap .grid { stroke: var(--line); stroke-width: 1; }
.chart-wrap .ax { fill: var(--text-faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.chart-wrap .guide { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-wrap .hit { cursor: crosshair; }

.chart-note { margin: 8px 0 0; font-size: 11.5px; color: var(--text-faint); }

.legend { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.tip {
  position: absolute;
  top: 4px;
  transform: translateX(-50%);
  background: #16203a;
  color: #fff;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 12px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(10, 20, 40, .25);
  z-index: 5;
}

.tip .t { font-weight: 700; margin-bottom: 3px; }
.tip .r { display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.tip .dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

/* ── 거래처별 막대 ─────────────────────────── */
.bars { display: flex; flex-direction: column; gap: 9px; }

.bar-row {
  display: grid;
  grid-template-columns: minmax(88px, 1.1fr) 2fr auto auto;
  align-items: center;
  gap: 10px;
}

.bar-name {
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track { height: 9px; background: #eef1f7; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); border-radius: 99px; }
.bar-val { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; min-width: 54px; }
.bar-val small { font-size: 10.5px; color: var(--text-faint); font-weight: 600; margin-left: 2px; }
.bar-est { font-size: 12.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; text-align: right; min-width: 82px; }
.bar-est small { font-size: 10.5px; color: var(--text-faint); margin-left: 1px; }

/* ── 정산 구성 ─────────────────────────────── */
.split-bar { display: flex; height: 13px; border-radius: 99px; overflow: hidden; gap: 2px; background: #eef1f7; }
.split-legend { display: flex; gap: 16px; margin-top: 9px; font-size: 12.5px; color: var(--text-dim); }
.split-legend span { display: inline-flex; align-items: center; gap: 6px; }
.split-legend i { width: 9px; height: 9px; border-radius: 3px; }
.split-legend b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ── 챙길 것 ───────────────────────────────── */
.alerts { display: flex; flex-direction: column; gap: 8px; }

.alert {
  display: block;
  border-radius: var(--radius);
  padding: 10px 13px;
  text-decoration: none;
  border: 1px solid transparent;
}

.alert b { display: block; font-size: 13px; }
.alert span { display: block; font-size: 12px; margin-top: 2px; opacity: .88; }
.alert.warn { background: var(--danger-soft); color: var(--danger); border-color: #f2cccc; }
.alert.ok { background: var(--brand-soft); color: var(--brand-dark); border-color: #c7d5ff; }
.alert:hover { filter: brightness(.98); }
