Add per-compte dashboard: reste à verser between entrées and versements

New /dashboard/compte page, one compte associé (freelance) at a time via
a selector. Focused on entree/versement only (not achat/hébergement/
sous-traitant): reuses the same entrée<->versement reconciliation
algorithm as the /lignes badges (a versement can settle several entrées
at once, split equally), aggregated per compte to surface outstanding
"reste à verser", over-paid entrées, and versements with no linked
entrée at all -- plus solde/entrées-vs-versements/top-clients charts for
context.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-06 14:29:27 +02:00
co-authored by Claude Sonnet 5
parent 3404ee14c3
commit ceaf301bf0
10 changed files with 690 additions and 1 deletions
@@ -75,6 +75,106 @@ html.gin--dark-mode #figli-dashboard-app {
}
#figli-dashboard-app .figli-summary-value.is-positive { color: var(--figli-positive); }
#figli-dashboard-app .figli-summary-value.is-negative { color: var(--figli-error); }
#figli-dashboard-app .figli-summary-card.is-alert { border-color: var(--figli-error); }
/* --- Compte selector (dashboard par compte) --- */
#figli-dashboard-app .figli-compte-selector {
display: flex;
align-items: center;
gap: 0.6rem;
margin-bottom: 1.25rem;
}
#figli-dashboard-app .figli-compte-selector label {
font-size: 0.85rem;
font-weight: 600;
color: var(--figli-text-light);
}
#figli-dashboard-app .figli-compte-selector select {
font-size: 1rem;
font-weight: 600;
padding: 0.4rem 0.6rem;
border: 1px solid var(--figli-border);
border-radius: 6px;
background: var(--figli-bg);
color: var(--figli-text);
}
/* --- Reconciliation tables (reste à verser, sur-versé, non liés) --- */
#figli-dashboard-app .figli-recon-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
#figli-dashboard-app .figli-recon-table th {
text-align: left;
font-size: 0.72rem;
text-transform: uppercase;
letter-spacing: 0.02em;
color: var(--figli-text-light);
padding: 0.3rem 0.6rem;
border-bottom: 1px solid var(--figli-border);
}
#figli-dashboard-app .figli-recon-table td {
padding: 0.4rem 0.6rem;
border-bottom: 1px solid var(--figli-border);
font-variant-numeric: tabular-nums;
}
#figli-dashboard-app .figli-recon-table td.is-negative { color: var(--figli-error); font-weight: 600; }
#figli-dashboard-app .figli-recon-table tbody tr:hover { background: var(--figli-bg-alt); }
#figli-dashboard-app .figli-recon-table tfoot td { font-weight: 700; border-bottom: none; border-top: 2px solid var(--figli-border); }
#figli-dashboard-app .figli-recon-table a { color: inherit; text-decoration: underline; text-decoration-color: var(--figli-border); }
/* --- Year bars chart (évolution du solde, entrées vs versements) --- */
#figli-dashboard-app .figli-year-chart {
display: flex;
align-items: stretch;
gap: 0.5rem;
height: 14rem;
}
#figli-dashboard-app .figli-year-col {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
min-width: 1.5rem;
}
#figli-dashboard-app .figli-year-track {
position: relative;
flex: 1;
width: 100%;
}
#figli-dashboard-app .figli-year-track::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: var(--figli-border);
}
#figli-dashboard-app .figli-year-bars {
position: absolute;
inset: 0;
display: flex;
justify-content: center;
gap: 2px;
}
#figli-dashboard-app .figli-year-bar {
position: relative;
width: 0.9rem;
min-height: 2px;
border-radius: 2px;
}
@media (prefers-reduced-motion: no-preference) {
#figli-dashboard-app .figli-year-bar {
transition: height 0.3s ease;
}
}
#figli-dashboard-app .figli-year-label {
font-size: 0.78rem;
color: var(--figli-text-light);
margin-top: 0.4rem;
}
/* --- Chart sections --- */
#figli-dashboard-app .figli-chart-section {