/********************************************************
 ******* CUSTOM UBK TABLES / CONSTANTES Y VALORES *******
 ********************************************************/

.custom-ubk--table-container,
.vital-signs--table-container {
    margin: 1rem 0 3rem 0;
    padding: 0.5rem 1rem 1rem 1rem;
    border-radius: 1rem;
}

.custom-ubk--table-container.background-blue,
.vital-signs--table-container.background-blue {
    border: solid 3px var(--ubk-blue);
    background-color: var(--half-opacity-ubk-blue);
}

.custom-ubk--table-container.background-green,
.vital-signs--table-container.background-green {
    border: solid 3px var(--green);
    background-color: #00aa5226;
}

.custom-ubk--table-container.background-orange,
.vital-signs--table-container.background-orange {
    border: solid 3px var(--dark-tangerine);
    background-color: #ffaf1026;
}

.custom-ubk--table-grid,
.vital-signs--table-grid {
    display: grid;
    grid-template-columns: 2fr 2px repeat(5, 1fr) 2px 2fr;
    grid-template-rows: 4rem 2.5rem 2px;
    grid-auto-rows: minmax(2.5rem, auto);

    grid-column-gap: 1rem;
    column-gap: 1rem;
    /*grid-row-gap: .7rem;*/
    /*row-gap: .7rem;*/
    align-items: center;

    min-height: 0;
    min-width: 0;
}

.custom-ubk--table-grid .year-header,
.vital-signs--table-grid .year-header {
    grid-column: 4 / span 3;
}

.custom-ubk--table-grid .ver-line,
.vital-signs--table-grid .ver-line {
    height: 100%;
}

.custom-ubk--table-grid .hor-line,
.vital-signs--table-grid .hor-line {
    grid-column: 1 / -1;
    height: 2px;
}

.constant__title--clickable {
    cursor: pointer;
}

/*.constant__title--clickable:hover{*/
/*    background-color: #6c8fc361;*/
/*    border-radius: 5px;*/
/*}*/

/*.chart-choose-menu {*/
/*    position: relative;*/
/*    top: 100px;*/
/*    background-color: white;*/
/*    width: max-content;*/
/*}*/

.chart-modal-popup {
    text-align: left;
    background: var(--v-light-gray);
    position: absolute;
    left: 5%;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    padding: 20px;
    overflow-x: auto;
    overflow-y: auto;
}

.chart-choose-menu__item {
    padding: 1rem;
    list-style: none;
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--ubk-blue);
}

.chart-choose-menu__item:hover {
    background-color: var(--ubk-blue);
    color: white;
    border-radius: 10px;
}

.chart-choose-menu__title {
    font-weight: bold;
}

@media screen and (min-width: 641px) {
    .vital-signs--table-grid {
        grid-template-columns: 2fr 2px repeat(7, 1fr) 2px 2fr;
    }
    .vital-signs--table-grid .year-header {
        grid-column: 4 / span 5;
    }
}

@media screen and (min-width: 1025px) {
    .vital-signs--table-grid {
        grid-template-columns: 3fr 2px repeat(9, 1fr) 2px 2fr;
    }
    .vital-signs--table-grid .year-header {
        grid-column: 4 / span 7;
    }
}


/***** TABLE DATE TOOLTIP *****/

.vital-signs--table-grid .date-tooltip {
  position: relative;
  text-align: center;
}

.date-tooltip .tooltiptext {
  visibility: hidden;
  max-width: 6rem;
  background-color: var(--dark-gray);
  color: #fff;
  text-align: center;
  font-size: 0.9rem;
  border-radius: 0.4rem;
  padding: 0.4rem 0.3rem;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -2.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.date-tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -0.4rem;
  border-width: 0.4rem;
  border-style: solid;
  border-color: var(--dark-gray) transparent transparent transparent;
}

.date-tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}