﻿/* Print-specific styles for reports */
@media print {
    /* Hide non-printable elements */
    .no-print,
    .btn,
    button,
    .navbar,
    .sidebar,
    nav,
    .card-header .btn-group,
    .filter-controls {
        display: none !important;
    }

    /* Page setup */
    @page {
        size: A4 landscape;
        margin: 1cm;
    }

    body {
        font-size: 10pt;
        line-height: 1.3;
    }

    /* Prevent page breaks inside table rows */
    tr {
        page-break-inside: avoid;
    }

    /* Card styling for print */
    .card {
        border: 1px solid #dee2e6;
        box-shadow: none;
        page-break-inside: avoid;
    }

    .card-header {
        background-color: #f8f9fa !important;
        color: #000 !important;
        border-bottom: 2px solid #dee2e6;
        padding: 0.5rem;
    }

    /* Table styling */
    table {
        width: 100%;
        border-collapse: collapse;
        font-size: 9pt;
    }

        table thead {
            background-color: #f8f9fa !important;
            color: #000 !important;
        }

        table th,
        table td {
            border: 1px solid #dee2e6;
            padding: 4px 6px;
        }

    /* Remove Bootstrap colors for print */
    .table-striped tbody tr:nth-of-type(odd) {
        background-color: rgba(0, 0, 0, 0.02) !important;
    }

    .badge {
        border: 1px solid #000;
        color: #000 !important;
        background-color: transparent !important;
    }

    /* Report title */
    h3, h5 {
        color: #000;
        margin-bottom: 0.5rem;
    }

    /* Summary info */
    .summary-info {
        margin-bottom: 1rem;
        padding: 0.5rem;
        border: 1px solid #dee2e6;
        background-color: #f8f9fa;
    }
}

/* Chart container for print */
@media print {
    .chart-container {
        page-break-before: always;
        page-break-inside: avoid;
    }
}
