/* User tab */
#user_tab {
    --ne-header-control-size: 45px;
    --ne-header-control-width: 68px;
    background: #2e2d2d;
    height: 45px;
    position: fixed;
    top: 0;
    width: 100%;
    transition: 0.3s all ease-in-out;
    z-index: 31;
    border: 0;
    background-position: 330px 16px;
    background-size: 423px;
}

@media screen and (min-width: 768px) {
    #user_tab {
        background: transparent;
        pointer-events: none;
    }

    #user_tab > *,
    #user_tab .ne-header-actions > * {
        pointer-events: auto;
    }

    #user_tab .ne-header-actions {
        pointer-events: none;
    }
}

#user_tab.finder-open {
    z-index: 100000;
}

#user_tab .ne-header-actions {
    position: absolute;
    top: 2px;
    left: 56px;
    z-index: 30;
    display: flex;
    flex-flow: row nowrap;
    gap: 1px;
    height: var(--ne-header-control-size);
}

#user_tab .ne-header-actions > #finder,
#user_tab .ne-header-actions > #new_buttons_v2,
#user_tab .ne-header-actions > #ne_filter {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    margin: 0;
    flex: 0 0 var(--ne-header-control-width);
    width: var(--ne-header-control-width);
    min-width: var(--ne-header-control-width);
    height: var(--ne-header-control-size);
    box-sizing: border-box;
    border: 0;
}

#user_tab #finder {
    position: absolute;
    top: 2px;
    left: 56px;
    width: var(--ne-header-control-width);
    height: var(--ne-header-control-size);
    min-width: var(--ne-header-control-width);
    z-index: 30;
    border-radius: 0;
}

#user_tab #finder .button {
    width: var(--ne-header-control-width) !important;
    min-width: var(--ne-header-control-width) !important;
    height: var(--ne-header-control-size) !important;
    min-height: var(--ne-header-control-size) !important;
    line-height: var(--ne-header-control-size) !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-size: 18px !important;
    background-position: center !important;
    background-color: #303030 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cfilter id='g' x='-45%25' y='-45%25' width='190%25' height='190%25'%3E%3CfeDropShadow dx='0' dy='0' stdDeviation='.8' flood-color='%23d7d7d7' flood-opacity='.42'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23g)'%3E%3Ccircle cx='11' cy='11' r='5.5' fill='none' stroke='%23b8b8b8' stroke-width='2'/%3E%3Cpath d='M15.5 15.5L20 20' fill='none' stroke='%23b8b8b8' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") !important;
}

#user_tab #finder.active {
    width: auto;
}

/* Header-owned finder: it replaces competing header controls while open. */
#user_tab #finder {
    box-sizing: border-box;
    transition: width 0.2s ease, left 0.2s ease, top 0.2s ease;
}

#user_tab #finder.active {
    display: flex;
    gap: 0;
    width: calc(100% - 45px);
    height: 45px;
    min-width: 0;
    z-index: 100001;
    background: #141414;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

#user_tab #finder.active input#search {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    height: 45px;
    margin: 0 !important;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    background: #212121;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 45px;
    animation: ne-finder-input-drop 0.22s ease-out both;
    position: relative;
    z-index: 2;
}

#user_tab #finder.active .button {
    flex: 0 0 var(--ne-header-control-width);
    margin: 0 !important;
    z-index: 2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cfilter id='g' x='-55%25' y='-55%25' width='210%25' height='210%25'%3E%3CfeDropShadow dx='0' dy='0' stdDeviation='1.05' flood-color='%23f4a83c' flood-opacity='.58'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23g)'%3E%3Ccircle cx='11' cy='11' r='5.5' fill='none' stroke='%23f4a83c' stroke-width='2'/%3E%3Cpath d='M15.5 15.5L20 20' fill='none' stroke='%23f4a83c' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E") !important;
}

#user_tab #finder .ne-finder-glass {
    display: none;
}

#user_tab #finder.active .ne-finder-glass {
    display: block;
    position: fixed;
    top: 45px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    cursor: default;
}

#user_tab #finder.active input#search::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

@keyframes ne-finder-input-drop {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#user_tab .filter {
    left: unset;
    display: block;
    background-color: #383636;
    background-image: url(../images/ui-optimized/ic-filter-main-dark.svg);
    background-repeat: no-repeat;
    background-size: 16px;
    font-size: 12px;
    color: transparent;
    right: auto;
    z-index: 29;
    width: var(--ne-header-control-width);
    background-position: center;
    height: var(--ne-header-control-size);
    top: 0;
    left: 194px;
}

#user_tab .filter.active {
    right: auto;
    opacity: 1;
    transition: 0.3s all ease-in-out;
    width: var(--ne-header-control-width);
    background-color: #383636;
    background-image: url(../images/ui-optimized/ic-filter-main-dark.svg);
    background-repeat: no-repeat;
    background-size: 20px;
    background-position: center;
    border-radius: 0;
    height: var(--ne-header-control-size);
    top: 0;
    z-index: 99;
    left: 194px;
    filter: none;
}

#user_tab .filter:not(.active) {
    filter: grayscale(1);
    opacity: 0.65;
}

#user_tab .filter:hover,
#user_tab .filter.active {
    filter: none;
    opacity: 1;
}

#user_tab #ne_settings {
    font-size: 7px;
    height: 45px;
    width: 45px;
    left: 10px;
    top: 9px;
    line-height: 0;
    border-radius: 0;
    margin-left: 1px;
    background: url(../images/ui/ui-dash.png) no-repeat;
    background-size: 23px;
    background-position: 10px 10px;
    position: absolute;
    background-repeat: no-repeat;
    color: transparent;
    opacity: 0.3;
    display: none;
}

#user_tab .edit .avatar-wrap {
    left: 20px;
    top: 0;
}

#user_tab .avatar-wrap .avatar-link,
#user_tab .avatar-wrap .avatar {
    border-radius: 0;
}

#user_tab .avatar-wrap {
    left: 4px;
    right: unset;
    width: var(--ne-header-control-size);
    height: var(--ne-header-control-size);
    border-radius: 0;
    padding: 0;
    top: 2px;
}

#authorization {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    width: 45px;
    height: 45px;
    color: transparent;
    background-color: unset;
    background-image: none;
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: center 8px;
    padding: 0;
    font-size: 8px;
    line-height: 8px;
}

@media screen and (max-width: 767px) {
    #user_tab #finder.active {
        position: fixed;
        top: 45px;
        left: 0;
        width: 100%;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
    }

    #user_tab #finder.active .ne-finder-glass {
        top: 90px;
    }

    #user_tab #finder.active input#search {
        font-size: 18px;
    }

    #user_tab .top_buttons.finder.active {
        left: 320px;
        transition: all 0.3s ease;
    }

    #mobile.dash span {
        background: #989898;
    }

    #mobile.dash {
        position: fixed;
        z-index: 1;
        width: 45px;
        height: 45px;
        right: 96px;
        background-color: #383636;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16' fill='none' stroke='%23b8b8b8' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: 18px;
        background-position: center;
        top: 0;
        border-radius: 0;
        left: unset;
    }
}

@media screen and (min-width: 768px) {
    #user_tab {
        --ne-header-control-size: 62px;
        --ne-header-control-width: 93px;
        --ne-header-dash-button-width: 95px;
        --ne-header-dash-button-height: 63px;
        height: 65px;
    }

    #user_tab .ne-header-actions {
        right: 0;
        left: auto;
        height: var(--ne-header-control-size);
    }

    #user_tab .ne-header-actions > #finder,
    #user_tab .ne-header-actions > #new_buttons_v2,
    #user_tab .ne-header-actions > #ne_filter {
        flex-basis: var(--ne-header-dash-button-width);
        width: var(--ne-header-dash-button-width);
        min-width: var(--ne-header-dash-button-width);
        height: var(--ne-header-dash-button-height);
    }

    #user_tab #finder {
        left: auto;
        order: 1;
        margin-left: 0;
        width: var(--ne-header-dash-button-width);
        height: var(--ne-header-dash-button-height);
        min-width: var(--ne-header-dash-button-width);
    }

    #user_tab #finder .button {
        width: var(--ne-header-dash-button-width) !important;
        min-width: var(--ne-header-dash-button-width) !important;
        height: var(--ne-header-dash-button-height) !important;
        min-height: var(--ne-header-dash-button-height) !important;
        line-height: 52px !important;
        background-color: #262626 !important;
        border: 0 solid #e0e0e01f !important;
        box-shadow: none !important;
        background-size: 18px !important;
    }

    #user_tab #finder.active {
        position: fixed;
        top: 2px;
        left: 0;
        right: 0;
        margin-left: 0;
        flex: none;
        width: 100vw;
        max-width: none;
        height: var(--ne-header-dash-button-height);
    }

    #user_tab #finder.active .ne-finder-glass {
        top: 65px;
    }

    #user_tab #finder.active input#search {
        height: var(--ne-header-dash-button-height);
        padding: 0 30px;
        font-size: 24px;
        line-height: var(--ne-header-dash-button-height);
    }

    #user_tab #finder.active .button {
        flex-basis: var(--ne-header-dash-button-width);
        background-color: #202020 !important;
    }

    #user_tab .avatar-wrap .avatar,
    #user_tab .avatar-wrap .avatar-link {
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 0;
    }

    #user_tab .avatar-wrap {
        width: var(--ne-header-control-size);
        height: var(--ne-header-control-size);
    }

    #mobile,
    #user_tab #ne_settings {
        display: none;
    }

    #user_tab .filter {
        order: 3;
        margin-left: 0;
        width: var(--ne-header-dash-button-width);
        height: var(--ne-header-dash-button-height);
        left: auto;
        background-color: #262626;
        border: 0 solid #e0e0e01f;
        box-shadow: none;
    }

    #user_tab .filter.active {
        right: auto;
        width: var(--ne-header-dash-button-width);
        background-color: #202020;
        background-image: url(../images/ui-optimized/ic-filter-main-dark.svg);
        background-repeat: no-repeat;
        background-size: 12px;
        background-position: center;
        border-radius: 0;
        height: var(--ne-header-dash-button-height);
        top: 2px;
        left: auto;
    }

    #user_tab .filter:hover {
        background-color: #262626;
    }

    #user_tab .filter.active:active {
        right: auto;
        width: var(--ne-header-dash-button-width);
        background-color: #202020;
        background-image: url(../images/ui-optimized/ic-filter-main-dark.svg);
        background-repeat: no-repeat;
        background-size: 22px;
        background-position: center;
        border-radius: 0;
        left: auto;
    }

    #user_tab .ne-header-actions > #new_buttons_v2 {
        order: 2;
        left: auto !important;
    }

    #user_tab .ne-header-actions > #ne_filter {
        margin-left: 0;
    }

    #user_tab .ne-header-actions > #finder {
        margin-left: 0;
    }

    #user_tab .ne-header-actions > #finder.active {
        margin-left: 0;
    }

    #user_tab .ne-header-action-label {
        position: absolute;
        right: 0;
        bottom: 8px;
        left: 0;
        z-index: 1;
        display: block;
        width: 100%;
        height: 14px;
        padding: 0;
        color: #a8a8a8d1;
        font-family: var(--ne-app-font-family, "Mardoto", sans-serif);
        font-size: 10px;
        font-weight: 500;
        line-height: 14px;
        text-align: center;
        text-indent: 0;
        text-transform: uppercase;
        pointer-events: none;
    }

    #user_tab #finder .button {
        position: relative !important;
        overflow: hidden;
        color: transparent;
        font-size: 0;
        text-indent: 0 !important;
        background-position: center 11px !important;
        background-size: 22px 22px !important;
    }

    #user_tab #finder.active .ne-header-action-label {
        display: none;
    }

    #user_tab .ne-header-actions > #ne_filter,
    #user_tab .filter,
    #user_tab .filter.active,
    #user_tab .filter.active:active {
        position: relative;
        overflow: hidden;
        border: 0 solid #e0e0e01f;
        color: transparent;
        font-size: 0;
        background-position: center 11px;
        background-size: 22px 22px;
    }

    #user_tab .filter.active,
    #user_tab .filter.active:hover,
    #user_tab .filter.active:active {
        background-color: #383636;
    }

    #authorization {
        width: 65px;
        height: 65px;
    }

    #user_tab.active {
        background: transparent;
        top: 0;
    }

    #user_tab .ne-header-actions > #finder:not(.active),
    #user_tab .ne-header-actions > #new_buttons_v2 {
        position: absolute;
        right: 95px;
        left: auto !important;
        width: 0;
        min-width: 0;
        height: 0;
        overflow: visible;
    }

    #user_tab #finder:not(.active) .button,
    #user_tab #new_buttons_v2 > #ne_new_v2 {
        visibility: hidden;
        pointer-events: none;
    }

    #user_tab #finder.active,
    #user_tab #finder.active .button {
        visibility: visible;
        pointer-events: auto;
    }

    #user_tab .ne-header-actions > #ne_filter {
        position: relative;
        right: 0;
        left: auto;
    }

    #user_tab .ne-header-actions > #finder.active {
        position: fixed;
        top: 2px;
        right: 96px;
        left: var(--ne-search-input-left, 1091px);
        display: flex;
        width: auto;
        min-width: 0;
        height: var(--ne-header-control-size);
        margin: 0;
        overflow: visible;
        background: #212121;
        box-shadow: none;
        transition: none;
    }

    #user_tab #finder.active > .button {
        display: none !important;
        visibility: hidden;
        width: 0 !important;
        min-width: 0 !important;
        height: 0 !important;
        pointer-events: none;
    }

    #user_tab #finder.active input#search {
        width: 100% !important;
        height: var(--ne-header-control-size) !important;
        margin: 0 !important;
        padding: 0 24px;
        border: 0 !important;
        border-radius: 0;
        background: #212121;
        font-size: 24px;
        line-height: var(--ne-header-control-size) !important;
    }

}
#ne_calendar_new {
    display: none;
}

body:has([data-ne-calendar-view]) #ne_calendar_new {
    display: inline-flex;
}
