:root {
    color-scheme: dark;
    --theme-primary: #191c24;
    --theme-accent: #dc3545;
    --theme-info: #0dcaf0;
    --theme-success: #198754;
    --theme-danger: #e74a25;
    --theme-warning: #ffc107;
    --theme-background: #14171f;
    --theme-surface: #1d212b;
    --theme-surface-raised: #252a36;
    --theme-border: #363c49;
    --theme-text: #e6e8ed;
    --theme-text-muted: #a5abba;
    --theme-table-header-bg: var(--theme-primary);
    --theme-table-header-text: var(--theme-text);
    --theme-chart-1: #38bdf8;
    --theme-chart-2: #34d399;
    --theme-chart-3: #fbbf24;
    --theme-chart-4: #a78bfa;
    --theme-chart-5: #fb7185;
    --theme-chart-6: #22d3ee;
    --theme-text-dark: #293445;
}

[data-color-palette="ocean"] {
    --theme-primary: #102a43;
    --theme-accent: #38bdf8;
    --theme-info: #67e8f9;
    --theme-success: #34d399;
    --theme-danger: #fb7185;
    --theme-warning: #fbbf24;
    --theme-background: #0b1726;
    --theme-surface: #102033;
    --theme-surface-raised: #19314b;
    --theme-border: #29445f;
    --theme-text: #e6f4ff;
    --theme-text-muted: #9db4ca;
    --theme-chart-1: #38bdf8;
    --theme-chart-2: #34d399;
    --theme-chart-3: #fbbf24;
    --theme-chart-4: #a78bfa;
    --theme-chart-5: #fb7185;
    --theme-chart-6: #22d3ee;
    --theme-text-dark: #293445;
}

[data-color-palette="forest"] {
    --theme-primary: #10221e;
    --theme-accent: #10b981;
    --theme-info: #22d3ee;
    --theme-success: #34d399;
    --theme-danger: #f43f5e;
    --theme-warning: #fbbf24;
    --theme-background: #0b1512;
    --theme-surface: #11231d;
    --theme-surface-raised: #1b332a;
    --theme-border: #2d4b3f;
    --theme-text: #e8f5ee;
    --theme-text-muted: #a3b8ad;
    --theme-chart-1: #34d399;
    --theme-chart-2: #fbbf24;
    --theme-chart-3: #38bdf8;
    --theme-chart-4: #a78bfa;
    --theme-chart-5: #fb7185;
    --theme-chart-6: #22d3ee;
    --theme-text-dark: #293445;
}

[data-color-palette="amethyst"] {
    --theme-primary: #1a2030;
    --theme-accent: #7285c5;
    --theme-info: #6eb4d1;
    --theme-success: #52b788;
    --theme-danger: #d76767;
    --theme-warning: #d5a74c;
    --theme-background: #131a27;
    --theme-surface: #1c2433;
    --theme-surface-raised: #293449;
    --theme-border: #435168;
    --theme-text: #edf1f8;
    --theme-text-muted: #b2bfd2;
    --theme-chart-1: #8295d4;
    --theme-chart-2: #6eb4d1;
    --theme-chart-3: #52b788;
    --theme-chart-4: #d5a74c;
    --theme-chart-5: #d76767;
    --theme-chart-6: #89c3cf;
    --theme-text-dark: #293445;
}

[data-color-palette="rose"] {
    --theme-primary: #302328;
    --theme-accent: #a45b62;
    --theme-info: #c28b71;
    --theme-success: #6fa17c;
    --theme-danger: #d56f65;
    --theme-warning: #d0a45b;
    --theme-background: #241b20;
    --theme-surface: #302328;
    --theme-surface-raised: #3e2d33;
    --theme-border: #594149;
    --theme-text: #f2e9e9;
    --theme-text-muted: #c4aeb2;
    --theme-chart-1: #b76a70;
    --theme-chart-2: #c28b71;
    --theme-chart-3: #d0a45b;
    --theme-chart-4: #829bb5;
    --theme-chart-5: #6fa17c;
    --theme-chart-6: #d56f65;
    --theme-text-dark: #293445;
}

[data-color-palette="slate"] {
    --theme-primary: #20242b;
    --theme-accent: #a78bfa;
    --theme-info: #60a5fa;
    --theme-success: #4ade80;
    --theme-danger: #f87171;
    --theme-warning: #fbbf24;
    --theme-background: #15171c;
    --theme-surface: #20242b;
    --theme-surface-raised: #2a3039;
    --theme-border: #3d4652;
    --theme-text: #ecf0f5;
    --theme-text-muted: #acb6c4;
    --theme-chart-1: #a78bfa;
    --theme-chart-2: #60a5fa;
    --theme-chart-3: #4ade80;
    --theme-chart-4: #fbbf24;
    --theme-chart-5: #f87171;
    --theme-chart-6: #22d3ee;
    --theme-text-dark: #293445;
}

[data-color-palette="steel"] {
    --theme-primary: #263746;
    --theme-accent: #4f8a8b;
    --theme-info: #78b9c4;
    --theme-success: #5da88d;
    --theme-danger: #d66b66;
    --theme-warning: #d6a64c;
    --theme-background: #1b2832;
    --theme-surface: #23333f;
    --theme-surface-raised: #2e414e;
    --theme-border: #415460;
    --theme-text: #e8eef1;
    --theme-text-muted: #a9bac2;
    --theme-chart-1: #4f8a8b;
    --theme-chart-2: #78b9c4;
    --theme-chart-3: #d6a64c;
    --theme-chart-4: #8ca2bd;
    --theme-chart-5: #d66b66;
    --theme-chart-6: #5da88d;
    --theme-text-dark: #293445;
}

[data-color-palette="cobalt"] {
    --theme-primary: #1b2b4b;
    --theme-accent: #4b78c2;
    --theme-info: #78a6d8;
    --theme-success: #4e9b79;
    --theme-danger: #d66b66;
    --theme-warning: #d6a64c;
    --theme-background: #131e33;
    --theme-surface: #1b2a43;
    --theme-surface-raised: #263954;
    --theme-border: #3a4d68;
    --theme-text: #e9eff8;
    --theme-text-muted: #a8b8ce;
    --theme-chart-1: #4b78c2;
    --theme-chart-2: #65a6a0;
    --theme-chart-3: #d6a64c;
    --theme-chart-4: #8ca2bd;
    --theme-chart-5: #d66b66;
    --theme-chart-6: #78a6d8;
    --theme-text-dark: #293445;
}

[data-color-palette="teal"] {
    --theme-primary: #173b3d;
    --theme-accent: #348b83;
    --theme-info: #72b7a8;
    --theme-success: #5da88d;
    --theme-danger: #d66b66;
    --theme-warning: #d6a64c;
    --theme-background: #102b2d;
    --theme-surface: #173638;
    --theme-surface-raised: #214648;
    --theme-border: #34585a;
    --theme-text: #e6f1ef;
    --theme-text-muted: #a4bfba;
    --theme-chart-1: #348b83;
    --theme-chart-2: #78b9a2;
    --theme-chart-3: #d6a64c;
    --theme-chart-4: #78a6d8;
    --theme-chart-5: #d66b66;
    --theme-chart-6: #72b7a8;
    --theme-text-dark: #293445;
}

[data-color-palette="copper"] {
    --theme-primary: #3a3029;
    --theme-accent: #b87945;
    --theme-info: #d2a66f;
    --theme-success: #6a9a70;
    --theme-danger: #cf6e60;
    --theme-warning: #d5a848;
    --theme-background: #28231f;
    --theme-surface: #352c26;
    --theme-surface-raised: #453830;
    --theme-border: #5b4a3e;
    --theme-text: #f1ece6;
    --theme-text-muted: #c0b1a2;
    --theme-chart-1: #b87945;
    --theme-chart-2: #d2a66f;
    --theme-chart-3: #d5a848;
    --theme-chart-4: #7d9bb4;
    --theme-chart-5: #cf6e60;
    --theme-chart-6: #6a9a70;
    --theme-text-dark: #293445;
}

[data-color-palette="serenity"] {
    --theme-primary: #203936;
    --theme-accent: #78b9a5;
    --theme-info: #80b9c5;
    --theme-success: #70b48f;
    --theme-danger: #d77c78;
    --theme-warning: #d6b477;
    --theme-background: #172724;
    --theme-surface: #203631;
    --theme-surface-raised: #2b453e;
    --theme-border: #405e54;
    --theme-text: #e6f1ec;
    --theme-text-muted: #a9c0b5;
    --theme-chart-1: #78b9a5;
    --theme-chart-2: #80b9c5;
    --theme-chart-3: #d6b477;
    --theme-chart-4: #a5a4d4;
    --theme-chart-5: #d77c78;
    --theme-chart-6: #70b48f;
    --theme-text-dark: #293445;
}

[data-color-palette="neon"] {
    --theme-primary: #1b1b35;
    --theme-accent: #00e5ff;
    --theme-info: #7dd3fc;
    --theme-success: #4ade80;
    --theme-danger: #fb7185;
    --theme-warning: #facc15;
    --theme-background: #10101f;
    --theme-surface: #19192d;
    --theme-surface-raised: #252541;
    --theme-border: #3b3b5c;
    --theme-text: #f0f0ff;
    --theme-text-muted: #aaaac7;
    --theme-chart-1: #00e5ff;
    --theme-chart-2: #a78bfa;
    --theme-chart-3: #4ade80;
    --theme-chart-4: #facc15;
    --theme-chart-5: #fb7185;
    --theme-chart-6: #38bdf8;
    --theme-text-dark: #293445;
}

[data-color-palette="aurora"] {
    --theme-primary: #20283d;
    --theme-accent: #9b8bd4;
    --theme-info: #79b8d4;
    --theme-success: #75b99a;
    --theme-danger: #d98291;
    --theme-warning: #d8b878;
    --theme-background: #151b2b;
    --theme-surface: #20283a;
    --theme-surface-raised: #2b354b;
    --theme-border: #414d65;
    --theme-text: #edf0f8;
    --theme-text-muted: #aeb9cd;
    --theme-chart-1: #9b8bd4;
    --theme-chart-2: #79b8d4;
    --theme-chart-3: #75b99a;
    --theme-chart-4: #d8b878;
    --theme-chart-5: #d98291;
    --theme-chart-6: #83c6c7;
    --theme-text-dark: #293445;
}

[data-color-palette="sage"] {
    --theme-primary: #3b4038;
    --theme-accent: #a3ad8b;
    --theme-info: #91a9b5;
    --theme-success: #91aa87;
    --theme-danger: #c98278;
    --theme-warning: #d0b783;
    --theme-background: #252923;
    --theme-surface: #30362e;
    --theme-surface-raised: #3d453a;
    --theme-border: #515b4c;
    --theme-text: #eeeae0;
    --theme-text-muted: #b9bdad;
    --theme-chart-1: #a3ad8b;
    --theme-chart-2: #91a9b5;
    --theme-chart-3: #91aa87;
    --theme-chart-4: #d0b783;
    --theme-chart-5: #c98278;
    --theme-chart-6: #b3a5bd;
    --theme-text-dark: #293445;
}

[data-color-palette="mediterranean"] {
    --theme-primary: #254b4a;
    --theme-accent: #45a39a;
    --theme-info: #6daec0;
    --theme-success: #72a987;
    --theme-danger: #d77968;
    --theme-warning: #d9ae65;
    --theme-background: #192d2d;
    --theme-surface: #25403e;
    --theme-surface-raised: #31534f;
    --theme-border: #496b65;
    --theme-text: #f0eee5;
    --theme-text-muted: #b7c7bd;
    --theme-chart-1: #45a39a;
    --theme-chart-2: #6daec0;
    --theme-chart-3: #d9ae65;
    --theme-chart-4: #a99acb;
    --theme-chart-5: #d77968;
    --theme-chart-6: #72a987;
    --theme-text-dark: #293445;
}

[data-color-palette="terracotta"] {
    --theme-primary: #514034;
    --theme-accent: #d18a5b;
    --theme-info: #83a9b4;
    --theme-success: #8da66b;
    --theme-danger: #d87568;
    --theme-warning: #dfb45f;
    --theme-background: #29241f;
    --theme-surface: #393129;
    --theme-surface-raised: #4a3d32;
    --theme-border: #665343;
    --theme-text: #f2ece2;
    --theme-text-muted: #c4b5a2;
    --theme-chart-1: #d18a5b;
    --theme-chart-2: #8da66b;
    --theme-chart-3: #dfb45f;
    --theme-chart-4: #83a9b4;
    --theme-chart-5: #d87568;
    --theme-chart-6: #b69ac1;
    --theme-text-dark: #293445;
}

[data-color-palette="royal"] {
    --theme-primary: #29264f;
    --theme-accent: #818cf8;
    --theme-info: #38bdf8;
    --theme-success: #34d399;
    --theme-danger: #fb7185;
    --theme-warning: #fbbf24;
    --theme-background: #17172f;
    --theme-surface: #222142;
    --theme-surface-raised: #302e56;
    --theme-border: #49466f;
    --theme-text: #f1f0ff;
    --theme-text-muted: #b5b3d2;
    --theme-chart-1: #818cf8;
    --theme-chart-2: #38bdf8;
    --theme-chart-3: #34d399;
    --theme-chart-4: #fbbf24;
    --theme-chart-5: #fb7185;
    --theme-chart-6: #c084fc;
    --theme-text-dark: #293445;
}

[data-color-palette="emerald"] {
    --theme-primary: #174b3b;
    --theme-accent: #34c99a;
    --theme-info: #55b9d5;
    --theme-success: #65cf86;
    --theme-danger: #ed7979;
    --theme-warning: #e8bd63;
    --theme-background: #10271f;
    --theme-surface: #19382d;
    --theme-surface-raised: #24503e;
    --theme-border: #376951;
    --theme-text: #eaf5ed;
    --theme-text-muted: #a9c8b5;
    --theme-chart-1: #34c99a;
    --theme-chart-2: #55b9d5;
    --theme-chart-3: #e8bd63;
    --theme-chart-4: #a78bfa;
    --theme-chart-5: #ed7979;
    --theme-chart-6: #65cf86;
    --theme-text-dark: #293445;
}

[data-theme-mode="light"] {
    color-scheme: light;
    --theme-primary: #e8edf2;
    --theme-background: #f3f5f8;
    --theme-surface: #ffffff;
    --theme-surface-raised: #edf1f5;
    --theme-border: #d5dce5;
    --theme-text: #293445;
    --theme-text-muted: #667487;
    --theme-table-header-bg: var(--theme-accent);
    --theme-table-header-text: #fff;
    --theme-text-dark: #293445;
}

[data-theme-mode="light"][data-color-palette="midnight"] {
    --theme-accent: #bd3342;
    --theme-info: #14758a;
}

[data-theme-mode="light"][data-color-palette="ocean"] {
    --theme-accent: #1475a8;
    --theme-info: #126d83;
}

[data-theme-mode="light"][data-color-palette="forest"] {
    --theme-accent: #147a59;
    --theme-info: #126d83;
}

[data-theme-mode="light"][data-color-palette="amethyst"] {
    --theme-accent: #4d619f;
    --theme-info: #276986;
}

[data-theme-mode="light"][data-color-palette="rose"] {
    --theme-accent: #8e3f49;
    --theme-info: #875443;
}

[data-theme-mode="light"][data-color-palette="slate"] {
    --theme-accent: #6755a8;
    --theme-info: #315f9f;
}

[data-theme-mode="light"][data-color-palette="steel"] {
    --theme-accent: #356f71;
    --theme-info: #236879;
}

[data-theme-mode="light"][data-color-palette="cobalt"] {
    --theme-accent: #315fa5;
    --theme-info: #265985;
}

[data-theme-mode="light"][data-color-palette="teal"] {
    --theme-accent: #246e68;
    --theme-info: #216b61;
}

[data-theme-mode="light"][data-color-palette="copper"] {
    --theme-accent: #956037;
    --theme-info: #86542f;
}

[data-theme-mode="light"][data-color-palette="serenity"] {
    --theme-accent: #397e6b;
    --theme-info: #397d8b;
}

[data-theme-mode="light"][data-color-palette="neon"] {
    --theme-accent: #087f9b;
    --theme-info: #256b91;
}

[data-theme-mode="light"][data-color-palette="aurora"] {
    --theme-accent: #7160ad;
    --theme-info: #397b9b;
}

[data-theme-mode="light"][data-color-palette="sage"] {
    --theme-accent: #71805d;
    --theme-info: #587c8c;
}

[data-theme-mode="light"][data-color-palette="mediterranean"] {
    --theme-accent: #287e75;
    --theme-info: #397e96;
}

[data-theme-mode="light"][data-color-palette="terracotta"] {
    --theme-accent: #a85f36;
    --theme-info: #467b8c;
}

[data-theme-mode="light"][data-color-palette="royal"] {
    --theme-accent: #5146a5;
    --theme-info: #1676a5;
}

[data-theme-mode="light"][data-color-palette="emerald"] {
    --theme-accent: #16845f;
    --theme-info: #247b99;
}

html,
body,
#wrapper,
.page-wrapper {
    background-color: var(--theme-background) !important;
    color: var(--theme-text);
}

body,
input,
button,
select,
textarea {
    color: var(--theme-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
    color: var(--theme-text);
}

a,
a:focus,
a:hover {
    color: var(--theme-info);
}

.preloader {
    background-color: var(--theme-primary) !important;
}

.navbar-header,
.right-sidebar .rpanel-title,
.fix-sidebar .top-left-part {
    background: var(--theme-primary) !important;
}

.navbar-default,
.navbar-static-top,
.sidebar,
.sidebar-nav,
.right-sidebar,
.right-sidebar .rpanel-title {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-border) !important;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-toggle,
.navbar-header a,
.sidebar-nav ul#side-menu li a,
.right-sidebar,
.right-sidebar .rpanel-title {
    color: var(--theme-text) !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: var(--theme-info) !important;
}

.sidebar-nav ul#side-menu li a:hover,
.sidebar-nav ul#side-menu li a.active,
.sidebar-nav ul#side-menu li a.active i,
.sidebar-nav ul#side-menu li a:hover i,
#side-menu ul > li > a:hover {
    color: var(--theme-accent) !important;
}

.bg-theme,
/* .bg-primary,
.btn-custom, */
.nav-pills > li.active > a,
.nav-pills > li.active > a:focus,
.nav-pills > li.active > a:hover {
    background-color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    /* color: var(--theme-text)!important; */
    color: #fff !important;
    
}

.text-primary,
.text-blue,
.sidebar-nav ul#side-menu li a.active,
.bl-primary {
    color: var(--theme-accent) !important;
}

.bg-primary,
.btn-primary,
.label-primary,
.badge-primary,
.bl-primary {
    border-color: var(--theme-accent) !important;
}

.btn-custom:hover {
    filter: brightness(1.12);
}

.page-wrapper,
.container-fluid {
    color: var(--theme-text);
}

.white-box,
.panel,
.panel-default,
.panel-heading,
.panel-footer,
.well,
.modal-content,
.modal-header,
.modal-footer,
.popover,
.popover-title,
.list-group-item,
.table-box,
.drop-title,
.mailbox,
.dropdown-menu,
.select2-dropdown,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.datepicker,
.datepicker table tr td,
.datepicker table tr th,
.daterangepicker,
.daterangepicker .calendar-table,
.ui-widget-content,
.ui-widget-header,
.swal2-popup,
.toast,
.bootstrap-select .dropdown-menu {
    background-color: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text);
}

.white-box .box-title,
.panel-title,
.modal-title,
.dropdown-menu > li > a,
.list-group-item,
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--theme-text);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--theme-surface-raised) !important;
    color: var(--theme-info) !important;
}

.datepicker table tr td.day:hover,
.datepicker table tr td span:hover,
.ui-state-hover,
.daterangepicker td.available:hover,
.daterangepicker th.available:hover {
    background-color: var(--theme-surface-raised) !important;
    color: var(--theme-info) !important;
}

.ui-widget-header {
    background-color: var(--theme-surface-raised) !important;
    color: var(--theme-text) !important;
}

.form-control,
input,
select,
textarea,
.input-group-addon {
    background-color: var(--theme-primary);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    background-color: var(--theme-primary);
    border-color: var(--theme-accent);
    color: var(--theme-text);
    box-shadow: 0 0 0 1px var(--theme-accent);
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder,
.text-muted,
.help-block {
    color: var(--theme-text-muted);
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: var(--theme-surface-raised);
    color: var(--theme-text-muted);
}

table,
.table,
table.dataTable {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

table > thead > tr,
.table > thead > tr,
table.dataTable > thead > tr,
table > thead > tr > th,
.table > thead > tr > th,
table.dataTable > thead > tr > th {
    background-color: var(--theme-primary);
    border-color: var(--theme-border);
    border-bottom: 2px solid var(--theme-accent);
    color: var(--theme-text);
}

html[data-color-palette][data-theme-mode] body table thead th,
html[data-color-palette][data-theme-mode] body table thead td,
html[data-color-palette][data-theme-mode] body table thead tr[class*="table-"]:hover > th,
html[data-color-palette][data-theme-mode] body .table thead th,
html[data-color-palette][data-theme-mode] body table.dataTable thead th,
html[data-color-palette][data-theme-mode] body .cal-event .fc th.fc-widget-header,
html[data-color-palette][data-theme-mode] body .calendar-widget .fc th.fc-widget-header {
    background-color: var(--theme-table-header-bg) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-table-header-text) !important;
}

table > tbody > tr:first-child > th,
.table > tbody > tr:first-child > th,
table.dataTable > tbody > tr:first-child > th {
    background-color: var(--theme-primary);
    border-bottom: 2px solid var(--theme-accent);
    color: var(--theme-text);
}

table > tbody > tr,
.table > tbody > tr,
table.dataTable > tbody > tr,
table > tfoot > tr,
.table > tfoot > tr,
table.dataTable > tfoot > tr {
    background-color: var(--theme-surface);
    color: var(--theme-text);
}

table > tbody > tr > th,
table > tbody > tr > td,
.table > tbody > tr > th,
.table > tbody > tr > td,
table.dataTable > tbody > tr > th,
table.dataTable > tbody > tr > td,
table > tfoot > tr > th,
table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > tfoot > tr > td,
table.dataTable > tfoot > tr > th,
table.dataTable > tfoot > tr > td {
    background-color: transparent;
    border-color: var(--theme-border);
    color: var(--theme-text);
}

table.table-striped > tbody > tr:nth-of-type(odd),
table.table-striped > tbody > tr:nth-of-type(odd) > td,
table.table-striped > tbody > tr:nth-of-type(odd) > th,
table.dataTable.stripe > tbody > tr.odd,
table.dataTable.display > tbody > tr.odd,
table.dataTable.stripe > tbody > tr.odd > td,
table.dataTable.display > tbody > tr.odd > td {
    background-color: var(--theme-surface-raised);
}

table.table-hover > tbody > tr:hover,
table.table-hover > tbody > tr:hover > td,
table.table-hover > tbody > tr:hover > th,
table.dataTable.hover > tbody > tr:hover,
table.dataTable.display > tbody > tr:hover,
table.dataTable.hover > tbody > tr:hover > td,
table.dataTable.display > tbody > tr:hover > td {
    background-color: var(--theme-surface-raised);
}

#tab_for_table_OrderProfitabilityReportData thead th {
    background-color: var(--theme-table-header-bg) !important;
    color: var(--theme-table-header-text) !important;
}

.sticky-col {
    background-color: var(--theme-surface) !important;
}

.border-right-2 {
    border-right-color: var(--theme-border) !important;
}

.percentage-cell {
    color: var(--theme-accent) !important;
}

[style*="color: #8d9498" i],
[style*="color:#8d9498" i] {
    color: var(--theme-text-muted) !important;
}

table > tfoot > tr > th,
table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > tfoot > tr > td,
table.dataTable > tfoot > tr > th,
table.dataTable > tfoot > tr > td {
    background-color: var(--theme-primary);
    border-top: 1px solid var(--theme-accent);
}

table th,
table td,
.table th,
.table td {
    border-color: var(--theme-border);
    color: var(--theme-text);
}

table caption,
.dataTables_empty {
    color: var(--theme-text-muted) !important;
}

table.dataTable thead .sorting::after,
table.dataTable thead .sorting_asc::after,
table.dataTable thead .sorting_desc::after,
table.dataTable thead .sorting_asc_disabled::after,
table.dataTable thead .sorting_desc_disabled::after {
    color: var(--theme-info) !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th:first-child::before {
    background-color: var(--theme-accent) !important;
    color: #fff !important;
}

hr,
.b-all,
.b-t,
.b-b,
.b-l,
.b-r {
    border-color: var(--theme-border);
}

.bg-title {
    background-color: var(--theme-surface) !important;
    border-bottom-color: var(--theme-border);
}

.bg-title .breadcrumb .active,
.footer {
    color: var(--theme-text-muted);
}

.footer {
    background-color: var(--theme-primary);
    border-top-color: var(--theme-border);
}

.btn-primary,
.label-primary,
.badge-primary {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
}

.btn-info,
.label-info,
.badge-info {
    background-color: var(--theme-info);
    border-color: var(--theme-info);
}

.btn-success,
.label-success,
.badge-success {
    background-color: var(--theme-success);
    border-color: var(--theme-success);
}

.btn-danger,
.label-danger,
.badge-danger {
    background-color: var(--theme-danger);
    border-color: var(--theme-danger);
}

.btn-warning,
.label-warning,
.badge-warning {
    background-color: var(--theme-warning);
    border-color: var(--theme-warning);
    color: var(--theme-primary);
}

.progress {
    background-color: var(--theme-surface-raised);
}

.pagination > li > a,
.pagination > li > span,
.nav-tabs > li > a {
    background-color: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

.pagination > .active > a,
.pagination > .active > span,
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:focus,
.nav-tabs > li.active > a:hover {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
    color: #fff;
}

.dataTables_wrapper,
.dataTables_info,
.dataTables_length,
.dataTables_filter,
.dataTables_paginate {
    color: var(--theme-text) !important;
}

.dataTables_wrapper input,
.dataTables_wrapper select {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--theme-text) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--theme-surface-raised) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-info) !important;
}

.ct-chart .ct-label,
.ct-chart .ct-label span {
    color: var(--theme-text-muted) !important;
    fill: var(--theme-text-muted) !important;
}

.ct-chart .ct-grid {
    stroke: var(--theme-border) !important;
}

.stat-widget .stat .ct-series-a .ct-line,
.stat-widget .stat .ct-series-a .ct-point,
.ct-sd-chart .ct-series-a .ct-line,
.ct-sd-chart .ct-series-a .ct-point {
    stroke: var(--theme-accent) !important;
}

.stat-widget .stat .ct-series-b .ct-line,
.stat-widget .stat .ct-series-b .ct-point,
.ct-sd-chart .ct-series-b .ct-line,
.ct-sd-chart .ct-series-b .ct-point,
.ct-ie-chart .ct-series-b .ct-line,
.ct-ie-chart .ct-series-b .ct-point {
    stroke: var(--theme-info) !important;
}

.sc-widget .ct-series-a .ct-bar,
.ct-ie-chart .ct-series-a .ct-line,
.ct-ie-chart .ct-series-a .ct-point {
    stroke: var(--theme-success) !important;
}

.sc-widget .ct-series-b .ct-bar {
    stroke: var(--theme-accent) !important;
}

.ct-chart .ct-series-a .ct-point,
.ct-chart .ct-series-a .ct-line,
.ct-chart .ct-series-a .ct-bar,
.ct-chart .ct-series-a .ct-slice-donut {
    stroke: var(--theme-accent);
}

.ct-chart .ct-series-a .ct-slice-pie,
.ct-chart .ct-series-a .ct-area {
    fill: var(--theme-accent);
}

.ct-chart .ct-series-b .ct-point,
.ct-chart .ct-series-b .ct-line,
.ct-chart .ct-series-b .ct-bar,
.ct-chart .ct-series-b .ct-slice-donut {
    stroke: var(--theme-info);
}

.ct-chart .ct-series-b .ct-slice-pie,
.ct-chart .ct-series-b .ct-area {
    fill: var(--theme-info);
}

.ct-chart .ct-series-c .ct-point,
.ct-chart .ct-series-c .ct-line,
.ct-chart .ct-series-c .ct-bar,
.ct-chart .ct-series-c .ct-slice-donut {
    stroke: var(--theme-success);
}

.ct-chart .ct-series-c .ct-slice-pie,
.ct-chart .ct-series-c .ct-area {
    fill: var(--theme-success);
}

.ct-chart .ct-series-d .ct-point,
.ct-chart .ct-series-d .ct-line,
.ct-chart .ct-series-d .ct-bar,
.ct-chart .ct-series-d .ct-slice-donut {
    stroke: var(--theme-danger);
}

.ct-chart .ct-series-d .ct-slice-pie,
.ct-chart .ct-series-d .ct-area {
    fill: var(--theme-danger);
}

.ct-chart .ct-series-e .ct-point,
.ct-chart .ct-series-e .ct-line,
.ct-chart .ct-series-e .ct-bar,
.ct-chart .ct-series-e .ct-slice-donut {
    stroke: var(--theme-warning);
}

.ct-chart .ct-series-e .ct-slice-pie,
.ct-chart .ct-series-e .ct-area {
    fill: var(--theme-warning);
}

.ct-chart .ct-tooltip {
    background-color: var(--theme-primary) !important;
    border: 1px solid var(--theme-border) !important;
    color: var(--theme-text) !important;
}

.highcharts-background,
.highcharts-plot-background {
    fill: var(--theme-surface) !important;
}

.highcharts-title,
.highcharts-subtitle,
.highcharts-axis-title,
.highcharts-axis-labels text,
.highcharts-legend-item text,
.highcharts-data-label text,
.highcharts-tooltip text {
    fill: var(--theme-text) !important;
    color: var(--theme-text) !important;
}

.highcharts-grid-line {
    stroke: var(--theme-border) !important;
}

.highcharts-tooltip-box {
    fill: var(--theme-primary) !important;
    stroke: var(--theme-border) !important;
}

.google-visualization-tooltip,
.google-visualization-tooltip-item-list,
.google-visualization-tooltip-item {
    background-color: var(--theme-primary) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
}

.google-visualization-tooltip-item,
.google-visualization-tooltip-item span {
    color: var(--theme-text) !important;
}

.ct-chart,
.highcharts-container,
.google-visualization-chart,
.flot-chart {
    background-color: transparent !important;
}

.highcharts-container svg {
    color: var(--theme-text);
}

.theme-palette-picker {
    margin: 20px 0;
}

.theme-palette-picker h4 {
    margin: 0 0 6px;
    color: var(--theme-text);
    font-weight: 600;
}

.theme-palette-picker p {
    margin: 0 0 12px;
    color: var(--theme-text-muted);
    font-size: 12px;
}

.theme-palette-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.theme-mode-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.theme-mode-option {
    padding: 8px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
}

.theme-mode-option:hover,
.theme-mode-option:focus-visible,
.theme-mode-option[aria-pressed="true"] {
    border-color: var(--theme-accent);
    background: var(--theme-surface-raised);
    color: var(--theme-accent);
    outline: none;
}

.theme-palette-option {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 6px;
    background: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
    text-align: left;
}

.theme-palette-option:hover,
.theme-palette-option:focus-visible {
    border-color: var(--theme-accent);
    outline: none;
}

.theme-palette-option[aria-pressed="true"] {
    border-color: var(--theme-accent);
    box-shadow: inset 0 0 0 1px var(--theme-accent);
}

.theme-palette-swatches {
    display: flex;
    gap: 4px;
}

.theme-palette-swatches span {
    width: 15px;
    height: 15px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 50%;
}

.theme-palette-name {
    overflow: hidden;
    max-width: 100%;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[style*="background: #fff" i],
[style*="background:#fff" i],
[style*="background-color: #fff" i],
[style*="background-color:#fff" i],
[style*="background: white" i],
[style*="background:white" i],
[style*="background-color: white" i],
[style*="background-color:white" i],
[style*="background: #f4f8f9" i],
[style*="background-color: #f4f8f9" i],
[style*="background: #f7fafc" i],
[style*="background-color: #f7fafc" i] {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
}

[style*="background: lightyellow" i],
[style*="background-color: lightyellow" i] {
    background-color: var(--theme-surface-raised) !important;
    color: var(--theme-text) !important;
}

html[data-theme-mode="light"] .navbar-header,
html[data-theme-mode="light"] .navbar-default,
html[data-theme-mode="light"] .navbar-static-top {
    background: var(--theme-surface) !important;
}

html[data-theme-mode="light"] .navbar-header,
html[data-theme-mode="light"] .navbar-default {
    border-bottom: 1px solid var(--theme-border) !important;
    box-shadow: 0 2px 8px rgb(34 50 70 / 7%);
}

html[data-theme-mode="light"] .top-left-part,
html[data-theme-mode="light"] .fix-sidebar .top-left-part {
    background: var(--theme-accent) !important;
}

html[data-theme-mode="light"] .top-left-part a,
html[data-theme-mode="light"] .top-left-part .logo b,
html[data-theme-mode="light"] .navbar-header .navbar-toggle {
    color: #fff !important;
}

html[data-theme-mode="light"] .navbar-top-links > li > a,
html[data-theme-mode="light"] .navbar-header a {
    color: var(--theme-text-muted) !important;
}

html[data-theme-mode="light"] .navbar-top-links > li > a:hover,
html[data-theme-mode="light"] .navbar-top-links > li > a:focus,
html[data-theme-mode="light"] .navbar-header .navbar-toggle:hover,
html[data-theme-mode="light"] .navbar-header .navbar-toggle:focus {
    background: var(--theme-surface-raised) !important;
    color: var(--theme-accent) !important;
}

html[data-theme-mode="light"] .app-search i {
    color: var(--theme-text-muted) !important;
}

html[data-theme-mode="light"] .app-search .form-control,
html[data-theme-mode="light"] .app-search .form-control:focus {
    width: 355px;
    height: 38px;
    /* border: 1px solid var(--theme-border) !important; */
    border-radius: 6px;
    /* background: var(--theme-background) !important; */
    color: var(--theme-text) !important;
    font-size: 14px;
    font-weight: 400;
    transition: border-color .15s ease, box-shadow .15s ease;
}

html[data-theme-mode="light"] .app-search .form-control:focus {
    /* border-color: var(--theme-accent) !important; */
    /* box-shadow: 0 0 0 3px rgb(34 50 70 / 10%); */
}

html[data-theme-mode="light"] .app-search .form-control::placeholder {
    color: var(--theme-text-muted) !important;
}

html[data-theme-mode="light"] .sidebar,
html[data-theme-mode="light"] .sidebar-nav {
    background-color: var(--theme-surface) !important;
}

html[data-theme-mode="light"] .sidebar {
    border-right: 1px solid var(--theme-border) !important;
    box-shadow: 2px 0 10px rgb(34 50 70 / 4%);
}

html[data-theme-mode="light"] .sidebar > .scroll-sidebar > .text-center {
    padding: 18px 14px;
    background: var(--theme-surface);
}

html[data-theme-mode="light"] aside.sidebar .scroll-sidebar > .text-center > img {
    filter: brightness(0) !important;
}

html[data-theme-mode="light"] .sidebar-nav ul#side-menu li a {
    /* margin: 2px 10px; */
    border-radius: 6px;
    color: var(--theme-text-muted) !important;
    transition: background-color .15s ease, color .15s ease;
}

html[data-theme-mode="light"] .sidebar-nav ul#side-menu li a:hover,
html[data-theme-mode="light"] .sidebar-nav ul#side-menu li a:focus,
html[data-theme-mode="light"] .sidebar-nav ul#side-menu li a.active,
html[data-theme-mode="light"] .sidebar-nav ul#side-menu li a.active i,
html[data-theme-mode="light"] .sidebar-nav ul#side-menu li a:hover i,
html[data-theme-mode="light"] #side-menu ul > li > a:hover {
    background-color: var(--theme-surface-raised) !important;
    color: var(--theme-accent) !important;
}

html[data-theme-mode="light"] .navbar-right > li > a {
    border-right-color: var(--theme-border);
}

html[data-theme-mode="light"] .menuSuggestions {
    border-color: var(--theme-border);
    background-color: var(--theme-surface);
    box-shadow: 0 8px 20px rgb(34 50 70 / 12%);
}

html[data-theme-mode="light"] .menuSuggestions ul li {
    border-bottom-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme-mode="light"] .menuSuggestions ul li:hover {
    background-color: var(--theme-surface-raised);
    color: var(--theme-accent);
}

@media print {
    :root {
        color-scheme: light;
    }

    html,
    body,
    #wrapper,
    .page-wrapper {
        background: #fff !important;
        color: #000 !important;
    }

    .white-box,
    .panel,
    .modal-content,
    .table,
    table,
    table > thead > tr > th,
    table > tbody > tr > th,
    table > tbody > tr > td,
    table > tfoot > tr > th,
    table > tfoot > tr > td,
    .table > thead > tr > th,
    .table > tbody > tr > th,
    .table > tbody > tr > td,
    .table > tfoot > tr > th,
    .table > tfoot > tr > td,
    th,
    td {
        background: #fff;
        color: #000;
        border-color: #ccc;
    }
}


.nav-tabs>li>a:focus,
.nav-tabs>li>a:hover {
    background-color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-text) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--theme-background) !important;
}

.text-dark {
    color: var(--theme-text-muted) !important;
}

.text-white {
    color: #fff !important;
}


.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--theme-background);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
}

@media (min-width: 768px) {
    .mini-sidebar .sidebar-nav #side-menu>li>ul {
        background: var(--theme-background);
        color: var(--theme-text);
    }
}

@media (min-width: 768px) {
    .mini-sidebar .sidebar-nav #side-menu>li:hover>a {
        background: var(--theme-background);
        color: var(--theme-text);
        border-color: var(--theme-border) ;
    }
}


@media (min-width: 768px) {
    .mini-sidebar .sidebar-nav {
        background: 0 0 !important;
    }
}

/*  */

/*  */


.btn-primary.btn-outline {
    background-color: var(--theme-background);
}

.datepicker table tr td span.focused,
.datepicker table tr td span:hover {
    background: var(--theme-accent) !important;
}
