.MoreBackground {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.More {
    font-family: -apple-system, BlinkMacSystemFont, "San Francisco", sans-serif, "Segoe UI", system-ui, Roboto, Ubuntu;
    font-size: 13px;
    font-weight: bold;
    color: var(--main-text-sub-color);
    position: fixed;
    z-index: 11;
    left: 200px;
    width: 170px;
    bottom:40px;
    height: max-content;
    background:var(--main-background);
    border: 1px solid var(--main-delimiter);
    border-radius: 14px;
    overflow: hidden;
    padding: 0 8px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.08), 10px 0 8px rgba(0, 0, 0, 0.03);
    will-change: margin, opacity;
}

.More.sh.up {
    z-index:11;
}

.More.sh {
    z-index: 5;
    animation: fo reverse ease-in-out .08s;
    pointer-events: none;
}

.More div {
    display: block;
    position: relative;
    padding: 9px 12px 7px;
    cursor:var(--cursor-pointer);
    user-select:none;
    overflow:hidden;
    border-radius: 12px;
}

.More div:hover, .More div.hover {
    background-color: var(--main-hover-interact);
}

.More.fo.up {
    z-index:11;
}

.More.fo {
    z-index:5;
    animation: fo forwards .2s;
    pointer-events: none;
}

@keyframes fo {
    0% {opacity: 1;margin-top:0px;}
    100% {opacity: 0;margin-top:-30px;}
}

.More p {
    height: 0 !important;
    margin: 8px;
}

.more-header {
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px;
    align-items: center;
}

.more-body div {
    padding: 5px;
}

.more-body p {
    margin: 0;
}

.more-body div span {
    display: flex;
}

.disabled-context-item {
    position: relative;
    overflow: hidden;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
    background-color: var(--main-hover-interact);
}

.disabled-context-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 5px);
}

/* Стили для архивного меню */
.More div[onmouseenter] {
    position: relative;
}

.More div[onmouseenter]:hover {
    background-color: var(--main-hover-interact);
    border-radius: 10px;
}

/* Стили для подменю архива */
.More .archive-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--main-background);
    border: 1px solid var(--main-delimiter-light);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 12;
    min-width: 180px;
    padding: 5px 0;
}

.More .archive-submenu div {
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 0;
}

.More .archive-submenu div:hover {
    background-color: var(--main-hover-interact);
    border-radius: 4px;
}

/* Стили для элементов без иконок */
.More div:not(:has(img)) {
    padding-left: 20px;
}

/* Стили для некликабельных элементов архива */
.More div[onclick*="stopPropagation"] {
    cursor: var(--default-cursor);
}