.table-general {
  margin-bottom: 0;
  width: 100%;
  border-collapse: collapse;
}

.table-general thead th {
  background: #f8fafc !important;
  color: #0f172a !important;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 0.5rem 0.3rem;
}

.table-generaltbody td {
  background: white;
  border-bottom: 1px solid #ecf3fa;
  padding: 0.5rem 0.2rem;
  vertical-align: middle;
  font-size: 0.85rem;
  color: #1e293b;
}

.table-general tbody tr:hover td {
  background-color: #fafcff;
}

.table-responsive-modern {
  background: #ffffff;
  border-radius: 5px;
  padding: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid #eef2f6;
}
.table-responsive-modern::-webkit-scrollbar {
  display: none;
}
.nowrap {
  white-space: nowrap;
}
.candidat-toolbar-modern {
  background: #ffffff;
  border-radius: 5px;
  padding: 12px 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eef2f6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.candidat-title-modern {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.3px;
}

.pagination-wrapper button {
  background: transparent;
  border: none;
  transition: transform 0.1s ease;
}

.pagination-wrapper button:hover:not(:disabled) {
  transform: scale(1.05);
}

.pagination-wrapper button:disabled {
  opacity: 0.4;
  cursor: default;
}

.pagination-wrapper span {
  font-weight: 500;
  background: #f1f5f9;
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
}
.btn-action-modern {
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: 0.2s;
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-edit-modern {
  background: #fef3c7;
  color: #b45309;
}

.btn-edit-modern:hover {
  background: #fde68a;
  color: #92400e;
}
.btn-modern {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  font-weight: 600;
  width: 180px;
  font-size: 0.78rem;
  color: white;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

/* ================================
   MODAL CANDIDAT
================================ */

#candidat_modal .modal-dialog {
  max-width: 700px;
}

#candidat_modal .modal-content {
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

/* HEADER */

.candidat-header {
  height: 30px;
  padding: 8px 18px;
  border-bottom: 1px solid #dee2e6;
  background: #ffffff;
}

.candidat-header .modal-title {
  font-size: 18px;
  font-weight: 600;
}

/* BODY */

.candidat-body {
  padding: 16px 10px 16px 10px;
  background: #ffffff;
}

/* SECTIONS */

.candidat-section {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.candidat-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* LABEL */

#candidat_modal .lab {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  margin-bottom: 3px;
}

/* INPUT */

#candidat_modal .form-control {
  height: 34px;
  font-size: 13px;
  border-radius: 4px;
  border: 1px solid #ced4da;
  padding: 5px 9px;
}

#candidat_modal .form-control:focus {
  box-shadow: none;
  border-color: #86b7fe;
}

/* FOOTER */

.candidat-footer {
  height: 55px;
  padding: 8px 20px;
  border-top: 1px solid #dee2e6;
  background: #fafafa;
  display: flex;
  justify-content: center;
  gap: 8px;
}

/* BOUTONS */

.btn-cancel-light,
.btn-save-light {
  width: 100px;
  height: 34px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid #ced4da;
}

.btn-cancel-light {
  background: #ffffff;
  color: #555;
}

.btn-save-light {
  background: #f1f1f1;
  color: #333;
}

.btn-cancel-light:hover {
  background: #eeeeee;
}

.btn-save-light:hover {
  background: #dddddd;
}
/* Taille des champs date */
#candidat_modal .date-input {
  width: 128px;
}

/* Taille des champs lieu */
#candidat_modal .lieu-input {
  width: 220px;
}
#candidat_modal .cin-input {
  width: 280px;
}

#candidat_modal .cin-date-input {
  width: 128px;
}

#candidat_modal .cin-lieu-input {
  width: 180px;
}
