/* ------------------------------------------------------------------
   Reports (print-friendly)
   ------------------------------------------------------------------ */

.report-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    background: rgba(255,255,255,0.04);
}

.report-logo {
    width: 160px;
    height: 56px;
    border: 1px dashed rgba(255,255,255,0.30);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0.85;
}

.report-title {
    flex: 1;
    min-width: 200px;
}

.report-title h1 {
    margin: 0;
    font-size: 22px;
}

.report-title .subtle {
    margin-top: 4px;
}

.report-meta {
    text-align: right;
    font-size: 12px;
    opacity: 0.90;
}

.report-body {
    margin-top: 14px;
}

.report-footer {
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.10);
    font-size: 12px;
    opacity: 0.9;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.report-actions {
    margin: 12px 0 0;
    display: flex;
    gap: 10px;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 12px;
}

@media (max-width: 840px) {
    .report-filter-grid {
        grid-template-columns: 1fr;
    }

    .report-header {
        flex-direction: column;
        align-items: stretch;
    }

    .report-meta {
        text-align: left;
    }
}

/* ------------------------------------------------------------------
   Print
   ------------------------------------------------------------------ */
@media print {
    /* Hide the app chrome */
    .topbar,
    .report-actions,
    .no-print {
        display: none !important;
    }

    /* Remove app padding so the report uses the page */
    .main {
        padding: 0 !important;
    }

    .report-shell {
        max-width: none;
        margin: 0;
    }

    /* Ensure black text for printers */
    body {
        color: #000 !important;
        background: #fff !important;
    }

    .card,
    .report-header {
        border: 1px solid #ddd !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    /* Footer at bottom of each printed page */
    .report-print-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 8px 0;
        border-top: 1px solid #ddd;
        font-size: 11px;
    }

    .report-print-footer-inner {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
}


.report-logo-img {
    max-height: 56px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}
