.open_element {
    cursor: pointer;
}

.card_pointer {
    cursor: pointer;
}

.card_pointer:hover {
    transform: scale(1.02);
}

.custom_table th {
    padding: 0 10px 0 10px;
}

.custom_table td {
    text-align: center;
}

.forms-query {
    width: 50%;
    display: block;
    margin: 0 auto;
}

.form-select-user {
    font-size: 0.8rem;
    border-radius: 10rem;
}

.both {
    clear: both !important;
    margin-top: 4rem !important;
}

.badge-warning {
    background-color: orange !important;
    color: #FFF !important;
}

.badge-yellow {
    background-color: #f7d85e !important;
    color: #FFF !important;
}
.badge-orange {
    background-color: #e67e22 !important;
    color: #FFF !important;
}

.badge-purple-dark {
    background-color: #9d5ef7 !important;
    color: #fff !important;
}

.badge-grey {
    background-color: #6c757d;
    color: #fff;
}

.bg-yellow {
    background-color: #f7d85e !important;
    color: #FFF !important;
}

.bg-purple-dark {
    background-color: #9d5ef7 !important;
    color: #fff !important;
}

.bg-grey {
    background-color: #6c757d;
    color: #fff;
}

.bg-grey-glass {
    background-color: #6c757d73;
    color: #fff;
}
.badge-gray {
    background-color: #6c757d !important;
    color: #fff !important;
}

.badge-blue {
    background-color: #007bff !important;
    color: #fff !important;
}

.badge-teal {
    background-color: #20c997 !important;
    color: #fff !important;
}

.badge-green {
    background-color: #28a745 !important;
    color: #fff !important;
}

.badge-orange {
    background-color: #fd7e14 !important;
    color: #fff !important;
}

.badge-lime {
    background-color: #7bed9f !important;
    color: #212529 !important; /* texte sombre pour contraste */
}

.badge-red {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.badge-purple-dark {
    background-color: #9d5ef7 !important;
    color: #fff !important;
}

.badge-cyan {
    background-color: #17a2b8 !important;
    color: #fff !important;
}

.badge-black {
    background-color: #343a40 !important;
    color: #fff !important;
}

.logo_img {
    max-width: 100%;
}

.formatedInformation i {
    color: var(--primary);
    width: 30px;
    text-align: center;
}

.card_msg:nth-child(2n) {
    border: 1px solid var(--primary-hover);
    background-color: var(--primary-hover);
    color: #fff !important;
    border-radius: 0% 15px 0% 15px;
    font-size: 15px;
    margin-bottom: 1rem;
}

.card_msg:nth-child(2n+1) {
    border: 1px solid #f8f9fc;
    background-color: #f8f9fc;
    color: #858796 !important;
    border-radius: 15px 0px 15px 0px;
    font-size: 15px;
    margin-bottom: 1rem;
}

.log_msg {
    margin-bottom: 3rem;
    height: 350px;
    overflow-y: scroll;
}

.cadre-table-scroll {
    height: 350px;
    overflow-y: scroll;
}

.table-scroll thead th {
    position: sticky;
    top: 0;
    background-color: #fff;
}

.table-scroll tfoot td {
    position: sticky;
    bottom: 0;
}

.cadre-table-scroll-x {
    max-width: 100%;
    overflow-x: scroll;
}

.select_logiciel_visio {
    display: none;
}

.badge-bleu {
    color: #fff;
    background-color: #007bff;
}

.bg-bleu {
    color: #fff;
    background-color: #007bff;
}

.badge-purple {
    color: #fff;
    background-color: #CA4CAA;
}

.bg-purple {
    color: #fff;
    background-color: #CA4CAA;
}

.btn-link {
    border: none;
    background-color: transparent;
    color: #007bff;
}

.btn-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.header_logo {
    width: 35%;
}

.js_search_responce {
    position: absolute;
    right: 0;
    left: 0;
    top: 42px;
    z-index: 100000;
    border: 1px solid #d1d3e2;
    border-radius: 0 0 10px 10px;
    max-height: 300px;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: #fff;
}

.js_search_responce ul {
    list-style: none;
    padding: 0px;
    width: 100%;
}

.js_search_responce li:hover {
    transform: scale(1.01);
    cursor: pointer;
    color: #2f3640;
}

.js_search_responce li {
    padding: 0px;
    padding-bottom: 7px;
    padding-top: 7px;
    border-top: 1px solid #d1d3e2;
}

.js_search_responce li.active {
    background-color: #d1d3e2;
}

.js_search_responce i {
    margin-left: 15px;
}

.js_search_responce li:first-child {
    border-top: none;
}

.container-perso {
    display: block;
    width: 90%;
    margin: 0 auto;
}

a:hover {
    text-decoration: none !important;
}

.border-left-purple {
    border-left: 0.25rem solid #CA4CAA !important;
}

.text-purple {
    color: #CA4CAA !important;
}

.border-left-purple-dark {
    border-left: 0.25rem solid #9d5ef7 !important;
}

.text-purple-dark {
    color: #9d5ef7 !important;
}

.border-left-warning {
    border-left: 0.25rem solid orange !important;
}

.text-warning {
    color: orange !important;
}

.open_email {
    cursor: pointer;
}

.width-search-bar {
    width: 50%;
}

/* Mail dialogue configuration */

.full-width-container {
    padding: 0 !important;
}

.container {
    width: 100% !important;
}

.header td {
    padding: 30px 15px 30px 15px !important;
}

.projects-list {
    display: block !important;
}

.projects-list tr {
    display: block !important;
}

.projects-list td {
    display: block !important;
}

.projects-list tbody {
    display: block !important;
}

.projects-list img {
    margin: 0 auto 25px auto;
}


/* ----- Half block ----- */

.half-block {
    display: block !important;
}

.half-block tr {
    display: block !important;
}

.half-block td {
    display: block !important;
}

.half-block__image {
    width: 100% !important;
    background-size: cover;
}

.half-block__content {
    width: 100% !important;
    box-sizing: border-box;
    padding: 25px 15px 25px 15px !important;
}

.hero-subheader__title {
    padding: 80px 15px 15px 15px !important;
    font-size: 35px !important;
}

.hero-subheader__content {
    /*padding: 0 15px 90px 15px !important;*/
    display: block;
}

.title-block {
    padding: 0 15px 0 15px;
}

.paragraph-block__content {
    padding: 25px 15px 18px 15px !important;
}

.info-bullets {
    display: block !important;
}

.info-bullets tr {
    display: block !important;
}

.info-bullets tbody {
    display: block;
}

.info-bullets__icon {
    text-align: center;
    padding: 0 0 15px 0 !important;
}

.info-bullets__content {
    text-align: center;
}

.info-bullets__block {
    padding: 25px !important;
}

.cta-block__title {
    padding: 35px 15px 0 15px !important;
}

.cta-block__content {
    padding: 20px 15px 27px 15px !important;
}

.cta-block__button {
    padding: 0 15px 0 15px !important;
}

.border-r {
    border-right: 1px solid rgba(0, 0, 0, 0.125) !important;
}

.size_th_table {
    padding: .76rem;
    font-weight: normal;
}

.custom-file-label::after {
    content: "\f067";
    font-weight: 900;
    font-family: "Font Awesome 5 Free";
}

.radius-none {
    border-radius: 0 !important;
}

#import {
    position: absolute;
    background-color: rgba(0, 0, 0, .5);
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    height: 100vh;
}

body.fixedBody {
    overflow: hidden;
}

.import-content {
    position: relative;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border-radius: 10px;
    background-color: #fff;
    display: block;
    transform: translate(-50%, -50%);
    z-index: 1001;
    line-height: 150px;
    text-align: center;
}

.import-content::before {
    content: 'Import en cours';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 100%;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #e74a3b !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e74a3b' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e74a3b' stroke='none'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right calc(0.375em + 0.1875rem) center !important;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem) !important;
}

button.nav-link {
    background: transparent;
    border: none;
}

.element-center {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-link {
    background: transparent;
    border: none;
}

.btn-modal {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 0;
    border: none;
    height: 100%;
}

.modal-footer {
    display: block;
    border-top: 1px solid #e3e6f0;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
    padding: 0;
}

.modal-footer>* {
    margin: 0;
    padding: 0;
    text-align: center;
}

.modal-header {
    border-top-left-radius: 0px !important;
    border-top-right-radius: 0px !important;
    background: var(--primary);
    color: #fff;
}

.modal-content {
    border-radius: 0px !important;
    border: none !important;
}

.input-group-text {
    border-radius: 0px !important;
}

.form-control {
    border-radius: 0px !important;
}

.btn {
    border-radius: 0px !important;
}

.custom-select {
    border-radius: 0px !important;
}

.close {
    color: white !important;
}

.alert {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
    border-radius: 0;
    border: none;
}

.alert-danger {
    border-left: 3px solid #78261f;
    color: #78261f !important;
}

.alert-danger>.close {
    color: #78261f !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

#msgUserPicto {
    margin-right: 1rem;
}

.alert-success {
    border-left: 3px solid #0f6848;
    color: #0f6848 !important;
}

.alert-success>.close {
    color: #0f6848 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.alert-light {
    border-left: 3px solid #818183;
    color: #818183 !important;
}

.alert-light>.close {
    color: #818183 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.alert-warning {
    border-left: 3px solid #806520;
    color: #806520 !important;
}

.alert-warning>.close {
    color: #806520 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.alert-info {
    border-left: 3px solid #1c606a;
    color: #1c606a !important;
}

.alert-info>.close {
    color: #1c606a !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.btn-activite {
    border: 1px solid;
    width: 100%;
    padding: 20px;
}

.btn-activite:hover {
    background-color: var(--primary);
    color: #FFF;
}

svg {
    width: 114px;
    height: 114px;
    margin: 1em;
}

.bg-progress-round {
    fill: none;
    stroke-width: 10px;
    stroke: #D8DBDD;
}

[class^="meter-"] {
    fill: none;
    stroke-width: 10px;
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.meter-1 {
    stroke-dasharray: 360;
    stroke-dashoffset: 100;
    stroke: aqua;
    animation: progress-1 1s ease-out;
}

.meter-2 {
    stroke: lime;
    stroke-dasharray: 360;
    stroke-dashoffset: 160;
    animation: progress-2 .75s ease-out;
}

.meter-3 {
    stroke: magenta;
    stroke-dasharray: 360;
    stroke-dashoffset: 250;
    animation: progress-3 .5s ease-out;
}

@keyframes progress-1 {
    from {
        stroke-dashoffset: 360;
    }

    to {
        stroke-dashoffset: 100;
    }
}

@keyframes progress-2 {
    from {
        stroke-dashoffset: 360;
    }

    to {
        stroke-dashoffset: 160;
    }
}

@keyframes progress-3 {
    from {
        stroke-dashoffset: 360;
    }

    to {
        stroke-dashoffset: 250;
    }
}

.card-progress {
    position: relative;
    width: 80%;
    display: block;
    margin: 0 auto;
}

.pourcent-card-progress {
    position: relative;
}

.value-card-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.title-card-progess {
    border: 1px solid red;
    height: 50px;
    line-height: 50px;
    vertical-align: middle;
    color: white;
}

.card-progress-front {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid red;
    transition: .5s ease;
}

.card-progress span {
    display: block;
}

.overlay-card-progress {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0%;
    left: 0%;
    background-color: rgba(255, 255, 255, 0.7);
    color: rgb(0, 0, 0);
    opacity: 0;
    transition: .5s ease;
}

.overlay-card-progress table {
    margin-left: 10px;
    margin-top: 10px;
}

.overlay-card-progress i {
    padding-right: 10px;
}

.overlay-card-progress:hover {
    opacity: 1;
}

.link-btn-fiche {
    width: 80%;
    display: block;
    margin: 0 auto;
    background-color: var(--secondary);
    color: #fff;
    /*background-color: rgba(216, 215, 215, 0.705);*/
    /*color: rgb(97, 95, 95);*/
}

.link-btn-fiche:hover {
    opacity: 0.8;
    color: rgb(97, 95, 95);
}

.link-btn-fiche span {
    display: block;
}

.link-btn-fiche i {
    font-size: 3rem;
}

.link-btn-filter {
    width: 80%;
    display: block;
    margin: 0 auto;
    position: relative;
    background-color: rgba(216, 215, 215, 0.705);
    color: rgb(97, 95, 95);
}

.link-btn-filter:hover {
    opacity: 0.8;
    color: rgb(97, 95, 95);
}

.link-btn-filter span {
    display: block;
}

.link-btn-filter i {
    font-size: 2rem;
    opacity: .5;
}

.link-btn-filter p {
    position: absolute;
    top: -10px;
    right: -33px;
    background-color: #818183;
    padding: 5px;
    width: 65px;
    height: 35px;
    border-radius: 10px;
    vertical-align: middle;
    line-height: 25px;
    color: #fff;
}

.btn-blue {
    color: #fff;
    background-color: #007bff;
}

.btn-blue:hover {
    color: #fff;
    background-color: #007bff9c;
    border-color: #007bff9c;
}

.btn-blue.active {
    color: #fff;
    background-color: #007bff9c;
    border-color: #007bff9c;
}

.btn-danger:hover {
    color: #fff;
    background-color: #e02b1ba6;
    border-color: #e02b1ba6;
}

.btn-danger.active {
    color: #fff;
    background-color: #e02b1ba6 !important;
    border-color: #e02b1ba6 !important;
}

.btn-purple {
    color: #fff;
    background-color: #9d5ef7;
}

.btn-purple:hover {
    color: #fff;
    background-color: #9e5ef783;
    border-color: #9e5ef783;
}

.btn-purple.active {
    color: #fff;
    background-color: #9e5ef783;
    border-color: #9e5ef783;
}

.fa-1x {
    font-size: 1.5rem !important;
}

.opacity-0 {
    opacity: 0;
}

.wh-5 {
    width: 5% !important;
}

.wh-10 {
    width: 10% !important;
}

.card-filter-date {
    width: 50%;
    border-radius: 30px
}

.dropdown.bootstrap-select .dropdown-toggle::after {
    display: none;
}

.bootstrap-select>.dropdown-toggle.bs-placeholder,
.bootstrap-select>.dropdown-toggle.bs-placeholder:active,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,
.bootstrap-select>.dropdown-toggle.bs-placeholder:hover {
    color: #6e707e;
}

@media screen and (max-width: 1080px) {
    .d-none-min {
        display: none;
    }

    .card-filter-date {
        width: 80%;
        border-radius: 30px
    }
}

@media screen and (max-width: 700px) {
    .width-search-bar {
        width: 90%;
    }

}

.container-rdv {
    width: 50%;
    display: block;
    margin: 0 auto;
}

.card-rdv {
    border: 1px solid #e3e6f0;
}

.card-header-rdv {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: var(--primary);
    color: #fff;
    text-align: center;
}

.card-footer-rdv {
    padding: 0.75rem 1.25rem;
    margin-bottom: 0;
    background-color: var(--primary);
}

.f-rdv {
    font-size: 25px;
    font-weight: bold;
}

.w-95 {
    width: 95% !important;
}

.text-sm {
    font-size: small;
}

.topbar {
    height: 9rem;
}

.photo-upload-container {
    gap: 10px;
}

.photo-upload-box {
    width: 100px;
    height: 100px;
    border: 2px dashed #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
}

.photo-upload-placeholder {
    text-align: center;
}

.photo-upload-placeholder i {
    font-size: 24px;
    color: #aaa;
}

.photo-upload-placeholder span {
    display: block;
    font-size: 12px;
    color: #aaa;
}

.photo-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;

}

.photo-delete {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(7, 29, 62, 0.57);
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    width: 25px;
    height: 25px;
}

.photo-delete i {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.photo-main {
    position: absolute;
    top: 5px;
    left: 5px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
}

.is-main-photo {
    border: 3px solid #007bff;
}

.photo-main-button {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    z-index: 2;
    transition: all 0.3s ease;
    border-radius: 10px !important;
    border: none !important;

}


.photo-main-button.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}



.photo-upload-box:hover .photo-main-button:not(.active) {
    opacity: 1;
}

/* Styles précédents... */
.barcode-preview img {
    max-width: 100%;
    height: auto;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background-color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0.35rem;
}

.autocomplete-results {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 150px;
    overflow-y: auto;
    background-color: #fff;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #e9e9e9;
}

#wrapper #content-wrapper {
    /*background-color: var(--secondary);*/
    width: 100%;
    overflow-x: hidden;
}

.barcode-preview div {
    display: block;
    margin: 0 auto;
}

.separator {
    display: block;
    position: relative;
}

.separator::after {
    content: '';
    position: absolute;
    width: 50%;
    background-color: var(--secondary);
    height: 3px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;

}

.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #dee2e6;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cart-container {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.cart-item {
    background-color: #f8f9fa;
    transition: background-color 0.2s;
    border: 1px solid #dee2e6;
}

.cart-item:hover {
    background-color: #e9ecef;
}

.payment-method-row {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.variant-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.variant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#searchProduct {
    border-right: none;
}



.nav-tabs .nav-link {
    border-radius: 0.25rem 0.25rem 0 0;
    padding: 0.5rem 1rem;
    margin-right: 3px;
}

.nav-tabs .nav-link.active {
    font-weight: 500;
    border-color: #dee2e6 #dee2e6 #fff;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

#remainingAmount.text-danger {
    animation: flash 1s infinite;
}

@keyframes flash {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

.quantity-input {
    width: 60px !important;
    text-align: center;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    opacity: 1;
    height: 20px;
}

.toast {
    transition: opacity 0.3s ease;
}

.btn:disabled {
    cursor: not-allowed;
}

.stock-warning {
    color: #dc3545;
    font-size: 0.875rem;
}

.remove-item {
    transition: all 0.2s ease;
}

.remove-item:hover {
    background-color: #dc3545;
    color: white;
}

.payment-method-row {
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 5px;
}

.payment-method-row:hover {
    background-color: #f8f9fa;
}

.payment-amount {
    font-weight: 500;
}

.payment-amount:first-child {
    background-color: #e9ecef;
}

#remainingAmount.text-danger {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Styles pour les cartes de produits et variantes */
.product-card, .variant-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
}

.product-card:hover, .variant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.product-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Animation pour l'ajout au panier */
@keyframes cartBounce {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.cart-animation {
    animation: cartBounce 0.5s ease-in-out;
}

/* Style pour le badge de quantité */
.cart-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-width: 1.5rem;
    text-align: center;
}

/* Styles pour les indicateurs de stock */
.stock-info {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.stock-info i {
    font-size: 0.875rem;
}

/* Animations pour les boutons de quantité */
.increase-quantity:not(:disabled):hover,
.decrease-quantity:not(:disabled):hover {
    background-color: #e9ecef;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

/* Style pour les messages d'avertissement */
.text-warning {
    color: #ffc107 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-success {
    color: #28a745 !important;
}

/* Style pour l'input de quantité */
.item-quantity {
    max-width: 60px;
}

/* Styles pour la section réduction */
#discount_value {
    text-align: right;
}

#discount_type {
    padding-right: 2rem;
}

.discount-section {
    position: relative;
}

.discount-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

#applyDiscount:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

#applyDiscount:active {
    transform: scale(0.95);
}

/* Animation pour la mise à jour des totaux */
@keyframes highlight {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(255, 193, 7, 0.1);
    }

    100% {
        background-color: transparent;
    }
}

.total-updated {
    animation: highlight 0.5s ease-in-out;
}

/* Styles pour le module de recherche client */
.client-search-container {
    position: relative;
}

.client-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    margin-top: 5px;
}

.list-group-item {
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}

.list-group-item:hover,
.list-group-item.active {
    background-color: #f8f9fa;
}

.list-group-item mark {
    padding: 0;
    background-color: #fff3cd;
    border-radius: 2px;
}

#selectedClientDetails .card {
    border-left: 4px solid #007bff;
}

#selectedClientDetails .card:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.client-search-results::-webkit-scrollbar {
    width: 6px;
}

.client-search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.client-search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.client-search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animation pour les résultats */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.client-search-results:not(.d-none) {
    animation: slideDown 0.2s ease-out;
}

/* Style des catégories */
.category-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.category-item:hover,
.category-item.active {
    border-left-color: #007bff;
    background-color: rgba(0, 123, 255, 0.05);
}

.category-item .fas {
    transition: transform 0.2s ease;
}

.category-item:hover .fas,
.category-item.active .fas {
    transform: translateX(5px);
}

/* Style des produits */
.product-section {
    animation: fadeIn 0.3s ease-in-out;
}

.product-card {
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, .125);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.variant-card {
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.product-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Style de la barre de recherche */
#searchProduct:focus {
    box-shadow: none;
    border-color: #007bff;
}

.input-group-text {
    transition: all 0.2s ease;
}

/* Badge pour les variantes */
.badge-info {
    background-color: #17a2b8;
    transition: all 0.2s ease;
}

.badge-info:hover {
    background-color: #138496;
}

/* Style des tuiles catégories */
.category-tile {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, .125);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

.category-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon i {
    transition: all 0.3s ease;
}

.category-tile:hover .category-icon i {
    transform: scale(1.1);
    color: #0056b3;
}

/* Navigation */
.breadcrumb {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, .125);
}

.breadcrumb-item {
    cursor: pointer;
}

.breadcrumb-item:not(.active):hover {
    color: #0056b3;
}

/* Animations des vues */
#categoriesView, #productsView, #variantsView {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Cartes produits et variants */
.product-card, .variant-card {
    transition: all 0.3s ease;
}

.product-card:hover, .variant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}

/* Badges et états */
.badge {
    transition: all 0.2s ease;
}

.badge-primary {
    background-color: #007bff;
}

.badge-primary:hover {
    background-color: #0056b3;
}

.badge-info {
    background-color: #17a2b8;
}

/* Stock overlay */
.product-stock-overlay, .variant-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Boutons */
.btn-outline-primary {
    transition: all 0.2s ease;
}



#clearSearch {
    padding: 0 8px;
    cursor: pointer;
    margin-right: -1px;
    z-index: 5;
}

#clearSearch:hover {
    color: #dc3545;
}

#clearSearch.d-none {
    display: none !important;
}

.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.badge-pending {
    background-color: #FFA07A;
    /* Light Salmon */
    /* ou alternative : #FFB6A3 */
    color: #000000;
}

.btn-link {
    color: var(--secondary);
}

.btn-link:hover {
    color: var(--primary);
    text-decoration: none !important;
}

.btn-link:active {
    color: var(--primary);
    text-decoration: none !important;
}

.btn-link:focus {
    color: var(--primary);
    text-decoration: none !important;
}

.badge-primary {
    background-color: var(--primary) !important;
}

.d-flex-ipad {
    display: flex;
}

/* CSS pour iPad et Tablettes */
.input-search-sales {
    width: 250px;
}

/* iPad Mini, iPad 9.7", iPad 10.2" */
@media screen and (min-width: 768px) and (max-width: 1080px) {

    /* Ajustements généraux */
    .btn-sales-product {
        width: 100%;
        margin-top: 10px;
        border-radius: 9px !important;
    }

    .d-flex-ipad {
        display: block;
    }

    .d-flex-ipad h6 {
        text-align: center;
        margin-bottom: 10px !important;
        display: block;
    }

    .input-search-sales {
        width: 100%;
    }
}

/* Styles améliorés pour les badges de statut */

/* Taille et espacement des badges */
.badge-statut {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.badge-statut:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Styles spécifiques pour chaque couleur de badge */
.badge-statut.bg-secondary {
    background-color: #6c757d;
    color: white;
}

.badge-statut.bg-info {
    background-color: #17a2b8;
    color: white;
}

.badge-statut.bg-primary {
    background-color: #007bff;
    color: white;
}

.badge-statut.bg-success {
    background-color: #28a745;
    color: white;
}

.badge-statut.bg-warning {
    background-color: #ffc107;
    color: #343a40;
}

.badge-statut.bg-danger {
    background-color: #dc3545;
    color: white;
}

/* Variantes avec bordures */
.badge-statut-outline {
    background-color: transparent;
    border: 2px solid;
}

.badge-statut-outline.text-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.badge-statut-outline.text-info {
    border-color: #17a2b8;
    color: #17a2b8;
}

.badge-statut-outline.text-primary {
    border-color: #007bff;
    color: #007bff;
}

.badge-statut-outline.text-success {
    border-color: #28a745;
    color: #28a745;
}

.badge-statut-outline.text-warning {
    border-color: #ffc107;
    color: #ffc107;
}

.badge-statut-outline.text-danger {
    border-color: #dc3545;
    color: #dc3545;
}

/* Style pour les badges avec icônes */
.badge-statut-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-statut-icon i,
.badge-statut-icon svg {
    font-size: 0.9em;
}

/* Animation pour badges importants */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.badge-statut.bg-danger.pulse {
    animation: pulse 2s infinite;
}

/* Style pour sélecteur de statut */
select.select-statut option {
    padding: 10px;
}

/* Style pour afficher les badges dans une liste */
.statut-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 576px) {
    .badge-statut {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
}


/* =======================
     Avatar Overlay — sans Bootstrap
     ======================= */

.avatar-overlay {
    /* Reset complet pour neutraliser Bootstrap et autres frameworks */
    all: unset;

    /* Position */
    position: absolute;
    right: 6px;
    bottom: 6px;

    /* Box */
    width: 38px;
    height: 38px;
    border-radius: 999px;
    box-sizing: border-box;

    /* Couleurs (thémables) */
    --ao-bg: #ffffff;
    --ao-fg: #1f2937;
    /* gris-900 */
    --ao-border: rgba(0, 0, 0, .12);
    --ao-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    --ao-bg-hover: #f3f4f6;
    /* gris-100 */
    --ao-border-hover: rgba(0, 0, 0, .22);
    --ao-ring: #2563eb;
    /* bleu */
    --ao-ring-alpha: 0.4;

    background: var(--ao-bg);
    color: var(--ao-fg);
    border: 1px solid var(--ao-border);
    box-shadow: var(--ao-shadow);

    /* Typo & layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;

    /* Animations */
    transition:
        transform .08s ease,
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        color .18s ease;
}

/* Icône */
.avatar-overlay svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

/* Hover / Active */
.avatar-overlay:hover {
    background: var(--ao-bg-hover);
    border-color: var(--ao-border-hover);
    transform: translateY(-1px);
}

.avatar-overlay:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}

/* Focus accessible */
.avatar-overlay:focus-visible {
    outline: 2px solid color-mix(in oklab, var(--ao-ring) var(--ao-ring-alpha*100%), transparent);
    outline-offset: 2px;
}

/* État disabled (au cas où) */
.avatar-overlay[disabled] {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(20%);
}

/* Variantes de taille (optionnel) */
.avatar-overlay--sm {
    width: 32px;
    height: 32px;
}

.avatar-overlay--lg {
    width: 44px;
    height: 44px;
}

.avatar-initials {
    width: 150px;
    height: 150px;
    color: #fff !important;
    font-size: 74px;
    text-align: center;
    position: absolute;
    transform: translateY(50%);
    top: -40%;
}

.avatar-lg {
    width: 150px;
    height: 150px;
    background-color: var(--primary);
    color: white;
    position: relative;
    border: 5px solid var(--secondary) !important;
}

/* Dark mode natif */
@media (prefers-color-scheme: dark) {
    .avatar-overlay {
        --ao-bg: #0f172a;
        /* gris bleuté très foncé */
        --ao-fg: #e5e7eb;
        /* gris-200 */
        --ao-border: rgba(255, 255, 255, .10);
        --ao-shadow: none;
        --ao-bg-hover: #111827;
        /* gris-900 */
        --ao-border-hover: rgba(255, 255, 255, .18);
        --ao-ring: #60a5fa;
        /* bleu clair */
        --ao-ring-alpha: 0.6;
    }
}

/* Respecte la réduction des animations */
@media (prefers-reduced-motion: reduce) {
    .avatar-overlay {
        transition: none;
    }
}


.kbtn-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: stretch;
}

/* Boutons (indépendants) */
.kbtn {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid rgba(0, 0, 0, .08);
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    transition: transform .06s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
    text-align: center;
    font-weight: 700;
}

.kbtn:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.kbtn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.kbtn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, .5);
    outline-offset: 2px;
}

.kbtn[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.kbtn--primary {
    background: #2563eb;
    color: #fff;
    border-color: transparent;
}

.kbtn--primary:hover {
    filter: brightness(1.05);
}

.kbtn--ghost {
    background: #fff;
    color: #111827;
    border-color: rgba(0, 0, 0, .12);
}

.kicon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

.kicon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Modale (indépendante) */
.kmodal {
    position: fixed;
    inset: 0;
    display: none;
}

.kmodal[aria-hidden="false"] {
    display: block;
}

.kmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .45);
}

.kmodal__dialog {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 8vh auto;
    background: #fff;
    color: #111827;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.kmodal__header, .kmodal__footer {
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.kmodal__footer {
    border-top: 1px solid #e5e7eb;
    border-bottom: none;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.kmodal__title {
    margin: 0;
    font-size: 18px;
}

.kmodal__close {
    all: unset;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.kmodal__close:hover {
    background: #f3f4f6;
}

.kmodal__body {
    padding: 16px;
}

/* QR preview */
.qrpreview {
    display: grid;
    place-items: center;
    padding: 10px;
}

.qrpreview img {
    max-width: 240px;
    max-height: 240px;
    width: 100%;
    height: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.qr-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Socials form */
.ksocials-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.kfield {
    display: grid;
    gap: 6px;
}

.kfield__label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 700;
}

.kfield__input {
    all: unset;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    color: #111827;
}

.kfield__input::placeholder {
    color: #9ca3af;
}

.kfield__input:focus {
    outline: 2px solid rgba(37, 99, 235, .4);
    outline-offset: 2px;
}

.khelp {
    color: #6b7280;
    font-size: 12px;
    margin-top: 8px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .kbtn {
        background: #0f172a;
        color: #e5e7eb;
        border-color: rgba(255, 255, 255, .08);
    }

    .kbtn--ghost {
        background: #0b1220;
        color: #e5e7eb;
        border-color: rgba(255, 255, 255, .12);
    }

    .kmodal__dialog {
        background: #0f172a;
        color: #e5e7eb;
    }

    .kmodal__header, .kmodal__footer {
        border-color: #1f2937;
    }

    .kfield__input {
        background: #0b1220;
        border-color: #1f2937;
        color: #e5e7eb;
    }

    .qrpreview img {
        border-color: #1f2937;
        background: #0b1220;
    }
}

@media (min-width: 640px) {
    .ksocials-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.btn-badge {
    border: none;
    background-color: transparent;
    color: white;
}

/* À mettre dans ton CSS global */
.drag-handle {
    cursor: grab;
    user-select: none;
    margin-right: .5rem;
    opacity: .7
}

tr.dragging {
    opacity: .5
}

tr.drop-target {
    outline: 2px dashed #9ca3af
        /* gris */
}

.user-avatar {
    max-width: 100%;
    border-radius: 50%;
    border: 3px solid var(--secondary);
}

.icon-circle {
    height: 4rem !important;
    width: 4rem !important;
}

.ship-card{
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .2s ease;
}
.ship-card:hover{ transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.09); }

.ship-card__header{
  display:flex; align-items:center; justify-content:space-between;
  padding:.85rem 1rem; background: linear-gradient(180deg,#f8fafc,#fff);
  border-bottom:1px solid rgba(0,0,0,.05);
}
.ship-card__title{ font-weight:600; display:flex; align-items:center; }

.ship-card__body{ padding:1rem; }

.ship-line{ color:#334155; margin-bottom:.35rem; }
.ship-address{ color:#1f2937; }
.ship-instructions{ color:#475569; background:#f8fafc; border:1px dashed #e2e8f0; padding:.5rem .75rem; border-radius:12px; }

.chip{
  display:inline-flex; align-items:center; font-size:.75rem;
  padding:.25rem .5rem; border-radius:999px; background:#eef2ff; color:#3730a3; margin:.15rem .35rem .15rem 0;
  border:1px solid #e0e7ff;
}
.shipping-card.selected {
  border-color: #0d6efd !important;
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}
#client-details-compact .btn,
#client-details-full .btn { white-space: nowrap; }
