[data-bs-theme="light"] #kt_app_sidebar_menu > .menu-item.here > .menu-link,
[data-bs-theme="light"] #kt_app_sidebar_menu > .menu-item > .menu-link.active {
    background-color: #252f4a;
    color: #ffffff;
}

[data-bs-theme="light"] #kt_app_sidebar_menu > .menu-item.here > .menu-link .menu-title,
[data-bs-theme="light"] #kt_app_sidebar_menu > .menu-item.here > .menu-link .menu-icon,
[data-bs-theme="light"] #kt_app_sidebar_menu > .menu-item.here > .menu-link .menu-icon i,
[data-bs-theme="light"] #kt_app_sidebar_menu > .menu-item.here > .menu-link .menu-arrow::after,
[data-bs-theme="light"] #kt_app_sidebar_menu > .menu-item > .menu-link.active .menu-title,
[data-bs-theme="light"] #kt_app_sidebar_menu > .menu-item > .menu-link.active .menu-icon,
[data-bs-theme="light"] #kt_app_sidebar_menu > .menu-item > .menu-link.active .menu-icon i {
    color: #ffffff;
}

[data-bs-theme="light"] #kt_app_sidebar_menu .menu-sub .menu-link.active {
    background-color: #eef6ff;
    color: #1b84ff;
}

[data-bs-theme="light"] #kt_app_sidebar_menu .menu-sub .menu-link.active .menu-title,
[data-bs-theme="light"] #kt_app_sidebar_menu .menu-sub .menu-link.active .menu-bullet .bullet {
    color: #1b84ff;
}

[data-bs-theme="light"] #kt_app_sidebar_menu .menu-sub .menu-link.active .menu-bullet .bullet {
    background-color: #1b84ff;
}

:root {
    --felmar-table-min-height: calc(100dvh - 50px);
}

#kt_app_content_container .table-responsive:has(> table),
#kt_app_content_container .dt-scroll-body,
#kt_app_content_container .dataTables_scrollBody {
    min-height: var(--felmar-table-min-height);
}

#kt_app_content_container .modal .table-responsive,
#kt_app_content_container .modal .dt-scroll-body,
#kt_app_content_container .modal .dataTables_scrollBody {
    min-height: 0;
}

.felmar-fullscreen-loader {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(3px);
}

.felmar-fullscreen-loader.is-active {
    display: flex;
}

.felmar-fullscreen-loader__panel {
    width: min(100%, 380px);
    border-radius: 0.75rem;
    background: var(--bs-body-bg);
    box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.24);
    padding: 2rem;
    text-align: center;
}

.felmar-fullscreen-loader__spinner {
    width: 3rem;
    height: 3rem;
}

.felmar-login-video-panel {
    position: relative;
    min-height: 100dvh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 15% 18%, rgba(27, 132, 255, 0.34), transparent 32%),
        linear-gradient(135deg, #07111f 0%, #111827 48%, #330f16 100%);
}

.felmar-login-video-shell,
.felmar-login-video-scrim,
.felmar-login-route-glow {
    position: absolute;
    inset: 0;
}

.felmar-login-video-shell {
    z-index: 0;
    opacity: 0.74;
    filter: saturate(1.14) contrast(1.08);
}

.felmar-login-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: max(100%, 177.78vh);
    height: max(100%, 56.25vw);
    border: 0;
    transform: translate3d(-50%, -50%, 0) scale(1.04);
    pointer-events: none;
}

.felmar-login-video-scrim {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.88) 0%, rgba(7, 17, 31, 0.48) 52%, rgba(7, 17, 31, 0.82) 100%),
        linear-gradient(180deg, rgba(7, 17, 31, 0.42) 0%, rgba(7, 17, 31, 0.9) 100%);
}

.felmar-login-video-scrim::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 88%, transparent 100%);
    opacity: 0.26;
}

.felmar-login-route-glow {
    z-index: 1;
    opacity: 0.58;
    overflow: hidden;
}

.felmar-login-route-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            118deg,
            transparent 0 28px,
            rgba(255, 255, 255, 0.08) 29px,
            transparent 31px 88px
        ),
        linear-gradient(118deg, transparent 10%, rgba(27, 132, 255, 0.12) 48%, transparent 76%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 36%, #000 92%, transparent 100%);
    transform: translate3d(8%, 0, 0);
}

.felmar-login-route-glow::after {
    content: "";
    position: absolute;
    top: -12%;
    right: -42%;
    bottom: -12%;
    width: 34%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.18) 45%, transparent 100%);
    filter: blur(1px);
    transform: translate3d(0, 0, 0) skewX(-14deg);
    animation: felmar-login-sweep 7.5s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.felmar-login-brand-mark,
.felmar-login-video-copy,
.felmar-login-signal-grid {
    animation: felmar-login-rise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.felmar-login-video-copy {
    max-width: 580px;
    animation-delay: 110ms;
}

.felmar-login-video-copy h1 {
    font-size: clamp(2.75rem, 5vw, 5.5rem);
    line-height: 0.96;
    letter-spacing: 0;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.felmar-login-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 1.25rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.felmar-login-signal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: 680px;
    animation-delay: 210ms;
}

.felmar-login-signal {
    min-height: 92px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(8, 18, 32, 0.52);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.felmar-login-signal span,
.felmar-login-signal strong {
    display: block;
}

.felmar-login-signal span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
}

.felmar-login-signal strong {
    margin-top: 0.55rem;
    color: #ffffff;
    font-size: 1.12rem;
    font-weight: 800;
}

@keyframes felmar-login-rise {
    from {
        opacity: 0;
        transform: translate3d(0, 24px, 0) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes felmar-login-sweep {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) skewX(-14deg);
    }

    18%,
    58% {
        opacity: 0.68;
    }

    100% {
        opacity: 0;
        transform: translate3d(-270%, 0, 0) skewX(-14deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .felmar-login-video {
        display: none;
    }

    .felmar-login-brand-mark,
    .felmar-login-video-copy,
    .felmar-login-signal-grid,
    .felmar-login-route-glow::after {
        animation: none;
    }
}
