@import '_content/Havit.Blazor.Components.Web.Bootstrap/Havit.Blazor.Components.Web.Bootstrap.0hqt4twfv7.bundle.scp.css';

/* /Views/Parametros/RolesPermisos.razor.rz.scp.css */
/* Gestion de Roles — pulido visual (rediseno de seguridad V2). */

.roles-cabecera[b-yzt9eitrub] {
    background: color-mix(in srgb, var(--bs-body-bg) 88%, var(--seepos-naranja, #ee7519));
    border: 1px solid rgba(100, 75, 60, .18);
}

.roles-stat[b-yzt9eitrub] {
    border: 1px solid rgba(100, 75, 60, .15);
}

.roles-stat .roles-stat-num[b-yzt9eitrub] {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.roles-stat .roles-stat-cap[b-yzt9eitrub] {
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.roles-tabla th[b-yzt9eitrub] {
    font-size: .72rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.badge-gran[b-yzt9eitrub] {
    background: color-mix(in srgb, #ee7519 18%, transparent);
    color: #b45309;
}

.badge-oper[b-yzt9eitrub] {
    background: color-mix(in srgb, var(--seepos-verde, #58ba00) 16%, transparent);
    color: #15803d;
}

.badge-mod[b-yzt9eitrub] {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    min-width: 2rem;
}

/* Matriz de permisos: interruptores en rojo cuando estan concedidos, como el mockup. */
.matriz .form-check-input[b-yzt9eitrub] {
    cursor: pointer;
}

.matriz .form-check-input:checked[b-yzt9eitrub] {
    background-color: var(--bs-danger);
    border-color: var(--bs-danger);
}

.matriz-modulo > summary[b-yzt9eitrub] {
    list-style: none;
    cursor: pointer;
    padding: .6rem .9rem;
    background: var(--bs-tertiary-bg);
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.matriz-modulo > summary[b-yzt9eitrub]::-webkit-details-marker {
    display: none;
}

.matriz-modulo[open] > summary[b-yzt9eitrub] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* El cuerpo de cada modulo hace scroll horizontal si no cabe (muchas acciones). */
.matriz-modulo .tabla-scroll[b-yzt9eitrub] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.matriz-modulo .tabla-funciones[b-yzt9eitrub] {
    width: auto;
    min-width: 100%;
}

.matriz-modulo .tabla-funciones th[b-yzt9eitrub] {
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.matriz-modulo .tabla-funciones .col-funcion[b-yzt9eitrub] {
    text-align: start;
    min-width: 11rem;
    max-width: 18rem;
}

.matriz-modulo .tabla-funciones .col-accion[b-yzt9eitrub] {
    text-align: center;
    width: 2.6rem;
    padding-left: .2rem;
    padding-right: .2rem;
}

.matriz-modulo .tabla-funciones .form-switch[b-yzt9eitrub] {
    padding-left: 2.1rem;
}

.rol-panel[b-yzt9eitrub] {
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: .6rem;
}
/* /Views/Shared/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-crx63eq2uk],
.components-reconnect-repeated-attempt-visible[b-crx63eq2uk],
.components-reconnect-failed-visible[b-crx63eq2uk],
.components-pause-visible[b-crx63eq2uk],
.components-resume-failed-visible[b-crx63eq2uk],
.components-rejoining-animation[b-crx63eq2uk],
.components-reconnect-acciones[b-crx63eq2uk] {
    display: none;
}

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

#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-crx63eq2uk],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-crx63eq2uk] {
    display: grid;
}

#components-reconnect-modal.components-reconnect-failed .components-reconnect-acciones[b-crx63eq2uk],
#components-reconnect-modal.components-reconnect-paused .components-reconnect-acciones[b-crx63eq2uk],
#components-reconnect-modal.components-reconnect-resume-failed .components-reconnect-acciones[b-crx63eq2uk] {
    display: flex;
}

#components-reconnect-modal[b-crx63eq2uk] {
    width: min(calc(100vw - 2rem), 25rem);
    margin: auto;
    padding: 0;
    color: var(--bs-body-color, #302a26);
    background: var(--bs-body-bg, #fffdf9);
    border: 1px solid color-mix(in srgb, var(--seepos-tierra, #644b3c) 34%, var(--bs-border-color, #d8d0c8));
    border-radius: 1.1rem;
    box-shadow: 0 1.5rem 4rem rgba(42, 28, 18, .3);
    opacity: 0;
    transition: display .3s allow-discrete, overlay .3s allow-discrete;
    animation: components-reconnect-modal-fade-out-b-crx63eq2uk .3s both;
}

#components-reconnect-modal[open][b-crx63eq2uk] {
    animation: components-reconnect-modal-in-b-crx63eq2uk .38s cubic-bezier(.2, .85, .28, 1.12) both;
}

#components-reconnect-modal[b-crx63eq2uk]::backdrop {
    background: rgba(39, 30, 25, .58);
    backdrop-filter: blur(2px);
    animation: components-reconnect-backdrop-in-b-crx63eq2uk .3s ease-out both;
}

.components-reconnect-container[b-crx63eq2uk] { overflow: hidden; }

.components-reconnect-encabezado[b-crx63eq2uk] {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.15rem;
    color: #fff;
    background: linear-gradient(112deg, var(--seepos-tierra-oscuro, #4d382d), var(--seepos-tierra, #644b3c));
    border-bottom: .18rem solid var(--seepos-verde, #58ba00);
}

.components-reconnect-icono[b-crx63eq2uk] {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    place-items: center;
    color: var(--seepos-verde-accion, #347000);
    background: #fffdf9;
    border-radius: .65rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.components-reconnect-eyebrow[b-crx63eq2uk] {
    display: block;
    margin-bottom: .08rem;
    color: rgba(255, 255, 255, .72);
    font-size: .67rem;
    font-weight: 750;
    letter-spacing: .07em;
    text-transform: uppercase;
}

#components-reconnect-title[b-crx63eq2uk] {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.components-reconnect-estado[b-crx63eq2uk] {
    display: grid;
    min-height: 10.75rem;
    place-items: center;
    align-content: center;
    gap: .85rem;
    padding: 1.35rem 1.4rem 1.2rem;
}

#components-reconnect-modal p[b-crx63eq2uk] {
    max-width: 20rem;
    margin: 0;
    color: var(--seepos-gris-texto, #716860);
    font-size: .9rem;
    line-height: 1.55;
    text-align: center;
}

#components-reconnect-modal p strong[b-crx63eq2uk] { color: var(--bs-body-color, #302a26); }

.components-reconnect-acciones[b-crx63eq2uk] {
    justify-content: center;
    padding: 0 1.4rem 1.35rem;
}

#components-reconnect-modal button[b-crx63eq2uk] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.5rem;
    padding: .5rem 1rem;
    color: #fff;
    font: inherit;
    font-size: .87rem;
    font-weight: 750;
    background: var(--seepos-verde-accion, #347000);
    border: 1px solid var(--seepos-verde-accion, #347000);
    border-radius: .58rem;
    box-shadow: 0 .3rem .75rem rgba(52, 112, 0, .2);
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

#components-reconnect-modal button:hover[b-crx63eq2uk] {
    background: var(--seepos-verde-accion-oscuro, #285900);
    border-color: var(--seepos-verde-accion-oscuro, #285900);
    box-shadow: 0 .4rem .9rem rgba(52, 112, 0, .28);
    transform: translateY(-1px);
}

#components-reconnect-modal button:focus-visible[b-crx63eq2uk] {
    outline: 0;
    box-shadow: 0 0 0 .22rem var(--seepos-halo-verde, rgba(88, 186, 0, .22));
}

.components-rejoining-animation[b-crx63eq2uk] {
    position: relative;
    width: 4.7rem;
    height: 4.7rem;
    place-items: center;
}

.components-rejoining-animation[b-crx63eq2uk]::before {
    position: absolute;
    inset: .55rem;
    content: "";
    background: color-mix(in srgb, var(--seepos-verde, #58ba00) 13%, var(--bs-body-bg, #fffdf9));
    border-radius: 50%;
}

.components-rejoining-animation i[b-crx63eq2uk] {
    position: relative;
    z-index: 1;
    color: var(--seepos-verde-accion, #347000);
    font-size: 1.22rem;
    animation: components-reconnect-spin-b-crx63eq2uk 1.25s linear infinite;
}

.components-rejoining-animation div[b-crx63eq2uk] {
    position: absolute;
    inset: .18rem;
    border: 2px solid var(--seepos-verde, #58ba00);
    border-radius: 50%;
    animation: components-reconnect-pulse-b-crx63eq2uk 1.7s cubic-bezier(.2, .7, .3, 1) infinite;
}

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

@keyframes components-reconnect-modal-in-b-crx63eq2uk {
    from { opacity: 0; transform: translateY(1rem) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes components-reconnect-modal-fade-out-b-crx63eq2uk {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes components-reconnect-backdrop-in-b-crx63eq2uk {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes components-reconnect-pulse-b-crx63eq2uk {
    from { transform: scale(.55); opacity: .9; }
    to { transform: scale(1.12); opacity: 0; }
}

@keyframes components-reconnect-spin-b-crx63eq2uk {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-crx63eq2uk],
    #components-reconnect-modal[open][b-crx63eq2uk],
    #components-reconnect-modal[b-crx63eq2uk]::backdrop,
    .components-rejoining-animation i[b-crx63eq2uk],
    .components-rejoining-animation div[b-crx63eq2uk] { animation: none; }

    #components-reconnect-modal button[b-crx63eq2uk] { transition: none; }
}
