/* Print-specific styles for PaymentSuccess page */
@media print {

    /* Hide elements that shouldn't appear in print */
    .d-print-none,
    nav,
    .btn,
    .breadcrumb {
        display: none !important;
    }

    /* Reset body and container for print */
    body {
        background: white !important;
        color: black !important;
        font-family: var(--font-family-primary);
        font-size: 12pt;
        line-height: 1.4;
        margin: 0;
        padding: 0;
    }

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

    /* Page layout */
    @page {
        margin: 0.75in;
        size: letter;
    }

    /* Success header for print */
    .success-icon {
        color: black !important;
        font-size: 2rem !important;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: black !important;
        margin-bottom: 0.5rem;
    }

    .text-success {
        color: black !important;
    }

    .text-muted {
        color: #555 !important;
    }

    /* Card styling for print */
    .card {
        border: 2px solid black !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin: 1rem 0 !important;
        background: white !important;
    }

    .card-body {
        padding: 1.5rem !important;
    }

    /* Table styling for print */
    .table {
        border-collapse: collapse !important;
        width: 100% !important;
        margin: 1rem 0 !important;
        font-size: 11pt !important;
    }

    .table th,
    .table td {
        border: 1px solid black !important;
        padding: 8px !important;
        text-align: left !important;
    }

    .table th {
        background-color: #f0f0f0 !important;
        font-weight: bold !important;
    }

    .table-light {
        background-color: #f5f5f5 !important;
    }

    /* Receipt formatting */
    .receipt-header {
        text-align: center;
        margin-bottom: 2rem;
        border-bottom: 2px solid black;
        padding-bottom: 1rem;
    }

    .payment-details {
        margin: 1.5rem 0;
    }

    .payment-details strong {
        font-weight: bold;
    }

    /* Footer styling */
    .receipt-footer {
        margin-top: 2rem;
        border-top: 1px solid black;
        padding-top: 1rem;
    }

    /* Ensure proper page breaks */
    .print-no-break {
        page-break-inside: avoid;
    }

    .print-break {
        page-break-before: always;
    }

    /* Typography adjustments */
    p {
        margin-bottom: 0.5rem;
    }

    .mb-3,
    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .row {
        margin: 0 !important;
    }

    .col-md-6 {
        width: 50% !important;
        float: left !important;
        padding: 0 0.5rem !important;
    }

    /* Clear floats */
    .row:after {
        content: "";
        display: table;
        clear: both;
    }

    /* Text alignment */
    .text-end {
        text-align: right !important;
    }

    .text-center {
        text-align: center !important;
    }

    /* Font awesome icons for print */
    .fas {
        font-family: 'Font Awesome 6 Free' !important;
        font-weight: 900 !important;
    }

    /* Voucher styling */
    .voucher-info {
        background-color: #f9f9f9 !important;
        padding: 0.5rem !important;
        border: 1px solid #ccc !important;
    }
}