body {
    padding-top: 50px;
    padding-bottom: 20px;
    user-select: none;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}


.camera-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9; /* Couleur pour les lignes impaires */
}
.table-striped tbody tr:nth-of-type(even) {
    background-color: #e9e9e9; /* Couleur pour les lignes paires */
}


#company {
    max-width: 30em; 
    border: none;
    outline: none;
}


.green-theme .button {
    background: rgba(7, 116, 80, 0.805);
    color: white;
}


.orange-theme .button {
    background: rgba(216, 113, 22, 0.85); 
    color: white;
}


.jaune-theme .button {
    background: rgb(255, 255, 107); 
    color: white;
}
#btn-client .label {
    color: rgb(58, 57, 57);
}
.jaune-theme #btn-client:hover .label {
    color: white;
}
#btn-creer-client .label {
    color: rgb(58, 57, 57); 
}
.jaune-theme #btn-creer-client:hover .label {
    color: white;
}


#btn-devis .label {
    color: rgb(58, 57, 57);
}
.jaune-theme #btn-devis:hover .label {
    color: white;
}
#btn-creer-devis .label {
    color: rgb(58, 57, 57); 
}
.jaune-theme #btn-creer-devis:hover .label {
    color: white;
}


#btn-commande .label {
    color: rgb(255, 255, 255);
}
.jaune-theme #btn-commande:hover .label {
    color: white;
}
#btn-creer-commande .label {
    color: rgb(255, 255, 255); 
}
.jaune-theme #btn-creer-commande:hover .label {
    color: white;
}

#btn-commande-client .label {
    color: rgb(0, 0, 0);
}
.jaune-theme #btn-commande-client:hover .label {
    color: white;
}
#btn-creer-commande-client .label {
    color: rgb(0, 0, 0); 
}
.jaune-theme #btn-creer-commande-client:hover .label {
    color: white;
}


#btn-expedition .label {
    color: rgb(58, 57, 57);
}
.jaune-theme #btn-expedition:hover .label {
    color: white;
}
#btn-creer-expedition .label {
    color: rgb(58, 57, 57); 
}
.jaune-theme #btn-creer-expedition:hover .label {
    color: white;
}



#btn-facturation .label {
    color: rgb(58, 57, 57);
}
.jaune-theme #btn-facturation:hover .label {
    color: white;
}
#btn-creer-facturation .label {
    color: rgb(58, 57, 57); 
}
.jaune-theme #btn-creer-facturation:hover .label {
    color: white;
}



.bleu-theme .button {
    background: rgba(38, 54, 177, 0.85); 
    color: white;
}


.button-container {
    display: flex;
    align-items: center;
    position: relative;
}



.button, .sub-button {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    padding: 1em 2.7em;
    font-weight: 500;
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: 0.6em;
    cursor: pointer;
    width: 200px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s; /* Smooth transitions */
}

.button-plus {
    width: 35px; 
    height: 35px;    
    margin-left: 10px;
}

.button-plus .label, .sub-button .label {
    font-size: 24px;
}

.sub-buttons {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: visibility 0s linear 0.3s, opacity 0.3s, transform 0.3s;
}

.button-container:hover .sub-buttons {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s; /* Remove delay when showing */
}

.gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 0.6em;
    margin-top: -0.25em;
    background-image: linear-gradient(
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.3)
    );
}

.label {
    position: relative;
    top: -1px;
}

.transition {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
    transition-duration: 500ms;
    background-color: #1f2937;
    border-radius: 9999px;
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.button:hover .transition {
    width: 14em;
    height: 14em;
}

.button:active {
    transform: scale(0.97);
}

.graph-box {
    display: flex;
    justify-content: end;
    text-align: center;
    padding-right: 50px;
}


/* Styles pour les cartes */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
    width: 100%; /* Assure que les cartes utilisent toute la largeur disponible */
    text-align: center; /* Centre le texte à l'intérieur des cartes */
    height: 110px;
}
.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.card-header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #e7e7e7;
    font-size: 18px;
    font-weight: bold;
}
.card-body {
    padding: 20px;
    font-size: 16px;
}
.card-title {
    font-size: 22px;
    font-weight: bold;
    color: #0056b3;
}

.card-container {
    display: flex;
    justify-content: center; /* Centre les cartes horizontalement */
    align-items: center; /* Centre les cartes verticalement */
    min-height: 150px; /* Assure une hauteur minimum pour un meilleur visuel */
}

.card-flex {
    display: flex;
    align-items: center;
    justify-content: space-around;
    white-space: nowrap;
    overflow: hidden;
}
.card-flex .card-title {
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 1vw; /* Commencez par ajuster ceci en fonction de votre design */
}


.profile-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}


.profile-circle {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #007BFF; /* Bleu par défaut */
    color: white !important; /* Garde la lettre en blanc */
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
    margin-left: 5px;
    transition: background-color 0.3s;
    position: relative; /* Ajouté pour le positionnement de la lettre */
}

.profile-circle::after {
    content: attr(data-letter); /* Utilise un attribut pour la lettre */
    position: absolute;
    left: 50%; /* Centré horizontalement par défaut */
    top: 50%; /* Centré verticalement par défaut */
    transform: translate(-50%, -50%); /* Décale la lettre à gauche et vers le haut */
    color: white;
}

.navbar-right .profile-circle {
    text-decoration: none; /* Enlève tout soulignement */
}

.navbar-right .profile-circle:hover {
    background-color: #1a5ba1 !important; /* Maintient la couleur de fond au survol */
    color: white; /* Assure que la couleur du texte reste blanche */
}



.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 0 auto;
    width: calc(100% - 40px);
    max-width: 1200px;
    justify-content: center; /* Ajouté pour centrer les éléments */
}

@media (min-width: 768px) {
    .dashboard {
        width: calc(100% - 250px);
    }
}

.module {
    background-size: cover;
    background-position: center;
    height: 250px; /* Hauteur ajustée pour correspondre à la largeur estimée précédemment */
    width: 250px; /* Ajouté pour maintenir explicitement la largeur, utile si le conteneur change de dimension */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.module:hover {
    transform: scale(1.05);
}

.module-content {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 20px;
    border-radius: 0 0 8px 8px;
}

[contenteditable=true]:empty:before{
    content:attr(placeholder);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color:grey;
    font-style:italic;
}

[contenteditable=true]:empty:focus::before {
    content: "";
}

.ui-dialog .ui-dialog-titlebar {
    background: #222;
    color: #DDD;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: normal;
}

.ui-dialog button.ui-dialog-titlebar-close {
    padding: 0;
}

.ui-dialog-content {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

label.ui-button {
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
}

div.ui-widget-overlay.ui-front {
    background: none;
    opacity: .8;
}

div.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset {
    float: none;
    display: flex;
    justify-content: space-between;
}

div.ui-dialog .ui-dialog-buttonpane {
    padding: .5em 1em;
}

div.ui-dialog .ui-dialog-buttonpane button {
    margin: 0;
}

#dropArea {
    height: 75%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
}

#dropArea:hover {
    cursor: pointer;
    background-color: #FCFBF2;
}

#filePreviewContainer {
    margin-top: 20px;
    height: 20%;
}

.h-100 {
    height: 100%;
}

button.dtButton,
button[data-toggle=dropdown] {
    height: 32px;
    padding: 5px 10px;
}

.dtButtonIcon {
    height: 20px;
    padding: 0 6px;
}

.file-input-label {
    color: #567;
}

.file-input-wrapper input[type="file"]:focus + .file-input-label,
.file-input-wrapper input[type="file"]:hover + .file-input-label {
    background-color: #0056b3;
}


.center-container {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: flex-start; /* Aligner les éléments au début verticalement */
    height: 70vh; /* Réduire la hauteur totale pour élever le bouton */
    padding-top: 20px; /* Ajouter un padding en haut pour éviter que le bouton touche le bord */
}

@media (max-width: 767.98px) {
  .center-container {
    height: auto;     /* on laisse la hauteur s’adapter au contenu */
    padding-top: 20px;/* éventuellement réduire le padding */
    margin-bottom: 50px; /* si vous voulez un petit espacement régulier */
  }
}


.btn-sortie {
    padding: 40px 70px; /* Augmenté pour un bouton plus grand */
    border-radius: 15px; /* Rayon de bordure augmenté pour l'esthétique */
    border: 0;
    background-color: rgb(0, 123, 255); /* Couleur bleue appliquée */
    letter-spacing: 2px; /* Espacement des lettres légèrement augmenté */
    font-size: 32px; /* Taille de police augmentée pour un bouton plus grand */
    transition: all 0.3s ease;
    box-shadow: rgb(0, 98, 204) 0px 15px 0px 0px; /* Ombre ajustée */
    color: hsl(0, 0%, 100%);
    cursor: pointer;
    display: block; /* S'assurer que le bouton est un bloc pour faciliter le centrage */
}

.btn-sortie:hover {
    box-shadow: rgb(0, 98, 204) 0px 12px 0px 0px; /* Ajustement de l'effet hover */
}

.btn-sortie:active {
    background-color: rgb(0, 104, 218); /* Couleur active un peu plus foncée */
    box-shadow: rgb(0, 78, 163) 0px 0px 0px 0px; /* Ombre en état actif réduite */
    transform: translateY(5px);
    transition: 200ms;
}

table.dataTable tr>th.dt-type-numeric,
table.dataTable tr>th.dt-type-date,
table.dataTable tr>td.dt-type-numeric,
table.dataTable tr>td.dt-type-date {
    text-align: left;
}

div.dt-container div.dt-layout-cell.dt-end {
    display: flex;
    justify-content: end;
}

div.dt-container div.dt-layout-cell.dt-end > .ui-buttonset {
    margin-right: 15px;
}

table.dataTable>thead>tr>th.search-col {
    padding: 4px;
}

table.dataTable>thead>tr>th.search-col>input {
    max-width: none;
}

table.dataTable thead>tr>th.dt-orderable-asc,
table.dataTable thead>tr>th.dt-orderable-desc {
    padding-right: 0;
}

.ui-datepicker-month,
.ui-datepicker-year {
    border: 1px solid #ccc;
    border-radius: 4px;
}


/* Styles pour les boutons */
.btn-valider {
    padding: 15px 30px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    outline: none;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 15px;
    box-shadow: 0 9px #999;
    margin-top: 20px;
    display: block; /* Assurez-vous que les boutons s'affichent en bloc */
    width: 100%; /* Utilisez toute la largeur disponible */
}

.btn-valider:hover {background-color: #3e8e41}

.btn-valider:active {
    background-color: #3e8e41;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}




/* Styles pour les boutons */
.btn-quitter {
    padding: 15px 30px;
    font-size: 18px;
    text-align: center;
    cursor: pointer;
    outline: none;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 15px;
    box-shadow: 0 9px #999;
    margin-top: 20px;
    display: block; /* Assurez-vous que les boutons s'affichent en bloc */
    width: 100%; /* Utilisez toute la largeur disponible */
}

.btn-quitter:hover {background-color: #3e8e41}

.btn-quitter:active {
    background-color: #3e8e41;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}



.clickable-row:hover {
    cursor: pointer;
}



.fournisseur-info-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    background-color: #f9f9f9;
    margin-top: 20px;
    transition: box-shadow 0.3s ease-in-out;
    cursor: pointer;
    position: relative; 
}

.fournisseur-info-box:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    border: 2px solid rgba(7, 116, 80, 0.805); 
}

.modifier-fournisseur {
    display: none; 
    position: absolute;
    bottom: -15px; 
    left: 50%; 
    transform: translateX(-50%);
    background-color: rgba(7, 116, 80, 0.805);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center; 
    width: 50%; 
    padding-bottom: -10px; 
}



.fournisseur-info-box:hover .modifier-fournisseur {
    display: block; 
}



.client-info-box {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    background-color: #f9f9f9;
    margin-top: 20px;
    transition: box-shadow 0.3s ease-in-out;
    cursor: pointer;
    position: relative; 
}

.client-info-box:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    border: 2px solid rgb(255, 255, 107); 
}

.modifier-client {
    display: none; 
    position: absolute;
    bottom: -15px; 
    left: 50%; 
    transform: translateX(-50%);
    background-color: rgb(255, 255, 107);
    color: rgb(58, 57, 57);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center; 
    width: 50%; 
    padding-bottom: -10px; 
}



.client-info-box:hover .modifier-client {
    display: block; 
}



.details-control {
    cursor: pointer;
    text-align: center;
    user-select: none;
}

.details-control::before {
    content: "\25B6";
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.3s ease-in-out;
}

tr.shown .details-control::before {
    transform: rotate(90deg);
}

