fluent-data-grid {
    min-width: max-content;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    font-weight: var(--font-weight);
    color: var(--neutral-foreground-rest);
    background: var(--neutral-fill-layer-rest);
}

h1 {
    font-size: 2em;
    line-height: 1em;
    margin: 0px;
}

th.column-header.multiline-text {
    overflow: unset;
    /*background:red;*/
}

table {
    table-layout: fixed; /* Fixed table layout */
}

td .scrollablecell39 {
    line-height: 1;
     height: 30px !important;
    overflow-y: scroll !important;
    white-space: normal !important;
    border: none; /* The DataGrid will typically handle borders */
    box-sizing: border-box;
    margin-top: -5px !important;
    margin-bottom: -5px !important;
}

.navmenu-icon {
    display: none;
}

/*.fluent-nav-menu {
    padding-inline-start: 340px;
}*/

.main {
    height: calc(100vh - 3rem);
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    opacity:0.2;
    background-color: var(--neutral-fill-layer-rest); /* Semi-transparent background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Ensures overlay appears above the grid */
}

.header-gutters {
    padding: 0rem 0rem 0.1rem 1.5rem !important;
}

.navmenu {
    /* Never collapse the sidebar for wide screens */
    display: block;
    /* Allow sidebar to scroll for tall menus */
    overflow-y: auto;

    min-width: 300px;
}

.body-content {
    align-self: stretch;
    height: calc(100dvh - 48px) !important;
    display: flex;
}

.content {
    padding: 0.5rem 1.5rem;
    align-self: stretch !important;
    width: 100%;
}

.manage {
    width: 100dvw;
}

footer {
    background: var(--neutral-layer-4);
    color: var(--neutral-foreground-rest);
    align-items: center;
    padding: 3px 10px;
}

footer a {
    color: var(--neutral-foreground-rest);
    text-decoration: none;
}

footer a:focus {
    outline: 1px dashed;
    outline-offset: 3px;
}

footer a:hover {
    text-decoration: underline;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

@media (max-width: 600px) {
    .header-gutters {
        margin: 0.5rem 3rem 0.5rem 1.5rem !important;
    }

    [dir="rtl"] .header-gutters {
        margin: 0.5rem 1.5rem 0.5rem 3rem !important;
    }

    .main {
        flex-direction: column !important;
        row-gap: 0 !important;
    }

    nav.sitenav {
        width: 100%;
        height: 100%;
    }

    #main-menu {
        width: 100% !important;
    }

        #main-menu > div:first-child:is(.expander) {
            display: none;
        }

    .navmenu {
        width: 100%;
    }

    #navmenu-toggle {
        appearance: none;
    }

        #navmenu-toggle ~ nav {
            display: none;
        }

        #navmenu-toggle:checked ~ nav {
            display: block;
        }

    h1 {
        font-size: 1.3em;
        line-height: 1em;
        margin: 1px;
    }
    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 5px;
        left: unset;
        right: 2px;
        width: 20px;
        height: 20px;
        border: none;
    }

    [dir="rtl"] .navmenu-icon {
        left: 20px;
        right: unset;
    }
}

.login-form-container {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    width: 100%;
}
