CentralBackend/debug-pdf/template_1_html_raw.bin
2026-02-18 10:24:04 +01:00

155 lines
3.3 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Invoice {{invoiceNumber}}</title>
<style>
body {
font-family: Arial, sans-serif;
color: #1f2937;
background: #f8fafc;
margin: 0;
padding: 24px;
}
.card {
max-width: 760px;
margin: 0 auto;
background: #ffffff;
border: 1px solid #e5e7eb;
border-radius: 12px;
overflow: hidden;
}
.header {
background: #0f172a;
color: #ffffff;
padding: 20px 24px;
}
.header h1 {
margin: 0;
font-size: 22px;
}
.content {
padding: 24px;
}
.meta {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-bottom: 20px;
}
.box {
border: 1px solid #e5e7eb;
border-radius: 10px;
padding: 12px;
background: #f9fafb;
}
.label {
font-size: 12px;
color: #6b7280;
margin-bottom: 4px;
}
.value {
font-size: 14px;
font-weight: 600;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 12px;
margin-bottom: 20px;
}
th, td {
text-align: left;
padding: 10px 8px;
border-bottom: 1px solid #e5e7eb;
font-size: 14px;
}
th {
background: #f3f4f6;
font-weight: 700;
}
.totals {
margin-left: auto;
width: 320px;
border: 1px solid #e5e7eb;
border-radius: 10px;
overflow: hidden;
}
.totals-row {
display: flex;
justify-content: space-between;
padding: 10px 12px;
border-bottom: 1px solid #e5e7eb;
font-size: 14px;
}
.totals-row:last-child {
border-bottom: none;
background: #f3f4f6;
font-weight: 800;
}
.footer {
font-size: 12px;
color: #6b7280;
margin-top: 20px;
}
</style>
</head>
<body>
<div class="card">
<div class="header">
<h1>Invoice</h1>
</div>
<div class="content">
<div class="meta">
<div class="box">
<div class="label">Invoice Number</div>
<div class="value">{{invoiceNumber}}</div>
</div>
<div class="box">
<div class="label">Issued At</div>
<div class="value">{{issuedAt}}</div>
</div>
<div class="box" style="grid-column: 1 / -1;">
<div class="label">Customer</div>
<div class="value">{{customerName}}</div>
</div>
</div>
<table>
<thead>
<tr>
<th>Item</th>
<th>Qty</th>
<th>Unit Net</th>
<th>Line Net</th>
</tr>
</thead>
<tbody>
{{itemsHtml}}
</tbody>
</table>
<div class="totals">
<div class="totals-row">
<span>Total Net</span>
<span>{{totalNet}}</span>
</div>
<div class="totals-row">
<span>Total Tax</span>
<span>{{totalTax}}</span>
</div>
<div class="totals-row">
<span>Total Gross</span>
<span>{{totalGross}}</span>
</div>
</div>
<div class="footer">
Thank you for your subscription.
</div>
</div>
</div>
</body>
</html>