/* The real header keeps its listeners, focus and table semantics. The inert
   placeholder only preserves the table's height and intrinsic column widths. */
body:has(table[data-report-sticky]) #nav-container {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* A transformed ancestor would make the fixed header scroll with its card. */
.animate-in:has(table[data-report-sticky]) {
    animation-name: reportStickyFadeIn;
}

@keyframes reportStickyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
table[data-report-sticky] > thead.report-sticky-placeholder {
    visibility: hidden;
    pointer-events: none;
}
table[data-report-sticky] > thead.report-sticky-fixed {
    position: fixed;
    display: table;
    table-layout: fixed;
    margin: 0;
    z-index: 80;
    background: var(--bg-surface, #fff);
    border-collapse: inherit;
    border-spacing: inherit;
}
table[data-report-sticky] > thead.report-sticky-fixed > tr > :is(th, td) {
    box-sizing: border-box;
    position: relative;
    top: auto;
    z-index: 1;
    background: var(--bg-surface, #fff);
}
table[data-report-sticky] > thead.report-sticky-fixed > tr > .report-sticky-pinned {
    z-index: 2;
    box-shadow: 1px 0 var(--border, #ddd);
}
table[data-report-sticky] > thead.report-sticky-fixed :focus-visible {
    outline: 2px solid var(--accent, #10b981);
    outline-offset: -2px;
}
@media (max-width: 760px) {
    table[data-report-sticky] .sessions-sticky-status {
        left: var(--report-sticky-first-width, 170px);
    }
}
