section[aria-hidden="true"],main[aria-hidden="true"] { 
    display: none !important;
    visibility: hidden; 
}
.u-hidden{
  display: none !important;
}
.cursor-notallowed{
  cursor: not-allowed !important;
}

.ml-100{
  margin-left:30px !important;
}
.is-busy {
  position: relative;
  color: transparent !important;
  cursor: progress;
  pointer-events: none;
  user-select: none;
}

.is-busy::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20px' height='20px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3E%3Ccircle xmlns='http://www.w3.org/2000/svg' cx='50' cy='50' fill='none' stroke='%23ffffff' stroke-width='10' r='35' stroke-dasharray='164.93361431346415 56.97787143782138' transform='rotate%28276 50 50%29'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain; /* Asegura que el tamaño sea adecuado */
  animation: btn-action-busy2 1s linear infinite;
}

@keyframes btn-action-busy2 {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}


/*
 * === VARIABLES ===
 */

.global-login {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 20px !important;
    text-align: center;
  }
  
  .global-login[aria-hidden="false"] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .global-login__inner {
    position: relative;
    text-align: center;
  }
  
  .global-login__content {
    position: relative;
    display: inline-block;
    flex-direction: column;
    width: 25rem;
    padding: 1.25rem;
    padding-top: 2rem;
    margin-top: 0rem;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 5%);
  }
  
  .global-login__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  
  .global-login__brand-link {
    position: relative;
    width: 340px;
    height: 75px;
  }
  
  .global-login__brand-image > img {
    width: 100%;
    height: 100%;
    vertical-align: middle;
  }
  
  .global-login__brand-badge {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 8px;
    font-weight: 800;
    line-height: 15px;
    letter-spacing: 1px;
    padding: 1px 5px 0;
    border-radius: 3px;
  }
  
  .global-login__description {
    display: block;
    text-align: center;
  }
  
  
  .global-login__form {
    display: flex;
    flex-direction: column;
  }
  
  .global-login__form-message {
    position: relative;
    color:rgb(190, 12, 12);
    top: 0;
    right: -1px;
    line-height: 21px;
    border-radius: 3px;
    border-bottom-right-radius: 0;
    visibility: hidden;
  }
  
  .global-login__form-control {
    position: relative;
    display: block;
    margin-bottom: 2px;
  }
  
  .global-login__form-control label {
    color: #7f858d;
    font-size: 15px;
    font-weight: 500;
    display: block;
    letter-spacing: 0.03rem;
    margin-bottom: 8px;
  }
  
  .global-login__form-control input {
    font-size: 1rem;
    border: 1px solid rgb(116, 116, 117) !important;box-shadow:0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    padding: 12px 10px;
    width: 100%;
  }
  
  .global-login__form-control input:focus {
    border: 1px solid rgb(12, 12, 88);
    box-shadow: 0 0 0 1px rgb(12, 12, 88);
    outline: none;
  }
  
  .global-login__form-control.is-errored input {
    border: 1px solid red !important;
    box-shadow: 0 0 0 1px red !important;
  }
  
  .global-login__form-control.is-errored .global-login__form-message {
    visibility: visible;
  }
  
  .global-login__form-control .control--checkbox,
  .global-login__form-control .control--checkbox + label {
    display: inline-block;
    vertical-align: middle;
    user-select: none;
  }
  
  .global-login__form-control .control--checkbox {
    margin-right: 5px;
  }
  
  .global-login__form-control .control--checkbox .control__indicator {
    background: #f7f7f7;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
  }
  
  
  .global-login .btn--login > .btn__icon {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 17px;
    vertical-align: middle;
    margin-top: -4px;

    transform: translateX(0px);
    transition: transform 0.2s cubic-bezier(0.1, 0.82, 0.25, 1);
  }
  
  .global-login .btn--login:hover > .btn__icon {
    transform: translateX(4px);
  }
  
  .global-login .btn--login > .btn__text {
    font-size:14px;
  }
  
  
  .global-login__footer {
    position: absolute;
    left: 0;
    width: 100%;
    font-size: 14px;
    padding: 5px;
    text-align: center;
  }
  
  .global-login__footer-link {
    color: rgb(12, 12, 88);
  }
  
  .global-login__footer-link:hover {
    text-decoration: underline;
  }
  
  .global-login__footer-link:not(:first-child)::before {
    content: "";
    position: relative;
    display: inline-block;
    width: 2px;
    height: 2px;
    line-height: 10px;
    margin: 0 5px;
    background: #fff;
    border-radius: 50%;
    vertical-align: middle;
  }
  .global-login__form-control.is-errored input {
    border: 1px solid red !important;
    box-shadow: 0 0 0 1px red !important;
}

.global-login__form-control.is-errored .global-login__form-message {
    visibility: visible;
}
.marcnowrap{
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow:hidden;
}
.marcnowrap2{
display: -webkit-box;
line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
max-height: 40px;
}


#iframedatatrade{
  transition: opacity 500ms linear;
}

#iframedatatradeoffcanvas{
  width:100%;
  height:200px;
  transition: opacity 500ms linear;
}
.error_reconectandoFLOTANTE{
    position:fixed;
    z-index:99999999999999;
    left:0 !important;
    top:0 !important;
    width:100% !important;
    height:100% !important;
    color: #fff !important;
    background-color: rgba(0,0,0,0.7);
    opacity:0.7;
    user-select:none;
}
#muestromsgflota_msgaki{
  width: 100% !important;
height: 100% !important;
display: flex !important;
text-align: center;
flex-direction: column;
justify-content: space-around;
}
#btncreateoperation:disabled {
  cursor: not-allowed !important;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}

/* Para Firefox */
input[type="number"] {
appearance: textfield;
}

.tbgred{
  color:#ea4343 !important;
  font-weight:bolder;
}
.tbggreen{
  color:#00bea0 !important;
  font-weight:bolder;
}
.activeoffcanvas label.form-label{
  color:#4285F4 !important;
}
.select-none{
  user-select: none;
}
.pr-2{
  padding-right:10px !important;
}
.u-hiddencalendar{
  display:inline;
}
#calendar:not(.calendarexpand){
max-height: 80px;
overflow:hidden;
}
#calendar.calendarexpand .calendareventt{
  padding-top:10px !important;
  padding-bottom:10px !important;
}
.u-hiddencalendaryes{
display:none;
}
.page-wrapper{
margin-left:0px !important;
}
.accordion-button{
padding:10px;
}
.accordion-button i{
margin-right:10px;
}
.minancho{
  min-width:300px;
}
.minaltura{
  min-height:max-content;
}
.link:Hover{
  text-decoration: underline;
}
.float-left{
  float:left;
}
.tooltip {
  font-size: 1rem;  /* Extra large text size */
  padding: 0px 0px 0px 0px; /* Extra padding for a bigger tooltip */
  max-width: none;    /* No max-width to allow tooltip to grow */
}
.accordion .accordion-button:focus,
.accordion .accordion-button:active {
outline: none !important;
box-shadow: none !important;
}
.toast-container{
margin-top:15px;
}
.accordion-collapse {
transition: none !important;
}
#main-wrapper .imgESLOGO{
max-width:50px !important;
position:absolute;
left:15px;
top:15px;
height: auto !important;
}
/* #main-wrapper.show-sidebar .imgESLOGO{
max-width:150px !important;
} */
.u-hiddenpage{
visibility: hidden;
max-height:1px;
overflow:hidden;
display:none;
}
.positionpapage{
position:absolute;
}
.no-hover-bg:hover {
background-color: inherit !important; /* No cambiar el fondo al hacer hover */
color: inherit !important; /* No cambiar el fondo al hacer hover */
}

:root[data-bs-theme="dark"] .ag-center-cols-viewport{
color: #f0f0f0;
}
:root[data-bs-theme="dark"] .ag-overlay-no-rows-center{
color: #f0f0f0;
}
/* :root[data-bs-theme="dark"] .page-wrapper,:root[data-bs-theme="dark"] .topbar{
background: #1a2335;
} */
:root[data-bs-theme="dark"] .ag-theme-custom {
  --ag-background-color: #1f2836;
  --ag-header-foreground-color: #FFF;
  --ag-border-color: #2b3748;
  --ag-odd-row-background-color: #232f3f;
  --ag-even-row-background-color: #1f2836;
  --ag-font-size: 14px;
}
:root[data-bs-theme="dark"] .ag-cell,
:root[data-bs-theme="dark"] .ag-icon,
:root[data-bs-theme="dark"] .ag-picker-field-display, 
:root[data-bs-theme="dark"] .ag-label, 
 :root[data-bs-theme="dark"] .ag-text-field, 
 :root[data-bs-theme="dark"] .ag-picker-field-wrapper, 
 :root[data-bs-theme="dark"] .ag-text-option, 
 :root[data-bs-theme="dark"] .ag-text-field-input, 
 :root[data-bs-theme="dark"] .ag-popup{
  color:#fff;
}

:root[data-bs-theme="dark"] .custom-header {
  background-color: #1f2836;
  color: #fff;
}


button:disabled {
cursor: not-allowed !important;
}
#toolbarresponsivebottom{
position:fixed; bottom:0px;left:0px;width:100%;display:none;
background: var(--bs-body-bg);
}
.uhiddenvisibleresponsive {
visibility: visible;
max-height: none;
overflow: none;
display: block !important; /* Visible solo cuando el atributo data-pageis tiene el valor "positions" */
}
  .u-hiddenendeskop{
    display: none;
  }
  
  .offcanvas .nav li .nav-link{
    padding:5px !important;
    margin:5px !important;
  }
  #iframedatatradeoffcanvas{
    margin-top:0px;
    height:300px;
  }
  @media (min-width: 768px) {
    .vh100{
      min-height:70vh;
    }
    .vh100graf{
      max-height:100vh;
      min-height:70vh;
    }
    .offcanvas.offcanvas-end.show{
      width:768px !important;
    }

  }

  @media (max-width: 1268px) {
    #tableyesresultspositions{
      padding-bottom:200px;
    }

  }
@media (max-width: 768px) {
#iframedatatrade{
display:none !important;
}
body{
margin-bottom:62px !important;
}

  .u-hiddenendeskop{
    display: block;
  }
  .u-hiddenmobile{
    display: none;
  }
  .uhiddenvisibleresponsive{
visibility: hidden;
max-height:1px;
overflow:hidden;
display:none;
}

#toolbarresponsivebottom{
position:fixed; bottom:0px;left:0px;width:100%;display:inline;
}
.searchtopnavv {
    display: none !important;
}

.container-fluid{
transition: none !important;
padding:0px !important;
}
.sinmarginresponsive{
margin:0px !important;
padding:0px !important;
}
.accordion-item{
border-radius: 0px !important;
}

.offcanvas.offcanvas-end.show{
  width:100% !important;
}

.row{
  margin-left:0px !important;
  margin-right:0px !important;
}
}




.global-login{
  opacity:0;
  animation: globalloginhidden 200ms linear 1;
  animation-fill-mode: forwards; /* Mantiene el último estado de la animación */
  
}
@keyframes globalloginhidden {
0% {
    opacity: 0;
    zoom:1;
}
100% {
    opacity: 1;
}
}
@keyframes btn-action-busy {
0% {
    opacity: 0;
}
70% {
    opacity: 0;
}
100% {
    opacity: 1;
}
}
@keyframes showcharts {
0% {
    opacity: 0;
}
70% {
    opacity: 0;
}
100% {
    opacity: 1;
}
}
.cursor-pointer{
  cursor:pointer !important;
}
.bg-hover-light-black .cursor-pointer{
  cursor:default;
}
.offcanvas{
  width: 768px !important; 
}
@media (max-width: 450px) {
.offcanvas{
  min-width: 100% !important; 
}
}

  @media (min-width: 769px) {
  
.accordion-collapse:not(#calendar){
  max-height:calc(100vh - 410px) !important;
  overflow-x:hidden !important;
}

.accordion-collapse{
  max-height: calc(100vh - 310px);
  overflow-x:hidden !important;
}
.hnsidebarm{
  height:calc(100vh - 75px);
}
}

@media (max-width: 768px) {
  

.hnsidebarm{
  height:calc(100vh - 75px) !important;
}

#calendar:not(.calendarexpand){
  max-height: 40px;
  overflow:hidden;
  }
.accordion-collapse{
  max-height:calc(100vh - 520px);
  overflow-x:hidden !important;
}
}

.bggreen,.bgred{
  min-height:65px !important;
  min-width: 100% !important;
}
#iframedatatrade{
  background:transparent !important;
  width:100%;
  height: 100%;
}

/* Estilos mejorados para la tabla de posiciones */

#active-positions{
  overflow:auto;
  max-width:100%;
}
.positions-table {
width: 100%;
border-radius: var(--bs-border-radius-lg);
overflow: hidden;
padding: 10px;
background: var(--bs-body-bg);
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.ticker-row{
  
}
.tickerstotsscroll{
  overflow:auto;
}

.scrollbar {
  /* Si quieres forzar un ancho/alto fijo y permitir el scroll, asegúrate de tener overflow */
  overflow-y: auto;
}

/* Estilos del scrollbar en navegadores basados en WebKit */
.scrollbar::-webkit-scrollbar {
  width: 9px;             /* Ancho del scrollbar */
  height: 9px;             /* Ancho del scrollbar */
}
.scrollbar::-webkit-scrollbar-track {
  background: transparent;    /* Fondo del track o "canal" del scrollbar */
}
.scrollbar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3); /* Color de la barra de desplazamiento */
  border-radius: 5px;        /* Redondeado para que se vea más elegante */
}
/* Encabezado con efecto elegante */
.ticker-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background: var(--bs-accordion-btn-bg);
color: var(--bs-accordion-color);
font-weight: bold;
cursor: pointer;
overflow:hidden;
transition: background 0.3s ease, transform 0.2s ease;
}

.ticker-header:hover {
background-color: var(--bs-light-bg-subtle) !important;
}

/* Icono de desplegar con animación */
.toggle-icon {
transition: transform 0.3s ease;
}

.ticker-header.active {
background-color: var(--bs-light-bg-subtle) !important;
}
.ticker-header.active .toggle-icon {
transform: rotate(90deg);
}

/* Contenedor con animación de apertura */
.positions-content {
display: table; 
background: var(--bs-accordion-bg);
color: var(--text-dark);
border-radius: var(--bs-border-radius-sm);
box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.1);
overflow-x: auto;
display: flex;
flex-direction: column; /* Alinea los elementos en columna */
align-items: center; /* Centra horizontalmente */
justify-content: flex-start; /* Alinea desde arriba */
width: 100%; /* Para ocupar todo el ancho disponible */
}

/* Diseño mejorado para las filas de datos */
.position-row {
  display: table-row;
align-items: center; /* Centra horizontalmente */
text-align: center;
padding: 8px;
font-size: 0.9rem;
font-weight: 500;
white-space: nowrap;
justify-content: space-between;
padding: 4px;
color: var(--text-dark);
background: var(--ag-background-color);
transition: background 0.3s ease, transform 0.2s ease;
}

.position-row:not(.sinhoverrow):hover {
background: var(--bs-light-bg-subtle);
}

.tomoney{
  flex: 1;
  text-align: right;
  margin-right: 20px;
}

/* Estilos para las celdas */
.position-cell {
  display: table-cell;
text-align: center;
padding: 8px;
font-size: 0.9rem;
font-weight: 500;
white-space: nowrap;
}

/* Estilos de texto para valores positivos y negativos */
.text-success {
color: var(--bs-success);
font-weight: bold;
}

.text-danger {
color: var(--bs-danger);
font-weight: bold;
}

/* Scroll responsivo con mejor visualización */
@media (max-width: 768px) {
.positions-content {
    overflow-x: auto;
    display: block;
    white-space: nowrap;
    padding: 10px;
}
}


/* .body-wrapper{
    padding-top:90px;
} */
.u-hiddeniframe{
  opacity:0.08;
  transition:none !important;
}
.u-hidden,.u-hiddencotizacion{
    display: none !important;
}

@media (max-width: 575.98px) {
.convertiraw100 {
width: 100% !important; /* Cambia el ancho a 100% */
}
}
.app-chat .chat-users {
    height: calc(100vh - 495px) !important;
}
.marcnowrap3{
display: -webkit-box;
line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
max-height: 30px;
}
.marcnowrap {
overflow: hidden !important;
text-overflow: ellipsis !important;
white-space: nowrap !important; /* Evita el salto de línea */
}

.bard-hello {
  font-family: 'Google Sans', sans-serif; 
  font-size: 2em; 
  font-weight: normal;
  /* Degradado de colores */
  background-image: linear-gradient(to right, #4285F4, #5d26b1, #D96570);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent; 
  text-align: center;
}

.bard-hello-name {
  font-weight: bold; 
}

.flagv2 {
margin-top:4px;
margin-bottom:4px;
width: 22px;
height: 22px;
border-radius: 5px;
background-size: cover; /* Cambia a cover para llenar el contenedor */
background-repeat: no-repeat;
background-position: center;
background-image: var(--flag-url);
}
.impact-indicators {
display: flex;
}

.indicator {
width: 8px;
height: 8px;
background-color: rgba(255,255,255,0.2); /* Color gris para indicadores inactivos */
margin-right: 4px;
}
.indicator.low {
background-color: #28a745 !important; /* Color verde de Bootstrap para el activo */
}
.indicator.medium {
background-color: #cf6f2f !important; /* Color verde de Bootstrap para el activo */
}
.indicator.high {
background-color: #b32f2f !important; /* Color verde de Bootstrap para el activo */
}
:root[data-bs-theme="light"] .indicator {
background-color: rgba(0,0,0,0.2); /* Color gris para indicadores inactivos */
}



.flages1{
  width:15px !important;height:15px !important;position:absolute; margin-top:-4px; margin-left:-4px; 
}
.flages2{
  width:15px !important;
  height:15px !important;
  margin-top:4px; margin-left:4px; 
}
/* ÉXITO (verde) - Rebote sutil */
.textanim-success {
display: inline-block;
/* animation: [nombre] [duración] [función de tiempo] [delay] */
animation: success-bounce 1s ease-out 0.5s;
}

@keyframes success-bounce {
0%, 100% {
transform: scale(1);
}
50% {
transform: scale(1.05); /* Rebote muy leve */
}
}

/* PÉRDIDA (rojo) - Vibración leve */
.textanim-danger {
display: inline-block;
/* animation: [nombre] [duración] [función de tiempo] [delay] */
animation: danger-shake 1s ease-in-out 0.5s;
}

@keyframes danger-shake {
0%, 100% {
transform: translateX(0);
}
25% {
transform: translateX(-1px);
}
50% {
transform: translateX(1px);
}
75% {
transform: translateX(-1px);
}
}
.btnfavs{
  font-size: 1.2rem;
}
.ti-star-full {
    color: #f39c12; /* Color dorado para estrellas rellenadas */
}
.ti-star-full {
  font-size: 1.2rem;
  color: transparent;
  background: linear-gradient(90deg, #f39c12 50%, rgb(255, 198, 9) 50%);
  -webkit-background-clip: text;
  background-clip: text;
}
#botonmoreoptionstrade[aria-expanded="true"]{
  display:none;
}