
/* Regular formatted text */
.formatted-text {
    font-size: 20px;
    font-weight: bolder;
    color: #1e40af;
}

/* Large formatted text, also bold */
.formatted-text-large {
    font-size: 25px;
    font-weight: bolder;
    color: #1e40af;
}

/* Specifically for bold text, without altering size */
.bold-text {
    font-weight: bolder;
    color: #1e40af;
}

h3 {
    font-size: 20px;
    font-weight: bolder;
    color: #1e40af;
}

.special-text {
    font-weight: bolder;
    color: #1e40af;
}

/* Grand Total tokens styling */
.header-text[contains="Grand Total"] {
    font-size: 30px;
    font-weight: bolder;
    color: #1e40af;
}

/* Formatted URLs */
.formatted-url {
    color: #2563eb;
    text-decoration: underline;
}

/* Remove underline on hover for URLs */
.formatted-url:hover {
    text-decoration: none;
    color: #1d4ed8;
}

/* Highlighted text */
.highlighted-text {
    background-color: #1e40af;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Code block styling */
.code-block {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    color: #1f2937;
    background-color: #f8fafc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 100%;
    font-size: 14px;
    line-height: 1.5;
}

/* Inline code styling */
.inline-code {
    background-color: #f1f5f9;
    color: #1e40af;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9em;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

/* Blockquote styling */
blockquote {
    border-left: 4px solid #1e40af;
    margin: 16px 0;
    padding: 12px 0 12px 20px;
    color: #4b5563;
    font-style: italic;
    background-color: #f8fafc;
    border-radius: 0 8px 8px 0;
}

/* List styling */
ul, ol {
    color: #374151;
    line-height: 1.6;
}

li {
    margin: 8px 0;
    color: #374151;
}

/* Strong text */
strong, b {
    color: #1e40af;
    font-weight: 700;
}

/* Emphasis text */
em, i {
    color: #1e40af;
    font-style: italic;
}

/* Table styling */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 16px 0;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #e5e7eb;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #1e40af;
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Print-specific styles */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        font-family: 'Times New Roman', serif !important;
        font-size: 12pt !important;
        line-height: 1.6 !important;
        color: #000 !important;
        background: white !important;
        margin: 0 !important;
        padding: 20px !important;
    }

    /* Headers for print */
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        font-weight: bold !important;
        margin: 16pt 0 8pt 0 !important;
        page-break-after: avoid !important;
        break-after: avoid !important;
    }

    h1 {
        font-size: 18pt !important;
        border-bottom: 2pt solid #000 !important;
        padding-bottom: 4pt !important;
    }

    h2 {
        font-size: 16pt !important;
    }

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

    h4 {
        font-size: 13pt !important;
    }

    h5 {
        font-size: 12pt !important;
    }

    h6 {
        font-size: 11pt !important;
        text-transform: uppercase !important;
    }

    /* Text formatting for print */
    .formatted-text,
    .formatted-text-large,
    .bold-text,
    .special-text,
    strong, b {
        font-weight: bold !important;
        color: #000 !important;
    }

    .formatted-text {
        font-size: 12pt !important;
    }

    .formatted-text-large {
        font-size: 14pt !important;
    }

    /* Code blocks for print */
    .code-block {
        border: 1pt solid #000 !important;
        background-color: #f5f5f5 !important;
        padding: 8pt !important;
        font-family: 'Courier New', monospace !important;
        font-size: 10pt !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .inline-code {
        background-color: #f5f5f5 !important;
        border: 1pt solid #ccc !important;
        padding: 2pt 4pt !important;
        font-family: 'Courier New', monospace !important;
        font-size: 10pt !important;
    }

    /* Blockquotes for print */
    blockquote {
        border-left: 3pt solid #000 !important;
        background-color: #f9f9f9 !important;
        margin: 12pt 0 !important;
        padding: 8pt 0 8pt 12pt !important;
        font-style: italic !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Lists for print */
    ul, ol {
        margin: 8pt 0 !important;
        padding-left: 24pt !important;
    }

    li {
        margin: 4pt 0 !important;
        line-height: 1.4 !important;
    }

    /* Tables for print */
    table {
        border-collapse: collapse !important;
        width: 100% !important;
        margin: 12pt 0 !important;
        border: 1pt solid #000 !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    th, td {
        border: 1pt solid #000 !important;
        padding: 6pt !important;
        text-align: left !important;
    }

    th {
        background-color: #e0e0e0 !important;
        font-weight: bold !important;
    }

    /* Paragraphs for print */
    p {
        margin: 8pt 0 !important;
        line-height: 1.5 !important;
        text-align: justify !important;
        orphans: 3 !important;
        widows: 3 !important;
    }

    /* Links for print */
    .formatted-url,
    .email-link,
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    /* Images for print */
    .formatted-img,
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Hide interactive elements */
    button, input, select, textarea {
        display: none !important;
    }

    /* Page breaks */
    .page-break {
        page-break-before: always !important;
        break-before: page !important;
    }

    .no-break {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
    color: #1e40af;
    font-weight: 700;
    margin: 16px 0 8px 0;
    line-height: 1.3;
}

h1 {
    font-size: 2em;
    border-bottom: 2px solid #1e40af;
    padding-bottom: 8px;
}

h2 {
    font-size: 1.6em;
}

h3 {
    font-size: 1.4em;
}

h4 {
    font-size: 1.2em;
}

h5 {
    font-size: 1.1em;
}

h6 {
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
