/* Estilos propios globales para MoraCero */
.select2-container {
    width: 100% !important;
}

.select2-container--bootstrap4 {
    width: 100% !important;
}

.modal .select2-container {
    width: 100% !important;
}

.select2-dropdown {
    z-index: 2055;
}

.modal-open .select2-dropdown {
    z-index: 2055;
}

.select2-container--bootstrap4 .select2-selection {
    min-height: calc(2.25rem + 2px);
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    line-height: calc(2.25rem);
}

.select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem);
}

.navbar-nav.ml-auto .dropdown-menu,
.dropdown-menu.dropdown-menu-right {
    left: auto;
    right: 0;
}

.navbar .dropdown-menu {
    z-index: 1035;
}

.navbar .user-image {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
    background: #ffffff;
}

.navbar-nav > .user-menu > .dropdown-menu {
    width: 18rem;
    max-width: calc(100vw - 1rem);
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header {
    height: auto;
    min-height: 150px;
    padding: 1rem;
    text-align: center;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header > img {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain;
    background: #ffffff;
    padding: 4px;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header > p {
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.navbar-nav > .user-menu > .dropdown-menu > li.user-header > p > small {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}

.mc-page-loading {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mc-page-loading__box {
    min-width: 320px;
    max-width: 420px;
    padding: 28px 32px;
    background: #fff;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    border-top: 4px solid #007bff;
}

.mc-page-loading.d-none {
    display: none !important;
}