:root {
  --color-marque: #000041;
  --color-hover: #3645ff;
  --color-active: #3645ff;
  --topbar-height: 56px;
}

/* pour ne plus voir la progrss bar du haut*/
.turbo-progress-bar {
    display: none !important;
}

body {
    background-color: #f5f5f5;
    margin: 0;
}

.custom-alert {
    background-color: #ffe5e5;
    color: #b10000;
    border: 1px solid #f5c2c2;
    border-radius: 0.5rem;
}

.sidebar {
    position: fixed;
    top: var(--topbar-height);
    bottom: 0;
    left: 0;
    width: 250px;
    padding: 1rem;
    background-color: var(--color-marque);
    overflow-y: auto;
}

.sidebar .nav-link {
    color: #ffffff;
    background-color: transparent;
    transition: background-color 0.2s;
}

.sidebar .nav-link:hover {
    background-color: var(--color-hover); 
}

.sidebar .nav-link.active {
    background-color: var(--color-active);
    font-weight: 500;
    color: #ffffff;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background-color: var(--color-marque);
    /*border-bottom: 1px solid #dee2e6;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    z-index: 1030;
}

/*.content {
    margin-left: 250px;
    margin-top: var(--topbar-height);
    padding: 2rem; 
}*/

body.has-navbar .content {
    margin-left: 250px;
    margin-top: var(--topbar-height);
    padding: 0.5rem;
}

.title-edit {
    border-bottom: 2px solid var(--color-marque); /* utilise ta couleur */
    padding-bottom: 0.5rem; /* espace entre le texte et la bordure */
    font-weight: bold; /* si tu veux un titre un peu plus marqué */
    margin-bottom: 1rem; /* espace sous le titre */
}

/* Liens de pagination générés par KnpPaginator */
.page-link {
    color: #000 !important;
    text-decoration: none !important;
}

.page-link:hover {
    color: #000 !important;
    background-color: #f0f0f0;
    text-decoration: none !important;
}

.page-item.active .page-link {
    background-color: rgba(0, 0, 0, 0.25) !important;
    color: #000 !important;         
    border-color: rgba(0, 0, 0, 0.25) !important;
}

.page-link:focus {
    outline: none !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25) !important;
}

.btn-black {
    background-color: #000;
    color: #fff;
    border: none;
}

.btn-black:hover {
    background-color: #333;
    color: #fff;
}

.btn-marque {
    background-color: var(--color-marque);
    color: #fff;
    border: none;
    text-decoration: none;
}

.btn-marque:hover {
    background-color: var(--color-hover);
    color: #fff;
    text-decoration: none;
}

.home-btn {
    width: 300px;             /* plus large */
    font-size: 1.25rem;       /* texte plus grand */
    font-weight: 700;         /* texte en gras */
    text-align: center;       /* centrer le texte */
    padding: 0.75rem 1rem;    /* plus de padding pour un bouton plus grand */
}

.bg-marque {
    background-color: var(--color-marque);
    color: #fff;
    border: none;  
}

.border-card-marque {
    border: 2px solid var(--color-marque);
}


/* les formulaires */
.fixed-buttons-form {
    top: var(--topbar-height);
    z-index: 1020;
}

.onglet-sous-form .nav-link {
    color: #000;
    background-color: transparent;
    transition: background-color 0.2s;
}

.onglet-sous-form .nav-link:hover {
    background-color: var(--color-hover);
    color: #ffffff; 
}

.onglet-sous-form .nav-link.active {
    background-color: var(--color-active) !important;
    font-weight: 500;
    color: #ffffff;
}

.rotate-icon {
    transition: transform 0.3s;
}
button.collapsed .rotate-icon {
    transform: rotate(-90deg); /* icône vers la droite quand fermé */
}

.flash-message {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    animation: fadeOut 5s forwards;
}

.flash-message-onglet {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    white-space: nowrap;
    animation: fadeOut 5s forwards;
}

@keyframes fadeOut {
    0%, 80% { opacity: 1; max-height: 100px; margin: 10px 0; padding: 10px; }
    100% { opacity: 0; max-height: 0; margin: 0; padding: 0; }
}

.flash-success { background-color: #e6ffed; color: #1b5e20; }
.flash-error   { background-color: #ffe6e6; color: #b71c1c; }
.flash-info    { background-color: #e6f0ff; color: #0d47a1; }
.flash-warning { background-color: #fff8e1; color: #ff6f00; }


.order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid black;
    color: black;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.order-btn:hover,
.order-btn:hover i,
.order-btn:hover svg {
    background-color: black;
    color: white;
    cursor: pointer;
}

/* fin formulaire */

/* les tableaux index */

.table-sticky-columns th,
.table-sticky-columns td {
    position: sticky;
    vertical-align: middle;
    white-space: nowrap;
}


.table-sticky-columns .first-col {
    left: 0;
    z-index: 10;
}

.table-sticky-columns .second-col {
    z-index: 5; /* au-dessus de la 1ère colonne si nécessaire */
}

a.no-underline {
    text-decoration: none;
    color: inherit; /* Garde la couleur du texte normal */
}

.table-sticky-columns thead tr,
.table-sticky-columns thead tr th {
  background-color: #424242 !important; /* force le fond noir */
  color: #fff !important;           /* force le texte blanc */
}

/* Liens dans les en-têtes (KNP Pagination, icônes, etc.) */
.table-sticky-columns thead tr th a {
  color: #fff !important;
  text-decoration: none;
}

/* Icônes dans les entêtes */
.table-sticky-columns thead tr th i {
  color: #ffffff !important;
}

/* --- Lignes alternées du corps --- */
.table-sticky-columns tbody tr:nth-child(odd) {
  --bs-table-bg: #f2f2f2;
  --bs-table-color: #000000;
}

.table-sticky-columns tbody tr:nth-child(even) {
  --bs-table-bg: #d3d3d4;
  --bs-table-color: #fff;
}

/* Liens et icônes à l’intérieur du tbody */
.table-sticky-columns tbody a,
.table-sticky-columns tbody i {
  color: #000000;
  text-decoration: none;
}

.table-sticky-columns tbody a:hover {
  text-decoration: none;
}

.table-droit thead tr,
.table-droit thead tr th {
  background-color: #424242 !important; /* force le fond noir */
  color: #fff !important;           /* force le texte blanc */
}

.table-droit td.text-center .form-check {
    display: flex;             /* transforme le div en flex container */
    justify-content: center;   /* centre horizontalement */
    align-items: center;       /* centre verticalement */
    height: 100%;              /* occupe toute la hauteur du td */
}

.table-droit .form-check-input {
    background-color: #e0e0e0; /* gris clair */
    border-color: #ccc;        /* bord gris */
}

.table-droit .form-check-input:checked {
    background-color: #b0b0b0; /* gris plus foncé quand coché */
    border-color: #999;
}

/* Pour enlever l'effet focus bleu de Bootstrap */
.table-droit .form-check-input:focus {
    box-shadow: none;
}

.tooltip-container {
    position: relative;
    display: inline-block;
    max-width: 250px;
}

.truncate-text {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
    vertical-align: middle;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 50%;
    bottom: 125%; /* la bulle apparaît au-dessus du texte */
    transform: translateX(-50%);
    width: max-content;
    max-width: 300px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    line-height: 1.3;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
    white-space: normal;
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}


/* fin tableaux index */

#menu-tabs .nav-item {
    margin-right: 1rem; /* espace entre les onglets */
}

#menu-tabs .nav-link {
    background-color: var(--color-marque, #000041); /* fond onglet inactif */
    color: white;
    border-radius: 0.5rem; /* coins arrondis si tu veux */
}

#menu-tabs .nav-link.active {
    background-color: var(--color-active, #3645ff); /* fond onglet actif */
    color: white;
}


/* Onglets */
.onglet-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 0;
}

.onglet-tabs .nav-item {
    margin-right: 2px;
}

.onglet-tabs .nav-link {
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    background-color: #f3f3f3;
    color: #333;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s;
}

.onglet-tabs .nav-link:hover {
    background-color: #e2e2e2;
}

.onglet-tabs .nav-link.active {
    background-color: #fff;
    border-color: #ccc;
    border-bottom: 1px solid #fff;
    font-weight: bold;
}

/* fin Onglets */

.cke_notification {
    display: none !important;
}

.commande_consignes {
    color: #ff6e07;
}

.loading {
    opacity: 0.5;
    transition: opacity 0.3s;
}

/* début pour les selects multiples dans les formulaires de recherches */

.filter-tomselect-cell .tom-select .ts-control {
    max-width: 200px;
    overflow-x: auto;
    white-space: nowrap;
    box-shadow : none !important;
    border: none;
    padding: 0px;
}

.filter-tomselect-cell .ts-wrapper {
    min-height : 31px;
}

.filter-tomselect-cell .ts-wrapper.multi .ts-control [data-value]{
    background-image : unset;
}

.filter-tomselect-cell .ts-wrapper.multi .ts-control [data-value].active {
    background-image : unset;
    background :#d3d3d4;
    border: none;
    color: black;
    font-size: .875rem;
    text-shadow: none;    
}

.filter-tomselect-cell .ts-wrapper.multi .ts-control > div {
    background :#d3d3d4;
    border: none;
    color: black;
    font-size: .875rem;
    text-shadow: none;
}

.filter-tomselect-cell .ts-wrapper.plugin-remove_button:not(.rtl) .item .remove {
    border-left : 1px solid black;
    color: black !important;

}

.ts-dropdown .active {
    background-color: #e5e5e5 !important;
    color: #ffffff;
}

.filter-tomselect-cell .ts-wrapper .ts-control,
.filter-tomselect-cell .ts-wrapper .ts-control input,
.filter-tomselect-cell .ts-wrapper .ts-dropdown {
    color: #000000;
}

/* fin pour les selects multiples dans les formulaires de recherches */




