/* Commercial Report workspace — reuses cp-* classes, only workspace-scoped overrides here. */

#workspace-commercial-report {
  padding: 0;
  background: #f8fafc;
}

#workspace-commercial-report .cp-placeholder {
  background: #fff;
  border-radius: 12px;
  margin: 24px 32px;
  padding: 60px 32px;
}

/* Tab 1 — Commercial Overview */
.cr-overview {
  padding: 0;
}

.cr-overview-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cr-month-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.cr-month-picker {
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  background: #fff;
}

.cr-overview-meta {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

/* KPI MoM delta footer */
.cr-kpi-mom {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  flex-wrap: wrap;
}
.cr-delta {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cr-delta-up    { color: #059669; }
.cr-delta-down  { color: #dc2626; }
.cr-delta-flat  { color: #6b7280; }
.cr-delta-na    { color: #9ca3af; font-style: italic; }
.cr-mom-vs {
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

/* KPI value unit suffix (L, /L, etc.) */
.cp-kpi-value .cr-unit {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin-left: 2px;
}

/* Charts row */
.cr-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 1100px) {
  .cr-chart-grid { grid-template-columns: 1fr; }
}

.cr-chart-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cr-chart-title {
  margin: 0 0 10px;
  font-size: 12px;
  color: #1B2A4A;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.cr-chart-wrap {
  position: relative;
  height: 320px;
  flex: 1;
}

/* ─── Insights & Recommendations card ─────────────────────── */
.cr-insights-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cr-insights-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.cr-insights-title {
  font-size: 13px; font-weight: 700; color: #1B2A4A;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.cr-insights-meta {
  font-size: 10px; color: #94a3b8; font-style: italic;
}
.cr-insights-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 900px) {
  .cr-insights-grid { grid-template-columns: 1fr; }
}
.cr-insight-col {
  padding: 12px 14px; border-radius: 8px;
  background: #f8fafc; border-left: 3px solid #94a3b8;
}
.cr-insight-col.findings    { border-left-color: #10b981; background: #f0fdf4; }
.cr-insight-col.issues      { border-left-color: #ef4444; background: #fef2f2; }
.cr-insight-col.recommendations { border-left-color: #3b82f6; background: #eff6ff; }
.cr-insight-h {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
  margin-bottom: 8px; color: #1B2A4A;
}
.cr-insight-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 12px; line-height: 1.55; color: #334155;
}
.cr-insight-list li {
  position: relative; padding: 4px 0 4px 18px;
}
.cr-insight-list li::before {
  content: '•'; position: absolute; left: 4px; color: #94a3b8; font-weight: 700;
}
.cr-insight-col.findings .cr-insight-list li::before { color: #10b981; }
.cr-insight-col.issues .cr-insight-list li::before { color: #ef4444; }
.cr-insight-col.recommendations .cr-insight-list li::before { color: #3b82f6; }
.cr-insight-list li strong { color: #1B2A4A; }
.cr-insight-empty { color: #94a3b8; font-style: italic; font-size: 11px; padding: 4px 0; }

/* Full-width chart card spans both columns */
.cr-chart-card.full {
  grid-column: 1 / -1;
}
.cr-chart-card.full .cr-chart-wrap {
  height: 340px;
}

/* Top products horizontal bar chart — height set dynamically by JS based on row count */
.cr-chart-wrap-top10 {
  height: 460px;
}

/* Top products filters — Brand / Format / Variant, all multi-select pills */
.cr-tp-filters {
  display: flex; flex-direction: column; gap: 8px;
  margin: 4px 0 14px; padding: 10px 12px;
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px;
}
.cr-tp-row { display: flex; align-items: flex-start; gap: 10px; }
.cr-tp-lbl {
  flex: 0 0 60px; padding-top: 5px;
  font-size: 11px; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.cr-tp-pills { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
/* Variant can have many values — cap height and let it scroll */
.cr-tp-pills-variant { max-height: 104px; overflow-y: auto; }
.cr-tp-pill {
  padding: 4px 11px; font-size: 12px; font-weight: 600;
  color: #475569; background: #fff; border: 1px solid #cbd5e1;
  border-radius: 999px; cursor: pointer; transition: background .12s, color .12s, border-color .12s;
}
.cr-tp-pill:hover { border-color: #1e3a8a; color: #1e3a8a; }
.cr-tp-pill.active { background: #1e3a8a; border-color: #1e3a8a; color: #fff; }

/* Waterfall decomposition chart */
.cr-ov-decomp-wrap {
  height: 380px !important;
}

/* Waterfall drill panel — redesigned: Outlet is the hero, the 6 dimension charts
   are a compact secondary filter rail, active filters shown as removable chips. */
.cr-decomp-drill-body { padding: 8px; }

.cr-drill-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px;
}
.cr-drill-chips-lead { font-size: 11px; font-weight: 700; color: #1B2A4A; }
.cr-drill-chips-empty { font-size: 11px; color: #94a3b8; }
.cr-drill-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; font-size: 11px; font-weight: 600;
  color: #1e3a8a; background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 999px; cursor: pointer;
}
.cr-drill-chip:hover { background: #dbeafe; }
.cr-drill-chip-x { color: #64748b; font-weight: 700; }
.cr-drill-chip-all { color: #64748b; background: #f8fafc; border-color: #cbd5e1; }
.cr-drill-chip-all:hover { background: #f1f5f9; }

.cr-drill-cell {
  border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px; background: #fff;
}
.cr-drill-cell-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.cr-drill-cell-head h4 {
  margin: 0; font-size: 12px; font-weight: 700; color: #1B2A4A;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.cr-drill-sel {
  padding: 3px 6px; font-size: 11px; border: 1px solid #cbd5e1;
  border-radius: 4px; background: #fff; max-width: 150px;
}
.cr-drill-canvas { position: relative; min-height: 140px; }

/* Outlet hero — visually dominant, the default thing the user reads */
.cr-drill-hero {
  border: 2px solid #1e3a8a; box-shadow: 0 1px 3px rgba(30, 58, 138, 0.12);
  margin-bottom: 14px;
}
.cr-drill-hero .cr-drill-cell-head h4 { font-size: 13px; }
.cr-drill-hero-sub {
  font-size: 10px; font-weight: 500; color: #64748b;
  text-transform: none; letter-spacing: 0;
}
.cr-drill-canvas-hero { min-height: 280px; }
.cr-drill-count { font-size: 10px; color: #94a3b8; }

/* Split layout: LEFT = 6 filter mini-charts, RIGHT = sticky scrollable outlet list */
.cr-drill-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start;
}
.cr-drill-filters-label {
  font-size: 11px; color: #475569; font-weight: 600; margin: 0 0 8px;
}
.cr-drill-filters-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cr-drill-mini .cr-drill-canvas { min-height: 120px; }

/* Right column sticks while the page scrolls; its height is matched to the left
   filters grid in JS (syncDrillColumnHeights) and the outlet list scrolls inside. */
.cr-drill-right { position: sticky; top: 8px; display: flex; flex-direction: column; }
.cr-drill-right .cr-drill-hero {
  flex: 1 1 auto; min-height: 0; margin-bottom: 0;
  display: flex; flex-direction: column;
}
.cr-drill-outlet-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

@media (max-width: 900px) {
  .cr-drill-split { grid-template-columns: 1fr; }
  .cr-drill-filters-grid { grid-template-columns: 1fr; }
  .cr-drill-right { position: static; display: block; height: auto !important; }
  .cr-drill-right .cr-drill-hero { display: block; }
  .cr-drill-outlet-scroll { max-height: none; }
}

/* Customer health waterfall */
.cr-ov-cflow-wrap {
  height: 380px !important;
}

/* Tab 2 — Channel & Outlet */
.cr-co-top-wrap {
  height: 460px !important;
}

.cr-table-hint {
  font-size: 11px;
  color: #6b7280;
  font-weight: 400;
  margin-left: 6px;
}

.cr-table-wrap {
  max-height: 520px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.cr-outlet-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.cr-outlet-table thead th.cr-th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  padding: 9px 12px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.cr-outlet-table thead th.cr-th:hover {
  background: #f1f5f9;
}

.cr-outlet-table thead th.cr-th.sorted {
  background: #e0f2fe;
  color: #0369a1;
}

.cr-outlet-table tbody td {
  padding: 7px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  white-space: nowrap;
}

.cr-outlet-table tbody td .muted {
  color: #cbd5e1;
}

.cr-outlet-table tbody tr:hover { background: #f9fafb; }

.cr-outlet-table tbody td:nth-child(2) {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   Tab 3 — Brand & Product Portfolio
   ============================================================ */
.cr-chart-hint {
  margin: -6px 0 8px;
  font-size: 11px;
  color: #6b7280;
}

.cr-chart-footer {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #e5e7eb;
  font-size: 12px;
  color: #475569;
}

.cr-bp-brand-wrap {
  height: 320px !important;
}

/* ABC table */
.cr-abc-table-wrap {
  max-height: 320px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.cr-abc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.cr-abc-table thead th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
}
.cr-abc-table thead th.cr-num,
.cr-abc-table tbody td.cr-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cr-abc-table thead th.cr-abc-cls,
.cr-abc-table tbody td.cr-abc-cls {
  width: 36px;
  text-align: center;
  padding-right: 4px;
}
.cr-abc-table tbody td {
  padding: 6px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.cr-abc-table tbody tr:hover { background: #f9fafb; }

.cr-abc-badge {
  display: inline-block;
  width: 22px;
  height: 22px;
  line-height: 22px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  text-align: center;
}
.cr-abc-badge-A { background: #dc2626; }
.cr-abc-badge-B { background: #f97316; }
.cr-abc-badge-C { background: #94a3b8; }

.cr-abc-row.cr-abc-A td.cr-abc-sku { font-weight: 600; color: #1B2A4A; }
.cr-abc-row.cr-abc-C td { color: #6b7280; }

.cr-abc-sku {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.cr-abc-summary {
  font-size: 12px;
}

/* ============================================================
   Tab 4 — Geography & Sales Team Performance
   ============================================================ */
.cr-gt-heat-wrap {
  height: 540px;
}

.cr-gt-rpo-wrap {
  height: 540px;
}

.cr-gt-conc-wrap {
  height: 380px;
}

.cr-gt-growth-wrap {
  height: 540px;
}

.cr-gt-region-wrap {
  height: 540px;
}

/* Leaderboard table */
.cr-leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.cr-leaderboard-table thead th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  padding: 9px 12px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: left;
  white-space: nowrap;
}
.cr-leaderboard-table thead th.cr-num,
.cr-leaderboard-table tbody td.cr-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cr-leaderboard-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.cr-leaderboard-table tbody tr:hover { background: #f9fafb; }

.cr-leaderboard-table .cr-rank {
  font-weight: 700;
  color: #1B2A4A;
  font-size: 14px;
  width: 50px;
}
.cr-leaderboard-table tbody tr:nth-child(1) .cr-rank { color: #D4A843; }
.cr-leaderboard-table tbody tr:nth-child(2) .cr-rank { color: #94a3b8; }
.cr-leaderboard-table tbody tr:nth-child(3) .cr-rank { color: #b45309; }

.cr-sales-name strong {
  font-size: 13px;
  color: #1B2A4A;
}
.cr-sales-sub {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.cr-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.cr-status-ok   { background: #dcfce7; color: #166534; }
.cr-status-late { background: #fee2e2; color: #991b1b; }
.cr-status-na   { background: #f1f5f9; color: #64748b; }

.cr-leaderboard-table sup {
  color: #f59e0b;
  cursor: help;
  margin-left: 2px;
}

.cr-target-amt {
  color: #6b7280;
  font-weight: 400;
  font-size: 10px;
}

.cr-leaderboard-table tbody td .muted {
  color: #cbd5e1;
  font-style: italic;
}

.cr-th-sub {
  font-weight: 400;
  color: #94a3b8;
  font-size: 10px;
}

/* Toggle button for expandable charts */
.cr-toggle-btn {
  margin-left: 12px;
  padding: 4px 12px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
  color: #1B2A4A;
  cursor: pointer;
  vertical-align: middle;
  transition: all .15s ease;
  font-family: inherit;
}
.cr-toggle-btn:hover {
  background: #1B2A4A;
  color: #fff;
  border-color: #1B2A4A;
}
.cr-toggle-btn:active {
  transform: translateY(1px);
}

/* ============================================================
   Tab 5 — Target vs Actual tables
   ============================================================ */
.cr-ta-block {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px 12px;
}
.cr-ta-title {
  margin: 0 0 12px;
  font-size: 15px;
  color: #1B2A4A;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.cr-ta-wrap {
  overflow-x: auto;
}
.cr-ta-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.cr-ta-table thead th {
  background: #1B2A4A;
  color: #fff;
  padding: 10px 14px;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #0f1729;
  white-space: nowrap;
}
.cr-ta-table thead th.cr-num,
.cr-ta-table tbody td.cr-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cr-ta-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  white-space: nowrap;
}
.cr-ta-table tbody tr:nth-child(odd) td { background: #fafbfc; }
.cr-ta-table tbody tr:hover td { background: #f0f9ff !important; }

.cr-ta-key {
  font-weight: 600;
  color: #1B2A4A;
}
.cr-ta-table .cr-muted {
  color: #6b7280;
}
.cr-ta-table .cr-ta-total td {
  background: #1B2A4A !important;
  color: #fff !important;
  font-weight: 700;
  border-top: 2px solid #0f1729;
}
.cr-ta-table .cr-ta-total td.cr-muted { color: #cbd5e1 !important; }
.cr-ta-table .cr-ta-total td:first-child { letter-spacing: 0.5px; }

/* ============================================================
   Tab 3 YTD pivot — Ngành × Format × Tháng
   ============================================================ */
.cr-bp-pivot-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.cr-bp-pivot {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.cr-bp-pivot thead th {
  background: #1B2A4A;
  color: #fff;
  padding: 6px 10px;
  font-weight: 600;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid #0f1729;
  white-space: nowrap;
}
.cr-bp-pivot thead th.cr-pivot-rowlabel {
  text-align: left;
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 160px;
}
.cr-bp-pivot thead th.cr-pivot-sub-h {
  background: #2d3e5f;
  font-size: 11px;
  font-weight: 500;
}
.cr-bp-pivot thead th.cr-pivot-grand-h {
  background: #D4A843;
  color: #1B2A4A;
}
.cr-bp-pivot thead th.cr-pivot-month-h {
  letter-spacing: 0.5px;
}
.cr-bp-pivot tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid #f3f4f6;
  border-right: 1px solid #f3f4f6;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cr-bp-pivot tbody td.cr-pivot-rowlabel {
  text-align: left;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  font-weight: 500;
  border-right: 1px solid #e5e7eb;
}
.cr-bp-pivot tbody td.cr-num {
  text-align: right;
}
.cr-bp-pivot tbody td.cr-muted {
  color: #6b7280;
  font-size: 11px;
}
.cr-bp-pivot tbody tr:hover td {
  background: #f0f9ff;
}
.cr-bp-pivot tbody tr:hover td.cr-pivot-rowlabel {
  background: #e0f2fe;
}
.cr-bp-pivot tbody tr.cr-pivot-cat td {
  background: #e0f2fe;
  font-weight: 700;
  color: #1B2A4A;
  border-top: 1px solid #93c5fd;
}
.cr-bp-pivot tbody tr.cr-pivot-cat td.cr-pivot-rowlabel {
  background: #bae6fd;
}
.cr-bp-pivot tbody tr.cr-pivot-fmt td.cr-pivot-rowlabel {
  padding-left: 24px;
  font-weight: 500;
  color: #475569;
}
.cr-bp-pivot tbody td.cr-pivot-grand {
  background: #fef9e7 !important;
  font-weight: 600;
}
.cr-bp-pivot tbody tr.cr-pivot-total td {
  background: #1B2A4A !important;
  color: #fff !important;
  font-weight: 700;
  border-top: 2px solid #0f1729;
}
.cr-bp-pivot tbody tr.cr-pivot-total td.cr-pivot-rowlabel {
  background: #1B2A4A !important;
}

/* ── Customer Lifecycle: toggle Tháng/Quý/Năm ── */
.cr-cflow-toggle { display: inline-flex; gap: 4px; margin-left: 10px; vertical-align: middle; }
.cr-cflow-toggle button { border: 1px solid #cbd5e1; background: #fff; color: #475569; border-radius: 6px; padding: 3px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.cr-cflow-toggle button:hover { background: #eef2ff; }
.cr-cflow-toggle button.active { background: #1e3a8a; color: #fff; border-color: #1e3a8a; }

/* ── C.A / C.S drill (bấm cột Customer Lifecycle) ── */
.cacs-hint { font-size: 12.5px; color: #475569; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 8px 12px; margin-top: 8px; }
.cacs-panel { margin-top: 12px; }
.cacs-head { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 10px; }
.cacs-warn { font-size: 11px; color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 2px 8px; }
.cacs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.cacs-card { text-align: left; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.cacs-card:hover { border-color: #94a3b8; }
.cacs-card.active { border-color: #1e3a8a; box-shadow: 0 2px 8px rgba(30,58,138,.12); }
.cacs-card-l { font-size: 12px; color: #64748b; font-weight: 700; }
.cacs-card-v { font-size: 30px; font-weight: 800; line-height: 1.1; }
.cacs-card-s { font-size: 11px; color: #94a3b8; }
.cacs-h { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: #0f172a; }
.cacs-stage { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 6px; background: #fff; }
.cacs-stage > summary { cursor: pointer; padding: 8px 12px; font-size: 12.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; list-style: none; }
.cacs-stage > summary::-webkit-details-marker { display: none; }
.cacs-stage > summary:hover { background: #f8fafc; }
.cacs-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.cacs-desc { color: #64748b; font-weight: 400; }
.cacs-cnt { font-weight: 700; color: #0f172a; margin-left: auto; }
.cacs-act { font-size: 11px; color: #2563eb; background: #eff6ff; padding: 2px 8px; border-radius: 999px; width: 100%; margin-top: 2px; }
.cacs-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.cacs-tbl th, .cacs-tbl td { padding: 6px 10px; border-top: 1px solid #f1f5f9; text-align: left; }
.cacs-tbl th { background: #f8fafc; color: #475569; font-weight: 700; font-size: 11px; }
.cacs-tbl td.num, .cacs-tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.cacs-empty { font-size: 12px; color: #94a3b8; padding: 6px 2px; }
@media (max-width: 700px) { .cacs-cards { grid-template-columns: 1fr; } }

/* Phễu C.A + Strike rate theo sale (funnel-strike) */
.fs-summary { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: 13px; color: #334155; margin-bottom: 12px; padding: 9px 14px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.fs-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .fs-grid { grid-template-columns: 1fr; } }
.fs-conv { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 11.5px; color: #64748b; }
.fs-table { width: 100%; border-collapse: collapse; font-size: 12.5px; white-space: nowrap; }
.fs-table thead th { background: #f1f5f9; color: #334155; font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; padding: 7px 9px; border-bottom: 2px solid #e2e8f0; }
.fs-table tbody td { padding: 6px 9px; border-bottom: 1px solid #f1f5f9; }
.fs-table tbody tr:hover td { background: #f8fafc; }
.fs-table .num, .fs-table thead th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Drill Customer Lifecycle: pills lọc sale + 2 phễu C.A | C.S */
.fs-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fs-pill { padding: 5px 12px; font-size: 12px; font-weight: 600; border: 1px solid #d4d4d8; background: #fff; color: #475569; border-radius: 999px; cursor: pointer; transition: all .12s; }
.fs-pill:hover { border-color: #a78bfa; background: #faf5ff; }
.fs-pill.active { background: #4c1d95; border-color: #4c1d95; color: #fff; }
.fs-funnels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 800px) { .fs-funnels { grid-template-columns: 1fr; } }
.fs-funnel { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; }
.fs-funnel-head { font-size: 12.5px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.fs-funnel-foot { font-size: 11px; color: #64748b; margin-top: 8px; padding-top: 6px; border-top: 1px dashed #e2e8f0; }
