.cash-flow-fab { position: fixed; z-index: 4; right: max(calc((100vw - 430px)/2 + 15px), 15px); bottom: calc(114px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 6px 14px 6px 7px; border: 1px solid #e6b35e; border-radius: 999px; background: linear-gradient(135deg, #ffebbc, #ffd177); color: #09233a; box-shadow: 0 8px 20px #001f3745, inset 0 1px #fff9; font: 850 .77rem system-ui; letter-spacing: .005em; cursor: pointer; }
.cash-flow-fab-icon { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #08344e; color: #ffdd92; box-shadow: inset 0 1px #ffffff2b; }
.cash-flow-fab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cash-flow-fab-label { white-space: nowrap; }
.cash-flow-fab:active { transform: translateY(1px); }
.cash-flow-fab:focus-visible { outline: 3px solid #f58220; outline-offset: 3px; }
.app-shell:not(.home-active) .cash-flow-fab, #dashboard-screen[hidden] .cash-flow-fab { display: none; }
body.cash-flow-open { overflow: hidden; }
.cash-flow-dialog { width: min(100vw, 430px); max-width: none; height: min(100dvh, 900px); max-height: 100dvh; margin: auto; padding: 0; border: 0; border-radius: 22px; background: #f4f8fa; color: #092c46; box-shadow: 0 18px 70px #001e38a8; }
.cash-flow-dialog::backdrop { background: #031b30b8; }
.cash-flow-head { display: flex; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; background: #061c31; color: #fff; }
.cash-flow-head > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.cash-flow-head small { color: #ffcf72; font-size: .62rem; font-weight: 850; letter-spacing: .1em; white-space: nowrap; }
.cash-flow-head h2 { margin: 0; font-size: 1.45rem; white-space: nowrap; }
.cash-flow-head p { flex-basis: 100%; margin: 0; color: #d6e8f2; font-size: .8rem; line-height: 1.4; }
.cash-flow-close { align-self: start; flex: 0 0 44px; height: 44px; border: 1px solid #ffffff55; border-radius: 50%; background: #ffffff15; color: #fff; font-size: 1.6rem; cursor: pointer; }
.cash-flow-content { display: grid; align-content: start; gap: 14px; max-height: calc(100% - 112px); overflow-y: auto; padding: 16px 18px calc(28px + env(safe-area-inset-bottom)); }
.cash-flow-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cash-flow-filters label { display: grid; gap: 6px; font-size: .78rem; font-weight: 800; }
.cash-flow-filters select, .cash-flow-filters input { width: 100%; min-width: 0; min-height: 44px; padding: 0 10px; border: 1px solid #c6dce7; border-radius: 11px; background: #fff; color: #092c46; font: inherit; }
.cash-flow-period { padding: 13px; border: 1px solid #d7e6eb; border-radius: 16px; background: #fff; }
.cash-flow-period h3 { margin: 0; font-size: 1rem; }
.cash-flow-period-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin-top: 10px; }
.cash-flow-period-options button { grid-column: span 2; min-height: 44px; padding: 7px 4px; border: 1px solid #cadde6; border-radius: 11px; background: #f6fafb; color: #214663; font-size: .76rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.cash-flow-period-options button:nth-child(n+4) { grid-column: span 3; }
.cash-flow-period-options button[aria-pressed="true"] { border-color: #146652; background: #dff4e9; color: #104b3a; }
.cash-flow-selected-range { margin: 10px 0 0; padding: 8px 10px; border-radius: 9px; background: #edf6f2; color: #145941; font-size: .76rem; font-weight: 750; line-height: 1.35; }
.cash-flow-state { font-size: .82rem; font-weight: 750; line-height: 1.5; }
.cash-flow-state small { display: block; margin-top: 3px; color: #6b4d18; font-weight: 600; }
.cash-flow-results { display: grid; gap: 12px; }
.cash-flow-loader { display: flex; align-items: center; gap: 14px; min-height: 118px; padding: 17px; border: 1px solid #beded1; border-radius: 18px; background: linear-gradient(135deg, #f7fcf9, #e7f5ed); box-shadow: 0 10px 28px #0b344713; animation: cash-flow-arrive .26s ease-out both; }
.cash-flow-loader-art { display: flex; align-items: end; justify-content: center; gap: 4px; flex: 0 0 62px; height: 62px; padding: 16px 12px; border-radius: 18px; background: linear-gradient(145deg, #0d5645, #25826b); box-shadow: inset 0 1px #ffffff44, 0 7px 16px #0b5a462e; }
.cash-flow-loader-art i { display: block; width: 8px; height: 18px; border-radius: 5px; background: #ffcf72; transform-origin: bottom; animation: cash-flow-rise 1.15s ease-in-out infinite; }
.cash-flow-loader-art i:nth-child(2) { height: 28px; animation-delay: .16s; }
.cash-flow-loader-art i:nth-child(3) { height: 22px; animation-delay: .32s; }
.cash-flow-loader-copy { flex: 1; min-width: 0; }
.cash-flow-loader-copy strong { display: block; color: #113c33; font-size: .95rem; line-height: 1.25; }
.cash-flow-loader-copy p { margin: 5px 0 0; color: #4f6c65; font-size: .78rem; line-height: 1.4; }
.cash-flow-loader-copy small { display: block; margin-top: 7px; color: #386457; font-size: .72rem; font-weight: 750; }
.cash-flow-loader-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 12px; }
.cash-flow-loader-progress span { height: 5px; border-radius: 5px; background: #cbded4; }
.cash-flow-loader-progress span.received { background: #218063; }
@keyframes cash-flow-rise { 0%, 100% { transform: scaleY(.68); opacity: .68; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes cash-flow-arrive { from { transform: translateY(5px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cash-flow-card { padding: 17px; border: 1px solid #d8e7ee; border-left: 5px solid #518962; border-radius: 16px; background: #fff; box-shadow: 0 7px 20px #0b344712; }
.cash-flow-card h3 { margin: 0 0 10px; font-size: 1rem; }
.cash-flow-field { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #ebf1f4; font-size: .82rem; }
.cash-flow-field span { color: #52718a; }
.cash-flow-field strong { text-align: right; }
.cash-flow-field-main { display: grid; justify-content: start; gap: 3px; margin-bottom: 6px; padding: 11px 12px; border: 1px solid #d3e9db; border-radius: 11px; background: #edf7f1; }
.cash-flow-field-main span { color: #2f6650; font-weight: 800; }
.cash-flow-field-main strong { color: #103e30; font-size: 1.35rem; line-height: 1.15; text-align: left; }
.cash-flow-card small { display: block; margin-top: 11px; color: #59758a; font-size: .72rem; }
.cash-flow-note { margin: 0; color: #566e7e; font-size: .82rem; line-height: 1.5; }
.cash-flow-empty { padding: 18px; border: 1px solid #d8e7ee; border-radius: 16px; background: #fff; }
.cash-flow-empty-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 9px; border-radius: 10px; background: #e9f3f6; color: #285c70; font-size: 1.5rem; }
.cash-flow-empty h3 { margin: 0 0 6px; font-size: .95rem; }
.cash-flow-empty p { margin: 0; color: #52718a; font-size: .82rem; line-height: 1.45; }
.cash-flow-action { min-height: 44px; width: 100%; padding: 9px 12px; border: 1px solid #247b67; border-radius: 12px; background: #e7f5ee; color: #145941; font-size: .82rem; font-weight: 800; cursor: pointer; }
.cash-flow-action:disabled { opacity: .55; cursor: default; }
.cash-flow-warning { box-sizing: border-box; width: min(calc(100vw - 28px), 390px); max-height: calc(100dvh - 28px); margin: auto; padding: 24px; overflow-y: auto; border: 1px solid #e8d3a2; border-radius: 20px; background: #fffdf8; color: #092c46; box-shadow: 0 22px 70px #001e38a8; }
.cash-flow-warning::backdrop { background: #031b30c9; }
.cash-flow-warning-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 14px; background: #fff0ce; color: #794b04; font: 900 1.3rem system-ui; }
.cash-flow-warning h2 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.2; }
.cash-flow-warning p { margin: 0 0 14px; font-size: .9rem; line-height: 1.5; }
.cash-flow-warning-context { color: #41617a; font-weight: 800; }
.cash-flow-warning-check { display: flex; align-items: start; gap: 11px; margin: 18px 0; padding: 14px; border: 1px solid #e8d7b8; border-radius: 13px; background: #fff8e9; font-size: .88rem; font-weight: 700; line-height: 1.45; cursor: pointer; }
.cash-flow-warning-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 1px 0 0; accent-color: #146652; }
.cash-flow-warning-actions { display: grid; grid-template-columns: 1fr 1.2fr; gap: 9px; }
.cash-flow-warning-actions button { min-height: 46px; padding: 9px; border-radius: 11px; font: 800 .82rem system-ui; cursor: pointer; }
.cash-flow-warning-cancel { border: 1px solid #c7d8df; background: #fff; color: #214663; }
.cash-flow-warning-confirm { border: 1px solid #146652; background: #146652; color: #fff; }
.cash-flow-warning-confirm:disabled { opacity: .5; cursor: default; }
.cash-flow-warning :focus-visible { outline: 3px solid #d78c1e; outline-offset: 3px; }
.cash-flow-items { display: grid; gap: 9px; }
.cash-flow-item { display: grid; gap: 4px; padding: 12px; border: 1px solid #d8e7ee; border-radius: 12px; background: #fff; font-size: .82rem; }
.cash-flow-item span, .cash-flow-item small { color: #547087; }
@media (max-width: 650px) { .cash-flow-dialog { width: 100vw; height: 100dvh; border-radius: 0; } .cash-flow-content { max-height: calc(100dvh - 112px); } }
@media (max-width: 340px) { .cash-flow-warning { padding: 18px; } .cash-flow-warning-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .cash-flow-fab { transition: none; } .cash-flow-loader, .cash-flow-loader-art i { animation: none; } }
