:root[data-theme]{--jx-page:#f1f4f9;--jx-surface:#fff;--jx-soft:#f5f7fb;--jx-elevated:#f8fafc;--jx-field:#f0f3f8;--jx-field-hover:#e4eaf3;--jx-ink:#243448;--jx-muted:#68788c;--jx-line:#dfe6ee;--jx-link:#2878c1;--jx-link-hover:#1d5fa0;--jx-accent:#4c8bf5;--jx-accent-hover:#3b78e7;--page:var(--jx-page);--surface:var(--jx-surface);--field:var(--jx-field);--ink:var(--jx-ink);--muted:var(--jx-muted);--line:var(--jx-line);--link:var(--jx-link);color-scheme:light}
:root[data-theme=dark]{--jx-page:#0f1722;--jx-surface:#182332;--jx-soft:#141e2b;--jx-elevated:#1e2b3c;--jx-field:#213042;--jx-field-hover:#293b50;--jx-ink:#e6eef8;--jx-muted:#9eb0c4;--jx-line:#2c3c4f;--jx-link:#73b6ff;--jx-link-hover:#9bcaff;--jx-accent:#4c8bf5;--jx-accent-hover:#3b78e7;color-scheme:dark;--bs-body-bg:#0f1722;--bs-body-color:#e6eef8;--bs-border-color:#2c3c4f;--bs-secondary-color:#9eb0c4;--bs-tertiary-bg:#213042;--bs-emphasis-color:#e6eef8;--bs-heading-color:#e6eef8;--bs-card-bg:#182332;--bs-card-cap-bg:#1e2b3c;--bs-card-border-color:#2c3c4f;--bs-modal-bg:#182332;--bs-modal-border-color:#2c3c4f;--bs-dropdown-bg:#1e2b3c;--bs-dropdown-color:#e6eef8;--bs-dropdown-border-color:#2c3c4f;--bs-dropdown-link-color:#e6eef8;--bs-dropdown-link-hover-bg:#213042;--bs-dropdown-link-hover-color:#73b6ff;--bs-list-group-bg:#182332;--bs-list-group-color:#e6eef8;--bs-list-group-border-color:#2c3c4f;--bs-table-bg:#182332;--bs-table-color:#e6eef8;--bs-table-border-color:#2c3c4f;--bs-table-striped-bg:#141e2b;--bs-table-hover-bg:#213042;--bs-pagination-bg:#213042;--bs-pagination-color:#e6eef8;--bs-pagination-border-color:#2c3c4f;--bs-pagination-hover-bg:#293b50;--bs-pagination-disabled-bg:#141e2b}

html[data-theme] body{background-color:var(--jx-page)!important;color:var(--jx-ink)}
html[data-theme] :is(.page-container,.page-wrapper,.help-page-container,.scrollable-page,.public-page-container){background-color:var(--jx-page)}
html[data-theme] :is(.card:not([class*="bg-"]),.card.bg-white,.modal-content,.dropdown-menu,.list-group-item,.navbar-custom,.public-navbar,.sidebar,.form-signin,.select2-drop,.popover){background-color:var(--jx-surface);color:var(--jx-ink);border-color:var(--jx-line)}
html[data-theme] :is(.card-header,.card-footer,.modal-header,.modal-footer,.list-group,.dropdown-divider,.b-b,.b-t,.b-l,.b-r){border-color:var(--jx-line)}
html[data-theme] :is(.text-off,.text-muted,.help-breadcrumb,.breadcrumb-item,.form-text){color:var(--jx-muted)}
html[data-theme] :is(.dropdown-item,.navbar .nav-link,.help-category-box,.help-category-box h4,.help-catagory .list-group-item){color:var(--jx-ink)}
html[data-theme] :is(.dropdown-item:hover,.dropdown-item:focus,.help-category-box:hover,.help-catagory .list-group-item:hover){background-color:var(--jx-field)!important;color:var(--jx-link)!important}
html[data-theme] .help-catagory .list-group-item.active{background-color:#2879bd26!important;border-color:var(--jx-link)!important;color:var(--jx-link)!important}
html[data-theme] :is(.table,.table th,.table td){color:var(--jx-ink);border-color:var(--jx-line)}
html[data-theme] :is(.page-link,.btn-default){background-color:var(--jx-field);border-color:var(--jx-line);color:var(--jx-ink)}

/* === Dark mode: comprehensive RISE CRM + public views === */
html[data-theme=dark]{scrollbar-color:#36495e #141e2b}
html[data-theme=dark] ::-webkit-scrollbar{width:9px;height:9px}
html[data-theme=dark] ::-webkit-scrollbar-track{background:var(--jx-soft)}
html[data-theme=dark] ::-webkit-scrollbar-thumb{background:#34465b;border-radius:6px;border:2px solid var(--jx-soft)}
html[data-theme=dark] ::-webkit-scrollbar-thumb:hover{background:#455b75}

html[data-theme=dark] #pre-loader{background-color:var(--jx-page)!important}
html[data-theme=dark] .app-loader .loading{border-color:var(--jx-link);border-top-color:transparent}

/* Surfaces & utility backgrounds */
html[data-theme=dark] :is(.default-bg,.help-page-container,.content-sidebar,.email-template-list,.roles-list){background-color:var(--jx-page)!important;color:var(--jx-ink)}
html[data-theme=dark] :is(.bg-white,.bg-all-white,.bg-light,.bg-off-white,.bg-f5,.bg-f7,.help-search-box-container,.message-box,.chat-body,.dropdown-details,.dropdown-details.bg-white,.notepad,.app-modal-body,.app-modal-fixed-close-button,.modal-mask,.custom-bg-modal .modal-dialog){background-color:var(--jx-surface)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.card:not(.bg-primary):not(.bg-info):not(.bg-success):not(.bg-danger):not(.bg-coral):not(.bg-warning),.card.bg-white,.card.bg-light,.card:not(.bg-primary):not(.bg-info):not(.bg-success):not(.bg-danger):not(.bg-coral):not(.bg-warning) > .card-body,.post-dropzone,.card-body.post-dropzone){background-color:var(--jx-surface)!important;color:var(--jx-ink);border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.card-header,.card-footer,.tab-title,.page-title,.page-title.clearfix,.items-page-title,.contracts-page-title,.estimate-page-title,.proposal-page-title,.notes-page-title,.time-card-page-title,.tickets-page-title,.expenses-page-title,.leads-page-title,.leaves-page-title,.clients-project-page-title,.custom-widget .custom-widget-title){background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .page-title :is(h1,h2,h3,h4,h5,h6,.title){color:var(--jx-ink)!important}
html[data-theme=dark] .bg-dark-success{background-color:#172b28!important;color:var(--jx-ink)!important}

/* Colored KPI widgets & banners */
html[data-theme=dark] .card.bg-primary,html[data-theme=dark] .bg-primary.card{background-color:#2b5cb8!important}
html[data-theme=dark] .card.bg-info,html[data-theme=dark] .bg-info.card{background-color:#196cae!important}
html[data-theme=dark] .btn-info{background-color:#1a72b8!important;border-color:#1a72b8!important;color:#fff!important}
html[data-theme=dark] .btn-success{background-color:#08926a!important;border-color:#08926a!important;color:#fff!important}
html[data-theme=dark] .badge.bg-warning{color:#161f2c!important}
html[data-theme=dark] :is(.bg-primary,.bg-info,.bg-success,.bg-danger,.bg-coral) :is(h1,h2,h3,h4,strong,.white-link){color:#fff!important}
html[data-theme=dark] :is(.bg-primary,.bg-info,.bg-success,.bg-danger,.bg-coral) :is(.text-off,.uppercase,small,span:not(.badge)){color:rgba(255,255,255,0.88)!important}
html[data-theme=dark] .bg-transparent-white{background:transparent!important;color:var(--jx-muted)!important;padding:0!important}
html[data-theme=dark] :is(.card.bg-primary,.card.bg-info,.card.bg-success,.card.bg-danger,.card.bg-coral,.widget-icon) .bg-transparent-white{background:rgba(255,255,255,0.16)!important;color:#fff!important;padding:2px 8px!important}
html[data-theme=dark] .widget-details h1{color:var(--jx-ink)!important}
html[data-theme=dark] .widget-details span{color:var(--jx-muted)!important}
html[data-theme=dark] .progress{background-color:var(--jx-field)!important}

/* Borders */
html[data-theme=dark] :is(.b-a,.b-t,.b-r,.b-b,.b-l,.b-r-2,.border-white,.b-white,.border-start,.border-end,.border-top,.border-bottom,.widget,.add-column-drop,.active-team-members-list .message-row,.permission-list li,.app-modal-sidebar,.milestone,.estimate_request_form.list-group-item,.custom-date-range-lable,.custom-date-range-dropdown .dropdown-toggle){border-color:var(--jx-line)!important}
html[data-theme=dark] .dashed-row .form-group{border-bottom:1px dashed var(--jx-line)!important}
html[data-theme=dark] .dashed-row .bd{border-bottom:1px dotted var(--jx-line)!important}
html[data-theme=dark] .box-title span{background:var(--jx-elevated)!important;color:var(--jx-ink)!important}
html[data-theme=dark] .box-title::after{background-color:var(--jx-line)!important}

/* Typography & links */
html[data-theme=dark] :is(h1,h2,h3,h4,h5,h6,.dark,.text-dark,.color-dark,.text-default,.breadcrumb-item.active,.keyboard-shortcut-info-icon,#profile-image-section){color:var(--jx-ink)!important}
html[data-theme=dark] :is(.text-off,.text-muted,.help-breadcrumb,.breadcrumb-item,.form-text,.dropdown-header){color:var(--jx-muted)!important}
html[data-theme=dark] a:not(.btn):not(.badge):not(.label):not(.nav-link):not(.dropdown-item):not(.list-group-item){color:var(--jx-link)}
html[data-theme=dark] a:not(.btn):not(.badge):not(.label):not(.nav-link):not(.dropdown-item):not(.list-group-item):hover{color:var(--jx-link-hover)}
html[data-theme=dark] .dark:hover,html[data-theme=dark] .dark:focus{color:var(--jx-link)!important}
html[data-theme=dark] :is(pre,code){background-color:#111923!important;color:#d9e6f6!important;border:1px solid var(--jx-line)}
html[data-theme=dark] blockquote{background:var(--jx-elevated)!important;border-left-color:var(--jx-link)!important;color:var(--jx-ink)!important}
html[data-theme=dark] hr{border-color:var(--jx-line);opacity:1}

/* Sidebar & Logo & Topbar */
html[data-theme=dark] :is(.sidebar,#sidebar-menu,#sidebar-menu .sidebar-menu,.sidebar-scroll){background-color:var(--jx-soft)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.admin-view,.team-member-view,.client-view) .sidebar-scroll{padding-bottom:74px}
html[data-theme=dark] :is(.sidebar .sidebar-brand,.sidebar .brand-logo,.sidebar .brand-logo-mini){background-color:var(--jx-soft)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.sidebar-brand.brand-logo img.dashboard-image,.public-navbar .navbar-brand img.dashboard-image,#site-logo-preview){filter:invert(1) brightness(0.95)}
html[data-theme=dark] .sidebar-menu li a{background-color:transparent!important;color:var(--jx-muted)!important}
html[data-theme=dark] .sidebar-menu li a:hover,html[data-theme=dark] .sidebar-menu li a:focus{background-color:var(--jx-field)!important;color:var(--jx-ink)!important}
html[data-theme=dark] .sidebar-menu li.active>a,html[data-theme=dark] .sidebar-menu li.open>a{background-color:rgba(76,139,245,0.16)!important;color:var(--jx-link)!important}
html[data-theme=dark] .sidebar-toggled .sidebar-menu li:hover,html[data-theme=dark] .sidebar-toggled .sidebar-menu li ul{background-color:var(--jx-elevated)!important;border-color:var(--jx-line)!important}

html[data-theme=dark] :is(.navbar-custom,.public-navbar,.mobile-bottom-menu){background-color:var(--jx-surface)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.navbar-custom .navbar-nav .nav-link,.public-navbar .navbar-nav .nav-link,.mobile-bottom-menu .nav-link){color:#cdd9e6!important}
html[data-theme=dark] :is(.navbar-custom .navbar-nav .nav-link:hover,.navbar-custom .navbar-nav .nav-link:focus,.public-navbar .navbar-nav .nav-link:hover,.mobile-bottom-menu .nav-link:hover){color:var(--jx-link)!important}
html[data-theme=dark] .navbar-toggler{border-color:var(--jx-line);color:var(--jx-ink)}
html[data-theme=dark] .navbar-toggler-icon{filter:invert(1)}
@media (max-width:500px){html[data-theme=dark] .mobile-bottom-menu{box-shadow:0 -8px 24px rgba(0,0,0,0.45)!important}html[data-theme=dark] .sidebar .sidebar-toggle-btn{color:var(--jx-link)!important}}

/* Tabs, Pills, List Groups, Settings */
html[data-theme=dark] :is(.nav-tabs,.nav-tabs.bg-white){background-color:var(--jx-surface)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .nav-tabs li a,html[data-theme=dark] .nav-tabs .nav-link{color:var(--jx-muted)!important;background-color:transparent!important}
html[data-theme=dark] .nav-tabs li a:hover,html[data-theme=dark] .nav-tabs li a:focus,html[data-theme=dark] .nav-tabs li .active,html[data-theme=dark] .nav-tabs li.active>a,html[data-theme=dark] .nav-tabs .nav-link.active{color:var(--jx-link)!important;border-color:transparent!important;background-color:transparent!important}
html[data-theme=dark] .nav-tabs li:not(.title-tab) a::after{background-color:var(--jx-link)!important}
html[data-theme=dark] #expense-tabs.nav-pills{background-color:var(--jx-field)!important}
html[data-theme=dark] .nav-pills .nav-link:not(.active){color:var(--jx-muted)}

html[data-theme=dark] :is(.list-group-item,.settings .list-group-item,.help-catagory .list-group-item,.content-sidebar .list-group .list-group-item){background-color:var(--jx-surface)!important;color:var(--jx-muted)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.list-group-item:not(.active):hover,.list-group-item:not(.active):focus,.settings .list-group-item:not(.active):hover,.help-catagory .list-group-item:not(.active):hover){background-color:var(--jx-field)!important;color:var(--jx-ink)!important}
html[data-theme=dark] :is(.list-group-item.active,.settings .list-group-item.active,.help-catagory .list-group-item.active){background-color:rgba(76,139,245,0.16)!important;border-color:var(--jx-link)!important;color:var(--jx-link)!important}
html[data-theme=dark] .list-group-item.unread-notification{background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important}
html[data-theme=dark] .highlight-toolbar{background-color:var(--jx-field)!important;color:var(--jx-ink)!important;border:1px solid var(--jx-line);border-radius:6px}
html[data-theme=dark] .grid-bg{background-color:var(--jx-field)!important}
html[data-theme=dark] .column-grid-link:hover .grid-bg{background-color:var(--jx-accent)!important}

/* Badges & Buttons */
html[data-theme=dark] :is(.badge-white,.badge-light,.badge.bg-light){background-color:var(--jx-field)!important;color:var(--jx-ink)!important;border:1px solid var(--jx-line)}
html[data-theme=dark] :is(.btn-default,.btn-light,.btn-outline-light,.btn-transparent,.dashboard-dropdown .dropdown-toggle,.custom-toolbar .dropdown-toggle,.datepicker-custom-selector,button.DTTT_button,div.DTTT_button,a.DTTT_button){background-color:var(--jx-field)!important;border-color:var(--jx-line)!important;color:var(--jx-ink)!important}
html[data-theme=dark] :is(.btn-default:hover,.btn-default:focus,.btn-light:hover,.btn-outline-light:hover,.btn-transparent:hover,.datepicker-custom-selector:hover,button.DTTT_button:hover,a.DTTT_button:hover){background-color:var(--jx-field-hover)!important;border-color:#3d526a!important;color:#fff!important}
html[data-theme=dark] :is(.btn.active,.btn-default.active,.btn-group .btn.active,label.btn.btn-default.active){background-color:rgba(76,139,245,0.22)!important;border-color:var(--jx-link)!important;color:var(--jx-link)!important}
html[data-theme=dark] .btn-secondary{background-color:#2c3a4b!important;border-color:#38495e!important;color:var(--jx-ink)!important}
html[data-theme=dark] .btn-secondary:hover{background-color:#36475c!important;color:#fff!important}
html[data-theme=dark] .btn-close{filter:invert(1) grayscale(100%) brightness(180%)}
html[data-theme=dark] :is(.select-member-field a.delete,.send-invitation-form .delete,.automation-form .delete,.calendar-ids-form .delete-post-dropzone,.edit-image-file .delete-saved-file,.external-tickets-embedded-code,.copy-file-link,.action-option,.view-item-details-link-btn,.dtr-details .edit:not(.dropdown-item),.dtr-details .delete:not(.dropdown-item),td.option a.edit,td.option a.delete){background-color:var(--jx-field)!important;border-color:var(--jx-line)!important;color:var(--jx-muted)!important}
html[data-theme=dark] :is(td.option a.edit:hover,.dtr-details .edit:not(.dropdown-item):hover){border-color:#15a37a!important;color:#3fe0b0!important;background-color:rgba(21,163,122,0.14)!important}
html[data-theme=dark] :is(td.option a.delete:hover,.dtr-details .delete:not(.dropdown-item):hover){border-color:#e04769!important;color:#ff7a96!important;background-color:rgba(224,71,105,0.14)!important}
html[data-theme=dark] td.dropdown-option button:hover{background-color:var(--jx-field-hover)!important;border-color:var(--jx-line)!important}

/* Forms & Modals */
html[data-theme=dark] :is(.modal-content,.modal-body,.modal .modal-dialog .modal-content,.modal .modal-dialog .modal-content .modal-body){background-color:var(--jx-surface)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.modal-header,.modal-footer,.modal .modal-dialog .modal-content .modal-header,.modal .modal-dialog .modal-content .modal-footer){background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.form-control,.form-select,.general-form .form-control,.general-form.white .form-control,select,textarea){background-color:var(--jx-field)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.form-control:focus,.form-select:focus,.general-form .form-control:focus,.general-form.white .form-control:focus,select:focus,textarea:focus){background-color:#1b2838!important;color:var(--jx-ink)!important;border-color:var(--jx-link)!important;box-shadow:0 0 0 2px rgba(115,182,255,0.2)!important}
html[data-theme=dark] :is(input,textarea)::placeholder{color:var(--jx-muted)!important;opacity:.82}
html[data-theme=dark] .form-check-input{background-color:var(--jx-field)!important;border-color:#536982!important}
html[data-theme=dark] .form-check-input:checked{background-color:var(--jx-accent)!important;border-color:var(--jx-accent)!important}
html[data-theme=dark] :is(.input-group-text,.input-group-addon){background-color:var(--jx-elevated)!important;border-color:var(--jx-line)!important;color:var(--jx-ink)!important}
html[data-theme=dark] #generate_password{background-color:var(--jx-field)!important;color:var(--jx-ink)!important}
html[data-theme=dark] .social-link{border-color:var(--jx-line)!important;color:var(--jx-ink)!important}

/* Select2 v3 */
html[data-theme=dark] :is(.select2-container .select2-choice,.select2-container-multi .select2-choices,.general-form.white .select2-container .select2-choice,.general-form.white .select2-container-multi.form-control,.general-form.white .select2-container-multi.form-control .select2-choices,.custom-toolbar .select2-container .select2-choice,.events-title-button.custom-toolbar .select2-container .select2-choice){background-color:var(--jx-field)!important;background-image:none!important;border-color:var(--jx-line)!important;color:var(--jx-ink)!important}
html[data-theme=dark] :is(.select2-container .select2-choice > .select2-chosen,.select2-chosen){color:var(--jx-ink)!important}
html[data-theme=dark] :is(.select2-container .select2-choice .select2-arrow,.select2-container .select2-choice div){background:transparent!important;border-left-color:var(--jx-line)!important}
html[data-theme=dark] :is(.select2-container .select2-choice .select2-arrow b,.select2-container .select2-choice abbr,.select2-search-choice-close){filter:invert(1) brightness(1.4)}
html[data-theme=dark] :is(.select2-drop,.select2-drop-active){background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .select2-search input{background-color:var(--jx-field)!important;background-image:none!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.select2-results,.select2-results .select2-result-label){background-color:transparent!important;color:var(--jx-ink)!important}
html[data-theme=dark] .select2-results .select2-highlighted{background-color:var(--jx-accent)!important;color:#fff!important}
html[data-theme=dark] :is(.select2-results .select2-no-results,.select2-results .select2-searching,.select2-results .select2-selection-limit){background-color:var(--jx-soft)!important;color:var(--jx-muted)!important}
html[data-theme=dark] .select2-container-multi .select2-choices .select2-search-choice{background-color:var(--jx-elevated)!important;border-color:var(--jx-line)!important;color:var(--jx-ink)!important}
html[data-theme=dark] .select2-container-multi .select2-choices .select2-search-field input{background:transparent!important;color:var(--jx-ink)!important}
html[data-theme=dark] .select2-container.select2-container-disabled .select2-choice{background-color:var(--jx-soft)!important;color:var(--jx-muted)!important}

/* Tables & DataTables */
html[data-theme=dark] .table{--bs-table-bg:var(--jx-surface);--bs-table-color:var(--jx-ink);--bs-table-border-color:var(--jx-line);--bs-table-striped-bg:var(--jx-soft);--bs-table-striped-color:var(--jx-ink);--bs-table-hover-bg:var(--jx-field);--bs-table-hover-color:var(--jx-ink)}
html[data-theme=dark] :is(.table,.table th,.table td,table.header-style){color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(table.dataTable thead th,table.dataTable thead td){background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.dataTable tbody tr,table.dataTable tbody th,table.dataTable tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td,table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.stripe tbody tr.odd,table.dataTable.stripe tbody tr.odd > td,table.dataTable tbody tr > .sorting_1,td.dataTables_empty){background-color:var(--jx-surface)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.table-striped>tbody>tr:nth-of-type(odd) > *,table.dataTable.stripe tbody tr.odd > *){background-color:var(--jx-soft)!important}
html[data-theme=dark] :is(table.dataTable.display tfoot th,table.dataTable.display tfoot td){background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.dataTable tbody tr:hover,.dataTable tbody tr:hover > td,.dataTable:not(.js-selection-mode) tbody tr:hover td,.table-hover>tbody>tr:hover > *){background-color:var(--jx-field)!important;color:var(--jx-ink)!important}
html[data-theme=dark] :is(.dataTable tbody tr.active td,.dataTable:not(.js-selection-mode) tbody tr.active td,.dataTable:not(.js-selection-mode) tbody tr.active:hover td){background-color:rgba(76,139,245,0.16)!important;color:var(--jx-ink)!important}
html[data-theme=dark] :is(table.dataTable > tbody > tr.child,table.dataTable > tbody > tr.child td.child,table.dataTable > tbody > tr.child ul.dtr-details > li){background-color:var(--jx-soft)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] table.dataTable.no-footer{border-bottom-color:var(--jx-line)!important}
html[data-theme=dark] .td-checkbox{background-color:var(--jx-field)!important}
html[data-theme=dark] .td-checkbox a,html[data-theme=dark] .checkbox-blank{background-color:var(--jx-field)!important;border-color:#4b617a!important}
html[data-theme=dark] .checkbox-blank:hover{background-color:var(--jx-field-hover)!important}
html[data-theme=dark] :is(.dataTables_filter input,.datatable-search,.custom-filter-search,.help-search-box){background-color:var(--jx-field)!important;border-color:var(--jx-line)!important;color:var(--jx-ink)!important}
html[data-theme=dark] :is(.dataTables_info,.dataTables_length label){color:var(--jx-muted)!important}
html[data-theme=dark] .dataTables_wrapper .dataTables_paginate .paginate_button{background:transparent!important;border-color:transparent!important}
html[data-theme=dark] :is(.pagination .page-link,.dataTables_wrapper .dataTables_paginate .paginate_button a){background-color:var(--jx-field)!important;border-color:var(--jx-line)!important;color:var(--jx-ink)!important}
html[data-theme=dark] :is(.pagination .page-link:hover,.dataTables_wrapper .dataTables_paginate .paginate_button .page-link:hover){background-color:var(--jx-field-hover)!important;color:#fff!important}
html[data-theme=dark] :is(.pagination .page-item.disabled .page-link,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled a){background-color:var(--jx-soft)!important;border-color:var(--jx-line)!important;color:#5a6c82!important}
html[data-theme=dark] :is(.pagination .page-item.active .page-link,.dataTables_wrapper .dataTables_paginate .paginate_button.active a){background-color:var(--jx-accent)!important;border-color:var(--jx-accent)!important;color:#fff!important}
html[data-theme=dark] .dt-print-view{background-color:var(--jx-surface)!important;color:var(--jx-ink)!important}

/* Dropdowns, Popovers, Alerts, Datepicker, Awesomplete, Atwho */
html[data-theme=dark] :is(.dropdown-menu,.popover,.app-popover,.datepicker.dropdown-menu,.bootstrap-timepicker-widget,.awesomplete > ul,.atwho-view){background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .dropdown-menu{box-shadow:0 10px 30px rgba(0,0,0,0.45)!important}
html[data-theme=dark] .dropdown-item{color:var(--jx-ink)!important}
html[data-theme=dark] :is(.dropdown-item:hover,.dropdown-item:focus,.dropdown-item:active){background-color:var(--jx-field)!important;color:var(--jx-link)!important}
html[data-theme=dark] :is(.popover-header,.popover-body){background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .app-popover .app-popover-arrow{background:var(--jx-elevated)!important}
html[data-theme=dark] .alert-warning{background-color:rgba(255,184,34,0.14)!important;border-color:rgba(255,184,34,0.35)!important;color:#ffd88a!important}
html[data-theme=dark] .datepicker table tr td,html[data-theme=dark] .datepicker table tr th{color:var(--jx-ink)}
html[data-theme=dark] :is(.datepicker table tr td.old,.datepicker table tr td.new){color:var(--jx-muted)!important;opacity:.5}
html[data-theme=dark] :is(.datepicker table tr td.day:hover,.datepicker table tr td.focused,.datepicker .datepicker-switch:hover,.datepicker .prev:hover,.datepicker .next:hover,.datepicker tfoot tr th:hover,.datepicker table tr td span.month:hover,.datepicker table tr td span.year:hover){background-color:var(--jx-field)!important;color:var(--jx-ink)!important}
html[data-theme=dark] :is(.datepicker table tr td.active,.datepicker table tr td.active.active,.datepicker table tr td span.active.active){background-color:var(--jx-accent)!important;border-color:var(--jx-accent)!important;color:#fff!important}
html[data-theme=dark] .datepicker table tr td.range{background-color:var(--jx-field)!important;color:var(--jx-ink)!important}
html[data-theme=dark] .datepicker-dropdown::after{border-bottom-color:var(--jx-elevated)!important}
html[data-theme=dark] .bootstrap-timepicker-widget table td input{background-color:var(--jx-field)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .bootstrap-timepicker-widget table td a{color:var(--jx-ink)!important}
html[data-theme=dark] .bootstrap-timepicker-widget table td a:hover{background-color:var(--jx-field)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .awesomplete ul li{color:var(--jx-ink)!important}
html[data-theme=dark] .awesomplete ul li[aria-selected="true"]{background-color:var(--jx-accent)!important;color:#fff!important}
html[data-theme=dark] .awesomplete ul li[aria-selected="false"]:hover{background-color:var(--jx-field)!important}
html[data-theme=dark] :is(.atwho-view .cur,.note-hint-group .active,.note-hint-item:hover){background-color:var(--jx-field)!important}

/* FullCalendar */
html[data-theme=dark] .fc-button,html[data-theme=dark] .fc-button-primary{background-color:var(--jx-field)!important;border-color:var(--jx-line)!important;color:var(--jx-ink)!important;box-shadow:none!important}
html[data-theme=dark] :is(.fc-button:hover,.fc-button-primary:hover,.fc-button-primary:not(:disabled).fc-button-active,.fc-state-active){background-color:var(--jx-accent)!important;border-color:var(--jx-accent)!important;color:#fff!important}
html[data-theme=dark] :is(.fc-theme-standard .fc-scrollgrid,.fc-theme-standard td,.fc-theme-standard th,.fc-theme-standard .fc-list){border-color:var(--jx-line)!important}
html[data-theme=dark] :is(.fc-col-header-cell,.fc-theme-standard .fc-list-day-cushion){background-color:var(--jx-elevated)!important}
html[data-theme=dark] :is(.fc-col-header-cell-cushion,.fc-daygrid-day-number,.fc-list-day-text,.fc-list-day-side-text,.fc-toolbar-title){color:var(--jx-ink)!important}
html[data-theme=dark] .fc-day-other .fc-daygrid-day-number{color:var(--jx-muted)!important;opacity:.55}
html[data-theme=dark] .fc .fc-daygrid-day.fc-day-today{background-color:rgba(76,139,245,0.14)!important}
html[data-theme=dark] .fc .fc-list-event:hover td{background-color:var(--jx-field)!important}

/* Kanban & Frappe Gantt & Timeline & Charts */
html[data-theme=dark] .kanban-container{background-color:var(--jx-soft)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .kanban-col-title{background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border:1px solid var(--jx-line)}
html[data-theme=dark] .kanban-item{background-color:var(--jx-surface)!important;color:var(--jx-ink)!important;border:1px solid var(--jx-line)!important}
html[data-theme=dark] .kanban-item:hover,html[data-theme=dark] .kanban-item:focus{background-color:var(--jx-field)!important;color:var(--jx-ink)!important}
html[data-theme=dark] .kanban-item-checked{background-color:var(--jx-soft)!important}
html[data-theme=dark] .kanban-input .form-control{background-color:var(--jx-field)!important;color:var(--jx-ink)!important}

html[data-theme=dark] .gantt-container{background-color:var(--jx-surface)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .gantt .grid-header{fill:var(--jx-elevated)!important;stroke:var(--jx-line)!important}
html[data-theme=dark] .gantt .grid-row{fill:var(--jx-surface)!important}
html[data-theme=dark] .gantt .grid-row:nth-child(even){fill:var(--jx-soft)!important}
html[data-theme=dark] .gantt .row-line{stroke:var(--jx-line)!important}
html[data-theme=dark] .gantt .tick{stroke:var(--jx-line)!important;stroke-width:.6}
html[data-theme=dark] .gantt .today-highlight{fill:rgba(76,139,245,0.16)!important;opacity:1}
html[data-theme=dark] .gantt .weekends-highlight{fill:rgba(255,255,255,0.04)!important}
html[data-theme=dark] .gantt .upper-text{fill:var(--jx-muted)!important}
html[data-theme=dark] .gantt .lower-text,html[data-theme=dark] .gantt .bar-label.big,html[data-theme=dark] .gantt .bar-invalid ~ .bar-label{fill:var(--jx-ink)!important}
html[data-theme=dark] .gantt-container .popup-wrapper{background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border:1px solid var(--jx-line)}

html[data-theme=dark] #timeline::before{background:var(--jx-line)!important;background-image:none!important}
html[data-theme=dark] #timeline .post-content .post-date::before{background:var(--jx-surface)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] #timeline .timeline-images .file-mockup{background:var(--jx-field)!important}
html[data-theme=dark] .chart-circle{background-color:var(--jx-surface)!important;color:var(--jx-ink)!important}

/* Floating action buttons, Chat, Dropzone, Notes, Sticky Note */
html[data-theme=dark] :is(.init-chat-icon,.init-save-icon,.init-cart-icon){background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border:1px solid var(--jx-line)!important;box-shadow:0 6px 20px rgba(0,0,0,0.45)!important}
html[data-theme=dark] :is(.init-chat-icon:hover,.init-save-icon:hover,.init-cart-icon:hover){background-color:var(--jx-field)!important;color:var(--jx-link)!important}
html[data-theme=dark] :is(.init-chat-icon,.init-save-icon,.init-cart-icon) svg{color:currentColor!important}
html[data-theme=dark] .init-chat-icon.has-message{background-color:#d93b5c!important;border-color:#d93b5c!important;color:#fff!important}
html[data-theme=dark] :is(.rise-chat-wrapper,.rise-chat-header,.rise-chat-footer,.rise-chat-footer textarea){background-color:var(--jx-surface)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .rise-chat-wrapper .message-row{border-bottom-color:var(--jx-line)!important}
html[data-theme=dark] .rise-chat-wrapper .message-row:hover{background-color:var(--jx-field)!important}
html[data-theme=dark] .chat-other .chat-msg{background-color:var(--jx-field)!important;color:var(--jx-ink)!important}
html[data-theme=dark] i.online{border-color:var(--jx-surface)!important}
html[data-theme=dark] :is(.dropzone,.dropzone .dz-preview .dz-image,.dz-image,.file-list-view){background-color:var(--jx-field)!important;border-color:var(--jx-line)!important;color:var(--jx-ink)!important}
html[data-theme=dark] .notes-grid-container .file-list-view{border-color:var(--jx-line)!important}
html[data-theme=dark] .notes-grid-container .note-grid-card.card-body{background-color:transparent!important}
html[data-theme=dark] .sticky-note{background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border:1px solid var(--jx-line)}
html[data-theme=dark] :is(.folder-item-content:hover,.folder-item-content:focus,.folder-item-content.focus,.selected-folder-item,.icon-palet .icon-tag:hover){background-color:var(--jx-field)!important}

/* TinyMCE 7 & Summernote */
html[data-theme=dark] .tox.tox-tinymce{border-color:var(--jx-line)!important;background-color:var(--jx-surface)!important}
html[data-theme=dark] :is(.tox .tox-editor-header,.tox .tox-toolbar,.tox .tox-toolbar__primary,.tox .tox-toolbar-overlord,.tox .tox-menubar,.tox .tox-statusbar){background-color:var(--jx-elevated)!important;border-color:var(--jx-line)!important;color:var(--jx-ink)!important}
html[data-theme=dark] :is(.tox .tox-tbtn,.tox .tox-split-button,.tox .tox-mbtn){background-color:transparent!important;color:var(--jx-ink)!important}
html[data-theme=dark] :is(.tox .tox-tbtn:hover,.tox .tox-tbtn--enabled,.tox .tox-mbtn:hover,.tox .tox-mbtn--active,.tox .tox-split-button:hover){background-color:var(--jx-field)!important;color:var(--jx-ink)!important;box-shadow:none!important}
html[data-theme=dark] :is(.tox .tox-tbtn svg,.tox .tox-split-button svg){fill:var(--jx-ink)!important}
html[data-theme=dark] .tox .tox-tbtn--disabled svg{fill:var(--jx-muted)!important;opacity:.45}
html[data-theme=dark] :is(.tox .tox-statusbar__wordcount,.tox .tox-statusbar__path-item,.tox .tox-tbtn__select-label){color:var(--jx-muted)!important}
html[data-theme=dark] .tox .tox-edit-area__iframe{background-color:var(--jx-surface)!important}
html[data-theme=dark] :is(.tox .tox-menu,.tox .tox-dialog,.tox .tox-dialog__header,.tox .tox-dialog__body,.tox .tox-dialog__footer){background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}
html[data-theme=dark] .tox .tox-collection__item{color:var(--jx-ink)!important}
html[data-theme=dark] .tox .tox-collection__item--active,html[data-theme=dark] .tox .tox-collection__item--enabled{background-color:var(--jx-field)!important;color:var(--jx-link)!important}
html[data-theme=dark] .tox .tox-textfield{background-color:var(--jx-field)!important;color:var(--jx-ink)!important;border-color:var(--jx-line)!important}

html[data-theme=dark] :is(.note-editor,.note-editor .note-toolbar,.note-editor .note-statusbar,.note-editor .note-statusbar .note-resizebar,.note-editor .note-toolbar .btn,.note-editor .note-btn){background-color:var(--jx-elevated)!important;border-color:var(--jx-line)!important;color:var(--jx-ink)!important}
html[data-theme=dark] .note-editor .note-editing-area .note-editable{background-color:var(--jx-surface)!important;color:var(--jx-ink)!important}
html[data-theme=dark] .note-editor .popover-content{background-color:var(--jx-elevated)!important;color:var(--jx-ink)!important}

/* Neutralize pasted light inline styles inside rich text areas & expanded rows */
html[data-theme=dark] :is(#help-page-view-content-area,.note-view-body,.article-content,.dataTable td,.card-body) :is([style*="color: rgb(0, 0, 0)"],[style*="color: #000000"],[style*="color:#000000"],[style*="color: #000"],[style*="color:#000"],[style*="color: black"],[style*="color:black"]){color:var(--jx-ink)!important}
html[data-theme=dark] :is(#help-page-view-content-area,.note-view-body,.article-content,.dataTable td,.card-body) :is([style*="background-color: rgb(255, 255, 255)"],[style*="background-color: #ffffff"],[style*="background-color:#ffffff"],[style*="background-color: #fff"],[style*="background-color:#fff"],[style*="background-color: white"],[style*="background-color:white"],[style*="background: #ffffff"],[style*="background: #fff"],[style*="background: white"]){background-color:var(--jx-surface)!important}
html[data-theme=dark] .mfp-content,html[data-theme=dark] .mfp-iframe-scaler iframe{background-color:var(--jx-surface)!important;color:var(--jx-ink)!important}

/* Theme toggle button */
.global-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;margin:4px 8px;padding:8px;border:1px solid var(--jx-line);border-radius:9px;background:var(--jx-field);color:var(--jx-ink);cursor:pointer;vertical-align:middle}
.global-theme-toggle:hover{background:var(--jx-field-hover);border-color:var(--jx-link)}
.global-theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.global-theme-toggle:focus-visible{outline:3px solid var(--jx-link);outline-offset:2px}
.global-theme-floating{position:fixed;right:14px;top:12px;z-index:1050;margin:0}
@media print{.global-theme-toggle{display:none}}
.navbar-nav>.global-theme-nav-item{display:flex;align-items:center;align-self:stretch}
.global-theme-nav-item>.global-theme-toggle{margin:0 8px;width:34px;height:34px;flex-basis:34px;padding:7px}
.global-theme-nav-item>.global-theme-toggle svg{width:18px;height:18px;display:block}
