.pointer-events-none {
    pointer-events: none;
}
.navbar-top {
    z-index: 201;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    padding: 0;
    background: var(--sidebar-bg);
    margin-left: $sidebar-width-lg;
    -moz-transition: all $action-transition-duration
        $action-transition-timing-function;
    -webkit-transition: all $action-transition-duration
        $action-transition-timing-function;
    transition: all $action-transition-duration
        $action-transition-timing-function;
    &.add-scroller-style {
        border-bottom: 1px solid var(--border-color);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        background-color: var(--top-bar);
        box-shadow: none;
        z-index: 201;
        transition: width 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
            height 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    }
    .navbar-menu-wrapper {
        width: 100%;
        display: flex;
        padding: 9px 0px;
        align-items: center;
        color: var(--menubar-font-color);
        justify-content: space-between;
        -moz-transition: width $action-transition-duration
            $action-transition-timing-function;
        -webkit-transition: width $action-transition-duration
            $action-transition-timing-function;
        transition: width $action-transition-duration
            $action-transition-timing-function;

        @media (max-width: 960px) {
            padding: 8px 5px;
        }
        @media (max-width: 767px) {
            padding: 8px 15px;
        }

        .navbar-left-items {
            display: flex;
            align-items: center;

            .navbar-primary {
                margin-right: 0;
                min-width: 35px;

                img {
                    margin: auto;
                    height: 35px;

                    max-width: 100%;
                    vertical-align: middle;
                }
            }

            .navbar-nav {
                .sidebar-toggle-button {
                    .nav-link {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        padding: 0;
                        background-color: var(--sidebar-bg);
                        i {
                            font-size: 20px;
                        }
                    }
                }
            }
        }

        .navbar-nav {
            padding: 0;
            flex-direction: row;
            @media (max-width: 425px) {
                flex-wrap: wrap;
                justify-content: flex-end;
                row-gap: 2px;
                column-gap: 4px;
            }
            .nav-item {
                display: inline-flex;
                align-items: center;
                &.fullscreen-icon {
                    @media (max-width: 991px) {
                        display: none;
                    }
                }
                .nav-link {
                    color: var(--menubar-font-color);
                    transition: all var(--transition-duration) ease-in-out;
                    i {
                        font-size: 1.33rem;
                    }
                    &:hover {
                        color: var(--primary);
                    }
                    .username {
                        @media (max-width: 425px) {
                            display: none;
                        }
                    }
                }

                &.dropdown {
                    .dropdown-toggle {
                        &:after {
                            display: none;
                        }
                    }
                    .dropdown-menu {
                        &:before {
                            content: "";
                            width: 0;
                            height: 0;
                            z-index: 2;
                            position: absolute;
                            top: -7px;
                            right: 15px;
                            left: inherit;
                            border-left: 7px solid transparent;
                            border-right: 7px solid transparent;
                            border-bottom: 7px solid var(--dropdown-menu-bg);
                        }

                        &.navbar-dropdown {
                            margin-top: 10px;
                            min-width: 130px;
                            padding: 0.5rem 0 7px;

                            .dropdown-item {
                                display: flex;
                                align-items: center;
                                font-size: inherit;

                                &:hover {
                                    background-color: transparent !important;
                                }

                                &.active {
                                    color: var(--primary);
                                    background-color: transparent !important;
                                }
                            }
                        }

                        @extend .dropdownAnimation;

                        .notification-wrapper {
                            max-height: 440px;
                            overflow-y: auto;
                            position: relative;

                            .mark-all {
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                background-color: var(--card-color);
                                color: var(--menubar-font-color);
                                flex-direction: column;
                            }

                            .notification-items {
                                padding: 8px 23px;

                                &:not(:last-child) {
                                    border-bottom: 1px solid var(--border-color);
                                }

                                &:hover {
                                    background-color: var(--form-control-bg);
                                }

                                .notification-topper {
                                    display: flex;

                                    .dot {
                                        max-height: 10px;
                                        min-width: 10px;
                                        max-width: 10px;
                                        border-radius: 50%;
                                        background: var(--primary);
                                        display: inline-flex;
                                        margin-right: 10px;
                                        position: relative;
                                        top: 5px;
                                    }

                                    .notification-txt {
                                        color: var(--notification-color);
                                        font-size: 12px;

                                        &::first-letter {
                                            text-transform: uppercase;
                                        }
                                    }
                                }

                                .notification-date-time {
                                    margin: 3px 20px;

                                    span {
                                        color: var(--date-time);
                                        font-size: 12px;
                                    }
                                }
                            }
                        }

                        .view-all {
                            padding-left: 25px;
                        }
                    }
                }

                &.nav-notification {
                    .notify-icon {
                        position: relative;
                        .counter {
                            position: absolute;
                            top: -5px;
                            right: -6px;
                            width: 15px;
                            height: 15px;
                            color: var(--white);
                            font-size: 10px;
                            line-height: 15px;
                            text-align: center;
                            border-radius: var(--round-default);
                            background-color: var(--primary);
                        }
                    }
                    .dropdown-menu {
                        max-width: 330px;
                    }
                }

                &.nav-language {
                    border-radius: 10px;
                    padding: 0.97rem 0;

                    @media (min-width: 576px) {
                        border: 1px solid var(--border-color);
                    }

                    .language-text {
                        margin-top: 1px;
                        @media (max-width: 600px) {
                            display: none;
                        }
                    }
                }

                &.nav-profile {
                    border-radius: 10px;
                    padding-top: 0.35rem;
                    padding-bottom: 0.35rem;
                    @media (min-width: 576px) {
                        border: 1px solid var(--border-color);
                    }
                    @media (max-width: 375px) {
                        padding: 0 !important;
                    }

                    .nav-link {
                        display: flex;
                        align-items: center;
                        .nav-profile-img {
                            border-radius: 100%;
                            border: 1px solid var(--primary);
                            padding: 3px;
                            img {
                                width: 25px;
                                height: 25px;
                                border-radius: 100%;
                                @media (max-width: 375px) {
                                    width: 22px;
                                    height: 22px;
                                }
                            }
                        }
                    }
                    .dropdown-menu {
                        width: 194px !important;

                        .dropdown-item {
                            i {
                                font-size: 20px;
                                line-height: 20px;
                            }
                        }
                    }
                }

                &:first-child {
                    .nav-link {
                        padding-left: 0;
                    }
                }

                &:last-child {
                    .nav-link {
                        padding-right: 0;
                    }
                }
            }
        }
    }

    &.navbar-sticky {
        background-color: var(--navbar-bg);
        box-shadow: var(--navbar-box-shadow);
    }
}

.rtl {
    .navbar-nav {
        @media (max-width: 425px) {
            padding: 0;
            justify-content: flex-start;
            flex-wrap: nowrap !important;
        }
        .nav-item {
            &.nav-profile {
                .dropdown-menu {
                    .dropdown-item {
                        i {
                            margin-left: 15px;
                            margin-right: 0 !important;
                        }
                    }
                }
            }
        }
    }
}

@media (max-width: 991px) {
    .navbar-top {
        margin-left: 0;
        flex-direction: row;
        background-color: var(--navbar-bg);
        box-shadow: var(--navbar-box-shadow);
        .navbar-menu-wrapper {
            width: 100%;
        }
    }
}

[aria-labelledby="dropdownNotification"] {
    width: 350px !important;
    top: 38px !important;

    @media (max-width: 768px) {
        position: absolute;
        min-width: 350px !important;
        right: 0 !important;
        left: unset;
    }

    @media (max-width: 767px) {
        position: fixed !important;
        left: 15px !important;
        right: 15px !important;
        width: 95vw;
        margin-top: 20px !important;
        min-width: 95vw !important;
        &.dropdown-menu {
            &::before {
                display: none;
                right: 50% !important;
                left: 56.6% !important;
            }
        }
    }
}

.rtl {
    [aria-labelledby="dropdownNotification"] {
        &.dropdown-menu {
            &::before {
                right: unset !important;
                left: 15px !important;
            }
        }

        @media (max-width: 767px) {
            position: fixed !important;
            left: 15px !important;
            right: 15px !important;
            width: 95vw;
            margin-top: 20px !important;
            min-width: calc(95vw - 15px) !important;
            &.dropdown-menu {
                &::before {
                    display: none;
                    right: 50% !important;
                    left: 56.6% !important;
                }
            }
        }
    }
}

// Navbar for POS page
.pos-page {
    &.sidebar-icon-only {
        .container-scroller {
            .navbar {
                margin-left: 0;
            }
        }
    }
    .navbar-top {
        margin-left: 0;
        flex-direction: row;
        background-color: var(--navbar-bg);
        box-shadow: var(--navbar-box-shadow);
        .navbar-menu-wrapper {
            width: 100%;
        }
    }
}
