/*
	This CSS file matches the color scheme from MudBlazor to Bootstrap when utilized for authentication.
	The file remains available at all times for demonstration purposes,
	but it is exclusively employed in the 'App.razor' component when authentication is enabled.
*/

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    background-color: white;
}

.btn-primary {
    text-transform: uppercase;
    --bs-btn-bg: var(--mud-palette-primary) !important;
    --bs-btn-hover-bg: var(--mud-palette-primary-darken) !important;
}

.nav-pills {
    --bs-nav-pills-link-active-bg: var(--mud-palette-primary) !important;
}

.nav {
    --bs-nav-link-color: var(--mud-palette-primary) !important;
    --bs-nav-link-hover-color: var(--mud-palette-primary-darken) !important;
}

.mud-picker-view {
    margin-top: 0px;
}

.mud-picker-datepicker-toolbar {
    height: calc(var(--mud-internal-toolbar-height) + 15px);
}

#notfound {
    position: relative;
    height: 80vh;
}

    #notfound .notfound {
        position: absolute;
        left: 50%;
        top: 50%;
        -webkit-transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
        transform: translate(-50%,-50%)
    }

.notfound {
    max-width: 520px;
    width: 100%;
    line-height: 1.4;
    text-align: center
}

    .notfound .notfound-404 {
        position: relative;
        height: 240px
    }

        .notfound .notfound-404 h1 {
            position: absolute;
            left: 50%;
            top: 50%;
            -webkit-transform: translate(-50%,-50%);
            -ms-transform: translate(-50%,-50%);
            transform: translate(-50%,-50%);
            font-size: 252px;
            font-weight: 900;
            margin: 0;
            color: var(--mud-palette-text-primary);
            text-transform: uppercase;
            letter-spacing: -40px;
            margin-left: -20px
        }

            .notfound .notfound-404 h1 > span {
                text-shadow: -8px 0px 0 var(--mud-palette-background)
            }

        .notfound .notfound-404 h3 {
            position: relative;
            font-size: 16px;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--mud-palette-text-primary);
            margin: 0;
            letter-spacing: 3px;
            padding-left: 6px
        }

    .notfound h2 {
        font-size: 20px;
        font-weight: 400;
        text-transform: uppercase;
        color: var(--mud-palette-text-primary);
        margin-top: 0;
        margin-bottom: 25px
    }

@media only screen and (max-width: 767px) {
    .notfound .notfound-404 {
        height: 200px
    }

        .notfound .notfound-404 h1 {
            font-size: 200px
        }
}

@media only screen and (max-width: 480px) {
    .notfound .notfound-404 {
        height: 162px
    }

        .notfound .notfound-404 h1 {
            font-size: 162px;
            height: 150px;
            line-height: 162px
        }

    .notfound h2 {
        font-size: 16px
    }
}

.mud-input-outlined-with-label > .mud-input-control-helper-container {
    margin-top: -10px;
}

.mud-input-outlined-border {
    height: 65% !important;
    margin-top: 10px !important;
}

    .mud-input-outlined-border > legend {
        display: none;
    }

.mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined,
.mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    transform: translate(3px, -6px) scale(0.75) !important;
    font-weight: 500;
}

.mud-input-numeric-spin {
    height: 60%;
    margin-top: 11px;
}

.truncate-multi-line-1 {
    display: -webkit-box;
    width: 100%;
    -webkit-line-clamp: 1; /* Number of lines to display before truncating */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* This is often implicitly handled by -webkit-line-clamp, but good to include */
}

@media (max-width: 768px) {
    /* styles for phones + small tablets */
    .menu-dialog {
        width: 100% !important;
        max-width: 100% !important;
    }

    .mud-dialog-width-full {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .mud-dialog-bottomcenter {
        padding-bottom: 0px !important;
    }

    .dialog-bottom-border-radius {
        border-radius: 40px 40px 0 0 !important;
    }
}

.menu-dialog {
    max-width: 300px;
    width: 300px;
}
