@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,700&family=Lato:wght@300;400;700&display=swap');
@import url('root.css');

/* @font-face {
    font-family: 'Axiforma';
    src: url('../css/fonts/Axiforma.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
  }  */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Axiforma', 'Lato', Arial, Helvetica, sans-serif; */
    font-family: 'Lato', Arial, Helvetica, sans-serif;
    /* color: #23223e; */
}

:root {
    /* --store-main-color: #ff9edb; */
    --grey: #ecf0f3;
    /* --clr-main-light: #eee4e0; */
    --clr-main-light: #ff000018;
    /* --clr-main-light: #ff9edb; */
    --clr-main-light: var(--store-secondary-color)
    --clr-main: #df5f2c;
    --clr-main: #df5f2c;
    --clr-primary: #ac3a05;
    --clr-primary-h: #883109;
    --clr-folder: #e4c278;
    --clr-text: #252525;
    --def-border: 1px solid #d8dcdd;
    --clr-shadow: #d4d4d4;
    --def-transition: all .2s ease-in-out;
    --bottom-shadow: 0px 2px 4px 0px var(--clr-shadow);
    --left-shadow: 5px 0 5px var(--clr-shadow);
    --right-shadow: 5px 0 5px -5px var(--clr-shadow);
    --top-shadow: 0 -5px 5px #00000036;
    /* --clr-danger: #ff3c00; */
    --clr-danger: #ff1909;
    /* --clr-success: #1fb15c; */
    --clr-success: #09a349;
    --clr-info: #1f95e4;
    --txt-info: #1f95e4;
    --txt-light: #e3e5e6;
    --clr-pending: #373d44;
    --clr-schedule: #871896;
    --clr-shedule: #871896;
    --clr-warning: #ffc421;
    --clr-small-text: #838383;
    --def-shadow: 0px 2px 6px var(var(--clr-shadow))
}

body {
    width: 100%;
    min-height: 100vh;
    background: var(--grey);
    /* background: var(--store-main-color); */
    /* background-image: url('../imgs/v2.jpg'); */
    /* background-image: url('../imgs/app/bg_store.jpg'); */
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.bg-store{
    background-color: var(--store-main-color);
}

main {
    background: #23223e6c;
    margin: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    padding: 2rem;
}

body.bg {
    background: var(--grey);
}

.container {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    margin-bottom: 1rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.container:last-child {
    margin-bottom: 1rem;
}

h1,
h2,
h3,
h4 {
    /* margin-bottom: 1rem;
    padding-bottom: 1rem; */
    font-weight: bolder;
}

h1 {
    line-height: 40px;
}

h3 {
    /* font-size: 27px; */
    font-weight: 300;
}

a {
    text-decoration: none;
    font-weight: 500;
    color: #23223e;
}

a:hover {
    text-decoration: none;
}

small {
    color: #a7a7a7;
}

ul {
    list-style: none;
}


img {
    width: 100%;
}

.img-md {
    width: 100%;
    /* max-width: 300px; */
}

.img-md {
    width: 100%;
    height: 100%;
    max-width: 80px;
    max-height: 100px;
    border-radius: 5px;
    overflow: hidden;

    img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

.img-sm {
    width: 70px;
    height: 70px;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.required {
    margin-bottom: 2rem;
}

.text-red {
    color: #ff0000;
}

.flex {
    display: flex;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.sb {
    display: flex;
    justify-content: space-between;
}

.flex-ai {
    display: flex;
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-success {
    color: var(--clr-success);
}

.text-danger {
    color: var(--clr-danger);
}

.text-warning {
    color: var(--clr-warning);
}

.text-info {
    color: var(--clr-info);
}

.text-pending {
    color: var(--clr-pending);
}

.text-shedule {
    color: var(--clr-shedule);
}


.span-success,
.span-danger,
.span-warning,
.span-info,
.span-pending,
.span-shedule {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    white-space: nowrap;
}

.span-success {
    background: var(--clr-success);
    color: #fff;
}

.span-danger {
    background: var(--clr-danger);
    color: #fff;
}

.span-warning {
    background: var(--clr-warning);
    color: #333;
}

.span-info {
    background: var(--clr-info);
    color: #fff;
}

.span-pending {
    background: var(--clr-pending);
    color: #fff;
}

.span-shedule {
    background: var(--clr-shedule);
    color: #fff;
}

.close-btn,
.btn-close {
    padding: 5px;
    border-radius: 5px;
    background: var(--grey);
    cursor: pointer;

    &:hover {
        background: var(--clr-main-light);
        color: var(--clr-main);
    }
}

.full-width {
    width: 100%;
}


.p-1 {
    padding: 8px;
}

.p-2 {
    padding: 16px;
}

.p-3 {
    padding: 24px;
}

.p-4 {
    padding: 32px;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    padding-top: 4rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}



.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.gap-4 {
    gap: 32px;
}

.fw500 {
    font-weight: 500;
}

.fw600 {
    font-weight: 600;
}

.fw700 {
    font-weight: 700;
}

.text-2 {
    color: #999;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
}

.col-1-r {
    width: 100%;
    grid-column: span 1 / span 12;
}

.col-2-r {
    width: 100%;
    grid-column: span 2 / span 12;
}

.col-3-r {
    width: 100%;
    grid-column: span 3 / span 12;
}

.col-4-r {
    width: 100%;
    grid-column: span 4 / span 12;
}

.col-5-r {
    width: 100%;
    grid-column: span 5 / span 12;
}

.col-6-r {
    width: 100%;
    grid-column: span 6 / span 12;
}

.col-7-r {
    width: 100%;
    grid-column: span 7 / span 12;
}

.col-8-r {
    width: 100%;
    grid-column: span 8 / span 12;
}

.col-9-r {
    width: 100%;
    grid-column: span 9 / span 12;
}

.col-10-r {
    width: 100%;
    grid-column: span 10 / span 12;
}

.col-11-r {
    width: 100%;
    grid-column: span 11 / span 12;
}

.col-12-r {
    width: 100%;
    grid-column: span 12 / span 12;
}

/* .form {
    input {
        width: 100%;
    }
} */
.upercase {
    text-transform: uppercase;
}

.img {
    height: 100px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.img-contain img {
    object-fit: contain;
}

.list-card {
    padding: 10px;
    border: 1px solid var(--clr-shadow);
    margin-bottom: 5px;
    border-radius: .375rem;
}

.ai-start {
    align-items: start;
}

.ai-center {
    align-items: center;
}

.ai-end {
    align-items: end;
}

.jc-start {
    align-items: start;
}

.jc-center {
    align-items: center;
}

.jc-end {
    align-items: end;
}

.hr-separator {
    height: 1px;
    border: none;
    outline: none;
    background: #dfdfdf;
    /* margin-top: 2rem; */
}

.alert {
    width: 100%;
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #f3f0f0;

    &.danger {
        background: #ffcaca;
        color: #c51f1f;
    }

    &.success {
        background: #d4fde5;
        color: #1fb15c;
    }
}


.text-animation {
    animation: openText 1s linear;
}

@keyframes openText {
    0% {
        transform: scale(.7);
        opacity: 0;
    }

    20% {
        transform: scale(.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


input[type=text],
input[type=date],
input[type=number],
input[type=email],
input[type=password],
input[type=search],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 100%;
    border: none;
    /* border: 1px solid #d8dcdd; */
    outline: none;
    background: var(--grey);
    border-radius: 4px;
}

button,
a.btn {
    padding: 12px;
    font-size: 100%;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* color: #fff; */
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s ease-in-out;

    &.primary {
        background: #23223e;
        color: #fff;

        &:hover {
            background: #424075;
        }

        span {
            color: #fff;
        }
    }

    &.danger {
        background: var(--clr-danger);
        color: #fff;

        &:hover {
            background: var(--clr-danger);
        }

        span {
            color: #fff;
        }
    }

    &.success {
        background: #008653;
        color: #fff;

        &:hover {
            background: #0baf70;
        }

        span {
            color: #fff;
        }
    }

    &.secondary {
        background: #16242c;
        color: #fff;

        &:hover {
            background: #223844;
        }

        span {
            color: #fff;
        }
    }

    &.warning {
        background: #ffd102;
        color: #333;

        &:hover {
            background: #fddd50;
            color: #333;
        }
    }

    &.info {
        background: #8fccff;
        color: #333;

        &:hover {
            background: #a6cceb;
            color: #333;
        }
    }

    &.default {
        background: #dfe0e0;
        color: #333;

        &:hover {
            background: #edf0f0;
        }

        span {
            color: #333;
        }
    }
}

/* 
button:hover {
    background: #383763;
}

button.danger {
    background: #ff0000;
}

button.danger:hover {
    background: #cc0303;
} */


.toast {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 20px;
    width: auto;
    max-width: 513px;
    border-radius: 4px;
    animation: enter 5100ms linear;
}

@keyframes enter {

    0%,
    100% {
        bottom: -10%;
        opacity: 0;
    }

    4%,
    90% {
        bottom: 1rem;
        opacity: 1;
    }
}

.toast.success {
    background: #03ca46;
    color: #fff;
}

input[type=radio] {
    position: relative;
    color: #fff;
    width: 10px;
    height: 10px;
}

input[type=radio]::before {
    position: absolute;
    content: '';
    left: -2px;
    top: -2px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    border: 1px solid #23223e;
    border-radius: 50%;
}

input[type=radio]::after {
    position: absolute;
    content: '';
    left: 1px;
    top: 1px;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    background: #fff;
    border-radius: 50%;
}

input[type=radio]:checked::before {
    background: #23223e;
}

input[type=radio]:checked::after {
    background: #3be1d1;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Style pour le dropdown container */
.dropdown-container {
    position: relative;
}

/* Style pour le dropdown */
.dropdown {
    position: absolute;
    display: none;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    z-index: 1;
}

/* Style pour le dropdown actif */
.dropdown.active {
    display: block;
}


.loader {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}


.login-illustration {
    width: 100%;
    padding: 20px;
    display: grid;
    place-items: center;
    /* background-image: linear-gradient(to right top, #b5accf, #afabd5, #a7aadc, #9caae3, #8eaae9);
    animation: bganime 10s linear infinite; */
}

@keyframes bganime {
    0% {
        background-image: linear-gradient(to right top, #b5accf, #afabd5, #a7aadc, #9caae3, #8eaae9);
    }

    25% {
        background-image: linear-gradient(to right top, #8eaae9, #9caae3, #a7aadc, #afabd5, #b5accf);
    }

    50% {
        background-image: linear-gradient(to right top, #b5accf, #afabd5, #a7aadc, #9caae3, #8eaae9);
    }

    75% {
        background-image: linear-gradient(to right top, #8eaae9, #9caae3, #a7aadc, #afabd5, #b5accf);
    }

    100% {
        background-image: linear-gradient(to right top, #b5accf, #afabd5, #a7aadc, #9caae3, #8eaae9);
    }
}

.login-content {
    /* width: 100%; */
    min-height: calc(100vh - 32px);
    background: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 50px;
    background-color: var(--store-main-color);
    /* background-image: linear-gradient(to right top, #b5accf, #afabd5, #a7aadc, #9caae3, #8eaae9); */
    /* animation: bganime 10s linear infinite; */
    margin: 16px;
    border-radius: 13px;
    overflow: hidden;
    background-color: #fff;

    .tab-labels {
        display: flex;
        align-items: center;
        justify-content: center;

        label {
            padding: 8px 20px;
            border-bottom: 2px solid transparent;
            color: #16242c;
            /* color: #e2e4e6; */
            height: 40px;

            &.active {
                color: var(--clr-primary);
                border-bottom-color: var(--clr-primary);
            }
        }
    }

    .tab-content {
        display: none;
        flex-direction: column;
        justify-content: center;
        /* height: 100%; */
        min-height: calc(100vh - 200px);
        /* background: red; */
        overflow: hidden;
        max-width: 400px;
        margin: 0 auto;
        transition: all .3s ease-in-out;
        animation: fadEnter .3s linear;
    }
}

@keyframes fadEnter {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        height: 100%;
        /* min-height: calc(100vh - 200px); */
        opacity: 1;
    }
}


.grid-2-r {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

#signup-tab,
#login-tab {
    display: none;
}


.store-font{
    width: 100%;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-family:'Brush Script MT';
}
.store-font span{    
    font-size: 42px;
}



input[type=radio]:checked~.tab-content {
    display: flex;
    height: 100%;
}

.form-icon-group {
    display: flex;
    align-items: center;
    background: var(--grey);
    border-radius: 5px;

    span {
        /* width: 35px; */
        padding: 10px;
        border-right: 1px solid #dbdbdb;
    }

    input {
        background: transparent;
    }
}





/* client-aside */
.client-aside {
    width: 130px;
    position: fixed;
    top: 0;
    left: -130px;
    /* height: 100vh; */
    height: 100%;
    overflow-y: auto;
    background: #fff;
    background: var(--store-secondary-color);
    padding: 16px;
    /* color: var(--txt-light); */
    transition: all .1s ease-in-out;

    &.active {
        /* width: 130px;         */
        left: 0;
    }

    li a {
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: center;
        /* justify-content: center; */
        padding: 10px;
        text-decoration: none;
        transition: all .2s ease-in-out;
        border-radius: 5px;
        outline: 1px solid transparent;
        font-size: 14px;

        * {
            transition: all .2s ease-in-out;
        }

        &.active {
            background: var(--store-main-color);

            * {
                /* color: var(--clr-main); */
                /* color: var(--clr-danger); */
                color: white;
            }
        }

        &:hover {
            /* outline-color: var(--clr-main); */
            outline-color: var(--clr-danger);

            * {
                /* color: var(--clr-main); */
                color: var(--clr-danger);
            }
        }


    }

    /* a {
        color: var(--txt-light);
    } */


}


/* main */
.main,
.main-container {
    margin-left: 0;
    /* padding: 20px 0; */
    padding-left: 16px;
    padding-bottom: 2rem;
    transition: all .1s ease-in-out;

    .header {
        padding: 10px 20px;
        background: #fff;
        /* color: #fff; */
        border-radius: 0 0 8px 8px;

        h3 {
            /* color: #fff; */
            font-weight: 600;
        }
    }
}

.main {
    /* width: calc(100% - (420px + 130px + 40px)); */
    /* width: calc(100% - 380px); */
    width: 100%;
}

.main-container {
    /* width: calc(100% - (130px + 40px)); */
    width: calc(100% - 16px);
}


.client-aside.active~.main,
.client-aside.active~.main-container {
    margin-left: 150px;
    padding-left: 0;
}

.client-aside.active~.main {
    width: calc(100% - (420px + 130px + 40px));
}


.client-aside.active~.main-container {
    width: calc(100% - (130px + 40px));
}

.container-auto {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.services {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;

    a {
        display: inline-flex;
        align-items: center;
        padding: 6px 14px;
        border-radius: 20px;
        background: #e7e7e7;
        outline: 1px solid transparent;

        &.active {
            /* background: var(--clr-main-light); */
            background: #ff0000;
            /* color: var(--clr-main); */
            color: #fff;
            /* outline-color: var(--clr-main); */
            outline-color: #040f25;
        }

        &:hover {
            /* background: var(--clr-main-light); */
            background: #ff000013;
            /* color: var(--clr-main); */
            color: #ff0000;
        }
    }
}

.search-box {
    width: 100%;
    display: flex;
    gap: 2px;
    margin-top: 20px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;

    span {
        display: flex;
        width: 40px;
        min-width: 40px;
        height: 50px;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
        overflow: hidden;
    }

    input {
        /* width: calc(100% - 40px); */
        padding: 8px 14px;
        border: 1px solid #e3e5e6;
        border-radius: 5px;
        outline: 1px solid transparent;
        font-size: 1.1rem;
        transition: all .2s ease-in-out;

        &::placeholder {
            color: #bbbbbb;
        }

        &:focus {
            outline-color: var(--clr-main);
            border-color: var(--clr-main);
        }
    }
}

.prod-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;

    .product {
        display: flex;
        flex-direction: column;
        gap: 6px;
        max-width: 180px;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        padding-bottom: 10px;
        position: relative;
        outline: 2px solid transparent;
        transition: all .2s ease-in-out;

        .img {
            height: 100px;
            width: 100%;
            border-radius: 8px;
            overflow: hidden;

            img {
                width: 100%;
                height: 100%;
                /* object-fit: cover; */
                object-fit: contain;
                object-position: center;
            }
        }

        span,
        strong {
            display: block;
            padding: 0 3px;
            width: 100%;
            text-align: center;
            transition: .2s ease-in-out;
        }

        &:hover {
            /* border-color: var(--clr-main); */
            /* outline-color: var(--clr-main); */
            outline-color: #ff0000;

            span{
                font-size: 14px;
            }
            span,
            strong {
                color: var(--clr-main);
            }

        }
    }
}

.serv-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 20px;

    .service {
        padding: 8px;
        background: #fff;
        border-radius: 8px;
        outline: 2px solid transparent;
        transition: all .2s ease-in-out;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 10px;

        &:hover {
            outline-color: var(--clr-main);
        }
    }
}

.cart {
    min-width: 340px;
    /* width: 50vw; */
    width: 50%;
    /* max-width: 340px; */
    /* max-width: calc(100% - (160px + 300px)); */
    position: fixed;
    top: 0;
    right: -340px;
    background: #fff;
    transition: all .1s ease-in-out;

    &.active {
        min-width: 340px;
        /* width: 420px; */
        right: 0;
        z-index: 1;
    }

    .cart-head {
        height: 70px;

        h3 {
            font-weight: 600;
        }
    }

    .cart-elements {
        padding: 10px;
        display: flex;
        flex-direction: column;
        gap: 5px;
        height: calc(100vh - (150px + 70px));
        overflow-y: auto;

        .element {
            display: flex;
            gap: 10px;
            border: 1px solid var(--clr-shadow);
            padding: 5px;
            border-radius: 5px;
            transition: all .2s ease-in-out;

            &:hover {
                /* background: var(--clr-main-light); */
                border-color: var(--clr-main);
            }

            >span {
                font-weight: 600;
            }

            .img {
                width: 50px;
                min-width: 50px;
                height: 50px;
                border-radius: 5px;
                background: var(--grey);
            }

            .quantity-control {
                display: flex;
                align-items: center;

                input {
                    width: 50px;
                    padding: 0;
                    background: transparent;
                    text-align: center;
                }

                button {
                    width: 20px;
                    height: 20px;
                    /* background: #794c28; */
                    background: #040f25;
                    color: #fff;
                    line-height: 20px;

                    span {
                        font-size: 14px;
                        color: #fff;
                    }
                }

            }

            .close-btn {
                font-size: 16px;
                background: #ff0000;
                color: #fff;
            }

            .remise-box {
                display: flex;
                border-radius: 20px;
                background: #fff;
                border: 1px solid var(--clr-shadow);
                overflow: hidden;

                input {
                    padding: 0 8px;
                    background: 0;
                    width: 70px;
                    font-size: .8rem;
                    height: 27px;
                    text-align: center;
                }

                button {
                    padding: 3px;
                    background: var(--clr-success);
                    display: none;

                    span {
                        font-size: 1rem;
                        color: #fff;
                    }

                    &:hover {
                        opacity: .7;
                    }

                }
            }
        }
    }

    .cart-control {
        height: 150px;
        border-top: 1px solid var(--clr-shadow);
    }

}

#closeCart {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #ff0000;
    color: #ff0000;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 10px;
    transform: translateX(-50%);
    box-shadow: 1px 2px 8px #d8d8d8, 2px 4px 13px #eeecec;
    cursor: pointer;
    transform: scale(0);
    transition: all .3s ease-in-out;

    &:hover {
        border-color: #fff;
        color: #fff;
        background: #ff0000;
    }
}

.floating-cart {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    padding: 10px 16px;
    box-shadow: 1px 2px 8px #d8d8d8, 1px 2px 18px #cfcfcf;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 30px;
    background: var(--clr-primary);
    color: white;
    transform: scale(0);
    transition: all .5s ease-in-out;

    * {
        color: white;
    }
}

.botton-underline {
    border-bottom: 1px solid #cecece;
}


.spinner {
    position: relative;
    overflow: hidden;

    &::before {
        position: absolute;
        content: '';
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        /* background: var(--clr-main-light); */
        background: #ffcaca;
        opacity: 0;
        z-index: -1;
    }

    &::after {
        position: absolute;
        content: '';
        width: 15px;
        height: 15px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 50%;
        border: 2px solid var(--clr-main);
        border-right-color: transparent;
        border-right-color: transparent;
        background: transparent;
        /* animation: spin 1s linear infinite; */
        opacity: 0;
        z-index: -1;
    }

    &.on {
        /* opacity: 1; */

        &::after {
            animation: spin 1s linear infinite;
        }

        &::before,
        &::after {
            z-index: 0;
            opacity: 1;
        }
    }
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* display: flex; */
    background: #10101d56;
    backdrop-filter: blur(2px);
    padding: 50px 20px 20px 20px;
    overflow-y: auto;
    z-index: -1;
    opacity: 0;
    transition: all .3s ease-in-out;

    .modal-content {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        background: #fff;
        border-radius: 13px;
        overflow-y: auto;
        overflow-x: hidden;

        .modal-head {
            display: flex;
            justify-content: space-between;
            padding: 10px 16px;
            border-bottom: 1px solid #d8dcdd;
            background: #fff;
            overflow-y: auto;
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .modal-body {
            padding: 16px;

            * {
                transform: translateY(20px);
                opacity: 0;
                transition: translate .3s ease-in-out;
                transition-delay: 150ms;
            }
        }

    }


    &.active {
        z-index: 10;
        opacity: 1;

        .modal-content {
            animation: ouverture .2s linear;

            .modal-body * {
                transform: translate(0);
                opacity: 1;
            }


        }
    }
}

@keyframes deroule {
    from {
        height: 0;
    }

    to {
        height: auto;
    }
}

@keyframes enroule {
    from {
        height: 100%;
    }

    to {
        height: 0;
    }
}

@keyframes ouverture {
    from {
        width: 0;
        opacity: .4;
    }

    to {
        width: 100%;
        opacity: 1;
    }
}

.payement-select-items {
    display: flex;
    flex-direction: column;
    gap: 10px;

    .select-item {
        width: 100%;
        /* padding: 10px 16px; */
        border: 1px solid #d8dcdd;
        position: relative;
        border-radius: 5px;
        overflow: hidden;

        .infos {
            display: none;
        }


        label {
            position: relative;
            display: block;
            width: 100%;
            top: 0;
            left: 0;
            padding: 10px 20px;
            cursor: pointer;
            transition: all .2s ease-in-out;

            &:hover {
                background: var(--clr-main-light);
            }

            &::before {
                position: absolute;
                content: attr(data-content);
                right: 10px;
                top: 50%;
                font-size: .8rem;
                transform: translateY(-50%);
            }
        }


        input[type=radio] {
            display: none;
        }

        input[type=radio]:checked~label {
            /* background: linear-gradient(to left, var(--clr-main-light), var(--clr-main), var(--clr-main-light)); */
            background: linear-gradient(to left, #00803a, var(--clr-success));
            color: #fff;
        }

        input[type=radio]:checked~label~.infos {
            display: flex;
            animation: deroule .3s linear;
        }

    }
}

.payment-resume {
    padding: 16px;
    border-radius: 5px;
    border: 1px solid #d8dcdd;
}

.hr {
    width: 100%;
    height: 0;
    background: #d8dcdd;
    border-top: 1px solid #d8dcdd;
    outline: none;
}

.nap {
    font-size: 1.2rem;
}

.checkBox-row {
    margin-top: 10px;
}

.span-btn {
    display: inline;
    padding: 6px 14px;
    background: var(--clr-shadow);
}

.list {
    margin-top: 20px;
    max-height: calc(100vh - 300px);
    overflow: auto;
    /* background: rgb(218, 94, 94); */

    .list-item {
        padding: 10px;
        width: 100%;
        border: 1px solid #e6ecee;
        border-bottom-color: #e6ecee;
        border-radius: 8px;
        cursor: pointer;

        &:hover {
            background: var(--clr-main-light);
        }
    }
}

.add-client-icon {
    padding: 6px;
    width: 40px;
    background: #16242c;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;

    &:hover {
        background: #2c4757;
    }
}


/* Typing text effect */


.typing-h1 {
    text-transform: uppercase;
    letter-spacing: 1pt;
    font-size: 30pt;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

.typing-p {
    text-align: left;
    margin: 0;
    text-transform: lowercase;
    font-size: 10pt;
    font-weight: 900;
    width: 90%;
    padding-left: 5%;
    display: none;
}

.typing-#table {
    display: table;
    width: 100%;
    height: 100%;
    background-color: #e5e5e5;
}

.typing-#centeralign {
    display: table-cell;
    vertical-align: middle;
}


.cart-placeholder {
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 20px;

    span {
        font-size: 3rem;
    }
}


.new-spinner {
    position: absolute;
    display: inline-block;
    width: 40px;
    height: 40px;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    border-radius: 5px;
    overflow: hidden;
}

@keyframes countup {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

#number {
    animation: countup 1s linear;
}

.stock-status {
    display: inline-block;
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    max-width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d8d8d8;
    border: 1px solid #fff;

    &.danger {
        background: var(--clr-danger);
    }

    &.warning {
        background: orange;
    }

    &.success {
        background: var(--clr-success);
    }
}

/* Ticket styles */

.ticket-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background: #060e1d;
    background-color: rgba(12, 14, 24, 0.562);
    backdrop-filter: blur(2px);
    display: block;
    opacity: 0;
    z-index: -1;
    transition: all .3s ease-in-out;

    &.active {
        opacity: 1;
        z-index: 100;
    }

}

.ticket-content {
    position: relative;
    width: 300px;
    max-width: 300px;
    height: auto;
    margin: 2rem auto;
    /* margin-top: 2rem; */
    background: #fff;

    .btns {
        padding: 20px;
        border-bottom: 1px solid #dadada;
        position: sticky;
        top: 0;
        background: #fff;

        button span {
            color: #fff;
        }
    }
}

.ticket-modal .btn-close {
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 50%;
    box-shadow: 0 1px 3px #999;
}

.ticket {
    padding: 10px;
    width: 300px;
    max-width: 300px;

    .shop-infos,
    .client-infos {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;

        * {
            text-align: center;
        }

        h3 {
            font-weight: 600;
            margin-top: 10px;
        }
    }

    .item {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 8px;

        .row {
            width: 100%;
            padding: 5px 0;
            border-bottom: 1px dashed #ccc;
        }

        /* .dashed {
            border-bottom: 1px dashed #ccc;
        } */
    }

    .sub_row {
        width: 100%;
        padding-left: 3rem;

        .italic {
            font-style: italic;
        }
    }

    .hr {
        border: none;
        outline: none;
        border-bottom: 1px solid #cfcfcf;
        margin: 10px 0;
    }
}

/* End ticket styles */


.recu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border-radius: 8px;
    transition: all .2s ease-in-out;
    cursor: pointer;

    &:hover {
        background: var(--clr-main-light);
    }
}



.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.form-group {
    flex-direction: column;
    gap: 10px;
}

.filter-group button {
    padding: 8px 14px;
}

#custom-filter {
    display: none;
}


.grid-4-r {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.grid-3-r {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.grid-2-r {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: #fff;
    padding: 16px;
    border-radius: 8px;

    span.spinner {
        width: 100%;
        display: block;
    }

    h3 {
        font-weight: bolder;
    }
}

.card-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    display: grid;
    place-items: center;
    background: #f3f0f0;
    z-index: 1;

    &::before {
        position: absolute;
        content: '';
        width: calc(100% - 5px);
        height: calc(100% - 5px);
        right: -4px;
        top: -3px;
        background: transparent;
        border: 5px solid #1e283b3f;
        border-left: 0;
        border-bottom: 0;
        border-radius: 5px;
        z-index: 0;
    }
}

._recap h3 {
    white-space: nowrap;
}

.bg-blue {
    background: #1f95e4;
    color: #fff;
}

.bg-green {
    background: #00803a;
    color: #fff;
}

.bg-green-h {
    background: #02bd56;
    color: #fff;
}

.bg-violet {
    background: #750080;
    color: #fff;
}

.bg-blue-m {
    background: #007180;
    color: #fff;
}

.bg-warning {
    background: #dbba00;
    color: #fff;
}

.bg-danger-h {
    background: #802f00;
    color: #fff;
}

.bg-orange-h {
    background: #c44902;
    color: #fff;
}

.bg-primary {
    background: var(--clr-primary);
    color: #fff;
}

.bg-light {
    background: #fff;
    color: #222222;
}

.b-radius {
    border-radius: 8px;
}

.hero-sm {
    width: 100%;
    padding: 20px;
    border-radius: 13px;
    overflow: hidden;
    background: var(--clr-main-light);
}


.table-responsive {
    width: 100%;
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

tr {
    border-bottom: 1px solid #dddddd;
    transition: all .2s ease-in-out;

    &:hover {
        background: #eef1f1;
    }
}

thead tr {
    border-bottom: 1px solid #c4c4c4;

    &:hover {
        background: transparent;
    }
}

td,
th {
    text-align: left;
    padding: 8px 10px;
}

td a {
    color: var(--clr-main);
    font-weight: bolder;
}

#recu_container {
    .tab_labels {
        display: flex;
        border-bottom: 1px solid #a3a8aa;
    }

    .tab_label {
        padding: 8px 10px;
        cursor: pointer;

        &:hover {
            background: #ececec;
        }

        &.active {
            background: var(--clr-main-light);
            color: var(--clr-main);
            border-bottom: 2px solid var(--clr-main);
        }
    }

    .tab {
        display: none;

        &.active {
            display: block;
        }
    }
}

#clotureForm>div {
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 5px;
}



.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-item {
    background: #f0f1f1;
    padding: 20px;
    border-radius: 10px;
    outline: 2px solid #e3e5e6;
    transition: all .2s ease-in-out;

    &:hover {
        background: var(--clr-main-light);
        outline-color: var(--clr-danger);
    }
}

.show-category-btn {
    padding: 6px 20px;
    border-radius: 5px;
    background: #020b1d;
    color: #fff;
    margin-top: 20px;

    span {
        color: #fff;
    }
}

.scan-btn {
    display: none;
    width: 50px;
    min-width: 50px;
    padding: 10px;
    height: 50px;
    margin-left: 10px;
}

.scan-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #020b1d67;
    display: grid;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    z-index: -1;
    transition: all .3s ease-in-out;
}

.scan-container.active {
    pointer-events: all;
    opacity: 1;
    z-index: 100;
}

.scan-container .btn-close {
    position: absolute;
    right: 10px;
    top: 10px;
}

.scanner {
    background: #020b1d;
}



.closed-container {
    display: grid;
    width: 100%;
    min-height: 100vh;
    place-items: center;

    .content {
        max-width: 513px;
        margin: 0 auto;
        background: #fff;
        border-radius: 8px;
        padding: 2rem;
        box-shadow: 1px 2px 5px #00000041;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;

        img {
            width: 100px;
        }
    }
}








@media print {
    .no-print {
        display: none !important;
    }

    .ticket-content {
        width: 300px !important;
    }
}













@media (max-width: 965px) {
    .grid-4-r {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main,
    .main-container {
        width: 100% !important;
        margin-left: 0;
        padding-left: 8px;
        padding-right: 8px;
    }

    .client-aside.active~.main,
    .client-aside.active~.main-container {
        width: 100% !important;
        margin-left: 0;
        padding-left: 8px;
    }

    .main .header {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .main .header a {
        padding: 8px 10px;
        border-radius: 6px;
    }

    .search-box {
        padding: 8px;
    }

    .search-box input {
        min-width: 0;
        font-size: 1rem;
    }

    .show-category-btn {
        margin-top: 12px;
    }

    .scan-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 8px;
    }

    .big-padding {
        padding: 2rem;
    }

    .grid-4-r {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-2-r {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .login-illustration {
        display: none;
    }
}

@media (max-width: 650px) {

    div.main {
        /* width: calc(100% - (420px + 130px + 40px)); */
        width: 100%;
    }

    .cart {
        width: min(92vw, 360px);
        min-width: min(92vw, 360px);
        right: calc(-1 * min(92vw, 360px));
    }

    .cart.active {
        right: 0;
    }

    .floating-cart {
        display: inline-flex;
        right: 1rem;
        transform: scale(1);
    }

    #closeCart {
        transform: scale(1);
    }

}

@media (max-width: 425px) {
    main {
        padding: 1rem;
    }

    .btns-row {
        flex-direction: column;
    }

    button {
        width: 100%;
    }

    .container {
        margin-bottom: 0;
    }

    .grid-4-r {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 375px) {
    main {
        padding: 0;
    }

    .big-padding {
        padding: 1rem;
    }

    .cart {
        min-width: 320px;
        width: 320px;
        max-width: 320px;
    }
}
