/* PetaniRapi v2.46 — lightweight cash-flow chart */
.cashflow-card-v246{padding:14px;border-radius:22px;overflow:hidden;background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%);border:1px solid #dfe9e3;box-shadow:0 10px 24px rgba(16,45,31,.05)}
.cashflow-head-v246{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.cashflow-head-v246 small{display:block;font-size:10.5px;font-weight:800;color:#71847b}
.cashflow-head-v246 h2{margin:3px 0 0;font-size:19px;line-height:1.08;letter-spacing:-.03em;color:#17372a}
.cashflow-net-v246{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 10px;border-radius:999px;font-size:10.5px;font-weight:900;line-height:1.1;white-space:nowrap}
.cashflow-net-v246.positive{background:#eaf7ef;color:#176b43;border:1px solid #d5eadc}
.cashflow-net-v246.negative{background:#fff1eb;color:#a5502f;border:1px solid #f0dacd}
.cashflow-net-v246.neutral{background:#f2f5f3;color:#64776e;border:1px solid #e1e7e3}
.cashflow-periods-v246{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px;margin-top:12px;border-radius:15px;background:#f2f6f3;border:1px solid #e1e9e4}
.cashflow-periods-v246 a{display:flex;align-items:center;justify-content:center;min-height:35px;padding:6px 8px;border-radius:11px;text-decoration:none;color:#5d7168;font-size:11px;font-weight:850;text-align:center}
.cashflow-periods-v246 a.active{background:#fff;color:#176a40;box-shadow:0 4px 12px rgba(18,67,43,.08)}
.cashflow-summary-v246{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px}
.cashflow-summary-v246>div{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:6px;align-items:center;padding:9px 9px;border-radius:14px;background:#f8faf9;border:1px solid #e4ebe7;min-width:0}
.cashflow-summary-v246 small{font-size:9.5px;color:#73867d;font-weight:750;min-width:0}
.cashflow-summary-v246 strong{grid-column:1/-1;display:block;margin-top:2px;font-size:13px;line-height:1.2;color:#17372a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cashflow-summary-v246 strong.positive{color:#176a40}.cashflow-summary-v246 strong.negative{color:#a5502f}.cashflow-summary-v246 strong.neutral{color:#60746b}
.cashflow-dot{width:8px;height:8px;border-radius:999px;display:inline-block}.cashflow-dot.income{background:#209761}.cashflow-dot.expense{background:#e49335}
.cashflow-chart-v246{height:158px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(48px,1fr);align-items:end;gap:8px;margin-top:13px;padding:12px 7px 5px;border-radius:18px;background:linear-gradient(180deg,#f8fbf9,#f3f7f4);border:1px solid #e2ebe6;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.cashflow-bucket-v246{height:100%;display:grid;grid-template-rows:minmax(92px,1fr) auto auto;gap:3px;align-items:end;text-align:center;min-width:0}
.cashflow-bars-v246{height:100%;display:flex;align-items:flex-end;justify-content:center;gap:5px;padding:4px 2px 0;border-bottom:1px solid #d5e1da}
.cashflow-bar{display:block;width:min(16px,34%);max-width:18px;min-width:9px;border-radius:7px 7px 3px 3px;transition:height .25s ease}
.cashflow-bar.income{background:linear-gradient(180deg,#31bd7b 0%,#1c8a58 100%)}
.cashflow-bar.expense{background:linear-gradient(180deg,#f4ad50 0%,#dc8623 100%)}
.cashflow-bucket-v246>strong{font-size:10.5px;line-height:1;color:#36564a}
.cashflow-bucket-v246>small{font-size:8.5px;line-height:1.2;color:#82938c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cashflow-legend-v246{display:flex;align-items:center;gap:14px;margin-top:8px;font-size:10.5px;color:#61766c;font-weight:750}
.cashflow-legend-v246 span{display:inline-flex;align-items:center;gap:5px}.cashflow-legend-v246 i{width:9px;height:9px;border-radius:3px}.cashflow-legend-v246 i.income{background:#209761}.cashflow-legend-v246 i.expense{background:#e49335}
.cashflow-empty-v246{display:grid;gap:3px;margin-top:12px;padding:14px;border-radius:16px;background:#f8faf9;border:1px dashed #d9e5de;text-align:center}
.cashflow-empty-v246 strong{font-size:12.5px;color:#315247}.cashflow-empty-v246 small{font-size:11px;line-height:1.45;color:#788b82}
.cashflow-note-v246{margin:9px 2px 0;font-size:9.5px;line-height:1.45;color:#81928a}
@media(max-width:390px){
  .cashflow-card-v246{padding:12px}
  .cashflow-head-v246{align-items:flex-start}.cashflow-head-v246 h2{font-size:18px}
  .cashflow-net-v246{max-width:120px;white-space:normal;text-align:center}
  .cashflow-summary-v246{gap:6px}.cashflow-summary-v246>div{padding:8px 7px}.cashflow-summary-v246 strong{font-size:12px}
  .cashflow-chart-v246{height:150px;grid-auto-columns:minmax(52px,1fr);gap:6px;padding-inline:5px}
}
@media(max-width:340px){
  .cashflow-summary-v246{grid-template-columns:1fr 1fr}.cashflow-summary-v246>div:last-child{grid-column:1/-1}
  .cashflow-head-v246{display:grid}.cashflow-net-v246{justify-self:start;max-width:none}
}
html[data-font-size="large"] .cashflow-summary-v246,
html[data-font-size="xlarge"] .cashflow-summary-v246{grid-template-columns:1fr}
html[data-font-size="large"] .cashflow-summary-v246 strong,
html[data-font-size="xlarge"] .cashflow-summary-v246 strong{white-space:normal;overflow:visible;text-overflow:clip}
html[data-font-size="xlarge"] .cashflow-head-v246{display:grid}
html[data-font-size="xlarge"] .cashflow-net-v246{justify-self:start;white-space:normal}
@media(prefers-reduced-motion:reduce){.cashflow-bar{transition:none}}
