/* ====== COTAÇÃO - ESTILO VISUAL (APRESENTAÇÃO) ====== */
.quote-panel {
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(16, 24, 40, .06);
}

.quote-logo {
    max-height: 60px;
}

.quote-header {
    background: #fff;
    border: 1px solid #f4f4f6;
    border-radius: 6px;
    padding: .75rem 1rem;
}

.quote-header-label {
    font-weight: 600;
    color: #6b7280;
}

.quote-header-value {
    font-weight: 600;
    color: #111827;
}

.quote-attention {
    font-weight: 700;
    color: #111827;
}

.quote-green-bar {
    background: #f08a35;
    color: #fff;
    font-weight: 700;
    padding: .5rem 1rem;
    border-radius: 6px;
}

/* Grade de Planos - aparência Excel-like */
.plan-grid-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.plan-grid {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.plan-row {
    display: grid;
    align-items: stretch;
}

.plan-row+.plan-row {
    border-top: 1px solid #e0e0e0;
}

.plan-cell {
    padding: .75rem .875rem;
    border-right: 1px solid #e0e0e0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.plan-cell:last-child {
    border-right: 0;
}

.plan-cell strong,
.plan-cell .fw-semibold {
    font-weight: 600;
}

/* Cabeçalho laranja */
.plan-row--head .plan-cell {
    background: #e9772b;
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.plan-row--head .plan-cell:first-child {
    text-align: left;
}

/* Coluna de benefícios maior */
.plan-cell:first-child {
    background: #fafafa;
    font-weight: 600;
    color: #111827;
    justify-content: flex-start;
    text-align: left;
}

.plan-cell--sticky {
    position: sticky;
    left: 0;
    z-index: 3;
    box-shadow: 2px 0 0 0 #e0e0e0 inset;
}

.plan-row--head .plan-cell--sticky {
    z-index: 4;
}

.plan-row--head .plan-cell:first-child {
    background: #e9772b;
    color: #fff;
}

/* Layout por quantidade de planos (2fr para benefícios) */
.plan-grid.cols-1 .plan-row {
    grid-template-columns: 2fr 1fr;
}

.plan-grid.cols-2 .plan-row {
    grid-template-columns: 2fr repeat(2, 1fr);
}

.plan-grid.cols-3 .plan-row {
    grid-template-columns: 2fr repeat(3, 1fr);
}

.plan-grid.cols-4 .plan-row {
    grid-template-columns: 2fr repeat(4, 1fr);
}

.plan-grid.cols-5 .plan-row {
    grid-template-columns: 2fr repeat(5, 1fr);
}

/* larguras mínimas para permitir rolagem horizontal no mobile mantendo estrutura */
.plan-grid.cols-1 {
    min-width: 520px;
}

.plan-grid.cols-2 {
    min-width: 720px;
}

.plan-grid.cols-3 {
    min-width: 920px;
}

.plan-grid.cols-4 {
    min-width: 1120px;
}

.plan-grid.cols-5 {
    min-width: 1320px;
}

/* Colunas de planos com fundos suaves consistentes */
.col-plan-1 {
    background: #f9f9f9;
}

.col-plan-2 {
    background: #eef7ff;
}

.col-plan-3 {
    background: #fff9ec;
}

.col-plan-4 {
    background: #f5f7ff;
}

.col-plan-5 {
    background: #f0fff4;
}

/* Linha de mensalidade em destaque */
.plan-row--fee .plan-cell {
    background: #fcf4ec;
    font-weight: 700;
}

.plan-row--fee .plan-cell:first-child {
    background: #fde7d3;
}

/* Barra financeira e valores */
.quote-bar-finance {
    background: #f08a35;
    color: #fff;
    font-weight: 700;
    padding: .5rem 1rem;
    border-radius: 6px;
}

.quote-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.quote-adhesion-title {
    font-weight: 700;
    color: #6b7280;
}

.quote-adhesion-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}

/* Detalhamento da mensalidade (debug visual) */
.plan-row--fee-details .plan-cell {
    background: #fffaf3;
    font-size: .875rem;
    color: #374151;
    align-items: flex-start;
}

.plan-row--fee-details .plan-cell:first-child {
    background: #fde7d3;
    font-weight: 600;
}

.fee-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.fee-breakdown .fee-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    width: 100%;
}

.fee-breakdown .fee-line strong {
    font-weight: 600;
    color: #111827;
}

.fee-breakdown .fee-label {
    color: #6b7280;
}

.fee-breakdown .fee-value {
    color: #111827;
    font-weight: 600;
}

/* Acessibilidade de ícones/checagem */
.check {
    color: #16a34a;
    font-weight: 900;
}

/* Responsividade */
@media (max-width: 768px) {

    /* Em telas pequenas, mantém estrutura de desktop com rolagem horizontal */
    .plan-grid-wrapper {
        margin: 0 -8px;
        padding: 0 8px;
    }

    .plan-grid {
        border-radius: 8px;
    }

    .plan-row {
        /* permanece igual para manter colunas */
    }

    .plan-cell {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .plan-row {
        grid-template-columns: 1fr;
    }

    .plan-cell {
        grid-column: 1 / -1;
    }
}