#ctd-search-form {
  margin-bottom: 1em;
}
#ctd-search-form input,
#ctd-search-form select {
  margin-right: 5px;
  padding: 5px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: left;
}

select[multiple] {
  background: #fff;
  border: 1px solid #ccc;
  padding: 4px;
  font-size: 14px;
}
.ctd-delete {
  color: red;
  cursor: pointer;
  text-decoration: none;
  margin-left: 10px;
}


<!-- FORMULAIRE RECHERCHE -->


#ctd-search-form.ctd-block-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2%;
  padding: 1.5rem;
  background: #fdfdfd;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

#ctd-search-form.ctd-block-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2%;
  padding: 1.5rem;
  background: #fdfdfd;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

#ctd-search-form label {
  flex: 0 1 calc(25% - 2%);
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  min-width: 220px;
}

@media (max-width: 1024px) {
  #ctd-search-form label {
    flex: 0 1 calc(50% - 2%);
  }
}

@media (max-width: 640px) {
  #ctd-search-form label {
    flex: 1 1 100%;
  }
}

#ctd-search-form input,
#ctd-search-form select {
  margin-top: 5px;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: white;
}

.select2-container--default .select2-selection--multiple {
  border-radius: 6px;
  border: 1px solid #ccc;
  min-height: 38px;
  font-size: 14px;
}

.select2-selection__choice {
  background: #0072d0;
  color: white;
  border: none;
  padding: 2px 8px;
  margin-top: 5px;
  font-size: 13px;
}

.ctd-actions {
  flex: 1 1 100%;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1rem;
}

.ctd-actions button {
  padding: 0.5rem 1.1rem;
  font-size: 14px;
  border: 1px solid #0072d0;
  background: white;
  color: #0072d0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctd-actions button:hover {
  background: #0072d0;
  color: white;
}

.ctd-actions button:focus,
.ctd-actions button:active {
  outline: none;
  box-shadow: none;
}
.ctd-actions button:active {
  background-color: #005fa3;
  color: #fff;
}

.ctd-actions button:focus,
.ctd-actions button:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: #0072d0 !important; /* ou ton fond normal */
  color: #fff !important;
}

<!-- TABLEAU -->

#ctd-results {
  overflow-x: auto;
  width: 100%;
}



/* Contrainte de largeur minimale pour déclencher l’overflow */
#ctd-results-wrapper {
  overflow-x: auto;
  width: 100%;
}

#ctd-results table {
  width: 100%;
  min-width: 1200px; /* adapte si ton tableau a beaucoup de colonnes */
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.3;
}

#ctd-results th,
#ctd-results td {
  white-space: nowrap;
  padding: 8px 8px;
}

#ctd-results a.ctd-edit, #ctd-results a.ctd-delete {
  color: #0073aa !important; /* bleu WP classique */
  text-decoration: none;
  font-weight: bold;
	
}

#ctd-results a.ctd-edit:hover,#ctd-results a.ctd-delete:hover {
  color: #00a0d2 !important; /* bleu clair au survol */
}

/* Pagination stylée */
.page-numbers {
  display: inline-block;
  padding: 4px 10px;
  margin: 2px;
  border: 1px solid #ccc;
  background-color: #f7f7f7;
  color: #333;
  text-decoration: none;
  font-size: 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.page-numbers:hover {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.page-numbers.current {
  background-color: #0073aa;
  color: #fff;
  font-weight: bold;
  border-color: #0073aa;
}

#ctd-results .pagination-wrapper {
  margin: 1em 0;
  text-align: center;
}