.form-group-label-date, .form-group-date{
    width:40% !important;
}
.form-group-label-time{
    width:30% !important;
    padding-left: 10%;
}
.form-group-time{
    width:30% !important;
    padding-left:5px !important;
}

.modal-body-scrollbar{
    max-height: 70vh; 
    overflow-y: auto;
}

@media (max-width: 576px) {
    .modal-dialog[class*="modal-fullscreen"] {
        min-height: 100vh;
    }
    
    .modal-dialog[class*="modal-fullscreen"] .modal-content {
        min-height: 100vh;
    }
}
.nowrap{
    white-space: nowrap;
}

.input-group-inline{
    display:inline-block !important;
    width: auto !important;
}

.input-group-inline .form-label {
    top: 0.4rem !important;
  }

.input-group.input-group-inline.is-filled.is-focused .form-label,
.input-group.input-group-inline.is-filled .form-label {
  display: none;
}

/* .progress-wrapper-mw-50 {
    max-width: 50%;
} */
.mw-150px {
    max-width: 150px;
}
.mw-200px {
    max-width: 200px;
}
.minw-100px {
    min-width: 100px;
}
.minw-120px {
    min-width: 120px;
}
.minw-150px {
    min-width: 150px;
}
.minw-200px {
    min-width: 200px;
}
.minw-300px {
    min-width: 300px;
}
.min-w-30 {
    min-width: 30%;
  }
.badge-md {
    padding: .65em 1em !important;
}
.ml-2{
    margin-left: 0.5rem !important;
    }
.mr-4{
    margin-right: 1.5rem !important;
}
.dropdown .dropdown-right-corner:before{
    left: auto !important;
    right: 28px !important;
}

.icon-warning {
    color: var(--bs-warning);
  }

.fc .fc-toolbar {
    flex-wrap: wrap;
    gap: 0.5em;
    text-transform: capitalize;
}

/* Apply max-width only on medium and larger screens */
@media (min-width: 768px) {
    .btn-responsive {
        max-width: 205px;
    }
    .flex-md-row {
        justify-content: flex-end;
    }
}

.btn-inner--icon{
  margin-right:4px;
}

/* attestations and tpp */

#tpp-wrapper {
    padding: 20px;
    max-width:900px;
    margin: auto;
    border: 1px solid #000;
    background-color: #f9f9f9;
}

#content-attestation {
    font-family: Arial, sans-serif;
    padding: 20px;
    max-width: 700px;
    margin: auto;
    border: 1px solid #000;
    background-color: #f9f9f9;
}

#content-attestation .custom-title, #tpp-wrapper .custom-title {
    font-weight: bold;
    text-align: center;
}

#content-attestation hr {
    border: 1px solid #000;
}

#content-attestation .text-xs {
    font-size: 0.75rem; /* Adjust font size for small text */
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    /*margin-top: 15px;*/
    margin-bottom: 15px;
}

#content-attestation .signature-space {
    margin-top: 30px;
}

#content-attestation ul, #tpp-wrapper ul {
    list-style-type: none;
    padding-left: 0;
}

#content-attestation .font-size-18 {
    font-size: 18px;
}

#content-attestation .preview-table th, #tpp-wrapper .preview-table th,
#content-attestation .preview-table td, #tpp-wrapper .preview-table td {
    border: 1px solid;
    padding: 10px;
    width: 16.5%;
}

#content-attestation .preview-table .border-right-thick {
    border-right-width: 2px;
}

@media (max-width: 576px) {
    #content-attestation {
        font-size: 12px; /* Smaller font on small screens */
    }
    #content-attestation  .preview-table th, #content-attestation .preview-table td,
    #tpp-wrapper  .preview-table th, #tpp-wrapper .preview-table td {
        padding: 0.3rem; /* Reduce padding inside table cells */
        font-size: 10px; /* Reduce text size in table cells */
    }
    #content-attestation  .custom-title {
        font-size: 14px; /* Reduce title size */
    }
}

#tiers-payant-wrapper {
    max-width: 900px;
    margin: auto;
    padding: 20px;
  }
  .iban-box {
    width: 30px;
    height: 30px;
    margin-right: 5px;
    border: 1px solid #ced4da;
    text-align: center;
    font-size: 1rem;
    line-height: 30px;
    display: inline-block;
  }
  
  .iban-group {
    display: inline-flex;
    margin-right: 10px; /* Space between groups */
  }
  
  .iban-container {
    white-space: nowrap; /* Ensure groups stay together on the same line */
    overflow: hidden;
  }
  
  /* Media query for smaller screens */
  @media (max-width: 576px) {
    .iban-container {
      white-space: normal; /* Allow wrapping on smaller screens */
    }
  
    .iban-box {
      width: 20px;
      height: 20px;
      font-size: 10px;
      line-height: 20px;
      margin-right: 1px;
    }
  
    .iban-group {
      margin-right: 6px; /* Adjust space between groups */
    }
  }

.card.card-border {
    border: 1px solid #e5e5e5;
}
.input-group.no-rounded-input > .form-control {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
/* Remove box-shadow if inside a div with class "no-rounded-group" */
.no-rounded-group.input-group.input-group-outline.is-focused .form-label:before,
.no-rounded-group.input-group.input-group-outline.is-focused .form-label:after,
.no-rounded-group.input-group.input-group-outline.is-filled .form-label:before,
.no-rounded-group.input-group.input-group-outline.is-filled .form-label:after,
.no-rounded-group.input-group.input-group-outline.is-focused .form-label+.form-control, 
.no-rounded-group.input-group.input-group-outline.is-filled .form-label+.form-control {
    box-shadow: none;
}

.btn-left {
    margin-right: auto;
}
.footer-left{
    display: flex;
    align-items: baseline;
    flex-grow: 1;
    gap:10px
}

.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading .spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.ai-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
  }
.preview-container{
    display: inline-block;
    max-height: 700px;
    overflow: hidden;
    margin: 0 auto;    
}
.attestation-preview-wrapper {
    transform: scale(0.5);
    transform-origin: top center;
    /*max-height: 90vh;
    overflow: hidden;
    margin: 0 auto;*/
}
/* Fading effect at the bottom */
.attestation-preview-wrapper::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 10vh;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
pointer-events: none;
  }
.sessions-preview-wrapper {
    transform: scale(0.8);
    transform-origin: top center;
    max-height: 70vh;
    overflow: hidden;
    margin: 0 auto;
  }
  /* Fading effect at the bottom */
.sessions-preview-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
  }

  @media (max-width: 767.98px) {
    .dropdown-menu.fullwidth-on-mobile {
      width: 100% !important;
    }
  }

  /* .link-button-style {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 9999px;
  transition: background-color 0.2s ease;
  color: #344767;
  text-decoration: none;
} */

.flat-button {
  display: inline-flex; /* important pour centrer */
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  transition: background-color 0.2s ease;
  color: #344767;
  text-decoration: none;
  border-radius: 9999px;
  height: 2.5rem;
  box-sizing: border-box; /* garantit que padding + border = taille totale */

   /* Ajouts pour les boutons */
  background: none;
  border: none;
  cursor: pointer;
  font: inherit; /* hérite la police, la taille, etc. */
  line-height: 1;
  flex-wrap: nowrap; /* ✅ Empêche le retour à la ligne interne */
  white-space: nowrap;
}

.flat-button:hover {
  background-color:#cfd6e2; /* légèrement plus foncé au hover */
  color: #344767;
  text-decoration: none;
}

/* Variante primary */
.flat-button.primary {
  background-color: #fce4ec; /* rose très clair */
  color: #344767; /* texte noir pour lisibilité */
}

/* Hover effet renforcé */
.flat-button.primary:hover {
  background-color: #f8bbd0; /* rose plus soutenu */
  color: #344767;
  text-decoration: none;
}

/* Variante primary-header */
.flat-button.primary-header {
  background-color: #e91e63;
  color: #fff;
}

/* Hover effet renforcé */
.flat-button.primary-header:hover {
  background-color: #c2185b; /* rose plus foncé, plus saturé */
  color: #fff;
  text-decoration: none;
}
.flat-button.outline-primary {
  background-color: transparent;
  border: solid 1px #e91e63;
  color: #e91e63;
  transition: color 0.2s ease;
}

/* Hover : fond rempli, texte blanc, bordure plus épaisse, texte plus gras */
.flat-button.outline-primary:hover {
  color: #c2185b;
  border-color:#c2185b;
}


/* Variante secondary */
.flat-button.secondary {
  background-color: #e0e4ec; /* un gris bleuté très clair pour fond */
  color: #344767;
}

/* Hover effet renforcé */
.flat-button.secondary:hover {
  background-color: #cfd6e2; /* légèrement plus foncé au hover */
  color: #344767;
  text-decoration: none;
}

/* Variante dark */
.flat-button.dark {
  background-color: #344767; /* un gris bleuté très clair pour fond */
  color: #e0e4ec;
}

/* Hover effet renforcé */
.flat-button.dark:hover {
  background-color: #2c3e5c; /* légèrement plus foncé au hover */
  color: #e0e4ec;
  text-decoration: none;
}

/* Variante white */

/* Hover effet renforcé */
.flat-button.white:hover {
  background-color: #fff; /* rose plus soutenu */
  color: #344767;
  text-decoration: none;
}



/* Si le lien contient uniquement une icône, lui donner un style circulaire */
.flat-button.only-icon {
  width: 40px;
  height: 40px;
  padding: 0; /* évite d'ajouter trop d'espace */
  border-radius: 50%;
  aspect-ratio: 1; /* garantit un cercle parfait */
}

.flat-button i.material-icons {
  font-size: 18px; /* ou 16px, selon la taille de texte */
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.flat-button-responsive {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem; /* espacement vertical entre boutons */
}

@media (min-width: 768px) {
  .flat-button-responsive {
    display: inline-flex;
    width: auto;
    text-align: right;
    margin-bottom: 0;
  }
}
@media (max-width: 768px) {
  .flat-button-responsive {
    background-color: #e0e4ec;
    color: #344767;
  }
}

.gap-5-responsive {
  gap: 3rem !important ; /* équivaut à gap-5 sur grands écrans */
}

@media (max-width: 768px) {
  .gap-5-responsive {
    gap: 0.5rem !important ; /* réduit l'espacement quand les éléments passent en colonne */
  }
}

.read-card-msg {
  font-size: 0.95rem;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  margin-left: 1rem;
}

.read-card-msg .check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: white;
  border-radius: 50%;
  margin-right: 4px;
  font-size: 16px;
}

/* Variante succès */
.read-card-msg.success .check-icon {
  background-color: var(--bs-success); /* vert */
}

/* Variante danger */
.read-card-msg.danger .check-icon {
  background-color: var(--bs-danger); /* rouge */
}



/* MULTISELECT CUSTOM STYLES */
/* Container input + badges */
.ms-input-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: 35px;
    cursor: text;
    gap: 4px;
    padding: 2px 4px;
}

/* Champ texte */
.ms-input-area input {
    border: 0;
    flex-grow: 1;
    outline: none;
    min-width: 60px;
}

/* Badge */
.ms-badge {
    padding: 2px 6px;
    border-radius: 6px;
    background-color: var(--bs-primary);
    color: white;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
}

/* Bouton de suppression du badge */
.ms-badge .ms-remove {
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* Dropdown */
.ms-dropdown {
    max-height: 250px;
    overflow-y: auto;
}

/* Masque l'ombre sur input focus */
.ms-input-area input:focus {
    box-shadow: none !important;
}