.cashflow-controls{display:flex;gap:10px;flex-wrap:wrap}.cashflow-controls .segmented button{font-size:11px;padding:8px 11px}.cashflow-context{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;flex-wrap:wrap}.cashflow-period{display:flex;align-items:center;gap:6px}.cashflow-period>.icon-button{display:grid;place-items:center;background:#f3f6f9;border:1px solid #e7edf3;width:29px;height:32px;padding:5px;color:var(--text-muted)}.cashflow-period>.icon-button .nexo-icon{width:16px;height:16px}.cashflow-month-picker{min-width:0}.cashflow-month-picker>.control-trigger{min-height:39px;font-size:12px;gap:18px;padding:9px 12px}.cashflow-month-picker .control-label{gap:8px}.cashflow-month-picker .control-label .nexo-icon{width:15px;height:15px;flex-basis:15px}.cashflow-range-note{font-size:11px;color:var(--text-muted)}.cashflow-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;border-bottom:1px solid #edf1f5;padding-bottom:19px;margin-bottom:22px}.cashflow-totals>div{display:grid;gap:9px;min-width:0}.cashflow-totals>div>span{font-size:11px;line-height:1.5;color:var(--text-muted)}.cashflow-totals b{font-size:18px;font-weight:500;letter-spacing:-.4px;overflow-wrap:anywhere;color:var(--text-secondary)}.cashflow-totals i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:6px}.income-dot{background:#239875}.expense-dot{background:#ec303d}.balance-dot{background:#397cdd}.cashflow-chart{display:flex;height:260px;gap:12px}.cashflow-axis{width:77px;flex:0 0 77px;display:flex;flex-direction:column;justify-content:space-between;font-size:10px;line-height:1;color:var(--text-muted);padding-bottom:24px;padding-top:7px}.cashflow-plot{position:relative;flex:1;min-width:0;margin-bottom:24px;background:repeating-linear-gradient(to top,#edf1f5 0,#edf1f5 1px,transparent 1px,transparent 25%)}.cashflow-plot>svg{width:100%;height:100%;display:block;overflow:visible}.cashflow-labels{position:absolute;inset:auto 0 -23px;height:14px;font-size:10px;color:var(--text-muted)}.cashflow-labels>span{position:absolute;transform:translateX(-50%);white-space:nowrap}.cashflow-hit-grid{position:absolute;inset:0;display:grid}.cashflow-hit-grid button{border:0;background:none;padding:0;min-width:0;border-radius:0!important;cursor:crosshair}.cashflow-hit-grid button:hover,.cashflow-hit-grid button:focus-visible{background:#397cdd05;outline:1px dashed #acbfd6;outline-offset:0}.cashflow-legend{margin-top:17px;gap:22px;flex-wrap:wrap}.cashflow-legend i.blue{background:#397cdd}.cashflow-legend i{background:#239875}.cashflow-legend i.red{background:#ec303d}.cashflow-footnote{font-size:11px;line-height:1.7;color:var(--text-muted);margin:15px 0 0}.cashflow-tooltip{position:absolute;top:6px;width:190px;z-index:4;border:1px solid #fff;border-radius:17px;background:#f8fcfff5;backdrop-filter:blur(15px);box-shadow:0 8px 24px #34465b18;padding:13px;pointer-events:none;color:var(--text-secondary)}.cashflow-tooltip[hidden]{display:none}.cashflow-tooltip>b{display:block;font-size:12px;font-weight:500;margin-bottom:11px}.cashflow-tooltip>span{display:flex;justify-content:space-between;gap:10px;font-size:11px;line-height:1.8}.cashflow-tooltip strong{font-weight:450}.dashboard-grid>.panel:first-child>.panel-heading{flex-wrap:wrap;gap:15px}
@media(max-width:800px){.cashflow-controls{gap:8px}.cashflow-controls .segmented button{font-size:11px;padding:8px 10px}.cashflow-context{margin:16px 0}.cashflow-totals{gap:10px}.cashflow-totals b{font-size:15px}.cashflow-totals>div>span{font-size:10px}.cashflow-chart{height:230px;gap:8px}.cashflow-axis{width:61px;flex-basis:61px;font-size:9px}.cashflow-legend{font-size:11px;gap:15px}.cashflow-footnote{font-size:10px}.cashflow-range-note{font-size:10px}.cashflow-month-picker>.control-trigger{font-size:12px}.cashflow-tooltip{width:170px;padding:10px}}



/* Pix reconciler month navigator: circular arrows and a plain central label. */
.cashflow-period{gap:10px}.cashflow-period>.icon-button{width:38px;height:38px;flex:0 0 38px;border-radius:50%!important;border:1px solid #f0f3f6;background:linear-gradient(145deg,#fff,#fcfdfe);box-shadow:0 6px 13px #25374d14,inset 0 1px #fff;color:#24445d;padding:10px;transition:transform .18s,box-shadow .18s}.cashflow-period>.icon-button:hover{transform:translateY(-2px);box-shadow:0 9px 20px #25374d1c}.cashflow-period>.icon-button .nexo-icon{width:17px;height:17px}.cashflow-month-picker>.control-trigger,.cashflow-month-picker[open]>.control-trigger{min-height:38px;border:0;background:transparent;box-shadow:none;padding:6px 2px;font-size:15px;font-weight:400;color:#172a3a;gap:0}.cashflow-month-picker>.control-trigger:hover{border:0;background:transparent;box-shadow:none}.cashflow-month-picker .control-label{white-space:nowrap;text-transform:capitalize}.cashflow-month-picker>.control-menu{margin-top:7px}@media(max-width:600px){.cashflow-period{gap:8px}.cashflow-period>.icon-button{width:36px;height:36px;flex-basis:36px;padding:9px}.cashflow-month-picker>.control-trigger{font-size:14px;min-height:36px}}

/* Shared cool-white surface matching the Pix month navigator reference. */
.cashflow-context{background:linear-gradient(135deg,#fbfcfd,#f7f9fb);padding:10px 12px;border-radius:17px}.cashflow-period{background:transparent}.cashflow-month-picker>.control-trigger,.cashflow-month-picker[open]>.control-trigger{color:#14354b}.cashflow-period>.icon-button:hover{background:linear-gradient(145deg,#fff,#f9fbfc)}
.cashflow-plot[data-mode="Linha"] {
 background:
  repeating-linear-gradient(to right, #9fb5cb20 0 1px, transparent 1px 10%),
  repeating-linear-gradient(to top, #edf1f5 0 1px, transparent 1px 25%);
}
.cashflow-highlight { display: none; }
.cashflow-plot:has(.cashflow-tooltip:not([hidden])) > .cashflow-highlight {
 display: block;
 position: absolute;
 inset: 0 auto 0 var(--point-x);
 width: 1px;
 background: #397cdd;
 pointer-events: none;
}
.cashflow-highlight::before {
 content: "";
 position: absolute;
 inset: 0 -9px;
 border-bottom: 2px solid #397cdd;
 background: linear-gradient(transparent, #397cdd25);
}
.cashflow-highlight > i {
 position: absolute;
 left: 50%;
 translate: -50% -50%;
 width: 10px;
 height: 10px;
 border: 2px solid #fff;
 border-radius: 50%;
}
.cashflow-highlight > .income-dot { top: var(--income-y); }
.cashflow-highlight > .expense-dot { top: var(--expense-y); }
.cashflow-highlight > .balance-dot { top: var(--balance-y); }
.cashflow-plot[data-mode="Barras"] .cashflow-highlight > i { display: none; }
.cashflow-plot .cashflow-hit-grid button:hover { background: none; outline: none; }
.cashflow-plot .cashflow-hit-grid button:focus-visible { outline: 1px solid #397cdd; }
.cashflow-plot .cashflow-tooltip {
 max-width: 100%;
 border-color: #e4edf5;
 background: #f8fcff;
 color: var(--text-secondary);
 box-shadow: 0 8px 24px #34465b18;
}
.cashflow-plot .cashflow-tooltip > span { align-items: baseline; column-gap: 6px; }
.cashflow-plot .cashflow-tooltip > span::before {
 content: "";
 width: 6px;
 height: 6px;
 flex: 0 0 6px;
 align-self: center;
 border-radius: 50%;
 background: #239875;
}
.cashflow-plot .cashflow-tooltip > span:nth-of-type(2)::before { background: #ec303d; }
.cashflow-plot .cashflow-tooltip > span:nth-of-type(3)::before { background: #397cdd; }
.cashflow-plot .cashflow-tooltip strong { margin-inline-start: auto; white-space: nowrap; }
.cashflow-totals > div:last-child > span { white-space: nowrap; }
@media (max-width: 800px) {
 .cashflow-totals { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(max-content, 1fr); }
}

.cashflow-plot .cashflow-tooltip > .credit-chart-expense::before { background: #ec303d; }

/* Swipe horizontally to inspect days while keeping vertical page scrolling. */
.cashflow-hit-grid,.cashflow-hit-grid > button { touch-action:pan-y pinch-zoom; }
