/* Ten Goede · results across processes and projects (rs-).
   Status colours only for goal status, always with a word; the trend uses the accent. */
/* the Projecten | Resultaten tabs, shared by both pages */
.rs-tabs { margin-bottom: 20px; }
.rs-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin-bottom: 20px; }
.rs-f { display: grid; gap: 3px; font-size: var(--t-xs); color: var(--ink-3); min-width: 0; }
.rs-f .select { max-width: 200px; }
.rs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; margin-bottom: 8px; }
.rs-tile { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; display: grid; gap: 3px; align-content: start; min-width: 0; }
.rs-tl { font-size: var(--t-xs); color: var(--ink-3); }
.rs-tv { font-size: var(--t-xxl); font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rs-tile small { font-size: var(--t-xs); color: var(--ink-4); }
.rs-tile[data-tone="ok"] .rs-tv { color: var(--ok); }
.rs-tile[data-tone="warn"] .rs-tv { color: var(--warn); }
.rs-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
@media (max-width: 980px) { .rs-two { grid-template-columns: 1fr; } }

.rs-bars { display: grid; gap: 12px; }
.rs-bar, .rs-axis { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) 46px auto; gap: 10px; align-items: center; font-size: var(--t-s); }
.rs-bar-n { min-width: 0; }
.rs-bar-n a { font-weight: 600; }
.rs-bar-n small { display: block; color: var(--ink-4); font-size: var(--t-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-bar-t { position: relative; height: 10px; background: var(--sunk); border-radius: 3px; }
.rs-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 3px 3px 0; background: var(--ink-4); }
.rs-fill[data-tone="ok"] { background: var(--ok); } .rs-fill[data-tone="info"] { background: var(--info); } .rs-fill[data-tone="warn"] { background: var(--warn); } .rs-fill[data-tone="bad"] { background: var(--bad); }
.rs-tgt { position: absolute; top: -4px; bottom: -4px; left: 80%; border-left: 2px dashed var(--ink-2); }
.rs-bar-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-axis { margin-top: 4px; font-size: 11px; color: var(--ink-4); }
.rs-ax { position: relative; height: 14px; }
.rs-ax i { position: absolute; transform: translateX(-50%); font-style: normal; }
@media (max-width: 560px) { .rs-bar, .rs-axis { grid-template-columns: minmax(0, 1fr) minmax(70px, .8fr) 42px; } .rs-bar-s { display: none; } }

.rs-chart { position: relative; overflow-x: auto; }
.rs-chart svg { display: block; width: 100%; min-width: 520px; height: auto; touch-action: pan-y; }
.rs-grid { stroke: var(--line); stroke-width: 1; }
.rs-ax-t { font: 11px var(--f-ui); fill: var(--ink-3); }
.rs-ax-t.s { fill: var(--ink-2); font-weight: 600; }
.rs-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rs-area { fill: var(--accent); opacity: .07; }
.rs-goal { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.rs-live { stroke: var(--ink); stroke-width: 1.5; }
.rs-mom { stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 2 3; }
.rs-end, .rs-dot { fill: var(--accent); stroke: var(--sheet); stroke-width: 2; }
.rs-cross { stroke: var(--ink-3); stroke-width: 1; pointer-events: none; }
.rs-tip { position: absolute; top: 8px; pointer-events: none; background: var(--sheet); border: 1px solid var(--line-2); box-shadow: var(--shadow); border-radius: var(--r-s); padding: 7px 9px; font-size: var(--t-xs); color: var(--ink-2); display: grid; gap: 1px; min-width: 160px; }
.rs-tip b { color: var(--ink); font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.rs-tbl summary { cursor: pointer; font-size: var(--t-s); color: var(--accent-ink); margin-top: 8px; }
.rs-tbl .tbl-wrap { max-height: 260px; overflow: auto; margin-top: 8px; }

.rs-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 10px; }
.rs-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rs-legend i, .rs-seg i { display: inline-block; background: var(--line-2); }
.rs-legend i { width: 10px; height: 10px; border-radius: 2px; }
.rs-legend i[data-tone="ok"], .rs-seg i[data-tone="ok"] { background: var(--ok); }
.rs-legend i[data-tone="info"], .rs-seg i[data-tone="info"] { background: var(--info); }
.rs-legend i[data-tone="warn"], .rs-seg i[data-tone="warn"] { background: var(--warn); }
.rs-legend i[data-tone="bad"], .rs-seg i[data-tone="bad"] { background: var(--bad); }
.rs-seg { display: flex; gap: 2px; height: 10px; border-radius: 3px; overflow: hidden; min-width: 110px; max-width: 220px; }
.rs-seg i { height: 100%; }
.rs-seg-n { display: block; margin-top: 4px; font-size: var(--t-xs); color: var(--ink-3); }
.rs-sub { display: block; margin-top: 2px; font-size: var(--t-xs); color: var(--ink-3); font-weight: 400; }
.rs-q { display: block; }
.rs-goal-box { border-left: 3px solid var(--line-2); padding: 4px 0 4px 14px; max-width: 70ch; display: grid; gap: 4px; color: var(--ink-2); }
