/* Commission & Bonus (commission.php, earnings.php). Only what this module adds; existing variables and classes otherwise. */
.cm-spark { width: 96px; height: 26px; display: inline-block; vertical-align: middle; }
.cm-spark polyline { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cm-neg { color: var(--red); font-weight: 650; }
.cm-pend { color: var(--muted); }
.cm-rank { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 750; font-size: .8rem; background: var(--paper); margin-right: 8px; flex: none; }
.cm-rank.r1 { background: var(--grass); } .cm-rank.r2 { background: #dfe9f2; } .cm-rank.r3 { background: #f6e3cf; }
.cm-who { display: flex; align-items: center; min-width: 0; }
.cm-who > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-sub { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; }
.cm-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cm-goal { display: flex; gap: 12px; align-items: center; padding: 6px 0; min-width: 0; }
.cm-goal > div { min-width: 0; }
.cm-goal > div b { display: block; } .cm-goal > div span { display: block; color: var(--muted); font-size: .8rem; }
.cm-split { display: grid; grid-template-columns: 1fr 110px 120px; gap: 8px; align-items: center; margin-bottom: 8px; }
.cm-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cm-hero .sc-ring-xl b { font-size: 1.4rem; }
.cm-hero big { font-size: 2.2rem; font-weight: 750; letter-spacing: -.02em; display: block; line-height: 1.15; }
table.cm td.num, table.cm th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.cm td, table.cm th { white-space: nowrap; }
table.cm td:first-child { white-space: normal; max-width: 420px; }
table.cm td:first-child a { font-weight: 650; }
.cm-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 6px; }
.cm-bars i { flex: 1; background: var(--blue); border-radius: 6px 6px 0 0; min-height: 4px; opacity: .85; }
.cm-bars i.now { background: var(--grass); opacity: 1; }
.cm-bars-x { display: flex; gap: 6px; color: var(--muted); font-size: .7rem; } .cm-bars-x span { flex: 1; text-align: center; }
.cm-ph { display: none; }
.stat b.cm-neg { color: var(--red); }
.cm-pick { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cm-inline { display: flex; gap: 8px; align-items: center; } .cm-inline > * { min-width: 0; }
.cm-inline select { flex: 1; } .cm-inline input { width: 110px; flex: none; }
@media (max-width: 800px) {
  .cm-ph { display: inline; } .cm-spark { width: 64px; } .cm-hero big { font-size: 1.8rem; }
  .cm-split { grid-template-columns: 1fr 90px 90px; }
  table.cm td:first-child { max-width: none; }
}
