/* Increase Telerik Grid Search Box Width */
.custom-search-box {
    width: 400px !important;
    max-width: 100%;
}

/* Ensure Telerik Popups are not clipped if RootComponent is inside a container */
.k-animation-container {
    z-index: 10000 !important;
}

/* Ensure Root Component takes full space to allow proper positioning calculations */
.k-root-component {
    height: 100%;
    width: 100%;
}

:root {
    /* Override the hardcoded 1500px height that causes scrollbars when sidebar is collapsed */
    /* Subtract topbar height (70px) to avoid overflow */
    --tz-leftbar-condensed-height: calc(100vh - var(--tz-topbar-height) - 2px);
}

html[data-sidenav-size=condensed]:not([data-layout=topnav]) .wrapper .content-page {
    /* Ensure min-height is reasonable */
    min-height: calc(100vh - var(--tz-topbar-height) - 2px) !important;
}

/* Fix for Blazor NavLink active state in Sidebar */
.side-nav .side-nav-link.active {
    color: var(--tz-menu-item-active-color) !important;
    font-weight: 500;
    background-color: var(--tz-menu-item-active-bg) !important;
}
