﻿/* PRINT STYLES */
@media print {

    /* Page setup */
    @page {
        size: Letter portrait;
        margin: 0.5in;
    }

    body {
        background: #fff !important;
        font-size: 10pt;
        color: #000;
    }

    /* Hide unwanted elements */
    .btn,
    .no-print,
    footer {
        display: none !important;
    }

    /* Make container full width */
    .container,
    .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .content-container {
        font-size: small;
    }
    /* Section titles */
    h2, h3, h4 {
        margin-top: 20px;
        margin-bottom: 10px;
        border-bottom: 2px solid #444;
        padding-bottom: 5px;
    }

    /* Tables */
    table {
        font-size: 9pt !important;
        width: 100% !important;
        border-collapse: collapse !important;
        margin-bottom: 20px;
        page-break-inside: avoid;
        table-layout: fixed;
    }

    thead {
        background-color: #f2f2f2 !important;
    }

    th, td {
        border: 1px solid #999 !important;
        padding: 6px 8px !important;
        text-align: left;
        vertical-align: top;
        word-wrap: break-word;
    }

    th {
        font-size: 9pt !important;
        font-weight: bold;
    }

    /* Prevent rows from splitting */
    tr {
        page-break-inside: avoid;
    }

    /* Improve section spacing */
    .card {
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 20px;
    }

    /* Fix long text wrapping */
    td {
        white-space: normal !important;
        font-size: 9pt !important;
    }

    .print-header {
        text-align: center;
        margin-bottom: 20px;
    }

    /* Force everything in this section to full width */
    .printcol-1 {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    /* Rebuild the two-column money layout */
    .card .row > .col-6.text-end:first-child {
        width: 50% !important;
        display: inline-block !important;
        text-align: right !important;
        font-weight: bold;
    }

    .card .row > .col-6.text-end:last-child {
        width: 50% !important;
        display: inline-block !important;
        text-align: right !important;
    }

    hr.minor {
        border-top: 1px solid #000 !important;
    }
}