﻿.safe-dxmenu {
    position: relative;
    display: inline-block;
    /* Por debajo del modal-back de DevExpress */
    --safe-dxmenu-z-backdrop: 1020;
    --safe-dxmenu-z-layer: 1030;
    --safe-dxmenu-z-dropdown: 1040;
}

.safe-dxmenu-layer {
    position: relative;
    z-index: var(--safe-dxmenu-z-layer);
}

.safe-dxmenu-bar {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: .25rem;
    align-items: center;
}

.safe-dxmenu-item {
    position: relative;
    list-style: none;
}

.safe-dxmenu-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: var(--safe-dxmenu-z-backdrop);
}

.safe-dxmenu-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.safe-dxmenu-dropdown {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    z-index: var(--safe-dxmenu-z-dropdown);
    width: max-content;
    min-width: 260px;
    max-width: 90vw;
    padding: .5rem;
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

.safe-dxmenu-dropdown-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: max-content;
    min-width: 100%;
}

.safe-dxmenu-leaf {
    width: 100%;
    box-sizing: border-box;
    text-align: left !important;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    padding-top: .5rem;
    padding-bottom: .5rem;
    /* Evita zonas muertas creadas por mt/mb en CssClass */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    white-space: nowrap;
}

/* Template-only items (cabeceras) */
.safe-dxmenu-template {
    width: 100%;
}

/* Separador real */
.safe-dxmenu-separator {
    width: 100%;
    padding: .25rem 0;
}

.safe-dxmenu-separator-line {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, .12);
}
