.btn-primary, .btn-danger, .btn-warning, .btn-success{
    color: #FFF !important;
}

/* ─── Tabs : style underline moderne ─────────────────────────────────────────
   Remplace le style boîte/bordure Bootstrap par un simple trait de couleur
   sous l'onglet actif, pour un rendu épuré façon GitHub / Linear.           */
.nav-tabs {
    border-bottom: 2px solid #e9ecef;
    gap: 4px;
}
.nav-tabs .nav-link {
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0 !important;
    color: #6c757d;
    padding: 8px 16px;
    font-weight: 500;
    margin-bottom: -2px;
    background: transparent !important;
    transition: color 0.15s, border-color 0.15s;
}
.nav-tabs .nav-link:hover {
    color: var(--tabs-color, #1a6b7c);
    border-bottom-color: color-mix(in srgb, var(--tabs-color, #1a6b7c) 30%, transparent) !important;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--tabs-color, #1a6b7c) !important;
    border-bottom-color: var(--tabs-color, #1a6b7c) !important;
    font-weight: 600;
    background: transparent !important;
}
.tab-content {
    padding-top: 1rem;
}

.raccourciConfigGrid {
    display: grid;
    width: 100%;
}

.raccourciTile {
    position: relative;
    padding: 1px;
}

.selectDynaFiltre{
    width: 30% !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
}

.folder{
    font-size: 4em !important;
    color: #1e90ff !important;
    cursor: pointer;
}

.folder :hover{
    color: #c8d2ff !important;
}

.folder-finalised{
    font-size: 4em !important;
    color: #75ce10 !important;
    cursor: pointer;
}

.folder-finalised :hover{
    color: #c6d4b6 !important;
}

:root {
    --header-color: #1a6b7c;
    --card-header-color: #124f5c;
    --tabs-color: #1a6b7c;
}

.card-header{
    background-color: var(--card-header-color) !important;
    color:#FFF !important;
}

.main-header {
    background-color: var(--header-color) !important;
    color: #fff !important;
}

/* Icônes et liens du bandeau sur fond coloré */
.main-header .header-icon,
.main-header a:not(.btn),
.main-header i {
    color: #fff !important;
}

/* Le menu "Menu" du header mobile (RightMenuIcon) ouvre un dropdown sur fond blanc :
   on repasse le texte en noir car la règle ".main-header a:not(.btn), .main-header i"
   ci-dessus le forcerait en blanc (illisible sur fond blanc) */
.main-header .header-menu-dropdown .dropdown-menu,
.main-header .header-menu-dropdown .dropdown-menu a,
.main-header .header-menu-dropdown .dropdown-menu i {
    color: #000 !important;
}

.main-header .search-bar {
    background: rgba(255,255,255,0.15) !important;
    border-color: rgba(255,255,255,0.25) !important;
}

.main-header .search-bar input {
    color: #fff !important;
}

.main-header .search-bar input::placeholder {
    color: rgba(255,255,255,0.6) !important;
}

.width100{
    width: 100% !important;
}

.lateralNavCompta{
    background-color: rgb(236, 240, 245) !important;
}

.lateralNavCompta :hover{
    color: #ffffff !important;
}

.switchMenu{
    cursor: pointer;
}
.switchMenu div{
    width: 24px;
    height: 1px;
    background: #fff;
    margin: 3px 0;
}
/* Burger du header principal en blanc, comme le switchMenu POS */
.menu-toggle div{
    background: #fff !important;
}
.spinnerInventoryRh{
    position: absolute;
    top: 28%;
    right: 17%;
    z-index: 200;
}
#footerPos{
    width:100vw;
    background-color:#fff;
    padding:16px;
    margin-bottom:-20px;
    max-height: 85px;
}

.text-right{
    text-align:right;
}

.bg-very-light{
    background-color: #e9ecef !important;
}

.loaderSearchBilanInventairePos{
    position: absolute;
    top: 50%;
    right: 5%;
}

.notifIconDetail{
    width: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}
.notifLine :hover{
    background-color: #eeeeee;
}

.fs05{
    font-size: 0.5rem !important;
}

.pos-layout {
    display: flex;
    width: 100%;
    flex-wrap: nowrap;
}

.pos-col-7 {
    width: 58.3333%;
    padding: 0;
    min-width: 0;
}

.pos-col-5 {
    width: 41.6667%;
    padding: 0;
    min-width: 0;
}

.fs06{
    font-size: 0.6rem !important;
}

.fs07{
    font-size: 0.7rem !important;
}

#leftPos{
    background-color:#fff;
    height:calc(100vh - 166px);
    max-height: calc(100vh - 166px);
    overflow-y: scroll;
    overflow-x: hidden;
}
#rightPos{
    background-color:#fff;
    height:calc(100vh - 166px);
    max-height: calc(100vh - 166px);
    overflow: hidden;
}

.raccourciCaisseRestauration{
    height:calc(100vh - 355px);
    overflow-y:scroll;
}

.raccourciCaisse{
    height:calc(100vh - 230px);
    overflow-y:scroll;
}

/* Quand la barre Reset/Retour est affichée au-dessus de la grille (navigation dans les raccourcis),
   on retranche sa hauteur pour éviter que le bas de la grille soit rogné par #rightPos (overflow:hidden) */
.raccourciCaisse.hasNavBar{
    height:calc(100vh - 270px);
}

.raccourciCaisseRestauration.hasNavBar{
    height:calc(100vh - 395px);
}

.commandeCaisse{
    height:calc(100vh - 360px);
    overflow-y:scroll;
    overflow-x:hidden;
}

.disabled {
    background-color: dimgrey !important;
    color: linen !important;
    opacity: 0.5 !important;
    height: 100px;
    position: absolute;
    top: 0;
    width: 99%;
}

.vignetteBaseArticle{
    max-width: 100px !important;
    max-height: 45px !important;
    cursor: pointer;
}

.overlayRaccourci {
    background-color: black !important;
    color: linen !important;
    opacity: 0.5 !important;
    height: 100px;
    position: absolute;
    top: 0;
    width: 99%;
}

.imgRaccourci{
    width:100%;
    height:100%;
    object-fit:contain;
}

.itemTitle{
    font-size: 0.8em;
    position: absolute;
    bottom: 0%;
    width: 99%;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
}

.styleImgRaccourci{
    box-shadow: inset 0 0 0 1px #000;
    background-color: #000;
}

.inputDepotCheckLabel{
    width: 80%;
}
.inputDepotCheck{
    width: 80%;
    margin-right: 1em;
}
.checkBoxtDepotCheck{
    width: 10%;
    text-align: end;
}

.raccourciHistoClient{
    display:table;
    height: 100px;
}

.raccourciHistoClient .textAlign{
    display:table-cell;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    padding:1px;
    word-break: break-all;
    font-size: 0.7rem;
}

.raccourciPos{
    display:table;
    height: 100px;
    cursor: pointer;
}

.loadFilterRestock{
    position: absolute;
    top: 25%;
    left: 90%;
}

.raccourciPos:hover{
    background-color: #3db5e6 !important;
    color:#000 !important;
} 
.raccourciPos .textAlign{
    display:table-cell;
    height: 100%;
    text-align: center;
    vertical-align: middle;
    padding:1px;
    word-break: break-all;
    font-size: 0.7rem;
}
.checkmark:hover{
    background-color:#FFF !important;
}

.nav-clockBtn{
    background-color: rgba(130,179,207,0) !important;
    border: none !important;
    box-shadow: none !important;
}

.customField-articleDetail__header{
    padding-left: 1.75em !important;
    padding-right: 1.75em !important;
}

.clientEdit__header{
    padding-left:2 !important;
    padding-right:2 !important;
}

.img-contain{
    max-height: 310px !important;
    max-width: 370px !important;
    object-fit: contain;
}

.dataListPerso{
    position:absolute;
    min-width:300px;
    max-height: 500px;
    overflow: scroll;
}
.dataListPerso a{
    padding: 0 0 0 5px;
}

.bg-expandTable{
    background-color: #f7f1e9 !important;
}

.arrow-back-wms{
    position: absolute ;
    left: 12px ;
    top: 10px ;
}

.arrow-back-zone{
    position: absolute ;
    left: 12px ;
    top: 53px ;
}

.arrowWithTitle{
    position: relative;
    left: 0;
    top: -35px;
}

.counter-boxscan-wms{
    position: absolute ;
    right: 10px ;
    top: 50px ;
}

.fs-card-scan{
    font-size: 0.88em;
}

.tableLineClick{
    cursor: pointer;
}
.tableLineClick:hover{
    opacity:0.5;
}

.selectWmsBlock {
    transform: scale(0.98);
    background-color: rgba(0, 0, 0, 0.15) !important;
}

.pointer{
    cursor: pointer;
}

.lien-quantite{
    cursor: pointer;
    text-decoration:underline;
}

.colorBlack{
    color: black;
}

.lien-quantite-pos{
    cursor: pointer;
    text-decoration:underline;
    font-weight: bold;
}
.lien-to{
    cursor: pointer;
    text-decoration:underline;
    color: blue;
}

.notificationPastille{
    background-color: blue;
    color: white;
    border-radius: 50%;
    padding: 4px 4px;
    margin-left: 4px;
}

.positionSpinnerStockNeg{
    position: absolute;
    top: 55%;
    left: 50%;
}

.fsArticlePos{
    font-size: 0.7rem !important;
}
.priceArticlePos{
    font-weight: bold !important;
    font-size: 0.7rem !important;
}

.itemNote{
    width: 60% !important;
}
.marginLeftArticle{
    margin-left: 0.1rem !important;
}

.changeModePayPosition{
    position: absolute;
    top: -0.2px;
    right: -45%;
}

.positionIconFacture{
    position: absolute;
    top: 35px;
    left: -1%;
}

.positionIconFactureModal{
    position: absolute;
    top: 35px;
    left: -3px;
}

.zIndexBtnNotePos{
    z-index: 200;
}
.positionEyeMdp{
    position: absolute;
    top: 56%;
    right: 1%;
    width: 30px;
    /* background-color: white; */
}

.crossPosition{
    position: absolute;
    right: 3%;
}

.crossPositionFacture{
    position: absolute;
    bottom: 0;
    right: 0;
}

.promoBadgePosition{
    position: absolute;
    right: 49%;
    margin-top: -9px;
}

.unitPricePosition{
    position: absolute;
    right: 48%;
}

.totalPricePosition{
    position: absolute;
    right: 6%;
}
.crossPaymentPosition{
    position: absolute;
    right: 3%;
    margin-top: 1%;
}

.paymentBtnPosition{
    position: absolute;
    bottom: -51px;
    right: 92px;
}

.scrollPayRight{
    overflow-y: scroll;
    overflow-x: hidden;
}
.bodyPaymentDue{
    height: 150px;
}
.textDuePosition{
    position: absolute;
    bottom: 7px;
}
.textTotalPosition{
    position: absolute;
    top: 10px;
    color: white;
}
.btnPlusArticleDetailPosition{
    position: absolute;
    top: 5px;
    right: 8px;
}
.loadingDotSize{
    width: 0.5rem !important;
    height: 0.5rem !important;
}

.sizeBtnPos{
    font-size: 10px !important;
}

.spinnerChangeModePosition{
    position: absolute;
    top: 32%;
    right: 30%;
}

.sizeSearchByCodeUpc{
    position: absolute;
    right: 20px;
    top: 55px;
    width: 50%;
}

.mtArticlePos{
    margin-top: -60px !important;
}

.spinnerSearchStockPos{
    position: absolute;
    top: 9px;
    right: 10px;
}

.spinnerRightPos{
    position: absolute;
    top: 0;
    right: 20%;
    z-index: 200;
}

.inventaireBeardcrumb{
    font-size: 0.6rem;
    font-weight: bold;
    /* margin-top: -20px; */
}

.disablesScreen{
    background-color: rgba(0, 0, 0, .2);
    height: 100vh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.mr1{
    margin-right: 0.5rem;
}

.positionBtnValideInventory{
    position: absolute;
    top: 0;
    right: 0;
}

.stripeBg{
    background-color: #DCDCDC;
}

.stripeBgRefund{
    background-color: #75ce10;
}

.stripePadding{
    padding-bottom: 6px;
    padding-top: 6px;
}
.stripePadding2{
    padding: 6px;
}

.searchStockBtnParent{
    text-align: end;
    position: absolute;
    right: 0.5%;
}

.clearFix::after{
    content: "";
    clear: both;
    display: table;
}
.paginate{
    text-decoration: underline;
    cursor: pointer;
}
.paginate:hover{
    text-decoration: none;
    opacity: 0.7;
}
.mlPromo{
    margin-left: 1rem;
}
.crossPromoArticlePosition{
    position: absolute;
    top: 37%;
    left: -2%;
}
.scrollPromoArticle{
    overflow-y: scroll;
    overflow-x: hidden;
}

.bold{
    font-weight: bold;
}
.maxHPromoArticle{
    max-height: 420px !important;
}

.promoArticleBG{
    background-color: black;
    color: white;
}

.totalPos{
    font-size: 1.3rem;
}
.dontRemise{
    font-size: 1rem;
}
.totalPos2{
    display: inline-block;
}

.btnTicket:active{
    border: 2px solid #a7a9d3;
}

.btnTicket:hover{
    box-shadow: 3px 2px 22px 1px rgba(0, 0, 0, 0.24);
}
.spinnerTicketSave{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px !important;
    height: 50px !important;
}

.toastPosition{
    position: absolute;
    z-index: 100000;
    right: 0;
}

.sellerPosition{
    position: absolute;
    top: 15%;
    right: -5%;
}

.topBarLeftPosition{
    position: absolute;
    top: 16%;
    right: -2%;
}

.topBarLeftPosition3{
    position: absolute;
    top: 40%;
    right: -2%;
}

.topBarLeftPosition4{
    position: absolute;
    top: 40%;
    right: 5%;
}

.positionPdfViwer{
    position: absolute !important;
    top: -2.2%;
    right: -1%;
}

.topBarLeftPosition2{
    position: absolute;
    top: 16%;
    right: 4%;
}

.loaderSectionPosition{
    position: absolute;
    top: 55%;
    right: 8%;
}

.spinnerAddRaccourci{
    position: absolute;
    top: 0;
    right: 5%;
}

.positionRaccourci{
    position: absolute;
    top: -10%;
    right: -1.5%;
}

.raccourciNumPos{
    position: absolute;
    top: 0;
    right: 2.5%;
}


.loaderSectionPosition2{
    position: absolute;
    top: 30%;
    right: 8%;
}

.historiqueGiftCardPosition{
    position: absolute;
    top: 15%;
    right: 15%;
}

.erpGiftCardPosition{
    position: absolute;
    top: 47%;
    right: 12%;
}

.displayMontantGiftCard{
    display: flex;
    justify-content: space-between;
}
.spinnerScanGiftCard{
    position: absolute;
    top: 55%;
    right: 0;
}
.articleRetour{
    background-color: #ffc107;
    padding-bottom: 6px;
    padding-top: 6px;
}

.toastHead{
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}
.toastIcon{
    font-size: 1.5rem;
    color: #9ACD32;
}

.bgInventoryDone{
    background-color: #d9fcd2 !important;
}

.sizeDotLoad{
    width: 6px !important;
    height: 6px !important;
}

.spinnerToRightPos{
    position: absolute;
    top: 25%;
    right: 10%;
}

.btnEditSaleOrder{
    position: absolute;
    right: -90%;
}

.z-index1000{
    z-index: 1000;
}
.z-index10000{
    z-index: 10000 !important;
}
.z-index1000000{
    z-index: 100000 !important;
}
.pr-03{
    padding-right: 0.3rem !important;
}

.mtPos60{
    margin-top: -80px !important;
}

.posMenuOpen .mtPos60{
    margin-top: -32px !important;
}

.posMenuOpen #leftPos,
.posMenuOpen #rightPos{
    height: calc(100vh - 214px);
    max-height: calc(100vh - 214px);
}
.posMenuOpen .raccourciCaisse{
    height: calc(100vh - 278px);
}
.posMenuOpen .raccourciCaisse.hasNavBar{
    height: calc(100vh - 318px);
}

.btnFooterPos{
    display: flex !important;
    justify-content: space-evenly !important;
    place-items: flex-start !important;
}

.right0{
    right: 0;
}

.fs35{
    font-size: 35px !important;
}

.btnSwitchItemCard{
    position: fixed;
    right: 2%;
    top: 60%;
    display: flex;
    flex-direction: column;
}

.newPromoPlusPosition{
    position: absolute;
    top: 2%;
    right: 0.5%;
}

.loaderPdfHistorique{
    z-index: 50;
    position: fixed;
    top: 40%;
    left: 40%;
    background-color: white;
    padding: 1.5rem;
    border: solid 1px black;
    box-shadow: 0px 5px 5px black;
}

.loaderEditUpc{
    position: absolute;
    top:14.5%;
    right: 10%;
}

.loaderItemWms{
    position: absolute;
    top: 6%;
    right: 25%;
    z-index: 1000;
}

.positionOpenCaisse{
    position: absolute;
    top: 0.8%;
    right: 1%;
}

.btnProfilActionPos{
    position: absolute;
    top: 0;
    right: 30%;
}

.spinnerPointageScan{
    position: absolute;
    top: 40%;
    right: 5%;
}

.btnRefreshPosition{
    position: absolute;
    top: -25%;
    right: 7%;
}

.btnRefreshPositionCsv{
    position: absolute;
    top: -30%;
    right: 10%;
}

.btnAddPeripherique{
    position: absolute;
    top: 2%;
    right: 1.5%;
}

.periphLineCross{
    position: absolute;
    top: -2.5px;
    right: -2.5px;
}

.arrowArticleInfoWms{
    position: absolute;
    bottom: 0;
    left: 50%;
    font-size: 1.5rem;
}

.openCaissePosition{
    position: absolute;
    top: 5%;
    right: 5%;
    color: white;
}

.toBottom{
    position:absolute;
    left:25%;
    bottom:0;
}

.pErpArticle{
    padding-left: 0.3rem;
    padding-right: 0.3rem;
}

.nav-tabs{
    margin-top:-25px;
    font-size:11px;
}

.containerPosLogo{
    margin: auto;
    max-width: 60px;
}

.table {
    table-layout: auto !important;
    z-index: 1000;
}

.head-action-row {
    /* position: absolute !important;
    left:0px !important;
    z-index: 2 !important;
    background-color: white !important; */
    width: 100px !important;
}

.body-action-row {
    /* position: absolute !important;
    left:0px !important;
    z-index: 2 !important;
    background-color: white !important; */
    width: 100px !important;
}

.table-wrapper {
    max-height: 700px; 
    overflow-y: auto;  
    overflow-x: auto;  
}

/* Conteneur pour activer le scroll horizontal */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%; 
}

/* Fixe la première colonne du tableau */
.react-bootstrap-table:not(.no-sticky) th:first-child {
    position: sticky !important;
    left: 0 !important;  /* Coller à gauche */
    z-index: 102 !important;  /* Pour s'assurer que la colonne reste devant */
    background-color: #f8f9fa  !important;  /* Un fond solide pour éviter des superpositions */
    width: 80px;  /* Largeur fixe pour la première colonne */
    border: none !important;
}
.react-bootstrap-table:not(.no-sticky) td:first-child {
    position: sticky !important;
    left: 0 !important;  /* Coller à gauche */
    z-index: 100 !important;  /* Pour s'assurer que la colonne reste devant */
    background-color: #f8f9fa  !important;  /* Un fond solide pour éviter des superpositions */
    width: 80px;  /* Largeur fixe pour la première colonne */
    border-left: none !important;
    border-right: none !important;
}

/* Fixe la barre supérieure du tableau */
.react-bootstrap-table thead th {
    position: sticky !important;
    top: 0 !important; /* Coller en haut */
    z-index: 3 !important; /* Pour s'assurer que l'en-tête reste au-dessus du contenu */
    background-color: #f8f9fa !important; /* Un fond pour l'en-tête */
    border-bottom: none !important;
    border-top: none !important;
}

.react-bootstrap-table thead tr {
    border-bottom: none !important;
    border-top: none !important;
}

.react-bootstrap-table thead tr th {
    border-bottom: none !important;
    border-top: none !important;
}

.react-bootstrap-table thead {
    border-bottom: none !important;
    border-top: none !important;
}

/* Loader point */
.loaderdot {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}
  
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #007bff;
    margin: 0 5px;
    opacity: 0;
    animation: dot-animation 2s infinite;
}

@keyframes dot-animation {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.dot:nth-child(2) {
    animation-delay: 0.5s;
}

.dot:nth-child(3) {
    animation-delay: 1s;
}

.dot:nth-child(4) {
    animation-delay: 1.5s;
}
/* End Loader point */

.message-bubble-left{
    display: inline-block;
    position: relative;
    max-width: 70%;
    padding: 0.5rem;
    border-radius: 10px;
    background-color: #dcdcdc;
    margin-bottom: 0.2em;
    line-height: 1.4;
    font-size: 1em;
}

.message-bubble-right{
    display: inline-block;
    position: relative;
    max-width: 70%;
    padding: 0.5rem;
    border-radius: 10px;
    background-color: #87CEEB;
    margin-bottom: 0.2em;
    line-height: 1.4;
    font-size: 1em;
}

/* Bouton animé*/
.animated-button1 {
    background: #2f4f4f;
    display: inline-block;
    -webkit-transform: translate(0%, 0%);
            transform: translate(0%, 0%);
    overflow: hidden;
    color: white;
    text-align: center;
    text-decoration: none;
    -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
  
.animated-button1::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #ad8585;
    opacity: 0;
    -webkit-transition: .2s opacity ease-in-out;
    transition: .2s opacity ease-in-out;
}
  
.animated-button1:hover::before {
    opacity: 0.2;
    cursor: pointer;
}
  
.animated-button1 span {
    position: absolute;
}
  
.animated-button1 span:nth-child(1) {
    top: 0px;
    left: 0px;
    width: 100%;
    height: 2px;
    background: -webkit-gradient(linear, right top, left top, from(rgba(248,248,255,0))), to(#F0FFFF);
    background: linear-gradient(to left, rgba(248,248,255,0), #F0FFFF);
    -webkit-animation: 2s animateTop linear infinite;
            animation: 2s animateTop linear infinite;
}
  
@keyframes animateTop {
    0% {
      -webkit-transform: translateX(100%);
              transform: translateX(100%);
    }
    100% {
      -webkit-transform: translateX(-100%);
              transform: translateX(-100%);
    }
}
  
.animated-button1 span:nth-child(2) {
    top: 0px;
    right: 0px;
    height: 100%;
    width: 2px;
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(248,248,255,0)), to(#F0FFFF));
    background: linear-gradient(to top, rgba(248,248,255,0), #F0FFFF);
    -webkit-animation: 2s animateRight linear -1s infinite;
            animation: 2s animateRight linear -1s infinite;
}
  
@keyframes animateRight {
    0% {
      -webkit-transform: translateY(100%);
              transform: translateY(100%);
    }
    100% {
      -webkit-transform: translateY(-100%);
              transform: translateY(-100%);
    }
}
  
.animated-button1 span:nth-child(3) {
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 2px;
    background: -webkit-gradient(linear, left top, right top, from(rgba(248,248,255,0)), to(#F0FFFF));
    background: linear-gradient(to right, rgba(248,248,255,0), #F0FFFF);
    -webkit-animation: 2s animateBottom linear infinite;
            animation: 2s animateBottom linear infinite;
}
  
@keyframes animateBottom {
    0% {
      -webkit-transform: translateX(-100%);
              transform: translateX(-100%);
    }
    100% {
      -webkit-transform: translateX(100%);
              transform: translateX(100%);
    }
}
  
.animated-button1 span:nth-child(4) {
    top: 0px;
    left: 0px;
    height: 100%;
    width: 2px;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(248,248,255,0)), to(#F0FFFF));
    background: linear-gradient(to bottom, rgba(248,248,255,0), #F0FFFF);
    -webkit-animation: 2s animateLeft linear -1s infinite;
            animation: 2s animateLeft linear -1s infinite;
}
  
@keyframes animateLeft {
    0% {
      -webkit-transform: translateY(-100%);
              transform: translateY(-100%);
    }
    100% {
      -webkit-transform: translateY(100%);
              transform: translateY(100%);
    }
}
  
/* Bouton animé end */

/* Bouton animé contour noir*/
.animated-button2 {
    background: #2f4f4f;
    display: inline-block;
    -webkit-transform: translate(0%, 0%);
            transform: translate(0%, 0%);
    overflow: hidden;
    color: white;
    text-align: center;
    text-decoration: none;
    -webkit-box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
  
.animated-button2::before {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #ad8585;
    opacity: 0;
    -webkit-transition: .2s opacity ease-in-out;
    transition: .2s opacity ease-in-out;
}
  
/* .animated-button2:hover::before {
    opacity: 0.2;
    cursor: pointer;
} */
  
.animated-button2 span {
    position: absolute;
}
  
.animated-button2 span:nth-child(1) {
    top: 0px;
    left: 0px;
    width: 100%;
    height: 2px;
    background: -webkit-gradient(linear, right top, left top, from(rgba(248,248,255,0))), to(#FF4500);
    background: linear-gradient(to left, rgba(248,248,255,0), #FF4500);
    -webkit-animation: 2s animateTop linear infinite;
            animation: 2s animateTop linear infinite;
}
  
@keyframes animateTop {
    0% {
      -webkit-transform: translateX(100%);
              transform: translateX(100%);
    }
    100% {
      -webkit-transform: translateX(-100%);
              transform: translateX(-100%);
    }
}
  
.animated-button2 span:nth-child(2) {
    top: 0px;
    right: 0px;
    height: 100%;
    width: 2px;
    background: -webkit-gradient(linear, left bottom, left top, from(rgba(248,248,255,0)), to(#FF4500));
    background: linear-gradient(to top, rgba(248,248,255,0), #FF4500);
    -webkit-animation: 2s animateRight linear -1s infinite;
            animation: 2s animateRight linear -1s infinite;
}
  
@keyframes animateRight {
    0% {
      -webkit-transform: translateY(100%);
              transform: translateY(100%);
    }
    100% {
      -webkit-transform: translateY(-100%);
              transform: translateY(-100%);
    }
}
  
.animated-button2 span:nth-child(3) {
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 2px;
    background: -webkit-gradient(linear, left top, right top, from(rgba(248,248,255,0)), to(#FF4500));
    background: linear-gradient(to right, rgba(248,248,255,0), #FF4500);
    -webkit-animation: 2s animateBottom linear infinite;
            animation: 2s animateBottom linear infinite;
}
  
@keyframes animateBottom {
    0% {
      -webkit-transform: translateX(-100%);
              transform: translateX(-100%);
    }
    100% {
      -webkit-transform: translateX(100%);
              transform: translateX(100%);
    }
}
  
.animated-button2 span:nth-child(4) {
    top: 0px;
    left: 0px;
    height: 100%;
    width: 2px;
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(248,248,255,0)), to(#FF4500));
    background: linear-gradient(to bottom, rgba(248,248,255,0), #FF4500);
    -webkit-animation: 2s animateLeft linear -1s infinite;
            animation: 2s animateLeft linear -1s infinite;
}
  
@keyframes animateLeft {
    0% {
      -webkit-transform: translateY(-100%);
              transform: translateY(-100%);
    }
    100% {
      -webkit-transform: translateY(100%);
              transform: translateY(100%);
    }
}
  
/* Bouton animé end */

#app-cover {
    display: table;
    width: 600px;
    margin: 80px auto;
    counter-reset: button-counter;
  }
  
.roww {
    display: table-row;
}
  
.toggle-button-cover {
    display: table-cell;
    position: relative;
    width: 200px;
    height: 140px;
    box-sizing: border-box;
}
  
.button-cover {
    height: 100px;
    margin: 20px;
    background-color: #fff;
    box-shadow: 0 10px 20px -8px #c5d6d6;
    border-radius: 4px;
}
  
.button-cover:before {
    counter-increment: button-counter;
    content: counter(button-counter);
    position: absolute;
    right: 0;
    bottom: 0;
    color: #d7e3e3;
    font-size: 12px;
    line-height: 1;
    padding: 5px;
}
  
.button-cover,
.knobs,
.layer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
  
.button {
    position: relative;
    top: 50%;
    width: 74px;
    height: 36px;
    margin: -20px auto 0 auto;
    overflow: hidden;
}
  
.button.r,
.button.r .layer {
    border-radius: 100px;
}
  
.button.b2 {
    border-radius: 2px;
}
  
.checkbox {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}
  
.knobs {
    z-index: 2;
}
  
.layer {
    width: 100%;
    background-color: #ebf7fc;
    transition: 0.3s ease all;
    z-index: 1;
}

.containerModalRewardPosGc {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.containerModalRewardPos {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.rewardListPos {
    position: absolute;
    top: 0;
    right: -100%; 
    width: 100%;
    height: 100%;
    background-color: white;
    transition: right 0.3s ease-in-out;
}

.rewardListPos.visible {
    right: 0; /* Entrer dans le container */
    position: relative;
}

.btnFidelite{
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.8),
        transparent
    );
    /* box-shadow: 1px 1px 10px 5px rgba(255, 255, 0, 0.6); */
    background-size: 200% 100%; /* Doublez la largeur pour permettre le déplacement */
    animation: gradientMove 5s linear infinite;
}

.leftPosLight{
    /* position:relative sert uniquement de repère pour le pseudo-élément ci-dessous */
    position: relative;
}

/* Halo dessiné via un pseudo-élément superposé : peint après (donc au-dessus) du .card-body
   et de son fond blanc opaque, et ne déborde jamais de #leftPos donc pas de souci d'overflow */
.leftPosLight::after{
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 6px rgba(255, 215, 0, 1);
    pointer-events: none;
    z-index: 2;
}

.differentThanConditionnement{
    box-shadow: 1px 1px 4px 4px rgba(255, 215, 0, 1) !important;
}

.lessThanMOQ{
    box-shadow: 1px 1px 4px 4px rgb(250, 8, 8) !important;
}

.positionInputPrintTag{
    position: fixed;
}

.mtm18{
    margin-top: -18px !important;
}

.signatureCadre{
    /* border: 1px solid black; */
    width: 100% !important;
}


.superpositionLoaderWms{
    height: 100vh !important;
    width: 100vw !important;
    position: absolute !important;
    z-index: 10000 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    top: 0 !important;
}

.superpositionLoaderErp{
    height: 100vh !important;
    width: 100vw !important;
    position: absolute !important;
    z-index: 10000 !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    top: 0 !important;
    left: 0;
}

.retourChariotTexte{
    white-space: normal !important;
    word-break: break-word !important;
}

.superpositionLoaderPrintTagWms{
    height: 200vh !important;
    width: 100vw !important;
    position: absolute !important;
    z-index: 10000 !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    top: -2.8% !important;
    left: 0 !important;
}

.superpositionLoaderPrintTag{
    height: 200vh !important;
    width: 100vw !important;
    position: absolute !important;
    z-index: 10000 !important;
    background-color: rgba(0, 0, 0, 0.2) !important;
    top: -16% !important;
    left: 0 !important;
}

.loadingMessageTags{
    display: flex;
    align-items: center;
    font-weight: bold;
    justify-content: center;
    color: white;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    font-size: 1.2rem;
    text-shadow: 
    -0.5px -0.5px 0 #000, 
     0.5px -0.5px 0 #000,
    -0.5px  0.5px 0 #000,
     0.5px  0.5px 0 #000;
     margin-top:-150px;
}

.sousMenuScroll{
    overflow-y: auto !important;
    scrollbar-width: thin !important;
}

.paymentFormScroll{
    overflow-y: auto !important;
}

._loading_overlay_overlay {
    background-color: rgba(0, 0, 0, 0.2) !important; /* Choisis la couleur que tu veux */
    color: black !important;
}

._loading_overlay_overlay ._loading_overlay_spinner svg circle {
    stroke: black !important; 
}

@keyframes gradientMove {
    0% {
        background-position: 200% 0; /* Commence en dehors à droite */
    }
    100% {
        background-position: -200% 0; /* Se termine en dehors à gauche */
    }
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* Barre de recherche globale du header : masquée sous 500px pour laisser la place aux boutons du header (menu-toggle, dropdowns...) */
.header-global-search{
    display: none;
}
@media (min-width: 500px) {
    .header-global-search{
        display: block;
    }
}

@media (min-width: 991px) {
    .positionInputPrintTag{
        position: absolute !important;
        right: 0 !important;
    }
}

@media (min-width: 1200px) {
    
    .totalPricePosition{
        right: 8%;
    }
    .unitPricePosition{
        right: 50%;
    }
}

@media (min-width: 1100px) {
    
    .notifDetail{
        width: 80%;
        margin: auto !important;
    }
}

@media (max-height: 675px) {
    .sousMenuScroll{
        max-height: 450px !important;
    }
}
@media (max-height: 590px) {
    .sousMenuScroll{
        max-height: 350px !important;
    }
}
@media (max-height: 500px) {
    .sousMenuScroll{
        max-height: 280px !important;
    }
}

._loading_overlay_overlay {
    background-color: rgba(0, 0, 0, 0.2) !important; /* Choisis la couleur que tu veux */
    color: black !important;
}

._loading_overlay_overlay ._loading_overlay_spinner svg circle {
    stroke: black !important; 
}

.pastille {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(39, 35, 35);
    border-radius: 50%; 
    text-align: center;
    font-weight: bold;
    color: white;
    overflow: hidden;
    width: 20px;
    height : 20px;
}

.comboLine {
    position: relative;
}

.comboLine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px; /* largeur de la barre */
    height: 100%;
    background-color: #3c8dbc; /* couleur de la barre */
    /* border-radius: 3px 0 0 3px; */
    z-index: 1;
}

.badgeStockRaccourci{
    position: absolute;
    z-index: 10;
    top: 4%;
    right: 1%;
    font-size: 11px !important;
}
.textDark{
    color: black !important;
}

.positionCrossCustomMadeItem{
    position: absolute;
    top: 30%;
    right: -2%;
    cursor: pointer;
}

.modal-dialog.modal-95w {
  max-width: 95vw !important;
  width: 95vw;
}

.modal-dialog.modal-95w .modal-content {
  min-height: 95vh;
}

.modal-low{
    filter: brightness(0.5);
}

.tab-content{
    padding: 0 !important;
    padding-top: 1rem !important;
}

.card{
    border-radius: 0 !important;
}

.card-header:first-child{
    border-radius: 0 !important;
}

.main-content-wrap:has(.pos-page-root) {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Payment pad grid — remplace col Bootstrap pour éviter l'overflow des marges négatives */
.payment-pad-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.payment-pad-cell {
    box-sizing: border-box;
    position: relative;
    padding: 1px;
}

.payment-pad-cell--full  { flex: 0 0 100%; width: 100%; }
.payment-pad-cell--half  { flex: 0 0 50%; }
.payment-pad-cell--third { flex: 0 0 33.3333%; }

/* ===== Welcome Page ===== */

.welcome-page {
    margin-top: -60px;
}

/* En mobile le sous-menu horizontal ne prend pas de place (hors-écran), le -60px
   ci-dessus n'a donc plus lieu d'être : il rognait le haut des vignettes sous le header fixe */
@media (max-width: 767px) {
    .welcome-page {
        margin-top: 0;
    }
}

.welcome-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.welcome-section-accent {
    display: inline-block;
    width: 4px;
    height: 20px;
    border-radius: 3px;
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.modules-accent { background-color: #6c63ff; }
.pos-accent     { background-color: #28a745; }
.wms-accent     { background-color: #e6a800; }

.welcome-section-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #8a9ab5;
    margin: 0;
}

/* Module cards — tuiles colorées cliquables */
.welcome-module-card {
    border-radius: 12px !important;
    padding: 2rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 130px;
    justify-content: center;
    user-select: none;
}

.welcome-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
}

.welcome-module-icon {
    font-size: 2.6rem;
    margin-bottom: 0.75rem;
    display: block;
}

.welcome-module-label {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
}

.wmc-erp          { background-color: #5468d4; color: #fff; }
.wmc-admin-module { background-color: #c62828; color: #fff; }
.wmc-admin        { background-color: #546e7a; color: #fff; }
.wmc-invoice      { background-color: #0288b7; color: #fff; }
.wmc-users        { background-color: #7b1fa2; color: #fff; }
.wmc-rhtime       { background-color: #e07516; color: #fff; }

/* Store cards (POS / WMS) — tuiles pleine couleur, cohérentes avec les modules du haut */
.welcome-store-card {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: visible;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.75rem 1rem 1.5rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    user-select: none;
    position: relative;
}

.welcome-store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25) !important;
}

.wsc-pos { background-color: #28a745; color: #fff; }
.wsc-wms { background-color: #e6a800; color: #fff; }

.welcome-store-icon {
    font-size: 2.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    display: block;
}

.welcome-store-logo {
    max-height: 40px;
    max-width: 80%;
    object-fit: contain;
    margin-bottom: 0.6rem;
    opacity: 0.85;
}

.welcome-store-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.welcome-store-type-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Menu ⋮ (POS uniquement) */
.welcome-store-menu {
    position: absolute;
    top: 0.55rem;
    right: 0.55rem;
}

.welcome-store-menu-btn {
    background: rgba(255, 255, 255, 0.18);
    border: none;
    color: #fff;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.welcome-store-menu-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.welcome-store-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    min-width: 170px;
    overflow: hidden;
    z-index: 200;
}

.welcome-store-dropdown button {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 0.85rem;
    color: #2d3748;
    cursor: pointer;
    white-space: nowrap;
}

.welcome-store-dropdown button:hover {
    background: #f5f5f5;
}

/* ===== End Welcome Page ===== */

/* Menu ⋮ sur les vignettes raccourci caisse (plus petit, collé à l'angle) */
.raccourciTile .welcome-store-menu {
    top: 2px;
    right: 2px;
}

.raccourciTile .welcome-store-menu-btn {
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    border-radius: 4px;
}

.backdrop-modal-on-modal {
    z-index: 1060 !important;
}

/* Aperçu du PDF du journal comptable (onglet Comptabilité de l'ERP) */
.journalComptaPreview {
    width: 100%;
    height: 78vh;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

/* Poignée de glisser-déposer des lignes du panier de construction d'un document (facturation) */
.billingLineDragHandle {
    cursor: grab;
}

.billingLineDragHandleDisabled {
    cursor: not-allowed;
}

/* ===== Assistant IA (chatbot) ===== */

.chatbot-ia-bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: var(--header-color, #1a6b7c);
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.chatbot-ia-bubble:hover {
    transform: scale(1.08);
}

.chatbot-ia-window {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1050;
    width: 380px;
    height: 560px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.chatbot-ia-window-expanded {
    width: 640px;
    height: calc(100vh - 48px);
}

.chatbot-ia-header {
    background: var(--header-color, #1a6b7c);
    color: #fff;
    padding: 10px 14px;
}

/* Dictée en cours : l'en-tête passe au rouge et un voyant d'enregistrement clignote */
.chatbot-ia-header-recording {
    background: #c62828;
    transition: background 0.2s;
}

.chatbot-ia-rec-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: chatbot-ia-rec-blink 1s ease-in-out infinite;
}

@keyframes chatbot-ia-rec-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.chatbot-ia-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-ia-title {
    font-weight: 600;
}

.chatbot-ia-actions button {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.85;
    padding: 2px 6px;
    font-size: 1.05rem;
    cursor: pointer;
}

/* Lecture à voix haute activée : le bouton haut-parleur reste allumé */
.chatbot-ia-actions button.chatbot-ia-action-on {
    opacity: 1;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
}

.chatbot-ia-actions button:hover {
    opacity: 1;
}

.chatbot-ia-usage {
    margin-top: 6px;
    font-size: 0.75rem;
}

.chatbot-ia-usage-bar {
    position: relative;
    height: 5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
    margin-bottom: 2px;
}

.chatbot-ia-usage-fill {
    height: 100%;
    max-width: 100%;
    border-radius: 3px;
    background: #fff;
}

/* Fin du pack sur la jauge : au-delà commence le dépassement autorisé */
.chatbot-ia-usage-mark {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 11px;
    background: #fff;
    transform: translateX(-1px);
}

/* Déblocage d'un dépassement, sous le message « quota atteint » */
.chatbot-ia-unlock {
    margin-top: 8px;
    font-size: 0.85rem;
}

.chatbot-ia-unlock-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.chatbot-ia-unlock-row input {
    max-width: 110px;
}

/* Onglet « Consommation IA » de la configuration des accès */
.chatbot-ia-quota-gauge {
    position: relative;
}

.chatbot-ia-quota-mark {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: #333;
    transform: translateX(-1px);
}

.chatbot-ia-quota-input {
    max-width: 130px;
}

.chatbot-ia-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f5f7f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-ia-text {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.chatbot-ia-message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 12px;
}

.chatbot-ia-message-user {
    align-self: flex-end;
    background: var(--header-color, #1a6b7c);
    color: #fff;
    border-bottom-right-radius: 3px;
}

.chatbot-ia-message-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e3e8ec;
    border-bottom-left-radius: 3px;
}

.chatbot-ia-link {
    margin: 2px 6px 2px 0;
}

.chatbot-ia-confirm {
    margin-top: 4px;
    padding: 8px;
    border-radius: 8px;
    background: #f5f7f9;
    border: 1px dashed #b8c4cc;
}

.chatbot-ia-decision {
    font-size: 0.85rem;
}

/* Recapitulatif d'une modification proposee par l'assistant (avant confirmation) */
/* Un article dans un recapitulatif qui en compte plusieurs */
.chatbot-ia-write-article + .chatbot-ia-write-article {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #d4dce2;
}

.chatbot-ia-write-list {
    margin: 4px 0 8px 0;
    padding-left: 18px;
    font-size: 0.85rem;
}

.chatbot-ia-write-list li {
    margin-bottom: 4px;
    word-break: break-word;
}

.chatbot-ia-write-warning {
    margin-top: 2px;
    color: #b76e00;
    font-size: 0.8rem;
}

/* Erreurs de saisie renvoyees par l'ecran quand une ecriture est refusee */
.chatbot-ia-validation {
    margin-top: 4px;
    padding: 8px;
    border-radius: 8px;
    background: #fdf1f0;
    border: 1px solid #f0c8c4;
    color: #a1362c;
    font-size: 0.85rem;
}

.chatbot-ia-validation ul {
    margin: 0;
    padding-left: 18px;
}

/* Listes à puces dans les réponses de l'assistant (Markdown simple) */
.chatbot-ia-list {
    margin: 0 0 6px 0;
    padding-left: 18px;
    font-size: 0.9rem;
}

/* Sources web citées sous une réponse (affichage exigé pour la recherche web) */
.chatbot-ia-sources {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e3e8ec;
    font-size: 0.75rem;
    color: #7a868e;
}

.chatbot-ia-sources ul {
    margin: 2px 0 0 0;
    padding-left: 16px;
}

.chatbot-ia-sources a {
    word-break: break-word;
}

/* Élément entouré en rouge par l'assistant (outil surligner) ; retiré au message suivant */
.chatbot-ia-highlight {
    outline: 3px solid #e53935 !important;
    outline-offset: 3px;
    border-radius: 4px;
    animation: chatbot-ia-highlight-pulse 1s ease-in-out 3;
}

@keyframes chatbot-ia-highlight-pulse {
    50% { outline-color: rgba(229, 57, 53, 0.35); }
}

/* Mention « Page consultée » : l'assistant a lu le texte de la page ouverte */
.chatbot-ia-info {
    margin: 0 0 4px 0;
    font-size: 0.75rem;
    color: #7a868e;
}

.chatbot-ia-empty .chatbot-ia-text {
    color: #5b6770;
}

.chatbot-ia-typing {
    display: flex;
    gap: 4px;
    padding: 12px 14px;
}

.chatbot-ia-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9aa7b0;
    animation: chatbot-ia-blink 1.2s infinite ease-in-out;
}

.chatbot-ia-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-ia-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chatbot-ia-blink {
    0%, 80%, 100% { opacity: 0.25; }
    40% { opacity: 1; }
}

.chatbot-ia-footer {
    padding: 8px 12px 12px;
    border-top: 1px solid #e3e8ec;
    background: #fff;
}

.chatbot-ia-input {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

/* La hauteur est posée en JS (ChatbotIa.jsx) : elle suit le contenu jusqu'à 5 lignes, puis défile.
   line-height doit rester une valeur lisible en pixels côté JS, d'où un nombre plutôt que "normal". */
.chatbot-ia-input textarea {
    flex: 1;
    resize: none;
    overflow-y: auto;
    line-height: 1.45;
    padding: 6px 10px;
    border: 1px solid #ccd4da;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chatbot-ia-input textarea:focus {
    outline: none;
    border-color: var(--header-color, #1a6b7c);
}

/* Bouton micro de la dictée : discret au repos, rouge pulsant pendant l'écoute */
.chatbot-ia-mic {
    color: #6c7a86;
    border: 1px solid #ccd4da;
    background: #fff;
}

.chatbot-ia-mic-active {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
    animation: chatbot-ia-mic-pulse 1.2s ease-in-out infinite;
}

@keyframes chatbot-ia-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
}

.chatbot-ia-mic-error {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #dc3545;
}

/* Bouton micro de la dictée : discret au repos, rouge pulsant pendant l'écoute */
.chatbot-ia-mic {
    color: #6c7a86;
    border: 1px solid #ccd4da;
    background: #fff;
}

.chatbot-ia-mic-active {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
    animation: chatbot-ia-mic-pulse 1.2s ease-in-out infinite;
}

@keyframes chatbot-ia-mic-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.45); }
    50% { box-shadow: 0 0 0 6px rgba(220, 53, 69, 0); }
}

.chatbot-ia-mic-error {
    margin-top: 6px;
    font-size: 0.78rem;
    color: #dc3545;
}

/* Pièces jointes du chat (PDF, images) : bouton trombone, même allure que le micro */
.chatbot-ia-attach {
    color: #6c7a86;
    border: 1px solid #ccd4da;
    background: #fff;
}

/* Pièces en attente d'envoi (au-dessus de la saisie) et pièces d'un message envoyé */
.chatbot-ia-pieces {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.chatbot-ia-piece {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 2px 8px;
    font-size: 0.78rem;
    border: 1px solid #ccd4da;
    border-radius: 12px;
    background: #f4f6f8;
    color: #3d4852;
}

.chatbot-ia-piece span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chatbot-ia-piece button {
    padding: 0;
    border: 0;
    background: none;
    color: #6c7a86;
    line-height: 1;
}

.chatbot-ia-piece button:hover {
    color: #dc3545;
}

/* Dans la bulle de l'utilisateur, les pastilles reprennent la couleur du texte de la bulle */
.chatbot-ia-message-user .chatbot-ia-piece {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: inherit;
}

/* Fichier produit par l'assistant (CSV d'import) : bouton de téléchargement sous la réponse */
.chatbot-ia-file {
    margin-top: 6px;
}

.chatbot-ia-file small {
    display: block;
    margin-top: 2px;
    color: #6c7a86;
}

/* Mémoire de l'assistant : liste des consignes retenues, affichée à la place de la conversation */
.chatbot-ia-memory {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    background: #f5f7f9;
}

.chatbot-ia-memory-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.chatbot-ia-memory-head small {
    font-weight: 400;
    color: #7a868e;
}

.chatbot-ia-memory-list {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.chatbot-ia-memory-list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e3e8ec;
    border-radius: 8px;
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.chatbot-ia-memory-list button {
    background: none;
    border: none;
    padding: 0 2px;
    color: #7a868e;
    cursor: pointer;
}

.chatbot-ia-memory-list button:hover {
    color: #d22346;
}

/* Graphique de vente généré par l'assistant : la fenêtre de chat est à z-index 1050, exactement la
   même valeur que .modal dans le Bootstrap embarqué du projet ($zindex-modal: 1050). Sans cette règle,
   c'est l'ordre du DOM qui départagerait la modale et la fenêtre de chat. */
.chatbot-ia-chart-modal {
    z-index: 1060;
}

/* Camembert : largeur bridée et centrée, sinon le disque flotte au milieu d'une bande vide */
.chatbot-ia-chart-wrap-pie {
    max-width: 900px;
    margin: 0 auto;
}

/* Réglages d'aspect au-dessus du graphique : rendu et couleurs des séries. */
.chatbot-ia-chart-reglages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    margin-bottom: 10px;
}

.chatbot-ia-chart-reglage {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.chatbot-ia-chart-reglage > span {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #85837b;
}

.chatbot-ia-chart-couleurs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.chatbot-ia-chart-couleur {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    font-size: 0.82rem;
    cursor: pointer;
}

/* Le sélecteur de couleur natif : ramené à une pastille, le nom de la série restant écrit à côté. */
.chatbot-ia-chart-couleur input[type="color"] {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #d5d4cf;
    border-radius: 5px;
    background: none;
    cursor: pointer;
}

/* Graphique escamoté pendant la vue tableau. Surtout pas display:none : le graphique perdrait ses
   dimensions et l'export PDF échouerait (jsPDF reçoit alors une image vide). Hors écran, il reste
   dessiné et exportable. Position absolue : il sort du flux, la fenêtre ne garde pas sa hauteur. */
.chatbot-ia-chart-offscreen {
    position: absolute;
    left: -10000px;
    top: 0;
}

/* Pastille de couleur de la vue tableau : rappelle la série du graphique, à côté de son nom écrit
   (la couleur ne porte jamais l'information seule). La couleur est posée en style inline, elle
   dépend du rang de la série. */
.chatbot-ia-chart-puce {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

/* ===== End Assistant IA ===== */
