2020-10-07 18:35:30 +02:00
|
|
|
<style id="style">
|
|
|
|
:root {
|
|
|
|
--primary-color: $primary_color;
|
|
|
|
--secondary-color: $secondary_color;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
|
|
font-size: "$font_size";
|
|
|
|
}
|
|
|
|
|
|
|
|
@page {
|
2020-12-15 11:45:04 +01:00
|
|
|
margin: $global_margin;
|
2020-10-07 18:35:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-container {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1.8fr 1fr 1fr;
|
|
|
|
grid-gap: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-container > span {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.company-logo {
|
|
|
|
height: 4rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#company-details {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
color: #b1b1b1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#company-details > * {
|
|
|
|
margin-bottom: 0.8rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#company-address {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
color: #b1b1b1;
|
|
|
|
}
|
|
|
|
|
|
|
|
#company-address > * {
|
|
|
|
margin-bottom: 0.8rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.entity-issued-to {
|
|
|
|
margin-top: 3rem;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.client-and-entity-wrapper {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 2fr 1.5fr;
|
|
|
|
gap: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#client-details {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
#client-details > * {
|
|
|
|
margin-bottom: 0.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#client-details > span:nth-child(1) {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
#entity-details {
|
|
|
|
background-color: var(--primary-color);
|
|
|
|
padding: 0.8rem;
|
|
|
|
border-radius: 1rem;
|
|
|
|
width: 100%;
|
|
|
|
color: white;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
#entity-details th {
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#product-table,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table,
|
2020-11-05 14:13:28 +01:00
|
|
|
#task-table {
|
2020-10-07 18:35:30 +02:00
|
|
|
margin-top: 3.5rem;
|
2020-11-06 13:12:28 +01:00
|
|
|
/* margin-bottom: 200px; */
|
2020-10-07 18:35:30 +02:00
|
|
|
min-width: 100%;
|
|
|
|
table-layout: fixed;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2020-11-06 13:12:28 +01:00
|
|
|
.task-duration {
|
|
|
|
display: block;
|
|
|
|
margin-top: 5px;
|
|
|
|
color: grey;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#product-table > thead,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > thead,
|
2020-11-05 14:13:28 +01:00
|
|
|
#task-table > thead {
|
2020-10-07 18:35:30 +02:00
|
|
|
text-align: left;
|
|
|
|
background: var(--secondary-color);
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#product-table > thead > tr > th,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > thead > tr > th,
|
2020-11-05 14:13:28 +01:00
|
|
|
#task-table > thead > tr > th {
|
2020-10-07 18:35:30 +02:00
|
|
|
padding: 1rem;
|
|
|
|
color: white;
|
|
|
|
font-weight: semibold;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#product-table > thead > tr > th:first-child,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > thead > tr > th:first-child,
|
2020-11-05 14:13:28 +01:00
|
|
|
#task-table > thead > tr > th:first-child {
|
2020-10-07 18:35:30 +02:00
|
|
|
border-top-left-radius: 1rem;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#product-table > thead > tr > th:last-child,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > thead > tr > th:last-child,
|
2020-11-05 14:13:28 +01:00
|
|
|
#task-table > thead > tr > th:last-child {
|
2020-10-07 18:35:30 +02:00
|
|
|
border-top-right-radius: 1rem;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#product-table > tbody > tr > td,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > tbody > tr > td,
|
2020-11-05 14:13:28 +01:00
|
|
|
#task-table > tbody > tr > td {
|
2020-10-07 18:35:30 +02:00
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#product-table > tbody > tr > td:last-child,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > tbody > tr > td:last-child,
|
2020-11-05 14:13:28 +01:00
|
|
|
#task-table > tbody > tr > td:last-child {
|
2020-10-07 18:35:30 +02:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#product-table > tbody > tr:nth-child(odd) > td,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > tbody > tr:nth-child(odd) > td,
|
2020-11-05 14:13:28 +01:00
|
|
|
#task-table > tbody > tr:nth-child(odd) > td {
|
2020-10-07 18:35:30 +02:00
|
|
|
background: #e8e8e8;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#product-table > tbody > tr:nth-child(even) > td,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > tbody > tr:nth-child(even) > td,
|
2020-11-05 14:13:28 +01:00
|
|
|
#task-table > tbody > tr:nth-child(even) > td {
|
2020-10-07 18:35:30 +02:00
|
|
|
background: #f7f7f7;
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-element='product-table-balance-due-label'],
|
2020-11-05 14:13:28 +01:00
|
|
|
[data-element='product-table-balance-due'],
|
|
|
|
[data-element='task-table-balance-due-label'],
|
|
|
|
[data-element='task-table-balance-due'] {
|
2020-10-07 18:35:30 +02:00
|
|
|
color: var(--secondary-color) !important;
|
|
|
|
font-weight: bold !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
body {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#table-totals {
|
2020-10-07 18:35:30 +02:00
|
|
|
page-break-inside: avoid;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#table-totals > *:last-child {
|
2020-10-07 18:35:30 +02:00
|
|
|
border-bottom-left-radius: 1rem;
|
|
|
|
border-bottom-right-radius: 1rem;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#table-totals > * {
|
2020-10-07 18:35:30 +02:00
|
|
|
background-color: #f7f7f7;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 3fr 1fr 1fr;
|
|
|
|
gap: 20px;
|
|
|
|
padding-left: 1rem;
|
|
|
|
padding-top: 0.5rem;
|
|
|
|
padding-bottom: 0.8rem;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#table-totals
|
2020-10-07 18:35:30 +02:00
|
|
|
> *
|
|
|
|
[data-element='product-table-balance-due-label'],
|
2020-11-05 14:13:28 +01:00
|
|
|
#table-totals
|
2020-10-07 18:35:30 +02:00
|
|
|
> *
|
|
|
|
[data-element='product-table-balance-due'] {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#table-totals
|
2020-10-07 18:35:30 +02:00
|
|
|
> *
|
|
|
|
[data-element='product-table-balance-due'] {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
#table-totals > * > :last-child {
|
2020-10-07 18:35:30 +02:00
|
|
|
text-align: right;
|
|
|
|
padding-right: 1rem;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div id="header"></div>
|
|
|
|
|
|
|
|
<div id="body">
|
|
|
|
<div class="header-container">
|
|
|
|
<img
|
|
|
|
src="$company.logo"
|
|
|
|
class="company-logo"
|
|
|
|
alt="$company.name logo"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<div id="company-details"></div>
|
|
|
|
<div id="company-address"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p class="entity-issued-to">$entity_issued_to_label:</p>
|
|
|
|
<div class="client-and-entity-wrapper">
|
|
|
|
<div id="client-details"></div>
|
|
|
|
|
|
|
|
<div class="entity-details-wrapper">
|
|
|
|
<table id="entity-details" cellspacing="0"></table>
|
2020-07-15 18:03:54 +02:00
|
|
|
</div>
|
2020-10-07 18:35:30 +02:00
|
|
|
</div>
|
2020-07-15 18:03:54 +02:00
|
|
|
|
2020-10-07 18:35:30 +02:00
|
|
|
<table id="product-table" cellspacing="0"></table>
|
2020-09-04 13:18:17 +02:00
|
|
|
|
2020-11-05 14:13:28 +01:00
|
|
|
<table id="task-table" cellspacing="0"></table>
|
|
|
|
|
|
|
|
<div id="table-totals" cellspacing="0"></div>
|
2020-11-09 15:44:21 +01:00
|
|
|
|
2020-11-09 16:23:27 +01:00
|
|
|
<table id="delivery-note-table" cellspacing="0"></table>
|
2020-10-07 18:35:30 +02:00
|
|
|
</div>
|
2020-09-11 11:53:52 +02:00
|
|
|
|
2020-12-08 16:45:24 +01:00
|
|
|
<div id="footer">$entity_footer</div>
|