/* Replanta Affiliates — charts */
.raff-chart { position: relative; width: 100%; min-height: 240px; }
.raff-chart svg { display: block; overflow: visible; }
.raff-chart__grid { stroke: #e6ece9; stroke-width: 1; }
.raff-chart__axis { fill: #7a8a83; font-size: 11px; font-family: inherit; }
.raff-chart__guide { stroke: #9aa9a2; stroke-width: 1; stroke-dasharray: 3 3; }
.raff-chart__tip {
    position: absolute; top: 4px; transform: translateX(-50%); pointer-events: none; z-index: 2;
    background: #1E2F23; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.5;
    box-shadow: 0 4px 14px rgba(0,0,0,.18); white-space: nowrap;
}
.raff-chart__tip[hidden] { display: none; }
.raff-chart__tip strong { display: block; margin-bottom: 2px; }
.raff-chart__tip span { display: block; }
.raff-chart__tip i, .raff-chart__legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.raff-chart__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13px; color: #4a5a53; }
.raff-chart__legend b { color: #1E2F23; margin-left: 2px; }

.raff-chart-card { background: #fff; border: 1px solid #e0e6e3; border-radius: 10px; padding: 18px 18px 14px; margin-bottom: 20px; }
.raff-chart-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.raff-chart-card__head h3, .raff-chart-card__head h2 { margin: 0; font-size: 1rem; }
.raff-period { display: inline-flex; border: 1px solid #d5ddd9; border-radius: 8px; overflow: hidden; }
.raff-period a { padding: 5px 11px; font-size: 12px; text-decoration: none; color: #4a5a53; border-left: 1px solid #d5ddd9; }
.raff-period a:first-child { border-left: 0; }
.raff-period a.is-active { background: #41999F; color: #fff; }
.raff-charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.raff-charts-grid .raff-chart-card { margin-bottom: 0; }
.raff-funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0 0 20px; }
.raff-funnel__step { background: #F7FBF9; border: 1px solid #E6F3EF; border-radius: 10px; padding: 14px; }
.raff-funnel__val { display: block; font-size: 1.5rem; font-weight: 700; color: #1E2F23; }
.raff-funnel__label { display: block; font-size: .8rem; color: #6B7D76; margin-top: 2px; }
.raff-funnel__rate { display: block; font-size: .75rem; color: #41999F; margin-top: 4px; font-weight: 600; }
