2020-10-07 18:35:30 +02:00
|
|
|
<style id="style">
|
|
|
|
:root {
|
2021-01-19 12:37:27 +01:00
|
|
|
--primary-color: $primary_color;
|
|
|
|
--secondary-color: $secondary_color;
|
2020-10-07 18:35:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
|
font-family: Arial, Helvetica, sans-serif;
|
2021-01-14 15:57:14 +01:00
|
|
|
font-size: "$font_size";
|
2021-02-09 16:47:41 +01:00
|
|
|
zoom: 80%;
|
2021-01-14 15:57:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@page {
|
|
|
|
margin: -0.25cm !important;
|
2020-10-07 18:35:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
page-break-after: always;
|
|
|
|
}
|
|
|
|
|
|
|
|
.header-wrapper {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1.5fr 1fr 1fr;
|
|
|
|
background-color: #2d2c2a;
|
|
|
|
padding: 3rem;
|
|
|
|
color: white;
|
2021-02-10 12:31:14 +01:00
|
|
|
min-width: 100%;
|
2020-10-07 18:35:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.company-logo {
|
|
|
|
height: 6rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#company-details,
|
|
|
|
#company-address {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
#client-details {
|
|
|
|
margin: 2rem;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
|
|
|
#client-details > :first-child {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.client-entity-wrapper {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1.5fr 1fr;
|
2021-02-09 16:47:41 +01:00
|
|
|
padding-left: 1rem;
|
|
|
|
padding-top: 3rem;
|
2020-10-07 18:35:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.entity-details-wrapper {
|
|
|
|
background-color: var(--primary-color);
|
|
|
|
padding: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
#entity-details {
|
|
|
|
width: 100%;
|
|
|
|
text-align: left;
|
|
|
|
color: white !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
#entity-details > tr,
|
|
|
|
#entity-details th {
|
|
|
|
font-weight: normal;
|
|
|
|
padding-bottom: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +01:00
|
|
|
#product-table,
|
2020-11-09 15:44:21 +01:00
|
|
|
#task-table,
|
|
|
|
#delivery-note-table {
|
2020-10-07 18:35:30 +02:00
|
|
|
min-width: 100%;
|
|
|
|
table-layout: fixed;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
margin-top: 3rem;
|
2020-11-06 13:12:28 +01:00
|
|
|
/* margin-bottom: 200px; */
|
|
|
|
}
|
|
|
|
|
2021-01-14 15:58:29 +01:00
|
|
|
.task-time-details {
|
2020-11-06 13:12:28 +01:00
|
|
|
display: block;
|
|
|
|
margin-top: 5px;
|
|
|
|
color: grey;
|
2020-10-07 18:35:30 +02:00
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +01:00
|
|
|
#product-table > thead,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > thead,
|
2020-11-05 13:33:43 +01:00
|
|
|
#task-table > thead {
|
2020-10-07 18:35:30 +02:00
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +01:00
|
|
|
#product-table > thead > tr > th,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > thead > tr > th,
|
2020-11-05 13:33:43 +01:00
|
|
|
#task-table > thead > tr > th {
|
2021-02-09 16:47:41 +01:00
|
|
|
padding: 1.5rem 3rem;
|
|
|
|
font-size: 1rem;
|
2020-10-07 18:35:30 +02:00
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +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 13:33:43 +01:00
|
|
|
#task-table > thead > tr > th:last-child {
|
2020-10-07 18:35:30 +02:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +01:00
|
|
|
#product-table > tbody > tr > td,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > tbody > tr > td,
|
2020-11-05 13:33:43 +01:00
|
|
|
#task-table > tbody > tr > td {
|
2021-02-09 16:47:41 +01:00
|
|
|
padding: 1.5rem 3rem;
|
2020-10-07 18:35:30 +02:00
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +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 13:33:43 +01:00
|
|
|
#task-table > tbody > tr > td:last-child {
|
2020-10-07 18:35:30 +02:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +01:00
|
|
|
#product-table > tbody > tr > td:first-child,
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > tbody > tr > td:first-child,
|
2020-11-05 13:33:43 +01:00
|
|
|
#task-table > tbody > tr > td:first-child {
|
2020-10-07 18:35:30 +02:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +01:00
|
|
|
#product-table > tbody > tr:nth-child(odd),
|
2020-11-09 15:44:21 +01:00
|
|
|
#delivery-note-table > tbody > tr:nth-child(odd),
|
2020-11-05 13:33:43 +01:00
|
|
|
#task-table > tbody > tr:nth-child(odd) {
|
2020-10-07 18:35:30 +02:00
|
|
|
background-color: #ebebeb;
|
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +01:00
|
|
|
#table-totals {
|
2020-10-07 18:35:30 +02:00
|
|
|
page-break-inside: avoid;
|
|
|
|
}
|
|
|
|
|
2021-02-09 16:47:41 +01:00
|
|
|
#table-totals {
|
2020-10-07 18:35:30 +02:00
|
|
|
display: grid;
|
2021-02-09 16:47:41 +01:00
|
|
|
grid-template-columns: 2fr 1fr;
|
2020-10-07 18:35:30 +02:00
|
|
|
padding-top: .5rem;
|
2021-02-09 16:47:41 +01:00
|
|
|
padding-left: 3rem;
|
|
|
|
padding-right: 3rem;
|
|
|
|
gap: 80px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#table-totals .totals-table-right-side>* {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
}
|
|
|
|
|
|
|
|
#table-totals>.totals-table-right-side>*> :nth-child(1) {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
#table-totals>.totals-table-right-side>*> :nth-child(2) {
|
|
|
|
text-align: right;
|
2020-10-07 18:35:30 +02:00
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +01:00
|
|
|
#table-totals
|
2020-10-07 18:35:30 +02:00
|
|
|
> *
|
|
|
|
[data-element='product-table-balance-due-label'],
|
2020-11-05 13:33:43 +01:00
|
|
|
#table-totals
|
2020-10-07 18:35:30 +02:00
|
|
|
> *
|
|
|
|
[data-element='product-table-balance-due'] {
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 1.4rem;
|
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +01:00
|
|
|
#table-totals
|
2020-10-07 18:35:30 +02:00
|
|
|
> *
|
|
|
|
[data-element='product-table-balance-due'] {
|
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
2020-11-05 13:33:43 +01:00
|
|
|
#table-totals > * > :last-child {
|
2020-10-07 18:35:30 +02:00
|
|
|
text-align: right;
|
|
|
|
padding-right: 1.5rem;
|
|
|
|
}
|
2021-02-09 16:47:41 +01:00
|
|
|
|
|
|
|
.entity-label {
|
|
|
|
text-transform: uppercase;
|
|
|
|
color: var(--primary-color);
|
|
|
|
padding-left: 2rem;
|
|
|
|
font-size: 1.5rem;
|
|
|
|
}
|
2020-10-07 18:35:30 +02:00
|
|
|
|
2021-02-10 12:31:14 +01:00
|
|
|
table.page-container {
|
|
|
|
page-break-after: always;
|
|
|
|
min-width: 100%;
|
|
|
|
}
|
2021-01-14 15:57:14 +01:00
|
|
|
|
2021-02-10 12:31:14 +01:00
|
|
|
thead.page-header {
|
|
|
|
display: table-header-group;
|
|
|
|
}
|
2020-10-07 18:35:30 +02:00
|
|
|
|
2021-02-10 12:31:14 +01:00
|
|
|
tfoot.page-footer {
|
|
|
|
display: table-footer-group;
|
|
|
|
}
|
2020-10-07 18:35:30 +02:00
|
|
|
|
2021-02-10 12:31:14 +01:00
|
|
|
.footer-wrapper {
|
|
|
|
margin-top: 1rem;
|
|
|
|
background-color: #2d2c2a;
|
|
|
|
height: 160px;
|
|
|
|
min-width: 100%;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
padding: 1rem 3rem;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr 1fr;
|
|
|
|
gap: 15px;
|
|
|
|
}
|
|
|
|
</style>
|
2020-10-07 18:35:30 +02:00
|
|
|
|
2021-02-10 12:31:14 +01:00
|
|
|
<table class="page-container">
|
|
|
|
<thead class="page-header">
|
|
|
|
<tr>
|
|
|
|
<th class="page-header-cell">
|
|
|
|
<div class="header-wrapper" id="header">
|
|
|
|
<img class="company-logo" src="$company.logo" alt="$company.name logo"/>
|
|
|
|
<div id="company-details"></div>
|
|
|
|
<div id="company-address"></div>
|
|
|
|
</div>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tfoot class="page-footer">
|
|
|
|
<tr>
|
|
|
|
<td class="page-footer-cell">
|
|
|
|
<div class="footer-wrapper" id="footer">
|
|
|
|
<div> <!-- #1 column --> </div>
|
|
|
|
<div> <!-- #2 column --> </div>
|
|
|
|
<div> <!-- #3 column --> </div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
|
|
|
|
<tbody class="page-content">
|
|
|
|
<tr>
|
|
|
|
<td class="page-content-cell" id="body">
|
|
|
|
<div class="client-entity-wrapper">
|
|
|
|
<div class="client-wrapper-left-side">
|
|
|
|
<h4 class="entity-label">$entity_label</h4>
|
|
|
|
<div id="client-details" cellspacing="0"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="entity-details-wrapper-right-side">
|
|
|
|
<div class="entity-details-wrapper">
|
|
|
|
<table id="entity-details"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-02-09 16:47:41 +01:00
|
|
|
</div>
|
2020-07-20 17:03:52 +02:00
|
|
|
|
2021-02-10 12:31:14 +01:00
|
|
|
<table id="product-table" cellspacing="0"></table>
|
2020-11-05 13:33:43 +01:00
|
|
|
|
2021-02-10 12:31:14 +01:00
|
|
|
<table id="task-table" cellspacing="0"></table>
|
2020-11-09 15:44:21 +01:00
|
|
|
|
2021-02-10 12:31:14 +01:00
|
|
|
<div id="table-totals" cellspacing="0"></div>
|
2020-09-08 12:40:04 +02:00
|
|
|
|
2021-02-10 12:31:14 +01:00
|
|
|
<table id="delivery-note-table" cellspacing="0"></table>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|