﻿@keyframes controlFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes prefSpinner {
    0% {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

@keyframes prefToastSlideIn {
    0% {
        transform: translateX(100%);
        opacity: 0
    }

    to {
        transform: translateX(0);
        opacity: 1
    }
}

@keyframes fadeInLogoUp {
    0% {
        opacity: 0;
        top: 55%;
        transform: translate(-50%,-50%) scale(.5)
    }

    70% {
        opacity: 1;
        top: 42%;
        transform: translate(-50%,-50%) scale(.9)
    }

    to {
        opacity: 1;
        top: 35%;
        transform: translate(-50%,-50%) scale(.7)
    }
}

@keyframes fadeInMessageUp {
    0% {
        opacity: 0;
        top: 90%;
        transform: translate(-50%,-50%) scale(.8)
    }

    70% {
        opacity: 1;
        top: 78%;
        transform: translate(-50%,-50%) scale(1.05)
    }

    to {
        opacity: 1;
        top: 75%;
        transform: translate(-50%,-50%) scale(1)
    }
}

@keyframes jump {
    0%,to {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes next-button-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(144,238,144,.4)
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px 5px transparent;
        background-color: #9993af
    }

    to {
        transform: scale(1);
        box-shadow: 0 0 0 0 transparent
    }
}

@keyframes bps-next-glow {
    0%,to {
        transform: scale(1);
        background-color: transparent;
        color: #fff;
        text-shadow: 0 0 0 transparent
    }

    50% {
        transform: scale(1.2);
        background-color: rgba(59,130,246,.4);
        color: #fff;
        box-shadow: 0 0 15px rgba(59,130,246,.6);
        text-shadow: 0 0 10px rgba(59,130,246,.8)
    }
}

@keyframes bps-filling-pulse {
    0%,to {
        transform: scale(1);
        color: #fff
    }

    40% {
        transform: scale(1.5);
        color: pink;
        text-shadow: 0 0 12px pink
    }
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    index: 0;
    background: #0d0d15;
    background: linear-gradient(135deg,#0a0a12 0,#12101a 50%,#150a12 100%),radial-gradient(circle at 20% 30%,rgba(45,35,85,.4),transparent 50%),radial-gradient(circle at 75% 25%,rgba(85,25,65,.35),transparent 55%),radial-gradient(circle at 30% 70%,rgba(65,15,35,.4),transparent 50%),radial-gradient(circle at 80% 80%,rgba(35,30,70,.35),transparent 55%);
    background-attachment: fixed;
    overflow: hidden;
    font-family: "Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",Arial,sans-serif;
    filter: var(--interface-filter)
}

:root {
    --interface-filter: none;
    --media-filter: none;
    --beeplannertoolbars: #1B1926;
    --text-size-normal: 1.0rem;
    --text-size-smaller: 0.7rem;
    --bps-radius: 8px;
    --bps-shadow: 0 2px 10px rgba(0,0,0,.06);
    --bps-bg: #ffffff;
    --bps-surface: #fafbfc;
    --bps-surface-2: #f3f5f7;
    --bps-muted: #6c757d;
    --bps-border: #d9dee3;
    --bps-accent: #0d6efd;
    --control-font-size: 14px;
    --control-pad-y: 6px;
    --control-pad-x: 10px;
    --control-height: 2.25rem;
    --control-rows: 6;
    --bps-hover: rgba(13,110,253,.08);
    --bps-font: 'Inter', system-ui, -apple-system, sans-serif;
    bottom-nav-height: 60px;
    --primary-color: rgba(10, 10, 20, 0.97);
    --primary-light: rgba(128, 0, 0, 0.1);
    --primary-hover: rgba(255, 255, 255, 0.1);
    --primary-background: black;
    --secondary-color: #E8C5E8;
    --text-color: white;
    --text-light: white;
    --text-muted: purple;
    --text-lightgrey: #686868;
    --text-colorpurple: #E8C5E8;
    --text-gradient-strong: linear-gradient( 135deg, #ff6b6b, #feca57, #48dbfb, #5f27cd );
    --border-light: rgba(255, 255, 255, 0.1);
    --border-standard: #ccc;
    --gradient-primary: linear-gradient(360deg, white 0%, var(--primary-color) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 6px 16px rgba(44, 62, 80, 0.3);
    --Purpleburstbackgrounddark: linear-gradient(135deg, #0a0a12 0%, #12101a 50%, #150a12 100%), radial-gradient(circle at 20% 30%, rgba(45, 35, 85, 0.4), transparent 50%), radial-gradient(circle at 75% 25%, rgba(85, 25, 65, 0.35), transparent 55%), radial-gradient(circle at 30% 70%, rgba(65, 15, 35, 0.4), transparent 50%), radial-gradient(circle at 80% 80%, rgba(35, 30, 70, 0.35), transparent 55%);
    --Purpleburstbackgroundlight: linear-gradient( 135deg, #0b0b14 0%, /* 10% lighter than #0a0a12 */
    #14121d 50%, /* 10% lighter than #12101a */
    #170b14 100% /* 10% lighter than #150a12 */
    ), radial-gradient( circle at 20% 30%, rgba(50, 39, 94, 0.4), /* 10% lighter than rgba(45, 35, 85, 0.4) */
    transparent 50% ), radial-gradient( circle at 75% 25%, rgba(94, 28, 72, 0.35), /* 10% lighter than rgba(85, 25, 65, 0.35) */
    transparent 55% ), radial-gradient( circle at 30% 70%, rgba(72, 17, 39, 0.4), /* 10% lighter than rgba(65, 15, 35, 0.4) */
    transparent 50% ), radial-gradient( circle at 80% 80%, rgba(39, 33, 77, 0.35), /* 10% lighter than rgba(35, 30, 70, 0.35) */
    transparent 55% );
    --darkpurplegreytextbackroundforinputs: linear-gradient( 135deg, #26232e 0%, /* dark grey-purple */
    #3b3244 100% /* slightly warmer purple */
    ), radial-gradient( circle at 20% 30%, rgba(90, 80, 140, 0.35), /* softer purple highlight */
    transparent 50% ), radial-gradient( circle at 75% 25%, rgba(120, 70, 120, 0.3), /* muted magenta-purple */
    transparent 55% ), radial-gradient( circle at 30% 70%, rgba(110, 65, 95, 0.35), /* deep rose-purple */
    transparent 50% ), radial-gradient( circle at 80% 80%, rgba(80, 75, 130, 0.3), /* cool purple accent */
    transparent 55% );
    --AbsoluteBackroundColorBlackForDarkWhiteForlight: black;
    --AbsoluteForegroundColorBlackForDarkWhiteForlight: white;
    --AbsoluteComponentForegroundColor: #343043;
    --bloodredbackground: linear-gradient( 135deg, #3a0a0a 0%, /* deep crimson */
    #5a0f12 50%, /* rich blood red */
    #6a141a 100% /* slightly warmer end tone */
    ), radial-gradient( circle at 25% 30%, rgba(180, 30, 30, 0.4), /* bright red highlight */
    transparent 50% ), radial-gradient( circle at 75% 25%, rgba(200, 40, 60, 0.35), /* glowing red accent */
    transparent 55% ), radial-gradient( circle at 30% 70%, rgba(150, 25, 40, 0.4), /* darker red pocket */
    transparent 50% ), radial-gradient( circle at 80% 80%, rgba(120, 25, 35, 0.35), /* subtle maroon edge */
    transparent 55% );
    --vh: 1vh;
    --bottom-nav-height: calc(var(--vh) * 7)
}

.page, body {
    overflow: hidden;
    margin: 0;
    padding: 0
}

body {
    color: var(--text-color);
    font-size: .95rem;
    height: 100%;
    index: 0;
    font-family: "Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",Arial,sans-serif
}

.nav-item .btn-outline-light {
    position: relative;
    width: 20px;
    height: 18px;
    padding: 0;
    margin-left: 5px;
    border: 1px solid var(--border-standard);
    border-radius: 2px;
    background-color: var(--primary-background);
    box-shadow: 0 1px 2px rgba(0,0,0,.1)
}

    .nav-item .btn-outline-light::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background-color: var(--bps-accent);
        border-top-left-radius: 1px;
        border-top-right-radius: 1px
    }

    .nav-item .btn-outline-light .oi-external-link {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-40%);
        font-size: 9px;
        color: var(--bps-accent)
    }

    .nav-item .btn-outline-light:hover {
        background-color: var(--primary-hover);
        border-color: var(--bps-accent)
    }

        .nav-item .btn-outline-light:hover::after {
            content: "Open in new window";
            position: absolute;
            bottom: -25px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--primary-color);
            color: var(--text-lightgrey);
            padding: 3px 6px;
            border-radius: 3px;
            font-size: 10px;
            white-space: nowrap;
            z-index: 100
        }

    .nav-item .btn-outline-light:active {
        background-color: var(--primary-hover);
        transform: translateY(1px)
    }

.page {
    display: flex;
    flex-direction: column;
    height: calc(var(--vh)*100);
    width: 100vw
}

.content, article.content, main {
    flex: 1;
    position: relative;
    width: 100%;
    overflow: hidden
}

.content, article.content {
    height: 100%;
    margin: 0;
    padding: 0
}

.container-fluid, main {
    height: 100%;
    display: flex;
    flex-direction: column
}

.row {
    flex: 1;
    height: 100%
}

.menu-button, .top-nav {
    color: var(--text-light)
}

.top-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 1000
}

.menu-button {
    background: 0 0;
    border: 0;
    font-size: 24px;
    cursor: pointer;
    padding: 8px
}

    .menu-button:hover {
        border-radius: 1px;
        transform: none
    }

.logo {
    margin-left: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-shadow: 0 2px 4px rgba(0,0,0,.2)
}

.nav-item a {
    transition: all .2s ease;
    margin: .2rem 0
}

    .nav-item a:hover {
        transform: translateX(5px)
    }

.nav-item, .nav-link {
    display: flex;
    align-items: center
}

.nav-item {
    padding: .25rem .9rem;
    margin: 0 .15rem
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    gap: .25rem;
    padding: .5rem .75rem;
    border-radius: 4px;
    transition: all .2s ease;
    font-weight: 400
}

    .nav-link:hover {
        color: var(--text-light);
        background-color: var(--primary-color, #007bff);
        transform: translateY(-2px)
    }

    .nav-link.active {
        background-color: var(--primary-color);
        color: var(--text-light);
        border: 0;
        padding: 12px 18px;
        border-radius: 6px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .5px;
        transition: background .3s,transform .2s
    }

.nav-text {
    font-size: .85rem;
    letter-spacing: .3px
}

.btn-outline-light, .btn-outline-primary, .btn-sm.btn-outline-light {
    background-color: transparent;
    border: 1px solid rgba(255,255,255,.5);
    color: var(--text-lightgrey);
    padding: .25rem .5rem;
    margin-left: .5rem;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1rem;
    min-height: 1rem
}

    .btn-outline-light:hover {
        background-color: var(--primary-hover);
        border-color: rgba(255,255,255,.8);
        color: var(--text-light);
        transform: scale(.97)
    }

    .btn-outline-light .oi {
        font-size: .9rem
    }

.slide-menu {
    position: fixed;
    top: 48px;
    left: 0;
    width: 250px;
    height: calc(100vh - 48px);
    background: linear-gradient(to bottom,var(--primary-color),rgba(10,10,20,.97),rgba(10,10,20,.87));
    z-index: 1000;
    box-shadow: 4px 0 8px rgba(0,0,0,.1);
    color: var(--text-lightgrey);
    overflow: visible
}

    .interface-launcher:hover .interface-dropdown, .menu-item:hover .interface-dropdown, .slide-menu.show {
        display: block
    }

.menu-content {
    display: flex;
    flex-direction: column;
    height: 100%
}

.menu-item {
    color: rgba(240,245,255,.9);
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
    transition: color .2s ease;
    position: relative;
    display: block;
    width: 100%
}

    .menu-item:hover {
        color: #fff;
        text-shadow: 0 0 8px rgba(255,255,255,.3)
    }

    .menu-item.active {
        color: #fff;
        font-weight: 500
    }

.interface-launcher {
    position: relative;
    z-index: 850;
    display: block;
    overflow: visible
}

    .interface-launcher a, .interface-launcher button {
        position: relative;
        cursor: pointer;
        display: block;
        width: 100%;
        text-align: left;
        background: 0 0;
        border: 0;
        color: inherit;
        padding: .5rem 1rem;
        margin: 0;
        transition: all .2s ease
    }

        .interface-launcher a:hover, .interface-launcher button:hover {
            background-color: var(--primary-hover)
        }

.menu-heading {
    color: rgba(220,225,235,.6);
    font-size: .8rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: .75rem 1.5rem .5rem
}

.user-info {
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--text-light);
    font-size: .95rem;
    background-color: rgba(255,255,255,.1);
    margin: 0 1rem .5rem;
    border-radius: 6px
}

.user-icon {
    color: rgba(255,255,255,.9);
    font-size: 1.1rem
}

.user-info .user-role {
    color: rgba(210,220,240,.8);
    font-size: .8rem
}

.logout-button {
    width: calc(100% - 1rem);
    margin: .5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    color: #ff8a80;
    background: rgba(255,82,82,.1);
    border: 1px solid rgba(255,82,82,.2);
    cursor: pointer;
    transition: all .2s ease;
    border-radius: 6px;
    font-weight: 500
}

    .logout-button:hover {
        background-color: rgba(255,82,82,.2);
        color: #ff5252;
        transform: translateX(4px)
    }

.settings-menu {
    border-top: 1px solid var(--border-light);
    padding: 1rem 0;
    background-color: rgba(0,0,0,.2);
    box-shadow: 0-2px 8px rgba(0,0,0,.1)
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.settings-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: rgba(255,255,255,.85);
    padding: .75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all .2s ease;
    font-weight: 500;
    margin: 0 .5rem
}

    .settings-item:hover {
        color: var(--text-light);
        background-color: rgba(255,255,255,.15);
        transform: translateX(4px)
    }

.settings-icon {
    color: #64b5f6
}

.arrow-down, .arrow-up {
    transform: rotate(45deg);
    margin-left: auto;
    border: solid rgba(255,255,255,.85);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transition: transform .3s ease
}

.arrow-up {
    transform: rotate(-135deg)
}

.submenu {
    margin: .5rem .75rem;
    background-color: rgba(0,0,0,.2);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    position: relative
}

.submenu-item.disabled {
    color: rgba(200,210,225,.5)
}

.submenu-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #81d4fa
}

.interface-dropdown {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: var(--primary-color);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
    min-width: 180px;
    z-index: 900;
    padding: .5rem 0;
    display: none
}

.menu-icon {
    color: rgba(190,210,240,.9);
    margin-right: .75rem;
    width: 16px;
    display: inline-block;
    text-align: center
}

.menu-item:hover .menu-icon {
    color: #dce6ff
}

.menu-badge {
    background-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.95);
    padding: .2rem .5rem;
    border-radius: 10px;
    font-size: .7rem;
    margin-left: auto
}

.floating-menu {
    position: fixed;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: all .3s ease
}

.position-top-left {
    top: .5rem;
    left: .5rem
}

.position-top-right {
    top: .5rem;
    right: .5rem
}

.position-bottom-left {
    bottom: 1.5rem;
    left: 1.5rem
}

.position-bottom-right {
    bottom: 1.5rem;
    right: 1.5rem
}

.floating-button {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: rgba(0,0,0,.4);
    color: var(--text-light);
    border: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s ease,box-shadow .3s ease
}

    .floating-button:hover {
        transform: scale(.97);
        box-shadow: 0 3px 12px rgba(0,0,0,.3)
    }

    .floating-button i {
        font-size: 1.5rem
    }

.position-top-left .floating-menu-options {
    top: 4.5rem;
    left: 0
}

.position-top-right .floating-menu-options {
    top: 4.5rem;
    right: 0
}

.position-bottom-left .floating-menu-options {
    bottom: 4.5rem;
    left: 0
}

.position-bottom-right .floating-menu-options {
    bottom: 4.5rem;
    right: 0
}

.floating-menu-options {
    position: absolute;
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: .5rem;
    box-shadow: var(--shadow-lg, 0 3px 15px rgba(0, 0, 0, 0.2));
    padding: .5rem 0;
    display: flex;
    flex-direction: column;
    min-width: 14rem;
    z-index: 1001;
    font-family: "Segoe UI",sans-serif
}

.position-text {
    font-size: .75rem;
    font-weight: 600;
    color: var(--secondary-color);
    padding: .5rem 1rem .25rem
}

.floating-menu-divider {
    height: 1px;
    background-color: var(--border-light, #e5e7eb);
    margin: .5rem 0
}

.floating-menu-item, .floating-menu-item button {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer
}

.floating-menu-item {
    padding: .5rem 1rem;
    justify-content: flex-start;
    border: 0;
    background: 0 0;
    text-align: left;
    transition: background-color .2s ease;
    color: var(--text-light);
    font-size: .9rem;
    border-radius: .25rem;
    gap: .5rem
}

    .floating-menu-item:hover {
        background-color: rgba(255,255,255,.1);
        color: #f8f8f8
    }

    .floating-menu-item i {
        font-size: 1rem;
        margin-right: .5rem
    }

    .floating-menu-item button {
        all: unset;
        color: inherit;
        font: inherit
    }

.control-fade-in {
    opacity: 0;
    animation: controlFadeIn .5s ease-in forwards;
    will-change: transform,opacity;
    backface-visibility: hidden;
    perspective: 1000px
}

.dynamic-interface .control-wrapper {
    position: absolute;
    background-color: var(--bloodredbackground);
    border: 1px solid var(--border-standard);
    border-radius: 1px;
    overflow: hidden;
    padding: 0;
    margin: 0;
    box-shadow: 0 4px 12px rgba(44,62,80,.2);
    transition: transform .3s ease-in-out,box-shadow .3s ease-in-out
}

    .dynamic-interface .control-wrapper:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-lg)
    }

.container-content {
    position: relative;
    flex: 1;
    width: 100%;
    overflow: auto;
    padding: 0;
    background-color: var(--primary-background);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(44,62,80,.1)
}

.container-header {
    padding: 10px;
    background-color: #dfe6e9;
    border-bottom: 2px solid var(--border-standard);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px
}

.scroll-detection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none
}

.login-card {
    background-color: var(--primary-color);
    color: #fff;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 2px 15px rgba(0,0,0,.1);
    animation: fadeIn .3s ease-out
}

    .login-card .card-header {
        background: linear-gradient(120deg,#4c1d95 0,#7c3aed 20%,#c084fc 40%,#fcd34d 70%,#fef08a 100%);
        color: var(--secondary-color);
        border-bottom: 1px solid var(--border-light);
        padding: .5rem
    }

    .login-card .card-body {
        padding: 1rem;
        color: var(--secondary-color)
    }

    .login-card .form-label {
        color: var(--text-light);
        font-weight: 500;
        margin-bottom: .5rem
    }

    .login-card .alert-danger {
        background-color: var(--bloodredbackground);
        border: 0;
        color: #f5f5f5
    }

    .login-card input::placeholder {
        color: rgba(255,255,255,.5)
    }

.preferences-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem
}

    .preferences-container .preferences-header {
        margin-bottom: 2rem;
        text-align: left
    }

        .preferences-container .preferences-header h3 {
            font-size: 1.8rem;
            margin-bottom: .5rem;
            color: var(--text-light);
            font-weight: 500
        }

    .preferences-container .preferences-subtitle {
        color: var(--text-color);
        font-size: 1rem;
        margin-top: 0
    }

    .preferences-container .loading-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem
    }

    .preferences-container .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(0,0,0,.1);
        border-radius: 50%;
        border-top-color: var(--primary-color);
        animation: prefSpinner 1s linear infinite;
        margin-bottom: 1rem
    }

    .preferences-container .empty-settings {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem;
        background-color: --bloodredbackground;
        border-radius: 8px;
        text-align: center
    }

        .preferences-container .empty-settings i {
            font-size: 3rem;
            color: var(--border-standard);
            margin-bottom: 1rem
        }

        .preferences-container .empty-settings p {
            color: var(--text-muted);
            margin-bottom: 1.5rem
        }

    .preferences-container .settings-card {
        background-color: var(--primary-background);
        border-radius: 8px;
        box-shadow: var(--shadow-sm);
        padding: 1.5rem
    }

    .preferences-container .settings-actions {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 1.5rem
    }

    .preferences-container .settings-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
        gap: 1.5rem
    }

    .preferences-container .setting-item {
        position: relative;
        background-color: --bloodredbackground;
        border-radius: 6px;
        padding: 1.25rem;
        transition: box-shadow .2s
    }

        .preferences-container .setting-item:hover {
            box-shadow: var(--shadow-sm)
        }

    .preferences-container .setting-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        color: #fff
    }

    .preferences-container .setting-name {
        font-weight: 500;
        color: var(--text-light);
        font-size: 1rem
    }

    .preferences-container .setting-value {
        margin-top: .5rem
    }

    .preferences-container .setting-text-input {
        width: 100%;
        padding: .5rem;
        border: 1px solid var(--border-standard);
        border-radius: 4px;
        font-size: .9rem;
        transition: border-color .2s
    }

        .preferences-container .setting-number-input:focus, .preferences-container .setting-text-input:focus {
            border-color: var(--primary-color);
            outline: 0
        }

    .preferences-container .toggle-switch {
        position: relative;
        display: inline-flex;
        align-items: center;
        cursor: pointer
    }

        .preferences-container .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0
        }

    .preferences-container .toggle-slider {
        position: relative;
        display: inline-block;
        width: 48px;
        height: 24px;
        background-color: #ccc;
        border-radius: 24px;
        transition: .3s;
        margin-right: 10px
    }

        .preferences-container .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: var(--primary-background);
            border-radius: 50%;
            transition: .3s
        }

    .preferences-container input:checked + .toggle-slider {
        background-color: var(--primary-color)
    }

        .preferences-container input:checked + .toggle-slider:before {
            transform: translateX(24px)
        }

    .preferences-container .toggle-label {
        font-size: .9rem;
        color: var(--text-color)
    }

    .preferences-container .number-input-container {
        display: flex;
        align-items: center
    }

    .preferences-container .number-btn {
        background-color: #e9ecef;
        border: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        cursor: pointer;
        user-select: none
    }

        .preferences-container .number-btn:first-child {
            border-radius: 4px 0 0 4px
        }

        .preferences-container .number-btn:last-child {
            border-radius: 0 4px 4px 0
        }

    .preferences-container .setting-number-input {
        width: 100%;
        text-align: center;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: .5rem;
        border: 1px solid var(--border-standard);
        font-size: .9rem;
        transition: border-color .2s
    }

    .preferences-container .color-picker-container {
        display: flex;
        align-items: center;
        gap: 10px
    }

        .preferences-container .color-picker-container input[type=color] {
            width: 40px;
            height: 40px;
            border: 0;
            border-radius: 4px;
            padding: 0;
            cursor: pointer
        }

    .preferences-container .color-text {
        flex: 1;
        padding: .5rem;
        border: 1px solid var(--border-standard);
        border-radius: 4px;
        font-size: .9rem
    }

.preferences-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
    z-index: 1000
}

.preferences-modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background-color: var(--primary-background);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    width: 90%;
    max-width: 500px;
    z-index: 1001
}

.preferences-modal-content {
    padding: 0
}

.preferences-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-standard)
}

    .preferences-modal-header h5 {
        margin: 0;
        color: var(--primary-color);
        font-size: 1.2rem
    }

.preferences-modal-close {
    background: 0 0;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-color);
    cursor: pointer
}

.preferences-modal-body {
    padding: 1.5rem
}

.preferences-form-group {
    margin-bottom: 1.25rem
}

    .preferences-form-group label {
        display: block;
        margin-bottom: .5rem;
        font-weight: 500;
        color: var(--text-color)
    }

.preferences-form-control {
    width: 100%;
    padding: .5rem;
    border: 1px solid var(--border-standard);
    border-radius: 4px;
    font-size: .9rem;
    transition: border-color .2s
}

    .preferences-form-control:focus {
        border-color: var(--primary-color);
        outline: 0
    }

.preferences-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-standard);
    gap: 10px
}

.preferences-btn-secondary {
    background-color: #6c757d
}

    .preferences-btn-secondary:hover {
        background-color: #5a6268
    }

.preferences-btn-primary, .preferences-btn-secondary {
    padding: .5rem 1rem;
    color: var(--text-light);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .2s
}

    .preferences-btn-primary, .preferences-btn-primary:hover {
        background-color: var(--primary-color)
    }

        .preferences-btn-primary:disabled {
            background-color: #6c757d;
            cursor: not-allowed
        }

.preferences-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100
}

.preferences-toast-message {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    animation: prefToastSlideIn .3s ease-out forwards
}

    .preferences-toast-message i {
        margin-right: 10px;
        font-size: 1.2rem
    }

    .preferences-toast-message.success {
        background-color: #d4edda;
        color: #155724;
        border-left: 4px solid #28a745
    }

    .preferences-toast-message.error {
        background-color: #f8d7da;
        color: #721c24;
        border-left: 4px solid #dc3545
    }

.center-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(var(--vh)*100);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--text-light)
}

.animated-logo, .welcome-message {
    opacity: 0;
    position: absolute;
    left: 50%
}

.animated-logo {
    width: auto;
    max-width: 40%;
    height: auto;
    top: 45%;
    transform: translate(-50%,-50%) scale(1);
    animation: fadeInLogoUp 3s ease-in-out forwards;
    transition: none;
    will-change: opacity,transform;
    z-index: 2
}

.welcome-message {
    font-family: "Segoe UI",-apple-system,BlinkMacSystemFont,"Roboto","Helvetica Neue",Arial,sans-serif;
    width: 80%;
    max-height: 60%;
    top: 75%;
    transform: translate(-50%,-50%) scale(.9);
    color: var(--text-light);
    text-align: center;
    animation: fadeInMessageUp 3s ease-in-out 2s forwards;
    z-index: 1
}

.btn.btn-Inject {
    background-color: var(--primary-light);
    color: var(--text-light);
    border: 0;
    padding: 3px 18px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: background .3s,transform .2s
}

    .btn.btn-Inject:hover {
        background-color: var(--primary-color);
        transform: scale(.95)
    }

.rosell-menu-item {
    position: relative
}

.rosell-menu-label {
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ddd;
    background-color: transparent;
    transition: background .2s ease
}

    .rosell-menu-label:hover {
        color: var(--text-light);
        background-color: rgba(255,255,255,.1)
    }

    .rosell-menu-label:focus {
        color: var(--text-light);
        background-color: rgba(255,255,255,.1)
    }

.rosell-submenu .rosell-submenu {
    top: 0;
    left: 100%
}

.rosell-menu.menu-active {
    display: flex;
    flex-wrap: wrap;
    position: relative
}

.rosell-menu, .rosell-submenu {
    background: var(--primary-color);
    border-radius: 8px;
    padding: 4px
}

.rosell-menu {
    list-style: none;
    margin: 0;
    font-size: .95rem;
    display: flex;
    flex-wrap: wrap;
    position: relative
}

.rosell-submenu > .rosell-menu {
    display: block
}

.rosell-submenu {
    left: 0;
    right: auto;
    position: absolute;
    top: 100%;
    min-width: 180px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    display: block
}

.rosell-menu-item.open-left > .rosell-submenu {
    left: auto;
    right: 0
}

    .rosell-menu-item.open-left > .rosell-submenu .rosell-submenu {
        left: auto;
        right: 100%
    }

.control-panel {
    z-index: 3;
    position: relative
}

.leaflet-container, .leaflet-map-pane, .leaflet-objects-pane, .leaflet-overlay-pane, .leaflet-pane, .leaflet-popup-pane, .leaflet-shadow-pane, .leaflet-tile-pane {
    z-index: 10
}

.leaflet-popup {
    z-index: 11
}

.navbar {
    z-index: 1000;
    position: relative;
    padding: .5rem 1rem
}

.main-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0
}

.main-menu, .menu-container, .modal-backdrop, .modal-dialog, .nav-controls, .sidebar {
    z-index: 1000;
    position: relative
}

.rosell-menu-wrapper {
    position: relative;
    z-index: 0;
    transition: z-index .1s ease
}

    .rosell-menu-wrapper:hover {
        z-index: 9999
    }

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.3);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center
}

.mobile-menu-container, .mobile-menu-header {
    background-color: var(--primary-color);
    display: flex
}

.mobile-menu-container {
    width: 90dvw;
    max-width: 600px;
    height: 80dvh;
    color: var(--text-light);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-lg, 0 0 20px rgba(0,0,0,0.4));
    flex-direction: column;
    overflow: hidden;
    z-index: 1100;
    font-family: "Segoe UI",sans-serif
}

.mobile-menu-header {
    position: relative;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    font-size: 1.2rem;
    align-items: center;
    min-height: 56px
}

    .mobile-menu-header::before, .starttop-header::before {
        content: "";
        position: absolute;
        background: url(/images/2.jpg)center center/cover no-repeat;
        z-index: 0
    }

    .mobile-menu-header::before {
        inset: 0;
        opacity: .08
    }

    .mobile-menu-header > * {
        position: relative;
        z-index: 1
    }

.mobile-menu-body {
    padding: 0;
    overflow-y: auto;
    flex-grow: 1
}

.mobile-menu-container .list-group {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    background-color: var(--Purpleburstbackgrounddark)
}

.mobile-menu-container .list-group-item {
    display: flex;
    align-items: center;
    padding: .65rem 1rem;
    font-size: .95rem;
    color: var(--text-light);
    text-decoration: none;
    background-color: var(--Purpleburstbackgrounddark);
    border-left: 4px solid transparent;
    transition: background-color .2s,color .2s,border-color .2s;
    border-radius: 0;
    cursor: pointer
}

.mobile-menu-container .tile-icon {
    font-size: 1.25rem;
    margin-right: .75rem;
    color: var(--text-light)
}

.mobile-menu-container .tile-text {
    font-weight: 300;
    font-size: .75rem;
    white-space: nowrap
}

.profile-settings-card, .profile-settings-card .card, .profile-settings-card .card-body {
    background-color: var(--primary-background);
    color: var(--text-color);
    border: 1px solid var(--border-standard);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.04)
}

    .profile-settings-card .form-label {
        color: var(--text-color);
        font-weight: 500;
        font-size: .95rem
    }

    .profile-settings-card .btn-primary {
        background-color: var(--primary-color, #007bff);
        border-color: var(--primary-color, #007bff);
        color: var(--text-light);
        font-weight: 500;
        border-radius: 6px;
        transition: background-color .2s,transform .1s
    }

        .profile-settings-card .btn-primary:hover {
            background-color: var(--bps-accent);
            border-color: var(--bps-accent);
            transform: translateY(-1px)
        }

img.rounded-circle.shadow-sm.me-2 {
    border: 2px solid var(--border-light)
}

.card {
    background-color: var(--primary-color, #3a0647);
    color: var(--text-light);
    max-height: 85vh;
    display: flex;
    flex-direction: column
}

.card-header {
    background-color: rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: .5rem .75rem
}

    .card-header h5, .interface-designer .card-header h5 {
        color: var(--text-light);
        font-size: .9rem;
        margin-bottom: 0
    }

.card-body {
    padding: .5rem;
    overflow-y: auto
}

.list-group-item {
    background-color: var(--Purpleburstbackgrounddark);
    border: 1px solid rgba(255,255,255,.1);
    padding: .25rem .5rem;
    font-size: .8rem
}

.bottom-nav, .list-group-item, .list-group-item-action {
    color: var(--text-light)
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    z-index: 1000
}

.startmenu-bee-icon {
    height: 6vh;
    max-width: 6vh;
    object-fit: contain;
    display: block;
    border-radius: 50%;
    padding: 4px;
    background: #000;
    border: 1px solid var(--text-light);
    backdrop-filter: blur(4px);
    transition: transform .3s ease,box-shadow .3s ease,border-color .3s ease;
    box-shadow: 0 0 6px transparent
}

    .startmenu-bee-icon:hover {
        transform: scale(1.05);
        box-shadow: 0 0 5px rgba(255,255,255,.6);
        border-color: var(--secondary-color)
    }

.start-hint {
    position: fixed;
    bottom: 60px;
    left: .5rem;
    width: 200px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    background: rgba(0,0,0,.75);
    padding: .5rem;
    border-radius: 8px;
    pointer-events: none;
    z-index: 1500;
    animation: jump 1s infinite;
    opacity: 1;
    transition: opacity .5s ease
}

    .start-hint.hidden {
        opacity: 0
    }

.start-menu, .starttop-header {
    background-color: var(--primary-color)
}

.start-menu {
    position: fixed;
    bottom: 48px;
    left: 1rem;
    width: calc(400px - 1rem);
    max-width: calc(100% - 2rem);
    max-height: 70vh;
    color: var(--text-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9001;
    font-family: "Segoe UI",sans-serif
}

    .start-menu.show {
        display: flex
    }

.starttop-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: .5rem 1rem;
    min-height: 56px;
    border-bottom: 1px solid var(--border-light)
}

    .starttop-header::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: .1
    }

    .starttop-header > * {
        position: relative;
        z-index: 1
    }

.start-header {
    display: flex;
    align-items: center;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border-light)
}

.avatar-icon {
    font-size: 1.5rem;
    margin-right: .75rem;
    color: var(--text-light)
}

.username {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis
}

.tile-text, .username {
    font-weight: 500;
    font-size: .9rem;
    color: var(--text-light);
    white-space: nowrap
}

.icon-small, .section-title {
    color: var(--secondary-color)
}

.icon-small {
    font-size: 1rem;
    margin-right: .5rem
}

.section-title {
    font-size: 1.05rem;
    margin-bottom: .5rem;
    display: flex;
    align-items: center
}

.start-pinned {
    padding: .75rem 1rem;
    flex-grow: 1;
    overflow-y: auto
}

.interface-list {
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.tile, .tile-icon {
    color: var(--text-light)
}

.tile {
    display: flex;
    align-items: center;
    padding: .5rem .75rem;
    border-radius: 4px;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: background-color .2s,color .2s;
    background-color: transparent
}

.tile-icon {
    font-size: 1.25rem;
    margin-right: .75rem
}

.submenu-item:hover, .tile:hover {
    background-color: rgba(255,255,255,.1);
    color: #f8f8f8
}

.tile:hover {
    border-left-color: var(--secondary-color)
}

    .tile:hover .tile-icon, .tile:hover .tile-text {
        color: #f8f8f8
    }

.start-footer {
    padding: .5rem 1rem;
    border-top: 1px solid var(--border-light)
}

.settings-disabled {
    opacity: .6
}

    .settings-disabled .tile-icon.disabled {
        opacity: .4
    }

.submenu-list {
    display: flex;
    flex-direction: column;
    margin-top: .25rem
}

.submenu-item {
    padding: .4rem .5rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: .85rem;
    transition: background-color .2s,color .2s;
    gap: .75rem;
    font-weight: 500;
    position: relative
}

    .submenu-item:hover {
        transform: translateX(4px)
    }

    .submenu-item .icon-small {
        margin-right: .5rem;
        transition: color .2s
    }

    .submenu-item:hover .icon-small {
        color: #f8f8f8
    }

.profile-picture-container {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--primary-background);
    border: 2px solid rgba(0,0,0,.1);
    box-shadow: 0 0 4px rgba(0,0,0,.2);
    flex-shrink: 0
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.modal-backdrop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem
}

.dynamic-interface {
    position: relative;
    width: 100%;
    height: calc(var(--vh)*100 - var(--bottom-nav-height));
    top: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
    overflow: auto;
    padding-bottom: 0
}

    .dynamic-interface::before {
        content: "";
        position: absolute;
        inset: 1%;
        filter: blur(45px);
        z-index: -1;
        pointer-events: none
    }

    .dynamic-interface .it-card {
        display: grid;
        grid-template-rows: auto auto 1fr;
        gap: .75rem;
        border: 1px solid var(--it-border);
        border-radius: 12px;
        background: var(--it-glass);
        backdrop-filter: blur(10px);
        box-shadow: var(--it-shadow);
        overflow: hidden;
        background-clip: padding-box;
        color: var(--text-light)
    }

    .dynamic-interface .it-tools {
        position: sticky;
        top: 0;
        z-index: 5;
        border-bottom: 1px solid var(--it-border);
        background: var(--it-glass-strong);
        backdrop-filter: blur(10px);
        color: var(--text-light)
    }

    .dynamic-interface .it-tools-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .75rem;
        padding: .65rem .75rem;
        color: var(--text-light)
    }

    .dynamic-interface .it-body {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 1rem;
        padding: .5rem .75rem .75rem;
        color: var(--text-light)
    }

    .dynamic-interface .it-preview-scroll {
        border: 1px solid var(--it-border);
        border-radius: 10px;
        background: var(--it-glass);
        backdrop-filter: blur(10px);
        max-height: var(--it-panel-h);
        overflow: auto;
        scrollbar-gutter: stable both-edges;
        color: var(--text-light)
    }

    .dynamic-interface .it-table {
        border-collapse: collapse;
        width: 100%;
        table-layout: auto;
        color: var(--text-light)
    }

        .dynamic-interface .it-table td, .dynamic-interface .it-table th {
            padding: .35rem .6rem;
            border: 1px solid var(--it-border);
            white-space: nowrap;
            vertical-align: middle;
            font-size: .94rem;
            color: var(--text-light)
        }

        .dynamic-interface .it-confirm-bottom, .dynamic-interface .it-table thead th {
            position: sticky;
            background: var(--it-glass-strong);
            backdrop-filter: blur(10px);
            color: var(--text-light)
        }

        .dynamic-interface .it-table thead th {
            top: 0;
            z-index: 2
        }

    .dynamic-interface .it-confirm-bottom {
        display: flex;
        justify-content: flex-end;
        gap: .6rem;
        bottom: 0;
        z-index: 10;
        padding: .5rem .75rem
    }

        .dynamic-interface .it-confirm-bottom .it-importselected-btn {
            background: var(--Purpleburstbackgrounddark);
            color: var(--text-gradient-strong);
            border: 0;
            border-radius: 8px;
            padding: .45rem .9rem;
            font-weight: 800;
            font-size: 1.2rem;
            box-shadow: 0 2px 6px rgba(0,0,0,.12);
            transition: background .2s ease,transform .05s ease;
            border: 1px solid var(--it-border)
        }

            .dynamic-interface .it-confirm-bottom .it-importselected-btn:hover {
                background: linear-gradient(135deg,#66adff,#4a88ea)
            }

            .dynamic-interface .it-confirm-bottom .it-importselected-btn:active {
                transform: translateY(1px)
            }

.dynamic-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--mud-elevation-2);
    background-color: var(--mud-palette-surface)
}

.grid-fixed .mud-table-container {
    overflow-x: auto
}

.grid-fixed .mud-data-grid {
    height: 100%;
    display: flex;
    flex-direction: column
}

.dynamic-grid .mud-data-grid-toolbar, .dynamic-grid .mud-toolbar, .dynamic-grid .mud-toolbar-content {
    background-color: var(--mud-palette-background);
    border-bottom: 1px solid var(--mud-palette-lines-default);
    padding: .5rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem
}

    .dynamic-grid .mud-toolbar .mud-text-field {
        min-width: 200px
    }

.dynamic-grid .mud-table-header {
    background-color: var(--mud-palette-background-grey);
    font-weight: 600;
    text-transform: capitalize
}

.dynamic-grid .mud-table-cell {
    padding: .5rem .75rem;
    white-space: nowrap
}

.dynamic-grid .mud-table-row:hover {
    background-color: var(--mud-palette-action-hover);
    cursor: pointer
}

.dynamic-grid .mud-data-grid-pager, .dynamic-grid .mud-table-footer {
    border-top: 1px solid var(--mud-palette-lines-default);
    background-color: var(--mud-palette-background);
    padding: .25rem .75rem
}

.datagrid-singleselect {
    border: 1px solid var(--mud-palette-lines-default)
}

.datagrid-singleselect__toolbar {
    padding: .5rem 1rem;
    background-color: var(--mud-palette-background);
    border-bottom: 1px solid var(--mud-palette-lines-default)
}

.datagrid-singleselect__header {
    background-color: var(--mud-palette-background-grey);
    font-weight: 500
}

.datagrid-singleselect__cell {
    padding: .5rem .75rem
}

.datagrid-singleselect__select-btn {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    border: 0;
    border-radius: 4px;
    padding: .25rem .75rem;
    transition: background-color .2s ease-in-out
}

    .datagrid-singleselect__select-btn:hover {
        background-color: var(--mud-palette-primary-dark)
    }

.datagrid-singleselect__childpaper {
    background-color: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    margin-top: .5rem
}

.interface-designer .card-header {
    background-color: rgba(255,255,255,.1);
    border-bottom: 1px solid var(--border-light);
    padding: .5rem .75rem
}

.interface-designer .card-body {
    padding: .1rem
}

.interface-designer .control-wrapper {
    border: 1px solid var(--border-standard);
    background: var(--primary-background);
    cursor: move;
    user-select: none;
    min-height: 5px;
    box-shadow: var(--shadow-sm);
    border-radius: 4px;
    overflow: hidden
}

    .interface-designer .control-wrapper.selected {
        border: 2px solid var(--bps-accent);
        box-shadow: 0 0 8px rgba(0,123,255,.4)
    }

.interface-designer .form-label {
    font-size: .75rem;
    margin-bottom: .1rem;
    color: var(--text-light)
}

.interface-designer .input-group .form-select {
    max-width: 60px
}

.interface-designer .form-check-label {
    font-size: .75rem
}

.interface-designer .mb-2 {
    margin-bottom: .5rem
}

.interface-designer .mb-3 {
    margin-bottom: .75rem
}

.code-editor {
    font-family: monospace;
    font-size: .7rem
}

.interface-designer .col-md-2 {
    max-width: 200px
}

.properties-panel .btn {
    padding: .15rem .3rem;
    font-size: .7rem
}

.properties-panel {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 8px
}

.control-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem
}

.control-name {
    font-weight: 500;
    color: var(--text-color)
}

.control-id {
    color: var(--text-color);
    background: var(--darkpurplegreytextbackroundforinputs);
    border-radius: 3px
}

.control-id, .delete-btn {
    padding: 2px 6px;
    font-size: .8rem
}

.control-wrapper, .design-surface {
    border: 1px solid var(--border-standard)
}

.design-surface {
    background-image: linear-gradient(0deg,#f0f0f0 1px,transparent 1px),linear-gradient(90deg,#f0f0f0 1px,transparent 1px);
    background-size: 20px 20px;
    position: relative;
    aspect-ratio: 16/9;
    width: 100%;
    min-height: 600px;
    background-color: var(--primary-background);
    height: auto
}

.control-wrapper {
    background: var(--primary-background);
    cursor: move;
    user-select: none
}

    .control-wrapper.selected {
        border: 2px solid var(--bps-accent);
        box-shadow: 0 0 5px rgba(0,123,255,.3)
    }

.control-header {
    padding: 4px;
    background: var(--bloodredbackground);
    border-bottom: 1px solid var(--border-standard);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .7rem
}

.control-content {
    padding: 8px;
    color: var(--text-color);
    font-size: .9rem;
    text-align: center
}

.control-preview {
    min-width: 60px;
    max-width: 10px
}

    .control-preview .btn, .control-preview .form-control, .control-preview .form-select {
        pointer-events: none;
        transform: scale(.8);
        transform-origin: left center
    }

.preview-container {
    background-color: var(--Purpleburstbackgrounddark);
    color: var(--gradient-primary)
}

.nav-sm .nav-link {
    padding: .25rem .5rem;
    font-size: .875rem
}

.bps-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: var(--beeplannertoolbars);
    border-bottom: 1px solid var(--bps-border)
}

    .bps-toolbar button, .bps-toolbar input, .bps-toolbar select {
        font-size: 14px
    }

.bps-list {
 
    overflow-y: auto;
    background: #fff;
    background-color: #000;
    color: var(--text-light)
}

.bps-row:hover {
    background: var(--Purpleburstbackgroundlight);
    border-color: rgba(13,110,253,.2);
    box-shadow: 0 2px 8px rgba(0,0,0,.05)
}

.bps-info, .bps-info-label {
    align-items: center;
    white-space: nowrap
}

.bps-info {
    display: flex;
    gap: .5rem;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto
}

.bps-info-label {
    display: inline-flex;
    min-width: 260px
}

.bps-info-desc {
    margin-left: 1.5rem;
    flex: 1 1 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.col-status {
    align-items: center;
    gap: 8px
}

.col-description {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1 1 0%;
    min-width: 0;
    margin-right: 25px;
    color: #e8c5e8;
    font-size: var(--text-size-smaller)
}

.bps-info span, .col-description {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.bps-info .number {
    color: var(--text-light);
    font-weight: 500;
    flex-shrink: 0
}

.bps-info .name {
    font-weight: 600;
    color: var(--text-color);
    flex-shrink: 0
}

.bps-info .desc {
    color: var(--text-color);
    font-size: 13px;
    opacity: .8
}

.bps-root .btn {
    border-radius: var(--bps-radius);
    font-size: 14px;
    transition: all .15s ease
}

    .bps-list .btn:hover, .bps-root .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0,0,0,.08)
    }

.bps-icon-btn, .form-control {
    border: 1px solid var(--bps-border)
}

.bps-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    line-height: 1;
    color: var(--text-light)
}

    .bps-icon-btn:hover {
        background: var(--bps-hover);
        color: var(--text-color);
        border-color: rgba(13,110,253,.2)
    }

.form-control {
    border-radius: var(--bps-radius);
    padding: 6px 10px;
    font-size: 14px;
    transition: border-color .15s ease;
    background-color: var(--Purpleburstbackgrounddark);
    color: var(--gradient-primary);
    background-color: #343043;
    border-color: #5b5571;
    color: #fff
}

    .form-control:focus {
        border-color: var(--Purpleburstbackgroundlight);
        box-shadow: 0 0 0 .15rem rgba(13,110,253,.12);
        outline: 0;
        background-color: #000;
        background-color: var(--primary-hover);
        border-color: #5b5571;
        color: #fff
    }

.form-control-sm {
    border-radius: var(--bps-radius);
    border: 1px solid gray;
    padding: 6px 10px;
    font-size: 14px;
    transition: border-color .15s ease;
    background-color: var(--Purpleburstbackgrounddark);
    color: var(--gradient-primary)
}

    .form-control-sm:focus {
        border-color: var(--Purpleburstbackgroundlight);
        box-shadow: 0 0 0 .15rem rgba(13,110,253,.12);
        outline: 0;
        background-color: #000;
        color: #fff
    }

.form-control.is-valid, .form-control.valid {
    background-color: #000 !important;
    color: #fff !important
}

    .form-control.is-valid::placeholder, .form-control.valid::placeholder {
        color: #fff !important;
        opacity: .6
    }

.bps-root input[type=date], .bps-root select {
    border-radius: var(--bps-radius);
    border: 1px solid var(--bps-border);
    padding: 6px 10px;
    font-size: 14px;
    transition: border-color .15s ease
}

    .bps-root input[type=date]:focus, .bps-root select:focus {
        border-color: var(--bps-accent);
        box-shadow: 0 0 0 .15rem rgba(13,110,253,.1);
        outline: 0
    }

.bps-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-top: 1px solid var(--bps-border);
    background: var(--Purpleburstbackgrounddark)
}

.bps-crumb {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    border: 0;
    padding: 2px 6px;
    border-radius: 6px
}

    .bps-crumb:hover {
        background: var(--bps-hover)
    }

.bps-row, .modal-content {
    border: 1px solid var(--bps-border);
    border-radius: var(--bps-radius)
}

.modal-content {
    box-shadow: 0 12px 32px rgba(0,0,0,.2)
}

.bps-row {
    display: flex;
    align-items: center;
    gap: .2rem;
    justify-content: space-between;
    padding: 2px 10px;
    margin-bottom: 3px;
    color: var(--text-color);
    transition: all .15s ease
}

    .bps-row .bps-col {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis
    }

    .bps-row .number {
        width: 10%;
        min-width: 70px;
        text-align: left
    }

    .bps-row .name {
        width: 25%
    }

    .bps-row .desc {
        width: 40%
    }

    .bps-row .note {
        width: 15%;
        min-width: 120px;
        font-size: .85rem
    }

    .bps-row .bps-icon-btn {
        width: 30px;
        height: 30px;
        flex-shrink: 0
    }

.bps-dark {
    --bps-bg: #101218;
    --bps-surface: #151924;
    --bps-surface-2: #1a2030;
    --bps-muted: #a8b1bd;
    --bps-border: #2b3345;
    --bps-accent: #7aa2ff
}

.bps-root {
    display: flex;
    flex-direction: column;
    transition: all .3s ease;
    background: var(--Purpleburstbackgrounddark);
    box-shadow: var(--bps-shadow);
    font-family: var(--bps-font);
    font-size: 14px;
    color: var(--text-color);
    overflow: hidden
}

.bps-list .form-section, .bps-list select.form-select, .bps-root {
    border-radius: var(--bps-radius);
    border: 1px solid var(--bps-border)
}

.bps-list .form-section {
    background: var(--bps-surface);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--bps-shadow)
}

    .bps-list .form-section h5, .bps-list .form-section h6 {
        margin-bottom: .75rem;
        font-weight: 600;
        color: var(--text-light)
    }

.bps-list .form-label {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-light);
    opacity: .9
}

.bps-list select.form-select {
    width: 100%;
    background: var(--bps-bg);
    color: var(--text-light);
    font-size: var(--control-font-size);
    padding: var(--control-pad-y) var(--control-pad-x);
    transition: border-color .15s ease,box-shadow .15s ease;
    height: var(--control-height);
    line-height: 1.25;
    border-color: #5b5571
}

    .bps-list select.form-select:focus {
        border-color: var(--bps-accent);
        box-shadow: 0 0 0 .15rem rgba(13,110,253,.12);
        outline: 0
    }

.bps-list input.form-control[type=date], .bps-list input.form-control[type=time] {
    padding-right: .5rem
}

.bps-list .btn {
    border-radius: var(--bps-radius);
    font-size: 1rem;
    color: #d3d3d3;
    text-transform: uppercase;
    font-weight: 700;
    background: linear-gradient(to bottom,#222 0,#000 100%);
    box-shadow: 0 4px 0 0#111,inset 0 1px 1px rgba(255,255,255,.1);
    transition: transform .15s ease,box-shadow .15s ease,filter .15s ease;
    border: 0;
    cursor: pointer;
    position: relative;
    outline: 0
}

    .bps-list .btn:hover {
        filter: brightness(1.2)
    }

    .bps-list .btn:active {
        transform: translateY(2px);
        box-shadow: 0 2px 0 0#111,inset 0 1px 1px rgba(255,255,255,.1);
        background: linear-gradient(to bottom,#000 0,#111 100%)
    }

.bps-list .mb-2, .bps-list .mb-3 {
    margin-bottom: 10px
}

.bps-list table.table {
    background: var(--bps-surface);
    border: 1px solid var(--bps-border);
    border-radius: var(--bps-radius);
    overflow: hidden
}

    .bps-list table.table td, .bps-list table.table th {
        border-color: var(--bps-border);
        font-size: 13px;
        padding: 6px 10px;
        color: var(--text-color)
    }

    .bps-list table.table thead th {
        background: var(--bps-surface-2);
        font-weight: 600
    }

.bps-list td:nth-child(1), .bps-list td:nth-child(2), .bps-list td:nth-child(3), .bps-list th:nth-child(1), .bps-list th:nth-child(2), .bps-list th:nth-child(3) {
    width: 10%
}

.bps-list td:nth-child(4), .bps-list th:nth-child(4) {
    width: 25%
}

.bps-list td:nth-child(5), .bps-list th:nth-child(5) {
    width: 35%
}

.bps-list td:nth-child(6), .bps-list th:nth-child(6) {
    width: 10%;
    text-align: right
}

.bps-list .alert {
    border-radius: var(--bps-radius);
    padding: 8px 12px;
    font-size: 13px
}

.bps-list .alert-info {
    background: rgba(13,110,253,.08);
    border: 1px solid rgba(13,110,253,.15);
    color: var(--text-color)
}

.bps-page-title {
    color: #000;
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    font-size: clamp(1.05rem,1.1vw + .95rem,1.35rem)
}

.d-flex > .bps-page-title {
    min-width: 0
}

.bps-page-title::before {
    content: "✎";
    opacity: .65;
    margin-right: .25rem
}

.bps-page-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg,var(--bps-accent),transparent);
    border-radius: 1px;
    opacity: .6
}

.bps-radio-list {
    display: flex;
    flex-direction: column;
    gap: 6px
}

    .bps-radio-list.inline {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px
    }

.bps-radio {
    display: flex;
    align-items: center;
    gap: 8px
}

.bps-radio-input {
    width: 18px;
    height: 18px;
    accent-color: var(--bps-accent)
}

.bps-radio-label {
    border: 0;
    background: 0 0;
    padding: 0;
    color: var(--text-color);
    font-weight: 400;
    box-shadow: none
}

.bps-radio:hover .bps-radio-label {
    background: 0 0
}

.bps-radio-input:focus-visible + .bps-radio-label {
    outline: 2px dotted var(--bps-accent);
    outline-offset: 2px
}

.bps-radio-input:checked + .bps-radio-label {
    color: var(--bps-accent)
}

.form-check-input {
    border-color: var(--bps-border)
}

    .form-check-input:checked {
        background-color: var(--bps-accent);
        border-color: var(--bps-accent)
    }

.tiptap-wrapper {
    min-width: 200px;
    border: 1px solid rgba(0,0,0,.6);
    border-radius: 4px
}

.tiptap-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
    background: var(--primary-color);
    border: 1px solid rgba(204,204,204,.6);
    border-radius: 4px;
    padding: 6px;
    backdrop-filter: blur(4px)
}

    .tiptap-toolbar button {
        font-size: 12px;
        padding: 4px 8px;
        border: 0;
        border-radius: 3px;
        cursor: pointer;
        background: rgba(10,10,20,.97);
        color: #fff
    }

        .tiptap-toolbar button:hover {
            filter: brightness(1.08)
        }

.tiptap-editor {
    width: 100%;
    background: var(--AbsoluteBackroundColorBlackForDarkWhiteForlight);
    color: var(--AbsoluteForegroundColorBlackForDarkWhiteForlight);
    border: 1px solid var(--bps-border);
    border-radius: var(--bps-radius);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: auto;
    height: 100%;
    outline: var (--Purpleburstbackgroundlight)
}

    .tiptap-editor .ProseMirror {
        flex: 1 1 100%;
        min-height: 0;
        padding: 12px;
        outline: 0;
        white-space: pre-wrap;
        word-break: break-word;
        overflow-y: auto
    }

.btn-sm {
    background: rgba(0,0,0,.06);
    border-color: var(--bps-border);
    color: var(--text-color)
}

    .btn-sm:hover {
        background: rgba(0,0,0,.1)
    }

.modal-backdrop.show {
    background: rgba(10,10,20,.65);
    opacity: 1
}

.bps-table-scroll {
    flex: 1 1 auto;
    overflow: auto
}

.bps-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(var(--vh, 1vh)*70);
    background: #1c1a26 !important;
    color: var(--text-color, #ffffff);
    border: 1px solid #5b5571;
    box-shadow: var(--bps-shadow, 0 15px 50px rgba(0,0,0,0.8))
}

.bps-modal .modal-footer, .bps-modal .modal-header {
    background: linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,0))
}

.bps-modal .modal-header {
    border-bottom: 1px solid #5b5571
}

.bps-modal .modal-footer {
    border-top: 1px solid #5b5571
}

.bps-modal .modal-body {
    flex: 1 1 auto;
    overflow: auto;
    min-height: calc(var(--vh, 1vh)*40);
    background: #1c1a26
}

.bps-modal .modal-title {
    color: var(--text-color, #ffffff);
    font-weight: 700;
    letter-spacing: .2px
}

.bps-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .7
}

    .bps-modal .btn-close:hover {
        opacity: 1
    }

.bps-modal .table {
    background: 0 0;
    color: var(--text-color, #ffffff)
}

    .bps-modal .table thead th {
        background: rgba(255,255,255,.05);
        color: var(--text-color, #ffffff);
        border-color: #5b5571
    }

    .bps-modal .table, .bps-modal .table td, .bps-modal .table th {
        border-color: #5b5571
    }

.bps-modal .form-control, .bps-modal .form-select {
    background: #2c2c2c !important;
    color: #fff !important;
    border: 1px solid #5b5571 !important
}

    .bps-modal .form-control:focus, .bps-modal .form-select:focus {
        border-color: #7a7294 !important;
        box-shadow: 0 0 0 .15rem rgba(13,110,253,.12)
    }

.bps-modal .btn-secondary {
    background: rgba(255,255,255,.1);
    border-color: #5b5571;
    color: var(--text-color, #ffffff)
}

    .bps-modal .btn-secondary:hover {
        background: rgba(255,255,255,.15)
    }

.form-check-label, .form-label {
    color: var(--text-light)
}

.form-check-label, .form-label, label {
    display: flex !important;
    align-items: center !important font-size: 0.65rem;
    color: lightgrey;
    text-transform: uppercase;
    font-weight: bold;
}

.form-select, input, select, textarea {
    background-color: var(--primary-background);
    font-size: .7rem
}

h1, h2, h3, h4, h5, h6, input {
    color: #fff
}

.form-select, label, select, textarea {
    color: var(--text-color)
}

input, select, textarea {
    border-color: var(--border-standard)
}

.form-select {
    border-color: #5b5571
}

input::placeholder, textarea::placeholder {
    color: #888
}

.form-text {
    color: var(--text-gradient-strong)
}

.text {
    color: var(--text-light)
}

.text-muted {
    color: var(--text-lightgrey)
}

.fw, .text-truncate {
    color: var(--text-light)
}

@media (max-width:992px) {
    .interface-designer .col-md-2 {
        max-width: 180px
    }

    .preferences-container .settings-grid {
        grid-template-columns: 1fr
    }

    .preferences-modal-dialog {
        width: 95%
    }
}

@media (max-width:1100px) {
    .dynamic-interface .it-body {
        grid-template-columns: 1fr
    }
}

@media (max-width:768px) {
    .dynamic-grid .mud-toolbar-content {
        flex-direction: column;
        align-items: stretch
    }

    .datagrid-singleselect__select-btn, .dynamic-grid .mud-toolbar .mud-text-field {
        width: 100%
    }
}

@media (prefers-color-scheme:dark) {
    :root {
        --bps-bg: #121417;
        --bps-surface:;
        --bps-border: rgba(255,255,255,.08);
        --bps-hover: rgba(13,110,253,.15);
        --bps-shadow: 0 6px 18px rgba(0,0,0,.8)
    }
}

@media (max-width:768px) {
    .bps-toolbar {
        flex-direction: column;
    
    }

    .bps-info, .bps-row {
        flex-wrap: wrap
    }
}

@media (max-width:900px) {
    .bps-row .number {
        width: 15%
    }

    .bps-row .name {
        width: 35%
    }

    .bps-row .desc {
        width: 100%;
        margin-top: 4px
    }

    .bps-row .note {
        width: 50%
    }
}

.bps-subdata-form-cols {
  
    column-count: 1;
    column-gap: 1.5rem
}

    .bps-subdata-form-cols .bps-form-field {

        break-inside: avoid;
        -webkit-column-break-inside: avoid;
        -moz-column-break-inside: avoid

    }



.badge, .btn-primary {
    background-color: #343043;
    border-color: #5b5571;
    color: #fff
}

    .badge:focus, .badge:hover, .btn-primary:focus, .btn-primary:hover {
        background-color: var(--primary-hover);
        border-color: #5b5571;
        color: #fff
    }

.btn-outline-danger, .btn-secondary, sortingselect {
    border-color: #5b5571
}

    .btn-outline-danger:hover {
        background: var(--bloodredbackground)
    }

.btn-secondary {
    background-color: #343043;
    color: #fff
}

    .btn-secondary:focus, .btn-secondary:hover {
        background-color: var(--primary-hover);
        border-color: #5b5571;
        color: #fff
    }

input[type=date].form-control {
    background: var(--darkpurplegreytextbackroundforinputs);
    color: #f5f5f5;
    border: 1px solid #444;
    color-scheme: dark
}

    input[type=date].form-control::-webkit-calendar-picker-indicator {
        filter: invert(1)
    }

    input[type=date].form-control::-webkit-datetime-edit, input[type=date].form-control::-webkit-datetime-edit-day-field, input[type=date].form-control::-webkit-datetime-edit-fields-wrapper, input[type=date].form-control::-webkit-datetime-edit-month-field, input[type=date].form-control::-webkit-datetime-edit-text, input[type=date].form-control::-webkit-datetime-edit-year-field {
        color: #f5f5f5
    }

.it-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-width: 1px;
    border-style: solid;
    border-radius: .5rem;
    max-width: 100%;
    box-sizing: border-box;
    gap: .75rem;
    color: var(--text-light)
}

.it-table td, .it-table th, .it-tools {
    border-bottom-width: 1px;
    border-bottom-style: solid;
    color: var(--text-light)
}

.it-tools {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: .5rem;
    margin-bottom: .75rem;
    background: inherit
}

.it-tools-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem 1rem;
    color: var(--text-light)
}

.it-tools-left, .it-tools-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem
}

.it-label {
    color: #fff;
    font-weight: 600;
    margin-right: .5rem
}

.it-btn-group .btn {
    border-radius: 999px
}

.it-body {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem
}

.it-map, .it-preview {
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    color: var(--text-light)
}

.it-preview {
    flex: 1 1 55%
}

.it-map {
    flex: 1 1 45%
}

.it-check, .it-preview-head {
    align-items: center;
    color: var(--text-light)
}

.it-preview-head {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    font-size: .875rem
}

.it-check {
    display: inline-flex;
    gap: .35rem;
    cursor: pointer
}

.it-error, .it-note, .it-status {
    font-size: .8125rem;
    color: var(--text-light)
}

.it-preview-scroll {
    border-width: 1px;
    border-style: solid;
    border-radius: .25rem;
    overflow: auto;
    max-height: 24rem;
    color: var(--text-light)
}

.it-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: .875rem;
    color: var(--text-light)
}

    .it-table td, .it-table th {
        padding: .35rem .5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .it-table thead th {
        font-weight: 600
    }

.it-select-col {
    width: 2.25rem;
    text-align: center;
    color: var(--text-light)
}

.it-row-selected {
    outline-width: 2px;
    outline-style: solid;
    outline-offset: -2px
}

.it-placeholder {
    padding: 1rem;
    font-size: .875rem;
    font-style: italic
}

.it-mapper {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: .75rem;
    border-width: 1px;
    border-style: solid;
    border-radius: .25rem;
    color: var(--text-light)
}

.it-mapper-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    font-size: .875rem
}

.it-mapper-body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    max-height: 20rem;
    overflow: auto;
    padding-top: .25rem
}

.it-map-row {
    display: flex;
    align-items: flex-start;
    gap: .5rem
}

.it-source {
    flex: 0 0 30%;
    font-size: .875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.it-manual-row select, .it-map-row > .d-flex {
    flex: 1 1 auto
}

.it-manual {
    margin-top: .75rem;
    padding-top: .75rem;
    border-top-width: 1px;
    border-top-style: solid;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .875rem
}

.it-manual-title {
    font-weight: 600
}

.it-manual-row {
    display: flex;
    align-items: center;
    gap: .5rem
}

    .it-manual-row label {
        flex: 0 0 6rem
    }

.it-manual-actions {
    gap: .75rem
}

.it-manual-actions, .it-mapper-foot, .it-upsert {
    display: flex;
    flex-wrap: wrap;
    align-items: center
}

.it-mapper-foot {
    justify-content: space-between;
    gap: .75rem;
    margin-top: .5rem;
    font-size: .8125rem
}

.it-upsert {
    gap: .5rem
}

.it-confirm-bottom {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end
}

.it-importselected-btn {
    min-width: 10rem
}

.it-mapper .form-control, .it-mapper .form-select, .it-tools .it-select {
    max-width: 100%
}

@media (max-width:992px) {
    .it-body {
        flex-direction: column
    }

    .it-map, .it-preview {
        min-width: 100%
    }
}

@media (max-width:576px) {
    .it-tools-row {
        flex-direction: column;
        align-items: flex-start
    }

    .it-tools-right {
        width: 100%
    }

    .it-preview-head {
        align-items: flex-start
    }

    .it-manual-row {
        flex-direction: column;
        align-items: stretch
    }

        .it-manual-row label {
            flex: 0 0 auto
        }

    .it {
        color: var(--text-light)
    }
}

.bps-geo-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 220px;
    overflow-y: auto;
    background-color: #000;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,.5)
}

.bps-geo-item {
    padding: .5rem .75rem;
    cursor: pointer;
    color: #fff;
    background-color: #000
}

    .bps-geo-item:hover {
        background-color: #444
    }

.bps-geo-item-active {
    background-color: #8b0000
}

.modal-title {
    color: var(--text-gradient-header)
}

.button, .title {
    color: var(--text-gradient-strong)
}

.file-browser-container {
    background: var(--Purpleburstbackgrounddark) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 8px
}

    .file-browser-container .mud-toolbar {
        background: rgba(0,0,0,.2) !important;
        border-bottom: 1px solid var(--border-light) !important
    }

    .file-browser-container, .file-browser-container .mud-treeview-item-content {
        color: var(--text-color) !important
    }

        .file-browser-container .mud-treeview-item-content:hover {
            background-color: var(--primary-hover) !important
        }

        .file-browser-container .mud-table-head {
            background-color: rgba(255,255,255,.05) !important
        }

        .file-browser-container .mud-th {
            color: var(--secondary-color) !important
        }

        .file-browser-container .mud-table-cell {
            color: var(--text-color) !important;
            border-bottom: 1px solid var(--border-light) !important
        }

        .file-browser-container .mud-breadcrumb-item {
            color: var(--text-light) !important
        }

        .file-browser-container div::-webkit-scrollbar-thumb {
            border-radius: 4px
        }

table.table, table.table tbody, table.table td, table.table th, table.table thead, table.table tr {
    background-color: #000 !important;
    color: #e0e0e0 !important;
    border-color: #222 !important
}

.bps-scroll-hide::-webkit-scrollbar, .task-bar-container::-webkit-scrollbar {
    display: none
}

.bps-scroll-hide {
    -ms-overflow-style: none;
    scrollbar-width: none
}

.bps-hidden-icon {
    display: none
}

.task-bar-container {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    overflow-y: auto;
    height: 100%;
    max-height: 60px;
    padding: 2px 0;
    scrollbar-width: none;
    -ms-overflow-style: none
}

.task-item {
    background: rgba(255,255,255,.1);
    border-radius: 4px;
    padding: 2px 8px;
    margin: 2px 4px;
    cursor: pointer;
    transition: all .2s;
    border-left: 3px solid transparent;
    display: inline-flex;
    align-items: center;
    width: 140px;
    height: 28px
}

    .task-item:hover {
        background: rgba(255,255,255,.2)
    }

    .task-item.active {
        background: rgba(255,255,255,.25);
        border-left: 3px solid #a855f7;
        box-shadow: 1px 1px 4px rgba(0,0,0,.1)
    }

.task-text {
    color: #fff;
    font-size: .8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 6px;
    flex-grow: 1
}

.task-close {
    border-radius: 50%;
    padding: 1px 3px
}

    .task-close:hover {
        background: rgba(255,0,0,.5);
        color: #fff
    }

.cpu-monitor, .task-close {
    color: rgba(255,255,255,.5);
    font-size: 11px
}

.bps-btn-next-pop {
    font-size: 1rem !important;
    padding: .6rem 2.5rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 5px !important;
    animation: next-button-pulse 1s infinite;
    transition: all .2s ease-in-out;
    color: #fff;
    border-color: #5b5571;
    background-color: #343043
}

    .bps-btn-next-pop:hover {
        transform: scale(1.07) !important;
        filter: brightness(1.05);
        color: #fff;
        background-color: #9993af
    }

.bps-active-toggle {
    background-color: rgba(0,0,0,.4) !important;
    border-color: #4a4458 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,0.4)'/%3e%3c/svg%3e") !important
}

    .bps-active-toggle:checked {
        background-color: #5b4a8c !important;
        border-color: #6d5da1 !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important
    }

    .bps-active-toggle:focus {
        box-shadow: 0 0 0 .2rem rgba(91,74,140,.2) !important;
        border-color: #5b5571 !important
    }

.bps-list-header {
    background: rgba(255,255,255,.03);
    position: sticky;
    top: 0;
    z-index: 5
}

.col-name {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important
}

.col-status {
    min-width: 50px !important;
    max-width: 50px !important;
    text-align: center
}

.col-actions {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important
}

.bps-radio-label {
    color: #645d80;
    transition: color .2s ease;
    cursor: pointer
}

.bps-radio-input:checked + .bps-radio-label {
    color: #fff !important;
    font-weight: 700
}

.bps-radio-input:checked {
    background-color: #a855f7;
    border-color: #fff
}

.bps-comment-shiny {
    color: #d8b4fe !important;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(168,85,247,.8),0 0 5px rgba(255,255,255,.5);
    filter: drop-shadow(0 0 2px rgba(168,85,247,.5))
}

.col-number {
    min-width: 80px !important;
    max-width: 80px !important;
    width: 60px;
    flex-shrink: 0
}

.col-name {
    flex-shrink: 0;
    margin-right: 10px
}

.col-status {
    width: 115px !important;
    display: flex;
    justify-content: center
}

.col-actions, .col-status {
    flex-shrink: 0
}

@media (max-width:768px) {
    .bps-list.bps-grid-mode .sticky-top.ps-2.pe-3{
        display: none !important
    }

    .col-name {
        width: 120px
    }

    .col-actions {
        width: 220px
    }

    .bps-nav, .bps-row {
        display: flex;
        flex-wrap: wrap;
        height: auto !important
    }

    .bps-row {
        align-items: center;
        min-height: 50px;
        gap: 8px
    }

        .bps-row > div {
            flex-wrap: wrap !important;
            height: auto !important
        }

        .bps-row .d-flex.align-items-center.gap-3 {
            flex-wrap: wrap;
            justify-content: flex-start;
            width: 100%;
            margin-top: 5px
        }

    .bps-nav {
        gap: 10px;
        padding: 10px;
        background: #1c1a26;
        border-top: 1px solid #5b5571
    }

        .bps-nav ul {
            flex-wrap: wrap !important;
            flex: 1 1 100%;
            margin-bottom: 5px !important
        }

    .bps-description-cell {
        height: 40px;
        overflow: auto;
        white-space: normal !important;
        text-overflow: clip !important;
        scrollbar-width: thin;
        border-radius: 8px;
        padding: 4px 10px 4px 15px;
        border: 1px solid rgba(255,192,203,.3)
    }

    .bps-list.bps-grid-mode .bps-description-cell {
        background: rgba(255,255,255,.05) !important;
        border: 1px solid rgba(255,255,255,.1)
    }

    .bps-row {
        background: rgba(35,33,43,.55) !important;
        backdrop-filter: blur(4px)
    }

    .bps-toolbar, .bps-toolbar .form-check.form-switch {
        display: flex !important;
        align-items: center !important 
        font-size: 0.65rem;
        color: lightgrey;
        text-transform: uppercase;
        font-weight: bold;
    }

    .bps-toolbar {
        flex-direction: row !important;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        padding: 10px
    }

        .bps-toolbar .input-group {
            flex: 1 1 auto;
            max-width: 400px
        }

    
        .bps-toolbar .form-check-input {
            margin-top: 0 !important;
            cursor: pointer
        }

    @ media (max-width:576px) {
        .bps-toolbar {
            flex-wrap: wrap
        }

            .bps-toolbar .form-check.form-switch {
                flex: 0 0 auto
            }
    }

    .bps-toggle-group {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        flex: 1 1 auto
    }

        .bps-toggle-group .form-check.form-switch {
            display: flex !important;
            align-items: center !important font-size: 0.65rem;
            color: lightgrey;
            text-transform: uppercase;
            font-weight: bold;
        }

        .bps-toggle-group .form-check-input {
            margin: 0 !important;
            cursor: pointer
        }

    @media (max-width:576px) {
        .bps-toggle-group {
            justify-content: space-between;
            width: 100%
        }
    }

    * {
        scrollbar-color: var(--AbsoluteComponentForegroundColor) var(--AbsoluteComponentForegroundColor) !important;
        scrollbar-width: thin !important
    }

    ::-webkit-scrollbar {
        width: 12px !important;
        height: 12px !important;
        display: block !important
    }

    ::-webkit-scrollbar-track {
        background: var(--AbsoluteBackroundColorBlackForDarkWhiteForlight) !important
    }

    ::-webkit-scrollbar-thumb {
        background-color: var(--AbsoluteBackroundColorBlackForDarkWhiteForlight) !important;
        border-radius: 10px !important;
        border: 3px solid #1b1b1b !important
    }

        ::-webkit-scrollbar-thumb:hover {
            background-color: #888 !important
        }

    body, html {
        scrollbar-color: var(--AbsoluteComponentForegroundColor) var(--AbsoluteComponentForegroundColor) !important
    }

    .bps-user-display {
        padding: 4px 12px;
        margin-bottom: 8px;
        border: 1px solid rgba(91,85,113,.3);
        border-radius: 6px;
        background: rgba(28,26,38,.5);
        color: #d1d1d1;
        font-size: .75rem;
        display: flex;
        gap: 6px;
        align-items: center;
        width: fit-content
    }

        .bps-user-display span {
            opacity: .7
        }

        .bps-user-display strong {
            color: pink;
            font-weight: 600
        }

    .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%) !important
    }

    .bps-wait-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(11,18,32,.7);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        backdrop-filter: blur(2px)
    }

    .bps-wait-card {
        background: var(--Purpleburstbackgrounddark, #1c1a26);
        padding: 20px 40px;
        border: 1px solid #5b5571;
        border-radius: 12px;
        color: #fff;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0,0,0,.5)
    }

    .bps-map-crosshair {
        position: relative
    }

        .bps-map-crosshair::after, .bps-map-crosshair::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            background-color: rgba(0,0,0,.6);
            z-index: 1000;
            transform: translate(-50%,-50%);
            pointer-events: none;
            box-shadow: 0 0 2px rgba(255,255,255,.8)
        }

        .bps-map-crosshair::before {
            width: 20px;
            height: 2px
        }

        .bps-map-crosshair::after {
            width: 2px;
            height: 20px
        }

    .bps-map-container img {
        max-width: none !important
    }

    .bps-map-note {
        padding: 0 !important;
        margin: 0 !important;
        width: auto !important;
        height: 0 !important;
        overflow: visible !important
    }

        .bps-map-note::after, .bps-map-note::before {
            display: none !important;
            border: 0 !important
        }

    .bps-hidden-icon, .bps-map-container img, .bps-map-note {
        background: 0 0 !important;
        border: 0 !important;
        box-shadow: none !important
    }

    .bps-note-inner {
        position: absolute;
        top: 0;
        left: 0;
        transform: translate(-50%,-50%) scale(var(--map-note-scale, 1));
        white-space: nowrap;
        text-align: center;
        font-size: 16px;
        font-weight: 800;
        color: #000;
        text-shadow: 2px 0#fff,-2px 0#fff,0 2px #fff,0-2px #fff,1px 1px #fff,-1px -1px #fff,1px -1px #fff,-1px 1px #fff;
        transition: transform .1s linear,opacity .2s;
        opacity: var(--map-note-opacity, 1);
        pointer-events: auto;
        cursor: pointer
    }

    .bps-note-icon-mode {
        color: transparent !important;
        text-shadow: none !important
    }

        .bps-note-icon-mode::after {
            content: "📝";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%,-50%);
            font-size: 24px;
            line-height: 1;
            opacity: 1;
            color: #000;
            text-shadow: 0 2px 5px rgba(0,0,0,.5)
        }

    .bps-list.bps-grid-mode {
        display: grid !important;
        grid-template-columns: repeat(auto-fill,minmax(300px,1fr));
     
       
    }

        .bps-list.bps-grid-mode .bps-row {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
   

        }

            .bps-list.bps-grid-mode .bps-row .row {
                flex-direction: column !important;
                width: calc(100% - var(--current-menu-width)) !important;
                margin: 0 !important
            }

            .bps-list.bps-grid-mode .bps-row .col-2, .bps-list.bps-grid-mode .bps-row .col-3, .bps-list.bps-grid-mode .bps-row .col-7 {
                width: 100% !important;
              
                white-space: normal !important;
                color: #fff
            }

            .bps-list.bps-grid-mode .bps-row .d-flex.align-items-center.justify-content-between {
                flex-direction: column !important;
                align-items: flex-start !important;
             
                width: 100%
            }

        .bps-list.bps-grid-mode .bps-description-cell {
            width: 100% !important;
            height: auto !important;
            min-height: 80px;
            max-height: 120px;
            display: block !important;
            background: rgba(0,0,0,.2);
            border-radius: 4px;
            margin: px 0 !important;
            white-space: normal !important;
            word-break: break-word;
            overflow-y: auto;
            overflow-x: hidden
        }

    @media (min-width:992px) {
        .bps-root.bps-mode-map .bps-main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-template-areas: "leftpanel rightpanel";
            height: 100%;
            gap: 1rem
        }

        .bps-root.bps-mode-map.bps-map-closed .bps-main-content {
            grid-template-columns: 1fr;
            grid-template-areas: "rightpanel"
        }

        .bps-root.bps-mode-map .bps-toolbar {
            grid-area: leftpanel;
            display: flex !important;
            flex-direction: column !important;
            height: 100%;
            overflow-y: auto;
            padding-right: 10px;
            border-right: 1px solid #5b5571
        }

        .bps-root.bps-mode-map .bps-list {
            grid-area: rightpanel;
            height: 100%;
            overflow-y: auto
        }

        .bps-root.bps-mode-map .bps-nav {
            grid-column: span 2;
            margin-top: 10px
        }
    }

    .bps-map-wrapper {
        display: flex;
        flex-direction: column;
        min-height: 400px
    }

    .bps-map-container {
        flex-grow: 1;
        min-height: 300px
    }

    .bps-root.bps-mode-map > .bps-toolbar > button {
        flex-shrink: 0 !important;
        margin-top: 5px;
        align-self: flex-start
    }

    .bps-root.bps-mode-map > .bps-list {
        grid-area: rightpanel;
        overflow-y: auto;
        border-left: 1px solid #dee2e6;
        padding-left: 1rem;
        height: 100%
    }

    .bps-root.bps-mode-map.bps-map-closed > .bps-list {
        border-left: none;
        padding-left: 0
    }

    .bps-root.bps-mode-map > .bps-nav {
        grid-area: navbar;
        border-top: 1px solid #dee2e6;
        padding-top: .5rem;
        width: calc(100% - 8px)
    }
}

.bps-description-cell {
    height: 30px;
    overflow: auto;
    white-space: normal !important;
    scrollbar-width: thin;
    scrollbar-color: pink transparent;
    text-overflow: clip !important;
    background: linear-gradient(#1a181f,#1a181f) padding-box,linear-gradient(to bottom right,#fff,#1e3a8a) border-box !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 15px !important
}

    .bps-description-cell::-webkit-scrollbar {
        width: 4px;
        height: 4px
    }

    .bps-description-cell::-webkit-scrollbar-thumb {
        background: pink;
        border-radius: 10px
    }

.bps-list:not(.bps-grid-mode) .bps-description-cell {
    white-space: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    line-height: 40px
}

.bps-row .col-2.text-truncate.fw-bold, .bps-row .col-3.text-truncate.fw-bold {
    font-size: .75rem !important;
    letter-spacing: -.02em
}

.bps-list .bps-row {
    border: 1px solid #4a4758 !important;
    transition: background .2s,border-color .2s;
    background: #2a2833 !important
}

    .bps-list .bps-row:hover {
        background: #353242 !important;
        border-color: pink !important
    }

.bps-calendar-grid {
    background: #1c1a26;
    border: 1px solid #5b5571;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

.bps-list.bps-grid-mode .bps-calendar-grid {
    grid-column: 1/-1;
    display: flex !important
}

.bps-cal-body, .bps-cal-header {
    display: grid;
    grid-template-columns: repeat(7,1fr)
}

.bps-cal-header {
    text-align: center;
    color: pink;
    font-weight: 700;
    font-size: .8rem;
    padding: 8px 0;
    background: #191720;
    border-bottom: 1px solid #5b5571
}

.bps-cal-body {
    gap: 1px;
    background: #3a3a3a
}

.bps-cal-day {
    min-height: 120px;
    background: #1c1a26;
    padding: 4px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden
}

    .bps-cal-day.has-data {
        cursor: pointer;
        border-color: pink
    }

        .bps-cal-day.has-data:hover {
            background: #353242
        }

.bps-cal-diff-month {
    background: #16141d;
    opacity: .5
}

.day-num {
    font-size: .7rem;
    color: #fff;
    font-weight: 700;
    margin-bottom: 4px
}

.day-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: none
}

    .day-stack::-webkit-scrollbar {
        display: none
    }

.day-item-container {
    transition: background .2s
}

    .day-item-container:hover {
        background: rgba(255,255,255,.05) !important
    }

.bps-marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50%0;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0-15px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,.3)
}

    .bps-marker-pin::after {
        content: "";
        width: 14px;
        height: 14px;
        margin: 8px 0 0 8px;
        background: rgba(255,255,255,.5);
        position: absolute;
        border-radius: 50%
    }

.bps-marker-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffc107;
    color: #000;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #000;
    box-shadow: 0 2px 4px rgba(0,0,0,.4);
    z-index: 10;
    pointer-events: none
}

.bps-app-container {
    display: flex;
    height: 100vh;
    width: calc(100vw- 68px);
    overflow: hidden
}

.bps-side-icon-bar {
    width: 60px;
    background: var(--beeplannertoolbars);
   
    border-right: 0 solid #5b5571;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
   
    flex-shrink: 0;
    z-index: 150
}

.bps-icon-btn {
    background: 0 0;
    border: 0;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color .2s,transform .1s
}

    .bps-icon-btn:hover {
        color: pink;
        transform: scale(1.1)
    }

.bps-main-content {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%
}

.bps-slide-menu {
    position: absolute;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: rgba(10,10,20,.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255,255,255,.1);
    transition: transform .3s ease;
    z-index: 1000
}

    .bps-slide-menu.open {
        transform: translateX(300px)
    }

.bps-root {
    width: 100%;
    height: 100%;
    overflow-y: auto
}

.sidebar-container {
    width: var(--sidebar-icon-width);
    transition: width .3s ease;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 10px
}

    .sidebar-container.open {
        width: var(--menu-open-width)
    }

.bps-list, .bps-list-item {
    box-sizing: border-box;
    width: 100%
}

.bps-list {
    padding: 5px 5px 5px 5px;
    margin: 0;
    overflow-x: hidden
}

.bps-list-item {
    padding: 8px;
    display: block
}

.bps-merge-expand-btn:hover .merge-label {
    opacity: 1 !important;
    visibility: visible
}

.bps-selection-tree-container {
    scrollbar-width: thin;
    scrollbar-color: pink transparent
}

.bps-tree-item {
    font-size: .85rem;
    transition: background .2s,border-color .2s,color .2s
}

    .bps-tree-item:hover {
        transform: translateX(5px);
        background: rgba(255,192,203,.1) !important;
        border-color: pink !important;
        color: pink !important;
        text-decoration: none
    }

    .bps-tree-item i {
        font-size: .9rem
    }

.bps-selection-tree-container::-webkit-scrollbar {
    width: 4px
}

.bps-selection-tree-container::-webkit-scrollbar-thumb {
    background: pink;
    border-radius: 10px
}

.bps-pulse-active {
    animation: bps-filling-pulse .5s ease-out
}

.bps-pulse-next {
    animation: bps-next-glow 1.5s infinite ease-in-out;
    color: #fff
}

.bps-tree-desc-container {
    width: 100%;
    overflow: hidden;
    white-space: pre;
    mask-image: linear-gradient(to right,transparent,#000 5%,#000 90%,transparent);
    -webkit-mask-image: linear-gradient(to right,transparent,#000 5%,#000 90%,transparent)
}

.bps-tree-desc-text {
    display: inline-block;
    width: max-content;
    font-family: "Consolas","Monaco",monospace;
    font-size: .7rem;
    transition: transform 1000s steps(10000) .1s;
    transform: translateX(0)
}

.bps-tree-item:hover .bps-tree-desc-text {
    transform: translateX(-9900ch)
}

.drawbox-container {
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    margin-bottom: 1rem;
    width: 100%
}

    .drawbox-container canvas {
        background-color: #fff;
        display: block
    }

.bps-draw-stack {
    background-color: #111 !important;
    border: 1px solid #5b5571 !important
}

    .bps-draw-stack canvas {
        background-color: transparent !important
    }

input[type=color]::-webkit-color-swatch-wrapper {
    padding: 0
}

input[type=color]::-webkit-color-swatch {
    border: 1px solid #5b5571;
    border-radius: 4px
}



@media (orientation:landscape) {
    .bps-subdata-form-cols {
        grid-template-columns: 1fr 1fr;
        align-items: start
    }

    .bps-form-field:has(.drawbox-container), .bps-form-field:has(.table-responsive), .bps-form-field:has(.tiptap-wrapper) {
        grid-column: span 2
    }

    .bps-editor-container .row.mb-4.border-bottom {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .bps-editor-container .col-md-6 {
        grid-column: span 2
    }
}

.bps-category-desc-container {
    min-width: 0;
    overflow: hidden;
    white-space: pre;
    mask-image: linear-gradient(to right,transparent,#000 1%,#000 99%,transparent);
    -webkit-mask-image: linear-gradient(to right,transparent,#000 1%,#000 99%,transparent);
    cursor: default
}


.bps-nonscrolling-desc-text {
    display: inline-block;
    font-family: "Consolas","Monaco",monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: bold;
}




.bps-scrolling-desc-text {
    display: inline-block;
    width: max-content;
    font-family: "Consolas","Monaco",monospace;
    transition: transform 500s steps(5000) .1s;
    transform: translateX(0);
    font-size: 0.65rem;
    color: lightgrey;
    text-transform: uppercase;
    font-weight: bold;
}

.bps-row:hover .bps-scrolling-desc-text {
    transform: translateX(-5000ch)
}

.bps-list.bps-grid-mode .bps-row > .d-flex.align-items-center {
    width: 100% !important;
    flex-wrap: wrap !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding-bottom: 8px
}

.bps-list.bps-grid-mode .bps-row .row.flex-grow-1 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    width: auto !important;
    flex-grow: 1
}

.bps-list.bps-grid-mode .bps-category-desc-container, .bps-list.bps-grid-mode .bps-description-cell {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;

    display: block !important;
    height: 30px !important
}

.bps-list.bps-grid-mode .bps-row > .d-flex.justify-content-between {
    flex-direction: row !important;
    width: 100% !important;
    justify-content: space-between !important;
    margin-top: auto;
  
}

.bps-list.bps-grid-mode .bps-row .col-actions {
    width: 100% !important;
    justify-content: flex-end !important;
    display: flex !important;
    flex-direction: row !important;
  
}

.bps-list.bps-grid-mode .col-actions input {
    flex-grow: 1;
    margin-right: 10px
}

.bps-item-controls {
    flex-direction: row;
    align-items: center;
    margin-right: 15px
}

.bps-list.bps-grid-mode .bps-item-controls {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 44px;

    margin-right: 12px;
    margin-bottom: 0;
    flex-shrink: 0
}

    .bps-list.bps-grid-mode .bps-item-controls .me-2, .bps-list.bps-grid-mode .bps-item-controls div {
        margin-right: 0 !important
    }

.bps-list.bps-grid-mode .bps-row > .d-flex.align-items-center {
    align-items: flex-start !important
}


/* Motverka invertering på media och specifika UI-element */
html[style*="invert"] img,
html[style*="invert"] video,
html[style*="invert"] iframe,
html[style*="invert"] .floating-button,
html[style*="invert"] .startmenu-bee-icon,
html[style*="invert"] .exclude-invert {
    filter: var(--media-filter) !important;
}