/* Ruch i klienci: "Co się dzieje" cards, share bars and the new/returning chart. */
.traffic-insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.traffic-insight { padding: 12px 14px; border: 1px solid var(--board-rule); border-left: 4px solid var(--board-rule-strong); border-radius: 10px; background: #fff; }
.traffic-insight.good { border-left-color: #6fb043; background: #f6fbef; }
.traffic-insight.bad { border-left-color: #e2572a; background: #fff6f2; }
.traffic-insight.neutral { border-left-color: #7eb8ee; background: #f4f9fe; }
.traffic-insight strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.traffic-insight p { margin: 6px 0 0; color: var(--board-muted); font-size: 12px; line-height: 1.5; }
.traffic-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.traffic-share { display: inline-block; width: 90px; height: 6px; margin-right: 8px; overflow: hidden; border-radius: 3px; background: #efece0; vertical-align: middle; }
.traffic-share i { display: block; height: 100%; border-radius: 3px; background: var(--board-revenue, #3fb2ab); }
.traffic-share-value { font-size: 12px; }
.traffic-bar.returning { fill: #1f7f79; }
.traffic-bar.new { fill: #9fd8d3; }
.swatch.traffic-returning { background: #1f7f79; }
.swatch.traffic-new { background: #9fd8d3; }
@media (max-width: 900px) { .traffic-kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .traffic-kpis { grid-template-columns: 1fr; } }
.traffic-subhead { margin-top: 18px; }
.traffic-subhead h4 { margin: 0; font-size: 13px; font-weight: 600; }
.traffic-threshold { stroke: #e2572a; stroke-width: 2; stroke-dasharray: 4 4; }
.traffic-record-date { display: block; margin-top: 2px; color: var(--board-muted); font-size: 11px; }
/* Customer groups by which purchase it is: one hue, light for a first purchase, dark for the most loyal. */
.tier-first, .traffic-tier.first { background: #cfece8; fill: #cfece8; color: #17403c; }
.tier-second_third, .traffic-tier.second_third { background: #8fd0c9; fill: #8fd0c9; color: #17403c; }
.tier-from4_to9, .traffic-tier.from4_to9 { background: #3f9f97; fill: #3f9f97; color: #fff; }
.tier-from10, .traffic-tier.from10 { background: #1d625d; fill: #1d625d; color: #fff; }
.traffic-split { display: grid; gap: 8px; margin: 10px 0 16px; }
.traffic-split-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 12px; }
.traffic-split-label { color: var(--board-muted); font-size: 11px; line-height: 1.35; }
.traffic-split-label strong { display: block; color: var(--board-ink); font-size: 12px; font-weight: 600; }
.traffic-split-bar { display: flex; gap: 2px; height: 30px; }
.traffic-split-bar span { display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-width: 0; overflow: hidden; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: default; }
.traffic-split-bar .traffic-split-empty { justify-content: flex-start; padding: 0 10px; background: #f3f1e8; color: var(--board-muted); font-weight: 400; }
@media (max-width: 520px) { .traffic-split-row { grid-template-columns: 1fr; gap: 4px; } }
/* Newsletter (SalesManago): sign-ups green, unsubscribes red. */
.traffic-bar.signup { fill: #6fb043; }
.traffic-bar.unsubscribe { fill: #e2572a; }
.swatch.newsletter-signup { background: #6fb043; }
.swatch.newsletter-unsubscribe { background: #e2572a; }
