/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-rn5mzc48lq] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-rn5mzc48lq] {
    flex: 1;
}

.sidebar[b-rn5mzc48lq] {
    /* Gradienten følger det valgte farvetema (variabler sat på .page i MainLayout),
       men beholder den flotte to-farve-gradient. Fallback = det oprindelige navy→lilla. */
    background-image: linear-gradient(180deg, var(--ht-sidebar-from, rgb(5, 39, 103)) 0%, var(--ht-sidebar-to, #3a0647) 70%);
}

.top-row[b-rn5mzc48lq] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-rn5mzc48lq]  a, .top-row[b-rn5mzc48lq]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-rn5mzc48lq]  a:hover, .top-row[b-rn5mzc48lq]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-rn5mzc48lq]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-rn5mzc48lq] {
        justify-content: space-between;
    }

    .top-row[b-rn5mzc48lq]  a, .top-row[b-rn5mzc48lq]  .btn-link {
        margin-left: 0;
    }

    /* Menuen er nu en drawer der glider ind fra venstre (åbnes af bundlinjens "Mere"). */
    .sidebar[b-rn5mzc48lq] {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 82%;
        max-width: 300px;
        z-index: 1300;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
    }

    .sidebar.open[b-rn5mzc48lq] {
        transform: translateX(0);
    }

    .nav-backdrop[b-rn5mzc48lq] {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1250;
    }

    /* Giv plads til den faste bundlinje-menu, så indhold ikke skjules bag den. (Følger .bottom-nav-højden.) */
    main[b-rn5mzc48lq] {
        padding-bottom: 78px;
    }
}

@media (min-width: 641px) {
    .page[b-rn5mzc48lq] {
        flex-direction: row;
    }

    .sidebar[b-rn5mzc48lq] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-rn5mzc48lq] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-rn5mzc48lq]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-rn5mzc48lq], article[b-rn5mzc48lq] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-1sw5wcx8f6] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-1sw5wcx8f6] {
    min-height: 4rem;
    background-color: rgba(0,0,0,0.30);
    display: flex;
    align-items: center;
    padding: 6px 14px;
}

/* Fuldbredde-wordmark: SVG skalerer med menubredden, så hele navnet altid er med
   og fylder bjælken. Accenten (kalender/tag/flueben) følger temaet via MudBlazors
   CSS-variabel; teksten er hvid for læsbarhed på den mørke menugradient. */
.brand-link[b-1sw5wcx8f6] {
    display: block;
    width: 100%;
    text-decoration: none;
}

.brand-svg[b-1sw5wcx8f6] {
    display: block;
    width: 100%;
    height: auto;
    font-family: 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;
}

/* Kalender-mærke (samme motiv som app-ikonet): hvidt "papir" + temafarvet
   header/tag/flueben, så det er læsbart på den mørke menu og følger temaet. */
.brand-paper[b-1sw5wcx8f6] {
    fill: #fff;
}

.brand-accent[b-1sw5wcx8f6] {
    fill: var(--mud-palette-secondary, #42c2a8);
}

.brand-accent-stroke[b-1sw5wcx8f6] {
    fill: none;
    stroke: var(--mud-palette-secondary, #42c2a8);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-check[b-1sw5wcx8f6] {
    fill: none;
    stroke: #fff;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-text[b-1sw5wcx8f6] {
    fill: #fff;
}

/* Vi bruger emojis som ikoner i menuen — skjul de gamle (mest tomme) bi-ikonfirkanter,
   så teksten ikke skubbes ud og knækker. */
.bi[b-1sw5wcx8f6] {
    display: none;
}

.bi-house-door-fill-nav-menu[b-1sw5wcx8f6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-1sw5wcx8f6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-1sw5wcx8f6] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-1sw5wcx8f6] {
    font-size: 0.9rem;
    padding-bottom: 0.2rem;
}

    .nav-item:first-of-type[b-1sw5wcx8f6] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-1sw5wcx8f6] {
        padding-bottom: 1rem;
    }

.nav-section[b-1sw5wcx8f6] {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 600;
    padding-left: 0.5rem;
}

    .nav-item[b-1sw5wcx8f6]  a,
    .nav-item[b-1sw5wcx8f6]  .nav-link {
        color: #d7d7d7;
        border-radius: 4px;
        height: 2.4rem;
        line-height: 2.4rem;
        display: block;
        width: 100%;
        padding: 0 0.6rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }

.nav-item[b-1sw5wcx8f6]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-1sw5wcx8f6]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-1sw5wcx8f6] {
        display: none;
    }

    .collapse[b-1sw5wcx8f6] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-1sw5wcx8f6] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 4rem);
        overflow-y: auto;
    }
}
