﻿
        .chart-wrapper canvas {
            max-height: 600px;
        }
        .custom-legend {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 20px;
            justify-content: center;
        }
        .legend-group {
            display: flex;
            justify-content: left;
            gap: 10px;
            flex-wrap: wrap;
        }
        .legend-group-label {
            
            text-align: center;
            font-weight: 500;
            font-size: 14px;
            color: #212f7a;
            margin-bottom: 4px;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 0px;
            cursor: pointer;
            min-width: 110px;
        }
        .legend-color {
            width: 25px;
            height: 20px;
            border-radius: 0;
            margin-right: 5px;
          	background-size: auto;
            background-repeat: repeat;
        }
        .legend-label {
            font-size: 14px;
            color: #333;
            font-weight: 500;
        }
        .legend-item.hidden .legend-color {
            opacity: 0.3;
        }
        .legend-item.hidden .legend-label {
            opacity: 0.5;
        }
        .chart-wrapper {
            position: relative;
        }
        #chartTooltip {
            position: absolute;
            padding: 14px 14px;
            background: #ffffff;
            border: 3px solid #d4d7e8;
            border-radius: 13px;
            color: #212f7a;
            font-size: 13px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.15s;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }
        #chartTooltip::after {
            content: '';
            position: absolute;
            left: var(--arrow-left, 50%);
            bottom: -13px;
            transform: translateX(-50%);
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            border-top: 10px solid #d4d7e8;
        }
        #chartTooltip::before {
            content: '';
            position: absolute;
            left: var(--arrow-left, 50%);
            bottom: -10px;
            transform: translateX(-50%);
            border-left: 7px solid transparent;
            border-right: 7px solid transparent;
            border-top: 7px solid #ffffff;
        }
 		/* Tooltip below segment (no space above): arrow at top, pointing up */
        #chartTooltip.tooltip-below::after {
            bottom: auto;
            top: -13px;
            border-top: none;
            border-bottom: 10px solid #d4d7e8;
        }
        #chartTooltip.tooltip-below::before {
            bottom: auto;
            top: -10px;
            border-top: none;
            border-bottom: 7px solid #ffffff;
        }
        #chartTooltip.visible {
            opacity: 1;
        }
        #chartTooltip .tooltip-title {
            font-weight: bold;
            margin-bottom: 4px;
        }
        #chartTooltip .tooltip-body {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #212f7a;
        }
        #chartTooltip .tooltip-color {
            flex-shrink: 0;
            width: 14px;
            height: 14px;
            border-radius: 3px;
          	background-size: auto;
            background-repeat: repeat;
        }
        #chartTooltip .tooltip-text {
            flex: 1;
        }