/*
 * Footer, small-screen breakpoints, and print layout. Loaded last so these rules win over
 * the earlier files, as they did at the end of the original stylesheet.
 */
/* Footer */
.footer { background: var(--ey-black); padding: 12px 20px; text-align: center; color: var(--ey-gray-light); font-size: 11px; margin-top: auto; }
.footer strong { color: var(--ey-yellow); }

@media (max-width: 1100px) {
    .header { flex-wrap: wrap; padding: 8px 16px; }
    /* No overflow clipping here: it would hide the absolutely positioned Reports dropdown. */
    .nav { order: 3; flex: 1 1 100%; flex-wrap: wrap; justify-content: flex-start; }
    .nav > .nav-btn { flex: 0 0 auto; }
    .header-btns { margin-left: auto; }
}
@media (max-width: 900px) {
    .page { padding: 16px; }
    .detail-status { padding: 0 16px; }
    .global-controls { position: static; width: calc(100% - 32px); }
    .viewer-status-row { flex-direction: column; gap: 8px; }
    .scope-meta { width: 100%; min-width: 0; text-align: left; }
    .dashboard-scope-meta { text-align: left; }
}
@media (max-width: 700px) {
    .logo span { font-size: 13px; }
    .header-btns { width: 100%; justify-content: flex-end; }
}

@media print {
    @page { margin: 12mm; }
    body, .app { background: #fff !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .header, .detail-status, .viewer-load-progress, .global-controls, .footer, .loading, .modal, .lq-actions { display: none !important; }
    .page { display: none !important; max-width: none !important; padding: 0 !important; }
    .page.active { display: block !important; }
    .section, .card, .chart-box, .tbl-box, .health, .pdlc-metric, .insight, .roadmap, .dep-grid { break-inside: avoid; page-break-inside: avoid; }
}
