/* Copyright (c) 2025-2026, RTE (https://www.rte-france.com) This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0. If a copy of the Mozilla Public License, version 2.0 was not distributed with this file, you can obtain one at http://mozilla.org/MPL/2.0/. SPDX-License-Identifier: MPL-2.0 This file is part of Co-Study4Grid a Power Grid Study tool Assistant Interface to help solve contigencies for a grid state under study. */ /* ===== SVG Container ===== */ .svg-container { width: 100%; height: 100%; overflow: hidden; /* The pypowsybl SVG is transparent, so the container provides the diagram backdrop. Tokenised so dark mode flips it to near-black. */ background: var(--color-diagram-surface); /* CSS containment: tells the browser this subtree's layout/paint is independent of the rest of the page, reducing work during viewBox changes */ contain: layout style paint; } /* ===== Dark-mode diagram legibility ===== pypowsybl bakes voltage-coded line colours into the SVG via an inline