/* Dashboard financeiro (pizza) — Sistema Pessoal */
.fd{background:#f1efe9;color:#171717;padding:20px 6vw 90px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;scroll-margin-top:70px}
.fd *{box-sizing:border-box}
.fd-kicker{font-size:11px;font-weight:500;color:#ef4b35;letter-spacing:.04em;margin:0 0 14px}
.fd h2{font-size:clamp(34px,4.6vw,60px);font-weight:900;letter-spacing:-.045em;margin:0;line-height:1.02}
.fd h2 .dot{color:#ef4b35}
.fd-lead{max-width:760px;font-size:15px;font-weight:300;line-height:1.6;color:#555;margin:16px 0 28px}
.fd-lead b{color:#171717;font-weight:700}
.fd-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:22px}
.fd-seg{display:inline-flex;background:#fff;border:1px solid #dedcd5;border-radius:12px;padding:3px;gap:2px}
.fd-seg button{border:0;background:none;padding:10px 16px;border-radius:9px;font:inherit;font-size:13px;font-weight:700;color:#777;cursor:pointer}
.fd-seg button.on{background:#171717;color:#fff}
.fd-nav{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #dedcd5;border-radius:12px;padding:3px}
.fd-nav button{border:0;background:none;width:38px;height:38px;border-radius:9px;font-size:20px;cursor:pointer;color:#171717}
.fd-nav span{min-width:150px;text-align:center;font-size:14px;font-weight:700;cursor:pointer}
.fd-user{margin-left:auto;font-size:12px;color:#777}.fd-user button{border:0;background:none;color:#ef4b35;font-weight:700;cursor:pointer;font:inherit;font-size:12px;margin-left:8px}
.fd-login{max-width:420px;background:#fff;border-radius:16px;padding:24px;margin:10px 0}
.fd-login h3{margin:0 0 6px;font-size:20px}.fd-login p{margin:0 0 16px;color:#666;font-size:14px;line-height:1.5}
.fd-login label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#777;margin:10px 0 5px}
.fd-login input{width:100%;border:1px solid #dedcd5;border-radius:10px;padding:12px;font:inherit;font-size:15px;background:#fff;color:#171717}
.fd-login .err{color:#d93025;font-size:13px;min-height:18px;margin:10px 0 0}
.fd-login .go{margin-top:12px;width:100%;border:0;border-radius:10px;padding:14px;background:#171717;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.fd-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-bottom:15px}
.fd-card{background:#fff;border-radius:6px;padding:22px 24px}
.fd-card small{display:block;font-size:10px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#888}
.fd-card b{display:block;font-size:clamp(26px,3vw,38px);font-weight:900;letter-spacing:-.03em;margin:8px 0 6px;font-variant-numeric:tabular-nums}
.fd-card em{font-style:normal;font-size:12.5px;color:#777;line-height:1.45;display:block}
.fd-card.in b{color:#198754}.fd-card.out b{color:#d93025}.fd-card.bal.neg b{color:#d93025}
.fd-say{background:#171717;color:#fff;border-radius:6px;padding:24px 26px;margin-bottom:15px;font-size:16px;line-height:1.65;font-weight:300}
.fd-say b{font-weight:700}.fd-say .ok{color:#d9f542}.fd-say .bad{color:#ff8f82}
.fd-meter{height:10px;background:rgba(255,255,255,.15);border-radius:6px;margin:16px 0 6px;overflow:hidden}.fd-meter i{display:block;height:100%;background:#d9f542;border-radius:6px}.fd-meter i.over{background:#ff6b5e}
.fd-meter-l{font-size:12px;color:#bbb}
.fd-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px;margin-bottom:15px}
.fd-panel{background:#fff;border-radius:6px;padding:24px}
.fd-panel.wide{grid-column:1/-1}
.fd-panel h3{margin:0 0 6px;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:#171717}
.fd-help{font-size:13.5px;line-height:1.55;color:#666;margin:0 0 14px}
.fd-help b{color:#171717}
.fd-tog{display:inline-flex;background:#f1efe9;border-radius:10px;padding:3px;gap:2px;margin-bottom:12px}
.fd-tog button{border:0;background:none;padding:8px 14px;border-radius:8px;font:inherit;font-size:12.5px;font-weight:700;color:#777;cursor:pointer}.fd-tog button.on{background:#171717;color:#fff}
.fd-pie{display:grid;grid-template-columns:230px 1fr;gap:22px;align-items:center}
.fd-donut{width:230px;height:230px;display:block}.fd-donut .seg{cursor:pointer;transition:stroke-width .15s ease}
.fd-legend{display:grid;gap:2px}
.fd-leg{display:grid;grid-template-columns:14px 1fr auto auto;align-items:center;gap:10px;border:0;background:none;text-align:left;padding:9px 8px;border-radius:8px;cursor:pointer;font:inherit;color:inherit;width:100%}
.fd-leg:hover,.fd-leg.on{background:#f1efe9}
.fd-leg i{width:14px;height:14px;border-radius:4px}.fd-leg .n{font-size:14px;font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fd-leg .n small{display:block;font-weight:400;font-size:11.5px;color:#888}
.fd-leg .v{font-weight:900;font-variant-numeric:tabular-nums;font-size:14px}.fd-leg .p{font-size:12.5px;color:#777;width:40px;text-align:right}
.fd-detail{margin-top:14px;border-top:1px solid #e6e4dd;padding-top:12px}
.fd-detail h4{margin:0 0 8px;font-size:13px}
.fd-row{display:grid;grid-template-columns:70px 1fr auto;gap:10px;padding:7px 0;border-bottom:1px solid #f0eee8;font-size:13px}.fd-row:last-child{border:0}.fd-row time{color:#888}.fd-row b{font-variant-numeric:tabular-nums}
.fd-row.in b{color:#198754}.fd-row.out b{color:#d93025}
.fd-extrato{max-height:460px;overflow-y:auto}
.fd-extrato .fd-row:first-child{padding-top:0}
.fd-ins{margin:0;padding:0;list-style:none;display:grid;gap:10px;font-size:14.5px;line-height:1.5}
.fd-ins li{padding-left:22px;position:relative}.fd-ins li::before{content:"";position:absolute;left:2px;top:8px;width:9px;height:9px;border-radius:50%;background:#ef4b35}
.fd-ins b{font-weight:700}
.fd-faq details{border-top:1px solid #e6e4dd;padding:12px 0}.fd-faq details:first-of-type{border-top:0}
.fd-faq summary{cursor:pointer;font-weight:700;font-size:14.5px}.fd-faq p{margin:8px 0 0;font-size:13.5px;line-height:1.6;color:#666}
.fd-empty{padding:30px 10px;text-align:center;color:#888;font-size:14.5px;line-height:1.6}
.fd-a{display:inline-block;margin-top:14px;color:#ef4b35;font-weight:700;font-size:13px;text-decoration:none}
@media(max-width:900px){.fd{padding:46px 5vw 70px}.fd-cards{grid-template-columns:1fr}.fd-grid{grid-template-columns:1fr}.fd-pie{grid-template-columns:1fr}.fd-donut{margin:0 auto;width:min(260px,80vw);height:auto}.fd-user{margin-left:0;width:100%}.fd-nav span{min-width:120px}}
/* tema escuro */
html[data-theme="dark"] .fd{background:#1b1b1d;color:#f1efe9}
html[data-theme="dark"] .fd-lead,html[data-theme="dark"] .fd-help,html[data-theme="dark"] .fd-faq p{color:#a8a6a0}
html[data-theme="dark"] .fd-lead b,html[data-theme="dark"] .fd-help b{color:#f1efe9}
html[data-theme="dark"] .fd-seg,html[data-theme="dark"] .fd-nav,html[data-theme="dark"] .fd-card,html[data-theme="dark"] .fd-panel,html[data-theme="dark"] .fd-login{background:#242426;border-color:#38383c}
html[data-theme="dark"] .fd-seg button,html[data-theme="dark"] .fd-tog button{color:#a8a6a0}
html[data-theme="dark"] .fd-seg button.on,html[data-theme="dark"] .fd-tog button.on{background:#ef4b35;color:#fff}
html[data-theme="dark"] .fd-nav button,html[data-theme="dark"] .fd-nav span,html[data-theme="dark"] .fd-panel h3{color:#f1efe9}
html[data-theme="dark"] .fd-tog,html[data-theme="dark"] .fd-leg:hover,html[data-theme="dark"] .fd-leg.on{background:#2e2e31}
html[data-theme="dark"] .fd-login input{background:#1b1b1d;border-color:#38383c;color:#f1efe9}
html[data-theme="dark"] .fd-login p,html[data-theme="dark"] .fd-card em,html[data-theme="dark"] .fd-card small,html[data-theme="dark"] .fd-leg .n small,html[data-theme="dark"] .fd-row time{color:#a8a6a0}
html[data-theme="dark"] .fd-detail,html[data-theme="dark"] .fd-row,html[data-theme="dark"] .fd-faq details{border-color:#38383c}
html[data-theme="dark"] .fd-card.in b{color:#3fb97f}html[data-theme="dark"] .fd-card.out b,html[data-theme="dark"] .fd-card.bal.neg b{color:#ff6b5e}
html[data-theme="dark"] .fd-login .go{background:#ef4b35}
