<style type="text/css">
    {% block document_style %}
        body {
            font-family: 'Source Sans Pro', sans-serif;
            font-size: 12px;
            line-height: 12px;
            width: 100%;
        }

        .letter-header {
            position: relative;
            height: 80px;
        }

        .letter-body {
            clear: right;
        }

        div.page_break {
            page-break-before: always;
        }

        div.page_break + div.page_break {
            page-break-before: always;
        }

        h1 {
            line-height: 24px;
        }

        /* Helper classes */
        .align-right {
            text-align: right;
        }

        .bold {
            font-weight: bold;
        }

        .small-padding-top {
            padding-top: 15px;
        }

        /*Page */
        @page {
            margin-top: 200px;
        }

        /* Header */
        header {
            position: fixed;
            top: -175px;
        }

        .logo {
            position: absolute;
            top: 0;
            left: 0;
            max-height: 150px;
            width: auto;
            clear: right;
        }

        /* Document title */
        .document-title-container {
            font-size: 18px;
        }

        /* Sender info section (top right) */
        .sender-address-container {
            position: absolute;
            right: 0;
            bottom: 0;
            clear: right;
        }

        /* Receipt address section */
        .recipient-address-container {
            position: absolute;
            left: 0;
            bottom: 0;
        }

        /* Line item section */
        .line-item-table {
            width: 100%;
            border-spacing: 0 2px;
            border-collapse: collapse;
        }

        .line-item-table tbody tr:first-child > td {
            padding-top: 20px;
        }

        .line-item-table tbody tr > td {
            padding-bottom: 5px;
        }

        .line-item-table tbody tr:first-child > .line-item-breakable .label-wrapper {
            top: 20px;
        }

        .line-item-table-header {
            vertical-align: top;
        }

        .line-item-table-header > th, .line-item-table:last-child {
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.15);
        }

        .line-item-table-header > th.numbers {
            text-align: right;
            padding-bottom: 20px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.15);
        }

        .line-item-table-header > th.incl-vat {
            position: relative;
            width: auto;
        }

        .line-item-table-header > th.incl-vat > span {
            display: inline-block;
            position: absolute;
            font-size: 10px;
            font-weight: normal;
            margin-top: 12px;
            right: 0;
        }

        .line-item, .sum-container, .payment-shipping-container, .document-comment-container {
            line-height: 16px;
        }

        .line-item-breakable {
            word-wrap: break-word;
            vertical-align: top;
        }

        .line-item.nested > td {
            position: relative;
            overflow: hidden;
        }

        .line-item .label-wrapper {
            display: inline-block;
            position: absolute;
            top: 0.05%;
            bottom: 0;
            left: 0;
            border-left: 2px solid rgba(0, 0, 0, 0.15);
        }

        .line-item > td {
            vertical-align: top;
        }

        .headline {
            font-size: 18px;
        }

        .label-wrapper.level-2 { margin-left: 10px; }
        .label-wrapper.level-3 { margin-left: 20px; }
        .label-wrapper.level-4 { margin-left: 30px; }
        .label-wrapper.level-5 { margin-left: 40px; }
        .label-wrapper.level-6 { margin-left: 50px; }
        .label-wrapper.level-7 { margin-left: 60px; }
        .label-wrapper.level-8 { margin-left: 70px; }
        .label-wrapper.level-9 { margin-left: 80px; }
        .label-wrapper.level-10 { margin-left: 90px; }
        .label-wrapper.level-11 { margin-left: 100px; }
        .label-wrapper.level-12 { margin-left: 110px; }
        .label-wrapper.level-13 { margin-left: 120px; }
        .label-wrapper.level-14 { margin-left: 130px; }
        .label-wrapper.level-15 { margin-left: 140px; }
        .label-wrapper.level-16 { margin-left: 150px; }
        .label-wrapper.level-17 { margin-left: 160px; }
        .label-wrapper.level-18 { margin-left: 170px; }
        .label-wrapper.level-19 { margin-left: 180px; }
        .label-wrapper.level-20 { margin-left: 190px; }

        .line-item-label.level-1 { padding-left: 10px; }
        .line-item-label.level-2 { padding-left: 20px; }
        .line-item-label.level-3 { padding-left: 30px; }
        .line-item-label.level-4 { padding-left: 40px; }
        .line-item-label.level-5 { padding-left: 50px; }
        .line-item-label.level-6 { padding-left: 60px; }
        .line-item-label.level-7 { padding-left: 70px; }
        .line-item-label.level-8 { padding-left: 80px; }
        .line-item-label.level-9 { padding-left: 90px; }
        .line-item-label.level-10 { margin-left: 100px; }
        .line-item-label.level-11 { margin-left: 110px; }
        .line-item-label.level-12 { margin-left: 120px; }
        .line-item-label.level-13 { margin-left: 130px; }
        .line-item-label.level-14 { margin-left: 140px; }
        .line-item-label.level-15 { margin-left: 150px; }
        .line-item-label.level-16 { margin-left: 160px; }
        .line-item-label.level-17 { margin-left: 170px; }
        .line-item-label.level-18 { margin-left: 180px; }
        .line-item-label.level-19 { margin-left: 190px; }
        .line-item-label.level-20 { margin-left: 100px; }

        .table-spacer {
            height: 20px;
        }

        /* Payment/shipping details*/
        .payment-shipping-container, .sum-container, .document-comment-container {
            padding-top: 25px;
        }

        .payment-shipping-container, .shipping-address-container, .sum-container {
            page-break-inside: avoid;
        }

        .payment-shipping-container {
            clear: right;
        }

        .shipping-address-container .bold {
            margin: 0;
        }

        .page-count {
            width: 100%;
            float: left;
        }

        .pagenum:after {
            content: counter(page);
        }

        /* Subtotal/Total section */
        .sum-container {
            text-align: right;
            float: right;
            right: 0;
        }

        .sum-table {
            border-spacing: 20px 0;
        }

        /* Footer */
        footer {
            position: fixed;
            bottom: 30px;
            font-size: 8px;
            padding-top: 30px;
            line-height: 9px;
            width: 100%;
        }

        footer:after {
            clear: both;
        }

        footer > ul {
            width: 20%;
            display: block;
            float: left;
            list-style-type: none;
            margin: 0;
            height: 100px;
        }

        footer > ul:first-child {
            padding: 0;
        }
    {% endblock %}
</style>
