:root {
    --blue: #0065FF;
    --pink: #FF007A;
    --light-bg: #FFFFFF;
    --light-blue-bg: #D8ECF2;
    --light-pink-bg: #FEE6EA;
    --grey-font: #6C6C71;
    --blue-font: #496EE3;
    --pink-font: #EB667F;
}

body {
    font-family: 'Montserrat', Arial, sans-serif!important;
    margin: 0;
    color: var(--grey-font)!important;
    font-size: 10px!important;
}
input, select {
    font-size: 10px!important;
}
.content {
    padding: .5rem;
    height: 100%;
}
.type-33 {
    background: var(--light-pink-bg)!important;
}
.type-11, .type-22 {
    background: var(--light-blue-bg)!important;
}
.card {
    background: white;
    border-radius: 8px;
    padding: .5rem;
    margin-bottom: .5rem;
    box-shadow: 0 3px 6px #0000002b;
    border: 0px!important;
}
.card-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 0px!important;
    background-color: transparent!important;
    font-weight: 700;
    font-size: 12px;
    color: var(--grey-font)!important;
}
.card-body {
    text-align: center;
    color: var(--grey-font)!important;
}
.loyalty-card,
.top-products-card,
.stats-card {
    background: var(--light-bg);
}

/*
* TOAST
*/
.flash-container-alerte {
    border-color: #dc3545!important;
    /* background-color: #f8d7da!important; */
    color: #000000!important;
}
.flash-header-alerte {
    color: #ffffff!important;
    background-color: #dc3545!important;
}
.flash-container-success {
    border-color: #198754!important;
    color: #000000!important;
}
.flash-header-success {
    color: #ffffff!important;
    background-color: #198754!important;
}
.positionToastDH {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 9999999;
    width: 500px;
}
.toast-header .text-body-secondary {
    color: #ffffff!important;
    opacity: 100%!important;
}

/*
*
* MODAL
*
*/
.modal.show {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.2);
}
.modal-title {
    font-size: 12px!important;
}
.choices, .choices__inner {
    background-color: #ffffff!important;
}
.choices__inner {
    border: 1px solid #dee2e6!important;
    border-radius: 0.375rem!important;
    min-height: 0px!important;
    font-size: 10px!important;
    color: var(--grey-font)!important;
}
.choices__list--single {
    padding: .375rem .75rem!important;
    color: var(--grey-font)!important;
}
.choices[data-type*=select-one] .choices__inner {
    padding: 0px!important;
}
/* Choices.js: limite la hauteur du menu déroulant et active le scroll */
.choices__list--dropdown .choices__list {
    max-height: 240px;
    overflow-y: auto;
    background-color: #ffffff!important;
    font-size: 10px!important;
    color: var(--grey-font)!important;
}
.choices__input, .choices__item {
    font-size: 10px!important;
    color: var(--grey-font)!important;
    opacity: 100%!important;
}
.type-33 .btn-primary {
    background-color: var(--pink)!important;
    border-color: var(--pink)!important;
}
.type-11 .btn-primary, .type-22 .btn-primary {
    background-color: var(--blue)!important;
    border-color: var(--blue)!important;
}
#customer_birthday {
    color: var(--grey-font)!important;
}

/*
*
* BLOC USER + LOYALTY
*
*/

/*
*
* BLOC USER
*
*/
.client-name {
    color: var(--blue);
    margin-top: 0.5rem;
}
.card-custom {
    border-radius: 12px;
    box-shadow: 0 3px 6px #0000002b;
    /* box-shadow: 0 2px 8px rgba(80,120,160,0.14); */
    background: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: .5rem;
    display: flex;
    flex-direction: column;
}
.corner-box {
    padding: .5rem;
    min-width: 50px;
    box-shadow: 0 2px 4px rgba(60,60,60,0.13);
    display: flex; align-items:center; justify-content:center;
    background: #F8F8F8;
    border-radius: 4px 4px 4px 4px;
    position: absolute;
    z-index: 2;
    top: 0; /* Collé en haut */
}
.corner-left {
    left: 0; /* Collé à gauche */
}
.corner-right {
    right: 0; /* Collé à droite */
}
.center-content {
    display: flex;
    flex-direction:column;
    align-items: center;
    justify-content: center;
    align-items: center;
    position: relative;
    flex: 1;
}
.card-img {
    padding-top: 1.8rem;
    padding-bottom: 1rem;
}
.img-11VIP, .img-22VIP, .img-11, .img-22, .img-33CA, .img-33, .img-COL, .img-33CEI {
    max-width: 100px;
}
.bottom-name {
    background: #F8F8F8;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    margin-top: auto;
    width: 100%;
}
.type-11 .bottom-name, .type-22 .bottom-name {
    color: var(--blue-font);
}
.type-33 .bottom-name {
    color: var(--pink-font);
}
.strike-vip {
    text-decoration: line-through;
    font-weight: 600;
    font-size: 12px;
}
.number-style {
    font-size: 12px;
    font-weight: 700;
}
.type-11 .number-style, .type-22 .number-style {
    color: var(--blue-font);
}

.type-33 .number-style {
    color: var(--pink-font);
}
.family-name {
    font-size: 10px;
}

/*
* BLOC TOP PRODUCTS
*
*/
.top-products-card .navbar {
    border-bottom: 1px solid #dee2e6;
    padding: 0px;
    margin-bottom: .5rem;
}
.top-products-card .card-header {
    padding-bottom: 0px;
    padding-top: 0px;
}
.top-products-card .card-body {
    padding: 0px;
}
.top-products-card .nav-tabs {
    border-bottom: 0px;
    font-size: 10px;
}
.top-products-card th, .name, .valueTopProducts, .date {
    color: var(--grey-font)!important;
}
.rank {
    font-weight: 700;
}
.type-11 .rank, .type-22 .rank {
    color: var(--blue-font)!important;
}
.type-33 .rank {
    color: var(--pink-font)!important;
}
.reference {
    font-weight: 500;
    color: var(--grey-font)!important;
}
.top-products-card .table>:not(caption)>*>* {
    padding: 0.5rem 0.5rem!important;
}

/*
*
* BLOC LOYALTY OR COUPONS
*
*/
.loyalty-info p {
    font-size: 45px;
    font-weight: 600;
}
.type-33 .loyalty-info p {
    color: var(--pink-font);
}
.type-11 .loyalty-info p, .type-22 .loyalty-info p {
    color: var(--blue-font);
}
.progress-bar {
    background-color: var(--pink)!important;
}
#coupons-table th, #coupons-table td {
    color: var(--grey-font)!important;
}
#coupons-body td:first-child {
    font-weight: 600;
}

/*
*
* BLOC STATS
*
*/
.tabs {
    display: flex;
}

.tabs button {
    flex: 1;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
}

.tabs button.active {
    background: var(--blue);
    color: white;
}

.filters {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

/* conteneur switch */
.switch {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 30px;
}

/* la case à cocher invisible */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bloc-ht-ttc span {
    color: var(--grey-font)!important;
}

/* le slider (fond + cercle) */
.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0;
    right: 0; bottom: 0;
    background-color: #94AFF2;     /* couleur du fond du pill */
    border-radius: 15px;
    transition: background-color .3s;
}

.type-11 .switch .slider, .type-22 .switch .slider {
    background-color: var(--light-blue-bg);
}
.type-33 .switch .slider {
    background-color: var(--light-pink-bg);
}

/* le cercle */
.switch .slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    top: 4px;
    background-color: #023CD1;     /* couleur du toggle */
    border-radius: 50%;
    transition: transform .3s;
}
.type-11 .switch .slider::before, .type-22 .switch .slider::before {
    background-color: var(--blue);
}
.type-33 .switch .slider::before {
    background-color: var(--pink);
}

/* état coché : on translate le cercle */
.switch input:checked + .slider::before {
    transform: translateX(30px);
}

/* facultatif : suppression du focus ring bootstrap */
.switch input:focus + .slider {
    box-shadow: none;
}

/* dropdown filter */
/* .type-33 .dropdown .btn-secondary {
    background-color: var(--pink)!important;
    border-color: var(--pink)!important;
}
.type-33 .dropdown-menu .active {
    background-color: var(--pink)!important;
}
.type-11 .dropdown .btn-secondary, .type-22 .dropdown .btn-secondary {
    background-color: var(--blue)!important;
    border-color: var(--blue)!important;
}
.type-11 .dropdown-menu .active, .type-22 .dropdown-menu .active {
    background-color: var(--blue)!important;
} */

@media (max-width:450px) {
    .bloc-row-1 {
        flex-direction: column!important;
    }
    .bloc-row-2 {
        flex-direction: column!important;
    }
    .card-custom { 
        min-height: 150px !important;
        width: 100% !important;
        margin-right: 0px !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .card { 
        min-height: 150px!important;
        width: 100%!important;
        margin-left: 0px!important;
        margin-right: 0px!important;
    }

    .stats-card .nav-link, .bloc-ht-ttc {
        padding-left: 1rem!important;
    }
}

.nav-link {
    background-color: #6C6C7115!important;
    margin: 0 0.2rem;
    color: var(--grey-font)!important;
    font-weight: 500!important;
}
.nav-link.active{
    color: #ffffff!important;
    font-weight: 700!important;
}
.type-11 .nav-link.active, .type-22 .nav-link.active {
    background-color: var(--blue)!important;
}
.type-33 .nav-link.active {
    background-color: var(--pink)!important;
}
.nav-item {
    cursor: pointer;
}
