/* PlumNet — общие стили. Подключать перед css страницы. */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --header-height: 60px;
}

html, body {
    background-color: var(--content-bg-color);
    color: #fff;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;

    --footer-position: static;
    --footer-bottom: 0px;
    --footer-bg: #262626;
    --footer-text: #fff;
    --footer-link: #d51ac3;
    --footer-top: 20px;
    --header-bg: #262626;
    --header-text: #fff;
}

body::-webkit-scrollbar {
    width: 10px;
    background-color: transparent;
}

body::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #333;
}

body::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: transparent;
}

.layout {
    min-height: 100vh;
    width: 100%;
}

/* Шапка — на всю ширину, поверх всего (и над боковым меню) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: stretch;
    height: var(--header-height);
    min-height: var(--header-height);
    background-color: var(--header-bg, #262626);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}

.header-burger-slot {
    display: none;
    flex: 0 0 var(--header-height);
    align-items: center;
    justify-content: center;
    background-color: var(--header-bg, #262626);
}

.burger {
    display: block;
    width: 50px;
    height: 50px;
    margin: 0;
    border-radius: 10px;
    border: 0;
    background:
        linear-gradient(#fff, #fff) center 10px/60% 3px no-repeat,
        linear-gradient(#fff, #fff) center 19px/60% 3px no-repeat,
        linear-gradient(#fff, #fff) center 28px/60% 3px no-repeat,
        linear-gradient(#fff, #fff) center 37px/60% 3px no-repeat;
    background-color: #333;
    cursor: pointer;
}

.header .line {
    position: relative;
    flex: 1;
    min-width: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding-left: 10px;
    box-shadow: none;
    background-color: var(--header-bg, #262626);
}

.header .line img {
    width: 50px;
    margin-top: 0;
    flex-shrink: 0;
}

.header .logotext {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header .texttop {
    position: static;
    margin: 0 0 0 10px;
    font-size: 28px;
}

/* Боковое меню — под шапкой, ниже header по z-index */
.sidebar {
    background-color: #212121;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: 100px;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 40;
    transition: transform 0.25s ease;
}

.main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-left: 100px;
    width: calc(100% - 100px);
    box-sizing: border-box;
    padding-top: var(--header-height);
}

.content {
    flex: 1;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 16px;
}

.footer {
    margin-top: auto;
}

.plm-embed-body .footer {
    display: none !important;
}

.sidebar .menu {
    padding: 12px 0 24px;
    width: 100px;
    min-height: 100%;
    background-color: #212121;
}

.sidebar .menu-rail {
    position: relative;
}

.sidebar .menu-rail-decor {
    position: absolute;
    left: 100%;
    top: 60px;
    pointer-events: none;
    z-index: 2;
}

.sidebar .menu-rail-close {
    position: absolute;
    left: 100%;
    top: 60px;
    pointer-events: none;
    z-index: 2;
}

.sidebar .menu-rail--no-profile .menu-rail-decor,
.sidebar .menu-rail--no-profile .menu-rail-close {
    top: 12px;
}

.sidebar .menu ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .menu ol li {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.sidebar .menu ol li:hover {
    background-color: #333;
}

.sidebar .menu li span {
    margin-left: 0 !important;
    opacity: 1 !important;
    font-size: inherit !important;
}

.sidebar .menu li span img {
    width: 50px;
    height: auto;
}

.sidebar .menu-slot-icon {
    position: relative;
    display: inline-block;
}

.menu-msg-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #e85d5d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
    border: 2px solid #212121;
    pointer-events: none;
    z-index: 3;
}

.sidebar .hidava1 {
    position: relative;
}

@media (max-width: 900px) {
    .header-burger-slot {
        display: flex;
    }

    .sidebar {
        top: var(--header-height);
        height: calc(100vh - var(--header-height));
        transform: translateX(-100%);
        z-index: 90;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main {
        margin-left: 0;
        width: 100%;
    }

    .content {
        padding: 12px;
    }
}
