/* FINANCIAL: the workspace. ws-* carries the shell; fn- is the rest. */
.fn { display: flex; flex-direction: column; gap: 14px; }
.fn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.fn-card { text-align: left; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.03); padding: 14px 16px; color: var(--white, #fff); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.fn-card:hover { border-color: rgba(196,23,23,.45); transform: translateY(-1px); }
.fn-card-n { font-weight: 650; font-size: 15px; }
.fn-card-n em { font-style: normal; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-light, #aeaeb2); margin-left: 6px; }
.fn-card-m { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--gray-light, #aeaeb2); }
.fn-card-m .is-warn { color: #e6a700; }
.fn-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fn-h h2 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.fn-h h2 small { font-size: 12.5px; font-weight: 500; color: var(--gray-light, #aeaeb2); margin-left: 8px; }
.fn-h-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fn-h3 { font-size: 14px; margin: 18px 0 8px; }
.fn-hint { font-size: 12px; color: var(--gray-light, #aeaeb2); }
.fn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 16px; }
.fn-tile { position: relative; text-align: left; display: flex; flex-direction: column; gap: 5px; padding: 16px 16px 14px 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); color: var(--white, #fff); font: inherit; cursor: pointer; transition: transform .16s ease, border-color .16s ease; overflow: hidden; }
.fn-tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--gray-light, #aeaeb2); opacity: .5; }
.fn-tile.is-ok::before { background: #37c27a; opacity: .9; } .fn-tile.is-warn::before { background: #e6a700; opacity: .9; } .fn-tile.is-bad::before { background: #ff5c5c; opacity: .9; }
.fn-tile:hover { transform: translateY(-2px); border-color: rgba(196,23,23,.45); }
.fn-tile-l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-light, #aeaeb2); }
.fn-tile b { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.fn-tile-s { font-size: 12.5px; color: var(--gray-light, #aeaeb2); line-height: 1.4; }
.fn-tile-f { font-size: 11.5px; color: var(--gray-light, #aeaeb2); margin-top: 2px; }
.fn-bar { display: block; width: 100%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 6px; }
.fn-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gray-light, #aeaeb2); }
.fn-bar.is-ok i { background: #37c27a; } .fn-bar.is-warn i { background: #e6a700; } .fn-bar.is-bad i { background: #ff5c5c; }
.fn-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fn-spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; margin-top: 6px; }
.fn-spark i { flex: 1 1 0; display: block; border-radius: 2px; background: #37c27a; opacity: .8; }
.fn-spark i.is-neg { background: #ff5c5c; }
.fn-summary { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.fn-summary > div { flex: 1 1 150px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; background: rgba(255,255,255,.03); }
.fn-summary span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-light, #aeaeb2); }
.fn-summary b { font-size: 17px; font-variant-numeric: tabular-nums; }
.fn-summary > div.is-bad b { color: #ff5c5c; } .fn-summary > div.is-warn b { color: #e6a700; } .fn-summary > div.is-ok b { color: #37c27a; }
.fn-tablewrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; margin-top: 10px; }
.fn-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fn-table thead th { text-align: left; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-light, #aeaeb2); padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.09); white-space: nowrap; }
.fn-table td { padding: 9px 12px; border-bottom: 1px solid rgba(255,255,255,.06); vertical-align: middle; }
.fn-table tr:last-child td { border-bottom: 0; }
.fn-table tr.is-bad td { background: rgba(255,92,92,.06); } .fn-table tr.is-warn td { background: rgba(230,167,0,.05); } .fn-table tr.is-on td { background: rgba(196,23,23,.1); }
.fn-table .fn-num, .fn-table th.fn-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fn-table .fn-acts { text-align: right; white-space: nowrap; }
.fn-table .fn-acts .sr-act { margin-left: 4px; }
.fn-total td { font-weight: 700; border-top: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.fn-quiet { padding: 18px 4px; color: var(--gray-light, #aeaeb2); font-size: 13.5px; line-height: 1.5; }
.fn-app { border: 1px solid rgba(196,23,23,.35); border-radius: 14px; padding: 14px 16px; margin-top: 12px; background: rgba(196,23,23,.05); }
.fn-g702 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 12px; }
.fn-g702 > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.fn-g702 span { font-size: 11px; color: var(--gray-light, #aeaeb2); letter-spacing: .04em; text-transform: uppercase; }
.fn-g702 b { font-size: 16px; font-variant-numeric: tabular-nums; }
.fn-g702 > div.is-due { background: rgba(196,23,23,.16); } .fn-g702 > div.is-due b { font-size: 20px; }
.fn-wf { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.fn-wf-s { display: grid; grid-template-columns: 140px 1fr 120px; align-items: center; gap: 12px; }
.fn-wf-l { font-size: 12.5px; color: var(--gray-light, #aeaeb2); }
.fn-wf-bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.06); overflow: hidden; }
.fn-wf-bar i { display: block; height: 100%; background: var(--gray-light, #aeaeb2); border-radius: 5px; }
.fn-wf-s.is-ok .fn-wf-bar i { background: #37c27a; } .fn-wf-s.is-warn .fn-wf-bar i { background: #e6a700; } .fn-wf-s.is-bad .fn-wf-bar i { background: #ff5c5c; } .fn-wf-s.is-mute .fn-wf-bar i { background: var(--red, #c41717); }
.fn-wf-s b { text-align: right; font-variant-numeric: tabular-nums; }
.fn-legend { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--gray-light, #aeaeb2); margin-bottom: 8px; }
.fn-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.fn-legend i.is-in { background: #37c27a; } .fn-legend i.is-out { background: #ff5c5c; }
.fn-cash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 14px 12px 10px; }
.fn-cash-m { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.fn-cash-bars { height: 120px; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.fn-cash-bars i { display: block; width: 40%; border-radius: 3px 3px 0 0; min-height: 2px; }
.fn-cash-bars i.is-in { background: #37c27a; } .fn-cash-bars i.is-out { background: #ff5c5c; }
.fn-cash-m span { font-size: 10.5px; color: var(--gray-light, #aeaeb2); }
.fn-cash-m b { font-size: 11px; font-variant-numeric: tabular-nums; }
.fn-cash-m b.is-bad { color: #ff5c5c; }
html.light .fn-card, html.light .fn-tile, html.light .fn-summary > div, html.light .fn-tablewrap, html.light .fn-cash { background: #fff; border-color: rgba(0,0,0,.09); }
html.light .fn-card, html.light .fn-tile { color: #111; }
html.light .fn-tile { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 14px 30px -28px rgba(0,0,0,.5); }
html.light .fn-tile-f { color: #5f5f66; }
html.light .fn-bar { background: rgba(0,0,0,.07); }
html.light .fn-bar.is-ok i, html.light .fn-spark i { background: #178a4f; } html.light .fn-bar.is-warn i { background: #9a6a00; } html.light .fn-bar.is-bad i, html.light .fn-spark i.is-neg { background: #c41717; }
html.light .fn-tile.is-ok::before { background: #178a4f; } html.light .fn-tile.is-warn::before { background: #9a6a00; } html.light .fn-tile.is-bad::before { background: #c41717; }
html.light .fn-card-n em, html.light .fn-card-m, html.light .fn-tile-l, html.light .fn-tile-s, html.light .fn-summary span, html.light .fn-quiet, html.light .fn-hint, html.light .fn-h h2 small, html.light .fn-wf-l, html.light .fn-legend, html.light .fn-cash-m span, html.light .fn-g702 span { color: #5f5f66; }
html.light .fn-table thead th { color: #5f5f66; border-bottom-color: rgba(0,0,0,.09); }
html.light .fn-table td { border-bottom-color: rgba(0,0,0,.06); }
html.light .fn-total td { border-top-color: rgba(0,0,0,.14); background: #f6f6f8; }
html.light .fn-app { background: rgba(196,23,23,.03); }
html.light .fn-g702 > div { background: #f6f6f8; } html.light .fn-g702 > div.is-due { background: rgba(196,23,23,.1); }
html.light .fn-wf-bar { background: rgba(0,0,0,.06); }
html.light .fn-summary > div.is-bad b { color: #c41717; } html.light .fn-summary > div.is-warn b { color: #9a6a00; } html.light .fn-summary > div.is-ok b { color: #178a4f; }
@media (max-width: 900px) { .fn-cash { grid-template-columns: repeat(6, minmax(0, 1fr)); } .fn-wf-s { grid-template-columns: 110px 1fr 100px; } }
