/* Print-specific styles for Dubai Portal Proposal documents */

/* General print settings */
@page {
    size: A4;
    margin: 1.5cm;
}

body {
    background-color: white !important;
    color: black !important;
    font-size: 11pt;
    line-height: 1.5;
}

/* Hide elements not needed in print */
.pdf-button,
.modal-overlay,
.cta-button,
.view-details {
    display: none !important;
}

/* Ensure proper header display */
header {
    background: none !important;
    color: #0e4c92 !important;
    padding: 0 !important;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24pt !important;
    color: #0e4c92 !important;
}

header p {
    font-size: 14pt !important;
    color: #333 !important;
}

/* Section styling */
section {
    page-break-inside: avoid;
    margin: 20px 0;
    padding: 15px 0 !important;
    border-bottom: 1px solid #eee;
}

/* Ensure headings are visible */
h2, h3, h4 {
    color: #0e4c92 !important;
    page-break-after: avoid;
}

h2 {
    font-size: 18pt !important;
    margin-top: 25px !important;
}

h3 {
    font-size: 14pt !important;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
    page-break-inside: avoid;
}

th {
    background-color: #f2f2f2 !important;
    color: #0e4c92 !important;
    border: 1px solid #ddd;
}

td {
    border: 1px solid #ddd;
}

/* Pricing cards */
.tier-cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
}

.tier-card {
    width: 30% !important;
    border: 1px solid #ddd !important;
    page-break-inside: avoid;
    box-shadow: none !important;
    margin-bottom: 15px !important;
}

.tier-header {
    background-color: #f2f2f2 !important;
    color: #333 !important;
    border-bottom: 1px solid #ddd;
}

/* Timeline items */
.timeline-item {
    page-break-inside: avoid;
    border: 1px solid #ddd !important;
    margin-bottom: 15px !important;
    box-shadow: none !important;
}

.timeline-week {
    color: #333 !important;
    background-color: #f2f2f2 !important;
    position: relative !important;
    display: inline-block !important;
    left: 0 !important;
    top: 0 !important;
    margin-bottom: 10px !important;
}

.delivery-milestone {
    border-left: 4px solid #e74c3c !important;
}

/* Footer */
footer {
    background: none !important;
    color: #333 !important;
    text-align: center;
    margin-top: 20px;
    font-size: 9pt !important;
}

/* Highlight box */
.highlight-box {
    background-color: #f2f2f2 !important;
    color: #333 !important;
    border: 1px solid #ddd;
}

.highlight-box h3 {
    color: #0e4c92 !important;
}

/* Fix lists */
ul, ol {
    page-break-inside: avoid;
}

li {
    page-break-inside: avoid;
}

/* Images */
img {
    max-width: 100% !important;
}

/* Force background colors and images to print */
* {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

/* Link styles */
a {
    color: #0e4c92 !important;
    text-decoration: underline;
}

@media print {
    /* General print styles */
    body {
        background-color: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Header adjustments */
    header {
        background: none !important;
        padding: 20px 0;
        color: #0e4c92 !important;
        text-align: center;
        page-break-after: avoid;
    }
    
    /* Section adjustments */
    section {
        page-break-inside: avoid;
        margin-bottom: 20px;
        padding: 20px 0;
        background: none !important;
    }
    
    h2, h3 {
        page-break-after: avoid;
        color: #0e4c92 !important;
    }
    
    p {
        orphans: 3;
        widows: 3;
    }
    
    /* Table adjustments */
    .comparison-table {
        width: 100%;
        margin: 20px 0;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .comparison-table th {
        background-color: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ddd;
    }
    
    .comparison-table td {
        border: 1px solid #ddd;
    }
    
    /* Cards adjustments */
    .tier-cards {
        display: flex;
        flex-direction: row;
        width: 100%;
        page-break-inside: avoid;
    }
    
    .tier-card {
        border: 1px solid #ddd;
        page-break-inside: avoid;
        box-shadow: none !important;
        margin: 0 10px;
    }
    
    .tier-header {
        background-color: #f0f0f0 !important;
        color: black !important;
        border-bottom: 1px solid #ddd;
    }
    
    /* Recommendations section */
    .recommendations {
        background-color: white !important;
        color: black !important;
        border: 1px solid #ddd;
        padding: 20px;
        margin: 20px 0;
    }
    
    .recommendations h2 {
        color: black !important;
    }
    
    .next-steps li {
        background-color: white !important;
        border: 1px solid #ddd;
    }
    
    .next-steps li:before {
        background-color: #f0f0f0 !important;
        color: black !important;
    }
    
    /* Hide CTA and footer for print */
    .cta-section, footer {
        display: none !important;
    }
    
    /* Remove hover effects */
    .tier-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* Add page breaks where needed */
    .market-context {
        page-break-before: always;
    }
    
    /* URL display for links */
    a:after {
        content: " (" attr(href) ")";
        font-size: 90%;
    }
} 