/* _content/GateTaloner.BlazorAdmin/Shared/MainLayout.razor.rz.scp.css */
.page[b-28a1qtsebc] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-28a1qtsebc] {
    flex: 1;
}

.sidebar[b-28a1qtsebc] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-28a1qtsebc] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: space-between;
    height: 3.5rem;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: transform 0.3s ease-in-out;
}

/* Показываем top-row когда в самом верху страницы */
.top-row.top-row-visible[b-28a1qtsebc] {
    transform: translateY(0);
}

/* Скрываем top-row при скролле вниз */
.top-row.top-row-hidden[b-28a1qtsebc] {
    transform: translateY(-100%);
}

/* Убираем отступ для контента - sidebar должен начинаться с самого верха */
main.has-top-row[b-28a1qtsebc] {
    padding-top: 0;
}

/* На страницах логина/регистрации отступа нет */
main.no-top-row[b-28a1qtsebc] {
    padding-top: 0 !important;
}

/* Явно скрываем top-row на страницах логина/регистрации */
main.no-top-row .top-row[b-28a1qtsebc] {
    display: none !important;
}

/* Дополнительное скрытие через CSS селектор для страниц логина/регистрации */
body.login-or-register-page .top-row[b-28a1qtsebc],
body.login-or-register-page .sidebar[b-28a1qtsebc],
body.login-or-register-page .sidebar-overlay[b-28a1qtsebc] {
    display: none !important;
    visibility: hidden !important;
}

body.login-or-register-page main[b-28a1qtsebc] {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

    .top-row[b-28a1qtsebc]  a, .top-row .btn-link[b-28a1qtsebc] {
        white-space: nowrap;
        margin-left: 1.5rem;
    }

    .top-row a:first-child[b-28a1qtsebc] {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row:not(.auth)[b-28a1qtsebc] {
        display: none;
    }

    .top-row.auth[b-28a1qtsebc] {
        justify-content: space-between;
    }

    .top-row a[b-28a1qtsebc], .top-row .btn-link[b-28a1qtsebc] {
        margin-left: 0;
    }
    
    /* На мобильных top-row должен быть fixed */
    .top-row[b-28a1qtsebc] {
        position: fixed;
        left: 0;
        right: 0;
    }
    
    /* На мобильных контент не должен иметь отступ - sidebar начинается с верха */
    main.has-top-row[b-28a1qtsebc] {
        padding-top: 0;
    }
    
    main.no-top-row[b-28a1qtsebc] {
        padding-top: 0;
    }
}

/* Для планшетов и десктопов (>= 1024px) - фиксированное меню */
@media (min-width: 1024px) {
    .page[b-28a1qtsebc] {
        flex-direction: row;
    }

    .sidebar[b-28a1qtsebc] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-28a1qtsebc] {
        position: fixed;
        left: 250px; /* Учитываем ширину sidebar */
        right: 0;
        top: 0;
        z-index: 1;
    }

    .top-row[b-28a1qtsebc], article[b-28a1qtsebc] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
    
    /* На десктопе контент должен учитывать sidebar, но без отступа сверху */
    main[b-28a1qtsebc] {
        margin-left: 50px;
        padding-top: 0;
    }
    
    /* Padding сверху для article */
    article.content[b-28a1qtsebc] {
        padding-top: 75px !important;
    }
    
    /* Кнопка "Выйти" справа */
    .top-row .btn[b-28a1qtsebc] {
        margin-left: auto;
    }
}
/* _content/GateTaloner.BlazorAdmin/Shared/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-csbt0hmn5a] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-csbt0hmn5a] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-csbt0hmn5a] {
    font-size: 1.1rem;
}

.oi[b-csbt0hmn5a] {
    width: 2rem;
    font-size: 1.1rem;
    vertical-align: text-top;
    top: -2px;
}

.nav-item[b-csbt0hmn5a] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-csbt0hmn5a] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-csbt0hmn5a] {
        padding-bottom: 1rem;
    }

    .nav-item[b-csbt0hmn5a]  a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

.nav-item[b-csbt0hmn5a]  a.active {
    background-color: rgba(255,255,255,0.25);
    color: white;
}

.nav-item[b-csbt0hmn5a]  a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-csbt0hmn5a] {
        display: none;
    }

    .collapse[b-csbt0hmn5a] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    
    .nav-scrollable[b-csbt0hmn5a] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
