/* License: MIT (see ../license.txt); alternatively GPL v3.0. (c) 2026 ISSP Software und Service GmbH */
/* cloccojs charts (charts.js). Colours are custom properties so a host can re-theme them; text uses the shared theme tokens. */
.cc{--cc-1:#3269e8;--cc-2:#e8833a;--cc-3:#2fa37a;--cc-4:#c0508f;--cc-5:#8a6fd1;--cc-6:#c9a400;--cc-7:#29a3c8;--cc-8:#7a8798;position:relative;min-width:0;color:var(--ink,#182338)}
:root[data-theme="dark"] .cc,body[data-theme="dark"] .cc{--cc-1:#79a6ff;--cc-2:#ffa45f;--cc-3:#4fd1a1;--cc-4:#e47bb4;--cc-5:#b39dff;--cc-6:#e8c93d;--cc-7:#5cc8ea;--cc-8:#a3afc0}
.cc-frame{width:100%}
.cc-svg{display:block;max-width:100%;overflow:visible}
.cc-grid{stroke:var(--line,#e4e9f0);stroke-width:1}
.cc-axis{stroke:var(--muted,#6a768a);stroke-width:1}
.cc-tick{fill:var(--muted,#6a768a);font-size:11px}
.cc-slice,.cc-bar{cursor:pointer;transition:opacity .12s,filter .12s;stroke:var(--surface,#fff);stroke-width:1.5}
.cc-bar{stroke-width:0}
.cc-slice:hover,.cc-bar:hover,.cc-slice:focus,.cc-bar:focus{filter:brightness(1.12);outline:0}
.cc-slice:focus-visible,.cc-bar:focus-visible{stroke:var(--focus,#1a56db);stroke-width:3}
.cc-slice-label{fill:#fff;font-size:12px;font-weight:700;pointer-events:none;paint-order:stroke;stroke:#0005;stroke-width:2px}
.cc-total{fill:var(--ink,#182338);font-size:16px;font-weight:700}
.cc-pie{display:flex;flex-wrap:wrap;gap:18px 28px;align-items:center;justify-content:center}
.cc-legend{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:13px;min-width:200px}
.cc-legend li{display:grid;grid-template-columns:12px minmax(0,1fr) auto auto;gap:4px 10px;align-items:center}
.cc-legend i{width:12px;height:12px;border-radius:3px;display:inline-block}
.cc-legend .cc-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-legend .cc-val{font-variant-numeric:tabular-nums;text-align:right}
.cc-legend .cc-pct{color:var(--muted,#6a768a);font-variant-numeric:tabular-nums;min-width:52px;text-align:right}
.cc-legend-inline{display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:center;margin-top:8px}
.cc-legend-inline li{display:block}
.cc-legend-inline button{display:inline-flex;align-items:center;gap:7px;border:0;background:none;color:inherit;font:inherit;font-size:12px;cursor:pointer;padding:3px 6px;border-radius:6px}
.cc-legend-inline button:hover{background:var(--hover-bg,#edf3ff)}
.cc-legend-inline button.off{opacity:.45;text-decoration:line-through}
.cc-tip{position:absolute;z-index:5;pointer-events:none;padding:6px 9px;border-radius:8px;background:#10243d;color:#fff;font-size:12px;line-height:1.4;box-shadow:0 6px 18px #0004;white-space:nowrap}
.cc-tip[hidden]{display:none}
.cc-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px}
.cc-empty{margin:0;padding:34px 12px;text-align:center;color:var(--muted,#6a768a);font-size:13px}
.cc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(prefers-reduced-motion:reduce){.cc-slice,.cc-bar{transition:none}}
/* gallery: layout of the Diagrams view */
.chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.chart-wide{grid-column:1/-1}
.chart-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.chart-head h3{margin:0 0 4px}
.chart-opts{display:flex;gap:14px;align-items:flex-start}
.chart-opt{display:inline-flex;gap:6px;align-items:center;font-size:13px;cursor:pointer}
@media(max-width:1100px){.chart-grid{grid-template-columns:1fr}}
