.custom-dropdown {
    & > ul.dropdown-menu {
        max-height: 65vh;
        max-width: 280px;
        min-width: 280px;
        overflow: auto;

        li {
            .nav-label {
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                text-align: left;
                width: 100%;
                padding-right: 10px;
            }
        }

        & > .dropdown-submenu:first-child {
            & > a {
                border-top: none;
            }
        }

        .dropdown-submenu {
            & + li:hover {
                background-color: unset;
            }

            & > a {
                padding-left: 10px;
                border-top: 1px solid $divider-color;
            }

            &.submenu-open > a > .caret {
                transform: rotate(90deg);
                transition: all 0.2s ease-in-out;
            }

            &.submenu-open > ul {
                display: block !important;
            }

            & > ul {
                position: relative;
                max-height: unset;
                margin-left: 15px;
                width: calc(100% - 15px);
                box-shadow: none;
                left: 0;
                right: 0;

                .print-option {
                    .print-link {
                        padding-left: 10px;
                        padding-right: 5px;
                        display: inline-block;
                        width: calc(100% - 25px);
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        line-height: 17px;
                        font-size: 11.5px;
                    }

                    .preview-icon {
                        line-height: 17px;
                    }
                }

                .preview-print-option {
                    & > a {
                        padding-left: 10px;
                        padding-right: 5px;
                        display: inline-block;
                        width: 100%;
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        line-height: 17px;
                        font-size: 11.5px;
                    }
                }
            }
        }
    }
}
