.primary-navigation {

    @include media-breakpoint-between(xs, md) {
        .navbar-nav {
            flex-direction: column!important;
        }
    }

    .navigation {
        height: 42px;
        display: flex;
        align-items: center;

        @include media-breakpoint-between(xs, md) {
            height: max-content;
            width: calc(100% - 20px);
            margin: 20px 10px 0;
            display: none;
        }

        .nav-link {
            padding: 6px 12px;
            color: $topbar-btn-text;
            border: none;
            border-radius: $btn-border-radius;

            @include media-breakpoint-up(lmd) {
                margin: 0 1px;
            }

            &:before {
                display: none;
            }

            &.active {
                background-color: $topbar-btn-hover;
                color: $topbar-btn-text;
                box-shadow: rgba(9,30,66,.25) 0 1px 1px,rgba(9,30,66,.13) 0 0 1px 1px;

                .theme-dark & {
                    background-color: $dm-gray-100;
                    color: $dm-body-color-secondary;
                }
            }

            &[aria-expanded="true"],
            &:hover {
                background-color: rgba($topbar-btn-hover, .5);
                color: $topbar-btn-hover-text;

                .theme-dark & {
                    background-color: rgba($dm-gray-100, .6);
                    color: $dm-body-color-secondary;
                }
            }

            .theme-dark & {
                color: $dm-body-color;
            }
        }
    }
}

@include media-breakpoint-between(xs, md) {
    .primary-navigation {
        position: relative;
        width: 100%;
        margin-top: 20px;
        margin-bottom: 0;
    }
}

.editmode-switch-form .custom-control-input {
    z-index: 1;
}

.drawer-primary .drawercontent {
    padding: 0;

    .list-group {
        border-radius: 0;
        margin-top: -1px;

        .list-group-item {
            border-left: 0;
            border-right: 0;
        }
    }
}