#intranet-wrapper {
  display: flex;
  font-family: "Helvetica Neue", Arial, sans-serif;
  margin-top: 120px;
}

#intranet-sidebar {
  background: #f5f5f5;
  padding: 20px;
}

#intranet-sidebar .intra-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

#intranet-sidebar .intra-menu .menu-item {
  margin-bottom: 10px;
}

#intranet-sidebar .intra-menu .menu-item a {
  text-decoration: none;
  color: #333;
}

#intranet-content {
  background: #fff;
  padding: 20px;
  min-height: 400px;
}

.profile-menu {
  position: relative;
  cursor: pointer;
  z-index: 1000;
}

#profile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
  min-width: 150px;
  z-index: 10;
  z-index: 1001;
}

#profile-dropdown.open {
  display: block;
}

#profile-dropdown li a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
}

#profile-dropdown li a:hover {
  background: #f0f0f0;
}

.content-header {
  overflow: visible;
  font-family: 'Inter', sans-serif;
}

.sidebar-nav ul li a {
  position: relative;
  display: block;
  padding-left: 12px;
  /* laisse de la place pour la barre */
  text-decoration: none;
  color: #333;
}

/* 2) Hover et “active” (on cible .current) */
.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.current {
  color: #e5141c;
}

/* 3) Barre verticale à gauche sur l’élément actif */
.sidebar-nav ul li a.current::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #e5141c;
}

/* 1. Police moderne */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
  font-family: 'Inter', sans-serif;
}

/* 2. Tableau arrondi et ombres */
table.dataTable {
  border: none;
  /* border-radius: 8px; */
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #ddd !important;
}

/* 3. En‑têtes clairs */
#darts-equipes-table thead th {
  background-color: #f4f6f8;
  color: #333;
  border-bottom: none;
}

/* 4. Lignes au survol */
table.dataTable tbody tr:hover {
  background-color: #fafbfc;
}

/* 5. Inputs et selects du DataTable */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border-radius: 4px;
  border: 1px solid #ced4da;
  padding: 0.375rem 0.75rem;
}

/* 6. Pagination épurée */
.dataTables_wrapper .dataTables_paginate {
  text-align: right;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background-color: #fff !important;
  color: #495057 !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  margin: 0 4px;
  padding: 0.4rem 0.8rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background-color: #fff !important;
  color: #495057 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #f9fbfc !important;
  color: #495057 !important;
}

.dataTables_wrapper .dt-button {
  background: #fff;
  /* fond blanc */
  color: #3D454E;
  /* texte gris foncé */
  border: 1px solid #ddd;
  /* bordure gris clair */
  border-radius: 4px;
  /* léger arrondi */
  padding: 0.5em 1em;
  /* espacement interne */
  box-shadow: none;
  /* annule l’ombre par défaut */
  transition: background 0.2s;
  /* transition douce au survol */
}

.dataTables_wrapper .dt-button:hover,
.dataTables_wrapper .dt-button:focus {
  background: #f5f5f5;
  /* fond un peu gris au survol */
  color: #3D454E;
  /* conserve la même couleur de texte */
}

table.dataTable.table-striped tbody tr,
table.dataTable.table-striped tbody tr:nth-of-type(odd),
table.dataTable.table-striped tbody tr:nth-of-type(even) {
  background-color: #fff !important;
}

/* 2) Séparation légère des lignes */
table.dataTable tbody tr {
  border-bottom: 1px solid #ddd;
}

/* 3) Pas de bordure sur la dernière ligne */
table.dataTable tbody tr:last-child {
  border-bottom: none;
}

/* 4) Fond blanc au survol (optionnel) */
table.dataTable tbody tr:hover {
  background-color: #fff;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
  border-bottom: none !important;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
  --bs-table-bg-type: white !important;
}

.dataTables_wrapper thead {
  --bs-table-bg-type: #F9FBFC !important;
}

table.dataTable thead>tr>th.sorting:before {
  margin-bottom: 2px;
}

table.dataTable thead>tr>th.sorting:after {
  margin-top: 2px;
}

div.dataTables_wrapper,
nav.sidebar-nav {
  font-family: 'Inter', sans-serif;
}

.content-body {
  padding: 20px;
  border: 1px solid #eee;
  margin-top: 20px;
  border-radius: 25px;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  background-color: #fff !important;
  border-radius: 4px !important;
  padding: 0.4rem 0.8rem !important;
  margin: 0.2rem 0 !important;
}

/* hover pagination */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #f9fbfc !important;
}

/* 1) Bordures autour du scroll-container (head + body) */
.dataTables_wrapper .dataTables_scrollHead,
.dataTables_wrapper .dataTables_scrollBody {
  border-left: 1px solid #ddd !important;
  border-right: 1px solid #ddd !important;
}

.dataTables_wrapper .dataTables_scrollBody {
  border-bottom: 1px solid #ddd !important;
}

/* 2) Mise en flex de la première ligne (length + filter) */
.dataTables_wrapper>.row.mb-3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 3) Alignement interne des deux contrôles */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  display: flex;
  align-items: center;
}

/* 4) Pas de retour à la ligne et plus de marge bizarre */
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  margin: 0;
  white-space: nowrap;
}

/* 5) On pousse la recherche à droite */
.dataTables_wrapper .dataTables_filter {
  justify-content: flex-end;
}

.dataTables_length select[name="darts-equipes-table_length"] {
  margin: 0 5px;
}

/* table.dataTable.no-footer {
  border-bottom: none !important;
} */

/* Au cas où, on vire aussi toute bordure résiduelle sur le scrollHead */
.dataTables_wrapper .dataTables_scrollHead {
  border-bottom: none !important;
  border-top: 1px solid #ddd !important;
}

/* Et on s’assure qu’aucune cellule du dernier <tr> n’en hérite */
#darts-equipes-table tbody tr:last-child td {
  border-bottom: none !important;
}

#intranet-wrapper.sidebar-collapsed #intranet-sidebar {
  width: 0px;
  padding: 0px;
}

#intranet-wrapper.sidebar-collapsed #intranet-content {
  margin-left: 60px;
}

#sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(0, 0, 0, 0.05);
  color: #3D454E;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, filter 0.3s;
}

/* 2) Hover plus marqué */
#sidebar-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 3) Petit effet “press” */
#sidebar-toggle:active {
  transform: scale(0.94);
}

/* 4) Inversion du logo quand la sidebar est repliée */
#intranet-wrapper.sidebar-collapsed #sidebar-toggle {
  filter: invert(1);
}

table.dataTable tbody tr.selected>*,
table.dataTable.display>tbody>tr.selected:hover>* {
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.1) !important;
  color: black;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: linear-gradient(to bottom, rgba(230, 230, 230, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.select2-selection__rendered {
  margin-left: 0 !important;
}

.select2-container--open {
  z-index: 2000 !important;
  /* supérieur au z-index Bootstrap modal (1055) */
}