Add 5-tier warning thresholds to staff rota footer

Replaces the 2-row (vs Booked / vs with Pickup) footer with a progressive 5-row breakdown:
- Total Available (unchanged)
- vs Booked — plain diff, room cleaning only
- with Recurring Tasks — plain diff, adds recurring tasks
- with Pickup — plain diff, adds pickup hours
- with Adjustments — bold coloured final row with configurable thresholds

New 5-tier icon system: red ⚠ / amber ⚠ / green ✓ / amber ✗ / red ✗, with defaults of
4h / 1h / 1h / 2h spare or short. Thresholds are editable in Settings.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-22 13:38:46 +00:00
parent fee388db4c
commit 75ac7591d2
7 changed files with 256 additions and 20 deletions

View file

@ -111,9 +111,11 @@ input, textarea, select { font-family: inherit; }
.pickup-num { min-width: 16px; text-align: center; font-size: 0.8rem; font-weight: 600; }
/* Diff cells */
.diff-ok { color: var(--success); font-weight: 600; }
.diff-under { color: var(--danger); font-weight: 600; }
.diff-over { color: var(--warning); font-weight: 600; }
.diff-ok { color: var(--success); font-weight: 600; }
.diff-under { color: var(--danger); font-weight: 600; }
.diff-under-amber { color: var(--warning); font-weight: 600; }
.diff-over { color: var(--warning); font-weight: 600; }
.diff-over-red { color: var(--danger); font-weight: 600; }
/* Numeric inputs in tables */
.hk-num-input {