/* ============================================================
 * [dealListing26] — Sales dashboard
 * Scoped under .rcm-dl26
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

.rcm-dl26 {
  --rcm-bg:          #eef0ff;
  --rcm-bg-2:        #e7eaff;
  --rcm-surface:     #ffffff;
  --rcm-ink:         #1e2245;
  --rcm-ink-soft:    #3b3f6b;
  --rcm-muted:       #8b91b8;
  --rcm-line:        #ebedf8;
  --rcm-line-soft:   #f3f4fc;
  --rcm-accent:      #6366f1;
  --rcm-accent-2:    #4f46e5;
  --rcm-accent-soft: #c7d2fe;
  --rcm-accent-ghost:#eef0ff;
  --rcm-warm:        #f97316;
  --rcm-warm-soft:   #fed7aa;
  --rcm-success:     #10b981;
  --rcm-danger:      #ef4444;
  --rcm-warning:     #f59e0b;
  --rcm-shadow:      0 1px 2px rgba(30,34,69,0.03), 0 4px 14px rgba(99,102,241,0.07);
  --rcm-shadow-lg:   0 8px 24px rgba(99,102,241,0.10);
  --rcm-radius:      16px;
  --rcm-radius-md:   12px;
  --rcm-radius-sm:   8px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--rcm-ink);
  background: var(--rcm-bg);
  padding: 0.9rem;
  border-radius: var(--rcm-radius);
  font-size: 12.5px;
  line-height: 1.45;
}
.rcm-dl26 *, .rcm-dl26 *::before, .rcm-dl26 *::after { box-sizing: border-box; }
.rcm-dl26-loading { padding: 2rem; text-align: center; color: var(--rcm-muted); }
.rcm-dl26-error   { padding: 1rem; background: #fee2e2; color: #7f1d1d; border-radius: var(--rcm-radius-sm); }

/* ---------- header ---------- */
.rcm-dl26-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.85rem; flex-wrap: wrap; margin-bottom: 0.85rem;
}
.rcm-dl26-title {
  font-size: 1.25rem; font-weight: 700; margin: 0;
  letter-spacing: -0.02em; color: var(--rcm-ink);
}
.rcm-dl26-sub { font-size: 0.74rem; color: var(--rcm-muted); font-weight: 500; }
.rcm-dl26-header-right { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
.rcm-dl26-field {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; color: var(--rcm-muted); font-weight: 600;
}
.rcm-dl26-field select {
  padding: 0.45rem 1.8rem 0.45rem 0.85rem;
  border: 1px solid var(--rcm-line);
  border-radius: 999px; background: white;
  font-size: 0.82rem; font-family: inherit; font-weight: 600;
  color: var(--rcm-ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%237a7fa5' stroke-width='1.5' stroke-linecap='round' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
}
.rcm-dl26-range {
  display: inline-flex; background: white;
  border: 1px solid var(--rcm-line); border-radius: 999px;
  padding: 3px; gap: 2px;
}
.rcm-dl26-range button {
  border: none; background: transparent; padding: 0.4rem 1rem;
  font-size: 0.78rem; font-weight: 600; color: var(--rcm-muted);
  cursor: pointer; font-family: inherit; border-radius: 999px;
  transition: all 0.18s ease;
}
.rcm-dl26-range button:hover { color: var(--rcm-ink); }
.rcm-dl26-range button.is-on {
  background: var(--rcm-accent); color: white;
  box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}

/* ---------- buttons ---------- */
.rcm-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 1rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; font-weight: 600;
  font-size: 0.78rem; line-height: 1.2; transition: all 0.18s ease;
  font-family: inherit; background: transparent; color: inherit;
  text-decoration: none;
}
.rcm-btn:hover { text-decoration: none; }
.rcm-btn-primary  {
  background: var(--rcm-accent); color: white; border-color: var(--rcm-accent);
  box-shadow: 0 4px 12px rgba(79,70,229,0.25);
}
.rcm-btn-primary:hover { background: var(--rcm-accent-2); transform: translateY(-1px); }
.rcm-btn-outline  { background: white; color: var(--rcm-ink); border-color: var(--rcm-line); }
.rcm-btn-outline:hover { border-color: var(--rcm-accent); color: var(--rcm-accent); }

/* ---------- KPI strip ---------- */
.rcm-dl26-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem; margin-bottom: 0.75rem;
}
.rcm-kpi {
  background: var(--rcm-surface);
  border: 1px solid var(--rcm-line-soft);
  border-radius: var(--rcm-radius-md); padding: 0.7rem 0.85rem;
  box-shadow: var(--rcm-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rcm-kpi:hover { transform: translateY(-1px); box-shadow: var(--rcm-shadow-lg); }
.rcm-kpi-label {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--rcm-muted); font-weight: 600;
}
.rcm-kpi-value {
  font-size: 1.2rem; font-weight: 700; margin-top: 0.15rem;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  color: var(--rcm-ink);
}
.rcm-kpi-delta { margin-top: 0.18rem; font-size: 0.68rem; color: var(--rcm-muted); line-height: 1.35; }
.rcm-kpi-delta + .rcm-kpi-delta { margin-top: 0.06rem; }
.rcm-kpi-delta-tag {
  font-size: 0.6rem; color: var(--rcm-muted); margin-left: 0.15rem;
  letter-spacing: 0.02em;
}
.rcm-delta {
  display: inline-flex; align-items: center; gap: 0.15rem;
  padding: 0.08rem 0.42rem; border-radius: 999px; font-weight: 600; font-size: 0.62rem;
  margin-right: 0.25rem;
}
.rcm-delta-up   { background: #d1fae5; color: #047857; }
.rcm-delta-down { background: #fee2e2; color: #b91c1c; }

/* ---------- charts ---------- */
.rcm-dl26-charts {
  display: grid;
  grid-template-columns: 1.8fr 1.1fr 1fr;
  gap: 0.7rem; margin-bottom: 0.7rem;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .rcm-dl26-charts { grid-template-columns: 1fr; }
}
.rcm-chart-card {
  background: var(--rcm-surface);
  border: 1px solid var(--rcm-line-soft);
  border-radius: var(--rcm-radius-md); padding: 0.8rem 0.9rem;
  box-shadow: var(--rcm-shadow);
  display: flex; flex-direction: column; min-width: 0;
}
.rcm-chart-card h6 {
  margin: 0; font-size: 0.82rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--rcm-ink);
  text-transform: none;
}
.rcm-chart-card .rcm-chart-canvas-wrap {
  position: relative; width: 100%; flex: 1; min-height: 0;
  margin-top: 0.4rem;
}
.rcm-chart-card .rcm-chart-canvas-wrap canvas {
  width: 100% !important; height: 100% !important;
}
.rcm-chart-card.rcm-chart-wide .rcm-chart-canvas-wrap { height: 240px; }
.rcm-chart-card.rcm-chart-donut-card {
  align-items: stretch;
}
.rcm-chart-card.rcm-chart-donut-card .rcm-chart-donut-wrap {
  width: 100%; max-width: 220px; margin: 0.4rem auto 0;
  aspect-ratio: 1 / 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.rcm-chart-card.rcm-chart-donut-card .rcm-chart-donut-wrap canvas {
  width: 100% !important; height: 100% !important;
}

/* ---------- Quick deal search (under the donut) ---------- */
.rcm-deal-search { position: relative; margin-top: 0.65rem; }
.rcm-deal-search-input-wrap {
  position: relative;
  background: var(--rcm-bg);
  border: 1px solid var(--rcm-line-soft);
  border-radius: 999px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.rcm-deal-search-input-wrap:focus-within {
  border-color: var(--rcm-accent-soft); background: white;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.10);
}
.rcm-deal-search-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--rcm-muted); font-size: 0.75rem; pointer-events: none;
}
#rcm-dl26-deal-search {
  width: 100%; border: none; background: transparent; outline: none;
  padding: 0.5rem 0.85rem 0.5rem 2.1rem;
  font-size: 0.78rem; font-family: inherit; color: var(--rcm-ink);
  border-radius: 999px;
}
#rcm-dl26-deal-search::placeholder { color: var(--rcm-muted); }
.rcm-deal-search-results {
  position: absolute; top: calc(100% + 0.35rem); left: 0; right: 0;
  background: white; border: 1px solid var(--rcm-line);
  border-radius: var(--rcm-radius-sm);
  box-shadow: 0 8px 24px rgba(30,34,69,0.10);
  z-index: 20; max-height: 340px; overflow-y: auto;
}
.rcm-deal-search-row {
  display: flex; flex-direction: column; gap: 0.15rem;
  padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--rcm-line-soft);
  text-decoration: none; color: inherit;
}
.rcm-deal-search-row:last-child { border-bottom: none; }
.rcm-deal-search-row:hover { background: var(--rcm-accent-ghost); }
.rcm-deal-search-name {
  font-size: 0.8rem; font-weight: 600; color: var(--rcm-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rcm-deal-search-meta {
  display: flex; gap: 0.65rem; align-items: center;
  font-size: 0.68rem; color: var(--rcm-muted);
}
.rcm-deal-search-price {
  margin-left: auto; font-weight: 600; color: var(--rcm-ink); font-variant-numeric: tabular-nums;
}
.rcm-deal-search-empty {
  padding: 0.7rem 0.85rem; font-size: 0.75rem; color: var(--rcm-muted); text-align: center;
}

/* ---------- Top Salespeople pane (inline list) ---------- */
.rcm-reps-pane { margin-top: 0.5rem; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rcm-reps-summary {
  display: flex; gap: 0.7rem; flex-wrap: wrap;
  font-size: 0.68rem; color: var(--rcm-muted); font-weight: 500;
  padding: 0 0 0.4rem; border-bottom: 1px dashed var(--rcm-line);
  margin-bottom: 0.45rem;
}
.rcm-reps-summary strong { color: var(--rcm-ink); font-weight: 700; }
.rcm-rep-list { display: flex; flex-direction: column; gap: 0.35rem; }
.rcm-rep-row {
  display: grid;
  grid-template-columns: 16px 30px 1fr;
  gap: 0.55rem; align-items: center;
  padding: 0.35rem 0.4rem;
  border-radius: var(--rcm-radius-sm);
  color: inherit;
}
.rcm-rep-rank { font-size: 0.66rem; font-weight: 700; color: var(--rcm-muted); text-align: center; }
.rcm-rep-avatar {
  width: 30px; height: 30px; border-radius: 8px;
  overflow: hidden; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--rcm-bg);
  box-shadow: inset 0 0 0 1px var(--rcm-line-soft);
}
.rcm-rep-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.rcm-rep-avatar-initials {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em; border-radius: 8px;
}
.rcm-rep-body { min-width: 0; }

/* ---------- Stacked rep avatars on deal rows ---------- */
.rcm-deal-customer { display: inline-flex; align-items: center; gap: 0.4rem; }
.rcm-deal-name-stack { display: inline-flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.rcm-deal-name-primary { font-weight: 600; }
.rcm-deal-name-sub { font-size: 0.7rem; color: var(--rcm-muted, #8b91b8); font-weight: 500; }
.rcm-rep-stack { display: inline-flex; align-items: center; flex-shrink: 0; }
.rcm-rep-chip {
  position: relative;
  width: 22px; height: 22px; border-radius: 6px; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rcm-bg);
  box-shadow: 0 0 0 1.5px #fff, 0 1px 2px rgba(30,34,69,0.12);
  flex: 0 0 auto;
}
.rcm-rep-chip + .rcm-rep-chip { margin-left: -8px; }
.rcm-rep-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcm-rep-chip-initials {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 700; letter-spacing: 0.03em;
}
.rcm-rep-chip-more {
  background: var(--rcm-line); color: var(--rcm-ink-soft);
  font-size: 0.55rem; font-weight: 700;
}
.rcm-rep-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.rcm-rep-name { font-size: 0.78rem; font-weight: 600; color: var(--rcm-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcm-rep-val { font-size: 0.78rem; font-weight: 700; color: var(--rcm-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcm-rep-bar-wrap {
  position: relative; height: 5px; background: var(--rcm-line-soft);
  border-radius: 999px; overflow: hidden; margin-top: 0.25rem;
}
.rcm-rep-bar { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; transition: width 0.35s ease; }
.rcm-rep-sub { display: block; font-size: 0.65rem; color: var(--rcm-muted); margin-top: 0.18rem; font-weight: 500; }
.rcm-reps-empty { padding: 1.2rem 0; text-align: center; color: var(--rcm-muted); font-size: 0.8rem; }

/* ---------- cards (sections) ---------- */
.rcm-dl26-card {
  background: var(--rcm-surface);
  border: 1px solid var(--rcm-line-soft);
  border-radius: var(--rcm-radius-md); padding: 0.85rem 1rem;
  box-shadow: var(--rcm-shadow); margin-bottom: 0.7rem;
}
.rcm-dl26-card-title {
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: -0.01em; color: var(--rcm-ink);
  margin: 0 0 0.55rem; padding-bottom: 0;
  border-bottom: none;
  text-transform: none;
}
.rcm-dl26-card-head-with-action {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.rcm-dl26-card-head-with-action .rcm-dl26-card-title { margin: 0; border: none; padding: 0; }

/* ---------- table base ---------- */
.rcm-table {
  width: 100%; border-collapse: collapse; font-size: 0.82rem;
}
.rcm-table thead th {
  background: var(--rcm-bg); color: var(--rcm-muted);
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em;
  font-weight: 700; text-align: left;
  padding: 0.4rem 0.55rem; border-bottom: 1px solid var(--rcm-line); white-space: nowrap;
  cursor: default; user-select: none;
}
.rcm-table thead th[data-s] { cursor: pointer; }
.rcm-table thead th[data-s]:hover { color: var(--rcm-ink); }
.rcm-table tbody td {
  padding: 0.42rem 0.55rem; border-bottom: 1px solid var(--rcm-line);
}
.rcm-table tbody tr:hover { background: #f8fafc; }
.rcm-table .num, .rcm-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rcm-table .rcm-empty { text-align: center; color: var(--rcm-muted); padding: 1.2rem; }
.rcm-row-total { background: #f1f5f9 !important; font-weight: 700; }
.rcm-table-compact { font-size: 0.78rem; }
.rcm-table-compact thead th { padding: 0.3rem 0.45rem; font-size: 0.58rem; }
.rcm-table-compact tbody td { padding: 0.3rem 0.45rem; }

/* ---------- deal list ---------- */
.rcm-dl26-search {
  padding: 0.4rem 0.7rem; border: 1px solid var(--rcm-line);
  border-radius: var(--rcm-radius-sm); background: white;
  font-size: 0.88rem; font-family: inherit; min-width: 280px;
}
.rcm-dl26-search:focus { outline: none; border-color: var(--rcm-accent); }
.rcm-deals-table .rcm-deal-row { cursor: default; }
.rcm-deal-cust a { color: var(--rcm-accent); text-decoration: none; font-weight: 600; }
.rcm-deal-cust a:hover { text-decoration: underline; }
.rcm-deal-initials {
  display: inline-block; padding: 0.05rem 0.35rem; margin-left: 0.3rem;
  background: var(--rcm-bg); border-radius: 4px;
  font-size: 0.66rem; font-weight: 700; color: var(--rcm-muted);
}
.rcm-deal-date { white-space: nowrap; }
.rcm-deal-pkg { font-weight: 600; }
.rcm-deal-ic {
  font-size: 0.72rem; margin-left: 0.2rem; color: var(--rcm-accent);
}
.rcm-deal-ic-img { max-height: 14px; vertical-align: middle; margin-left: 0.25rem; }
.rcm-deal-ic-muted { color: var(--rcm-muted); }
.rcm-deal-ic-warn  { color: var(--rcm-warning); }
.rcm-deal-ic-good  { color: var(--rcm-success); }
/* Orange square TODO marker: "I" = needs invoice attached, "P" = needs PO attached. */
.rcm-deal-ic-todo {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 16px; height: 16px;
  margin-left: 0.25rem;
  background: #f97316;
  color: #fff;
  font-size: 0.65rem; font-weight: 800; line-height: 1;
  border-radius: 3px;
  vertical-align: middle;
  cursor: help;
}
.rcm-margin-good { color: var(--rcm-success); font-weight: 700; }
.rcm-margin-ok   { color: var(--rcm-ink); }
.rcm-margin-low  { color: var(--rcm-warning); font-weight: 700; }
.rcm-margin-neg  { color: var(--rcm-danger);  font-weight: 700; background: #fee2e2; }
.rcm-dl26-deals-count {
  padding: 0.4rem 0; font-size: 0.75rem; color: var(--rcm-muted); text-align: right;
}

/* ---------- monthly breakdown (collapsible) ---------- */
.rcm-month-list { display: flex; flex-direction: column; gap: 0.5rem; }
.rcm-month-row {
  border: 1px solid #d6dafb;
  border-radius: var(--rcm-radius-md);
  background: var(--rcm-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rcm-month-row:hover { border-color: var(--rcm-accent-soft); }
.rcm-month-row[open] { box-shadow: var(--rcm-shadow); border-color: var(--rcm-accent-soft); }

/* Summary row: grid so columns align across every month card. */
.rcm-month-summary {
  display: grid;
  grid-template-columns:
    minmax(140px, 1.1fr)    /* month name */
    minmax(80px, 0.7fr)     /* deals */
    minmax(80px, 0.7fr)     /* printers */
    minmax(180px, 1.6fr)    /* sales + delta */
    minmax(140px, 1.3fr)    /* net profit */
    36px;                   /* chevron */
  align-items: center;
  gap: 1.25rem;
  padding: 0.95rem 1.2rem; cursor: pointer; list-style: none;
  user-select: none;
}

/* MTD / YTD comparison strip at the top of the Monthly Breakdown card.
   4 blocks (Printers MTD, Laminators MTD, Printers YTD, Laminators YTD),
   each carrying up to 5 years of data (current bold + 4 prior muted). */
.rcm-mtd-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.95rem;
  background: linear-gradient(180deg, #f8f9fe 0%, #f3f4fc 100%);
  border: 1px solid #ebedf8;
  border-radius: var(--rcm-radius-md);
}
.rcm-mtd-compare-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rcm-mtd-block {
  display: flex; flex-direction: column; gap: 0.35rem; min-width: 0;
  padding: 0.35rem 0.55rem;
  background: rgba(255,255,255,0.6);
  border-radius: 8px;
}
.rcm-mtd-label {
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--rcm-muted); font-weight: 700; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.rcm-mtd-years { display: flex; align-items: flex-end; gap: 0.85rem; flex-wrap: wrap; }
/* Each year cell stacks vertically: year label on top, number below. */
.rcm-mtd-current, .rcm-mtd-prev {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.12rem;
  font-variant-numeric: tabular-nums;
}
.rcm-mtd-current strong {
  font-size: 1.3rem; font-weight: 700; color: var(--rcm-accent); line-height: 1;
}
.rcm-mtd-prev .rcm-mtd-prev-val {
  font-size: 0.9rem; font-weight: 600; color: #6b7196; line-height: 1;
}
.rcm-mtd-current small,
.rcm-mtd-prev small {
  font-size: 0.58rem; font-weight: 700; color: var(--rcm-muted);
  letter-spacing: 0.05em; text-transform: uppercase;
}

/* Same-month 5-year compare table inside an expanded past month. */
.rcm-mcmp {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, #f8f9fe 0%, #f3f4fc 100%);
  border: 1px solid #ebedf8;
  border-radius: var(--rcm-radius-md);
}
.rcm-mcmp-title {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--rcm-muted); font-weight: 700; margin-bottom: 0.45rem;
}
.rcm-mcmp-table {
  width: 100%; border-collapse: collapse;
  font-variant-numeric: tabular-nums; font-size: 0.85rem;
}
.rcm-mcmp-table thead th {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--rcm-muted);
  padding: 0.2rem 0.5rem; text-align: right;
  border-bottom: 1px solid #e2e6f7;
}
.rcm-mcmp-table thead th:first-child { text-align: left; }
.rcm-mcmp-table tbody th {
  text-align: left; font-weight: 600; color: var(--rcm-ink);
  padding: 0.4rem 0.5rem 0.4rem 0; font-size: 0.78rem;
}
.rcm-mcmp-table tbody td {
  padding: 0.4rem 0.5rem; text-align: right;
  border-top: 1px solid #f0f1fa;
}
.rcm-mcmp-table .rcm-mcmp-cur {
  color: var(--rcm-accent); font-weight: 700;
}
.rcm-mcmp-table .rcm-mcmp-prev {
  color: #6b7196; font-weight: 600;
}
.rcm-month-summary::-webkit-details-marker { display: none; }
.rcm-month-name {
  font-weight: 700; color: var(--rcm-ink);
  font-size: 0.95rem; letter-spacing: -0.01em;
}
/* Each metric cell renders as label + value vertically for clarity. */
.rcm-month-cell { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.rcm-month-cell-label {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--rcm-muted); font-weight: 600;
}
.rcm-month-cell-value {
  font-size: 0.92rem; color: var(--rcm-ink); font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 0.4rem;
  white-space: nowrap;
}
.rcm-month-chev {
  color: var(--rcm-muted); transition: transform 0.15s ease;
  justify-self: end;
}
.rcm-month-row[open] .rcm-month-chev { transform: rotate(180deg); color: var(--rcm-accent); }
.rcm-month-row[open] .rcm-month-summary { border-bottom: 1px solid var(--rcm-line-soft); }

.rcm-month-body { padding: 1.1rem 1.25rem; }
.rcm-month-expanded { display: flex; flex-direction: column; gap: 0.9rem; }
.rcm-month-reps {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.rcm-month-rep {
  background: var(--rcm-accent-ghost);
  border: 1px solid transparent;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  font-size: 0.78rem; color: var(--rcm-ink-soft); font-weight: 500;
}
.rcm-month-rep strong { color: var(--rcm-ink); font-weight: 700; }

/* Roomier deal table inside the expanded month. Customer column gets the
 * lion's share; metric columns are tight; the right edge breathes. */
.rcm-month-deals { padding-top: 0.1rem; }
.rcm-month-deals-table { table-layout: fixed; }
.rcm-month-deals-table thead th { font-size: 0.6rem; padding: 0.35rem 0.85rem; }
.rcm-month-deals-table tbody td { padding: 0.32rem 0.85rem; font-size: 0.76rem; line-height: 1.35; }
.rcm-month-deals-table th:nth-child(1) { width: 50%; }
.rcm-month-deals-table th:nth-child(2) { width: 14%; }
.rcm-month-deals-table th:nth-child(3) { width: 16%; }
.rcm-month-deals-table th:nth-child(4),
.rcm-month-deals-table th:nth-child(5) { width: 10%; }
.rcm-month-deals-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 1024px) {
  .rcm-month-summary {
    grid-template-columns: minmax(120px, 1fr) repeat(4, minmax(0, 1fr)) 28px;
    gap: 0.85rem; padding: 0.8rem 1rem;
  }
  .rcm-month-deals-table th:nth-child(1) { width: 40%; }
}

/* ---------- collapsible accordion (packages / pse) ---------- */
.rcm-card-collapsible { padding: 0; }
.rcm-accordion > .rcm-accordion-summary {
  display: flex; align-items: center; gap: 0.85rem;
  list-style: none; cursor: pointer; padding: 1rem 1.25rem;
  user-select: none;
}
.rcm-accordion > .rcm-accordion-summary::-webkit-details-marker { display: none; }
.rcm-accordion-title { margin: 0; padding: 0; border: none; flex: 1; }
.rcm-accordion-chev { color: var(--rcm-muted); transition: transform 0.15s ease; }
.rcm-accordion[open] .rcm-accordion-chev { transform: rotate(180deg); color: var(--rcm-accent); }
.rcm-accordion[open] > .rcm-accordion-summary { border-bottom: 1px solid var(--rcm-line-soft); }
.rcm-section-body { padding: 1rem 1.25rem; }
.rcm-pkg-scroll { overflow-x: auto; }
.rcm-pse-totals { padding: 0.4rem 0; font-size: 0.85rem; color: var(--rcm-muted); margin-bottom: 0.5rem; }
.rcm-pse-totals strong { color: var(--rcm-ink); }

/* ---------- legend ---------- */
.rcm-legend summary {
  list-style: none; cursor: pointer; color: var(--rcm-muted);
  font-size: 0.8rem; display: inline-flex; align-items: center; gap: 0.4rem;
}
.rcm-legend summary::-webkit-details-marker { display: none; }
.rcm-legend-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.4rem; margin-top: 0.6rem;
  font-size: 0.8rem; color: var(--rcm-muted);
}
.rcm-legend-grid div { display: flex; align-items: center; gap: 0.4rem; }

/* ============================================================
 * NEW WIDGETS: leaderboard, packages, PSE multi-year
 * ============================================================ */

/* ---------- Chart-card heads with metric toggles ---------- */
.rcm-chart-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; margin-bottom: 0; flex-wrap: wrap;
}
.rcm-chart-head h6 { margin: 0; }
.rcm-chart-toggle {
  display: inline-flex; background: var(--rcm-bg);
  border: 1px solid var(--rcm-line-soft);
  border-radius: 999px; padding: 2px; gap: 1px;
}
.rcm-chart-toggle button {
  border: none; background: transparent;
  padding: 0.22rem 0.65rem; font-size: 0.66rem; font-weight: 600;
  color: var(--rcm-muted); cursor: pointer; font-family: inherit;
  border-radius: 999px; transition: all 0.18s ease;
}
.rcm-chart-toggle button:hover { color: var(--rcm-ink); }
.rcm-chart-toggle button.is-on {
  background: var(--rcm-accent); color: white;
  box-shadow: 0 2px 6px rgba(99,102,241,0.25);
}

/* ---------- Salesperson leaderboard (graph-driven) ---------- */
.rcm-leader-list { display: flex; flex-direction: column; gap: 0.55rem; }
.rcm-leader-row {
  display: grid;
  grid-template-columns: 36px 160px 1fr auto;
  align-items: center; gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--rcm-line-soft);
  border-radius: var(--rcm-radius-md); background: white;
  text-decoration: none; color: inherit;
  transition: all 0.18s ease;
}
.rcm-leader-row:hover {
  border-color: var(--rcm-accent-soft);
  transform: translateX(2px);
  box-shadow: var(--rcm-shadow);
}
.rcm-leader-rank {
  font-size: 0.85rem; font-weight: 700; color: var(--rcm-muted);
  text-align: center;
}
.rcm-leader-name { font-weight: 600; color: var(--rcm-ink); }
.rcm-leader-bar-wrap {
  position: relative; height: 32px; background: var(--rcm-bg);
  border-radius: 999px; overflow: hidden;
}
.rcm-leader-bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 999px;
  transition: width 0.35s ease;
}
.rcm-leader-bar-val {
  position: absolute; right: 0.85rem; top: 50%; transform: translateY(-50%);
  font-size: 0.8rem; font-weight: 700; color: var(--rcm-ink);
  font-variant-numeric: tabular-nums;
}
.rcm-leader-meta {
  display: flex; gap: 0.5rem; font-size: 0.72rem; color: var(--rcm-muted);
  white-space: nowrap;
}
.rcm-leader-meta > * {
  background: var(--rcm-accent-ghost); padding: 0.25rem 0.6rem;
  border-radius: 999px; font-weight: 500;
}
.rcm-lead-deals strong, .rcm-lead-avg strong, .rcm-lead-comm strong {
  color: var(--rcm-ink); font-weight: 600;
}
.rcm-lead-comm-hidden { opacity: 0.4; font-style: italic; }
.rcm-leader-totals {
  display: flex; gap: 0.7rem; font-size: 0.8rem; color: var(--rcm-muted);
  font-weight: 500;
}
.rcm-leader-totals strong { color: var(--rcm-ink); font-weight: 600; }

/* ---------- Package Sales widget ---------- */
#rcm-dl26-packages-section { padding: 0.9rem 1.1rem; }

/* Top sellers strip */
.rcm-pkg-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.rcm-pkg-top-card {
  position: relative; background: var(--rcm-surface);
  border: 1px solid var(--rcm-line-soft); border-radius: var(--rcm-radius-md);
  padding: 0.85rem 0.95rem 1.4rem;
  overflow: hidden;
  box-shadow: var(--rcm-shadow);
}
.rcm-pkg-top-rank {
  position: absolute; top: 0.4rem; right: 0.5rem;
  width: 24px; height: 24px; border-radius: 999px;
  color: white; font-size: 0.7rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.rcm-pkg-top-name {
  font-size: 0.8rem; font-weight: 700; padding-right: 32px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rcm-pkg-top-val {
  font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums;
  margin-top: 0.2rem; color: var(--rcm-ink);
}
.rcm-pkg-top-label {
  font-size: 0.66rem; color: var(--rcm-muted); margin-top: 0.05rem;
}
.rcm-pkg-top-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
}

/* Stacked-bar chart */
.rcm-pkg-chart-wrap { margin-bottom: 0.85rem; }
.rcm-pkg-chart-wrap canvas { height: 220px !important; width: 100% !important; }

/* Heat map */
.rcm-pkg-heatmap-scroll { overflow-x: auto; }
.rcm-pkg-heatmap {
  font-size: 0.74rem; min-width: 720px;
}
.rcm-pkg-heatmap thead th { padding: 0.32rem 0.4rem; }
.rcm-pkg-heatmap .rcm-pkg-name-col {
  text-align: left; white-space: nowrap; min-width: 180px;
}
.rcm-pkg-heatmap .rcm-pkg-cell {
  padding: 0.3rem 0.4rem; transition: background 0.15s ease;
}
.rcm-pkg-heatmap .rcm-pkg-cell:empty {
  background: transparent !important;
}
.rcm-pkg-heatmap .rcm-pkg-row-top td {
  font-weight: 600;
}
.rcm-pkg-rank {
  display: inline-block;
  background: var(--rcm-accent); color: white;
  width: 18px; height: 18px; border-radius: 999px;
  font-size: 0.6rem; font-weight: 800;
  text-align: center; line-height: 18px;
  margin-right: 0.4rem;
}
.rcm-pkg-heatmap .rcm-pkg-total-col {
  background: var(--rcm-bg) !important; font-weight: 700;
}

/* ---------- PSE Printer widget ---------- */
.rcm-pse-years {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.85rem;
}
.rcm-pse-year-pill {
  border: 1px solid var(--rcm-line-soft); background: white;
  padding: 0.4rem 0.95rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  color: var(--rcm-muted); font-family: inherit;
  transition: all 0.18s ease;
}
.rcm-pse-year-pill:hover { border-color: var(--rcm-accent); color: var(--rcm-accent); }
.rcm-pse-year-pill.is-on {
  background: var(--rcm-accent); color: white; border-color: var(--rcm-accent);
  box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}
.rcm-pse-year-pill.is-current { box-shadow: 0 0 0 3px rgba(79,70,229,0.18); }

.rcm-pse-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem; margin-bottom: 0.85rem;
}
.rcm-pse-kpi {
  background: white; border: 1px solid var(--rcm-line-soft);
  border-left: 4px solid var(--rcm-accent);
  border-radius: var(--rcm-radius-md);
  padding: 0.75rem 0.95rem;
  box-shadow: var(--rcm-shadow);
}
.rcm-pse-kpi-year {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--rcm-muted); font-weight: 700;
}
.rcm-pse-kpi-deals, .rcm-pse-kpi-sales, .rcm-pse-kpi-np {
  font-size: 0.78rem; margin-top: 0.1rem;
}
.rcm-pse-kpi-deals strong, .rcm-pse-kpi-sales strong, .rcm-pse-kpi-np strong {
  font-variant-numeric: tabular-nums; color: var(--rcm-ink);
}
.rcm-pse-kpi-np strong { color: var(--rcm-success); }

.rcm-pse-chart-wrap { margin-bottom: 0.85rem; }
.rcm-pse-chart-wrap canvas { height: 240px !important; width: 100% !important; }

.rcm-pse-month-title {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--rcm-muted); font-weight: 700;
  margin: 0.5rem 0 0.3rem;
}

/* ============================================================
 * RESPONSIVE — phone / small tablet
 * ============================================================ */

/* Every table inside the dashboard wraps in a horizontal-scroll container
 * so columns never overflow off-screen. */
.rcm-dl26 .rcm-table {
  display: table; width: 100%;
}
.rcm-dl26 .rcm-table tbody td,
.rcm-dl26 .rcm-table thead th { white-space: nowrap; }

/* Mobile-only horizontal scroll wrapper for tables that have many columns.
 * On desktop the tables stay as normal full-width tables. */
@media (max-width: 720px) {
  .rcm-dl26 :is(section, .rcm-dl26-card) > .rcm-table,
  .rcm-dl26 .rcm-section-body > .rcm-table,
  .rcm-dl26 .rcm-section-body .rcm-pkg-scroll > .rcm-table,
  .rcm-dl26 .rcm-month-body .rcm-table,
  .rcm-dl26 #rcm-dl26-deals-table > .rcm-table {
    display: block; max-width: 100%; overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Charts: stack earlier on tablet, single-col on phone */
@media (max-width: 1024px) {
  .rcm-dl26-charts { grid-template-columns: 1fr; }
}

/* ---------- Phone ≤ 720px ---------- */
@media (max-width: 720px) {
  .rcm-dl26 {
    padding: 0.6rem; font-size: 13px;
    border-radius: 0;
  }

  /* Header: stack title above filters; filters wrap */
  .rcm-dl26-header { gap: 0.6rem; margin-bottom: 0.7rem; }
  .rcm-dl26-title  { font-size: 1.2rem; }
  .rcm-dl26-sub    { font-size: 0.75rem; }
  .rcm-dl26-header-right { width: 100%; justify-content: flex-start; }
  .rcm-dl26-field, .rcm-dl26-range, #rcm-dl26-export { width: auto; }
  .rcm-dl26-range button { padding: 0.4rem 0.65rem; font-size: 0.78rem; }
  #rcm-dl26-export { font-size: 0.78rem; padding: 0.4rem 0.7rem; }

  /* KPI strip: 2 columns on phone */
  .rcm-dl26-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .rcm-kpi { padding: 0.55rem 0.65rem; }
  .rcm-kpi-value { font-size: 1.05rem; }
  .rcm-kpi-label { font-size: 0.6rem; }
  .rcm-kpi-delta { font-size: 0.66rem; }

  /* Cards: tighter padding */
  .rcm-dl26-card { padding: 0.65rem 0.7rem; margin-bottom: 0.6rem; }
  .rcm-dl26-card-title { font-size: 0.7rem; }
  .rcm-dl26-card-head-with-action { flex-direction: column; align-items: stretch; }

  /* Chart cards: shorter on phone */
  .rcm-chart-card { padding: 0.6rem; }
  .rcm-chart-card.rcm-chart-wide .rcm-chart-canvas-wrap,
  .rcm-chart-card.rcm-chart-reps-card .rcm-chart-canvas-wrap { height: 240px; }
  .rcm-chart-card.rcm-chart-donut-card .rcm-chart-donut-wrap { max-width: 260px; }
  .rcm-chart-card h6 { font-size: 0.65rem; }

  /* Monthly breakdown on phone: row 1 = name + chevron; row 2 = all three
   * metric cells in a tight 3-column row. */
  .rcm-month-summary {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    grid-template-areas:
      "name name chev"
      "c1   c2   chev"
      "c3   c4   chev";
    column-gap: 0.6rem; row-gap: 0.4rem;
    padding: 0.7rem 0.85rem;
    align-items: center;
  }
  /* Children order: 1=name, 2=Deals, 3=Printers, 4=Revenue, 5=NP/Avg, 6=chevron. */
  .rcm-month-summary > :nth-child(1) { grid-area: name; }
  .rcm-month-summary > :nth-child(2) { grid-area: c1; }
  .rcm-month-summary > :nth-child(3) { grid-area: c2; }
  .rcm-month-summary > :nth-child(4) { grid-area: c3; }
  .rcm-month-summary > :nth-child(5) { grid-area: c4; }
  .rcm-month-summary > :nth-child(6) { grid-area: chev; justify-self: end; align-self: start; }
  .rcm-month-name { font-size: 0.95rem; }
  .rcm-month-cell-value { font-size: 0.78rem; }
  .rcm-month-cell-label { font-size: 0.52rem; }
  .rcm-month-cell { min-width: 0; }
  .rcm-month-cell-value .rcm-delta { font-size: 0.55rem; padding: 0.04rem 0.32rem; }
  .rcm-month-body { padding: 0.7rem 0.85rem; }

  /* Deal table inside the expanded month: drop low-priority columns so
   * Customer + Sale + (NP/Comm) remain. */
  .rcm-month-deals-table { table-layout: auto; width: 100%; }
  .rcm-month-deals-table th:nth-child(2),
  .rcm-month-deals-table td:nth-child(2),
  .rcm-month-deals-table th:nth-child(3),
  .rcm-month-deals-table td:nth-child(3) { display: none; }
  .rcm-month-deals-table th:nth-child(1) { width: auto; }
  .rcm-month-deals-table tbody td { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
  .rcm-month-deals-table thead th { padding: 0.35rem 0.6rem; }

  /* Deal-list search: full-width */
  .rcm-dl26-search { width: 100%; min-width: 0; }

  /* Tables: smaller font so more fits */
  .rcm-table { font-size: 0.78rem; }
  .rcm-table thead th, .rcm-table tbody td { padding: 0.35rem 0.5rem; }
  .rcm-table-compact { font-size: 0.74rem; }

  /* Legend: single column */
  .rcm-legend-grid { grid-template-columns: 1fr; }
}

/* New widgets on phone */
@media (max-width: 720px) {
  .rcm-leader-row {
    grid-template-columns: 28px 1fr;
    grid-template-areas:
      "rank name"
      "bar  bar"
      "meta meta";
    gap: 0.4rem;
  }
  .rcm-leader-rank { grid-area: rank; }
  .rcm-leader-name { grid-area: name; }
  .rcm-leader-bar-wrap { grid-area: bar; height: 24px; }
  .rcm-leader-meta { grid-area: meta; flex-wrap: wrap; font-size: 0.7rem; }

  .rcm-pkg-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rcm-pse-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Very narrow phones ≤ 380px ---------- */
@media (max-width: 380px) {
  .rcm-dl26-kpis { grid-template-columns: 1fr; }
  .rcm-pkg-top { grid-template-columns: 1fr; }
  .rcm-pse-kpis { grid-template-columns: 1fr; }
}

/* ---------- modal (shared pattern) ---------- */
.rcm-modal {
  --rcm-bg: #f7f8fb; --rcm-surface: #fff; --rcm-ink: #0f172a;
  --rcm-muted: #64748b; --rcm-line: #e2e8f0; --rcm-accent: #2563eb;
  display: none;
  position: fixed !important;
  top:0 !important; left:0 !important; right:0 !important; bottom:0 !important;
  width: 100% !important; height: 100% !important;
  z-index: 999999 !important;
  background: rgba(15,23,42,0.55) !important;
  overflow-y: auto; overflow-x: hidden;
  padding: 2rem 1rem;
  align-items: flex-start; justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px; color: #0f172a;
}
.rcm-modal.is-open { display: flex !important; }
.rcm-modal-dialog {
  position: relative; background: #fff !important;
  border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.05);
  width: 100%; max-width: 1100px; display: flex; flex-direction: column;
  max-height: calc(100vh - 4rem); overflow: hidden;
}
.rcm-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; border-bottom: 1px solid var(--rcm-line);
}
.rcm-modal-title { font-weight: 700; font-size: 1.2rem; margin: 0; color: #0f172a; }
.rcm-modal-close {
  background: transparent; border: none; font-size: 1.5rem;
  color: #64748b; cursor: pointer; padding: 0.25rem 0.6rem; border-radius: 4px;
}
.rcm-modal-close:hover { background: #f7f8fb; color: #0f172a; }
.rcm-modal-body { padding: 1.2rem; overflow-y: auto; flex: 1 1 auto; }

/* ---------- skeleton placeholders (progressive load) ---------- */
.rcm-dl26-skel {
  background: linear-gradient(90deg, #f3f4fc 0%, #e8eaf6 50%, #f3f4fc 100%);
  background-size: 200% 100%;
  animation: rcm-dl26-pulse 1.4s ease-in-out infinite;
  border-radius: 8px; width: 100%;
}
.rcm-dl26-skel-text {
  display: inline-block; min-width: 120px; height: 0.85rem;
  background: linear-gradient(90deg, #f3f4fc 0%, #e8eaf6 50%, #f3f4fc 100%);
  background-size: 200% 100%;
  animation: rcm-dl26-pulse 1.4s ease-in-out infinite;
  border-radius: 4px; color: transparent;
}
@keyframes rcm-dl26-pulse {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.rcm-dl26-header-skel { opacity: 1; }

/* ---------- Salesperson YTD strip (row 2 of the dashboard top) ---------- */
.rcm-dl26-reps-ytd { margin-bottom: 0.85rem; }
.rcm-dl26-reps-ytd-label {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--rcm-muted); font-weight: 700;
  margin: 0 0 0.4rem 0.15rem;
}
.rcm-dl26-reps-ytd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.6rem;
}
.rcm-rep-card {
  background: var(--rcm-surface);
  border: 1px solid var(--rcm-line-soft);
  border-radius: var(--rcm-radius-md);
  padding: 0.7rem 0.85rem;
  box-shadow: var(--rcm-shadow);
  display: flex; flex-direction: column; gap: 0.3rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rcm-rep-card:hover { transform: translateY(-1px); box-shadow: var(--rcm-shadow-lg); }
.rcm-rep-card-head { display: flex; align-items: center; gap: 0.5rem; }
.rcm-rep-card-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--rcm-bg-2); display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--rcm-accent);
}
.rcm-rep-card-name {
  font-size: 0.78rem; font-weight: 600; color: var(--rcm-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1;
}
.rcm-rep-card-value {
  font-size: 1.15rem; font-weight: 700; color: var(--rcm-ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.rcm-rep-card-sub {
  font-size: 0.7rem; color: var(--rcm-muted); font-weight: 500;
}
.rcm-rep-card-delta {
  font-size: 0.68rem; color: var(--rcm-muted);
  display: flex; align-items: center;
}
