/* Cards de ativos na lateral */
.ativo-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: 0.2s;
}

.ativo-card:hover {
  border-color: var(--accent);
  background: var(--card-hover);
}

.ativo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.ativo-ticker {
  font-weight: 800;
  font-size: 16px;
  font-family: var(--font-title);
}

.ativo-nome {
  font-size: 12px;
  color: var(--muted);
}

.ativo-valores {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

/* Barra de alocação personalizada */
.alocacao-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alocacao-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.alocacao-barra-fundo {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.alocacao-barra-fill {
  height: 100%;
  border-radius: 4px;
}

/* ==================== METAS FINANCEIRAS ==================== */
.meta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}

.meta-card button {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
}

.meta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.meta-icone {
  background: transparent !important;
  border: none !important;
  font-size: 28px;
  margin-bottom: 8px;
}

.meta-titulo {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.meta-prazo {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-valores {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

.meta-valor-atual {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-title);
}

.meta-valor-alvo {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.meta-barra-fundo {
  height: 10px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.meta-barra-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease-out;
}

.meta-porcentagem {
  text-align: right;
  font-size: 13px;
  font-weight: 800;
}

/* Barra de rolagem igual às telas de Contas */
#lista-ativos-inv {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#lista-ativos-inv::-webkit-scrollbar {
  width: 6px;
}

#lista-ativos-inv::-webkit-scrollbar-track {
  background: transparent;
}

#lista-ativos-inv::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

#lista-ativos-inv::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Previne que o card vaze para a direita */
.ativo-card {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
