/* ====== CARD que envuelve SOLO la grilla ====== */
#pantallaGrilla .card.shadow-sm.rounded-3 {
  border: 1px solid #e9ecef;
}
#pantallaGrilla .card-header.bg-light {
  background-color: #f8f9fa !important;
}

/* Que el grid use el ancho completo de su card */
#lstTabla,
#lstTabla .e-grid {
  width: 100%;
}

/* Pager como pie de la card */
#lstTabla .e-gridpager {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 0.5rem 0.75rem;
  margin-top: 0;
}

/* Compactar un poco las filas */
#lstTabla .e-rowcell {
  padding-block: 0.6rem;
}

/* Bordes redondeados base dentro de la card */
#lstTabla .e-grid .e-gridcontent,
#lstTabla .e-grid .e-gridpager {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

/* Zebra striping SOLO en la grilla */
#lstTabla .e-grid .e-row:nth-child(even) {
  background-color: #f9f9f9;
}

/* Fila seleccionada */
#lstTabla .e-grid .e-row.e-selectionbackground {
  background-color: #dfefff !important;
}

/* Separación extra entre toolbar y encabezado de columnas */
#lstTabla .e-toolbar {
  padding-bottom: 12px !important;
}

/* ====== Toolbar del GRID (scoped) ======
   Importante: antes estaba sin scope y afectaba el Editor. */
#lstTabla .e-toolbar .e-tbar-btn {
  color: #0d6efd !important;
  border: 1px solid #0d6efd !important;
  background-color: #fff !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  height: 36px !important;
  line-height: 1 !important;
  padding: 6px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 130px !important;
}
#lstTabla .e-toolbar .e-tbar-btn i,
#lstTabla .e-toolbar .e-tbar-btn span {
  color: #0d6efd !important;
}
#lstTabla .e-toolbar .e-tbar-btn:hover {
  background-color: #0d6efd !important;
  color: #fff !important;
}
#lstTabla .e-toolbar .e-tbar-btn:hover i,
#lstTabla .e-toolbar .e-tbar-btn:hover span {
  color: #fff !important;
}

/* Botones de acción dentro de la columna template */
#lstTabla .btnEditar,
#lstTabla .btnEliminar {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 14px;
}
#lstTabla .btnEditar i,
#lstTabla .btnEliminar i {
  font-size: 14px;
  line-height: 1;
}
#lstTabla .btnEditar:hover i,
#lstTabla .btnEliminar:hover i {
  color: #fff;
}

/* Página activa en el pager (solo grid) */
#lstTabla .e-gridpager .e-numericitem.e-active,
#lstTabla .e-gridpager .e-numericitem.e-active:hover {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
}
#lstTabla .e-gridpager .e-numericitem:not(.e-active):hover {
  background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
  color: var(--bs-primary) !important;
}

/* ====== SweetAlert (global, no afecta editor) ====== */
.my-swal-popup {
  width: 380px !important;
  padding: 1.5rem !important;
  border-radius: 0.75rem !important;
}
.my-swal-actions {
  display: flex !important;
  justify-content: center !important;
  gap: 0.6rem !important;
}
.my-swal-icon.sweetalert2-question-icon,
.my-swal-icon.swal2-question,
.swal2-question {
  border-color: #0d6efd !important;
  color: #0d6efd !important;
}
.my-swal-icon {
  width: 70px !important;
  height: 70px !important;
  border-width: 3px !important;
}

/* ====== Fondo (global) ====== */
html,
body {
  height: 100%;
}
body {
  background: url("../../assets/02-carousel.jpg") center/cover no-repeat fixed;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
}

/* ====== Animaciones de salida (global) ====== */
.aos-exit-up {
  animation: aosExitUp 0.65s ease forwards;
}
@keyframes aosExitUp {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}
.aos-exit-right {
  animation: aosExitRight 0.65s ease forwards;
}
@keyframes aosExitRight {
  to {
    opacity: 0;
    transform: translateX(12px);
  }
}
