@import 'Provizo.Investigation.Presentation.Client.4frils3jns.bundle.scp.css';

/* _content/Provizo.Investigation.Presentation/Components/Layout/MainLayout.razor.rz.scp.css */
/* Force consistent scrollbar behavior */
html[b-idyrmukb0q] {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

.page[b-idyrmukb0q] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-idyrmukb0q] {
    flex: 1;
}

.sidebar[b-idyrmukb0q] {
    border: 1px solid #D5E0F2;
}

.admin-sidebar[b-idyrmukb0q] {
    background-color: var(--primary-dark);
    min-width: 250px;
}

.top-row[b-idyrmukb0q] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    height: 3.5rem;
    /* Use grid to center the health check */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 1.5rem;
    box-sizing: border-box;
    /* Prevent any shrinking/growing */
    flex-shrink: 0;
    flex-grow: 0;
}

    /* First child (Environment name) - align to the left */
    .top-row > span:first-child[b-idyrmukb0q] {
        justify-self: start;
    }

    /* Middle child (Health check) - center it */
    .top-row > div[b-idyrmukb0q] {
        justify-self: center;
    }

    /* Last child (Logout button) - align to the right */
    .top-row > a:last-child[b-idyrmukb0q] {
        justify-self: end;
    }

    .top-row[b-idyrmukb0q]  a, .top-row[b-idyrmukb0q]  .btn-link {
        white-space: nowrap;
        text-decoration: none;
        margin: 0;
    }

    .top-row[b-idyrmukb0q]  a:hover, .top-row[b-idyrmukb0q]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-idyrmukb0q]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 804.98px) {
    .top-row[b-idyrmukb0q] {
        /* Keep 3-column layout but adjust padding for mobile */
        padding: 0 1rem;
    }
}

@media (min-width: 805px) {
    .page[b-idyrmukb0q] {
        flex-direction: row;
    }

    .sidebar[b-idyrmukb0q] {
        width: 40vmax;
        height: 99vh;
        position: sticky;
        top: 0;
    }

    .admin-sidebar[b-idyrmukb0q] {
        min-width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-idyrmukb0q] {
        width: 100%;
        max-width: 100%;
        position: sticky;
        top: 0;
        z-index: 1;
        padding: 0 2rem;
    }
    
    article[b-idyrmukb0q] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-idyrmukb0q] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-idyrmukb0q] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@keyframes pulsate-b-idyrmukb0q {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

[b-idyrmukb0q] .pulsate {
    animation: pulsate-b-idyrmukb0q 1.5s ease-in-out infinite;
}
