﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media screen and (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
    background: url("/img/pattern-bg.svg") no-repeat;
    background-size: cover;
}

footer {
    background-color: white;
}

/* ######### Environment stripes - BEGIN #############*/
.navbar .environment-background {
    position: absolute;
    z-index: 5;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-repeat: repeat-x;
    opacity: 0.5;
}

.navbar .environment-dev {
    background-image: url("/img/environments/dev.png");
}

.navbar .environment-ci {
    background-image: url("/img/environments/ci.png");
}

.navbar .environment-qualif {
    background-image: url("/img/environments/qualif.png");
}

.navbar .container {
    z-index: 10;
}
/* ######### Environment stripes - END #############*/

/************** GLOBAL **************/
h1, .h1 {
    font-size: 2rem;
}

@media screen and (min-width: 768px) {
    h1, .h1 {
        font-size: 2.5rem;
    }
}

input.error,
select.error {
    border-color: red;
}

.btn .spinner-border {
    display: none;
    width: 1.3rem;
    height: 1.3rem;
}

/************** HEADER **************/
.mainHeader {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

    .mainHeader a {
        color: inherit;
        text-decoration: none;
    }

    .mainHeader .logo-site {
        height: 30px;
    }

    .mainHeader .tenant-logo {
        display: flex;
        align-items: center;
        height: 40px;
        margin: 0 auto 0 0;
    }

        .mainHeader .tenant-logo img {
            width: auto;
            max-width: 120px;
            height: auto;
            max-height: 100%;
            align-self: center;
        }

    .mainHeader .navbar {
        padding: 0;
    }

        .mainHeader .navbar > .container {
            padding-left: 15px;
            padding-right: 15px;
        }

    .mainHeader .navbar-brand {
        margin-right: 0;
    }

    .mainHeader .navbar-poweredby {
        margin-left: 10px;
        color: #aaaaaa;
        position: relative;
        top: -4px;
    }

    .mainHeader .logo-site {
        height: 20px;
    }

    .mainHeader .navbar .nav-item > .nav-link {
        display: flex;
        align-items: center;
        height: 100%;
        padding: 1rem;
        font-weight: bold;
    }

    .mainHeader .navbar .nav-link:hover,
    .mainHeader .navbar .nav-link:focus {
        background-color: #f8f9fa;
    }

    .mainHeader .navbar .nav-link.active {
        position: relative;
    }

    .mainHeader .navbar-toggler {
        border: 0;
    }

    .mainHeader .username {
        margin: 10px 10px 20px;
        align-self: center;
        position: absolute;
        top: 0;
        right: 0;
    }

    .mainHeader .link-account {
        display: flex;
        align-items: center;
        align-self: center;
    }

    .mainHeader .link-unpersonation i:before {
        margin: 0 0 0 5px;
    }

main {
    padding-top: 50px;
    position: relative;
}

@media screen and (min-width: 992px) {
    .mainHeader .navbar .nav-link.active:after {
        content: '';
        position: absolute;
        border-top: 5px solid;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .mainHeader .username {
        margin: 0 10px;
    }
}

/************** Account **************/
.account-tabs {
    margin: 20px 0 40px;
}

    .account-tabs .nav-link {
        color: inherit;
        text-transform: uppercase;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

.account-deposit {
    text-align: center;
}

    .account-deposit .deposit-logo {
        display: block;
        max-width: 150px;
        margin: 20px auto;
    }

    .account-deposit .deposit-button {
        margin-top: 20px;
        margin-bottom: 40px;
    }

.deposit-container #qrscannerFrame {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 999999;
    overflow: hidden;
}

.deposit-co2-unit {
    color: #999;
    font-size: smaller;
    display: none;
}

.deposit-data {
    color: #070;
    font-size: larger;
    font-weight: bold;
}

#deposit-return-message {
    font-weight: bold;
}

.deposit-return-message-info {
    color: #28a745;
}

.deposit-return-message-warning {
    color: #c69811;
}

.deposit-return-message-error {
    color: #dc3545;
}

.deposit-history td {
    padding: 0px 10px;
}

.deposit-price {
    background-image: url("/img/deposit/container.png");
    background-position: top 5px left 0px;
    background-repeat: no-repeat;
    height: 55px;
    width: 55px;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    color: #FFF;
}

.deposit-credit-date {
    /*font-weight: bold;*/
    color: green;
}

.deposit-container #btnLoadMore {
    display: none;
}

@media only screen and (max-width: 540px) {
    .deposit-label {
        display: none;
    }
}

.account-registered {
    display: flex;
}

.account-registered-creditcard {
    display: inline-block;
    background: #fafbfc;
    border: solid #ddd;
    border-width: 1px 3px 3px 1px;
    border-radius: 5px;
    padding: 20px 40px 20px 20px;
    position: relative;
    margin: 0 0 20px;
}

.account-registered-add-credit {
    margin-left: 100px;
    border: 1px solid;
    padding: 20px 20px 10px 20px;
}

.account-registered-creditcard:before {
    position: absolute;
    top: 10px;
    right: 10px;
}

.account-registered-creditcard strong,
.account-registered-creditcard span {
    display: block;
}

.account-registered-creditcard strong {
    margin: 0 0 10px;
}

.account-registered-creditcard .expired-creditcard {
    font-weight: bold;
    margin: 10px 0 0;
}

.account-registered-radio-payment-type {
    margin: 10px 0 10px 0;
    display: flex;
    flex-direction: row;
}

.account-registered-vouchercard .cards .card {
    vertical-align: top;
    display: inline-block;
    margin: 10px;
    position: relative;
    width: 255px;
    height: 157px;
}

    .account-registered-vouchercard .cards .card img,
    .account-registered-vouchercard .cards .card .add-card,
    .account-registered-vouchercard .cards .card .card-info,
    .account-registered-vouchercard .cards .card .soon {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .account-registered-vouchercard .cards .card .add-card {
        background: rgba(255, 255, 255, 0.85);
    }

        .account-registered-vouchercard .cards .card .add-card:hover {
            background: none;
        }

        .account-registered-vouchercard .cards .card .add-card .btn {
            position: absolute;
            right: 15px;
            bottom: 15px;
            background: #998c86;
            color: #fff;
            font-weight: bold;
            text-transform: uppercase;
        }

    .account-registered-vouchercard .cards .card .card-info {
        background: #fff;
        border-radius: 8px;
        padding: 13px;
    }

        .account-registered-vouchercard .cards .card .card-info .card-name {
            color: red;
            font-size: 22px;
            margin-bottom: 10px;
        }

        .account-registered-vouchercard .cards .card .card-info .card-username {
            font-weight: bold;
            margin-bottom: 10px;
        }

    .account-registered-vouchercard .cards .card .soon {
        background: rgba(255, 255, 255, 0.85);
        color: #998c86;
        font-size: 30px;
        font-weight: bold;
        text-align: center;
        text-transform: uppercase;
        padding-top: 34px;
    }

    .account-registered-vouchercard .cards .card form {
        position: absolute;
        top: 18px;
        right: 18px;
    }

        .account-registered-vouchercard .cards .card form button {
            font-weight: bold;
        }

#credit-amount-select {
    border-radius: .25rem;
    padding: .25rem 0 .375rem .375rem;
    color: white;
    background-color: gray;
}

.hidden {
    display: none;
}

#cookie-banner {
    z-index: 999999;
    width: 100%;
    text-align: center;
    position: fixed;
    bottom: 0px;
    left: 0px;
    background-color: #2a4365;
}

    #cookie-banner div {
        color: #ebf8ff;
        padding: 0.5rem 0.75rem;
        line-height: 1;
        align-items: center;
        display: inline-flex;
    }

        #cookie-banner div span:first-child {
            text-align: left;
            margin-right: 0.5rem;
            font-weight: 600;
            flex: 1 1 auto;
        }

/************** Wallet **************/
.cash-system-card {
    overflow: auto;
    margin-right: 1rem;
}


/************** Buttons **************/

.custom-btn {
    background-color: #F3F4F6;
    color: #6B7280;
}

.custom-btn:hover {
    background-color: #6B7280;
    color: #F3F4F6;
}

button[data-testid="launcher"] {
    bottom: 100px;
    margin-bottom: 100px;
}

/************** Dropdown **************/

.custom-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: solid 2px black;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    outline: none !important;
    background-color: white;
    color: #6b7280;
    fill: #6b7280;
}

.custom-dropdown:hover {
    color: #374151;
    fill: #374151;
}

.custom-dropdown-menu {
    position: absolute;
    max-height: 0px;
    opacity: 0;
    overflow: hidden;
    z-index: 50;
    background-color: white;
    border: solid 2px;
    border-color: #e5e7eb;
    width: fit-content;
    border-radius: 0.5rem;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    list-style: none;
    padding: 0px;
    transform: translate(0, 0);
}

.custom-dropdown-menu.open {
    max-height: 250px;
    opacity: 1;
    overflow-y: auto;
}

.custom-dropdown-menu.open::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    background-color: #d1fae5;
    border-radius: 9999px;
}

.custom-dropdown-menu.open::-webkit-scrollbar-thumb {
    width: 5px;
    background-color: #34d399;
    border-radius: 9999px;
}

.custom-dropdown-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    text-decoration: none !important;
    color: #6b7280;
    fill: #6b7280;
}

.custom-dropdown-menu-item:hover {
    background-color: #f3f4f6;
    color: #374151;
    fill: #374151;
}

@media screen and (max-width: 1280px) {
}

@media screen and (max-width: 1024px) {
}

@media screen and (max-width: 768px) {
    #cookie-banner {
        margin-bottom: 52px;
    }

@media screen and (max-width: 640px) {
}


@media screen and (max-width: 425px) {
}
