/* /Components/Layout/MainLayout.razor.rz.scp.css */
.ame-shell[b-fe1yan1uk1] {
    min-height: 100vh;
    color: var(--ame-text);
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, .14), transparent 34rem),
        linear-gradient(180deg, var(--ame-bg), var(--ame-bg-soft));
}

.ame-topbar[b-fe1yan1uk1] {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: minmax(260px, auto) minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 76px;
    padding: 12px 28px;
    border-bottom: 1px solid var(--ame-border);
    background: rgba(15, 23, 42, .92);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.ame-brand[b-fe1yan1uk1] {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ame-brand-logo[b-fe1yan1uk1] {
    width: 112px;
    max-height: 42px;
    object-fit: contain;
}

.ame-brand-text[b-fe1yan1uk1] {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.1;
}

.ame-brand-text strong[b-fe1yan1uk1] {
    color: var(--ame-text);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.ame-brand-text span[b-fe1yan1uk1] {
    color: var(--ame-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.ame-topbar-actions[b-fe1yan1uk1] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.ame-icon-button[b-fe1yan1uk1] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--ame-border);
    border-radius: 10px;
    color: var(--ame-text);
    background: var(--ame-surface);
    font-weight: 800;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.ame-icon-button:hover[b-fe1yan1uk1] {
    border-color: var(--ame-primary);
    background: rgba(59, 130, 246, .16);
    transform: translateY(-1px);
}

.ame-user-card[b-fe1yan1uk1] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 10px;
    border: 1px solid var(--ame-border);
    border-radius: 12px;
    background: var(--ame-surface);
}

.ame-avatar[b-fe1yan1uk1] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: white;
    background: linear-gradient(135deg, var(--ame-primary), #2563eb);
    font-size: 13px;
    font-weight: 900;
}

.ame-user-meta[b-fe1yan1uk1] {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ame-user-meta strong[b-fe1yan1uk1] {
    color: var(--ame-text);
    font-size: 13px;
}

.ame-user-meta span[b-fe1yan1uk1] {
    color: var(--ame-text-muted);
    font-size: 11px;
}

.ame-main[b-fe1yan1uk1] {
    min-height: calc(100vh - 76px);
}

.ame-content[b-fe1yan1uk1] {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 28px;
}

/* Keep the identity/actions visible on ordinary laptop and desktop widths.
   The navigation uses a dedicated second row until the viewport is wide
   enough to hold all authorised tabs on one line. */
@media (max-width: 1800px) {
    .ame-topbar[b-fe1yan1uk1] {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 860px) {
    .ame-topbar[b-fe1yan1uk1] {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px 12px;
        min-height: 0;
        padding: 8px 10px;
    }

    .ame-topbar-actions[b-fe1yan1uk1] {
        justify-content: flex-end;
        gap: 6px;
    }

    .ame-content[b-fe1yan1uk1] {
        padding: 18px 14px;
    }
}

@media (max-width: 560px) {
    .ame-brand-logo[b-fe1yan1uk1] {
        width: 54px;
        max-height: 34px;
    }

    .ame-brand[b-fe1yan1uk1] {
        gap: 8px;
    }

    .ame-brand-text strong[b-fe1yan1uk1] {
        max-width: 165px;
        overflow: hidden;
        font-size: 12px;
        text-overflow: ellipsis;
    }

    .ame-brand-text span[b-fe1yan1uk1] {
        font-size: 10px;
    }

    .ame-user-meta[b-fe1yan1uk1] {
        display: none;
    }

    .ame-user-card[b-fe1yan1uk1] {
        min-height: 36px;
        padding: 2px;
        border: 0;
        background: transparent;
    }

    .ame-icon-button[b-fe1yan1uk1],
    .ame-avatar[b-fe1yan1uk1] {
        width: 34px;
        height: 34px;
    }

    .ame-content[b-fe1yan1uk1] {
        padding: 12px 10px 24px;
    }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.ame-nav[b-70emiyh7dw] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    padding: 6px;
    border: 1px solid var(--ame-border);
    border-radius: 10px;
    background: rgba(15, 23, 42, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 30px rgba(2, 6, 23, .16);
    scrollbar-width: none;
}

.ame-nav[b-70emiyh7dw]::-webkit-scrollbar {
    display: none;
}

[b-70emiyh7dw] .ame-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--ame-text-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    background: transparent;
    transition: color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

[b-70emiyh7dw] .ame-nav-link:hover {
    color: var(--ame-text);
    border-color: rgba(148, 163, 184, .24);
    background: rgba(30, 41, 59, .78);
    text-decoration: none;
}

[b-70emiyh7dw] .ame-nav-link.active {
    color: white;
    border-color: rgba(96, 165, 250, .48);
    background: linear-gradient(180deg, rgba(37, 99, 235, .98), rgba(29, 78, 216, .94));
    box-shadow: 0 8px 20px rgba(37, 99, 235, .24), inset 0 1px 0 rgba(255, 255, 255, .16);
    text-decoration: none;
}

[b-70emiyh7dw] .ame-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #93c5fd;
}

[b-70emiyh7dw] .ame-nav-link.active .ame-nav-icon {
    color: white;
}

[b-70emiyh7dw] .ame-nav-icon::before,
[b-70emiyh7dw] .ame-nav-icon::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

[b-70emiyh7dw] .ame-nav-icon-dashboard::before {
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background:
        linear-gradient(currentColor, currentColor) 50% 0 / 2px 100% no-repeat,
        linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat;
    opacity: .95;
}

[b-70emiyh7dw] .ame-nav-icon-building::before {
    left: 4px;
    right: 4px;
    bottom: 2px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 3px 3px 2px 2px;
}

[b-70emiyh7dw] .ame-nav-icon-building::after {
    left: 7px;
    top: 6px;
    width: 2px;
    height: 2px;
    background: currentColor;
    box-shadow: 4px 0 currentColor, 0 4px currentColor, 4px 4px currentColor;
}

[b-70emiyh7dw] .ame-nav-icon-machine::before {
    inset: 3px;
    border: 3px solid currentColor;
    border-radius: 50%;
}

[b-70emiyh7dw] .ame-nav-icon-machine::after {
    inset: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 -8px 0 -1px currentColor, 0 8px 0 -1px currentColor, 8px 0 0 -1px currentColor, -8px 0 0 -1px currentColor;
}

[b-70emiyh7dw] .ame-nav-icon-maintenance::before {
    width: 13px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(-42deg);
}

[b-70emiyh7dw] .ame-nav-icon-maintenance::after {
    width: 6px;
    height: 6px;
    right: 2px;
    top: 2px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

[b-70emiyh7dw] .ame-nav-icon-interventions::before {
    left: 4px;
    top: 3px;
    width: 10px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

[b-70emiyh7dw] .ame-nav-icon-interventions::after {
    left: 7px;
    top: 7px;
    width: 6px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor;
}

[b-70emiyh7dw] .ame-nav-icon-planning::before {
    inset: 3px 2px 2px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

[b-70emiyh7dw] .ame-nav-icon-planning::after {
    left: 5px;
    top: 7px;
    width: 8px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 4px 0 currentColor;
}

[b-70emiyh7dw] .ame-nav-icon-history::before {
    inset: 3px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

[b-70emiyh7dw] .ame-nav-icon-history::after {
    left: 8px;
    top: 5px;
    width: 5px;
    height: 6px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

[b-70emiyh7dw] .ame-nav-icon-inventory::before {
    left: 3px;
    top: 4px;
    width: 12px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

[b-70emiyh7dw] .ame-nav-icon-inventory::after {
    left: 6px;
    top: 2px;
    width: 6px;
    height: 4px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 3px 3px 0 0;
}

[b-70emiyh7dw] .ame-nav-icon-admin::before {
    left: 6px;
    top: 3px;
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

[b-70emiyh7dw] .ame-nav-icon-admin::after {
    left: 3px;
    bottom: 2px;
    width: 12px;
    height: 7px;
    border: 2px solid currentColor;
    border-radius: 8px 8px 3px 3px;
}

@media (max-width: 1800px) {
    .ame-nav[b-70emiyh7dw] {
        grid-column: 1 / -1;
        justify-content: flex-start;
        order: 3;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

@media (max-width: 640px) {
    .ame-nav[b-70emiyh7dw] {
        grid-column: 1 / -1;
        gap: 5px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 5px;
        scroll-snap-type: x proximity;
    }

    [b-70emiyh7dw] .ame-nav-link {
        min-width: 42px;
        min-height: 36px;
        padding: 7px;
        gap: 0;
        scroll-snap-align: start;
    }

    [b-70emiyh7dw] .ame-nav-link span:not(.ame-nav-icon) {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-mpgjciv49z],
.components-reconnect-repeated-attempt-visible[b-mpgjciv49z],
.components-reconnect-failed-visible[b-mpgjciv49z],
.components-pause-visible[b-mpgjciv49z],
.components-resume-failed-visible[b-mpgjciv49z],
.components-rejoining-animation[b-mpgjciv49z] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-mpgjciv49z],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-mpgjciv49z],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-mpgjciv49z],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-mpgjciv49z],
#components-reconnect-modal.components-reconnect-retrying[b-mpgjciv49z],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-mpgjciv49z],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-mpgjciv49z],
#components-reconnect-modal.components-reconnect-failed[b-mpgjciv49z],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-mpgjciv49z] {
    display: block;
}


#components-reconnect-modal[b-mpgjciv49z] {
    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-mpgjciv49z 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-mpgjciv49z 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-mpgjciv49z 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-mpgjciv49z]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-mpgjciv49z 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-mpgjciv49z {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-mpgjciv49z {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-mpgjciv49z {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-mpgjciv49z] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-mpgjciv49z] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-mpgjciv49z] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-mpgjciv49z] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-mpgjciv49z] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-mpgjciv49z] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-mpgjciv49z] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-mpgjciv49z 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-mpgjciv49z] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-mpgjciv49z {
    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;
    }
}
