:root {
  --primary: #2f6fed;
  --primary-dark: #1f4fbd;
  --bg: #f3f4f6;
  --card-bg: #ffffff;
  --col-bg: #e5e7eb;
  --board-accent: #94a3b8;
  --border: #d1d5db;
  --text: #1f2733;
  --text-muted: #6b7684;
  --danger: #e5484d;
  --success: #1a9e5c;
  --warning: #d9822b;
  --radius: 8px;
  --radius-nav: 10px;
  --font: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  /* Live-measured .card offsetHeight with 2-line title clamp (Chrome): 131px */
  --board-card-h: 131px;
  --board-card-gap: 8px;
  --board-cards-max-h: calc(var(--board-card-h) * 2 + var(--board-card-gap));
  font-family: var(--font);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text); font-size: 14px;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.hidden { display: none !important; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }

/* ---------- Login / Signup (scoped; does not restyle the CRM shell) ---------- */
.login-screen {
  --auth-bg: #f3f2ee;
  --auth-ink: #1c2128;
  --auth-muted: #6a6f76;
  --auth-line: #ddd9d1;
  --auth-card: #fffcf8;
  --auth-accent: #3f4f46;
  --auth-accent-hover: #2f3c35;
  --auth-focus: #c5cfc8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(ellipse at top, rgba(63, 79, 70, 0.06), transparent 52%),
    var(--auth-bg);
  color: var(--auth-ink);
}
.auth-shell {
  width: 100%;
  max-width: 420px;
}
.auth-intro { margin-bottom: 22px; }
.auth-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--auth-accent);
  font-weight: 700;
}
.auth-intro h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.auth-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--auth-muted);
}
.auth-card {
  background: var(--auth-card);
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  padding: 22px 24px 26px;
  box-shadow: 0 10px 30px rgba(28, 33, 40, 0.06);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 18px;
  background: #eceae4;
  border-radius: 10px;
}
.auth-tab {
  border: none;
  background: transparent;
  color: var(--auth-muted);
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
}
.auth-tab.is-active {
  background: #fff;
  color: var(--auth-ink);
  box-shadow: 0 1px 2px rgba(28, 33, 40, 0.08);
}
.auth-form label {
  display: block;
  font-size: 12px;
  margin: 12px 0 5px;
  color: var(--auth-muted);
  font-weight: 600;
}
.auth-form input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--auth-ink);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px var(--auth-focus);
}
.auth-submit {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: var(--auth-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
}
.auth-submit:hover { background: var(--auth-accent-hover); }
.error-msg {
  background: #fdeceb; color: var(--danger); padding: 8px 10px; border-radius: 6px; font-size: 12px; margin-bottom: 6px;
}

/* ---------- App shell ---------- */
.topbar {
  height: 56px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; gap: 24px; position: sticky; top: 0; z-index: 50;
}
.brand { font-weight: 700; font-size: 15px; white-space: nowrap; }
.topnav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-btn {
  background: none; border: none; padding: 9px 18px; border-radius: var(--radius-nav); font-size: 16px; color: var(--text-muted); font-weight: 600;
}
.nav-btn:hover { background: var(--bg); }
.nav-btn.active { background: var(--primary); color: #fff; }
.user-box { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.link-btn { background: none; border: none; color: var(--primary); font-size: 13px; }

.main-content { padding: 24px; max-width: 1400px; margin: 0 auto; }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input[type=text], .toolbar select {
  padding: 7px 11px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  font-size: 13px;
  background: #eceef2;
  color: var(--text);
}
.toolbar input[type=text] { min-width: 220px; }
.toolbar input[type=text]::placeholder { color: #8b95a1; }
.toolbar input[type=text]:focus, .toolbar select:focus {
  outline: none;
  background: #fff;
  border-color: var(--border);
}
.toolbar-note { width: 100%; margin: -6px 0 14px; }
.spacer { flex: 1; }
.btn {
  padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 600; color: var(--text);
}
.btn:hover { background: var(--bg); }
.toolbar .btn:not(.btn-primary):not(.btn-danger) {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
  font-weight: 500;
}
.toolbar .btn:not(.btn-primary):not(.btn-danger):hover {
  background: #eceef2;
  color: var(--text);
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-danger { color: var(--danger); border-color: #f6c9c9; }
.btn-danger:hover { background: #fdeceb; }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* ---------- 대시보드: 구분(구축/구독) 아코디언 ---------- */
.biz-accordion { display: flex; flex-direction: column; gap: 8px; }
.biz-section { background: transparent; border: none; border-radius: var(--radius); overflow: hidden; }
.biz-header { display: flex; align-items: center; gap: 14px; padding: 12px 8px; cursor: pointer; user-select: none; }
.biz-header:hover { background: rgba(255,255,255,0.55); }
.biz-name { font-size: 16px; font-weight: 700; }
.biz-count { background: #e8eaee; color: var(--text-muted); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.biz-amount { font-size: 14.5px; font-weight: 700; color: var(--primary-dark); margin-left: auto; }
.biz-chevron { font-size: 12px; color: var(--text-muted); transition: transform 0.15s; }
.biz-section.open .biz-chevron { transform: rotate(180deg); }
.biz-body { display: none; padding: 0 4px 8px; border-top: none; }
.biz-section.open .biz-body { display: block; padding-top: 6px; }

/* ---------- Pipeline board ---------- */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.board-col {
  position: relative;
  background: var(--col-bg);
  border-radius: 0 0 8px 8px;
  padding: 12px 10px 10px;
  overflow: hidden;
}
.board-col::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--board-accent);
  border-radius: 0;
  pointer-events: none;
}
.board-col.stage-won::before { background: var(--success); }
.board-col.stage-lost::before { background: var(--danger); }
.board-col-header { cursor: pointer; user-select: none; min-height: 40px; }
.board-col h3 {
  font-size: 12.5px; margin: 2px 4px 2px; display: flex; justify-content: space-between; align-items: center;
  color: var(--text); font-weight: 700; gap: 6px; min-height: 20px;
}
.board-col h3 .stage-label-group { display: flex; align-items: center; gap: 6px; overflow: hidden; min-width: 0; }
.board-col h3 .stage-label-group > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-col h3 .count { background: rgba(255,255,255,0.75); border-radius: 20px; padding: 1px 9px; font-size: 11px; font-weight: 700; color: var(--text-muted); flex: none; }
.board-col h3 .col-chevron { font-size: 11px; color: var(--text-muted); transition: transform 0.15s; flex: none; }
.board-col.stage-open h3 .col-chevron { transform: rotate(180deg); }
.board-col .col-sum {
  font-size: 10.5px; color: var(--text-muted); margin: 0 4px 0;
  min-height: 16px; line-height: 16px;
}
.board-col-well {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 240ms ease-out;
}
.board-col.stage-open .board-col-well {
  grid-template-rows: 1fr;
}
.board-col-well-inner {
  overflow: hidden;
  min-height: 0;
}
.board-col-cards {
  display: flex; flex-direction: column; gap: var(--board-card-gap);
  max-height: var(--board-cards-max-h); overflow-y: auto; padding-right: 2px; margin-top: 10px;
}
.board-col .col-empty {
  text-align: left; color: #9aa3af; font-size: 11px; font-weight: 400;
  padding: 4px 4px 2px; letter-spacing: 0;
}
.board-col .col-more {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-align: center; padding: 6px 4px 2px;
}
.card {
  background: var(--card-bg); border-radius: 8px; padding: 12px; box-shadow: none;
  border: 1px solid var(--border); border-left: 3px solid var(--primary); cursor: pointer;
}
.card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(47,111,237,0.12); }
.card.won { border-left-color: var(--success); }
.card.lost { border-left-color: var(--danger); }
.card .card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin-bottom: 5px; }
.card .card-title {
  font-weight: 800; font-size: 13px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .card-customer { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .card-amount { font-size: 14.5px; font-weight: 800; color: var(--primary-dark); }
.card .card-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #8b95a1; gap: 6px; }
.card .card-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Table (list view) ---------- */
table.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table.data-table th, table.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); font-size: 13px; text-align: left; }
table.data-table th { background: #f8f9fb; color: var(--text-muted); font-weight: 600; font-size: 12px; }
table.data-table th.amt-h { white-space: normal; line-height: 1.25; font-size: 11px; vertical-align: bottom; overflow: visible; text-overflow: clip; }
table.data-table th:first-child { border-top-left-radius: var(--radius); }
table.data-table th:last-child { border-top-right-radius: var(--radius); }
table.data-table tbody tr:last-child td { border-bottom: none; }
table.data-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
table.data-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
table.data-table tbody tr:hover { background: #f7faff; cursor: pointer; }
table.data-table.static-rows tbody tr:hover { cursor: default; }
table.data-table td.cell-title,
table.data-table td.cell-title b { font-weight: 800; color: var(--text); }
table.data-table td.cell-amount { font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
table.data-table td.cell-meta,
table.data-table td.small-muted { color: #8b95a1; }
.stage-badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; background: #e8edfb; color: var(--primary-dark);
  white-space: nowrap;
}
.stage-badge.won { background: #e2f7ec; color: var(--success); }
.stage-badge.lost { background: #fbe9e9; color: var(--danger); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge.bb { background: #ddeeff; color: #1a50a0; }
.badge.bg { background: #dff5ea; color: #1a7a4a; }

/* ---------- Table column width control (긴 텍스트로 인한 컬럼 찌그러짐 방지) ---------- */
/* table-layout:fixed 상태에서 <col>에 px 폭을 주면 컨테이너 폭과 무관하게 그 합만큼 넓어져 버리므로
   반드시 %(비율) 단위로 지정해 뷰포트 폭에 맞춰 축소되도록 한다. */
table.data-table { table-layout: fixed; }
table.data-table td, table.data-table th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.data-table td.wrap-cell { white-space: normal; overflow-wrap: break-word; word-break: break-word; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,25,35,0.45); display: flex; align-items: flex-start; justify-content: center;
  padding: 36px 16px; overflow-y: auto; z-index: 100;
}
.modal {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  box-shadow: 0 12px 40px rgba(31, 39, 51, 0.14);
}
.modal-wide { max-width: 920px; }
.modal-xl { max-width: 1180px; }

/* ---------- 수익분석 문서 뷰 ---------- */
.pa-doc-title { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--text); }
.pa-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 20px; }
.pa-info-grid .full { grid-column: 1 / -1; }
.pa-info-item { display: flex; gap: 10px; padding: 9px 12px; background: #f8f9fb; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; align-items: baseline; }
.pa-info-label { color: var(--text-muted); font-weight: 700; flex: none; min-width: 108px; }
.pa-info-value { font-weight: 600; word-break: break-word; }
.pa-budget-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.pa-budget-side { display: flex; flex-direction: column; gap: 14px; }
table.pa-mini-table th { text-align: center; }
@media (max-width: 760px) {
  .pa-info-grid { grid-template-columns: 1fr; }
  .pa-budget-grid { grid-template-columns: 1fr; }
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 22px 16px; border-bottom: 1px solid var(--border); cursor: move;
}
.modal-header h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.icon-btn {
  background: none; border: none; width: 32px; height: 32px; border-radius: var(--radius);
  font-size: 16px; color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.icon-btn:hover { background: var(--bg); color: var(--text); }
.modal-body { padding: 22px 22px 28px; max-height: 78vh; overflow-y: auto; }
.modal-body .form-grid { gap: 16px; }
.modal-body .field label { margin-bottom: 6px; }
.modal-body .tabs { margin: 0 0 20px; }
.modal-body .section-title { margin: 20px 0 12px; }
.modal-body .tab-panel > .section-title:first-child,
.modal-body .section-title:first-child { margin-top: 0; }
body.modal-dragging, body.modal-dragging * { cursor: grabbing !important; user-select: none !important; }

/* ---------- 공통 확인 팝업 (등록/수정/삭제 전 재확인) ---------- */
.confirm-overlay { z-index: 300; align-items: center; }
.confirm-modal { max-width: 380px; }
.confirm-body { padding: 28px 26px 22px; text-align: center; }
.confirm-icon { font-size: 30px; margin-bottom: 10px; }
.confirm-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.confirm-message { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; white-space: pre-line; margin-bottom: 22px; }
.confirm-actions { display: flex; justify-content: center; gap: 10px; }
.confirm-actions .btn { min-width: 92px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit;
}
.field input.amount-input { text-align: right; }
.field textarea { resize: vertical; min-height: 60px; overflow: hidden; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 18px 0 16px; }
.tab-btn { background: none; border: none; padding: 8px 4px; margin-right: 18px; font-size: 13px; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid transparent; }
.tab-btn.active { color: var(--primary); border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Activity timeline */
.activity-item { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.activity-item .act-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.activity-type-badge { background: #eef1f6; padding: 2px 8px; border-radius: 12px; font-weight: 700; font-size: 11px; color: var(--text); }
.activity-item .act-content { font-size: 13px; white-space: pre-wrap; line-height: 1.5; }
.attach-list { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.attach-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #f2f5fa; border-radius: 20px; padding: 4px 10px; font-size: 12px; text-decoration: none; color: var(--text);
}
.attach-chip:hover { background: #e8edfb; }

/* Quote list */
.quote-row { border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.quote-row .q-info b { font-size: 13.5px; }
.quote-row .q-info .q-meta { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.vat-note { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--text-muted); }
.quote-total-row { text-align: right; margin-top: 14px; font-size: 15px; font-weight: 700; }
.quote-total-row .vat-note { font-weight: 500; }
.quote-status { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; background: #eef1f6; }
.quote-status.발송 { background: #fff4de; color: var(--warning); }
.quote-status.승인 { background: #e2f7ec; color: var(--success); }
.quote-status.거절 { background: #fbe9e9; color: var(--danger); }

/* Quote item editor */
table.item-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
table.item-table th, table.item-table td { border: 1px solid var(--border); padding: 6px 8px; font-size: 12.5px; }
table.item-table th { background: #f8f9fb; }
table.item-table input { width: 100%; border: none; padding: 4px; font-size: 12.5px; background: transparent; }
table.item-table input.amount-input { text-align: right; }
table.item-table input:focus { outline: 1px solid var(--primary); border-radius: 4px; }
.item-total-row td { font-weight: 700; background: #f8f9fb; }

/* ---------- Print quote ---------- */
.print-area { display: none; }
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { display: block; position: absolute; top: 0; left: 0; width: 100%; padding: 30px; }
}
.print-doc { font-family: "Malgun Gothic", "맑은 고딕", sans-serif; color: #111; }
.print-doc h1 { text-align: center; letter-spacing: 10px; font-size: 26px; margin-bottom: 24px; }
.print-doc .p-top { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 13px; }
.print-doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.print-doc table th, .print-doc table td { border: 1px solid #333; padding: 8px; }
.print-doc table th { background: #f0f0f0; }
.print-doc .p-parties { display: flex; gap: 20px; margin-bottom: 16px; }
.print-doc .p-party { flex: 1; border: 1px solid #333; padding: 10px; font-size: 12.5px; }
.print-doc .p-total { text-align: right; font-size: 16px; font-weight: 700; margin: 10px 0; }

/* Quick-add mini form (customer/contact inline creation) */
.mini-form { margin-top: 8px; padding: 10px; background: #f8f9fb; border: 1px solid var(--border); border-radius: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mini-form input { padding: 7px 9px; border: 1px solid var(--border); border-radius: 6px; font-size: 12.5px; flex: 1; min-width: 120px; }

.cust-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.cust-link:hover { text-decoration: underline; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.section-title { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.small-muted { font-size: 12px; color: var(--text-muted); }
.report-frame {
  width: 100%;
  min-height: 80vh;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

/* ---------- Settings (static panels; not clickable board cards) ---------- */
.settings-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  background: var(--bg);
}
.settings-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: none;
  cursor: default;
}
.settings-card:hover {
  border-color: var(--border);
  box-shadow: none;
}
.settings-card .form-actions { text-align: right; }
.settings-card .error-msg { margin-top: 4px; }
.stage-editor-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.stage-input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.settings-card #saveStagesBtn { margin-top: 10px; }
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.toggle-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }

/* ---------- 현황 (부서별 목표 대비 진행 현황) ---------- */
.status-page { display: flex; flex-direction: column; gap: 0; }
.status-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.status-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.status-card-total { background: #eef4ff; border-color: #c9dbff; }
.status-card-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.status-card-label small { font-weight: 500; }
.status-card-value { font-size: 26px; font-weight: 800; color: var(--text); margin-top: 6px; }
.status-card-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 8px; }
.status-pct-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: #eef0f3;
  color: var(--text-muted);
}
.status-pct-badge.status-pct-low { background: #fdeceb; color: var(--danger); }
.status-pct-badge.status-pct-mid { background: #fff3e0; color: var(--warning); }
.status-pct-badge.status-pct-high { background: #e7f6ec; color: var(--success); }
.status-pct-badge.status-pct-done { background: #e3efff; color: var(--primary-dark); }
