﻿

.mud-list {
    padding: 10px !important;
}

.mud-list-item.mud-list-item-dense {
    padding: 1px 0px !important;
    margin: 1px 0px !important;
}

.mudmenu-topitem {
    padding: 0 !important;
    margin: 0 !important;
}

.mud-list-item-text {
    padding: 0 !important;
    margin: 0 !important;
}

    .mud-list-item-text p {
        padding: 0 !important;
        margin: 0 !important;
        text-align: left;
    }

.mudmenu-submenu, .mudmenu-submenuitem {
    padding: 0 !important;
    margin: 0 !important;
}

.mud-popover-cascading-value {
    z-index: 99999;
}

/* Popover paper for this menu: make it scrollable */
.table-menu-popover {
    max-height: 520px; /* overall menu height */
    overflow-y: auto; /* scroll inside the menu */
    padding: 0;
}

    /* Use the popover as the ONLY scroll container */
    .table-menu-popover .mud-list {
        max-height: none; /* don't restrict the list itself */
        overflow-y: visible; /* list doesn't scroll; popover does */
        padding-bottom: 0;
    }

    /* Keep the Close item visible at the bottom inside the scroll area */
    .table-menu-popover li.table-menu-close,
    .table-menu-popover .table-menu-close {
        position: sticky;
        bottom: 0;
        background: white;
        z-index: 1;
        margin: 0;
        color:black;
        background-color:#f2f2f2;
    }
