/*COULEURS*/

:root {
    --bs-body-font-size: 0.8rem;
    --bs-body-bg: #f0f0f0; /* gris clair */
    --bs-body-bg-rgb: 240,240,240; /* gris clair */
    --bs-header-bg: #444961; /* bleu grisé très foncé */
    --bs-bluegrisdark-color: #282B3F ; /* bleu grisé très très foncé */
    --bs-body-color: #6F768F; /* bleu grisé foncé */
    --bs-titleh-color : #282B3F; /* bleu grisé très très foncé */
    --bs-font-light-color : #C7CDEA;
    --bs-link-color: #5FCBC6; /* vert atelier-piscine */
    --bs-link-color-rgb: 95,203,198; /* vert atelier-piscine */
    --bs-link-hover-color: #52AEAD; /* vert foncé atelier-piscine */     
    --bs-link-hover-color-rgb: 82,174,173; /* vert foncé atelier-piscine */     
    --bs-bg-aqua-color: #e7f8f7; /* vert très clair atelier-piscine */
}

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}
dt {
    font-weight: 500;
}

/* XDEBUG */
pre {
    display: block;
    padding: 9.5px;
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.42857143;
    color: #333;
    word-break: break-all;
    word-wrap: break-word;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* FIN XDEBUG */


/* TITRES */
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--bs-titleh-color);
}
h1 {
    color: var(--bs-titleh-color);
    text-transform: uppercase;
    font-size: 1.6rem;
    font-weight: 600;
}
.h1 {
    text-transform: uppercase;
    font-size: 1.3rem;
}
.h1front {
    font-size: 2rem;
}
h2 {
    font-size: 1.5rem;
    font-weight: 600;
}
.h2front {
    font-size: 1.8rem;
}
h3, h5 {
    font-size: 1.3rem; 
    font-weight: 600;
}

input[readonly]{
    background-color: var(--bs-form-control-disabled-bg);
    opacity: 1;
}

/*Reset couleur d'un a*/
.reset-link-color,
.reset-link-color:visited,
.reset-link-color:hover,
.reset-link-color:active,
.reset-link-color:focus {
  color: inherit;
  text-decoration-color: currentColor;
}

.h3front {
    font-size: 1.5rem;
}

/* Background */
.background-login{
    
}

.text-xl{font-size: 5.5rem}

.popover{
    --bs-popover-bg: white;
}

.tooltip-neutre{
    --bs-tooltip-bg: lightGrey;
    --bs-tooltip-color: white;
    --bs-tooltip-border-radius:0;
    --bs-tooltip-arrow-width:0;
    --bs-tooltip-arrow-height:0;
}

/* WIDTH */
    @media (min-width: 992px) {
        .w-lg-50 {
            width: 50% !important;
        }
        .w-lg-60 {
            width: 60% !important;
        }
        .w-lg-70 {
            width: 70% !important;
        }
        .w-lg-80 {
            width: 80% !important;
        }
        .w-lg-90 {
            width: 90% !important;
        }
    }

/* MODAL */
.modal {
    --bs-modal-bg: #ffffff;
}
.modal-content {
    background-color: #ffffff;
}

/* BUTTONS */
.btn-aqua-success {
  --bs-btn-color: var(--bs-white);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-bg: var(--bs-link-color);
  --bs-btn-border-color: var(--bs-link-color);
  --bs-btn-hover-bg: var(--bs-link-hover-color);
  --bs-btn-hover-border-color: var(--bs-link-hover-color);
  --bs-btn-focus-shadow-rgb: var(--bs-link-color);
  --bs-btn-active-color: var(--bs-link-hover-color);
  --bs-btn-active-bg: var(--bs-link-color);
  --bs-btn-active-border-color: var(--bs-link-hover-color);
}
.btn-outline-aqua-success {
    --bs-btn-color: var(--bs-link-color);
    --bs-btn-border-color: var(--bs-link-color);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: var(--bs-link-color);
    --bs-btn-hover-border-color: var(--bs-link-color);
    --bs-btn-focus-shadow-rgb:  var(--bs-link-color-rgb);
    --bs-btn-active-color: var(--bs-white);
    --bs-btn-active-bg: var(--bs-link-color);
    --bs-btn-active-border-color: var(--bs-link-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-link-color);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color:var(--bs-link-color);
    --bs-gradient: none;
}

.btn-xs{
    --bs-btn-padding-y: 0.2rem;
    --bs-btn-padding-x: 0.3rem;
    --bs-btn-font-size: 0.7rem;
    --bs-btn-border-radius: 0.2rem;
}

.btn-grey-light {
  --bs-btn-color: var(--bs-titleh-color);
  --bs-btn-hover-color: var(--bs-titleh-color);
  --bs-btn-bg: #e6e9ec;
  --bs-btn-border-color: #DDE0E3;
  --bs-btn-hover-bg: #DDE0E3;
  --bs-btn-hover-border-color: #DDE0E3;
  --bs-btn-focus-shadow-rgb: #e6e9ec;
  --bs-btn-active-color: #DDE0E3;
  --bs-btn-active-bg: #e6e9ec;
  --bs-btn-active-border-color: #DDE0E3;
}


/* HELPERS */
.text-bg-warning, .text-bg-info {
    color: #ffffff!important;
}
.text-inheritcase {
    text-transform: initial!important;
}
.text-aqua-success {
    color: var(--bs-link-color);
}
.text-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.vertical-line {
    width: 2px;
    height: 20px;
}
.bg-aqua-success-subtle {
    --bs-bg-opacity: 0.2;
    background-color: rgba(var(--bs-link-color-rgb), var(--bs-bg-opacity)) !important;
}
a.no-underline {
    text-decoration: none;
}


/* HEADER */
#header-in {
    background-color: var(--bs-header-bg);
    background-position: bottom left;
    background-size: contain;
    background-repeat: no-repeat;
}
#header-title h1 {
    display: inline-grid;
    font-weight: 700;
    color: #ffffff;
}
#header-title h1 small {
    font-size:1rem;
    font-weight: 300;
}
.headerAtelier {
    font-family: "Big Shoulders", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900 !important;
    font-style: normal;
    font-size: 4rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* LOGO HEADER ATELIER SAV (non-zealux) */
.header-logo-atelier {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top-right-radius: var(--bs-border-radius);
    border-bottom-left-radius: 18px;
    padding: 14px 24px 18px 24px;
    box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.25);
}
.header-logo-atelier-img {
    display: block;
    height: 38px;
}
@media (min-width: 992px) {
    .header-logo-atelier-img {
        height: 58px;
    }
}

    @media (min-width: 768px) {
        #connect {
            position: absolute;
            top: 0;
            right: 0;
        }
    }

.logo-header{
    width: 25%;
}
    @media (min-width: 768px) {
        .logo-header {
            width: 10%;
        }
    }

.dropdown-menu li:hover, .dropdown-menu a:hover {
  cursor: pointer;
}

/* LANG + DEVISE */
.listLang, .listDevise {
    color: lightslategray;
}
#header .listLang,
#login .listLang,
#header .listDevise {
    background-color: rgba(var(--bs-link-color-rgb),1);
    color:#fff;
}
#header .listLang,
#login .listLang {
    border-top-left-radius: var(--bs-border-radius)!important;
}
#login .listLang {
    border-bottom-right-radius: var(--bs-border-radius)!important;
}
#header .listDevise {
    border-bottom-right-radius: var(--bs-border-radius)!important;
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* MENU */
#navbar-sav.navbar {
    --bs-navbar-brand-font-size: 1.8rem;
}
#navbar-sav .navbar-nav {
    --bs-nav-link-padding-x: 0.5rem;
    --bs-nav-link-font-size : 0.8rem;
}

#navbar-sav.navbar-dark {
    --bs-dark-rgb: 68, 73, 97;
    --bs-navbar-color: rgba(255, 255, 255, 1);    
    --bs-navbar-hover-color: rgba(255, 255, 255, 1);
    --bs-navbar-brand-color : var(--bs-font-light-color);
}
#navbar-sav .navbar-brand {
    font-weight: 700;
    margin: 0;
}
#navbar-sav .navbar-brand img {
    width: 14rem;
}
#navbar-sav .nav-link:hover,
#navbar-sav .navbar-nav .nav-link.active {
    background-color: var(--bs-bluegrisdark-color);
}
#navbar-sav .navbar-nav .nav-link.active {
    font-weight: 400;
}
#navbar-sav .dropdown-menu {
    --bs-dropdown-font-size : 0.8rem;
    --bs-dropdown-padding-y: 0;
}
#navbar-sav .dropdown-menu-dark {
    background-color: inherit;
    border: none;
    border-radius: inherit;
    --bs-dropdown-link-hover-bg: var(--bs-bluegrisdark-color);
    --bs-dropdown-link-active-bg : var(--bs-bluegrisdark-color);
    --bs-dropdown-link-color: #fff;
}
#navbar-sav .dropdown-item {
    font-weight: inherit;
}
#navbar-sav .nav-item {
    width: 100%;
}
#menuHide {
    position: fixed;
    top: 5px;
    left: 5px;
}
#menuShow {
    background-color: var(--bs-header-bg);
    min-height: 100vh;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 5px;
}

    @media (min-width: 992px) {
        #navbar-sav.navbar {
            min-height: 100vh;
            width: 20rem;
        }
    }

/* MENU PANEL */
#menuPanel .navbar {
    background-color: var(--bs-link-color);
    --bs-navbar-color: #fff;
    --bs-navbar-hover-color : #fff;
    --bs-navbar-toggler-border-color : rgba(var(--bs-white-rgb), 0.15);
    --bs-navbar-toggler-icon-bg : url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
#menuPanel .navbar-nav {
    --bs-nav-link-font-size: 0.9rem;
    text-align: left;
}
#menuPanel .navbar-nav .nav-link.active, #menuPanel .navbar-nav .show>.nav-link {
    color: var(--bs-nav-link-color);
    font-weight: 600;
    padding: 0;
}
#menuPanel .navbar-nav .nav-link:hover,
#menuPanel .nav .nav-link:hover {
    text-decoration: underline;
}
#menuPanel .nav{
    --bs-nav-link-color: #fff;
    --bs-nav-link-hover-color: #fff;
    font-size: 0.7rem;
}
#menuPanel .navbar-toggler{
}

.panelIcons{
    color: var(--bs-link-color);
    margin: 0 5px 0 0;
/*    font-size: 1.1rem;*/
}

.dropdown-red .dropdown-menu{
    --bs-dropdown-font-size: var(--bs-body-font-size);
    --bs-dropdown-color: var(--bs-white);
    --bs-dropdown-bg: var(--bs-bg-aqua-color);
    --bs-dropdown-border-radius: 0;
    --bs-dropdown-link-color: var(--bs-link-color);
    --bs-dropdown-link-hover-color: var(--bs-white);
    --bs-dropdown-link-hover-bg: var(--bs-link-hover-color);
    --bs-dropdown-link-active-color: var(--bs-white);
    --bs-dropdown-link-active-bg: var(--bs-link-hover-color);
    border: 0;
}

@media (min-width: 992px) {
        #menuPanel .navbar-nav {
            text-align: center;
        }
    }

/* CONTENT */ 

.content-in {
    background-color: #fff;
}
.title-content {
    background-color: var(--bs-link-color);
    text-align: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
}
.content {
    background-color: #fff;
    border: 1px solid #f4f4f4;
    border-top: 0;
    padding: 2rem;
}

    @media (min-width: 992px) {
        #content {
            width: calc(100% - 20rem);
        }
        .content {
            padding: 4rem 5rem;
        }
    }

/* PANEL */
.boxPanel {
    border-left: 4px solid var(--bs-link-color);
    border-top: 1px solid var(--bs-body-bg);
    border-right: 1px solid var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-body-bg);
    padding: 2rem;
    position: relative;
    background-color: rgba(var(--bs-body-bg-rgb), 0.3) ;
    min-height: 100%;
}
.iconBoxPanel {
    transform: translate(-90%,-85%);
    color: var(--bs-body-bg);
    font-size: 8rem;
    opacity: 0.5;
}
/*.animateBoxPanel {
  height: 100%;
  width: 200px;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  background-image: linear-gradient(to right, var(--bs-link-color) 50px, transparent 50px), linear-gradient(to bottom, var(--bs-link-color) 50px, transparent 50px), linear-gradient(to right, var(--bs-link-color) 50px, transparent 50px), linear-gradient(to bottom, var(--bs-link-color) 50px, transparent 50px);
  background-size: 100% 4px, 4px 100%, 100% 4px, 4px 100%;
  background-repeat: no-repeat;
  background-position: -50px 0px, right -50px, 200px bottom, 0px 200px;
  animation: animateLine 3s linear;
}
@keyframes animateLine { 
  20% {
    background-position: 150px 0px, right -50px, 200px bottom, 0px 200px;
  }
  25% {
    background-position: 200px 0px, right 0px, 200px bottom, 0px 200px;
  }
  45% {
    background-position: 200px 0px, right 150px, 200px bottom, 0px 200px;
  }
  50% {
    background-position: 200px 0px, right 200px, 150px bottom, 0px 200px;
  }
  70% {
    background-position: 200px 0px, right 200px, 0px bottom, 0px 200px;
  }
  75% {
    background-position: 200px 0px, right 200px, -50px bottom, 0px 150px;
  }
  95% {
    background-position: 200px 0px, right 200px, -50px bottom, 0px 0px;
  }
  100% {
    background-position: 200px 0px, right 200px, -50px bottom, 0px -50px;
  }
} */

/* SUCCESSSAV */
.progress-bar{
    background-color: #5FCBC6;
}

/* CARD */
.card {
    --bs-card-cap-color: var(--bs-titleh-color);
    --bs-card-cap-padding-y: 1rem;
    --bs-card-cap-bg: rgba(0, 0, 0, 0.03);
    --bs-card-bg: #ffffff;
}
#card-devis-sav .card-header {
    background-color: var(--bs-gray-400);
}
#card-suivi-sav .card-header {
    color: #fff;
    background-color: var(--bs-titleh-color);
}
#card-suivi-sav .card-body-post {
    border-bottom: 1px dotted var(--bs-font-light-color);
    padding: 1rem;
}
#card-suivi-sav .card-body-post:last-of-type {
    border-bottom: none;
}
#card-suivi-sav .card-body-post.answer-sav {
   background-color: var(--bs-bg-aqua-color);
}
#card-suivi-sav .card-body-post.answer-reseller {
   background-color: #FAFAFA;
}
.card-files-added li a {
    color: inherit;
    text-decoration: none;
}
.card-notif {
    color: var(--bs-link-hover-color);
}


/* CONNEXION */ 
#login {
    background-position: center fixed;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0;
    padding: 0;

}

#login .content h1{
    color: var(--bs-titleh-color);
}

#login .text-login {
    color: white!important;
}

#login .container {
    margin-top: 70px;
}
#login .content {
    background-color: rgba(68, 73, 97,0.9);
    margin: 0 auto;
    max-width: 400px;
    border: 0;
    padding: 4rem;
    background-position: bottom left;
    background-size: contain;
    background-repeat: no-repeat;
}
#login #footer {
    display: none;
}

.bloc-first-connexion{
    background-color: aliceblue;
    color: SlateGrey;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.7rem;
}

/* login client */
.logo-login{
    text-align:center;
}
.logo-login .zealux{ 
    width: 20%;
}

.logo-login .other{ 
    width: 8%;
    margin: 0 0 20px 0;
}

/* FORM */
.form-label {
    text-transform: uppercase;
    font-weight: 400;
}
.form-control,
.form-control:focus,
.form-select {
    color: var(--bs-titleh-color);
    background-color: #ffffff;
}
.form-check-input {
    background-color: #ffffff;
}
.form-check-input.largeCheckInput {
    width: 1.5em;
    height: 1.5em;
    margin-left: -2em;
}
.form-control::placeholder {
    color: var(--bs-gray-500) ;
}
.dropdown-predefined .dropdown-menu {
    font-size: 0.8rem;
}
.help-form-sav {
    color: var(--bs-gray-500);
    font-size: 0.7rem;
}
.disable-interaction {
  pointer-events: none;
  background-color: #f3f3f3; /* Optionnel : pour changer la couleur de fond */
}

/* BOOTSTRAP SELECT */
.bootstrap-select .btn-default {
    border: var(--bs-border-width) solid var(--bs-border-color);
}
.bootstrap-select .dropdown-menu {
    background-color: #fff;
    font-size: 0.875rem;
}
.bootstrap-select .dropdown-header {
    background-color: var(--bs-body-bg);
}
.bootstrap-select .dropdown-menu li small {
    font-size:0.7em;
}
.bootstrap-select .dropdown-menu li small.text-muted {
    color: var(--bs-gray-500)!important;
}

/* TABLEAU */
.followSAV.table>:not(caption)>*>* {
 padding: 1rem 0.5rem;
}
#messagespredefinis .followSAV.table>:not(caption)>*>* {
 padding: 0.5rem 0.5rem;
}
.followSAV tbody tr {
    position: relative;
}
#messagespredefinis .followSAV tbody tr {
    position: inherit;
}
.followSAV tbody tr:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1)!important;
    z-index: 1;
}
table.followSAV {
    position:relative;
}
#messagespredefinis .followSAV tbody tr:hover {
    box-shadow: none!important;
}
.infoGenTable tbody tr:hover{
    box-shadow: none!important;
}
.table, .table tbody tr {
    --bs-table-color : var(--bs-titleh-color);
}
#documents .modal .table-striped>tbody>tr:nth-of-type(odd)>*,
#buysparepart .table-striped>tbody>tr:nth-of-type(odd)>*,
#hubDevis .modal .table-striped>tbody>tr:nth-of-type(odd)>* {
    color: inherit;
}
#documents .modal_video .table-striped>tbody>tr:nth-of-type(odd)>*,
#hubDevis .modal_video .table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-table-accent-bg : transparent;
}
/* Réinitialise le fond pour annuler le style .table-striped par défaut */
#documents .modal_video .table-striped tbody tr,
#hubDevis .modal_video .table-striped tbody tr {
  background-color: transparent;
}
/* Applique la couleur aux lignes 1, 5, 9, ... */
#documents .modal_video .table-striped tbody tr:nth-child(4n+1),
#hubDevis .modal_video .table-striped tbody tr:nth-child(4n+1) {
  background-color: rgba(0, 0, 0, 0.05);
}

.card-img-top {
    width: 150px;
    height: 150px;
    object-fit: contain;
}
.starFav {color:goldenrod;}

.table-action {
    display: flex;
}
.table-action a:first-child{
    margin-right: 1.5rem;
}
.table-action a svg{
    font-size:4em;
}
    @media (min-width: 768px) {
        .table-action a:first-child {
          margin-right : 0.5rem;
        }
        .table-action a svg{
            font-size:2em;
        }
    }

.scrollVerticalTop { width: 100%; overflow-x: scroll; overflow-y: hidden; height: 20px; margin-top: 10px; }
.scrollVerticalTopIn { height: 20px; }

/* Pour bloquer le stretched-link */
.no-link::before {
    content: none !important;
}
.no-link {
    position: relative;
    z-index: 2;
    cursor: pointer; 
}

/* AUTO COMPLETE */
.ui-search-product {
    border: 1px solid #ced4da;
    list-style-type: none;
    padding: 0;
    border-radius: 0.5rem;
    background-color: #ffffff;
}
.ui-search-product .ui-menu-item {
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 0.5rem;
}
.ui-search-product .ui-menu-item:hover {
    background-color: var(--bs-bg-aqua-color);
}
.ui-helper-hidden-accessible { 
    display:none; 
}

/* TOAST */
.toast-header {
    background-color:rgba(var(--bs-link-color-rgb),0.85);
}

/* CART*/
#cartBuysparepart {
    margin-top: -20px;
}
#cartBuysparepart .fa-layers-counter {
    background-color: var(--bs-link-color);
}
#cartBuysparepart .dropdown-menu {
    --bs-dropdown-font-size: var(--bs-body-font-size);
    width: max-content;
}
    @media (min-width: 992px) {
        #cartBuysparepart {
            position: absolute;
            top: 0;
            right: 0;
            padding: 1rem 1rem 0 0;
            margin-top: 0;
        }
    }

.img-table-bis img { width: 90%; }

/* CONTAINER */
.mapOverlayZoom {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* Fond transparent noir */
  opacity: 0;
}

.mapOverlay:hover .mapOverlayZoom {
  opacity: 1; /* Apparition au survol */
}

/* COOKIE */
#cookie{
    position:fixed;
    bottom:0;
    width:100%;
    background:rgba(0,0,0,0.5);
    z-index: 1;
    color: #ffffff;
    font-size:0.7em;
    text-align: center;
}
#cookie p{
    margin:0;
    padding:10px 0;
}

 /*Pour les image du tableau des enseignes dans le backoffice*/
.table-image {
  width: 100%;
  height: 40px; /* Pour maintenir le ratio d'aspect de l'image */
  object-fit: contain; /* Adapter l'image à l'espace disponible tout en maintenant son aspect */
}

    @media (min-width: 768px) {
            .table-image {
              width: 20%;
              height: 40px; /* Pour maintenir le ratio d'aspect de l'image */
              object-fit: contain; /* Adapter l'image à l'espace disponible tout en maintenant son aspect */
            }
        }

/* FOOTER */

#footer{
    
}

/* HUBDEVIS */
#hubDevis .list-group-item {
    background-color: #fff;
}

/* CGV */ 
#cgv {
    color: var(--bs-titleh-color);
}

/* LOADER */
.se-pre-con {
    display: none;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0,0,0,0.7);
    /*cursor: wait;*/
}
.se-pre-con-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color:#fff;
    font-weight: bold;
    font-size: 2rem;
    margin:0;
}

/* POPOVER */ 
.css-popover {
    --bs-popover-bg: #fff;
}

/*PopOver personalisé pour les produits / puissances*/
.product-puissances-popover {
/*  --bs-popover-max-width: 200px;*/
    --bs-popover-bg:#fff;
    --bs-popover-border-color: var(--bs-primary);
    --bs-popover-header-bg: var(--bs-primary);
    --bs-popover-header-color: var(--bs-white);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: .5rem;
}

.popover-perso {
    --bs-popover-bg:#fff;
    --bs-popover-border-color: var(--bs-link-color);
    --bs-popover-header-bg: var(--bs-link-color);
    --bs-popover-header-color: var(--bs-white);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: .5rem;
}

.pencilModif{
    color: var(--bs-link-color);
}

.stop-validation .popover-body{
    text-align: center;
}


/* Twemoji */
img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 .05em 0 .1em;
  vertical-align: -0.1em;
}

/* tags */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
    width: 300px;
}
.tag {
    padding: 5px 10px;
    margin: 5px;
    display: inline-flex;
    align-items: center;
}
.tag .close {
    background: none;
    border: none;
    color: white;
    margin-left: 8px;
    cursor: pointer;
}
.input-container {
    margin: 10px 0;
}

.adress_facturation_input, .adress_delivery_input, .contact_delivery_input{
    margin-bottom:2px;
}

.statutcmd, .statutcmdpay{
    cursor: pointer;
}

.ref_order_piece{
    font-size: 0.6rem;
    color: #999;
}

.results_table{
    font-size:1rem;
    font-weight: bold;
}

.selectsparepart{
    border: 1px solid #c9cacc;
}

/*Menu contextuel perso*/
#customContextMenu {
    background-color: white; /* ou #fff */
/*    border: 1px solid #ccc;*/
    padding: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
/*    border-radius: 6px;*/
    min-width: 160px;
    font-size: 14px;
}
#customContextMenu a {
    display: block;
    padding: 3px 10px;
    text-decoration: none;
    color: #333;
}
#customContextMenu a:hover {
    background-color: #f1f1f1;
}

.historyChanged{
    font-style: italic;
    color: cadetblue;
}

/*//////////////////////////////*/
/* TOM SELECT */
/*//////////////////////////////*/

/* ===== STYLE PRINCIPAL DU CHAMP ===== */
.ts-control {
  position: relative !important;
  background-color: #fff !important;
  border: var(--bs-border-width) solid var(--bs-border-color) !important;
  border-radius: 0.375rem !important;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  color: #212529 !important;
  min-height: calc(1.5em + 0.75rem + 2px) !important;
  height: auto !important;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out !important;
  font-family: 'Open Sans', sans-serif !important;
}

/* Focus identique à Bootstrap */
.ts-control--focus {
  border-color: #86b7fe !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Flèche ▼ */
.ts-control::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #999;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ===== MENU DÉROULANT (dropdown) ===== */
.ts-dropdown {
  background-color: #fff !important;
  border: 1px solid #ced4da !important;
  border-radius: 0.375rem !important;
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
  font-size: 1rem !important;
  font-family: 'Open Sans', sans-serif !important;
  color: #6F768F !important;
  z-index: 1055 !important;
  overflow-y: auto !important;
  max-height: 200px;
}

/* Option normale */
.ts-dropdown .option {
  padding: 0.375rem 0.75rem !important;
  cursor: pointer !important;
  color: #6F768F !important;
}

/* Hover = fond gris clair, même si Tom Select applique .active */
.ts-dropdown .option:hover:not(.selected),
.ts-dropdown .option.active:hover:not(.selected) {
  background-color: #f8f9fa !important;
  color: #6F768F !important;
}

/* Supprimer la fausse surbrillance bleue quand non sélectionné */
.ts-dropdown .option.active:not(.selected) {
  background-color: transparent !important;
  color: inherit !important;
}

/* Sélectionnée = fond bleu Bootstrap + texte blanc */
.ts-dropdown .option.selected {
  background-color: #0d6efd !important;
  color: #fff !important;
}


/* Supprime le double scroll */
.ts-dropdown .ts-dropdown-content {
  max-height: 200px !important;
  overflow-y: auto !important;
  padding-right: 0 !important;
}

/* Empêche le parent d'ajouter un scroll inutile */
.ts-dropdown {
  overflow: hidden !important;
  padding: 0 !important;
}

/* data-subtext */
.ts-dropdown .text-muted {
  color: #ADB5BD;
}
.ts-dropdown .small {
  font-size: 0.6rem;
}
.ts-dropdown .d-flex {
  align-items: baseline !important;
}

/* PlaceHolder */
.ts-control::placeholder,
.ts-control .item[aria-placeholder="true"],
.ts-control input::placeholder {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: #999999 !important;
  opacity: 1 !important;
}

/* OptGroup */
.ts-dropdown .optgroup-header {
  background-color: #f5f5f5 !important;
  font-weight: bold !important;
  font-size: 1em !important;
  color: #666 !important;
  padding: 6px 10px;
}

/* Si le select d'origine a la classe sm, on réduit le wrapper TomSelect */
.form-select-sm + .ts-wrapper.single .ts-control {
    padding: 0.25rem 0.5rem !important;
    min-height: 31px !important; /* Hauteur standard BS5 Small */
    font-size: 0.875rem !important;
    line-height: 1.5;
}

/* TomSelect small scoped au transporteur du devis (admin3678/detailsav) */
#detailsav #carrier + .ts-wrapper .ts-control {
    padding: 0.25rem 0.5rem !important;
    min-height: 31px !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}


/*//////////////////////////////*/
/* FIN TOM SELECT */
/*//////////////////////////////*/


/*/////////////////////////*/
/* Loader Img */
/*/////////////////////////*/

/* Enveloppe */
.lazywrap{
  position: relative;
  display: inline-block;
  overflow: hidden;
}

/* Shimmer skeleton tant que non chargé */
.lazywrap.is-loading::before{
  content: "";
  position: absolute; inset: 0;
  /* base */
  /*background: #f2f3f5;*/
  /* shimmer */
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0) 0%,
                          rgba(255,255,255,.6) 50%,
                          rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: lazy-shimmer 1.2s linear infinite;
}

/* Spinner centré */
.lazywrap.is-loading::after{
  content: "";
  position: absolute; top: 50%; left: 50%;
  width: 22px; height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(0,0,0,.15);
  border-top-color: rgba(0,0,0,.45);
  border-radius: 50%;
  animation: lazy-spin .8s linear infinite;
}

/* Quand chargé : on retire les overlays */
.lazywrap.is-loaded::before,
.lazywrap.is-loaded::after{
  display: none;
}

/* Transition de l’image */
img.lazyload{
  transition: opacity .2s ease;
  background: none; /* pas de plaque grise */
}

/* Animations */
@keyframes lazy-shimmer{
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes lazy-spin{
  to { transform: rotate(360deg); }
}

/*/////////////////////////*/
/* Fin Loader Img */
/*/////////////////////////*/




/*////////////////////////*/
/* checkTraductions */
/*////////////////////////*/
.stat-card { border-radius: 12px; border: none; }
.stat-card .card-body { padding: 1.2rem 1.5rem; }
.stat-card .stat-number { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-card .stat-label  { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-top: .3rem; }
.stat-card .stat-icon   { font-size: 1.8rem; opacity: .25; }
.badge-lang { font-size: .7rem; font-weight: 600; }
.check-file-list { font-size: .82rem; color: #6c757d; }
.check-file-list li { padding: 1px 0; }
.accordion-button:not(.collapsed) { box-shadow: none; }
.section-ok .accordion-button  { color: #198754; background: #f0fdf4; }
.section-ok .accordion-button::after { filter: hue-rotate(120deg); }
.section-warn .accordion-button { color: #856404; background: #fffbeb; }
.section-err .accordion-button  { color: #842029; background: #fff5f5; }
.trad-key { font-family: monospace; font-size: .85rem; }
.ts-generated { font-size: .8rem; color: #6c757d; }

/*////////////////////////*/
/* Crons */
/*////////////////////////*/
.cron-output {
  font-family: monospace;
  font-size: .8rem;
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 6px;
  padding: 1rem;
  max-height: 260px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}


/*////////////////////////*/
/* Panel */
/*////////////////////////*/
#panel .boxPanel-links {
  margin: 0;
  padding: 0;
}

#panel .boxPanel-links li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

#panel .boxPanel-links li + li {
  background-image: linear-gradient(to right, transparent, rgba(0,0,0,0.07) 43%, rgba(0,0,0,0.07) 57%, transparent);
  background-size: 100% 1px;
  background-position: top;
  background-repeat: no-repeat;
}

#panel .boxPanel-links li:hover {
  background: rgba(var(--bs-link-color-rgb), 0.07);
}

#panel .boxPanel-links li .panelIcons {
  color: var(--bs-link-color);
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
}

#panel .boxPanel-links li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  flex: 1;
  transition: color 0.15s;
}

#panel .boxPanel-links li:hover a {
  color: var(--bs-link-color);
}

#panel .boxPanel-links li .panelChevron {
  color: #ccc;
  font-size: 1rem;
  margin-left: auto;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

#panel .boxPanel-links li:hover .panelChevron {
  color: var(--bs-link-color);
  transform: translateX(3px);
}

#panel .boxPanel-links li .badge {
  flex-shrink: 0;
}

/*////////////////////////*/
/* detailsinstallation */
/*////////////////////////*/
@media (max-width: 767.98px) {
  #detailsinstallation .h2front { font-size: 1.3rem; margin-bottom: 1.5rem !important; }
  #detailsinstallation .card-body { padding: 0.75rem; }
  #detailsinstallation .card-header { padding: 0.6rem 0.75rem; }
}

/*////////////////////////*/
/* addmodifymaintenance */
/*////////////////////////*/
@media (max-width: 991.98px) {
  #addmodifymaintenance .border.border-light:not(.mt-4) > .row > div:nth-child(1) {
    flex: 0 0 auto !important;
    width: auto !important;
    text-align: left !important;
  }
  #addmodifymaintenance .border.border-light:not(.mt-4) > .row > div:nth-child(2) {
    flex: 1 1 0 !important;
    width: auto !important;
  }
  #addmodifymaintenance .border.border-light:not(.mt-4) > .row > div:nth-child(3) {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  #addmodifymaintenance .border.border-light:not(.mt-4) > .row > div:nth-child(4) {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 1rem !important;
  }
  #addmodifymaintenance .img_line_button {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.35rem !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }
}

/* addOrder step2 : les labels courts s'alignent sur la dernière ligne du label dépôt multi-ligne */
#formStep2 .ligneProduct > .row {
  align-items: stretch !important;
}
#formStep2 .ligneProduct > .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
#formStep2 .ligneProduct > .row > [class*="col-"] > .form-label {
  margin-top: auto;
}

/* Mini tableaux des stocks par dépôt — uniformisés sur products / productsAccessoires / piecesdetachees */
.tableStock {
  width: 115px !important;
  margin: 0 auto;
  font-size: 11px;
  border-collapse: separate !important;
  border-spacing: 0;
  border: 1px solid rgba(199, 205, 234, 0.7);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(40, 43, 63, 0.05);
}
.tableStock td {
  height: 22px;
  white-space: nowrap;
  border: none !important;
  border-bottom: 1px solid rgba(199, 205, 234, 0.5) !important;
  color: var(--bs-body-color);
}
.tableStock tr:last-child td {
  border-bottom: none !important;
  background-color: rgba(199, 205, 234, 0.25);
  color: var(--bs-titleh-color);
  font-weight: 600;
}


/*////////////////////////////////////*/
/* Reporting > Statistiques (dashboard) */
/*////////////////////////////////////*/
#reporting-statistiques .reporting-filter .form-control { min-width: 150px; }

/* Cartes KPI (flat : fond blanc + accent couleur) */
.reporting-kpi {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: #fff;
  border: 1px solid #eef1f4;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  cursor: help;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.reporting-kpi:hover { border-color: #dbe1e8; box-shadow: 0 3px 10px rgba(0,0,0,.05); }
.reporting-kpi-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.3rem;
}
.reporting-kpi-body  { min-width: 0; }
.reporting-kpi-value { font-size: 1.35rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: #1e293b; }
.reporting-kpi-label { font-size: .71rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin-top: .2rem; font-weight: 600; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; }
.reporting-kpi-sub   { font-size: .74rem; color: #94a3b8; margin-top: .1rem; }
.reporting-kpi-red .reporting-kpi-icon    { background: #fdecec; color: #d01c1f; }
.reporting-kpi-orange .reporting-kpi-icon { background: #fdf0e3; color: #ec7211; }
.reporting-kpi-teal .reporting-kpi-icon   { background: #e4f7f5; color: #2f9e98; }
.reporting-kpi-blue .reporting-kpi-icon   { background: #eaefff; color: #2f4ccc; }
.reporting-kpi-purple .reporting-kpi-icon { background: #f1eafb; color: #6d3fc4; }
.reporting-kpi-green .reporting-kpi-icon  { background: #e6f7ee; color: #1a9e5a; }

/* En-têtes de section */
.reporting-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .75rem;
  margin-bottom: 1.1rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid #eef1f4;
}
.reporting-section-help { font-size: .78rem; color: #94a3b8; }
.reporting-export-btn { --bs-btn-padding-y: .15rem; --bs-btn-padding-x: .5rem; --bs-btn-font-size: .74rem; white-space: nowrap; }
/* Sélecteur de période dédié au bloc Ventes Guangzhou */
.reporting-gz-dates { width: auto; flex: 0 0 auto; }
.reporting-gz-dates .form-control { width: 135px; flex: 0 0 auto; }

/* Zones de graphique */
.reporting-chart-wrap { position: relative; height: 240px; }
.reporting-chart-lg   { height: 320px; }

/* Mini-cartes de sous-totaux */
.reporting-mini {
  background: #f8fafc;
  border: 1px solid #eef1f4;
  border-left: 4px solid #5FCBC6;
  border-radius: 10px;
  padding: .8rem 1rem;
  height: 100%;
}
.reporting-mini-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; font-weight: 600; }
.reporting-mini-value { font-size: 1.3rem; font-weight: 800; line-height: 1.1; color: #1e293b; margin-top: .2rem; }
.reporting-mini-sub   { font-size: .75rem; color: #94a3b8; margin-top: .1rem; }

/* Tableaux */
.reporting-table { font-size: .84rem; }
.reporting-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #94a3b8; border-bottom: 2px solid #eef1f4; }
.reporting-total-row td { border-top: 2px solid #e2e8f0; font-weight: 700; background: #f8fafc; }
.reporting-table-scroll { max-height: 460px; overflow-y: auto; }
.reporting-stock-scroll { max-height: 340px; }
/* En-tête et ligne Total qui restent visibles pendant le défilement */
.reporting-table-scroll thead th { position: sticky; top: 0; background: #fff; z-index: 2; }
.reporting-table-scroll .reporting-total-row td { position: sticky; bottom: 0; z-index: 1; }

/* Barre de progression des règlements */
.reporting-progress { height: 18px; font-size: .68rem; font-weight: 600; background: #eef1f4; }
.reporting-progress .progress-bar { line-height: 18px; }
