/* Override tema: primary = rojo corporativo #CE2001 (sustituye naranja) */
:root, [data-bs-theme="light"] {
  --bs-primary: #CE2001;
  --bs-primary-rgb: 206, 32, 1;
}
[data-bs-theme="dark"] {
  --bs-primary: #CE2001;
  --bs-primary-rgb: 206, 32, 1;
}

/* Botones y controles que en el build pueden quedar con naranja compilado */
.btn-primary,
.btn-outline-primary:hover,
.btn-outline-primary.active,
.btn-outline-primary:focus,
.btn-check:checked + .btn-outline-primary {
  background-color: #CE2001 !important;
  border-color: #CE2001 !important;
  color: #fff !important;
}
.btn-outline-primary {
  color: #CE2001 !important;
  border-color: #CE2001 !important;
}
.btn-outline-primary:hover,
.btn-outline-primary.active {
  color: #fff !important;
}

/* FullCalendar: toolbar (prev, next, today, month/week/list) */
.fc .fc-button-primary,
.fc .fc-button-primary:hover,
.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
  background-color: #CE2001 !important;
  border-color: #CE2001 !important;
  color: #fff !important;
}
.fc-state-down,
.fc-state-active {
  background-color: #CE2001 !important;
  color: #fff !important;
}

/* Checkboxes (ticks de permisos y demás) */
.form-check-input:checked {
  background-color: #CE2001 !important;
  border-color: #CE2001 !important;
}

/* Switches (toggles) tipo Bootstrap */
.form-switch .form-check-input:checked {
  background-color: #CE2001 !important;
  border-color: #CE2001 !important;
}

/* Switch custom [data-switch] (Roles, etc.) */
input[data-switch]:checked + label {
  background-color: #CE2001 !important;
}

/* Botones soft / subtle (edit, view, Select All, badges) */
.btn-soft-primary,
.bg-soft-primary,
.bg-primary-subtle {
  background-color: rgba(206, 32, 1, 0.15) !important;
}
.btn-soft-primary {
  color: #CE2001 !important;
  border-color: rgba(206, 32, 1, 0.3) !important;
}
.btn-soft-primary:hover {
  background-color: rgba(206, 32, 1, 0.25) !important;
  border-color: #CE2001 !important;
  color: #CE2001 !important;
}
.text-primary {
  color: #CE2001 !important;
}
.badge.bg-primary-subtle,
.bg-primary-subtle.text-primary {
  background-color: rgba(206, 32, 1, 0.15) !important;
  color: #CE2001 !important;
}

/* Action buttons (tablas): mismo tamaño, sin outline; view/edit grises, delete rojo */
/* Gris y sin borde para btn-light y también para btn-soft-primary/btn-soft-info (por si el servidor sigue enviando clase antigua) */
.btn-light.btn-sm,
.btn-sm.btn-soft-primary,
.btn-sm.btn-soft-info {
  background-color: #e9ecef !important;
  color: #495057 !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.btn-light.btn-sm:hover,
.btn-sm.btn-soft-primary:hover,
.btn-sm.btn-soft-info:hover {
  background-color: #dee2e6 !important;
  color: #212529 !important;
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.btn-light.btn-sm:focus,
.btn-sm.btn-soft-primary:focus,
.btn-sm.btn-soft-info:focus {
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
  border-color: transparent !important;
}
/* Delete: mantener rojo pero quitar outline */
.btn-sm.btn-soft-danger {
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.btn-sm.btn-soft-danger:hover,
.btn-soft-danger.btn-sm:focus {
  box-shadow: none !important;
  outline: none !important;
}
