Add per-employee dept breakdown via modal popup

Stores per-employee shift costs in wage_actuals_detail (APPROVED shifts
only). Sync fetches employee name map from /api/v2/users alongside dept
names. Clicking any dept row in Weekly or Monthly opens a modal showing
Employee · Shifts · Cost · % of Dept, fetched on demand.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-23 11:02:11 +00:00
parent 91936ab131
commit 5372111f52
9 changed files with 289 additions and 16 deletions

View file

@ -314,6 +314,58 @@ input[type="text"]:focus {
font-style: italic;
}
/* ── Dept detail modal ──────────────────────────────────────────── */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
.modal-card {
background: var(--card-bg);
border-radius: var(--radius);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
width: min(600px, 95vw);
max-height: 85vh;
overflow-y: auto;
padding: 24px;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 20px;
}
.modal-title {
font-size: 16px;
font-weight: 600;
color: var(--text-primary);
}
.modal-sub {
font-size: 12px;
color: var(--text-muted);
margin-top: 3px;
}
.modal-close {
background: none;
border: none;
cursor: pointer;
color: var(--text-muted);
padding: 0;
line-height: 1;
flex-shrink: 0;
}
.modal-close:hover { color: var(--text-primary); }
.modal-body-state {
text-align: center;
color: var(--text-muted);
padding: 32px 0;
font-size: 14px;
}
/* ── PY collapse toggle ─────────────────────────────────────────── */
.py-collapse-toggle {
display: flex;