/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-yi4z48g7tq] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-yi4z48g7tq] {
    flex: 1;
}

.content[b-yi4z48g7tq] {
    padding-bottom: 1.5rem;
}

#blazor-error-ui[b-yi4z48g7tq] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-yi4z48g7tq] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-70k4foeie9],
.components-reconnect-repeated-attempt-visible[b-70k4foeie9],
.components-reconnect-failed-visible[b-70k4foeie9],
.components-pause-visible[b-70k4foeie9],
.components-resume-failed-visible[b-70k4foeie9],
.components-rejoining-animation[b-70k4foeie9] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-70k4foeie9],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-70k4foeie9],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-70k4foeie9],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-70k4foeie9],
#components-reconnect-modal.components-reconnect-retrying[b-70k4foeie9],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-70k4foeie9],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-70k4foeie9],
#components-reconnect-modal.components-reconnect-failed[b-70k4foeie9],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-70k4foeie9] {
    display: block;
}


#components-reconnect-modal[b-70k4foeie9] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-70k4foeie9 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-70k4foeie9 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-70k4foeie9 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-70k4foeie9]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-70k4foeie9 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-70k4foeie9 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-70k4foeie9 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-70k4foeie9 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-70k4foeie9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-70k4foeie9] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-70k4foeie9] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-70k4foeie9] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-70k4foeie9] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-70k4foeie9] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-70k4foeie9] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-70k4foeie9 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-70k4foeie9] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-70k4foeie9 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Inspections/InspectionDetail.razor.rz.scp.css */
/* Structural-element register: code cell with location-map hover preview + viewer deep-link */
.elem-code[b-378cfealyc] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.elem-thumb-wrap[b-378cfealyc] {
    position: relative;
    display: inline-flex;
    line-height: 0;
}

.elem-thumb-link[b-378cfealyc] {
    display: inline-flex;
    line-height: 0;
}

/* Small inline icon box left of the code (location pin, photo thumb, or placeholder) */
.elem-thumb[b-378cfealyc] {
    width: 32px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    cursor: zoom-in;
    transition: border-color .12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-body-bg, #fff);
}

.elem-thumb-wrap:hover .elem-thumb[b-378cfealyc] {
    border-color: var(--bs-primary, #0d6efd);
}

/* Location-available pin (blue, to read as "map / location") */
.elem-thumb-pin[b-378cfealyc] {
    color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary-bg-subtle, #cfe2ff);
    border-color: var(--bs-primary-border-subtle, #9ec5fe);
}

/* No images yet */
.elem-thumb-empty[b-378cfealyc] {
    cursor: default;
    color: var(--bs-secondary-color, #adb5bd);
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-style: dashed;
}

/* Enlarged preview shown on hover — positioned absolutely so it escapes the table cell */
.elem-thumb-pop[b-378cfealyc] {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    z-index: 1080;
    display: none;
    width: 300px;
    max-width: 72vw;
    padding: 4px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
    line-height: 0;
}

.elem-thumb-wrap:hover .elem-thumb-pop[b-378cfealyc] {
    display: block;
}

/* Photo fallback (elements whose first image has no GPS) */
.elem-thumb-pop > img[b-378cfealyc] {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* Satellite location map. The image is only fetched when the row is hovered: the URL lives in a
   per-row CSS variable and is applied to background-image solely under :hover, so the page load
   never triggers a map request per element. */
.elem-pop-map[b-378cfealyc] {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;          /* matches the 540x360 static map */
    border-radius: 4px;
    background-color: var(--bs-tertiary-bg, #e9ecef);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: none;
}

.elem-thumb-wrap:hover .elem-pop-map[b-378cfealyc] {
    background-image: var(--map-url);
}

.elem-thumb-cap[b-378cfealyc] {
    display: block;
    line-height: 1.2;
    font-size: .72rem;
    color: var(--bs-secondary-color, #6c757d);
    padding: 5px 3px 2px;
}
/* /Components/Portal/PortalLayout.razor.rz.scp.css */
.portal-shell[b-33sdunipnp] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-bar.portal-bar-dark[b-33sdunipnp] {
    background-image: none;
    background-color: #18181b;
}

.portal-bar[b-33sdunipnp] {
    background-image: linear-gradient(90deg, rgb(5, 39, 103) 0%, #3a0647 100%);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .55rem 1.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

.portal-brand[b-33sdunipnp] {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    white-space: nowrap;
}

.portal-sub[b-33sdunipnp] {
    font-size: .72rem;
    font-weight: 400;
    opacity: .75;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
}

.portal-nav[b-33sdunipnp] {
    display: flex;
    gap: .25rem;
    flex: 1;
}

    .portal-nav a[b-33sdunipnp] {
        color: rgba(255, 255, 255, .82);
        text-decoration: none;
        padding: .35rem .75rem;
        border-radius: 4px;
        font-size: .95rem;
    }

    .portal-nav a:hover[b-33sdunipnp] {
        color: #fff;
        background: rgba(255, 255, 255, .12);
    }

.portal-account[b-33sdunipnp] {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.portal-user[b-33sdunipnp] {
    color: rgba(255, 255, 255, .85);
    font-size: .9rem;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-logout-form[b-33sdunipnp] {
    margin: 0;
}

.portal-logout[b-33sdunipnp] {
    background: none;
    border: 1px solid rgba(255, 255, 255, .4);
    color: rgba(255, 255, 255, .9);
    border-radius: 4px;
    padding: .25rem .7rem;
    font-size: .9rem;
    cursor: pointer;
}

    .portal-logout:hover[b-33sdunipnp] {
        background: rgba(255, 255, 255, .12);
        color: #fff;
    }

.portal-main[b-33sdunipnp] {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
    padding: 1.25rem 1.5rem 2rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 575.98px) {
    .portal-bar[b-33sdunipnp] { flex-wrap: wrap; gap: .5rem; }
    .portal-user[b-33sdunipnp] { max-width: 130px; }
    .portal-main[b-33sdunipnp] { padding: 1rem; }
}
