/* ============================================================
   Meus Investimentos — usa SOMENTE as variáveis do style.css
   (as cores do site não mudam).
   ============================================================ */
.inv-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.inv-tabs .btn { width: 100%; margin: 0; }

.inv-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.inv-card {
    background: linear-gradient(160deg, var(--bg-card), var(--bg-card-2));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm), var(--shadow-inset-top);
    overflow: hidden;
}

.inv-card.is-open { border-color: var(--border-primary); }

.inv-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.inv-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 184, 174, 0.1);
    border: 1px solid var(--border-primary);
    border-radius: 14px;
    color: var(--primary-light);
}

.inv-icon svg { width: 28px; height: 28px; }

.inv-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.inv-name { font-size: 14px; font-weight: 600; color: var(--text-color); }

.inv-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-color);
    font-variant-numeric: tabular-nums;
}

.inv-line { font-size: 12.5px; color: var(--text-muted); }

.inv-status { font-weight: 700; }
.inv-status.is-on { color: var(--success); }
.inv-status.is-end { color: var(--info); }

.inv-chevron {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.inv-card.is-open .inv-chevron { transform: rotate(90deg); }

.inv-details {
    padding: 4px 16px 14px;
    border-top: 1px solid var(--border-soft);
}

.inv-details[hidden] { display: none; }

.inv-detail {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-soft);
}

.inv-detail:last-child { border-bottom: 0; }
.inv-detail strong { color: var(--text-color); font-variant-numeric: tabular-nums; }

.inv-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    padding: 16px 18px;
    background: linear-gradient(160deg, var(--bg-card), var(--bg-card-2));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.inv-total h2 {
    margin: 4px 0 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--text-color);
    font-variant-numeric: tabular-nums;
}

.inv-total small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 420px) {
    .inv-head { gap: 10px; padding: 12px; }
    .inv-icon { flex-basis: 44px; width: 44px; height: 44px; }
    .inv-value { font-size: 18px; }
    .inv-total h2 { font-size: 22px; }
}

/* Link dentro da mensagem de lista vazia */
.inv-lista .dep-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: underline;
    cursor: pointer;
}
