:root {
  --white-color: #fff;
  /* --top-bar: #ecf2f5; */
  --input-color: #6d92b4;
  --color-green: #b9e1ba;
  --color-blue: #6d92b4;
  --input-color-text: #11518d;
  --color-importante: #db801e;
  --loader-color: #007bff; /* Color por defecto para el loader */
  --rojo: #f30909;
  --color-red: rgb(223, 223, 223);
  --naranjabajo: #f3977221;
  --color-black: #000;
  --color-button: #fdffff;
}
/* Cambiar el color de selección a transparente (sin sombreado) */
/* ::selection {
  background: transparent;
}
} */
/* Aplicar en tablas, párrafos y encabezados */
/* table::selection,
td::selection,
th::selection,
p::selection,
a::selection,
h1::selection,
h2::selection,
h3::selection,
h4::selection,
h5::selection,
h6::selection,
strong::selection,
img::selection,
.dataTables_info::selection {
  background: transparent;
  color: inherit;
} */

/* ******************************************************************************************************************* */
/* Aplica la animación al ícono cuando se hace hover en enlaces y botones, incluyendo los de las tablas */
.nav-link:hover .flip-on-hover,
.dropdown-item:hover .flip-on-hover
/* a:hover i.flip-on-hover,
button:hover i.flip-on-hover,
a:hover svg.flip-on-hover,
button:hover svg.flip-on-hover,
table a:hover i.flip-on-hover,
table button:hover i.flip-on-hover,
table a:hover svg.flip-on-hover,
table button:hover svg.flip-on-hover */ {
  animation: infinite-rotate 2s linear infinite !important;
}

.hoverspan {
  transition: transform 0.3s ease, text-shadow 0.3s ease, color 0.3s ease;
  color: rgb(214, 214, 214);
}

.hoverspan:hover {
  transform: translateY(-0px) scale(1.02);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  color: rgb(255, 255, 255) !important;
}

.hoverspaniconos:hover {
  transform: translateY(-0px) scale(1.02);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  color: var(--input-color-text) !important;
}

/* Regla específica para el span dentro del enlace */
.hoverspan:hover span {
  color: rgb(255, 255, 255) !important;
}

.dropdown-menu.iconosheader {
  background-color: #f0f0f0f7;
}

/* Keyframes para la rotación infinita */
@keyframes infinite-rotate {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Asegura que el ícono sea compatible con la animación */
.flip-on-hover {
  display: inline-block !important;
  transform-origin: center;
}

.tab-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 600px;
  /* Puedes ajustar este mínimo según necesites */
  position: relative;
}

.tab-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Todas las pestañas se apilan, pero solo la activa se mostrará */
  display: none;
}

.tab-pane.active.show {
  display: block;
  position: relative;
}

.nav-tabs .nav-link {
  color: grey;
}

.nav-tabs .nav-link.active {
  color: var(--input-color-text);
}

.submenu {
  margin-left: 5px;
}

.submenu-item {
  padding-left: 12px;
}

#tblpanelcfg td {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 30ch;
}

/* ******************************************************************************************************************* */

.warning-icon {
  position: absolute; /* Posición absoluta dentro del contenedor relativo */
  top: 50%; /* Centrado verticalmente respecto al input */
  right: 10px; /* Separado 10px del borde derecho */
  transform: translateY(-50%); /* Ajuste para centrar exactamente */
  color: #ffb60a; /* Color del ícono */
  font-size: 18px; /* Tamaño del ícono */
  z-index: 2; /* Asegurar que el ícono esté encima del input */
  cursor: pointer; /* Cambiar el cursor al pasar sobre el ícono */
}
.warning-icon.vencido-rojo {
  color: red; /* Color para bitvencido = '2' */
}

#modalButtonsContainer .d-flex {
  margin-bottom: 2px; /* Añadir margen de 2px para separar los renglones */
}

.rojo {
  color: var(--rojo);
}

.form-control:disabled,
.form-control[readonly] {
  background-color: #ffffff;
  opacity: 1;
}

[class*="sidebar-dark-"] {
  background-color: #666666;
}

.dropdown-menu {
  background-color: #666666;
}

.dropdown-item:hover {
  background-color: #575757;
  box-shadow: 0 0 10px #575759;
  /* Cambia los valores según el sombreado que desees */
}

tr:hover {
  cursor: pointer;
}

.text {
  font-family: helvetica;
  font-weight: bold;
  color: #ff0000;
  text-transform: uppercase;
}

.blink {
  animation: blink-animation 1s steps(5, start) infinite;
  -webkit-animation: blink-animation 1s steps(5, start) infinite;
  background-color: rgb(241 166 166 / 29%);
}

@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}
@-webkit-keyframes blink-animation {
  to {
    visibility: hidden;
  }
}

.parpadea {
  animation-name: parpadeo;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  -webkit-animation-name: parpadeo;
  -webkit-animation-duration: 2s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
}

@-moz-keyframes parpadeo {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@-webkit-keyframes parpadeo {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes parpadeo {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.outer1 {
  overflow-y: 30%;

  font-size: 11px;
}

.outer1 {
  width: 100%;
  height: 420px;
  -layout: fixed;
}

.outer1 th {
  text-align: left;
  top: 0;
  position: sticky;
  font-size: 11px;
  background-color: #e1eefb;
}

table th {
  text-align: left;
  top: 0;
  position: sticky;
  font-size: 11px;
  background-color: #e1eefb;
}

.trcte {
  font-size: 11px;
}

tr.trcte:hover {
  cursor: pointer;
  color: #000;
  background-color: #def6f9;
}

.trart {
  font-size: 11px;
}

tr.trart:hover {
  cursor: pointer;
  color: #000;
  background-color: #def6f9;
}

tr.scroll:hover {
  cursor: pointer;
}

.trarticulo1 {
  font-size: 11px;
}

tr.trarticulo1.hovered:hover {
  cursor: pointer;
  color: #000;
  background-color: #def6f9;
}

.trfacturas {
  font-size: 17px;
}

tr.trfacturas:hover {
  cursor: pointer;
  color: #000;
  background-color: #def6f9;
}

.encabezado {
  background-color: #e1eefb;
  position: sticky;
  top: -4;
  z-index: 1;
}

.outer2 {
  overflow-y: auto;
  font-size: 10px;
}

.outer2 {
  width: auto;
  height: 80%;
  -layout: fixed;
}

.outer2 th {
  text-align: left;
  top: -1%;
  position: sticky;
  background-color: #e1eefb;
  font-size: 12px;
}

.scroll {
  font-size: 11px;
}

/* ------------------------------------------------------------------ */
.body1 {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.outer {
  overflow-y: auto; /* Habilita el scroll vertical */
  font-size: 11px;
  flex: 1;
  padding: 0px;
  box-sizing: border-box; /* Incluye el padding en el cálculo del tamaño */
  max-height: calc(50vh - 20px); /* Ajusta la altura máxima del contenedor */
  position: relative; /* Establece un contexto para el sticky */
}

.outer table {
  width: 100%; /* La tabla ocupa todo el ancho del contenedor */
  border-collapse: collapse; /* Elimina los espacios entre las celdas */
}

.outer th {
  text-align: left;
  top: 0; /* Fija el encabezado en la parte superior del contenedor */
  position: sticky; /* Mantiene el encabezado visible mientras se hace scroll */
  background-color: #e1eefb; /* Fondo sólido para el encabezado */
  font-size: 12px;
  height: auto;
  z-index: 2; /* Asegura que el encabezado esté por encima del contenido */
  border-bottom: 1px solid #ccc; /* Línea para separar el encabezado de las filas */
}

.card1 {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  /* Evita que haya scroll en los card */
}

.card-header1 {
  /* height: 8vh; */
  width: 100%;
  /* display: flex; */
  justify-content: center;
  align-items: center;
}

.card-body1 {
  flex: 1;
  width: 100%;
  overflow-y: auto;
  /* Añade un scroll vertical solo en el .card-body1 si es necesario */
}

/* .card-footer1 {
  position: fixed;
  bottom: -15;
  width: 100%;
  background-color: #ffffff;
  padding: 10px;
  text-align: center;
} */

.card-footer1 {
  position: fixed;
  bottom: 0; /* Asegura que esté en la parte inferior */
  width: 100%;
  background-color: #ffffff;
  padding: 10px;
  text-align: center;
  z-index: 1000; /* Asegura que esté por encima de otros elementos */
  /* box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); Opcional: agrega una sombra para destacarlo */
}

@media (max-width: 575px) {
  .card-footer1 {
    position: static; /* Cambia la posición a estática, eliminando el comportamiento fijo */
    width: 100%; /* Asegura que ocupe todo el ancho */
    padding: 5px; /* Ajusta el padding si es necesario */
  }
}
/* --------------------------------------------------------------------------------------- */

.swal2-input {
  height: 30px;
  width: 90px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
}

.mi-clase-de-alerta {
  width: 260px;
  height: 170px;
}

.mi-clase-de-titulo {
  font-size: 18px;
}

.mi-clase-de-contenido {
  font-size: 18px;
}

#drag-and-drop {
  width: 100%;
  height: 25px;
  border: 1px dashed var(--input-color);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
}

#drag-and-drop.highlight {
  background-color: #fff5d1;
}

#drag-and-drop1,
#drag-and-drop2 {
  width: 100%;
  height: 60px;
  border: 1px dashed var(--input-color);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 11px;
}

#drag-and-drop1.highlight,
#drag-and-drop2.highlight {
  background-color: #fff5d1;
}

.table-hover tbody tr:hover {
  background-color: #def6f9;
}

#xmlContent {
  font-family: Arial, sans-serif;
  white-space: pre-wrap;
  overflow-x: auto;
  padding: 10px;
  border: 1px solid #ccc;
  max-width: 100%;
}

.button-container {
  white-space: nowrap;
  display: flex;
  justify-content: flex-end;
}

.button-container button {
  display: inline-block;
  margin-right: 2px;
}

.button-container a {
  display: inline-block;
  margin-right: 2px;
}

p.totales {
  color: rgb(51, 126, 201);
}

.seleccionada {
  cursor: pointer;
  color: #000;
  background-color: #def6f9;
}

.trcp {
  font-size: 11px;
}

tr.trcp:hover {
  cursor: pointer;
  color: #000;
  background-color: #def6f9;
}

/* Estilos comunes para todos los dispositivos */
.modal-full {
  width: 100%;
}

.modal-dialog-full {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content-full {
  width: 100%;
  max-width: 100%;
}

.outer3 {
  max-height: 400px; /* Ajusta el tamaño máximo del contenedor */
  overflow-y: auto; /* Scroll solo vertical */
  position: relative; /* Asegura el contexto de posición */
  padding: 0; /* Elimina cualquier relleno extra */
  margin: 0; /* Elimina márgenes innecesarios */
}

.outer3 th {
  top: 0; /* Fija el encabezado justo en la parte superior */
  position: sticky; /* Mantén el encabezado visible */
  font-size: 11px;
  z-index: 10; /* Prioridad sobre el resto del contenido */
  border-bottom: 1px solid; /* Asegura una separación visual */
  background-color: #e1eefb;
}

.outer3 table {
  margin: 0;
  border-collapse: collapse; /* Elimina espacios entre bordes de celdas */
}

.outer3 td,
.outer3 th {
  padding: 5px; /* Ajusta si es necesario */
}

.outer3 tbody tr {
  margin: 0;
  padding: 0;
}

/* Dispositivos grandes (desktop) */
@media (min-width: 992px) {
  .modal-full {
    width: 95%;
  }

  .modal-dialog-full {
    max-width: 90%;
    height: 100vh;
  }

  .outer3 {
    height: 180px;
  }
}

/* Dispositivos medianos (tablet) */
@media (min-width: 768px) and (max-width: 991px) {
  .modal-full {
    width: 95%;
  }

  .modal-dialog-full {
    max-width: 95%;
    height: 100vh;
  }

  .outer3 {
    height: 180px;
  }
}

/* Dispositivos pequeños (móviles) */
@media (max-width: 767px) {
  .modal-full {
    width: 100%;
  }

  .modal-dialog-full {
    max-width: 95%;
    height: 100vh;
  }

  .outer3 {
    height: 190px;
  }
}

h1,
h2,
h3,
h4,
h5,
h5 {
  color: var(--input-color-text);
}

.texto-azul {
  /* font-size: 12px; */
  color: var(--input-color-text);
}

.borde-azul {
  color: var(--input-color);
  font-size: 12px;
  border-color: var(--input-color-text);
  border-style: solid;
}

.landing__input {
  height: auto;
  margin-bottom: 15px;
  position: relative;
  width: 100%;
}

.landing__input input,
.landing__input select {
  background: #fff;
  border: 1px solid var(--input-color);
  border-radius: 4px;
  /* Asegura que el border-radius se aplique */
  font-size: 16px;
  height: 0px;
  padding: 0 10px;
  position: relative;
  width: 100%;
  /* Ajuste para ocupar el 100% del ancho del contenedor */
}

.landing__input textarea {
  background: #fff;
  border: 1px solid var(--input-color);
  border-radius: 4px;
  /* Asegura que el border-radius se aplique */
  font-size: 16px;
  /* height: 60px;  */
  /* padding: 0 10px; */
  position: relative;
  width: 100%;
  /* Ajuste para ocupar el 100% del ancho del contenedor */
}

.landing__input input:focus-visible,
.landing__input select:focus-visible {
  outline: none;
}

.landing__label__input {
  margin: auto;
  width: 100%;
}

.landing__input__label {
  background: var(--white-color);
  color: var(--input-color-text);
  font-size: 12px;
  font-weight: 400;
  left: 5px;
  line-height: 11px;
  margin: 0;
  padding: 0 7px;
  position: absolute;
  top: -5px;
  z-index: 4;
}
.input-group input.form-control,
.input-group select.form-control {
  /* Mantener el border-radius en los inputs y selects dentro de .input-group */
  border-radius: 4px;
}

.landing__input input,
.landing__input select {
  /* Cambiar el border-radius para los inputs y selects fuera de .input-group */
  border-radius: 4px;
  border-top-right-radius: 4px;
  /* Añadir border-radius solo en la esquina superior derecha */
  border-bottom-right-radius: 4px;
  /* Añadir border-radius solo en la esquina inferior derecha */
}

/* Estilo para los input deshabilitados y readonly dentro de .landing__input */
.landing__input input:disabled,
.landing__input input:read-only,
.landing__input select:disabled,
.landing__input select:read-only,
.landing__input textarea:disabled,
.landing__input textarea:read-only,
input:disabled,
input:read-only {
  background-color: transparent;
  opacity: 1;
  color: inherit;
}

th,
.sinsalto {
  white-space: nowrap;
  /* los encabezados de tabla se muestre en una sola línea y no se rompa automáticamente. */
}

.suggestions {
  border: 1px solid var(--white-color);
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  background: rgb(255, 255, 255);
  width: 100%;
  z-index: 1000;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.suggestions div {
  padding: 8px;
  cursor: pointer;
  font-size: 10px;
}
.suggestions div:hover {
  background: #def6f9;
}

/* en tu archivo custom.css o dentro de un <style> global */
.main-sidebar {
  background-image: url("../dist/img/fondoazul1.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-color: rgba(165, 84, 84, 0.5);
}

/* Contenedor con flexbox en dirección row */
.switch-button {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  /* Centra verticalmente los elementos */
}

/* Estilo del texto al lado del switch */
.switch-button__text {
  margin-left: 5px;
  margin-bottom: 4px;
  /* Espacio entre el switch y el texto */
  font-size: 12px;
  /* Ajusta el tamaño de fuente según necesites */
  color: var(--input-color-text);
  /* Puedes definir otro color si gustas */
}

/* Oculta el checkbox original */
.switch-button .switch-button__checkbox {
  display: none;
}

/* Botón del switch */
.switch-button .switch-button__label {
  margin-top: 0px;
  background-color: var(--color-red);
  width: 40px;
  height: 22px;
  border-radius: 25px;
  display: inline-block;
  position: relative;
}

/* Círculo del switch */
.switch-button .switch-button__label:before {
  transition: 0.2s;
  display: block;
  position: absolute;
  width: 22px;
  height: 22px;
  background-color: var(--color-button);
  content: "";
  border-radius: 50%;
  box-shadow: inset 0px 0px 0px 1px var(--color-black);
}

/* Estado activo del switch */
.switch-button .switch-button__checkbox:checked + .switch-button__label {
  background-color: var(--color-green);
}

.switch-button .switch-button__checkbox:checked + .switch-button__label:before {
  transform: translateX(20px);
}

/* -------------------------------------------------------------------------------- */
/* Fondo a pantalla completa */
.loader-page {
  position: fixed;
  inset: 0;
  z-index: 25000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.81);
  backdrop-filter: blur(2px);
  opacity: 1;
  transition: opacity 0.3s ease;
}

.loader-text {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #f7a95c #f7a95c transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after,
.loader::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #ff0000 #ff0000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}
.loader::before {
  width: 32px;
  height: 32px;
  border-color: #ff4d00 #ff4d00 transparent transparent;
  animation: rotation 1.5s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* (Opcional) ocultar con fade-out */
.loader-page.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Contenedor de las tabs de pago */
#pagoTabsImgs {
  display: flex;
  flex-wrap: wrap;
  /* <-- permite que se acomoden según ancho */
  justify-content: center;
  gap: 0px;
}

/* Cada método de pago: cajita responsiva */
.metodo-tab {
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  min-height: 140px;
  /* altura estable para que no brinque el modal */
  flex: 0 0 20%;
  max-width: 20%;
}

/* Texto del importe y label */
.metodo-importe {
  margin: 0;
  font-size: clamp(11px, 1.7vw, 14px);
  font-weight: 600;
}

.metodo-label {
  font-size: clamp(10px, 1.5vw, 12px);
}

/* Ícono responsivo */
.metodo-icon {
  width: clamp(50px, 6vw, 56px);
  /* escala con el ancho de la pantalla */
  height: auto;
  margin: 0 auto 4px;
  display: block;
}

/* Tab activa */
.metodo-tab.active {
  border: 2px solid #007bff;
}

/* Breakpoints para mejor respuesta en móvil */
@media (max-width: 992px) {
  .metodo-tab {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

@media (max-width: 768px) {
  .metodo-tab {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }

  .sin-borde-movil {
    border-right: 0 !important;
  }
}

@media (max-width: 576px) {
  .metodo-tab {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .sin-borde-movil {
    border-right: 0 !important;
  }
}
