feat: Números per machine, month by month (front 1b)
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 5m58s
Build and deploy / Secret scan and release gate (push) Successful in 6s
Build and deploy / Publish images (push) Successful in 1m4s

A new Números section, "Máquinas, mês a mês", one column per machine
and a month at a time: metres printed, metres per hour and hours
running (time shared by two orders counted once), hours stopped with
their reasons; metres per film roll, ink per 100 m by colour, powder
per 100 m; supplies, parts and total cost per metre; what the printed
orders sold, the month's contribution and since installation; and the
return in % and months to pay back once Gestão types the price.

Refills stand for consumption. Every ratio without data shows "—".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-09 12:50:48 -03:00
parent 29518795a5
commit 4219db8215
8 changed files with 575 additions and 4 deletions

View File

@@ -881,6 +881,16 @@ select.inp{appearance:none;-webkit-appearance:none;padding-right:32px;background
.fillbox>.mtiles,.fillbox>.scrollin{position:absolute;inset:0;overflow:auto;margin:0}
.fillbox>.mtiles{border-top:1px solid var(--ln);align-content:start}
.panel:has(> .fillbox){display:flex;flex-direction:column}
/* Máquinas, mês a mês: a fixed panel whose table scrolls both ways, the month
between its arrows and the first column pinned while it scrolls sideways. */
.mnav{display:flex;align-items:center;gap:6px;margin-left:auto}
.mnav b{font-size:13px;font-weight:600;min-width:132px;text-align:center}
.machinebox{height:420px;min-height:0;flex:none}
.machine-month{width:max-content;min-width:100%}
.machine-month tr.group td{font-weight:650;background:var(--sf2)}
.machine-month thead th:first-child,.machine-month tbody tr:not(.group) td:first-child{position:sticky;left:0;z-index:2;background:var(--sf)}
.machine-month thead th:first-child{z-index:3}
#stats-machine-panel .phint{margin-top:-1px}
.cols2.lean{align-items:stretch}
/* The board fills the window; each column scrolls on its own, its head stays. */
#tab-board:not([hidden]){display:flex;flex-direction:column;height:calc(100vh - 72px)}