﻿
.details-form-wrapper {
    border: none;
    background: none;
    padding: 0;
}

    .details-form-wrapper .tab-pane {
        background: rgba(255, 255, 255, .5);
    }

/* INVOICES ======================================================================================================== */
.field-label::after {
    content: ': ';
}

.emitter-logo-wrapper {
    position: absolute;
    pointer-events: none;
    top: 30px;
    right: 60px;
}

    .emitter-logo-wrapper > img {
        max-width: 350px;
        max-height: 80px;
    }

.invoice-main-container {
    border: solid 1px #bababa;
    background: white;
    padding: calc(3 * 10px);
    margin: calc(1 * 10px) 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    border-radius: 0 40px 0 0;
    position: relative;
}

    .invoice-main-container[data-is-proforma='True'],
    .invoice-main-container[data-is-proforma='true'] {
        border-style: dashed;
        border-width: 3px;
    }

    .invoice-main-container[data-is-cancelled='True'],
    .invoice-main-container[data-is-cancelled='true'] {
        background: rgba(255, 229, 233, .25);
        border-color: #f00;
    }

.doc-watermark {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0.1;
    font-size: 20px;
    z-index: 0;
    pointer-events: none;
    color: #2578b6;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-90deg) translateX(-30px) translateY(-35px);
    transform-origin: top right;
    transition-duration: .2s;
}

.invoice-main-container:hover .doc-watermark {
    opacity: 0.2;
}

.invoice-header {
    margin-bottom: calc(2 * 10px);
}

    .invoice-header .invoice-title {
        font-size: 26px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: #2578b6;
        position: relative;
        cursor: default;
    }

        .invoice-header .invoice-title::before {
            position: absolute;
            content: '';
            width: calc(1.5 * 10px);
            background: rgba(37, 120, 182, .04);
            left: calc(-3 * 10px);
            height: 50%;
            top: 50%;
            transform: translateY(-50%);
        }

.invoice-main-container[data-is-proforma='True'] .invoice-header .invoice-title::before {
    background: rgba(37, 120, 182, .02);
}

.invoice-header .invoice-title > span {
    position: relative;
}

    .invoice-header .invoice-title > span::after {
        position: absolute;
        content: '';
        width: calc(7 * 10px);
        background: rgba(37, 120, 182, .04);
        right: calc(-8.5 * 10px);
        height: 50%;
        top: 50%;
        transform: translateY(-50%);
    }

.invoice-main-container[data-is-proforma='True'] .invoice-header .invoice-title > span::after {
    background: rgba(37, 120, 182, .02);
}


.invoice-header .invoice-title-details {
    font-size: 18px;
}

    .invoice-header .invoice-title-details .invoice-series,
    .invoice-header .invoice-title-details .invoice-number,
    .invoice-header .invoice-title-details .invoice-date {
        margin-right: 10px;
    }

.invoice-header .hint {
    font-size: 12px;
    color: #777;
    font-style: italic;
}

.invoice-parties-container {
    margin-top: calc(2 * 10px);
    color: #777;
}

    .invoice-parties-container .field-value {
        font-weight: 600;
        color: #555;
    }

.invoice-items-container {
}

    .invoice-items-container .hint {
        font-size: 12px;
        color: #777;
        font-style: italic;
    }

td .um-abbrev,
td .currency-abbrev,
td .percent-abbrev {
    display: inline-block;
    vertical-align: middle;
    width: 35px;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

table.table th,
table.table td {
    cursor: default;
    vertical-align: top;
}



td.currency-abbrev {
    width: 35px;
}

td .percent-abbrev {
    width: 20px;
}

.invoice-party-title,
.total-values-label {
    font-size: 18px;
    font-weight: 500;
    color: #2578b6;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 2;
}

.invoice-workplace-title {
    margin-top: -10px;
    font-size: 16px;
    font-weight: 500;
    color: #2578b6;
    letter-spacing: 1px;
    line-height: 2;
}

    .total-values-label {
        display: none;
        font-weight: 600;
        margin-bottom: calc(1 * 10px);
    }

.total-value-label {
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 2;
}

.total-value .the-val {
    font-size: 24px;
    font-weight: 500;
    cursor: default;
}

.totals-wrapper .total-card {
    margin: 10px 0;
    padding: 10px;
    border: solid 1px #d5e4f3;
    border-radius: 3px;
    transition-duration: .2s;
    text-align: right;
    color: #777;
}

    .totals-wrapper .total-card:hover {
        background: #eef1f7;
    }

    .totals-wrapper .total-card.big-total {
        background: rgba(141, 222, 137, .25);
        color: #5e945e;
    }

td.item-name {
    font-weight: 500;
}

table.invoice-positions td.item-name .tm-icon {
    color: #2578b6;
    margin-right: calc(0.5 * 10px);
}

.invoice-footer {
    margin-top: calc(2 * 10px);
}

.footer-texts-container {
    font-style: italic;
    font-size: 12px;
}

.is-advance-invoice-hint {
    font-style: italic;
}

table.invoice-positions th,
table.invoice-positions td {
    color: #777;
}

    table.invoice-positions td.item-name {
        width: 250px;
    }

table.invoice-positions[data-display-for-second-currency='0'] span.visible-for-second-currency,
table.invoice-positions[data-display-for-second-currency='0'] span.visible-for-second-currency {
    display: none;
}

table.invoice-positions[data-display-for-second-currency='0'] span.visible-for-first-currency,
table.invoice-positions[data-display-for-second-currency='0'] span.visible-for-first-currency {
    display: inline-block;
    vertical-align: middle;
}

table.invoice-positions[data-display-for-second-currency='1'] span.visible-for-second-currency,
table.invoice-positions[data-display-for-second-currency='1'] span.visible-for-second-currency {
    display: inline-block;
    vertical-align: middle;
}

table.invoice-positions[data-display-for-second-currency='1'] span.visible-for-first-currency,
table.invoice-positions[data-display-for-second-currency='1'] span.visible-for-first-currency {
    display: none;
}

table.invoice-positions[data-display-for-second-currency='2'] span.visible-for-second-currency,
table.invoice-positions[data-display-for-second-currency='2'] span.visible-for-second-currency {
    display: inline-block;
}

table.invoice-positions[data-display-for-second-currency='2'] span.visible-for-first-currency,
table.invoice-positions[data-display-for-second-currency='2'] span.visible-for-first-currency {
    display: inline-block;
}


div.totals-wrapper[data-display-for-second-currency='0'] span.visible-for-second-currency,
div.totals-wrapper[data-display-for-second-currency='0'] span.visible-for-second-currency {
    display: none;
}

div.totals-wrapper[data-display-for-second-currency='0'] span.visible-for-first-currency,
div.totals-wrapper[data-display-for-second-currency='0'] span.visible-for-first-currency {
    display: inline-block;
}

div.totals-wrapper[data-display-for-second-currency='1'] span.visible-for-second-currency,
div.totals-wrapper[data-display-for-second-currency='1'] span.visible-for-second-currency {
    display: inline-block;
}

div.totals-wrapper[data-display-for-second-currency='1'] span.visible-for-first-currency,
div.totals-wrapper[data-display-for-second-currency='1'] span.visible-for-first-currency {
    display: none;
}

div.totals-wrapper[data-display-for-second-currency='2'] span.visible-for-second-currency,
div.totals-wrapper[data-display-for-second-currency='2'] span.visible-for-second-currency {
    display: inline-block;
}

div.totals-wrapper[data-display-for-second-currency='2'] span.visible-for-first-currency,
div.totals-wrapper[data-display-for-second-currency='2'] span.visible-for-first-currency {
    display: inline-block;
}

div.currency-conversion[data-display-for-second-currency='0'] {
    display: none;
}

div.currency-conversion[data-display-for-second-currency='1'] {
    display: none;
}

div.currency-conversion[data-display-for-second-currency='2'] {
    display: inline-block;
}

.invoice-extra-info-container {
}

.invoice-extra-info-entry {
    line-height: 2;
}

.unpaid-at-all {
    color: #f00;
}

.partially-paid {
    color: #ffa500;
}

.totally-paid {
    color: #85c177;
}

.expires-on {
    color: #f00;
}

/* Printing the invoice */
@media print {
    @page {
        size: A4 portrait;
        margin: 0mm;
    }

    body * {
        visibility: hidden;
        overflow: visible !important;
    }

    #invoice-main-container,
    #invoice-main-container * {
        visibility: visible;
    }

    #invoice-main-container {
        position: absolute;
        left: 10px;
        top: 0;
        right: 10px;
    }
}
