html {
    height: 100%;
}

html, body {
    width: 100%;
    padding: 0px;
    margin: 0px;
}

body {
    background: white;
    font-family: 'Varela Round', sans-serif;
    color: #333;
    position: relative;
    margin: 0;
    min-height: 100%;
}

@media (max-width: 768px) {
    .navbar-brand {
        display: none;
    }

    nav.navbar {
        min-height: 50px !important;
    }
}

@media (min-width: 768px) {
    body {
        padding-bottom: 100px;
    }

    footer {
        position: absolute;
        bottom: 0px;
    }
}

.main_content {
    max-width: 1200px;
    margin: auto;
}

ul, ol {
    list-style-type: none !important;
}

.link {
    text-decoration: underline;
}

button, button[type="submit"] {
    cursor: pointer !important;
}

button:focus {
    outline: 0;
}

.row {
    margin: 0px;
}

.header {
    background-color: transparent;
}

.header li a {
    color: #fff !important;
    font-size: 17px
}

/* Recap */
#recap {
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
    background-color: #eee;
    padding: 10px;
    text-align: center;
    -webkit-border-radius: 3rem;
    -moz-border-radius: 3rem;
    border-radius: 3rem;
}

.recap_value {
    font-size: 1.5em;
}

/* alertes */
.alert {
    margin-top: 1rem;
    border-radius: 1rem;
}

/* page container */
.page-container {
    padding: 1rem;
    margin-top: 2rem;
}

.page-container h3 {
    margin-bottom: 2rem;
}

.page-container .card {
    max-width: 800px;
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 1rem;
}

/* after_content */
.after_content {
    margin: 1.1rem auto;
    background-color: #fff;
    display: block;
    clear: both;
    text-align: center;
    min-height: 100px;
}

/* page card */
.page-card {
    max-width: 500px;
    width: 100%;
    margin: auto;
}

/* form */
.form-control {
    height: 3rem;
    padding: 1rem;
    border: solid 1px #0d3066;
    border-radius: 1rem;
}

form.form label {
    width: 100%;
    color: #0b58a2;
}

form.form input {
    width: 100%;
    max-width: 800px;
    padding: 1rem;
    border: solid 1px #0d3066;
    border-radius: 1rem;
}

input[readonly] {
    background-color: #eee;
    cursor: default;
}

form.form button[type="submit"], form .btn-submit {
    margin: 2rem auto;
    cursor: pointer !important;
}

form.form textarea {
    width: 100%;
    height: 200px;
    max-width: 800px;
    padding: 1rem;
    resize: none;
    border-radius: 1rem;
}

form.form select {
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: solid 1px #0d3066;
    background-color: white;
}

/* navbar */
.nav-item {
    text-align: center;
}

.errorlist li {
    color: red;
}

.amount_format {
    padding-right: 1rem;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    #page-contact,
    .register-container,
    #login,
    #login .card,
    #login .card-body {
        margin: 0;
        padding: 0;
        border: none;
        background-color: white;
        border-radius: 1rem;
    }

    #login .card {
        margin-top: 3rem;
    }
}

.btn, .btn.btn-primary,
btn.btn-default {
    border-radius: 1rem;
    font-size: 1rem;
}

.btn-primary.disabled,
.btn-primary:disabled,
.btn-primary.disabled:hover,
.btn-primary:disabled:hover {
    background-color: #d2d2d2 !important;
    border-color: #d2d2d2 !important;
    color: #a0a0a0 !important;
}

.content_secure_content {
    background-color: white;
    padding: 2rem;
    border-radius: 3rem;
    margin-top: 2rem;
    overflow: auto;
}

.page-home .content_secure_content {
    background-color: transparent;
    border: 0;
    padding: 0;
}

#content {
    position: relative;
    margin: 0;
    min-height: 400px;
}

#content_secure {
    position: relative;
    margin: 0;
}

#content_secure h2 {
    font-size: 1.5em;
}

#content_secure h2:after {
    content: "";
    display: block;
    height: 0.25rem;
    background-color: #ddd;
    width: 6rem;
    margin-top: 0.8rem;
}

#content_secure input {
    border: solid 1px #0d3066;
    border-radius: 1rem;
}

.detail_li {
    border-bottom: 1px solid #ddd;
    display: block;
}

.detail_li:last-child {
    border: none;
}

/* MENU */
#menu_card {
    margin-top: 2rem;
    border-radius: 3rem;
}

#menu_card ul li i {
    width: 2rem;
    margin-right: 0.5rem;
}

.menu_image {
    height: 3rem;
    margin: -1.8rem auto 1rem auto;
    display: block;
    text-align: center;
    transform: rotate(180deg);
}

/* HOME */
.home_widget {
    padding: 2rem;
    width: 100%;
    border-radius: 3rem;
    margin-bottom: 2rem;
}

.home_card_title {
    text-transform: uppercase;
    font-weight: bold;
}

@media (max-width: 576px) {
    .home_card_title{
        font-size: 1rem;
        margin: 0.25rem;
    }
    .counter-item-text {
        font-size: .8rem;
    }
}

@media (min-width: 576px) {
    .home_card_title {
        margin: 0.5rem;
    }
    .home_card_title,
    .counter-item-text {
        font-size: 1.4rem;
    }
}

@media (min-width: 992px) {
    .home_card_title {
        margin: 1rem;
    }
    .home_card_title,
    .counter-item-text {
        font-size: 1.6rem;
    }
}

.qrcode {
    position: relative;
    border-radius: 2rem;
    width: 100%;
}

/* Carte fidélité */
.loyalty_card_content {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    flex-grow: 1;
}

.loyalty_card_scanner img {
    width: 12rem;
    margin-bottom: -2rem;
}

/* Compteurs */
.counter-item {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
}

.counter-item-3 {
    width: 33%;
}

.counter-item-4 {
    width: 25%;
}

.counter-item-text {
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}

.counter-item-img {
    width: 70%;
}

/* Wallets */
.wallet-button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

/* Contact */
.contact {
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact_content {
    text-align: right;
    padding: 0.5rem;
    width: 100%;
}

/* OPERATIONS */
.operation-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.operation-row:last-child {
    border: none;
}

.operation-row .icon {
    flex: 1;
    text-align: center;
}

.operation-row .details {
    flex: 9;
    display: flex;
    text-align: left;
    flex-direction: column;
}

.operation-row .endline {
    text-align: right;
    padding: .5rem;
}

.operation_line_1 {
    color: #555;
}

.operation_line_2 {
    color: #888;
}

.op_amount_format {
    font-size: 1.3rem;
}

/* Receipt */
.op_receipt_amount {
    font-size: 2rem;
}

.op_receipt_sep {
    font-size: 1.2rem;
    margin: 0 1rem;
}

.op_receipt_amount,
.op_receipt_shop,
.op_receipt_pos {
    width: 100%;
    margin: .5rem;
}

/* Product lines */
.op_receipt_line {
    width: 100%;
    justify-content: space-between;
    margin: 0.5rem;
    padding: 1rem;
    background-color: white;
}

.op_line_label {
    flex: 6;
}

.op_line_quantity,
.op_line_total_incl_tax {
    flex: 1;
}

.op_line_total_incl_tax {
    text-align: right;
    font-weight: bold;
    min-width: 5rem;
}

.social-networks {
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
}

.social-networks li {
    display: inline-block;
    margin: 0 .5rem;
}

.social-networks i {
    color: white !important;
    background-color: transparent;
}

/* évite les images floues dans Chromium */
img{
  image-rendering: -webkit-optimize-contrast;
}
