.report-document {
    color: #1e293b;
    max-width: 1440px;
    margin: 0 auto;
}

.report-document-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(11rem, auto);
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid #dbe3eb;
    border-top: 4px solid #0b5cad;
    border-radius: 0.85rem;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.report-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
    padding-right: 1.5rem;
    border-right: 1px solid #e2e8f0;
}

.report-brand-logo {
    width: 3.5rem;
    height: 3.5rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.report-brand-name {
    margin: 0;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 700;
}

.report-brand-label,
.report-heading-copy p,
.report-metadata span {
    color: #64748b;
    font-size: 0.75rem;
}

.report-brand-label {
    margin: 0.2rem 0 0;
}

.report-eyebrow {
    margin: 0 0 0.25rem;
    color: #0b5cad !important;
    font-size: 0.6875rem !important;
    font-weight: 700;
    text-transform: uppercase;
}

.report-heading-copy h1 {
    margin: 0;
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
}

.report-heading-copy > p:last-child {
    margin: 0.35rem 0 0;
}

.report-metadata {
    display: grid;
    gap: 0.6rem;
    min-width: 11rem;
}

.report-metadata div {
    display: grid;
    gap: 0.15rem;
}

.report-metadata strong {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
}

.report-toolbar,
.report-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.report-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.report-actions .btn-primary,
.report-actions .btn-secondary,
.report-actions button {
    min-height: 2.5rem;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .report-document-head {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 1rem;
        padding: 1rem;
    }

    .report-brand {
        padding: 0 0 0.875rem;
        border-right: 0;
        border-bottom: 1px solid #e2e8f0;
    }

    .report-metadata {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }

    .report-toolbar {
        align-items: flex-start;
    }

    .report-actions {
        flex-wrap: wrap;
    }
}

@page {
    size: A4 landscape;
    margin: 12mm;
}

@media print {
    html,
    body {
        height: auto !important;
        background: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body {
        color: #111827 !important;
        font-size: 10pt;
    }

    body > .flex.h-full {
        display: block !important;
        height: auto !important;
    }

    body > .flex.h-full > .flex-1 {
        display: block !important;
        padding-left: 0 !important;
        overflow: visible !important;
    }

    .app-sidebar,
    #sidebar-backdrop,
    body > .flex.h-full > .flex-1 > header,
    body > .flex.h-full > .flex-1 > footer,
    .report-screen-only {
        display: none !important;
    }

    main {
        display: block !important;
        height: auto !important;
        overflow: visible !important;
    }

    main > div {
        padding: 0 !important;
    }

    .report-document {
        max-width: none !important;
        margin: 0 !important;
    }

    .report-document-head {
        border: 0;
        border-top: 3px solid #0b5cad;
        border-radius: 0;
        padding: 0.25rem 0 1rem;
        margin-bottom: 1rem;
    }

    .card,
    .stat-card {
        break-inside: avoid;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .table {
        width: 100%;
        font-size: 8pt;
    }

    .table th,
    .table td {
        padding: 5px 6px !important;
    }

    .table th {
        color: #0f172a !important;
        background: #f1f5f9 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .table thead {
        display: table-header-group;
    }

    .table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .report-document a {
        color: inherit !important;
        text-decoration: none !important;
    }
}