.eppro-pc-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.eppro-pc-svg-wrap {
    position: relative;
    width: 240px;
    height: 240px;
    flex-shrink: 0;
}

.eppro-pc-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

/* Each path starts invisible; JS adds .eppro-pc-animated to trigger entrance */
.eppro-pc-path {
    transform-box: view-box;       /* transform-origin is relative to SVG viewport */
    transform-origin: 50% 50%;    /* scale from chart center */
    opacity: 0;
    cursor: pointer;
    transition: opacity .15s, filter .15s;
}
.eppro-pc-path:hover {
    opacity: .85;
    filter: drop-shadow( 0 2px 8px rgba(0,0,0,.25) );
}

/* Entrance animation — JS sets --eppro-pc-dur and --eppro-pc-delay per path */
@keyframes eppro-pc-in {
    from { opacity: 0; transform: scale(0.55); }
    to   { opacity: 1; transform: scale(1); }
}
.eppro-pc-path.eppro-pc-animated {
    animation: eppro-pc-in var(--eppro-pc-dur, 0.6s) cubic-bezier(0.34, 1.4, 0.64, 1)
               var(--eppro-pc-delay, 0ms) both;
}

/* Center text (donut) */
.eppro-pc-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
    pointer-events: none;
}
.eppro-pc-center-val { display: block; font-size: 22px; font-weight: 700; color: var(--eppro-gray-900, #111827); line-height: 1.1; }
.eppro-pc-center-lbl { display: block; font-size: 12px; color: var(--eppro-gray-500, #6b7280); margin-top: 2px; }

/* Legend */
.eppro-pc-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 280px;
}
.eppro-pc-legend-item { display: flex; align-items: center; gap: 8px; }
.eppro-pc-legend-dot  { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.eppro-pc-legend-label{ flex: 1; font-size: 13px; color: var(--eppro-gray-600, #4b5563); }
.eppro-pc-legend-val  { font-size: 13px; font-weight: 600; color: var(--eppro-gray-900, #111827); }

/* ── Hover tooltip ── */
.eppro-pc-tooltip {
    position: absolute;
    background: var(--eppro-gray-800, #1f2937);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    padding: 6px 12px;
    border-radius: var(--eppro-radius-sm, 6px);
    border-left: 3px solid var(--eppro-primary, #7c3aed);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 30;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.eppro-pc-tooltip--visible { opacity: 1; }

/* ── Legend dot shape variants ── */
.eppro-pc--dot-circle .eppro-pc-legend-dot { border-radius: 50%; }
.eppro-pc--dot-line   .eppro-pc-legend-dot { border-radius: 2px; width: 20px; height: 4px; }

/* Legend position variants */
.eppro-pc--legend-right .eppro-pc-wrap,
.eppro-pc--legend-left  .eppro-pc-wrap {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
}
.eppro-pc--legend-left .eppro-pc-wrap {
    flex-direction: row-reverse;
}
.eppro-pc--legend-right .eppro-pc-legend,
.eppro-pc--legend-left  .eppro-pc-legend {
    max-width: 200px;
    flex: 1;
    align-self: center;
}
