body.dh-finances-v2-active .driver-content > :not(#dh-driver-finances-v2) { display: none !important; }

#dh-driver-finances-v2 {
    --dhf-ink: #172033;
    --dhf-muted: #687188;
    --dhf-line: #e6eaf1;
    --dhf-blue: #1769e0;
    --dhf-blue-soft: #eaf3ff;
    --dhf-green: #00a88d;
    color: var(--dhf-ink);
    margin: 0 auto;
    max-width: 720px;
    padding: 22px 18px 110px;
}

.dhf-head, .dhf-section-title, .dhf-limit > div { align-items: center; display: flex; justify-content: space-between; gap: 16px; }
.dhf-head small, .dhf-section-title small { color: var(--dhf-blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.dhf-head h1 { font-size: clamp(28px, 7vw, 38px); letter-spacing: -.04em; margin: 3px 0 0; }
.dhf-mode { background: #edf8f6; border: 1px solid #bce7df; border-radius: 999px; color: #087865; font-size: 12px; font-weight: 900; padding: 8px 12px; }

.dhf-tabs { border-bottom: 1px solid var(--dhf-line); display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 18px; }
.dhf-tabs button { background: none; border: 0; color: var(--dhf-muted); cursor: pointer; font: inherit; font-weight: 700; padding: 13px 4px; position: relative; }
.dhf-tabs button.is-active { color: var(--dhf-ink); }
.dhf-tabs button.is-active::after { background: var(--dhf-blue); border-radius: 4px; bottom: -1px; content: ""; height: 3px; left: 15%; position: absolute; width: 70%; }

.dhf-info { align-items: flex-start; background: var(--dhf-blue-soft); border-radius: 16px; display: flex; gap: 12px; padding: 16px; }
.dhf-info > span { color: var(--dhf-blue); font-size: 22px; }
.dhf-info b { display: block; font-size: 15px; }
.dhf-info p { color: #5b6780; font-size: 13px; line-height: 1.45; margin: 4px 0 0; }

.dhf-total { padding: 25px 2px 20px; }
.dhf-total small { color: var(--dhf-muted); display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.dhf-total strong { display: block; font-size: clamp(38px, 11vw, 58px); letter-spacing: -.055em; line-height: 1.05; margin: 6px 0; }
.dhf-total span { color: var(--dhf-muted); font-size: 12px; }

.dhf-chart-card, .dhf-payment, .dhf-movements, .dhf-limit { background: #fff; border: 1px solid var(--dhf-line); border-radius: 18px; box-shadow: 0 8px 28px rgba(19,38,74,.05); margin-top: 12px; padding: 18px; }
.dhf-section-title h2 { font-size: 18px; margin: 2px 0 0; }
.dhf-section-title > span, .dhf-section-title > button { background: none; border: 0; color: var(--dhf-muted); font-size: 11px; text-align: right; }
.dhf-chart { align-items: end; display: grid; gap: 8px; grid-template-columns: repeat(7, 1fr); height: 215px; margin-top: 20px; padding-top: 24px; }
.dhf-bar { align-items: center; align-self: stretch; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; padding: 0; position: relative; }
.dhf-bar i { background: linear-gradient(180deg, #05b69a, #008f7a); border-radius: 8px 8px 3px 3px; display: block; min-height: 5px; transition: height .25s ease; width: min(34px, 70%); }
.dhf-bar b { color: var(--dhf-muted); font-size: 10px; margin-top: 8px; }
.dhf-bar-value { background: var(--dhf-ink); border-radius: 7px; color: #fff; display: none; font-size: 10px; padding: 5px 7px; position: absolute; top: -8px; white-space: nowrap; z-index: 2; }
.dhf-bar.is-open .dhf-bar-value { display: block; }

.dhf-breakdown { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
.dhf-breakdown article { align-items: center; background: #fff; border: 1px solid var(--dhf-line); border-radius: 15px; display: flex; gap: 10px; padding: 13px; }
.dhf-breakdown article > span { align-items: center; background: var(--dhf-blue-soft); border-radius: 9px; color: var(--dhf-blue); display: flex; flex: 0 0 34px; height: 34px; justify-content: center; }
.dhf-breakdown small, .dhf-breakdown b { display: block; }
.dhf-breakdown small { color: var(--dhf-muted); font-size: 10px; }
.dhf-breakdown b { font-size: 14px; margin-top: 2px; }

.dhf-limit span { color: var(--dhf-muted); font-size: 13px; }
.dhf-limit > i { background: #e9edf3; border-radius: 8px; display: block; height: 9px; margin: 13px 0 8px; overflow: hidden; }
.dhf-limit > i span { background: linear-gradient(90deg, #f7b629, #ef6a3a); display: block; height: 100%; }
.dhf-limit small { color: var(--dhf-muted); }

.dhf-pay-cta { align-items: center; background: #f1f5fb; border: 0; border-radius: 16px; color: var(--dhf-ink); cursor: pointer; display: flex; gap: 13px; margin-top: 12px; padding: 16px; text-align: left; width: 100%; }
.dhf-pay-cta > span { align-items: center; background: var(--dhf-blue); border-radius: 11px; color: #fff; display: flex; flex: 0 0 40px; height: 40px; justify-content: center; }
.dhf-pay-cta div { flex: 1; }
.dhf-pay-cta b, .dhf-pay-cta small { display: block; }
.dhf-pay-cta small { color: var(--dhf-muted); margin-top: 2px; }
.dhf-pay-cta strong { font-size: 24px; }

.dhf-payment p { color: var(--dhf-muted); font-size: 13px; }
.dhf-payment label { color: #49536a; display: block; font-size: 12px; font-weight: 800; margin-top: 12px; }
.dhf-payment input, .dhf-payment select { background: #f8fafc; border: 1px solid #dfe4ec; border-radius: 11px; box-sizing: border-box; color: var(--dhf-ink); display: block; font: inherit; margin-top: 6px; padding: 12px; width: 100%; }
.dhf-form-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.dhf-submit { background: var(--dhf-blue); border: 0; border-radius: 12px; color: #fff; font-weight: 900; margin-top: 16px; padding: 14px; width: 100%; }

.dhf-movements article { align-items: center; border-top: 1px solid var(--dhf-line); display: grid; gap: 10px; grid-template-columns: 36px 1fr auto; padding: 14px 0; }
.dhf-movements article:first-of-type { margin-top: 10px; }
.dhf-movements article > span { align-items: center; background: #eaf8f5; border-radius: 50%; color: var(--dhf-green); display: flex; height: 32px; justify-content: center; }
.dhf-movements article > span.is-payment { background: #eef3ff; color: var(--dhf-blue); }
.dhf-movements article b, .dhf-movements article small { display: block; }
.dhf-movements article b { font-size: 13px; }
.dhf-movements article small { color: var(--dhf-muted); font-size: 10px; margin-top: 3px; }
.dhf-movements article strong { color: #cb5c2d; font-size: 13px; }
.dhf-movements article strong.is-payment { color: var(--dhf-green); }
.dhf-empty, .dhf-loading { color: var(--dhf-muted); padding: 28px 8px; text-align: center; }
.dhf-notice { border-radius: 12px; font-size: 13px; font-weight: 700; margin-bottom: 12px; padding: 12px; }
.dhf-notice.is-success { background: #e8f8f2; color: #08735e; }
.dhf-notice.is-error { background: #fff0ee; color: #b4382c; }

.driver-app.is-dark #dh-driver-finances-v2 { --dhf-ink: #f4f7fb; --dhf-muted: #aeb8c9; --dhf-line: #30394a; --dhf-blue-soft: #182d4b; }
.driver-app.is-dark .dhf-chart-card, .driver-app.is-dark .dhf-payment, .driver-app.is-dark .dhf-movements, .driver-app.is-dark .dhf-limit, .driver-app.is-dark .dhf-breakdown article { background: #1d2532; }
.driver-app.is-dark .dhf-payment input, .driver-app.is-dark .dhf-payment select { background: #151c27; color: #fff; }

@media (max-width: 560px) {
    #dh-driver-finances-v2 { padding: 16px 13px 100px; }
    .dhf-breakdown { grid-template-columns: 1fr; }
    .dhf-breakdown article { padding: 11px 13px; }
    .dhf-chart { gap: 4px; height: 190px; }
    .dhf-chart-card { padding: 15px 10px; }
    .dhf-section-title > span { max-width: 110px; }
    .dhf-form-grid { grid-template-columns: 1fr; gap: 0; }
}
