/* ============================================================
   VARIABLES GLOBALES
   ============================================================ */
:root {
  --fond: #f3f4f6;
  --fond-secondaire: #ffffff;
  --bouton-bleu: #3f81ea;
  --bouton-bleu-hover: #3367d6;
  --texte-secondaire: #ffffff;
  --texte-noir: #1f2937;
  --texte-gris: #6b7280;
  --texte-clair: #9ca3af;
  --bordure: #e5e7eb;
  --gris-ligne: #eeeeee;
  --danger: #ef4444;
  --success: #10b981;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
body {
  background-color: var(--fond);
  margin: 0;
  display: flex;
  font-family: "Inter", sans-serif;
}

button {
  color: var(--texte-secondaire);
  background-color: var(--bouton-bleu);
  font-weight: 700;
  width: 100%;
  height: 3em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

hr {
  width: 85%;
  border: none;
  border-top: 1px solid var(--gris-ligne);
  margin: 15px auto;
}

/* ============================================================
   MENU LATÉRAL
   ============================================================ */
.menu {
  width: 18.875em;
  min-height: 100vh;
  background-color: var(--fond-secondaire);
  display: flex;
  flex-direction: column;
  /* On retire position: sticky et top: 0 */
  position: relative;
}

header {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

header > h1 {
  font-weight: 800;
  margin: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
  padding: 12px 25px;
  font-weight: 500;
  font-size: 16px;
  transition: background 0.2s;
}

.menu-item:hover {
  background-color: #f8fafc;
  color: var(--bouton-bleu);
}

.menu-item i {
  width: 20px;
  height: 20px;
}

.export-user-item {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.export-user-item:has(input:checked) {
    background-color: #f8fafc; /* Gris très léger pour les sélectionnés */
    border-left: 3px solid #3f81ea; /* Petite barre bleue de rappel */
}
/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.global {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.global h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--texte-noir);
  margin: 0;
}

/* ============================================================
   ONGLETS (CORRIGÉ)
   ============================================================ */
.tab-content {
  display: none; /* On enlève le !important ici */
}

.tab-content.active {
  display: block !important;
}
/* ============================================================
   PROFIL
   ============================================================ */
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--fond-secondaire);
  padding: 8px 16px;
  border-radius: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================================
   DASHBOARD — STATS CARDS
   ============================================================ */
.dashboard-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  flex: 1;
}

.stat-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-header {
  display: flex;
  justify-content: space-between;
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.card-body strong {
  font-size: 3rem;
  font-weight: 800;
}

.card-body small {
  font-size: 1.2rem;
}

/* ============================================================
   LISTE DES PROCHAINES ABSENCES
   ============================================================ */
.proabsence {
  width: 280px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.proabsence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.proabsence-header h6 {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}

.proabsence ul {
  padding: 0;
  margin-bottom: 20px;
  list-style: none;
}

.proabsence li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #444;
}

.proabsence .details {
  width: 100%;
  background-color: var(--bouton-bleu);
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================================================
   MODALE — DEMANDE DE CONGÉ
   ============================================================ */
.demande-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  max-width: 90vw;
  height: 575px;
  z-index: 9999;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid #ddd;
  animation: apparitionDouce 0.4s ease-out forwards;
}

@keyframes apparitionDouce {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.form-header h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
}

.row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bordure);
  border-radius: 6px;
  padding: 8px 12px;
}

.form-group label {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
}

.summary-box {
  background: #f9fafb;
  border: 1px solid var(--bordure);
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  background: #e5e7eb;
  color: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  height: auto;
  width: auto;
  cursor: pointer;
}

.btn-submit {
  background: var(--bouton-bleu);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  height: auto;
  width: auto;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--bouton-bleu-hover);
}

.close-icon {
  background: none;
  border: none;
  width: auto;
  height: auto;
  color: #666;
  cursor: pointer;
}

/* ============================================================
   BOUTONS ACTIONS (TABLEAU)
   ============================================================ */
.btn-action {
  background: none;
  border: 1px solid var(--bouton-bleu);
  color: var(--bouton-bleu);
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: 0.2s;
  width: auto;
  height: auto;
}

.btn-action:hover {
  background: var(--bouton-bleu);
  color: white;
}

.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-icon {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: auto;
  height: auto;
  color: var(--texte-gris);
}

.btn-icon i {
  width: 18px;
  height: 18px;
}

.btn-icon.edit {
  color: var(--bouton-bleu);
  background-color: rgba(63, 129, 234, 0.1);
}

.btn-icon.edit:hover {
  background-color: var(--bouton-bleu);
  color: white;
}

.btn-icon.delete {
  color: var(--danger);
  background-color: rgba(239, 68, 68, 0.1);
}

.btn-icon.delete:hover {
  background-color: var(--danger);
  color: white;
}

/* ============================================================
   FILTRES & RECHERCHE
   ============================================================ */
.filtre {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: #666;
  pointer-events: none;
  width: 18px;
  height: 18px;
}

input[type="search"],
input[type="text"].search-input {
  width: 100%;
  padding: 10px 10px 10px 35px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  font-size: 15px;
  height: 40px;
  box-sizing: border-box;
  font-family: inherit;
}

select {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  background-color: white;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
}

.status-select {
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--bordure);
  padding: 0 10px;
}

/* ============================================================
   GESTION LAYOUT (tableau + fiche)
   ============================================================ */
.gestion-layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-top: 20px;
}

.left-side {
  flex: 1.2;
}

.right-side {
  flex: 1;
}

/* ============================================================
   TABLEAUX
   ============================================================ */
.custom-table {
  width: 100%;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border-collapse: collapse;
}

.custom-table th {
  background-color: #f8fafc;
  padding: 12px;
  text-align: left;
  font-size: 0.85rem;
  color: #666;
  border-bottom: 1px solid var(--gris-ligne);
}

.custom-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--gris-ligne);
  vertical-align: middle;
}

.table-scroll-area {
  max-height: calc(100vh - 350px);
  overflow-y: auto;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--bordure);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge.actif {
  background: #dcfce7;
  color: #166534;
}
.badge.inactif {
  background: #fee2e2;
  color: #991b1b;
}
.badge-cp {
  background: #e3f2fd;
  color: #1976d2;
}
.badge-maladie {
  background: #fbe9e7;
  color: #d84315;
}

/* ============================================================
   FICHE UTILISATEUR (droite)
   ============================================================ */
.right-body {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.right-body.detail-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  position: sticky;
  top: 20px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--texte-clair);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 15px 0 10px;
}

.info-card {
  background-color: #f5f5f5;
  border-radius: 12px;
  padding: 15px;
  margin: 0 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.info-row span {
  color: #64748b;
}

.label {
  color: #666;
  font-size: 0.95rem;
}
.value {
  color: #000;
  font-weight: 600;
  font-size: 0.95rem;
}

.counter-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
  border-bottom: 1px solid var(--gris-ligne);
}

.counter-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.counter-label {
  font-size: 0.9rem;
  font-weight: 600;
}
.counter-value {
  font-size: 1.8rem;
  font-weight: 800;
}
.counter-controls {
  display: flex;
  gap: 20px;
}

/* ============================================================
   CONFIGURATION — RÈGLES
   ============================================================ */
.rules-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid var(--bordure);
}

.rules-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  color: var(--texte-noir);
}

.rules-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.rules-header i {
  color: var(--bouton-bleu);
}

.rules-content {
  display: flex;
  gap: 40px;
}

.left-panel,
.right-panel {
  flex: 1;
}

.option-card {
  display: block;
  border: 1px solid var(--bordure);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-card:hover {
  background-color: #f9fafb;
}
.option-card input[type="radio"] {
  display: none;
}

.option-card:has(input:checked) {
  border-color: var(--bouton-bleu);
  background-color: rgba(63, 129, 234, 0.05);
}

.card-content {
  display: flex;
  gap: 15px;
}

.radio-circle {
  width: 18px;
  height: 18px;
  border: 2px solid var(--bordure);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.option-card input:checked + .card-content .radio-circle {
  border-color: var(--bouton-bleu);
}

.option-card input:checked + .card-content .radio-circle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  background: var(--bouton-bleu);
  border-radius: 50%;
}

.label-title {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}
.label-desc {
  font-size: 0.8rem;
  color: var(--texte-gris);
}

.input-group {
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.input-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--texte-noir);
}

.date-input-wrapper {
  position: relative;
}

.date-input-wrapper input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--bordure);
  border-radius: 6px;
  font-family: inherit;
}

.row-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.radio-group-inline {
  display: flex;
  gap: 15px;
}

/* Acquisition */
.acquisition-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  flex: 1.2;
}

.quota-value {
  font-size: 2.2rem;
  margin: 20px 0;
}
.quota-value span {
  font-size: 1rem;
  font-weight: normal;
}

.edit-link {
  display: inline-block;
  margin-top: 25px;
  color: #000;
  font-weight: bold;
  text-decoration: underline;
  font-size: 0.85rem;
}

.right-panel-vertical {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.info-block {
  background: #fcfcfc;
  padding: 20px;
  border-radius: 4px;
}

.split-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Barre de progression */
.progress-container {
  height: 8px;
  background: #e5e7eb;
  border-radius: 10px;
  margin: 15px 0;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: var(--bouton-bleu);
  border-radius: 10px;
}

/* Tableau des types de congés */
.table-container {
  margin: 20px 0;
  border: 1px solid var(--bordure);
  border-radius: 8px;
  overflow: hidden;
}

.leaves-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaves-table th {
  background: #f9fafb;
  padding: 12px 15px;
  font-size: 0.7rem;
  color: var(--texte-gris);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaves-table td {
  padding: 15px;
  border-top: 1px solid var(--bordure);
  font-size: 0.9rem;
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.icon-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--texte-gris);
  border-radius: 4px;
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
}

.icon-btn:hover {
  background: #f3f4f6;
  color: var(--texte-noir);
}
.icon-btn.delete:hover {
  color: var(--danger);
  background: #fee2e2;
}

.add-button {
  display: block;
  width: 100%;
  padding: 12px;
  background: var(--bouton-bleu);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  height: auto;
}

.add-button:hover {
  background: var(--bouton-bleu-hover);
}

/* ============================================================
   POPUP SUPPRESSION
   ============================================================ */
.suppression-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.popup-content h3 span {
  color: var(--danger);
  display: block;
}

/* ============================================================
   CALENDRIER FULLCALENDAR
   ============================================================ */
#calendrier {
  min-height: 80vh;
  width: 100%;
  background: white;
  padding: 20px;
  border-radius: 12px;
}

.fc-header-toolbar {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap !important;
  width: 100%;
  margin-bottom: 20px !important;
}

.fc-button-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 2px;
}

.fc-today-button {
  margin-right: 8px !important;
}

.fc .fc-button-primary {
  background-color: var(--bouton-bleu) !important;
  border: none !important;
  font-weight: 600 !important;
  text-transform: capitalize !important;
  box-shadow: none !important;
}

.fc .fc-button-primary:hover {
  background-color: var(--bouton-bleu-hover) !important;
}

.fc a {
  color: var(--texte-noir) !important;
  text-decoration: none !important;
}

.fc th a {
  color: var(--texte-gris) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border: 1px solid var(--bordure) !important;
}

.fc .fc-day-today {
  background-color: rgba(63, 129, 234, 0.05) !important;
}
.fc .fc-icon {
  vertical-align: middle !important;
}

/* ============================================================
   VALIDATION — BOUTONS APPROUVER / REFUSER
   ============================================================ */
.btn-approve {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  height: auto;
  width: auto;
}

.btn-refuse {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  height: auto;
  width: auto;
}

.btn-approve:hover {
  background-color: #218838;
}
.btn-refuse:hover {
  background-color: #c82333;
}

.form-control-sm {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 4px;
  font-family: inherit;
}

#calendar {
  min-height: 600px;
  font-family: "Inter", sans-serif;
}

/* On customise les boutons de FullCalendar pour coller à ton thème bleu */
.fc .fc-button-primary {
  background-color: var(--bouton-bleu) !important;
  border-color: var(--bouton-bleu) !important;
}

.fc .fc-button-primary:hover {
  background-color: var(--bouton-bleu-hover) !important;
}

.fc-theme-standard td,
.fc-theme-standard th {
  border: 1px solid #f0f0f0 !important;
}

.fc-event {
  border: none !important;
  padding: 3px 8px !important;
  font-weight: 500 !important;
}

/* Conteneur principal de l'onglet */
#gestion-utilisateurs {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Grille principale */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 380px; /* Largeur fixe pour le panneau de droite */
  gap: 30px;
  align-items: start;
}

/* Colonne de gauche (Liste) */
.admin-main {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Cartes utilisateurs revisitées */
.user-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
  transition: transform 0.2s;
}

.user-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Badges de solde sur la carte */
.user-badges {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 20px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  text-align: center;
}

.badge.cp {
  background: #e0e7ff;
  color: #4338ca;
}
.badge.rtt {
  background: #fef3c7;
  color: #92400e;
}

/* Panneau latéral (Le fix est ici) */
.admin-sidebar {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  position: sticky;
  top: 20px; /* Reste fixé en haut au scroll */
  z-index: 10;
}

/* Inputs dans le panneau */
.admin-sidebar .form-group {
  margin-bottom: 15px;
}

.admin-sidebar label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 5px;
}

.admin-sidebar input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box; /* Crucial pour ne pas déborder */
}

/* Grille 2 colonnes pour CP/RTT */
.row-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Bouton Modifier (Liste) */
.btn-edit-user {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-edit-user:hover {
  background: #1d4ed8;
}
.user-card-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.user-card-mini:hover {
  background: #f9fafb;
}

.user-info-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-mini {
  width: 32px;
  height: 32px;
  background: #eef2ff;
  color: #4338ca;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.details-mini h4 {
  font-size: 14px;
  margin: 0;
  color: #111827;
}

.mini-badges {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.user-actions {
  display: flex;
  gap: 8px;
}

.btn-icon-mini {
  background: none;
  border: none;
  padding: 6px;
  border-radius: 6px;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.2s;
}

.btn-icon-mini.edit:hover {
  background: #eff6ff;
  color: #2563eb;
}
.btn-icon-mini.delete:hover {
  background: #fef2f2;
  color: #dc2626;
}

.btn-icon-mini i {
  width: 16px;
  height: 16px;
}

/* Container de la liste */
.user-list-container {
  background: white;
  border-radius: 12px;
  border: 1px solid #edf2f7;
  overflow: hidden;
}

/* Une ligne collaborateur */
.user-row-item {
  display: grid;
  grid-template-columns: 2fr 1fr 100px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f7fafc;
  transition: background 0.2s ease;
}

.user-row-item:last-child {
  border-bottom: none;
}
.user-row-item:hover {
  background: #f8fafc;
}

/* Avatar et Infos */
.user-main-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar-circle {
  width: 36px;
  height: 36px;
  background: #6366f1;
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.user-text-details {
  display: flex;
  flex-direction: column;
}
.user-name-label {
  font-weight: 600;
  color: #1a202c;
  font-size: 14px;
}
.user-email-sub {
  font-size: 12px;
  color: #718096;
}

/* Badges de stats */
.user-stats-mini {
  display: flex;
  gap: 10px;
}
.mini-badge-cp,
.mini-badge-rtt {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.mini-badge-cp {
  background: #ebf4ff;
  color: #3182ce;
}
.mini-badge-rtt {
  background: #fffaf0;
  color: #dd6b20;
}

/* Boutons d'action iconographiques */
.user-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.action-icon-btn {
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color: #a0aec0;
  transition: all 0.2s;
}

.action-icon-btn:hover {
  background: #edf2f7;
  color: #4a5568;
}
.action-icon-btn.delete:hover {
  background: #fff5f5;
  color: #e53e3e;
}

.action-icon-btn i {
  width: 18px;
  height: 18px;
}

.mini-badge-cp {
  background: #e0e7ff;
  color: #4338ca;
} /* Bleu pour CP */
.mini-badge-rtt {
  background: #fef3c7;
  color: #92400e;
} /* Orange pour RTT */
.mini-badge-maladie {
  background: #fee2e2;
  color: #b91c1c;
} /* Rouge pour Maladie */

/* ============================================================
   MENU LATÉRAL MODERNE
   ============================================================ */
.menu {
  width: 260px; /* Largeur légèrement plus fine pour un look moderne */
  min-height: 100vh;
  background-color: var(--fond-secondaire);
  display: flex;
  flex-direction: column;
  padding: 24px 16px; /* Plus d'air sur les côtés */
  border-right: 1px solid var(--bordure); /* Séparation fine au lieu d'une ombre lourde */
  box-sizing: border-box;
}

header {
  padding: 0 12px 32px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligné à gauche pour un look plus pro */
  gap: 20px;
}

header > h1 {
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--bouton-bleu); /* Le nom de l'app en couleur */
}

/* Le bouton principal "Déposer une demande" */
header .button {
  height: 44px;
  font-size: 0.9rem;
  border-radius: 10px;
  background: var(--bouton-bleu);
  transition:
    transform 0.2s,
    background 0.2s;
  box-shadow: 0 4px 12px rgba(63, 129, 234, 0.2);
}

header .button:hover {
  background: var(--bouton-bleu-hover);
  transform: translateY(-1px);
}

/* Éléments du menu */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--texte-gris); /* Texte plus doux par défaut */
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}

/* État Hover */
.menu-item:hover {
  background-color: #f3f4f6;
  color: var(--texte-noir);
}

/* État Actif (L'onglet où on se trouve) */
.menu-item.active {
  background-color: rgba(63, 129, 234, 0.1); /* Fond bleu très léger */
  color: var(--bouton-bleu); /* Texte et icône en bleu */
}

.menu-item i {
  width: 20px;
  height: 20px;
  stroke-width: 2px; /* Icônes plus affirmées */
}

/* Séparateurs (hr) */
hr {
  width: 100%;
  margin: 20px 0;
  opacity: 0.5;
}

/* Style spécifique pour la déconnexion en bas */
.menu-item[href*="logout"] {
  margin-top: auto; /* Pousse la déconnexion vers le bas */
  color: var(--danger);
}

.menu-item[href*="logout"]:hover {
  background-color: #fef2f2;
}

#btn-refresh-validations:hover {
  background-color: #f8fafc;
  border-color: var(--bouton-bleu);
  color: var(--bouton-bleu);
}

#btn-refresh-validations i {
  display: block;
}

.btn-icon-refresh {
  background: white;
  border: 1px solid var(--bordure);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  color: var(--texte-noir);
}

.btn-icon-refresh:hover {
  background-color: #f8fafc;
  color: var(--bouton-bleu);
  border-color: var(--bouton-bleu);
}

/* Classe qui sera ajoutée par le JS pour faire tourner l'icône */
.rotating {
  animation: spin 0.6s linear;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Style du bouton avec l'ID utilisé dans le HTML */
#btn-refresh-validations {
  background: white;
  border: 1px solid var(--bordure);
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  color: var(--texte-noir);
}

#btn-refresh-validations:hover {
  background-color: #f8fafc;
  color: var(--bouton-bleu);
  border-color: var(--bouton-bleu);
}

/* L'icône doit être en block ou inline-block pour tourner */
#btn-refresh-validations i {
  display: inline-block;
}

/* La classe d'animation */
.rotating {
  animation: spin 0.6s linear infinite; /* Ajout de infinite pour être sûr qu'elle tourne */
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Style du petit bouton d'actualisation */
.btn-refresh-small {
  width: 40px !important; /* Taille fixe */
  height: 40px !important; /* Taille fixe */
  min-width: 40px !important;
  padding: 0 !important;
  background: white !important;
  border: 1px solid var(--bordure) !important;
  border-radius: 10px !important;
  color: var(--texte-noir) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-refresh-small:hover {
  background-color: #f8fafc !important;
  color: var(--bouton-bleu) !important;
  border-color: var(--bouton-bleu) !important;
  transform: translateY(-1px);
}

/* Animation de rotation pour l'icône */
.rotating {
  animation: spin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Force l'icône à être un bloc pour que la rotation fonctionne */
.btn-refresh-small i {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Bouton Refresh Minimaliste */
.btn-icon-refresh,
#btn-refresh-validations {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  padding: 0 !important;
  background: white !important;
  border: 1px solid var(--bordure) !important;
  border-radius: 10px !important;
  color: var(--texte-noir) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-icon-refresh:hover,
#btn-refresh-validations:hover {
  border-color: var(--bouton-bleu) !important;
  color: var(--bouton-bleu) !important;
  background-color: #f8fafc !important;
}

/* Animation de rotation */
.rotating {
  animation: spin 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Important : l'icône doit être inline-block pour tourner */
#btn-refresh-validations i {
  display: inline-block !important;
  width: 18px;
  height: 18px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-confirm-content {
  background: white;
  padding: 30px;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(0);
  animation: slideUp 0.3s ease-out;
}

.modal-confirm-icon {
  width: 60px;
  height: 60px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--bouton-bleu);
}

.modal-confirm-icon.danger {
  background: #fee2e2;
  color: #ef4444;
}
.modal-confirm-icon.success {
  background: #dcfce7;
  color: #10b981;
}

.modal-confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-toast {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden; /* Pour la barre de progression */
  border-left: 6px solid #3f81ea;
}

.custom-toast.show {
  transform: translateX(0);
}

.custom-toast.success {
  border-left-color: #10b981;
}
.custom-toast.danger {
  border-left-color: #ef4444;
}

/* Icônes */
.custom-toast i {
  flex-shrink: 0;
}

.custom-toast .toast-content {
  display: flex;
  flex-direction: column;
}

.custom-toast .toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
}

.custom-toast .toast-message {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Barre de progression de chargement (le "timer") */
.custom-toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
}

.custom-toast.show::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: inherit; /* Utilise la couleur de la bordure gauche */
  z-index: 1;
  animation: toastProgress 2s linear forwards;
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}
.toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-toast {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  min-width: 320px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  transform: translateX(120%);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden; /* Pour la barre de progression */
  border-left: 6px solid #3f81ea;
}

.custom-toast.show {
  transform: translateX(0);
}

.custom-toast.success {
  border-left-color: #10b981;
}
.custom-toast.danger {
  border-left-color: #ef4444;
}

/* Icônes */
.custom-toast i {
  flex-shrink: 0;
}

.custom-toast .toast-content {
  display: flex;
  flex-direction: column;
}

.custom-toast .toast-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
}

.custom-toast .toast-message {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Barre de progression de chargement (le "timer") */
.custom-toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(0, 0, 0, 0.05);
}

.custom-toast.show::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: inherit; /* Utilise la couleur de la bordure gauche */
  z-index: 1;
  animation: toastProgress 2s linear forwards;
}

@keyframes toastProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

#btn-reset-filters {
  transition: transform 0.2s ease;
}
#btn-reset-filters:active {
  transform: scale(0.95);
}
/* Badge pour l'état "En attente" */
.badge.en-attente {
  background: #fef3c7; /* Fond jaune clair */
  color: #92400e; /* Texte orange foncé */
}

/* On s'assure aussi que les badges sans statut particulier soient lisibles */
.badge {
  background: #e5e7eb;
  color: #374151;
}

.option-card {
  border: 2px solid var(--bordure);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.option-card:has(input:checked) {
  border-color: var(--bouton-bleu);
  background-color: rgba(63, 129, 234, 0.05);
}

.option-card input[type="radio"] {
  width: 20px;
  height: 20px;
  accent-color: var(--bouton-bleu);
}

.rules-container {
  background: white;
  padding: 25px;
  border-radius: 16px;
  border: 1px solid var(--bordure);
}

.rules-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.rules-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.rules-header i {
  color: var(--bouton-bleu);
  width: 20px;
}
/* Inputs personnalisés pour la config */
.input-group-custom {
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  border: 1px solid var(--bordure);
  padding: 10px 15px;
  border-radius: 10px;
}

.input-group-custom label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--texte-gris);
  margin-bottom: 2px;
}

.input-group-custom input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Pills pour les types de congés */
.type-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--bordure);
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.2s;
}

.type-pill:has(input:checked) {
  border-color: var(--bouton-bleu);
  background: rgba(63, 129, 234, 0.05);
  color: var(--bouton-bleu);
}

.type-pill input {
  width: 18px;
  height: 18px;
}

/* Switch Bootstrap custom */
.form-switch .form-check-input {
  width: 3em;
  height: 1.5em;
  cursor: pointer;
}

.sticky-bottom {
  position: sticky;
  bottom: 20px;
  z-index: 10;
}
.rules-container {
  background: white;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid var(--bordure);
  margin-bottom: 0; /* Géré par le row g-4 */
}

.input-group-custom {
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  border: 1px solid var(--bordure);
  padding: 12px 18px;
  border-radius: 12px;
  height: 100%;
}

.setting-item {
  transition: background 0.2s;
}

.setting-item:hover {
  background: #fcfcfc;
}

/* Tu peux enlever ce bloc s'il n'est plus utilisé ailleurs */
/* .sticky-bottom {
    position: sticky;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    z-index: 100;
} 
*/
/* Style Clean & Minimaliste */
.config-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 15px;
}

.config-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #f1f5f9;
}

.setting-label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.setting-desc {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
}

/* Inputs épurés */
.form-input-clean,
.form-select-clean {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input-clean:focus {
  border-color: #3f81ea;
}

/* Chips (Multi-select) */
.chip-select input {
  display: none;
}
.chip-label {
  display: inline-block;
  padding: 6px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: 0.2s;
}

.chip-select input:checked + .chip-label {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
} /* Style Clean & Minimaliste */
.config-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 15px;
}

.config-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid #f1f5f9;
}

.setting-label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.setting-desc {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
}

/* Inputs épurés */
.form-input-clean,
.form-select-clean {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  outline: none;
  transition: borde-color 0.2s;
  width: 100%;
}

.form-input-clean:focus {
  border-color: #3f81ea;
}

/* Chips (Multi-select) */
.chip-select input {
  display: none;
}
.chip-label {
  display: inline-block;
  padding: 6px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: 0.2s;
}

.chip-select input:checked + .chip-label {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
}

.demande-container {
  background-color: #ffffff !important;
  padding: 30px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  max-width: 550px;
  margin: auto;
}

/* On s'assure que le formulaire à l'intérieur ne gâche pas le design */
.demande-container .form-body {
  background: transparent !important;
}
/* Modale Fond Blanc et Alignement */
.demande-container {
  background: #ffffff !important;
  padding: 25px !important;
  border-radius: 15px !important;
  max-width: 500px !important;
  width: 100%;
}

.demande-container .form-body {
  background: #ffffff !important;
}

/* Stylisation des boutons radio en "Segmented Control" */
.period-selector {
  display: flex;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.period-selector input[type="radio"] {
  display: none; /* Cache les points radio par défaut */
}

.period-selector label {
  flex: 1;
  text-align: center;
  padding: 6px 5px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  border-radius: 6px;
  margin: 0 !important; /* Enlève les marges qui cassent tout */
  transition: 0.2s all;
}

.period-selector input[type="radio"]:checked + label {
  background: #ffffff;
  color: #3f81ea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* --- BASE LAYOUT (PC) --- */
body {
  display: flex;
  min-height: 100vh;
  background-color: #f8fafc;
}

aside.menu {
  width: 280px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: white;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0; /* Empêche le menu de s'écraser */
}

main.container {
  flex-grow: 1;
  padding: 40px;
  width: auto; /* Laisse le flexbox gérer la largeur */
}

/* --- RESPONSIVE DESIGN (Tablettes et Mobiles) --- */
@media (max-width: 992px) {
  body {
    flex-direction: column; /* On empile au lieu de mettre côte à côte */
  }

  aside.menu {
    width: 100% !important;
    height: auto !important;
    position: fixed;
    bottom: 0; /* Menu en bas type application mobile */
    left: 0;
    top: auto;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    padding: 5px;
    justify-content: space-around;
    border-right: none;
    border-top: 1px solid #e2e8f0;
  }

  /* On cache ce qui prend trop de place sur mobile */
  aside.menu header,
  aside.menu hr,
  aside.menu span,
  aside.menu .button {
    display: none !important;
  }

  aside.menu .menu-item {
    margin: 0;
    padding: 12px;
    flex: 1;
    justify-content: center;
  }

  main.container {
    padding: 20px;
    margin-bottom: 80px; /* Important pour ne pas écrire DERRIÈRE le menu du bas */
    width: 100% !important;
  }

  /* Correction des stats qui s'écrasent */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 15px;
  }
}
.fc-day-selected-start {
  background-color: rgba(63, 129, 234, 0.15) !important;
  outline: 2px solid #3f81ea;
  outline-offset: -2px;
}

.fc-event-title {
  font-weight: 600 !important;
  font-size: 0.85em !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Ajoute "..." si le nom est trop long */
  padding: 0 2px;
}

.fc-v-event {
  border-radius: 4px !important;
}
/* Style commun pour les icônes de fermeture (Modale & Sidebar) */
.close-icon,
#btn-close-edit-panel {
  color: #6b7280;
  transition: all 0.2s ease;
}

.close-icon:hover,
#btn-close-edit-panel:hover {
  color: #ef4444 !important; /* Rouge au survol */
  transform: scale(1.1);
}
/* Style spécifique au centre de validation */
.border-dashed {
  border-style: dashed !important;
  background: #fcfcfc !important;
}

.user-row-item:hover {
  background-color: #fafbfc !important;
}

.badge-cp {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}