/* =========================================
   ORÇAMENTOS PAGE
========================================= */

.nf-orcamentos-page{

    display:flex;
    flex-direction:column;
    gap:28px;

    width:100%;
    max-width:100%;
    min-width:0;
}

/* =========================================
   TOPBAR
========================================= */

.nf-budget-topbar{

    display:flex;
    flex-direction:column;
    gap:20px;

    width:100%;
    min-width:0;
}

/* =========================================
   ANO
========================================= */

.nf-budget-year{

    display:flex;
    align-items:center;
    gap:14px;
}

.nf-budget-year button{

    width:28px;
    height:28px;

    border:none;

    border-radius:10px;

    background:#efe7d7;

    color:#8b5e00;

    cursor:pointer;

    font-size:14px;

    font-weight:900;

    display:flex;

    align-items:center;

    justify-content:center;

    line-height:1;

    padding:0;

    flex:0 0 auto;

    transition:.25s ease;
}

.nf-budget-year button:hover{

    background:#e4d7bc;
}

.nf-budget-year span{

    font-size:22px;
    font-weight:900;

    color:#211404;
}

/* =========================================
   TABS MESES
========================================= */

.nf-budget-tabs{

    display:flex;
    gap:14px;
    justify-content:space-between;

    overflow-x:auto;
    overflow-y:hidden;

    width:100%;
    max-width:100%;

    scrollbar-width:none;

    padding-bottom:4px;
}

.nf-budget-tabs::-webkit-scrollbar{
    display:none;
}

.nf-budget-tabs button{

    border:none;

    background:#efe7d7;
    color:#6b5840;

    height:38px;

    padding:0 14px;

    border-radius:12px;

    font-size:12px;
    font-weight:700;

    cursor:pointer;

    white-space:nowrap;

    flex:1;

    transition:.25s ease;
}

.nf-budget-tabs button:hover{

    background:#e4d7bc;
}

.nf-budget-tabs button.active{

    background:#2b1600;
    color:#f6d58a;
}

/* =========================================
   GRUPOS
========================================= */

.nf-budget-groups{

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(240px,1fr));

    gap:20px;

    width:100%;

    align-items:start;
}

/* =========================================
   CARD GRUPO
========================================= */

.nf-budget-group{

    padding:14px;

    width:100%;
    min-width:0;
}

/* =========================================
   HEADER GRUPO
========================================= */

.nf-budget-group-header{

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:12px;

    margin-bottom:14px;
}

.nf-budget-group-header h3{

    font-size:16px;

    font-weight:900;

    color:#211404;

    margin-bottom:2px;
}

.nf-budget-group-header span{

    color:#7c6f60;

    font-size:12px;
}

.nf-budget-group-header button{

    width:40px;
    height:40px;

    border:none;

    border-radius:14px;

    background:#f3e2bf;

    color:#8b5e00;

    font-size:22px;

    font-weight:700;

    cursor:pointer;

    display:flex;

    align-items:center;

    justify-content:center;

    flex:0 0 auto;

    transition:.25s ease;
}

.nf-budget-group-header button:hover{

    background:#e8c878;

    transform:translateY(-2px);
}

/* =========================================
   ITEM
========================================= */

.nf-budget-item{

    background:#fffdf8;

    border:1px solid
    rgba(139,94,0,.08);

    border-radius:14px;

    padding:10px;

    display:flex;

    flex-direction:column;

    gap:8px;

    width:100%;

    min-width:0;
}

/* =========================================
   INFO
========================================= */

.nf-budget-item-info{

    display:flex;
    flex-direction:column;

    gap:4px;
}

.nf-budget-item-info strong{

    font-size:14px;

    color:#211404;

    line-height:1.2;
}

.nf-budget-item-info strong small{

    font-size:12px;

    font-weight:600;

    color:#8e8577;
}


/* =========================================
   VALORES
========================================= */

.nf-budget-values{

    display:grid;

    grid-template-columns:
    repeat(3,1fr);

    gap:6px;

    width:100%;
}

.nf-budget-values div{

    display:flex;
    flex-direction:column;

    gap:4px;

    min-width:0;
}

.nf-budget-values small{

    color:#8e8577;

    font-size:11px;
}

.nf-budget-values strong{

    color:#211404;

    font-size:13px;
}

/* =========================================
   PORCENTAGEM
========================================= */

.nf-budget-percent{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    height:24px;

    padding:0 8px;

    border-radius:999px;

    font-size:11px;

    font-weight:800;

    width:max-content;
}

.nf-budget-percent.success{

    background:#dcfce7;

    color:#166534;
}

.nf-budget-percent.warning{

    background:#fef3c7;

    color:#92400e;
}

.nf-budget-percent.danger{

    background:#fee2e2;

    color:#991b1b;
}

/* =========================================
   RESPONSIVO
========================================= */

@media(max-width:1024px){

    .nf-budget-groups{

        grid-template-columns:
        repeat(2,1fr);
    }

}

@media(max-width:768px){

    .nf-budget-groups{

        grid-template-columns:1fr;
    }

    .nf-budget-values{

        grid-template-columns:1fr;
    }

    .nf-budget-group{

        padding:16px;
    }

    .nf-budget-group-header h3{

        font-size:17px;
    }

}

/* =========================================
   FIX DEFINITIVO ORÇAMENTOS
========================================= */

.nf-orcamentos-page{

    width:calc(100vw - 340px);

    max-width:100%;
}

.nf-app.nf-sidebar-collapsed
.nf-orcamentos-page{

    width:calc(100vw - 140px);
}

@media(max-width:1024px){

    .nf-orcamentos-page{

        width:100%;
    }

}

/* =========================================
   REMOVE ACTIVE VERMELHO
========================================= */

.nf-budget-year button:focus,
.nf-budget-year button:active,

.nf-budget-tabs button:focus,
.nf-budget-tabs button:active{

    outline:none !important;

    box-shadow:none !important;

    background:#efe7d7 !important;

    color:#6b5840 !important;
}

.nf-budget-tabs button.active{

    background:#2b1600 !important;

    color:#f6d58a !important;
}

/* =========================================
   MOBILE ORÇAMENTOS
========================================= */

@media(max-width:768px){

    /* DASHBOARD 2x2 */

    .nf-dashboard-grid{

        display:grid !important;

        grid-template-columns:
        1fr 1fr !important;

        gap:14px !important;
    }

    .nf-dashboard-grid .nf-stat-card{

        min-height:auto !important;

        padding:16px !important;
    }

    .nf-dashboard-grid .nf-stat-card h2{

        font-size:22px !important;
    }

    /* MESES SCROLL */

    .nf-budget-tabs{

        overflow-x:auto !important;

        flex-wrap:nowrap !important;

        justify-content:flex-start !important;

        padding-bottom:6px;
    }

    .nf-budget-tabs button{

        flex:0 0 auto !important;
    }

    /* CARDS INTERNOS */

    .nf-budget-values{

        grid-template-columns:
        repeat(3,1fr) !important;

        gap:10px !important;
    }

    .nf-budget-values div{

        align-items:flex-start;
    }

    .nf-budget-values strong{

        font-size:12px !important;
    }

    .nf-budget-values small{

        font-size:10px !important;
    }

    .nf-budget-percent{

        height:22px !important;

        font-size:10px !important;

        padding:0 6px !important;
    }

}