.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: var(--bs-dark-primary); /* rose plus foncé, plus saturé */
  color: #fff;
  text-decoration: none;
}
.flat-button.outline-primary {
  background-color: #fff;
  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: var(--bs-dark-primary);
  border-color:var(--bs-dark-primary);
}


/* 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;
}

.flat-button.outline-secondary {
  background-color: #fff;
  border: solid 1px #7b809a;
  color: #344767;
  transition: color 0.2s ease;
}

/* Hover : fond rempli, texte blanc, bordure plus épaisse, texte plus gras */
.flat-button.outline-secondary:hover {
  color: #2c3e5c;
  border-color:#2c3e5c;
}

/* 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;
}

/* Remove default ul styling and apply flexbox */
ul.flex {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Li critical style */
li.critical {
    background-color: rgba(233, 30, 99, 0.1) !important;
    border-color: rgba(233, 30, 99, 0.3) !important;
}

/* Li warning style */
li.warning {
    background-color: rgba(251, 198, 88, 0.1) !important;
    border-color: rgba(251, 198, 88, 0.3) !important;
}

/* TIMELINE CUSTOM STYLES */
.timeline-past {
    opacity: 0.6;
}

.timeline-past .timeline-content h6 {
    text-decoration: line-through;
}
.timeline-wide-content .timeline-content {
    margin-left: 60px;
}

/* Intro de chaque étape */
.timeline-intro {
  color: var(--bs-secondary) !important;
  margin-bottom: 1.5rem;
  font-size: 0.875em;
}

/* Liste des fonctionnalités */
.timeline-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem 0;
}

.timeline-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.timeline-content ul {
  font-size: 0.95rem;
}

/* Icône check avant chaque item */
.timeline-list li::before {
  content: "check";
  font-family: "Material Icons Round";
  font-size: 20px;
  color: var(--bs-primary);
  margin-right: 0.5rem;
  margin-top: 2px;



    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'liga';
}

/* Texte de conclusion */
.timeline-note {
  color: #6c757d; /* équivalent text-muted */
  margin-bottom: 0;
}

/* CALENDAR */
/* Légende (desktop par défaut) */
#calendar-legend {
    display: flex;
    flex-direction: column;   /* vertical */
    justify-content: center;
}

/* Items */
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

/* Pastille couleur */
.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    margin-right: 5px;
    border: 1px solid #ddd;
}

/* Mobile */
@media (max-width: 767.98px) {
    #calendar-legend {
        margin-top: 10px;
        flex-direction: row;   /* horizontal */
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: center;
    }

    .legend-item {
        margin-right: 12px;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .legend-color {
        width: 14px;
        height: 14px;
    }
}


.text-black{
  color:#000;
}

/* CARD TITLE */
.card-title {
    border-radius: 0.5rem 0rem 0.5rem 0rem;
    display:inline-flex;
    padding:1rem;
    min-width: 150px;
}
.card-title-dark {
    background-color: var(--bs-dark);
}
.card-header-actions {
    padding:0.5rem;
    margin-top: auto;
    margin-bottom: auto;
    margin-left:auto;
}


    /* ── Page header ── */
    .page-header {
      margin-bottom: 1.25rem;
    }
    .page-header .treatment-name {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text-dark);
      margin: 0;
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .page-header .treatment-type {
      font-size: .875rem;
      color: var(--text-muted);
      margin: 2px 0 0;
    }

    /* ── Info strip (caractéristiques compactes) ── */
    .info-strip {
      display: flex;
      flex-wrap: wrap;
      gap: .75rem 1.5rem;
      padding: .75rem 1rem;
      background: #fff;
      border: 1px solid var(--bs-border-color);
      border-radius: .75rem;
      margin-bottom: 3rem;
      box-shadow: var(--card-shadow-sm);
    }
    .info-strip .info-item {
      display: flex;
      align-items: center;
      gap: .4rem;
      font-size: .875rem;
      color: var(--text-muted);
    }
    .info-strip .info-item i {
      font-size: 16px;
      color: var(--bs-dark-primary);
      opacity: .8;
    }
    .info-strip .info-item strong {
      color: var(--text-dark);
      font-weight: 500;
    }
    .info-strip .info-divider {
      width: 1px;
      background: var(--bs-border-color);
      align-self: stretch;
    }

    @media (max-width: 576px) {

      /* La strip devient verticale */
      .info-strip {
        display: flex;
        flex-direction: column;
        gap: .75rem;
        position: relative; /* important pour le bouton */
      }

      /* Chaque item prend toute la largeur */
      .info-item {
        width: 100%;
      }

      /* On masque les séparateurs */
      .info-divider {
        display: none;
      }

      /* Bouton paramètres en haut à droite */
      .info-strip .ms-auto {
        position: absolute;
        top: 0;
        right: 0;
        margin-left: 0 !important;
      }

    }

    /* ── Tab navbar ── */
    .tab-nav {
      display: flex;
      border-bottom: 2px solid var(--bs-border-color);
      margin-bottom: 1.5rem;
      gap: 0;
    }
    .tab-nav .tab-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: .65rem 1.1rem;
      font-size: .875rem;
      font-weight: 500;
      color: var(--text-muted);
      cursor: pointer;
      border-bottom: 2px solid transparent;
      margin-bottom: -2px;
      /*transition: color .15s, border-color .15s;*/
      text-decoration: none;
      user-select: none;
    }
    .tab-nav .tab-item i { font-size: 18px; }
    .tab-nav .tab-item:hover { 
      background: var(--bs-bg-secondary); 
      border-bottom-color: var(--bs-text-secondary);
    }
    .tab-nav .tab-item.active {
      color: var(--bs-dark);
      border-bottom-color: var(--bs-text-secondary);
      font-weight: 600;
    }
    .tab-nav .tab-item .tab-count {
      background: var(--bs-bg-secondary);
      color: var(--bs-text-secondary);
      border-radius: 999px;
      padding: 1px 7px;
      font-size: .72rem;
      font-weight: 700;
      min-width: 20px;
      text-align: center;
      /*transition: background .15s, color .15s;*/
    }
    .tab-nav .tab-item.active .tab-count {
      background: var(--bs-bg-secondary);
      color: var(--bs-text-secondary);
    }

    @media (max-width: 576px) {
      .tab-nav{
        gap: 1rem;
      }
      .tab-nav .tab-item { padding: .55rem .75rem; font-size: .8rem; }
      .tab-nav .tab-item span.tab-label { display: none; }
    }

    /* ── Tab pane ── */
    .tab-pane { display: none; }
    .tab-pane.active { display: block; }

    /* ── Tab bar : tabs + bouton sur la même ligne ── */
    .tab-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 2px solid var(--bs-border-color);
      margin-bottom: 1.5rem;
    }
    /* La tab-nav hérite de la bordure du tab-bar, on supprime la sienne */
    .tab-bar .tab-nav {
      border-bottom: none;
      margin-bottom: 0;
      flex: 1;
    }
    .tab-bar-action {
      flex-shrink: 0;
      padding-left: .75rem;
    }