﻿option:hover {
    background-color: #436188 !important;
    color: #ffffff !important;
}

.vertical-collpsed #sidebar-menu > ul > li {
    position: relative;
}

    .vertical-collpsed #sidebar-menu > ul > li::after {
        /*content: '';
        position: absolute;
        top: 0;
        left: 100%;
        width: 250px;
        height: 100%;
        background: transparent;*/
        /*pointer-events: auto;*/
        pointer-events: none;
        width: 0;
    }

body.vertical-collpsed #nm-sidebar-resizer {
    display: none !important;
}

/*body.vertical-collpsed .vertical-menu #sidebar-menu ul.sub-menu li > a:hover {
    background-color: #dae1e9 !important;
}*/
body.vertical-collpsed .vertical-menu #sidebar-menu ul.sub-menu li:hover > a {
    background-color: #dae1e9 !important;
}

body.vertical-collpsed .vertical-menu #sidebar-menu ul.sub-menu ul.sub-menu li > a {
    padding: 8px 20px !important;
}

body.vertical-collpsed .vertical-menu #sidebar-menu ul.sub-menu {
    white-space: normal !important;
}

    body.vertical-collpsed .vertical-menu #sidebar-menu ul.sub-menu li > a {
        white-space: normal !important;
        overflow: visible !important;
        height: auto !important;
        line-height: 1.3 !important;
        display: flex !important;
        align-items: flex-start;
    }


.bg-denim_lt {
    background-color: var(--nm-denim-lt) !important;
}

.bg-warm-gray1c {
    background-color: var(--nm-warm-gray1c) !important;
}

/* Header */

.nm-header-black {
    background: var(--nm-black);
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.nm-header {
    background: var(--nm-dark-blue);
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.nm-logo-mark {
    width: 30px;
    height: 30px;
    background: var(--nm-denim);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .65rem;
    color: #fff;
    letter-spacing: .04em;
}

.nm-logo-text {
    font-weight: 600;
    font-size: .75rem;
    color: rgba(255,255,255,.65);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nm-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,.2);
    display: inline-block;
}

.nm-user-name {
    font-size: .68rem;
    font-weight: 500;
    color: rgba(255,255,255,.7);
}

/* Hero */
.nm-hero {
    background: var(--nm-denim-lt);
    padding: 1.8rem 0 1.3rem;
}

.nm-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--nm-black);
    margin-bottom: .85rem;
}

    .nm-hero-tag::before {
        content: '';
        display: block;
        width: 18px;
        height: 2px;
        background: var(--nm-black);
        border-radius: 2px;
    }

.nm-hero-title {
    font-weight: 700;
    font-size: clamp(1.8rem,4vw,2.8rem);
    line-height: 1.1;
    color: var(--nm-black);
}

.nm-hero-name {
    color: var(--nm-denim);
}

.nm-hero-sub {
    font-size: .82rem;
    font-weight: 400;
    color: var(--nm-black);
    margin-top: .5rem;
}

/* Divider */
.nm-divider-label {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--nm-text-3);
    white-space: nowrap;
}

.nm-divider-line {
    flex: 1;
    height: 1px;
    background: var(--nm-border);
}

/* Cards */
.nm-card {
    background: var(--nm-surface);
    border: 1px solid var(--nm-border);
    border-radius: var(--nm-radius);
    text-decoration: none;
    color: var(--nm-text-1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease
}

.nm-card-top {
    height: 3px;
    background: var(--c-accent,#436188);
    opacity: .55;
    transition: opacity .25s, height .25s;
}

.nm-card-bar {
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 0;
    width: 3px;
    background: var(--c-accent,#436188);
    border-radius: 0 0 0 var(--nm-radius);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .25s ease;
}

.nm-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--nm-shadow-hov);
    border-color: rgba(67,97,136,.3);
    color: var(--nm-text-1);
    text-decoration: none;
}

    .nm-card:hover .nm-card-top {
        opacity: 1;
        height: 4px;
    }

    .nm-card:hover .nm-card-bar {
        transform: scaleY(1);
    }

.nm-card-body {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    flex: 1;
}

.nm-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--c-accent-lt,#EBF1F7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .nm-icon svg {
        width: 19px;
        height: 19px;
        stroke: var(--c-accent,#436188);
        stroke-width: 1.7;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.nm-card-title {
    font-weight: 600;
    font-size: .88rem;
    color: var(--nm-text-1);
    margin: 0;
}

.nm-card-desc {
    font-size: .73rem;
    color: var(--nm-text-2);
    line-height: 1.6;
    flex: 1;
}

.nm-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: .7rem;
    border-top: 1px solid var(--nm-border);
}

.nm-card-cta {
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--nm-text-3);
    transition: color .2s;
}

.nm-card:hover .nm-card-cta {
    color: var(--c-accent,#436188);
}

.nm-chevron {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--nm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, background .2s;
}

.nm-card:hover .nm-chevron {
    border-color: var(--c-accent,#436188);
    background: var(--c-accent-lt,#EBF1F7);
}

.nm-chevron svg {
    width: 10px;
    height: 10px;
    stroke: var(--nm-text-3);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke .2s;
}

.nm-card:hover .nm-chevron svg {
    stroke: var(--c-accent,#436188);
}

/* Button menu */
.nm-avatar-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1.5px solid rgba(255,255,255,0.18) !important;
    border-radius: 50px !important;
    padding: 6px 14px 6px 8px !important;
    cursor: pointer !important;
    transition: background 0.18s ease, border-color 0.18s ease !important;
}

    .nm-avatar-btn:hover, .nm-avatar-btn:focus {
        background: rgba(255,255,255,0.16) !important;
        border-color: rgba(255,255,255,0.35) !important;
        outline: none !important;
        box-shadow: none !important;
    }

.nm-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: var(--nm-denim) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #fff !important;
    flex-shrink: 0 !important;
}

.nm-uname span {
    font-size: 12px !important;
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500 !important;
    max-width: 160px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.nm-chevron-ico {
    stroke: rgba(255,255,255,0.7) !important;
    transition: transform 0.2s ease !important;
}

.nm-avatar-btn[aria-expanded="true"] .nm-chevron-ico {
    transform: rotate(180deg) !important;
}

/* ── Dropdown Menu ── */
.dropdown-menu.dropdown-menu-end {
    min-width: 240px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14) !important;
    overflow: hidden !important;
    margin-top: 10px !important;
}

.nm-dd-header {
    background: linear-gradient(135deg, #436188 0%, #9CB6D2 100%);
    padding: 18px 20px 16px !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nm-dd-label {
    font-size: 10px !important;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255,255,255,0.6) !important;
    font-weight: 600;
}

.nm-dd-name span {
    font-size: 14px !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.dropdown-menu li:last-child {
    padding: 8px !important;
    background: #f8f9fc;
}

.nm-dd-logout {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    color: #c0392b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: background 0.15s ease !important;
    border: 1.5px solid transparent !important;
}

    .nm-dd-logout:hover {
        background: #fdf0ef !important;
        color: #a93226 !important;
        border-color: #f5c6c2 !important;
    }

/* Footer */
.nm-footer {
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--nm-text-3);
    border-top: 1px solid var(--nm-border);
    background: var(--nm-surface);
}

@media (prefers-reduced-motion: reduce) {
    .nm-card, .nm-card::before, .nm-card::after,
    .nm-card-cta, .nm-chevron, .nm-chevron svg {
        transition: none;
    }
}



/* CUANDO EL SIDEBAR SOLO TIENE ELEMENTOS HIJOS */
body[data-sidebar=ligthblue].vertical-collpsed .vertical-menu #sidebar-menu ul li.mm-active .active {
    color: #fff !important;
}

body[data-sidebar=ligthblue].vertical-collpsed .vertical-menu #sidebar-menu > ul > li:hover > a i {
    color: #fff !important
}

/* MasterPage.master: cabecera negra y sidebar denim claro. */
.nm-extranet-shell .nm-header {
    background: var(--nm-black);
    height: 58px;
}

    .nm-extranet-shell .nm-header .header-item,
    .nm-extranet-shell .nm-header .header-item i {
        color: #fff;
    }

        .nm-extranet-shell .nm-header .header-item:hover,
        .nm-extranet-shell .nm-header .header-item:focus {
            color: var(--nm-steel);
        }

    .nm-extranet-shell .nm-header .nm-user-dropdown {
        display: flex !important;
        align-items: center;
        margin-left: 6px;
    }

    .nm-extranet-shell .nm-header .nm-uname span {
        display: block;
    }

    .nm-extranet-shell .nm-header .nm-dd-name {
        overflow-wrap: anywhere;
    }

    .nm-extranet-shell .nm-header .nm-dd-logout {
        width: 100%;
        background: transparent;
        text-align: left;
    }

        .nm-extranet-shell .nm-header .nm-dd-logout:hover,
        .nm-extranet-shell .nm-header .nm-dd-logout:focus-visible {
            background: #fdf0ef;
        }

    .nm-extranet-shell .nm-header .nm-avatar-btn:focus-visible {
        outline: 2px solid var(--nm-steel) !important;
        outline-offset: 2px;
    }

/* El valor ligthblue conserva la grafia del tema existente. */
body.nm-extranet-shell[data-sidebar=ligthblue] .vertical-menu {
    top: 58px;
    background-color: var(--nm-denim-lt);
}

.nm-extranet-shell #side-menu > li > a > span,
.nm-extranet-shell #side-menu > li > ul.sub-menu > li > a.has-arrow > span {
    text-transform: uppercase;
}

body.nm-extranet-shell[data-sidebar=ligthblue].vertical-collpsed .vertical-menu #sidebar-menu ul li.mm-active ul.sub-menu a.active {
    color: #666fa3 !important;
}

body.nm-extranet-shell[data-sidebar=ligthblue].vertical-collpsed .vertical-menu #sidebar-menu > ul > li.mm-active > a.active:not(:hover) {
    color: var(--nm-navy) !important;
}

body.nm-extranet-shell[data-sidebar=ligthblue].vertical-collpsed .vertical-menu #sidebar-menu > ul > li.mm-active:hover > a.active {
    color: #fff !important;
}

@media (min-width: 993px) {
    body.nm-extranet-shell:not(.vertical-collpsed) .vertical-menu {
        width: var(--nm-sidebar-width, 270px);
    }

    body.nm-extranet-shell:not(.vertical-collpsed) .main-content,
    body.nm-extranet-shell:not(.vertical-collpsed) .footer {
        margin-left: var(--nm-sidebar-width, 270px);
    }

    body.nm-extranet-shell.vertical-collpsed .footer {
        margin-left: 70px;
    }
}

.nm-extranet-shell #nm-sidebar-resizer {
    position: fixed;
    top: 58px;
    bottom: 0;
    left: calc(var(--nm-sidebar-width, 270px) - 4px);
    width: 8px;
    cursor: col-resize;
    z-index: 1020;
    background: transparent;
    transition: background .15s;
    touch-action: none;
}

    .nm-extranet-shell #nm-sidebar-resizer:hover,
    .nm-extranet-shell #nm-sidebar-resizer:focus-visible {
        background: rgba(80,80,80,.20);
    }

    .nm-extranet-shell #nm-sidebar-resizer.nm-resizer-dragging {
        background: rgba(80,80,80,.35);
    }

    .nm-extranet-shell #nm-sidebar-resizer.nm-resizer-collapse {
        background: rgba(220,50,50,.50);
    }

@media (max-width: 992px) {
    .nm-extranet-shell .footer {
        margin-left: 0 !important;
    }

    .nm-extranet-shell #nm-sidebar-resizer {
        display: none !important;
    }
}
