/* =============================================
   PDF Document Styles
   Clean, professional document appearance
   ============================================= */

/* Document Body */
.document-body {
    background: #e8e8e8;
}

/* Document Wrapper */
.document-wrapper {
    padding: 6rem 1rem 4rem;
    min-height: 100vh;
}

/* Main Document Container - Paper Effect */
.document {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 3rem 4rem;
    font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #1a1a1a;
}

/* Document Header */
.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #08872e;
    margin-bottom: 3rem;
}

.doc-logo img {
    display: block;
}

.doc-meta {
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.doc-type {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #08872e;
    font-weight: 600;
}

.doc-date {
    display: block;
    font-size: 0.8125rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Title Section */
.doc-title-section {
    text-align: center;
    padding: 2rem 0 3rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 2.5rem;
}

.doc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.doc-subtitle {
    font-size: 1.125rem;
    color: #555;
    font-style: italic;
    margin: 0 0 2.5rem;
}

.doc-highlights {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.doc-highlight {
    text-align: center;
    padding: 1rem 1.5rem;
    background: #f8faf8;
    border: 1px solid #e0e8e0;
    border-radius: 4px;
}

.highlight-value {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #08872e;
}

.highlight-label {
    display: block;
    font-size: 0.8125rem;
    color: #666;
    margin-top: 0.25rem;
    font-family: 'Inter', sans-serif;
}

/* Table of Contents */
.doc-toc {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
}

.doc-toc h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
    color: #333;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.doc-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    columns: 2;
    column-gap: 2rem;
}

.doc-toc li {
    padding: 0.375rem 0;
    break-inside: avoid;
}

.doc-toc a {
    color: #08872e;
    text-decoration: none;
    font-size: 0.9375rem;
}

.doc-toc a:hover {
    text-decoration: underline;
}

/* Document Sections */
.doc-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.doc-section:last-of-type {
    border-bottom: none;
}

.doc-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #08872e;
    display: inline-block;
}

.section-num {
    color: #08872e;
    margin-right: 0.25rem;
}

.doc-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 1.75rem 0 0.75rem;
}

.doc-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin: 1.25rem 0 0.5rem;
}

.doc-section p {
    margin: 0 0 1rem;
}

.doc-section ul,
.doc-section ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.doc-section li {
    margin-bottom: 0.5rem;
}

.doc-section ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Callout Boxes */
.doc-callout {
    background: #f5f9f5;
    border-left: 4px solid #08872e;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.doc-callout h4 {
    margin: 0 0 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #08872e;
}

.doc-callout ul {
    margin: 0;
}

.doc-callout.highlight {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.doc-callout.highlight h4 {
    color: #b45309;
}

/* Result Banner */
.doc-result {
    background: linear-gradient(135deg, #08872e, #10b981);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
}

/* Note Box */
.doc-note {
    background: #f0f7ff;
    border: 1px solid #c8ddf5;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

/* Formula Box */
.doc-formula {
    background: #f8f8f8;
    border: 1px solid #ddd;
    padding: 1rem 1.5rem;
    text-align: center;
    margin: 1rem 0;
    font-family: 'Inter', sans-serif;
}

.doc-formula p {
    margin: 0;
    font-size: 1.125rem;
}

/* Tables */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
}

.doc-table th,
.doc-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border: 1px solid #ddd;
}

.doc-table th {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
}

.doc-table.financials td:last-child {
    text-align: right;
    font-family: 'Inter', sans-serif;
}

.doc-table .total-row {
    background: #f0f8f0;
}

.doc-table .total-row td {
    border-top: 2px solid #08872e;
}

.doc-table.summary {
    max-width: 500px;
    margin: 1.5rem auto;
}

.doc-table.summary th {
    background: #08872e;
    color: #fff;
}

/* Scenario Description */
.scenario-desc {
    color: #666;
    font-style: italic;
    margin-top: -0.5rem !important;
    margin-bottom: 0.75rem !important;
}

/* Two Column Layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1rem 0 1.5rem;
}

.two-column .column h4 {
    margin-top: 0;
}

/* Check List */
.check-list {
    list-style: none;
    padding-left: 0;
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #08872e;
    font-weight: bold;
    font-size: 1.125rem;
}

/* Numbered List */
.numbered-list {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.numbered-list li {
    counter-increment: item;
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: #08872e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* Steps List */
.steps-list {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.steps-list li {
    counter-increment: step;
    padding: 1rem 1rem 1rem 3.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    background: #fafafa;
    border-left: 3px solid #08872e;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background: #08872e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Summary Box */
.doc-summary {
    background: #f5f9f5;
    border: 2px solid #08872e;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.doc-summary h4 {
    margin: 0 0 0.75rem;
    color: #08872e;
    font-family: 'Inter', sans-serif;
}

.doc-summary ul {
    margin: 0;
}

/* Conclusion Statement */
.conclusion-statement {
    font-size: 1.125rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f0f8f0, #e8f5e8);
    border-radius: 4px;
    margin-top: 1.5rem;
}

/* Contact Section */
.doc-contact {
    background: #1a1a1a;
    color: #fff;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
    border-radius: 4px;
}

.doc-contact h3 {
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.doc-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.5rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.contact-link {
    color: #10b981;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
}

.contact-link span {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
}

.contact-link:hover {
    color: #fff;
}

/* Document Footer */
.doc-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
}

.footer-line {
    height: 2px;
    background: linear-gradient(to right, #08872e, #10b981, #08872e);
    margin-bottom: 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-content .company {
    color: #08872e;
    font-weight: 600;
}

/* Print Styles */
@media print {
    .document-body {
        background: #fff;
    }
    
    .document-wrapper {
        padding: 0;
    }
    
    .document {
        box-shadow: none;
        max-width: 100%;
        padding: 2cm;
    }
    
    #header-partial,
    #footer-partial {
        display: none;
    }
    
    .doc-section {
        page-break-inside: avoid;
    }
    
    .doc-table {
        page-break-inside: avoid;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .document {
        padding: 2rem;
        margin: 0 0.5rem;
    }
    
    .doc-title {
        font-size: 1.625rem;
    }
    
    .doc-highlights {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .doc-highlight {
        width: 100%;
        max-width: 250px;
    }
    
    .doc-toc ol {
        columns: 1;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .document-wrapper {
        padding: 5rem 0.5rem 2rem;
    }
    
    .document {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .doc-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .doc-meta {
        text-align: center;
    }
    
    .doc-title {
        font-size: 1.375rem;
    }
    
    .doc-section h2 {
        font-size: 1.25rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .doc-table {
        font-size: 0.8125rem;
    }
    
    .doc-table th,
    .doc-table td {
        padding: 0.5rem;
    }
}

