.tab-container {
  display: flex;
  border-bottom: 2px solid #ccc;
  width: 100%;
}

.invisible-slider {
  opacity: 0;
  max-height: 0;
  transform: translateY(-20px); /* Adjust as needed */
}

#showQuestions {
  display: none;
}

#hideQuestions {
  display: none;
  z-index: 1001;
}

#expensesGrid {
  display: grid;
  grid-template-columns: repeat(20, 1fr); /* 10 columns */
  grid-template-rows: repeat(5, 1fr); /* 10 rows */
  width: 100%; /* Adjust as needed */
  height: 100px; /* Adjust as needed */
  gap: 2px; /* Adds spacing between squares */
}

.expenses-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers horizontally */
  justify-content: center; /* Centers vertically */
  height: fit-content; /* Full viewport height */
}

.square {
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.fixed {
  background-color: #FA7A35;
}

.adjustable {
  background-color: #007bff;
}

.future {
  background-color: rgb(26, 226, 89);
}

.empty {
  background-color: rgb(131, 131, 131);
}

.sliders {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#legend {
  display: flex;
  flex-wrap: wrap; /* Allows items to move to the next line */
  gap: 10px;
  margin-top: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.legend-color {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  display: inline-block;
  border-radius: 3px;
}

.tab-button {
  flex: 1;
  background-color: #f1f1f1;
  border: 1px solid #ccc;
  border-bottom: none;
  padding: 1em 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
  outline: none;
  text-align: center;
}

.tab-button:hover {
  background-color: #ddd;
}

.tab-button.active {
  background-color: white;
  font-weight: bold;
}

.tab-button:not(:last-child) {
  margin-right: 2px;
}

#col_aposentadoria, #col_perfil {
  transition: width 0.5s ease;
}

#col_rentabilidade, #col_expectativa {
  opacity: 0;
  max-height: 0;
  transition: opacity 0.5s ease, max-height 0.5s ease;
}

#col_rentabilidade.show, #col_expectativa.show {
  opacity: 1;
  max-height: 1000px; /* Large enough to accommodate the content */
}

#retiradas_aportes_form_group {
  opacity: 0;
  max-height: 0;
  transition: opacity 0.5s ease, max-height 0.5s ease; /* Large enough to accommodate the content */
}

#retiradas_aportes_form_group.show {
  opacity: 1;
  max-height: 1000px; /* Large enough to accommodate the content */
}

#retiradas_aportes::before.show {
  opacity: 1;
  max-height: 1000px; /* Large enough to accommodate the content */
}

#retiradas_aportes::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  position: absolute;
  height: 100%;
  width: 4px;
  background: #0BB2E0;
  left: -1.5rem;
  top: 0;
  display: none;
}

.arrow {
  position: fixed;
  bottom: 10px;
  width: 45px; /* 30px * 1.5 */
  height: 45px; /* 30px * 1.5 */
  line-height: 45px; /* Adjusted for centering content */
  text-align: center;
  background-color: #ccc;
  color: #333;
  cursor: pointer;
  border-radius: 50%;
  font-size: 30px; /* 20px * 1.5 */
  z-index: 1000;
}

#up-arrow {
  display: none;
}

#down-arrow {
  display: none;
}

#chart-container {
  position: relative;
}

#portfolioChart {
  display: none;
}

.btn-switch {
  position: fixed;
  bottom: 10%; /* Adjust as needed for desired spacing */
  right: 30%; /* Adjust as needed for desired spacing */
  z-index: 21001; /* Ensure above other content */
  display: none;
}

#portfolio-table {
  font-family: Arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
}

#portfolio-table th, #portfolio-table td {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

#portfolio-table th {
  background-color: #f2f2f2;
}

/* Hide ::before pseudo-element on desktop screens */
@media only screen and (max-width: 850px) {
  .tabs-portfolio {
    display: none !important;
  }
  #questionsContainer {
    z-index: 1 !important;
    left: -50% !important;
    transition: margin-left 0.5s ease-in-out !important; /* Adjust the duration and timing function as needed */
  }
  #portfolioChart {
    left: 0 !important;
    position: fixed;
    width: 100%;
    height: 70%;
    bottom: 0;
    z-index: 45;
    overflow-y: scroll;
    transform: translateY(100%);
    background-color: #ffffff;
    opacity: 0; /* Initially invisible */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Add transition effect */
  }
  #portfolioChart2 {
    z-index: 45;
    width: 60%;
    height: 30%;
    margin-top: 5%;
    margin-left: 5%;
  }
  #portfolioChart.visible {
    transform: translateY(0); /* Bring it on-screen */
    opacity: 1; /* Make it visible */
  }
  #showQuestions {
    display: none;
  }
  #hideQuestions {
    display: none;
    z-index: 1001;
  }
  #down-arrow,
  #up-arrow {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 45px; /* 1.5 times larger */
    height: 45px; /* 1.5 times larger */
    line-height: 45px; /* Adjusted for centering text */
    text-align: center;
    background-color: #ccc;
    color: #333;
    cursor: pointer;
    border-radius: 50%;
    font-size: 30px; /* 1.5 times larger */
    z-index: 1000;
  }
  #down-arrow {
    bottom: 78%; /* Adjusted position */
  }
  #up-arrow {
    bottom: 5%; /* Adjusted position */
  }
  #emptyDiv {
    display: none;
  }
  #tableContainer {
    padding: 20px;
    top: 400px;
    right: 0;
    width: 100%; /* Initially occupying 70% of the screen */
    height: fit-content;
    margin-left: 0%; /* Adjust left margin to keep 70% width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    transition: width 0.5s ease, margin-left 0.5s ease; /* Add transition effect */
  }
  .tabs-portfolio {
    display: none;
  }
  .wrapQuestions {
    z-index: 1;
  }
  .aportsdiv .col-md-4 {
    margin-top: 15px;
  }
  .aportsdiv select,
  .aportsdiv .input-group-addon {
    height: 38px; /* Adjust height to match your select element */
  }
}
@media only screen and (max-width: 850px) and (orientation: landscape) {
  #portfolioChart {
    height: 80%;
  }
  #down-arrow {
    bottom: 85%;
  }
}