﻿:root {
    --header-height: 48px;
    --footer-height: 40px;
}

/* Make the page fill the viewport */
html, body {
    height: 100%;
    margin: 0;
}

/* Fixed header */
#HeaderInjectedText {
    white-space: nowrap;
    max-width: 80px; /* adjust as needed */
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
    position: static !important; /* remove the top:3px nudge */
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030; /* above everything */
}

/* Fixed footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    z-index: 1000;
}

/* Content fills the space between header and footer */
#content {
    position: absolute;
    top: var(--header-height);
    bottom: var(--footer-height);
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 1rem;
}
