.ruler {
  position: relative;
  width: 90%;
  height: 30px;
  border-radius: 5px;
  margin: 50px 5%;
  background-color: #ccc;
}

.ruler-fill {
  position: absolute;
  height: 100%;
  border-radius: 5px;
  background-color: #F28C28; /* Company Orange */
  transition: width 0.5s ease-in-out;
}

.marker {
  position: absolute;
  top: 20px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
}

.current {
  top: -40px;
  color: rgb(0, 0, 0);
  font-weight: bold;
}

.min {
  color: red; /* Your company's blue */
}

.ideal {
  color: #20344c; /* Your company's blue */
  font-size: 14px;
}

.max {
  color: #40ce0d;
  font-size: 16px; /* Your company's blue */
}

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

#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;
}

.action-btn-recalcular {
  background-color: #18b3e1; /* Vibrant blue */
}

.action-btn-recalcular:hover {
  background-color: #85d3e8; /* Darker blue on hover */
}

/* 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 */
  }
}
.financial-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  padding: 40px;
  margin: 20px 0;
  border-radius: 15px;
  display: flex;
  align-items: center;
  gap: 30px;
  color: white;
  font-family: Arial, sans-serif;
  transition: margin-top 0.3s ease;
}
.financial-banner .banner-image {
  flex: 0 0 200px;
}
.financial-banner .banner-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.financial-banner .banner-content {
  flex: 1;
}
.financial-banner .banner-content .banner-title {
  color: #ffa726;
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 15px 0;
}
.financial-banner .banner-content .banner-title .highlight {
  color: #ffa726;
}
.financial-banner .banner-content .banner-subtitle {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 15px 0;
}
.financial-banner .banner-content .banner-description {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 20px 0;
}
.financial-banner .banner-content .banner-description .highlight {
  color: #ffa726;
  font-weight: bold;
}
.financial-banner .banner-content .banner-disclaimer {
  font-size: 12px;
  font-style: italic;
  margin: 0 0 20px 0;
}
.financial-banner .banner-content .banner-button {
  background-color: #ffa726;
  color: #1e3a5f;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  display: inline-block;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
.financial-banner .banner-content .banner-button:hover {
  background-color: #ff9800;
  transform: translateY(-2px);
  text-decoration: none;
  color: #1e3a5f;
}

.financial-banner.wealth-banner .banner-content .banner-title {
  color: #4fc3f7;
}
.financial-banner.wealth-banner .banner-content .banner-title .highlight {
  color: #4fc3f7;
}
.financial-banner.wealth-banner .banner-content .banner-description .highlight {
  color: #4fc3f7;
  font-weight: bold;
}
.financial-banner.wealth-banner .banner-content .banner-button {
  background-color: #4fc3f7;
  color: #1e3a5f;
}
.financial-banner.wealth-banner .banner-content .banner-button:hover {
  background-color: #29b6f6;
  color: #1e3a5f;
}

body:has(.wrap-results.hideanswer) .financial-banner {
  margin-top: -150px;
}

@media only screen and (max-width: 768px) {
  .financial-banner {
    flex-direction: column;
    padding: 30px 20px;
    text-align: center;
  }
  .financial-banner .banner-image {
    flex: none;
    max-width: 150px;
  }
  .financial-banner .banner-content .banner-title {
    font-size: 24px;
  }
  .financial-banner .banner-content .banner-subtitle {
    font-size: 14px;
  }
  .financial-banner .banner-content .banner-description {
    font-size: 13px;
  }
  .financial-banner .banner-content .banner-button {
    font-size: 12px;
    padding: 10px 20px;
  }
}
@media only screen and (max-width: 950px) and (orientation: landscape) {
  #portfolioChart {
    height: 80%;
  }
  #down-arrow {
    bottom: 85%;
  }
  .page-review .wrap-results {
    width: 100%;
  }
}