diff --git a/resources/views/pdf-designs/modern.html b/resources/views/pdf-designs/modern.html index d8cfa66695a0..45650b4a3662 100644 --- a/resources/views/pdf-designs/modern.html +++ b/resources/views/pdf-designs/modern.html @@ -77,9 +77,7 @@ margin: 3rem 2rem; } - #product-table, - #delivery-note-table, - #task-table { + [data-ref="table"] { min-width: 100%; table-layout: fixed; overflow-wrap: break-word; @@ -91,49 +89,35 @@ color: grey; } - #product-table > thead, - #delivery-note-table > thead, - #task-table > thead { + [data-ref="table"] > thead { text-align: left; width: 100%; } - #product-table th + th, - #delivery-note-table th + th, - #task-table th + th { + [data-ref="table"] th + th { border-left: 2px solid white; } - #product-table > thead > tr > th, - #delivery-note-table > thead > tr > th, - #task-table > thead > tr > th { + [data-ref="table"] > thead > tr > th { padding: 0.8rem; background-color: var(--secondary-color); color: white; } - #product-table > thead > tr > th:last-child, - #delivery-note-table > thead > tr > th:last-child, - #task-table > thead > tr > th:last-child { + [data-ref="table"] > thead > tr > th:last-child { text-align: right; } - #product-table > tbody > tr > td, - #delivery-note-table > tbody > tr > td, - #task-table > tbody > tr > td { + [data-ref="table"] > tbody > tr > td { border-bottom: 1px solid var(--secondary-color); padding: 1rem; } - #product-table > tbody > tr > td:first-child, - #delivery-note-table > tbody > tr > td:first-child, - #task-table > tbody > tr > td:first-child { + [data-ref="table"] > tbody > tr > td:first-child { font-weight: bold; } - #product-table > tbody > tr > td:last-child, - #delivery-note-table > tbody > tr > td:last-child, - #task-table > tbody > tr > td:last-child { + [data-ref="table"] > tbody > tr > td:last-child { text-align: right; } @@ -282,6 +266,13 @@ width: 23%; } + [data-ref="statement-totals"] { + margin-top: 1rem; + margin-bottom: 1rem; + text-align: right; + margin-right: .75rem; + } + /** Useful snippets, uncomment to enable. **/ /** Hide company logo **/ @@ -339,9 +330,20 @@