﻿
/* CSS global variables (for runtime configurations) */
:root {
    /* The initial max height of extension's comments */
    --hidden-comment-max-lines: 3;
    --app-title-bar-color: #00AAB0;
}

.page {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-flow: column;
    height: 100%;
}

.loading-progress {
    position: relative;
    display: block;
    width: 230px;
    height: 230px;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: rgba(0, 0, 0, 0);
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #00AAB0;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    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, "Event Manager");
    }

.client-img {
    position: absolute;
    text-align: center;
    inset: calc(17vh + 15rem) 0 auto 0.2rem;
}

    .client-img > img {
        object-fit: contain;
        max-height: 120px;
        margin-top: 30px;
    }

.sonda-img {
    position: absolute;
    text-align: center;
    inset: calc(40vh + 15rem) 0 auto 0.2rem;
}

@media screen and (min-height: 800px) {
    .loading-page-center {
        margin-top: 26vh;
    }
}

@media screen and (min-height: 900px) {
    .loading-page-center {
        margin-top: 31vh;
    }
}

@media screen and (min-height: 1000px) {
    .loading-page-center {
        margin-top: 33vh;
    }
}

.image-shadow {
    filter: drop-shadow(0 0px 3px rgb(0, 0, 0, .5));
}
.image-shadow-icon {
    filter: drop-shadow(0 0px 2px rgb(0, 0, 0, .4));
}

.mud-table-row {
    cursor: pointer;
}

.selected {
    background-color: var(--mud-palette-tertiary) !important;
}

    .selected > td {
        color: var(--mud-text-primary) !important;
    }

        .selected > td .mud-input {
            color: var(--mud-text-primary) !important;
        }
.disabled {
    color: var(--mud-palette-text-disabled) !important;
}
    .disabled > td {
        color: var(--mud-palette-text-disabled) !important;
    }

.mud-tab.contains-table {
    background-color: var(--mud-palette-secondary) !important;
    color: var(--mud-text-primary) !important;
    transition: all .3s !important;
}

    .mud-tab.contains-table.mud-tab-active {
        background-color: var(--mud-palette-primary) !important;
        color: var(--mud-text-primary) !important;
        transition: all .3s !important;
    }

        .mud-tab.contains-table.mud-tab-active:hover {
            background-color: var(--mud-palette-primary) !important;
            transition: all .3s !important;
        }

table {
    border-collapse: collapse;
}

/* Animation to add blinking borders */
@keyframes blink-border {
    0% {
        border-color: var(--mud-palette-error-darken);
    }

    50% {
        border-color: transparent;
    }

    100% {
        border-color: var(--mud-palette-error-darken);
    }
}

/* Apply animation to the element */
.blinking-border {
    border-left: 10px solid var(--mud-palette-error-darken);
    border-right: 10px solid var(--mud-palette-error-darken);
    animation: blink-border .6s infinite;
}


.app-bar {
    /* Make sure the `div` stays there, even when scrolling. */
    position: fixed;
    /**
	    * Gradient, because why not. Endless opportunities.
	    * The gradient ends in `#36c`, which happens to be the app's
	    * `<meta name="theme-color" content="#36c">`.
	    */
    background-color: var(--app-title-bar-color);
    /* Use the environment variable for the left anchoring with a fallback. */
    left: env(titlebar-area-x, 0);
    /* Use the environment variable for the top anchoring with a fallback. */
    top: env(titlebar-area-y, 0);
    /* Use the environment variable for setting the width with a fallback. */
    width: env(titlebar-area-width, 100%);
    /* Use the environment variable for setting the height with a fallback. */
    height: env(titlebar-area-height, 33px);
    z-index: 2500;
    padding-left: 12px;
    padding-right: 12px;
}

/* The entire app-bar `div` is draggable… */
.app-bar {
    -webkit-app-region: drag;
    app-region: drag;
}

    /* …except for the `input`. */
    .app-bar input {
        -webkit-app-region: no-drag;
        app-region: no-drag;
    }

/* Hide or show the title bar if the app is installed or not */
@media (display-mode: standalone) {
    .app-bar {
        display: flex !important;
    }

    #app {
        height: calc(100vh - 32px);
        padding-top: 32px;
    }

    .app-logo {
        display: none !important;
    }
}

@media (display-mode: window-controls-overlay) {
    .app-bar {
        display: flex !important;
    }

    #app {
        height: calc(100vh - 32px);
        padding-top: 32px;
    }

    .app-logo {
        display: none !important;
    }
}

@media (display-mode: browser) {
    .app-bar {
        display: none !important;
    }

    #app {
        height: 100vh;
        padding-top: 0;
    }

    .app-logo {
        display: block !important;
    }
}