/* =========================================================
   CALCULADORA DE SALÁRIO LÍQUIDO
   CSS ESPECÍFICO DA FERRAMENTA
   ========================================================= */


/* =========================================================
   ÁREA PRINCIPAL DA FERRAMENTA
   ========================================================= */

.salary-tool {

    max-width: 960px;

    margin: 0 auto;

}


/* =========================================================
   INTRODUÇÃO DAS SEÇÕES
   ========================================================= */

.section-intro {

    margin:
        -7px
        0
        18px;

    font-size: .88rem;

    line-height: 1.5;

}


/* =========================================================
   FORMULÁRIO
   ========================================================= */

.form-grid {

    display: grid;

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

    gap: 16px;

}


.form-grid.three {

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

}


.field {

    display: flex;

    flex-direction: column;

}


.field.full {

    grid-column:
        1 / -1;

}


.field label {

    margin-bottom: 6px;

    font-size: .84rem;

    font-weight: 600;

}


.field input,
.field select {

    width: 100%;

    min-height: 43px;

    box-sizing: border-box;

    padding:
        9px
        11px;

    border:
        1px solid
        #cbd5e1;

    border-radius: 8px;

    background: #fff;

    color: #1e293b;

    font: inherit;

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

}


.field input:focus,
.field select:focus {

    outline: none;

    border-color:
        #2563eb;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .12);

}


.field small {

    margin-top: 5px;

    font-size: .76rem;

    line-height: 1.4;

    color:
        #64748b;

}


/* =========================================================
   AVISO ESPECÍFICO
   ========================================================= */

.salary-notice {

    margin-top: 16px;

    padding:
        14px
        16px;

    border:
        1px solid
        #e2e8f0;

    border-radius: 8px;

    background:
        #f8fafc;

    color:
        #64748b;

    font-size: .83rem;

    line-height: 1.5;

}


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

.salary-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 24px;

}


.tool-button {

    min-height: 43px;

    padding:
        9px
        19px;

    border:
        1px solid
        #2563eb;

    border-radius: 8px;

    background:
        #2563eb;

    color:
        #fff;

    font: inherit;

    font-size: .9rem;

    font-weight: 600;

    cursor: pointer;

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

}


.tool-button:hover {

    border-color:
        #1d4ed8;

    background:
        #1d4ed8;

}


.tool-button:active {

    transform:
        translateY(1px);

}


/* =========================================================
   RESULTADO
   ========================================================= */

.result {

    display: none;

    margin-top: 32px;

    padding-top: 28px;

    border-top:
        1px solid
        #e2e8f0;

}


.result.active {

    display: block;

}


.result-total {

    padding: 27px;

    border:
        1px solid
        #e2e8f0;

    border-radius: 14px;

    background:
        #f8fafc;

    text-align: center;

}


.result-total-label {

    margin-bottom: 8px;

    color:
        #64748b;

    font-size: .92rem;

}


.result-total-value {

    color:
        #0f172a;

    font-size: 2.8rem;

    line-height: 1.1;

    font-weight: 700;

}


.result-total-note {

    margin-top: 11px;

    color:
        #64748b;

    font-size: .83rem;

    line-height: 1.5;

}


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

.summary-grid {

    display: grid;

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

    gap: 10px;

    margin:
        20px
        0;

}


.summary-card {

    padding: 15px;

    border:
        1px solid
        #e2e8f0;

    border-radius: 10px;

    background:
        #fff;

}


.summary-label {

    margin-bottom: 6px;

    color:
        #64748b;

    font-size: .78rem;

}


.summary-value {

    color:
        #0f172a;

    font-size: 1.08rem;

    font-weight: 700;

}


.negative {

    color:
        #b42318 !important;

}


.positive {

    color:
        #176b2c !important;

}


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

.result-table-wrapper {

    overflow-x: auto;

}


.result-table {

    width: 100%;

    border-collapse: collapse;

}


.result-table th,
.result-table td {

    padding:
        11px
        10px;

    border-bottom:
        1px solid
        #e2e8f0;

    text-align: left;

}


.result-table th:last-child,
.result-table td:last-child {

    text-align: right;

    white-space: nowrap;

}


.result-table th {

    color:
        #64748b;

    font-size: .82rem;

}


.result-table .total td {

    border-top:
        2px solid
        #cbd5e1;

    color:
        #0f172a;

    font-size: 1.02rem;

    font-weight: 700;

}


/* =========================================================
   BARRA DE PERCENTUAL
   ========================================================= */

.percentage-box {

    margin:
        20px
        0;

    padding:
        18px;

    border:
        1px solid
        #e2e8f0;

    border-radius: 10px;

    background:
        #fff;

}


.percentage-header {

    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 9px;

    color:
        #475569;

    font-size: .83rem;

}


.percentage-header strong {

    color:
        #0f172a;

}


.percentage-bar {

    height: 10px;

    overflow: hidden;

    border-radius: 20px;

    background:
        #e2e8f0;

}


.percentage-fill {

    width: 0;

    height: 100%;

    background:
        #2563eb;

    transition:
        width .4s ease;

}


/* =========================================================
   MEMÓRIA DE CÁLCULO
   ========================================================= */

.calculation-box {

    margin-top: 24px;

    padding: 18px;

    border:
        1px solid
        #e2e8f0;

    border-radius: 10px;

    background:
        #f8fafc;

}


.calculation-box h2 {

    margin:
        0
        0
        14px;

    color:
        #0f172a;

    font-size: 1.12rem;

}


.calculation-item {

    padding:
        10px
        0;

    border-bottom:
        1px solid
        #e2e8f0;

    color:
        #475569;

    font-size: .87rem;

    line-height: 1.55;

}


.calculation-item:last-child {

    border-bottom: 0;

}


.calculation-title {

    display: block;

    margin-bottom: 3px;

    color:
        #1e293b;

    font-weight: 700;

}


/* =========================================================
   AÇÕES DO RESULTADO
   ========================================================= */

.result-actions {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 23px;

}


/* =========================================================
   RESPONSABILIDADE
   ========================================================= */

.legal-notice {

    margin-top: 25px;

    padding: 17px;

    border:
        1px solid
        #e2e8f0;

    border-radius: 10px;

    background:
        #f8fafc;

    color:
        #64748b;

    font-size: .82rem;

    line-height: 1.55;

}


.legal-notice strong {

    color:
        #1e293b;

}


/* =========================================================
   RESPONSIVIDADE
   ========================================================= */

@media (max-width: 720px) {

    .form-grid,
    .form-grid.three {

        grid-template-columns:
            1fr;

    }


    .field.full {

        grid-column:
            auto;

    }


    .summary-grid {

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

    }

}


@media (max-width: 520px) {

    .summary-grid {

        grid-template-columns:
            1fr;

    }


    .salary-actions,
    .result-actions {

        flex-direction:
            column;

    }


    .tool-button {

        width:
            100%;

    }


    .result-total-value {

        font-size:
            2.25rem;

    }


    .percentage-header {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 5px;

    }

}


/* =========================================================
   IMPRESSÃO
   ========================================================= */

@media print {

    header,
    footer,
    .tool-breadcrumb,
    .tool-header,
    .salary-tool > .section-card,
    .salary-actions,
    .result-actions,
    .ad-container {

        display:
            none !important;

    }


    .result {

        display:
            block !important;

        margin-top: 0;

        border:
            0;

        padding-top:
            0;

    }


    .result-total {

        background:
            #fff;

    }


    body {

        background:
            #fff;

    }

}