.pwa-navbar {
    padding: 1.25rem 1rem;
}

/*
    Parks the dossier title under the navbar. Full-bleed uses the same gutter trick as the mobile
    form actions, because the header sits inside a container.
    The height is fixed instead of following the content, so a sticky element further down can park
    itself right under it (see mobile-form.css). That is why the rows do not wrap: the second row is
    only there when the user may see one of its chips, and a long dossier name is cut off instead.
*/
:root {
    /* Fits the tallest item in a row: a button with a 20px icon */
    --pwa-dossier-header-row-height: 2.5rem;
    /* py-3, one row and the border-bottom */
    --pwa-dossier-header-height: calc(2rem + var(--pwa-dossier-header-row-height) + 1px);
}

:root:has(.pwa-dossier-header-row + .pwa-dossier-header-row) {
    /* py-3, two rows with a gap-3 in between and the border-bottom */
    --pwa-dossier-header-height: calc(3rem + 2 * var(--pwa-dossier-header-row-height) + 1px);
}

.pwa-dossier-header {
    /* Above the photo drag handles (z-index: 2) and below the navbar (z-3). */
    z-index: 3;
    top: var(--pwa-navbar-height);
    height: var(--pwa-dossier-header-height);
    margin-inline: calc(-.5 * var(--bs-gutter-x, 1.5rem));
    padding-inline: calc(.5 * var(--bs-gutter-x, 1.5rem));

    .pwa-dossier-header-row {
        height: var(--pwa-dossier-header-row-height);
    }

    /* No Bootstrap utility for this, and overflow-hidden would clip the focus ring of the button.
       Without it the title keeps the width of the full name and the name is never cut off. */
    h1 {
        min-width: 0;
    }
}

/*
    The height is fixed instead of following the icons, so a sticky element can offset itself by
    exactly --pwa-footer-height and land on top of the footer without a gap (see mobile-form.css).
*/
.pwa-footer {
    height: var(--pwa-footer-height);
}


.navbar {
    .btn.dropdown-toggle {
        --bs-btn-color: --cibor-gray-nav;
    }
    color: var(--cibor-gray-nav);
    font-size: 1.1rem;

    .badge.bell {
        padding: 4px 3px 0 3px;
        background-color: var(--cibor-red);
        color: var(--white);
        width: auto;
        min-width: 22px;
        height: 22px;
        font-size: 14px;
    }

    @media (min-width: 1280px) {
        .nav-item {
            padding-left: 0.5rem;
            padding-right: 0.5rem;
        }
    }

    .dropdown-menu {
        --bs-dropdown-min-width: 100%;
        --bs-dropdown-padding-y: 0rem;
        .dropdown-item {
            border-bottom: 1px solid var(--cibor-gray-lighter);
        }
        li:last-child {
            .dropdown-item {
                border-bottom: none;
            }
        }
        @media (min-width: 1280px) {
            .dropdown-item {
                padding: 1rem;
            }
        }
    }

    .dropdown:hover>.dropdown-menu {
        display: block;
    }

    .dropdown>.dropdown-toggle:active {
        /*Without this, clicking will make it sticky*/
        pointer-events: none;
    }


    @media (max-width: 991px) {
        .navbar-nav {
            margin-top: 5px;
            .nav-link {
                background-color: var(--cibor-blue);
                color: white;
                padding-left: 5px;
            }

            .dropdown-menu {
                display: block !important; /* Forceer dropdown-menu om altijd zichtbaar te zijn */
                position: static !important; /* Zorg ervoor dat het menu niet zwevend is */
                visibility: visible !important;
                opacity: 1 !important;
            }

            .dropdown-toggle::after {
                display: none; /* Verwijder de dropdown-pijl als deze niet meer nodig is */
            }
        }
    }

}

