* {
    --entities-io-component-suffix-width: 50px; /*place for unit in numeric compontent and text in switch*/
}

html {
    height: 100%;
}

body {
    height: 100%;
}

/*#region MudBlazor overrides*/
/* Change padding in MudNumeric */
.mud-input > input.mud-input-root-outlined {
    padding: 10.5px !important;
}

div.mud-input-slot.mud-input-root-outlined {
    padding: 10.5px !important;
}

/* Disable margin top or else input fields are never centered vertically*/
.mud-input-control {
    margin-top: 0px;
}

/* Change font size in all MudInput fields */
.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-menu-activator > button > span > span.mud-button-icon-end {
    margin-left: 0px;
    margin-inline-start: 0px;
}

/* width in each MudNumericField is the same, unfortunately this as also an effect to MudSelect */
.mud-input-adornment-end {
    justify-content: right;
    min-width: calc(var(--entities-io-component-suffix-width) - 25px);
    padding: 0px 0px 0px 5px;
}

/* Mud list expander size reduction */
.mud-expand-panel-header {
    min-height: 10px !important;
    padding: 5px !important;
}
/*#endregion*/

/*#region MainLayout*/
.seamcomp-sidebar {
    background-color: var(--mud-palette-secondary);
    height: 100vh;
    position: fixed;
    overflow-x: hidden;
    animation-fill-mode: forwards;
    animation-duration: 150ms;
    transition: width 0.5s;
    z-index: 1000;
}

.seamcomp-sidebar-closed {
    width: 0;
}

.seamcomp-sidebar-open {
    width: 300px;
}

.seamcomp-content {
    right: 0;
    position: absolute;
    top: 60px;
    height: calc(100% - 60px);
    transition: width 0.5s, padding 0.5s, opacity 0.2s;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2vh 2vw;
}

.seamcomp-content-navbar-expanded {
    width: calc(100vw - 300px);
}

.seamcomp-content-navbar-closed {
    width: 100vw;
}

/* typical phone screen resolution */
@media only screen and (orientation: portrait) {
    .seamcomp-sidebar-open {
        width: 100vw;
    }

    .seamcomp-content-navbar-expanded {
        width: 0;
        opacity: 0;
    }
}
/*#endregion*/

/*#region NavMenu*/
.seamcomp-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding-right: 16px;
    padding-left: 16px;
    min-width: 300px;
}

.seamcomp-sidebar-body {
    min-width: 300px;
    overflow-y: auto;
    padding: 1rem;
    overflow-x: hidden;
}

.seamcomp-navlink {
    border-radius: 5px;
    height: 2.5rem;
    display: flex;
    align-items: center;
    color: white;
    gap: 5px;
    width: 100%;
    padding: 10px;
    margin-bottom: 5px;
}

.seamcomp-navlink-active {
    border-radius: 5px;
    height: 2.5rem;
    display: flex;
    align-items: center;
    color: var(--mud-palette-secondary);
    gap: 5px;
    width: 100%;
    background-color: var(--mud-palette-primary);
    padding: 10px;
    margin-bottom: 5px;
}

.seamcomp-navlink > a {
    color: white;
}

.seamcomp-navlink-active > a {
    color: var(--mud-palette-secondary);
}

.seamcomp-navlink:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}
/*#endregion*/

/*region Component*/
.seamcomp-component-selected {
    border: solid;
    border-color: var(--mud-palette-primary);
    animation-name: background-blink;
    animation-duration: 3s;
}

@keyframes background-blink {
    0% {
        background-color: var(--mud-palette-info);
    }

    20% {
        background-color: var(--mud-palette-info);
    }

    100% {
        background-color: transparent;
    }
}
/*#endregion*/