/* Zebra alternance pour table-dark */
.table-dark.table-striped > tbody > tr:nth-of-type(odd) {
  --bs-table-accent-bg: #1c1c1c;
}
.table-dark.table-striped > tbody > tr:nth-of-type(even) {
  --bs-table-accent-bg: #212529;
}
.table-dark > tbody > tr:hover > * {
  background-color: #2a2a2a !important;
}

/* Suppression bordures internes */
.table tr,
.table th,
.table td {
  border: none !important;
}

/* Tri visuel */
th.sortable {
  position: relative;
  padding-right: 20px;
}
th.sortable::after {
  content: " ⇅";
  color: #888;
  position: absolute;
  right: 8px;
}
th.sorted-asc::after {
  content: " ↑";
  color: #fff;
}
th.sorted-desc::after {
  content: " ↓";
  color: #fff;
}
th.sortable:hover {
  cursor: pointer;
  text-decoration: underline;
}

/* Compact + badge clean */
.table-sm td, .table-sm th {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.badge.small {
  font-size: 0.75rem;
  padding: 0.35em 0.5em;
}

/* Hover table (ex : card-dark legacy) */
.card-dark:hover {
  background-color: #1b1b1b;
  transition: background-color 0.2s ease-in-out;
}
