/* General Styles */
h3 {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

hr.line {
  border: none;
  border-top: 1px solid #010000;
  margin: 10px 0;
}

.container2 {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.caption {
  font-weight: bold;
  color: #555;
}

.number {
  font-weight: bold;
  color: #000;
}

/* Spacing and Alignment */
div.container2:last-child {
  border-bottom: none;
}

.container2 .caption {
  flex-basis: 70%;
  text-align: left;
}

.container2 .number {
  flex-basis: 30%;
  text-align: right;
}

/* Smaller Font for Explanations */
.container2 div[style*="font-size:smaller"] {
  font-size: 0.8em;
  color: #888;
}

/* Styling for Warnings or Additional Notes */
div[style*="text-align: center"] {
  font-size: 1.2em;
  color: #999;
  padding: 10px;
}

/* Special Styles for Summary Text */
div[style*="font-size:smaller"] {
  font-size: 0.9em;
  color: #666;
  padding-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
  .container2 {
    flex-direction: column;
    align-items: flex-start;
  }
  .container2 .number {
    text-align: left;
    margin-top: 5px;
  }
  h3 {
    font-size: 1.3em;
  }
}
.tab-container {
  display: flex;
  border-bottom: 2px solid #ccc;
  width: 100%;
}

.panel-review .form-group:not(.field-first-step) h4 {
  display: block !important;
  font-size: large !important;
}

.panel-review .form-group:not(.field-first-step) {
  width: 100% !important;
  margin-top: 20px;
}

#reachValue::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 4px;
  margin-bottom: 10px;
  display: block;
  width: 120px;
  background: #0BB2E0;
  margin: 0.6em auto 12px;
}

.blue ::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 4px;
  display: block;
  width: 120px;
  background: #0BB2E0;
  margin: 0.6em auto 0;
}

.text-box h6 b ::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  height: 4px;
  display: block;
  width: 120px;
  background: #0BB2E0;
  margin: 0.6em auto 0;
}

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

#showQuestions {
  display: none;
}

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

.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: 950px) {
  #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 */
  }
  #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 */
  }
  .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: 950px) and (orientation: landscape) {
  #portfolioChart {
    height: 80%;
  }
  #down-arrow {
    bottom: 85%;
  }
  .page-review .wrap-results {
    width: 100%;
  }
}