/* ===================== LABA RUGI — fitur baru ===================== */

.lr-toolbar-row {
    display: flex; justify-content: flex-end; margin: 10px 0 14px;
}
.btn-toggle-zero {
    display: inline-flex; align-items: center; gap: 6px;
    border: 2px solid var(--primary); background: #eceafc; color: #3c3489;
    border-radius: 7px; padding: 6px 12px; font-size: 11.5px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: background .12s ease;
}
.btn-toggle-zero:hover { background: #dfdaff; }
.btn-toggle-zero.active { background: #3c3489; color: #fff; }

/* ----- Persentase di sebelah nominal ----- */
.lr-persen-badge {
    display: inline-block; min-width: 44px; text-align: right;
    border: 1.6px solid var(--primary); background: #eceafc; color: #3c3489;
    border-radius: 6px; padding: 3px 8px; font-size: 10px; font-weight: 700;
}

/* ----- Baris akun bernilai 0 (mode "sembunyikan" aktif) ----- */
.lr-row.zero-value.dimmed { opacity: 0.5; }
.lr-row.zero-value.dimmed .lr-akun-nama { text-decoration: line-through; }
.lr-row.zero-value.dimmed .lr-hidden-label {
    font-size: 10px; color: #999; font-style: italic;
}

/* ----- Grafik komposisi ----- */
.lr-chart-card { margin-top: 14px; }
.lr-chart-bar {
    display: flex; height: 24px; border-radius: 7px; overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
}
.lr-chart-segment {
    height: 100%; transition: opacity .15s ease; min-width: 2px;
}
.lr-chart-segment:hover { opacity: 0.82; }
.lr-chart-legend {
    display: flex; gap: 16px; margin-top: 10px; flex-wrap: wrap;
}
.lr-chart-legend-item {
    font-size: 11px; display: flex; align-items: center; gap: 5px; font-weight: 600;
}
.lr-chart-legend-swatch {
    width: 9px; height: 9px; border-radius: 2px; display: inline-block;
}

@media (max-width: 640px) {
    .lr-toolbar-row { justify-content: flex-start; }
}
