/* =========================================================
   FIIs
========================================================= */


/* =========================================================
   ESTRUTURA
========================================================= */

.app-shell {

    width: calc(100% - 40px);

    max-width: 1380px;

    min-height: calc(100vh - 40px);

    margin: 20px auto;

    display: flex;

    background: rgba(10, 13, 15, 0.82);

    border: 1px solid var(--border);

    border-radius: 26px;

    overflow: hidden;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.42);

}



/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {

    width: 230px;

    flex-shrink: 0;

    padding: 34px 20px;

    display: flex;

    flex-direction: column;

    background: rgba(8, 10, 12, 0.62);

    border-right: 1px solid var(--border);

}


.brand {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 10px;

    margin-bottom: 55px;

}


.brand-symbol {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    font-size: 23px;

    font-weight: 700;

    border: 1px solid var(--border);

    border-radius: 12px;

}


.brand-text {

    display: flex;

    flex-direction: column;

    letter-spacing: 4px;

}


.brand-text strong {

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

}


.brand-text span {

    margin-top: 3px;

    color: var(--text-soft);

    font-size: 9px;

}



/* MENU */

.sidebar-nav {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.sidebar-link {

    min-height: 52px;

    padding: 0 16px;

    display: flex;

    align-items: center;

    gap: 13px;

    color: var(--text-soft);

    border-radius: 13px;

    transition: var(--transition);

}


.sidebar-link:hover {

    color: #ffffff;

    background: rgba(255, 255, 255, 0.045);

}


.sidebar-link.active {

    color: #ffffff;

    background: rgba(255, 255, 255, 0.09);

    border: 1px solid rgba(255, 255, 255, 0.08);

}


.nav-symbol {

    width: 22px;

    text-align: center;

    font-size: 18px;

}


.sidebar-link small {

    margin-left: auto;

    padding: 4px 7px;

    color: var(--text-muted);

    font-size: 9px;

    border: 1px solid var(--border);

    border-radius: 20px;

}


.sidebar-link.disabled {

    opacity: 0.38;

    cursor: default;

}



/* =========================================================
   CONTEÚDO
========================================================= */

.main-content {

    flex: 1;

    min-width: 0;

    padding: 42px 55px 55px;

}



/* =========================================================
   CABEÇALHO
========================================================= */

.page-header {

    margin-bottom: 30px;

}


.back-link {

    display: inline-block;

    margin-bottom: 18px;

    color: var(--text-muted);

    font-size: 13px;

    transition: var(--transition);

}


.back-link:hover {

    color: #ffffff;

}


.page-label {

    display: block;

    margin-bottom: 8px;

    color: var(--text-muted);

    font-size: 10px;

    font-weight: 600;

    letter-spacing: 1.8px;

}


.page-header h1 {

    margin: 0 0 8px;

    font-size: 38px;

    font-weight: 500;

    letter-spacing: -1px;

}


.page-header p {

    margin: 0;

    color: var(--text-soft);

    font-size: 14px;

}



/* =========================================================
   SIMULADOR
========================================================= */

.simulator-card {

    padding: 30px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.065),
            rgba(255, 255, 255, 0.025));

    border: 1px solid var(--border);

    border-radius: 20px;

}



/* LABEL */

.form-label {

    margin-bottom: 8px;

    color: var(--text-soft);

    font-size: 12px;

}



/* INPUTS */

.invest-input {

    width: 100%;

    height: 50px;

    padding: 0 15px;

    color: #ffffff;

    background: rgba(255, 255, 255, 0.045);

    border: 1px solid var(--border);

    border-radius: 11px;

    outline: none;

    transition: var(--transition);

}


.invest-input:hover {

    border-color: rgba(255, 255, 255, 0.18);

}


.invest-input:focus {

    border-color: rgba(255, 255, 255, 0.35);

    background: rgba(255, 255, 255, 0.065);

}


.invest-input::placeholder {

    color: var(--text-muted);

}



/* Remove setinhas */

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {

    margin: 0;

    -webkit-appearance: none;

}


input[type=number] {

    -moz-appearance: textfield;

}



/* PREÇO */

.input-money {

    position: relative;

}


.input-money>span {

    position: absolute;

    z-index: 2;

    top: 50%;

    left: 15px;

    transform: translateY(-50%);

    color: var(--text-muted);

    font-size: 13px;

}


.input-money .invest-input {

    padding-left: 42px;

}



/* SELECT */

.invest-select {

    appearance: none;

    cursor: pointer;

}


.invest-select option {

    color: #ffffff;

    background: #15181b;

}



/* PERÍODO */

.period-group {

    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 10px;

}



/* VALOR CALCULADO */

.calculated-value {

    height: 50px;

    padding: 0 15px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);

    border-radius: 11px;

}


.calculated-value span {

    color: #ffffff;

    font-size: 16px;

    font-weight: 500;

}


.calculated-value small {

    color: var(--text-muted);

    font-size: 10px;

}



/* =========================================================
   RESUMO ATUAL
========================================================= */

.current-summary {

    margin-top: 28px;

    padding: 20px 22px;

    display: flex;

    align-items: center;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);

    border-radius: 15px;

}


.summary-item {

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.summary-item span {

    color: var(--text-muted);

    font-size: 11px;

}


.summary-item strong {

    font-size: 19px;

    font-weight: 500;

}


.summary-divider {

    width: 1px;

    height: 38px;

    margin: 0 30px;

    background: var(--border);

}



/* =========================================================
   REINVESTIR
========================================================= */

.reinvest-area {

    margin-top: 18px;

    padding: 18px 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border: 1px solid var(--border);

    border-radius: 15px;

}


.reinvest-area strong {

    font-size: 14px;

    font-weight: 500;

}


.reinvest-area p {

    margin: 4px 0 0;

    color: var(--text-muted);

    font-size: 11px;

}



/* SWITCH */

.switch {

    position: relative;

    width: 52px;

    height: 28px;

    flex-shrink: 0;

}


.switch input {

    display: none;

}


.slider {

    position: absolute;

    inset: 0;

    cursor: pointer;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid var(--border);

    border-radius: 100px;

    transition: var(--transition);

}


.slider::before {

    content: "";

    position: absolute;

    width: 20px;

    height: 20px;

    left: 3px;

    top: 3px;

    background: #ffffff;

    border-radius: 50%;

    transition: var(--transition);

}


.switch input:checked+.slider {

    background: rgba(255, 255, 255, 0.28);

}


.switch input:checked+.slider::before {

    transform: translateX(24px);

}



/* =========================================================
   BOTÃO
========================================================= */

.simulate-button {

    width: 100%;

    height: 54px;

    margin-top: 20px;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    color: #111315;

    background: #f2f2f2;

    border: 0;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 600;

    transition: var(--transition);

}


.simulate-button:hover {

    background: #ffffff;

    transform: translateY(-1px);

}


.simulate-button span {

    font-size: 20px;

}



/* =========================================================
   RESULTADOS
========================================================= */

.results-section {

    display: none;

    margin-top: 28px;

}


.results-section.visible {

    display: block;

}


.results-header {

    margin-bottom: 18px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

}


.results-header h2 {

    margin: 0;

    font-size: 25px;

    font-weight: 500;

}


.period-badge {

    padding: 7px 12px;

    color: var(--text-soft);

    font-size: 11px;

    border: 1px solid var(--border);

    border-radius: 30px;

}



/* CARD RESULTADO */

.result-card {

    min-height: 135px;

    padding: 20px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    background: rgba(255, 255, 255, 0.04);

    border: 1px solid var(--border);

    border-radius: 16px;

}


.result-card span {

    margin-bottom: 7px;

    color: var(--text-muted);

    font-size: 11px;

}


.result-card strong {

    color: #ffffff;

    font-size: 23px;

    font-weight: 500;

}


.result-card small {

    margin-top: 5px;

    color: var(--text-soft);

    font-size: 10px;

}



/* DETALHES */

.result-summary {

    margin-top: 16px;

    padding: 22px;

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

    gap: 20px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);

    border-radius: 16px;

}


.result-summary div {

    display: flex;

    flex-direction: column;

    gap: 5px;

}


.result-summary span {

    color: var(--text-muted);

    font-size: 10px;

}


.result-summary strong {

    color: #ffffff;

    font-size: 15px;

    font-weight: 500;

}



/* =========================================================
   AVISO
========================================================= */

.investment-warning {

    margin: 20px 0 0;

    color: var(--text-muted);

    font-size: 10px;

    text-align: center;

}



/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-navigation {

    display: none;

}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991.98px) {

    body {

        padding-bottom: 95px;

    }


    .app-shell {

        width: 100%;

        min-height: 100vh;

        margin: 0;

        border: 0;

        border-radius: 0;

    }


    .sidebar {

        display: none;

    }


    .main-content {

        padding: 35px 25px 30px;

    }


    .mobile-navigation {

        height: 72px;

        position: fixed;

        z-index: 1000;

        left: 14px;

        right: 14px;

        bottom: 14px;

        display: flex;

        align-items: center;

        justify-content: space-around;

        background: rgba(13, 16, 18, 0.95);

        border: 1px solid var(--border);

        border-radius: 20px;

        backdrop-filter: blur(20px);

        box-shadow:
            0 15px 45px rgba(0, 0, 0, 0.5);

    }


    .mobile-nav-item {

        min-width: 70px;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 3px;

        color: var(--text-muted);

    }


    .mobile-nav-item span {

        font-size: 20px;

    }


    .mobile-nav-item small {

        font-size: 10px;

    }


    .mobile-nav-item.active {

        color: #ffffff;

    }


    .mobile-nav-item.disabled {

        opacity: 0.35;

    }


    .result-summary {

        grid-template-columns: repeat(2, 1fr);

    }

}



/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 575.98px) {

    .main-content {

        padding: 28px 16px 20px;

    }


    .page-header {

        margin-bottom: 23px;

    }


    .back-link {

        margin-bottom: 15px;

    }


    .page-header h1 {

        font-size: 29px;

    }


    .page-header p {

        font-size: 13px;

    }


    .simulator-card {

        padding: 20px;

    }


    .calculated-value {

        align-items: flex-start;

        justify-content: center;

        flex-direction: column;

        gap: 1px;

    }


    .calculated-value small {

        font-size: 9px;

    }


    .current-summary {

        padding: 17px;

    }


    .summary-divider {

        margin: 0 15px;

    }


    .summary-item strong {

        font-size: 16px;

    }


    .reinvest-area {

        padding: 16px;

    }


    .result-card {

        min-height: 120px;

        padding: 16px;

    }


    .result-card strong {

        font-size: 19px;

    }


    .result-summary {

        grid-template-columns: 1fr 1fr;

        padding: 18px;

        gap: 18px;

    }

}



/* =========================================================
   CELULAR PEQUENO
========================================================= */

@media (max-width: 390px) {

    .result-summary {

        grid-template-columns: 1fr;

    }


    .current-summary {

        align-items: flex-start;

        flex-direction: column;

        gap: 15px;

    }


    .summary-divider {

        width: 100%;

        height: 1px;

        margin: 0;

    }

}

/* =========================================================
   TABELA MÊS A MÊS
========================================================= */

.monthly-section {

    margin-top: 22px;

    padding: 24px;

    background: rgba(255, 255, 255, 0.025);

    border: 1px solid var(--border);

    border-radius: 16px;

}


.monthly-header {

    margin-bottom: 20px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

}


.monthly-header h3 {

    margin: 0;

    color: #ffffff;

    font-size: 21px;

    font-weight: 500;

}


.monthly-description {

    color: var(--text-muted);

    font-size: 11px;

}


/* =========================================================
   SCROLL DA TABELA
========================================================= */

.table-wrapper {

    width: 100%;

    max-height: 420px;

    overflow: auto;

    border: 1px solid var(--border);

    border-radius: 13px;

}


/* Scroll */

.table-wrapper::-webkit-scrollbar {

    width: 7px;

    height: 7px;

}


.table-wrapper::-webkit-scrollbar-track {

    background: rgba(255, 255, 255, 0.02);

}


.table-wrapper::-webkit-scrollbar-thumb {

    background: rgba(255, 255, 255, 0.16);

    border-radius: 20px;

}


.table-wrapper::-webkit-scrollbar-thumb:hover {

    background: rgba(255, 255, 255, 0.25);

}


/* =========================================================
   TABELA
========================================================= */

.monthly-table {

    width: 100%;

    min-width: 1020px;

    border-collapse: collapse;

    color: var(--text-soft);

}


.monthly-table thead {

    position: sticky;

    top: 0;

    z-index: 5;

}


.monthly-table th {

    padding: 15px 16px;

    color: #ffffff;

    background: #171a1d;

    border-bottom: 1px solid var(--border);

    font-size: 11px;

    font-weight: 500;

    text-align: left;

    white-space: nowrap;

}


.monthly-table td {

    padding: 14px 16px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

    font-size: 12px;

    white-space: nowrap;

}


.monthly-table tbody tr {

    transition: 0.2s ease;

}


.monthly-table tbody tr:hover {

    background: rgba(255, 255, 255, 0.035);

}


.monthly-table tbody tr:last-child td {

    border-bottom: 0;

}


/* Mês */

.month-column {

    color: var(--text-muted);

}


/* Dividendos */

.dividend-column {

    color: #ffffff;

}


/* Cotas novas */

.new-quota-column {

    color: #ffffff;

    font-weight: 500;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .monthly-section {

        padding: 18px;

    }


    .monthly-header {

        align-items: flex-start;

        flex-direction: column;

        gap: 5px;

    }


    .monthly-header h3 {

        font-size: 19px;

    }


    .table-wrapper {

        max-height: 380px;

    }


    .monthly-table th,
    .monthly-table td {

        padding: 13px;

        font-size: 11px;

    }

}

/* =========================================================
   BUSCA DE FII - BRAPI
========================================================= */

.fii-search-wrapper {
    position: relative;
    z-index: 30;
}

.fii-search-input {
    position: relative;
}

.fii-input {
    padding-left: 58px;
    padding-right: 46px;
}

.fii-selected-logo {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 12px;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    border-radius: 9px;
    pointer-events: none;
}

.fii-selected-logo img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.fii-selected-logo span {
    font-size: 14px;
}

.fii-search-loader {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 15px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    border: 2px solid rgba(255, 255, 255, 0.13);
    border-top-color: rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.fii-search-loader.active {
    opacity: 1;
    animation: fiiSpin 0.7s linear infinite;
}

@keyframes fiiSpin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.fii-search-status {
    display: block;
    min-height: 16px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 10px;
}

.fii-search-status.selected {
    color: var(--text-soft);
}

.fii-search-results {
    position: absolute;
    z-index: 100;
    top: 58px;
    left: 0;
    right: 0;
    max-height: 330px;
    overflow-y: auto;
    padding: 7px;
    background: rgba(17, 20, 23, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.fii-search-results[hidden] {
    display: none;
}

.fii-result-item {
    width: 100%;
    min-height: 62px;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    color: var(--text-soft);
    background: transparent;
    border: 0;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.fii-result-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.065);
}

.fii-result-logo {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.fii-result-logo img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}

.fii-result-logo span {
    color: var(--text-muted);
    font-size: 15px;
}

.fii-result-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.fii-result-info strong {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
}

.fii-result-info small {
    overflow: hidden;
    color: var(--text-muted);
    font-size: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fii-result-price {
    padding-left: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.fii-search-message {
    padding: 14px 12px;
    color: var(--text-muted);
    font-size: 11px;
    text-align: center;
}

@media (max-width: 575.98px) {
    .fii-search-results {
        max-height: 280px;
    }

    .fii-result-item {
        grid-template-columns: 38px minmax(0, 1fr) auto;
        gap: 9px;
    }

    .fii-result-logo {
        width: 38px;
        height: 38px;
    }

    .fii-result-price {
        font-size: 11px;
    }
}

/* =========================================================
   TEMA CLARO - NOBRE INVEST
========================================================= */

.app-shell {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(17, 24, 39, 0.18);
    box-shadow: 0 22px 60px rgba(17, 24, 39, 0.10);
}

.sidebar {
    background: rgba(248, 249, 250, 0.96);
    border-right-color: rgba(17, 24, 39, 0.14);
}

.brand-symbol {
    color: var(--black);
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.22);
}

.brand-text strong,
.page-header h1,
.results-header h2,
.monthly-header h3,
.result-card strong,
.result-summary strong,
.calculated-value span,
.summary-item strong,
.reinvest-area strong {
    color: var(--black);
}

.sidebar-link {
    color: var(--text-soft);
}

.sidebar-link:hover {
    color: var(--black);
    background: rgba(17, 24, 39, 0.045);
}

.sidebar-link.active {
    color: var(--black);
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.18);
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}

.back-link:hover {
    color: var(--blue);
}

.simulator-card,
.current-summary,
.reinvest-area,
.result-card,
.result-summary,
.monthly-section {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.16);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.045);
}

.invest-input {
    color: #111111;
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.20);
}

.invest-input:hover {
    border-color: rgba(17, 24, 39, 0.34);
}

.invest-input:focus {
    color: #111111;
    background: #ffffff;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.10);
}

.invest-input::placeholder {
    color: #111111;
    opacity: 1;
}

.input-money>span {
    color: #111111;
}

.invest-select {
    color: #111111;
}

.invest-select option {
    color: #111111;
    background: #ffffff;
}

.calculated-value {
    background: #f8f9fa;
    border-color: rgba(17, 24, 39, 0.16);
}

.summary-divider {
    background: rgba(17, 24, 39, 0.13);
}

.slider {
    background: #d9dde1;
    border-color: rgba(17, 24, 39, 0.16);
}

.slider::before {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.18);
}

.switch input:checked+.slider {
    background: var(--green);
    border-color: var(--green);
}

.simulate-button {
    color: #ffffff;
    background: var(--black);
    border: 1px solid var(--black);
}

.simulate-button:hover {
    color: #ffffff;
    background: #2a2f34;
}

.period-badge {
    color: var(--text-soft);
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.16);
}

.result-card small,
.fii-search-status.selected {
    color: var(--green);
}

.monthly-table {
    color: var(--text-soft);
}

.table-wrapper {
    background: #ffffff;
    border-color: rgba(17, 24, 39, 0.16);
}

.monthly-table th {
    color: var(--black);
    background: #f1f3f5;
    border-bottom-color: rgba(17, 24, 39, 0.16);
}

.monthly-table td {
    border-bottom-color: rgba(17, 24, 39, 0.08);
}

.monthly-table tbody tr:hover {
    background: #f8fafb;
}

.month-column {
    color: var(--text-muted);
}

.dividend-column {
    color: var(--green);
    font-weight: 600;
}

.new-quota-column {
    color: var(--blue);
    font-weight: 600;
}

.monthly-table .final-row {
    background: #f3f6f8;
}

.monthly-table .final-row td {
    color: var(--black);
    border-top: 1px solid rgba(17, 24, 39, 0.20);
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f3f5f7;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #c4c9cf;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #aab0b7;
}

.fii-selected-logo,
.fii-result-logo {
    color: var(--text-muted);
    background: #f5f7f9;
    border-color: rgba(17, 24, 39, 0.14);
}

.fii-search-loader {
    border-color: rgba(17, 24, 39, 0.14);
    border-top-color: var(--blue);
}

.fii-search-results {
    background: rgba(255, 255, 255, 0.985);
    border-color: rgba(17, 24, 39, 0.16);
    box-shadow: 0 16px 40px rgba(17, 24, 39, 0.12);
}

.fii-result-item {
    color: var(--text-soft);
}

.fii-result-item:hover,
.fii-result-item.active {
    color: var(--black);
    background: var(--blue-soft);
}

.fii-result-info strong,
.fii-result-price {
    color: var(--black);
}

@media (max-width: 991.98px) {
    .mobile-navigation {
        background: rgba(255, 255, 255, 0.97);
        border-color: rgba(17, 24, 39, 0.18);
        box-shadow: 0 14px 36px rgba(17, 24, 39, 0.12);
    }

    .mobile-nav-item.active {
        color: var(--blue);
    }
}


/* =========================================================
   TEMA CLARO - AJUSTES FIIs (TELA CHEIA + OUTLINES PRETOS)
========================================================= */

.app-shell {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.page-label,
.page-header p,
.form-label,
.back-link,
.calculated-value small,
.summary-item span,
.reinvest-area p,
.result-card span,
.result-card small,
.result-summary span,
.investment-warning,
.fii-search-status,
.fii-result-info small,
.fii-result-logo span,
.month-column,
.brand-text span {
    color: var(--black);
}

.simulator-card,
.current-summary,
.reinvest-area,
.result-card,
.result-summary,
.monthly-section,
.table-wrapper,
.calculated-value {
    border-color: var(--black);
}

.invest-input,
.calculated-value,
.fii-selected-logo,
.fii-result-logo,
.fii-search-results {
    border-color: var(--black);
}

.invest-input:hover,
.invest-input:focus,
.fii-search-results {
    border-color: var(--black);
}

.invest-input::placeholder,
.input-money>span,
.invest-select,
.invest-select option {
    color: var(--black);
}

.summary-divider {
    background: rgba(17, 24, 39, 0.35);
}

/* =========================================================
   LISTA MÊS A MÊS - MOBILE
========================================================= */

.mobile-monthly-list {
    display: none;
}

@media (max-width: 767.98px) {

    /* No celular a tabela horizontal dá lugar a uma lista vertical. */
    .table-wrapper {
        display: none;
    }

    .mobile-monthly-list {
        display: flex;
        max-height: 520px;
        padding-right: 3px;
        flex-direction: column;
        gap: 10px;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .mobile-monthly-list::-webkit-scrollbar {
        width: 5px;
    }

    .mobile-monthly-list::-webkit-scrollbar-track {
        background: #f3f5f7;
    }

    .mobile-monthly-list::-webkit-scrollbar-thumb {
        background: #aeb4ba;
        border-radius: 20px;
    }

    .monthly-mobile-card {
        padding: 15px;
        background: #ffffff;
        border: 1px solid var(--black);
        border-radius: 13px;
    }

    .monthly-mobile-card-header {
        margin-bottom: 13px;
        padding-bottom: 11px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid rgba(17, 24, 39, 0.16);
    }

    .monthly-mobile-card-header strong {
        color: var(--black);
        font-size: 14px;
        font-weight: 600;
    }

    .monthly-mobile-card-header span {
        color: var(--green);
        font-size: 10px;
        font-weight: 600;
    }

    .monthly-mobile-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px 15px;
    }

    .monthly-mobile-item {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .monthly-mobile-item span {
        color: var(--black);
        font-size: 10px;
        line-height: 1.25;
    }

    .monthly-mobile-item strong {
        color: var(--black);
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .dividend-mobile-item strong {
        color: var(--green);
    }

    .quota-mobile-item strong {
        color: var(--blue);
    }

    .position-mobile-item {
        grid-column: 1 / -1;
        padding-top: 11px;
        border-top: 1px solid rgba(17, 24, 39, 0.12);
    }

    .position-mobile-item strong {
        font-size: 15px;
    }

    .final-mobile-card {
        background: #f7f9fa;
        border-width: 1.5px;
    }

}

@media (max-width: 380px) {
    .monthly-mobile-grid {
        grid-template-columns: 1fr;
    }

    .position-mobile-item {
        grid-column: auto;
    }
}
