.sidebar {
    display: flex;
    padding: 16px 32px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;

    border-bottom: 4px solid rgba(255, 255, 255, 0.20);
    background: linear-gradient(180deg, #FF9C02 0%, #FF8C00 50%, #FF7A00 100%);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.sidebar-icone-adminInfo {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.icone-admin-photo {
    display: flex;
    width: 56px;
    height: 56px;
    justify-content: center;
    align-items: center;

    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.20);
}

.admin-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar-icone-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon {
    display: flex;
    padding: 8px 12px;
    align-items: center;
    gap: 8px;
    color: white;
    cursor: pointer;

    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: rgba(255, 255, 255, 0.20);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.30);
}

.btn-alerte {
    position: relative;   /* 🔑 référence pour l’absolute */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Badge notif */
.nbNotif {
  position: absolute;
  top: -4px;
  right: -4px;
  background: red;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

.notif-dropdown {
    width: 370px;
    /* On fixe une hauteur maximale, par exemple 500px */
    max-height: 500px; 
    display: flex;
    flex-direction: column; /* Permet de bien séparer le header du contenu */
    padding: 0 !important;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden; /* Empêche les bords de dépasser les arrondis */
}


/* Header (Reste fixe car il n'est pas dans le scroll) */
.notif-header {
  flex-shrink: 0; /* Empêche le header de se compresser */
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #FF9C02 0%, #FF7A00 100%);
}

/* Zone de scroll pour les notifications */
/* On cible les éléments li qui ne sont pas le header, ou on enveloppe la liste */
.notif-list-container {
  overflow-y: auto;
  flex-grow: 1; /* Prend tout l'espace restant */
}


/* Item */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #F3F4F6;
  /* background: rgba(255, 247, 237, 0.30); */
  background-color: white;
  /* background-color: red; */
  cursor: pointer;
}







.notif-item:hover {
  background: #f9f9f9;
}


/* Dots */
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.red { background: #ff3b30; }
.orange { background: #ff9500; }
.green { background: #34c759; }

/* --- BASE (Desktop) --- */
.mynavbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border-radius: 16px;
  border: 1px solid #F3F4F6;
  background: #FFF;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  /* border-radius: 12px; */
  cursor: pointer;
  color: #4A5565;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap; /* Évite que le texte passe à la ligne */
}
.nav-item-border {
  border-radius: 16px;  
}

.notif-list-wrapper {
  padding: 0;
  margin: 0;
  list-style: none;
  flex-grow: 1;
  overflow: hidden;
}

.notif-list-container {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 420px; /* IMPORTANT */
  overflow-y: auto;
}




/* --- MEDIA QUERIES --- */

/* Tablette (On réduit les paddings pour gagner de la place) */
@media (max-width: 1024px) {
  .nav-item {
    padding: 10px 12px;
    gap: 4px;
  }
  .nav-item span:not(.nav-icon) {
    font-size: 14px;
  }
}

/* Mobile (Bottom Navigation) */
@media (max-width: 768px) {
  .mynavbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0; /* On retire les arrondis sur les bords de l'écran */
    border-top: 1px solid #F3F4F6;
    z-index: 1000;
    padding: 8px 4px;
    justify-content: space-around; /* Distribution égale des icônes */
  }

  .nav-item {
    flex-direction: column; /* Icône au dessus du texte */
    gap: 4px;
    padding: 8px 4px;
    flex: 1; /* Chaque item prend la même largeur */
    min-width: 0;
    border-radius: 0;
  }

  /* Optionnel : Cacher le texte sur les très petits écrans pour ne garder que l'icône */
  @media (max-width: 480px) {
    .nav-item span:not(.nav-icon) {
      font-size: 10px;
      /* Ou : display: none; si tu veux juste les icônes */
    }
  }

  .nav-icon {
    font-size: 24px;
  }
}


.nav-item:hover {
  background: #F9FAFB;
  transform: translateY(-1px);
}


.nav-item.active {
  color: #FF9C02;
  background: linear-gradient(90deg, #FFF7ED 0%, #FFFBEB 100%);
  border-bottom: 3px solid #FF9C02;
}

.nav-item.active .nav-icon {
  color: #FF9C02;
}



/* Styles des modals  */

.myModalCard {    
    display: flex;
    width: 550px;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-radius: 10px;
    border: 0.889px solid rgba(0, 0, 0, 0.10);
    background: #FFF;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
}

.detailedInfoHeader {
    


    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

 

.grid-input-container {
  display: grid;
  gap: 16px;
  align-self: stretch;
  /* IMPORTANT: minmax(0, 1fr) permet à la colonne de 
     rétrécir en dessous de la taille de son contenu 
  */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  /* background-color: red; */
  width: 100%;
}



.assign-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px; /* Un peu plus d'espace entre les éléments de la liste */
    align-self: stretch;
    
    /* LIMITATION DE HAUTEUR ET SCROLL */
    max-height: 500px; /* Ajuste selon tes besoins */
    overflow-y: auto;  /* Affiche le scroll uniquement si nécessaire */
    padding-right: 8px; /* Évite que le scroll cache le contenu */
}

/* Optionnel : Personnalisation du scroll pour un look plus "moderne" */
.assign-container::-webkit-scrollbar {
    width: 6px;
}

.assign-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.assign-container::-webkit-scrollbar-thumb:hover {
    background-color: #FF9C02; /* Utilise ta couleur primaire */
}

.driver-available-card {
    display: flex;
    padding: 8px 16px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    cursor: pointer;

    border-radius: 14px;
    border: 2px solid #E5E7EB;


}

.driver-available-card.clicked {
    border: 2px solid #FF7A00;
    background: linear-gradient(90deg, #FFF7ED 0%, #FFFBEB 100%);
}

.grid-paid-card {
    display: inline-grid;
    row-gap: 16px;
    column-gap: 16px;
    align-self: stretch;
    grid-template-rows: repeat(2, fit-content(100%));
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-column-paid {
    gap: 4px;
    align-self: stretch;
    grid-row: 1 / span 1;
    grid-column: 1 / span 1;
    justify-self: stretch;
}

.grid-payment-method {
    display: inline-grid;
    column-gap: 16px;
    align-self: stretch;
    grid-template-rows: repeat(1, fit-content(100%));
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


.paid-choice-card {
  position: relative; 
  display: flex;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  justify-self: stretch;
  grid-row: 1 / span 1;
  cursor: pointer;

  border-radius: 16px;
  border: 1.5px solid #E5E7EB;
}
.paid-choice-card.active{
    border: 1.5px solid #FF9C02;
    background: #FFF7ED;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
}

.paid-info-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    align-self: stretch;
}

.icon-paid {
    display: flex;
    width: 63.984px;
    height: 63.984px;
    justify-content: center;
    align-items: center;
    border-radius: 16px;

}


/* Icône check en haut à droite */
.paid-choice-icon {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 24px;
  height: 24px;

  display: flex;
  justify-content: center;
  align-items: center;
}

/* Ajout modal detailed info */
.detailedCardInfoPrincipale {
    display: flex;
    padding: 8px 16px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 14px;
    background: linear-gradient(90deg, #FFF7ED 0%, #FFFBEB 100%);
}

.icon-detailed-info {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;

    border-radius: 14px;
    background: linear-gradient(135deg, #00C950 0%, #00A63E 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 201, 80, 0.50), 0 4px 6px -4px rgba(0, 201, 80, 0.50);
}

.container-detailed-card {
    display: flex;
    align-items: center;
    gap: 16px;
}
.container-detailed-img {
    display: flex;
    width: 95px;
    height: 95px;
    padding: 3px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 120px;
    background: #FFF;
}
.container-detailed-img img {
    width: 100%;
    height: 100%;
    border-radius: 120px;
    object-fit: cover;
}
.detailed-name-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1 0 0;
}

.role-card {
    display: flex;
    padding: 4px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;

    border-radius: 10px;
    background: #DBEAFE;
}

.detailedCardInfoSecondaire {
    display: inline-grid;
    row-gap: 16px;
    column-gap: 16px;
    align-self: stretch;
    grid-template-rows: repeat(2, fit-content(100%));
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-detailed-grid {
    display: flex;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
    grid-row: 1 / span 1;
    grid-column: 1 / span 1;
    justify-self: stretch;

    border-radius: 14px;
    background: #F9FAFB;
}



/* État quand un fichier est présent */
.containerUpload.has-file {
    border-color: #00A63E; /* Vert */
    background-color: #F0FFF4; /* Fond vert très clair */
}

.file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3; /* Pour être sûr que le bouton "Changer" soit cliquable */
}

/* On s'assure que le nom du fichier ne déborde pas */
.file-name-display {
    font-size: 14px;
    color: #4A5565;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-remove {
    margin-top: 8px;
    font-size: 12px;
    text-decoration: underline;
    color: #6A7282;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10; /* Important pour cliquer par dessus l'input invisible */
}






/* Quand l'écran est inférieur à 600px (Mobile) */
@media (max-width: 600px) {
  .grid-input-container {
    /* 1 seule colonne */
    grid-template-columns: 1fr; 
  }
}

/* Optionnel : Pour tes cartes à l'intérieur */
.grid-item {
  width: 100%;
  min-height: 100px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eee;
}

.qr-code-container {
  display: flex;
flex-direction: column;
align-items: center;
gap: 16px;
align-self: stretch;
}

.txt-info-qr-code {
  display: flex;
padding: 16px 24px;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 16px;
align-self: stretch;

border-radius: 14px;
background: #FFFAEB;
}


/* Detail Paiment  */
.detailStatuContainer {
  display: flex;
height: 28px;
padding-right: 0;
justify-content: flex-end;
align-items: flex-end;
align-self: stretch;
}

.detailStatus {
  display: flex;
padding: 4px 8px;
justify-content: center;
align-items: center;
border-radius: 26843500px;
background: #DCFCE7;
}

.detailPaimentFrame {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
}

.amountDetail {
  display: flex;
  padding: 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 10px;
  background: #FFF4E6;
}

.detailPaidItems {
  display: grid; /* ⬅️ change inline-grid en grid */
  row-gap: 16px;
  column-gap: 16px;
  align-self: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detailPaidItem {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  justify-self: stretch;
}