/* ============================================================
   MoonBoard Teklif & Talep 5 Sayfalık Profesyonel PDF Şablon Stilleri
   Tasarım: board.moonon.uk Birebir Standardı
   Sayfa 1: Kapak ("ON'da Neler Var?")
   Sayfa 2: Proje & Müşteri & Özet Detay & Yüzey Tablosu
   Sayfa 3: Ürün ve Konfigürasyon Tablosu (Gövde, Kumaş, Merdiven, Boyutlar, vb.)
   Sayfa 4: Ek Sahne Kesit & Görünüş / Plan Özeti
   Sayfa 5: Nitelik Sembolleri ve Yasal Metin
   ============================================================ */

.moon-pdf-container {
    display: none;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Sayfa dışındaki tüm arayüzü gizle */
    header, footer, nav, aside, .cp-dialog, .cp-quote-modal, .collection-page-head, .collection-page-tools, .cp-mobilebar, .collection-toast {
        display: none !important;
    }

    .moon-pdf-container {
        display: block !important;
        width: 100% !important;
    }

    .pdf-page {
        width: 210mm;
        height: 297mm;
        max-height: 297mm;
        box-sizing: border-box;
        page-break-after: always;
        page-break-inside: avoid;
        break-after: page;
        break-inside: avoid;
        position: relative;
        background: #ffffff;
        overflow: hidden;
        font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
        color: #172b4d;
    }

    .pdf-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    /* ---------------- SAYFA 1: KAPAK ---------------- */
    .pdf-page-1 {
        background: #102a56;
        color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        text-align: center;
        height: 297mm;
        max-height: 297mm;
        overflow: hidden;
    }

    .pdf-p1-bg-rings {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .pdf-p1-ring {
        position: absolute;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .pdf-p1-ring-1 {
        width: 480px;
        height: 480px;
        top: 20%;
        left: 15%;
    }

    .pdf-p1-ring-2 {
        width: 680px;
        height: 680px;
        bottom: -10%;
        right: -10%;
    }

    .pdf-p1-content {
        position: relative;
        z-index: 2;
    }

    .pdf-p1-logo-row {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 24px;
    }

    .pdf-p1-logo-circle {
        width: 48px;
        height: 48px;
        background: #ffffff;
        border-radius: 50%;
        display: inline-block;
        position: relative;
    }

    .pdf-p1-logo-circle::after {
        content: '';
        position: absolute;
        width: 28px;
        height: 48px;
        right: 0;
        top: 0;
        background: #102a56;
        border-top-left-radius: 28px;
        border-bottom-left-radius: 28px;
    }

    .pdf-p1-main-title {
        font-size: 54px;
        font-weight: 800;
        line-height: 1.15;
        letter-spacing: -0.02em;
        margin: 0;
        color: #ffffff;
    }

    /* ---------------- SAYFA 2: PROJE & ÖZET DETAY ---------------- */
    .pdf-page-2 {
        padding: 32mm 24mm 24mm;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .pdf-p2-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .pdf-user-avatar {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        border: 1.5px solid #cbd5e1;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
    }

    .pdf-brand-site {
        font-size: 15px;
        font-weight: 600;
        color: #1e293b;
    }

    .pdf-p2-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 32px;
        margin-bottom: 36px;
    }

    .pdf-data-title {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 16px;
        color: #0f172a;
    }

    .pdf-data-table {
        display: flex;
        flex-direction: column;
        gap: 8px;
        font-size: 12.5px;
    }

    .pdf-data-row {
        display: grid;
        grid-template-columns: 110px 1fr;
        color: #334155;
    }

    .pdf-data-row strong {
        color: #0f172a;
    }

    .pdf-ar-card {
        margin-top: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
    }

    .pdf-ar-text {
        font-size: 13.5px;
        font-weight: 600;
        color: #1e293b;
    }

    .pdf-ar-qr {
        width: 58px;
        height: 58px;
    }

    .pdf-section-head {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 16px;
    }

    .pdf-surface-row {
        display: flex;
        align-items: center;
        gap: 18px;
        margin-bottom: 28px;
    }

    .pdf-surface-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        font-size: 10.5px;
        text-align: center;
        max-width: 60px;
    }

    .pdf-surface-circle {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid #cbd5e1;
        object-fit: cover;
        background: #e2e8f0;
    }

    .pdf-stats-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        border-top: 1px solid #e2e8f0;
        padding-top: 20px;
        font-size: 12px;
    }

    .pdf-stat-box {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .pdf-stat-val {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
    }

    .pdf-footer-page-num {
        font-size: 11px;
        color: #64748b;
        text-align: right;
    }

    /* ---------------- SAYFA 3: ÜRÜN & KONFİGÜRASYON ---------------- */
    .pdf-page-3,
    .pdf-page-product {
        padding: 20mm 18mm 16mm;
        page-break-after: always;
        page-break-inside: avoid;
        break-after: page;
        break-inside: avoid;
        height: 297mm;
        max-height: 297mm;
        overflow: hidden;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .pdf-prod-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 11px;
        margin-bottom: 16px;
    }

    .pdf-prod-table th {
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        padding: 8px 10px;
        font-weight: 600;
        color: #334155;
        text-align: left;
    }

    .pdf-prod-table td {
        border: 1px solid #cbd5e1;
        padding: 8px 10px;
        color: #0f172a;
    }

    .pdf-p3-main {
        display: grid;
        grid-template-columns: 210px 1.1fr 1fr;
        gap: 20px;
        border: 1px solid #cbd5e1;
        padding: 16px;
        border-radius: 4px;
        background: #ffffff;
    }

    .pdf-prod-image-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .pdf-prod-image-main {
        width: 100%;
        height: 180px;
        border-radius: 8px;
        object-fit: contain;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .pdf-prod-brand-logo {
        height: 32px;
        object-fit: contain;
    }

    .pdf-prod-phone {
        font-size: 11px;
        color: #475569;
    }

    .pdf-prod-brand-name {
        font-size: 13px;
        font-weight: 700;
        color: #0f172a;
        text-align: center;
    }

    .pdf-prod-desc-col {
        display: flex;
        flex-direction: column;
        gap: 12px;
        font-size: 11px;
        color: #334155;
        line-height: 1.4;
    }

    .pdf-col-subhead {
        font-size: 13px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 6px;
    }

    .pdf-dimensions {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 4px;
        font-size: 11.5px;
    }

    .pdf-config-col {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .pdf-cfg-spec-item {
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: 11px;
    }

    .pdf-cfg-spec-title {
        font-weight: 700;
        color: #1e293b;
    }

    .pdf-cfg-spec-val-row {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #475569;
    }

    .pdf-cfg-spec-circle {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 1px solid #cbd5e1;
        background: #94a3b8;
        object-fit: cover;
    }

    .pdf-surface-img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }

    .pdf-p3-note-box {
        margin-top: 16px;
        border: 1px solid #cbd5e1;
        padding: 12px;
        font-size: 11.5px;
        color: #475569;
        border-radius: 4px;
    }

    /* ---------------- SAYFA 4: EK SAHNE ÖZETİ ---------------- */
    .pdf-page-4 {
        padding: 20mm 18mm 16mm;
        page-break-after: always;
        page-break-inside: avoid;
        break-after: page;
        break-inside: avoid;
        height: 297mm;
        max-height: 297mm;
        overflow: hidden;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .pdf-p4-content {
        display: flex;
        flex-direction: column;
        height: calc(100% - 20px);
    }

    .pdf-p4-title {
        font-size: 16px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 14px;
    }

    .pdf-view-block {
        margin-bottom: 14px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .pdf-view-label {
        font-size: 13px;
        font-weight: 600;
        color: #334155;
        margin: 0 0 6px;
    }

    .pdf-view-img-box {
        width: 100%;
        flex: 1;
        min-height: 180px;
        max-height: 250px;
        background: #f8fafc;
        border: 1px solid #cbd5e1;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .pdf-view-img-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    /* ---------------- SAYFA 5: NİTELİK SEMBOLLERİ ---------------- */
    .pdf-page-5 {
        padding: 28mm 24mm 24mm;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .pdf-symbols-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px 12px;
        font-size: 10.5px;
        color: #334155;
    }

    .pdf-symbol-item {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .pdf-symbol-icon {
        width: 22px;
        height: 22px;
        color: #475569;
        flex-shrink: 0;
    }

    .pdf-disclaimer {
        margin-top: 36px;
        font-size: 11px;
        color: #64748b;
        line-height: 1.55;
    }
}
