.mud-main-content {
    height: 100%;
    min-height: 100vh;
    display: flex;
}
.mud-appbar {box-shadow: 0 0 0.175rem var(--primary);}

.mud-popoverBorder {
    box-shadow: 0 0 0.175rem var(--primary);
}
.mud-chip.mud-chip-size-medium {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-chip.mud-chip-size-small {
    font-size: var(--mud-typography-body2-size) !important;
}

.mud-chip {
    font-size: var(--mud-typography-default-size);
}

.mud-tabs {
    background-color: var(--mud-palette-surface);
}

.mud-input-control-margin-dense .mud-input > input.mud-input-root,
.mud-input-control-margin-dense div.mud-input-slot.mud-input-root {
    font-size: 0.90em;
}

.mud-input-control > .mud-input-control-input-container > .mud-input-label-inputcontrol {
    font-size: var(--mud-typography-default-size) !important;
}


.mud-simple-table table * tr > td, .mud-simple-table table * tr th {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-expand-panel .mud-expand-panel-header {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-button-year {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-table-cell {
    font-size: var(--mud-typography-default-size) !important;
}

.mud-table-dense .mud-table-cell {
    font-size: var(--mud-typography-body2-size) !important;
}


.mud-button-outlined-size-small {
    font-size: var(--mud-typography-body2-size);
}

.mud-grid.readonly-grid > .mud-grid-item {
    border-bottom: 1px solid var(--mud-palette-table-lines);
    padding-bottom: 2px;
}

.mud-nav-link {
    white-space: normal !important;
}

.user-button {
    text-transform: none;
    background: rgba(var(--mud-palette-primary-rgb), 0.1)
}

.side-menu .mud-chip.mud-chip-size-small {
    font-size: 0.625rem;
    height: 1.125rem;
}

.mud-table.mud-data-grid .mud-toolbar {
    height: auto !important;
    padding: 1rem
}


.mud-table.mud-data-grid .mud-toolbar-gutters {
    height: auto !important;
    padding: 1rem
}

.mud-table.mud-data-grid .mud-table-toolbar {
    height: auto !important;
    padding: 1rem
}

.mud-table.mud-data-grid .mud-table-pagination-toolbar {
    height: auto !important;
    padding: 0rem !important;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.welcome-text {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(to right, #7a7dfd, #ff6ec7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 1px 3px rgba(0,0,0,0.1);
}

/* Auth Layout Styles */
.logo-shadow {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

    .logo-shadow:hover {
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
        transform: scale(1.05);
    }

.auth-form-container {
    /*background: rgba(255, 255, 255, 0.95);*/
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .auth-form-container:hover {
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    }

/* Responsive design for auth layout */
@media (max-width: 768px) {
    .auth-form-container {
        margin: 0 16px;
        padding: 24px !important;
    }

    .logo-shadow {
        width: clamp(100px, 20vw, 140px) !important;
        height: clamp(100px, 20vw, 140px) !important;
    }
}

.hide-header {
    display: none !important;
}


:host ::deep(.mud-tabs-toolbar-wrapper) {
    background-color: var(--mud-palette-surface);
    border-radius: 8px 8px 0 0;
}

:host ::deep(.mud-tab-text) {
    text-transform: none;
}

:host ::deep(.mud-paper.pa-6) {
    border-radius: 12px;
}

nav .mud-breadcrumbs{
    line-height:0px !important; 
}

.noborder{
    border:none;
}

.mud-drawer, .mud-card {
    border-radius: 12px;
    /*  box-shadow: 0 .125rem 0 rgba(10,10,10,.04);*/
    box-shadow: none;
    border: 1px solid var(--mud-palette-divider);
}

    .mud-card .mud-card-header {
        border-block-end: 1px solid var(--mud-palette-divider)
    }

    .mud-card .mud-typography-h6 {
        position: relative;
        margin-block-end: 0;
        font-size: .9375rem;
        font-weight: 700;
        text-transform: capitalize;
    }

        .mud-card .mud-typography-h6:before {
            content: "";
            position: absolute;
            height: 1rem;
            width: .2rem;
            inset-block-start: .15rem;
            inset-inline-start: -.65rem;
            background: linear-gradient(to bottom, var(--mud-palette-primary) 50%, rgba(var(--mud-palette-secondary), .5) 50%);
            border-radius: .5rem;
        }

    .mud-card .btn-primary-light {
        background-color: rgba(132, 90, 223,0.1);
        color: var(--mud-palette-primary);
    }

.btn-primary-light:active, .btn.btn-primary-light:focus, .btn-primary-light:hover {
    background-color: var(--mud-palette-primary) !important;
    color: #fff;
    border-color: var(--mud-palette-primary);
}


.mud-breadcrumbs .mud-breadcrumb-item a {
    font-size: 13px;
    color: var(--mud-palette-primary);
}

.mud-breadcrumbs .mud-breadcrumb-item.mud-disabled a {
    color: var(--default-text-color);
    font-weight: 600;
}



.breadcrumbs .pageTitle {
    font-size: 18px;
    font-weight: 600 !important
}

.mud-table-root th .column-header {
    font-weight: 600;
    font-size: .85rem;
}

.mud-tab-active {
    background-color: rgba(132, 90, 223,0.1) !important;
    border-radius: 12px;
}

.mud-tab-panel:hover {
    background-color: transparent !important;
    /*color: var(--mud-palette-primary) !important;*/
}

.mud-tabs-tabbar-inner {
    margin-bottom: 16px;
    border-block-end: 1px solid var(--mud-palette-divider);
}
.mud-tabs-panels.border {
    border: 1px solid var(--mud-palette-divider);
}

.mud-tabs-panels {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    /*border: 1px solid var(--mud-palette-divider);*/
}

.mud-tabs-panels {
    margin-bottom: 0px;
}

.mud-tab-slider-horizontal {
    background-color: transparent !important;
}

.mud-tab {
    text-transform: none;
    min-height: 33.3333px;
    padding: 6px 6px;
}

.mud-tab-active {
    border-radius: 8px;
}
.userprofile {
    border: 2px solid var(--mud-palette-primary);
}

.profileImage-Camara {
    position: absolute;
    margin-left: -36px;
    margin-top: 4px;
    z-index: 999;
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text) !important;
    border-radius: 50%;
    padding: 4px;
    border: 2px solid white;
    width: 25px;
    height: 25px;
    margin-right: 14px;
    cursor: pointer;
}

.profileImage-delete {
    margin-left: -35px;
    margin-top: 33px;
    z-index: 999;
    background: var(--mud-palette-error);
    color: var(--mud-palette-primary-text) !important;
    border-radius: 50%;
    padding: 4px;
    border: 2px solid white;
    width: 25px;
    height: 25px;
    margin-right: 14px;
   cursor:pointer;
}

.headerContentCenter span {
    justify-content: center !important;
}

.headerContentRight span {
    justify-content: right !important;
}


@media (max-width: 425px) {
    .breadcrumbs .breadcCol {
        padding: 0px 0px 0px 14px;
        justify-content: flex-start !important;
    }
    /* Your styles here */
    .breadcrumbs .mud-breadcrumbs {
        padding-top: 0px;
        padding-bottom: 8px;
    }
}

/* --- RECONNECT MODAL --- */
#components-reconnect-modal {
    display: none;
}

    #components-reconnect-modal.components-reconnect-show {
        display: block;
        position: fixed;
        top: 64px; /* Adjust this value to be below your header */
        left: 0;
        width: 100%;
        z-index: 1300;
    }

    /* OPTION 1: Flying Shades Effect - 3-Color Dramatic */
    #components-reconnect-modal .reconnect-bar {
        height: 4px;
        background-color: var(--mud-palette-primary-lighten, #e3f2fd);
        position: relative;
        overflow: hidden;
    }

        #components-reconnect-modal .reconnect-bar::before {
            content: '';
            position: absolute;
            top: 0;
            left: -40%;
            height: 100%;
            width: 40%;
            background: linear-gradient(90deg, transparent 0%, #6366f1 25%, #8b5cf6 50%, #ec4899 75%, transparent 100%);
            animation: flying-shades-3color 1.5s infinite linear;
            box-shadow: 0 0 15px #8b5cf6;
            opacity: 1;
        }

        #components-reconnect-modal .reconnect-bar::after {
            content: '';
            position: absolute;
            top: 0;
            left: -35%;
            height: 100%;
            width: 35%;
            background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.7) 30%, rgba(139, 92, 246, 0.7) 50%, rgba(236, 72, 153, 0.7) 70%, transparent 100%);
            animation: flying-shades-3color 1.5s infinite linear 0.4s;
            box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
        }

@keyframes flying-shades-3color {
    0% {
        transform: translateX(0%);
        filter: brightness(1.2) saturate(1.8);
    }

    33% {
        filter: brightness(1.4) saturate(2.2);
    }

    66% {
        filter: brightness(1.6) saturate(2);
    }

    100% {
        transform: translateX(350%);
        filter: brightness(1.2) saturate(1.8);
    }
}


/* HTML: <div class="loader"></div> */
/* HTML: <div class="loader"></div> */
.loader {
    width: 125px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: rgba(132,90,223,1);
    animation: l15 1s infinite linear;
}

    .loader::before,
    .loader::after {
        content: "";
        grid-area: 1/1;
        margin: 2px;
        border: inherit;
        border-radius: 50%;
        animation: l15 2s infinite;
    }

    .loader::after {
        margin: 8px;
        animation-duration: 3s;
    }

@keyframes l15 {
    100% {
        transform: rotate(1turn)
    }
}

.mud-expand-panel {
    border-radius: 12px !important;
}
.mud-typography-caption{
    font-weight:600 !important;
}

/* Transition animations for AddUserSection */
.fade-transition {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.fade-transition.fade-out {
    opacity: 0;
}

/* Accordion collapse animation for data grid */
.accordion-collapse {
    max-height: max-content;
    overflow: hidden;
    opacity: 1;
    transform: scaleY(1) translateY(0);
    transform-origin: top;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-in-out, padding 0.4s ease-in-out, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /*  padding: 16px 0;
    margin-top: 8px;*/
}

.accordion-collapse.collapse {
    max-height: 0;
    opacity: 0;
    transform: scaleY(0) translateY(-10px);
    padding: 0;
    margin-top: 0;
}

/* Accordion-style expand/collapse animation */
.accordion-transition {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: scaleY(0) translateY(-10px);
    transform-origin: top;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease-in-out, 
                padding 0.4s ease-in-out,
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin-top: 0;
}

.accordion-transition.expand {
    max-height:max-content; /* Large enough to accommodate content */
    opacity: 1;
    transform: scaleY(1) translateY(0);
    padding: 16px 0;
    margin-top: 8px;
}

.accordion-transition.collapse {
    max-height: 0;
    opacity: 0;
    transform: scaleY(0) translateY(-10px);
    padding: 0;
    margin-top: 0;
}

/* Hide elements during transition */
.transition-hidden {
    display: none !important;
}

/* Custom Editor - Full height minus header and breadcrumb */
.customEditor {
    min-height: calc(100vh - 64px - 48px); /* 100vh minus header (64px) minus breadcrumb (48px) */
    height: calc(100vh - 64px - 48px);
}

/* Alternative heights for different header/breadcrumb configurations */
.customEditor-small-header {
    min-height: calc(100vh - 56px - 40px); /* For smaller headers */
    height: calc(100vh - 56px - 40px);
}

.customEditor-no-breadcrumb {
    min-height: calc(100vh - 64px); /* When breadcrumb is hidden */
    height: calc(100vh - 64px);
}

.customEditor-large-header {
    min-height: calc(100vh - 80px - 56px); /* For larger headers */
    height: calc(100vh - 80px - 56px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .customEditor {
        min-height: calc(100vh - 56px - 40px); /* Smaller header on mobile */
        height: calc(100vh - 56px - 40px);
    }
}

@media (max-width: 425px) {
    .customEditor {
        min-height: calc(100vh - 48px - 32px); /* Even smaller on small mobile */
        height: calc(100vh - 48px - 32px);
    }
}

@media (min-width: 600px) {
    .mud-container--gutters {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}
@media (min-width: 2560px) {
    .mud-container-maxwidth-xxl {
        max-width: 100%;
    }
}
:root {
    --primary: #845adf;
    --primary-light: #f2efff;
    --muted: #8c9097;
    --border: #f0f1f5;
    --bg-body: #f9fbfd;
    --sidebar-mini-w: 80px;
    --sidebar-main-w: 220px;
    --header-height: 64px; /* matches MudAppBar height */
    
    /* Dark mode colors */
    --dark-bg: #1e1e1e;
    --dark-border: #2d2d2d;
    --dark-text: #e0e0e0;
    --dark-text-muted: #b0b0b0;
    --dark-hover-bg: rgba(132, 90, 223, 0.15);
    --dark-hover-bg-light: rgba(132, 90, 223, 0.1);
}

.sidebar-wrapper {
    display: flex;
    height: calc(100vh - var(--header-height));
    position: fixed;
    top: var(--header-height);
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

.side-menu .sidebar-wrapper,
.side-menu .sidebar-wrapper--drawer {
    position: static !important;
    top: auto !important;
    left: auto !important;
    height: 100% !important;
    z-index: auto !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: none !important;
    border-top: none !important;
    border-left: none !important;
    border-bottom: none !important;
}

.sidebar-mini {
    width: var(--sidebar-mini-w);
    background: var(--mud-palette-surface);
    box-shadow: 0 0 0.175rem var(--mud-palette-primary-lighten);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    z-index: 20;
}
.mud-drawer.mud-drawer-mini.mud-drawer-pos-left.mud-drawer {
    border-right: 1px solid var(--mud-palette-divider);
    border-top:none;
    border-left:none;
    border-bottom: none;
    border-radius: 0;
}
.logo-box {
    margin-bottom: 10px;
    font-size: 24px;
    color: var(--primary);
}

.mini-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    margin-bottom: 0.8rem;
    color: var(--muted);
    cursor: pointer;
    transition: 0.2s;
    font-size: 20px;
    background: transparent;
    border: 0;
    position: relative;
}

.mini-item:hover,
.mini-item.active {
    background: var(--primary-light);
    color: var(--primary);
}

.mini-item.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: var(--primary);
}

.sidebar-main {
    width: var(--sidebar-main-w);
    background: var(--mud-palette-surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 0;
}

.sidebar-main-header {
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
}

.sidebar-main-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    letter-spacing: 0.2px;
    line-height: 1;
}

.sidebar-main-close {
    width: 34px;
    height: 34px;
    border-radius: 0.3rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.sidebar-main-close:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.sidebar-main-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 14px;
}

.menu-header {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    margin: 4px 0 12px 10px;
    opacity: 0.9;
}

.nav-link-flat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 0.3rem;
    color: var(--mud-palette-text-primary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: 0.2s;
}

.nav-link-flat:hover {
    color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

.nav-link-flat.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link-sub {
    margin-left: 10px;
    padding-left: 20px;
    font-size: 13px;
    opacity: 0.95;
}

body.mud-theme-dark .sidebar-mini,
.mud-theme-dark .sidebar-mini {
    background: var(--dark-bg) !important;
    border-right-color: var(--dark-border) !important;
}

body.mud-theme-dark .sidebar-main,
.mud-theme-dark .sidebar-main {
    background: var(--dark-bg) !important;
    border-right-color: var(--dark-border) !important;
}

body.mud-theme-dark .sidebar-main-header,
.mud-theme-dark .sidebar-main-header {
    border-bottom-color: var(--dark-border) !important;
}

body.mud-theme-dark .sidebar-main-title,
.mud-theme-dark .sidebar-main-title {
    color: var(--dark-text) !important;
}

body.mud-theme-dark .sidebar-main-close,
.mud-theme-dark .sidebar-main-close {
    color: var(--dark-text-muted) !important;
}

body.mud-theme-dark .sidebar-main-close:hover,
.mud-theme-dark .sidebar-main-close:hover {
    background: var(--dark-hover-bg-light) !important;
    color: var(--primary) !important;
}

body.mud-theme-dark .mini-item,
.mud-theme-dark .mini-item {
    color: var(--dark-text-muted) !important;
}

body.mud-theme-dark .mini-item:hover,
body.mud-theme-dark .mini-item.active,
.mud-theme-dark .mini-item:hover,
.mud-theme-dark .mini-item.active {
    background: var(--dark-hover-bg) !important;
    color: var(--primary) !important;
}

body.mud-theme-dark .nav-link-flat,
.mud-theme-dark .nav-link-flat {
    color: var(--dark-text) !important;
}

body.mud-theme-dark .nav-link-flat:hover,
.mud-theme-dark .nav-link-flat:hover {
    color: var(--primary) !important;
    background: var(--dark-hover-bg-light) !important;
}

body.mud-theme-dark .nav-link-flat.active,
.mud-theme-dark .nav-link-flat.active {
    background: var(--primary) !important;
    color: #fff !important;
}

.menu-overlay {
    position: fixed;
    top: var(--header-height);
    left: var(--sidebar-mini-w);
    width: calc(100% - var(--sidebar-mini-w));
    height: calc(100% - var(--header-height));
    background: rgba(0,0,0,0.5);
    z-index: 900;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    display: none;
}

.menu-overlay.show {
    display: block;
    opacity: 0;
}

#dynamic-menu-container {
    position: fixed;
    top: var(--header-height);
    left: var(--sidebar-mini-w);
    width: var(--sidebar-main-w);
    height: calc(100vh - var(--header-height));
    z-index: 1100;
    background: var(--mud-palette-surface);
    border-right: 1px solid var(--border);
    box-shadow: 0 0 0.175rem var(--primary);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
    transform: translateX(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#dynamic-menu-container.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.rightMenu .mud-badge-top {
    top :10px;
}
.importRules .mud-list-item {
    padding-bottom: 0px !important;
    padding-top: 0px !important;
}
.importRulesGroup {
   max-width:420px;
}

.mud-dialog .mud-dialog-actions {
    padding: 18px 24px 24px 8px;
}

.mud-dialog .mud-dialog-title {
    padding: 24px 24px 14px 24px;
    border-bottom: 1px solid var(--mud-palette-divider);
    margin-bottom: 10px;
}

.composition-bar {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    background-color: var(--mud-palette-background-grey);
}

.comp-segment {
    height: 100%;
    transition: width 0.5s ease-out;
    position: relative;
    cursor: help;
}

    .comp-segment:not(:last-child) {
        border-right: 2px solid var(--mud-palette-background);
    }

.seg-active {
    background-color: var(--mud-palette-success);
}

.seg-inactive {
    background-color: var(--mud-palette-action-disabled-background);
}

.seg-dne {
    background-color: var(--mud-palette-warning);
}

.seg-unsub {
    background-color: var(--mud-palette-error);
}

.stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

/* ========== Stats Campaign Report Section ========== */
.campaign-summary-row {
    margin-bottom: 24px;
}

.campaign-summary-card {
    border-radius: 12px;
    padding: 16px 20px;
    background-color: var(--mud-palette-surface);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.campaign-summary-label {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(100, 116, 139, 0.95);
    font-weight: 600;
    margin-bottom: 4px;
}

.campaign-summary-value {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    line-height: 1.2;
}

.campaign-summary-subtext {
    font-size: 0.8rem;
    color: rgba(100, 116, 139, 0.95);
    margin-top: 2px;
}

.campaign-summary-subtext.positive {
    color: var(--mud-palette-success);
    font-weight: 500;
}

.campaign-summary-subtext.negative {
    color: var(--mud-palette-error);
    font-weight: 500;
}

.campaign-summary-subtext.info {
    color: var(--mud-palette-info);
    font-weight: 500;
}

/* Prevent scaling when data loads */
.stats-campaign-report-section {
    transform: scale(1) !important;
    transform-origin: top left;
}

.stats-campaign-report-section > * {
    transform: scale(1) !important;
}

.stats-campaign-report-section .mud-card {
    transform: scale(1) !important;
}

.stats-campaign-report-section div[id*="Chart"] {
    transform: scale(1) !important;
}

.stats-campaign-report-section .mud-grid-item {
    transform: scale(1) !important;
}

.stats-campaign-report-section .analytics-dashboard-card .activity-72-chart {
    min-height: 320px;
}

.stats-campaign-report-section .analytics-panel-card {
    background-color: var(--mud-palette-surface);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.stats-campaign-report-section .link-click-list {
    padding: 0;
}

.stats-campaign-report-section .link-click-item {
    border-bottom: 1px dotted rgba(148, 163, 184, 0.4);
    padding: 10px 0;
}

.stats-campaign-report-section .link-click-item:last-child {
    border-bottom: none;
}

.stats-campaign-report-section .link-url {
    color: #7B1FA2 !important;
    text-decoration: none;
}

.stats-campaign-report-section .link-url:hover {
    text-decoration: underline;
}

.stats-campaign-report-section .link-click-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
    overflow: hidden;
    min-width: 80px;
}

.stats-campaign-report-section .link-click-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.stats-campaign-report-section .link-click-bar-1 {
    background: #4CAF50;
}

.stats-campaign-report-section .link-click-bar-2 {
    background: #7B1FA2;
}

.stats-campaign-report-section .link-click-bar-other {
    background: rgba(148, 163, 184, 0.5);
}

.stats-campaign-report-section .link-description {
    font-size: 0.75rem;
    margin-top: 2px;
}

.stats-campaign-report-section .link-value {
    min-width: 2.5rem;
    text-align: right;
}

.stats-campaign-report-section .device-breakdown-bar {
    display: flex;
    height: 28px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(148, 163, 184, 0.15);
}

.stats-campaign-report-section .device-segment {
    min-width: 4px;
    transition: width 0.3s ease;
}

.stats-campaign-report-section .device-segment:nth-child(1) {
    background: #7B1FA2;
}

.stats-campaign-report-section .device-segment:nth-child(2) {
    background: #4CAF50;
}

.stats-campaign-report-section .device-segment:nth-child(3) {
    background: var(--mud-palette-info);
}

.stats-campaign-report-section .device-segment:nth-child(n+4) {
    background: var(--mud-palette-secondary);
}

.stats-campaign-report-section .device-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stats-campaign-report-section .device-legend-dot-0 {
    background: #7B1FA2;
}

.stats-campaign-report-section .device-legend-dot-1 {
    background: #4CAF50;
}

.stats-campaign-report-section .device-legend-dot-2 {
    background: var(--mud-palette-info);
}

.stats-campaign-report-section .device-legend-dot-3,
.stats-campaign-report-section .device-legend-dot-4,
.stats-campaign-report-section .device-legend-dot-5 {
    background: var(--mud-palette-secondary);
}

.stats-campaign-report-section .top-locations-list {
    padding: 0;
}

.stats-campaign-report-section .top-location-item {
    border-bottom: 1px dotted rgba(148, 163, 184, 0.4);
    padding: 8px 0;
}

.stats-campaign-report-section .top-location-item:last-child {
    border-bottom: none;
}

.stats-campaign-report-section .top-location-label {
    font-size: 0.875rem;
    color: var(--mud-palette-text-primary);
}

.stats-campaign-report-section .top-location-code {
    font-size: 0.75rem;
    color: #475569;
    margin-right: 6px;
}

.stats-campaign-report-section .top-location-name {
    color: var(--mud-palette-text-primary);
}

.stats-campaign-report-section .top-location-pct {
    color: rgba(100, 116, 139, 0.95);
}

.stats-campaign-report-section .heatgrid {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 2px;
    margin-top: 8px;
}

.stats-campaign-report-section .heat-cell {
    height: 28px;
    background: #F3F4F6;
    border-radius: 2px;
    transition: transform 0.1s, border 0.1s;
}

.stats-campaign-report-section .heat-cell:hover {
    transform: scale(1.05);
    z-index: 2;
    border: 1px solid #666;
}

.stats-campaign-report-section .heat-cell.h-1 {
    background: #EDE9FE;
}

.stats-campaign-report-section .heat-cell.h-2 {
    background: #DDD6FE;
}

.stats-campaign-report-section .heat-cell.h-3 {
    background: #C4B5FD;
}

.stats-campaign-report-section .heat-cell.h-4 {
    background: #A78BFA;
}

.stats-campaign-report-section .heat-cell.h-5 {
    background: #7E57C2;
}

/* ========== Engagement Over Time Section ========== */
.engagement-over-time-section .engagement-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.engagement-over-time-section .engagement-legend-opens {
    background: #7E57C2;
}

.engagement-over-time-section .engagement-legend-clicks {
    background: #FFA726;
}

.engagement-over-time-section .engagement-chart {
    min-height: 300px;
}

.engagement-over-time-section .delivery-health-section {
    border-top: 1px solid #E5E7EB;
}

.engagement-over-time-section .dna-bar {
    height: 10px;
    width: 100%;
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    background: #F3F4F6;
}

.engagement-over-time-section .dna-segment {
    height: 100%;
    min-width: 2px;
    transition: width 0.2s ease;
}

.engagement-over-time-section .dna-segment.dna-delivered {
    background: #10B981;
}

.engagement-over-time-section .dna-segment.dna-soft {
    background: #FBBF24;
}

.engagement-over-time-section .dna-segment.dna-hard {
    background: #EF4444;
}

.engagement-over-time-section .dna-segment.dna-unsub {
    background: #9CA3AF;
}

.engagement-over-time-section .dna-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.engagement-over-time-section .dna-dot-delivered {
    background: #10B981;
}

.engagement-over-time-section .dna-dot-soft {
    background: #FBBF24;
}

.engagement-over-time-section .dna-dot-hard {
    background: #EF4444;
}

.engagement-over-time-section .dna-dot-unsub {
    background: #9CA3AF;
}

/* ===== Select Subscriber List page (MudBlazor theme-aware, dark mode supported) ===== */
.select-subscriber-breadcrumb {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
    padding: 2rem 2rem 0;
    font-family: var(--mud-typography-font-family, inherit);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}

.select-subscriber-breadcrumb span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.select-subscriber-breadcrumb .breadcrumb-active {
    color: var(--mud-palette-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--mud-palette-primary);
    padding-bottom: 0.25rem;
}

.select-subscriber-breadcrumb .breadcrumb-sep {
    font-size: 0.75rem;
    color: var(--mud-palette-text-disabled);
}

.select-subscriber-layout {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* MudCard with Class select-subscriber-list-card - layout only; MudCard provides elevation/outline */
.select-subscriber-list-card.mud-card {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.select-subscriber-list-card .card-header,
.select-subscriber-list-card .mud-card-header {
    padding: 1rem;
    border-bottom: 1px solid var(--mud-palette-divider);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: var(--mud-palette-background-grey);
}

.select-subscriber-list-card .search-wrap {
    position: relative;
    width: 16rem;
    max-width: 100%;
}

.select-subscriber-list-card .search-wrap .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mud-palette-text-secondary);
    pointer-events: none;
}

.select-subscriber-list-card .search-input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border: 1px solid var(--mud-palette-divider);
    border-radius: 0.375rem;
    background: var(--mud-palette-surface);
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--mud-palette-text-primary);
}

.select-subscriber-list-card .search-input::placeholder {
    color: var(--mud-palette-text-secondary);
}

.select-subscriber-list-card .search-input:focus {
    outline: none;
    box-shadow: 0 0 0 1px var(--mud-palette-primary);
    border-color: var(--mud-palette-primary);
}

.select-subscriber-list-card .select-all-btn {
    font-size: 0.875rem;
    color: var(--mud-palette-primary);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0;
}

.select-subscriber-list-card .select-all-btn:hover,
.select-subscriber-list-card .select-all-btn.mud-button-root:hover {
    color: var(--mud-palette-primary-darken);
}

.select-subscriber-list-card .select-all-btn.mud-button-root {
    min-width: auto;
    padding: 0.25rem 0;
}

.select-subscriber-list-card .list-table-wrap {
    overflow-y: auto;
    max-height: 75vh;
}

.select-subscriber-list-card .list-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
}

    .select-subscriber-list-card .list-table thead {
        background: var(--mud-palette-white);
        position: sticky;
        top: 0;
        z-index: 1;
    }

.select-subscriber-list-card .list-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--mud-palette-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.select-subscriber-list-card .list-table tbody tr {
    border-bottom: 1px solid var(--mud-palette-divider);
    transition: background-color 0.15s ease;
}

.select-subscriber-list-card .list-table tbody tr:hover {
    background-color: var(--mud-palette-background-grey);
}

.select-subscriber-list-card .list-table tbody tr.row-selected {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.08);
}

.select-subscriber-list-card .list-table tbody tr.row-selected:hover {
    background-color: rgba(var(--mud-palette-primary-rgb), 0.12);
}

.select-subscriber-list-card .list-table td {
    padding: 1rem 1rem;
    white-space: nowrap;
    vertical-align: middle;
}

.select-subscriber-list-card .list-table td.list-name {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.select-subscriber-list-card .list-table td.list-name-unselected {
    font-weight: normal;
    color: var(--mud-palette-text-secondary);
}

.select-subscriber-list-card .list-table .subscriber-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(var(--mud-palette-success-rgb), 0.2);
    color: var(--mud-palette-success);
    border-radius: 9999px;
}

.select-subscriber-list-card .list-table .subscriber-count-plain {
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
}

.select-subscriber-sidebar {
    width: 20rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* MudCard with Class sidebar-card - MudCard provides elevation/outline */
.select-subscriber-sidebar .sidebar-card.mud-card {
    padding: 0;
}

.select-subscriber-sidebar .sidebar-card .mud-card-content {
    padding: 1.5rem;
}

.select-subscriber-sidebar .sidebar-card .card-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    margin-bottom: 0.25rem;
}

.select-subscriber-sidebar .sidebar-card .card-label .icon-amber {
    color: var(--mud-palette-warning);
}

.select-subscriber-sidebar .sidebar-card .card-label .icon-indigo {
    color: var(--mud-palette-primary);
}

.select-subscriber-sidebar .sidebar-card .card-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.select-subscriber-sidebar .sidebar-card .card-hint {
    font-size: 0.75rem;
    color: var(--mud-palette-text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}

.select-subscriber-sidebar .sidebar-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
}

.select-subscriber-sidebar .sidebar-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.select-subscriber-sidebar .sidebar-actions .btn-prev {
    border: 1px solid var(--mud-palette-divider);
    color: var(--mud-palette-text-primary);
    background: var(--mud-palette-surface);
}

.select-subscriber-sidebar .sidebar-actions .btn-prev:hover {
    background: var(--mud-palette-background-grey);
}

.select-subscriber-sidebar .sidebar-actions .btn-next {
    background: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    box-shadow: 0 4px 6px -1px rgba(var(--mud-palette-primary-rgb), 0.2);
}

.select-subscriber-sidebar .sidebar-actions .btn-next:hover:not(:disabled) {
    background: var(--mud-palette-primary-darken);
}

.select-subscriber-sidebar .sidebar-actions .btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.select-subscriber-sidebar .credit-error {
    font-size: 0.75rem;
    color: var(--mud-palette-error);
    margin-top: 0.5rem;
}

.list-loading,
.sidebar-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.list-empty {
    text-align: center;
    padding: 1.5rem;
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
}
