/* Dashboard styles */
:root {
    --hoverGrey: #FAFAFA;
}

html, body {
    padding: 0;
    margin: 0;
    background-color: var(--hoverGrey);
}

main {
    flex: 1;
    min-height: calc(100vh - 8.5rem);
    padding: 0rem 2rem 2rem;
    background: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    position: relative;
}

main:has(.login-page) {
    background: transparent;
    padding: 0;
    justify-content: center;
}

footer {
    height: 5rem;
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
    background: transparent;
    color: white;
}

footer object {
    height: 2rem;
}

.alimakgroupfooter-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.alimakgroupfooter-content object {
    max-width: 800px;
    height: auto;
    margin-bottom: 1rem;
}

.assembly-info {
    align-items: flex-end;
    color: white;
    display: flex;
    width: 100%;
    font-size: 12px;
    justify-content: center;
    padding-bottom: .5rem;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 3.5rem;
    position: relative;
    z-index: 2;
    background: transparent;
}

header img {
    max-width: 175px;
    height: 3.5rem;
    object-fit: contain;
}

.hide-when-mobile {
    display: none;
}

.login-section {
    font-size: 20px;
    font-weight: 700;
}

.login-section a {
    color: #f68121;
}

.user {
    width: 32rem;
    height: 18rem;
    background-color: rgba(255, 250, 250, 0.8);
    display: flex;
    padding: 1rem;
    border-radius: 30px;
    gap: 1.5rem;
    margin: 0rem 0.5rem 1.5rem 0.5rem;
}

.user:hover {
    background-color: rgb(255, 250, 250, 1);
}

.logout-arrow {
    background-image: url('./icons/box-arrow-right.svg');
    width: 1.5rem;
    height: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
}

.email-font-size {
    font-size: 13px;
}

.dashboard-style {
    font-variant: small-caps;
    font-size: 26px;
}

.dashboard-content {
    justify-content: center;
    align-items: center;
    margin: auto;
}

.card.site {
    border-radius: 2rem;
    background-color: rgba(255, 250, 250, 0.8);
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 1.5rem 1rem 1rem;
    gap: 0.5rem;
    min-width: 15px;
}

.sites-container {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    max-width: 101rem;
    position: relative;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sites-container .site {
    width: 15rem;
    height: 13rem;
}

.sites-container a {
    margin: .5rem .5rem;
    text-decoration: none;
    text-align: center;
    color: #2f2f2f;
    transition: background-color linear 300ms;
    border-radius: 20px;
}

.sites-container a[disabled] {
    pointer-events: none;
    cursor: wait;
}

.sites-container a:hover .site {
    background-color: rgb(255, 250, 250, 1);
}

.sites-container a .site i {
    font-size: 2rem;
}

.sites-container a .site .text {
    font-size: 12px;
    font-weight: 300;
    text-align: center;
    line-height: 1.1;
    color: black;
}

.icon-size {
    height: 4rem;
    width: 4rem;
}

.icon-text-size {
    width: 5rem;
    margin-left: 0.5rem;
}

.text-color {
    color: #676767;
}

.selected-company {
    display: flex;
    justify-content: flex-start;
}

.user-card__header {
    margin-left: 0.5rem;
    margin-top: 0.5rem;
}

.user-card__header .email-font-size {
    margin: 0 0 1rem;
}

.user-card__logout {
    padding-right: 0.5rem;
    margin-top: -0.5rem;
}

.site-icon {
    background-color: #808080;
}

.icon-text-size--wide {
    width: 7rem;
}

.logout-arrow {
    position: relative;
    z-index: 100;
}

.access-denied-card a:focus-visible,
.status-card a:focus-visible {
    outline: 3px solid #f68121;
    outline-offset: 2px;
}

.access-denied-card,
.status-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 720px;
    width: 90%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin: auto;
}

.access-denied-card .logo {
    max-height: 48px;
    margin-bottom: 1rem;
}

.access-denied-card h1,
.status-card h1 {
    font-size: 1.25rem;
    margin: 0.5rem 0 1rem;
}

.access-denied-card p,
.status-card p {
    color: #333;
    margin: 0 0 1.25rem;
}

.access-denied-card .actions a,
.status-card a.secondary {
    display: inline-block;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    background: #6c757d;
}

.flex-start-desktop {
    justify-content: flex-start;
}

.flex-end-desktop {
    justify-content: flex-end;
}

.admin-style {
    color: #F58232;
    font-variant: small-caps;
    font-size: 16px;
}

.date {
    font-family: 'Roboto', sans-serif;
}

@media screen and (min-width: 1200px) {
    .hide-when-mobile {
        display: block;
    }
}

@media screen and (max-width: 1200px) {
    .selected-company {
        justify-content: center;
    }
}

@media screen and (max-width: 1100px) {
    main {
        margin: 0rem;
        padding: 0rem 0.5rem 1rem;
    }

    .sites-container {
        max-width: 100%;
        gap: 0.2rem;
    }

    .sites-container a {
        margin: 0.25rem;
    }

    .center-when-mobile {
        justify-content: center;
        justify-items: flex-start;
    }

    .remove-when-mobile {
        display: none !important;
    }

    .user {
        width: 100%;
        height: auto;
        min-height: 14rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
        flex-direction: column;
        padding: 1rem;
    }

    .card.site {
        width: calc(50vw - 2rem);
        max-width: 13rem;
        height: auto;
        min-height: 10rem;
        justify-content: center;
        padding: 1rem 0.5rem;
    }

    .sites-container .site {
        width: calc(50vw - 2rem);
        max-width: 13rem;
        height: auto;
        min-height: 10rem;
    }

    .icon-size {
        height: 3.5rem;
        width: 3.5rem;
    }

    .email-font-size {
        font-size: 14px;
    }

    .dashboard-style {
        font-size: 28px;
    }

    .mobile-user-font-size {
        font-size: 14px;
    }

    .mobile-text-font-size {
        font-size: 13px;
    }

    .logout-arrow {
        width: 1.8rem;
        height: 1.8rem;
    }

    .e-input-group, .e-input-group.e-control-wrapper {
        font-size: 14px;
    }

    .icon-text-size {
        width: 4rem;
    }

    .flex-end-desktop {
        justify-content: center;
    }

    .flex-start-desktop {
        justify-content: center;
    }

    header {
        padding: 0 0.5rem;
    }

    header img {
        max-width: 140px;
    }

    footer {
        height: auto;
        padding: 0.5rem;
    }
}

/* Syncfusion dropdown tree styling */
.e-input-group, .e-input-group.e-control-wrapper {
    background: rgb(255, 250, 250, 0.5);
    border-radius: 8px;
}

.e-ddt.e-popup.e-lib.e-control.e-popup-open {
    background: rgb(255, 250, 250, 0.9);
}

@media screen and (max-width: 500px) {
    .user {
        width: 100%;
        height: auto;
        min-height: 12rem;
        border-radius: 20px;
        margin: 0.5rem 0;
        padding: 0.75rem;
    }

    .card.site {
        width: calc(50vw - 1.5rem);
        max-width: 10rem;
        min-height: 8rem;
        padding: 0.75rem 0.5rem;
        border-radius: 1rem;
    }

    .sites-container .site {
        width: calc(50vw - 1.5rem);
        max-width: 10rem;
        min-height: 8rem;
    }

    .sites-container {
        gap: 0.15rem;
    }

    .sites-container a {
        margin: 0.15rem;
    }

    .icon-size {
        height: 2.5rem;
        width: 2.5rem;
    }

    .icon-text-size {
        width: 3.5rem;
    }

    .dashboard-style {
        font-size: 22px;
    }

    .email-font-size {
        font-size: 12px;
    }

    .mobile-user-font-size {
        font-size: 12px;
    }

    .mobile-text-font-size {
        font-size: 11px;
    }

    .selected-company {
        flex-direction: column;
    }
}

#myVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}

/* Blazor defaults */
a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm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