.mfpc-card {
    border: none;
    border-radius: 16px;
    padding: 14px 18px 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    font-family: "Inter", "Segoe UI", -apple-system, system-ui, sans-serif;
    color: #2f3640;
    background: #fff;
}
.mfpc-card table tr,
.mfpc-card table td {
    border: none;
}

.mfpc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.mfpc-metric {
    background: transparent;
    border: none;
    padding: 6px 0;
    min-width: 140px;
}
.mfpc-metric.mfpc-return{
    text-align:right;
}

.mfpc-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.mfpc-scheme-option-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    color: #0f9a42;
    background: #e6f7ed;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

/* Hide Growth badge for ETF funds */
.mfpc-card-etf .mfpc-scheme-option-badge {
    display: none;
}

.mfpc-value {
    font-size: 22px;
    font-weight: 700;
    color: #1b202b;
    line-height: 1.1;
}

.mfpc-positive {
    color: #0f9a42;
}

.mfpc-legend {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
    font-size: 13px;
    color: #4a4f58;
}

.mfpc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mfpc-line {
    width: 26px;
    height: 4px;
    border-radius: 999px;
    display: inline-block;
}

.mfpc-line-fund {
    background: #1f8cf3;
}

.mfpc-line-benchmark {
    background: #d89c2a;
}

.mfpc-chart-panel {
    margin: 12px 0 12px;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px 6px 4px;
}

.mfpc-chart-area {
    height: 232px;
    position: relative;
    touch-action: pan-y;
}

.mfpc-chart-area canvas,
.mfpc-chart-area table,
.mfpc-chart-area td,
.mfpc-chart-area tr,
.mfpc-chart-area div {
    touch-action: pan-y !important;
}

.mfpc-fallback-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.mfpc-tooltip {
    position: absolute;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e5ea;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 12px;
    color: #2f3640;
    line-height: 1.45;
    transform: translate(-50%, -110%);
    z-index: 3;
    min-width: 150px;
}

.mfpc-tooltip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.mfpc-tooltip-swatch {
    width: 18px;
    height: 4px;
    border-radius: 999px;
    flex-shrink: 0;
}

.mfpc-range-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

button.mfpc-range-btn {
    appearance: none;
    background: #efefef;
    border: 1px solid #d4d5d8;
    border-radius: 18px;
    color: #5a5f68;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    min-width: 52px;
    box-shadow: none;
}

button.mfpc-range-btn:hover {
    background: #e5e5e5;
    border-color: #cfcfd1;
}

button.mfpc-range-btn.active {
    background: #ffffff;
    border-color: #e8b007;
    color: #b07a00;
    box-shadow: 0 3px 10px rgba(232, 176, 7, 0.22);
}

@media (max-width: 768px) {
    .mfpc-header {
        /* flex-direction: row;
        align-items: flex-start; */
    }
.mfpc-metric {
    min-width: 90px;
}
    .mfpc-legend {
        margin-left: 0;
    }

    .mfpc-chart-area {
        height: 220px;
    }
    .mfpc-value{

    font-size: 16px;
    }
}
