.chart {
    width: 100%;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 992px) {
    .chart {
        min-height: 500px;
        padding: 0 20px 0 20px;
    }
}

.chart svg {
    width: 100%;
    max-height: 100%;
    display: block;
    overflow: visible;
}

/* Bar Chart Styles */
.bar {
    transition: all .25s ease;
    cursor: pointer;
}
.bar:hover, .bar.is-active {
    filter: brightness(1.2);
}

/* Pie Chart Styles */
.slice {
    transition: transform .25s ease, filter .2s ease;
    transform-origin: center center;
    cursor: pointer;
    stroke: var(--surface);
    stroke-width: 2px;
}
.slice:hover, .slice.is-active {
    filter: brightness(1.1);
    transform: scale(1.03);
}

.pie-label-group text {
    font-size: 14px;
    fill: var(--muted);
    transition: all .2s ease;
}
.pie-label-group text.is-active {
    font-weight: 600;
    fill: var(--text);
}
.pie-label-group polyline {
    stroke: var(--muted);
    stroke-width: 1;
    fill: none;
    transition: stroke .2s ease;
}
.pie-label-group polyline.is-active {
    stroke: var(--text);
}
@media (max-width: 767px) {
    .pie-label-group text { font-size: 12px; }
}

/* --- NEW: Map Styles --- */
.region {
    stroke: color-mix(in srgb, var(--text), transparent 70%);
    stroke-width: 1px;
    cursor: pointer;
    transition: filter .2s ease, stroke-width .2s ease;
    outline: none;
}
.region:hover, .region.is-active {
    filter: brightness(1.2);
    stroke-width: 2px;
}

/* --- NEW: Table Styles --- */
.chart table {
    width: 100%;
    border-collapse: collapse;
}
.chart thead th {
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding: 10px 8px;
    color: var(--muted);
}
.chart tbody td {
    padding: 10px 8px;
    border-bottom: 1px dashed var(--border);
}
.chart tfoot td {
    padding: 12px 8px;
    font-weight: 600;
    border-top: 1px solid var(--border);
}
.chart tbody tr {
    cursor: pointer;
    transition: background-color .2s ease;
}
.chart tbody tr:hover {
    background: color-mix(in srgb, var(--primary), transparent 90%);
}
.chart tbody tr.is-active {
    background: color-mix(in srgb, var(--accent), transparent 88%);
}
