.tester-container{
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 2001;
}
.chatbot-button{
    position: fixed;
    bottom: 0;
    right: 0;
    background: #133154;
    border-radius: 100%;
    height: 90px;
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin: 0.5em;
    cursor: pointer;
}
.chatbot-button i{
    font-size: 35px;
}
.chatbot-container{
    display: none;
    background-color: #f6f6f6;
    position: absolute;
    right: 0;
    bottom: 0;
    margin-right: 70px;
    margin-bottom: 70px;
    height: 50em;
    width: 35em;
    /* display: flex; */
    flex-direction: column;
    box-shadow: 5px 5px 10px gray;
    border-radius: 10px;
}

/* Celulares */
@media (max-width: 768px) {
  .chatbot-container {
    margin-right: 0;
    margin-bottom: 0;
    height: 100vh !important;
    width: 100vw !important;
  }

  /* .chatbot-button{
    display: none;
  } */
}



.chatbot-header {
  width: 100%;
  background: linear-gradient(to right, #40699A, #03080E);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  padding: 1.2em;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  position: relative;
}

.header-left{
    display: flex;
    align-items: center;
    justify-content: center;
    /* flex: 1; */
}

.header-right{
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-right i{
    font-size: 18px;
    padding: 0 0.5em;
}

.header-p{
    font-size: 14px;
    /* font-weight: 600; */
    margin: 0;
    color: #fff;
}
.header-title{
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #fff;
    /* white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; */
}
.header-icon{
    font-size: 40px;
    color: #ffffff;
}

.chatbot-body{
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}
.chatbot-footer{
    padding: 1.5em;
    display: flex;
    align-items: center;
}
.chatbot-footer input{
    flex: 1;
}

.footer-icon{
    font-size: 25px;
    color: #898989;
    padding: 0 0.2em;
    cursor: pointer;
}
.footer-icon:hover{
    color: #133154;
}
.chatbot-input{
    all: unset;
    font-family: 'Overpass';
    border: none !important;
    background: none;
    outline: none;
    box-shadow: none;
    font-size: 16px;
}
.chatbot-input::placeholder{
    font-family: 'Overpass';
}

.divide-line{
    background: #a4a4a4;
    width: 90%;
    margin: 0 auto;
    height: 1px;
    border: none;
}

.chatbot-body{
    padding: 1.5em;
}
.bot-message{
    /* background: linear-gradient(to right, #40699A, #03080E);
    color: #fff; */
    background: var(--BID_SOFT);
    color: var(--BID_PRIMARY_BLACK_2A);
    padding: 1em;
    border-radius: 10px;
    font-family: 'Overpass';
    max-width: 80%;
    margin: 0.5em 0;
    width: fit-content;

    /* margin-right: auto; */
}

.user-message{
    background: #c4c4c4;
    color: #2e2e2e;
    padding: 1em;
    border-radius: 10px;
    font-family: 'Overpass';
    margin: 0.5em 0;
    max-width: 80%;
    margin-left: auto;
    width: fit-content;
}

.chart-message{
    position: relative;
    background: #ffffff !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-bottom: 0 !important;
    box-shadow: 1px 1px 5px gainsboro;
    padding-top: 1em;
}
.date-label{
    color: #133154;
    text-align: center;
    font-weight: 100;
    font-size: 0.9em;
}

.follow-container{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.follow-question{
    display: flex;
    align-items: center;
    text-wrap: nowrap;
    text-overflow: ellipsis;
    font-family: 'Overpass';
    /* font-size: 13px; */
    border: 2px solid #565656;
    border-radius: 30px;
    padding: 0.2em 1em;
    cursor: pointer;
}
.follow-question:hover{
    background: #565656;
    color: #ffffff;
}

.sources-container {
    display: flex;
    border-radius: 12px;
    font-family: 'Overpass';
    font-size: 10px;
    padding-bottom: 10px;
}

.source-item {
    background: #f0f0f0;
    border-radius: 20px;
    margin-right: 15px;
}

.source-item a {
    text-decoration: none;
    color: #133154;
    padding: 5px 5px;
    display: block;

}

.custom-tooltip {
  position: relative;
  cursor: pointer;
}

.custom-tooltip::after {
  content: attr(data-url);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  font-size: 12px;
}

.custom-tooltip:hover::after {
  opacity: 1;
}


.options-window::before{
     content: "";
    position: relative;
    /* top: 0; */
    background: blue;
    width: 0;
    height:0;
    border-left: 10px solid none ;
    border-right: 10px solid none ;
    border-top: 10px solid none ;
    border-bottom: 10px solid blue ;
    z-index: 2000;
}
.options-window{
    background: #333333;
    position: absolute;
    display: flex;
    height: 6em;
    flex-direction: column;
    bottom: 0;
    /* right: 0; */
    transform: translateY(6em);
    /* border-radius: 10px; */
    z-index: 1001;
}
.options-selector{
    flex: 1;
    display: flex;
    padding: 0 1em;
    align-items: center;
    font-family: 'Overpass' !important;
    color: #ffffff;
    cursor: pointer;
    text-wrap: nowrap;
}
.options-selector i{
    font-size: 12px;
}
.options-selector:hover{
    background: #898989;
}



.chat-bubble.typing {
  /* background-color: #eee; */
  /* border-radius: 20px; */
  /* padding: 10px 15px; */
  width: fit-content;
  display: flex;
  gap: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 100%;
  animation: blink 1.5s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% { opacity: 0.2; transform: translateY(0); }
  20% { opacity: 1; transform: translateY(-3px); }
  100% { opacity: 0.2; transform: translateY(0); }
}

.viewer-background{
    background: rgba(19, 49, 84, 0.5);
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.viewer-window{
    z-index: 999;
    background: #ffffff;
    width: 99%;
    height: 99%;
    border-radius: 20px;
    display: flex;
    position: absolute;
}
.viewer-menu-container{
    flex: 1;
    border-right: 1px solid gainsboro;
    overflow-x: auto;
}
.viewer-chart-container{
    flex: 3;
    overflow-y: auto;
    /* padding: 2em; */
}
.viewer-title{
    text-align: center;
    font-size: 2.5em;
    font-weight: 800;
    color: #133154;
}
.viewer-description{
    font-size: 1.1em;
    text-align: center;
}
.viewer-table-container{
    background: #f2f2f2;
    padding: 2em;
}
.viewer-table{
    width: 100%;
    table-layout: fixed;
}
.viewer-table th{
    border: 1px solid gainsboro;
    background: #ebedf1;
    height: 2.5rem;
    font-size: 0.8rem;
    text-align: center;
}
.viewer-table td{
    border: 1px solid gainsboro;
    height: 2.5rem;
    font-size: 0.8rem;
    text-align: center;
    background: #ffffff;
}
.viewer-x-td{
    background: #ebedf1 !important;
}
.viewer-chart{
    height: 10em;
}
.viewer-color-picker{
    height: 1.5em;
    width: 1.4em;
    /* background: red; */
    cursor: pointer;
    /* border: 1px solid gainsboro; */
    border-radius: 100%;
    margin: 0 0.5em;
    overflow: hidden;
}
.viewer-color-input{
    opacity: 0;
    cursor: pointer;
}
.viewer-chart-picker{
    font-size: 1.3em;
    color: gray;
    cursor: pointer;
}

.viewer-menu-item{
    display: flex;
    align-items: center;
    padding: 0.5em 0;
}
.viewer-select{
    flex: 1;
    border: 1px solid gainsboro;
    border-radius: 10px;
    padding: 0.5rem 0.5rem;
    outline: none;
    font-family: 'Open Sans';
    font-size: 1.2em;
}
.viewer-select option{
    padding: 4em;
}

.viewer-modal{
    background: #ffffff;
    border-radius: 10px;
    position: relative;
}
/* .viewer-modal > div:first-child{
    padding: 0 2em;
    padding-bottom: 3em;
} */
.viewer-type-chart{
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.viewer-type-chart i{
    font-size: 3.5em;
    cursor: pointer;
}

.chart-selected{
    background:  #e7eefd;
    color: #3e5bc0;
    padding: 1rem;
}
.viewer-button{
    background: #133154;
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    padding: 0.5rem 0;
    font-size: 1.2em;
}

.switch {
  position: relative;
  display: flex;
  align-items: center;
  
  width: 52px;
  height: 28px;
  margin: auto 0;
}

/* checkbox real */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* fondo */
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #ccc;
  transition: .3s;
  border-radius: 999px;
}

/* círculo */
.slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

/* ON */
.switch input:checked + .slider {
  background-color: #133154;
}

.switch input:checked + .slider::before {
  transform: translateX(24px);
}

/* focus accesible */
.switch input:focus + .slider {
  box-shadow: 0 0 0 2px rgba(0,0,0,.2);
}

.viewer-item-label{
    margin: 0;
    color: #898989;
}
.viewer-item-index{
    margin: 0;
    padding: 0;
    color: #898989;
    font-size: 0.8em;
}

.viewer-item-add{
    color: rgb(14, 143, 229);
    margin: 0;
    font-size: 0.7em;
    cursor: pointer;
}
.viewer-item-add:hover{
    text-decoration: underline;
}

.viewer-expand{
    height: 3em;
    width: 3em;
    position: absolute;
    /* font-size: 1em;  */
    cursor: pointer; 
    color: gray; 
    right: 0;
    top: 0;
    z-index: 99;
    background: #ffffff;
    box-shadow: 2px 2px 10px gray;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em;
    border-radius: 100%;
    transform: translate(1em, -1em);
}