﻿.orderhistory {
    text-align: left;
}

.orderhistory-left-column {
    float: left;
    width: 100%;
}

.orderhistory-right-column {
    float: left;
    width: 100%;
}

.invoiceAddress.headerWrapper {
    float: left;
}

@media only screen and (max-width: 768px) {
    .orderhistory-left-column {
        float: left;
        width: 100%;
    }

    .orderhistory-right-column {
        float: left;
        width: 100%;
    }

    .invoiceAddress.headerWrapper {
        width: 50%;
        float: left;
    }

    .invoiceLineFieldHeader.invoiceLineFieldHeaderUnitPrice, .invoiceLineField.invoiceLineFieldUnitPrice,
    .invoiceLineFieldHeader.invoiceLineFieldHeaderDiscount, .invoiceLineField.invoiceLineFieldDiscount {
        display: none;
    }

    .invoiceLineFieldHeader.invoiceLineFieldHeaderUnitPrice,
    .invoiceLineField.invoiceLineFieldUnitPrice {
        display: none;
    }

    .invoiceLineField.invoiceLineFieldQuantity,
    .projectInvoiceLineFieldQuantity,
    .invoiceLineFieldHeader.invoiceLineFieldHeaderQuantity,
    .projectInvoiceLineFieldHeaderQuantity {
        width: 15%;
    }

    .invoiceLineFieldLineAmount, .invoiceLineFieldHeaderLineAmount {
        width: 18%;
    }

    div.invoiceLineFieldHeaderItemno,
    div.invoiceLineFieldItemno {
        width: 25%;
    }

    .shippingAddress.headerWrapper {
        display: inline;
    }

    .details.headerWrapper {
        float: left;
        width: 100%;
    }

    .invoiceHeadCol.invoiceHeadExtraDetailsContainer {
        margin-top: 10px;
    }

    .invoiceLinesSummaryContainer {
        width: 250px;
    }

        .invoiceLinesSummaryContainer .invoiceLinesSummaryTitle {
            width: 150px;
            display: inline-block;
        }

    /*Inputs*/

    .orderhistory.inputs label {
        font-size: 15px;
        text-align: left;
    }
}

/* ------------- DROPDOWN ---------------- */
.inputs .dropdown select {
    width: 30%;
}

.orderhistory.inputs div.dropdown {
    display: inline-block;
    margin-bottom: 0;
    width: 100%;
}
/* ------------- END DROPDOWN ---------------- */

.detailsLinkButton {
    float: right;
    width: 20%;
    padding: unset;
}

.inputs input[type="text"] {
    width: 90%;
}

.serviceHistoryControl {
    margin: 10px 0;
}

/* PROJECT STUFF (IMPORTED FROM TJUGEN.CSS) */
/************* NY PROSJEKTOVERSIKT [EDIT] 20140507 SRT ****************/

/* UTSKRIFT AV PROSJEKTOVERSIKT */
#projectOverviewPrintContentButton {
    float: right;
    border: 1px solid #cccccc;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
}

    #projectOverviewPrintContentButton:hover {
        background-color: #f1f1f1;
    }


#projectOverView {
    overflow: hidden;
}

#projectOverViewContent {
    float: left;
    width: 100%;
}

#projectOverViewContentWrapper {
    /*font-family: Arial, sans-serif;*/
    font-size: 12px;
}

.projectInvoiceWrapper {
    padding-bottom: 10px;
    /*border-bottom: 1px solid #cccccc;*/
    margin-bottom: 10px;
}

.projectInvoiceLine, .projectInvoiceLineHeaders {
    overflow: hidden;
}

.projectInvoiceLineHeaders {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 5px;
    border-top: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    background-color: #f1f1f1;
}

.projectInvoiceLine {
    border-bottom: 1px solid #f1f1f1;
}

.projectInvoiceLineField, .projectInvoiceLineFieldHeader {
    float: left;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.projectInvoiceLineFieldHeader {
    font-weight: bold;
}

.projectInvoiceLineField {
    padding-top: 3px;
    padding-bottom: 3px;
}

#customerOrdersForm .warning {
    color: red;
    font-style: italic;
}

.projectOverviewWrapper .projectInvoice {
    overflow: hidden;
}

.projectOverviewWrapper .invoiceLinesSummary,
.projectInvoiceLineFieldHeaderUnitPrice,
.projectInvoiceLineFieldHeaderDiscount,
.projectInvoiceLineFieldHeaderLineAmount,
.projectInvoiceLineFieldUnitPrice,
.projectInvoiceLineFieldLineAmount,
.projectIinvoiceLineFieldDiscount {
    text-align: right;
}

.projectOverviewWrapper .projectInvoiceLinesSummaryTitle {
    width: 80%;
    float: left;
}

.projectOverviewWrapper .projectInvoiceLinesSummaryValue {
    width: 20%;
    float: right;
}

.projectInvoiceLinesSummaryContainerHighLighted {
    font-weight: bold;
}


/* Noen kolonner sine verdier skal være høyrestilt */
/* Kolonner i ordrelinje */
.projectInvoiceLineFieldItemno, .projectInvoiceLineFieldHeaderItemno {
    width: 15%;
}

.projectInvoiceLineFieldDescription, .projectInvoiceLineFieldHeaderDescription {
    width: 35%;
}

.projectInvoiceLineFieldQuantity, .projectInvoiceLineFieldHeaderQuantity {
    width: 8%;
}

.projectInvoiceLineFieldUnitPrice, .projectInvoiceLineFieldHeaderUnitPrice {
    width: 17%;
}

.projectIinvoiceLineFieldDiscount, .projectInvoiceLineFieldHeaderDiscount {
    width: 8%;
}

.projectInvoiceLineFieldLineAmount, .projectInvoiceLineFieldHeaderLineAmount {
    width: 17%;
}


/* Sum prosjektoversikt helt i bunn */
.projectInvoiceLinesFinalSummary {
    position: relative;
    top: -10px;
    border-top: 2px solid #cccccc;
    padding-top: 3px;
    font-size: 18px;
}

.projectInvoiceLinesFinalSummaryContainer {
    overflow: hidden;
}

.projectInvoiceLinesFinalSummaryTitle {
    float: left;
    text-align: right;
    width: 83%;
}

.projectInvoiceLinesFinalSummaryValue {
    float: right;
    text-align: right;
}

.projectInvoiceLinesFinalSummaryContainerHighLighted {
    font-size: 22px;
    font-weight: bold;
}

@media (min-width: 481px) {
    #projectOverViewContentWrapper {
        width: 90%;
        margin: 0 auto;
    }
}


@media (max-width: 480px) {
    .projectInvoiceLineField {
        padding: 5px;
    }

        .projectInvoiceLineFieldHeader.projectInvoiceLineFieldHeaderUnitPrice, .projectInvoiceLineField.projectInvoiceLineFieldUnitPrice {
            display: none;
        }

    .projectInvoiceLineFieldQuantity, .projectInvoiceLineFieldHeaderQuantity {
        width: 15%;
        word-break: break-all;
    }

    .projectInvoiceLineFieldLineAmount, .projectInvoiceLineFieldHeaderLineAmount {
        width: 26%;
        word-break: break-all;
    }
}

/* Ordrelinjer */
.invoiceLinesContainer {
    margin-top: 20px;
}

.invoiceLine, .invoiceLineHeaders {
    overflow: hidden;
}

.invoiceLineHeaders {
    padding-bottom: 3px;
    border-bottom: 1px solid #cccccc;
}

.invoiceLine {
    border-bottom: 1px solid #f1f1f1;
}

.invoiceLineField, .invoiceLineFieldHeader {
    float: left;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.invoiceLineField {
    padding: 7px 0;
}

/* Noen kolonner sine verdier skal v�re h�yrestilt */
.invoiceLineFieldQuantity, .invoiceLineFieldHeaderQuantity, .invoiceLineFieldUnitPrice, .invoiceLineFieldHeaderUnitPrice, .invoiceLineFieldLineAmount, .invoiceLineFieldHeaderLineAmount, .invoiceLineFieldDiscount, .invoiceLineFieldHeaderDiscount {
    text-align: right;
}

.invoiceLineFieldHeader {
    font-weight: bold;
}

/* Kolonner i ordrelinje */
.invoiceLineFieldItemno, .invoiceLineFieldHeaderItemno {
    width: 15%;
}

.invoiceLineFieldDescription, .invoiceLineFieldHeaderDescription {
    width: 35%;
}

.invoiceLineFieldQuantity, .invoiceLineFieldHeaderQuantity {
    width: 8%;
}

.invoiceLineFieldUnitPrice, .invoiceLineFieldHeaderUnitPrice {
    width: 13%;
}

.invoiceLineFieldDiscount, .invoiceLineFieldHeaderDiscount {
    width: 8%;
}

.invoiceLineFieldLineAmount, .invoiceLineFieldHeaderLineAmount {
    width: 13%;
}

/* Sum under ordrelinjer */
.invoiceLinesSummary {
    position: relative;
    top: -1px;
    /*border-top: 1px solid #cccccc;*/
    padding-top: 3px;
    font-size: 14px;
}

.invoiceLinesSummaryContainer {
    overflow: hidden;
}

.invoiceLinesSummaryTitle {
    float: left;
    text-align: right;
    width: 70%;
}

.invoiceLinesSummaryValue {
    float: right;
    text-align: right;
}

.invoiceLinesSummaryContainerHighLighted {
    font-weight: bold;
}

/* MODAL STUFF */

.ui-widget-overlay.ui-front {
    opacity: 0.5;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.invoiceHeader {
    overflow: hidden;
}


@media (min-width: 701px) {
    #invoiceHeadLeft {
        float: left;
        width: 50%;
    }

    #invoiceHeadRight {
        float: right;
        width: 50%;
    }
}

@media (max-width: 700px) {

    #invoiceHeadLeft {
        display: flex;
        flex-grow: 1;
    }

        #invoiceHeadLeft .invoiceHeadCol {
            width: 49%;
            float: none;
            margin-bottom: 20px;
            display: inline-block;
        }

    .invoiceLineFieldDescription, .invoiceLineFieldHeaderDescription {
        width: 40%;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    #invoicePopUpPrintContentButtonWrapper {
        display: none;
    }
}

input#page {
    width: 50px;
    height: 30px;
    text-align: center;
    /* position: relative; */
    /* top: -4px; */
}

/* PAGINATION */

.pagination-wrapper, #elements-per-page, #elements-per-page *, #refresh-data, #pagination-information, #pagination, #pagination * {
    display: inline-block;
    vertical-align: middle;
}

.call-to-action {
    cursor: pointer;
}

select#ElementsPerPage {
    width: 30px;
    min-width: 70px;
    height: 30px;
    min-height: 30px;
    text-align: center;
}

/* MODAL */

.invoiceAddress {
    float: left;
    width: 33%;
}

.creditNoteAddress {
    float: left;
    width: 50%;
}

.shippingAddress {
    float: left;
    width: 33%;
}

.invoiceHeader .details {
    float: left;
    width: 33%;
}

.invoiceHeader .creditNotedetails {
    float: left;
    width: 50%;
}

.invoiceContent {
    margin-top: 20px
}


.infoWrapper {
    border: 1px solid #ddd;
    position: relative;
    background: #f9f9f9;
    height: 100px;
}

    .infoWrapper ul.info {
        display: inline-block;
    }

.invoiceHeadColHeader {
    font-weight: bold;
    font-size: 14px;
}

.invoiceHeadFieldTxt, .invoiceHeadFieldVal {
    display: inline-block;
}

.invoiceLineFieldHeader {
    display: inline-block;
    font-weight: bold;
    font-size: 13px;
}

.invoiceLineField {
    display: inline-block;
    overflow: hidden;
}

.invoiceLinesSummaryContainer div {
    display: inline-block;
}

div.addedToCartStatus {
    width: 8%;
    height: 33px;
}

    div.addedToCartStatus.added {
        color: green;
    }

    div.addedToCartStatus.error {
        color: red;
    }

.invoiceLine:not(:last-child),
.projectInvoiceLine:not(:last-child) {
    border-bottom: 1px solid #F4F1F1;
}

.invoiceLineHeaders {
    border-bottom: 1px solid #ddd;
}

.invoiceLinesContent {
    border-bottom: 1px solid #cccccc;
}

.invoiceLinesSummaryContainer .invoiceLinesSummaryTitle {
    font-weight: bold;
    font-size: 14px;
}

.invoiceLinesSummary {
    width: 60%;
    margin-top: 10px;
    float: right;
    overflow: hidden;
}

.invoiceLinesSummaryValue {
    float: right;
}

.projectInvoiceLineHeaders {
    background-color: #f1f1f1;
    border-bottom: 1px solid #D1CACA;
    border-top: 1px solid #D1CACA;
}

.orderhistory.inputs .projectOverviewWrapper div {
    margin: 0;
    margin-bottom: 3px;
}

.orderhistory.inputs .projectOverviewWrapper .projectInvoice {
    margin-bottom: 40px;
    border-top: 1px solid #D1CACA;
}


.orderhistory.inputs .projectOverviewWrapper .projectInvoiceLinesContainer {
    margin-top: -3px;
    padding-top: 5px;
    border-top: 1px solid #cccccc;
}

div.ui-dialog {
    z-index: 9999;
}

.section.invoices-item {
    position: relative;
}



.orderhistory.inputs {
    font-size: 14px;
}

.invoiceshistory.list .invoices-item {
    margin-bottom: 15px;
}

.serviceHistoryControl .radiobuttonlist.orderhistory label {
    width: initial;
    display: inline-block;
}

.serviceHistoryControlPriceMode, .serviceHistoryControlViewMode {
    float: left;
    width: 50%;
}

.serviceHistoryControlSubmit {
    clear: both;
}

.account-page .page-body {
    padding: 10px;
}

.info-myaccount {
    padding: 10px;
    text-align: left;
}

.infoWrapper .title-myaccount {
    padding-top: 10px;
    padding-left: 10px;
    font-weight: bold;
    text-align: left;
}

@media (min-width: 769px) {
    body .ui-dialog.myaccount-modal {
        width: 1200px !important;
    }
}

.digi-my-account {
    position: relative;
    min-height: 350px;
}

.form-radio {
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
    background-color: #f1f1f1;
    position: relative;
    color: #666;
    top: -2px;
    height: 25px;
    width: 25px;
    border: 0;
    border-radius: 50px;
    cursor: pointer;
    margin-right: 7px;
    outline: none;
}

    .form-radio:checked::before {
        position: absolute;
        font: 13px/1 'Open Sans', sans-serif;
        left: 9px;
        top: 5px;
        content: '\02143';
        transform: rotate(40deg);
    }

    .form-radio:hover {
        background-color: #f7f7f7;
    }

    .form-radio:checked {
        background-color: #f1f1f1;
    }

label {
    font: 15px/1.7 'Open Sans', sans-serif;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: pointer;
}

.grid-price span.digilive-liveprice, .grid-price span.digilive-org-price, .grid-price span.digilive-percentage {
    display: block;
}

.grid-price span.digilive-percentage {
    float: right;
}

.grid-price .digilive-org-price {
    text-decoration: line-through;
}

#grid tr td {
    white-space: normal;
}

    #grid tr td img {
        max-width: 100px;
        max-height: 100px;
    }

#grid tr.even {
    background-color: #F6F6F6;
}

table#grid {
    max-width: 100%;
}

#header-store-info {
    width: 100%;
    height: auto;
    position: relative;
    padding-bottom: 15px;
}

.reorder-wrapper {
    min-height: 60px;
}

/*START - Style for CustomersProductPage*/
.add-to-cart-panel .qty-label {
    display: none;
}

.add-to-cart-panel .qty-input {
    width: 48px;
    height: 48px;
}

#customersProductsTable td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
}

#customersProductsTable_wrapper {
    padding: 15px;
}

#customersProductsTable .add-to-cart .add-to-cart-button {
    text-align: center;
    padding: 15px 10px;
}


#customersProductsTable .add-to-cart .qty-input {
    /*max-width: 20%;*/
}

#customersProductsTable .add-to-cart-panel {
    display: flex;
}

#customersProductsTable .customers-price .add-info .prices {
    display: block !important;
}

#customersProductsTable .customers-price {
    min-width: 65px;
}

#customersProductsTable th::before,
#customersProductsTable th::after {
    display: none;
}

#customersProductsTable thead .sorting,
#customersProductsTable thead .sorting_asc {
    background-position: left;
}

#customersProductsTable thead th {
    padding-left: 20px;
}


@media only screen and (max-width: 1300px) {
    #customersProductsTable td.add-to-cart .add-to-cart-button {
        background-image: url(../../../Themes/DefaultClean/Content/images/shopping-bag.png);
        background-repeat: no-repeat;
        background-size: 20px;
        background-position: center;
        color: transparent;
        width: 48px;
        min-width: 0;
        vertical-align: middle;
    }
}

@media only screen and (max-width: 1150px) {
    #customersProductsTable td.add-to-cart .add-to-cart-panel {
        margin-left: -45px;
    }
}

/*CSS for mobile table styling is from: https://css-tricks.com/responsive-data-tables/*/
@media only screen and (max-width: 1025px) {
    #customersProductsTable td.add-to-cart .add-to-cart-panel {
        margin-left: 0;
    }

    #customersProductsTable, #customersProductsTable thead, #customersProductsTable tbody, #customersProductsTable th, #customersProductsTable td, #customersProductsTable tr {
        display: block;
    }

        /* Hide table headers (but not display: none;, for accessibility) */
        #customersProductsTable thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

        #customersProductsTable tr {
            border-top: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
            overflow: auto;
            position: relative;
        }

        #customersProductsTable td {
            border: none;
            position: relative;
            text-align: left;
            margin-left: 5%;
            font-weight: bold;
        }

            #customersProductsTable td:before {
                top: 6px;
                left: 6px;
                width: 45%;
                padding-right: 10px;
                white-space: nowrap;
                font-weight: normal;
            }

            #customersProductsTable td .add-to-cart {
                position: relative;
            }

        #customersProductsTable .add-to-cart-panel {
            display: block;
        }

        #customersProductsTable .product-picture {
            padding-left: 0;
        }

        #customersProductsTable .customers-price .add-info {
            display: inline-block;
        }

        #customersProductsTable td.product-name,
        #customersProductsTable td.sku,
        #customersProductsTable td.quantity,
        #customersProductsTable td.last-purchase-date,
        #customersProductsTable td.quantity-bought-with-orders {
            float: left;
            margin-left: 120px;
            clear: right;
            padding: 5px;
        }

        #customersProductsTable td.product-name {
            font-weight: normal;
            font-size: 16px;
            color: black;
            margin-top: 10px;
        }

        #customersProductsTable td.customers-price,
        #customersProductsTable td.add-to-cart {
            float: right;
            width: 30%;
            margin-left: 0;
            position: absolute;
            right: 0;
        }

        #customersProductsTable td.add-to-cart {
            top: 30px;
            font-size: 0;
        }

        #customersProductsTable td.product-picture {
            width: 110px;
            float: left;
            position: absolute;
            margin-left: 15px;
        }

        #customersProductsTable td.product-name,
        #customersProductsTable td.sku,
        #customersProductsTable td.quantity,
        #customersProductsTable td.last-purchase-date,
        #customersProductsTable td.quantity-bought-with-orders {
            width: 40%;
        }

    .customers-products-page .page-body,
    .customers-products-page #customersProductsTable_wrapper {
        padding: 0;
    }

    .customers-products-page #customersProductsTable_filter {
        width: 100%;
        padding: 15px;
    }
}

/* START - INCREASE DECREASE BUTTONS ON PRODUCT PAGE */
#customersProductsTable .add-to-cart .increase,
#customersProductsTable .add-to-cart .decrease {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 1px solid #e9e9e9;
    padding: 0 8px;
    vertical-align: middle;
    color: #777;
    text-align: center;
    line-height: 48px;
    font-size: 14px;
}

.html-account-page .master-wrapper-content {
    width: 90%;
    margin: auto;
}
/* END - INCREASE DECREASE BUTTONS ON PRODUCT PAGE */

@media only screen and (max-width: 650px) {
    .html-account-page .master-wrapper-content {
        width: 100%;
    }

    .html-account-page .master-wrapper-content {
        padding: 25px 0 25px 0;
    }

    #customersProductsTable td.product-picture {
        width: 70px;
    }

        #customersProductsTable td.product-picture img {
            max-width: 100%;
        }

    #customersProductsTable td.product-name,
    #customersProductsTable td.sku,
    #customersProductsTable td.quantity,
    #customersProductsTable td.last-purchase-date,
    #customersProductsTable td.quantity-bought-with-orders {
        margin-left: 90px;
    }

    #customersProductsTable td.customers-price,
    #customersProductsTable td.add-to-cart {
        width: 40%;
        text-align: right;
    }

    #customersProductsTable .add-to-cart-panel {
        float: right;
    }
}

@media only screen and (max-width: 522px) {
    #customersProductsTable td.product-picture {
        width: 50px;
    }

    #customersProductsTable td.product-name,
    #customersProductsTable td.sku,
    #customersProductsTable td.quantity,
    #customersProductsTable td.last-purchase-date,
    #customersProductsTable td.quantity-bought-with-orders {
        margin-left: 70px;
        font-size: 12px;
    }

    #customersProductsTable td.product-name {
        font-size: 14px;
    }

    #customersProductsTable .add-to-cart .increase,
    #customersProductsTable .add-to-cart .decrease,
    #customersProductsTable .add-to-cart .qty-input,
    #customersProductsTable .add-to-cart .add-to-cart-button {
        width: 38px !important;
        height: 38px !important;
        background-size: 12px !important;
        line-height: 38px !important;
    }
}

/*Date-filter*/
.date-filter-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 450px;
}

.date-filter-container .input-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 40%;
    justify-content: center;
}

.date-filter-container .input-arrow {
    font-size: 25px;
    margin-top: 22px;
}

@media only screen and (max-width: 1026px) {
    .date-filter-container {
        margin: 6px;
    }
}

@media only screen and (max-width: 650px) {
    .date-filter-container {
        margin: auto;
        width: 90%;
    }
}
/*END - Style for CustomersProductPage*/

/*START - CSS for times-bought ribbon*/
/*Product details and product box*/
.times-bought-ribbons {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
}

/*Product details*/
.times-bought-ribbons.product-details {
    width: 100px;
    height: 100px;
}

/*Product box*/
.times-bought-ribbons.product-box {
    height: 70px;
    width: 70px;
}

/*Product details and product box*/
.times-bought-ribbons div {
    width: 100%;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/*Product details*/
.times-bought-ribbons.product-details div {
    height: 100px;
}

/*Product box*/
.times-bought-ribbons.product-box div {
    height: 70px;
}

/*Checkmark*/
.times-bought-ribbons div p:first-of-type {
    font-size: 40px;
    line-height: 1;
}

.times-bought-ribbons.product-box div p:first-of-type {
    font-size: 30px;
}

/*Text*/
.times-bought-ribbons div p {
    color: white;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/*END - CSS for times-bought ribbon*/

/*START - scrollhandling for order item list*/
.myaccount-modal {
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 90%;
}
/*END - scrollhandling for order item list*/