#submit{
    color:white;
    background-color: #7e88af;
    height:45px;
    display:flex; 
    border-radius: 8px;
    font-size:20px;
    border: grey 1px solid;
}
/* ajouter une journée */
.button-row button#add-day  {
    background-color: rgb(238, 144, 222);
    height:50px;
    color: black;
    padding: 10px ;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid pink;
    cursor: pointer;
    transition: 0.3s;
}

  /* bouton supprimer une journée  */

  #journees-container .journee .delete-day {
    background-color: #dc3232!important;
    color: white;
    border: none;
    padding: 8px;
    font-size: 17px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 10px;
    float: right;
  }

  /* les checkbox */
  .checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.checkbox-label {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 250px;
}

.checkbox-label label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}



.checkbox-label input[type="checkbox"] {
    margin-left: 0; 
}

#nuitee_fields {
    display: none;  
    margin-top: 10px; 
}
/* champ input du formulaire  */

fieldset {
    width: 100%; 
    padding: 15px; 
    margin-top: 20px; 
    box-sizing: border-box; 
    border: 1px solid #A0A7C4; 
    border-radius: 8px; 
}

fieldset input[type="text"],
fieldset input[type="date"],
fieldset input[type="time"],
fieldset input[type="number"],
fieldset select {
    width: 100%;  
    padding: 8px;
    box-sizing: border-box; 
    margin-bottom: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px;
}

fieldset label {
    font-weight: bold; 
    margin-bottom: 5px; 
    display: block; 
}
 /*--------------------- ajout bouton ajouter une journée dans formulaire de base ------------------- */
 .button-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start; 
  }
  
  .button-row .button {
    height: 40px;
    line-height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }

/* responsive  */

@media (max-width: 400px) {
    .option {
        flex-direction: column;  
        align-items: flex-start; 
        gap: 10px; 
    }

    .checkbox-label {
        margin-bottom: 10px; 
    }
    .formulaire {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .formulaire input[type="text"],
    .formulaire input[type="number"],
    .formulaire input[type="date"],
    .formulaire input[type="time"],
    .formulaire select {
        width: 75%;
        margin-bottom: 10px;
        padding: 8px;
        font-size: 16px;
    }

    .formulaire label {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .formulaire h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .formulaire button {
        width: 100%;
        padding: 10px;
        font-size: 16px;
    }
}
@media (max-width: 600px) {
    .checkbox-row {
        flex-direction: column;
    }
}
@media (min-width: 678px) {
    .detail {
        display: flex;
        justify-content: space-between; 
        gap: 15px; 
    }

    .detail label,
    .detail input {
        width: 32%; 
    }
}

@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
    }

    .hotel {
        order: 2; 
    }

    .transport {
        order: 1;  
    }
    .information-personnelle fieldset {
        padding: 10px;  
    }

    .information-personnelle input[type="text"],
    .information-personnelle input[type="number"],
    .information-personnelle input[type="date"],
    .information-personnelle select {
        width: 75%;
        font-size: 14px;  
    }

    .code_analytique,
    .info,
    .motif-lieu-fields {
        display: block; 
        width: 100%;
    }

    .code_analytique label,
    .info label,
    .motif-lieu-fields label {
        margin-right: 0;
        margin-bottom: 5px; 
    }
}

/* À partir de 769px (grand écran) */
@media (min-width: 769px) {
    .information-personnelle .info {
        display: flex; 
        gap: 20px; /* Espacement entre les éléments */
        align-items: center; 
    }

    .information-personnelle .info label {
        margin-right: 10px; 
        font-size: 16px; 
    }
 
    .information-personnelle input[type="text"],
    .information-personnelle select {
        width: 100% !important;
        padding: 8px; 
        font-size: 14px; 
        box-sizing: border-box; 
        height: 45px; 
        margin: 0; 
    }

    .motif-lieu-fields select,
    .motif-lieu-fields input[type="text"] {
        width: 100%; 
    }

    .motif-container {
        display: flex;
        flex-direction: column; 
    }

    /* Détail du motif sous le select "Motif" */
    #motif_autre_row {
        flex: 1 1 100%; 
        margin-left:10px;
       
    }

    /* Lieu de déplacement et Prime grand déplacement sur la même ligne */
    .lieu-prime-container {
        display: flex;
        justify-content: space-between;
        width: 100%; 
        gap: 20px;
    }

    .lieu-container {
        flex: 1 1 48%; 
    }

    .prime-container {
        display: flex;
        align-items: center; 
        gap: 10px; 
    }

    /* Ajustement de la checkbox */
    .motif-lieu-fields input[type="checkbox"] {
        margin: 0;
    }

    .formulaire input[type="text"],
    .formulaire select {
        width: 100% !important;  
        padding: 10px;  
        box-sizing: border-box; 
        height: 45px; 
       
    }

    .formulaire fieldset input[type="text"],
    .formulaire fieldset input[type="date"],
    .formulaire fieldset input[type="number"],
    .formulaire fieldset select {
        width: 100% !important; 
        padding: 10px;  
        font-size: 14px; 
       
    }
}
/* recapitulatif depenses */
/* ── Tableau responsive – style carte sur mobile ────────────────────────── */

#tableau_edition {
    overflow-x: auto; /* scroll horizontal sur tablette */
    width: 100%;
}

#table_notes_frais {
    width: 100%;
    border-collapse: collapse;
}

/* ── Mobile : < 768px ────────────────────────────────────────────────────── */
@media screen and (max-width: 768px) {

    /* Cacher l'en-tête du tableau */
    #table_notes_frais thead {
        display: none;
    }

    /* Chaque ligne devient une carte */
    #table_notes_frais tr.table-row {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    }

    /* Chaque cellule s'affiche en ligne avec son label */
    #table_notes_frais td.data-card,
    #table_notes_frais td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 10px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }

    #table_notes_frais td:last-child {
        border-bottom: none;
    }

    /* Afficher le label avant la valeur grâce au data-label */
    #table_notes_frais td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        flex: 1;
        text-align: left;
        padding-right: 10px;
    }

    /* Valeur à droite */
    #table_notes_frais td > * ,
    #table_notes_frais td {
        text-align: right;
        flex: 1;
    }

    /* Cellule des boutons (export/modifier) */
    #table_notes_frais td:last-child {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding-top: 10px;
    }

    #table_notes_frais td:last-child::before {
        content: "Actions";
        font-weight: 600;
        color: #555;
        flex: 1;
        text-align: left;
    }

    /* Icônes un peu plus grandes sur mobile pour faciliter le tap */
    #table_notes_frais td span {
        font-size: 28px !important;
    }
}






