:root{
  --row-h: 22px; /* Hauteur de ligne réduite */
  --bg: #020617; /* Fond principal */
  --card: #020617; /* Navbar */
  --fg: #e8eef3; /* Texte clair (original) */
  --muted: #9fb0bf; /* Texte grisé (original) */

  --ok: #68D67D; /* Vert clair Excel */
  --ok-border: #68D67D; /* Bordure foncée pour le vert clair */

  --refused: #da7c87; /* Rouge clair Excel */
  --refused-border: #8f1c2a; /* Rouge foncé pour la bordure */

  --preop: #68A4D8;
  --preop-border: #68A4D8;

  --prop: #FFC000;
  --prop-border: #FFC000;
  
  --nok: #FAFAFA;
  --nok-border: #FAFAFA;

  --border: #1f2937;     /* Bordure UI */
  --dupe-border: #ffc000; /* Jaune/Orange pour les doublons */
  --accent: #2d77ff;
  --accent-weak: rgba(45,119,255,.16);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; font-family: system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg); color:var(--fg);
}

/* ===== Barre de navigation ===== */
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  padding:8px 16px; border-bottom:1px solid var(--border); background:var(--card);
}
.brand{ font-weight:700; }
.tabs{ display:flex; gap:8px; }
.nav-btn{
  color:var(--fg); text-decoration:none; padding:8px 10px; border:1px solid var(--border); border-radius:10px;
}
.nav-btn.active{ background:#4c1d95; border-color:#5b21b6; }

/* ===== Toolbars / recherches ===== */
.toolbar{
  display:flex; gap:.6rem; align-items:center; flex-wrap:wrap;
  padding:.75rem 1rem; position:sticky; top:0; background:rgba(2,6,23,0.88); backdrop-filter: blur(6px);
}
.toolbar .sep{flex:1}

/* Boutons génériques */
button{
  background:#020617; color:var(--fg); border:1px solid #2a394a; border-radius:12px;
  padding:.5rem .8rem; cursor:pointer; transition:transform .05s ease, background .2s, opacity .2s, box-shadow .2s;
}
button:hover{ background:#1e2b3b; border-color: #3c5068; }
button:active{ transform:scale(.98) }
button:disabled{ opacity:.45; cursor:not-allowed }

/* Boutons icône (Undo/Redo) */
.icon-btn{
  width:38px; height:38px; display:inline-grid; place-items:center;
  border-radius:12px; padding:0;
}


.icon-btn--text {
  font-size: 1.2rem; /* Taille augmentée */
  font-weight: 900;  /* Police plus épaisse */
  color: var(--muted);
}

/* Boutons texte avec couleurs de fond */
.icon-btn--text-flottes {
  width: auto;
  min-width: 100px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: #3b82f6 !important;
  color: white !important;
  border-color: #2563eb !important;
  white-space: nowrap;
}
.icon-btn--text-flottes:hover {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
}

.icon-btn--text-chronogramme {
  width: auto;
  min-width: 140px;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: #10b981 !important;
  color: white !important;
  border-color: #059669 !important;
  white-space: nowrap;
}
.icon-btn--text-chronogramme:hover {
  background: #059669 !important;
  border-color: #047857 !important;
}

/* Bouton Nouvelle ligne */
.add-row-btn {
  background: #9333ea !important;
  color: white !important;
  border-color: #7e22ce !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.add-row-btn .icon {
  width: 22px;
  height: 22px;
}
.add-row-btn:hover {
  background: #7e22ce !important;
  border-color: #6b21a8 !important;
}
.add-row-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon{ width:20px; height:20px; display:block; }
.icon-btn#font-color-btn {
  position: relative;
  cursor: pointer;
}
.icon-btn .color-swatch {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 4px; border-radius: 2px; background: var(--fg);
}
.icon path{ fill: currentColor; }  /* IMPORTANT: les SVG sont remplis avec la couleur du texte */

.color-palette-popup {
  position: absolute;
  z-index: 2100;
  background: #020617;
  border: 1px solid #2a394a;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.color-palette-title {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .25rem;
  display: block;
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .25rem;
}
.color-swatch-btn {
  width: 24px; height: 24px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
  font-weight: bold;
}
.color-swatch-btn:hover { transform: scale(1.1); }

.other-colors-btn {
  text-align: center;
  position: relative; /* Pour positionner l'input à l'intérieur */
  padding: .4rem;
  border-radius: 4px;
  cursor: pointer;
}
.other-colors-btn:hover { background: rgba(255,255,255,0.08); }
.other-colors-btn input[type="color"] {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}

/* --- Boîte de dialogue modale (pour le tri) --- */
.modal-dialog {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}
.modal-content {
  background: #020617;
  border: 1px solid #2a394a;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  padding: 1.5rem;
  width: 100%;
  max-width: 800px;
}
.modal-content {
  position: relative; /* Nécessaire pour positionner le bouton de fermeture */
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  background: transparent;
  border: none;
  color: var(--muted);
}
.modal-close-btn:hover { background: #2a394a; }

.modal-content h2 {
  margin: 0 0 1.5rem 0;
  color: var(--fg);
  font-size: 1.5rem;
}

/* Ajustement spécifique pour les grandes boîtes de dialogue */
.flotte-list-content h2 {
  margin: 0.5rem 0 1.5rem 0;
}
#sort-levels-container {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.sort-level-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
  background: #020617;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #223040;
  cursor: move;
  transition: background-color 0.2s, border-color 0.2s;
}

.sort-level-row:hover {
  background: #1a2332;
  border-color: #2d4a68;
}

.sort-level-row.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.sort-level-row.drag-over {
  border-top: 3px solid var(--accent);
}

.sort-level-row .drag-handle {
  cursor: grab;
  color: #6c7a8a;
  display: flex;
  align-items: center;
  font-size: 1.2rem;
  user-select: none;
}

.sort-level-row .drag-handle:active {
  cursor: grabbing;
}
.sort-level-selectors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}
.sort-level-selectors .custom-list-select {
  display: none; /* Caché par défaut, affiché par JS */
}

.sort-level-row select,
.custom-list-editor select {
  width: 100%;
  background:#020617; color:var(--fg); border:1px solid #223040; border-radius:8px; padding:.5rem .5rem;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid #2a394a;
}

/* --- Améliorations pour la modale des listes personnalisées --- */
.custom-list-content {
  width: 100%;
  max-width: 700px; /* Plus large */
}
.custom-list-editor {
  display: grid;
  grid-template-columns: 220px 1fr; /* Colonne de gauche plus large */
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
/* --- Style pour la grande modale des listes de flotte --- */
.flotte-list-content {
  width: 98%;
  max-width: 1800px; /* Largeur horizontale augmentée */
  height: 85vh; /* Hauteur FIXE pour un meilleur contrôle */
  display: flex; flex-direction: column; /* Pour que le contenu s'étire */
  overflow: hidden; /* Empêche la modale elle-même de déborder */
}
#flotte-lists-container {
  flex-grow: 1; /* Pour que le conteneur prenne la hauteur disponible */
  display: grid;
  /* Crée des colonnes qui s'adaptent à leur contenu, avec une largeur minimale plus faible */
  grid-template-columns: repeat(auto-fit, minmax(80px, max-content));
  gap: 1rem;
  padding: 1rem;
  overflow-y: auto; /* Ajoute une barre de défilement si le contenu dépasse */
  background-color: #020617; /* Fond légèrement plus sombre pour la zone de contenu */
  border-radius: 8px;
  border: 1px solid #2a394a;
}
.flotte-column {
  display: flex;
  flex-direction: column;
}
.flotte-column.dragging {
  opacity: 0.5; /* Rend la colonne déplacée semi-transparente */
  cursor: grabbing;
}
.flotte-column-header {
  margin: 0 0 .4rem 0;
  padding: .25rem 0.1rem; /* Padding horizontal quasi nul */
  background-color: #2a394a; /* Couleur plus claire pour différencier */
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem; /* Taille de police légèrement réduite */
}
.flotte-column-content {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  overflow-y: auto; /* Scroll si la liste d'engins est longue */
}
.flotte-item {
  background-color: #020617;
  padding: .16rem 0.1rem; /* Padding vertical réduit d'environ 50% par rapport à l'original */
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center; /* Le texte reste centré */
  border: 1px solid #2a394a;
  cursor: pointer;
  transition: background-color 0.2s;
}
.flotte-item:hover {
  background-color: #2a394a;
}
.flotte-item-active {
  background-color: #3b82f6 !important;
  border-color: #2563eb !important;
  font-weight: 600;
}

/* --- Styles pour le Chronogramme --- */
.chrono-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}
.chrono-filters {
  display: flex;
  gap: 0.5rem;
  margin-right: 2rem; /* Ajoute un espace à droite pour éviter le bouton de fermeture */
}
.select-wrapper {
  position: relative;
  display: inline-block;
}
.select-wrapper::after {
  content: '▼';
  font-size: 0.6rem;
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none; /* Permet de cliquer à travers la flèche */
  color: var(--muted);
}
.chrono-select {
  background:#020617; color:var(--fg); border:1px solid #2a394a; border-radius:8px;
  padding: 0.4rem 2.2rem 0.4rem 0.8rem; /* Padding à droite augmenté pour ne pas que le texte passe sous la flèche */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none; /* Masque la flèche par défaut */
}

.chrono-header {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.chrono-header button {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: #020617;
}
.chrono-header button.active {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
}

.chrono-grid {
  display: grid;
  grid-template-columns: 1fr; /* Chaque ligne (en-tête, puis chaque barre) est une seule colonne */
  font-size: 0.85rem;
  color: var(--fg);
  min-width: 100%; /* La grille doit prendre au moins toute la largeur de son conteneur */
}
.chrono-grid > div:first-child {
  display: grid;
  grid-template-columns: repeat(7, minmax(40px, 1fr)); /* Colonnes flexibles avec une largeur minimale */
}

.chrono-header-cell {
  background-color: #020617;
  text-align: center;
  padding: 0.4rem 0;
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #2a394a;
}
.chrono-header-cell--weekday {
  color: #ffffff;
  font-weight: bold;
}
.chrono-header-cell--weekend {
  color: #ff8c00;
  font-weight: bold;
}

.chrono-row-bars {
  position: relative;
  border-bottom: 1px solid #2a394a;
  background-image: linear-gradient(to right, #2a394a 1px, transparent 1px);
  background-size: calc(100% / 7) 100%; /* Lignes verticales pour les jours */
  min-height: 28px; /* Hauteur minimale pour chaque ligne d'engin */
}

.chrono-bar {
  position: absolute;
  top: 10%; height: 80%; /* Barre légèrement plus haute pour une meilleure lisibilité */
  background-color: var(--accent);
  border-radius: 4px;
  cursor: pointer; /* Changé de 'help' à 'pointer' pour indiquer la cliquabilité */
  border: 1px solid rgba(0,0,0,0.3);
  box-sizing: content-box; /* La bordure s'ajoute à la largeur, ce qui est maintenant géré par calc() */
  /* Styles pour le texte à l'intérieur de la barre */
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  font-weight: bold;
  font-size: 0.8rem;
  color: #000; /* Texte noir pour une meilleure lisibilité sur les fonds colorés */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.chrono-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  filter: brightness(1.15);
  z-index: 10;
}

.chrono-bar:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.chrono-bar.rdv-accepted { background-color: var(--ok); }
.chrono-bar.rdv-preop { background-color: var(--preop); }
.chrono-bar.rdv-proposed { background-color: var(--prop); }
.chrono-bar.rdv-empty { background-color: var(--nok); }

/* --- Styles pour la boîte à outils --- */
.outils-header {
  display: flex;
  justify-content: center; /* Centre les boutons d'onglet */
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #2a394a;
  padding-bottom: 1rem;
}
.outils-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
}
.outils-tab-btn.active {
  background: #2a394a;
  color: var(--fg);
  border-color: #3c5068;
}
.outils-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* overflow: hidden; est retiré pour permettre au contenu de déterminer la hauteur */
  min-height: 0; /* Correction cruciale pour le calcul de hauteur dans un conteneur flex */
}
.bloc-notes-controls {
  flex-shrink: 0;
  text-align: left; /* Aligne le bouton "+" à gauche */
  margin-bottom: 1rem; /* Ajoute un espace sous le bouton */
}
.bloc-notes-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Force 3 colonnes */
  gap: 1rem;
  overflow-y: auto; /* L'ascenseur est maintenant sur ce conteneur */
  flex-grow: 1;
  max-height: calc(85vh - 200px); /* Hauteur maximale pour forcer le scroll */
}
.note-wrapper {
  background: #020617;
  display: flex; /* Ajouté pour que le textarea à l'intérieur puisse grandir */
  flex-direction: column; /* Ajouté pour que le textarea à l'intérieur puisse grandir */
  border-radius: 8px;
  border: 1px solid #2a394a;
  position: relative;
  min-width: 200px; /* Empêche les notes d'être trop écrasées */
  min-height: 400px; /* Hauteur minimale pour une note (doublée) */
}
.note-delete-btn {
  -webkit-appearance: none;
  appearance: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none;
  color: #555 !important;
  opacity: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0;
  font-size: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.note-delete-btn:hover {
  color: #e05252 !important;
  background: rgba(224, 82, 82, 0.12) !important;
  border: none !important;
}
.outils-textarea {
  flex-grow: 1; resize: none;
  background: transparent; border: none; color: #1a1a1a; font-size: 1rem; padding: 0.75rem;
}

/* --- Styles pour la Calculatrice --- */
.calculator-wrapper {
  max-width: 400px;
  margin: 2rem auto;
  background: #020617;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border: 1px solid #2a394a;
}
.calc-display {
  background: #020617;
  color: var(--fg);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: right;
  margin-bottom: 1.5rem;
  border: 1px solid #2a394a;
}
.calc-history {
  height: 24px;
  font-size: 1rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calc-result {
  font-size: 2.5rem;
  font-weight: bold;
  word-wrap: break-word;
}
.calc-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.calc-btn {
  height: 60px;
  font-size: 1.5rem;
  border-radius: 12px;
  background: #2a394a;
  border: 1px solid #3c5068;
  color: var(--fg);
}
.calc-btn:hover {
  background: #3c5068;
}
.calc-btn.function {
  background: #3c5068;
  color: #a0b0c0;
}
.calc-btn.function:hover {
  background: #4a5d75;
}
.calc-btn.operator {
  background: #005c9e;
  color: white;
}
.calc-btn.operator:hover {
  background: #0077cc;
}
.calc-btn.equals {
  grid-column: span 2;
  background: var(--accent);
  color: white;
}
.calc-btn.equals:hover { background: #4a8fff; }

/* --- Styles pour le Tooltip du Chronogramme --- */
.chrono-tooltip {
  position: fixed;
  z-index: 4000; /* Au-dessus de tout */
  background-color: #020617;
  color: var(--fg);
  border: 1px solid #2a394a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 700px;
  pointer-events: none; /* La souris passe "à travers" */
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  white-space: pre-wrap; /* Respecte les retours à la ligne */
  transition: opacity 0.1s ease-out, transform 0.1s ease-out;
  transform: scale(0.95);
}
.custom-list-selection, .custom-list-entries {
  display: flex;
  flex-direction: column;
}
.custom-list-selection label, .custom-list-entries label {
  margin-bottom: .5rem;
}
.custom-list-actions { margin-top: .5rem; display: flex; gap: .5rem; }
.custom-list-entries textarea {
  flex-grow: 1; /* Prend toute la hauteur disponible */
}
/* --- Fin modale --- */

/* --- Date Picker Dialog --- */
.date-picker-content {
  max-width: 340px; /* Plus petit que la modale de tri */
  padding: 1rem;
}
.date-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.date-picker-header h3 {
  margin: 0;
  font-size: 1rem;
  flex-grow: 1;
  text-align: center;
}
.dp-grid {
  display: grid;
  grid-template-columns: 30px repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.dp-grid > div {
  padding: .5rem 0;
  border-radius: 6px;
  cursor: pointer;
}
.dp-day-name {
  font-size: .8rem;
  color: var(--muted);
  cursor: default !important;
}
.dp-week-col {
  font-size: .8rem;
  color: var(--muted);
  cursor: default !important;
  display: grid;
  place-items: center;
  background-color: rgba(0,0,0,0.15);
  border-right: 1px solid #2a394a;
}
.dp-day-name.dp-week-col {
  border-bottom: 1px solid #2a394a;
}
.dp-day:hover { background: #2a394a; }
.dp-day.other-month { color: var(--muted); opacity: .5; }
.dp-day.selected { background: var(--accent); color: white; font-weight: bold; }
.dp-day.today { outline: 1px solid var(--accent); }

.dp-time-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  padding: 1rem 0; /* Ajoute un padding en haut ET en bas */
  border-top: 1px solid #2a394a;
}

/* Inputs */
label{ display:inline-flex; gap:.5rem; align-items:center }
input[type="number"]{
  width:72px; background:#020617; color:var(--fg); border:1px solid #223040; border-radius:8px; padding:.35rem .5rem;
}
input[type="text"]#global-search,
input[type="text"]#secondary-search {
  width: 200px; /* Un peu plus petit pour que les deux rentrent bien */
  background:#020617; color:var(--fg); border:1px solid #223040; border-radius:8px; padding:.35rem .5rem;
  transition: box-shadow .2s;
}
textarea {
  background:#020617; color:var(--fg); border:1px solid #223040; border-radius:8px; padding:.35rem .5rem;
  font-family: inherit;
}

.table-wrapper{ padding:1rem }
.scroll-area{
  position: relative;
  height: calc(100vh - 170px);
  overflow:auto; border:1px solid #d4d4d4; border-radius:12px; background:#ffffff;
}

.data-table{
  width:100%;
  border-collapse:collapse;
  border-spacing:0;
  font-size: 14px; 
  color: #000000; /* Texte noir pour le tableau */
  font-family: Calibri, sans-serif;
}
thead th{
  position:sticky; top:0; z-index:2; background:#f0f0f0; color:#000000;
  text-align:center; font-weight:600; padding:0; height:38px; border-bottom:1px solid #b0b0b0;
  vertical-align: middle;
}
.th-content {
  padding:0 .4rem; height:100%;
  display:flex; align-items:center; justify-content:space-between;
}

/* Fait en sorte que le texte du titre "pousse" les bords de la colonne */
.th-content span {
  flex-grow: 1;
}

thead th .col-actions{ display:flex; gap:.2rem; }

.col-action-btn{
  display:grid; place-items:center; width:16px; height:16px; padding:0;
  background:transparent; border:none; border-radius:4px; color:#595959;
  cursor:pointer;
}
.col-action-btn:hover{ background:rgba(0,0,0,.1); color:#000000; }
.col-action-btn.active{ color: #FF0000; } /* Rouge pour indiquer un état actif */
.col-action-btn .icon{
  width:12px;
  height:12px;
  display: block;
}

/* Icône tri (flèche) */
.sort-icon{ transition: transform .2s ease; }
.sort-icon.desc{ transform: rotate(180deg); }

tbody tr{
  height:var(--row-h); line-height:var(--row-h);
}

/* Ligne de séparation horizontale noire */
.data-table tbody tr.group-separator td {
  /* On combine la ligne noire en haut AVEC le quadrillage gris par défaut */
  box-shadow: inset 0 1px 0 #000, inset -1px -1px 0 #e8e8e8;
}

tbody td{
  padding:0 .4rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  /* Le quadrillage est maintenant géré par des ombres internes */
  box-shadow: inset -1px -1px 0 #e8e8e8;
  text-align: center;
}

.data-table td:focus,
.data-table td:focus-visible{ outline: none; }
tbody tr td:last-child{ border-right:none }

/* États Validation RDV */
tr.rdv-ok      { background: var(--ok); }
tr.rdv-preop   { background: #68A4D8; } /* Bleu clair */
tr.rdv-propose { background: #FFC000; } /* Jaune clair */
tr.rdv-refused { background: var(--refused); } /* Rouge clair pour Refusé */
tr.rdv-nok     { background: #FAFAFA; } /* Blanc excel */

/* Masquer le quadrillage pour les lignes avec un fond de couleur en retirant l'ombre */
tr.rdv-ok td,
tr.rdv-preop td,
tr.rdv-propose td,
tr.rdv-refused td {
  box-shadow: none;
}

/* Cas particulier: si une ligne colorée est AUSSI un séparateur, on ne met que la ligne noire */
.data-table tbody tr.group-separator.rdv-ok td,
.data-table tbody tr.group-separator.rdv-preop td,
.data-table tbody tr.group-separator.rdv-propose td,
.data-table tbody tr.group-separator.rdv-refused td {
  box-shadow: inset 0 1px 0 #000;
}

/* Mettre en gras des colonnes spécifiques */
th[data-col="engin"], td[data-col="engin"],
th[data-col="entree"], td[data-col="entree"],
th[data-col="butee"], td[data-col="butee"],
th[data-col="valid_rdv"], td[data-col="valid_rdv"]
{
  font-weight: bold;
}

/* Couleurs de police spécifiques pour la colonne Validation RDV */
tr.rdv-ok td[data-col="valid_rdv"] {
  color: #007635; /* Vert pour "Validé PHP" */
}
tr.rdv-preop td[data-col="valid_rdv"] {
  color: #002060; /* Bleu foncé pour "Validé Pré-Op/Tac" */
  font-weight: bold; /* On le met aussi en gras pour la lisibilité */
}
tr.rdv-refused td[data-col="valid_rdv"] {
  color: var(--refused-border); /* Rouge foncé pour "Refusé" */
  font-weight: bold;
}

/* Couleurs de fond spécifiques pour les en-têtes */
th[data-col="flotte"],
th[data-col="engin"],
th[data-col="site"],
th[data-col="semaine"],
th[data-col="entree"],
th[data-col="sortie"],
th[data-col="code_op"],
th[data-col="libelle"],
th[data-col="ndi"],
th[data-col="butee"] {
  background-color: #CC99FF;
}
th[data-col="valid_rdv"],
th[data-col="comment"] {
  background-color: #FFFF00;
}

/* Bordure épaisse entre Butée et Validation RDV */
th[data-col="butee"],
td[data-col="butee"] {
  border-right: 2px solid #000;
}

/* Style pour les cellules "N° DI" en doublon */
tr.dupe td[data-col="ndi"] {
  background-color: var(--refused); /* Fond rouge clair */
  color: var(--refused-border);      /* Texte rouge foncé */
  font-weight: bold;
}

.cell--readonly{ color:#595959; }
.cell--editing{
  outline:1px solid var(--accent); background:#e5f0ff; color: #000000;
}

/* Indicateur de modification récente par un autre utilisateur */
/* Sélection type Excel : fond bleu uniforme + contour unique */
.cell--sel{ background: var(--accent-weak); }
.scroll-area.dragging{ user-select:none; cursor:crosshair; }

/* Contour global (overlay) */
.selection-box{
  position:absolute; pointer-events:none; z-index: 900;
  border: 2px solid var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(45,119,255,.25);
}

/* Poignée de recopie (fill handle) */
.fill-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border: 1px solid white;
  cursor: crosshair;
  z-index: 901; /* Au-dessus du contour de sélection */
}
.scroll-area.filling { cursor: crosshair; }

/* Menu RDV */
.rdv-menu{
  position:absolute; z-index:1000;
  background:#020617; border:1px solid #2a394a; border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.5); padding:.25rem; min-width:220px;
}
.rdv-menu__item{
  padding:.35rem .6rem; cursor:pointer; white-space:nowrap; border-radius:8px;
  display:flex; align-items:center; gap:.5rem;
}
.rdv-menu__item:hover,
.rdv-menu__item[aria-selected="true"]{ background:#020617; }
.rdv-menu__item .swatch{
  display:inline-block; width:.65rem; height:.65rem; border-radius:50%;
  vertical-align:middle;
}
.swatch--ok{ background:var(--ok); outline:1px solid var(--ok-border) }
.swatch--preop{ background:var(--preop); outline:1px solid var(--preop-border) }
.swatch--propose{ background:var(--prop); outline:1px solid var(--prop-border) }
.swatch--refused{ background:var(--refused); outline:1px solid var(--refused-border) }
.swatch--nok{ background:var(--nok); outline:1px solid var(--nok-border) }

/* Menu d'exportation */
.export-menu {
  position:absolute; z-index:2200; /* Au-dessus du menu de couleur */
  background:#020617; border:1px solid #2a394a; border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.5); padding:.3rem; min-width:240px;
  display: flex; flex-direction: column;
}
.export-menu__item {
  padding:.4rem .8rem; cursor:pointer; white-space:nowrap; border-radius:8px;
  display:flex; align-items:center; gap:.5rem;
}
.export-menu__item:hover { background: var(--accent); color: white; }
.filter-menu{
  position:absolute; z-index:1000;
  background:#020617; border:1px solid #2a394a; border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.5); padding:.5rem; max-width:300px;
  display:flex; flex-direction:column;
}
.filter-menu__header{ display:flex; justify-content:space-between; margin-bottom:.5rem; }
.filter-menu__list{
  max-height:250px; overflow-y:auto; display:flex; flex-direction:column; gap:.2rem;
  padding-right:.5rem; /* pour la scrollbar */
}
.filter-menu__item{
  display:flex; align-items:center; gap:.5rem; cursor:pointer;
  padding:.2rem .4rem; border-radius:4px;
}
.filter-menu__item:hover{ background:rgba(255,255,255,.08); }
.filter-menu__item input{ accent-color: var(--accent); }
.filter-menu__item label{ flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.filter-menu__item .count{ color:var(--muted); font-size:.8em; }
.filter-menu__footer{
  margin-top:.5rem; padding-top:.5rem; border-top:1px solid #2a394a;
  display:flex; justify-content:flex-end; gap:.5rem;
}

.context-menu {
  position:fixed; /* Use fixed to position relative to viewport */
  z-index: 2000;
  background: #020617;
  border: 1px solid #2a394a;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  padding: .3rem;
  min-width: 180px;
}
.context-menu__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .4rem .8rem;
  cursor: pointer;
  border-radius: 6px;
}
.context-menu__item:hover { background: var(--accent); color: white; }
.context-menu__icon {
  width: 16px;
  height: 16px;
}

/* --- Style de la barre de défilement (ascenseur) "flottante" --- */
.scroll-area {
  /* Pour Firefox */
  scrollbar-width: thin;
  scrollbar-color: #CC99FF transparent;
}

/* Pour les navigateurs WebKit (Chrome, Safari, Edge, etc.) */
.scroll-area::-webkit-scrollbar {
  width: 10px;  /* Largeur de la barre verticale */
  height: 10px; /* Hauteur de la barre horizontale */
}

.scroll-area::-webkit-scrollbar-track {
  background: transparent; /* Le "chemin" de la barre est invisible */
}

.scroll-area::-webkit-scrollbar-thumb {
  background-color: #CC99FF; /* La barre elle-même est de la couleur demandée */
  border-radius: 10px; /* Bords arrondis */
  border: 2px solid transparent; /* Crée un effet d'espacement pour un look "flottant" */
  background-clip: content-box;
}

.scroll-area::-webkit-scrollbar-thumb:hover {
  background-color: #b388e6; /* Une teinte légèrement plus foncée au survol */
}

/* --- Bouton flottant pour le Chatbot --- */
.notification-badge {
  position: absolute;
  top: -2px;  /* Remonte la pastille pour qu'elle dépasse */
  right: -2px; /* Décale la pastille vers la droite pour qu'elle dépasse */
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ff3b30; /* Rouge iOS */
  color: white;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
}

/* --- Styles pour la boîte de dialogue du Chatbot --- */
.chatbot-main-container {
  flex-grow: 1;
  min-height: 0; /* Correction cruciale pour permettre aux enfants flex de déborder correctement */
  display: flex;
  gap: 1rem;
  background: #020617;
  border-radius: 8px;
  border: 1px solid #2a394a;
  padding: 1rem;
  color: var(--fg);
  flex-direction: row; /* Force la direction en ligne pour les panneaux */
}

/* Amélioration du design de la modale du chatbot */
#chatbot-dialog .modal-content {
  background: #020617;
  border: 1px solid #3c5068;
}

.chatbot-pane {
  flex: 1;
  min-height: 0; /* Correction cruciale pour permettre à l'overflow de fonctionner dans un conteneur flex */
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Ajoute un ascenseur si le contenu dépasse */
  gap: 1rem; /* Espace entre les messages */
}
.chatbot-pane:first-child {
  border-right: 1px solid #2a394a;
  padding-right: 1rem;
}

/* --- Conteneur pour un message du bot (bulle + avatar) --- */
.bot-message-group {
  display: flex;
  flex-direction: row-reverse; /* Place l'avatar à droite de la bulle */
  align-items: flex-end; /* Aligne le bas de la bulle avec le bas de l'avatar */
  justify-content: flex-start; /* Aligne le groupe à gauche pour que la bulle puisse grandir */
  gap: 0.5rem; /* Espace entre la bulle et l'avatar */
}

.bot-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--accent);
  color: white;
  display: grid;
  place-items: center;
}

/* --- Styles pour les bulles de dialogue --- */
.chat-bubble {
  max-width: 85%; /* La bulle ne prend pas toute la largeur */
  padding: 0.6rem 1rem;
  border-radius: 18px;
  line-height: 1.4;
  word-wrap: break-word; /* S'assure que le texte long va à la ligne */
}
.chat-bubble p { margin: 0; }

.chat-bubble.bot {
  background-color: var(--accent); /* Couleur bleue du bouton flottant */
  color: white; /* Texte blanc pour un meilleur contraste */
  border-bottom-right-radius: 4px; /* Crée un effet "queue" de bulle sur la droite */
  align-self: flex-end; /* S'assure que la bulle est bien alignée en bas */
}

.chat-bubble.user {
  background-color: #2a394a;
  color: var(--fg);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-bubble.clickable {
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.chat-bubble.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.chat-bubble.clickable:active {
  transform: translateY(0);
}

.chat-bubble.green-bg {
  background-color: #68D67D; /* Vert */
  color: #0f151c; /* Texte sombre pour meilleur contraste */
}

.user-request-group {
  margin-bottom: 1rem;
}

/* --- Boîte de dialogue d'alerte personnalisée --- */
.alert-content {
  text-align: center;
  max-width: 400px;
}

.alert-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.alert-content h3 {
  margin: 0 0 1rem 0;
  color: var(--fg);
  font-size: 1.25rem;
}

.alert-content p {
  margin: 0 0 1.5rem 0;
  color: var(--muted);
  line-height: 1.5;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.6rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 119, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}


/* --- Wrapper pour les champs de recherche avec bouton clear --- */
.search-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.search-clear-btn {
  padding: .35rem .5rem;
  border-radius: 8px;
  border: 1px solid #223040;
  background: #020617;
  color: #fca5a5;
  cursor: pointer;
  margin-left: 8px;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s;
}

.search-clear-btn:hover {
  background: #020617;
  color: #ff6b6b;
}

.search-clear-btn:active {
  transform: scale(0.95);
}

#eur-to-ef-btn {
  position: relative;
  top: -4px; /* Aligne avec le bouton +87.. */
}

/* Barre d'outils de la note (couleurs + supprimer) */
.note-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.note-color-palette {
  display: flex;
  gap: 0.4rem;
}

.note-color-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.note-color-btn:hover {
  transform: scale(1.15);
  border-color: rgba(0, 0, 0, 0.4);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.note-color-btn:active {
  transform: scale(0.95);
}

/* ===== Styles pour l'authentification ===== */

/* Boutons d'authentification dans la toolbar */
.auth-btn {
  position: relative;
}

.auth-btn.logged-in {
  background: linear-gradient(135deg, #2d77ff, #1e5ecc);
  border-color: #1e5ecc;
  color: white;
  /* Adapter la largeur au contenu quand un utilisateur est connecté */
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  gap: 8px;
  white-space: nowrap;
  font-size: 1rem;
  /* Utiliser flexbox pour un meilleur alignement de l'icône et du texte */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-btn.logged-in i {
  /* Ajuster légèrement l'icône pour qu'elle soit bien centrée verticalement */
  margin-top: 1px;
}

.auth-btn.logged-in:hover {
  background: linear-gradient(135deg, #1e5ecc, #1650b3);
}

/* Overlay pour les dialogues */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  backdrop-filter: blur(4px);
}

/* Dialogues d'authentification - doivent être au-dessus de l'overlay */
#login-dialog,
#user-management-dialog {
  z-index: 9999 !important;
}

/* Boîte de dialogue de connexion */
.login-content {
  max-width: 400px;
  width: 90%;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #2a394a;
  border-radius: 8px;
  background: #020617;
  color: var(--fg);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 119, 255, 0.1);
}

.error-message {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover {
  background: #1e5ecc;
  border-color: #1e5ecc;
}

.btn-secondary {
  background: #2a394a;
  color: var(--fg);
  border-color: #3c5068;
}

.btn-secondary:hover {
  background: #3c5068;
}

/* Boîte de dialogue de gestion des utilisateurs */
.users-table-wrapper {
  margin: 1rem 0;
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #2a394a;
  border-radius: 8px;
  background: #020617;
}

.users-table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  color: var(--fg);
  background: transparent !important;
  border: none !important;
}

.users-table thead {
  position: sticky;
  top: 0;
  background: #020617 !important;
  z-index: 10;
}

.users-table thead tr {
  background: #020617 !important;
  border: none !important;
}

.users-table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
  border: none !important;
  border-bottom: 2px solid #2a394a !important;
  font-size: 0.9rem;
  color: var(--muted);
  background: #020617 !important;
}

.users-table tbody {
  background: transparent !important;
}

.users-table tbody tr {
  background: transparent !important;
  border: none !important;
}

.users-table td {
  padding: 0.75rem;
  border: none !important;
  border-bottom: 1px solid #1b2530 !important;
  background: transparent !important;
  text-align: left !important;
}

.users-table tr:hover {
  background: rgba(45, 119, 255, 0.05) !important;
}

.users-table *,
.users-table *::before,
.users-table *::after {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  box-shadow: none !important;
}

.users-table input,
.users-table select {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #2a394a !important;
  border-radius: 6px;
  background: #020617 !important;
  color: var(--fg);
  font-size: 0.9rem;
}

.users-table input:focus,
.users-table select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(45, 119, 255, 0.1);
}

.delete-user-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

.delete-user-btn {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
}

.delete-user-btn:hover {
  background: rgba(220, 53, 69, 0.2);
}

.user-role {
  cursor: pointer;
}

/* Section d'ajout d'utilisateur */
.add-user-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #020617;
  border: 1px solid #2a394a;
  border-radius: 8px;
}

.add-user-section h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--fg);
  font-size: 1.1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 150px;
}

.form-row button {
  height: fit-content;
  padding: 0.75rem 1.5rem;
}

/* Indicateur de mode lecture seule dans la toolbar */
.readonly-indicator-inline {
  background: rgba(255, 152, 0, 0.2);
  border: 1px solid rgba(255, 152, 0, 0.5);
  color: #ffa726;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Notification temporaire */
.auth-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* Empêcher les interactions quand invisible */
  pointer-events: none;
}

.auth-notification.show {
  opacity: 1;
  transform: translateY(0);
  /* Permettre les interactions quand visible */
  pointer-events: auto;
}

.auth-notification.success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #81c784;
}

.auth-notification.error {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ff6b6b;
}

.auth-notification.info {
  background: rgba(33, 150, 243, 0.2);
  border: 1px solid rgba(33, 150, 243, 0.4);
  color: #64b5f6;
}

/* Boîte de dialogue de confirmation personnalisée */
.custom-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.custom-dialog-content {
  background: #020617;
  border: 1px solid #2a394a;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 90%;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.custom-dialog-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border-bottom: 1px solid #2a394a;
}

.custom-dialog-header i {
  color: #ffa726;
  font-size: 1.5rem;
}

.custom-dialog-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--fg);
  font-weight: 600;
}

.custom-dialog-body {
  padding: 1.5rem;
}

.custom-dialog-body p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.custom-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #2a394a;
}

.custom-dialog-actions .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.custom-dialog-actions .btn-secondary {
  background: #2a394a;
  color: var(--fg);
  border-color: #3c5068;
}

.custom-dialog-actions .btn-secondary:hover {
  background: #3c5068;
}

.custom-dialog-actions .btn-danger {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.4);
  color: #ff6b6b;
}

.custom-dialog-actions .btn-danger:hover {
  background: rgba(220, 53, 69, 0.3);
  border-color: rgba(220, 53, 69, 0.5);
}

.custom-dialog-actions .btn-primary {
  background: rgba(66, 153, 225, 0.2);
  border-color: rgba(66, 153, 225, 0.4);
  color: #4299e1;
}

.custom-dialog-actions .btn-primary:hover {
  background: rgba(66, 153, 225, 0.3);
  border-color: rgba(66, 153, 225, 0.5);
}

/* Styles pour les différents types d'alertes */
.custom-dialog-header.success i {
  color: #48bb78;
}

.custom-dialog-header.error i {
  color: #f56565;
}

.custom-dialog-header.warning i {
  color: #ffa726;
}

.custom-dialog-header.info i {
  color: #4299e1;
}

/* Style pour le champ de saisie dans les boîtes de dialogue prompt */
.custom-prompt-input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 10px;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.custom-prompt-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
