Add MOT/insurance renewal hints, table service card, and favicon

- Renewal tracking: compute due/overdue status from the most recent
  mot/insurance event (renewal_months, renewal_due_soon_days settings),
  surfaced on the service card and dashboard.
- Service-status card metrics now render as a two-column label/value
  table with row separators instead of wrapping auto-fill grid cells.
- Add a bicycle favicon (favicon.svg) to base + login templates.

Co-Authored-By: opencode <opencode@users.noreply.github.com>
This commit is contained in:
2026-09-10 10:01:17 +01:00
co-authored by opencode
parent 99c15e23bb
commit aced0a1a3b
10 changed files with 225 additions and 1 deletions
+11 -1
View File
@@ -88,7 +88,9 @@ h1, h2, h3 { line-height: 1.2; font-weight: 600; }
.due-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; margin-bottom: .75rem; }
.due-title { margin: 0; }
.due-summary { margin: .15rem 0 0; color: var(--muted); font-size: .95rem; }
.due-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .4rem .75rem; margin: 0; }
.due-meta { display: grid; grid-template-columns: minmax(7rem, max-content) 1fr; gap: 0; margin: 0; }
.due-meta > * { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.due-meta > :nth-last-child(-n+2) { border-bottom: none; }
.due-meta dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
.due-meta dd { margin: 0; font-weight: 600; }
@@ -97,6 +99,12 @@ h1, h2, h3 { line-height: 1.2; font-weight: 600; }
.due-card.badge-overdue { border-left: 4px solid var(--overdue-ink); }
.due-card.badge-muted { border-left: 4px solid var(--muted); }
/* renewals (MOT / insurance) */
.renewals { display: grid; gap: .5rem; margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.renewal { display: flex; align-items: center; gap: .6rem; }
.renewal-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; min-width: 4.5rem; }
.renewal .badge { margin-left: 0; }
/* badges */
.badge {
display: inline-flex; align-items: center;
@@ -160,6 +168,8 @@ input:focus, select:focus, textarea:focus {
.tag-chain { background: #241a3a; color: #b39ddb; }
.tag-brake { background: #331a1a; color: #f0908c; }
.tag-repair { background: #14291d; color: #7fcfa0; }
.tag-mot { background: #14263a; color: #6fb3ff; }
.tag-insurance { background: #2a2313; color: #e6c36b; }
.tag-other { background: #1c2129; color: #9aa5b1; }
/* alert */