/**
 * TOF Global Print Styles (v1.0.0)
 * Sadece yazıcı çıktısında (Print) devreye girer.
 */

@media print {
    /* 1. Tüm Web Sitesi Arayüzünü Gizle */
    header, footer, .td-header-wrap, .td-footer-wrapper, 
    .td-scroll-up, .td-sub-footer-container, 
    #td-outer-wrap > .td-header-wrap,
    #td-outer-wrap > .td-footer-wrapper,
    .tof-no-print, .tof-upper-utility-bar,
    #wpadminbar {
        display: none !important;
    }

    /* 2. Sayfa ve Font Ayarları */
    @page {
        size: A4;
        margin: 1.5cm;
    }

    body, html {
        background: #fff !important;
        color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        /* Generic Font Stack for compatibility */
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    }

    /* Tüm metinleri siyah yap ve fontu zorla */
    * {
        print-color-adjust: exact !important;
        -webkit-print-color-adjust: exact !important;
        font-family: Arial, sans-serif !important;
    }

    /* 3. Rapor Header Stili */
    .tof-report-header {
        display: block !important;
        margin-bottom: 30px;
        width: 100%;
    }

    .report-header-logos {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 10px;
    }

    .header-logo-left img, 
    .header-logo-right img {
        height: 80px;
        width: auto;
        display: block;
    }

    .header-logo-center {
        text-align: center;
        flex: 1;
    }

    .report-org-name {
        font-size: 20pt;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .report-title {
        font-size: 14pt;
        color: #444;
        text-transform: uppercase;
        border: 1px solid #ddd;
        padding: 4px 15px;
        display: inline-block;
        border-radius: 4px;
    }

    .report-header-divider {
        height: 2px;
        background: #000 !important;
        width: 100%;
    }

    /* 4. Rapor Footer Stili */
    .tof-report-footer {
        display: block !important;
        margin-top: 50px;
        width: 100%;
        text-align: center;
        page-break-inside: avoid;
    }

    .report-footer-divider {
        height: 1px;
        background: #eee !important;
        width: 100%;
        margin-bottom: 20px;
    }

    .report-footer-sponsors img {
        max-width: 100%;
        height: auto;
        max-height: 80px;
        margin-bottom: 20px;
    }

    .report-footer-text p {
        font-size: 10pt;
        color: #666 !important;
        margin: 5px 0;
    }

    .report-timestamp {
        font-size: 8pt;
        color: #999 !important;
    }

    /* 5. Tablo ve İçerik Düzeltmeleri */
    .tof-table {
        border: 1px solid #eee !important;
        width: 100% !important;
    }

    .tof-table thead th {
        background: #f4f4f4 !important;
        color: #000 !important;
        border-bottom: 2px solid #000 !important;
    }

    /* Sayfa sonu kesilmelerini engelle */
    tr, .tof-metric-card {
        page-break-inside: avoid !important;
    }

    /* Gizli sekmeleri print için zorla aç */
    .tab-pane, .tab-content > .tab-pane {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin-bottom: 20px;
    }

    .nav-tabs {
        display: none !important; /* Tab butonlarını gizle */
    }

    /* Layout Reset */
    .tof-profile__dashboard {
        display: block !important;
    }

    .tof-profile__sidebar {
        width: 100% !important;
        margin-bottom: 20px;
    }
}

/* Screen View'da Print-Only alanları gizle */
.tof-print-only {
    display: none;
}
