@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700;900&display=swap');

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: local('Roboto Regular'), local('Roboto-Regular'), url(/fonts/roboto400.woff) format('woff');
}
@font-face {
    font-family: 'RobotoBold';
    font-style: normal;
    font-weight: 400;
    src: local('Roboto Bold'), local('Roboto-Bold'), url(/fonts/roboto700.woff) format('woff');
}

*{
    margin: 0;
    padding: 0;
    border-width: 0;
    box-sizing: border-box;
    list-style-type: none;
}
:root{
    font-size: 14px;
}
html,body{
    min-height: 100vh;
}
body{
    font-family: 'Raleway', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1rem;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /*background-color:  var(--white_theme_module_bg_color);*/
    background-color: white;
    /*background-color:  var(--white_theme_module_bg_color);*/
    --main_navigation_width: 200px;
}

body[data-selected_top_navigation_mode="reports"]{
    --main_navigation_width: 250px;
}


ul{
    padding: 0;
}

section{
    display: flex;
    width: 100%;
}
section{
    flex-direction: column;
}
.section-image{
    background-size: cover;
    background-position: center;
    justify-content: center;
    align-items: center;
    height: 300px;
}
.over-lay{
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgba(0,0,0,.8);
    text-align: center;
}
.over-lay .details{
    justify-content: center;
    align-items: center;
    text-align: center;
}
.over-lay :is(h1,h2,h3,h4,h5,h6){
    color: #fff;
    font-weight: 600;
}

h1{
    font-size: 2.5rem;
    text-transform: capitalize;
}
h2{
    font-size: 1.8rem;
    text-transform: capitalize;
}
h3{
    font-size: 1.5rem;
    text-transform: capitalize;
}
h4{
    font-size: 1.3rem;
    text-transform: capitalize;
}
h5{
    font-size: 1.2rem;
}
h6{
    font-size: 1.1rem;
}

h1,h2,h3,h4,h5,h6{
    color: #3f3f3f;
    font-weight: 500;
    margin-bottom: 4px;
    transition: all 0.3s ease-out 0s;
}
:is(h1,h2,h3,h4,h5,h6).clickable:hover{
    color: #f8b239;
}

article,p{
    font-family: 'Lato', sans-serif;
    font-weight: normal;
    color: #3f3f3f;
    font-size: 1rem;
    line-height: 1.6rem;
    margin-bottom: 15px;
}

article{
    padding: 10px;
}

a{
    text-decoration: none;
    color: inherit;
    transition: all 100ms ease-in-out;
}

.main-container{
    flex-direction: column;
    min-height: 100vh;
}

.details-container,
.details-container .details{
    flex-direction: column;
}

.details-container h4{
    cursor: pointer;
}

.details-container p{
    font-family: 'Lato', sans-serif;
    font-weight: normal;
    color: #666666;
    font-size: 1rem;
    line-height: 24px;
    margin-bottom: 15px;
}

.highlighted{
    background-color: #f8b239;
    padding: 15px 20px;
    text-transform: capitalize;
}

.highlighted :is(h1,h2,h3,h4,h5,h6){
    color: #fff;
    text-align: center;
    margin: 0 auto;
}

.under-line:is(h1,h2,h3,h4,h5,h6){
    padding-bottom: 10px;
    position: relative;
    margin-bottom: 30px;
}

.under-line:is(h1,h2,h3,h4,h5,h6)::before {
    background-color: #f8b239;
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 40px;
}

.image-container{
    margin-bottom: 15px;
    width: 100%;
}
.image-container img{
    width: 100%;
}

.btn-container span{
    cursor: pointer;
    position: relative;
    z-index: 2;
    border: 1px solid #c1c1c1;
    color: #3f3f3f;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 25px;
    text-transform: capitalize;
    -webkit-transition: all 0.3s ease-out 0s;
    transition: all 0.3s ease-out 0s;
    border-radius: 5px;
    display: flex;
    width: max-content;
}
.btn-container span:hover{
    color: #fff;
    border: 1px solid #f8b239;
}
.btn-container span:after{
    background: #f8b239 none repeat scroll 0 0;
    content: "";
    height: 100%;
    left: 0;
    margin: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    z-index: -1;
    transition: all 0.3s ease-out 0s;
}
.btn-container span:hover::after {
    width: 100%;
}

.mobile div.inner-container{
    width: 100% !important;
}

.gray-bg {
    background: #f1f1f1;
}
.navy-bg {
    background: #2d3e50;
}
.bg-white-transparent{
    background-color: #2d3e50a9;
}






#userWindow{
    display: none;
}
#adminWindow{
    display: none;
}
#visibilityWindow{
    display: none;
}



/* Default buttons container - base styles (enhanced in action_toolbar.css) */
.defaultButtonsContainer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.searchButtonsContainer {
    float: left;
}

td.searchButtonsContainerParent {
    width: 38px;
    /*display: none;*/
}

.searchButtonsContainer .showSearchContainer {
    background: url("/pic/search.png")no-repeat;
}

.searchButtonsContainer .clearSearch {
    background: url("/pic/delete.png")no-repeat;
}

.defaultButtonsContainer .setDisplayModeToCalendarView {
    background: url("/pic/calendar.png")no-repeat;
}

.defaultButtonsContainer .setDisplayModeToThumbnailView {
    /*background: url("/pic/thumbnails.png")no-repeat;*/
}

.defaultButtonsContainer .setDisplayModeToGridView {
    /*background: url("/pic/table.png")no-repeat;*/
}

.defaultButtonsContainer .set_display_mode_to_master_detail_view {
    background: url("/pic/ic_master_detail.png")no-repeat;
}

.defaultButtonsContainer .setDisplayModeToDirectCreateView {
    background: url("/pic/addDetails.png")no-repeat;
}



/* Filter popup button - styles moved to action_toolbar.css for better organization */

/* Clear Applied Filters Button - styles moved to action_toolbar.css for better organization */

/* Icon styles for display mode toggles - enhanced in action_toolbar.css */
body.pc .defaultButtonsContainer .icon, body.pc .searchButtonsContainer .icon {
    cursor: pointer;
    opacity: .5;
    background-position: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.mobile .defaultButtonsContainer .icon, body.mobile .searchButtonsContainer .icon {
    height: 18px;
    width: 18px;
    background-size: contain;
    padding-bottom: 4px;
    margin: 5px;
    display: inline-block;
    cursor: pointer;
    opacity: .5;
}

.defaultButtonsContainer .icon.selected {
    opacity: 1;
    border-bottom: 3px solid rgba(50, 147, 211, 1);
}

/* Display mode buttons container - enhanced in action_toolbar.css */
.defaultButtonsContainer .setDisplayModeButtonsContainer {
    display: inline-flex;
}



/* Grid view buttons - base styles (enhanced in action_toolbar.css) */
.gridViewButtonsContainer:not(:empty){
    /* min-height handled by action_toolbar.css */
}



.hundred-percent {
    width: 100%;
    height: 100%;
}

.hundred-percent-x {
    width: 100%;
}
#viewsContainer{
    vertical-align: top;
    padding: 0px;
}


::-webkit-scrollbar {
    width: 3px;
    height: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #9c9b9b;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #6d6c6c;
}


.subModule-container{
    position: relative;
    height: 100%;
    min-height: 70vh;
    font-family: Inter, sans-serif;
    font-weight: 400;
    padding: 5px;
    padding-top: 10px;
}


.window-container .subModule-container{
    min-height: auto;
}

:root {
    font-family: Inter, sans-serif;
    font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
}
@supports (font-variation-settings: normal) {
    :root { font-family: InterVariable, sans-serif; }
}


i.fa.fa-close {
    font-family: 'Font Awesome 6 Free' !important;
}


.module-panel{
    /*background-color: var(--white_theme_module_bg_color);*/
    /*border-top-left-radius: 10px;*/
}

.window_content .module-panel{
    background-color: transparent;
    /*border-top-left-radius: 10px;*/
}

/* Buttons row - height handled by action_toolbar.css for cleaner layout */
.subModule-container.with_tab_filter_panel .buttonsRow{
    --buttons_row_height: auto;

    .button-panel{
        /* padding handled by action_toolbar.css */
    }
}

.subModule-container .buttonsRow{
    height: var(--buttons_row_height, auto);
}
.subModule-container.waiting_initialization {

    & .button-panel{
        opacity: 0;
    }
}




/* AI Loading Overlay Dialog */
dialog.ai_loading_overlay {
    width: 100vw;
    height: 100vh;
    border: none;
    padding: 0;
    background: transparent;
    max-width: none;
    max-height: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease;
}

dialog.ai_loading_overlay::backdrop {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

dialog.ai_loading_overlay.visible {
    opacity: 1;
    display: flex;
}

dialog.ai_loading_overlay .ai_loader_content {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    text-align: center;
    min-width: 220px;
}

dialog.ai_loading_overlay .ai_spinner {
    width: 32px;
    height: 32px;
    border: 2.5px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    margin: 0 auto 18px;
    animation: ai_spin 0.8s linear infinite;
}

@keyframes ai_spin {
    to {
        transform: rotate(360deg);
    }
}

dialog.ai_loading_overlay .loader_text {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    letter-spacing: -0.01em;
}

dialog.ai_loading_overlay .loader_subtext {
    margin: 0;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 400;
}

/* ========================================
   ENHANCED THEME SYSTEM - Font & Gradients
   ======================================== */

/* Font System Variables */
:root {
    --font_heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font_body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font_weight_heading: 700;
    --font_weight_body: 400;
    --font_weight_light: 300;
    --font_weight_normal: 400;
    --font_weight_medium: 500;
    --font_weight_semibold: 600;
    --font_weight_bold: 700;
    --font_weight_extrabold: 800;
    --font_weight_black: 900;
    
    /* Gradient Variables */
    --theme_gradient: none;
    --theme_gradient_overlay: none;
    
    /* Extended Color Variables */
    --accent_secondary: #38BDF8;
    --accent_accent: #0EA5E9;
    --accent_light: #E0F2FE;
    --color_success: #10B981;
    --color_warning: #F59E0B;
    --color_error: #EF4444;
    
    /* Transition Variables */
    --transition_fast: 0.15s ease;
    --transition_normal: 0.25s ease;
    --transition_slow: 0.35s ease;
}

/* Apply Font Combinations to Elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font_heading);
    font-weight: var(--font_weight_heading);
}

body, p, article, div, span, button, input, textarea, select {
    font-family: var(--font_body);
}

/* Gradient Enhancement Classes */
body.gradient_enabled {
    position: relative;
}

/* Gradient overlay for subtle background effects */
.gradient_bg {
    background: var(--theme_gradient);
    position: relative;
    overflow: hidden;
}

.gradient_overlay {
    position: relative;
}

.gradient_overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--theme_gradient);
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.gradient_overlay > * {
    position: relative;
    z-index: 1;
}

/* Gradient hover effects for buttons and cards */
.gradient_hover {
    position: relative;
    overflow: hidden;
}

.gradient_hover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--theme_gradient);
    opacity: 0;
    transition: opacity var(--transition_fast);
    pointer-events: none;
}

.gradient_hover:hover::after {
    opacity: 0.1;
}

/* Gradient border effect */
.gradient_border {
    position: relative;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.gradient_border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--theme_gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
}

/* Gradient text effect */
.gradient_text {
    background: var(--theme_gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Enhanced button styles with gradient support */
body.gradient_enabled button.primary,
body.gradient_enabled .btn-primary {
    background: var(--theme_gradient);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
}

body.gradient_enabled button.primary::before,
body.gradient_enabled .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity var(--transition_fast);
}

body.gradient_enabled button.primary:hover::before,
body.gradient_enabled .btn-primary:hover::before {
    opacity: 1;
}

/* Card enhancements with gradient accents */
body.gradient_enabled .card,
body.gradient_enabled .module-panel {
    position: relative;
}

body.gradient_enabled .card::after,
body.gradient_enabled .module-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--theme_gradient);
    opacity: 0.7;
}

/* Enhanced color palette utilities */
.bg-primary { background-color: var(--accent_primary) !important; }
.bg-secondary { background-color: var(--accent_secondary) !important; }
.bg-accent { background-color: var(--accent_accent) !important; }
.bg-success { background-color: var(--color_success) !important; }
.bg-warning { background-color: var(--color_warning) !important; }
.bg-error { background-color: var(--color_error) !important; }

.text-primary { color: var(--accent_primary) !important; }
.text-secondary { color: var(--accent_secondary) !important; }
.text-accent { color: var(--accent_accent) !important; }
.text-success { color: var(--color_success) !important; }
.text-warning { color: var(--color_warning) !important; }
.text-error { color: var(--color_error) !important; }

.border-primary { border-color: var(--accent_primary) !important; }
.border-secondary { border-color: var(--accent_secondary) !important; }
.border-accent { border-color: var(--accent_accent) !important; }

/* Typography enhancement classes */
.text-heading {
    font-family: var(--font_heading);
    font-weight: var(--font_weight_heading);
}

.text-body {
    font-family: var(--font_body);
    font-weight: var(--font_weight_body);
}

.font-light { font-weight: var(--font_weight_light) !important; }
.font-normal { font-weight: var(--font_weight_normal) !important; }
.font-medium { font-weight: var(--font_weight_medium) !important; }
.font-semibold { font-weight: var(--font_weight_semibold) !important; }
.font-bold { font-weight: var(--font_weight_bold) !important; }
.font-extrabold { font-weight: var(--font_weight_extrabold) !important; }
.font-black { font-weight: var(--font_weight_black) !important; }

/* Smooth transitions for theme changes */
/** {*/
/*    transition: background-color var(--transition_fast),*/
/*                color var(--transition_fast),*/
/*                border-color var(--transition_fast);*/
/*}*/

/* Prevent transition on theme initial load */
.preload * {
    transition: none !important;
}

/* Gradient animation for loading states */
@keyframes gradient_shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient_animate {
    background-size: 200% 200%;
    animation: gradient_shift 3s ease infinite;
}

/* Enhanced shadow system with colors */
.shadow-primary {
    box-shadow: 0 4px 12px var(--accent_primary_border);
}

.shadow-secondary {
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.shadow-success {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.shadow-error {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Responsive typography scaling */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.4rem; }
    h4 { font-size: 1.2rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.3rem; }
    h4 { font-size: 1.15rem; }
}

/* ========================================
   COMPREHENSIVE DARK THEME STYLES
   ======================================== */

/* Dark Theme Base Styles */
body.dark_theme {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

/* Dark Theme - Body and Main Containers (EXCEPT DASHBOARD) */
.dark_theme body,
.dark_theme .pages,
.dark_theme main,
.dark_theme section {
    background-color: #0f172a;
    color: #e2e8f0;
}

.dark_theme body .dashboardItem,
.dark_theme body .dashboardItem *,
.dark_theme body .single_dashboard_report_item,
.dark_theme body .single_dashboard_report_item *,
.dark_theme body [class*="dashboard"],
.dark_theme body [class*="dashboard"] * {
    color: unset;
    filter: none;
}

/* Dark Theme - Headings */
.dark_theme h1,
.dark_theme h2,
.dark_theme h3,
.dark_theme h4,
.dark_theme h5,
.dark_theme h6 {
    color: #f8fafc !important;
}

/* Dark Theme - Paragraphs and Text (EXCEPT DASHBOARD) */
.dark_theme p:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *),
.dark_theme article:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *),
.dark_theme span:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *),
.dark_theme div:not([class*="dashboard"]):not(.dashboardItem):not(.single_dashboard_report_item):not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *),
.dark_theme label:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *),
.dark_theme li:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *) {
    color: #cbd5e1;
}

/* Dark Theme - Links */
.dark_theme a {
    color: #60a5fa;
}

.dark_theme a:hover {
    color: #93c5fd;
}

/* Dark Theme - Primary Containers */
.dark_theme .subModule-container,
.dark_theme .module-panel,
.dark_theme .main-container,
.dark_theme .container,
.dark_theme .content,
.dark_theme .details-container {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

/* Dark Theme - Cards and Panels */
.dark_theme .card,
.dark_theme .panel,
.dark_theme .box,
.dark_theme .info-card,
.dark_theme .demo-card,
.dark_theme .remark-box {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark_theme .card:hover,
.dark_theme .info-card:hover,
.dark_theme .demo-card:hover {
    background-color: #334155 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

/* Dark Theme - Forms and Inputs */
.dark_theme input,
.dark_theme textarea,
.dark_theme select,
.dark_theme .form_input_element,
.dark_theme .editable_item_form_element input,
.dark_theme .editable_item_form_element textarea,
.dark_theme .editable_item_form_element select {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

.dark_theme input:focus,
.dark_theme textarea:focus,
.dark_theme select:focus,
.dark_theme .form_input_element:focus {
    background-color: #1e293b !important;
    border-color: var(--accent_primary, #60a5fa) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1) !important;
}

.dark_theme input:hover,
.dark_theme textarea:hover,
.dark_theme select:hover {
    border-color: #64748b !important;
}

.dark_theme input::placeholder,
.dark_theme textarea::placeholder {
    color: #64748b !important;
}

.dark_theme input[type="checkbox"],
.dark_theme input[type="radio"] {
    border-color: #64748b !important;
    background-color: #1e293b !important;
}

/* Dark Theme - Form Labels (EXCEPT DASHBOARD) */
.dark_theme .editable_item_display_name:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *),
.dark_theme label:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *),
.dark_theme .form-label:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *) {
    color: #cbd5e1 !important;
}

.dark_theme .editable_item_display_name.special_heading {
    color: #f8fafc !important;
}

.dark_theme .editable_item_display_name.special_heading::after {
    background-color: var(--accent_primary, #60a5fa) !important;
}

/* Dark Theme - Buttons */
.dark_theme button,
.dark_theme .btn,
.dark_theme .demo-button {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

.dark_theme button:hover,
.dark_theme .btn:hover {
    background-color: #334155 !important;
    border-color: #64748b !important;
}

.dark_theme button.primary,
.dark_theme .btn-primary,
.dark_theme button[class*="primary"] {
    background-color: var(--accent_primary, #3b82f6) !important;
    color: #ffffff !important;
    border-color: var(--accent_primary, #3b82f6) !important;
}

.dark_theme button.primary:hover,
.dark_theme .btn-primary:hover {
    background-color: var(--accent_primary_hover, #2563eb) !important;
}

.dark_theme button.secondary,
.dark_theme .btn-secondary {
    background-color: #475569 !important;
    color: #f8fafc !important;
}

/* Dark Theme - Tables */
.dark_theme table {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

.dark_theme thead,
.dark_theme thead tr,
.dark_theme thead th {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #475569 !important;
}

.dark_theme tbody tr {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.dark_theme tbody tr:hover {
    background-color: #334155 !important;
}

.dark_theme tbody tr:nth-child(even) {
    background-color: #1a2332 !important;
}

.dark_theme tbody tr:nth-child(even):hover {
    background-color: #334155 !important;
}

.dark_theme td:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *),
.dark_theme th:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *) {
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

/* Dark Theme - Grid View */
.dark_theme .grid,
.dark_theme .grid-view,
.dark_theme .data-grid {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

.dark_theme .grid-header,
.dark_theme .grid-row {
    border-color: #334155 !important;
}

.dark_theme .grid-cell:not([class*="dashboard"] *):not(.dashboardItem *):not(.single_dashboard_report_item *) {
    color: #cbd5e1 !important;
}

/* Dark Theme - Navigation */
.dark_theme nav,
.dark_theme .nav,
.dark_theme .navigation,
.dark_theme header,
.dark_theme .header,
.dark_theme .main_navigation_container,
.dark_theme .settings_navigation_container,
.dark_theme .reports_navigation_container {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

/* Dark Theme - Navigation Header */
.dark_theme .navigation_header {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-bottom-color: #334155 !important;
}

.dark_theme .navigation_header_name {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

.dark_theme .navigation_header_name:hover {
    background-color: #1e293b !important;
}

.dark_theme .navigation_header_name_text {
    color: #f8fafc !important;
}

.dark_theme .navigation_header_subtitle {
    color: #94a3b8 !important;
}

.dark_theme .navigation_header_initials {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

.dark_theme .navigation_header_name:hover .navigation_header_initials {
    background-color: rgba(96, 165, 250, 0.15) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
}

.dark_theme .navigation_header_avatar {
    border-color: #475569 !important;
}

.dark_theme .navigation_header_icon {
    color: #cbd5e1 !important;
}

.dark_theme .navigation_header_logo {
    filter: brightness(1.2);
}

/* Dark Theme - Main Navigation Bar */
.dark_theme .main_navigation_bar {
    background-color: transparent !important;
}

.dark_theme .nav_button {
    background-color: transparent !important;
    color: #cbd5e1 !important;
}

.dark_theme .nav_button:hover {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.dark_theme .nav_button.active,
.dark_theme .nav_button.selected {
    background-color: #1e293b !important;
    color: var(--accent_primary, #60a5fa) !important;
}

.dark_theme .nav_button_icon {
    color: inherit !important;
}

.dark_theme .nav_button_label {
    color: inherit !important;
}

/* Dark Theme - Breadcrumb */
.dark_theme .breadcrumb_container {
    background-color: transparent !important;
}

.dark_theme .breadcrumb_title {
    color: #f8fafc !important;
}

.dark_theme .breadcrumb_caption {
    color: #64748b !important;
}

.dark_theme .selected_main_navigation_display_name {
    color: #f8fafc !important;
}

.dark_theme .nav-item,
.dark_theme .navigation-item {
    color: #cbd5e1 !important;
}

.dark_theme .nav-item:hover,
.dark_theme .navigation-item:hover {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.dark_theme .nav-item.active,
.dark_theme .navigation-item.active {
    background-color: #334155 !important;
    color: var(--accent_primary, #60a5fa) !important;
}

/* Dark Theme - Sidebar */
.dark_theme .sidebar,
.dark_theme aside {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

.dark_theme .sidebar_toggle_button {
    background-color: transparent !important;
    color: #cbd5e1 !important;
    border-color: transparent !important;
}

.dark_theme .sidebar_toggle_button:hover {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.dark_theme .sidebar_toggle_button:active {
    background-color: #334155 !important;
}

.dark_theme .sidebar_content {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
}

.dark_theme .sidebar_item {
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

.dark_theme .sidebar_item:hover {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.dark_theme .sidebar_item.active {
    background-color: #1e293b !important;
    color: var(--accent_primary, #60a5fa) !important;
    border-left-color: var(--accent_primary, #60a5fa) !important;
}

.dark_theme .sidebar_divider {
    background-color: #334155 !important;
    border-color: #334155 !important;
}

/* Dark Theme - Top Navigation Elements */
.dark_theme .top_navigation,
.dark_theme .top_nav,
.dark_theme .header_navigation {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

.dark_theme .header_title,
.dark_theme #header_title_message {
    color: #f8fafc !important;
    background-color: transparent !important;
}

.dark_theme .header_buttons,
.dark_theme .headerButtons {
    background-color: transparent !important;
}

.dark_theme .header_buttons > div,
.dark_theme .headerButtons > div {
    color: #cbd5e1 !important;
}

.dark_theme .header_buttons > div:hover,
.dark_theme .headerButtons > div:hover {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.dark_theme .userName,
.dark_theme .user_name {
    color: #cbd5e1 !important;
}

.dark_theme .user_image,
.dark_theme #userImage {
    border-color: #475569 !important;
    background-color: #1e293b !important;
}

/* Dark Theme - Navigation Container Variants */
.dark_theme .main_navigation_container,
.dark_theme .reports_navigation_container,
.dark_theme .settings_navigation_container {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

.dark_theme .main_navigation_container.is_in_modules_mode,
.dark_theme .reports_navigation_container.is_in_reports_mode,
.dark_theme .settings_navigation_container.is_in_settings_mode {
    background-color: #0f172a !important;
}

.dark_theme .navigation_container {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

.dark_theme .navigation_container.collapsed {
    background-color: #0f172a !important;
}

.dark_theme .navigation_container.expanded {
    background-color: #0f172a !important;
}

/* Dark Theme - Navigation Items */
.dark_theme .navigation_item,
.dark_theme .nav_item {
    background-color: transparent !important;
    color: #cbd5e1 !important;
    border-color: transparent !important;
}

.dark_theme .navigation_item:hover,
.dark_theme .nav_item:hover {
    background-color: #1e293b !important;
    color: #f8fafc !important;
}

.dark_theme .navigation_item.active,
.dark_theme .nav_item.active,
.dark_theme .navigation_item.selected,
.dark_theme .nav_item.selected {
    background-color: #1e293b !important;
    color: var(--accent_primary, #60a5fa) !important;
    border-left: 3px solid var(--accent_primary, #60a5fa) !important;
}

.dark_theme .navigation_item_icon,
.dark_theme .nav_item_icon {
    color: inherit !important;
}

.dark_theme .navigation_item_text,
.dark_theme .nav_item_text {
    color: inherit !important;
}

.dark_theme .navigation_item_badge,
.dark_theme .nav_item_badge {
    background-color: var(--accent_primary, #3b82f6) !important;
    color: #ffffff !important;
}

/* Dark Theme - Footer */
.dark_theme footer {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-color: #334155 !important;
}

/* Dark Theme - Modals and Dialogs */
.dark_theme .modal,
.dark_theme dialog,
.dark_theme .popup,
.dark_theme .window-container,
.dark_theme .window_content {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

.dark_theme .modal-header,
.dark_theme .modal-title {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

.dark_theme .modal-body,
.dark_theme .modal-content {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

.dark_theme .modal-footer {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

/* Dark Theme - Global Search */
.dark_theme .global_search_container {
    background-color: transparent !important;
}

.dark_theme .search_input_wrapper {
    background-color: #1e293b !important;
    border-color: #475569 !important;
}

.dark_theme .search_input_wrapper:focus-within {
    background-color: #0f172a !important;
    border-color: var(--accent_primary, #60a5fa) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1) !important;
}

.dark_theme .search_input {
    background-color: transparent !important;
    color: #e2e8f0 !important;
}

.dark_theme .search_input::placeholder {
    color: #64748b !important;
}

.dark_theme .search_icon {
    color: #94a3b8 !important;
}

.dark_theme .search_input_wrapper:focus-within .search_icon {
    color: var(--accent_primary, #60a5fa) !important;
}

.dark_theme .search_results {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
}

.dark_theme .search_result_item {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

.dark_theme .search_result_item:hover {
    background-color: #334155 !important;
}

.dark_theme .search_result_item.selected {
    background-color: #334155 !important;
    color: var(--accent_primary, #60a5fa) !important;
}

/* Dark Theme - Dropdown Menus */
.dark_theme .dropdown,
.dark_theme .dropdown-menu,
.dark_theme select option {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

.dark_theme .dropdown-item:hover,
.dark_theme .dropdown-menu li:hover {
    background-color: #334155 !important;
}

/* Dark Theme - Tooltips and Popovers */
.dark_theme .tooltip,
.dark_theme .popover {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #475569 !important;
}

/* Dark Theme - Badges and Tags */
.dark_theme .badge,
.dark_theme .tag,
.dark_theme .chip {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* Dark Theme - Alerts */
.dark_theme .alert {
    border-color: #475569 !important;
}

.dark_theme .alert-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #6ee7b7 !important;
    border-color: #10b981 !important;
}

.dark_theme .alert-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border-color: #f59e0b !important;
}

.dark_theme .alert-error {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #fca5a5 !important;
    border-color: #ef4444 !important;
}

/* Dark Theme - Progress Bars */
.dark_theme .progress {
    background-color: #334155 !important;
}

.dark_theme .progress-bar {
    background-color: var(--accent_primary, #3b82f6) !important;
}

/* Dark Theme - Tabs */
.dark_theme .tabs,
.dark_theme .tab-list {
    background-color: #0f172a !important;
    border-color: #334155 !important;
}

.dark_theme .tab {
    color: #94a3b8 !important;
    border-color: transparent !important;
}

.dark_theme .tab:hover {
    color: #cbd5e1 !important;
    background-color: #1e293b !important;
}

.dark_theme .tab.active {
    color: var(--accent_primary, #60a5fa) !important;
    background-color: #1e293b !important;
    border-color: var(--accent_primary, #60a5fa) !important;
}

/* Dark Theme - Accordion */
.dark_theme .accordion-item {
    background-color: #1e293b !important;
    border-color: #334155 !important;
}

.dark_theme .accordion-header {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

.dark_theme .accordion-body {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

/* Dark Theme - Breadcrumbs */
.dark_theme .breadcrumb {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
}

.dark_theme .breadcrumb-item {
    color: #94a3b8 !important;
}

.dark_theme .breadcrumb-item.active {
    color: #e2e8f0 !important;
}

/* Dark Theme - Pagination */
.dark_theme .pagination {
    background-color: transparent !important;
}

.dark_theme .page-item {
    background-color: #1e293b !important;
    border-color: #475569 !important;
}

.dark_theme .page-link {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

.dark_theme .page-item:hover .page-link {
    background-color: #334155 !important;
    color: #f8fafc !important;
}

.dark_theme .page-item.active .page-link {
    background-color: var(--accent_primary, #3b82f6) !important;
    color: #ffffff !important;
    border-color: var(--accent_primary, #3b82f6) !important;
}

/* Dark Theme - Borders */
.dark_theme hr,
.dark_theme .divider {
    border-color: #334155 !important;
    background-color: #334155 !important;
}

/* Dark Theme - Scrollbars */
.dark_theme ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: #0f172a;
}

.dark_theme ::-webkit-scrollbar-track {
    background-color: #1e293b;
}

.dark_theme ::-webkit-scrollbar-thumb {
    background-color: #475569;
    border-radius: 4px;
}

.dark_theme ::-webkit-scrollbar-thumb:hover {
    background-color: #64748b;
}

/* Dark Theme - Code and Pre */
.dark_theme code,
.dark_theme pre {
    background-color: #0f172a !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

/* Dark Theme - Blockquote */
.dark_theme blockquote {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-left-color: var(--accent_primary, #60a5fa) !important;
}

/* Dark Theme - List Groups */
.dark_theme .list-group-item {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

.dark_theme .list-group-item:hover {
    background-color: #334155 !important;
}

/* Dark Theme - Form View Specific */
.dark_theme .formview-container {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

.dark_theme .erp_content__container {
    background-color: #0f172a !important;
}

.dark_theme .editor-container {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}

/* Dark Theme - Special Elements */
.dark_theme .highlighted {
    background-color: var(--accent_primary, #3b82f6) !important;
    color: #ffffff !important;
}

.dark_theme .gray-bg {
    background-color: #1e293b !important;
}

.dark_theme .navy-bg {
    background-color: #0f172a !important;
}

/* Dark Theme - Buttons Container */
.dark_theme .defaultButtonsContainer,
.dark_theme .buttonsRow,
.dark_theme .button-panel,
.dark_theme .gridViewButtonsContainer {
    background-color: transparent !important;
    border-color: #334155 !important;
}

.dark_theme .gridViewButtonsContainer:not(:empty) {
    background-color: transparent !important;
}

.dark_theme .setDisplayModeButtonsContainer {
    background-color: transparent !important;
}

/* Dark Theme - Table cells and rows containing buttons */
.dark_theme td.gridViewButtonsContainer,
.dark_theme td:has(.gridViewButtonsContainer),
.dark_theme tr:has(.gridViewButtonsContainer),
.dark_theme table tr:has(.buttonsRow),
.dark_theme .table-main tr:has(.button-panel) {
    background-color: transparent !important;
}

.dark_theme .table-main > tr > td:has(.gridViewButtonsContainer),
.dark_theme .table-main > tr > td:has(.buttonsRow),
.dark_theme .table-main > tr > td:has(.button-panel) {
    background-color: transparent !important;
    border-color: #334155 !important;
}

.dark_theme .buttonGroup,
.dark_theme .groupButtonContainer {
    background-color: transparent !important;
    color: #cbd5e1 !important;
}

.dark_theme .buttonGroup span {
    color: #cbd5e1 !important;
}

.dark_theme .searchButtonsContainer {
    background-color: #1e293b !important;
}

/* Dark Theme - Filter Buttons */
.dark_theme .show_filters_popup_button {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #475569 !important;
}

.dark_theme .show_filters_popup_button:hover {
    background-color: #334155 !important;
    border-color: #64748b !important;
    color: #f8fafc !important;
}

/* Dark Theme - Clear Filters Button */
.dark_theme .clear_applied_filters_button {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%) !important;
    border-color: #dc2626 !important;
}

.dark_theme .clear_applied_filters_button:hover {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%) !important;
}

/* Dark Theme - Icon Buttons */
.dark_theme .icon {
    filter: brightness(1.5);
}

.dark_theme .icon:hover {
    filter: brightness(2);
}

/* Dark Theme - Over-lay */
.dark_theme .over-lay {
    background-color: rgba(0, 0, 0, 0.85);
}

/* Dark Theme - Image Container */
.dark_theme .image-container {
    border-color: #334155;
}

/* Dark Theme - Button Container Spans */
.dark_theme .btn-container span {
    background-color: #1e293b;
    border-color: #475569;
    color: #cbd5e1;
}

.dark_theme .btn-container span:hover {
    background-color: var(--accent_primary, #3b82f6);
    border-color: var(--accent_primary, #3b82f6);
    color: #ffffff;
}

/* Dark Theme - Specific Component Overrides */
.dark_theme .style_default,
.dark_theme .style_bordered,
.dark_theme .style_filled,
.dark_theme .style_card {
    background-color: #1e293b !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

.dark_theme .style_outlined {
    background-color: transparent !important;
    border-color: #64748b !important;
    color: #cbd5e1 !important;
}

.dark_theme .style_minimal {
    background-color: transparent !important;
    color: #cbd5e1 !important;
}

.dark_theme .style_glass {
    background: rgba(30, 41, 59, 0.7) !important;
    border-color: rgba(71, 85, 105, 0.5) !important;
    backdrop-filter: blur(10px);
}

.dark_theme .style_shadow {
    background-color: #1e293b !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3) !important;
}

.dark_theme .style_neon {
    background-color: #0f172a !important;
    border-color: var(--accent_primary, #3b82f6) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5), inset 0 0 20px rgba(59, 130, 246, 0.1) !important;
}

.dark_theme .style_gradient {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

/* Dark Theme - Loading Overlay */
.dark_theme dialog.ai_loading_overlay .ai_loader_content {
    background: #1e293b !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

.dark_theme dialog.ai_loading_overlay .ai_spinner {
    border-color: #334155 !important;
    border-top-color: #818cf8 !important;
}

.dark_theme dialog.ai_loading_overlay .loader_text {
    color: #f1f5f9 !important;
}

.dark_theme dialog.ai_loading_overlay .loader_subtext {
    color: #64748b !important;
}

/* Dark Theme - Theme Panel (ensure it works in dark mode) */
.dark_theme .theme_panel {
    background: #0f172a !important;
    border-left-color: #334155 !important;
}

.dark_theme .theme_panel_header {
    border-bottom-color: #334155 !important;
}

.dark_theme .theme_panel_footer {
    border-top-color: #334155 !important;
}

/* Dark Theme - Color Swatches */
.dark_theme .color-box {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Dark Theme - Selection */
.dark_theme ::selection {
    background-color: var(--accent_primary, #3b82f6);
    color: #ffffff;
}

/* Dark Theme - Focus Outlines */
.dark_theme *:focus-visible {
    outline-color: var(--accent_primary, #60a5fa);
}

/* Dark Theme - Disabled States */
.dark_theme button:disabled,
.dark_theme input:disabled,
.dark_theme select:disabled,
.dark_theme textarea:disabled {
    background-color: #0f172a !important;
    color: #475569 !important;
    border-color: #334155 !important;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Dark Theme - Placeholder Text */
.dark_theme input::placeholder,
.dark_theme textarea::placeholder {
    color: #64748b !important;
    opacity: 1;
}

/* Dark Theme - Text Selection in Inputs */
.dark_theme input::-moz-selection,
.dark_theme textarea::-moz-selection {
    background-color: var(--accent_primary, #3b82f6);
    color: #ffffff;
}

.dark_theme input::selection,
.dark_theme textarea::selection {
    background-color: var(--accent_primary, #3b82f6);
    color: #ffffff;
}

/* Dark Theme - SVG Icons */
.dark_theme svg {
    color: inherit;
    fill: currentColor;
}

/* Dark Theme - Images */
.dark_theme img {
    opacity: 0.9;
}

.dark_theme img:hover {
    opacity: 1;
}

/* Dark Theme - Shadow Adjustments */
.dark_theme .shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5) !important;
}

.dark_theme .shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.4) !important;
}

.dark_theme .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4) !important;
}

.dark_theme .shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4) !important;
}

.dark_theme .shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4) !important;
}

/* Dark Theme - Ensure all white backgrounds become dark (EXCEPT DASHBOARD) */
.dark_theme [style*="background-color: white"]:not([class*="dashboard"]):not(.dashboardItem):not(.dashboardItem *):not(.single_dashboard_report_item):not(.single_dashboard_report_item *),
.dark_theme [style*="background-color: #fff"]:not([class*="dashboard"]):not(.dashboardItem):not(.dashboardItem *):not(.single_dashboard_report_item):not(.single_dashboard_report_item *),
.dark_theme [style*="background-color: #ffffff"]:not([class*="dashboard"]):not(.dashboardItem):not(.dashboardItem *):not(.single_dashboard_report_item):not(.single_dashboard_report_item *),
.dark_theme [style*="background: white"]:not([class*="dashboard"]):not(.dashboardItem):not(.dashboardItem *):not(.single_dashboard_report_item):not(.single_dashboard_report_item *),
.dark_theme [style*="background: #fff"]:not([class*="dashboard"]):not(.dashboardItem):not(.dashboardItem *):not(.single_dashboard_report_item):not(.single_dashboard_report_item *),
.dark_theme [style*="background: #ffffff"]:not([class*="dashboard"]):not(.dashboardItem):not(.dashboardItem *):not(.single_dashboard_report_item):not(.single_dashboard_report_item *) {
    background-color: #1e293b !important;
}

/* Dark Theme - Ensure all black text becomes light (EXCEPT DASHBOARD) */
.dark_theme [style*="color: black"]:not([class*="dashboard"]):not(.dashboardItem):not(.dashboardItem *):not(.single_dashboard_report_item):not(.single_dashboard_report_item *),
.dark_theme [style*="color: #000"]:not([class*="dashboard"]):not(.dashboardItem):not(.dashboardItem *):not(.single_dashboard_report_item):not(.single_dashboard_report_item *),
.dark_theme [style*="color: #000000"]:not([class*="dashboard"]):not(.dashboardItem):not(.dashboardItem *):not(.single_dashboard_report_item):not(.single_dashboard_report_item *) {
    color: #e2e8f0 !important;
}

/* ========================================
   DASHBOARD EXCEPTIONS - Force Light Theme Colors
   ======================================== */

/* Remove dark theme color/filter from dashboard items (keep original backgrounds) */
.dark_theme .dashboardItem,
.dark_theme .dashboardItem *,
.dark_theme .dashboardItemHeader,
.dark_theme .dashboardItemHeader *,
.dark_theme .dashboardItemInlineButtons,
.dark_theme .dashboardItemInlineButtons *,
.dark_theme .single_dashboard_report_item,
.dark_theme .single_dashboard_report_item *,
.dark_theme .dashboard_report_items,
.dark_theme .dashboard_report_items *,
.dark_theme [class*="dashboard"],
.dark_theme [class*="dashboard"] *,
.dark_theme [id*="dashboard"],
.dark_theme [id*="dashboard"] * {
    color: unset !important;
    filter: none !important;
}

/* Ensure dashboard buttons keep original light theme styling */
.dark_theme .dashboardItem button,
.dark_theme .single_dashboard_report_item button,
.dark_theme .add_new_dashboard button,
.dark_theme .dashboard button,
.dark_theme [class*="dashboard"] button {
    color: unset !important;
    filter: none !important;
    opacity: unset !important;
}

/* Keep dashboard inline buttons in their original appearance */
.dark_theme .dashboardItemInlineButtons .editDashboardItem,
.dark_theme .dashboardItemInlineButtons .showDashboardItemContextMenu {
    opacity: unset !important;
    filter: none !important;
}

/* Dashboard cards and metrics - remove dark theme filters only */
.dark_theme .metric_card,
.dark_theme .metric_card *,
.dark_theme .info_card,
.dark_theme .info_card *,
.dark_theme .quick_stat,
.dark_theme .quick_stat *,
.dark_theme .status_filter,
.dark_theme .status_filter *,
.dark_theme .simple_metric,
.dark_theme .simple_metric *,
.dark_theme .progress_ring,
.dark_theme .progress_ring *,
.dark_theme .metric_grid,
.dark_theme .metric_grid *,
.dark_theme .multi_value_card,
.dark_theme .multi_value_card *,
.dark_theme .split_value_card,
.dark_theme .split_value_card * {
    color: unset !important;
    filter: none !important;
}

/* Dashboard charts and visualizations */
.dark_theme [class*="dashboard"] [class*="card"],
.dark_theme [class*="dashboard"] [class*="card"] *,
.dark_theme [class*="dashboard"] [class*="metric"],
.dark_theme [class*="dashboard"] [class*="metric"] *,
.dark_theme [class*="dashboard"] [class*="chart"],
.dark_theme [class*="dashboard"] [class*="chart"] * {
    color: unset !important;
    filter: none !important;
}

/* Dashboard hover and interactive states */
.dark_theme .dashboardItem:hover,
.dark_theme .dashboardItem:hover *,
.dark_theme .dashboardItem:hover button {
    color: unset !important;
    filter: none !important;
}

/* Dashboard action buttons */
.dark_theme .action_button,
.dark_theme .action_button *,
.dark_theme button.action_button,
.dark_theme button.action_button * {
    color: unset !important;
    filter: none !important;
}

/* Dashboard container - remove filters */
.dark_theme .single_dashboard_container,
.dark_theme .dashboard_container,
.dark_theme [class*="Dashboard"] {
    filter: none !important;
}

/* Dashboard text elements */
.dark_theme [class*="dashboard"] h1,
.dark_theme [class*="dashboard"] h2,
.dark_theme [class*="dashboard"] h3,
.dark_theme [class*="dashboard"] h4,
.dark_theme [class*="dashboard"] h5,
.dark_theme [class*="dashboard"] h6,
.dark_theme [class*="dashboard"] p,
.dark_theme [class*="dashboard"] span,
.dark_theme [class*="dashboard"] div {
    color: unset !important;
    filter: none !important;
}

/* Dashboard inputs and forms */
.dark_theme [class*="dashboard"] input,
.dark_theme [class*="dashboard"] select,
.dark_theme [class*="dashboard"] textarea {
    color: unset !important;
    filter: none !important;
}

/* Dark Theme - Print Styles Override */
@media print {
    .dark_theme {
        background-color: white !important;
        color: black !important;
    }
    
    .dark_theme * {
        background-color: white !important;
        color: black !important;
    }
}

/* ========================================
   NOTIFIER / TOAST STYLES - FUTURISTIC GLASSMORPHISM
   ======================================== */

/* Notifier Overlay - backdrop for error notifications */
.notifierOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notifierOverlay.active {
    opacity: 1;
}

/* Dark theme overlay */
.dark_theme .notifierOverlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Overlay hint text - Minimalistic and professional */
.overlayHintText {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    pointer-events: none;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: fadeInHint 0.6s ease-out 0.5s forwards;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInHint {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}

.notifierOverlay:hover .overlayHintText {
    color: rgba(255, 255, 255, 0.9);
}

/* Dark theme hint text */
.dark_theme .overlayHintText {
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.dark_theme .notifierOverlay:hover .overlayHintText {
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive hint text */
@media (max-width: 768px) {
    .overlayHintText {
        font-size: 14px;
        bottom: 40px;
        top: auto;
        transform: translateX(-50%);
    }
    
    @keyframes fadeInHint {
        0% {
            opacity: 0;
            transform: translateX(-50%) translateY(10px);
        }
        100% {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
    }
}

/* Keyframe animations - Clean and professional */
@keyframes slideInFromRight {
    0% {
        transform: translate(120%, -120%) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

@keyframes slideOutToRight {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(120%, -120%) scale(0.95);
        opacity: 0;
    }
}

.notifierContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999999;
    padding: 18px 22px;
    border-radius: 12px;
    min-width: 320px;
    max-width: min(600px, calc(100vw - 40px));
    width: fit-content;
    cursor: pointer;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Error notifications - Clean and professional */
.notifierContainer.error {
    background: #dc2626;
    color: #fff;
    cursor: default;
    border-left: 4px solid #991b1b;
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.25), 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translate(120%, -120%) scale(0.95);
}

.notifierContainer.error.animate {
    animation: slideInFromRight 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Success notifications - Clean */
.notifierContainer.success {
    background: #10b981;
    color: white;
    border-left: 4px solid #059669;
    transform: translateY(-20px);
}

.notifierContainer.success.animate {
    transform: translateY(0);
    opacity: 1;
}

/* Info notifications - Clean */
.notifierContainer.information {
    background: #3b82f6;
    color: white;
    border-left: 4px solid #2563eb;
    transform: translateY(-20px);
}

.notifierContainer.information.animate {
    transform: translateY(0);
    opacity: 1;
}

/* Warning notifications - Clean */
.notifierContainer.warning {
    background: #f59e0b;
    color: white;
    border-left: 4px solid #d97706;
    transform: translateY(-20px);
}

.notifierContainer.warning.animate {
    transform: translateY(0);
    opacity: 1;
}

/* Notifier image icon - Clean and simple */
.notifierImage {
    width: 36px;
    height: 36px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.notifierContainer.error .notifierImage::before {
    content: "⚠";
    font-size: 20px;
    line-height: 1;
}

.notifierContainer.success .notifierImage::before {
    content: "✓";
    font-size: 20px;
    line-height: 1;
    font-weight: bold;
}

.notifierContainer.information .notifierImage::before {
    content: "ℹ";
    font-size: 20px;
    line-height: 1;
}

.notifierContainer.warning .notifierImage::before {
    content: "⚠";
    font-size: 20px;
    line-height: 1;
}

/* Notifier message text - Clean typography */
.notifierMessage {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    padding-right: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Close button for error notifications - Minimal compact design */
.notifierClose {
    width: auto;
    padding-left: 8px;
}

.notifierCloseBtn {
    background: rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease !important;
    color: white !important;
    padding: 0 !important;
}

.notifierCloseBtn:hover {
    background: rgba(0, 0, 0, 0.25) !important;
    transform: scale(1.1) !important;
}

.notifierCloseBtn:active {
    transform: scale(0.9);
    background: rgba(0, 0, 0, 0.3);
}

.notifierCloseBtn svg {
    display: block;
    width: 12px;
    height: 12px;
}

/* Dark theme close button */
.dark_theme .notifierCloseBtn {
    background: rgba(255, 255, 255, 0.15);
}

.dark_theme .notifierCloseBtn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.dark_theme .notifierCloseBtn:active {
    background: rgba(255, 255, 255, 0.3);
}

/* Notifier buttons container - Clean */
.notifierButtons {
    margin-left: 12px;
}

.notifierButtons .buttonsContainer {
    display: flex;
    gap: 8px;
}

.notifierButtons button {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notifierButtons button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.notifierButtons button:active {
    transform: translateY(0);
}

/* Table layout for notifier content */
.notifierContainer .tableRow {
    display: flex;
    align-items: center;
    width: 100%;
}

.notifierContainer .tableCell {
    display: flex;
    align-items: center;
}

/* Dark theme support for notifiers - Clean */
.dark_theme .notifierContainer.error {
    background: #991b1b;
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dark_theme .notifierContainer.success {
    background: #047857;
}

.dark_theme .notifierContainer.information {
    background: #1e40af;
}

.dark_theme .notifierContainer.warning {
    background: #b45309;
}

/* Hover effect on the entire notification */
.notifierContainer:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.12);
}

.notifierContainer.error:hover {
    box-shadow: 0 12px 48px rgba(220, 38, 38, 0.3), 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notifierContainer {
        min-width: 280px;
        max-width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
        width: auto;
        padding: 16px 18px;
    }
    
    .notifierContainer.error {
        transform: translate(0, 0%) scale(1);
    }
    
    .notifierContainer.error.animate {
        animation: slideInMobile 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    @keyframes slideInMobile {
        0% {
            transform: translate(0, 0%) scale(1);
            opacity: 0;
        }
        60% {
            transform: translate(0, 0px) scale(1);
        }
        100% {
            transform: translate(0, 0) scale(1);
            opacity: 1;
        }
    }
    
    .notifierImage {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }
    
    .notifierMessage {
        font-size: 14px;
    }
    
    .notifierCloseBtn {
        width: 32px;
        height: 32px;
    }
}

/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .notifierContainer,
    .notifierContainer *,
    .notifierOverlay {
        animation: none !important;
        transition: opacity 0.2s ease, transform 0.2s ease !important;
    }
    
    .notifierContainer.error.animate {
        transform: translate(0, 0);
        opacity: 1;
    }
}

body.pc dialog {
    max-width: none;
    max-height: none;
    outline: none;
    box-shadow: none;
    background: rgba(25, 25, 25, 0.55) !important;
}

dialog::backdrop {
    background: transparent !important;
    backdrop-filter: blur(2px);
}

.subModule-container.TestABN{
    & .defaultButtonsContainer .filter-inlineTabFilterPanel{
        display: none !important;
    }
    & .setDisplayModeButtonsContainer .show_filters_popup_button{
        display: none !important;
    }
}

.subModule-container.hide_all_grid_buttons_panel{
    & .button-panel{
        display: none !important;
    }
}

.formview-row-navigator .filter_wrapper{
    min-width: 218px !important;
}

.formview-row-navigator .filter_wrapper .filter_trigger{
    border-radius: 7px !important;
}

.filter-tabPanel.show_as_side_popup .filter_wrapper{
    min-width: 218px !important;
}

