#invoice {
    padding: 30px;
}

.invoice {
    position: relative;
    background-color: #FFF;
    min-height: 680px;
    padding: 15px
}

    .invoice header {
        padding: 10px 0;
        margin-bottom: 20px;
        border-bottom: 1px solid #3989c6
    }

    .invoice .company-details {
        text-align: right
    }

        .invoice .company-details .name {
            margin-top: 0;
            margin-bottom: 0
        }

    .invoice .contacts {
        margin-bottom: 20px
    }

    .invoice .invoice-to {
        text-align: left
    }

        .invoice .invoice-to .to {
            margin-top: 0;
            margin-bottom: 0
        }

    .invoice .invoice-details {
        text-align: right
    }

        .invoice .invoice-details .invoice-id {
            margin-top: 0;
            color: #3989c6
        }

    .invoice main {
        padding-bottom: 50px
    }

        .invoice main .thanks {
            margin-top: -100px;
            font-size: 2em;
            margin-bottom: 50px
        }

        .invoice main .notices {
            padding-left: 6px;
            border-left: 6px solid #3989c6
        }

            .invoice main .notices .notice {
                font-size: 1.2em
            }

    .invoice table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        margin-bottom: 20px
    }

        .invoice table td,
        .invoice table th {
            padding: 15px;
            background: #eee;
            border-bottom: 1px solid #fff
        }

        .invoice table th {
            white-space: nowrap;
            font-weight: 400;
            font-size: 16px
        }

        .invoice table td h3 {
            margin: 0;
            font-weight: 400;
            color: #3989c6;
            font-size: 1.2em
        }

        .invoice table .qty,
        .invoice table .total,
        .invoice table .unit {
            text-align: right;
            font-size: 1.2em
        }

        .invoice table .no {
            color: #fff;
            font-size: 1.6em;
            background: #3989c6
        }

        .invoice table .unit {
            background: #ddd
        }

        .invoice table .total {
            background: #3989c6;
            color: #fff
        }

        .invoice table tbody tr:last-child td {
            border: none
        }

        .invoice table tfoot td {
            background: 0 0;
            border-bottom: none;
            white-space: nowrap;
            text-align: right;
            padding: 10px 20px;
            font-size: 1.2em;
            border-top: 1px solid #aaa
        }

        .invoice table tfoot tr:first-child td {
            border-top: none
        }

        .invoice table tfoot tr:last-child td {
            color: #3989c6;
            font-size: 1.4em;
            border-top: 1px solid #3989c6
        }

        .invoice table tfoot tr td:first-child {
            border: none
        }

    .invoice footer {
        width: 100%;
        text-align: center;
        color: #777;
        border-top: 1px solid #aaa;
        padding: 8px 0
    }

@media print {
    .invoice {
        font-size: 11px !important;
        overflow: hidden !important
    }

        .invoice footer {
            position: absolute;
            bottom: 10px;
            page-break-after: always
        }

        .invoice > div:last-child {
            page-break-before: always
        }
}

[data-theme="light"] #invoice {
    padding: 30px;
}

[data-theme="light"] .invoice {
    position: relative;
    background-color: #FFF;
    min-height: 680px;
    padding: 15px
}

[data-theme="light"] .invoice header {
        padding: 10px 0;
        margin-bottom: 20px;
        border-bottom: 1px solid #3989c6
    }

[data-theme="light"] .invoice .company-details {
        text-align: right
    }

    [data-theme="light"] .invoice .company-details .name {
        margin-top: 0;
        margin-bottom: 0
    }

[data-theme="light"] .invoice .contacts {
        margin-bottom: 20px
    }

[data-theme="light"] .invoice .invoice-to {
        text-align: left
    }

    [data-theme="light"] .invoice .invoice-to .to {
        margin-top: 0;
        margin-bottom: 0
    }

[data-theme="light"] .invoice .invoice-details {
        text-align: right
    }

    [data-theme="light"] .invoice .invoice-details .invoice-id {
        margin-top: 0;
        color: #3989c6
    }

[data-theme="light"] .invoice main {
        padding-bottom: 50px
    }

    [data-theme="light"] .invoice main .thanks {
        margin-top: -100px;
        font-size: 2em;
        margin-bottom: 50px
    }

    [data-theme="light"] .invoice main .notices {
        padding-left: 6px;
        border-left: 6px solid #3989c6
    }

        [data-theme="light"] .invoice main .notices .notice {
            font-size: 1.2em
        }

[data-theme="light"] .invoice table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        margin-bottom: 20px
    }

    [data-theme="light"] .invoice table td,
    [data-theme="light"] .invoice table th {
        padding: 15px;
        background: #eee;
        border-bottom: 1px solid #fff
    }

    [data-theme="light"] .invoice table th {
        white-space: nowrap;
        font-weight: 400;
        font-size: 16px
    }

    [data-theme="light"] .invoice table td h3 {
        margin: 0;
        font-weight: 400;
        color: #3989c6;
        font-size: 1.2em
    }

    [data-theme="light"] .invoice table .qty,
    [data-theme="light"] .invoice table .total,
    [data-theme="light"] .invoice table .unit {
        text-align: right;
        font-size: 1.2em
    }

    [data-theme="light"] .invoice table .no {
        color: #fff;
        font-size: 1.6em;
        background: #3989c6
    }

    [data-theme="light"] .invoice table .unit {
        background: #ddd
    }

    [data-theme="light"] .invoice table .total {
        background: #3989c6;
        color: #fff
    }

    [data-theme="light"] .invoice table tbody tr:last-child td {
        border: none
    }

    [data-theme="light"] .invoice table tfoot td {
        background: 0 0;
        border-bottom: none;
        white-space: nowrap;
        text-align: right;
        padding: 10px 20px;
        font-size: 1.2em;
        border-top: 1px solid #aaa
    }

    [data-theme="light"] .invoice table tfoot tr:first-child td {
        border-top: none
    }

    [data-theme="light"] .invoice table tfoot tr:last-child td {
        color: #3989c6;
        font-size: 1.4em;
        border-top: 1px solid #3989c6
    }

    [data-theme="light"] .invoice table tfoot tr td:first-child {
        border: none
    }

[data-theme="light"] .invoice footer {
        width: 100%;
        text-align: center;
        color: #777;
        border-top: 1px solid #aaa;
        padding: 8px 0
    }

@media print {
    [data-theme="light"] .invoice {
        font-size: 11px !important;
        overflow: hidden !important
    }

    [data-theme="light"] .invoice footer {
            position: absolute;
            bottom: 10px;
            page-break-after: always
        }

    [data-theme="light"] .invoice > div:last-child {
            page-break-before: always
        }
}

[data-theme="dark"] #invoice {
    padding: 30px;
}

[data-theme="dark"] .invoice {
    position: relative;
    background-color: var(--abs-body-bg);
    min-height: 680px;
    padding: 15px
}

    [data-theme="dark"] .invoice header {
        padding: 10px 0;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--abs-border-color)
    }

    [data-theme="dark"] .invoice .company-details {
        text-align: right
    }

        [data-theme="dark"] .invoice .company-details .name {
            margin-top: 0;
            margin-bottom: 0
        }

    [data-theme="dark"] .invoice .contacts {
        margin-bottom: 20px
    }

    [data-theme="dark"] .invoice .invoice-to {
        text-align: left
    }

        [data-theme="dark"] .invoice .invoice-to .to {
            margin-top: 0;
            margin-bottom: 0
        }

    [data-theme="dark"] .invoice .invoice-details {
        text-align: right
    }

        [data-theme="dark"] .invoice .invoice-details .invoice-id {
            margin-top: 0;
            color: #3989c6
        }

    [data-theme="dark"] .invoice main {
        padding-bottom: 50px
    }

        [data-theme="dark"] .invoice main .thanks {
            margin-top: -100px;
            font-size: 2em;
            margin-bottom: 50px
        }

        [data-theme="dark"] .invoice main .notices {
            padding-left: 6px;
            border-left: 6px solid var(--abs-border-color)
        }

            [data-theme="dark"] .invoice main .notices .notice {
                font-size: 1.2em
            }

    [data-theme="dark"] .invoice table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        margin-bottom: 20px
    }

        [data-theme="dark"] .invoice table td,
        [data-theme="dark"] .invoice table th {
            padding: 15px;
            background: var(--abs-body-bg);
            border-bottom: 1px solid var(--abs-border-color)
        }

        [data-theme="dark"] .invoice table th {
            white-space: nowrap;
            font-weight: 400;
            font-size: 16px
        }

        [data-theme="dark"] .invoice table td h3 {
            margin: 0;
            font-weight: 400;
            color: #3989c6;
            font-size: 1.2em
        }

        [data-theme="dark"] .invoice table .qty,
        [data-theme="dark"] .invoice table .total,
        [data-theme="dark"] .invoice table .unit {
            text-align: right;
            font-size: 1.2em
        }

        [data-theme="dark"] .invoice table .no {
            color: #fff;
            font-size: 1.6em;
            background: var(--abs-body-bg);
        }

        [data-theme="dark"] .invoice table .unit {
            background: var(--abs-body-bg);
        }

        [data-theme="dark"] .invoice table .total {
            background: var(--abs-body-bg);
            color: #fff
        }

        [data-theme="dark"] .invoice table tbody tr:last-child td {
            border: none
        }

        [data-theme="dark"] .invoice table tfoot td {
            background: 0 0;
            border-bottom: none;
            white-space: nowrap;
            text-align: right;
            padding: 10px 20px;
            font-size: 1.2em;
            border-top: 1px solid #aaa
        }

        [data-theme="dark"] .invoice table tfoot tr:first-child td {
            border-top: none
        }

        [data-theme="dark"] .invoice table tfoot tr:last-child td {
            color: var(--abs-body-bg);
            font-size: 1.4em;
            border-top: 1px solid #3989c6
        }

        [data-theme="dark"] .invoice table tfoot tr td:first-child {
            border: none
        }

    [data-theme="dark"] .invoice footer {
        width: 100%;
        text-align: center;
        color: #777;
        border-top: 1px solid #aaa;
        padding: 8px 0
    }

@media print {
    [data-theme="dark"] .invoice {
        font-size: 11px !important;
        overflow: hidden !important
    }

        [data-theme="dark"] .invoice footer {
            position: absolute;
            bottom: 10px;
            page-break-after: always
        }

        [data-theme="dark"] .invoice > div:last-child {
            page-break-before: always
        }
}

