.table-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 20px 0;
}

/* --- Container pour tbody scrollable --- */
.table-container {
  max-height: calc(100vh - 100px); 
  overflow-y: auto;  /* scroll vertical uniquement sur le corps */
  border: 1px solid #3a598a;
  border-radius: 8px;
  background: #2d466f;
}

/* --- Structure du tableau --- */
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* pour forcer un scroll horizontal sur petits écrans */
}

.table-header {
  background-color: #b99438;
  position: sticky;
  top: 0;
  z-index: 12;
}

.table-th, .table-td {
  padding: 12px 15px;
  border-bottom: 1px solid #3a598a;
  text-align: left;
  white-space: nowrap; /* évite le retour à la ligne */
}

.table-th {
  font-weight: 600;
  color: #f5f5f5;
}
.table-td{
  font-family: "Inter", sans-serif;
  font-weight: 500;
  color: #8cb5ff;
}

/* --- Actions & dropdown --- */
.action-btn {
  cursor: pointer;
  font-size: 18px;
  position: relative;
  display: inline-block;
}

.dropdown {
  display: none;
  position: absolute;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 8px 0;
  top: 25px;
  right: 0;
  z-index: 10;
  min-width: 150px;
}

.dropdown.show {
  display: flex;
  flex-direction: column;
}

.dropdown .dropdown-item {
  background: none;
  border: none;
  padding: 8px 15px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: .875rem;
  color: #333;
  border-bottom: 1px solid #eee;
}

.dropdown .dropdown-item:hover {
  background-color: #f5f5f5;
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 15px;
  flex-wrap: wrap;
}

.pagination-btn {
  padding: 6px 12px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

.pagination-btn:disabled {
  background: #8cb5ff;
  cursor: not-allowed;
}
.pagination-info {
  font-size: 14px;
  color: #f5f5f5;
}

/* --- Responsive mobile --- */
@media (max-width: 768px) {
  th, td {
    padding: 10px;
    font-size: 14px;
  }
  .dropdown button {
    font-size: 13px;
  }
}