/* =====================================================
   BER FINANCIAMENTO — ESTILOS ESPECÍFICOS
   Herda o design system do ber-saas.css
===================================================== */

/* GRID DE DADOS */
.ber-fin-dados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.ber-fin-dado {
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px 16px;
    border-left: 3px solid #1e73be;
}

.ber-fin-dado span {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}

.ber-fin-dado strong {
    font-size: 16px;
    color: #0f172a;
}

/* GRID COMPARATIVO SAC vs PRICE */
.ber-fin-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ber-fin-sistema {
    border-radius: 12px;
    padding: 20px;
}

.ber-fin-sac {
    background: #eef6ff;
    border: 2px solid #1e73be;
}

.ber-fin-price {
    background: #fff7ed;
    border: 2px solid #f97316;
}

.ber-fin-sistema-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #0f172a;
}

.ber-fin-sistema-sub {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 16px;
}

.ber-fin-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
}

.ber-fin-stat span {
    color: #475569;
}

.ber-fin-stat strong {
    color: #0f172a;
}

.ber-fin-stat.highlight strong {
    color: #c0392b;
}

.ber-fin-stat.highlight-total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 2px solid rgba(0,0,0,0.1);
    border-bottom: none;
}

.ber-fin-stat.highlight-total strong {
    font-size: 18px;
    color: #0f172a;
}

/* VERDICT */
.ber-fin-verdict {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 10px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #166534;
    margin-top: 10px;
}

/* TABELA DE EVOLUÇÃO */
.ber-fin-tabela-evolucao th {
    background: #1e73be;
    color: #fff;
    font-size: 13px;
}

.ber-fin-tabela-evolucao td {
    font-size: 13px;
}

/* CÓDIGO DE VALIDAÇÃO */
.ber-fin-codigo-validacao {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 13px;
    text-align: left;
    border: 1px solid #e2e8f0;
}

/* MASCARA DE VALOR — feedback visual */
input.ber-money-mask:focus {
    border-color: #1e73be;
    box-shadow: 0 0 0 3px rgba(30,115,190,0.12);
    outline: none;
}

/* RESPONSIVO */
@media (max-width: 640px) {
    .ber-fin-compare-grid {
        grid-template-columns: 1fr;
    }

    .ber-fin-dados-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ber-fin-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

@media (max-width: 420px) {
    .ber-fin-dados-grid {
        grid-template-columns: 1fr;
    }
}
