@import '_content/MonitorKDS.Shared/MonitorKDS.Shared.383drr532y.bundle.scp.css';

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* Modal de reconexão — compatível com Chrome 61:
   sem CSS aninhado (&), sem "gap" em flex (Chrome 84) e sem transição de "display". Cores nos cinzas do KDS. */

.components-reconnect-first-attempt-visible[b-9mydvzlffo],
.components-reconnect-repeated-attempt-visible[b-9mydvzlffo],
.components-reconnect-failed-visible[b-9mydvzlffo],
.components-reconnect-rejected-visible[b-9mydvzlffo],
.components-pause-visible[b-9mydvzlffo],
.components-resume-failed-visible[b-9mydvzlffo],
.components-rejoining-animation[b-9mydvzlffo] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-9mydvzlffo],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-9mydvzlffo],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-9mydvzlffo],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-9mydvzlffo],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-9mydvzlffo],
#components-reconnect-modal.components-reconnect-rejected .components-reconnect-rejected-visible[b-9mydvzlffo],
#components-reconnect-modal.components-reconnect-rejected .components-rejoining-animation[b-9mydvzlffo],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-9mydvzlffo],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-9mydvzlffo],
#components-reconnect-modal.components-reconnect-resume-failed .components-rejoining-animation[b-9mydvzlffo] {
    display: block;
}

/* Na tentativa repetida a mensagem da primeira tentativa some */
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-first-attempt-visible[b-9mydvzlffo] {
    display: none;
}

#components-reconnect-modal[b-9mydvzlffo] {
    background-color: #2b2b2b;
    color: #f1f1f1;
    width: 22rem;
    max-width: 90vw;
    margin: 20vh auto;
    padding: 2rem;
    border: 1px solid #444;
    border-radius: 0.5rem;
    box-shadow: 0 3px 12px 2px rgba(0, 0, 0, 0.5);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
}

#components-reconnect-modal[b-9mydvzlffo]::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.components-reconnect-container[b-9mydvzlffo] {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Espaçamento entre os itens (substitui o "gap", que não existe em flex no Chrome 61) */
.components-reconnect-container > * + *[b-9mydvzlffo] {
    margin-top: 1rem;
}

#components-reconnect-modal p[b-9mydvzlffo] {
    margin-bottom: 0;
    text-align: center;
    line-height: 1.4;
}

#components-reconnect-modal button[b-9mydvzlffo] {
    border: 0;
    background-color: #5a5a5a;
    color: #fff;
    padding: 8px 28px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

#components-reconnect-modal button:hover[b-9mydvzlffo],
#components-reconnect-modal button:focus[b-9mydvzlffo] {
    background-color: #707070;
}

.components-rejoining-animation[b-9mydvzlffo] {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div[b-9mydvzlffo] {
    position: absolute;
    border: 3px solid #bdbdbd;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-9mydvzlffo 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-9mydvzlffo] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-9mydvzlffo {
    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: 0;
        left: 0;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
