/* ========================================================================== */
/* ADMIN MAIN LAYOUT                                                        */
/* ========================================================================== */

:root {
    /* --topnav-height: 100px; sourced from global.css */
    --sidenav-width: 280px; 
}

/* mirror public layout typography so nav text renders the same */
.admin-main-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-base);
    font-weight: 500;
}

/* wrapper */
.admin-layout {
    min-height: 100vh;
    flex: 1;
}

/* main area under top-nav */
.admin-layout-main {
    display: flex;
    align-items: flex-start;
    min-height: calc(100vh - var(--topnav-height));
    padding-top: var(--topnav-height);
}

/* sidenav */
.admin-sidenav {
    width: var(--sidenav-width);
    height: calc(100vh - var(--topnav-height));
    position: sticky;
    top: var(--topnav-height);
    flex-shrink: 0;
    overflow-y: auto;
    z-index: 1500;
}

/* page content */
.admin-layout-body {
    flex: 1;
    padding: 40px 40px;
    min-width: 0; /* viktigt så tabeller inte spränger layouten */
}

