Files
invoice-system/templates/dd-report-template.html
2026-08-19 16:48:01 +02:00

79 lines
3.4 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: 10px; }
.report-meta p { font-size: 13px; color: #555; }
.methodology { font-size: 11px; color: #444; background-color: #f5f5f5; border: 1px solid #ccc; padding: 8px 10px; margin-bottom: 20px; line-height: 1.45; }
.methodology strong { color: #222; }
.section-title { font-size: 14px; font-weight: bold; margin: 18px 0 6px; }
.items-table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 11px; }
.items-table th { background-color: #f5f5f5; border: 1px solid #000; padding: 6px 8px; font-weight: bold; text-align: right; }
.items-table th:first-child { text-align: left; }
.items-table td { border: 1px solid #000; padding: 5px 8px; text-align: right; }
.items-table td:first-child { text-align: left; }
.items-table td.text { text-align: left; }
.items-table td.center { text-align: center; }
.items-table tr.group-header td { background-color: #eef2f7; font-weight: bold; text-align: left; }
.items-table tr.group-total td { background-color: #f5f5f5; font-weight: bold; }
.items-table tr.grand-total td { background-color: #e8e8e8; font-weight: bold; border-top: 2px solid #000; }
.summary-table { width: 55%; }
tr { page-break-inside: avoid; }
{{EXTRA_STYLES}}
</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">{{REPORT_TITLE}}{{ANONYMIZED_NOTE}}</div>
<div class="report-meta">
<p>{{REPORT_META}}</p>
</div>
<div class="methodology"><strong>Methodology:</strong> {{METHODOLOGY}}</div>
{{SUMMARY_BLOCK}}
<div class="section-title">{{DETAIL_TITLE}}</div>
<table class="items-table">
<thead>
{{TABLE_HEAD}}
</thead>
<tbody>
{{REPORT_BODY}}
</tbody>
</table>
<p style="text-align:right; font-size:11px; color:#888; margin-top:10px;">
Generated: {{GENERATED_DATE}}
</p>
</div>
</body>
</html>