/* Financeiro com visual mais leve: cartões claros, gráficos finos e o painel de repasses por profissional. */

.finance-chart-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:22px 0 12px}
.finance-chart-tab{font:inherit;font-size:13px;font-weight:600;color:var(--muted,#748f9e);background:transparent;border:1px solid transparent;border-radius:8px;padding:10px 16px;cursor:pointer}
.finance-chart-tab:hover{background:#eaf4f7;color:var(--primary)}
.finance-chart-tab[aria-selected=true]{background:var(--primary);color:#fff;border-color:var(--primary)}
.finance-chart-tab:focus-visible{outline:2px solid var(--primary);outline-offset:3px}

.finance-page .finance-chart-grid.finance-single-chart{display:block;margin:0 0 16px}
.finance-page .finance-single-chart .finance-chart-card{padding:24px;min-height:0;gap:18px;border-radius:14px}
.finance-page .finance-single-chart .finance-chart-card[hidden]{display:none}
.finance-page .finance-single-chart .finance-chart-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:24px;row-gap:5px;min-height:0;padding-bottom:17px;border-bottom:1px solid var(--line,#dce8ed)}
.finance-single-chart .finance-chart-heading .eyebrow{grid-column:1;letter-spacing:.8px;font-size:10px}
.finance-single-chart .finance-chart-heading h2{grid-column:1;font-size:17px;line-height:1.4;margin:0;font-weight:600}
.finance-page .finance-single-chart .finance-chart-total{grid-column:2;grid-row:1/4;align-self:center;font-size:30px;font-weight:600;letter-spacing:-.7px;line-height:1.2;white-space:nowrap}
.finance-single-chart .finance-chart-heading>.muted{grid-column:1;margin:0;font-size:12px}
.finance-page .finance-single-chart .finance-chart-body{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:center;gap:28px;min-height:190px;padding:4px 0;flex:none}
.finance-page .finance-single-chart .finance-ring{width:180px;height:180px;justify-self:center}
.finance-page .finance-single-chart .finance-ring-center{width:154px;height:154px;gap:6px;padding:12px;box-sizing:border-box;text-align:center}
.finance-page .finance-single-chart .finance-ring-center strong{font-size:27px;letter-spacing:-.5px;font-weight:600;line-height:1.1}
.finance-page .finance-single-chart .finance-ring-center span{font-size:11px;line-height:1.4;max-width:110px}
.finance-page .finance-single-chart .finance-chart-legend{max-width:none;gap:0;padding:4px 16px;border:1px solid #e5eef1;border-radius:10px;background:#f8fbfc}
.finance-page .finance-single-chart .finance-legend-row{grid-template-columns:8px minmax(0,1fr) auto;gap:12px;font-size:13px;padding:13px 0;border-bottom:1px solid #e5eef1;min-width:0}
.finance-page .finance-single-chart .finance-legend-row:last-child{border-bottom:0}
.finance-page .finance-single-chart .finance-legend-row>strong{font-size:14px;font-weight:600;grid-column:auto;color:var(--ink,#294653);font-variant-numeric:tabular-nums}
.finance-page .finance-single-chart .finance-legend-row small{margin-top:4px;font-size:11px;font-variant-numeric:tabular-nums}
.finance-page .finance-single-chart .finance-legend-link{font-weight:500;text-decoration:none}
.finance-page .finance-single-chart .finance-legend-link:hover{text-decoration:underline;text-underline-offset:3px}
.finance-page .finance-single-chart .finance-card-toolbar{display:none}
.finance-page .finance-single-chart .finance-card-foot{margin:0;padding-top:12px;font-size:12px;color:var(--muted,#748f9e)}
.finance-page .finance-single-chart .income-view-tabs{display:flex;gap:4px;flex-wrap:wrap;min-height:0}
.finance-page .finance-single-chart .income-view-tabs .button{min-height:30px;padding:5px 12px;font-size:11px;border-radius:7px}
@media(max-width:760px){.finance-chart-tabs{gap:4px}.finance-chart-tab{font-size:12px;padding:9px 11px}.finance-page .finance-single-chart .finance-chart-card{padding:18px;gap:16px}.finance-page .finance-single-chart .finance-chart-heading{grid-template-columns:minmax(0,1fr);padding-bottom:14px}.finance-page .finance-single-chart .finance-chart-total{grid-column:1;grid-row:auto;font-size:27px;margin:6px 0 0}.finance-single-chart .finance-chart-heading>.muted{grid-row:3}.finance-page .finance-single-chart .finance-chart-body{grid-template-columns:minmax(0,1fr);gap:20px;padding:4px 0}.finance-page .finance-single-chart .finance-ring{width:170px;height:170px}.finance-page .finance-single-chart .finance-ring-center{width:146px;height:146px}.finance-page .finance-single-chart .finance-chart-legend{padding:2px 12px}.finance-page .finance-single-chart .finance-legend-row{gap:9px}}

/* Painel financeiro: três cartões com a mesma estrutura e listas compactas. */
.finance-page .finance-chart-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 14px;align-items:stretch}
.finance-page .finance-chart-card{padding:22px;min-width:0;border:1px solid var(--line,#dce8ed);border-radius:14px;background:#fff;box-shadow:none;display:flex;flex-direction:column;gap:16px}
.finance-chart-heading{min-height:118px}.finance-chart-heading h2{font-size:16px;margin:7px 0 10px}.finance-chart-heading .eyebrow{font-size:10px;letter-spacing:1px;color:var(--muted,#748f9e)}
.finance-chart-total{font-size:27px;letter-spacing:-.5px;color:var(--primary);display:block}.finance-chart-card .muted{font-size:12px;line-height:1.6;margin:6px 0 0}
.finance-chart-body{display:flex;flex-direction:column;align-items:center;gap:20px;flex:1;padding-top:8px}
.finance-ring{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;flex:none}.finance-ring-center{background:#fff;width:126px;height:126px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}.finance-ring-center strong{font-size:20px;color:var(--primary)}.finance-ring-center span{font-size:11px;color:var(--muted,#748f9e)}
.finance-chart-legend{width:100%;display:grid;gap:10px}.finance-legend-row{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:9px;align-items:center;font-size:12px}.finance-legend-row i{height:8px;width:8px;border-radius:50%}.finance-legend-row span{overflow-wrap:anywhere}.finance-legend-row small{display:block;color:var(--muted,#748f9e);margin-top:3px}.finance-legend-row strong{font-size:12px;white-space:nowrap}
.finance-card-actions{display:flex;gap:6px;flex-wrap:wrap}.finance-card-actions .button,.finance-chart-card .income-view-tabs .button{font-size:11px;padding:6px 10px;min-height:32px}.finance-card-foot{display:flex;flex-wrap:wrap;gap:7px 14px;border-top:1px solid var(--line,#dce8ed);padding-top:12px;font-size:12px}.finance-period-note{font-size:12px;line-height:1.6;color:var(--muted,#748f9e);margin:0 0 20px}.finance-warning{font-size:12px;color:#a5640c;background:#fff8ee;border-radius:8px;padding:10px}
.finance-page .finance-list-card{padding:20px 22px;margin:14px 0;border:1px solid var(--line,#dce8ed);border-radius:14px;background:#fff;box-shadow:none}.finance-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}.finance-section-head h2{font-size:16px;margin:0}.finance-section-head p{margin:5px 0 0;font-size:12px}.finance-section-head>.button{flex:none;font-size:12px}
.finance-data-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:20px;padding:14px 12px;border:1px solid var(--line,#dce8ed);background:#f7fafb;border-radius:9px;margin-top:8px;font-size:13px}.finance-data-row small{display:block;margin-top:4px;font-size:11px;color:var(--muted,#748f9e);overflow-wrap:anywhere}.finance-data-row>strong{white-space:nowrap}.finance-row-actions{display:flex;gap:6px}.finance-row-actions .button{font-size:11px;padding:5px 9px;min-height:31px}.finance-row-actions .danger{color:#ba4949;border-color:#efd2d2;background:#fff}.finance-list-card>.muted{font-size:11px;margin-top:16px}
.finance-dialog{width:min(760px,calc(100vw - 32px));max-height:90dvh;padding:24px;border:1px solid var(--line,#dce8ed);border-radius:16px}.finance-editor{display:grid;gap:16px}.finance-editor>label{display:grid;gap:7px;font-size:13px}.finance-editor input,.finance-editor select{width:100%;min-height:40px;border:1px solid var(--line,#dce8ed);border-radius:8px;padding:8px 12px;font:inherit;color:inherit;background:#fff}.finance-editor .form-actions{display:flex;justify-content:flex-end;gap:8px}.finance-editor .finance-pending{text-align:left;white-space:normal}.finance-dialog .repasse-panel{margin:0;padding:12px}.finance-dialog .repasse-detail{grid-template-columns:1fr}.finance-dialog .repasse-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.finance-page .finance-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(min-width:1600px){.finance-chart-body{flex-direction:row;align-items:flex-start}.finance-chart-legend{padding-top:8px}}
@media(max-width:1100px){.finance-page .finance-chart-card{padding:16px}.finance-chart-total{font-size:23px}.finance-legend-row{font-size:11px}.finance-page .finance-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.finance-page .finance-chart-grid{grid-template-columns:1fr}.finance-chart-heading{min-height:0}.finance-chart-body{flex-direction:row;align-items:center}.finance-page .finance-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-data-row{grid-template-columns:minmax(0,1fr) auto;gap:12px}.finance-row-actions{grid-column:1/-1;justify-content:flex-end}.finance-section-head{align-items:flex-start;flex-wrap:wrap}.finance-page .finance-list-card{padding:16px}.finance-dialog{padding:18px}.finance-dialog .repasse-overview{grid-template-columns:1fr}}
@media(max-width:400px){.finance-chart-body{flex-direction:column}.finance-ring{width:140px;height:140px}.finance-ring-center{width:116px;height:116px}}

/* ---------- Resumo (Recebido, Impostos, Gastos, Valor líquido) ---------- */
.finance-page .finance-metrics{gap:12px}
.finance-page .finance-metrics .metric{padding:14px 16px;border:1px solid #e3ecf0;border:1px solid hsl(from var(--primary) h calc(s * 0.39) 91.6);border-radius:12px;background:#fff;box-shadow:none}
.finance-page .finance-metrics .metric span{font-size:12px;color:#7a909c;color:hsl(from var(--primary) h calc(s * 0.19) 54.5)}
.finance-page .finance-metrics .metric strong{font-size:20px;font-weight:600;color:#26475a;color:hsl(from var(--primary) h calc(s * 0.53) 25.1);letter-spacing:-.2px}
.finance-page .finance-metrics .metric:last-child{background:#f2f9fb;background:hsl(from var(--primary) h calc(s * 0.69) 96.7);border-color:#cfe6ed;border-color:hsl(from var(--primary) h calc(s * 0.59) 87.1);color:inherit}
.finance-page .finance-metrics .metric:last-child span{color:#4f8396;color:hsl(from var(--primary) h calc(s * 0.4) 44.9)}
.finance-page .finance-metrics .metric:last-child strong{color:#0f6b84;color:hsl(from var(--primary) h calc(s * 1.03) 28.8)}
.finance-page .professional-finance-title{font-size:14px;font-weight:600;color:#47697a;color:hsl(from var(--primary) h calc(s * 0.34) 37.8)}

/* ---------- Ganho total ---------- */
.finance-page .company-finance{background:#fff;border:1px solid #e3ecf0;border:1px solid hsl(from var(--primary) h calc(s * 0.39) 91.6);border-radius:14px;box-shadow:none;padding:20px 22px}
.finance-page .company-finance-top{border-bottom-color:#eef3f5;border-bottom-color:hsl(from var(--primary) h calc(s * 0.34) 94.7)}
.finance-page .company-finance .eyebrow{font-size:10.5px;letter-spacing:.8px;color:#7d97a3;color:hsl(from var(--primary) h calc(s * 0.22) 56.5)}
.finance-page .company-finance h2{font-size:16px;font-weight:600}
.finance-page .company-total{font-size:26px;font-weight:600;color:#1d5d72;color:hsl(from var(--primary) h calc(s * 0.77) 28);letter-spacing:-.4px}
.finance-page .income-summaries strong{font-size:15px;font-weight:600;color:#33586b;color:hsl(from var(--primary) h calc(s * 0.46) 31)}
.finance-page .income-view-tabs .button{border-radius:999px;min-height:30px;padding:5px 14px;font-weight:500;background:#fff;color:#4c6d7d;color:hsl(from var(--primary) h calc(s * 0.32) 39.4);border-color:#dbe7ec;border-color:hsl(from var(--primary) h calc(s * 0.4) 89.2)}
.finance-page .income-view-tabs .button[aria-pressed=true]{background:#e6f3f7;background:hsl(from var(--primary) h calc(s * 0.67) 93.5);color:#0f6b84;color:hsl(from var(--primary) h calc(s * 1.03) 28.8);border-color:#b8dbe5;border-color:hsl(from var(--primary) h calc(s * 0.6) 81);box-shadow:none}
.finance-page .income-donut{width:150px;height:150px}
.finance-page .income-donut-center{width:126px;height:126px;background:#fff}
.finance-page .income-donut-center strong{font-size:20px;font-weight:600;color:#33586b;color:hsl(from var(--primary) h calc(s * 0.46) 31)}
.finance-page .income-chart-legend{background:#fbfdfe;border:1px solid #eef3f5;border:1px solid hsl(from var(--primary) h calc(s * 0.34) 94.7);border-radius:10px;box-shadow:none}
/* O quadro "Recebimentos por convênio" repetia o gráfico acima. */
.finance-page .income-breakdown{display:none}

/* ---------- Painel de repasses ---------- */
.repasse-panel{margin:16px 0;padding:20px 22px;border:1px solid #e3ecf0;border:1px solid hsl(from var(--primary) h calc(s * 0.39) 91.6);border-radius:14px;background:#fff;box-shadow:none}
.repasse-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.repasse-head h2{margin:0;font-size:16px;font-weight:600;color:#20394a}
.repasse-sub{margin:4px 0 0;font-size:12.5px;color:#7a909c;color:hsl(from var(--primary) h calc(s * 0.19) 54.5);max-width:560px}
.repasse-actions{display:flex;gap:8px;flex-wrap:wrap}
.repasse-actions .button{min-height:34px;padding:6px 14px;border-radius:8px;font-size:12.5px}
.repasse-actions .repasse-config{background:#fff;color:#2c5266;color:hsl(from var(--primary) h calc(s * 0.52) 28.6);border-color:#d6e3e9;border-color:hsl(from var(--primary) h calc(s * 0.39) 87.6)}
.repasse-feedback{margin:10px 0 0;font-size:12px;color:#2d8a6e}
.repasse-feedback:empty{display:none}
.repasse-picker{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 4px;padding:4px;background:#f4f8fa;background:hsl(from var(--primary) h calc(s * 0.49) 96.9);border-radius:999px;width:fit-content;max-width:100%}
.repasse-pick{height:30px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:#4c6d7d;color:hsl(from var(--primary) h calc(s * 0.32) 39.4);font:500 12.5px/1 inherit;font-family:inherit;cursor:pointer;white-space:nowrap}
.repasse-pick:hover{color:#20394a;background:#eaf2f5;background:hsl(from var(--primary) h calc(s * 0.46) 93.9)}
.repasse-pick.active{background:#fff;color:#0f6b84;color:hsl(from var(--primary) h calc(s * 1.03) 28.8);font-weight:600;box-shadow:0 1px 3px #1f3d4f1f;box-shadow:0 1px 3px hsl(from var(--primary) h calc(s * 0.57) 21.6 / 0.122)}
.repasse-body{margin-top:14px}
.repasse-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.repasse-metric{padding:12px 14px;border:1px solid #e9f0f3;border:1px solid hsl(from var(--primary) h calc(s * 0.38) 93.3);border-radius:10px;background:#fbfdfe}
.repasse-metric span{display:block;font-size:11.5px;color:#7a909c;color:hsl(from var(--primary) h calc(s * 0.19) 54.5)}
.repasse-metric strong{display:block;margin-top:4px;font-size:18px;font-weight:600;color:#26475a;color:hsl(from var(--primary) h calc(s * 0.53) 25.1)}
.repasse-metric small{display:block;margin-top:3px;font-size:11px;color:#97a9b2;color:hsl(from var(--primary) h calc(s * 0.19) 64.5)}
.repasse-metric.is-due{background:#fff8ee;border-color:#f3dfbf}
.repasse-metric.is-due strong{color:#a5640c}
.repasse-metric.is-ok{background:#f1f9f5;border-color:#d3ebdf}
.repasse-metric.is-ok strong{color:#2d7f5f}
.repasse-overview{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;align-items:center;margin-top:16px}
.repasse-donut-wrap{display:grid;place-items:center}
.repasse-donut{position:relative;width:150px;height:150px;border-radius:50%;display:grid;place-items:center}
.repasse-donut-center{width:124px;height:124px;border-radius:50%;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}
.repasse-donut-center strong{font-size:18px;font-weight:600;color:#33586b;color:hsl(from var(--primary) h calc(s * 0.46) 31)}
.repasse-donut-center span{font-size:10.5px;color:#8a9ea9;color:hsl(from var(--primary) h calc(s * 0.2) 60.2)}
.repasse-people{display:grid;gap:8px}
.repasse-person{display:grid;gap:7px;width:100%;padding:11px 14px;border:1px solid #e9f0f3;border:1px solid hsl(from var(--primary) h calc(s * 0.38) 93.3);border-radius:10px;background:#fff;font:inherit;text-align:left;cursor:pointer;transition:border-color .12s,background .12s}
.repasse-person:hover{border-color:#b8dbe5;border-color:hsl(from var(--primary) h calc(s * 0.6) 81);background:#f8fcfd}
.repasse-person-top{display:flex;align-items:center;gap:8px}
.repasse-person-top strong{font-size:13px;font-weight:600;color:#26475a;color:hsl(from var(--primary) h calc(s * 0.53) 25.1)}
.repasse-dot{width:9px;height:9px;border-radius:50%;flex:none}
.repasse-share{margin-left:auto;font-size:11.5px;color:#7a909c;color:hsl(from var(--primary) h calc(s * 0.19) 54.5)}
.repasse-person-nums{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:#5f7a88;color:hsl(from var(--primary) h calc(s * 0.23) 45.3)}
.repasse-person-nums .due{color:#a5640c;font-weight:500}
.repasse-person-nums .ok{color:#2d7f5f;font-weight:500}
.repasse-progress{height:5px;border-radius:999px;background:#edf3f5;background:hsl(from var(--primary) h calc(s * 0.37) 94.5);overflow:hidden}
.repasse-progress span{display:block;height:100%;border-radius:inherit;background:#5ebba7}
.repasse-detail{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);gap:14px;margin-top:14px}
.repasse-card{padding:14px 16px;border:1px solid #e9f0f3;border:1px solid hsl(from var(--primary) h calc(s * 0.38) 93.3);border-radius:12px;background:#fff;min-width:0}
.repasse-card h3{margin:0 0 12px;font-size:13px;font-weight:600;color:#33586b;color:hsl(from var(--primary) h calc(s * 0.46) 31)}
.repasse-bars{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;height:150px;align-items:end;padding-bottom:2px;border-bottom:1px solid #edf3f5;border-bottom:1px solid hsl(from var(--primary) h calc(s * 0.37) 94.5)}
.repasse-col{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}
.repasse-col-bars{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.repasse-col .bar{width:10px;min-height:2px;border-radius:4px 4px 0 0;transition:height .3s}
.bar.received,.swatch.received{background:#cfe5ec;background:hsl(from var(--primary) h calc(s * 0.56) 86.9)}
.bar.expected,.swatch.expected{background:#147f98;background:hsl(from var(--primary) h calc(s * 1.0) 33.7)}
.bar.paid,.swatch.paid{background:#5ebba7}
.repasse-col-label{font-size:11px;color:#8a9ea9;color:hsl(from var(--primary) h calc(s * 0.2) 60.2);text-transform:capitalize}
.repasse-col.current .repasse-col-label{color:#0f6b84;color:hsl(from var(--primary) h calc(s * 1.03) 28.8);font-weight:600}
.repasse-legend-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:11.5px;color:#6f8592;color:hsl(from var(--primary) h calc(s * 0.18) 50.4)}
.repasse-legend-row span{display:inline-flex;align-items:center;gap:6px}
.swatch{display:inline-block;width:10px;height:10px;border-radius:3px}
.repasse-calc{width:100%;border-collapse:collapse;font-size:12.5px}
.repasse-calc th{padding:6px 8px;text-align:left;font-size:11px;font-weight:600;color:#7a909c;color:hsl(from var(--primary) h calc(s * 0.19) 54.5);border-bottom:1px solid #edf3f5;border-bottom:1px solid hsl(from var(--primary) h calc(s * 0.37) 94.5)}
.repasse-calc td{padding:9px 8px;border-bottom:1px solid #f1f5f7;border-bottom:1px solid hsl(from var(--primary) h calc(s * 0.35) 95.7);color:#33586b;color:hsl(from var(--primary) h calc(s * 0.46) 31)}
.repasse-calc td strong{display:block;font-weight:600;color:#26475a;color:hsl(from var(--primary) h calc(s * 0.53) 25.1)}
.repasse-calc td small{display:block;font-size:11px;color:#8a9ea9;color:hsl(from var(--primary) h calc(s * 0.2) 60.2)}
.repasse-calc th:not(:first-child),.repasse-calc td:not(:first-child){text-align:right;white-space:nowrap}
.repasse-calc tfoot th,.repasse-calc tfoot td{border-bottom:0;font-weight:600;color:#20394a;padding-top:10px}
.repasse-calc .muted-cell{color:#a3b3bb;color:hsl(from var(--primary) h calc(s * 0.19) 68.6)}
.repasse-empty{margin:6px 0;font-size:12.5px;color:#8a9ea9;color:hsl(from var(--primary) h calc(s * 0.2) 60.2)}
.repasse-note{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#f4f8fa;background:hsl(from var(--primary) h calc(s * 0.49) 96.9);font-size:12px;color:#5f7a88;color:hsl(from var(--primary) h calc(s * 0.23) 45.3)}
.repasse-history{margin-top:14px;border-top:1px solid #eef3f5;border-top:1px solid hsl(from var(--primary) h calc(s * 0.34) 94.7);padding-top:10px}
.repasse-history>summary{cursor:pointer;font-size:12.5px;font-weight:500;color:#2f6f84;color:hsl(from var(--primary) h calc(s * 0.62) 35.1)}
.repasse-history-row{display:grid;grid-template-columns:90px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:8px 2px;border-bottom:1px solid #f1f5f7;border-bottom:1px solid hsl(from var(--primary) h calc(s * 0.35) 95.7);font-size:12.5px;color:#4c6d7d;color:hsl(from var(--primary) h calc(s * 0.32) 39.4)}
.repasse-history-row strong{color:#26475a;color:hsl(from var(--primary) h calc(s * 0.53) 25.1);font-weight:600}
.repasse-remove{min-height:28px!important;padding:3px 10px!important;font-size:11.5px!important;color:#b5473f;border-color:#f0d6d3;background:#fff}
.repasse-foot{margin:14px 0 0;font-size:11px;line-height:1.55;color:#97a9b2;color:hsl(from var(--primary) h calc(s * 0.19) 64.5)}
@media(max-width:820px){.repasse-overview,.repasse-detail{grid-template-columns:1fr}.repasse-picker{border-radius:12px}}

/* ---------- Impostos, gastos e consultas recebidas ---------- */
.finance-page .finance-controls,.finance-page .module-list{border:1px solid #e3ecf0;border:1px solid hsl(from var(--primary) h calc(s * 0.39) 91.6);border-radius:14px;box-shadow:none;background:#fff}
.finance-page .module-list h2{font-size:15px;font-weight:600}
.repasse-picker{align-items:center}
.repasse-select{height:30px;min-height:30px;width:auto;min-width:220px;max-width:100%;padding:0 10px;border:0;border-radius:999px;background:transparent;color:#4c6d7d;color:hsl(from var(--primary) h calc(s * 0.32) 39.4);font:500 12.5px/1 inherit;font-family:inherit;cursor:pointer}
.repasse-select:hover{background:#eaf2f5;background:hsl(from var(--primary) h calc(s * 0.46) 93.9)}
.repasse-select.active{background:#fff;color:#0f6b84;color:hsl(from var(--primary) h calc(s * 1.03) 28.8);font-weight:600;box-shadow:0 1px 3px #1f3d4f1f;box-shadow:0 1px 3px hsl(from var(--primary) h calc(s * 0.57) 21.6 / 0.122)}

.finance-page .module-filters{height:auto;min-height:0;align-items:start;align-content:start}
.finance-row-actions .button{display:inline-flex;align-items:center;gap:5px}.finance-row-actions svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.finance-legend-link{border:0;padding:0;background:transparent;text-align:left;font:inherit;color:var(--primary);cursor:pointer;overflow-wrap:anywhere}.finance-legend-link:hover{text-decoration:underline}.finance-legend-link:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:3px}
.finance-page .module-filters label{height:auto;min-height:0;align-content:start;grid-template-rows:auto 40px}
.finance-page .module-filters input,.finance-page .module-filters select{height:40px;min-height:40px}
.finance-chart-card .income-view-tabs,.finance-card-actions,.finance-card-toolbar{min-height:36px;margin:0;align-content:start}
.finance-page .finance-chart-heading{min-height:128px}
@media(min-width:1400px){.finance-chart-body{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:start;gap:14px}.finance-ring{width:130px;height:130px}.finance-ring-center{width:108px;height:108px}.finance-chart-legend{padding-top:0}.finance-legend-row{grid-template-columns:8px minmax(0,1fr) auto;gap:6px}.finance-legend-row>strong{font-size:11px}.finance-chart-card{min-height:430px}}
@media(max-width:760px){.finance-page .finance-chart-heading{min-height:0}.finance-card-toolbar{display:none}.finance-page .module-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.finance-page .module-filters label:last-child{grid-column:1/-1}}


/* Repasse: convênio e profissional, com detalhes acessíveis no mesmo painel. */
.finance-rep-picker{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-right:auto;min-width:0}.finance-rep-picker select{width:230px;max-width:100%;height:36px;font:inherit;color:var(--ink);border:1px solid var(--line,#dce8ed);border-radius:8px;background:#fff;padding:6px 10px}.finance-card-actions:has(.finance-rep-picker){align-items:center;gap:8px}.finance-consultation-values{display:grid;gap:4px;font-variant-numeric:tabular-nums}.repasse-insurance-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 70px;gap:10px;align-items:center;padding:14px;background:#f8fbfc;border:1px solid var(--line,#dce8ed);border-radius:10px;margin-top:10px}.repasse-insurance-row strong{font-size:13px;color:var(--ink)}.repasse-insurance-hint{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:4px}.repasse-insurance-row input,.repasse-insurance-row select{min-width:0;width:100%;height:36px;border:1px solid var(--line,#dce8ed);border-radius:7px;background:#fff;padding:6px 8px;font:inherit}.repasse-insurance-row input{text-align:right}
@media(max-width:600px){.finance-rep-picker{width:100%;align-items:start;flex-direction:column}.finance-rep-picker select{width:100%}.repasse-insurance-row{grid-template-columns:minmax(0,1fr) 65px}.repasse-insurance-row>div{grid-column:1/-1}}

/* Repasses: operação compacta, um profissional por vez e histórico paginado. */
.finance-page .finance-single-chart .finance-payout-card{padding:20px;gap:0}.payout-workspace{min-width:0}.payout-heading{margin-bottom:16px}.payout-heading h2{font-size:17px;margin:0 0 4px}.payout-heading .muted{margin:0;font-size:12px}.payout-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--line,#dce8ed)}.payout-toolbar>label{display:grid;gap:6px;font-size:12px;min-width:0;max-width:350px;flex:1}.payout-toolbar select{width:100%;min-width:0;height:36px;padding:6px 10px;border:1px solid var(--line,#dce8ed);border-radius:7px;background:#fff;color:var(--ink);font:inherit}.payout-identity{padding:8px 0;font-size:14px}.payout-actions{display:flex;gap:7px;flex-wrap:wrap}.payout-actions .button{font-size:12px;padding:7px 12px;min-height:36px}.payout-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.payout-total{display:grid;gap:6px;padding:14px 16px;border:1px solid var(--line,#dce8ed);border-radius:9px;background:#f8fbfc}.payout-total span{font-size:12px;color:var(--ink)}.payout-total strong{font-size:24px;line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums}.payout-total small{font-size:11px;color:var(--muted)}.payout-total-paid{background:#eef8f5;border-color:#d3e9e2}.payout-total-paid strong{color:#247b67}.payout-total-balance strong{color:var(--primary)}.payout-history-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:18px 0 8px}.payout-history-heading h3{font-size:13px;margin:0}.payout-history-heading span{font-size:11px;color:var(--muted)}.payout-table-wrap{overflow-x:auto}.payout-table{border-collapse:collapse;width:100%;font-size:12px}.payout-table th{text-align:left;color:var(--muted);font-weight:500;background:#f6f9fa}.payout-table th,.payout-table td{padding:10px 12px;border-bottom:1px solid var(--line,#dce8ed);white-space:nowrap}.payout-table td:nth-child(3){font-weight:600;font-variant-numeric:tabular-nums}.payout-table th:last-child,.payout-table td:last-child{text-align:right}.payout-delete{color:#b54f4f!important;background:transparent!important;border:0!important;min-height:28px!important;padding:4px 8px!important;font-size:11px!important}.payout-empty{font-size:13px;color:var(--muted);padding:18px 0;margin:0}.payout-footnote{font-size:11px;color:var(--muted);line-height:1.5;margin:14px 0 0}.payout-note{font-size:12px;color:#8b671f;background:#fff9ed;border-radius:7px;padding:10px 12px}.payout-consultation-list{max-height:50dvh;overflow-y:auto;padding:0 3px}
@media(max-width:700px){.payout-toolbar{align-items:stretch;flex-direction:column;gap:10px}.payout-toolbar>label{max-width:none}.payout-totals{gap:6px}.payout-total{padding:10px 8px}.payout-total strong{font-size:18px}.payout-total small{line-height:1.4}.payout-table th,.payout-table td{padding:9px 6px;font-size:11px}.finance-page .finance-single-chart .finance-payout-card{padding:16px}.payout-actions .button{font-size:11px;padding:6px 10px}}

/* Histórico: até cinco linhas visíveis, com rolagem para os demais registros. */
.payout-table-wrap.is-scrollable{max-height:278px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a9c9d2 #f3f8fa;overscroll-behavior:contain}.payout-table-wrap .payout-table th{height:38px;padding-block:8px;box-sizing:border-box;line-height:20px}.payout-table-wrap .payout-table td{height:48px;padding-block:8px;box-sizing:border-box;line-height:20px}.payout-table-wrap.is-scrollable th{position:sticky;top:0;z-index:1;background:#f6f9fa;box-shadow:0 1px 0 var(--line,#dce8ed)}.payout-table-wrap.is-scrollable:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
