/* =========================================
   METAS PAGE
========================================= */

.nf-metas-page{
    display:flex;
    flex-direction:column;
    gap:16px;
}

#nfGoalsMainContent{
    display:flex;
    flex-direction:column;
    gap:16px;
}

/* =========================================
   EMPTY STATE
========================================= */

.nf-goals-empty{

    display:flex;
    justify-content:center;

    padding:12px 0 8px;
}

.nf-goals-empty-card{

    width:100%;
    max-width:520px;

    padding:36px 28px;

    text-align:center;

    background:#fffdf8;

    border:1px solid
    rgba(139,94,0,.12);

    border-radius:20px;

    box-shadow:0 16px 36px
    rgba(43,22,0,.08);
}

.nf-goals-empty-icon{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:64px;
    height:64px;

    margin-bottom:14px;

    border-radius:18px;

    background:#f5efe3;

    font-size:30px;
    line-height:1;
}

.nf-goals-empty-card h2{

    margin:0 0 10px;

    font-size:22px;
    line-height:1.3;
    color:#211404;
}

.nf-goals-empty-card p{

    margin:0 0 22px;

    font-size:15px;
    line-height:1.6;
    color:#6b5840;
}

.nf-goals-empty-card
.nf-primary-btn{

    margin:0 auto;
}

/* =========================================
   RESUMO COMPACTO
========================================= */

.nf-goals-summary{

    display:grid;

    grid-template-columns:
    repeat(4,minmax(0,1fr));

    gap:12px;
}

.nf-goals-summary__item{

    background:#ffffff;

    border-radius:16px;

    padding:14px 16px;

    box-shadow:
    0 10px 30px
    rgba(0,0,0,.04);

    display:flex;

    flex-direction:column;

    gap:6px;

    border:1px solid
    rgba(139,94,0,.06);
}

.nf-goals-summary__item small{

    font-size:12px;

    color:#8e8577;

    font-weight:600;
}

.nf-goals-summary__item strong{

    font-size:18px;

    color:#211404;

    font-weight:800;

    line-height:1.2;

    word-break:break-word;
}

.nf-metas-toolbar-card{

    padding:14px 16px !important;

    margin:0;
}

.nf-metas-toolbar{

    display:flex;

    align-items:center;

    width:100%;

    justify-content:flex-start;

    gap:12px;

    flex-wrap:nowrap;
}

.nf-metas-page
.nf-metas-toolbar
.nf-cartoes-actions-start:not(.nf-hidden){

    display:flex;

    align-items:center;

    flex:0 0 auto;

    width:auto;

    flex-wrap:nowrap;

    gap:12px;
}

.nf-metas-page
.nf-metas-toolbar
.nf-cartoes-actions-start.nf-hidden{

    display:none !important;
}

.nf-metas-search-wrap{

    position:relative;

    margin-left:auto;

    flex:0 0 auto;

    width:300px;

    max-width:300px;

    min-width:0;
}

.nf-metas-search-icon{

    position:absolute;

    left:14px;

    top:50%;

    transform:translateY(-50%);

    display:flex;

    align-items:center;

    justify-content:center;

    pointer-events:none;

    color:#8b5e00;

    z-index:1;
}

.nf-metas-page
.nf-metas-search-input{

    width:100%;

    height:44px;

    border-radius:14px;

    border:1px solid #d7c3a1;

    background:#ffffff;

    padding:0 14px 0 38px;

    font-size:13px;

    color:#211404;

    font-family:'Inter',sans-serif;

    box-shadow:none;

    transition:
    border-color .2s ease,
    box-shadow .2s ease;

    appearance:none;

    -webkit-appearance:none;
}

.nf-metas-page
.nf-metas-search-input:hover{

    border-color:#c4ad8d;

    background:#ffffff;
}

.nf-metas-page
.nf-metas-search-input:focus{

    outline:none;

    border-color:#b9986f;

    background:#ffffff;

    box-shadow:0 0 0 3px
    rgba(215,195,161,.28);
}

.nf-metas-page
.nf-metas-search-input::placeholder{

    color:#9b8a75;

    opacity:1;
}

.nf-metas-columns-wrap{

    position:relative;

    z-index:2;
}

.nf-metas-page.is-goals-delete-mode
.nf-goals-summary,
.nf-metas-page.is-goals-delete-mode
.nf-metas-completed-section{

    opacity:.48;

    filter:blur(2px);

    pointer-events:none;

    transition:
    opacity .2s ease,
    filter .2s ease;
}

.nf-metas-page.is-goals-delete-mode
.nf-metas-search-wrap{

    display:none !important;
}

.nf-metas-page.is-goals-delete-mode
.nf-metas-columns-wrap{

    filter:none;

    opacity:1;
}

.nf-metas-column-empty{

    display:none;
}

/* =========================================
   FILTROS
========================================= */

.nf-metas-filters{

    display:flex;

    align-items:center;

    gap:14px;

    background:#fffaf2;

    padding:18px;

    border-radius:22px;

    border:1px solid
    rgba(139,94,0,.08);

    flex-wrap:wrap;
}

.nf-metas-filters .nf-input{

    flex:1;

    min-width:260px;
}

.nf-metas-filters .nf-select{

    width:220px;
}

.nf-metas-filters .nf-primary-btn{

    height:52px;

    padding:0 24px;
}

.nf-metas-filters .nf-secondary-btn{

    height:52px;

    padding:0 22px;
}

/* =========================================
   AÇÕES
========================================= */

.nf-metas-actions{

    display:flex;

    gap:14px;

    flex-wrap:wrap;

    background:#fffaf2;

    border-radius:20px;

    padding:18px;

    border:1px solid
    rgba(139,94,0,.08);
}

/* =========================================
   COLUNAS METAS
========================================= */

.nf-metas-columns{

    display:grid;

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

    gap:24px;

    align-items:start;
}

.nf-metas-columns > .nf-card{

    height:100%;

    background:#fffdf8;

    border:1px solid
    rgba(139,94,0,.08);

    box-shadow:
    0 8px 24px
    rgba(0,0,0,.03);
}


/* =========================================
   TÍTULOS
========================================= */

.nf-meta-column-title{

    font-size:13px;

    font-weight:700;

    letter-spacing:.06em;

    text-transform:uppercase;

    margin-bottom:12px;

    color:#9b8a75;

    display:flex;

    align-items:center;

    gap:6px;

    line-height:1.2;
}

/* =========================================
   TIPO DE APORTE
========================================= */

.nf-metas-deposit-type{

    display:flex;

    gap:10px;
}

.nf-metas-deposit-type__option{

    flex:1;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    min-height:44px;

    padding:0 14px;

    border-radius:14px;

    border:1px solid
    rgba(139,94,0,.12);

    background:#fffdf8;

    color:#6b5840;

    font-size:14px;

    font-weight:700;

    cursor:pointer;

    transition:
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.nf-metas-deposit-type__option input{

    position:absolute;

    opacity:0;

    pointer-events:none;
}

.nf-metas-deposit-type__option:has(input:checked){

    background:#efe7d7;

    border-color:
    rgba(139,94,0,.28);

    color:#211404;

    box-shadow:inset 0 0 0 1px
    rgba(243,211,138,.45);
}

.nf-metas-deposit-type__option:hover{

    border-color:
    rgba(139,94,0,.22);
}

/* =========================================
   HISTÓRICO — TABELA
========================================= */

.nf-history-modal{

    width:min(760px,92vw);

    max-width:92vw;

    max-height:min(
        88vh,
        calc(100dvh - 48px)
    );

    display:flex;

    flex-direction:column;

    overflow:hidden;
}

#historyModal.nf-modal{

    align-items:flex-start;

    justify-content:center;

    padding:24px 12px;

    overflow-y:auto;
}

#historyModal
.nf-history-modal-body{

    flex:1 1 auto;

    min-height:0;

    max-height:calc(
        min(
            88vh,
            calc(100dvh - 48px)
        ) - 120px
    );

    overflow:auto;

    -webkit-overflow-scrolling:touch;
}

.nf-goal-history-wrap{

    margin-top:4px;
}

.nf-goal-history-table{

    width:100%;

    border-collapse:separate;

    border-spacing:0 4px;

    min-width:0;
}

.nf-goal-history-table thead th{

    background:#2a1600;

    color:#ffffff !important;

    font-size:11px;

    font-weight:800;

    text-transform:uppercase;

    letter-spacing:.05em;

    padding:11px 14px;

    border:none;

    text-align:left;
}

.nf-goal-history-table thead th:first-child{

    border-radius:12px 0 0 12px;
}

.nf-goal-history-table thead th:last-child{

    border-radius:0 12px 12px 0;

}

.nf-goal-history-row td{

    padding:12px 14px;

    background:#fffdf8;

    border:none;

    font-size:13px;

    color:#211404;

    vertical-align:middle;
}

.nf-goal-history-row td:first-child{

    border-radius:12px 0 0 12px;

    font-weight:600;

    color:#6b5840;
}

.nf-goal-history-row td:last-child{

    border-radius:0 12px 12px 0;
}

.nf-goal-history-amount{

    font-weight:800;

    color:#211404;
}

.nf-goal-history-actions{

    display:flex;

    align-items:center;

    justify-content:flex-end;

    gap:10px;
}

.nf-goal-history-count{

    font-size:12px;

    font-weight:600;

    color:#9b8a75;
}

.nf-goal-history-toggle{

    height:26px !important;

    min-height:26px !important;

    padding:2px 8px !important;

    font-size:11px !important;

    font-weight:600 !important;

    border-radius:8px !important;

    line-height:1.2;

    box-shadow:none !important;
}

.nf-goal-history-detail{

    display:none;
}

.nf-goal-history-detail.is-open{

    display:table-row;
}

.nf-goal-history-detail td{

    padding:0 10px 10px;

    background:transparent;

    border:none;
}

.nf-goal-history-dist-list{

    background:#fffaf2;

    border:1px solid
    rgba(139,94,0,.08);

    border-radius:12px;

    padding:10px 12px;

    display:flex;

    flex-direction:column;

    gap:8px;
}

.nf-goal-history-dist-item{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    padding:8px 10px;

    background:#ffffff;

    border-radius:10px;

    border:1px solid
    rgba(139,94,0,.06);
}

.nf-goal-history-dist-item strong{

    display:block;

    font-size:13px;

    color:#211404;
}

.nf-goal-history-dist-item small{

    display:block;

    font-size:11px;

    color:#9b8a75;

    margin-top:2px;
}

.nf-goal-history-dist-item span{

    font-size:13px;

    font-weight:800;

    color:#8b5e00;

    white-space:nowrap;
}

.nf-goal-history-dist-empty{

    margin:0;

    font-size:13px;

    color:#9b8a75;
}
/* =========================================
   CARD META
========================================= */

.nf-meta-card{

    background:#fffdf8;

    border:1px solid
    rgba(139,94,0,.08);

    border-radius:18px;

    padding:18px;

    display:flex;

    flex-direction:column;

    gap:10px;

    transition:.25s ease;
}

.nf-meta-card:hover{

    transform:translateY(-4px);

    box-shadow:
    0 12px 24px
    rgba(18,11,2,.06);
}

.nf-meta-card h4{

    font-size:17px;

    font-weight:800;

    color:#211404;

    line-height:1.2;
}

.nf-meta-card strong{

    font-size:14px;

    color:#8b5e00;

    font-weight:700;
}

/* =========================================
   BARRA
========================================= */

.nf-goal-bar{

    width:100%;

    height:10px;

    border-radius:999px;

    background:#ece5d8;

    overflow:hidden;

    margin-top:2px;
}

.nf-goal-progress{

    height:100%;

    border-radius:999px;

    background:
    linear-gradient(
        90deg,
        #b8860b,
        #e8c878
    );

    box-shadow:
    0 0 12px
    rgba(200,155,43,.25);
}

/* =========================================
   CONCLUÍDAS
========================================= */

.nf-concluded-goals{

    display:flex;

    flex-direction:column;

    gap:16px;

    margin-top:22px;
}

.nf-concluded-item{

    background:#fffdf8;

    border:1px solid
    rgba(139,94,0,.08);

    border-radius:16px;

    padding:18px 20px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    transition:.2s ease;
}

.nf-concluded-item:hover{

    transform:translateY(-2px);

    box-shadow:
    0 10px 20px
    rgba(18,11,2,.05);
}

.nf-concluded-item strong{

    color:#211404;
}

.nf-concluded-item span{

    color:#7c6f60;

    font-size:14px;
}

/* =========================================
   RESPONSIVO
========================================= */

@media(max-width:1024px){

    .nf-metas-columns{

        grid-template-columns:1fr;
    }

}

@media(max-width:768px){

    .nf-metas-toolbar{
        flex-wrap:wrap;
        gap:10px;
    }

    .nf-metas-search-wrap{
        order:3;
        width:100%;
        max-width:none;
        margin-left:0;
    }

    .nf-goals-summary{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .nf-metas-actions{

        flex-direction:column;
    }

    .nf-success-btn,
    .nf-danger-btn,
    .nf-primary-btn,
    .nf-secondary-btn{

        width:100%;
    }

    .nf-concluded-item{

        flex-direction:column;

        align-items:flex-start;

        gap:10px;
    }
}

@media(max-width:768px){

    .nf-metas-filters{

        flex-direction:column;

        align-items:stretch;
    }

    .nf-metas-filters .nf-select{

        width:100%;
    }

}

/* =========================================
   FILTROS PREMIUM
========================================= */

.nf-metas-filters{

    display:flex !important;

    align-items:center !important;

    gap:14px !important;

    flex-wrap:wrap !important;

    background:#fffaf2 !important;

    padding:18px !important;

    border-radius:22px !important;

    border:1px solid
    rgba(139,94,0,.08) !important;
}

.nf-metas-filters .nf-input{

    flex:1 !important;

    min-width:unset !important;
}

.nf-metas-filters .nf-select{

    width:220px !important;

    flex:0 0 auto !important;
}

.nf-metas-filters .nf-primary-btn,
.nf-metas-filters .nf-secondary-btn{

    width:auto !important;

    flex:0 0 auto !important;
}

@media(max-width:768px){

    .nf-metas-filters{

        flex-direction:column !important;

        align-items:stretch !important;
    }

    .nf-metas-filters .nf-select{

        width:100% !important;
    }
}

/* =========================================
   BOTÕES SECUNDÁRIOS METAS
========================================= */

/* =========================================
   INPUT BUSCAR META
========================================= */

.nf-metas-filters .nf-input{

    height:52px !important;

    border-radius:16px !important;

    border:1px solid
    #d8d2c7 !important;

    background:#ffffff !important;

    box-shadow:none !important;

    outline:none !important;

    padding:0 18px !important;

    font-size:15px !important;

    color:#211404 !important;
}

.nf-metas-filters .nf-input:focus{

    border-color:#c89b2b !important;

    box-shadow:
    0 0 0 4px
    rgba(200,155,43,.12) !important;
}

/* =========================================
   SELECT ORDENAR
========================================= */

.nf-metas-filters .nf-select{

    height:52px !important;

    border-radius:16px !important;

    border:1px solid
    #d8d2c7 !important;

    background:#ffffff !important;

    box-shadow:none !important;

    outline:none !important;

    padding:0 16px !important;

    font-size:15px !important;

    color:#211404 !important;
}

.nf-metas-filters .nf-select:focus{

    border-color:#c89b2b !important;

    box-shadow:
    0 0 0 4px
    rgba(200,155,43,.12) !important;
}

/* =========================================
   DESKTOP — TOOLBAR UMA LINHA
========================================= */

@media(min-width:769px){

    .nf-metas-page
    .nf-metas-toolbar{

        display:grid !important;

        grid-template-columns:
        minmax(0,1fr)
        auto;

        align-items:center;

        column-gap:12px;

        flex-wrap:unset !important;
    }

    .nf-metas-page
    .nf-metas-toolbar
    .nf-cartoes-actions-start:not(.nf-hidden){

        display:flex !important;

        grid-column:1;

        grid-row:1;

        justify-self:start;

        flex:0 0 auto !important;

        width:auto !important;

        max-width:100%;

        flex-wrap:nowrap !important;
    }

    .nf-metas-page
    .nf-metas-toolbar
    .nf-cartoes-actions-start.nf-hidden{

        display:none !important;
    }

    .nf-metas-page
    .nf-metas-search-wrap{

        grid-column:2;

        grid-row:1;

        justify-self:end;

        margin-left:0 !important;

        flex:unset !important;

        flex-basis:auto !important;

        width:300px !important;

        max-width:300px !important;

        order:unset !important;
    }

    .nf-metas-page
    .nf-metas-toolbar
    .nf-primary-btn,
    .nf-metas-page
    .nf-metas-toolbar
    .nf-secondary-btn{

        white-space:nowrap;
    }
}

/* =========================================
   MOBILE DASHBOARD METAS
========================================= */

@media(max-width:768px){

    .nf-goals-summary{

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

        gap:10px;
    }

    .nf-goals-summary__item{

        padding:12px 14px;
    }

    .nf-goals-summary__item strong{

        font-size:16px;
    }

    .nf-metas-page
    .nf-metas-toolbar{

        display:flex !important;

        flex-direction:column;

        align-items:stretch;

        gap:10px;

        flex-wrap:nowrap;
    }

    .nf-metas-page
    .nf-metas-toolbar
    #nfGoalActionsDefault:not(.nf-hidden),
    .nf-metas-page
    .nf-metas-toolbar
    #nfGoalActionsSelect:not(.nf-hidden){

        display:grid !important;

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

        gap:10px;

        width:100%;

        flex-wrap:unset;
    }

    .nf-metas-page
    .nf-metas-toolbar
    #nfGoalActionsDefault
    .nf-primary-btn,
    .nf-metas-page
    .nf-metas-toolbar
    #nfGoalActionsDefault
    .nf-secondary-btn,
    .nf-metas-page
    .nf-metas-toolbar
    #nfGoalActionsSelect
    .nf-secondary-btn,
    .nf-metas-page
    .nf-metas-toolbar
    #nfGoalActionsSelect
    .nf-danger-btn{

        width:100%;

        min-width:0;

        justify-content:center;

        text-align:center;
    }

    .nf-metas-page
    .nf-metas-search-wrap{

        margin-left:0;

        flex:unset;

        flex-basis:auto;

        width:100%;

        max-width:none;

        order:unset;
    }

    .nf-goal-card__footer{

        grid-template-columns:1fr;

        gap:6px;
    }
}

/* =========================================
   TOGGLE FILTROS
========================================= */


@media(max-width:768px){

    .nf-metas-filters .nf-primary-btn,
    .nf-metas-filters .nf-secondary-btn{

        width:auto !important;

        flex:1;
    }

    .nf-metas-filters{

        gap:12px;
    }
}

/* =========================================
   BOTÃO FILTRAR MOBILE
========================================= */

.nf-toggle-filters{

    background:#efe7d7 !important;

    color:#6b5840 !important;

    border:1px solid
    rgba(139,94,0,.10) !important;

    box-shadow:none !important;

    width:100%;
}

.nf-toggle-filters:hover{

    background:#e4d7bc !important;

    color:#211404 !important;
}

@media(max-width:768px){

    .nf-metas-filters .nf-input{

        width:100% !important;

        min-width:100% !important;
    }

}

@media(max-width:768px){

    .nf-metas-filters .nf-primary-btn,
    .nf-metas-filters .nf-secondary-btn{

        width:calc(50% - 6px) !important;

        flex:none !important;
    }

    .nf-metas-filters{

        row-gap:14px !important;
    }

}

/* =========================================
   MOBILE FILTROS METAS
========================================= */

@media(max-width:768px){

    .nf-metas-filters .nf-input{

        width:100% !important;

        min-width:100% !important;

        height:58px !important;

        padding:0 20px !important;

        font-size:16px !important;
    }

    .nf-metas-filters .nf-select{

        width:100% !important;

        height:58px !important;
    }


}

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

.nf-metas-filters .nf-secondary-btn{

    background:#efe7d7 !important;

    color:#6b5840 !important;

    border:1px solid
    rgba(139,94,0,.10) !important;

    box-shadow:none !important;
}

.nf-metas-filters .nf-secondary-btn:hover{

    background:#e4d7bc !important;

    color:#211404 !important;
}

/* =========================================
   MOBILE FILTROS AJUSTADO
========================================= */

@media(max-width:768px){

    .nf-metas-filters{

        display:grid !important;

        grid-template-columns:
        1fr 1fr !important;

        gap:14px !important;
    }

    .nf-metas-filters .nf-input{

        grid-column:1 / -1;

        width:100% !important;

        min-width:100% !important;

        height:58px !important;

        padding:0 20px !important;

        font-size:16px !important;
    }

    .nf-metas-filters .nf-select{

        grid-column:1 / -1;

        width:100% !important;

        height:58px !important;
    }

    .nf-metas-filters .nf-primary-btn,
    .nf-metas-filters .nf-secondary-btn{

        width:100% !important;

        height:52px !important;
    }

}

/* =========================================
   TOGGLE FILTROS MOBILE
========================================= */

@media(max-width:768px){

    .nf-hidden-filters{
        display:none !important;
    }

    .nf-show-filters{
        display:grid !important;

        grid-template-columns:
        1fr 1fr !important;

        gap:14px !important;
    }

}

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

.nf-toggle-filters{
    display:none !important;
}

@media(max-width:768px){

    .nf-toggle-filters{
        display:flex !important;

        align-items:center;

        justify-content:center;
    }

}

/* =========================================
   AÇÕES MOBILE
========================================= */

@media(max-width:768px){

    .nf-metas-actions{

        display:grid !important;

        grid-template-columns:
        1fr 1fr !important;

        gap:14px !important;
    }

    .nf-metas-actions button{

        width:100% !important;
    }

}

/* =========================================
   GOAL CARD
========================================= */

.nf-goal-card__select{

    display:none;

    position:absolute;

    top:12px;

    right:12px;

    z-index:2;
}

.nf-goal-card__select input{

    position:absolute;

    opacity:0;

    pointer-events:none;
}

.nf-goal-card__select span{

    width:22px;

    height:22px;

    border-radius:7px;

    border:2px solid
    rgba(139,94,0,.25);

    background:#fff;

    display:block;
}

.nf-goal-card__select input:checked + span{

    background:#8b5e00;

    border-color:#8b5e00;

    box-shadow:inset 0 0 0 2px #fff;
}

.nf-goals-select-mode
.nf-goal-card__select{

    display:block;
}

.nf-goals-select-mode--delete
.nf-goal-card-premium{

    cursor:pointer;
}

.nf-goal-card__top{

    display:flex;

    align-items:flex-start;

    justify-content:space-between;

    gap:10px;

    padding-right:28px;
}

.nf-goal-card__title{

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    gap:4px;

    min-width:0;
}

.nf-goal-card__description{

    margin:0;

    font-size:12px;

    line-height:1.35;

    color:#7a6f63;
}

.nf-metas-page
.nf-goal-card-premium.nf-goal-card--achieved{

    background:
    linear-gradient(
        #fffef6,
        #fffef6
    )
    padding-box,
    linear-gradient(
        180deg,
        #f3d38a,
        #8B5E00
    )
    border-box;

    box-shadow:
    0 10px 28px
    rgba(139,94,0,.10);
}

.nf-metas-page
.nf-goal-card--achieved
.nf-goal-card__type{

    background:#fff3d4;

    border-color:
    rgba(201,162,39,.35);

    color:#7a5200;
}

.nf-metas-page
.nf-goal-card--achieved
.nf-goal-progress-fill{

    background:linear-gradient(
        90deg,
        #f3d38a,
        #c9a227
    );
}

.nf-metas-page
.nf-goal-card-premium{

    border:1.5px solid transparent;

    background:
    linear-gradient(
        #ffffff,
        #ffffff
    )
    padding-box,
    linear-gradient(
        180deg,
        #D7C3A1,
        #8B5E00
    )
    border-box;

    box-shadow:
    0 8px 20px
    rgba(18,11,2,.04);
}

.nf-metas-page
.nf-goal-card-premium:hover{

    transform:translateY(-2px);

    box-shadow:
    0 10px 24px
    rgba(18,11,2,.07);

    background:
    linear-gradient(
        #ffffff,
        #ffffff
    )
    padding-box,
    linear-gradient(
        180deg,
        #D7C3A1,
        #8B5E00
    )
    border-box;
}

.nf-metas-page
.nf-goal-card-premium h3{

    color:#211404;

    font-size:20px;

    font-weight:900;

    margin:0;

    line-height:1.15;

    letter-spacing:-.03em;
}

.nf-goal-card__type{

    font-size:11px;

    font-weight:700;

    color:#8b5e00;

    background:#fff6e5;

    border:1px solid
    rgba(139,94,0,.12);

    border-radius:999px;

    padding:4px 10px;

    white-space:nowrap;
}

.nf-goal-card__label{

    display:block;

    font-size:11px;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.35px;

    color:#9b8a75;

    margin-bottom:4px;
}

.nf-metas-page
.nf-goal-card__saved p{

    margin:0;

    font-size:14px;

    font-weight:600;

    color:#6b5840;

    line-height:1.35;
}

.nf-goal-card__progress-head{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:8px;

    margin-bottom:8px;
}

.nf-metas-page
.nf-goal-card__percent{

    font-size:17px;

    font-weight:900;

    background:linear-gradient(
        90deg,
        #D7C3A1,
        #8B5E00
    );

    -webkit-background-clip:text;

    background-clip:text;

    -webkit-text-fill-color:transparent;

    color:transparent;
}

.nf-metas-page
.nf-goal-card-premium
.nf-goal-progress{

    height:10px;

    background:#f3ead8;

    border-radius:999px;

    overflow:hidden;
}

.nf-metas-page
.nf-goal-card-premium
.nf-goal-progress-fill{

    background:linear-gradient(
        90deg,
        #D7C3A1,
        #8B5E00
    );

    height:100%;

    border-radius:999px;
}

.nf-goal-card__footer{

    display:grid;

    grid-template-columns:repeat(3,minmax(0,1fr));

    gap:8px;

    padding-top:4px;

    border-top:1px solid
    rgba(139,94,0,.08);
}

.nf-goal-card__footer span{

    font-size:12px;

    font-weight:700;

    color:#211404;

    line-height:1.35;
}

.nf-goal-card__footer small{

    display:block;

    font-size:10px;

    font-weight:600;

    color:#9b8a75;

    text-transform:uppercase;

    letter-spacing:.3px;

    margin-bottom:2px;
}

.nf-metas-page
.nf-goal-card__complete{

    width:100%;

    height:40px;

    min-height:40px;

    margin-top:2px;

    font-size:13px;
}

.nf-completed-title{

    font-size:16px;

    font-weight:700;

    margin-bottom:14px;
}

/* =========================================
   COMPLETED TABLE
========================================= */

.nf-completed-table{

    margin-top:20px;

    border-radius:22px;

    overflow:hidden;

    border:1px solid
    rgba(139,94,0,.08);

    background:#fffdf8;
}

/* HEADER */

.nf-completed-header{

    display:grid;

    grid-template-columns:
    2fr 1fr 1fr 1fr;

    background:#2a1600;

    color:#ffffff;

    font-size:13px;

    font-weight:800;

    text-transform:uppercase;

    padding:18px 24px;
}

.nf-completed-header div{

    color:#ffffff;
}

/* BODY */

#completedGoals{

    max-height:620px;

    overflow-y:auto;
}

/* ROW */

.nf-completed-row{

    display:grid;

    grid-template-columns:
    2fr 1fr 1fr 1fr;

    align-items:center;

    padding:10px 18px;

    border-bottom:1px solid
    rgba(201,162,39,.14);

    transition:.2s ease;

    background:linear-gradient(
        90deg,
        #fffef6,
        #fffdf8
    );

    min-height:48px;
}

.nf-completed-row:hover{

    background:#fff8ec;
}

.nf-completed-row
.nf-completed-name{

    color:#7a5200;
}

/* COLS */

.nf-completed-col{

    color:#211404;

    font-size:13px;

    font-weight:600;

    line-height:1.2;
}

.nf-completed-name{

    font-weight:800;
}

/* SCROLL */

#completedGoals::-webkit-scrollbar{

    width:8px;
}

#completedGoals::-webkit-scrollbar-thumb{

    background:#c89b2b;

    border-radius:999px;
}

/* MOBILE */

@media(max-width:768px){

    .nf-completed-header{

        display:none;
    }

    .nf-completed-row{

        grid-template-columns:1fr;

        gap:8px;
    }

}

.nf-history-table{

    display:flex;
    flex-direction:column;
    gap:10px;

    max-height:400px;
    overflow-y:auto;

    margin-top:25px;
}

.nf-history-row{

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:10px 18px;

    min-height:58px;

    background:#f7f3ed;

    border:1px solid #e6dccb;

    border-radius:16px;

    margin-bottom:8px;

}

.nf-history-value{

    font-size:16px;
    font-weight:700;

    color:#2b2118;
}

.nf-history-date{

    font-size:14px;
    color:#7c6f60;
}

.nf-history-info{

    width:30px;
    height:30px;

    border:none;

    border-radius:50%;

    background:#2c1400;

    color:#fff;

    display:flex;
    align-items:center;
    justify-content:center;

    font-size:20px;

    padding:0;

    cursor:pointer;

    flex-shrink:0;

}

/* legacy duplicate removed — see HISTÓRICO section above */

#nfGoalAlert{

    position:fixed;

    inset:0;

    background:rgba(
        0,
        0,
        0,
        0.35
    );

    display:flex;

    align-items:center;

    justify-content:center;

    z-index:999999;
}

.nf-goal-alert-box{

    width:420px;
    max-width:90%;

    background:#fff;

    border-radius:24px;

    padding:30px;

    box-shadow:
    0 20px 60px rgba(
        0,
        0,
        0,
        0.2
    );
}

.nf-goal-alert-text{

    font-size:18px;

    color:#2b2118;

    line-height:1.5;

    margin-bottom:25px;
}

.nf-goal-alert-button{

    width:100%;

    height:52px;

    border:none;

    border-radius:16px;

    background:#8b4513;

    color:#fff;

    font-size:16px;

    font-weight:700;

    cursor:pointer;
}

.nf-history-header{

    position:relative;

}

.nf-history-close{

    position:absolute;

    top:-6px;
    right:-6px;

    width:38px;
    height:38px;

    min-width:38px;
    min-height:38px;

    padding:0;

    border:none !important;

    border-radius:12px;

    background:transparent !important;

    background-color:transparent !important;

    background-image:none !important;

    color:#8b5e00 !important;

    font-size:18px;

    font-weight:700;

    line-height:1;

    cursor:pointer;

    display:inline-flex;
    align-items:center;
    justify-content:center;

    z-index:10;

    appearance:none !important;

    -webkit-appearance:none !important;

    outline:none !important;

    box-shadow:none !important;

    filter:none !important;

    transition:
    background-color .2s ease,
    color .2s ease;
}

.nf-history-close:hover,
.nf-history-close:focus,
.nf-history-close:focus-visible{

    background:#efe7d7 !important;

    background-color:#efe7d7 !important;

    color:#211404 !important;
}

.nf-history-close:active{

    background:#e8d8b7 !important;

    background-color:#e8d8b7 !important;

    color:#211404 !important;
}

.nf-history-info-modal{

    width:520px !important;

    max-width:520px !important;

    min-width:520px !important;

    box-sizing:border-box !important;

    max-height:85vh;

    overflow-y:auto;

    border-radius:32px;

    padding:12px !important;
}

#historyInfoModal .nf-modal-content{

    width:520px !important;

    max-width:520px !important;

    min-width:520px !important;
}

.nf-history-info-top{

    margin-bottom:30px;

}

.nf-history-info-top h2{

    font-size:18px !important;

    margin:0;

}

.nf-history-info-top p{

    margin:8px 0 0;

    color:#7a6d5d;

    font-size:16px;

}

.nf-history-total{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:25px;

    margin-bottom:30px;

    border:1px solid #eadfce;

    border-radius:22px;

    background:#faf8f4;

}

.nf-history-total strong{

    f font-size:16px !important;

    color:#2f7d32;

}

.nf-history-total span{

     font-size:12px !important;

    color:#6d6255;

}

.nf-history-distribution{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:8px 12px !important;

    margin-bottom:10px;

    border:1px solid #eadfce;

    border-radius:22px;

    background:#faf8f4;

}

.nf-history-distribution strong{

    display:block;

    font-size:14px !important;

    color:#2b1400;

}

.nf-history-distribution small{

    display:block;

    margin-top:6px;

    font-size:10px !important;

    color:#8a7c6a;

}

.nf-history-distribution > strong{

    font-size:22px;

    color:#2b1400;

}

@media(max-width:768px){

    .nf-history-info-modal{

        width:95vw;

        max-height:90vh;

        padding:25px;

    }

    .nf-history-total{

        flex-direction:column;

        align-items:flex-start;

        gap:10px;

    }

    .nf-history-total strong{

        font-size:28px;

    }

    .nf-history-distribution{

        flex-direction:column;

        align-items:flex-start;

        gap:12px;

    }

    .nf-history-distribution > strong{

        font-size:18px;

    }

}

.nf-goal-history-meta-row{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:12px;

    padding:8px 0;

    border-bottom:1px dashed #eadfce;

    font-size:13px;

    color:#6b5840;
}

.nf-goal-history-meta-row strong{

    color:#211404;

    font-weight:700;
}

.nf-metas-deposit-available {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f5f1ea;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.nf-metas-deposit-insufficient {
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    background: #fff4f4;
    border: 1px solid #f3c1c1;
}

.nf-metas-deposit-insufficient p {
    margin: 0 0 12px;
    color: #8a1f1f;
}

#closeHistoryModal{
    display:none !important;
}

.nf-input-readonly{

    background:#f8f4ee !important;

    color:#7c6f60 !important;

    cursor:not-allowed;
}