/* Styles pour le formulaire de facturation */
#form_facture {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #333333;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#form_facture label {
    display: block;
    margin: 10px 0 5px;
}

#form_facture input, #form_facture select {
    width: 100%;
    padding: 8px;
    margin: 5px 0 10px;
    border: 1px solid #ccc;
	color: white;
	background: #2a2c2c;
}

#form_facture input[readonly] {
    background-color: #154782;
	color: white;
}

#form_facture input[type="submit"] {
    width: auto;
    background-color: #154782;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

#form_facture input[type="submit"]:hover {
    background-color: #154782;
}

#historique_factures table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: #ffffff;
    align-self: center;
	    margin-left: -140px;
}

#historique_factures table, #historique_factures th, #historique_factures td {
    border: 1px solid #ddd;
}

#historique_factures th, #historique_factures td {
    padding: 8px;
    text-align: left;
}

#historique_factures tr:nth-child(even) {
    background-color: #333333;
}

#historique_factures th {
    background-color: #154782;
    color: white;
}

/* Styles pour la calculatrice de customisation */
#customisation_calculatrice .ligne_customisation {
    display: flex;
    margin-bottom: 10px;
}

#customisation_calculatrice .description_customisation {
    flex: 3;
	color: white;
	background: #2a2c2c;
    margin-right: 10px;
}

#customisation_calculatrice .montant_customisation {
    flex: 2;
	color: white;
	background: #2a2c2c;
    margin-right: 10px;
}

#customisation_calculatrice .supprimer_ligne {
    flex: 1;
    background-color: #f00020;
    color: white;
    border: none;
    cursor: pointer;
    align-self: center;
}

#ajouter_ligne {
    margin-top: 10px;
    background-color: #008000;
    color: white;
    border: none;
    cursor: pointer;
    align-self: center;
}

/* Styles pour les boutons de réduction */
#form_facture .reduction-group {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
}

#form_facture .reduction-group label {
    display: flex;
    align-items: center;
    margin: 0;
}

#form_facture .reduction-group input[type="radio"] {
    margin-right: 5px;
}

/* Styles pour les totaux */
#totaux {
    max-width: 600px;
    margin: 20px auto;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #333333;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#totaux p {
    margin: 0;
    padding: 5px 0;
    font-size: 16px;
    font-weight: bold;
}

#totaux p:first-child {
    border-bottom: 1px solid #444444;
    padding-bottom: 10px;
}

/* Styles pour la palette de couleurs et prévisualisation de la photo */
#color_picker_section {
    position: fixed;
    bottom: 20px;
    left: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#color_picker {
    margin-bottom: 10px;
}

/* Styles pour le conteneur d'importation de photo */
#photo_import_container {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #2a2c2c;
    padding: 10px;
    border: 1px solid #ccc;
    z-index: 9999; /* Assurez-vous qu'il est au-dessus des autres éléments */
}



/* Styles pour la prévisualisation de photo */
#photo_input{
    width: auto;
    background-color: #154782;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

#photo_preview {
    width: 300px; /* Ajustez la taille si nécessaire */
    height: auto;
    border: 1px solid #ccc;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#photo_preview img {
    max-width: 200%;
    max-height: 500px; /* Ajustez cette hauteur selon vos besoins */
    object-fit: contain; /* Conserve les proportions et évite le découpage */
    height: auto;
}

/* Styles généraux pour la disposition */
.customisation-sidebar {
    position: fixed; /* Fixe l'encadré à gauche de la page */
    top: 0;
    left: 0;
    width: 400px; /* Ajustez la largeur selon vos besoins */
    height: 100vh; /* Prend toute la hauteur de la fenêtre */
    background-color: #f0f0f0; /* Couleur de fond pour l'encadré */
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); /* Ombre pour l'effet de profondeur */
    box-sizing: border-box;
    overflow-y: auto; /* Ajoute un défilement vertical si nécessaire */
    z-index: 1000; /* Assure que le formulaire reste au-dessus du contenu */
}

/* Styles pour les boutons de bascule */
.toggle-button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-button:hover {
    background-color: #0056b3;
}

/* Styles pour les éléments de la liste */
.categorie-content {
    width: 100%;
    box-sizing: border-box;
}

.item-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.item-description {
    flex: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.item-checkbox {
    margin-left: 10px;
}
#form_facture .vehicule-boutique-container input[type="checkbox"] {
    width: auto; /* Supprime l'effet de width: 100% */
    margin: 0; /* Supprime les marges conflictuelles */
    transform: scale(1.2); /* Agrandit légèrement la checkbox si souhaité */
}

#form_facture .vehicule-boutique-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#form_facture .supplement-facture-container input[type="checkbox"] {
    width: auto; /* Supprime l'effet de width: 100% */
    margin: 0; /* Supprime les marges conflictuelles */
    transform: scale(1.2); /* Agrandit légèrement la checkbox si souhaité */
}

#form_facture .supplement-facture-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Conteneur principal du tableau des partenaires */

/* Tableau des partenaires */
.partenaire-table {
    width: 100%; /* Prend toute la largeur du conteneur */
    border-collapse: collapse; /* Supprime les espaces entre les cellules */
}

.partenaire-table th, .partenaire-tablereduc td {
    padding: 8px; /* Espacement interne des cellules */
    text-align: left; /* Alignement du texte à gauche */
    border-bottom: 1px solid #444444; /* Bordure en bas des cellules */
}

.partenaire-table th {
    background-color: #154782; /* Couleur de fond pour les en-têtes */
    color: white; /* Couleur du texte pour les en-têtes */
}

.partenaire-table tr:nth-child(even) {
    background-color: #444444; /* Couleur de fond pour les lignes paires */
}

#container .toggle-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

#container .toggle-button:hover {
    background-color: #0056b3;
}

#container .partenaire-content {
    margin-top: 10px;
}
.edit-icon2 {
    cursor: pointer;
    margin-left: 10px;
    font-size: 16px;
}

.editable-field2 {
    display: none;
    width: 80%;
    padding: 5px;
    margin-right: 10px;
}

.ligne-ajout-partenaire td {
    text-align: right;
    padding: 8px;
}

.ajouter-partenaire-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 0 5px;
}

.supprimer-partenaire-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    padding: 0 5px;
}

.partenaire-tablereduc th:last-child,
.partenaire-tablereduc td:last-child {
    width: 50px;
    text-align: center;
}

