/* =========================
   PRINT / PDF STYLESHEET
   ========================= */

@page {
    size: A4 portrait;
    margin: 0;
}

@media print {

    html,
    body {
        width: 210mm;
        height: auto;
        background: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .page {
        width: 210mm;
        min-height: 297mm;
        margin: 0;
        padding: 0;
        box-shadow: none;
        page-break-after: always;
        break-after: page;
        overflow: hidden;
    }

    .page:last-child {
        page-break-after: auto;
    }

    .cover {
        min-height: 297mm;
        padding: 20mm;
    }

    .content {
        padding: 15mm;
    }

    .spec-table {
        width: 100%;
        font-size: 10pt;
    }

    .spec-table th {
        background: #133c2f !important;
        color: #fff !important;
    }

    .spec-table td,
    .spec-table th {
        padding: 6px 8px;
    }

    .card {
        background: #f7f8fa !important;
        border-left: 4px solid #133c2f !important;
        break-inside: avoid;
    }

    .grid {
        gap: 12px;
    }

    .two-col {
        gap: 20px;
    }

    h1 {
        page-break-after: avoid;
    }

    h2,
    h3 {
        page-break-after: avoid;
        break-after: avoid;
    }

    table,
    img,
    .card {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .footer {
        position: absolute;
        bottom: 12mm;
        left: 15mm;
        right: 15mm;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* =========================
   SCREEN PREVIEW
   ========================= */

@media screen {

    body {
        background: #e5e7eb;
        padding: 30px 0;
    }

    .page {
        border-radius: 12px;
    }
}