.oe-nm-page .oe-nm-tabs .nav-link {
    border-radius: 999px;
    font-size: 0.875rem;
}

.oe-nm-message-table td {
    vertical-align: middle;
}

.oe-nm-preview-demo {
    max-width: 420px;
}

.oe-nm-theme-row .form-control-color {
    height: 38px;
}

#oe-display-root {
    pointer-events: none;
}

.oe-display-floating,
.oe-display-snackbar,
.oe-display-banner,
.oe-display-panel,
.oe-display-fullscreen {
    pointer-events: auto;
}

.oe-display-floating {
    position: fixed;
    z-index: 10900;
    min-width: 280px;
    max-width: 420px;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    animation: oeDisplayFadeIn 0.35s ease;
}

.oe-display-snackbar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 10900;
    background: #323232;
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    animation: oeDisplaySlideUp 0.35s ease;
}

.oe-display-banner {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 10890;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: oeDisplaySlideDown 0.35s ease;
}

.oe-display-banner.is-top { top: 0; }
.oe-display-banner.is-bottom { bottom: 0; }

.oe-display-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(420px, 92vw);
    z-index: 10900;
    padding: 1.25rem;
    background: #fff;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.18);
    overflow-y: auto;
}

.oe-display-panel.is-right {
    right: 0;
    animation: oeDisplaySlideLeft 0.35s ease;
}

.oe-display-panel.is-left {
    left: 0;
    animation: oeDisplaySlideRight 0.35s ease;
}

.oe-display-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 10950;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    padding: 2rem;
    text-align: center;
    animation: oeDisplayFadeIn 0.35s ease;
}

.oe-display-fullscreen__inner {
    max-width: 520px;
}

.oe-field-warning {
    color: #856404;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.oe-field-success {
    color: #198754;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.oe-display-multi-error .alert {
    margin-bottom: 0.5rem;
}

.oe-display-multi-error .alert:last-child {
    margin-bottom: 0;
}

@keyframes oeDisplayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes oeDisplaySlideUp {
    from { opacity: 0; transform: translate(-50%, 16px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes oeDisplaySlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes oeDisplaySlideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes oeDisplaySlideRight {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.oe-display-anim-slide { animation-name: oeDisplaySlideDown !important; }
.oe-display-anim-bounce { animation-name: oeDisplayBounce !important; }
.oe-display-anim-zoom { animation-name: oeDisplayZoom !important; }
.oe-display-anim-flip { animation-name: oeDisplayFlip !important; }

@keyframes oeDisplayBounce {
    0% { transform: scale(0.92); opacity: 0; }
    60% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes oeDisplayZoom {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes oeDisplayFlip {
    from { transform: perspective(400px) rotateX(-20deg); opacity: 0; }
    to { transform: perspective(400px) rotateX(0); opacity: 1; }
}

[data-oe-theme="dark"] .oe-display-panel {
    background: #1e1e2d;
    color: #f8f9fa;
}

[data-oe-theme="corporate"] .oe-display-floating {
    border-left: 4px solid #095BAC;
}

[data-oe-theme="material"] .oe-display-floating {
    border-radius: 4px;
}
