/* Strategic Report Styles */

.strategic-report-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 0;
    min-height: 100vh;
}

.report-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.report-controls .btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.report-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.report-content {
    display: none;
    padding: 60px;
    line-height: 1.8;
}

.report-content.active {
    display: block;
}

.report-content.arabic {
    direction: rtl;
    text-align: right;
    font-family: 'Arial', 'Tahoma', sans-serif;
}

.report-content.english {
    direction: ltr;
    text-align: left;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.report-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 3px solid #667eea;
}

.report-header .logo {
    margin-bottom: 30px;
}

.report-header .logo img {
    max-width: 250px;
    height: auto;
}

.report-header h1 {
    color: #2d3748;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.report-header .subtitle {
    color: #718096;
    font-size: 18px;
    margin: 10px 0;
}

.report-header .author {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    margin-top: 15px;
}

.report-section {
    margin: 40px 0;
}

.report-section h2 {
    color: #667eea;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
}

.report-section h3 {
    color: #2d3748;
    font-size: 20px;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.report-section h4 {
    color: #4a5568;
    font-size: 18px;
    margin: 20px 0 10px 0;
    font-weight: 600;
}

.report-section p {
    color: #4a5568;
    margin: 15px 0;
    font-size: 16px;
}

.report-section ul,
.report-section ol {
    margin: 15px 0;
    color: #4a5568;
}

.report-content.arabic ul,
.report-content.arabic ol {
    padding-right: 30px;
    padding-left: 0;
}

.report-content.english ul,
.report-content.english ol {
    padding-left: 30px;
    padding-right: 0;
}

.report-section li {
    color: #4a5568;
    margin: 10px 0;
    font-size: 16px;
}

.highlight-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.report-content.arabic .highlight-box {
    border-right: 4px solid #667eea;
}

.report-content.english .highlight-box {
    border-left: 4px solid #667eea;
}

.warning-box {
    background: #fff5f5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.report-content.arabic .warning-box {
    border-right: 4px solid #fc8181;
}

.report-content.english .warning-box {
    border-left: 4px solid #fc8181;
}

.success-box {
    background: #f0fff4;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.report-content.arabic .success-box {
    border-right: 4px solid #68d391;
}

.report-content.english .success-box {
    border-left: 4px solid #68d391;
}

.phase-box {
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.report-content.arabic .phase-box {
    border-right: 5px solid #667eea;
}

.report-content.english .phase-box {
    border-left: 5px solid #667eea;
}

.phase-title {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.strong-text {
    font-weight: 700;
    color: #2d3748;
}

.report-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    color: #718096;
}

.report-footer .consultant-name {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

/* Print Styles - A4 Format with Page Numbers */
@media print {
    @page {
        size: A4;
        margin: 20mm 15mm 25mm 15mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html, body {
        background: white !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #wrapwrap > header,
    #wrapwrap > footer,
    .o_header_standard,
    nav {
        display: none !important;
    }

    .strategic-report-section {
        background: white !important;
        padding: 0 !important;
        min-height: auto !important;
        display: block !important;
    }

    .report-controls {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .report-container {
        box-shadow: none !important;
        border-radius: 0 !important;
        background: white !important;
        display: block !important;
    }

    .report-content {
        padding: 0 !important;
        color: #000 !important;
        position: relative;
    }

    .report-content:not(.active) {
        display: none !important;
    }

    .report-content.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .page-number-print {
        display: block !important;
        font-size: 10pt;
        color: #4a5568;
    }

    .page-number-print::after {
        content: counter(page);
    }

    .report-content.arabic .page-number-print::before {
        content: "صفحة ";
    }

    .report-content:not(.arabic) .page-number-print::before {
        content: "Page ";
    }

    .report-section {
        page-break-inside: avoid;
        break-inside: avoid;
        margin: 15px 0;
    }

    .report-header {
        page-break-after: avoid;
        margin-bottom: 30px;
        border-bottom: 3px solid #667eea !important;
    }

    .report-header h1,
    .report-section h2,
    .report-section h3,
    .report-section h4,
    .report-section p,
    .report-section li {
        color: inherit !important;
    }

    .highlight-box,
    .warning-box,
    .success-box,
    .phase-box {
        page-break-inside: avoid;
        break-inside: avoid;
        border: 1px solid #e2e8f0 !important;
    }

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

    .report-header .logo img {
        max-height: 80px;
    }

    .report-footer {
        page-break-inside: avoid;
    }
}

.page-number-print {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .strategic-report-section {
        padding: 10px 0;
    }

    .report-controls {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
    }

    .report-controls .btn {
        width: 100%;
        padding: 15px;
        font-size: 14px;
    }

    .report-container {
        border-radius: 10px;
        margin: 0 10px;
    }

    .report-content {
        padding: 30px 20px !important;
    }

    .report-header h1 {
        font-size: 22px !important;
        line-height: 1.3;
    }

    .report-header .subtitle {
        font-size: 14px !important;
    }

    .report-header .author {
        font-size: 14px !important;
    }

    .report-header .logo img {
        max-width: 150px;
    }

    .report-section h2 {
        font-size: 18px !important;
    }

    .report-section h3 {
        font-size: 16px !important;
    }

    .report-section h4 {
        font-size: 15px !important;
    }

    .report-section p,
    .report-section li {
        font-size: 14px !important;
    }

    .highlight-box,
    .warning-box,
    .success-box,
    .phase-box {
        padding: 15px;
        margin: 15px 0;
    }

    .report-content.arabic ul,
    .report-content.arabic ol {
        padding-right: 20px;
    }

    .report-content.english ul,
    .report-content.english ol {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .report-content {
        padding: 20px 15px !important;
    }

    .report-header h1 {
        font-size: 20px !important;
    }

    .report-section h2 {
        font-size: 16px !important;
    }

    .report-section p,
    .report-section li {
        font-size: 13px !important;
    }
}