Konto: Rechnung direkt auf der Seite ansehen statt nur Download-Platzhalter
Der bisherige "Rechnung (PDF)"-Knopf war ein toter Link (href="#"). Jetzt öffnet "Rechnung ansehen" pro Bestellung ein natives Dialog-Fenster direkt auf der Seite mit vollständiger Rechnung: Rechnungsnummer/-datum, Verkäufer, Rechnungsempfänger (live mit dem aktuellen Kontonamen befüllt), Artikeltabelle mit Einzel-/Gesamtpreisen und dem §19-UStG-Hinweis — kein Herunterladen nötig, schließbar per Kreuz, Schließen-Knopf oder Klick auf den abgedunkelten Hintergrund. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
fac404190f
commit
e2a19db663
@@ -1556,6 +1556,56 @@ a:focus-visible, button:focus-visible {
|
||||
.order-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
|
||||
.order-tracking-no { margin: 0; color: var(--c-text-muted); }
|
||||
.order-tracking-no code { font-size: 0.9em; letter-spacing: 0.02em; }
|
||||
|
||||
/* Rechnung direkt auf der Seite ansehen (natives <dialog>) — kein Download nötig, öffnet sich
|
||||
sofort als Overlay über der aktuellen Ansicht. */
|
||||
.invoice-dialog {
|
||||
border: none;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
color: var(--c-text);
|
||||
max-width: min(94vw, 580px);
|
||||
width: 100%;
|
||||
}
|
||||
.invoice-dialog::backdrop { background: rgba(6, 5, 10, 0.75); backdrop-filter: blur(3px); }
|
||||
.invoice-card {
|
||||
background: linear-gradient(165deg, var(--c-anthracite-light), var(--c-anthracite));
|
||||
border: 1.5px solid rgba(244, 241, 247, 0.16);
|
||||
border-radius: var(--radius-l);
|
||||
padding: 1.8rem;
|
||||
max-height: 85vh;
|
||||
overflow-y: auto;
|
||||
box-shadow: var(--shadow-card);
|
||||
}
|
||||
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
|
||||
.invoice-head h3 { margin: 0; }
|
||||
.invoice-meta { margin: 0.3rem 0 0; font-size: 0.88rem; color: var(--c-text-muted); }
|
||||
.invoice-close {
|
||||
background: none;
|
||||
border: 1px solid rgba(244, 241, 247, 0.2);
|
||||
border-radius: 50%;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
color: var(--c-text);
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
font-size: 1.1rem;
|
||||
line-height: 1;
|
||||
}
|
||||
.invoice-close:hover { border-color: var(--c-accent); color: var(--c-accent); }
|
||||
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.3rem 0; }
|
||||
.invoice-parties h4 { margin: 0 0 0.35em; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-accent); }
|
||||
.invoice-parties p { margin: 0; font-size: 0.9rem; color: var(--c-text-muted); line-height: 1.55; }
|
||||
@media (max-width: 480px) { .invoice-parties { grid-template-columns: 1fr; } }
|
||||
.invoice-table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; }
|
||||
.invoice-table th, .invoice-table td { text-align: left; padding: 0.55em 0.35em; border-bottom: 1px solid rgba(244, 241, 247, 0.1); font-size: 0.9rem; }
|
||||
.invoice-table th { color: var(--c-text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
|
||||
.invoice-table th:last-child, .invoice-table td:last-child,
|
||||
.invoice-table th:nth-child(2), .invoice-table td:nth-child(2),
|
||||
.invoice-table th:nth-child(3), .invoice-table td:nth-child(3) { text-align: right; }
|
||||
.invoice-total-row td { font-weight: 700; color: var(--c-accent); border-bottom: none; padding-top: 0.8em; font-size: 1rem; }
|
||||
.invoice-vat-note { margin: 1.1rem 0 0; font-size: 0.8rem; color: var(--c-text-muted); }
|
||||
.invoice-foot { display: flex; justify-content: flex-end; margin-top: 1.4rem; }
|
||||
.profile-card { display: flex; flex-direction: column; align-items: stretch; gap: 1.3rem; }
|
||||
.profile-card .specs { margin-top: 0; width: 100%; }
|
||||
.profile-photo-row { display: flex; align-items: center; gap: 1.1rem; }
|
||||
|
||||
Reference in New Issue
Block a user