Files
Stirling-PDF/engine/src/default_templates/price_sheet.html
T

186 lines
4.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Price Sheet</title>
<style>
/* ── Theme variables (replaced at generation time) ── */
{{THEME_CSS}}
/* ── Print / page setup ── */
@page {
size: A4;
margin: 20mm;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: var(--theme-font, 'Helvetica Neue', Arial, sans-serif);
font-size: 10pt;
color: var(--theme-text, #1a1a1a);
background: var(--theme-bg, #ffffff);
line-height: 1.4;
}
.document {
max-width: 170mm;
margin: 0 auto;
}
{{HEADER_CSS}}
/* ── Divider ── */
hr {
border: none;
border-top: 0.5pt solid var(--theme-border, #e2e8f0);
margin: 6pt 0;
}
/* ── Meta info grid ── */
.meta-grid {
display: grid;
grid-template-columns: 120pt auto;
row-gap: 2pt;
margin-bottom: 8pt;
}
.meta-label {
font-weight: 600;
color: var(--theme-text-muted, #6b7280);
font-size: 8.5pt;
}
.meta-value {
font-size: 8.5pt;
color: var(--theme-text, #1a1a1a);
}
/* ── Section heading ── */
.section-heading {
font-size: 10pt;
font-weight: 700;
color: var(--theme-primary, #1e3a5f);
border-bottom: 1pt solid var(--theme-accent, #2563eb);
padding-bottom: 2pt;
margin: 10pt 0 6pt;
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* ── Price table ── */
.items-table {
width: 100%;
border-collapse: collapse;
margin-bottom: 6pt;
font-size: 8.5pt;
}
.items-table thead tr {
background: var(--theme-primary, #1e3a5f);
color: #ffffff;
}
.items-table thead th {
padding: 5pt 6pt;
text-align: left;
font-weight: 600;
white-space: nowrap;
}
.items-table thead th.num { text-align: right; }
.items-table tbody tr:nth-child(even) {
background: var(--theme-surface, #f8fafc);
}
.items-table tbody td {
padding: 4pt 6pt;
border-bottom: 0.3pt solid var(--theme-border, #e2e8f0);
vertical-align: top;
}
.items-table tbody td.num {
text-align: right;
white-space: nowrap;
}
.items-table .desc-col { width: 38%; }
/* ── Text sections ── */
.text-section {
font-size: 8.5pt;
color: var(--theme-text, #1a1a1a);
line-height: 1.5;
margin-bottom: 4pt;
white-space: pre-line;
}
/* ── Page-break controls ── */
thead { display: table-header-group; }
tr { break-inside: avoid; page-break-inside: avoid; }
.section-heading { break-after: avoid; page-break-after: avoid; }
/* ── Print overrides ── */
@media print {
body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.document { max-width: 100%; }
}
</style>
</head>
<body>
<div class="document">
<div class="top-bar"></div>
<!-- Header -->
<div class="doc-header">
{{LOGO_BLOCK}}
<div class="doc-header-text">
<div class="doc-title">{{PRICE_SHEET_TITLE}}</div>
<div class="doc-subtitle">{{COMPANY_NAME}}</div>
</div>
<div class="doc-number-area">
<div class="doc-number-label">Effective Date</div>
<div class="doc-number">{{EFFECTIVE_DATE}}</div>
</div>
</div>
<hr>
<!-- Meta info -->
<div class="meta-grid">
<span class="meta-label">Currency:</span> <span class="meta-value">{{CURRENCY}}</span>
</div>
<hr>
<!-- Pricing Table -->
<div class="section-heading">Pricing</div>
<table class="items-table">
<thead>
<tr>
<th style="width:26pt">SKU</th>
<th class="desc-col">Description</th>
<th style="width:48pt">Unit</th>
<th class="num" style="width:55pt">Unit Price</th>
<th>Notes</th>
</tr>
</thead>
<tbody>
{{PRICE_ROWS}}
</tbody>
</table>
<!-- Notes -->
<div class="section-heading">Notes</div>
<div class="text-section">{{NOTES_TEXT}}</div>
<!-- Terms -->
<div class="section-heading">Terms</div>
<div class="text-section">{{TERMS_TEXT}}</div>
</div>
</body>
</html>