/* 3Han Danışmanlık - Ultra Lüks Apple Tasarım Konseptli Yazdırma Şablonu */

@media print {
    /* Genel Ayarlar - Apple Minimalizm */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    @page {
        size: A4;
        margin: 2cm 2cm 2.5cm 2cm;
    }
    
    /* Body - Apple Tipografi */
    body {
        background: #ffffff !important;
        color: #1d1d1f !important;
        font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
        font-size: 11pt;
        line-height: 1.6;
        letter-spacing: -0.011em;
        font-weight: 400;
    }
    
    /* Gizlenecek elementler */
    .no-print,
    nav,
    .navbar,
    .sidebar,
    .panel-sidebar,
    .mobile-overlay,
    .btn,
    button:not(.print-include),
    .print-hide,
    footer,
    .footer,
    .alert,
    .notification-widget,
    .chat-widget,
    .btn-group,
    #chartTypeButtons {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Header - Ultra Lüks Apple Stili */
    .print-header {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2f 100%);
        color: #ffffff;
        padding: 25px 40px;
        margin: -2cm -2cm 30px -2cm;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        page-break-inside: avoid;
        z-index: 1000;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    }
    
    .print-header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        max-width: 100%;
    }
    
    .print-logo-section {
        display: flex;
        align-items: center;
        gap: 18px;
    }
    
    .print-logo {
        width: 50px;
        height: 50px;
        background: linear-gradient(135deg, #ffffff 0%, #f5f5f7 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20pt;
        color: #000000;
        font-weight: 700;
        letter-spacing: -0.5px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }
    
    .print-company-info h1 {
        margin: 0;
        font-size: 22pt;
        font-weight: 600;
        letter-spacing: -0.5px;
        color: #ffffff;
        line-height: 1.2;
    }
    
    .print-company-info p {
        margin: 4px 0 0 0;
        font-size: 9pt;
        opacity: 0.85;
        color: #f5f5f7;
        font-weight: 400;
        letter-spacing: -0.2px;
    }
    
    .print-meta-info {
        text-align: right;
        font-size: 9pt;
        line-height: 1.8;
        font-weight: 400;
    }
    
    .print-meta-info strong {
        display: block;
        margin-bottom: 4px;
        color: #ffffff;
        font-weight: 600;
        font-size: 8pt;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0.7;
    }
    
    .print-meta-info span:not(strong) {
        color: #ffffff;
        font-weight: 400;
        display: block;
    }
    
    /* İçerik Alanı - Apple Spacing */
    .print-content {
        margin-top: 130px;
        padding: 30px 0;
        min-height: calc(100vh - 250px);
    }
    
    .print-title {
        font-size: 28pt;
        font-weight: 600;
        color: #1d1d1f;
        margin: 0 0 12px 0;
        padding-bottom: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        page-break-after: avoid;
        letter-spacing: -0.8px;
        line-height: 1.2;
    }
    
    .print-subtitle {
        font-size: 13pt;
        font-weight: 400;
        color: #86868b;
        margin: 0 0 30px 0;
        page-break-after: avoid;
        letter-spacing: -0.2px;
    }
    
    /* Tablolar - Apple Minimalizm */
    .print-table-wrapper {
        margin: 30px 0;
        page-break-inside: avoid;
    }
    
    .table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 20px 0;
        font-size: 10pt;
        page-break-inside: auto;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .table thead {
        display: table-header-group;
        background: #f5f5f7 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .table thead th {
        background: #f5f5f7 !important;
        color: #1d1d1f !important;
        padding: 14px 12px;
        text-align: left;
        font-weight: 600;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        font-size: 10pt;
        letter-spacing: -0.2px;
        text-transform: uppercase;
        font-size: 9pt;
    }
    
    .table tbody tr {
        page-break-inside: avoid;
        page-break-after: auto;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        transition: background-color 0.2s;
    }
    
    .table tbody td {
        padding: 12px 12px;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        vertical-align: middle;
        font-weight: 400;
    }
    
    .table tbody tr:nth-child(even) {
        background-color: #fafafa !important;
        -webkit-print-color-adjust: exact;
    }
    
    .table tbody tr:hover {
        background-color: #f5f5f7 !important;
    }
    
    /* Footer - Apple Minimalizm */
    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 70px;
        background: #fafafa;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        padding: 20px 40px;
        margin: 30px -2cm -2.5cm -2cm;
        font-size: 8pt;
        color: #86868b;
        page-break-inside: avoid;
    }
    
    .print-footer-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        max-width: 100%;
    }
    
    .print-footer-left {
        display: flex;
        gap: 30px;
        font-weight: 400;
    }
    
    .print-footer-left strong {
        display: block;
        color: #1d1d1f;
        font-weight: 600;
        margin-bottom: 4px;
        font-size: 8pt;
    }
    
    .print-footer-right {
        text-align: right;
        font-weight: 400;
    }
    
    .print-page-number {
        font-weight: 600;
        color: #1d1d1f;
        font-size: 9pt;
        letter-spacing: -0.2px;
    }
    
    /* Özet Bilgiler - Apple Card Tasarımı */
    .print-summary {
        background: #f5f5f7;
        border: none;
        border-radius: 12px;
        padding: 24px 28px;
        margin: 30px 0;
        page-break-inside: avoid;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    .print-summary h3 {
        margin: 0 0 16px 0;
        font-size: 16pt;
        color: #1d1d1f;
        font-weight: 600;
        letter-spacing: -0.4px;
    }
    
    .print-summary-row {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        align-items: center;
    }
    
    .print-summary-row:last-child {
        border-bottom: none;
        font-weight: 600;
        padding-top: 14px;
        margin-top: 8px;
        border-top: 2px solid rgba(0, 0, 0, 0.1);
        font-size: 11pt;
    }
    
    .print-summary-label {
        color: #86868b;
        font-weight: 400;
        font-size: 10pt;
    }
    
    .print-summary-value {
        color: #1d1d1f;
        font-weight: 500;
        font-size: 10pt;
        letter-spacing: -0.2px;
    }
    
    /* Grafikler ve Görseller */
    .print-chart {
        width: 100%;
        max-width: 100%;
        height: auto;
        page-break-inside: avoid;
        margin: 30px 0;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }
    
    /* Liste Stilleri */
    .print-list {
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }
    
    .print-list li {
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-weight: 400;
    }
    
    .print-list li:last-child {
        border-bottom: none;
    }
    
    /* Tarih ve Bilgi Etiketleri - Apple Badge */
    .print-info-badge {
        display: inline-block;
        background: #1d1d1f;
        color: #ffffff;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 8pt;
        font-weight: 500;
        margin: 0 4px;
        letter-spacing: 0.2px;
    }
    
    /* Sayfa Kırılmaları */
    .print-page-break {
        page-break-before: always;
    }
    
    .print-avoid-break {
        page-break-inside: avoid;
    }
    
    /* Vurgular - Apple Accent */
    .print-highlight {
        background: #fff9e6 !important;
        padding: 3px 6px;
        border-radius: 4px;
        -webkit-print-color-adjust: exact;
        font-weight: 500;
    }
    
    .print-warning {
        color: #bf4800;
        font-weight: 500;
    }
    
    .print-success {
        color: #007a4d;
        font-weight: 500;
    }
    
    /* Premium Spacing */
    .print-section {
        margin: 40px 0;
        page-break-inside: avoid;
    }
    
    /* Apple Typography Hierarchy */
    h1, .print-title {
        font-size: 28pt;
        font-weight: 600;
        letter-spacing: -0.8px;
        line-height: 1.2;
    }
    
    h2, .print-subtitle {
        font-size: 20pt;
        font-weight: 600;
        letter-spacing: -0.5px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 16pt;
        font-weight: 600;
        letter-spacing: -0.3px;
        line-height: 1.4;
    }
    
    p, .print-text {
        font-size: 11pt;
        font-weight: 400;
        letter-spacing: -0.011em;
        line-height: 1.6;
    }
    
    /* Apple Color Palette */
    .print-primary {
        color: #0071e3;
    }
    
    .print-secondary {
        color: #86868b;
    }
    
    .print-accent {
        color: #1d1d1f;
    }
}

/* Ekran görünümü için (yazdırma önizleme) */
@media screen {
    .print-header,
    .print-footer {
        display: none;
    }
    
    .print-preview-mode .print-header,
    .print-preview-mode .print-footer {
        display: block;
    }
}
