Add Weekly Actuals directors report with charts

Full weekly actuals report matching the spreadsheet layout:
- Week summary table (Rooms/Dry/Wet vs Budget vs Last Year vs Last Week)
- Grouped bar chart + dept split pie chart
- 5-week rolling summary table
- Occupancy table by day of week (rooms, occ%, ARR, RevPAR)
- Month progress to date (totals + dept split) with progress bar chart
- 12-month turnover trend line chart by dept
- Utilities placeholder (pending meter readings app)

Budget values come from the forecasting API which distributes monthly
budget proportionally to daily sales — so high-demand weeks (e.g.
Christmas) carry a higher budget share. Gross shown as net × 1.20.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-20 13:07:19 +00:00
parent 29a119f51d
commit b97358e9fb
9 changed files with 1433 additions and 6 deletions

View file

@ -534,3 +534,188 @@ html, body, #root {
.df-weekly-grid { grid-template-columns: 1fr; }
.df-table { font-size: 11px; }
}
/* ── Weekly Actuals ─────────────────────────────────────────────────────── */
.wa-page {
height: 100%;
overflow-y: auto;
background: var(--body-bg);
}
.wa-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 20px;
border-bottom: 1px solid var(--border);
background: var(--card-bg);
gap: 12px;
flex-wrap: wrap;
position: sticky;
top: 0;
z-index: 10;
}
.wa-week-nav {
display: flex;
align-items: center;
gap: 8px;
}
.wa-week-label {
font-size: 13px;
color: var(--text-primary);
min-width: 160px;
text-align: center;
}
.wa-toolbar-actions {
display: flex;
align-items: center;
gap: 6px;
}
.wa-content {
padding: 20px;
display: flex;
flex-direction: column;
gap: 28px;
max-width: 1400px;
}
.wa-section {
background: var(--card-bg);
border-radius: var(--radius);
border: 1px solid var(--border);
padding: 20px;
box-shadow: var(--shadow-sm);
}
.wa-section-title {
font-size: 13px;
font-weight: 700;
letter-spacing: .06em;
text-transform: uppercase;
color: var(--text-primary);
margin: 0 0 14px;
padding-bottom: 10px;
border-bottom: 2px solid var(--gold);
}
.wa-note {
font-size: 11px;
color: var(--text-muted);
margin: 0 0 10px;
font-style: italic;
}
.wa-table-wrap {
overflow-x: auto;
}
.wa-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.wa-table th {
background: #f8f9fa;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .04em;
color: var(--text-muted);
padding: 8px 10px;
border-bottom: 2px solid var(--border);
text-align: right;
white-space: nowrap;
}
.wa-table th:first-child { text-align: left; }
.wa-table td {
padding: 7px 10px;
border-bottom: 1px solid #f0f0f0;
vertical-align: middle;
}
.wa-table tbody tr:last-child td { border-bottom: none; }
.wa-table tbody tr:hover { background: #fafafa; }
.wa-row-label {
font-size: 12px;
color: var(--text-primary);
font-weight: 500;
white-space: nowrap;
}
.wa-num {
text-align: right;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.wa-muted { color: var(--text-muted); }
.wa-pos { color: #16a34a; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.wa-neg { color: #dc2626; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.wa-total-row td {
font-weight: 700;
background: #f4f5f7;
border-top: 2px solid var(--border);
border-bottom: none;
}
.wa-charts-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-top: 16px;
}
.wa-chart-card {
background: #fafafa;
border: 1px solid var(--border);
border-radius: 6px;
padding: 14px 10px 10px;
}
.wa-chart-card h4 {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: .04em;
color: var(--text-muted);
margin: 0 0 10px;
text-align: center;
}
.wa-month-section {
display: flex;
flex-direction: column;
gap: 0;
}
.wa-utilities-placeholder {
background: #f8f9fa;
border: 1px dashed var(--border);
border-radius: 6px;
padding: 24px;
text-align: center;
color: var(--text-muted);
font-size: 13px;
}
@media print {
.wa-toolbar { display: none !important; }
.wa-page { overflow: visible; }
.wa-charts-row { break-inside: avoid; }
}
@media (max-width: 900px) {
.wa-charts-row { grid-template-columns: 1fr; }
.wa-table { font-size: 11px; }
}