/* =========================================================
   XPERTECH — DATATABLES CLEAN PRO
   Versión depurada y organizada
   - Sin bloques duplicados
   - Paginador corregido
   - Child rows responsive unificados
   - Inputs, tabla y responsive consistentes
========================================================= */

/* =========================
   WRAPPER / LAYOUT
========================= */
.dataTables_wrapper {
  overflow: visible;
}

.dataTables_wrapper .dataTables_scroll,
.dataTables_wrapper .dataTables_scrollBody {
  overflow: visible;
}

.dataTables_wrapper .dataTables_scrollBody {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.x-dt-wrap,
.x-table-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(8, 12, 20, .55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* =========================
   LENGTH / FILTER
========================= */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  padding: 10px 10px 12px;
}

.dataTables_wrapper .dataTables_length {
  float: left;
}

.dataTables_wrapper .dataTables_filter {
  float: right;
  text-align: right;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label,
.dataTables_length label,
.dataTables_filter label {
  color: rgba(255, 255, 255, .75) !important;
  font-weight: 700;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  color: rgba(255, 255, 255, .92) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  border-radius: 14px !important;
  padding: 8px 12px !important;
  height: 38px !important;
  outline: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04) !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  max-width: 100%;
  background-color: transparent !important;
}

.dataTables_wrapper .dataTables_filter input {
  margin-left: 10px;
  min-width: 180px;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_length select {
  min-width: 90px;
  height: 40px;
  padding-top: 6px;
  padding-bottom: 6px;

  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  padding-right: 34px !important;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, .85) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, .85) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.dataTables_wrapper .dataTables_length select option {
  background: #0b1220;
  color: #e5e7eb;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: rgba(59, 130, 246, .55) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .18) !important;
}

.dataTables_wrapper .dataTables_length select:active,
.dataTables_wrapper .dataTables_length select:hover {
  transform: translateY(-1px);
}

/* =========================
   TABLA BASE
========================= */
table.dataTable {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
}

table.dataTable.nowrap th,
table.dataTable.nowrap td {
  white-space: nowrap;
}

table.dataTable thead th {
  border: 0 !important;
  background: rgba(18, 30, 56, .55) !important;
  color: rgba(255, 255, 255, .92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

table.dataTable tbody tr {
  background: rgba(10, 14, 22, .55) !important;
  border: 1px solid rgba(255, 255, 255, .06) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  border-radius: 16px;
  overflow: hidden;
  opacity: 1;
  transition:
    background .22s ease,
    box-shadow .22s ease,
    border-color .22s ease,
    opacity .22s ease;
  cursor: pointer;
}

table.dataTable tbody tr:hover {
  background: rgba(20, 34, 62, .62) !important;
  border-color: rgba(79, 140, 255, .26) !important;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(79, 140, 255, .12),
    0 0 22px rgba(79, 140, 255, .10);
}

table.dataTable tbody tr.is-selected {
  background: rgba(28, 44, 78, .70) !important;
  border-color: rgba(79, 140, 255, .38) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, .38),
    0 0 0 1px rgba(79, 140, 255, .22),
    0 0 30px rgba(79, 140, 255, .18) !important;
}

table.dataTable tbody td {
  border: 0 !important;
  color: rgba(255, 255, 255, .86) !important;
  border-top: 1px solid rgba(255, 255, 255, .06) !important;
  vertical-align: middle !important;
  padding: 14px 14px !important;
}

table.dataTable tbody tr td:first-child {
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

table.dataTable tbody tr td:last-child {
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

table.dataTable tbody tr .btn,
table.dataTable tbody tr a,
table.dataTable tbody tr button,
table.dataTable tbody tr td.dtr-control {
  cursor: pointer;
}

/* Fade seguro */
table.dataTable tbody tr.dt-fade-in {
  animation: dtFade .22s ease both;
}

@keyframes dtFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.dt-softfade {
  animation: dtSoftFade .22s ease;
}

@keyframes dtSoftFade {
  from {
    opacity: .35;
    transform: translateY(6px);
    filter: blur(1px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.x-dt-fade tbody {
  transition: opacity .22s ease, transform .22s ease;
}

.x-dt-fade.is-switching tbody {
  opacity: 0;
  transform: translateY(6px);
}

/* =========================
   PAGINADOR PRO LIMPIO
========================= */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 18px;
  padding-top: 10px !important;
  display: flex;
  justify-content: flex-end;
}

.dataTables_wrapper .pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .pagination .page-item .page-link {
  min-width: 42px;
  height: 42px;
  padding: 0 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: rgba(255, 255, 255, .78) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  text-decoration: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .03),
    0 8px 20px rgba(0, 0, 0, .18);
  transition: .22s ease;
  margin: 0 !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .pagination .page-item .page-link:hover {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, rgba(59, 130, 246, .24), rgba(99, 102, 241, .22)) !important;
  border-color: rgba(96, 165, 250, .35) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, .18) inset,
    0 12px 28px rgba(37, 99, 235, .24) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .pagination .page-item.disabled .page-link,
.dataTables_wrapper .pagination .page-item.disabled .page-link:hover {
  opacity: .38 !important;
  cursor: not-allowed !important;
  background: rgba(255, 255, 255, .03) !important;
  border-color: rgba(255, 255, 255, .05) !important;
  color: rgba(255, 255, 255, .35) !important;
  transform: none !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next,
.dataTables_wrapper .pagination .page-item.previous .page-link,
.dataTables_wrapper .pagination .page-item.next .page-link {
  min-width: 88px;
  padding: 0 16px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:focus,
.dataTables_wrapper .pagination .page-item .page-link:focus {
  outline: none !important;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, .18) inset,
    0 12px 28px rgba(37, 99, 235, .24) !important;
}

/* =========================
   RESPONSIVE CONTROL (+/-)
========================= */
table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control {
  position: relative;
  padding-left: 42px !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr>td.dtr-control:before,
table.dataTable.dtr-inline.collapsed>tbody>tr>th.dtr-control:before {
  top: 50% !important;
  left: 17px !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 22px !important;
  line-height: 22px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: rgba(255, 255, 255, .95) !important;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .06) !important;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

table.dataTable.dtr-inline.collapsed>tbody>tr:hover>td.dtr-control:before {
  background: rgba(59, 130, 246, .22) !important;
  box-shadow:
    0 14px 26px rgba(0, 0, 0, .42),
    0 0 18px rgba(59, 130, 246, .18) !important;
}

table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td.dtr-control:before {
  background: rgba(34, 197, 94, .18) !important;
}

/* =========================
   CHILD ROW / DTR CARDS
========================= */
table.dataTable>tbody>tr.child,
table.dataTable>tbody>tr.child td.child,
table.dataTable>tbody>tr.child>td {
  background: transparent !important;
}

table.dataTable>tbody>tr.child td.child,
table.dataTable>tbody>tr.child>td {
  padding: 10px 12px !important;
  border: 0 !important;
}

table.dataTable>tbody>tr.child ul.dtr-details {
  margin: 0 !important;
}

table.dataTable>tbody>tr.child ul.dtr-details>li {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 10px;
  padding: 10px 10px !important;
  transition: background .18s ease;
}

table.dataTable>tbody>tr.child ul.dtr-details>li:last-child {
  border-bottom: 0 !important;
}

table.dataTable>tbody>tr.child span.dtr-title {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  color: rgba(255, 255, 255, .75) !important;
  font-weight: 800 !important;
}

table.dataTable>tbody>tr.child span.dtr-data {
  text-align: right;
  white-space: nowrap;
  opacity: .95;
  color: rgba(255, 255, 255, .95) !important;
  font-weight: 600 !important;
}

/* Renderer custom */
.dtr-cards {
  width: 100% !important;
  max-width: 100% !important;
}

.dtr-cards.row {
  row-gap: 18px !important;
}

.dtr-card {
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  background: rgba(12, 20, 40, .55) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: 26px !important;
  backdrop-filter: blur(18px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .10),
    inset 0 -1px 0 rgba(0, 0, 0, .18) !important;
  color: #EAF0FF !important;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

@media (hover:hover) {
  .dtr-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .16) !important;
    box-shadow:
      0 22px 60px rgba(0, 0, 0, .55),
      inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  }
}

.dtr-card .card-body {
  color: #EAF0FF !important;
  padding: 20px 22px !important;
}

.dtr-card.actions-compact .card-body {
  padding: 16px 18px !important;
}

.dtr-title {
  font-weight: 800 !important;
  letter-spacing: .2px;
  font-size: 15px;
  opacity: .95;
  margin-bottom: 14px !important;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dtr-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
}

.dtr-line:last-child {
  border-bottom: 0;
}

.dtr-line span {
  opacity: .68 !important;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
}

.dtr-line b {
  font-weight: 800 !important;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #EAF0FF !important;
}

.dtr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.dtr-header-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dtr-actions,
.dtr-actions-ios {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4px;
}

.dtr-actions .btn,
.dtr-actions-ios .btn {
  width: 46px !important;
  height: 46px !important;
  padding: 0 !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, .40),
    inset 0 1px 0 rgba(255, 255, 255, .10) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.dtr-actions .btn:hover,
.dtr-actions-ios .btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .09) !important;
}

.dtr-actions .btn:active,
.dtr-actions-ios .btn:active {
  transform: scale(.94);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

@media (min-width: 1200px) {
  .dtr-cards .dtr-card {
    height: 100%;
  }
}

/* =========================
   STATUS / BADGES
========================= */
.statusWrap {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btnStatusTpl {
  border: 1px solid rgba(255, 255, 255, .18) !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 900 !important;
  letter-spacing: .2px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .15) !important;
}

.btnStatusTpl:active {
  transform: translateY(1px);
}

.btnStatusTpl.hasDebt {
  box-shadow:
    0 0 0 2px rgba(255, 193, 7, .25),
    0 10px 24px rgba(0, 0, 0, .25);
}

.badgeDebt {
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 900 !important;
  font-size: 12px;
  background: rgba(255, 193, 7, .14) !important;
  border: 1px solid rgba(255, 193, 7, .22) !important;
  color: #ffd56a;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

@keyframes softPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, .35);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
  }
}

.statusDot.isDebt {
  animation: softPulse 1.6s infinite;
}

/* =========================
   BOTÓN AGREGAR
========================= */
.x-btn-add {
  height: 42px;
  min-width: 48px;
  border-radius: 16px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(59, 130, 246, .22);
  border: 1px solid rgba(147, 197, 253, .35);
  color: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 10px 22px rgba(0, 0, 0, .35);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.x-btn-add i {
  font-size: 15px;
}

.x-btn-add__text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: max-width .22s ease, opacity .18s ease, transform .18s ease;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
}

.x-btn-add:hover {
  transform: translateY(-1px);
  background: rgba(59, 130, 246, .30);
  border-color: rgba(147, 197, 253, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .24),
    0 14px 28px rgba(0, 0, 0, .42);
}

.x-btn-add:hover .x-btn-add__text {
  max-width: 80px;
  opacity: 1;
  transform: translateX(0);
}

.x-btn-add:focus {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, .18),
    0 14px 28px rgba(0, 0, 0, .42);
}

/* =========================
   CHILD CUSTOM GRID
========================= */
.dt-child-wrap {
  padding: 10px 6px;
}

.dt-child-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dt-card {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  padding: 12px 12px;
  background: rgba(255, 255, 255, .02);
}

.dt-span-2 {
  grid-column: span 2;
}

.dt-title {
  font-weight: 700;
  margin-bottom: 10px;
  opacity: .95;
}

.dt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.dt-row:first-of-type {
  border-top: none;
}

.dt-k {
  opacity: .75;
  white-space: nowrap;
}

.dt-v {
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.dt-highlight {
  border-top: 1px dashed rgba(255, 255, 255, .18);
  padding-top: 10px;
  margin-top: 4px;
}

.tooltip-falla {
  cursor: pointer;
}

/* =========================
   TABLAS ESPECÍFICAS
========================= */
.tablaOrdenes tbody td:nth-child(4),
.tablaOrdenes thead th:nth-child(4) {
  display: none;
}

.tablaOrdenes thead th:nth-child(n+10):nth-child(-n+17),
.tablaOrdenes tbody td:nth-child(n+10):nth-child(-n+17) {
  display: none;
}

.tablaOrdenes tbody tr {
  transition: background .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.tablaOrdenes tbody tr.stripe-open {
  background: rgba(255, 255, 255, .03) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

@media (hover:hover) {
  .tablaOrdenes tbody tr:hover {
    background: rgba(255, 255, 255, .02) !important;
  }
}

/* =========================
   UTILIDADES
========================= */
.btn-dangerss {
  background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
  box-shadow: 0 0 18px rgba(255, 60, 60, .35);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none;
    text-align: left;
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .dtr-cards .col-md-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .dt-child-grid {
    grid-template-columns: 1fr;
  }

  .dt-span-2 {
    grid-column: span 1;
  }
}

@media (max-width: 576px) {

  .dataTables_wrapper .dataTables_paginate,
  .dataTables_wrapper .pagination {
    justify-content: center;
  }

  .dataTables_wrapper .pagination {
    gap: 8px;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button,
  .dataTables_wrapper .pagination .page-item .page-link {
    min-width: 38px;
    height: 38px;
    border-radius: 12px !important;
    font-size: .86rem;
  }

  .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
  .dataTables_wrapper .dataTables_paginate .paginate_button.next,
  .dataTables_wrapper .pagination .page-item.previous .page-link,
  .dataTables_wrapper .pagination .page-item.next .page-link {
    min-width: auto;
    padding: 0 12px !important;
  }
}

/* LOADER DE DATATABLE */
/* reservado para tu loader actual */

/* =========================
   HOTFIX PAGINADOR MDB
========================= */

/* el item no debe dibujar fondo ni sombra */
.dataTables_wrapper .pagination .page-item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* quita pseudo-elementos extra */
.dataTables_wrapper .pagination .page-item::before,
.dataTables_wrapper .pagination .page-item::after,
.dataTables_wrapper .pagination .page-link::before,
.dataTables_wrapper .pagination .page-link::after {
  content: none !important;
  display: none !important;
}

/* solo el page-link dibuja */
.dataTables_wrapper .pagination .page-item .page-link {
  position: relative !important;
  background-clip: padding-box !important;
}

/* activo sin doble capa */
.dataTables_wrapper .pagination .page-item.active,
.dataTables_wrapper .pagination .page-item.active .page-link {
  box-shadow: none !important;
}

/* y luego devolvemos solo la sombra buena al link activo */
.dataTables_wrapper .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, rgba(59, 130, 246, .24), rgba(99, 102, 241, .22)) !important;
  border-color: rgba(96, 165, 250, .35) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, .18) inset,
    0 12px 28px rgba(37, 99, 235, .24) !important;
}

/* =========================
   HOTFIX HOVER PAGINADOR MDB
========================= */

/* el contenedor NO debe pintar nada */
.dataTables_wrapper .pagination .page-item,
.dataTables_wrapper .pagination .page-item:hover,
.dataTables_wrapper .pagination .page-item:focus,
.dataTables_wrapper .pagination .page-item.active {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  transform: none !important;
}

/* quita capas extras */
.dataTables_wrapper .pagination .page-item::before,
.dataTables_wrapper .pagination .page-item::after,
.dataTables_wrapper .pagination .page-link::before,
.dataTables_wrapper .pagination .page-link::after {
  content: none !important;
  display: none !important;
}

/* neutraliza ripple/waves de MDB */
.dataTables_wrapper .pagination .waves-effect,
.dataTables_wrapper .pagination .waves-effect:hover,
.dataTables_wrapper .pagination .waves-effect:focus,
.dataTables_wrapper .pagination .waves-ripple {
  box-shadow: none !important;
  background: transparent !important;
}

/* el único que dibuja es el link */
.dataTables_wrapper .pagination .page-item .page-link {
  position: relative !important;
  z-index: 2 !important;
}

/* hover solo en el botón real */
.dataTables_wrapper .pagination .page-item .page-link:hover {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .03),
    0 8px 20px rgba(0, 0, 0, .18) !important;
}

/* activo limpio */
.dataTables_wrapper .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, rgba(59, 130, 246, .24), rgba(99, 102, 241, .22)) !important;
  border-color: rgba(96, 165, 250, .35) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, .18) inset,
    0 12px 28px rgba(37, 99, 235, .24) !important;
}

.dataTables_wrapper .pagination li.page-item:hover {
  background: transparent !important;
  box-shadow: none !important;
}

.dataTables_wrapper .pagination .waves-effect {
  overflow: visible !important;
}

.dataTables_wrapper .pagination .waves-effect .waves-ripple {
  display: none !important;
}

/* =========================
   PAGINADOR PRO LIMPIO REAL
========================= */

.dataTables_wrapper .dataTables_paginate {
  margin-top: 18px;
  padding-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* contenedor */
.dataTables_wrapper .pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
}

/* IMPORTANTE: el LI no dibuja nada */
.dataTables_wrapper .pagination .page-item,
.dataTables_wrapper .pagination .page-item.paginate_button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

/* pseudo elementos fuera */
.dataTables_wrapper .pagination .page-item::before,
.dataTables_wrapper .pagination .page-item::after {
  content: none !important;
  display: none !important;
}

/* SOLO el link dibuja */
.dataTables_wrapper .pagination .page-item .page-link {
  min-width: 42px;
  height: 42px;
  padding: 0 14px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: rgba(255, 255, 255, .78) !important;

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  font-weight: 700;
  font-size: .92rem;
  line-height: 1;
  text-decoration: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .03),
    0 8px 20px rgba(0, 0, 0, .18);

  transition:
    background .22s ease,
    border-color .22s ease,
    color .22s ease,
    transform .22s ease,
    box-shadow .22s ease !important;
}

/* hover */
.dataTables_wrapper .pagination .page-item .page-link:hover {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* activo */
.dataTables_wrapper .pagination .page-item.active .page-link {
  background: linear-gradient(135deg, rgba(59, 130, 246, .24), rgba(99, 102, 241, .22)) !important;
  border-color: rgba(96, 165, 250, .35) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, .18) inset,
    0 12px 28px rgba(37, 99, 235, .24) !important;
}

/* deshabilitado */
.dataTables_wrapper .pagination .page-item.disabled .page-link,
.dataTables_wrapper .pagination .page-item.disabled .page-link:hover {
  opacity: .38 !important;
  cursor: not-allowed !important;
  background: rgba(255, 255, 255, .03) !important;
  border-color: rgba(255, 255, 255, .05) !important;
  color: rgba(255, 255, 255, .35) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* anterior / siguiente */
.dataTables_wrapper .pagination .page-item.previous .page-link,
.dataTables_wrapper .pagination .page-item.next .page-link {
  min-width: 88px;
  padding: 0 16px !important;
}

/* focus */
.dataTables_wrapper .pagination .page-item .page-link:focus {
  outline: none !important;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, .18) inset,
    0 12px 28px rgba(37, 99, 235, .24) !important;
}

@media (max-width: 576px) {

  .dataTables_wrapper .dataTables_paginate,
  .dataTables_wrapper .pagination {
    justify-content: center;
  }

  .dataTables_wrapper .pagination {
    gap: 8px;
  }

  .dataTables_wrapper .pagination .page-item .page-link {
    min-width: 38px;
    height: 38px;
    border-radius: 12px !important;
    font-size: .86rem;
  }

  .dataTables_wrapper .pagination .page-item.previous .page-link,
  .dataTables_wrapper .pagination .page-item.next .page-link {
    min-width: auto;
    padding: 0 12px !important;
  }
}

/* =========================
   PAGINADOR FINAL SIN DOBLE CAPA
========================= */

/* wrappers */
.dataTables_wrapper .dataTables_paginate {
  margin-top: 18px;
  padding-top: 10px;
  display: flex !important;
  justify-content: flex-end;
}

.dataTables_wrapper .pagination {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* LI completamente neutro */
.dataTables_wrapper .pagination .page-item,
.dataTables_wrapper .pagination .paginate_button,
.dataTables_wrapper .pagination li {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  filter: none !important;
}

/* mata cualquier cápsula extra */
.dataTables_wrapper .pagination .page-item::before,
.dataTables_wrapper .pagination .page-item::after,
.dataTables_wrapper .pagination .paginate_button::before,
.dataTables_wrapper .pagination .paginate_button::after,
.dataTables_wrapper .pagination li::before,
.dataTables_wrapper .pagination li::after {
  content: none !important;
  display: none !important;
}

/* SOLO el link dibuja */
.dataTables_wrapper .pagination .page-link {
  min-width: 42px !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 14px !important;
  margin: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  background: rgba(255, 255, 255, .04) !important;
  color: rgba(255, 255, 255, .78) !important;

  font-weight: 700 !important;
  font-size: .92rem !important;
  line-height: 1 !important;
  text-decoration: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .03),
    0 8px 20px rgba(0, 0, 0, .18) !important;

  transition:
    background .22s ease,
    border-color .22s ease,
    color .22s ease,
    transform .22s ease,
    box-shadow .22s ease !important;
}

/* hover */
.dataTables_wrapper .pagination .page-link:hover {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

/* active */
.dataTables_wrapper .pagination .page-item.active .page-link,
.dataTables_wrapper .pagination .paginate_button.active .page-link,
.dataTables_wrapper .pagination .active>.page-link {
  background: linear-gradient(135deg, rgba(59, 130, 246, .24), rgba(99, 102, 241, .22)) !important;
  border-color: rgba(96, 165, 250, .35) !important;
  color: #fff !important;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, .18) inset,
    0 12px 28px rgba(37, 99, 235, .24) !important;
}

/* disabled */
.dataTables_wrapper .pagination .page-item.disabled .page-link,
.dataTables_wrapper .pagination .disabled>.page-link {
  opacity: .38 !important;
  cursor: not-allowed !important;
  background: rgba(255, 255, 255, .03) !important;
  border-color: rgba(255, 255, 255, .05) !important;
  color: rgba(255, 255, 255, .35) !important;
  transform: none !important;
  box-shadow: none !important;
}

/* anterior/siguiente */
.dataTables_wrapper .pagination .page-item.previous .page-link,
.dataTables_wrapper .pagination .page-item.next .page-link,
.dataTables_wrapper .pagination .previous .page-link,
.dataTables_wrapper .pagination .next .page-link {
  min-width: 88px !important;
  width: auto !important;
  padding: 0 16px !important;
}

/* focus */
.dataTables_wrapper .pagination .page-link:focus {
  outline: none !important;
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, .18) inset,
    0 12px 28px rgba(37, 99, 235, .24) !important;
}

/* mata waves si existe */
.dataTables_wrapper .pagination .waves-ripple {
  display: none !important;
}

@media (max-width: 576px) {

  .dataTables_wrapper .dataTables_paginate,
  .dataTables_wrapper .pagination {
    justify-content: center !important;
  }

  .dataTables_wrapper .pagination .page-link {
    min-width: 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    font-size: .86rem !important;
  }

  .dataTables_wrapper .pagination .page-item.previous .page-link,
  .dataTables_wrapper .pagination .page-item.next .page-link,
  .dataTables_wrapper .pagination .previous .page-link,
  .dataTables_wrapper .pagination .next .page-link {
    min-width: auto !important;
    width: auto !important;
    padding: 0 12px !important;
  }
}