/* Fase 9.2 — CSS verbatim de los <style> de Pages/Inventarios/Productos/Main/ProductoEdicionModal.razor. Igual que hoy, es global mientras el componente está en pantalla:
   se enlaza con <link> donde estaba el <style>. Cambios: @@ → @ y capas D-51. */
.pem-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, .5);
    z-index: var(--z-modal); /* D-51 (era 2000) */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    animation: pemFadeIn .15s ease;
}

.pem-panel {
    width: min(1280px, 100%);
    height: min(94vh, 980px);
    background: var(--c-bg-1, #fff);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,.30);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: pemSlideUp .18s ease;
}

    .pem-panel .produto-page {
        height: 100%;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .pem-panel .produto-body {
        flex: 1;
        overflow-y: auto;
    }

@keyframes pemFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pemSlideUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .pem-overlay {
        padding: 0;
    }

    .pem-panel {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}
