/* Cash-flow appearance shared with Ago Escritorio. Mobile adjustments live in style.css. */
.cashflow{margin:22px 0 20px;border:1px solid #4d4338;padding:12px 16px 8px;color:#ddd1c0}
.cashflow-heading{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center}
.cashflow h2{font-size:16px;margin:0;justify-self:start}.cashflow h3{font-size:13px;margin:0}
.cashflow-balance{text-align:center}.cashflow-balance>span{line-height:1.2;font-size:11px;color:#c9b9a2;display:block}.cashflow-balance>strong{display:block;font-size:32px;font-weight:700;color:#ff842b;line-height:1.1;margin:2px 0}.cashflow-balance small{line-height:1.2;font-size:10px;max-width:300px}
.cashflow button.cashflow-new{justify-self:end;display:inline-flex;align-items:center;gap:8px;border:1px solid #ffc04a;background:#2a1c08;color:#ffd175;padding:9px 13px;font-size:12px;font-weight:700}.cashflow-new svg{height:18px;width:18px;fill:none;stroke:currentColor;stroke-width:1.8}.cashflow button.cashflow-new:hover{background:#49300b;color:#ffe2a6}.cashflow button.cashflow-new:focus-visible{outline:2px solid #ffcc70;outline-offset:3px}
.cashflow-period{display:flex;align-items:center;gap:12px;margin:9px 0 12px;font-size:11px}.cashflow-period label{margin:0;display:flex;gap:7px;align-items:center}.cashflow-period input{margin:0;width:150px;height:29px;padding:4px 7px;color-scheme:dark}.cashflow-start{font-size:10px;color:#b3a38d}.cashflow button.cashflow-refresh{display:inline-flex;margin-left:auto;padding:5px;color:#cab99f}.cashflow-refresh svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5}
.cashflow-columns{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:22px}.cashflow-summary,.cashflow-log{min-width:0}
.cashflow-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0 0 10px;border-bottom:1px solid #393126}.cashflow-metrics span{font-size:10px;color:#bfae97;display:block}.cashflow-metrics strong{display:block;font-size:17px;margin-top:5px;white-space:nowrap}
.cashflow .is-negative{color:#f47b75}.cashflow .is-positive{color:#7bd4a2}.cashflow .is-neutral{color:#d3c6b5}
.cashflow small{display:block;font-size:10px;color:#a89984;line-height:1.45}.cashflow-caption{font-size:11px;color:#b9ab99;line-height:1.6;margin:8px 0}
.cashflow-accounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:9px 0 8px}
.cashflow-account{position:relative}.cashflow button.cashflow-currency{position:absolute;right:5px;top:4px;min-width:28px;min-height:18px;padding:1px 3px;border:1px solid #5a4932;background:#17120d;color:#e1c599;font-size:9px;line-height:1.2;font-weight:500}.cashflow button.cashflow-currency:hover{background:#382a18;color:#ffe0a3}.cashflow button.cashflow-currency:focus-visible{outline:2px solid #e1ac59;outline-offset:2px}
.cashflow-account{display:grid;grid-template-columns:28px minmax(0,1fr);gap:0 6px;padding:8px 7px;border:1px solid #393126;align-items:center;min-width:0}.cashflow-account-icon{grid-column:1;grid-row:1;width:28px;height:28px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:transparent}.cashflow-account-info{min-width:0}.cashflow-account-name{font-size:12px;white-space:nowrap}.cashflow-account-value{grid-column:1/-1;font-size:17px;margin-top:7px;white-space:nowrap;line-height:1.2}.cashflow-account-icon img{display:block;max-width:26px;max-height:27px;object-fit:contain}.cashflow-account-icon svg{width:28px;height:28px;fill:none;stroke:#ddc294;stroke-width:1.25}
.cashflow-commitment{min-width:0;border-bottom:1px solid #393126;padding-bottom:5px}.cashflow-commitment h3{font-size:12px;color:#cbb99d;font-weight:500;margin:2px 0 6px}.cashflow-commitment-list{list-style:none;padding:0;margin:0 0 3px}.cashflow-commitment-list li{display:flex;justify-content:space-between;gap:6px;font-size:11px;line-height:1.5;margin:3px 0}.cashflow-commitment-list li>span{min-width:0}.cashflow-commitment-list strong{font-size:12px;font-weight:500;color:#dfccb0;white-space:nowrap}.cashflow-commitment-empty{font-size:11px;color:#a89984;margin:4px 0}

.cashflow-commitments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cashflow-more{margin:0;min-width:0}.cashflow-more summary{cursor:pointer;list-style:none;font-size:11px;color:#cbb99d;display:flex;align-items:center;gap:8px;padding:4px 0;line-height:1.4}.cashflow-more summary::-webkit-details-marker{display:none}.cashflow-more summary::after{content:'+';margin-left:auto;color:#9f8b6a;font-size:14px;font-weight:400;flex-shrink:0}.cashflow-more[open]>summary::after{content:'−'}.cashflow-more summary strong{font-size:12px;color:#dfccb0;white-space:nowrap}.cashflow-more ul{list-style:none;padding:0;margin:3px 0 8px}.cashflow-more li{font-size:11px;line-height:1.5}.cashflow-more li>strong,.cashflow-more li>span{display:block}.cashflow-more li>strong{font-weight:400;color:#dfd1bd}
.cashflow-credit,.cashflow-recurring{padding:7px 9px 5px;border-left:2px solid}.cashflow-credit{background:#101721;border-color:#435875;color:#9badc7}.cashflow-credit h3,.cashflow-credit .cashflow-more summary{color:#8fa4c2}.cashflow-credit .cashflow-commitment-list strong{color:#b2c4dd}.cashflow-credit .cashflow-more summary::after{color:#6984a7}.cashflow-credit .cashflow-more li>strong{color:#b2c4dd}.cashflow-recurring{background:#1b1410;border-color:#795036;color:#c9a48a}.cashflow-recurring h3,.cashflow-recurring .cashflow-more summary{color:#bd8b67}.cashflow-recurring .cashflow-commitment-list strong{color:#deb18f}.cashflow-recurring .cashflow-more summary::after{color:#a1704d}.cashflow-recurring .cashflow-more li>strong{color:#deb18f}
.cashflow-log{padding-left:20px;border-left:1px solid #393126}.cashflow-log-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 5px}.cashflow-log-heading h3>span{font-size:11px;color:#9e8d73;font-weight:400;margin-left:6px}.cashflow-log-heading small{font-size:10px;white-space:nowrap}.cashflow-log-list{list-style:none;padding:0;margin:0;max-height:278px;overflow:auto;scrollbar-width:thin;scrollbar-color:#66513b #15110d}.cashflow-log-list>li{border-bottom:1px solid #2e2820}.cashflow-log-list>li:last-child{border-bottom:0}.cashflow-log-record>summary{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:9px;padding:11px 5px 11px 0;align-items:center}.cashflow-log-record>summary::after{display:none}.cashflow-log-record>summary:hover{background:#15110d}.cashflow-log-kind{height:22px;width:22px;display:flex;align-items:center;justify-content:center;font-size:17px;border:1px solid #393126;color:#9d8b70}.kind-income{color:#7bd4a2;border-color:#39594a}.kind-expense{color:#f47b75;border-color:#63423d}.cashflow-log-copy{min-width:0}.cashflow-log-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:400;color:#e5d9c7;white-space:normal;line-height:1.4}.cashflow-log-copy small{margin-top:3px;font-size:10px}.cashflow-log-value{font-size:13px;white-space:nowrap;align-self:center}.cashflow-log-detail{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:10px;color:#b7a68c;padding:0 5px 10px 33px;line-height:1.5}.cashflow-log-empty{font-size:12px;color:#ad9d87;margin:14px 0}
.cashflow-more[data-cashflow-detail=projects]{border-top:1px solid #393126;margin-top:9px;padding-top:3px}.cashflow-table{overflow-x:auto;margin-top:6px}.cashflow table{width:100%;border-collapse:collapse;font-size:11px}.cashflow th,.cashflow td{text-align:left;padding:7px 8px;border-bottom:1px solid #393126;vertical-align:top}.cashflow th{font-size:10px;color:#c9bbaa}.cashflow-error{font-size:12px;color:#f0a39d;line-height:1.5}
@media(max-width:1000px){.cashflow-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px}.cashflow-log{padding-left:14px}.cashflow-log-heading{flex-wrap:wrap;gap:4px}.cashflow-log-heading small{font-size:9px}.cashflow-log-record>summary{gap:7px;grid-template-columns:20px minmax(0,1fr) auto}.cashflow-log-value{font-size:12px}.cashflow-log-kind{width:20px;height:20px}.cashflow-account-value{font-size:15px}.cashflow-metrics strong{font-size:16px}.cashflow-commitments{gap:7px}.cashflow-more summary strong{font-size:11px}}
@media(max-width:800px){.cashflow-columns{grid-template-columns:1fr;gap:14px}.cashflow-log{padding-left:0;border-left:0;border-top:1px solid #393126;padding-top:12px}.cashflow-log-list{max-height:260px}.cashflow-log-heading{flex-wrap:nowrap}.cashflow-account-value{font-size:17px}.cashflow-metrics strong{font-size:18px}.cashflow-balance>strong{font-size:30px}}
@media(max-width:600px){.cashflow{padding:10px 12px 7px}.cashflow-heading{grid-template-columns:1fr auto;gap:7px}.cashflow-heading h2{font-size:14px}.cashflow-balance{grid-column:1/-1;grid-row:2;margin-top:4px}.cashflow button.cashflow-new{font-size:11px;padding:7px 9px;gap:5px}.cashflow-balance>strong{font-size:30px}.cashflow-period{gap:8px}.cashflow-period input{width:145px}.cashflow-start{margin-left:auto}.cashflow-account-name{font-size:11px}.cashflow-account-value{font-size:14px}.cashflow-account{grid-template-columns:24px minmax(0,1fr);gap:0 4px;padding:7px 5px}.cashflow-account-icon{width:24px;height:26px}.cashflow-account-icon img{max-width:23px;max-height:25px}.cashflow-account-info small{font-size:9px}.cashflow-metrics strong{font-size:16px}.cashflow-log-copy strong{font-size:11px}}

@media(max-width:1200px){.cashflow-accounts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:601px) and (max-width:800px){.cashflow-accounts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:480px){.cashflow-accounts{gap:5px}.cashflow-account{grid-template-columns:1fr}.cashflow-account-icon{margin-bottom:5px}.cashflow-account-name{font-size:10px}.cashflow-account-value{font-size:12px}.cashflow-account-info small{font-size:8px}.cashflow-commitment-list li{font-size:10px}}
