@import '/_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';

:root {
    --fluent-header-height: 86px;
    --success: #168616 !important;
    --warning: #e48424 !important;
    --error: #c43436 !important;
    --info: #616161 !important;
    --presence-available: #13a10e !important;
    --presence-away: #eaa300 !important;
    --presence-busy: #d13438 !important;
    --presence-dnd: #d13438 !important;
    --presence-offline: #adadad !important;
    --presence-oof: #c239b3 !important;
    --presence-unknown: #d13438 !important;
    --highlight-bg: #fff3cd !important;
    --afn-primary-color: #01778C;
    --afn-secondary-color: #3EB7B1;

    --color-sf-table-bg-color-selected: var(--neutral-layer-2) !important;
}

body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: 1.42857143; /* Cannot use '--type-ramp-base-line-height' because Syncfusion should be leading this value. */
    margin: 0;
}

.navmenu-icon {
    display: none;
}

.main {
    min-height: calc(100dvh - var(--fluent-header-height));
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

footer {
    display: grid;
    grid-template-columns: 10px auto auto 10px;
    background: var(--neutral-layer-4);
    color: var(--neutral-foreground-rest);
    align-items: center;
    padding: 10px 10px;
}

footer .link1 {
    grid-column: 2;
    justify-content: start;
}

footer .link2 {
    grid-column: 3;
    justify-self: end;
}

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;
}

.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
}

code {
    color: #c02d76;
}

@media (max-width: 800px) {
    .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;
    }

    .navmenu-icon {
        cursor: pointer;
        z-index: 10;
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        width: 20px;
        height: 20px;
        border: none;
    }
}


.fluent-data-grid th {
    display: table-cell !important;
    align-self: center;
    align-content: center;
}

.fluent-data-grid td {
    align-self: center;
}

.fluent-data-grid fluent-checkbox {
    display: inline;
}

.fluent-data-grid fluent-text-field {
    display: inline;
}

.fluent-data-grid-fit-content {
    width: auto;
    min-width: fit-content;
}

/* FluentUI is forcing a reduced width when there is a sorting button. */
.fluent-data-grid-fit-content .col-title {
    width: 100% !important;
}

/* FluentUI is forcing a reduced width when there is a sorting button. */
.fluent-data-grid-fit-content .col-sort-button {
    width: 100% !important;
}

fluent-dialog .fluent-dialog-header h4 {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    align-self: center;
}

fluent-dialog .fluent-dialog-header > div {
    overflow: hidden;
}

.e-headercelldiv {
    font-weight: 600 !important;
}

/* FluentUI is forcing a margin on table elements, which Syncfusion cannot have. */
table.e-table {
    margin-bottom: 0 !important;
}

/* Syncfusion variables are used as RGB, but in the generated code, they are used as normal values, which cannot be resolved. */
input.e-input::selection,
textarea.e-input::selection,
.e-input-group input.e-input::selection,
.e-input-group.e-control-wrapper input.e-input::selection,
.e-float-input input::selection,
.e-float-input.e-control-wrapper input::selection,
.e-input-group textarea.e-input::selection,
.e-input-group.e-control-wrapper textarea.e-input::selection,
.e-float-input textarea::selection,
.e-float-input.e-control-wrapper textarea::selection,
.e-float-input.e-small textarea::selection {
    background: rgba(var(--color-sf-primary)) !important;
    color: rgba(var(--color-sf-primary-text-color)) !important;
}