.stock-meta-data .stock-name-ticker {
  font-size: 18px;
  font-weight: bold;
  color: #f7f7f7;
  margin-bottom: 10px;
  line-height: 1;
  text-transform: uppercase;
}

.stock-meta-data .stock-name-title {
  font-size: 14px;
  color: #b0b0b0;
  margin: 0;
  text-transform: uppercase;
}

.stock-name .badge {
  border-radius: 4px;
  background: #46484e;
  color: #bfbfbf;
  text-align: center;
  font-feature-settings: "cv05" on, "cv06" on, "cv11" on;
  font-family: "Inter";
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  padding: 2px 8px;
}

.stock-meta-data .badge {
  margin-right: 10px;
  position: relative;
  top: -4px;
}

.btn-menu-stock {
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.02);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.14px;
  text-decoration: none;
  padding: 8px 16px;
}

.btn-menu-stock svg,
.btn-menu-stock i {
  width: 18px;
  height: 18px;
}

.btn-menu-stock:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.04) !important;
  background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    #151619;
  color: #fff;
}

.btn-menu-stock.active {
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.04);
  background: #fff;
  color: #08090a;
}

.btn-menu-stock.active:hover {
  background: #fff;
  color: #08090a;
}

/* Sticky menu */
.stock-menu-container {
  position: sticky;
  top: 77px;
  z-index: 100;
  background: rgba(8, 9, 10, 0.8);
  padding: 0 0 16px 0;
  margin: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(0px);
}

.stock-menu-container.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  /* background blur */
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.7);
  padding: 16px 0;
}

.ativos-single h2.title-bordered {
  font-size: 24px;
}

.indicador-legenda {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.indicador-legenda strong {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.indicador-legenda {
  color: #b0b0b0;
  font-size: 14px;
  font-weight: 400;
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.chart-controls .valor-atual {
  color: #b0b0b0;
  font-size: 12px;
  display: flex;
  align-items: start;
  flex-direction: column;
}

.chart-controls .valor-atual strong {
  color: #fff;
  font-size: 14px;
}

.chart-controls .valor-atual .dot {
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 30%;
}

.chart-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-control-group label {
  color: #b0b0b0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.custom-label {
  color: #b0b0b0;
  font-size: 12px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.custom-label strong {
  color: #fff;
  font-size: 14px;
}

.custom-label .color-dot {
  width: 8px;
  height: 8px;
  border-radius: 30%;
  margin-left: 4px;
}

.chart-control-group label:hover {
  color: #fff;
}

.chart-control-group input[type="checkbox"] {
  display: none;
}

.chart-control-group .checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.chart-control-group input[type="checkbox"]:checked + .checkbox-custom {
  border-color: currentColor;
  background-color: rgba(255, 255, 255, 0.1);
}

.chart-control-group input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  color: currentColor;
  font-size: 12px;
  font-weight: bold;
}

.chart-type-controls {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.chart-type-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #b0b0b0;
}

.chart-type-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.chart-type-btn.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

.chart-type-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.chart-table {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  display: none;
}

.chart-table.active {
  display: block;
}

.chart-table table {
  width: 100%;
  color: #fff;
  border-collapse: collapse;
}

.chart-table th {
  color: #b0b0b0;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-table td {
  padding: 8px 12px;
  font-size: 14px;
  font-family: "JetBrains Mono", monospace;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-table tr:last-child td {
  border-bottom: none;
}

.chart-table .year-cell {
  font-weight: 500;
}

.chart-table .value-cell {
  text-align: right;
}

.simulator-container-ativo {
}

.simulator-container-ativo .badge {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #bfbfbf;
  text-align: center;
  font-family: "Inter";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 19px;
  padding: 2px 8px;
  width: fit-content;
}

.simulator-container-ativo h5 {
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 23px;
  margin-top: 20px;
}

.simulator-container-ativo p {
  color: #b0b0b0;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
}

.simulator-container-ativo input[type="text"] {
  border-radius: 12px;
  background: #46484e;
  color: #757575;
  padding: 12px 16px;
  width: 100%;
  height: 48px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
  border-radius: 12px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: #46484e;
}

.simulator-container-ativo select {
  border-radius: 12px !important;
  background: #46484e;
  color: #757575 !important;
  padding: 12px 16px;
  width: 100%;
  height: 48px;
}

.simulator-container-ativo select option {
  color: #757575;
}

.stock-faq .accordion-button::after {
  filter: brightness(5);
}

.stock-related .company-name {
  color: #bfbfbf;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 19px;
  text-transform: capitalize;
}

#resumo,
.simulator-container-ativo {
  border-radius: 12px !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  background: #252629 !important;
}

#resumo h5 {
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 23px;
}

.badge {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 19px;
  text-align: center;
  border-radius: 8px;
}

/* This is needed to avoid flashes */
.sector-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(191, 191, 191, 0.8);
  border: 1px solid rgba(191, 191, 191, 0.8);
}

.badge-sector-default {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(191, 191, 191, 0.8);
  border: 1px solid rgba(191, 191, 191, 0.8);
}

.badge-sector-yellow {
  background: rgba(63, 51, 1, 0.64);
  color: rgba(228, 185, 0, 0.8);
  border: 1px solid rgba(228, 185, 0, 0.8);
}

.badge-sector-green {
  background: rgba(10, 48, 9, 0.64);
  color: #1fc16b;
  border: 1px solid #1fc16b;
}

.badge-sector-orange {
  background: rgba(75, 48, 12, 0.64);
  color: rgba(255, 92, 2, 0.8);
  border: 1px solid rgba(255, 92, 2, 0.8);
}

.badge-sector-gray {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #bfbfbf;
  border: 1px solid #bfbfbf;
}

.badge-sector-cyan {
  border-radius: 8px;
  background: rgba(4, 45, 41, 0.64);
  color: rgba(53, 227, 210, 0.8);
  border: 1px solid rgba(53, 227, 210, 0.8);
}

.badge-sector-lime-green {
  border-radius: 8px;
  background: rgba(36, 48, 9, 0.64);
  color: rgba(199, 251, 80, 0.8);
  border: 1px solid rgba(199, 251, 80, 0.8);
}

.badge-sector-purple {
  border-radius: 8px;
  background: rgba(57, 24, 107, 0.88);
  color: rgba(203, 198, 255, 0.8);
  border: 1px solid rgba(203, 198, 255, 0.8);
}

.badge-sector-blue {
  border-radius: 8px;
  background: #002129;
  color: rgba(11, 211, 255, 0.8);
  border: 1px solid rgba(11, 211, 255, 0.8);
}

.badge-sector-pink {
  border-radius: 8px;
  background: rgba(88, 39, 89, 0.64);
  color: #f85bf0;
  border: 1px solid #f85bf0;
}

/* Sector badge tooltip */
.sector-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #46484e;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  font-family: "Inter";
}

.sector-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #46484e transparent transparent transparent;
}

.sector-badge-container:hover .sector-tooltip {
  visibility: visible;
  opacity: 1;
}

.divider-ativos {
  width: 100%;
  height: 1px;
  background: #2222228f;
  margin-bottom: 1rem;
}

/* Coming Soon */

.comming-soon img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comming-soon-content {
  position: relative;
}

.indicator-empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  background: none;
}

/* Info Cards Component Styles template-parts/ativos/info-cards.php */

.list-cards {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-bottom: 1rem;
}

.info-card {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 166px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
}

.info-card-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.info-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.info-card-check {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #4bcd95;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
  color: #151619;
}

.info-card-check i {
  width: 8px;
  height: 8px;
  color: #151619;
}

.info-card.active .info-card-check {
  display: flex;
}

.info-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    #151619;
}

.info-card.active {
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.04);
  background: #151619;
}

.info-card-title {
  color: #b0b0b0;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.01em;
  font-feature-settings: "cv11" on, "cv05" on, "cv06" on;
}

.info-card.active .info-card-title {
  color: var(--light-neutral-600);
}

.info-card-value {
  color: var(--neutral-white);
  font-size: 1.5rem;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
}

.info-content {
  padding: 24px;
  position: relative;

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151619;
}

.info-content-item {
  display: none !important;
  opacity: 0;
  transition: opacity 0.3s ease;
  visibility: hidden;
}

.info-content-item.active {
  display: block !important;
  opacity: 1;
  visibility: visible;
}

.info-content h4 {
  color: var(--neutral-white);
  font-weight: 700;
  margin: 0;
}

/* Indicator Empty State */
.indicator-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  min-height: 160px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 24px;
}

.empty-state-badge {
  border-radius: 6px;
  border: 1px solid #ffc107;
  background: #291f00;
  color: #ffc107;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 19px; /* 158.333% */
  padding: 2px 6px;
}

.empty-state-text {
  color: #ffffff;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
  max-width: 400px;
  margin-top: 10px;
}

.info-badge {
  width: 24px;
  height: 24px;
  background: var(--warning-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.info-badge::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 8px solid var(--neutral-400);
  margin-right: -1px;
}

.info-badge span {
  color: var(--neutral-white);
  font-size: 0.75rem;
  font-weight: 700;
}

.info-description {
  color: var(--neutral-200);
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

/* Info Cards Component Styles template-parts/ativos/info-cards.php */

/* Chart Styles Price Ativos */

.stock-price-widget {
  background: transparent;
  border-radius: 8px;
}

.stock-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 12px;
}

.price-section {
  flex: 1;
  gap: 4px;
  flex-direction: column;
  display: flex;
}

.price-title {
  font-size: 14px;
  font-weight: 400;
  color: #b0b0b0;
}

.price-main {
  align-items: center;
}

.current-price {
  color: #fff;
  font-size: 28px;
  font-style: normal;
  font-weight: 600;
  line-height: 35px; /* 125% */
}

.price-change {
  font-size: 12px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.price-change.positive {
  color: var(--primary-green-light);
}

.price-change.negative {
  color: #ef4444;
}

.price-change-icon {
  width: 18px;
  height: 18px;
}

.price-meta {
  color: #636469;
  font-size: 11px;
}

.time-period-buttons {
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
}

.period-btn-group {
  display: flex;
  border-radius: 8px;
  gap: 2px;
  letter-spacing: 8px;
}

.period-btn {
  background: transparent;
  border: none;
  color: #bfbfbf;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 40px;
  border: 1.5px solid transparent;
}

.period-btn:hover {
  background: #151619;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.period-btn.active {
  color: #fff;
  border-radius: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  background: #252629;
}

.chart-container {
  background: #08090a;
  padding: 20px 0;
  position: relative;
  height: 400px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 20px;
}

.chart-container canvas {
  max-width: 100%;
  height: auto !important;
}

@media (max-width: 768px) {
  .stock-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .current-price {
    font-size: 2rem;
  }

  .period-btn-group {
    flex-wrap: wrap;
    gap: 2px;
  }

  .period-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
    min-width: 35px;
  }

  .chart-container {
    padding: 15px;
    height: 300px;
  }
}

#chartjs-tooltip {
  opacity: 1;
  position: absolute;
  background: rgba(42, 42, 45, 0.95);
  color: white;
  border-radius: 8px;
  -webkit-transition: all 0.1s ease;
  transition: all 0.1s ease;
  pointer-events: none;
  transform: translate(-50%, -100%);
  margin-top: -10px;
  border: 1px solid #333435;
}

.custom-tooltip {
  padding: 12px 16px;
  min-width: 140px;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 11px;
  color: #b0b0b0;
  font-weight: 400;
}

.tooltip-date {
  color: #b0b0b0;
}

.tooltip-time {
  color: #b0b0b0;
}

.tooltip-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tooltip-label {
  font-size: 11px;
  color: #b0b0b0;
  font-weight: 400;
}

.tooltip-value {
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
}

.tooltip-volume {
  font-size: 11px;
  color: #b0b0b0;
  font-weight: 400;
}
