﻿:root {
    --grid-list-height: calc(100vh - 258px);
    --grid-list2-height: calc(100vh - 258px);
}


.mud-list.mud-list-padding{
    padding: 0;
}

.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");
    }


.linear-progress {
    background: silver;
    width: 50vw;
    margin: 20% auto;
    height: 1rem;
    border-radius: 10rem;
    overflow: hidden;
    position: relative;
}

    .linear-progress:after {
        content: '';
        position: absolute;
        inset: 0;
        background: blue;
        scale: var(--blazor-load-percentage, 0%) 100%;
        transform-origin: left top;
        transition: scale ease-out 0.5s;
    }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2x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NjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::before {
        content: "An error has occurred. "
    }

.mud-button-label{
    padding-left: 5px;
    padding-right:5px;
}

.mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol {
    color: black; 
    font-size: 1.1rem;
}



.mud-input.mud-input-filled {
    position: relative;
    transition: background-color 200ms cubic-bezier(0,0,.2,1) 0ms;
    background-color: rgba(0,0,0,0.04);
    border-radius: 4px;
}


.mud-table-root .mud-table-head .mud-table-cell {
    font-weight: 600 !important;
    line-height: 1.5rem;
}

.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 6px 6px 6px 6px;
    padding-inline-start: 6px;
    padding-inline-end: 6px;
}

.mud-table-row-pointer .mud-table-body .mud-table-cell:hover {
    cursor: pointer;
}

.mud-expand-panel .mud-expand-panel-header {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: var(--mud-palette-background-gray);
}


.mud-expand-panel.mud-panel-expanded {
    margin: 16px 0;
    border-radius: inherit;
    transition-delay: 0ms;
}

.mud-expand-panel {
    flex: 1 0 100%;
    max-width: 100%;
    position: relative;
    transition: margin .3s cubic-bezier(.25,.8,.5,1);
    transition-delay: 100ms;
    color: var(--mud-palette-text-primary);
    background-color: var(--mud-palette-surface);
    margin-top: 8px;
}

    .mud-expand-panel.mud-expand-panel-border {
        border-bottom: 0px solid var(--mud-palette-lines-default);
    }

    .mud-expand-panel:last-child {
        border-bottom-left-radius: inherit;
        border-bottom-right-radius: inherit;
    }

    .mud-expand-panel .mud-expand-panel-content {
        padding:0;
        flex: 1 1 auto;
        max-width: 100%;
    }

.text-muted {
    color: #6c757d;
}

input.mud-input-slot {
    text-transform: var(--text-transform, none);
}

/*
    Alinha o texto do cabeçalho da tabela no centro
*/
.mud-simple-table table * tr > td, .mud-simple-table table * tr th {
    text-align: center !important;
    padding: 6px !important;
}

/*
  Altera o tamanho do icon size smal dos botões
*/
.mud-icon-size-small {
    font-size: 1rem;
}
/*
    ALtera o tamanho do start icon dos botões
*/
.mud-button-icon-size-small > *:first-child {
    font-size: 12px;
}


/* site.css */
.main-layout-background {
    background-image: url('/images/logo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
}

/* Full-screen splash screen styling with background image */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: url('/images/Farmtrac-background-logo.png') no-repeat center center;*/
    background-color: #dedfdc;
    background-size: cover; /* Make sure the image covers the entire screen */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: opacity 0.5s ease-out;
}

/* Popup container styling */
#splash-screen-popup {
    font-family: var(--body-font);
    -webkit-font-smoothing: antialiased;
    background-color: white;
    color: rgb(73, 72, 71);
    --accent-fill-rest: #d3d3d3;
    user-select: none;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 500px;
    height: 300px;
}

/* Fade-out animation for splash screen */
#splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Text styling inside the popup */
#splash-screen-popup h1 {
    font-size: 32px;
    font-weight: 600;
    margin-top: 12px;
    line-height: 30px;
    margin: 12px 0px 0px 0px;
    user-select: none;
    outline:none;
}

#splash-screen-popup h2 {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    margin: 24px 0px 50px 0px;
    user-select: none;
    outline: none;
}

#splash-screen-popup h3 {
    font-size: 12px;
    font-weight: 300;
    margin: 0px;
    user-select: none;
    outline: none;
}

#splash-screen-popup p {
    user-select: none;
    outline: none;
}

#splash-screen-popup img {
    width: 200px;
    height: 70px;
    margin: 20px 0px 0px 0px;
    outline: none;
}

/* Loading bar container */
.loading-bar-container {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    width: 70%;
    border-radius: 1px;
    overflow: hidden;
    margin: 20px auto;
}

/* Fluent UI progress bar element */
.loading-bar {
    width: 100%;
    border-radius: 2px;
    height: 4px;
    background-color: #1E88E5;
    animation: indeterminateAnimation 0.75s infinite linear;
    transform-origin: 0% 50%;
}

/* Keyframes for the indeterminate progress bar */
@keyframes indeterminateAnimation {
    0% {
        transform: translateX(0) scaleX(0);
    }

    40% {
        transform: translateX(0) scaleX(0.4);
    }

    100% {
        transform: translateX(100%) scaleX(0.5);
    }
}


.app-logo {
    width: 57px;
    height: 40px; /* This will maintain the aspect ratio */
    margin-left: 0px
}


.table-row-selected {
    background-color: #DDDDDD !important;
}

.mud-input-control.mud-field .mud-input-slot {
    height: auto;
    min-height: var(--field-min-height, 17px); /* fallback is 50px */
}


.font-weight-bold {
    font-weight: 600 !important;
}

.mud-breadcrumb-separator {
    padding: 0 4px;
}
