/** * Shared utilities for exporting dashboard/report charts via html2canvas. * * Problem: html2canvas serializes SVG elements to a data URL before drawing * them on canvas. Inside that data URL the parent document's CSS is not * available, so `fill="var(--primary)"` renders as nothing / black. * Additionally, html2canvas's internal CSS parser cannot handle oklch() color * values used by Tailwind v4. * * Solution: * 1. Patch oklch() in