﻿/* Styling for sidene med fakturagrunnlag (oversikt, kjøring) */

.faktura-grunnlag {
    display: flex;
    justify-content: center;
}

.faktura-grunnlag-form {
    width: 50%;
    min-width: 400px;
}

.grunnlag-title {
    margin-bottom: 1rem;
}

/* Fakturagrunnlag kjøring oversikt */

.faktura-overview-middle {
    margin-bottom: 30px;
}

.faktura-overview-middle > hr {
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.faktura-overview-middle > p {
    margin-bottom: 2px;
}

.faktura-overview-bottom > button:first-child {
    margin-right: 20px;
}


/* Fakturagrunnlag kjøring resultat */

.result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grunnlag-completed-top {
    width: 50%;
    min-width: 400px;
}

.grunnlag-completed-bottom {
    width: 50%;
    min-width: 400px;
    text-align: center;
}

.grunnlag-download-link {
    margin-top: 20px;
}

.multiple-download-links {
    display: flex;
    flex-direction: column;
}

.grunnlag-download-links {
    padding: 5px 0px;
}

.grunnlag-multiple-download {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.dropdown-item:hover {
    cursor: pointer;
}

.dropdown-item:focus {
    background-color: transparent;
}

.dropdown-item:active {
    background-color: transparent;
}


/* Fakturagrunnlag tabell oversikt */

.grunnlag-oversikt-table {
    width: 90%;
    margin-bottom: 20px;
}

.oversikt-table-picker {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 10px;
}

.oversikt-table-picker > select {
    align-self: flex-end;
}

.grunnlag-sendt-check {
    font-size: 22px;
}

.grunnlag-oversikt-totalt {
    display: flex;
    justify-content: flex-end;
}

.grunnlag-oversikt-totalt > p {
    margin-bottom: 3px;
}

.grunnlag-oversikt-totalt > .badge {
    margin: 8px 0;
    padding: 5px; 
}

.supplier-table-top {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.modal-supplier-body {
    display: flex;
    flex-direction: column;
    max-height: 700px;
    overflow-y: auto;
    min-height: 350px;
}

.supplier-search-box {
    align-self: flex-end;
}

.supplier-table-top > .input-group {
    padding-left: 0;
}

.supplier-details-email {
    word-break: break-word;
    user-select: all;
}

.supplier-details-modal {
    min-height: 350px;
}

@media screen and (min-width: 1200px) {
    .grunnlag-oversikt-table {
        width: 70%;
    }
}

/* Kundereferanse oversikt */

.kunderef-oversikt-top {
    display: flex;
    flex-direction: column;
}

.kunderef-oversikt-top > hr {
    width: 100%; 
}

.kunderef-sort {
    display: flex;
    justify-content: flex-end;
}

/* Validering siden  */

.faktura-validation {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

.faktura-validation-top {
    width: 100%; 
}

.faktura-validation-form {
    width: 1000%;
}

.faktura-validation-result {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}

.fv-result-box {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,.125);
    margin: 0.5rem 0rem;
}

.fv-result-box-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.fv-result-box > h3 {
    margin-bottom: 0px;
}

.faktura-validation-result hr {
    width: 100%; 
}

.fv-result-message {
    margin-bottom: 2px;
    max-width: 90%
}

.fv-validation-date {
    margin-bottom: 0px;
}

.faktura-validation-differences {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.reference-badge {
    display: inline-block;
    padding: .25em .4em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    vertical-align: baseline;
    margin-top: 5px;
    margin-right: 10px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    border-radius: .25rem;
}

.validation-list-button {
    align-self: flex-end;
}

.hidden-validation {
    display: none;
}

.show-validation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 10px;
    margin-bottom: 15px;
}

.validation-list-overview {
    max-height: 450px;
    width: 100%;
    overflow-y: scroll;
}

.validation-list-overview > h3 {
    width: 100%;
    text-align: center;
}

.validation-list-overview > .list-group {
    width: 45%;
}

@media screen and (min-width: 1440px) {
    .faktura-validation-form {
        width: 50%;
        min-width: 400px;
    }
    .faktura-validation-result {
        width: 45%;
        min-width: 350px;
        margin-bottom: 10px;
        margin-top: unset;
    }
}

.top-heading-title {
    margin-bottom: 0.25rem;
}


/* Filer siden */

.faktura-filer-oversikt {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}

.faktura-filer-detaljer {
    margin-top: 20px;
    width: 30%;
    min-width: 300px;
}

.faktura-filer-liste {
    width: 45%;
    min-width: 500px;
}

@media screen and (min-width: 1509px) {
    .faktura-filer-detaljer {
        margin-top: unset;
    }
}

.faktura-validation-result-info {
    width: 100%;
    text-align: center;
}