.erp-chart {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 320px;
}

.erp-chart--sm {
    height: 240px;
}

.erp-chart--md {
    height: 320px;
}

.erp-chart--lg {
    height: 420px;
}

.erp-chart--xl {
    height: 520px;
}

/* Dashboard card */
.erp-chart-card {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--erp-bg-card, #fff);
    border: 1px solid var(--erp-border, #e5e7eb);
    border-radius: var(--erp-radius, 10px);
}

.erp-chart-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 0;
}

.erp-chart-card__title {
    margin: 0;
    color: var(--erp-text, #0f172a);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
}

.erp-chart-card__subtitle {
    margin-top: 3px;
    color: var(--erp-text-muted, #64748b);
    font-size: .78rem;
    line-height: 1.4;
}

.erp-chart-card__body {
    width: 100%;
    min-width: 0;
    padding: 4px 8px 8px;
}

.erp-chart-card__body .erp-chart {
    height: 320px;
}

/* Mobile */
@media (max-width: 767.98px) {
    .erp-chart {
        height: 280px;
    }

    .erp-chart--sm {
        height: 220px;
    }

    .erp-chart--lg {
        height: 340px;
    }

    .erp-chart--xl {
        height: 400px;
    }

    .erp-chart-card__header {
        padding: 12px 12px 0;
    }

    .erp-chart-card__body {
        padding: 2px 4px 6px;
    }

    .erp-chart-card__body .erp-chart {
        height: 280px;
    }
}
