/* =========================================================
   CALCULADORA DE PERÍODOS
   Estilos exclusivos da ferramenta
   ========================================================= */


/* ---------------------------------------------------------
   ORIENTAÇÃO
   --------------------------------------------------------- */

.tool-orientation {
    border-top: 3px solid #2563eb;
}

.orientation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.orientation-item {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.orientation-item strong {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 1rem;
}

.orientation-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   RESULTADO
   --------------------------------------------------------- */

.period-result {
    scroll-margin-top: 110px;
}

.period-result .result-total {
    margin-bottom: 24px;
}

.period-result .summary-grid {
    margin-bottom: 24px;
}

.period-result .summary-card {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.period-result .summary-value {
    font-variant-numeric: tabular-nums;
}


/* ---------------------------------------------------------
   DATA CALCULADA
   --------------------------------------------------------- */

.result-date-card {
    margin-bottom: 24px;
    text-align: center;
}

.calculated-date {
    margin: 20px 0 12px;
    color: #2563eb;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.result-date-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}


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

.period-result .calculation-box {
    margin-bottom: 24px;
}

.period-result .calculation-box h2 {
    margin-bottom: 16px;
}

.period-result .calculation-item {
    line-height: 1.6;
}

.calculation-title {
    font-weight: 600;
    color: #0f172a;
}


/* ---------------------------------------------------------
   INFORMAÇÕES / INTERPRETAÇÃO
   --------------------------------------------------------- */

.result-information {
    border-top: 3px solid #2563eb;
}

.information-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.information-item {
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.information-item h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1rem;
}

.information-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}


/* ---------------------------------------------------------
   AVISO
   --------------------------------------------------------- */

.notice-box {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 10px;
    background: #f8fafc;
    color: #475569;
    line-height: 1.6;
}

.notice-box strong {
    color: #0f172a;
}


/* ---------------------------------------------------------
   RESPONSIVIDADE
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .orientation-grid {
        grid-template-columns: 1fr;
    }

    .information-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 650px) {

    .orientation-grid,
    .information-grid {
        gap: 14px;
    }

    .orientation-item,
    .information-item {
        padding: 16px;
    }

    .calculated-date {
        font-size: 2rem;
    }

    .notice-box {
        padding: 16px;
    }

}


/* ---------------------------------------------------------
   IMPRESSÃO
   --------------------------------------------------------- */

@media print {

    header,
    footer,
    .tool-breadcrumb,
    .ad-container,
    .tool-orientation,
    .actions,
    .result-actions {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .tool-page {
        padding: 0;
    }

    .tool-header {
        padding-top: 20px;
    }

    .tool-section {
        padding-top: 10px;
    }

    .section-card,
    .period-result {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .period-result {
        display: block !important;
    }

    .result-information {
        break-inside: avoid;
    }

    .calculated-date {
        color: #000;
    }

}