﻿.referral-code .page-wrap {
    max-width:none;
}

.referral-code-page-container {
    margin: auto;
    max-width: 1400px;
    width: 100%;
    padding: 0 10px;
    margin-bottom: 40px;
}

    .referral-code-page-container,
    .referral-code-page-container * {
        box-sizing: border-box;
    }

.referral-code-wrapper {
    width: 100%;
    /*padding: 10px;*/
    margin-bottom: 50px;
    height: 100%;
}

.referral-code-tile {
    display: flex;
    align-items: center;
    height: 44px;
    width: 100%;
}

.referral-code-wrapper > .row {
    min-height: 40px;
    margin-left: unset;
    margin-right: unset;
}

    .referral-code-wrapper > .row:nth-child(2) .delete-button {
        display: none;
    }

    .referral-code-wrapper > .row:nth-child(2) .referral-code-action-container {
        min-width: 162px;
    }

.row.drag-origin,
.row.drag-origin .referral-code-tile:nth-child(n) > * {
    background-color: rgba(221, 221, 66, 0.21);
}

.row:first-of-type .referral-code-tile {
    color: gray;
}

.row:not(:last-of-type) {
    margin-bottom: 2px;
}

.row:not(:first-of-type):nth-child(-n + 8)
.referral-code-tile
.referral-code-lp {
    /* border-left-color: crimson;
      background-color: rgba(220, 20, 60, 0.15); */
}

.row:not(:first-of-type):nth-child(2) .referral-code-tile .referral-code-lp {
    border-left-color: #005066;
    background-color: rgba(102, 228, 238, 0.3);
}

.referral-code-tile > * {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 4px;
    border-top: 1px solid #a8adb3;
}

.row:nth-child(odd) .referral-code-tile > * {
    background-color: #f2f2f2;
}

.row:first-of-type .referral-code-tile > * {
    border-top: 2px solid #005066;
}

.referral-code-tile > div:not(:last-of-type) {
    margin-right: 4px;
}

.referral-code-lp {
    justify-content: center;
    border-left: 2px solid transparent;
    width: 40px;
}

.referral-code-tile-code {
    width: 100%;
}

.referral-code-tile-code-uses-left {
    width: 100%;
}

.referral-code-tile-generate-date {
    width: 100%;
}

.referral-code-tile-make {
    width: 100%;
}

.referral-code-tile-model {
    width: 100%;
}

.referral-code-tile-vin {
    width: 100%;
}

.referral-code-tile-reg-no {
    width: 100%;
}

.referral-code-tile-release-date {
    width: 100%;
}
.referral-code-tile-agreement-no {
    width: 100%;
}

.referral-code-tile-reservation-date {
    width: 100%;
}

.referral-code-tile-sold-date {
    width: 100%;
}

.referral-code-tile-action {
    width: 100%;
}

.referral-code-page-container #getGetGeneratedReferralCodesReport {
    margin-bottom: 20px;
}

.referral-code-page-container #getGetSoldWithReferralCodesReport {
    margin-bottom: 20px;
}

.referral-code-action-container .recover-button {
    display: none;
}

.referral-code-action-container.deleted .recover-button {
    display: block;
}

.referral-code-action-container.deleted .delete-button {
    display: none;
}

.row:not(:first-of-type)
.referral-code
.referral-code-action-container > .referral-code-button:not(:last-child) {
    margin-right: 8px;
}

.referral-codes-page-container .referral-code-button {
    background-color: #66e4ee;
    color: #005066;
    padding: 4px 10px;
    border: none;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

    .referral-codes-page-container .referral-code-button.large {
        padding: 0 60px;
        height: 30px;
        font-weight: bold;
    }

    .referral-codes-page-container .referral-code-button:hover {
        background-color: #69f1fb;
    }

.referral-code-page-container .referral-code-tile-button {
    background-color: #66e4ee;
    color: #005066;
    padding: 4px 10px;
    border: none;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    font-weight: bold;
}

    .referral-code-page-container .referral-code-tile-button.large {
        padding: 0 60px;
        height: 30px;
        font-weight: bold;
    }

    .referral-code-page-container .referral-code-tile-button:hover {
        background-color: #69f1fb;
    }

/*  */

.referral-code-page-container {
    margin: auto;
    max-width: 1500px;
    width: 100%;
    padding: 0 10px;
    margin-bottom: 40px;
}

.referral-code-table-container {
    width: 100%;
    min-height: 400px;
    margin: auto;
    overflow-x: scroll;
    /*max-width: 1300px;*/
    padding: 0 10px;
}

.referral-code-table {
    /* width: 1290px; */
}

.referral-code-table__cell {
    padding: 0 8px;
    text-align: center;
    border-top: 1px solid #a8adb3;
    height: 52px;
}

.referral-code-tile-make {
    min-width: 115px;
}

.referral-code-tile-agreement-no {
    min-width: 167px;
}

.referral-code-table__row:nth-child(even) {
    background-color: #f2f2f2;
}

.referral-code-table__header .referral-code-table__cell {
    background-color: #f2f2f2;
    color: gray;
    font-weight: normal;
    border-top: 2px solid #005066;
    cursor: pointer;
}

.referral-code-table .sortable {
    position: relative;
}

    .referral-code-table .sortable:before,
    .referral-code-table .sortable:after {
        content: "";
        width: 0px;
        height: 0px;
        background-color: transparent;
        position: absolute;
        right: 3px;
        top: 50%;
        border: 5px solid transparent;
        opacity: 0.5;
    }

.referral-code-tile-model {
    min-width: 160px;
}

td.referral-code-tile-action a {
    color: #005066;
}

.referral-code-table .sortable:before {
    border-top: 5px solid #4c5356;
    margin-top: 4px;
}

.referral-code-table .sortable:after {
    border-bottom: 5px solid #4c5356;
    margin-top: -10px;
}

.referral-code-table .asc.sortable:before,
.referral-code-table .desc.sortable:after {
    display: none;
}

.referral-code-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pagination-number-element {
    width: 40px;
    height: 40px;
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px;
    font-size: 18px;
    cursor: pointer;
    color: #004666;
}

    .pagination-number-element:not(.pagination-number-element--active):hover,
    .pagination__arrow:not(.pagination__arrow--disabled):hover {
        background-color: rgba(242, 242, 242, 0.9);
    }

.pagination-number-element--active {
    color: white;
    background-color: #004666;
}

    .pagination-number-element--active a:hover {
        color: white;
    }

.pagination__arrow {
    list-style-type: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .pagination__arrow a {
        font-size: 11px;
        height: 11px;
        color: #004666;
    }

.pagination__arrow--disabled {
    cursor: not-allowed;
}

    .pagination__arrow--disabled a {
        color: #d8d8d8;
    }

.referral-code__search-modal-container {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1011;
    background-color: rgba(255, 255, 255, 0.6);
    display: none;
}

.referral-code__search-modal-container--show {
    display: block;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
}

.referral-code__search-modal {
    position: relative;
    background-color: #f2f2f2;
    border: 2px solid #004666;
    height: 95%;
    width: 75%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .referral-code__search-modal input {
        font-size: 27px;
        margin: 0 10px;
    }

.search-modal__exit-button {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.search-modal__button {
    color: #004666;
    background-color: #66e4ee;
    padding: 8px 12px 8px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 17px;
    line-height: 20px;
    letter-spacing: 0.5px;
    text-align: center;
    width: 110px;
    margin: 15px auto;
    cursor: pointer;
}

.search-modal__text {
    font-size: 18px;
    color: #a8adb3;
    margin-bottom: 10px;
}

@media (max-width: 1500px) {
    .referral-code__search-modal {
        width: 100%;
        height: 100%;
    }
}

.icon-search {
    font-size: 22px;
    color: #004666;
    cursor: pointer;
}

.referral-code-page-container .waitingModalSection--hide {
    display: none;
}
