.logo-margin {

    margin-left: -100px;
}

.login-text {
    text-align: left;
}

/* 1. Nouveau nom de classe sur ton header (remplace .test-header) */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* espace blocs gauche / milieu / droite */
    width: 100%;
    /* prend tout l’écran */
    padding: 0.5rem 1rem;
    /* éventuel padding */
}

/* 2. Suppression des marges par défaut */
.header-flex>* {
    margin: 0 !important;
}

/* 3. Le bloc de recherche peut grandir et se rétracter */
.header-flex .search-wrapper {
    flex: 1;
    /* occupe tout l’espace libre */
    max-width: 500px;
    /* facultatif : pour limiter sa largeur max */
    margin: 0 1rem;
    /* espace gauche/droite */
}

/* 4. Partie gauche et droite gardent leur taille */
.header-flex .header-left,
.header-flex .header-right {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    /* ne grandit pas */
}

.header-flex h2 {
    margin: 0px;
}

.header-flex .form-group {
    margin: 0px;
}

.header-flex .form-control {
    margin: 0px;
}

.headerDem h2 {
    margin: 0px;
}

/* ==============================
   Composant de recherche
   ============================== */
.search-component {
    position: relative;
    /* pour que la boîte soit relative à ce conteneur */
    width: 100%;
    /* prend toute la largeur de son parent */
}

.search-component .search-results {
    position: absolute;
    top: 100%;
    /* directement sous l’input */
    left: 0;
    width: 100%;
    /* 100% de .search-component */
    max-height: 300px;
    /* optionnel : limite la hauteur */
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    display: none;
    /* cachée par défaut */
    z-index: 1000;
}

.search-component .search-results .results-list li {
    padding: 0.5rem;
    cursor: pointer;
}

.search-component .search-results .results-list li:hover {
    background: #f5f5f5;
}

.light-text {
    color: white !important;
}

#search-results {
    position: relative !important;
    width: 100%;
    /* Prend la même largeur que l'input */
    max-width: 100%;
    /* Assure que la largeur ne dépasse pas celle de l'input */
    left: 0;
    /* Assurez-vous que le résultat commence juste sous l'input */
}

#top-search {
    width: 100%;
    /* Si vous voulez que l'input occupe toute la largeur du parent */
}

#search-results-commercial {
    position: relative !important;
    width: 100%;
    /* Prend la même largeur que l'input */
    max-width: 100%;
    /* Assure que la largeur ne dépasse pas celle de l'input */
    left: 0;
    /* Assurez-vous que le résultat commence juste sous l'input */
}

#top-search-commercial {
    width: 100%;
    /* Si vous voulez que l'input occupe toute la largeur du parent */
}

.results-list {
    margin-top: 30px !important;
    padding: 0;
    list-style-type: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* max-width: 400px; */
    background-color: #fff;
    position: absolute;
    width: -webkit-fill-available;
    max-height: 255px;
    overflow-y: auto;
    /* ou `overflow-y: scroll;` pour toujours afficher la barre */
    overflow-x: hidden;
}

.results-list li {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.results-list li:last-child {
    border-bottom: none;
}

.results-list li:hover {
    background-color: #f8f9fa;
}




.progress-bar {
    transition: width 1s ease-in-out;
}

.bordure-right {
    border-right: black 1px solid;
}

.devis-form {
    max-width: 800px;
}

.container-fluid div {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container-fluid img {
    max-width: 100%;
}

.container-fluid div {
    position: static !important;
    /* Annule la position relative/absolute */
    top: auto !important;
    /* Supprime les valeurs de top */
    left: auto !important;
    /* Supprime les valeurs de left */
    right: auto !important;
    /* Supprime les valeurs de right */
    bottom: auto !important;
    /* Supprime les valeurs de bottom */
    margin: 0;
    /* Centre les éléments horizontalement si nécessaire */
    display: block;
    /* Garantit un affichage en bloc */
}


.bg-success {
    background-color: green !important;
}

.success {
    background-color: #c4df9b;
}

.noSuccess {
    background-color: #fde3c6;
}

.warning {
    background-color: #bea7bf;
}

.danger {
    background-color: #f5989d;
}

.bg-primary2 {
    background-color: #2F4050;
}

/* Loader de tableau de recherche */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Fond gris semi-transparent */
    z-index: 9999;
    /* Assurez-vous qu'il est au-dessus de tout */
}

#loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    /* Au-dessus de l'overlay */
}

.disabled-card {
    opacity: 0.5;
    pointer-events: none;
}


.clickable-row {
    text-decoration: none;
    color: inherit;
    background-color: rgb(255, 255, 255);
}

.clickable-row:hover {
    background-color: rgb(240, 240, 240);
}

.clickable-row td {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.statut-toutes {
    border-bottom: 3px solid rgba(138, 138, 138, 0.33) !important;
    color: rgb(138, 138, 138);
}

.statut-toutes.active {
    border-bottom: 3px solid grey !important;
}

.statut-doublonsite {
    border-bottom: 3px solid rgba(0, 102, 255, 0.33) !important;
    color: rgba(138, 138, 138, 0.33);
}

.statut-doublonsite.active {
    border-bottom: 3px solid rgb(0, 102, 255) !important;
}

.statut-errone {
    border-bottom: 3px solid rgba(0, 255, 4, 0.33) !important;
    color: rgba(138, 138, 138, 0.33);
}

.statut-errone.active {
    border-bottom: 3px solid rgb(0, 255, 51) !important;

}

.statut-exploitée {
    border-bottom: 3px solid rgba(246, 255, 0, 0.33) !important;
    color: rgba(138, 138, 138, 0.33);
}

.statut-exploitée.active {
    border-bottom: 3px solid rgb(246, 255, 0) !important;

}

.statut-perdu {
    border-bottom: 3px solid rgba(255, 174, 0, 0.33) !important;
    color: rgba(138, 138, 138, 0.33);
}

.statut-perdu.active {
    border-bottom: 3px solid rgb(255, 174, 0) !important;

}

.statut-prospection {
    border-bottom: 3px solid rgba(255, 111, 0, 0.33) !important;
    color: rgba(138, 138, 138, 0.33);
}

.statut-prospection.active {
    border-bottom: 3px solid rgb(255, 111, 0) !important;

}

.statut-rdv {
    border-bottom: 3px solid rgba(149, 0, 255, 0.33) !important;
    color: rgba(138, 138, 138, 0.33);
}

.statut-rdv.active {
    border-bottom: 3px solid rgb(149, 0, 255) !important;

}

.statut-recontacter {
    border-bottom: 3px solid rgba(238, 0, 255, 0.33) !important;
    color: rgba(138, 138, 138, 0.33);
}

.statut-recontacter.active {
    border-bottom: 3px solid rgb(238, 0, 255) !important;

}

.statut-Unread {
    border-bottom: 3px solid rgba(0, 250, 216, 0.33) !important;
    color: rgba(138, 138, 138, 0.33);
}

.statut-Unread.active {
    border-bottom: 3px solid rgb(0, 250, 217) !important;
}


/* Couleur des onglets selon leur statut */
.statut-tous {
    border-bottom: 3px solid grey !important;
    /* Soulignement rouge pour "Confirmé" */
    color: rgba(138, 138, 138, 0.33);
}

.statut-en-cours {
    border-bottom: 3px solid rgba(0, 102, 255, 0.33) !important;
}

.statut-envoye {
    border-bottom: 3px solid rgba(255, 166, 0, 0.33) !important;
}

.statut-confirme {
    border-bottom: 3px solid rgba(89, 255, 0, 0.33) !important;
}

.statut-draft {
    border-bottom: 3px solid rgba(79, 81, 79, 0.33) !important;
}

.statut-perdu {
    border-bottom: 3px solid rgba(255, 0, 0, 0.33) !important;
}

.statut-tous.active {
    border-bottom: 3px solid grey !important;
}

.statut-en-cours.active {
    border-bottom: 3px solid blue !important;
}

.statut-envoye.active {
    border-bottom: 3px solid orange !important;
}

.statut-confirme.active {
    border-bottom: 3px solid green !important;
}

.statut-perdu.active {
    border-bottom: 3px solid red !important;
}


.statut-en-cours-border-shadow {
    /* background-color: rgb(0 102 255 / 5%) !important; */
    border: 3px solid rgba(0, 102, 255, 0.33) !important;
    box-shadow: 4px 3px 7px 0px rgba(0, 102, 255, 0.33) !important;
}

.statut-envoye-border-shadow {
    /* background-color: rgb(255 166 0 / 5%) !important; */
    border: 3px solid rgba(255, 166, 0, 0.33) !important;
    box-shadow: 4px 3px 7px 0px rgba(255, 166, 0, 0.33) !important;
}

.statut-confirme-border-shadow {
    /* background-color: rgb(89 255 0 / 5%) !important; */
    border: 3px solid rgba(84, 218, 12, 0.5) !important;
    box-shadow: 4px 3px 7px 0px rgba(84, 218, 12, 0.33) !important;
}

.statut-draft-border-shadow {
    /* background-color: rgb(79 81 79 / 5%) !important; */
    border: 3px solid rgba(79, 81, 79, 0.5) !important;
    box-shadow: 4px 3px 7px 0px rgba(79, 81, 79, 0.33) !important;
}

.statut-perdu-border-shadow {
    /* background-color: rgb(0 102 255 / 5%) !important; */
    border: 3px solid rgba(255, 0, 0, 0.33) !important;
    box-shadow: 4px 3px 7px 0px rgba(255, 0, 0, 0.33) !important;
}

.statut-en-cours-badge {
    background-color: rgba(0, 102, 255, 0.33);
    color: #212529;
}

.statut-envoye-badge {
    background-color: rgba(255, 166, 0, 0.33);
    color: #212529;

}

.statut-confirme-badge {
    background-color: rgba(84, 218, 12, 0.5);
    color: #212529;
}

.statut-draft-badge {
    background-color: rgba(79, 81, 79, 0.5);
    color: #212529;

}

.status-header-encours {
    background-color: rgba(0, 102, 255, 0.33);
}

.status-header-envoye {
    background-color: rgba(255, 166, 0, 0.33);
}

.status-header-confirme {
    background-color: rgba(84, 218, 12, 0.5);
}

.status-header-perdu {
    background-color: rgba(255, 0, 0, 0.33)
}

.status-header-draft {
    background-color: rgba(79, 81, 79, 0.5);
}

#statutTabs {
    color: #000;
}

.nav-tabs {
    margin-bottom: 1rem;
    border-bottom: none;
}

.nav-link.active {
    font-weight: bold;
    border-bottom: 3px solid #007bff;
    /* Vous pouvez ajuster la couleur */
}



.statut-ouvert {
    border-bottom: 3px solid rgba(0, 102, 255, 0.33) !important;
}

.statut-ferme {
    border-bottom: 3px solid rgba(255, 0, 0, 0.33) !important;
}


.statut-ouvert.active {
    border-bottom: 3px solid blue !important;
}

.statut-ferme.active {
    border-bottom: 3px solid red !important;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 8px 16px;
    margin: 0 5px;
    text-decoration: none;
    border-radius: 5px;
    color: #007bff;
    transition: background-color 0.3s;
}

.pagination a:hover {
    background-color: #f1f1f1;
}

/* Style pour les filtres de recherche */
.form-control {
    width: 100%;
    margin-bottom: 10px;
}

.table th,
.table td {
    vertical-align: middle;
    text-align: center;
}

.icon-add {
    position: absolute;
    top: 0px;
    right: 0px;
}

/* styles cartes commercial */
.icon-add:hover {
    filter: brightness(0.8);
}

.icon-add-style {
    font-size: 1.5rem;
    color: #fff;
}

.icon-color-green {
    background-color: #A0C416;
}

.icon-color-grey {
    background-color: #7A8490;
}

.icon-color-orange {
    background-color: #F1881B;
}

.icon-color-purple {
    background-color: #583B8B;
}

.badge-black {
    font-size: 0.9em;
    font-weight: bold;
    padding: 5px;
    background-color: #000 !important;
    color: #fff !important;
}

.badge-statut-contener {
    font-size: 0.9em;
    font-weight: bold;
    padding: 5px;
}

.cloned-devis {
    cursor: default !important;
}

/* Si le container est en "En attente" ou sans data-state, on remet le pointer */
.container-card[data-state="En attente"] .cloned-devis,
.container-card:not([data-state]) .cloned-devis {
    cursor: pointer !important;
}

/* afficher ou non les icones selon les statut des conteneurs */
.container-card[data-state="Envoyé"] .edit-container-btn,
.container-card[data-state="Accepté"] .edit-container-btn,
.container-card[data-state="Envoyé"] .toggle-state-btn,
.container-card[data-state="Accepté"] .toggle-state-btn {
    display: none;
}

/* fil ariane maritime */
.scrollable {
    max-height: 205px;
    overflow-y: auto;
}

/* Custom liste déroulante creation et modification conteneur */

.dropdown-menu .list-group {
    max-height: 250px;
    overflow-y: auto;
}

/* Custom une ligne sur deux liste des odl en attente  */
.odlList tr:nth-of-type(even) {
    background-color: #91226224;
}

/* Custom form   */

.form-control,
.form-select {
    background-color: #3aa4e466;
    border: 1.5px solid #3aa3e4;
    transition: border-color 0.2s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: #912262;
    /* bleu Bootstrap */
    box-shadow: #912263ae;
}


.dropdown-item.search-envoye {
    color: #2067b2; 
    /* background: ... */
}

.dropdown-item.search-draft {
    color: #888; 
}

.dropdown-item.search-confirme {
    color: #1ba65d; 
    font-weight: bold;
}

.dropdown-item.search-perdu {
    color: #d72d1d;
    text-decoration: line-through;
}

/* etc... */
