/*!
 * 
 * Estilos personalizados
 *
 */

/* Estilo Menu Principal */
#MenuPrincipal {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 63px;
  background: #069;
  text-align: left;
  line-height: 40px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  padding-top: 2px;
  /*padding: 0 50px;*/
  /*border-bottom:#999 solid 1px;*/
  z-index: 10;
}

/* Estilos para Tablas y Tablas Dinamicas */
.tables {
  font-family: Montserrat, Verdana, Geneva, Tahoma, sans-serif;
  font-size: 10px;
}

.tables.dataTable {
  font-family: Montserrat, Verdana, Geneva, Tahoma, sans-serif;
  font-size: 10px;
}

table#tabla_resultados tr.even:hover td {
  background-color: #ffffc0;
}

table#tabla_resultados tr.odd:hover td {
  background-color: #ffff90;
}

table#tabla_resultados_suma tr.even:hover td {
  background-color: #ffffc0;
}

table#tabla_resultados_suma tr.odd:hover td {
  background-color: #ffff90;
}

.table-xs {
  font-size: 0.75rem;
  /* Reduce el tamaño del texto */
}

.table-xs td,
.table-xs th {
  padding: 0.2rem;
  /* Menos espacio en celdas */
}

.input-xs {
  height: 25px;
  /* Ajusta la altura */
  font-size: 12px;
  /* Reduce el tamaño del texto */
  padding: 2px 5px;
  /* Ajusta el padding */
  line-height: normal;
}

.select-xs {
  height: 25px;
  /* Reduce la altura */
  font-size: 12px;
  /* Hace el texto más pequeño */
  padding: 2px 5px;
  /* Reduce el padding interno */
  line-height: normal;
}

.btn-xs {
  padding: 0.2rem;
  /* Reduce el padding */
  font-size: 0.8rem;
  /* Tamaño de fuente más pequeño */
  line-height: 1;
  /* Reduce la altura */
  border-radius: 0.2rem;
  /* Bordes ligeramente más redondeados */
}

.btn-mxs {
  padding: 0.3rem;
  /* Reduce el padding */
  font-size: 1.3rem;
  /* Tamaño de fuente más pequeño */
  line-height: 1;
  /* Reduce la altura */
  border-radius: 0.3rem;
  /* Bordes ligeramente más redondeados */
}

/* Estilos para botones y checkbox ocultos dentro de tablas dinamicas */

/* Estilos personalizados para los font awesome */

.fa-xs {
  font-size: 16px;
}

.fa-sm {
  font-size: 20px;
}

/* Estilos personalizados para los font awesome */

#CapaSuperior {
  position: relative;
  background-color: transparent;
}

#CapaInferior {
  position: absolute;
  background-color: transparent;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 20px;
}

/* Estilos para la creacion de botones que nos sirven para el tema de los semaforos */
.BolitaGris {
  width: 13px;
  height: 13px;
  background-color: gray;
  border-radius: 50%;
  /* display: inline-block; Para que se comporte bien dentro de textos */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  /* Tamaño de la letra */
  font-weight: bold;
  /* Negrita para mayor visibilidad */
  color: white;
  /* Color del texto */
}

.BolitaAzul {
  width: 13px;
  height: 13px;
  background-color: blue;
  border-radius: 50%;
  /* display: inline-block; Para que se comporte bien dentro de textos */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  /* Tamaño de la letra */
  font-weight: bold;
  /* Negrita para mayor visibilidad */
  color: white;
  /* Color del texto */
}

.BolitaNaranja {
  width: 13px;
  height: 13px;
  background-color: orange;
  border-radius: 50%;
  /* display: inline-block; Para que se comporte bien dentro de textos */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  /* Tamaño de la letra */
  font-weight: bold;
  /* Negrita para mayor visibilidad */
  color: black;
  /* Color del texto */
}

.BolitaVerde {
  width: 13px;
  height: 13px;
  background-color: green;
  border-radius: 50%;
  /* display: inline-block; Para que se comporte bien dentro de textos */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  /* Tamaño de la letra */
  font-weight: bold;
  /* Negrita para mayor visibilidad */
  color: white;
  /* Color del texto */
}

.BolitaRoja {
  width: 13px;
  height: 13px;
  background-color: red;
  border-radius: 50%;
  /* display: inline-block; Para que se comporte bien dentro de textos */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  /* Tamaño de la letra */
  font-weight: bold;
  /* Negrita para mayor visibilidad */
  color: white;
  /* Color del texto */
}

/* Estilos para la creacion de botones que nos sirven para el tema de los semaforos */

/* Customizacion de colores para los botones de la datatable */
/*
DefaultPlane	#f3f4f5
DefaultHover	#ebebec
PrimaryPlane	#007bff
PrimaryHover	#0069d9
SecondaryPlane	#6c757d
SecondaryHover	#5a6268
SuccessPlane	#28a745
SuccessHover	#218838
InfoPlane		#17a2b8
InfoHover		#117a8b
WarningPlane	#ffc107
WarningHover	#d39e00
DangerPlane		#dc3545
DangerHover		#c82333
DarkPlane		#343a40
DarkHover		#23272b
LightPlane		#f8f9fa
LightHover		#e2e6ea
*/

.dataTables_wrapper button.dt-button.buttons-print.BtnPrint {
  background-color: #6c757d;
  color: #fff;
  /* border: none; */
}

.dataTables_wrapper button.dt-button.buttons-print.BtnPrint:hover {
  background-color: #5a6268;
}

.dataTables_wrapper button.dt-button.BtnDefault {
  border-radius: 5px;
  color: black;
  background-color: #f3f4f5;
}

.dataTables_wrapper button.dt-button.BtnDefault:hover {
  border: 1px solid #666;
  background-color: #ebebec;
}

.dataTables_wrapper button.dt-button.BtnInfo {
  border-radius: 5px;
  color: white;
  background-color: #17A2B8;
}

.dataTables_wrapper button.dt-button.BtnInfo:hover {
  border: 1px solid #666;
  background-color: #117a8b;
}

.dataTables_wrapper button.dt-button.BtnSuccess {
  border-radius: 5px;
  color: white;
  background-color: #28A745;
}

.dataTables_wrapper button.dt-button.BtnSuccess:hover {
  border: 1px solid #666;
  background-color: #218838;
}

.dataTables_wrapper button.dt-button.BtnSecondary {
  border-radius: 5px;
  color: white;
  background-color: #6c757d;
}

.dataTables_wrapper button.dt-button.BtnSecondary:hover {
  border: 1px solid #666;
  background-color: #5a6268;
}

.dataTables_wrapper button.dt-button.BtnWarning {
  border-radius: 5px;
  color: white;
  background-color: #ffc107;
}

.dataTables_wrapper button.dt-button.BtnWarning:hover {
  border: 1px solid #666;
  background-color: #d39e00;
}

.dataTables_wrapper button.dt-button.BtnDanger {
  border-radius: 5px;
  color: white;
  background-color: #DC3545;
}

.dataTables_wrapper button.dt-button.BtnDanger:hover {
  border: 1px solid #666;
  background-color: #C82333;
}

/* Estilo personalizado para que cambie de color la celda por la que pasas el mouse */
.TableHover td:hover {
  background-color: rgba(0, 0, 0, .075);
}

/* Estilos para pie de pagina */
#pie {
  position: fixed;
  bottom: 0px;
  left: 0px;
  width: 100%;
  height: 20px;
  background: #151515;
  color: #FFF;
  /*border-top:#000 solid 1px;*/
  z-index: 10;
}

#pie_01_01 {
  position: fixed;
  right: 0px;
  left: 0px;
  bottom: 0px;
  display: table;
  width: 100%;
  height: 20px;
  overflow: hidden;
  background-color: #2E2E2E;
  border: 0px solid #FF0000;
  z-index: 1000;
}

#pie_01_02 {
  display: table-cell;
  vertical-align: middle;
  padding-right: 15px;
  font-family: "Century Gothic";
  font-size: 12px;
  text-align: center;
  color: #FFFFFF;
  z-index: 1000;
}

/* Estilos personalizados para modales */
.modal-xl70 {
  max-width: 70% !important;
}

.modal-xl80 {
  max-width: 80% !important;
}

.modal-xl90 {
  max-width: 90% !important;
}

.modal-xl {
  max-width: 90% !important;
}

/* Estilos para input text tipo numero */
/* Quita las flechas arriba y abajo en los input, cuando son tipo numero */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

/* Font Awesome cuando queremos voltear un icono de derecha a izquierda */
.flipped {
  transform: scaleX(-1);
}

/* Estilos para shadow */
.shadow {
  box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
}
.shadow-sm{
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

/* Estilos para Checkbox */
.checkbox-wrapper-30 .checkbox {
  --bg: #fff;
  --brdr: #d1d6ee;
  --brdr-actv: #1e2235;
  --brdr-hovr: #bbc1e1;
  --dur: calc((var(--size, 2)/2) * 0.6s);
  display: inline-block;
  width: calc(var(--size, 1) * 22px);
  position: relative;

  --size: 1;
  /* controla escala */
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  /* evita que se deforme */
}

.checkbox-wrapper-30.d-flex {
  align-items: center;
  gap: 6px;
  /* espacio entre checkbox y texto */
}


.checkbox-wrapper-30 label {
  font-size: 12px;
  line-height: 1.2;
  /* controla interlineado */
  display: inline-block;
}


.checkbox-wrapper-30 .checkbox:after {
  content: "";
  width: 100%;
  padding-top: 100%;
  display: block;
}

.checkbox-wrapper-30 .checkbox>* {
  position: absolute;
}

.checkbox-wrapper-30 .checkbox input {
  -webkit-appearance: none;
  -moz-appearance: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  background-color: var(--bg);
  border-radius: calc(var(--size, 1) * 4px);
  border: calc(var(--newBrdr, var(--size, 1)) * 1px) solid;
  color: var(--newBrdrClr, var(--brdr));
  outline: none;
  margin: 0;
  padding: 0;
  transition: all calc(var(--dur) / 3) linear;
}

.checkbox-wrapper-30 .checkbox input:hover,
.checkbox-wrapper-30 .checkbox input:checked {
  --newBrdr: calc(var(--size, 1) * 2);
}

.checkbox-wrapper-30 .checkbox input:hover {
  --newBrdrClr: var(--brdr-hovr);
}

.checkbox-wrapper-30 .checkbox input:checked {
  --newBrdrClr: var(--brdr-actv);
  transition-delay: calc(var(--dur) /1.3);
}

.checkbox-wrapper-30 .checkbox input:checked+svg {
  --dashArray: 16 93;
  --dashOffset: 109;
}

.checkbox-wrapper-30 .checkbox svg {
  fill: none;
  left: 0;
  pointer-events: none;
  stroke: var(--stroke, var(--border-active));
  stroke-dasharray: var(--dashArray, 93);
  stroke-dashoffset: var(--dashOffset, 94);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2px;
  top: 0;
  transition: stroke-dasharray var(--dur), stroke-dashoffset var(--dur);
}

.checkbox-wrapper-30 .checkbox svg,
.checkbox-wrapper-30 .checkbox input {
  display: block;
  height: 100%;
  width: 100%;
}

/* Estilos para Etiquetas Flotantes */
:root {
  --input-padding-x: .75rem;
  --input-padding-y: .75rem;
}


.form {
  width: 100%;
  padding: 15px;
  margin: 0 auto;
}

.form-label-group {
  /* position: relative; */
  margin-bottom: 1rem;
}

.form-label-group>input,
.form-label-group>textarea,
.form-label-group>label {
  padding: var(--input-padding-y) var(--input-padding-x);
}

.form-label-group>label {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  margin-bottom: 0;
  line-height: 1.5;
  color: #495057;
  border: 1px solid transparent;
  border-radius: .25rem;
  transition: all .1s ease-in-out;
}

.form-label-group input::-webkit-input-placeholder {
  color: transparent;
}

.form-label-group input:-ms-input-placeholder {
  color: transparent;
}

.form-label-group input::-ms-input-placeholder {
  color: transparent;
}

.form-label-group input::-moz-placeholder {
  color: transparent;
}

.form-label-group input::placeholder {
  color: transparent;
}

.form-label-group input:not(:placeholder-shown) {
  padding-top: calc(var(--input-padding-y) + var(--input-padding-y) * (2 / 3));
  padding-bottom: calc(var(--input-padding-y) / 3);
}

.form-label-group input:not(:placeholder-shown)~label {
  padding-top: calc(var(--input-padding-y) / 3);
  padding-bottom: calc(var(--input-padding-y) / 3);
  font-size: 12px;
  color: #777;
}

.form-label-group textarea:not(:placeholder-shown) {
  padding-top: calc(var(--input-padding-y) + var(--input-padding-y) * (2 / 3));
  padding-bottom: calc(var(--input-padding-y) / 3);
}

.form-label-group textarea:not(:placeholder-shown)~label {
  padding-top: calc(var(--input-padding-y) / 3);
  padding-bottom: calc(var(--input-padding-y) / 3);
  font-size: 12px;
  color: #777;
}

/* Estilos para elementos switch on off */
.toggle.btn {
  border-radius: 50px !important;
}

.toggle-group .btn {
  border-radius: 50px !important;
}

/* PRUEBA SPINNER  */
/* Loader principal */
.bounce-loader {
  display: flex;
  flex-direction: column; /* permite colocar el texto debajo */
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 200px;
  position: relative;
  text-align: center;
}

.bounce-spinner {
  width: 120px;
  height: 120px;
  position: relative;
  animation: bounce 1.6s infinite ease-in-out both;
}

.bounce-spinner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Texto debajo del loader */
#spinnerMsgDiv {
  margin-top: 18px; /* separación entre animación y texto */
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 6px 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  animation: fadeIn 0.4s ease-in-out;
}

/* Animación de rebote */
@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  40% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Efecto de entrada suave para el texto */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Variantes de tamaño */
.bounce-loader.small .bounce-spinner {
  width: 50px;
  height: 50px;
}

.bounce-loader.medium .bounce-spinner {
  width: 80px;
  height: 80px;
}

.bounce-loader.large .bounce-spinner {
  width: 120px;
  height: 120px;
}

/* Variantes de velocidad */
.bounce-loader.slow .bounce-spinner {
  animation-duration: 2s;
}

.bounce-loader.fast .bounce-spinner {
  animation-duration: 0.8s;
}

/* Overlay para pantalla completa */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(89, 89, 89, 0.9);
  backdrop-filter: blur(15px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}


/* Estilos para alertas tipo Toast */

/* =======================
   TOAST SUCCESS
   ======================= */
.toast-success {
    background-color: #28a745 !important; /* verde Bootstrap */
}

.toast-success-title {
    color: white !important;
    font-weight: bold;
}

.toast-success-icon {
    color: white !important;               /* color del icono */
    background-color: #218838 !important;  /* fondo del círculo del icono */
}

/* =======================
   TOAST ERROR
   ======================= */
.toast-error {
    background-color: #dc3545 !important; /* rojo Bootstrap */
}

.toast-error-title {
    color: white !important;
    font-weight: bold;
}

.toast-error-icon {
    color: white !important;
    background-color: #c82333 !important;
}

/* =======================
   TOAST WARNING
   ======================= */
.toast-warning {
    background-color: #ffc107 !important; /* amarillo Bootstrap */
}

.toast-warning-title {
    color: #212529 !important; /* texto oscuro */
    font-weight: bold;
}

.toast-warning-icon {
    color: #212529 !important;
    background-color: #e0a800 !important;
}

/* =======================
   TOAST INFO
   ======================= */
.toast-info {
    background-color: #17a2b8 !important; /* azul Bootstrap */
}

.toast-info-title {
    color: white !important;
    font-weight: bold;
}

.toast-info-icon {
    color: white !important;
    background-color: #138496 !important;
}

.text-outline {
  text-shadow: 
    -0.5px -0.5px 0 black,  
     0.5px -0.5px 0 black,
    -0.5px  0.5px 0 black,
     0.5px  0.5px 0 black;
}
