/* layout-fixes.css — clears legacy conflicts for dashboard pages */

/* Remove body bottom margin added by site.css */
body { margin-bottom: 0 !important; }

/* Ensure html+body fill full viewport with no overflow */
html, body {
    height: 100%;
    overflow: hidden;
}

/* Dashboard shell must fill full viewport — no offset from old navbar */
.dashboard-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
}

/* Sidebar: fixed height, scrolls only internally */
.sidebar {
    flex-shrink: 0;
    width: 240px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Main content: takes remaining space, scrolls internally */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    min-width: 0;
}

/* Topbar: fixed at top of main-content, never scrolls away */
.topbar {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Page body: scrolls inside main-content */
.page-body,
.content-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
