/* New menu v2 */
#menu_wrap_v2.active {
    top: 0;
    overflow: unset;
    height: auto;
}

#menu_wrap_v2.active::before {
    content: "";
    position: fixed;
    inset: 0;
    /* background: rgb(46 45 45); */
    z-index: -1;
}

#menu_wrap_v2 {
    position: absolute;
    top: -720px;
    left: 0;
    right: 0;
    z-index: 22;
    background: #383636;
    width: 100vw;
    max-width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 45px;
    overflow: hidden;
    height: 0;
}

#new_buttons_v2 {
    z-index: 99999;
    width: var(--ne-header-control-width, 68px);
    text-align: center;
    padding: 0;
    height: var(--ne-header-control-size, 45px);
    overflow: visible;
    position: absolute;
    top: 2px;
    right: auto;
    left: 125px;
}

#new_buttons_v2.active {
    opacity: 1;
    background: #383636;
}

#ne_new_v2 {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
    padding: 0;
    z-index: 28;
    text-align: center;
    display: block;
    height: var(--ne-header-control-size, 45px);
    overflow: hidden;
    line-height: 45px;
    background: #b8b8b8;
    margin: 0;
    box-shadow: none;
    border-left: 0;
    border-right: 0;
    background-size: 423px;
    cursor: pointer;
    border: 0 solid #e0e0e01f;
    left: 0;
    opacity: 1;
    border-radius: 0;
}

#ne_new_v2.active {
    background: #383636 !important;
    opacity: 1;
}

#new_buttons_v2 .button,
#menu_wrap_v2 .button {
    line-height: 160px;
    display: inline-block;
    font-size: 12px;
    color: #aaa;
    background-image: url(../images/ui/ui-menu-buttons-dark-3.png);
    background-size: auto 64px;
    background-position: -130px 15px;
    font-weight: 600;
}

#new_buttons_v2 span.icon {
    display: none;
}

#new_buttons_v2 #ne_new_v2.button {
    height: var(--ne-header-control-size, 45px);
    background-image: none;
    color: transparent;
    padding: 0;
    display: block;
    width: var(--ne-header-control-width, 68px);
    min-width: var(--ne-header-control-width, 68px);
    background-color: #303030;
    top: 0;
    border-radius: 0;
    box-sizing: border-box;
    border: 0;
}

#new_buttons_v2 #ne_new_v2.active {
    z-index: 30;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--ne-header-control-size, 45px);
}

#ne_new_v2 span {
    display: none;
}

#ne_new_v2::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23b8b8b8' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    filter: drop-shadow(0 0 2px rgba(215, 215, 215, 0.42));
}

#ne_new_v2.active::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23f4a83c' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
    filter: drop-shadow(0 0 3px rgba(244, 168, 60, 0.58));
}

#menu_wrap_v2 .button {
    height: calc((100vh - 150px) / 4);
    font-size: 12px;
    color: rgb(170 170 170 / 47%);
    background-image: url(../images/ui-optimized/ic-request-dark.png);
    background-size: 42px;
    background-position: center 18px;
    background-color: #383636;
    background-repeat: no-repeat;
    padding: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-radius: 0;
    cursor: pointer;
    border: 1px solid #0000002b;
}

#menu_wrap_v2 .button.task {
    background-image: url(../images/ui-optimized/ic-timeline-dark.png);
}

#menu_wrap_v2 .button.account {
    background-image: url(../images/ui-optimized/ic-accounts-dark.png);
}

#menu_wrap_v2 .button.campaign {
    background-image: url(../images/ui-optimized/ic-campaigns-dark.png);
}

#menu_wrap_v2 .button.order {
    background-image: url(../images/ui-optimized/ic-orders.png);
}

#menu_wrap_v2 .button.transaction {
    background-image: url(../images/ui-optimized/ic-finance-dark.png);
}

#menu_wrap_v2 .button.project {
    background-image: url(../images/ui-optimized/ic-orders-2.png);
}

#menu_wrap_v2 .button.goal {
    background-image: url(../images/ui-optimized/ic-goals-dark.png);
}

#menu_wrap_v2 .button.feedback {
    background-image: url(../images/ui-optimized/ic-feedback-dark.png);
}

#menu_wrap_v2 .button:hover {
    background-color: #26262659;
    color: rgb(234 232 232);
    background-size: 31px;
    background-position: center 54px;
}

@media screen and (min-width: 375px) {
    #new_buttons_v2 .button,
    #menu_wrap_v2 .button {
        line-height: 200px;
        font-size: 12px;
        color: #aaa;
        background-size: 42px;
        background-position: center 48px;
        font-weight: 400;
        background-repeat: no-repeat;
        text-transform: uppercase;
    }

    #menu_wrap_v2 .button.account {
        background-position-x: center;
    }
}

@media screen and (min-width: 768px) {
    #menu_wrap_v2.active {
        top: 0;
        overflow: unset;
        padding-bottom: 100px;
        box-shadow: 0px -10px 40px #00000080;
        right: 0;
        left: auto;
        width: 450px;
        max-width: calc(100vw - 24px);
        height: max-content;
    }

    #menu_wrap_v2 {
        top: -113%;
        margin-top: 65px;
        overflow: unset;
        padding-bottom: 100px;
        box-shadow: 0px -10px 40px #00000080;
        right: 0;
        left: auto;
        width: 450px;
        max-width: calc(100vw - 24px);
    }

    #new_buttons_v2 {
        z-index: 999;
        width: var(--ne-header-dash-button-width, 95px);
        height: var(--ne-header-dash-button-height, 63px);
        right: auto;
        left: 163px;
    }

    #new_buttons_v2.active {
        background: #202020;
    }

    #ne_new_v2,
    #new_buttons_v2 #ne_new_v2.button {
        width: var(--ne-header-dash-button-width, 95px);
        min-width: var(--ne-header-dash-button-width, 95px);
        height: var(--ne-header-dash-button-height, 63px);
        line-height: 52px;
        background-color: #262626;
        border: 0 solid #e0e0e01f;
        box-shadow: none;
    }

    #new_buttons_v2 #ne_new_v2.active {
        top: 2px;
        z-index: 30;
        height: var(--ne-header-dash-button-height, 63px);
        background: #202020 !important;
    }

    #ne_new_v2 span.ne-header-action-label {
        display: block;
    }

    #ne_new_v2::before {
        inset: 0 0 12px;
        background-size: 22px 22px;
    }
}

@media screen and (min-width: 1024px) {
    #new_buttons_v2 {
        width: var(--ne-header-dash-button-width, 95px);
        height: var(--ne-header-dash-button-height, 63px);
        right: auto;
        left: 163px;
    }

    #new_buttons_v2 #ne_new_v2.active {
        top: 0;
        width: 100%;
        height: var(--ne-header-dash-button-height, 63px);
        border-radius: 0;
    }

    #menu_wrap_v2 .button {
        font-size: 14px;
        border: 1px solid #0000002b;
        position: relative;
        height: 180px;
        background-size: 45px;
        background-position: center 28px;
    }

    #menu_wrap_v2 .button:hover {
        color: rgb(234 232 232);
        background-size: 33px;
        background-position: center 28px;
    }
}

/* Desktop Add New uses the exact Dash menu row geometry and visual hierarchy. */
@media screen and (min-width: 768px) {
    #menu_wrap_v2,
    #menu_wrap_v2.active {
        position: fixed;
        top: 2px;
        right: 0;
        left: 0px;
        z-index: 30;
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 1px;
        box-sizing: border-box;
        width: 100%;
        max-width: none;
        height: 63px;
        margin: 0;
        padding: 0 96px 0 var(--ne-dash-actions-left, 543px);
        overflow: hidden;
        background: transparent;
        box-shadow: none;
        transition: opacity 160ms ease, visibility 160ms ease;
    }

    #menu_wrap_v2 {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    #menu_wrap_v2.active {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    #menu_wrap_v2.active::before {
        content: none;
    }

    #menu_wrap_v2 .button,
    #menu_wrap_v2 .button:hover,
    #menu_wrap_v2 .button:active {
        position: relative;
        top: 0;
        left: 0;
        display: block;
        flex: 0 0 95px;
        width: 95px;
        min-width: 95px;
        height: 61px;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 0 solid #e0e0e01f;
        border-radius: 0;
        background-color: #383636;
        background-image: none !important;
        box-shadow: none;
        color: #a8a8a8d1;
        font-family: var(--ne-app-font-family, "Mardoto", sans-serif);
        font-size: 10px;
        font-weight: 500;
        line-height: 52px;
        text-align: center;
        text-transform: uppercase;
        border: 0px solid #0000002b;
    }

    #menu_wrap_v2 .button:active {
        background-color: #202020;
    }

    #menu_wrap_v2 .button > .icon {
        position: absolute;
        top: 16px;
        left: 50%;
        display: block;
        width: 47px;
        height: 16px;
        margin: 0;
        padding: 0;
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        opacity: 0.7;
        filter: grayscale(1);
        transform: translateX(-50%);
    }

    #menu_wrap_v2 .button:hover > .icon {
        opacity: 0.7;
        filter: grayscale(1);
    }

    #menu_wrap_v2 .button > .ne-new-menu-label {
        position: absolute;
        right: 0;
        bottom: 8px;
        left: 0;
        display: block;
        width: 100%;
        height: 14px;
        padding: 0;
        color: #a8a8a8d1;
        font-size: 10px;
        font-weight: 500;
        line-height: 14px;
        text-align: center;
        text-transform: uppercase;
    }

    #menu_wrap_v2 .button.feedback > .icon { background-image: url(../images/ui-optimized/ic-feedback-dark.png); }
    #menu_wrap_v2 .button.account > .icon { background-image: url(../images/ui-optimized/ic-accounts-dark.png); }
    #menu_wrap_v2 .button.goal > .icon { background-image: url(../images/ui-optimized/ic-goals-dark.png); }
    #menu_wrap_v2 .button.project > .icon { background-image: url(../images/ui-optimized/ic-orders-2.png); }
    #menu_wrap_v2 .button.event > .icon { background-image: url(../images/ui-optimized/ic-calendar-dark.png); }
    #menu_wrap_v2 .button.campaign > .icon { background-image: url(../images/ui-optimized/ic-campaigns-dark.png); }
    #menu_wrap_v2 .button.request > .icon { background-image: url(../images/ui-optimized/ic-request-dark.png); }
    #menu_wrap_v2 .button.task > .icon { background-image: url(../images/ui-optimized/ic-timeline-dark.png); }
    #menu_wrap_v2 .button.transaction > .icon { background-image: url(../images/ui-optimized/ic-finance-dark.png); }
    #menu_wrap_v2 .button.docs > .icon { background-image: url(../images/ui-optimized/ic-documents.png); }
    #menu_wrap_v2 .button.order > .icon { background-image: url(../images/ui-optimized/ic-orders.png); }
}
