/* ==========================================================================
   Estilos do Modelo de Contracheque Único Nacional (Web e Impressão)
   ========================================================================== */

.contracheque-wrapper {
    margin-top: 15px;
    margin-bottom: 40px;
}

.secao-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(30, 58, 138, 0.05);
    margin-bottom: 24px;
    overflow: hidden;
}

.secao-card-header {
    background-color: #1e3a5f;
    border-bottom: 1px solid #172e4d;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.secao-card-body {
    padding: 18px 20px;
    background-color: #ffffff;
}

.info-item {
    margin-bottom: 14px;
}

.info-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.info-value {
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
}

.tabela-tru {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.tabela-tru thead th {
    background-color: #eff6ff;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 18px;
    border-bottom: 2px solid #bfdbfe;
    border-top: none;
    white-space: nowrap;
}

.tabela-tru tbody td {
    padding: 10px 18px;
    font-size: 12.5px;
    color: #1e293b;
    border-top: 1px solid #f1f5f9;
    vertical-align: middle;
}

.tabela-tru tbody tr:hover {
    background-color: #f8fafd;
}

.tabela-tru .codigo-tru {
    font-weight: 700;
    color: #0f172a;
    font-size: 12.5px;
    width: 130px;
    white-space: nowrap;
}

.tabela-tru .valor-tru {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    color: #1e293b;
    width: 160px;
}

/* Cards de Métricas / Totais */
.card-total {
    border-radius: 8px;
    padding: 18px 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bloco-totais-remuneracao {
    margin-top: 6px;
    margin-bottom: 36px;
}

.bloco-total-indenizatorio {
    margin-top: 6px;
    margin-bottom: 36px;
}

.card-total-bruto {
    background-color: #f0f7ff;
    border: 1px solid #bfdbfe;
}

.card-total-bruto .total-label {
    color: #1e40af;
}

.card-total-bruto .total-val {
    color: #1e3a8a;
}

.card-total-desconto {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

.card-total-desconto .total-label {
    color: #b91c1c;
}

.card-total-desconto .total-val {
    color: #dc2626;
}

.card-total-liquido {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.card-total-liquido .total-label {
    color: #15803d;
}

.card-total-liquido .total-val {
    color: #16a34a;
}

.card-total-liquido-neg {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
}

.card-total-liquido-neg .total-label {
    color: #b91c1c;
}

.card-total-liquido-neg .total-val {
    color: #dc2626;
}

.card-total-indenizatorio {
    background-color: #f0fdfa;
    border: 1px solid #99f6e4;
}

.card-total-indenizatorio .total-label {
    color: #0f766e;
}

.card-total-indenizatorio .total-val {
    color: #0f766e;
}

.total-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 5px;
}

.total-val {
    font-size: 19px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.nota-rodape {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 25px;
}

/* Regras de Impressão */
@media print {
    .contracheque-wrapper {
        margin-top: 0;
        margin-bottom: 0;
    }
    .secao-card, .card-total, .row {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    body, html {
        background: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .botao-imprimir-wrapper {
        display: none !important;
    }
}
