/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* DeveloperKit layout shell — mirrors DeveloperKit/HMI_DeveloperKit/ThemeKit/css/app.css */

.app-container[b-rxma5arim0] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.appbar-top[b-rxma5arim0] {
    flex-shrink: 0;
}

.app-body[b-rxma5arim0] {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Forces the TelerikDrawer to fill the entire app-body height and width */
.mainlayout-drawer[b-rxma5arim0] {
    height: 100%;
    width: 100%;
}

.content-area[b-rxma5arim0] {
    height: 100%;
    overflow: auto;
    padding: 10px;
    padding-bottom: 2rem;
}

.appbar-bottom[b-rxma5arim0] {
    flex-shrink: 0;
}

/* Header elements */
.app-title[b-rxma5arim0] {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ath-text-on-dark, #fff);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.header-actions[b-rxma5arim0] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-right: 24px;
}

.header-actions[b-rxma5arim0]  a {
    color: var(--ath-text-on-dark, #fff);
    text-decoration: none;
    white-space: nowrap;
}

.header-actions[b-rxma5arim0]  a:hover {
    color: var(--ath-orange, #F26522);
    text-decoration: underline;
}

/* White pill ensures the customer logo is always readable against the navy AppBar,
   regardless of logo color (dark, light, colorful) or shape (square, wide, tall). */
.header-logo-container[b-rxma5arim0] {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 6px;
    padding: 4px 10px;
    min-width: 40px;
    max-height: 36px;   /* intentionally smaller than AppBar so padding above/below is visible */
}

.header-logo-img[b-rxma5arim0] {
    max-height: 26px;
    max-width: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Toggle button */
[b-rxma5arim0] .toggle-btn {
    background: transparent !important;
    border: none !important;
    color: var(--ath-text-on-dark, #fff) !important;
    box-shadow: none !important;
}

[b-rxma5arim0] .toggle-btn .k-svg-icon {
    width: 1.5rem;
    height: 1.5rem;
}

/* Channel partner logo at bottom of drawer */
.athsoft-logo[b-rxma5arim0] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.channel-logo-img[b-rxma5arim0] {
    max-height: 55px;
    max-width: 210px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Logout — plain <button> styled identically to NavLink drawer items */
.logout-btn[b-rxma5arim0] {
    display: block;
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
    line-height: inherit;
}

.logout-btn:focus[b-rxma5arim0] {
    outline: none;
}

#blazor-error-ui[b-rxma5arim0] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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-rxma5arim0] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.top-row[b-jptoiz6qp8] {
    min-height: 3.5rem;
    /*    background-color: rgba(0,0,0,0.4);*/
    background-image: linear-gradient(#2b458e80, #00206040);
    background-color: #002060;
}

.navbar-brand[b-jptoiz6qp8] {
    font-size: 1.1rem;
}

.nav-item[b-jptoiz6qp8]  .k-svg-icon {
    width: 1.1rem;
    height: 1.1rem;
    margin-right: 0.6rem;
    color: white;
}

.nav-item[b-jptoiz6qp8] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-jptoiz6qp8] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-jptoiz6qp8] {
        padding-bottom: 1rem;
    }

    /*.nav-item ::deep .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }*/

.nav-item[b-jptoiz6qp8]  .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: flex-start; /* aligns icon with first line */
    width: 100%;
    padding: 0.5rem 0.75rem;
    align-items: center;
}

.menu-text[b-jptoiz6qp8] {
    line-height: 1.3;
}

.nav-item[b-jptoiz6qp8] {
    font-size: 0.9rem;
    padding-bottom: 0.7rem;
}


.nav-item[b-jptoiz6qp8]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-jptoiz6qp8]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-jptoiz6qp8] {
    display: none;
    width: 100%;
    position: static;
}

    .nav-scrollable.show[b-jptoiz6qp8] {
        display: block;
        position: static;
        width: 100%;
        height: auto;
        /* background-color: #2D3F7B;*/
/*        background-image: linear-gradient(#2b458e80, #00206040);
        background-color: #002060;*/
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        box-shadow: none;
    }

@media (min-width: 768px) {
    .nav-scrollable[b-jptoiz6qp8],
    .nav-scrollable.show[b-jptoiz6qp8] {
        display: block !important;
        position: static !important;
        width: 100% !important;
        overflow-y: auto;
        /*        background-color: #2D3F7B !important;*/
/*        background-image: linear-gradient(#2b458e80, #00206040);
        background-color: #002060;*/
        box-shadow: none !important;
    }

    .sidebar[b-jptoiz6qp8] {
/*        width: 100%;*/
/*        max-width: 100%;*/
        display: flex;
        flex-direction: column;
    }

    .sidebar .top-row[b-jptoiz6qp8] {
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

@media (max-width: 767px) {
    .nav-scrollable[b-jptoiz6qp8] {
        display: none !important;
    }

    .nav-scrollable.show[b-jptoiz6qp8] {
        display: block !important;
        height: min(calc(100vh - 3.5rem), 100dvh - 3.5rem);
        /* Use 100vh with fallback for mobile browsers */
/*        max-height: min(calc(100vh - 3.5rem), 100dvh - 3.5rem);*/
    }

    .nav-backdrop[b-jptoiz6qp8] {
        display: none;
    }

    .nav-backdrop.show[b-jptoiz6qp8] {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        cursor: pointer;
        overflow: hidden;
    }
}
/* Landscape mobile orientation */
@media (orientation: landscape) and (max-height: 774px) {
    .athsoft-logo[b-jptoiz6qp8] {
        position: unset !important;
    }
}

/*//added by A*/
.sidebar .nav-link[b-jptoiz6qp8] {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    color: white;
}

.collapsed .menu-text[b-jptoiz6qp8] {
    display: none;
}

.collapsed .nav-item[b-jptoiz6qp8] {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.collapsed .nav-link[b-jptoiz6qp8] {
    justify-content: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.collapsed .nav-item[b-jptoiz6qp8]  .k-svg-icon {
    width: 1.4rem;
    height: 1.4rem;
    margin-right: 0;
}

.nav-link[b-jptoiz6qp8] {
    display: flex;
    align-items: center;
}

.nav-scrollable[b-jptoiz6qp8] {
    overflow-x: hidden;
}


[b-jptoiz6qp8] .toggle-btn {
    background: transparent !important;
    border: none !important;
    color: white;
    padding: 0;
    box-shadow: none !important;
}

.sidebar.collapsed .top-row[b-jptoiz6qp8] {
    display: flex;
    justify-content: center;
}
/* Match icon size */
[b-jptoiz6qp8] .toggle-btn .k-svg-icon {
    width: 1.6rem;
    height: 1.6rem;
}

[b-jptoiz6qp8] .logout-link {
    display: flex;
    align-items: center;
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    outline: none;
    padding: .5rem .75rem;
    text-align: left;
    color: inherit;
    box-shadow: none !important;
    font-weight: normal;
}

/* Remove button focus border */
[b-jptoiz6qp8] .logout-link:focus {
    outline: none;
    box-shadow: none;
}

/* Collapsed behaviour */
.collapsed[b-jptoiz6qp8]  .logout-link {
    justify-content: center;
}

.nav-backdrop[b-jptoiz6qp8] {
    display: none;
}

.athsoft-logo[b-jptoiz6qp8] {
    justify-content: center;
    position: absolute;
    width: 250px;
    bottom: 0;
}


.logo-container[b-jptoiz6qp8] {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 5px 0;
}

.logo-img[b-jptoiz6qp8] {
    max-height: 60px;
    max-width: 100%;
    max-width: 230px;
    width: auto;
    height: auto;
    object-fit: contain;
    padding-right: 35px;
}
