/* Light / Dark theme toggle */
.theme-mode-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	color: inherit;
	line-height: 1;
}
.theme-mode-toggle .theme-icon {
	width: 19px;
	height: 19px;
	display: none;
	flex-shrink: 0;
}
html:not([data-theme="dark"]) .theme-mode-toggle .theme-icon-moon,
html:not([data-theme]) .theme-mode-toggle .theme-icon-moon {
	display: block;
}
html[data-theme="dark"] .theme-mode-toggle .theme-icon-sun {
	display: block;
}
.fixed-navbar button.theme-mode-toggle.ico-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 19px;
	height: 55px;
	margin-left: 15px;
	padding: 0;
	font-size: 19px;
	line-height: 55px;
	color: #c7e5ff;
	vertical-align: middle;
}
.fixed-navbar button.theme-mode-toggle.ico-item:hover,
.fixed-navbar button.theme-mode-toggle.ico-item:focus {
	color: #ffffff;
	outline: none;
}
.theme-mode-toggle--auth {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 100;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #ffffff;
	color: #3F51B5;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.theme-mode-toggle--auth:hover,
.theme-mode-toggle--auth:focus {
	color: #2c3ca6;
	outline: none;
}
html[data-theme="dark"] .theme-mode-toggle--auth {
	background: #1e2630;
	color: #f5c542;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Dark mode overlay for the existing admin theme */
html[data-theme="dark"] {
	color-scheme: dark;
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #wrapper,
html[data-theme="dark"] #single-wrapper {
	background: #12161c !important;
	color: #d5dbe3;
}

html[data-theme="dark"] #single-wrapper {
	background-image: none !important;
}

html[data-theme="dark"] a {
	color: #8b9cff;
}
html[data-theme="dark"] a:hover,
html[data-theme="dark"] a:focus,
html[data-theme="dark"] a:active {
	color: #b3bcff;
}

html[data-theme="dark"] .main-content {
	background: #12161c !important;
	color: #d5dbe3;
}

html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer a {
	color: rgba(213, 219, 227, 0.75);
}
html[data-theme="dark"] .footer a:hover {
	color: #8b9cff;
}

/* Sidebar */
html[data-theme="dark"] .main-menu {
	background: #1a2028;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .header .logo,
html[data-theme="dark"].menu-active .header .logo,
html[data-theme="dark"] .header a.logo {
	background: #1a2028 !important;
}
html[data-theme="dark"] .navigation .title {
	background: #151b22;
	color: #eef2f6;
}
html[data-theme="dark"] .navigation .menu a {
	color: #c5ced8;
}
html[data-theme="dark"] .navigation .menu a i {
	color: #c5ced8;
}
html[data-theme="dark"] .navigation .menu a:hover,
html[data-theme="dark"] .navigation .menu a:hover i {
	color: #8b9cff;
}
html[data-theme="dark"] .navigation .menu > li.active {
	background: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .navigation .menu > li.active > a {
	background: #252e3a;
	color: #eef2f6;
}
html[data-theme="dark"] .navigation .menu > li.current > a {
	background: #3F51B5;
	color: #ffffff;
}
html[data-theme="dark"] .navigation .menu > li.current > a > i {
	color: #ffffff;
}
html[data-theme="dark"] .navigation .menu .sub-menu a {
	color: #c5ced8;
}
html[data-theme="dark"] .navigation .menu .sub-menu a:hover,
html[data-theme="dark"] .navigation .menu .sub-menu a:hover i {
	color: #b3bcff;
}
html[data-theme="dark"] .navigation .menu > li.current .current > a,
html[data-theme="dark"] .navigation .menu .sub-menu li.current > a,
html[data-theme="dark"] .navigation .menu .sub-menu li.current > a:hover {
	background: #3F51B5 !important;
	color: #ffffff !important;
}
html[data-theme="dark"] .main-menu .menu-toggle {
	background: #252e3a;
	color: #d5dbe3;
}

/* Cards / boxes / panels */
html[data-theme="dark"] .box-content,
html[data-theme="dark"] .box,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .panel-body,
html[data-theme="dark"] .panel-heading,
html[data-theme="dark"] .panel-footer,
html[data-theme="dark"] .well,
html[data-theme="dark"] .thumbnail,
html[data-theme="dark"] .card,
html[data-theme="dark"] .bg-white {
	background: #1e2630 !important;
	color: #d5dbe3;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}
html[data-theme="dark"] .box-content .box-title,
html[data-theme="dark"] .panel-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
	color: #eef2f6;
}
html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .help-block {
	color: #c5ced8 !important;
}
html[data-theme="dark"] .text-inverse,
html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .text-black {
	color: #eef2f6 !important;
}
html[data-theme="dark"] .statistics-box .text,
html[data-theme="dark"] .statistics-box .counter {
	color: #c5ced8;
}
html[data-theme="dark"] .statistics-box .counter.text-inverse,
html[data-theme="dark"] .statistics-box .ico.text-inverse {
	color: #eef2f6 !important;
}
html[data-theme="dark"] .statistics-box a,
html[data-theme="dark"] .statistics-box a:hover {
	color: inherit;
}
html[data-theme="dark"] hr {
	border-color: #2f3945;
}

/* Tables */
html[data-theme="dark"] .table,
html[data-theme="dark"] table.dataTable {
	color: #d5dbe3;
}
html[data-theme="dark"] .table > thead > tr > th,
html[data-theme="dark"] .table > tbody > tr > td,
html[data-theme="dark"] .table > tbody > tr > th,
html[data-theme="dark"] .table > tfoot > tr > td,
html[data-theme="dark"] .table > tfoot > tr > th,
html[data-theme="dark"] table.dataTable thead th,
html[data-theme="dark"] table.dataTable tbody td {
	border-color: #2f3945 !important;
	color: #d5dbe3;
}
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd),
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
	background: #1a232d !important;
}
html[data-theme="dark"] .table-hover > tbody > tr:hover,
html[data-theme="dark"] .table-hover > tbody > tr:hover > td {
	background: #252e3a !important;
}
html[data-theme="dark"] .table > thead > tr > th {
	background: #171e26 !important;
	color: #eef2f6 !important;
}

/* Forms */
html[data-theme="dark"] .form-control,
html[data-theme="dark"] input.form-control,
html[data-theme="dark"] select.form-control,
html[data-theme="dark"] textarea.form-control,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
	background-color: #161c24 !important;
	border-color: #2f3945 !important;
	color: #d5dbe3 !important;
}
html[data-theme="dark"] .form-control:focus,
html[data-theme="dark"] .form-control:focus:focus {
	border-color: #00aeff !important;
	box-shadow: 0 0 12px 0 rgba(0, 174, 255, 0.18) !important;
}
html[data-theme="dark"] .form-control::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
	color: #7d8796 !important;
}
html[data-theme="dark"] label,
html[data-theme="dark"] .control-label {
	color: #d5dbe3 !important;
}
html[data-theme="dark"] .input-group-addon,
html[data-theme="dark"] .input-group-btn .btn-default {
	background: #252e3a !important;
	border-color: #2f3945 !important;
	color: #d5dbe3 !important;
}
html[data-theme="dark"] .potential-brands-datatable-toolbar .dataTables_length select,
html[data-theme="dark"] .potential-brands-datatable-toolbar .dataTables_filter input.form-control {
	background-color: #161c24 !important;
	border-color: #2f3945 !important;
	color: #d5dbe3 !important;
}

/* Select2 */
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple,
html[data-theme="dark"] .select2-container .select2-selection--single,
html[data-theme="dark"] .select2-container .select2-selection--multiple {
	background-color: #161c24 !important;
	border-color: #2f3945 !important;
	color: #d5dbe3 !important;
}
html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	color: #d5dbe3 !important;
}
html[data-theme="dark"] .select2-dropdown,
html[data-theme="dark"] .select2-container--default .select2-results > .select2-results__options {
	background: #1e2630;
	border-color: #2f3945;
	color: #d5dbe3;
}
html[data-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
	background: #161c24;
	border-color: #2f3945;
	color: #d5dbe3;
}
html[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected="true"] {
	background-color: #252e3a;
	color: #eef2f6;
}
html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: #3F51B5 !important;
	color: #fff !important;
}

/* Tabs / pagination / dropdowns */
html[data-theme="dark"] .nav-tabs {
	border-bottom-color: #2f3945 !important;
}
html[data-theme="dark"] .nav-tabs > li > a {
	color: #c5ced8 !important;
	background: transparent !important;
	border-color: transparent !important;
}
html[data-theme="dark"] .nav-tabs > li.active > a,
html[data-theme="dark"] .nav-tabs > li.active > a:hover,
html[data-theme="dark"] .nav-tabs > li.active > a:focus {
	background: #1e2630 !important;
	border-color: #2f3945 !important;
	border-bottom-color: transparent !important;
	color: #eef2f6 !important;
}
html[data-theme="dark"] .nav-tabs > li > a:hover {
	background: #252e3a !important;
	border-color: #2f3945 !important;
	color: #eef2f6 !important;
}
html[data-theme="dark"] .pagination > li > a,
html[data-theme="dark"] .pagination > li > span {
	background: #1e2630;
	border-color: #2f3945;
	color: #d5dbe3;
}
html[data-theme="dark"] .pagination > li > a:hover,
html[data-theme="dark"] .pagination > .active > a,
html[data-theme="dark"] .pagination > .active > span {
	background: #3F51B5;
	border-color: #3F51B5;
	color: #fff;
}
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .sub-ico-item {
	background: #1e2630 !important;
	border-color: #2f3945 !important;
}
html[data-theme="dark"] .dropdown-menu > li > a,
html[data-theme="dark"] .sub-ico-item li a {
	color: #d5dbe3 !important;
}
html[data-theme="dark"] .dropdown-menu > li > a:hover,
html[data-theme="dark"] .sub-ico-item li a:hover {
	background: #252e3a !important;
	color: #eef2f6 !important;
}
html[data-theme="dark"] .list-group-item {
	background: #1e2630;
	border-color: #2f3945;
	color: #d5dbe3;
}

/* Modals, popups, alerts */
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-body,
html[data-theme="dark"] .modal-footer {
	background: #1e2630;
	color: #d5dbe3;
	border-color: #2f3945;
}
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer {
	border-color: #2f3945;
}
html[data-theme="dark"] .close,
html[data-theme="dark"] .modal-header .close {
	color: #eef2f6;
	opacity: 0.8;
	text-shadow: none;
}
html[data-theme="dark"] .notice-popup {
	background: #1e2630 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
html[data-theme="dark"] .notice-popup .popup-title,
html[data-theme="dark"] #notification-popup .popup-title {
	background: #171e26 !important;
	color: #eef2f6 !important;
	border-bottom-color: #2f3945 !important;
}
html[data-theme="dark"] .notice-popup .notice-list li,
html[data-theme="dark"] #notification-popup .notice-list li {
	border-bottom-color: #2f3945 !important;
}
html[data-theme="dark"] .notice-popup .notice-list .name,
html[data-theme="dark"] #notification-popup .notice-list .name {
	color: #eef2f6 !important;
}
html[data-theme="dark"] .notice-popup .notice-list .desc,
html[data-theme="dark"] #notification-popup .notice-list .desc {
	color: #9aa3b0 !important;
}
html[data-theme="dark"] .notice-list li.unread {
	background-color: #252e3a !important;
}
html[data-theme="dark"] .alert-name {
	color: #8b9cff;
}
html[data-theme="dark"] .sweet-alert {
	background-color: #1e2630;
}
html[data-theme="dark"] .sweet-alert h2,
html[data-theme="dark"] .sweet-alert p {
	color: #eef2f6;
}

/* Date range picker */
html[data-theme="dark"] .daterangepicker {
	background: #1e2630;
	border-color: #2f3945;
	color: #d5dbe3;
}
html[data-theme="dark"] .daterangepicker .calendar-table,
html[data-theme="dark"] .daterangepicker td.off,
html[data-theme="dark"] .daterangepicker td.off.in-range,
html[data-theme="dark"] .daterangepicker td.off.start-date,
html[data-theme="dark"] .daterangepicker td.off.end-date {
	background: #1e2630;
	border-color: #2f3945;
	color: #9aa3b0;
}
html[data-theme="dark"] .daterangepicker td.available:hover,
html[data-theme="dark"] .daterangepicker th.available:hover {
	background: #252e3a;
	color: #eef2f6;
}
html[data-theme="dark"] .daterangepicker .ranges li {
	color: #d5dbe3;
}
html[data-theme="dark"] .daterangepicker .ranges li:hover {
	background: #252e3a;
}

/* Login / auth */
html[data-theme="dark"] .frm-single .inside,
html[data-theme="dark"] .frm-single:before,
html[data-theme="dark"] .frm-single:after {
	background: #1e2630;
	box-shadow: 0 0 1px 0 #2f3945;
}
html[data-theme="dark"] .frm-single .title {
	color: #eef2f6;
}
html[data-theme="dark"] .frm-single .frm-title,
html[data-theme="dark"] .frm-single .frm-footer,
html[data-theme="dark"] .frm-single .a-link {
	color: #9aa3b0;
}
html[data-theme="dark"] .frm-single .frm-inp {
	background: #161c24;
	border-color: #2f3945;
	color: #d5dbe3;
}
html[data-theme="dark"] .checkbox label {
	color: #d5dbe3;
}

/* Charts and misc page bits */
html[data-theme="dark"] .ct-label {
	color: #9aa3b0;
	fill: #9aa3b0;
}
html[data-theme="dark"] .ct-grid {
	stroke: #2f3945;
}
html[data-theme="dark"] .stacked-legend-item {
	color: #d5dbe3;
}
html[data-theme="dark"] .entity-name,
html[data-theme="dark"] .box-content .entity-name {
	color: #8b9cff !important;
}
html[data-theme="dark"] .box-content .text-success,
html[data-theme="dark"] .statistics-box .text-success {
	color: #3ee07a !important;
}
html[data-theme="dark"] .box-content .text-primary,
html[data-theme="dark"] .statistics-box .text-primary {
	color: #6ea8fe !important;
}
html[data-theme="dark"] .box-content .text-danger {
	color: #ff7b8a !important;
}
html[data-theme="dark"] .box-content .text-warning {
	color: #ffd36a !important;
}
html[data-theme="dark"] .box-content .text-info {
	color: #5fd0ff !important;
}
html[data-theme="dark"] .pre,
html[data-theme="dark"] pre,
html[data-theme="dark"] code,
html[data-theme="dark"] .code {
	background: #161c24;
	color: #d5dbe3;
	border-color: #2f3945;
}
html[data-theme="dark"] .breadcrumb {
	background: transparent;
}
html[data-theme="dark"] .breadcrumb > li + li:before {
	color: #9aa3b0;
}

/* DataTables wrapper text */
html[data-theme="dark"] .dataTables_info,
html[data-theme="dark"] .dataTables_length,
html[data-theme="dark"] .dataTables_filter,
html[data-theme="dark"] .dataTables_paginate {
	color: #9aa3b0;
}

/* Bootstrap default buttons stay readable on dark surfaces */
html[data-theme="dark"] .btn-default,
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .tvgreen,
html[data-theme="dark"] a.tvgreen,
html[data-theme="dark"] .btn.tvgreen,
html[data-theme="dark"] #reset-btn,
html[data-theme="dark"] #reset_btn,
html[data-theme="dark"] #reset_filter {
	background: #252e3a !important;
	border-color: #4a5568 !important;
	color: #eef2f6 !important;
}
html[data-theme="dark"] .btn-default:hover,
html[data-theme="dark"] .btn-default:focus,
html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-secondary:focus,
html[data-theme="dark"] .tvgreen:hover,
html[data-theme="dark"] a.tvgreen:hover,
html[data-theme="dark"] #reset-btn:hover,
html[data-theme="dark"] #reset_btn:hover,
html[data-theme="dark"] #reset_filter:hover {
	background: #2f3945 !important;
	border-color: #5b6778 !important;
	color: #ffffff !important;
}
html[data-theme="dark"] .btn-link,
html[data-theme="dark"] .btn-link:hover,
html[data-theme="dark"] .btn-link:focus,
html[data-theme="dark"] .drill-multi-filter__action,
html[data-theme="dark"] .drill-multi-filter__action:hover,
html[data-theme="dark"] .drill-multi-filter__action:focus {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
	color: #8b9cff !important;
}

/* Search in header */
html[data-theme="dark"] .fixed-navbar .searchform .input-search {
	background: #161c24;
	border-color: #2f3945;
	color: #d5dbe3;
}

/* Header / chrome */
html[data-theme="dark"] .fixed-navbar {
	background: #1b2450;
}
html[data-theme="dark"] .fixed-navbar .page-title,
html[data-theme="dark"] .fixed-navbar .ico-item,
html[data-theme="dark"] .fixed-navbar .ico-item a,
html[data-theme="dark"] .fixed-navbar .ico-item i,
html[data-theme="dark"] .fixed-navbar .menu-mobile-button,
html[data-theme="dark"] .fixed-navbar button.theme-mode-toggle.ico-item {
	color: #e8edff !important;
}
html[data-theme="dark"] .fixed-navbar .ico-item:hover,
html[data-theme="dark"] .fixed-navbar .ico-item a:hover,
html[data-theme="dark"] .fixed-navbar button.theme-mode-toggle.ico-item:hover,
html[data-theme="dark"] .fixed-navbar button.theme-mode-toggle.ico-item:focus {
	color: #ffffff !important;
}
html[data-theme="dark"] .fixed-navbar .ico-item.ti-bell {
	color: #e8edff !important;
}
html[data-theme="dark"] .header .logo,
html[data-theme="dark"].menu-active .header .logo,
html[data-theme="dark"] html.menu-active .header .logo {
	background: transparent !important;
}

/* Catch leftover light surfaces and text from page CSS / inline styles */
html[data-theme="dark"] [style*="background: #fff"],
html[data-theme="dark"] [style*="background:#fff"],
html[data-theme="dark"] [style*="background: #ffffff"],
html[data-theme="dark"] [style*="background:#ffffff"],
html[data-theme="dark"] [style*="background-color: #fff"],
html[data-theme="dark"] [style*="background-color:#fff"],
html[data-theme="dark"] [style*="background-color: #ffffff"],
html[data-theme="dark"] [style*="background-color: #f8f9fa"],
html[data-theme="dark"] [style*="background-color:#f8f9fa"],
html[data-theme="dark"] [style*="background-color: #f8fafc"],
html[data-theme="dark"] [style*="background: #f8fafc"] {
	background: #1e2630 !important;
	background-color: #1e2630 !important;
}
html[data-theme="dark"] [style*="color: #333"],
html[data-theme="dark"] [style*="color:#333"],
html[data-theme="dark"] [style*="color: #212121"],
html[data-theme="dark"] [style*="color: #2b3945"],
html[data-theme="dark"] [style*="color: #3f4b5b"],
html[data-theme="dark"] [style*="color: #344054"],
html[data-theme="dark"] [style*="color: #505458"],
html[data-theme="dark"] [style*="color: #435966"] {
	color: #d5dbe3 !important;
}
html[data-theme="dark"] .table-bordered,
html[data-theme="dark"] .table-bordered > thead > tr > th,
html[data-theme="dark"] .table-bordered > tbody > tr > td,
html[data-theme="dark"] .table-bordered > tbody > tr > th {
	border-color: #2f3945 !important;
}
html[data-theme="dark"] .table-bordered {
	background: transparent;
}

/* Common page widgets */
html[data-theme="dark"] .click-id-index-intro,
html[data-theme="dark"] .click-id-kv-item,
html[data-theme="dark"] .click-id-raw-block,
html[data-theme="dark"] .click-id-record-card-body,
html[data-theme="dark"] .click-id-tracking-table th,
html[data-theme="dark"] .click-id-section-card .box-title {
	background: #171e26 !important;
	border-color: #2f3945 !important;
	color: #d5dbe3;
}
html[data-theme="dark"] .click-id-index-intro {
	background: #171e26 !important;
	border-color: #2f3945;
}
html[data-theme="dark"] .click-id-index-intro h5 {
	color: #c5d4ff;
}
html[data-theme="dark"] .click-id-index-intro li,
html[data-theme="dark"] .click-id-investigation-help,
html[data-theme="dark"] .click-id-subsection-title,
html[data-theme="dark"] .click-id-collapsible-icon {
	color: #c5ced8;
}
html[data-theme="dark"] .click-id-platform-card-intro {
	background: linear-gradient(135deg, #171e26 0%, #1a2433 100%);
	border-color: #2a3441;
}
html[data-theme="dark"] .click-id-platform-card-intro h5 {
	color: #c5d4ff;
}
html[data-theme="dark"] .click-id-platform-card-intro p,
html[data-theme="dark"] .click-id-platform-card-intro li {
	color: #c5ced8;
}
html[data-theme="dark"] .click-id-platform-params-panel {
	background: #1e2630;
	border-color: #2a3441;
}
html[data-theme="dark"] .click-id-platform-result-row {
	border-color: #2a3441;
}
html[data-theme="dark"] .click-id-platform-result-label,
html[data-theme="dark"] .click-id-platform-result-note {
	color: #c5ced8;
}
html[data-theme="dark"] .click-id-platform-result-value {
	color: #eef2f6;
}
html[data-theme="dark"] .click-id-platform-result-badge {
	background: #171e26;
	border-color: #3a4654;
	color: #eef2f6;
}
html[data-theme="dark"] .click-id-platform-params-empty {
	color: #c5ced8;
}
html[data-theme="dark"] #click-id-investigation-loader {
	background: rgba(18, 22, 28, 0.72);
}
html[data-theme="dark"] #click-id-investigation-loader .loader-box {
	background: #1e2630;
	color: #eef2f6;
}
html[data-theme="dark"] .weekly-top-details label,
html[data-theme="dark"] .weekly-top-filters label,
html[data-theme="dark"] .weekly-top-meta,
html[data-theme="dark"] .stacked-legend-item {
	color: #c5ced8 !important;
}
html[data-theme="dark"] .sweet-alert .brand-inactivate-email-options {
	background: #171e26;
	border-color: #2f3945;
}
html[data-theme="dark"] .sweet-alert .brand-inactivate-email-options .email-section-title,
html[data-theme="dark"] .sweet-alert .brand-inactivate-email-options .email-radio-text {
	color: #eef2f6;
}
html[data-theme="dark"] .sweet-alert .brand-inactivate-email-options .email-question {
	color: #c5ced8 !important;
}
html[data-theme="dark"] .sweet-alert .brand-inactivate-email-options .email-radio-option {
	background: #1e2630;
	border-color: #2f3945;
	color: #d5dbe3;
}
html[data-theme="dark"] .sweet-alert .brand-inactivate-email-options .email-radio-option.is-selected {
	background: #252e4a;
	border-color: #6ea8fe;
}

/* Documentation */
html[data-theme="dark"] .documentation-search-results,
html[data-theme="dark"] .documentation-diagram-wrap,
html[data-theme="dark"] .markdown-body table th {
	background: #1e2630;
	border-color: #2f3945;
	color: #d5dbe3;
}
html[data-theme="dark"] .documentation-search-results .search-result-item,
html[data-theme="dark"] .documentation-tree-toggle,
html[data-theme="dark"] .documentation-tree-file a {
	color: #d5dbe3;
	border-color: #2f3945;
}
html[data-theme="dark"] .documentation-search-results .search-result-item:hover,
html[data-theme="dark"] .documentation-tree-toggle:hover,
html[data-theme="dark"] .documentation-tree-file a:hover {
	background: #252e3a;
}
html[data-theme="dark"] .documentation-tree-file.is-active a {
	background: #252e4a;
	color: #8b9cff;
}
html[data-theme="dark"] .documentation-search-results .search-result-meta,
html[data-theme="dark"] .documentation-search-results .search-result-snippet {
	color: #9aa3b0;
}
html[data-theme="dark"] .markdown-body {
	color: #d5dbe3;
}
html[data-theme="dark"] .markdown-body h1,
html[data-theme="dark"] .markdown-body h2,
html[data-theme="dark"] .markdown-body h3,
html[data-theme="dark"] .markdown-body h4 {
	color: #eef2f6;
	border-color: #2f3945;
}

/* Plugins: tooltips, popovers, datepicker, jquery UI, flexdatalist, growl */
html[data-theme="dark"] .tooltip-inner,
html[data-theme="dark"] .popover,
html[data-theme="dark"] .popover-title,
html[data-theme="dark"] .popover-content {
	background: #1e2630;
	color: #eef2f6;
	border-color: #2f3945;
}
html[data-theme="dark"] .datepicker,
html[data-theme="dark"] .datepicker-dropdown,
html[data-theme="dark"] .datepicker table tr td,
html[data-theme="dark"] .datepicker table tr th,
html[data-theme="dark"] .ui-widget-content,
html[data-theme="dark"] .ui-widget-header,
html[data-theme="dark"] .ui-datepicker,
html[data-theme="dark"] .flexdatalist-results,
html[data-theme="dark"] .bootstrap-growl {
	background: #1e2630 !important;
	color: #d5dbe3 !important;
	border-color: #2f3945 !important;
}
html[data-theme="dark"] .switch label:before {
	background: #252e3a;
	border-color: #2f3945;
}

/* Highcharts / Chartist */
html[data-theme="dark"] .highcharts-background {
	fill: #1e2630;
}
html[data-theme="dark"] .highcharts-title,
html[data-theme="dark"] .highcharts-subtitle,
html[data-theme="dark"] .highcharts-axis-labels text,
html[data-theme="dark"] .highcharts-legend-item text,
html[data-theme="dark"] .highcharts-data-label text {
	fill: #c5ced8 !important;
	color: #c5ced8 !important;
}
html[data-theme="dark"] .highcharts-grid-line {
	stroke: #2f3945;
}
html[data-theme="dark"] .highcharts-axis-line,
html[data-theme="dark"] .highcharts-tick {
	stroke: #3a4654;
}
html[data-theme="dark"] .ct-label {
	color: #c5ced8 !important;
	fill: #c5ced8 !important;
}
html[data-theme="dark"] .ct-grid {
	stroke: #3a4654 !important;
}
html[data-theme="dark"] #brandDayWiseChart .ct-series-a .ct-bar,
html[data-theme="dark"] #publisherDayWiseChart .ct-series-a .ct-bar {
	stroke: #6ea8fe !important;
}
html[data-theme="dark"] #brandDayWiseChart .ct-series-b .ct-bar,
html[data-theme="dark"] #publisherDayWiseChart .ct-series-b .ct-bar {
	stroke: #93c5fd !important;
}
html[data-theme="dark"] #brandDayWiseChart .ct-series-c .ct-bar,
html[data-theme="dark"] #publisherDayWiseChart .ct-series-c .ct-bar {
	stroke: #38bdf8 !important;
}
html[data-theme="dark"] #brandDayWiseChart .ct-series-d .ct-bar,
html[data-theme="dark"] #publisherDayWiseChart .ct-series-d .ct-bar {
	stroke: #fbbf24 !important;
}
html[data-theme="dark"] .chart-empty-state {
	color: #c5ced8;
}

/* Alerts stay tinted but readable */
html[data-theme="dark"] .alert-success {
	background: #163226;
	border-color: #1f6a45;
	color: #b6f0c8;
}
html[data-theme="dark"] .alert-danger {
	background: #3a1c1c;
	border-color: #7a2e2e;
	color: #ffc4c4;
}
html[data-theme="dark"] .alert-warning {
	background: #3a2f14;
	border-color: #7a6a2e;
	color: #ffe7a3;
}
html[data-theme="dark"] .alert-info {
	background: #163244;
	border-color: #2e5f7a;
	color: #b7e3ff;
}

/* Nav pills, badges, empty copy */
html[data-theme="dark"] .nav-pills > li > a {
	color: #c5ced8;
}
html[data-theme="dark"] .nav-pills > li.active > a {
	background: #3F51B5;
	color: #fff;
}
html[data-theme="dark"] .box-content,
html[data-theme="dark"] .box-content p,
html[data-theme="dark"] .box-content td,
html[data-theme="dark"] .box-content th {
	color: #d5dbe3;
}
html[data-theme="dark"] .box-title {
	color: #eef2f6 !important;
}

/* Report type pills (Drill / Serving) — keep dark text on dark chips, white on active */
html[data-theme="dark"] .report-type-options .form-check-label,
html[data-theme="dark"] .serving-report-type-options .form-check-label {
	background-color: #252e3a !important;
	border-color: #4a5568 !important;
	color: #eef2f6 !important;
}
html[data-theme="dark"] .report-type-options .form-check-input:checked + .form-check-label,
html[data-theme="dark"] .serving-report-type-options .form-check-input:checked + .form-check-label {
	background-color: #5a67d8 !important;
	border-color: #6ea8fe !important;
	color: #ffffff !important;
}

/* Drill multi-filter widget */
html[data-theme="dark"] .drill-multi-checkbox-select__toggle,
html[data-theme="dark"] .drill-multi-checkbox-select__dropdown,
html[data-theme="dark"] .drill-multi-checkbox-select__mode-option span {
	background: #161c24 !important;
	border-color: #2f3945 !important;
	color: #d5dbe3 !important;
}
html[data-theme="dark"] .drill-multi-checkbox-select__label,
html[data-theme="dark"] .drill-multi-checkbox-select__text,
html[data-theme="dark"] .drill-multi-checkbox-select__caret,
html[data-theme="dark"] .drill-multi-checkbox-select__limit,
html[data-theme="dark"] .drill-multi-checkbox-select__empty,
html[data-theme="dark"] .drill-multi-filter__divider {
	color: #c5ced8 !important;
}
html[data-theme="dark"] .drill-multi-checkbox-select__mode {
	background: #171e26 !important;
	border-color: #2f3945 !important;
}
html[data-theme="dark"] .drill-multi-checkbox-select__mode-option input:checked + span {
	background: #5a67d8 !important;
	border-color: #6ea8fe !important;
	color: #ffffff !important;
}
html[data-theme="dark"] .drill-multi-checkbox-select__item:hover {
	background: #252e3a !important;
}
html[data-theme="dark"] .drill-multi-checkbox-select__search-wrap,
html[data-theme="dark"] .drill-multi-checkbox-select__list {
	border-color: #2f3945 !important;
}
html[data-theme="dark"] .filter-card {
	background: #1e2630 !important;
}
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .breadcrumb > li,
html[data-theme="dark"] .breadcrumb > li + li::before,
html[data-theme="dark"] .breadcrumb-item,
html[data-theme="dark"] .breadcrumb-item.active {
	color: #c5ced8 !important;
}
html[data-theme="dark"] .breadcrumb a {
	color: #8b9cff !important;
}

/* Keep colored metrics after box-content text color */
html[data-theme="dark"] .box-content .text-success,
html[data-theme="dark"] .statistics-box .text-success {
	color: #3ee07a !important;
}
html[data-theme="dark"] .box-content .text-primary,
html[data-theme="dark"] .statistics-box .text-primary {
	color: #6ea8fe !important;
}
html[data-theme="dark"] .box-content .text-danger {
	color: #ff7b8a !important;
}
html[data-theme="dark"] .box-content .text-warning {
	color: #ffd36a !important;
}
html[data-theme="dark"] .box-content .text-info {
	color: #5fd0ff !important;
}

/* Summary cards, chips, loaders, report tables */
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .request-log-summary .summary-card,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .serving-comparison-summary .chip,
html[data-theme="dark"] .meta-pill {
	background: #252e3a !important;
	border: 1px solid #3a4654 !important;
	color: #eef2f6 !important;
}
html[data-theme="dark"] .summary-card small,
html[data-theme="dark"] .summary-card strong {
	color: #eef2f6 !important;
}
html[data-theme="dark"] .serving-comparison-meta,
html[data-theme="dark"] .serving-comparison-empty,
html[data-theme="dark"] .serving-comparison-filters label,
html[data-theme="dark"] .serving-comparison-filters .form-label {
	color: #c5ced8 !important;
}

html[data-theme="dark"] .platform-report-loader__backdrop,
html[data-theme="dark"] .brand-search-loader__backdrop,
html[data-theme="dark"] #clicks-report-loader,
html[data-theme="dark"] #click-id-investigation-loader {
	background: rgba(18, 22, 28, 0.72) !important;
}
html[data-theme="dark"] .platform-report-loader__content,
html[data-theme="dark"] .brand-search-loader__content,
html[data-theme="dark"] .loader-box,
html[data-theme="dark"] #clicks-report-loader .loader-box,
html[data-theme="dark"] .dataTables_processing {
	background: #1e2630 !important;
	color: #eef2f6 !important;
	border-color: #2f3945 !important;
}
html[data-theme="dark"] .platform-report-loader__text,
html[data-theme="dark"] .brand-search-loader__text {
	color: #eef2f6 !important;
}

html[data-theme="dark"] table.dataTable,
html[data-theme="dark"] table.dataTable thead th,
html[data-theme="dark"] table.dataTable tbody td,
html[data-theme="dark"] table.dataTable tfoot th,
html[data-theme="dark"] table.dataTable tfoot td,
html[data-theme="dark"] .table > tfoot > tr > td,
html[data-theme="dark"] .table > tfoot > tr > th,
html[data-theme="dark"] tfoot td,
html[data-theme="dark"] tfoot th,
html[data-theme="dark"] #report-table-foot,
html[data-theme="dark"] #report-table-foot td,
html[data-theme="dark"] #totals-row,
html[data-theme="dark"] #totals-row th,
html[data-theme="dark"] .dataTables_empty {
	background: #171e26 !important;
	background-color: #171e26 !important;
	color: #eef2f6 !important;
	border-color: #2f3945 !important;
}

html[data-theme="dark"] .nl-v2-table,
html[data-theme="dark"] .nl-v2-table thead th,
html[data-theme="dark"] .nl-v2-table tbody td,
html[data-theme="dark"] .nl-v2-table .nl-sticky-left,
html[data-theme="dark"] .nl-v2-table thead .nl-sticky-left,
html[data-theme="dark"] .nl-v2-table td.nl-sticky-left,
html[data-theme="dark"] .nl-v2-table td.nl-sticky-left-last,
html[data-theme="dark"] .nl-v2-table .target-head,
html[data-theme="dark"] .nl-v2-table .target-cell,
html[data-theme="dark"] .nl-v2-table td.target-cell.nl-sticky-left,
html[data-theme="dark"] .nl-v2-table td.target-cell.nl-sticky-left-last,
html[data-theme="dark"] .nl-v2-table thead th.target-head.nl-sticky-left,
html[data-theme="dark"] .nl-v2-table thead th.target-head.nl-sticky-left-last,
html[data-theme="dark"] .nl-v2-table tbody tr:hover td.nl-sticky-left,
html[data-theme="dark"] .nl-v2-table tbody tr:hover .target-cell,
html[data-theme="dark"] .nl-v2-table tbody tr:hover td.target-cell.nl-sticky-left,
html[data-theme="dark"] .nl-v2-table tbody tr:hover td.target-cell.nl-sticky-left-last,
html[data-theme="dark"] .nl-v2-table .nl-sticky-right,
html[data-theme="dark"] .nl-v2-table thead .nl-sticky-right,
html[data-theme="dark"] .nl-v2-table tbody tr:hover td.nl-sticky-right,
html[data-theme="dark"] .nl-v2-table .action-head,
html[data-theme="dark"] #server-side-datatables,
html[data-theme="dark"] #server-side-datatables thead th,
html[data-theme="dark"] #server-side-datatables tbody td,
html[data-theme="dark"] #server-side-datatables tbody td.dataTables_empty,
html[data-theme="dark"] #server-side-datatables .nl-sticky-col,
html[data-theme="dark"] #server-side-datatables thead .nl-sticky-col,
html[data-theme="dark"] #server-side-datatables.table-striped > tbody > tr:nth-of-type(odd) > td.nl-sticky-col,
html[data-theme="dark"] table.dataTable.display tbody tr.odd,
html[data-theme="dark"] table.dataTable.display tbody tr.even,
html[data-theme="dark"] table.dataTable.stripe tbody tr.odd,
html[data-theme="dark"] table.dataTable.stripe tbody tr.even,
html[data-theme="dark"] table.dataTable.display tbody tr.odd > td,
html[data-theme="dark"] table.dataTable.display tbody tr.even > td {
	background: #171e26 !important;
	background-color: #171e26 !important;
	color: #eef2f6 !important;
}

html[data-theme="dark"] .nl-v2 .btn.ghost,
html[data-theme="dark"] .btn.ghost {
	background: #252e3a !important;
	color: #eef2f6 !important;
	border-color: #4a5568 !important;
}
html[data-theme="dark"] .nl-v2-loader {
	background: rgba(18, 22, 28, 0.72) !important;
}
html[data-theme="dark"] .nl-v2-loader__box {
	background: #1e2630 !important;
	border-color: #2f3945 !important;
	color: #eef2f6 !important;
}
html[data-theme="dark"] .nl-v2-table .target-main .publisher,
html[data-theme="dark"] .nl-v2-table .pin-label {
	color: #9eb0ff !important;
}

html[data-theme="dark"] .btn-success,
html[data-theme="dark"] .btn-success:hover,
html[data-theme="dark"] .btn-success:focus {
	color: #ffffff !important;
}
html[data-theme="dark"] .btn-success.disabled,
html[data-theme="dark"] .btn-success[disabled],
html[data-theme="dark"] .btn-success.disabled:hover {
	background-color: #1f5c38 !important;
	border-color: #1f5c38 !important;
	color: #d7f3e4 !important;
}

html[data-theme="dark"] .alert-info {
	background: #163244 !important;
	border-color: #2e5f7a !important;
	color: #b7e3ff !important;
}

html[data-theme="dark"] .nl-v2-table tbody tr.nl-v2-inactive-hours-row td,
html[data-theme="dark"] .nl-v2-table tbody tr.nl-v2-inactive-hours-row .target-cell,
html[data-theme="dark"] .nl-v2-table tbody tr.nl-v2-inactive-hours-row td.nl-sticky-left,
html[data-theme="dark"] .nl-v2-table tbody tr.nl-v2-inactive-hours-row td.nl-sticky-right,
html[data-theme="dark"] .nl-v2-card.nl-v2-inactive-hours-row {
	background: #3a3418 !important;
	color: #f5e9b8 !important;
}
html[data-theme="dark"] .nl-v2-table tbody tr.nl-v2-capped-row td,
html[data-theme="dark"] .nl-v2-table tbody tr.nl-v2-capped-row .target-cell,
html[data-theme="dark"] .nl-v2-table tbody tr.nl-v2-capped-row td.nl-sticky-left,
html[data-theme="dark"] .nl-v2-table tbody tr.nl-v2-capped-row td.nl-sticky-right,
html[data-theme="dark"] .nl-v2-card.nl-v2-capped-row {
	background: #3a221f !important;
	color: #f7d0d0 !important;
}
html[data-theme="dark"] .nl-v2-table tbody tr.nl-dashboard-totals-row td,
html[data-theme="dark"] #server-side-datatables tbody tr.nl-dashboard-totals-row,
html[data-theme="dark"] #server-side-datatables tbody tr.nl-dashboard-totals-row td,
html[data-theme="dark"] #server-side-datatables tbody tr.nl-dashboard-totals-row td.nl-sticky-col {
	background: #1f2a38 !important;
	color: #eef2f6 !important;
}
