@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.boiwgh0w5b.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-4hue5jdtxr] {
    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-4hue5jdtxr] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-iaxuhr6ziq],
.components-reconnect-repeated-attempt-visible[b-iaxuhr6ziq],
.components-reconnect-failed-visible[b-iaxuhr6ziq],
.components-pause-visible[b-iaxuhr6ziq],
.components-resume-failed-visible[b-iaxuhr6ziq],
.components-rejoining-animation[b-iaxuhr6ziq] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-iaxuhr6ziq],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-iaxuhr6ziq],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-iaxuhr6ziq],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-iaxuhr6ziq],
#components-reconnect-modal.components-reconnect-retrying[b-iaxuhr6ziq],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-iaxuhr6ziq],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-iaxuhr6ziq],
#components-reconnect-modal.components-reconnect-failed[b-iaxuhr6ziq],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-iaxuhr6ziq] {
    display: block;
}


#components-reconnect-modal[b-iaxuhr6ziq] {
    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-iaxuhr6ziq 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-iaxuhr6ziq 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-iaxuhr6ziq 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-iaxuhr6ziq]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-iaxuhr6ziq 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-iaxuhr6ziq {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-iaxuhr6ziq {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-iaxuhr6ziq {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-iaxuhr6ziq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-iaxuhr6ziq] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-iaxuhr6ziq] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-iaxuhr6ziq] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-iaxuhr6ziq] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-iaxuhr6ziq] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-iaxuhr6ziq] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-iaxuhr6ziq 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-iaxuhr6ziq] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-iaxuhr6ziq {
    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/Allarmi.razor.rz.scp.css */
.hero-status[b-lxh4me6t93] {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 1.25rem;
    color: white;
    padding: 2rem;
}
    .hero-status[b-lxh4me6t93]::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="%23ffffff" fill-opacity="0.05"><path d="M0 0h20L0 20z"/></g></svg>');
        opacity: 0.3;
        pointer-events: none;
    }
.filter-chip[b-lxh4me6t93] {
    cursor: pointer;
    border: 1px solid #dee2e6;
    background: white;
    transition: all 0.2s;
    font-weight: 500;
    border-radius: 50px;
    padding: 0.4rem 1rem;
}

    .filter-chip.active[b-lxh4me6t93] {
        background: #34495e;
        color: white;
        border-color: #34495e;
    }

.badge-dot[b-lxh4me6t93] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-icon[b-lxh4me6t93] {
    font-size: 1.5rem;
    opacity: 0.7;
}

.group-dropdown-menu[b-lxh4me6t93] {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 2000; /* Aumentato da 1000 per stare sopra agli header sticky (1020) */
    min-width: 200px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background-color: white;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    animation: fadeIn-b-lxh4me6t93 0.15s ease-out;
}

/* Mobile: allinea il menu a sinistra perch� i pulsanti sono allineati a sinistra */
@media (max-width: 767.98px) {
    .group-dropdown-menu[b-lxh4me6t93] {
        right: auto;
        left: 0;
    }
}

@keyframes fadeIn-b-lxh4me6t93 {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.alarm-row[b-lxh4me6t93] {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02), 0 1px 0 rgba(0,0,0,0.05);
    transition: transform 0.1s, box-shadow 0.1s;
    border-left: 5px solid #dee2e6; /* Fallback */
    position: relative;
    overflow: hidden;
}

    .alarm-row:hover[b-lxh4me6t93] {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    }
    
    .alarm-row.active-alarm[b-lxh4me6t93] {
        background-color: #fffafa; 
    }

.border-severity-danger[b-lxh4me6t93] { border-left-color: var(--bs-danger); }
.border-severity-warning[b-lxh4me6t93] { border-left-color: var(--bs-warning); }
.border-severity-info[b-lxh4me6t93] { border-left-color: var(--bs-info); }
.border-severity-secondary[b-lxh4me6t93] { border-left-color: var(--bs-secondary); }

/* --- Uniformato a WidgetPlcHost --- */
.group-header-sticky[b-lxh4me6t93] {
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
    z-index: 1020;
    
    background-color: #34495e; 
    color: white;
    
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); 
    transition: background-color 0.2s ease, border-radius 0.2s;
    cursor: pointer;
    user-select: none;
    
    margin-bottom: 1rem; 
}

.group-header-sticky:hover[b-lxh4me6t93] {
    background-color: #2c3e50;
}

.group-header-sticky[b-lxh4me6t93]::before {
    content: "";
    display: block;
    width: 6px;
    height: 28px;
    margin-right: 1rem;
    border-radius: 10px;
    background-color: var(--group-status-color, #adb5bd);
    flex-shrink: 0;
}

.group-icon-box[b-lxh4me6t93] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.group-chevron[b-lxh4me6t93] {
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
}

.rotate-180[b-lxh4me6t93] {
    transform: rotate(180deg);
}

.alarm-mobile-meta[b-lxh4me6t93] {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #adb5bd;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.alarm-title[b-lxh4me6t93] {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #212529;
}

.group-header-sticky .badge.bg-light[b-lxh4me6t93] {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border: none !important;
}

@media (min-width: 768px) {
    .group-header-sticky[b-lxh4me6t93] { top: 60px; } 
}
/* /Components/Shared/StatusDotPopover.razor.rz.scp.css */
.status-dot-wrapper[b-033zuytk41] {
    position: relative;
    display: inline-block;
}

.status-dot[b-033zuytk41] {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255,255,255,0.1);
}

    .status-dot:hover[b-033zuytk41] {
        transform: scale(1.5);
        border-color: white;
        z-index: 10;
    }

    .status-dot.active[b-033zuytk41] {
        box-shadow: 0 0 0 2px white;
        transform: scale(1.2);
    }

.popover-card[b-033zuytk41] {
    position: fixed;
    bottom: auto;
    left: 0;
    top: 0;
    margin-bottom: 8px;
    padding: 0.5rem 0.8rem;
    background-color: #2c3e50;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1050;
    white-space: nowrap;
    animation: fade-in-b-033zuytk41 0.2s ease-out;
    pointer-events: none;
    max-width: min(250px, calc(100vw - 2rem));
    opacity: 0;
    visibility: hidden;
}

    .popover-card.positioned[b-033zuytk41] {
        opacity: 1;
        visibility: visible;
    }

@media (max-width: 767px) {
    .popover-card[b-033zuytk41] {
        white-space: normal;
        text-align: center;
        max-width: min(200px, calc(100vw - 2rem));
    }
}

@keyframes fade-in-b-033zuytk41 {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
