/* Sidebar toggle support (theme JS expects these hooks). */
#main-wrapper {
  display: flex;
}

#main-wrapper .sidebarmenu.close {
  display: none;
}

body[data-sidebartype="mini-sidebar"] .sidebarmenu {
  display: none;
}

body[data-sidebartype="mini-sidebar"] .page-wrapper {
  width: 100%;
}

.tomselect-control .ts-control {
  min-height: 38px;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.375rem;
}

.tomselect-control .ts-control > input {
  min-width: 12rem;
}

.tomselect-control .ts-dropdown {
  font-size: 0.95rem;
}

.eligibilite-card {
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.eligibilite-card.is-active {
  border-color: var(--bs-primary) !important;
  background-color: var(--bs-primary-bg-subtle);
}

/* Custom semantic utilities (same usage pattern as Bootstrap subtle classes) */
.bg-blue-subtle {
  --bs-bg-opacity: 1;
  background-color: rgba(59, 130, 246, 0.15) !important;
}

.text-blue {
  color: rgb(59, 130, 246) !important;
}

.border-blue-subtle {
  border-color: rgba(59, 130, 246, 0.35) !important;
}

.bg-violet-subtle {
  --bs-bg-opacity: 1;
  background-color: rgba(147, 51, 234, 0.15) !important;
}

.text-violet {
  color: rgb(147, 51, 234) !important;
}

.border-violet-subtle {
  border-color: rgba(147, 51, 234, 0.35) !important;
}

/* Danger ghost button: transparent by default, filled on hover */
.btn-danger-ghost {
  background-color: transparent !important;
  color: var(--bs-danger) !important;
  border: 1px solid var(--bs-danger) !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-danger-ghost:hover,
.btn-danger-ghost:focus,
.btn-danger-ghost:active {
  background-color: var(--bs-danger) !important;
  color: #fff !important;
  border-color: var(--bs-danger) !important;
}
.btn-success-ghost,
.btn-primary-ghost,
.btn-secondary-ghost,
.btn-warning-ghost,
.btn-info-ghost,
.btn-blue-ghost,
.btn-violet-ghost {
  background-color: transparent !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-success-ghost { color: var(--bs-success) !important; border: 1px solid var(--bs-success) !important; }
.btn-success-ghost:hover, .btn-success-ghost:focus, .btn-success-ghost:active { background-color: var(--bs-success) !important; color: #fff !important; border-color: var(--bs-success) !important; }

.btn-primary-ghost { color: var(--bs-primary) !important; border: 1px solid var(--bs-primary) !important; }
.btn-primary-ghost:hover, .btn-primary-ghost:focus, .btn-primary-ghost:active { background-color: var(--bs-primary) !important; color: #fff !important; border-color: var(--bs-primary) !important; }

.btn-secondary-ghost { color: var(--bs-secondary) !important; border: 1px solid var(--bs-secondary) !important; }
.btn-secondary-ghost:hover, .btn-secondary-ghost:focus, .btn-secondary-ghost:active { background-color: var(--bs-secondary) !important; color: #fff !important; border-color: var(--bs-secondary) !important; }

.btn-warning-ghost { color: var(--bs-warning) !important; border: 1px solid var(--bs-warning) !important; }
.btn-warning-ghost:hover, .btn-warning-ghost:focus, .btn-warning-ghost:active { background-color: var(--bs-warning) !important; color: #fff !important; border-color: var(--bs-warning) !important; }

.btn-info-ghost { color: var(--bs-info) !important; border: 1px solid var(--bs-info) !important; }
.btn-info-ghost:hover, .btn-info-ghost:focus, .btn-info-ghost:active { background-color: var(--bs-info) !important; color: #fff !important; border-color: var(--bs-info) !important; }

.btn-blue-ghost { color: rgb(59, 130, 246) !important; border: 1px solid rgb(59, 130, 246) !important; }
.btn-blue-ghost:hover, .btn-blue-ghost:focus, .btn-blue-ghost:active { background-color: rgb(59, 130, 246) !important; color: #fff !important; border-color: rgb(59, 130, 246) !important; }

.btn-violet-ghost { color: rgb(147, 51, 234) !important; border: 1px solid rgb(147, 51, 234) !important; }
.btn-violet-ghost:hover, .btn-violet-ghost:focus, .btn-violet-ghost:active { background-color: rgb(147, 51, 234) !important; color: #fff !important; border-color: rgb(147, 51, 234) !important; }
