.chart-area {
    position: relative;
    min-height: 230px; /* fixed tinggi biar card nggak loncat */
}
.chart-loader {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}
.chart-loader.active {
    visibility: visible;
    opacity: 1;
}
.spinner {
    width: 26px;
    height: 26px;
    border: 3px solid #ccc;
    border-top-color: #7367f0;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.no-data {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    color: #aaa;
    transform: translateY(-50%);
    font-size: 0.9rem;
    display: none;
}
.active-row {
    background: #f5f5ff;
    font-weight: bold;
}

.no-data {
    display: none;
    text-align: center;
    color: #999;
}

.chart-area {
    position: relative;
    height: 220px;
}
