Design consistency audit fixes: alerts, cards, dark mode, utilities
Alert sweep (113 alerts, 79 files):
All persistent static banners now carry alert-permanent so the
layout's 5-second auto-dismiss cannot swallow guidance, warnings,
or validation errors. Transient dismissible toasts left untouched.
CSS fixes (site.css):
.card.shadow-sm — strips rogue border from ~40 drifted cards
.card-header.bg-white — rebinds to var(--bs-body-bg) so card
headers follow dark/light theme correctly
Typography utilities — .text-2xs (.68rem), .text-xs (.73rem)
Token color classes — .text-ember, .text-ok, .text-bad,
.text-warn, .text-cool, .bg-paper-2
Layout utilities — .mw-xs/sm/md/lg replace inline max-width
Comment — documents text-ember vs text-primary intent
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
@using PowderCoating.Web.Controllers
|
||||
@using PowderCoating.Web.Controllers
|
||||
@model List<Vendor1099Row>
|
||||
|
||||
@{
|
||||
@@ -46,7 +46,7 @@
|
||||
<div class="col-md-4">
|
||||
<div class="card border-0 shadow-sm text-center">
|
||||
<div class="card-body py-3">
|
||||
<div class="text-muted small">Need 1099-NEC (≥ $600)</div>
|
||||
<div class="text-muted small">Need 1099-NEC (≥ $600)</div>
|
||||
<div class="fs-3 fw-bold text-danger">@vendorsOver600</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -61,7 +61,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="alert alert-info py-2 mb-4">
|
||||
<div class="alert alert-info alert-permanent py-2 mb-4">
|
||||
<i class="bi bi-info-circle me-2"></i>
|
||||
This report shows payments to vendors marked as <strong>1099 Vendor</strong> during <strong>@reportYear</strong>.
|
||||
IRS rules require a 1099-NEC for non-incorporated contractors, attorneys, and service providers paid <strong>$600 or more</strong> in the calendar year.
|
||||
@@ -81,7 +81,7 @@ else
|
||||
{
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card-header bg-white border-0 py-3">
|
||||
<h5 class="mb-0 fw-semibold"><i class="bi bi-table me-2 text-primary"></i>1099-NEC Summary — @reportYear</h5>
|
||||
<h5 class="mb-0 fw-semibold"><i class="bi bi-table me-2 text-primary"></i>1099-NEC Summary — @reportYear</h5>
|
||||
</div>
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
@@ -117,14 +117,14 @@ else
|
||||
<span class="text-danger small"><i class="bi bi-exclamation-triangle me-1"></i>Missing</span>
|
||||
}
|
||||
</td>
|
||||
<td class="small">@(row.Address ?? "—")</td>
|
||||
<td class="small">@(row.Address ?? "—")</td>
|
||||
<td class="text-end">@row.BillsPaid.ToString("C")</td>
|
||||
<td class="text-end">@row.ExpensesPaid.ToString("C")</td>
|
||||
<td class="text-end fw-bold @(row.NeedsForm ? "text-danger" : "")">@row.TotalPaid.ToString("C")</td>
|
||||
<td class="text-center">
|
||||
@if (row.NeedsForm)
|
||||
{
|
||||
<span class="badge bg-danger">Yes — File Required</span>
|
||||
<span class="badge bg-danger">Yes — File Required</span>
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user