/* CRM Report Styles */
.crm-report-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    line-height: 1.6;
    color: #333333;
}

/* Header Styles */
.crm-report-header {
    border-bottom: 4px solid #2563eb;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.crm-report-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.crm-report-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.5;
}

.crm-report-attribution {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #93c5fd;
    border-radius: 12px;
    padding: 1.25rem;
    color: #1e40af;
    font-weight: 500;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

/* Executive Summary */
.crm-report-executive-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-left: 6px solid #2563eb;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.crm-report-summary-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.crm-report-summary-text {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.7;
}

/* Section Styles */
.crm-report-section {
    margin: 3.5rem 0;
}

.crm-report-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #e2e8f0;
    padding-bottom: 0.75rem;
    position: relative;
}

.crm-report-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #2563eb;
}

.crm-report-section-intro {
    color: #475569;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Table Styles */
.crm-report-comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.crm-report-table-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.crm-report-table-header .crm-report-table-cell {
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.crm-report-sygeta-column {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: white !important;
    position: relative;
}

.crm-report-sygeta-column::after {
    content: '⭐';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.crm-report-table-cell {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
    font-size: 0.95rem;
}

.crm-report-table-row:nth-child(even) {
    background-color: #f9fafb;
}

.crm-report-table-row:hover {
    background-color: #f1f5f9;
    transition: background-color 0.2s ease;
}

.crm-report-feature-cell {
    font-weight: 600;
    color: #374151;
    min-width: 200px;
}

.crm-report-winner-cell {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%) !important;
    color: #166534 !important;
    font-weight: 600;
    position: relative;
}

.crm-report-winner-cell::before {
    content: '✅ ';
    margin-right: 0.25rem;
}

/* Pricing Table Specific Styles */
.crm-report-pricing-table .crm-report-table-cell {
    text-align: center;
    font-weight: 500;
}

.crm-report-pricing-cell {
    color: #dc2626;
    font-weight: 600;
    font-size: 1rem;
}

.crm-report-pricing-winner {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #991b1b !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    position: relative;
}

.crm-report-pricing-winner::before {
    content: '💰 ';
    margin-right: 0.25rem;
}

.crm-report-pricing-note {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    color: #991b1b;
    font-weight: 600;
    text-align: center;
}

/* Winner Box Styles */
.crm-report-winner-box {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #0284c7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    color: #0c4a6e;
    font-size: 1.05rem;
    line-height: 1.6;
}

.crm-report-major-advantage {
    background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%) !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
    font-weight: 600;
}

.crm-report-major-advantage::before {
    content: '🏆 ';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Comparison Grid */
.crm-report-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.crm-report-comparison-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.crm-report-comparison-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.crm-report-comparison-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.crm-report-comparison-list {
    list-style: none;
    padding: 0;
}

.crm-report-comparison-list li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
    line-height: 1.6;
}

.crm-report-comparison-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Final Analysis Section */
.crm-report-final-analysis {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid #d1d5db;
}

.crm-report-analysis-intro {
    font-size: 1.15rem;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.crm-report-key-findings {
    margin: 2rem 0;
}

.crm-report-findings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.crm-report-business-recommendation {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.crm-report-business-type {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 1rem;
}

.crm-report-critical-considerations,
.crm-report-total-cost-impact {
    margin: 2rem 0;
}

.crm-report-considerations-title,
.crm-report-cost-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.crm-report-gap-list,
.crm-report-cost-breakdown {
    list-style: none;
    padding: 0;
}

.crm-report-gap-list li,
.crm-report-cost-breakdown li {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 3rem;
}

.crm-report-gap-list li::before {
    content: '⚡';
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.crm-report-cost-breakdown li::before {
    content: '💵';
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

/* Conclusion Section */
.crm-report-conclusion {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    border-radius: 16px;
    padding: 3rem;
    margin: 4rem 0;
    text-align: center;
}

.crm-report-conclusion-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: white;
}

.crm-report-conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.crm-report-conclusion-main {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.crm-report-conclusion-secondary {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.crm-report-methodology-note {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f5f9;
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    .crm-report-container {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .crm-report-title {
        font-size: 2rem;
    }
    
    .crm-report-comparison-table {
        font-size: 0.85rem;
    }
    
    .crm-report-table-cell {
        padding: 0.75rem 0.5rem;
    }
    
    .crm-report-comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .crm-report-section-title {
        font-size: 1.5rem;
    }
    
    .crm-report-conclusion {
        padding: 2rem 1rem;
    }
    
    .crm-report-conclusion-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .crm-report-comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .crm-report-table-cell {
        min-width: 120px;
    }
    
    .crm-report-feature-cell {
        min-width: 180px;
    }
}

/* Print Styles */
@media print {
    .crm-report-container {
        box-shadow: none;
        max-width: none;
    }
    
    .crm-report-winner-box,
    .crm-report-business-recommendation {
        break-inside: avoid;
    }
    
    .crm-report-comparison-table {
        break-inside: avoid;
    }
}

/* Animation for smooth scrolling and interactions */
html {
    scroll-behavior: smooth;
}

.crm-report-comparison-table tr,
.crm-report-winner-box,
.crm-report-business-recommendation {
    transition: all 0.2s ease;
}

/* Accessibility improvements */
.crm-report-table-cell:focus,
.crm-report-winner-box:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .crm-report-container {
        border: 2px solid #000;
    }
    
    .crm-report-table-header {
        background: #000;
        color: #fff;
    }
    
    .crm-report-winner-cell {
        background: #fff !important;
        color: #000 !important;
        border: 2px solid #000 !important;
    }
}