/* CHECK Layer — estilos propios mínimos (infraestructura Blazor).
   Los colores de marca viven en css/tema.css, css/componentes.css y css/sitio.css
   (copiados sin modificar desde las maquetas) y se referencian vía var(--cl-*). */

h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: var(--bs-warning);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    color: var(--bs-dark);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ACT-097: franja del sitio de pruebas (sandbox). Píldora fija arriba al centro; no captura clics */
.cl-ambiente {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    max-width: calc(100vw - 32px);
    padding: .2rem .8rem .25rem;
    border-radius: 0 0 .6rem .6rem;
    background: #F59E0B;
    color: #1F1300;
    font: 600 .72rem/1.2 Inter, system-ui, sans-serif;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
    pointer-events: none;
}

    .cl-ambiente .cl-ambiente-detalle {
        font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
    }

@media (max-width: 575.98px) {
    .cl-ambiente .cl-ambiente-detalle {
        display: none;
    }
}

@media print {
    .cl-ambiente {
        display: none;
    }
}

.blazor-error-boundary {
    background: var(--bs-danger);
    padding: 1rem;
    color: var(--bs-white);
}

    .blazor-error-boundary::after {
        content: "Ocurrió un error."
    }
