Files
invoice-system/templates/customer-revenue-template.html
2026-06-10 16:21:42 -05:00

72 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #333; }
.container { max-width: 8.5in; margin: 0 auto; padding: 20px; }
.header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 2px solid #333; }
.company-info { display: flex; align-items: flex-start; gap: 15px; }
.logo { width: 50px; height: 50px; }
.company-details h1 { font-size: 16px; font-weight: normal; margin-bottom: 2px; }
.company-details p { font-size: 14px; line-height: 1.4; }
.tagline { text-align: right; font-style: italic; font-size: 14px; margin-bottom: 20px; }
.document-type { font-size: 24px; font-weight: bold; color: #333; margin-bottom: 10px; }
.report-meta { margin-bottom: 20px; }
.report-meta p { font-size: 13px; color: #555; }
.items-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 12px; }
.items-table th { background-color: #f5f5f5; border: 1px solid #000; padding: 8px; font-weight: bold; text-align: center; }
.items-table td { border: 1px solid #000; padding: 8px; }
.items-table td.name { text-align: left; }
.items-table td.number { text-align: right; }
.items-table tr.footer-row td { background-color: #f5f5f5; font-weight: bold; border-top: 2px solid #000; }
.items-table tr.footer-row td.total-label { text-align: right; }
.items-table tr.footer-row td.total-amount { text-align: right; }
tr { page-break-inside: avoid; }
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="company-info">
{{LOGO_HTML}}
<div class="company-details">
<h1>{{COMPANY_NAME}}</h1>
<p>{{COMPANY_ADDRESS}}</p>
</div>
</div>
<div>
<div class="tagline">
<em>{{SLOGAN}}</em>
</div>
</div>
</div>
<div class="document-type">CUSTOMER REVENUE REPORT{{ANONYMIZED_NOTE}}</div>
<div class="report-meta">
<p>Period: {{DATE_RANGE}} &middot; Generated: {{GENERATED_DATE}}</p>
</div>
<table class="items-table">
<thead>
<tr>
<th>Customer</th>
<th>Invoices</th>
<th>Revenue (net)</th>
<th>% of Total</th>
</tr>
</thead>
<tbody>
{{ROWS}}
</tbody>
</table>
<p style="text-align:right; font-size:11px; color:#888; margin-top:10px;">
Revenue = sum of invoice subtotals (excludes sales tax). Voided invoices are excluded.
</p>
</div>
</body>
</html>