/* =========================
   TOPBAR DASHBOARD (PRO)
========================= */




/* móvil: apila */
@media (max-width: 576px) {
  .x-topbar .x-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .x-topbar .x-date {
    align-self: flex-end;
  }
}

/* Card dashboard */
.x-card {
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  border: 1px solid rgba(0, 0, 0, .06);
  overflow: hidden;
}

.x-card-header {
  background: #cfe6ff;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-weight: 700;
  text-align: center;
  padding: 10px 14px;
}

.x-card-body {
  padding: 14px;
}

.x-pill {
  border-radius: 16px;
}

.x-title-shadow {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .35);
}



.modal-contents {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  transition: transform .25s ease;
  cursor: zoom-in;
}

.evidencias-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 5px;
}

.thumb-evidencia {
  width: 200px;
  height: 200px;
  border-radius: 19px;
  object-fit: cover;
  cursor: zoom-in;
}

/* móvil: 2 por fila */
@media (max-width:768px) {
  .thumb-evidencia {
    width: 48%;
    height: 150px;
  }

  .evidencias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 13px;

  }
}

/* ===== CHECKBOX MODERNO ===== */

.check-modern {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  /* gris oscuro elegante */
  user-select: none;
}

/* ocultamos el checkbox original */
.check-modern input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* cajita estilo moderno */
.check-modern-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #93B4F8;
  /* azul suave cuando está sin seleccionar */
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease-in-out;
}

/* palomita */
.check-modern-box::before {
  content: "";
  width: 9px;
  height: 5px;
  border-radius: 1px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translateY(-1px);
  transition: all 0.18s ease-in-out;
}

/* estado ACTIVO */
.check-modern input[type="checkbox"]:checked+.check-modern-box {
  border-color: #3B82F6;
  /* azul principal */
  background: #3B82F6;
}

.check-modern input[type="checkbox"]:checked+.check-modern-box::before {
  border-left-color: #fff;
  border-bottom-color: #fff;
}

/* Hover */
.check-modern:hover .check-modern-box {
  border-color: #2563EB;
  /* azul más fuerte */
}

/* Focus accesible */
.check-modern input[type="checkbox"]:focus+.check-modern-box {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .35);
}

/* CUANDO EL CHECKBOX NO ESTÁ MARCADO, MOSTRAR X */
/* SOLO en el formulario con id="modalEditarOrden" */
#modalEditarOrden .check-modern input[type="checkbox"]:not(:checked)+.check-modern-box::after {
  content: "✖";
  color: red;
  font-size: 14px;
  font-weight: bold;
  position: absolute;
  top: 1.7px;
  left: 2px;
}

/* Your custom styles */

@media only screen and (max-width : 1920px) {

  header,
  main,
  footer {
    padding-left: 20px;
  }
}

table.dataTable tbody td th {}

/* Asegúrate de que el campo de búsqueda no esté deshabilitado */
.select2-container--default .select2-search__field {
  pointer-events: auto !important;
  /* Asegura que los eventos se puedan recibir */
  background-color: white !important;
  /* Color de fondo normal */
  opacity: 1 !important;
  /* Asegura que el campo sea completamente visible */
  cursor: text !important;
  /* Cambia el cursor a texto para indicar que se puede escribir */
}

/*.progress-bar {
            width: 100%;
            background-color: #f1f1f1;
            border: 1px solid #ddd;
            height: 30px;
            position: relative;
        }

        .progress {
            height: 100%;
            background-color: #4caf50;
            position: absolute;
            text-align: center;
            line-height: 30px;
            color: white;
        }*/

/* Estilo para DataTable */
/*.dataTables_wrapper {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}*/

/* Reducir la altura de las celdas de datos */
table.dataTable tbody td {
  padding: 2px;
  /* Ajusta este valor según la altura deseada */
}



/* Reducir la altura de la cabecera */
table.dataTable thead th {
  padding: 2px;
  /* Ajusta este valor según la altura deseada */
}

table.dataTable {
  width: 100%;
  margin: 0 auto;
  clear: both;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: center;
  border-radius: 5px;
}

@media (min-width: 992px) {
  .col-lg-3 .alert .alert-success {
    margin-left: -275px;
  }
}



table.dataTable thead th {
  text-align: center;
}

/* Centrar horizontalmente el texto en las celdas de la cabecera de la DataTable */
table.dataTable thead th {
  text-align: center;
}



/* Estilo para los encabezados de las columnas */


/* Estilo para las celdas de datos */
table.dataTable tbody td {
  /* Borde de las celdas de datos */
  border-right: none;
  padding: 7px;
  /* Espaciado dentro de las celdas */

}

table.dataTable thead th,
table.dataTable thead td,
table.dataTable tfoot th,
table.dataTable tfoot td {
  text-align: center
}



/* Resaltar filas alternas con un color de fondo diferente */
table.dataTable tbody tr:nth-child(odd) {
  background-color: #f2f2f2;
  border-right: none;
}

/* Estilo para el paginador */
.dataTables_paginate {
  text-align: center;
}

/* Estilo para el campo de búsqueda */
.dataTables_filter input {
  border: 1px solid #ccc;
  /* Borde del campo de búsqueda */
  border-radius: 5px;
  /* Redondear el campo de búsqueda */
  padding: 5px;
  /* Espaciado dentro del campo de búsqueda */
}

/* Estilo para el botón de búsqueda */
.dataTables_filter label::after {
  content: "\f002";
  /* Icono de búsqueda (puede personalizarlo) */
  font-family: FontAwesome;
  /* Utiliza una fuente de iconos, como FontAwesome */
  font-size: 14px;
  color: #555;
  margin-left: 5px;
  cursor: pointer;
}

/* Estilo para la información de la tabla */
.dataTables_info {
  margin-top: 10px;
}

/* Estilo para la longitud de la página */
.dataTables_length {
  margin-top: 10px;
}



.modal-contents {
  display: block;
  margin-top: 5rem;
  background-color: rgba(0, 0, 0, 0.9);
  margin: 5 5 5 5;
  width: 60vw;
  /* El ancho será el 60% del ancho de la ventana */
  height: auto;
  /* La altura se ajustará automáticamente para mantener la proporción de la imagen */
}

.myModal {
  display: block;
  margin-top: 5rem;
  background-color: rgba(0, 0, 0, 0.9);
}

.zoom-label {
  position: absolute;
  /*bottom: -25%;*/
  /*right: 50%;*/
  left: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px;
  border-radius: 5px;
  transform: translateX(-50%);
}


.closes {
  position: absolute;
  bottom: 100%;
  /*right: 50%;*/
  left: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 25px;
  padding: 11px;
  border-radius: 20px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  /*position: absolute;
        top: 0;
        right:44%;
        left: 53%;
        color: #f1f1f1;
        font-size: 20px;
        font-weight: bold;
        background-color: rgba(0, 0, 0, 0.9);
        padding: 5px;
        cursor: pointer;
         border-radius: 5px;
        transition: 0.3s;*/
  /*transform: translateX(125%); */
}

.closes:hover {
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-contents:hover::before {
  content: '\f06e';
  /* Código Unicode del icono Font Awesome */
  font-family: "Font Awesome 5 Free";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 40px;
  color: rgba(255, 255, 255, 0.8);
  /* Cambia el color y la opacidad según tus preferencias */
  z-index: 1;
}




.box {
  display: flex;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.flex-container {
  border: 1px solid black;
  background: #ccc;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 2em;
  width: 100%;
  justify-content: space-between;
  align-content: center;
  /*order: 2;*/
  /*padding: 20px;*/
  /*  display: flex;

  

  margin: 0 auto;
  width: 100%;
  */
}

#lock {
  width: 100%;
  height: calc(100% - 0vh);

  min-height: 180px;
}

.stars {
  margin: auto;
  display: block;
}

.lock-dots .drawn {
  fill: #3498db;
  /* Cambia el color como desees del patron */
}

.lock-lines path {
  stroke: #3498db;
  stroke-width: 2;
  fill: none;
  marker-end: url(#arrow);
}

/*   .lock-dots text {
        font-size: 12px;
        text-anchor: middle;
        /* fill: #fff; /* Cambia el color a negro */
/* font-weight: bold; /* Añade negrita para resaltar */
/* pointer-events: none; /* Evita que los números sean clickeables 
    }*/

svg.patternlock g.lock-lines line {
  stroke-width: 1.5;
  stroke: black;
  opacity: 0.5;
}

svg.patternlock g.lock-dots circle {
  stroke: transparent;
  fill: #3595d9;
  stroke-width: 13.5;
}

svg.patternlock g.lock-actives circle {
  fill: black;
  opacity: .2;
  animation: lock-activate-dot .15s 0s ease 1;
  transform-origin: center;
}

svg.patternlock g.lock-lines line {
  stroke-width: 1.5;
  stroke-linecap: round;
}

svg.patternlock.success g.lock-actives circle {
  fill: green;
}

svg.patternlock.error g.lock-actives circle {
  fill: red;
}

@keyframes lock-activate-dot {
  0% {
    transform: scale(0);
  }

  75% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1.0);
  }
}


.kbw-signature {
  width: 200px;
  height: 100px;
}

#sig canvas {
  width: 100% !important;
  height: auto;
  color: #0080FF;
  -ms-touch-action: none;
}

.texto1 {

  order: 1;
}

.texto2 {

  order: 3;
}

.texto3 {

  order: 5;
}

.texto4 {

  order: 7;
}

.check1 {

  order: 2;
}


.check2 {

  order: 4;
}

.check3 {

  order: 6;
}

.check4 {

  order: 8;
}

/* MÉTRICAS estilo dashboard */
.x-metric {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

.x-metric-body {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 10px 14px;
}

.x-metric-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .12);
  flex: 0 0 auto;
}

.x-metric-icon i {
  font-size: 18px;
}

.x-metric-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #6c757d;
}

.x-metric-value {
  font-size: 20px;
  font-weight: 800;
  color: #1f2d3d;
  line-height: 1.1;
}

.x-metric-footer {
  padding: 10px 14px 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: #f8fafc;
}

.x-metric-link {
  font-weight: 700;
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
}

.x-metric-link:hover {
  text-decoration: underline;
}

/* HEADER PRINCIPAL (PRO) */
.x-pagehead {
  background: linear-gradient(90deg, #2a66f6 0%, #3f86ff 60%, #4d9bff 100%);
  color: #fff;
  border-radius: 16px;
  margin: 12px 12px 0 12px;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 10px 24px rgba(16, 70, 185, .20);
  padding: 14px 16px;
}

.x-pagehead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.x-pagehead-title {
  line-height: 1.2;
}

.x-pagehead-h1 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .3px;
  opacity: .95;
}

.x-pagehead-h2 {
  font-size: 12px;
  font-weight: 600;
  opacity: .9;
  margin-top: 3px;
}

.x-pagehead-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-pagehead-chip {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 7px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}

/* En móvil: se acomoda bonito */
@media (max-width: 768px) {
  .x-pagehead-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .x-pagehead-right {
    width: 100%;
    justify-content: flex-start;
  }
}


.x-metric {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}

.x-metric:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .10);
}

.x-metric-footer {
  background: #fbfcff;
}

.x-panel {
  border-radius: 18px !important;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .06);
  transition: all .18s ease;
}

.x-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .10);
}

/* HEADER PANEL */
.x-panel .card-header {
  border-radius: 18px 18px 0 0 !important;
  background: linear-gradient(90deg, #3a6fe8, #4d86f5);
  font-weight: 600;
  letter-spacing: .3px;
}

/* BODY PANEL */
.x-panel .card-body {
  background: #fff;
}

/* CANVAS CHART PADDING */
.x-panel canvas {
  padding: 10px;
}

/*  .boton { 
    display: inline-block;
    border-radius: 10px;
    border: 0;
    height: 17px;
    width: 17px;
 
  }

/* =========================
   XPERTECH PREMIUM DASHBOARD
========================= */

/*:root{
  --x-blue-1:#2f6fed;
  --x-blue-2:#4d86f5;
  --x-border:rgba(0,0,0,.07);
  --x-shadow:0 12px 28px rgba(0,0,0,.08);
  --x-shadow-hover:0 18px 38px rgba(0,0,0,.12);
  --x-radius:18px;
}*/

/* contenedor general si quieres */
.x-wrap {
  border-radius: var(--x-radius);
  overflow: hidden;
  border: 1px solid var(--x-border);
  box-shadow: var(--x-shadow);
  background: #fff;
}

/* PANEL PRO */
.x-panel {
  border-radius: var(--x-radius) !important;
  overflow: hidden;
  border: 1px solid var(--x-border);
  box-shadow: var(--x-shadow);
  transition: all .18s ease;
  background: #fff;
}

.x-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--x-shadow-hover);
}

/* HEADER PRO */
.x-panel .card-header {
  border-radius: var(--x-radius) var(--x-radius) 0 0 !important;
  background: linear-gradient(90deg, var(--x-blue-1), var(--x-blue-2));
  color: #fff !important;
  font-weight: 600;
  letter-spacing: .3px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

/* título dentro del header */
.x-panel .card-header h5,
.x-panel .card-header h6,
.x-panel .card-header h7 {
  margin: 0;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .35);
}

/* body con aire */
.x-panel .card-body {
  padding: 16px 16px 18px 16px;
}

/* charts con padding */
.x-panel canvas {
  padding: 10px;
}

/* badge no-data bonito */
.x-empty {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(47, 111, 237, .12);
  color: #1d4ed8;
  font-weight: 600;
  font-size: 12px;
}

/* tablas dentro de panel: más limpio */
.x-panel table thead th {
  font-weight: 700 !important;
  color: #2b2b2b;
}

.x-panel table tbody td {
  vertical-align: middle;
}


.boton:hover {
  position: relative;
  top: 2px;
}

.verde {
  background: #26c281;
  border-bottom: 4px solid #03a678;
}

.verde:hover {
  border-bottom: 2px solid #03a678;
}

*/ #myChart2 {
  border-radius: 5px;
  /* Ajusta según tus preferencias */
}

#myChart2 .bar {
  border-radius: 5px;
  /* Ajusta según tus preferencias */
}

.legend {
  border-radius: 10px;
}

.boton {
  display: inline-block;
  font-size: 12px;
  font-weight: 200;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 10px;
}



.form-switch {
  display: inline-block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.form-switch i {
  position: relative;
  display: inline-block;
  margin-right: .5rem;
  width: 46px;
  height: 26px;
  background-color: #e6e6e6;
  border-radius: 23px;
  vertical-align: text-bottom;
  transition: all 0.3s linear;
}

.form-switch i::before {
  content: "";
  position: absolute;
  left: 0;
  width: 42px;
  height: 22px;
  background-color: grey;
  border-radius: 11px;
  transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
  transition: all 0.25s linear;
}

.form-switch i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
  transform: translate3d(2px, 2px, 0);
  transition: all 0.2s ease-in-out;
}

.alinear {
  position: relative;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle;
}

.form-switch:active i::after {
  width: 28px;
  transform: translate3d(2px, 2px, 0);
}

.form-switch:active input:checked+i::after {
  transform: translate3d(16px, 2px, 0);
}

.form-switch input {
  display: none;
}

.form-switch input:checked+i {
  background-color: #293655;
}

.form-switch input:checked+i::before {
  transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0);
}

.form-switch input:checked+i::after {
  transform: translate3d(22px, 2px, 0);
}



.btn-app>.fa,
.btn-app>.glyphicon,
.btn-app>.ion {
  font-size: 20px;
  display: block;
}

.pdf {
  background-color: #dc2f2f !important;
}

.imprimir {
  background-color: #512DA8 !important;
}

.barras {
  background-color: #4682B4 !important;
}

.excel {
  background-color: #3ca23c !important;
}

.btn-app:hover {
  border-color: #aaa;
  transform: scale(1.1);
}

.zoom:hover {
  transform: scale(1.3);
  /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}


.btns {
  display: inline-block;
  text-decoration: none;
  color: rgb(82, 142, 150);
  width: 122px;
  font-size: 20px;
  height: 120px;
  line-height: 120px;
  border-radius: 50%;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;
  box-shadow: inset 0px 2px 0 rgba(255, 255, 255, 0.3), 0 2px 2px rgba(0, 0, 0, 0.3);
  font-weight: bold;
  border-bottom: solid 1px #549fa9;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.65);
  transition: .4s;
  cursor: pointer;
}

.btnss {
  display: inline-block;
  text-decoration: none;
  color: rgb(82, 142, 150);
  width: 122px;
  font-size: 20px;
  height: 120px;
  line-height: 120px;
  text-align: center;
  vertical-align: middle;
  overflow: hidden;

  font-weight: bold;

  transition: .4s;
  cursor: pointer;
}

.btns:active {
  -ms-transform: translateY(1px);
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.35);
  border-bottom: none;
}

.btns:hover {
  -webkit-transform: scale(1.4);
  -ms-transform: scale(1.4);
  transform: scale(1.4);
  /*box-shadow:  0 5px 5px #1E1F26, 0 15px rgba(30, 31, 3, 0.25) inset;*/
  /*background-color: #1E1F26;*/
  color: #1E1F26;
}

.btnss:active {
  -ms-transform: translateY(1px);
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0);
  border-bottom: none;
}

.btnss:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  /*box-shadow:  0 5px 5px #1E1F26, 0 15px rgba(30, 31, 3, 0.25) inset;*/
  /*background-color: #1E1F26;*/

}

.btnCrear:active {
  -ms-transform: translateY(1px);
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0);
  border-bottom: none;
}

.btnCrear:hover {
  -webkit-transform: scale(1.1);
  -ms-transform: scale(1.1);
  transform: scale(1.1);
  /*box-shadow:  0 5px 5px #1E1F26, 0 15px rgba(30, 31, 3, 0.25) inset;*/
  /*background-color: #1E1F26;*/

}

/*.tablaVentas{
  margin: 0 auto;
  width: 100%;
  clear: both;
  border-collapse: collapse;
  table-layout: fixed; // ***********add this
  word-wrap:break-word; // ***********and this
}*/

/*.tablaVentas {
  table-layout:fixed;
}
.tablaVentas td {
  word-wrap: break-word;
  max-width: 400px;
   white-space:inherit;
}*/

/* Style the Image Used to Trigger the Modal */
#myImg {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#myImg:hover {
  opacity: 0.7;
}

/* The Modal (background) */
.modals {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  padding-top: 60px;
  /* Location of the box */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.9);
  /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-contents {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 500px;
}

/* Caption of Modal Image (Image Text) - Same Width as the Image */
#captions {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation - Zoom in the Modal */
.modal-contents,
#captions {
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {
    transform: scale(0)
  }

  to {
    transform: scale(1)
  }
}

/* The Close Button */
.closes {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 32px;
  font-weight: bold;
  transition: 0.3s;
}

.closes:hover,
.closes:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 600px) {
  .modal-contents {
    width: 100%;
  }
}

/* =========================
   XPERTECH PREMIUM (Glass UI)
========================= */

:root {
  --x-blue: #2f6fed;
  --x-blue2: #4d86f5;
  --x-border: rgba(255, 255, 255, .22);
  --x-border2: rgba(0, 0, 0, .06);
  --x-shadow: 0 18px 40px rgba(0, 0, 0, .10);
  --x-shadow2: 0 10px 24px rgba(0, 0, 0, .08);
  --x-radius: 18px;
}

/* Fondo sutil tipo dashboard */
.x-dashboard-bg {
  background:
    radial-gradient(1200px 500px at 10% 0%, rgba(47, 111, 237, .12), transparent 60%),
    radial-gradient(900px 400px at 90% 10%, rgba(77, 134, 245, .10), transparent 55%);
  /*    linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,1));*/
  border-radius: var(--x-radius);
  background: linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%);
  min-height: 100vh;
  padding-bottom: 30px;
}

/* Panel Glass */
.x-glass {
  border-radius: var(--x-radius);
  overflow: hidden;
  border: 1px solid var(--x-border2);
  box-shadow: var(--x-shadow2);
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Header flotante dentro de panel */
.x-float-head {
  margin: 14px 14px 0 14px;
  border-radius: 16px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--x-blue), var(--x-blue2));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 14px 26px rgba(47, 111, 237, .22);
}

.x-float-head .x-float-title {
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .3px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .30);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Cuerpo panel con aire */
.x-glass .x-panel-body {
  padding: 14px 16px 18px 16px;
}

/* Charts con fondo sutil */
.x-chart-wrap {
  border-radius: 16px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, .05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55)),
    repeating-linear-gradient(90deg,
      rgba(47, 111, 237, .05) 0px,
      rgba(47, 111, 237, .05) 1px,
      transparent 1px,
      transparent 22px);
}

.x-chart-wrap canvas {
  width: 100% !important;
}

/* Métricas con glow suave (elegante) */
.x-metric-pro {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .06);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, .08);
  transition: transform .16s ease, box-shadow .16s ease;
}

.x-metric-pro:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, .12);
}

/* Glow alrededor del icono (suave) */
.x-metric-pro .x-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow:
    0 16px 28px rgba(47, 111, 237, .22),
    0 0 0 6px rgba(47, 111, 237, .10);
}

.x-metric-pro .x-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 10px 14px;
}

.x-metric-pro .x-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .35px;
  text-transform: uppercase;
  color: #6b7280;
}

.x-metric-pro .x-value {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  line-height: 1.05;
}

.x-metric-pro .x-foot {
  padding: 10px 14px 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: rgba(250, 251, 255, .75);
}

.x-metric-pro .x-link {
  font-weight: 800;
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
}

.x-metric-pro .x-link:hover {
  text-decoration: underline;
}

/* chips */
.x-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}


/* móvil */
@media (max-width: 576px) {
  .x-float-head {
    margin: 10px 10px 0 10px;
  }

  .x-glass .x-panel-body {
    padding: 12px;
  }
}


/* =========================
   XPERTECH DASH THEME ENGINE
   (Corporate / Stripe / Dark)
========================= */

/* --- Variables base --- */
:root {
  --x-radius: 18px;
  --x-radius-sm: 14px;
  --x-gap: 16px;

  --x-bg: #f3f7ff;
  --x-surface: rgba(255, 255, 255, .92);
  --x-surface-2: rgba(255, 255, 255, .78);
  --x-border: rgba(0, 0, 0, .07);
  --x-shadow: 0 12px 30px rgba(0, 0, 0, .08);
  --x-shadow-soft: 0 6px 18px rgba(0, 0, 0, .06);

  --x-primary: #2f6fed;
  --x-primary-2: #6ea2ff;

  --x-text: #0f172a;
  --x-muted: rgba(15, 23, 42, .72);

  --x-glow: 0 18px 40px rgba(47, 111, 237, .20);
  --x-inset: inset 0 0 0 1px rgba(0, 0, 0, .05);

  --x-grid: rgba(15, 23, 42, .06);
}

/* --- Theme: Premium White Corporate --- */
.x-theme-corporate {
  --x-bg: linear-gradient(180deg, #f7fbff 0%, #eef4ff 55%, #f8fafc 100%);
  --x-surface: rgba(255, 255, 255, .95);
  --x-surface-2: rgba(255, 255, 255, .82);
  --x-border: rgba(0, 0, 0, .07);
  --x-text: #0f172a;
  --x-muted: rgba(15, 23, 42, .72);
  --x-grid: rgba(15, 23, 42, .06);
}

/* --- Theme: Stripe Minimal --- */
.x-theme-stripe {
  --x-bg: #f6f9fc;
  --x-surface: #ffffff;
  --x-surface-2: #ffffff;
  --x-border: rgba(15, 23, 42, .10);
  --x-shadow: 0 10px 24px rgba(2, 6, 23, .08);
  --x-shadow-soft: 0 5px 14px rgba(2, 6, 23, .06);
  --x-text: #0b1220;
  --x-muted: rgba(11, 18, 32, .70);
  --x-grid: rgba(11, 18, 32, .05);
}

/* --- Theme: Dark Elegant --- */
.x-theme-dark {
  --x-bg: radial-gradient(1200px 500px at 20% 0%, rgba(47, 111, 237, .25), transparent 55%),
    radial-gradient(900px 450px at 90% 10%, rgba(110, 162, 255, .18), transparent 55%),
    linear-gradient(180deg, #0b1220 0%, #0a1020 100%);
  --x-surface: rgba(17, 24, 39, .72);
  --x-surface-2: rgba(17, 24, 39, .56);
  --x-border: rgba(255, 255, 255, .10);
  --x-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  --x-shadow-soft: 0 10px 26px rgba(0, 0, 0, .35);

  --x-text: rgba(255, 255, 255, .92);
  --x-muted: rgba(255, 255, 255, .65);
  --x-grid: rgba(255, 255, 255, .08);
  --x-inset: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

/* --- Contenedor general --- */
.x-dashboard-bg {
  background: var(--x-bg);
  border-radius: var(--x-radius);
  padding: 14px;
}

/* --- Topbar --- */
.x-topbar {
  border-radius: var(--x-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .20);
  box-shadow: var(--x-glow);
  background: linear-gradient(135deg, var(--x-primary), #4d86f5 60%, var(--x-primary-2));
  color: #fff;
}

.x-topbar .x-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  gap: 14px;
}

.x-topbar .x-title h6 {
  margin: 0;
  font-weight: 800;
  font-size: 16px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .35);
}

.x-topbar .x-title small {
  display: block;
  margin-top: 4px;
  opacity: .92;
  font-weight: 600;
}

.x-topbar .x-date {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  font-weight: 700;
  white-space: nowrap;
}

/* --- Separaciones --- */
.x-section-gap {
  margin-top: 12px;
}

.x-row-gap {
  gap: var(--x-gap);
}

/* --- Cards Pro --- */
.x-card,
.x-panel,
.x-metric {
  border-radius: var(--x-radius);
  overflow: hidden;
  border: 1px solid var(--x-border);
  background: var(--x-surface);
  box-shadow: var(--x-shadow-soft);
}

/* --- “Glass panel” flotante --- */
.x-glass {
  border-radius: var(--x-radius);
  background: var(--x-surface-2);
  border: 1px solid var(--x-border);
  box-shadow: var(--x-shadow);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.x-float-head {
  position: sticky;
  /* si no quieres sticky, cambia a "relative" */
  top: 10px;
  z-index: 2;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(47, 111, 237, .95), rgba(110, 162, 255, .85));
  color: #fff;
  font-weight: 800;
}

.x-float-title {
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .30);
}

.x-panel-body {
  padding: 14px;
}

/* --- Empty state bonito --- */
.x-empty {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(47, 111, 237, .10);
  color: var(--x-text);
  border: 1px solid var(--x-border);
  font-weight: 700;
}

/* --- Métricas PRO (todas iguales) --- */
.x-metric {
  padding: 0;
}

.x-metric-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.x-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14);
}

.x-metric-title {
  font-size: 11px;
  letter-spacing: .4px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--x-muted);
}

.x-metric-value {
  font-size: 18px;
  font-weight: 900;
  color: var(--x-text);
}

.x-metric-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--x-border);
  text-align: center;
}

.x-metric-link {
  font-weight: 800;
  text-decoration: none;
  color: var(--x-primary);
}

.x-metric-link:hover {
  text-decoration: underline;
}

/* Hover “glow” suave */
.x-metric-card:hover,
.x-metric:hover,
.x-glass:hover,
.x-panel:hover {
  transform: translateY(-3px);
  transition: all .25s ease;
  box-shadow: 0 18px 42px rgba(47, 111, 237, .14);
}

/* --- Charts con fondo sutil --- */
.x-chart-container,
.x-chart-wrap {
  border-radius: var(--x-radius-sm);
  background: rgba(255, 255, 255, .55);
  box-shadow: var(--x-inset);
  padding: 14px;
}

.x-theme-dark .x-chart-container,
.x-theme-dark .x-chart-wrap {
  background: rgba(17, 24, 39, .35);
}

/* --- Reduce “grid pesado” de Chart.js (si lo usas) --- */
.x-chart-softgrid {
  /* clase helper para que recuerdes setear grid en JS */
}

/* --- Responsive fixes --- */
@media (max-width: 992px) {
  .px-2.d-flex {
    flex-direction: column;
  }

  .px-2.d-flex>.col-lg-6 {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .x-topbar .x-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .x-topbar .x-date {
    align-self: flex-end;
  }
}

/* Charts: alto consistente + mejor padding */
.x-chart-wrap {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* En dark, que se note el glass */
.x-theme-dark .x-glass {
  background: rgba(17, 24, 39, .55);
}

/* Header flotante más “premium” */
.x-float-head {
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  border-top-left-radius: var(--x-radius);
  border-top-right-radius: var(--x-radius);
}

/* Redondear TODO más */
.x-glass {
  border-radius: 10px;
}

.x-topbar {
  border-radius: 22px;
}

.x-chart-wrap {
  border-radius: 18px;
}




:root {
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 76px;
  --radius: 14px;
  --glass: rgba(255, 255, 255, .06);
  --glass2: rgba(255, 255, 255, .09);
  --stroke: rgba(255, 255, 255, .10);
  --text: rgba(255, 255, 255, .88);
  --muted: rgba(255, 255, 255, .60);
  --primary: #4f86ff;
}

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, rgba(9, 12, 20, .92), rgba(6, 8, 14, .92));
  border-right: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
}

.sidebar .nav-item {
  margin: 6px 10px;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  border-radius: 12px;
  color: var(--muted);
  padding: 0 12px;
  transition: all .18s ease;
}

.sidebar .nav-link:hover {
  background: var(--glass);
  color: var(--text);
  transform: translateX(2px);
}

.sidebar .nav-link.active {
  background: linear-gradient(90deg, rgba(79, 134, 255, .35), rgba(79, 134, 255, .10));
  border: 1px solid rgba(79, 134, 255, .35);
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 134, 255, .12);
}

.sidebar .section-title {
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
  letter-spacing: .08em;
  margin: 16px 16px 8px;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(79, 134, 255, .55), rgba(79, 134, 255, .25));
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.topbar .title {
  font-weight: 700;
  letter-spacing: .2px;
}

.card-dashboard {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(8, 12, 22, .78), rgba(8, 10, 18, .65));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.card-dashboard.h-md {
  height: 404px;
}

/* misma altura que el donut */
.card-dashboard.h-lg {
  height: 360px;
}

/* para gráficas grandes */

.card-dashboard .card-body.scroll {
  height: calc(100% - 52px);
  /* 52px header */
  overflow: auto;
  padding-right: 8px;
}


/* ====== THEME DASH ====== */
:root {
  --x-bg: rgba(10, 14, 24, .92);
  --x-bg2: rgba(8, 10, 18, .75);
  --x-stroke: rgba(255, 255, 255, .10);
  --x-glass: rgba(255, 255, 255, .06);
  --x-glass2: rgba(255, 255, 255, .09);
  --x-text: rgba(255, 255, 255, .88);
  --x-muted: rgba(255, 255, 255, .60);
  --x-primary: #4f86ff;
  --x-radius: 14px;
  --topbar-h: 64px;
  --sidebar-w: 260px;
}

/* ====== SIDENAV ====== */
#slide-out.side-nav {
  width: 269px;
  /* más pro y consistente */
  /* background: linear-gradient(180deg, var(--x-bg), rgba(6, 8, 14, .92)); */
  border-right: 1px solid var(--x-stroke);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

#slide-out .logo-wrapper {
  /* padding: 18px 12px 6px; */
  text-align: center;
}

#slide-out .logo-wrapper img {
  width: 200px !important;
  max-width: 100%;
  margin: 0 !important;
  /* elimina margin-left hack */
  display: inline-block;
}

/* barra social */
#slide-out ul.social {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 0px 0 12px;
}

#slide-out ul.social li a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--x-glass);
  border: 1px solid var(--x-stroke);
  color: var(--x-text);
  transition: .18s ease;
}

#slide-out ul.social li a:hover {
  transform: translateY(-1px);
  background: var(--x-glass2);
}

/* items */
#slide-out .collapsible a.collapsible-header {
  /* margin: 6px 10px; */
  border-radius: 12px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--x-muted) !important;
  transition: .18s ease;
}

#slide-out .collapsible a.collapsible-header:hover {
  background: var(--x-glass);
  color: var(--x-text) !important;
  transform: translateX(2px);
}

#slide-out .collapsible-body {
  background: transparent !important;
}

#slide-out .collapsible-body a {
  /* margin: 4px 18px; */
  border-radius: 10px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--x-muted) !important;
}

#slide-out .collapsible-body a:hover {
  background: rgba(255, 255, 255, .05);
  color: #fff !important;
}

/* item activo (lo activamos con JS, abajo te lo dejo) */
#slide-out .nav-active {
  background: linear-gradient(90deg, rgba(79, 134, 255, .35), rgba(79, 134, 255, .10)) !important;
  border: 1px solid rgba(79, 134, 255, .35);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(79, 134, 255, .10);
}

/* ====== NAVBAR TOP ====== */
nav.double-nav {
  margin-left: 260px;
  /* para que no se monte sobre el sidebar */
  background: linear-gradient(90deg, rgba(79, 134, 255, .55), rgba(79, 134, 255, .25));
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}

nav.double-nav .button-collapse i {
  font-size: 18px;
  color: #fff;
}

nav.double-nav .nav-link {
  color: rgba(255, 255, 255, .92) !important;
}

nav.double-nav .dropdown-menu {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  overflow: hidden;
}

/* avatar */
.user-image {
  width: 36px !important;
  height: 36px !important;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  object-fit: cover;
}

/* ====== CARDS IGUAL ALTURA ====== */



/* ===== FIX MDB LAYOUT ===== */
.fixed-sn main.x-main-fix {
  margin-left: 260px;
  /* mismo ancho sidebar */
  margin-top: 80px;
  /* altura navbar */
  min-height: calc(100vh - 80px);
}

/* evita que el navbar monte el contenido */
.fixed-sn .double-nav {
  /*  margin-left: 260px;*/
}

/* responsive automático */
@media(max-width:1200px) {
  .fixed-sn main.x-main-fix {
    margin-left: 0;
  }

  .fixed-sn .double-nav {
    margin-left: 0;
  }
}

.x-dashboard-bg {
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08);
}

/* fuerza altura igual en la fila */
.x-row-equal {
  align-items: stretch;
}



/* scroll interno para tablas/listas */
.card-scroll {
  height: calc(100% - 52px);
  /* resta header */
  overflow: auto;
}

.card-scroll::-webkit-scrollbar {
  width: 8px;
}

.card-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
}

.card-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .05);
}

html,
body {
  height: 100%;
  background: #0b1020 !important;
  /* tu fondo oscuro */
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

/* MDB a veces mete padding por defecto al contenido */
.fixed-sn main {
  margin: 0 !important;
}

/* si estás usando container, cámbialo a full */
.container,
.container-fluid {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.x-theme-dark {
  background: linear-gradient(180deg, rgba(8, 12, 22, .90), rgba(8, 10, 18, .82)) !important;
}

/*.fixed-sn main.x-main-fix{
  margin-left: 260px;
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  padding: 18px;
}
@media (max-width:1200px){
  .fixed-sn main.x-main-fix{
    margin-left: 0;
  }
}


.container-fluid{
  max-width: 1400px;
  margin: 0 auto;
}*/

html,
body {
  height: 100%;
  background: #0b1020 !important;
  margin: 0 !important;
}

/*.fixed-sn .double-nav{
  margin-left: 260px;
}
*/
.fixed-sn main.x-main-fix {
  margin-left: 260px;
  margin-top: 72px;
  /* baja un poco (MDB suele ser 64-72) */
  padding: 18px 22px;
  /* más aire */
  min-height: calc(100vh - 72px);
}

/* Centramos el "dashboard" sin tocar el main con cálculos */
.fixed-sn main.x-main-fix .x-page {
  max-width: 1400px;
  margin: 0 auto;
}

:root {
  --bg0: #070b16;
  --bg1: #0b1020;
  --card0: rgba(10, 14, 26, .72);
  --card1: rgba(8, 10, 18, .62);
  --stroke: rgba(255, 255, 255, .08);
  --stroke2: rgba(255, 255, 255, .12);
  --txt: rgba(255, 255, 255, .90);
  --muted: rgba(255, 255, 255, .62);
  --primary: #4f86ff;
  --radius: 16px;
}

/* Fondo general sin “manchas” */
html,
body {
  background: radial-gradient(1200px 500px at 40% 0%, rgba(79, 134, 255, .22), transparent 60%),
    radial-gradient(900px 420px at 80% 20%, rgba(0, 255, 200, .10), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg0)) !important;
  color: var(--txt);
}

/*html, body{ RAINIERO
  background: radial-gradient(1000px 500px at 10% 0%, rgba(79,134,255,.22), transparent 60%),
              radial-gradient(700px 359px at 90% 95%, rgba(0,255,255,.05), transparent 60%),
              linear-gradient(180deg, var(--bg1), var(--bg0)) !important;
  color: var(--txt);
}*/
/* Ajuste de contenido */
.fixed-sn main.x-main-fix {
  margin-left: 260px;
  margin-top: 72px;
  padding: 18px 22px;
  min-height: calc(100vh - 72px);
}

@media(max-width:1200px) {
  .fixed-sn main.x-main-fix {
    margin-left: 0;
  }
}

/* Cards premium */
.card,
.card-body {
  border-radius: var(--radius) !important;
}

/*.card{
  background: linear-gradient(180deg, var(--card0), var(--card1)) !important;
  border: 1px solid var(--stroke) !important;
  box-shadow: 0 18px 45px rgba(0,0,0,.38) !important;
}*/

/* Header más fino (menos “bloque”) */
.card-header {
  background: rgba(79, 134, 255, .16) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
  border-top-left-radius: var(--radius) !important;
  border-top-right-radius: var(--radius) !important;
  padding: 10px 14px !important;
  font-weight: 600;
  letter-spacing: .2px;
}

/* Títulos y texto */
h1,
h2,
h3,
h4,
h5 {
  color: var(--txt);
}

.small,
small {
  color: var(--muted);
}

/* Panel principal (la franja azul grande) más elegante */
.x-panel-top {
  background: linear-gradient(90deg, rgba(79, 134, 255, .55), rgba(79, 134, 255, .22)) !important;
  border: 1px solid rgba(255, 255, 255, .10) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .30);
}

/* Mini cards superiores (ventas del día etc.) */
.x-mini-card {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  background: linear-gradient(180deg, rgba(10, 14, 26, .78), rgba(8, 10, 18, .64)) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .32) !important;
}

/* Botón "Más info" que no parezca pegote blanco */
.x-mini-card .btn,
.x-mini-card a {
  text-decoration: none;
}

.x-mini-card .more-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .86);
  transition: .18s ease;
}

.x-mini-card .more-info:hover {
  background: rgba(255, 255, 255, .10);
  transform: translateY(-1px);
}

/* Tabla “Prioridad reparaciones” más limpia */
.table thead th {
  color: rgba(255, 255, 255, .78) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
}

.table tbody td {
  color: rgba(255, 255, 255, .72) !important;
  border-top: 1px solid rgba(255, 255, 255, .05) !important;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, .03) !important;
}

/* Scroll interno bonito (por si metes card-scroll) */
.card-scroll {
  overflow: auto;
}

.card-scroll::-webkit-scrollbar {
  width: 8px;
}

.card-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
}

.card-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .05);
}

.x-metric {
  overflow: hidden;
}

.x-metric-body {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 10px;
}

.x-metric-title {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .60);
}

.x-metric-value {
  font-size: 20px;
  font-weight: 800;
  color: rgba(255, 255, 255, .92);
  margin-top: 2px;
}

.x-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
}

/* Footer uniforme */
.x-metric-footer {
  padding: 10px 14px 14px;
  background: rgba(255, 255, 255, .03);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

/* Botón “Más info” estilo pill */
.more-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  color: rgba(255, 255, 255, .86) !important;
  transition: .18s ease;
  text-decoration: none !important;
}

.more-info:hover {
  background: rgba(255, 255, 255, .10);
  transform: translateY(-1px);
}

.x-row-equal {
  align-items: stretch;
}


/* PRO: 340–400 según tu gusto */
/*.card-equal{
  height: 410px;              
  border-radius: 16px;
  margin-top: 6px;
}*/

.card-scroll {
  height: calc(100% - 56px);
  /* header aprox */
  overflow: auto;
  padding-bottom: 10px;
}

.x-link {
  color: rgba(255, 255, 255, .88) !important;
  text-decoration: underline;
}


.x-link:hover {
  color: #fff !important;
}

.x-mini-card {
  position: relative;
  overflow: hidden;
}

/* glow general suave */
.x-mini-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  pointer-events: none;
  opacity: .75;
  filter: blur(14px);
}

/* colores */
.glow-green::before {
  background: radial-gradient(350px 140px at 18% 22%, rgba(34, 197, 94, .55), transparent 60%);
}

.glow-cyan::before {
  background: radial-gradient(350px 140px at 18% 22%, rgba(56, 189, 248, .55), transparent 60%);
}

.glow-red::before {
  background: radial-gradient(350px 140px at 18% 22%, rgba(239, 68, 68, .50), transparent 60%);
}

.glow-amber::before {
  background: radial-gradient(350px 140px at 18% 22%, rgba(245, 158, 11, .55), transparent 60%);
}

/* que el contenido quede arriba del glow */
.x-mini-card>* {
  position: relative;
  z-index: 1;
}

/* ===== PATCH LAYOUT MDB FIXED-SN ===== */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* anchos reales (ajusta si tu sidenav no mide 260) */
:root {
  --sidenav-w: 260px;
  --topnav-h: 70px;
}

/* navbar alineado con el sidenav */
/*.fixed-sn .double-nav{
  left: 0;
  padding-left: var(--sidenav-w);
}*/

/* el contenido NO debe ser "card" centrada */
.fixed-sn main.x-main-fix {
  margin: 0 !important;
  padding-top: calc(var(--topnav-h) + 12px) !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  padding-bottom: 18px !important;

  /* clave: ocupar todo el ancho disponible */
  width: calc(100% - var(--sidenav-w)) !important;
  margin-left: var(--sidenav-w) !important;

  max-width: none !important;
  box-sizing: border-box;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* cuando colapsa / mobile */
@media (max-width: 1000px) {
  .fixed-sn .double-nav {
    padding-left: 0;
  }

  .fixed-sn main.x-main-fix {
    width: 100% !important;
    margin-left: 0 !important;
  }
}

/* que el logo nunca se marque como item activo */
#slide-out .logo-wrapper a,
#slide-out .logo-wrapper a:hover,
#slide-out .logo-wrapper a:focus {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

#slide-out .logo-wrapper img {
  pointer-events: none;
}

/* ===== NEON HOVER (AZUL) ===== */
.x-glass,
.x-metric,
.card-dashboard,
.x-panel-body,
.card {
  transition: transform .18 ease, box-shadow .18 ease, border-color .18 ease, filter .18 ease;
  will-change: transform, box-shadow;
}

/* Hover general para paneles */
.x-glass:hover,
.card-dashboard:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, .20),
    0 0 28px rgba(59, 130, 246, .18),
    0 18px 45px rgba(0, 0, 0, .45) !important;
}

/* Hover para las 4 cards de arriba (métricas) */
.x-metric:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, .22),
    0 0 22px rgba(59, 130, 246, .20),
    0 14px 35px rgba(0, 0, 0, .50) !important;
}

/* Glow suave en header del panel */
.x-float-head,
.x-panel-top {
  transition: box-shadow .39s ease, filter .39s ease;
}

.x-glass:hover .x-float-head,
.card-dashboard:hover .x-panel-top {
  box-shadow: 0 0 18px rgba(59, 130, 246, .18);
}

/* logo NO clickable/active style */
#slide-out .logo-wrapper a {
  background: transparent !important;
}

#slide-out .logo-wrapper a.nav-active,
#slide-out .logo-wrapper a.active {
  background: transparent !important;
  box-shadow: none !important;
}

/* ===============================
   FIX LAYOUT SIDENAV + MAIN (NO GAPS)
   Pegar al FINAL del CSS
================================ */

:root {
  --x-sidenav-w: 260px;
  --x-topnav-h: 80px;
}

/* 0) Nunca metas main dentro de un <main> con padding enorme si quieres full width */
.x-dashboard-center,
.x-page,
.x-main {
  width: 100%;
  max-width: none !important;
}

/* 1) MAIN: ocupa todo el ancho disponible (sin centrado raro) */
body.fixed-sn main.x-main-fix {
  margin-top: 59px !important;
  margin-left: var(--x-sidenav-w) !important;
  width: calc(100% - var(--x-sidenav-w)) !important;
  max-width: none !important;

  padding: 0 !important;

  min-height: auto !important;
  height: auto !important;

  overflow: visible !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* 2) Cuando el menú está oculto (modo overlay / zoom / mobile) */
body.x-sidenav-collapsed main.x-main-fix {
  margin-left: 0 !important;
  width: 100% !important;
}

/* 3) Evita “marco blanco” del navegador */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* 4) Evita que el logo se pinte como activo */
#slide-out .logo-wrapper a,
#slide-out .logo-wrapper a:hover,
#slide-out .logo-wrapper a:focus,
#slide-out .logo-wrapper a:active {
  background: transparent !important;
  box-shadow: none !important;
}

/* Si tienes una clase nav-active que pinta fondo, evita aplicarla a logo */
#slide-out .logo-wrapper .nav-active {
  background: transparent !important;
}

/* 5) Efecto neon azul al hover para cards métricas (arriba) */
.card.x-metric {
  position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}

.card.x-metric:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, .25),
    0 12px 40px rgba(59, 130, 246, .18),
    0 0 35px rgba(59, 130, 246, .25);
}

/* 6) Efecto neon para paneles grandes (si usas .x-glass / .card-dashboard) */
.x-glass:hover,
.card-dashboard:hover {
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, .22),
    0 14px 45px rgba(59, 130, 246, .16),
    0 0 45px rgba(59, 130, 246, .20);
}

/* =====================================
   XPERTECH DATATABLE DARK THEME
===================================== */

/* Tabla base */
table.dataTable {
  background: transparent !important;
  color: #cbd5e1;
  border-collapse: separate;
  border-spacing: 0;
}

/* Header */
table.dataTable thead th {
  background: rgba(59, 130, 246, .15);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(59, 130, 246, .35) !important;
  font-weight: 600;
}

/* Filas */
table.dataTable tbody tr {
  background: transparent;
  transition: all .2s ease;
}

/* Hover azul glow */
table.dataTable tbody tr:hover {
  background: rgba(59, 130, 246, .08);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .2);
}

/* Celdas */
table.dataTable tbody td {
  border-bottom: 1px solid rgba(148, 163, 184, .08);
}

/* Paginación */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #cbd5e1 !important;
  border-radius: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #3b82f6 !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, .4);
}

/* Input búsqueda */
.dataTables_filter input {
  background: #020617;
  border: 1px solid rgba(59, 130, 246, .3);
  color: #e2e8f0;
  border-radius: 8px;
  padding: 4px 10px;
}

/* Select length */
.dataTables_length select {
  background: #020617;
  border: 1px solid rgba(59, 130, 246, .3);
  color: #e2e8f0;
  border-radius: 6px;
}

/* Info texto */
.dataTables_info {
  color: #94a3b8 !important;
}

/* Responsive icon */
table.dataTable.dtr-inline.collapsed>tbody>tr>td:first-child:before {
  background: #3b82f6 !important;
}

table.dataTable tbody tr.selected {
  background: rgba(59, 130, 246, .2) !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, .3);
}

table-striped tbody tr:nth-of-type(odd) {
  background: #f9f9f9;
}

/* ==============================
   XPERTECH DATATABLE FIX REAL
==============================*/

.x-table-dark {
  background: transparent !important;
  color: #e2e8f0;
}

/* HEADER */
.x-table-dark thead th {
  background: rgba(59, 130, 246, .18);
  border-bottom: 1px solid rgba(59, 130, 246, .35);
  color: #e2e8f0;
}

/* QUITAR STRIPED CLARO MDB */
.x-table-dark tbody tr:nth-of-type(odd) {
  background: transparent !important;
}

/* FILAS */
.x-table-dark tbody tr {
  background: rgba(2, 6, 23, .6);
  transition: .2s;
}

.x-table-dark tbody tr:hover {
  background: rgba(59, 130, 246, .12);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .25);
}

/* CELDAS */
.x-table-dark td {
  border-top: 1px solid rgba(148, 163, 184, .06);
}

/* BUSCADOR */
.dataTables_filter input {
  background: #020617 !important;
  border: 1px solid rgba(59, 130, 246, .4);
  color: #e2e8f0 !important;
}

/* PAGINACIÓN */
.dataTables_paginate .paginate_button.current {
  background: #3b82f6 !important;
  color: white !important;
  border: none !important;
}

/* =========================================================
   XPERTECH - DATATABLE ULTRA (GLASS + NEON + STICKY HEADER)
   Pegar al FINAL de style.css
========================================================= */

/* Wrapper general */
.dataTables_wrapper {
  width: 100%;
  color: #e2e8f0;
}

/* Filtro / buscador */
.dataTables_filter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
}

.dataTables_filter label {
  color: #cbd5e1 !important;
  font-weight: 600;
}

.dataTables_filter input {
  height: 34px !important;
  border-radius: 10px !important;
  padding: 0 12px !important;
  background: rgba(2, 6, 23, .85) !important;
  border: 1px solid rgba(59, 130, 246, .45) !important;
  color: #e2e8f0 !important;
  outline: none !important;
  box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  transition: .2s;
}

.dataTables_filter input:focus {
  border-color: rgba(59, 130, 246, .75) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .18) !important;
}

/* Length selector */
.dataTables_length label {
  color: #cbd5e1 !important;
  font-weight: 600;
}

.dataTables_length select {
  height: 34px !important;
  border-radius: 10px !important;
  background: rgba(2, 6, 23, .85) !important;
  border: 1px solid rgba(59, 130, 246, .45) !important;
  color: #e2e8f0 !important;
  outline: none !important;
}

/* Info text */
.dataTables_info {
  color: #94a3b8 !important;
  padding-top: .75rem !important;
}

/* Tabla base */
table.dataTable,
.x-table-dark {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 12px !important;
  /* <-- filas tipo “cards” */
  background: transparent !important;
}

/* Quitar el striped CLARO de MDB */
table.dataTable tbody tr:nth-of-type(odd),
table.dataTable tbody tr:nth-of-type(even) {
  background: transparent !important;
}

/* Header sticky + glass */
table.dataTable thead th {
  position: sticky;
  top: 0;
  /* si tu navbar tapa, cambia a 70px */
  z-index: 3;
  background: rgba(30, 58, 138, .28) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #e2e8f0 !important;
  border: 0 !important;
  padding: 12px 14px !important;
  font-weight: 700 !important;
  letter-spacing: .2px;
}

/* Caja “card” por fila */
table.dataTable tbody tr {
  background: rgba(2, 6, 23, .70) !important;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(148, 163, 184, .08);
  border-radius: 16px;
  overflow: hidden;
  transition: .18s ease;
}

/* Hover neon */
table.dataTable tbody tr:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, .45),
    0 0 0 2px rgba(59, 130, 246, .20),
    0 0 24px rgba(59, 130, 246, .18);
}

/* Celdas */
table.dataTable tbody td {
  border: 0 !important;
  padding: 14px 14px !important;
  color: #e2e8f0 !important;
  vertical-align: middle !important;
}

/* Bordes redondeados en extremos (para que parezca card completa) */
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;
}

/* Imágenes mini dentro de tabla (inventario) */
table.dataTable tbody td img {
  max-height: 54px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}

/* Badge/stock más pro */
table.dataTable .badge,
table.dataTable .boton.badge {
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-weight: 800 !important;
  letter-spacing: .2px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35);
}

/* Botones de acciones (si usas btn-group) */
table.dataTable .btn,
table.dataTable button,
table.dataTable a.btn {
  border-radius: 12px !important;
}

/* Paginación ULTRA */
.dataTables_paginate {
  padding-top: .75rem !important;
}

.dataTables_paginate .paginate_button {
  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(2, 6, 23, .65) !important;
  color: #e2e8f0 !important;
  margin: 0 4px !important;
  padding: 6px 12px !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .10);
  transition: .18s;
}

.dataTables_paginate .paginate_button:hover {
  background: rgba(59, 130, 246, .16) !important;
  box-shadow:
    inset 0 0 0 1px rgba(59, 130, 246, .35),
    0 0 18px rgba(59, 130, 246, .14);
}

.dataTables_paginate .paginate_button.current {
  background: rgba(59, 130, 246, .85) !important;
  color: white !important;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, .55),
    0 0 24px rgba(59, 130, 246, .20);
}

/* Responsive (cuando DataTables mete child rows) */
table.dataTable>tbody>tr.child {
  background: transparent !important;
  box-shadow: none !important;
}

table.dataTable>tbody>tr.child td {
  background: rgba(2, 6, 23, .60) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .08);
}

/* Scroll horizontal lindo (si aparece) */
.dataTables_scrollBody {
  border-radius: 16px;
}

.dataTables_scrollBody::-webkit-scrollbar {
  height: 10px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, .25);
  border-radius: 999px;
}


/* HEADER LOGIN FIX */
.form-header {
  height: auto !important;
  /* ❌ elimina altura fija */
  padding: 14px 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px !important;
}

.form-header h4,
.form-header h5 {
  margin: 0 !important;
  /* ❌ elimina margin-top negativo */
  line-height: 1.2;
}

.login-card {
  backdrop-filter: blur(12px);
  max-width: 460px;
  /* antes estaba más grande */
  background: rgba(12, 20, 40, .65);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, .08),
    0 20px 60px rgba(0, 0, 0, .45);
}

/* ===== Login button glow + loader ===== */
.x-login-btn {
  position: relative;
  min-width: 170px;
  letter-spacing: .5px;
  transition: transform .15s ease, box-shadow .25s ease, filter .25s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.x-login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 0 0 1px rgba(80, 200, 255, .25),
    0 0 18px rgba(80, 200, 255, .35),
    0 18px 45px rgba(0, 0, 0, .45);
}

/* Estado cargando */
.x-login-btn.is-loading {
  pointer-events: none;
  opacity: .95;
  box-shadow:
    0 0 0 1px rgba(80, 200, 255, .25),
    0 0 22px rgba(80, 200, 255, .35),
    0 18px 45px rgba(0, 0, 0, .45);
}

.x-login-btn .btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: xspin .8s linear infinite;
  vertical-align: -3px;
}

.x-login-btn.is-loading .btn-loader {
  display: inline-block;
}

.x-login-btn.is-loading .btn-text {
  opacity: .9;
}

@keyframes xspin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== Password eye toggle ===== */
.md-form.position-relative {
  position: relative;
}

.x-pass-toggle {
  position: absolute;
  right: 12px;
  top: 22px;
  font-size: 16px;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
  user-select: none;
  transition: color .2s ease, transform .15s ease;
}

.x-pass-toggle:hover {
  color: #7fe3ff;
  transform: scale(1.05);
}

/* Input un poquito más “pro” */
.x-login-input {
  padding-right: 42px !important;
  /* espacio para el ojo */
}


/* CONTENEDOR LOGIN */
.x-login-wrapper {
  max-width: 50px;
  margin: 0 auto;
}

.x-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
}


.mb-6 {
  margin-bottom: 4rem !important;
}

.mb-7 {
  margin-bottom: 5rem !important;
}

.mb-8 {
  margin-bottom: 6rem !important;
}

.mb-9 {
  margin-bottom: 7rem !important;
}

.mb-10 {
  margin-bottom: 8rem !important;
}

/*.x-panel-body{
  min-height: calc(100vh - 1055px) !important;
}*/

/*.x-panel-body{
    padding-bottom: clamp(60px, 8vh, 120px);
}

.x-panel-body{
    padding-bottom: clamp(60px, 8vh, 120px);
}*/

/*.x-panel-body{
margin-bottom:5rem !important;

}*/

.x-dashboard-bg {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/*.x-panel-body{
  max-width: 1800px;
  margin-left: auto;
  margin-right: auto;
}

.x-panel-body{
  margin-top:auto;
  margin-bottom:auto;
  max-width:1800px;
  margin-left:auto;
  margin-right:auto;
}*/

.x-panel-body {



  padding-bottom: 30.5px !important;
}

.x-panel-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.table-wrapper {
  flex: 1;
  overflow: auto;
}

/* =========================
   GLASS MODAL STYLE
   ========================= */

.x-glass-modal {

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 18px;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

}


/* HEADER */

.x-glass-header {

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(255, 255, 255, 0.04);

}


/* BODY */

.x-glass-body {

  background: transparent;

  padding: 25px;

}


/* FOOTER */

.x-glass-footer {

  border-top: 1px solid rgba(255, 255, 255, 0.12);

  background: rgba(255, 255, 255, 0.04);

}


/* CLOSE BUTTON */

.x-glass-close {

  color: white;
  opacity: .8;
  text-shadow: none;

}

.x-glass-close:hover {

  opacity: 1;

}


/* =========================
   TICKET PREVIEW GLASS
   ========================= */

.ticket-preview-wrapper {

  background: rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border-radius: 16px;

  padding: 15px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

}

.x-sucursal-chip {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 14px !important;
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #eef4ff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: all .2s ease;
}

.x-sucursal-chip:hover {
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .14);
}

.x-sucursal-chip i {
  font-size: 13px;
  color: #8abaff;
}

.x-user-nav {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 6px 10px !important;
  color: #eef4ff !important;
}

.x-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.x-user-nav .hidden-xs {
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.navbar .dropdown-menu {
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  overflow: hidden;
}

/* =====================================
   MODULO PERMISOS
===================================== */

/**/

/* =====================================
   MODULO PERMISOS - TABLA PREMIUM
===================================== */
.x-permisos-card {
  background: linear-gradient(180deg, rgba(7, 18, 43, .96) 0%, rgba(5, 14, 34, .98) 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .03);
  overflow: hidden;
}

.x-permisos-card .card-header {
  background: linear-gradient(135deg, rgba(91, 145, 255, .14), rgba(255, 255, 255, .03)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 16px 20px;
}

.x-permisos-card .card-header h5 {
  color: #f4f8ff !important;
  font-weight: 700;
  margin: 0;
}

.x-permisos-card .card-body {
  padding: 18px 18px 22px;
}

/* =====================================
   TABLA
===================================== */
#tablaPermisos {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #eef4ff;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .02);
}

#tablaPermisos thead th {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .025));
  color: #dfeaff !important;
  font-weight: 700;
  font-size: .93rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 12px 10px;

}

#tablaPermisos thead th:first-child {
  text-align: left;
  border-top-left-radius: 18px;
}

#tablaPermisos thead th:last-child {
  border-top-right-radius: 18px;
  border-right: 0;
}

#tablaPermisos tbody td {
  border-right: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 8px 6px;
  color: #eaf2ff;
  vertical-align: middle;
}

#tablaPermisos tbody tr:last-child td {
  border-bottom: 0;
}

#tablaPermisos tbody td:last-child {
  border-right: 0;
}

#tablaPermisos tbody tr:hover {
  background: rgba(255, 255, 255, .025);
  transition: background .2s ease;
}

#tablaPermisos tbody tr:last-child td:first-child {
  border-bottom-left-radius: 18px;
}

#tablaPermisos tbody tr:last-child td:last-child {
  border-bottom-right-radius: 18px;
}

#tablaPermisos .modulo-col {
  min-width: 80px;
  font-weight: 700;
  color: #f7fbff !important;
}

#tablaPermisos .modulo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

#tablaPermisos .modulo-badge i {
  color: #7db2ff;
  font-size: .9rem;
}

/* =====================================
   SWITCH MINI
===================================== */
.perm-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  margin: 0;
  user-select: none;
}

.perm-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.perm-switch-track {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, .18),
    0 3px 8px rgba(0, 0, 0, .12);
  transition: all .22s ease;
  position: relative;
}

.perm-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  transition: all .22s ease;
}

.perm-switch input:checked+.perm-switch-track {
  background: linear-gradient(135deg, #4c8dff, #2563eb);
  border-color: rgba(97, 154, 255, .9);
  box-shadow:
    0 6px 16px rgba(37, 99, 235, .28),
    inset 0 1px 0 rgba(255, 255, 255, .12);
}

.perm-switch input:checked+.perm-switch-track::after {
  transform: translateX(20px);
}

.perm-switch:hover .perm-switch-track {
  border-color: rgba(131, 182, 255, .5);
}

/* =====================================
   HEADER ACTION ICON
===================================== */
.perm-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.perm-head-title {
  font-size: .86rem;
  font-weight: 700;
  color: #dce8ff;
}

.perm-head i {
  color: #87b7ff;
  font-size: .95rem;
}

/* =====================================
   PERFIL SELECT
===================================== */
.x-perfil-select {
  max-width: 360px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04) !important;
  color: #eef4ff !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
}

/* =====================================
   BOTONES
===================================== */
.x-permisos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modulo-col {
  min-width: 100px;
}

.modulo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  color: #eef4ff;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}

.modulo-badge i {
  color: #7db2ff;
  font-size: .92rem;
}

.perfil-select-wrapper {
  position: relative;
  max-width: 260px;
}

.perfil-select-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #7dafff;
  font-size: 13px;
}

.perfil-select-wrapper select {
  padding-left: 34px;
}

#tablaPermisos th {
  width: 110px;
}

#tablaPermisos tbody tr:hover {
  background: rgba(76, 141, 255, .05);
}

/* COLUMNA MODULO STICKY */

#tablaPermisos th:first-child,
#tablaPermisos td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;

  background: linear-gradient(90deg,
      rgba(5, 14, 34, 1) 0%,
      rgba(5, 14, 34, .98) 70%,
      rgba(5, 14, 34, .85) 100%);
}

#tablaPermisos td:first-child {
  box-shadow: 6px 0 14px rgba(0, 0, 0, .25);
}

#tablaPermisos thead th {
  position: sticky;
  top: 0;
  z-index: 4;
}

.tabla-permisos-wrap {
  max-height: 72vh;
  overflow: auto;
  border-radius: 18px;
  position: relative;
}

#tablaPermisos thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  background: linear-gradient(180deg, rgba(18, 32, 70, .98), rgba(10, 22, 50, .98));
}

#tablaPermisos th:first-child,
#tablaPermisos td:first-child {
  position: sticky;
  left: 0;
  z-index: 5;
  background: linear-gradient(90deg,
      rgba(5, 14, 34, 1) 0%,
      rgba(5, 14, 34, .98) 70%,
      rgba(5, 14, 34, .90) 100%);
}

#tablaPermisos thead th:first-child {
  z-index: 8;
}

#tablaPermisos td:first-child,
#tablaPermisos th:first-child {
  box-shadow: 6px 0 14px rgba(0, 0, 0, .22);
}

.perfil-select {

  background: #0f1f3d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  padding: 8px 14px;
  border-radius: 8px;
  width: 200px;
  font-size: 13px;

  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3) inset;

  transition: all .2s;

}

.perfil-select:focus {

  outline: none;
  border-color: #2f7df6;

  box-shadow: 0 0 8px rgba(47, 125, 246, .4);

}

.modulo-col {

  width: 80px;
  min-width: 80px;
  max-width: 80px;

}

.permisos-table tbody tr:hover {

  background: rgba(47, 125, 246, 0.08);
  transition: .2s;

}

.x-permisos-notion-wrap {
  background: linear-gradient(180deg, rgba(7, 18, 43, .96) 0%, rgba(5, 14, 34, .98) 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .03);
  padding: 20px;
}

.x-permisos-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.x-permisos-title h4 {
  margin: 0;
  color: #f4f8ff;
  font-weight: 700;
}

.x-permisos-title p {
  margin: 4px 0 0;
  color: rgba(220, 232, 255, .6);
  font-size: .92rem;
}

.x-perfil-form label {
  display: block;
  margin-bottom: 8px;
  color: #dce8ff;
  font-weight: 600;
}

.x-perfil-select {
  min-width: 220px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04) !important;
  color: #eef4ff !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  padding: 10px 14px;
}

.x-permisos-toolbar {
  margin-bottom: 18px;
}

.x-toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.x-toolbar-group>span {
  color: #dce8ff;
  font-size: .92rem;
  font-weight: 700;
  margin-right: 6px;
}

.perm-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  cursor: pointer;
  color: #eef4ff;
  font-size: .86rem;
  font-weight: 600;
}

.perm-chip input {
  accent-color: #4c8dff;
}

.x-permisos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.x-modulo-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 10px 26px rgba(0, 0, 0, .16);
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.x-modulo-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 16px 30px rgba(0, 0, 0, .20);
}

.x-modulo-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.x-modulo-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76, 141, 255, .12);
  border: 1px solid rgba(76, 141, 255, .2);
  color: #7db2ff;
}

.x-modulo-meta {
  flex: 1;
}

.x-modulo-meta h5 {
  margin: 0;
  color: #f4f8ff;
  font-size: 1rem;
  font-weight: 700;
}

.x-modulo-meta small {
  color: rgba(220, 232, 255, .5);
  font-size: .8rem;
}

.x-row-master {
  margin-left: auto;
}

.x-modulo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 12px;
}

.x-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
}

.x-action-item span {
  color: #eef4ff;
  font-size: .9rem;
  font-weight: 600;
}

/* switch mini */
.perm-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.perm-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.perm-switch-track {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18), 0 3px 8px rgba(0, 0, 0, .12);
  transition: all .22s ease;
  position: relative;
}

.perm-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
  transition: all .22s ease;
}

.perm-switch input:checked+.perm-switch-track {
  background: linear-gradient(135deg, #4c8dff, #2563eb);
  border-color: rgba(97, 154, 255, .9);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.perm-switch input:checked+.perm-switch-track::after {
  transform: translateX(20px);
}

.x-permisos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .x-modulo-actions {
    grid-template-columns: 1fr;
  }

  .x-perfil-select {
    min-width: 100%;
  }
}

/* INPUT DATE DARK THEME */

input[type="date"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  height: 38px;
  transition: all .2s ease;
}

/* hover */

input[type="date"]:hover {
  border-color: #3b82f6;
}

/* focus */

input[type="date"]:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, .25);
}

/* placeholder */

input[type="date"]::-webkit-input-placeholder {
  color: #9ca3af;
}

/* icono calendario */

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: .8;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* para firefox */

input[type="date"]::-moz-focus-inner {
  border: 0;
}

.x-saas-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f39c12;
  color: #000;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

.x-saas-alert i {
  font-size: 13px;
}

.x-btn-renovar {
  background: #1c1c1c;
  color: #fff;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  text-decoration: none;
}

.x-btn-renovar:hover {
  background: #000;
}

.x-saas-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.x-saas-status i {
  font-size: 12px;
}

.x-saas-ok {
  background: rgba(40, 167, 69, 0.18);
  color: #7CFFB2;
  border: 1px solid rgba(40, 167, 69, 0.35);
}

.x-saas-warning {
  background: rgba(255, 193, 7, 0.18);
  color: #FFD86B;
  border: 1px solid rgba(255, 193, 7, 0.35);
}

.x-saas-danger {
  background: rgba(220, 53, 69, 0.18);
  color: #FF9AA5;
  border: 1px solid rgba(220, 53, 69, 0.35);
}

.x-saas-btn-renew {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 700;
  transition: all .2s ease;
}

.x-saas-btn-renew:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

body.x-route-marketplace .x-dashboard-bg {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}