The balance sheet with shares and a what-if calculation; season counts in the line-up

The balance shows its sums as numerals and every position with its share. A
calculation with sliders for ticket price, crowd and home matches ahead draws where
the cash goes; it is arithmetic on the booked figures, not a forecast. The squad read
carries goals, assists and matches of the running season from the almanac, and the
line-up shows them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-15 00:00:42 +01:00
1 parent c560268373
commit d75617052f
11 files changed
+246 -11

No files matched your search

+53
View File
@@ -38,3 +38,56 @@ body.midnight .balance-plan-value {background-color:#111f2a80;border-color:#c5d9
/* Balances use semantic money colours in every skin. */
body .balance-native .balance-summary-item.money-amount {color:var(--money);}
body .balance-native .balance-summary-item.money-amount.is-negative {color:var(--danger);}
/* the balance: sums as numerals, every position with its share */
.balance-tile {position:absolute;border:2dp var(--rule);border-radius:10dp;background-color:var(--panel);display:flex;flex-direction:column;align-items:center;justify-content:center;}
.balance-tile strong {display:block;font-family:Display;font-size:58dp;line-height:72dp;font-weight:bold;white-space:nowrap;}
.balance-tile span {display:block;font-size:32dp;line-height:42dp;color:var(--muted);}
.balance-tile.loss strong {color:var(--loss);}
.balance-tile.gain strong {color:var(--win);}
.balance-scale {position:absolute;left:0;top:224dp;width:2612dp;height:60dp;display:flex;border-radius:8dp;overflow:hidden;}
.balance-scale>div {display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden;}
.balance-scale span {display:block;font-size:28dp;white-space:nowrap;color:#ffffff;}
.balance-scale .in {background-color:#3f8a63;}
.balance-scale .out {background-color:#b24a4f;}
.balance-panel {top:308dp;height:1330dp;background-color:var(--panel);border-color:var(--rule);border-radius:10dp;}
.balance-panel h2 {font-family:Display;font-size:44dp;line-height:54dp;font-weight:bold;text-align:left;margin:0 0 0 10dp;}
.balance-table {top:96dp;}
.balance-row {align-items:center;height:92dp;border-bottom:2dp var(--rule);font-size:34dp;}
.balance-row>span,.balance-row>span:last-child {width:auto;max-width:none;padding:0 10dp;line-height:44dp;flex-shrink:0;}
.balance-row .name {width:420dp;}
.balance-bar {flex:1;height:22dp;border-radius:11dp;background-color:var(--rule);overflow:hidden;}
.balance-bar>div {height:22dp;border-radius:11dp;background-color:#3f8a63;}
.balance-panel.costs .balance-bar>div {background-color:#b24a4f;}
.balance-row .share {width:110dp;text-align:right;font-size:28dp;color:var(--muted);}
.balance-row .sum {width:330dp;text-align:right;font-family:Display;font-weight:bold;font-size:36dp;}
.balance-row.none {color:var(--muted);}
.balance-row.none .sum {font-weight:normal;}
.balance-games {position:absolute;left:10dp;top:1656dp;width:2592dp;height:44dp;margin:0;line-height:44dp;font-size:30dp;color:var(--muted);}
.balance-row {font-size:40dp;}
.balance-row .name {width:520dp;}
.balance-row .sum {width:400dp;font-size:44dp;}
.balance-row .share {width:130dp;font-size:32dp;}
.balance-bar,.balance-bar>div {height:28dp;border-radius:14dp;}
.balance-tile strong {font-size:66dp;line-height:80dp;}
.balance-tile span {font-size:36dp;}
.balance-games {font-size:34dp;}
/* the what-if calculation */
.balance-toggle {left:560dp;width:2052dp;}
.balance-sim-button {position:absolute;left:0;bottom:0;width:536dp;height:94dp;display:flex;align-items:center;justify-content:center;}
.balance-sim {position:absolute;left:0;top:0;right:0;bottom:120dp;}
.balance-sim-controls {position:absolute;left:0;top:0;width:2612dp;height:210dp;display:flex;gap:30dp;}
.balance-sim-control {flex:1;border:2dp var(--rule);border-radius:10dp;background-color:var(--panel);padding:22dp 36dp;}
.balance-sim-label {display:flex;align-items:baseline;justify-content:space-between;height:76dp;font-size:36dp;}
.balance-sim-label span,.balance-sim-label strong {display:block;}
.balance-sim-label strong {font-family:Display;font-size:60dp;font-weight:bold;}
.balance-sim-control input {display:block;width:100%;height:60dp;margin-top:16dp;}
.balance-sim-out {position:absolute;left:0;top:240dp;width:2612dp;height:1480dp;}
.balance-sim-graph {position:absolute;left:0;top:226dp;width:2612dp;height:880dp;border:2dp var(--rule);border-radius:10dp;background-color:var(--panel);padding:18dp 14dp;}
.balance-sim-legend {position:absolute;left:10dp;top:1126dp;height:44dp;display:flex;align-items:center;font-size:32dp;color:var(--muted);}
.balance-sim-legend span {display:block;flex-shrink:0;}
.balance-sim-legend .key {width:60dp;height:12dp;border-radius:6dp;margin:0 14dp 0 0;}
.balance-sim-legend .key.sim {background-color:#25617a;}
.balance-sim-legend .key.now {background-color:#9a7a3a;margin-left:50dp;}
.balance-sim-reading {position:absolute;left:10dp;top:1190dp;width:2592dp;margin:0;font-size:36dp;line-height:50dp;}