/* Natus ERP — tema escuro (só ativo com html[data-theme="dark"]). Não altera o tema claro.
 * Regra: no modo escuro alterar apenas paleta (cor de texto, fundo, bordas, sombras).
 * Não definir padding, margin, width, height, min/max-height, line-height, font-size nem
 * white-space em componentes existentes — preserva o layout do template original. */

/* Botão flutuante (sempre) */
.natus-theme-fab {
	position: fixed;
	right: 18px;
	bottom: 22px;
	z-index: 100000;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 50%;
	background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
	color: #2c5282;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.natus-theme-fab:hover {
	transform: scale(1.06);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.natus-theme-fab:focus {
	outline: 2px solid #4299e1;
	outline-offset: 2px;
}

.natus-theme-fab__icons {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.natus-theme-fab__sun {
	display: none;
}

.natus-theme-fab.is-dark .natus-theme-fab__moon {
	display: none;
}

.natus-theme-fab.is-dark .natus-theme-fab__sun {
	display: block;
}

html[data-theme="dark"] .natus-theme-fab {
	background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%);
	color: #fbd38d;
	border-color: rgba(255, 255, 255, 0.12);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .natus-theme-fab:focus {
	outline-color: #90cdf4;
}

/* Toggle na barra superior (ao lado do combo empresa) */
.natus-theme-nav-toggle .natus-theme-nav-toggle__icons {
	display: inline-block;
	line-height: 1;
	vertical-align: middle;
}

.natus-theme-nav-toggle .natus-theme-fab__moon {
	display: block;
}

.natus-theme-nav-toggle .natus-theme-fab__sun {
	display: none;
}

.natus-theme-nav-toggle.is-dark .natus-theme-fab__moon {
	display: none;
}

.natus-theme-nav-toggle.is-dark .natus-theme-fab__sun {
	display: block;
}

.natus-theme-nav-toggle svg {
	vertical-align: middle;
}

html[data-theme="dark"] .navbar.navbar-dark .natus-theme-nav-toggle.btn-outline-light {
	color: #fbd38d;
	border-color: rgba(255, 255, 255, 0.45);
}

/* Menu do usuário (tema + sair) */
.natus-user-menu > .dropdown-menu {
	min-width: 220px;
	left: auto;
	right: 0;
}

.natus-user-menu .dropdown-menu > li > a.natus-user-menu__action {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-decoration: none;
}

.natus-user-menu .natus-user-menu__switch {
	float: right;
	position: relative;
	margin-top: 3px;
	width: 38px;
	height: 20px;
	border-radius: 999px;
	background: #c7ccd1;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14);
	transition: background-color 0.2s ease;
}

.natus-user-menu .natus-user-menu__switch-dot {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease;
}

.natus-user-menu .natus-user-menu__switch.is-on {
	background: #46cf67;
}

.natus-user-menu .natus-user-menu__switch.is-on .natus-user-menu__switch-dot {
	transform: translateX(18px);
}

/* ——— Tema escuro ——— */
html[data-theme="dark"] body,
html[data-theme="dark"] #body {
	background: #1e1e1e !important;
	background-image: none !important;
	color: #e4e6eb;
}

/* Área principal (#content é irmão do #sidebarbg): garante fundo coerente atrás do conteúdo */
html[data-theme="dark"] #wrapper {
	background: #1e1e1e !important;
	background-image: none !important;
}

html[data-theme="dark"] a {
	color: #90cdf4;
}

html[data-theme="dark"] a:hover {
	color: #bee3f8;
}

html[data-theme="dark"] #content,
html[data-theme="dark"] #content-noside,
html[data-theme="dark"] #content-one,
html[data-theme="dark"] #content-two {
	background: #1e1e1e !important;
	background-image: none !important;
	color: #e4e6eb;
}

/* Barra fixa de ações (cadastro/pesquisa) — _ToolBar.cshtml; custom.css usa fundo branco */
html[data-theme="dark"] #toolbar {
	background: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35) !important;
}

/*
 * Backdrop do menu overlay: manter translúcido (custom.css usa rgba no claro).
 * Fundo sólido #161b22 cobria a área toda e “apagava” o conteúdo.
 * Evitar preto RGB(0,0,0) no escuro: scrim em #1e1e1e (ex.: Home remove .hided do #sidebarbg).
 */
html[data-theme="dark"] #sidebarbg {
	background: rgba(30, 30, 30, 0.62) !important;
	background-image: none !important;
	border-right: none !important;
}

html[data-theme="dark"] #sidebarbg-right {
	background: rgba(30, 30, 30, 0.62) !important;
	background-image: none !important;
	border-left: none !important;
}

html[data-theme="dark"] #sidebar,
html[data-theme="dark"] #sidebar-right {
	background-color: #161b22 !important;
	background-image: none !important;
}

html[data-theme="dark"] #sidebar .sidenav,
html[data-theme="dark"] #sidebar-right .sidenav {
	background: transparent !important;
}

/*
 * Logo do cliente: no escuro o fundo escuro some com logomarcas escuras.
 * Painel claro “cartão” dentro da sidebar para contraste (igual ideia do #fff no claro).
 */
html[data-theme="dark"] .sidebar-logo-wrap {
	background: #f0f3f6 !important;
	background-image: none !important;
	border: 1px solid #484f58 !important;
	border-radius: 0 !important;
	margin: 12px 0 18px !important;
	padding: 14px 16px !important;
	box-shadow:
		0 2px 12px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}

html[data-theme="dark"] .sidebar-logo {
	max-width: 118px !important;
	max-height: 56px !important;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.08));
}

html[data-theme="dark"] #sidebar .shortcuts,
html[data-theme="dark"] #sidebar-right .shortcuts {
	background: #1c2128 !important;
	background-image: none !important;
	filter: none !important;
	border-bottom-color: #30363d !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .sidebar-widget .title,
html[data-theme="dark"] #sidebar .sidebar-widget h5.title {
	background: #21262d !important;
	color: #e4e6eb !important;
	border-color: #30363d !important;
}

/*
 * main.css .mainnav: border-top branco + box-shadow branco + hover gradiente claro —
 * no escuro isso deixa o menu “lavado” e texto ilegível.
 */
html[data-theme="dark"] .mainnav li a {
	color: #e4e6eb !important;
	text-shadow: none !important;
	border-top-color: #30363d !important;
	border-bottom-color: #30363d !important;
	-moz-box-shadow: none !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	background: #161b22 !important;
	background-image: none !important;
	filter: none !important;
}

html[data-theme="dark"] .mainnav li a:hover {
	color: #fff !important;
	background: #21262d !important;
	background-image: none !important;
	filter: none !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .mainnav li a.current,
html[data-theme="dark"] .mainnav li a.current:hover,
html[data-theme="dark"] #sidebar-right .mainnav li a.current,
html[data-theme="dark"] #sidebar-right .mainnav li a.current:hover {
	background: #2d4a63 !important;
	background-image: none !important;
	color: #fff !important;
	filter: none !important;
}

/* Painel dos itens internos: fundo mais claro que os agrupadores (#161b22), como o cinza do tema claro */
html[data-theme="dark"] .mainnav ul li .sub {
	background: #252d3a !important;
	background-image: none !important;
	border-color: #3d4654 !important;
	filter: none !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .mainnav ul li .sub li a {
	color: #e8ecf2 !important;
	border-color: #3d4654 !important;
	-moz-box-shadow: none !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	background: #2c3544 !important;
	background-image: none !important;
	filter: none !important;
}

html[data-theme="dark"] .mainnav ul li .sub li a:hover {
	background: #384252 !important;
	background-image: none !important;
	color: #fff !important;
	filter: none !important;
	border-color: #3d4654 !important;
}

html[data-theme="dark"] .mainnav ul li .sub li:last-child {
	-moz-box-shadow: none !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
	border-bottom-color: #3d4654 !important;
}

html[data-theme="dark"] .mainnav ul li .sub li a.current {
	box-shadow: none !important;
	border-color: #3d4654 !important;
	background-image: none !important;
}

html[data-theme="dark"] .mainnav ul li .sub li a.current:hover {
	background: #2d4a63 !important;
	background-image: none !important;
	border-color: #3d4654 !important;
}

html[data-theme="dark"] .mainnav li a [class*="icomoon-icon"],
html[data-theme="dark"] .mainnav ul li .sub a [class*="icomoon-icon"],
html[data-theme="dark"] .mainnav li a [class*="minia-icon"],
html[data-theme="dark"] .mainnav ul li .sub a [class*="minia-icon"] {
	color: #8b9eb3 !important;
}

/* Ícones dos itens internos: um tom mais claro, alinhado ao texto .sub */
html[data-theme="dark"] .mainnav ul li .sub li a [class*="icomoon-icon"],
html[data-theme="dark"] .mainnav ul li .sub li a [class*="minia-icon"] {
	color: #a8b8ca !important;
}

html[data-theme="dark"] .mainnav li a:hover [class*="icomoon-icon"],
html[data-theme="dark"] .mainnav ul li .sub li a:hover [class*="icomoon-icon"],
html[data-theme="dark"] .mainnav li a:hover [class*="minia-icon"],
html[data-theme="dark"] .mainnav ul li .sub li a:hover [class*="minia-icon"] {
	color: #d8e0ea !important;
}

html[data-theme="dark"] .navbar-inner {
	background-color: #1f4f72 !important;
	background-image: none !important;
	border-bottom-color: #2d6a95 !important;
	filter: none !important;
}

html[data-theme="dark"] .navbar,
html[data-theme="dark"] #header,
html[data-theme="dark"] #header .navbar {
	background: #1f4f72 !important;
	background-image: none !important;
	border-color: #2d6a95 !important;
}

html[data-theme="dark"] .navbar .nav > li > a {
	color: #e4e6eb !important;
	text-shadow: none !important;
	border-color: #4a5568 !important;
	background-color: #2d3748 !important;
	background-image: none !important;
	/* mesma ideia do inset claro do template, sem mudar dimensões */
	box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1) !important;
	filter: none !important;
}

html[data-theme="dark"] .navbar .nav li > a:hover,
html[data-theme="dark"] .navbar .nav .active > a,
html[data-theme="dark"] .navbar .nav .active > a:hover {
	color: #fff !important;
	background-color: #3a4c61 !important;
	background-image: none !important;
	box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] #infEmpresa,
html[data-theme="dark"] #infEmpresa a,
html[data-theme="dark"] #infEmpresa span {
	color: #e9f2fb !important;
}

/*
 * Combo unidade no topo: “pill” cinza #1e1e1e sobre a barra azul (#1f4f72); texto #e4e6eb.
 * CorFundo branca/clara no cadastro vinha como style inline !important e vencia o CSS — ignorada em Application.js.
 * main.css #header .navbar .nav a — precisa 2 IDs + a.select2-choice.
 */
html[data-theme="dark"] .navbar .nav li.dropdown:has(#s2id_AlterarEmpresa_IDUnidadeNegocio) > div {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
}

html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio {
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	overflow: visible;
}

html[data-theme="dark"] #header #infEmpresa #s2id_AlterarEmpresa_IDUnidadeNegocio a.select2-choice,
html[data-theme="dark"] #header .navbar .nav #s2id_AlterarEmpresa_IDUnidadeNegocio a.select2-choice,
html[data-theme="dark"] #header #s2id_AlterarEmpresa_IDUnidadeNegocio a.select2-choice,
html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio a.select2-choice {
	display: block !important;
	float: none !important;
	box-sizing: border-box !important;
	width: auto !important;
	min-width: 180px !important;
	max-width: 230px !important;
	/* anula body.fixedWidth / main.css: #header .navbar .nav a — sem allowClear, só área da seta */
	padding: 0 32px 0 10px !important;
	font-size: 12px !important;
	line-height: 22px !important;
	min-height: 24px !important;
	text-shadow: none !important;
	filter: none !important;
	background: #1e1e1e !important;
	background-color: #1e1e1e !important;
	background-image: none !important;
	color: #e4e6eb !important;
	border: 1px solid #525252 !important;
	box-shadow: none !important;
	border-radius: 6px !important;
}

html[data-theme="dark"] #header #infEmpresa #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-chosen,
html[data-theme="dark"] #header .navbar .nav #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-chosen,
html[data-theme="dark"] #header #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-chosen,
html[data-theme="dark"] #infEmpresa #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-chosen,
html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-chosen {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: #e4e6eb !important;
	text-shadow: none !important;
}

html[data-theme="dark"] #header .navbar .nav #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-arrow,
html[data-theme="dark"] #header #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-arrow,
html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-arrow {
	background: #1e1e1e !important;
	background-color: #1e1e1e !important;
	background-image: none !important;
	border-left-color: #525252 !important;
	border-top-right-radius: 6px !important;
	border-bottom-right-radius: 6px !important;
}

html[data-theme="dark"] #header .navbar .nav #s2id_AlterarEmpresa_IDUnidadeNegocio.select2-dropdown-open a.select2-choice,
html[data-theme="dark"] #header #s2id_AlterarEmpresa_IDUnidadeNegocio.select2-dropdown-open a.select2-choice,
html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio.select2-dropdown-open a.select2-choice,
html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio.select2-drop-above a.select2-choice {
	background-color: #1e1e1e !important;
	background-image: none !important;
	color: #e4e6eb !important;
	border-color: #58a6ff !important;
}

html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-choice[style] .select2-arrow {
	background: inherit !important;
	background-image: none !important;
	border-left-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio,
html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-choice,
html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-arrow {
	border-radius: 6px !important;
}

/* Seta: mesmo tom cinza-claro da grid */
html[data-theme="dark"] #s2id_AlterarEmpresa_IDUnidadeNegocio .select2-arrow b {
	background-color: transparent !important;
	filter: brightness(0) invert(78%) !important;
	opacity: 0.9 !important;
}

html[data-theme="dark"] .resBtn a,
html[data-theme="dark"] .resBtnSearch a,
html[data-theme="dark"] .collapseBtn a {
	color: #e4e6eb !important;
	text-shadow: none !important;
	border-color: #4a5568 !important;
	background-color: #2d3748 !important;
	background-image: none !important;
	filter: none !important;
	box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

html[data-theme="dark"] .dropdown-menu {
	background: #21262d !important;
	border-color: #30363d !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

html[data-theme="dark"] .dropdown-menu a {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .natus-user-menu .dropdown-menu {
	background: #21262d !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .natus-user-menu .dropdown-menu > li > a.natus-user-menu__action {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .natus-user-menu .dropdown-menu > li > a.natus-user-menu__action:hover {
	background-color: #30363d !important;
	color: #fff !important;
	text-decoration: none !important;
}

html[data-theme="dark"] .natus-user-menu .natus-user-menu__switch {
	background: #4a535d;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .natus-user-menu .natus-user-menu__switch.is-on {
	background: #3ac75f;
}

html[data-theme="dark"] .dropdown-menu .menu {
	background: #21262d !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .dropdown-menu .menu li {
	border-bottom-color: #30363d !important;
}

html[data-theme="dark"] .dropdown-menu .icon {
	background: #161b22 !important;
	border-color: #30363d !important;
}

/* Glyphs IcoMoon/Minia/Silk na caixinha .icon: icons.css usa #353535 — some no fundo escuro */
html[data-theme="dark"] .dropdown-menu .icon [class*="icomoon-icon"],
html[data-theme="dark"] .dropdown-menu .icon [class*="minia-icon"],
html[data-theme="dark"] .dropdown-menu .icon [class*="silk-icon"],
html[data-theme="dark"] .dropdown-menu .icon [class*="entypo-icon"] {
	color: #c9d1d9 !important;
}

html[data-theme="dark"] .dropdown-menu .menu .notif li a:hover .icon [class*="icomoon-icon"],
html[data-theme="dark"] .dropdown-menu .menu .notif li a:hover .icon [class*="minia-icon"],
html[data-theme="dark"] .dropdown-menu .menu .notif li a:hover .icon [class*="silk-icon"],
html[data-theme="dark"] .dropdown-menu .menu .notif li a:hover .icon [class*="entypo-icon"] {
	color: #ffffff !important;
}

.natus-user-menu .natus-user-menu__greeting {
	pointer-events: none;
	cursor: default;
	user-select: none;
}

html[data-theme="dark"] .natus-user-menu .natus-user-menu__greeting {
	color: #e4e6eb !important;
	background: transparent !important;
	border-bottom: 1px solid #30363d !important;
}

html[data-theme="dark"] .natus-user-menu .natus-user-menu__greeting strong {
	color: #f0f3f6 !important;
	font-weight: 600;
}

html[data-theme="dark"] .navbar .nav li.dropdown ul a:hover {
	color: #fff !important;
}

/* Toggle de tema: mesmo “chrome” dos outros links da navbar (main.css .navbar .nav > li > a) */
html[data-theme="dark"] .navbar .nav > li > a.natus-theme-nav-toggle[data-theme-toggle],
html[data-theme="dark"] .navbar .nav > li > a.natus-theme-nav-toggle {
	float: none;
	line-height: 18px;
	font-size: 11px;
	padding: 8px 10px;
	border: 1px solid;
	border-color: #4a5568 !important;
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	background-color: #2d3748 !important;
	background-image: none !important;
	color: #e4e6eb !important;
	box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1) !important;
	text-shadow: none !important;
	filter: none !important;
}

html[data-theme="dark"] .navbar .nav > li > a.natus-theme-nav-toggle[data-theme-toggle]:hover,
html[data-theme="dark"] .navbar .nav > li > a.natus-theme-nav-toggle:hover {
	background-color: #374151 !important;
	background-image: none !important;
	color: #fff !important;
	box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .navbar .nav > li > a.natus-theme-nav-toggle[data-theme-toggle] svg,
html[data-theme="dark"] .navbar .nav > li > a.natus-theme-nav-toggle svg {
	vertical-align: middle;
}

html[data-theme="dark"] .caret {
	border-top-color: #adbac7 !important;
}

html[data-theme="dark"] .box .title {
	background: #1c2128 !important;
	background-image: none !important;
	border-color: #30363d !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .box .title h4 {
	background-color: #244d70 !important;
	color: #edf5fd !important;
}

/* Títulos comerciais/suprimentos: manter a diferenciação verde/vermelha visível no tema escuro. */
html[data-theme="dark"] .box .title h4.fundoVerdeOpacidade005 {
	background: #123f1f none !important;
	background-color: #123f1f !important;
	color: #e8fff0 !important;
}

html[data-theme="dark"] .box .title h4.fundoVerdeOpacidade015 {
	background: #1a5b2d none !important;
	background-color: #1a5b2d !important;
	color: #e8fff0 !important;
}

html[data-theme="dark"] .box .title h4.fundoVerdeOpacidade025 {
	background: #22773a none !important;
	background-color: #22773a !important;
	color: #f0fff4 !important;
}

html[data-theme="dark"] .box .title h4.fundoVerdeOpacidade035 {
	background: #2a9248 none !important;
	background-color: #2a9248 !important;
	color: #f0fff4 !important;
}

html[data-theme="dark"] .box .title h4.fundoVerdeOpacidade04 {
	background: #32ae55 none !important;
	background-color: #32ae55 !important;
	color: #f0fff4 !important;
}

html[data-theme="dark"] .box .title h4.fundoVermelhoOpacidade005 {
	background: #3f1212 none !important;
	background-color: #3f1212 !important;
	color: #fff0f0 !important;
}

html[data-theme="dark"] .box .title h4.fundoVermelhoOpacidade015 {
	background: #5b1a1a none !important;
	background-color: #5b1a1a !important;
	color: #fff0f0 !important;
}

html[data-theme="dark"] .box .title h4.fundoVermelhoOpacidade025 {
	background: #772222 none !important;
	background-color: #772222 !important;
	color: #fff5f5 !important;
}

html[data-theme="dark"] .box .title h4.fundoVermelhoOpacidade035 {
	background: #922a2a none !important;
	background-color: #922a2a !important;
	color: #fff5f5 !important;
}

html[data-theme="dark"] .box .title h4.fundoVermelhoOpacidade04 {
	background: #ae3232 none !important;
	background-color: #ae3232 !important;
	color: #fff5f5 !important;
}

/* Chips "Filtrando por": mesmo âmbar dos campos com valor (repaintFiltros #4a3f20) */
html[data-theme="dark"] .resumoFiltros,
html[data-theme="dark"] #filtrosResumidos .resumoFiltros {
	background: #4a3f20 !important;
	background-color: #4a3f20 !important;
	color: #f5ecd0 !important;
	border: 1px solid #8a7220 !important;
	border-radius: 4px;
	box-shadow:
		inset 0 0 0 1px rgba(234, 179, 8, 0.45),
		0 1px 2px rgba(0, 0, 0, 0.25) !important;
}

/* Ícones no título: icons.css usa #353535 — some no azul do h4 */
html[data-theme="dark"] .box .title h4 span.icon16,
html[data-theme="dark"] .box .title h4 [class*="icomoon-icon"],
html[data-theme="dark"] .box .title h4 [class*="minia-icon"],
html[data-theme="dark"] .box .title h4 [class*="silk-icon"],
html[data-theme="dark"] .box .title h4 [class*="entypo-icon"],
html[data-theme="dark"] .box .title h4 [class*="brocco-icon"],
html[data-theme="dark"] .box .title h4 [class*="cut-icon"],
html[data-theme="dark"] .box .title h4 span[class*=" icon-"],
html[data-theme="dark"] .box .title h4 span[class^="icon-"],
html[data-theme="dark"] .box .titleCustom h4 span.icon16,
html[data-theme="dark"] .box .titleCustom h4 [class*="icomoon-icon"],
html[data-theme="dark"] .box .titleCustom h4 [class*="minia-icon"],
html[data-theme="dark"] .box .titleCustom h4 [class*="silk-icon"],
html[data-theme="dark"] .box .titleCustom h4 [class*="entypo-icon"],
html[data-theme="dark"] .box .titleCustom h4 [class*="brocco-icon"],
html[data-theme="dark"] .box .titleCustom h4 [class*="cut-icon"],
html[data-theme="dark"] .box .titleCustom h4 span[class*=" icon-"],
html[data-theme="dark"] .box .titleCustom h4 span[class^="icon-"] {
	color: #edf5fd !important;
}

/* Sprite glyphicons no h4: cor não afeta — inverter */
html[data-theme="dark"] .box .title h4 span[class*=" icon-"],
html[data-theme="dark"] .box .title h4 span[class^="icon-"],
html[data-theme="dark"] .box .titleCustom h4 span[class*=" icon-"],
html[data-theme="dark"] .box .titleCustom h4 span[class^="icon-"] {
	filter: brightness(0) invert(1) !important;
	opacity: 0.95;
}

html[data-theme="dark"] .h4-title-e,
html[data-theme="dark"] .h4-title-d,
html[data-theme="dark"] .registrosPorLinhaGrid,
html[data-theme="dark"] .filtroRapido {
	color: #e4e6eb !important;
}

html[data-theme="dark"] a.btn-expandir-grid-modal {
	color: #e4e6eb !important;
}

html[data-theme="dark"] a.btn-expandir-grid-modal:hover {
	background-color: #21262d !important;
	border-color: #30363d !important;
	color: #f0f6fc !important;
}

html[data-theme="dark"] .registrosPorLinhaGrid input,
html[data-theme="dark"] .registrosPorLinhaGrid select,
html[data-theme="dark"] .filtroRapido input {
	background-color: #000000 !important;
	color: #e4e6eb !important;
	border-color: #525252 !important;
}

html[data-theme="dark"] .box .content {
	background-color: #1e1e1e !important;
	border-color: #30363d !important;
	color: #e4e6eb;
}

/* Memo "Filtrando por" reposicionado para o rodapé do painel de filtros (Application.js) */
.filtros-resumidos-rodape {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #dee2e6;
	line-height: 1.55;
	clear: both;
}

html[data-theme="dark"] .filtros-resumidos-rodape {
	margin-top: 14px;
	padding-top: 12px;
	border-top-color: #30363d;
	color: #b1bac4;
}

html[data-theme="dark"] .box.gradient .title {
	background: #1c2128 !important;
	background-image: none !important;
	filter: none !important;
}

html[data-theme="dark"] .heading {
	background: #1c2128 !important;
	background-image: none !important;
	border-bottom-color: #30363d !important;
	box-shadow: none !important;
	filter: none !important;
	color: #e4e6eb;
}

html[data-theme="dark"] .heading h3 {
	color: #e4e6eb;
}

html[data-theme="dark"] .modal {
	background: #161b22;
}

html[data-theme="dark"] .modal-header {
	background: #21262d !important;
	border-bottom-color: #30363d !important;
	color: #e4e6eb;
}

html[data-theme="dark"] .modal-body {
	background: #161b22 !important;
	color: #e4e6eb;
}

html[data-theme="dark"] .modal-footer {
	background: #161b22 !important;
	border-top-color: #30363d !important;
}

/* Wizard (Associar Produto): main.css usa fundo claro (#f8f8f8/#fff) */
html[data-theme="dark"] .ui-formwizard {
	background: #161b22 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .ui-formwizard .wizard-steps.show {
	background: #1c2128 !important;
	border-bottom-color: #30363d !important;
}

html[data-theme="dark"] .ui-formwizard .wizard-steps .wstep {
	color: #8b949e !important;
	border-right-color: #30363d !important;
}

html[data-theme="dark"] .ui-formwizard .wizard-steps .wstep.current {
	color: #dbe8f6 !important;
}

html[data-theme="dark"] .ui-formwizard .wizard-steps .wstep.done {
	color: #a5d6a7 !important;
}

html[data-theme="dark"] .ui-formwizard .wizard-steps .wstep .donut {
	border-color: #6e7681 !important;
	color: #8b949e !important;
}

html[data-theme="dark"] .ui-formwizard .wizard-steps .wstep.current .donut {
	border-color: #9ecbff !important;
	color: #dbe8f6 !important;
}

html[data-theme="dark"] .ui-formwizard .wizard-steps .wstep.done .donut {
	border-color: #6abf69 !important;
	color: #a5d6a7 !important;
}

html[data-theme="dark"] .ui-formwizard .wizard-steps .wstep .donut span.icon16 {
	color: #8b949e !important;
}

html[data-theme="dark"] .ui-formwizard .wizard-steps .wstep.current .donut span.icon16 {
	color: #dbe8f6 !important;
}

html[data-theme="dark"] .ui-formwizard .wizard-steps .wstep.done .donut span.icon16 {
	color: #a5d6a7 !important;
}

html[data-theme="dark"] .ui-formwizard .form-actions,
html[data-theme="dark"] #wizard .form-actions,
html[data-theme="dark"] #GestorXmlAssociar .form-actions {
	background: #161b22 !important;
	border-top-color: #30363d !important;
	border-bottom-color: #30363d !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .close {
	color: #adbac7;
	opacity: 0.9;
}

/*
 * Backdrop no escuro: NÃO estilizar .modal-backdrop.fade sem .in.
 * O BS2 anima opacity 0→visível e só no transitionend do backdrop chama o callback que adiciona .in ao .modal.
 * Um seletor genérico html[data-theme="dark"] .modal-backdrop aplicava opacity nos dois estados, quebrava a transição
 * e o modal (#boostrapModal) ficava para sempre com display:none !important (custom.css :not(.in)).
 */
html[data-theme="dark"] .modal-backdrop.fade.in {
	background: #1e1e1e;
	opacity: 0.65;
}

html[data-theme="dark"] .modal-backdrop:not(.fade) {
	background: #1e1e1e;
	opacity: 0.65;
}

/* jQuery UI: custom.css usa #000 no overlay; no escuro usar cinza VS Code (#1e1e1e), não preto absoluto */
html[data-theme="dark"] .ui-widget-overlay {
	background: #1e1e1e !important;
}

/*
 * Modal de aviso do servidor (#boostrapModal): só legibilidade no escuro.
 * Respostas costumam trazer color:#000 (ou equivalente) no HTML — some no .modal-body escuro.
 * Não altera z-index, pointer-events, posicionamento nem backdrop; a pilha continua igual ao tema claro.
 */
html[data-theme="dark"] #boostrapModal .modal-body {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #boostrapModal .modal-body * {
	color: inherit !important;
}

html[data-theme="dark"] #boostrapModal .modal-body a,
html[data-theme="dark"] #boostrapModal .modal-body a:visited {
	color: #79b8ff !important;
}

html[data-theme="dark"] input:not([type]),
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="url"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="date"],
html[data-theme="dark"] input[type="time"],
html[data-theme="dark"] input[type="datetime"],
html[data-theme="dark"] input[type="datetime-local"],
html[data-theme="dark"] input[type="month"],
html[data-theme="dark"] input[type="week"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .uneditable-input {
	background-color: #000000 !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-container .select2-choice {
	background-color: #000000 !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-container .select2-choice .select2-arrow {
	background: #000000 !important;
	border-left-color: #30363d !important;
	background-image: none !important;
}

html[data-theme="dark"] .select2-drop {
	background: #000000 !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-results {
	background: #000000 !important;
	color: #e4e6eb;
}

html[data-theme="dark"] .select2-results .select2-highlighted {
	background: #3a3a3a !important;
	color: #fff !important;
}

/*
 * Select2 v3 (select2.css): .select2-dropdown-open, .select2-search input e .select2-no-results
 * usam gradientes brancos — em modais (ex.: Vinculados / Chave de Referência) ficam ilegíveis.
 */
html[data-theme="dark"] .select2-dropdown-open .select2-choice,
html[data-theme="dark"] .select2-dropdown-open.select2-drop-above .select2-choice,
html[data-theme="dark"] .select2-container.select2-drop-above .select2-choice {
	background-color: #000000 !important;
	background-image: none !important;
	border-color: #58a6ff !important;
	color: #e4e6eb !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .select2-container .select2-choice .select2-chosen {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-search input {
	background-color: #000000 !important;
	background-image: none !important;
	color: #e4e6eb !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .select2-search input.select2-active {
	background-color: #000000 !important;
	background-image: url("../../Scripts/template/plugins/select2/select2-spinner.gif") !important;
	background-repeat: no-repeat !important;
	background-position: right 8px center !important;
	color: #e4e6eb !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .select2-results .select2-result-label {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-results .select2-no-results,
html[data-theme="dark"] .select2-results .select2-searching,
html[data-theme="dark"] .select2-results .select2-selection-limit,
html[data-theme="dark"] .select2-results .select2-disabled,
html[data-theme="dark"] .select2-more-results {
	background: #21262d !important;
	color: #adbac7 !important;
}

html[data-theme="dark"] .select2-results .select2-disabled.select2-highlighted {
	background: #21262d !important;
	color: #8b949e !important;
}

html[data-theme="dark"] .select2-results li em {
	background: #3d3420 !important;
	color: #f0e6c8 !important;
}

html[data-theme="dark"] .select2-results .select2-highlighted ul {
	background: #000000 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-drop.select2-drop-active {
	border-color: #58a6ff !important;
}

html[data-theme="dark"] .select2-container-active .select2-choice,
html[data-theme="dark"] .select2-container-active .select2-choices {
	border-color: #58a6ff !important;
	box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.35) !important;
}

html[data-theme="dark"] .select2-dropdown-open .select2-choice .select2-arrow {
	background: #000000 !important;
	border-left-color: #30363d !important;
}

/*
 * Select2 v3 multi: .select2-choices tem gradiente branco; o input .select2-search-field
 * usa background transparent — fica uma faixa clara (ex.: Vendedor(es)) fora do padrão escuro.
 */
html[data-theme="dark"] .select2-container-multi .select2-choices {
	background-color: #000000 !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-container-multi.select2-container-active .select2-choices,
html[data-theme="dark"] .select2-container-multi.select2-dropdown-open .select2-choices,
html[data-theme="dark"] .select2-dropdown-open.select2-drop-above .select2-choices {
	background-color: #000000 !important;
	background-image: none !important;
	border-color: #58a6ff !important;
	box-shadow: 0 0 0 1px rgba(88, 166, 255, 0.35) !important;
}

html[data-theme="dark"] .select2-container-multi .select2-choices .select2-search-field input {
	background-color: #000000 !important;
	color: #e4e6eb !important;
	border: 0 !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .select2-container-multi .select2-choices .select2-search-field input.select2-active {
	background-color: #000000 !important;
	background-image: url("../../Scripts/template/plugins/select2/select2-spinner.gif") !important;
	background-repeat: no-repeat !important;
	background-position: right 6px center !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-container-multi .select2-choices .select2-search-choice {
	background-color: #21262d !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .select2-container-multi .select2-choices .select2-search-choice .select2-chosen {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-container-multi .select2-choices .select2-search-choice-focus {
	background-color: #30363d !important;
	background-image: none !important;
}

html[data-theme="dark"] .select2-container-multi .select2-choices .select2-search-choice-close {
	filter: invert(0.85);
	opacity: 0.9;
}

html[data-theme="dark"] .select2-container-multi.select2-container-disabled .select2-choices,
html[data-theme="dark"] .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice {
	background-color: #030508 !important;
	background-image: none !important;
	border-color: #292f38 !important;
	color: #4a5563 !important;
}

html[data-theme="dark"] .select2-container-multi .select2-drop.select2-drop-multi .select2-results {
	background: #000000 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-default {
	color: #8b949e !important;
}

/* Pesquisa / relatório: destaque #fcfdc6 e Select2 legíveis no escuro */
html[data-theme="dark"] [id*="Pesquisa"] input[type="text"],
html[data-theme="dark"] [id*="Pesquisa"] input[type="search"],
html[data-theme="dark"] [id*="Pesquisa"] input[type="number"],
html[data-theme="dark"] [id*="Pesquisa"] input[type="email"],
html[data-theme="dark"] [id*="Pesquisa"] textarea,
html[data-theme="dark"] [id*="Relatorio"] input[type="text"],
html[data-theme="dark"] [id*="Relatorio"] input[type="search"],
html[data-theme="dark"] [id*="Relatorio"] textarea {
	background-color: #000000 !important;
	color: #e4e6eb !important;
	border-color: #484f58 !important;
}

html[data-theme="dark"] [id*="Pesquisa"] input[style*="fcfdc6"],
html[data-theme="dark"] [id*="Pesquisa"] input[style*="FCFDC6"],
html[data-theme="dark"] [id*="Relatorio"] input[style*="fcfdc6"],
html[data-theme="dark"] [id*="Relatorio"] input[style*="FCFDC6"] {
	background-color: #2d333b !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container .select2-choice,
html[data-theme="dark"] [id*="Relatorio"] .select2-container .select2-choice {
	background-color: #000000 !important;
	background-image: none !important;
	border-color: #484f58 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container .select2-choice .select2-chosen,
html[data-theme="dark"] [id*="Relatorio"] .select2-container .select2-choice .select2-chosen {
	color: #e4e6eb !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container .select2-choice .select2-arrow,
html[data-theme="dark"] [id*="Relatorio"] .select2-container .select2-choice .select2-arrow {
	background-color: #000000 !important;
	background-image: none !important;
	border-left-color: #30363d !important;
}

html[data-theme="dark"] [id*="Pesquisa"] span.select2-chosen,
html[data-theme="dark"] [id*="Relatorio"] span.select2-chosen {
	color: #e4e6eb !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] [id*="Relatorio"] .select2-container--default .select2-selection--single {
	background-color: #000000 !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container--default .select2-selection--single .select2-selection__rendered,
html[data-theme="dark"] [id*="Relatorio"] .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #e4e6eb !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-default,
html[data-theme="dark"] [id*="Relatorio"] .select2-default {
	color: #b1bac4 !important;
}

/*
 * Select2 v4 (cadastros / telas sem Pesquisa–Relatório): mesmo fundo preto dos inputs nativos.
 */
html[data-theme="dark"] .select2-container--default .select2-selection--single {
	background-color: #000000 !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__arrow {
	background-color: #000000 !important;
	border-left-color: #30363d !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--multiple {
	background-color: #000000 !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__rendered {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .select2-dropdown {
	background-color: #000000 !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container-multi .select2-choices,
html[data-theme="dark"] [id*="Relatorio"] .select2-container-multi .select2-choices {
	border-color: #484f58 !important;
}

/*
 * DevExpress Pivot (#pivotContainer): modo escuro = fundos/bordas neutros escuros.
 * NÃO forçar color em td/th nem em .dxpgDataArea — aí vivem cores de controle (vermelho/verde).
 * Texto claro nos cabeçalhos: herança nas zonas abaixo + JS (neutros só) para nós com cor DX !important.
 */
html[data-theme="dark"] #pivotContainer {
	background-color: #161b22 !important;
	background-image: none !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] #pivotContainer .dxpgControl,
html[data-theme="dark"] #pivotContainer .dxpgMainTable,
html[data-theme="dark"] #pivotContainer table {
	background-color: #161b22 !important;
	background-image: none !important;
}

html[data-theme="dark"] #pivotContainer td,
html[data-theme="dark"] #pivotContainer th {
	background-color: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] #pivotContainer .dxpgColumnFieldValue,
html[data-theme="dark"] #pivotContainer .dxpgColumnTotalFieldValue,
html[data-theme="dark"] #pivotContainer .dxpgRowFieldValue,
html[data-theme="dark"] #pivotContainer .dxpgRowTotalFieldValue,
html[data-theme="dark"] #pivotContainer .dxpgGrandTotalFieldValue,
html[data-theme="dark"] #pivotContainer .dxpgFilterArea,
html[data-theme="dark"] #pivotContainer .dxpgColumnArea,
html[data-theme="dark"] #pivotContainer .dxpgRowArea,
html[data-theme="dark"] #pivotContainer .dxpgFilteredValues {
	background-color: #1c2128 !important;
	background-image: none !important;
	border-color: #30363d !important;
}

/* Zonas de rótulo / filtro: cor “invertida” (clara). Área de dados fica de fora. */
html[data-theme="dark"] #pivotContainer .dxpgFilterArea,
html[data-theme="dark"] #pivotContainer .dxpgColumnArea,
html[data-theme="dark"] #pivotContainer .dxpgRowArea,
html[data-theme="dark"] #pivotContainer .dxpgFilteredValues {
	color: #e4e6eb !important;
}

/*
 * DevExpress aplica color escuro em td/th dos campos (Plano Fin., C. Result., etc.) com !important;
 * a cor no pai .dxpgColumnArea não herda. Reforço em td/th das áreas de cromo + cabeçalho (nunca .dxpgDataArea).
 */
html[data-theme="dark"] #pivotContainer .dxpgFilterArea td,
html[data-theme="dark"] #pivotContainer .dxpgFilterArea th,
html[data-theme="dark"] #pivotContainer .dxpgColumnArea td,
html[data-theme="dark"] #pivotContainer .dxpgColumnArea th,
html[data-theme="dark"] #pivotContainer .dxpgRowArea td,
html[data-theme="dark"] #pivotContainer .dxpgRowArea th,
html[data-theme="dark"] #pivotContainer .dxpgFilteredValues td,
html[data-theme="dark"] #pivotContainer .dxpgFilteredValues th,
html[data-theme="dark"] #pivotContainer .dxpgHeaderTable td,
html[data-theme="dark"] #pivotContainer .dxpgHeaderTable th,
html[data-theme="dark"] #pivotContainer .dxpgTopLeftCorner td,
html[data-theme="dark"] #pivotContainer .dxpgTopLeftCorner th,
html[data-theme="dark"] #pivotContainer .dxpgTLC td,
html[data-theme="dark"] #pivotContainer .dxpgTLC th {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #pivotContainer .dxpgColumnArea a,
html[data-theme="dark"] #pivotContainer .dxpgRowArea a,
html[data-theme="dark"] #pivotContainer .dxpgFilterArea a,
html[data-theme="dark"] #pivotContainer .dxpgFilteredValues a,
html[data-theme="dark"] #pivotContainer .dxpgHeaderTable a {
	color: #c9d1d9 !important;
}

html[data-theme="dark"] #pivotContainer .dxpgColumnArea .dx-icon,
html[data-theme="dark"] #pivotContainer .dxpgRowArea .dx-icon,
html[data-theme="dark"] #pivotContainer .dxpgFilterArea .dx-icon,
html[data-theme="dark"] #pivotContainer .dxpgHeaderTable .dx-icon {
	color: #c9d1d9 !important;
}

/*
 * Linhas de campos (Plano Fin., C. Result.): tr *AreaRow* — não confundir com linhas de dados.
 * Classes explícitas DX + fallback *AreaRow no className.
 */
html[data-theme="dark"] #pivotContainer tr.dxpgColumnAreaRow td,
html[data-theme="dark"] #pivotContainer tr.dxpgColumnAreaRow th,
html[data-theme="dark"] #pivotContainer tr.dxpgRowAreaRow td,
html[data-theme="dark"] #pivotContainer tr.dxpgRowAreaRow th,
html[data-theme="dark"] #pivotContainer tr.dxpgFilterAreaRow td,
html[data-theme="dark"] #pivotContainer tr.dxpgFilterAreaRow th,
html[data-theme="dark"] #pivotContainer tr[class*="ColumnAreaRow"] td,
html[data-theme="dark"] #pivotContainer tr[class*="ColumnAreaRow"] th,
html[data-theme="dark"] #pivotContainer tr[class*="RowAreaRow"] td,
html[data-theme="dark"] #pivotContainer tr[class*="RowAreaRow"] th,
html[data-theme="dark"] #pivotContainer tr[class*="FilterAreaRow"] td,
html[data-theme="dark"] #pivotContainer tr[class*="FilterAreaRow"] th {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #pivotContainer tr.dxpgColumnAreaRow td *,
html[data-theme="dark"] #pivotContainer tr.dxpgColumnAreaRow th *,
html[data-theme="dark"] #pivotContainer tr.dxpgRowAreaRow td *,
html[data-theme="dark"] #pivotContainer tr.dxpgRowAreaRow th *,
html[data-theme="dark"] #pivotContainer tr.dxpgFilterAreaRow td *,
html[data-theme="dark"] #pivotContainer tr.dxpgFilterAreaRow th *,
html[data-theme="dark"] #pivotContainer tr[class*="ColumnAreaRow"] td *,
html[data-theme="dark"] #pivotContainer tr[class*="ColumnAreaRow"] th *,
html[data-theme="dark"] #pivotContainer tr[class*="RowAreaRow"] td *,
html[data-theme="dark"] #pivotContainer tr[class*="RowAreaRow"] th *,
html[data-theme="dark"] #pivotContainer tr[class*="FilterAreaRow"] td *,
html[data-theme="dark"] #pivotContainer tr[class*="FilterAreaRow"] th * {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #pivotContainer .dxpgColumnFieldValue,
html[data-theme="dark"] #pivotContainer .dxpgColumnFieldValue *,
html[data-theme="dark"] #pivotContainer .dxpgRowFieldValue,
html[data-theme="dark"] #pivotContainer .dxpgRowFieldValue *,
html[data-theme="dark"] #pivotContainer .dxpgColumnTotalFieldValue,
html[data-theme="dark"] #pivotContainer .dxpgColumnTotalFieldValue *,
html[data-theme="dark"] #pivotContainer .dxpgRowTotalFieldValue,
html[data-theme="dark"] #pivotContainer .dxpgRowTotalFieldValue * {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #pivotContainer .dxpgColumnArea .dx-wrap,
html[data-theme="dark"] #pivotContainer .dxpgRowArea .dx-wrap,
html[data-theme="dark"] #pivotContainer .dxpgFilterArea .dx-wrap,
html[data-theme="dark"] #pivotContainer .dxpgHeaderTable .dx-wrap,
html[data-theme="dark"] #pivotContainer .dxpgTopLeftCorner .dx-wrap,
html[data-theme="dark"] #pivotContainer .dxpgTLC .dx-wrap {
	color: #e4e6eb !important;
}

/* Valores e totais: só fundo/borda — preservar color inline (formatação condicional). */
html[data-theme="dark"] #pivotContainer .dxpgDataArea,
html[data-theme="dark"] #pivotContainer .dxpgDataArea td,
html[data-theme="dark"] #pivotContainer .dxpgDataArea th {
	background-color: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] #pivotContainer .dxpgColumnArea .dxeButtonEdit td,
html[data-theme="dark"] #pivotContainer .dxpgColumnArea .dxeEditArea,
html[data-theme="dark"] #pivotContainer .dxpgColumnArea .dxeButtonEdit input,
html[data-theme="dark"] #pivotContainer .dxpgFilterArea .dxeButtonEdit td,
html[data-theme="dark"] #pivotContainer .dxpgFilterArea .dxeEditArea,
html[data-theme="dark"] #pivotContainer .dxpgFilterArea .dxeButtonEdit input {
	color: #e4e6eb !important;
}

/* Pivot DX: faixa branca (scroll horizontal, células vazias, wrappers div, bgcolor inline) */
html[data-theme="dark"] #pivotContainer table,
html[data-theme="dark"] #pivotContainer tbody,
html[data-theme="dark"] #pivotContainer thead,
html[data-theme="dark"] #pivotContainer tfoot,
html[data-theme="dark"] #pivotContainer tr {
	background-color: #161b22 !important;
	background-image: none !important;
}

html[data-theme="dark"] #pivotContainer td[style],
html[data-theme="dark"] #pivotContainer th[style] {
	background-color: #161b22 !important;
	background-image: none !important;
}

html[data-theme="dark"] #pivotContainer [bgcolor] {
	background-color: #161b22 !important;
}

html[data-theme="dark"] #pivotContainer div[id*="DXMainTable"],
html[data-theme="dark"] #pivotContainer div[id*="pivotGrid_"],
html[data-theme="dark"] #pivotContainer div[class*="dxpg"] {
	background-color: #161b22 !important;
	background-image: none !important;
}

html[data-theme="dark"] #pivotContainer [class*="dxcv"] {
	background-color: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] #pivotContainer .dxpgEmptyCell,
html[data-theme="dark"] #pivotContainer .dxpgEC,
html[data-theme="dark"] #pivotContainer .dxpgLRHC,
html[data-theme="dark"] #pivotContainer .dxpgHSB,
html[data-theme="dark"] #pivotContainer .dxpgHSBEC,
html[data-theme="dark"] #pivotContainer .dxpgTopLeftCorner,
html[data-theme="dark"] #pivotContainer .dxpgTLC,
html[data-theme="dark"] #pivotContainer .dxpgHScroll,
html[data-theme="dark"] #pivotContainer .dxpgScrollArea,
html[data-theme="dark"] #pivotContainer .dxpgScrollDiv {
	background-color: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] #pivotContainer [id^="pivotGrid_"] {
	background-color: #161b22 !important;
	background-image: none !important;
}

/*
 * SQL Executor — Executar (abas Tabela / Gráfico / Tabela Dinâmica): painéis claros,
 * listas .checkbox-list e pivot.js (#pivotOutput).
 */
html[data-theme="dark"] .box.gradient.box-green .tab-content {
	background: #161b22 !important;
	background-image: none !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .box.gradient.box-green .configuracoes-grafico-container,
html[data-theme="dark"] .box.gradient.box-green .configuracoes-tabela-dinamica-container {
	background: #1c2128 !important;
	background-image: none !important;
	border-color: #30363d !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .box.gradient.box-green .conteudo-config-grafico,
html[data-theme="dark"] .box.gradient.box-green .conteudo-config-tabela-dinamica {
	background-color: #161b22 !important;
	border-color: #30363d !important;
	box-shadow: none !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .box.gradient.box-green #toggleConfigGrafico,
html[data-theme="dark"] .box.gradient.box-green #toggleConfigTabelaDinamica {
	background: #21262d !important;
	background-image: none !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .box.gradient.box-green #toggleConfigGrafico:hover,
html[data-theme="dark"] .box.gradient.box-green #toggleConfigTabelaDinamica:hover {
	background: #30363d !important;
	border-color: #58a6ff !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .box.gradient.box-green #toggleConfigGrafico h5,
html[data-theme="dark"] .box.gradient.box-green #toggleConfigTabelaDinamica h5 {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #btnColapsarConfig,
html[data-theme="dark"] #btnColapsarConfigTabela {
	background: #21262d !important;
	border-color: #484f58 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .box.gradient.box-green .tab-content label {
	color: #b1bac4 !important;
}

html[data-theme="dark"] .box.gradient.box-green .tab-content select,
html[data-theme="dark"] .box.gradient.box-green .tab-content input[type="text"],
html[data-theme="dark"] .box.gradient.box-green .checkbox-container > input.span12 {
	background-color: #000000 !important;
	color: #e4e6eb !important;
	border-color: #484f58 !important;
}

html[data-theme="dark"] .box.gradient.box-green .tab-content select option {
	background-color: #161b22;
	color: #e4e6eb;
}

html[data-theme="dark"] .box.gradient.box-green .tab-content input::placeholder,
html[data-theme="dark"] .box.gradient.box-green .checkbox-container input::placeholder {
	color: #8b949e !important;
	opacity: 1 !important;
}

html[data-theme="dark"] .box.gradient.box-green .checkbox-list {
	background: #1e1e1e !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .box.gradient.box-green .checkbox-list label {
	color: #e4e6eb !important;
	border-bottom-color: #30363d !important;
}

html[data-theme="dark"] .box.gradient.box-green .checkbox-list label:hover {
	background-color: #21262d !important;
}

html[data-theme="dark"] .box.gradient.box-green .checkbox-list label.checked {
	background-color: #1e3a4f !important;
	color: #dbe8fd !important;
}

html[data-theme="dark"] .box.gradient.box-green .checkbox-list .select-all {
	background-color: #21262d !important;
	border-bottom-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .box.gradient.box-green .checkbox-list-empty {
	color: #8b949e !important;
}

html[data-theme="dark"] .box.gradient.box-green .checkbox-actions .btn-link {
	color: #79c0ff !important;
	background: rgba(88, 166, 255, 0.12) !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .box.gradient.box-green .checkbox-actions .btn-link:hover {
	color: #fff !important;
	background: #388bfd !important;
	border-color: #388bfd !important;
}

html[data-theme="dark"] .box.gradient.box-green .ordem-drilldown-item {
	background: #21262d !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .box.gradient.box-green .ordem-drilldown-item:hover {
	background-color: #30363d !important;
}

html[data-theme="dark"] .box.gradient.box-green .ordem-drilldown-item.ui-sortable-helper,
html[data-theme="dark"] .box.gradient.box-green .ordem-drilldown-item.ui-sortable-placeholder {
	background-color: #1e3a4f !important;
	border-color: #58a6ff !important;
}

html[data-theme="dark"] .box.gradient.box-green .ordem-drilldown-item .btn-ordem {
	background: #161b22 !important;
	border-color: #484f58 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .box.gradient.box-green .ordem-drilldown-item .btn-ordem:hover {
	background: #30363d !important;
}

html[data-theme="dark"] #graficoContainer {
	background: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
	box-shadow: none !important;
}

html[data-theme="dark"] #areaGraficos h5 {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #areaTabelaDinamica {
	color: #b1bac4 !important;
}

html[data-theme="dark"] #areaTabelaDinamica h5 {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #areaTabelaDinamica div[style*="padding-top: 150px"] {
	color: #8b949e !important;
}

html[data-theme="dark"] .box.gradient.box-green .checkbox-list > div[style*="color: #999"] {
	color: #8b949e !important;
}

html[data-theme="dark"] .box.gradient.box-green #abaTabela > div:first-child {
	border-bottom-color: #30363d !important;
}

html[data-theme="dark"] .box.gradient.box-green #abaTabela h5 {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .box.gradient.box-green #abaTabela .registrosPorLinhaGrid {
	background: #21262d !important;
	background-image: none !important;
	border-color: #30363d !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .box.gradient.box-green #abaTabela .registrosPorLinhaGrid span {
	color: #b1bac4 !important;
}

html[data-theme="dark"] .box.gradient.box-green #txtMudaQtdLinhasPagina,
html[data-theme="dark"] .box.gradient.box-green #txtMudaQtdLinhasPaginaGrafico,
html[data-theme="dark"] .box.gradient.box-green #txtMudaQtdLinhasPaginaTabelaDinamica {
	background: #1e1e1e !important;
	color: #e4e6eb !important;
	border-color: #484f58 !important;
}

html[data-theme="dark"] #abasVisualizacao > li.active > a,
html[data-theme="dark"] #abasVisualizacao > li.active > a:hover,
html[data-theme="dark"] #abasVisualizacao > li.active > a:focus {
	background-color: #21262d !important;
	color: #79c0ff !important;
	border-color: #30363d !important;
	box-shadow: none !important;
}

html[data-theme="dark"] #abasVisualizacao > li.active > a i {
	color: #79c0ff !important;
}

html[data-theme="dark"] #conteudoConfigGrafico .span12[style*="border-top"],
html[data-theme="dark"] #conteudoConfigTabelaDinamica .span3 div[style*="border-top"] {
	border-top-color: #30363d !important;
}

/* PivotTable.js (gerado em #pivotOutput) */
html[data-theme="dark"] #pivotOutput .pvtUi {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #pivotOutput table.pvtTable tbody tr th,
html[data-theme="dark"] #pivotOutput table.pvtTable thead tr th {
	background-color: #21262d !important;
	color: #dbe8fd !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] #pivotOutput table.pvtTable tbody tr td {
	background-color: #161b22 !important;
	color: #e4e6eb !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] #pivotOutput .pvtAxisContainer,
html[data-theme="dark"] #pivotOutput .pvtVals {
	background: #1c2128 !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] #pivotOutput .pvtAxisContainer li span.pvtAttr {
	background: #30363d !important;
	border-color: #484f58 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] #pivotOutput .pvtRendererArea {
	background: #161b22 !important;
}

html[data-theme="dark"] #pivotOutput .pvtFilterBox {
	background-color: #21262d !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] #pivotOutput .pvtCheckContainer {
	border-color: #30363d !important;
	background: #161b22 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] #pivotOutput .pvtFilterBox input[type="text"] {
	background: #1e1e1e !important;
	color: #e4e6eb !important;
	border-color: #484f58 !important;
}

html[data-theme="dark"] #pivotOutput .pvtFilterBox h4 {
	color: #e4e6eb !important;
}

/*
 * SQL Executor — executar.css força fundo branco em .checkbox-list, pivot e totais (!important em th).
 * Reforço global (só esta view carrega executar.css) para ganhar na cascata.
 */
html[data-theme="dark"] .configuracoes-grafico-container,
html[data-theme="dark"] .configuracoes-tabela-dinamica-container {
	background: #1c2128 !important;
	background-image: none !important;
	border-color: #30363d !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .configuracoes-grafico-container:hover,
html[data-theme="dark"] .configuracoes-tabela-dinamica-container:hover {
	border-color: #484f58 !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .configuracoes-grafico-container h5,
html[data-theme="dark"] .configuracoes-tabela-dinamica-container h5 {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .configuracoes-grafico-container label,
html[data-theme="dark"] .configuracoes-tabela-dinamica-container label {
	color: #b1bac4 !important;
}

html[data-theme="dark"] .configuracoes-grafico-container input[type="text"],
html[data-theme="dark"] .configuracoes-grafico-container select,
html[data-theme="dark"] .configuracoes-tabela-dinamica-container input[type="text"],
html[data-theme="dark"] .configuracoes-tabela-dinamica-container select {
	background-color: #1e1e1e !important;
	color: #e4e6eb !important;
	border-color: #484f58 !important;
}

html[data-theme="dark"] .configuracoes-grafico-container input[type="text"]::placeholder,
html[data-theme="dark"] .configuracoes-tabela-dinamica-container input[type="text"]::placeholder {
	color: #b1bac4 !important;
	opacity: 1 !important;
}

html[data-theme="dark"] .checkbox-list {
	background: #1e1e1e !important;
	border-color: #30363d !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] .checkbox-list:hover {
	border-color: #484f58 !important;
}

html[data-theme="dark"] .checkbox-list label {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .checkbox-list label:hover {
	background-color: #21262d !important;
	transform: none !important;
}

html[data-theme="dark"] .checkbox-actions .btn-link {
	color: #79c0ff !important;
	background: rgba(88, 166, 255, 0.12) !important;
	border: 1px solid #30363d !important;
}

html[data-theme="dark"] .checkbox-actions .btn-link:hover {
	background: #388bfd !important;
	color: #fff !important;
	border-color: #388bfd !important;
	transform: none !important;
}

html[data-theme="dark"] .checkbox-list::-webkit-scrollbar-track,
html[data-theme="dark"] .ordem-drilldown-list::-webkit-scrollbar-track {
	background: #404040 !important;
}

html[data-theme="dark"] .checkbox-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] .ordem-drilldown-list::-webkit-scrollbar-thumb {
	background: #6e7681 !important;
	border-radius: 5px;
}

html[data-theme="dark"] .checkbox-list,
html[data-theme="dark"] .ordem-drilldown-list {
	scrollbar-color: #6e7681 #404040;
	scrollbar-width: thin;
}

html[data-theme="dark"] .box.gradient.box-green #abaGrafico .registrosPorLinhaGrid,
html[data-theme="dark"] .box.gradient.box-green #abaTabelaDinamica .registrosPorLinhaGrid {
	background: #21262d !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .box.gradient.box-green #abaGrafico .registrosPorLinhaGrid input,
html[data-theme="dark"] .box.gradient.box-green #abaTabelaDinamica .registrosPorLinhaGrid input {
	background: #000000 !important;
	color: #e4e6eb !important;
	border-color: #484f58 !important;
}

html[data-theme="dark"] .box.gradient.box-green #btnLimparGrafico,
html[data-theme="dark"] .box.gradient.box-green #btnLimparTabelaDinamica {
	background: #21262d !important;
	color: #e4e6eb !important;
	border: 1px solid #30363d !important;
	text-shadow: none !important;
}

html[data-theme="dark"] .box.gradient.box-green #abaGrafico h5,
html[data-theme="dark"] .box.gradient.box-green #abaTabelaDinamica h5 {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .box.gradient.box-green #abaGrafico .icon16,
html[data-theme="dark"] .box.gradient.box-green #abaTabelaDinamica .icon16 {
	color: #79c0ff !important;
}

/* PivotTable CDN + executar.css: células e área de renderização */
html[data-theme="dark"] #pivotOutput .pvtUi {
	color: #e4e6eb !important;
	background: transparent !important;
}

html[data-theme="dark"] #pivotOutput .pvtUi select {
	background-color: #000000 !important;
	color: #e4e6eb !important;
	border-color: #484f58 !important;
}

html[data-theme="dark"] #pivotOutput table.pvtTable tbody tr td {
	background-color: #161b22 !important;
	color: #e4e6eb !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] #pivotOutput .pvtUi table {
	background: #161b22 !important;
}

html[data-theme="dark"] #pivotOutput .pvtUi .pvtRendererArea table {
	background: #161b22 !important;
}

html[data-theme="dark"] #pivotOutput .pvtUi .pvtRendererArea table tbody tr,
html[data-theme="dark"] #pivotOutput .pvtUi .pvtRendererArea table tbody tr:hover {
	background: #161b22 !important;
}

html[data-theme="dark"] #pivotOutput tr:hover td,
html[data-theme="dark"] #areaTabelaDinamica tr:hover td {
	background-color: #21262d !important;
}

html[data-theme="dark"] #pivotOutput th,
html[data-theme="dark"] #areaTabelaDinamica th {
	background: #2a3f57 !important;
	background-image: none !important;
	color: #e4e6eb !important;
	border-color: #3f5d7b !important;
}

html[data-theme="dark"] #pivotOutput td,
html[data-theme="dark"] #areaTabelaDinamica td {
	background-color: #161b22 !important;
	color: #e4e6eb !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] #pivotOutput .linha-total,
html[data-theme="dark"] #pivotOutput .linha-grupo-principal,
html[data-theme="dark"] #areaTabelaDinamica .linha-total,
html[data-theme="dark"] #areaTabelaDinamica .linha-grupo-principal {
	background: #1c2128 !important;
}

html[data-theme="dark"] #pivotOutput .linha-total td,
html[data-theme="dark"] #pivotOutput .linha-grupo-principal td,
html[data-theme="dark"] #areaTabelaDinamica .linha-total td,
html[data-theme="dark"] #areaTabelaDinamica .linha-grupo-principal td {
	background-color: #1c2128 !important;
	color: #e4e6eb !important;
	border-top-color: #58a6ff !important;
}

html[data-theme="dark"] #pivotOutput .pvtTriangle {
	color: #8b949e !important;
}

/* Filtro com valor (repaintFiltros): âmbar #4a3f20 — inclui legado #26241f até recarregar */
html[data-theme="dark"] [id*="Pesquisa"] input[style*="4a3f20"],
html[data-theme="dark"] [id*="Pesquisa"] input[style*="26241f"],
html[data-theme="dark"] [id*="Pesquisa"] textarea[style*="4a3f20"],
html[data-theme="dark"] [id*="Pesquisa"] textarea[style*="26241f"],
html[data-theme="dark"] [id*="Relatorio"] input[style*="4a3f20"],
html[data-theme="dark"] [id*="Relatorio"] input[style*="26241f"],
html[data-theme="dark"] [id*="Relatorio"] textarea[style*="4a3f20"],
html[data-theme="dark"] [id*="Relatorio"] textarea[style*="26241f"],
html[data-theme="dark"] [id*="Pesquisa"] select[style*="4a3f20"],
html[data-theme="dark"] [id*="Pesquisa"] select[style*="26241f"],
html[data-theme="dark"] [id*="Relatorio"] select[style*="4a3f20"],
html[data-theme="dark"] [id*="Relatorio"] select[style*="26241f"] {
	background-color: #4a3f20 !important;
	color: #f5ecd0 !important;
	border-color: #8a7220 !important;
	box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.45) !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container .select2-choice[style*="4a3f20"],
html[data-theme="dark"] [id*="Pesquisa"] .select2-container .select2-choice[style*="26241f"],
html[data-theme="dark"] [id*="Relatorio"] .select2-container .select2-choice[style*="4a3f20"],
html[data-theme="dark"] [id*="Relatorio"] .select2-container .select2-choice[style*="26241f"] {
	background-color: #4a3f20 !important;
	background-image: none !important;
	border-color: #8a7220 !important;
	color: #f5ecd0 !important;
	box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.45) !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container .select2-choice[style*="4a3f20"] .select2-chosen,
html[data-theme="dark"] [id*="Pesquisa"] .select2-container .select2-choice[style*="26241f"] .select2-chosen,
html[data-theme="dark"] [id*="Relatorio"] .select2-container .select2-choice[style*="4a3f20"] .select2-chosen,
html[data-theme="dark"] [id*="Relatorio"] .select2-container .select2-choice[style*="26241f"] .select2-chosen {
	color: #f5ecd0 !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container .select2-choice[style*="4a3f20"] .select2-arrow,
html[data-theme="dark"] [id*="Pesquisa"] .select2-container .select2-choice[style*="26241f"] .select2-arrow,
html[data-theme="dark"] [id*="Relatorio"] .select2-container .select2-choice[style*="4a3f20"] .select2-arrow,
html[data-theme="dark"] [id*="Relatorio"] .select2-container .select2-choice[style*="26241f"] .select2-arrow {
	background-color: #3a3318 !important;
	border-left-color: #8a7220 !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container--default .select2-selection--single[style*="4a3f20"],
html[data-theme="dark"] [id*="Pesquisa"] .select2-container--default .select2-selection--single[style*="26241f"],
html[data-theme="dark"] [id*="Relatorio"] .select2-container--default .select2-selection--single[style*="4a3f20"],
html[data-theme="dark"] [id*="Relatorio"] .select2-container--default .select2-selection--single[style*="26241f"] {
	background-color: #4a3f20 !important;
	border-color: #8a7220 !important;
	box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.45) !important;
}

html[data-theme="dark"] [id*="Pesquisa"] .select2-container--default .select2-selection--single[style*="4a3f20"] .select2-selection__rendered,
html[data-theme="dark"] [id*="Pesquisa"] .select2-container--default .select2-selection--single[style*="26241f"] .select2-selection__rendered,
html[data-theme="dark"] [id*="Relatorio"] .select2-container--default .select2-selection--single[style*="4a3f20"] .select2-selection__rendered,
html[data-theme="dark"] [id*="Relatorio"] .select2-container--default .select2-selection--single[style*="26241f"] .select2-selection__rendered {
	color: #f5ecd0 !important;
}

html[data-theme="dark"] .table,
html[data-theme="dark"] table.dataTable {
	background: #1e1e1e !important;
	color: #e4e6eb;
}

/*
 * Grids DataTables: main.css pinta .table tbody (#fafafa) e .table-striped em td — no escuro usar
 * o cinza de referência #1e1e1e no corpo e #2d2d2d nas listras (neutro, sem azul).
 */
html[data-theme="dark"] .table tbody {
	background-color: #1e1e1e !important;
	background-image: none !important;
}

html[data-theme="dark"] .dataTables_wrapper {
	background-color: #1e1e1e !important;
	background-image: none !important;
}

html[data-theme="dark"] .table-striped tbody > tr:nth-child(odd) > td,
html[data-theme="dark"] .table-striped tbody > tr:nth-child(odd) > th {
	background-color: #2d2d2d !important;
}

html[data-theme="dark"] .table-striped tbody > tr:nth-child(even) > td,
html[data-theme="dark"] .table-striped tbody > tr:nth-child(even) > th {
	background-color: #1e1e1e !important;
}

html[data-theme="dark"] .table th,
html[data-theme="dark"] .table td,
html[data-theme="dark"] table.dataTable thead th,
html[data-theme="dark"] table.dataTable thead td,
html[data-theme="dark"] table.dataTable tbody 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 {
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable tfoot th,
html[data-theme="dark"] table.dataTable tfoot td {
	background-color: #21262d !important;
	background-image: none !important;
}

html[data-theme="dark"] table.table > tfoot > tr > th,
html[data-theme="dark"] table.table > tfoot > tr > td {
	background-color: #21262d !important;
	background-image: none !important;
	color: #e4e6eb !important;
	border-color: #30363d !important;
	box-shadow: none !important;
}

/* main.css .table thead th usa gradiente branco (background-image) — remover no escuro */
html[data-theme="dark"] table.table > thead > tr > th,
html[data-theme="dark"] table.table > thead > tr > td {
	background-color: #2a3f57 !important;
	background-image: none !important;
	color: #edf5fd !important;
	box-shadow: none !important;
	border-bottom-color: #3f5d7b !important;
}

html[data-theme="dark"] .dataTables_scrollHead table.table > thead > tr > th,
html[data-theme="dark"] .dataTables_scrollHead table.table > thead > tr > td,
html[data-theme="dark"] .dataTables_scrollHead table thead th,
html[data-theme="dark"] .dataTables_scrollHead table thead td {
	background-color: #2a3f57 !important;
	background-image: none !important;
	color: #edf5fd !important;
}

/* Redimensionar coluna no grid (sessão; não entra em preferências salvas do usuário) */
.dataTables_scrollHead thead th.dt-col-resize-host,
.dataTables_scrollHead thead td.dt-col-resize-host,
table.dataTable thead th.dt-col-resize-host,
table.dataTable thead td.dt-col-resize-host {
	position: relative;
}
.dt-col-resize-handle {
	position: absolute;
	top: 0;
	right: 0;
	width: 7px;
	height: 100%;
	min-height: 24px;
	cursor: col-resize;
	z-index: 12;
	box-sizing: border-box;
}
.dt-col-resize-handle:hover {
	background: rgba(0, 136, 204, 0.18);
}
html[data-theme="dark"] .dt-col-resize-handle:hover {
	background: rgba(99, 168, 222, 0.22);
}
body.dt-col-resize-dragging {
	cursor: col-resize !important;
	user-select: none;
}

/* SQL Editor (Editar): #campos só tem .display — editar.css aplica gradiente branco no thead */
html[data-theme="dark"] #parametros_sql_executor table.display thead tr th,
html[data-theme="dark"] #campos thead tr th {
	background-color: #2a3f57 !important;
	background-image: none !important;
	color: #edf5fd !important;
	box-shadow: none !important;
	border-color: #3f5d7b !important;
	border-bottom-color: #3f5d7b !important;
}

/*
 * Modais jQuery UI: supr-theme / jquery-ui aplicam .ui-widget-content a { color: #353535 }.
 * Grids com formatarConteudoColunaGrid usam <a class="dt-sort-toggle"> no thead — fora do modal seguem o azul Bootstrap; dentro do dialog ficavam pretos/cinza.
 */
.ui-widget-content table.dataTable thead th a.dt-sort-toggle,
.ui-dialog table.dataTable thead th a.dt-sort-toggle {
	color: #0088cc !important;
}
.ui-widget-content table.dataTable thead th a.dt-sort-toggle:hover,
.ui-dialog table.dataTable thead th a.dt-sort-toggle:hover {
	color: #005580 !important;
}

/* Filtro por coluna (Application.js): .dt-colfilter-btn usa glyphicons — sprite escuro some no header */
html[data-theme="dark"] table.dataTable thead th .dt-colfilter-btn span[class*=" icon-"],
html[data-theme="dark"] table.dataTable thead th .dt-colfilter-btn span[class^="icon-"],
html[data-theme="dark"] table.table thead th .dt-colfilter-btn span[class*=" icon-"],
html[data-theme="dark"] table.table thead th .dt-colfilter-btn span[class^="icon-"],
html[data-theme="dark"] .dataTables_scrollHead thead th .dt-colfilter-btn span[class*=" icon-"],
html[data-theme="dark"] .dataTables_scrollHead thead th .dt-colfilter-btn span[class^="icon-"] {
	filter: brightness(0) invert(1) !important;
	opacity: 0.92 !important;
}

html[data-theme="dark"] table.dataTable thead th .dt-colfilter-btn.dt-colfilter-active span[class*=" icon-"],
html[data-theme="dark"] table.dataTable thead th .dt-colfilter-btn.dt-colfilter-active span[class^="icon-"],
html[data-theme="dark"] table.table thead th .dt-colfilter-btn.dt-colfilter-active span[class*=" icon-"],
html[data-theme="dark"] table.table thead th .dt-colfilter-btn.dt-colfilter-active span[class^="icon-"],
html[data-theme="dark"] .dataTables_scrollHead thead th .dt-colfilter-btn.dt-colfilter-active span[class*=" icon-"],
html[data-theme="dark"] .dataTables_scrollHead thead th .dt-colfilter-btn.dt-colfilter-active span[class^="icon-"] {
	opacity: 1 !important;
}

html[data-theme="dark"] div.DTFC_LeftHeadWrapper thead th .dt-colfilter-btn span[class*=" icon-"],
html[data-theme="dark"] div.DTFC_LeftHeadWrapper thead th .dt-colfilter-btn span[class^="icon-"],
html[data-theme="dark"] div.DTFC_RightHeadWrapper thead th .dt-colfilter-btn span[class*=" icon-"],
html[data-theme="dark"] div.DTFC_RightHeadWrapper thead th .dt-colfilter-btn span[class^="icon-"] {
	filter: brightness(0) invert(1) !important;
	opacity: 0.92 !important;
}

/* Scroll DataTables: evita faixa clara abaixo da grelha (min-height / área vazia) */
html[data-theme="dark"] .dataTables_wrapper .dataTables_scroll,
html[data-theme="dark"] .dataTables_wrapper .dataTables_scrollBody,
html[data-theme="dark"] .dataTables_wrapper .dataTables_scrollFoot,
html[data-theme="dark"] .dataTables_wrapper .dataTables_scrollFootInner {
	background-color: #1a2330 !important;
	background-image: none !important;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_scrollFoot {
	border-top-color: #30363d !important;
}

/* Rodapé com scrollX + totais: tfoot no clone (.dataTables_scrollFoot) — evita faixa branca e texto ilegível */
html[data-theme="dark"] .dataTables_scrollFoot table,
html[data-theme="dark"] .dataTables_scrollFootInner table {
	background-color: #1e1e1e !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .dataTables_scrollFoot table thead th,
html[data-theme="dark"] .dataTables_scrollFoot table thead td,
html[data-theme="dark"] .dataTables_scrollFootInner table thead th,
html[data-theme="dark"] .dataTables_scrollFootInner table thead td {
	background-color: #2a3f57 !important;
	background-image: none !important;
	color: #edf5fd !important;
	border-color: #3f5d7b !important;
}

html[data-theme="dark"] .dataTables_scrollFoot table tfoot th,
html[data-theme="dark"] .dataTables_scrollFoot table tfoot td,
html[data-theme="dark"] .dataTables_scrollFootInner table tfoot th,
html[data-theme="dark"] .dataTables_scrollFootInner table tfoot td {
	background-color: #21262d !important;
	background-image: none !important;
	color: #e4e6eb !important;
	border-color: #30363d !important;
}

/*
 * Scrollbars no escuro: trilho alinhado ao cabeçalho da grelha (thead #2a3f57); thumb cinza.
 * Inclui menu lateral (#sidebar / #sidebar-right) com overflow-y:auto.
 * Firefox: scrollbar-color é thumb | track.
 */
html[data-theme="dark"] .dataTables_scrollBody,
html[data-theme="dark"] .dataTables_scrollFootInner,
html[data-theme="dark"] #content,
html[data-theme="dark"] .contentwrapper,
html[data-theme="dark"] #sidebar,
html[data-theme="dark"] #sidebar-right {
	scrollbar-color: #6e7681 #2a3f57;
	scrollbar-width: thin;
}

html[data-theme="dark"] .dataTables_scrollBody::-webkit-scrollbar,
html[data-theme="dark"] .dataTables_scrollFootInner::-webkit-scrollbar,
html[data-theme="dark"] #content::-webkit-scrollbar,
html[data-theme="dark"] .contentwrapper::-webkit-scrollbar,
html[data-theme="dark"] #sidebar::-webkit-scrollbar,
html[data-theme="dark"] #sidebar-right::-webkit-scrollbar,
html[data-theme="dark"]::-webkit-scrollbar,
html[data-theme="dark"] body::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

html[data-theme="dark"] .dataTables_scrollBody::-webkit-scrollbar-track,
html[data-theme="dark"] .dataTables_scrollFootInner::-webkit-scrollbar-track,
html[data-theme="dark"] #content::-webkit-scrollbar-track,
html[data-theme="dark"] .contentwrapper::-webkit-scrollbar-track,
html[data-theme="dark"] #sidebar::-webkit-scrollbar-track,
html[data-theme="dark"] #sidebar-right::-webkit-scrollbar-track,
html[data-theme="dark"]::-webkit-scrollbar-track,
html[data-theme="dark"] body::-webkit-scrollbar-track {
	background: #2a3f57 !important;
}

html[data-theme="dark"] .dataTables_scrollBody::-webkit-scrollbar-thumb,
html[data-theme="dark"] .dataTables_scrollFootInner::-webkit-scrollbar-thumb,
html[data-theme="dark"] #content::-webkit-scrollbar-thumb,
html[data-theme="dark"] .contentwrapper::-webkit-scrollbar-thumb,
html[data-theme="dark"] #sidebar::-webkit-scrollbar-thumb,
html[data-theme="dark"] #sidebar-right::-webkit-scrollbar-thumb,
html[data-theme="dark"]::-webkit-scrollbar-thumb,
html[data-theme="dark"] body::-webkit-scrollbar-thumb {
	background: #6e7681 !important;
	border-radius: 5px;
}

html[data-theme="dark"] .dataTables_scrollBody::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .dataTables_scrollFootInner::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #content::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .contentwrapper::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #sidebar::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] #sidebar-right::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"]::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] body::-webkit-scrollbar-thumb:hover {
	background: #8b949e !important;
}

/*
 * Select2 (lista do combobox aberto): mesma scrollbar da grelha (.dataTables_scrollBody).
 * v3: .select2-results tem overflow-y:auto; v4: .select2-results__options.
 */
html[data-theme="dark"] .select2-results,
html[data-theme="dark"] .select2-container--default .select2-results__options {
	scrollbar-color: #6e7681 #2a3f57;
	scrollbar-width: thin;
}

html[data-theme="dark"] .select2-results::-webkit-scrollbar,
html[data-theme="dark"] .select2-container--default .select2-results__options::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

html[data-theme="dark"] .select2-results::-webkit-scrollbar-track,
html[data-theme="dark"] .select2-container--default .select2-results__options::-webkit-scrollbar-track {
	background: #2a3f57 !important;
}

html[data-theme="dark"] .select2-results::-webkit-scrollbar-thumb,
html[data-theme="dark"] .select2-container--default .select2-results__options::-webkit-scrollbar-thumb {
	background: #6e7681 !important;
	border-radius: 5px;
}

html[data-theme="dark"] .select2-results::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .select2-container--default .select2-results__options::-webkit-scrollbar-thumb:hover {
	background: #8b949e !important;
}

/*
 * Filtro por coluna (#dt-colfilter-pop em formatarConteudoColunaGrid / Application.js).
 * Injeta #dt-colfilter-style com fundos claros (#fff0eb) — no escuro: painel azul-ardósia com leve tom avermelhado.
 */
html[data-theme="dark"] #dt-colfilter-pop.well {
	background: #222536 !important;
	background-color: #222536 !important;
	background-image: none !important;
	border: 1px solid #3f3552 !important;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5) !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] #dt-colfilter-pop.dt-colfilter-pop-open {
	background: #252838 !important;
	background-color: #252838 !important;
	border-color: #4a3d5c !important;
}

html[data-theme="dark"] #dt-colfilter-pop.dt-colfilter-pop-open #dt-colfilter-pop-buscar {
	background-color: #000000 !important;
	background-image: none !important;
	border: 1px solid #30363d !important;
	color: #e4e6eb !important;
	box-shadow: none !important;
}

html[data-theme="dark"] #dt-colfilter-pop #dt-colfilter-pop-buscar::placeholder {
	color: #8b949e !important;
	opacity: 1;
}

html[data-theme="dark"] #dt-colfilter-pop.dt-colfilter-pop-open #dt-colfilter-pop-vals {
	background: #1a1d2e !important;
	background-color: #1a1d2e !important;
	border: 1px solid #3d3548 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] #dt-colfilter-pop #dt-colfilter-pop-qtde {
	color: #adbac7 !important;
}

html[data-theme="dark"] #dt-colfilter-pop input[type="checkbox"] {
	accent-color: #58a6ff;
}

html[data-theme="dark"] #dt-colfilter-pop #dt-colfilter-pop-vals label {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #dt-colfilter-pop #dt-colfilter-pop-vals label:hover {
	background: rgba(88, 166, 255, 0.1) !important;
	border-radius: 3px;
}

html[data-theme="dark"] #dt-colfilter-pop #dt-colfilter-pop-vals .dt-val {
	color: #e4e6eb !important;
}

html[data-theme="dark"] #dt-colfilter-pop #dt-colfilter-pop-vals {
	scrollbar-color: #6e7681 #2a3f57;
	scrollbar-width: thin;
}

html[data-theme="dark"] #dt-colfilter-pop #dt-colfilter-pop-vals::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

html[data-theme="dark"] #dt-colfilter-pop #dt-colfilter-pop-vals::-webkit-scrollbar-track {
	background: #2a3f57 !important;
}

html[data-theme="dark"] #dt-colfilter-pop #dt-colfilter-pop-vals::-webkit-scrollbar-thumb {
	background: #6e7681 !important;
	border-radius: 5px;
}

html[data-theme="dark"] #dt-colfilter-pop #dt-colfilter-pop-vals::-webkit-scrollbar-thumb:hover {
	background: #8b949e !important;
}

html[data-theme="dark"] #dt-colfilter-pop .btn {
	background-image: none !important;
	background-color: #30363d !important;
	color: #e4e6eb !important;
	border-color: #484f58 !important;
	text-shadow: none !important;
	box-shadow: none !important;
}

html[data-theme="dark"] #dt-colfilter-pop .btn:hover {
	background-color: #3d444d !important;
	color: #f0f3f6 !important;
}

html[data-theme="dark"] #dt-colfilter-pop .btn-primary {
	background-color: #4d4d4d !important;
	border-color: #707070 !important;
	color: #fff !important;
}

html[data-theme="dark"] #dt-colfilter-pop .btn-primary:hover {
	background-color: #5a5a5a !important;
	border-color: #888888 !important;
	color: #fff !important;
}

/* Substitui #ffebe6 / #fff0eb do style injetado no tema escuro */
html[data-theme="dark"] table.dataTable thead th.dt-colfilter-col-active,
html[data-theme="dark"] table.table thead th.dt-colfilter-col-active,
html[data-theme="dark"] .dataTables_scrollHead thead th.dt-colfilter-col-active {
	background-color: #352d45 !important;
	background-image: none !important;
	color: #ece9f2 !important;
}

html[data-theme="dark"] table.dataTable thead th.dt-colfilter-th-open,
html[data-theme="dark"] table.table thead th.dt-colfilter-th-open,
html[data-theme="dark"] .dataTables_scrollHead thead th.dt-colfilter-th-open {
	background-color: #3a3148 !important;
	background-image: none !important;
	color: #f0eef5 !important;
}

html[data-theme="dark"] table.dataTable tbody td.dt-colfilter-cell-active,
html[data-theme="dark"] table.table tbody td.dt-colfilter-cell-active {
	background-color: #2a2438 !important;
	color: #e4e6eb !important;
}

/*
 * Preferência “congelar à esquerda”: sticky no head/body/foot (omitirColReorder).
 * border-collapse: separate ajuda sticky em th/td com scrollX (evita colapso de largura).
 * Fundo opaco no cabeçalho + z-index: com separate e sticky, o tbody não pode aparecer por trás do título.
 */
.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead {
	position: relative;
	z-index: 6;
	background-color: #f0f2f5 !important;
}

html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead {
	background-color: #2a3f57 !important;
}

.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollBody {
	position: relative;
	z-index: 1;
}

.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead thead tr {
	background-color: #f0f2f5 !important;
}

html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead thead tr {
	background-color: #2a3f57 !important;
}

.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead thead th,
.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead thead td {
	background-color: #f0f2f5 !important;
	background-image: none !important;
}

html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead thead th,
html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead thead td {
	background-color: #2a3f57 !important;
	color: #edf5fd !important;
	background-image: none !important;
}

html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead thead th.dt-colfilter-col-active {
	background-color: #352d45 !important;
}

html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead thead th.dt-colfilter-th-open {
	background-color: #3a3148 !important;
}

.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead table,
.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollBody table,
.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollFoot table {
	border-collapse: separate !important;
	border-spacing: 0 !important;
}

/* Zona congelada: fundo ligeiramente distinto do restante do grid */
html:not([data-theme="dark"]) .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead thead th.grid-prefs-sticky-cell {
	background-color: #dde3ec !important;
	color: #1a1d21 !important;
}

html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollHead thead th.grid-prefs-sticky-cell {
	background-color: #243d52 !important;
	color: #edf5fd !important;
}

html:not([data-theme="dark"]) .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollBody tbody td.grid-prefs-sticky-cell,
html:not([data-theme="dark"]) .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollBody tbody th.grid-prefs-sticky-cell {
	background-color: #e4e9f2 !important;
}

html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollBody tbody td.grid-prefs-sticky-cell,
html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollBody tbody th.grid-prefs-sticky-cell {
	background-color: #1c2430 !important;
}

html:not([data-theme="dark"]) .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollFoot .grid-prefs-sticky-foot-cell {
	background-color: #d5dce8 !important;
}

html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollFoot .grid-prefs-sticky-foot-cell {
	background-color: #252f3d !important;
}

/* Limite direito da última coluna congelada (separador visível da área que rola) */
html:not([data-theme="dark"]) .dataTables_wrapper.grid-prefs-sticky-active .grid-prefs-sticky-frozen-last {
	box-shadow: 3px 0 0 0 rgba(30, 60, 120, 0.22) !important;
}

html[data-theme="dark"] .dataTables_wrapper.grid-prefs-sticky-active .grid-prefs-sticky-frozen-last {
	box-shadow: 3px 0 0 0 rgba(0, 0, 0, 0.55), inset -1px 0 0 rgba(255, 255, 255, 0.12) !important;
}

.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollFoot th.grid-prefs-sticky-foot-cell,
.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollFoot td.grid-prefs-sticky-foot-cell {
	will-change: transform;
}

/*
 * custom.css aplica overflow-x:hidden em .scrollFootInner.dt-scroll-no-horizontal — isso impede sticky horizontal no rodapé.
 * Com congelar ativo, o foot precisa de scrollport (auto) alinhado ao body (_fnScrollDraw mantém scrollLeft).
 */
.dataTables_wrapper.grid-prefs-sticky-active .dataTables_scrollFootInner.dt-scroll-no-horizontal {
	overflow-x: auto !important;
}

/* FixedColumns 4.x: blockers inferiores (se existirem) */
html[data-theme="dark"] div.dtfc-left-bottom-blocker,
html[data-theme="dark"] div.dtfc-right-bottom-blocker {
	background-color: #21262d !important;
}

/* FixedColumns (jquery.dataTables.css): tr.even e wrappers clonados em branco — ícones invertidos “somem” */
html[data-theme="dark"] div.DTFC_LeftHeadWrapper,
html[data-theme="dark"] div.DTFC_LeftBodyWrapper,
html[data-theme="dark"] div.DTFC_LeftFootWrapper,
html[data-theme="dark"] div.DTFC_RightHeadWrapper,
html[data-theme="dark"] div.DTFC_RightBodyWrapper,
html[data-theme="dark"] div.DTFC_RightFootWrapper {
	background-color: #1e1e1e !important;
}

html[data-theme="dark"] div.DTFC_LeftHeadWrapper table,
html[data-theme="dark"] div.DTFC_LeftFootWrapper table,
html[data-theme="dark"] div.DTFC_RightHeadWrapper table,
html[data-theme="dark"] div.DTFC_RightFootWrapper table,
html[data-theme="dark"] table.DTFC_Cloned {
	background-color: #161b22 !important;
}

html[data-theme="dark"] table.DTFC_Cloned tbody tr.odd > td,
html[data-theme="dark"] table.DTFC_Cloned tbody tr.odd > th {
	background-color: #1c2128 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.DTFC_Cloned tbody tr.even > td,
html[data-theme="dark"] table.DTFC_Cloned tbody tr.even > th {
	background-color: #161b22 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.DTFC_Cloned tbody tr.warning > td,
html[data-theme="dark"] table.DTFC_Cloned tbody tr.warning > th {
	background-color: #4a3f24 !important;
	color: #f0e6c8 !important;
}

html[data-theme="dark"] table.DTFC_Cloned tbody tr.success > td,
html[data-theme="dark"] table.DTFC_Cloned tbody tr.success > th {
	background-color: #1f3d2a !important;
	color: #c6f6d5 !important;
}

html[data-theme="dark"] table.DTFC_Cloned tbody tr.error > td,
html[data-theme="dark"] table.DTFC_Cloned tbody tr.error > th {
	background-color: #442926 !important;
	color: #ffd8d4 !important;
}

html[data-theme="dark"] table.DTFC_Cloned tbody tr.info > td,
html[data-theme="dark"] table.DTFC_Cloned tbody tr.info > th {
	background-color: #1a3040 !important;
	color: #c8e7fa !important;
}

/*
 * FixedColumns 4.x (CDN fixedColumns.dataTables.css): .dtfc-fixed-left/right usam background:white.
 * O pacote só define html.dark — aqui usamos html[data-theme="dark"].
 */
html[data-theme="dark"] table.dataTable thead tr > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable thead tr > .dtfc-fixed-right,
html[data-theme="dark"] .dataTables_scrollHead table.dataTable thead tr > .dtfc-fixed-left,
html[data-theme="dark"] .dataTables_scrollHead table.dataTable thead tr > .dtfc-fixed-right {
	background-color: #2a3f57 !important;
	color: #edf5fd !important;
}

html[data-theme="dark"] table.dataTable tfoot tr > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tfoot tr > .dtfc-fixed-right {
	background-color: #21262d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] div.dtfc-left-top-blocker,
html[data-theme="dark"] div.dtfc-right-top-blocker {
	background-color: #2a3f57 !important;
}

html[data-theme="dark"] table.dataTable tbody tr > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tbody tr > .dtfc-fixed-right {
	background-color: #1a2330 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.odd > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable.display tbody tr.odd > .dtfc-fixed-right,
html[data-theme="dark"] table.dataTable.stripe tbody tr.odd > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable.stripe tbody tr.odd > .dtfc-fixed-right {
	background-color: #212a37 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.even > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable.display tbody tr.even > .dtfc-fixed-right,
html[data-theme="dark"] table.dataTable.stripe tbody tr.even > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable.stripe tbody tr.even > .dtfc-fixed-right {
	background-color: #1a2330 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable tbody tr.warning > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tbody tr.warning > .dtfc-fixed-right {
	background-color: #4a3f24 !important;
	color: #f0e6c8 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.success > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tbody tr.success > .dtfc-fixed-right {
	background-color: #1f3d2a !important;
	color: #c6f6d5 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.error > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tbody tr.error > .dtfc-fixed-right {
	background-color: #442926 !important;
	color: #ffd8d4 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.info > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tbody tr.info > .dtfc-fixed-right {
	background-color: #1a3040 !important;
	color: #c8e7fa !important;
}

html[data-theme="dark"] table.dataTable tbody tr:hover > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tbody tr:hover > .dtfc-fixed-right,
html[data-theme="dark"] table.display tbody tr:hover > .dtfc-fixed-left,
html[data-theme="dark"] table.display tbody tr:hover > .dtfc-fixed-right {
	background-color: #2a3139 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable tbody tr.warning:hover > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tbody tr.warning:hover > .dtfc-fixed-right {
	background-color: #5c4f2a !important;
	color: #faf3dc !important;
}

html[data-theme="dark"] table.dataTable tbody tr.selected > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tbody tr.selected > .dtfc-fixed-right {
	background-color: #354e6b !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable tbody tr:hover.selected > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tbody tr:hover.selected > .dtfc-fixed-right {
	background-color: #3d5a7b !important;
	color: #f0f3f6 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.highlight_row > .dtfc-fixed-left,
html[data-theme="dark"] table.dataTable tbody tr.highlight_row > .dtfc-fixed-right {
	background-color: #4a3f24 !important;
	color: #f0e6c8 !important;
}

html[data-theme="dark"] table.dataTable thead th.dt-colfilter-col-active.dtfc-fixed-left,
html[data-theme="dark"] table.dataTable thead th.dt-colfilter-col-active.dtfc-fixed-right {
	background-color: #352d45 !important;
	color: #ece9f2 !important;
}

html[data-theme="dark"] table.dataTable thead th.dt-colfilter-th-open.dtfc-fixed-left,
html[data-theme="dark"] table.dataTable thead th.dt-colfilter-th-open.dtfc-fixed-right {
	background-color: #3a3148 !important;
	color: #f0eef5 !important;
}

/* Ordenação DataTables: ícones SVG legíveis no fundo escuro */
html[data-theme="dark"] table.dataTable thead th.sorting {
	background-color: #2a3f57 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23adbccf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M8 10l4-4 4 4'/%3E%3Cpath stroke='%23adbccf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M8 14l4 4 4-4'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center right !important;
}

html[data-theme="dark"] table.dataTable thead th.sorting_asc {
	background-color: #2a3f57 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23adbccf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 6l-5 9h10L12 6z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center right !important;
}

html[data-theme="dark"] table.dataTable thead th.sorting_desc {
	background-color: #2a3f57 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23adbccf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M12 18l5-9H7l5 9z'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center right !important;
}

html[data-theme="dark"] table.dataTable thead th.sorting_asc_disabled,
html[data-theme="dark"] table.dataTable thead th.sorting_desc_disabled {
	background-color: #2a3f57 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%236e7681' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M8 10l4-4 4 4'/%3E%3Cpath stroke='%236e7681' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M8 14l4 4 4-4'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center right !important;
}

html[data-theme="dark"] .ui-widget-content table.dataTable thead th a.dt-sort-toggle,
html[data-theme="dark"] .ui-dialog table.dataTable thead th a.dt-sort-toggle {
	color: #8cb4e8 !important;
}
html[data-theme="dark"] .ui-widget-content table.dataTable thead th a.dt-sort-toggle:hover,
html[data-theme="dark"] .ui-dialog table.dataTable thead th a.dt-sort-toggle:hover {
	color: #b8d4ff !important;
}

html[data-theme="dark"] .table-striped tbody > tr:nth-child(odd) > td,
html[data-theme="dark"] .table-striped tbody > tr:nth-child(odd) > th {
	background-color: #1c2128 !important;
}

html[data-theme="dark"] .table-striped tbody > tr:nth-child(even) > td,
html[data-theme="dark"] .table-striped tbody > tr:nth-child(even) > th {
	background-color: #161b22 !important;
}

/*
 * Bootstrap: .table tbody tr.warning|success|error|info (fundo claro no claro).
 * No escuro, manter texto legível e ganhar a .table-striped:nth-child.
 */
html[data-theme="dark"] .table tbody tr.success > td,
html[data-theme="dark"] .table tbody tr.success > th,
html[data-theme="dark"] .table-striped tbody > tr.success > td,
html[data-theme="dark"] .table-striped tbody > tr.success > th {
	background-color: #1f3d2a !important;
	color: #c6f6d5 !important;
}

html[data-theme="dark"] .table tbody tr.error > td,
html[data-theme="dark"] .table tbody tr.error > th,
html[data-theme="dark"] .table-striped tbody > tr.error > td,
html[data-theme="dark"] .table-striped tbody > tr.error > th {
	background-color: #442926 !important;
	color: #ffd8d4 !important;
}

html[data-theme="dark"] .table tbody tr.warning > td,
html[data-theme="dark"] .table tbody tr.warning > th,
html[data-theme="dark"] .table-striped tbody > tr.warning > td,
html[data-theme="dark"] .table-striped tbody > tr.warning > th {
	background-color: #4a3f24 !important;
	color: #f0e6c8 !important;
}

html[data-theme="dark"] .table tbody tr.info > td,
html[data-theme="dark"] .table tbody tr.info > th,
html[data-theme="dark"] .table-striped tbody > tr.info > td,
html[data-theme="dark"] .table-striped tbody > tr.info > th {
	background-color: #1a3040 !important;
	color: #c8e7fa !important;
}

html[data-theme="dark"] .table-hover tbody tr.success:hover > td,
html[data-theme="dark"] .table-hover tbody tr.success:hover > th {
	background-color: #265336 !important;
	color: #d8ffe6 !important;
}

html[data-theme="dark"] .table-hover tbody tr.error:hover > td,
html[data-theme="dark"] .table-hover tbody tr.error:hover > th {
	background-color: #5c3330 !important;
	color: #ffe8e6 !important;
}

html[data-theme="dark"] .table-hover tbody tr.warning:hover > td,
html[data-theme="dark"] .table-hover tbody tr.warning:hover > th {
	background-color: #5c4f2a !important;
	color: #faf3dc !important;
}

html[data-theme="dark"] .table-hover tbody tr.info:hover > td,
html[data-theme="dark"] .table-hover tbody tr.info:hover > th {
	background-color: #22425a !important;
	color: #d9eefc !important;
}

/* main.css: hover azul claro em todas as linhas — no escuro usar azulado (mesma família do thead); estados semânticos abaixo ganham por especificidade */
html[data-theme="dark"] .table tbody tr:hover > td,
html[data-theme="dark"] .table tbody tr:hover > th {
	background-color: #3a3a3a !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .table-hover tbody tr:hover > td,
html[data-theme="dark"] .table-hover tbody tr:hover > th {
	background-color: #3a3a3a !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] tr.group-header td {
	background: #21262d !important;
	color: #e4e6eb !important;
	border-top-color: #30363d !important;
}

html[data-theme="dark"] tr.group-footer td {
	background: #1c2128 !important;
	color: #e4e6eb !important;
	border-bottom-color: #30363d !important;
}

html[data-theme="dark"] .well {
	background: #161b22 !important;
	border-color: #30363d !important;
	color: #e4e6eb;
}

html[data-theme="dark"] .btn {
	text-shadow: none;
}

html[data-theme="dark"] .btn:not(.btn-primary):not(.btn-danger):not(.btn-success):not(.btn-warning):not(.btn-info):not(.btn-inverse) {
	background-color: #21262d !important;
	background-image: none !important;
	border-color: #4a5568 !important;
	color: #e4e6eb !important;
}

/* Abas Bootstrap (main.css: .tab-content fundo #fff; .nav-tabs gradiente claro) */
html[data-theme="dark"] .tab-content {
	background-color: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .tab-content > .tab-pane {
	color: #e4e6eb;
}

html[data-theme="dark"] .nav-tabs {
	border-color: #30363d !important;
	border-bottom-color: #30363d !important;
	background: #1c2128 !important;
	background-image: none !important;
	filter: none !important;
}

html[data-theme="dark"] .nav-tabs.pattern {
	background: #1a2533 !important;
	background-image: none !important;
}

html[data-theme="dark"] .nav-tabs > li > a {
	background: #1c2128 !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #adbac7 !important;
}

html[data-theme="dark"] .nav-tabs > li > a:hover {
	border-color: transparent #30363d transparent #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .nav-tabs > .active > a,
html[data-theme="dark"] .nav-tabs > .active > a:hover {
	background: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
	border-bottom: 2px solid #161b22 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .ui-widget-content {
	background: #161b22 !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .ui-widget-header {
	background: #21262d !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .ui-state-default,
html[data-theme="dark"] .ui-widget-content .ui-state-default {
	background: #21262d !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

/*
 * Datepicker (jQuery UI): o dia de hoje usa ui-state-default + ui-state-highlight no <a>.
 * O bloco escuro acima ganha por especificidade e apaga o verde do tema claro — marcamos de leve no escuro.
 */
html[data-theme="dark"] .ui-datepicker td.ui-datepicker-today a,
html[data-theme="dark"] .ui-datepicker .ui-widget-content .ui-state-default.ui-state-highlight {
	background: rgba(63, 185, 80, 0.16) !important;
	background-image: none !important;
	border: 1px solid rgba(63, 185, 80, 0.45) !important;
	border-radius: 2px;
	color: #b6f0c2 !important;
	box-shadow: inset 0 0 0 1px rgba(63, 185, 80, 0.12);
}

html[data-theme="dark"] .ui-datepicker td.ui-datepicker-today a.ui-state-hover,
html[data-theme="dark"] .ui-datepicker .ui-widget-content .ui-state-hover.ui-state-highlight {
	background: rgba(63, 185, 80, 0.26) !important;
	background-image: none !important;
	border-color: rgba(63, 185, 80, 0.55) !important;
	color: #d8f5dd !important;
}

html[data-theme="dark"] .ui-datepicker td.ui-datepicker-today a.ui-state-active {
	background: #b85a3a !important;
	background-image: none !important;
	border-color: #e07850 !important;
	color: #ffffff !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .ui-dialog {
	background: #161b22 !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .ui-dialog .ui-dialog-titlebar {
	background: #21262d !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

/* Page loader: main.css usa background + pattern claro — no escuro remove imagem e cobre o viewport */
html[data-theme="dark"] #qLoverlay {
	background: rgba(30, 30, 30, 0.9) !important;
	background-image: none !important;
}

/* loader.gif é claro; spinner neutro legível no overlay escuro */
html[data-theme="dark"] #qLbar {
	background: none !important;
	background-image: none !important;
	width: 44px !important;
	height: 44px !important;
	margin: 0 !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	border: 3px solid rgba(255, 255, 255, 0.12) !important;
	border-top-color: #58a6ff !important;
	border-radius: 50% !important;
	animation: natus-qloader-spin 0.75s linear infinite !important;
	box-sizing: border-box !important;
}

@keyframes natus-qloader-spin {
	from {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

html[data-theme="dark"] .mega-menu .menu li.open {
	background: #21262d !important;
}

html[data-theme="dark"] .mega-menu .menu ul {
	background: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .mega-menu .menu ul li a {
	color: #e4e6eb !important;
}

html[data-theme="dark"] body.errorPage,
html[data-theme="dark"] body.loginPage {
	background: #1e1e1e !important;
	background-image: none !important;
}

/* Fundo com imagem: escurecer só fora do login (login usa body::before em login.css) */
html[data-theme="dark"] body:not(.loginPage)::before {
	opacity: 0.35 !important;
	filter: brightness(0.45);
}

html[data-theme="dark"] .errorContainer {
	background: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #e4e6eb;
}

html[data-theme="dark"] .errorContainer h1,
html[data-theme="dark"] .errorContainer h2,
html[data-theme="dark"] .errorContainer .page-header {
	color: #e4e6eb;
}

html[data-theme="dark"] #divLoginMaster {
	background-color: #1c2128 !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
	color: #e4e6eb;
	border: 1px solid #30363d !important;
}

/* Login: manter foto visível sem “lavar” o ecrã */
html[data-theme="dark"] body.loginPage::before {
	opacity: 0.78 !important;
	filter: brightness(0.72) saturate(1.05) !important;
}

html[data-theme="dark"] #divLoginMaster input,
html[data-theme="dark"] #divLoginMaster select {
	background-color: #000000 !important;
	border-color: #4a5568 !important;
	color: #f0f3f6 !important;
	box-shadow: none !important;
}

html[data-theme="dark"] #divLoginMaster .inputText::placeholder {
	color: #8b949e !important;
	opacity: 1 !important;
}

html[data-theme="dark"] #divLoginMaster .inputText:focus {
	border-color: #58a6ff !important;
	box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.28) !important;
	outline: none !important;
}

html[data-theme="dark"] #divLoginMaster #empresa-url a {
	color: #79b8ff !important;
}

html[data-theme="dark"] #divLoginMaster #empresa-url a:hover {
	color: #a8d4ff !important;
}

html[data-theme="dark"] #divLoginMaster .btn-login {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] #divLoginMaster .validation-summary-errors,
html[data-theme="dark"] #divLoginMaster .field-validation-error {
	color: #ff9b9b !important;
}

html[data-theme="dark"] #divLoginMaster #divEntraLogin,
html[data-theme="dark"] #divLoginMaster #divEntraLogin a {
	color: #c9d1d9 !important;
}

html[data-theme="dark"] #divLoginMaster::-webkit-scrollbar-track {
	background: #21262d !important;
}

html[data-theme="dark"] #divLoginMaster::-webkit-scrollbar-thumb {
	background: #6e7681 !important;
}

html[data-theme="dark"] #divLoginMaster::-webkit-scrollbar-thumb:hover {
	background: #8b949e !important;
}

/*
 * Ícones de rede são SVG/PNG coloridos (marcas). brightness(0)+invert(1) deixa
 * toda a área opaca branca — “quadrados brancos”. Manter cores + sombra leve.
 */
html[data-theme="dark"] #divLoginMaster .social-icon {
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
	opacity: 0.95;
}

html[data-theme="dark"] #divLoginMaster .social-icon:hover {
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
	opacity: 1;
}

html[data-theme="dark"] pre,
html[data-theme="dark"] code {
	background: #1e1e1e !important;
	border-color: #30363d !important;
	color: #adbac7 !important;
}

/* --- Formulários: rótulos, destaque CoresAlinhamentos, autofill --- */
html[data-theme="dark"] .box .content label,
html[data-theme="dark"] #content label {
	color: #c9d1d9 !important;
}

html[data-theme="dark"] .colorirLinha,
html[data-theme="dark"] tr.colorirLinha > td,
html[data-theme="dark"] tr.colorirLinha > th {
	background-color: #3d2f1f !important;
	color: #f0e6d8 !important;
}

html[data-theme="dark"] tr.pedido-venda-situacao-pendente,
html[data-theme="dark"] tr.pedido-venda-situacao-pendente > td,
html[data-theme="dark"] tr.pedido-venda-situacao-pendente > th {
	background-color: #3d2020 !important;
	color: #f0e0e0 !important;
}
html[data-theme="dark"] tr.pedido-venda-situacao-liberado,
html[data-theme="dark"] tr.pedido-venda-situacao-liberado > td,
html[data-theme="dark"] tr.pedido-venda-situacao-liberado > th {
	background-color: #1e2d1e !important;
	color: #dff0df !important;
}

html[data-theme="dark"] .colorirTexto {
	color: #79b8ff !important;
}

html[data-theme="dark"] .colorirTextoVerde {
	color: #56d364 !important;
	font-weight: 700 !important;
}

html[data-theme="dark"] .colorirTextoVermelho {
	color: #ff7b72 !important;
	font-weight: 700 !important;
}

/*
 * BaixaDocumentoPagar/Receber: CriarRodapeTabela (Application.js) coloca textoVermelhoContasPagar / textoVerdeContasReceber no <tbody>.
 * No tema claro, as células herdam a cor (título baixado = vermelho/verde sem negrito). No dark, td do DataTables força #e4e6eb e quebra a herança.
 * :not(.colorir*) preserva título em aberto (fnRowCallback), que usa cor mais forte + negrito nos blocos abaixo.
 */
html[data-theme="dark"] #tabela-pesquisa-baixadocumentopagar tbody.textoVermelhoContasPagar > tr > td:not(.colorirTextoVermelho),
html[data-theme="dark"] #tabela-pesquisa-baixadocumentopagar tbody.textoVermelhoContasPagar > tr > th:not(.colorirTextoVermelho) {
	color: #f0887e !important;
	font-weight: 400 !important;
}

html[data-theme="dark"] #tabela-pesquisa-baixadocumentoreceber tbody.textoVerdeContasReceber > tr > td:not(.colorirTextoVerde),
html[data-theme="dark"] #tabela-pesquisa-baixadocumentoreceber tbody.textoVerdeContasReceber > tr > th:not(.colorirTextoVerde) {
	color: #6eb87a !important;
	font-weight: 400 !important;
}

/*
 * Grids BaixaDocumentoReceber / BaixaDocumentoPagar: título em aberto = verde ou vermelho + negrito (fnRowCallback → .colorirTextoVerde/Vermelho).
 * No tema escuro, regras genéricas de DataTables (tbody td, sorting_1..3, colunas fixas) tinham especificidade maior e apagavam cor e peso da fonte.
 */
html[data-theme="dark"] table.dataTable tbody td.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody th.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.display tbody tr > td.sorting_1.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.display tbody tr > td.sorting_2.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.display tbody tr > td.sorting_3.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.order-column tbody tr > td.sorting_1.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.order-column tbody tr > td.sorting_2.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.order-column tbody tr > td.sorting_3.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.display tbody tr:hover > td.sorting_1.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.display tbody tr:hover > td.sorting_2.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.display tbody tr:hover > td.sorting_3.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr > td.dtfc-fixed-left.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr > td.dtfc-fixed-right.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.display tbody tr.odd > td.dtfc-fixed-left.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.display tbody tr.odd > td.dtfc-fixed-right.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.display tbody tr.even > td.dtfc-fixed-left.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.display tbody tr.even > td.dtfc-fixed-right.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.stripe tbody tr.odd > td.dtfc-fixed-left.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.stripe tbody tr.odd > td.dtfc-fixed-right.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.stripe tbody tr.even > td.dtfc-fixed-left.colorirTextoVerde,
html[data-theme="dark"] table.dataTable.stripe tbody tr.even > td.dtfc-fixed-right.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr:hover > td.dtfc-fixed-left.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr:hover > td.dtfc-fixed-right.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr.selected > td.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr.selected > th.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr:hover.selected > td.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr.selected > td.dtfc-fixed-left.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr.selected > td.dtfc-fixed-right.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr:hover.selected > td.dtfc-fixed-left.colorirTextoVerde,
html[data-theme="dark"] table.dataTable tbody tr:hover.selected > td.dtfc-fixed-right.colorirTextoVerde {
	color: #56d364 !important;
	font-weight: 700 !important;
}

html[data-theme="dark"] table.dataTable tbody td.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody th.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.display tbody tr > td.sorting_1.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.display tbody tr > td.sorting_2.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.display tbody tr > td.sorting_3.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.order-column tbody tr > td.sorting_1.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.order-column tbody tr > td.sorting_2.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.order-column tbody tr > td.sorting_3.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.display tbody tr:hover > td.sorting_1.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.display tbody tr:hover > td.sorting_2.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.display tbody tr:hover > td.sorting_3.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr > td.dtfc-fixed-left.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr > td.dtfc-fixed-right.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.display tbody tr.odd > td.dtfc-fixed-left.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.display tbody tr.odd > td.dtfc-fixed-right.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.display tbody tr.even > td.dtfc-fixed-left.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.display tbody tr.even > td.dtfc-fixed-right.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.stripe tbody tr.odd > td.dtfc-fixed-left.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.stripe tbody tr.odd > td.dtfc-fixed-right.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.stripe tbody tr.even > td.dtfc-fixed-left.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable.stripe tbody tr.even > td.dtfc-fixed-right.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr:hover > td.dtfc-fixed-left.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr:hover > td.dtfc-fixed-right.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr.selected > td.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr.selected > th.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr:hover.selected > td.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr.selected > td.dtfc-fixed-left.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr.selected > td.dtfc-fixed-right.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr:hover.selected > td.dtfc-fixed-left.colorirTextoVermelho,
html[data-theme="dark"] table.dataTable tbody tr:hover.selected > td.dtfc-fixed-right.colorirTextoVermelho {
	color: #ff7b72 !important;
	font-weight: 700 !important;
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus,
html[data-theme="dark"] textarea:-webkit-autofill,
html[data-theme="dark"] select:-webkit-autofill {
	-webkit-text-fill-color: #e4e6eb !important;
	-webkit-box-shadow: 0 0 0 1000px #000000 inset !important;
	box-shadow: 0 0 0 1000px #000000 inset !important;
	transition: background-color 99999s ease-out 0s;
}

html[data-theme="dark"] input.text,
html[data-theme="dark"] input.email,
html[data-theme="dark"] input.password,
html[data-theme="dark"] textarea.uniform {
	background-color: #000000 !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

/*
 * Somente leitura / desativado: fundo #030508 (mais escuro que campos editáveis #000).
 */
html[data-theme="dark"] .uneditable-input,
html[data-theme="dark"] input[readonly]:not([type]),
html[data-theme="dark"] input[type="text"][readonly],
html[data-theme="dark"] input[type="password"][readonly],
html[data-theme="dark"] input[type="search"][readonly],
html[data-theme="dark"] input[type="number"][readonly],
html[data-theme="dark"] input[type="email"][readonly],
html[data-theme="dark"] input[type="url"][readonly],
html[data-theme="dark"] input[type="tel"][readonly],
html[data-theme="dark"] input[type="date"][readonly],
html[data-theme="dark"] input[type="time"][readonly],
html[data-theme="dark"] input[type="datetime"][readonly],
html[data-theme="dark"] input[type="datetime-local"][readonly],
html[data-theme="dark"] input[type="month"][readonly],
html[data-theme="dark"] input[type="week"][readonly],
html[data-theme="dark"] textarea[readonly],
html[data-theme="dark"] select[readonly],
html[data-theme="dark"] input:disabled:not([type]),
html[data-theme="dark"] input[type="text"]:disabled,
html[data-theme="dark"] input[type="password"]:disabled,
html[data-theme="dark"] input[type="search"]:disabled,
html[data-theme="dark"] input[type="number"]:disabled,
html[data-theme="dark"] input[type="email"]:disabled,
html[data-theme="dark"] input[type="url"]:disabled,
html[data-theme="dark"] input[type="tel"]:disabled,
html[data-theme="dark"] input[type="date"]:disabled,
html[data-theme="dark"] input[type="time"]:disabled,
html[data-theme="dark"] input[type="datetime"]:disabled,
html[data-theme="dark"] input[type="datetime-local"]:disabled,
html[data-theme="dark"] input[type="month"]:disabled,
html[data-theme="dark"] input[type="week"]:disabled,
html[data-theme="dark"] textarea:disabled,
html[data-theme="dark"] select:disabled {
	background-color: #030508 !important;
	border-color: #292f38 !important;
	color: #4a5563 !important;
}

html[data-theme="dark"] .uneditable-input::placeholder,
html[data-theme="dark"] input[readonly]::placeholder,
html[data-theme="dark"] textarea[readonly]::placeholder,
html[data-theme="dark"] input:disabled::placeholder,
html[data-theme="dark"] textarea:disabled::placeholder {
	color: #363d47 !important;
	opacity: 1;
}

html[data-theme="dark"] .textoVerdeContasReceber[readonly],
html[data-theme="dark"] .textoVerdeContasReceber:disabled {
	color: #56d364 !important;
}

html[data-theme="dark"] .textoVermelhoContasPagar[readonly],
html[data-theme="dark"] .textoVermelhoContasPagar:disabled,
html[data-theme="dark"] .textoVermelhoOpacidade1[readonly],
html[data-theme="dark"] .textoVermelhoOpacidade1:disabled {
	color: #ff7b72 !important;
}

html[data-theme="dark"] .select2-container.select2-container-disabled .select2-choice {
	background-color: #030508 !important;
	background-image: none !important;
	border-color: #292f38 !important;
	color: #4a5563 !important;
}

html[data-theme="dark"] .select2-container.select2-container-disabled .select2-choice .select2-chosen {
	color: #4a5563 !important;
}

html[data-theme="dark"] .select2-container.select2-container-disabled .select2-choice .select2-arrow {
	background: #030508 !important;
	border-left-color: #292f38 !important;
}

html[data-theme="dark"] input[readonly]:-webkit-autofill,
html[data-theme="dark"] input:disabled:-webkit-autofill,
html[data-theme="dark"] textarea[readonly]:-webkit-autofill,
html[data-theme="dark"] textarea:disabled:-webkit-autofill {
	-webkit-text-fill-color: #4a5563 !important;
	-webkit-box-shadow: 0 0 0 1000px #030508 inset !important;
	box-shadow: 0 0 0 1000px #030508 inset !important;
}

html[data-theme="dark"] div.selector,
html[data-theme="dark"] div.selector select {
	background-color: #000000 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] div.selector span {
	color: #e4e6eb !important;
}

/* DataTables 1.10+ (display / stripe / hover / coluna ordenada) */
html[data-theme="dark"] table.dataTable tbody tr {
	background-color: #1a2330 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.odd,
html[data-theme="dark"] table.dataTable.stripe tbody tr.odd,
html[data-theme="dark"] table.dataTable.display tbody tr.odd {
	background-color: #212a37 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.even,
html[data-theme="dark"] table.dataTable.display tbody tr.even {
	background-color: #1a2330 !important;
}

html[data-theme="dark"] table.dataTable.hover tbody tr:hover,
html[data-theme="dark"] table.dataTable.display tbody tr:hover {
	background-color: #2a3139 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.selected,
html[data-theme="dark"] table.dataTable.display tbody tr.selected {
	background-color: #354e6b !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column tbody tr > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column tbody tr > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column tbody tr > .sorting_3 {
	background-color: inherit !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.odd > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.odd > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.odd > .sorting_3 {
	background-color: #2d2d2d !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.even > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.even > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.even > .sorting_3 {
	background-color: #1e1e1e !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr:hover > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr:hover > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr:hover > .sorting_3 {
	background-color: #3a3a3a !important;
}

/* Linhas semânticas Bootstrap no grid DataTables (Gestor XML: Origem → tr.warning, etc.) */
html[data-theme="dark"] table.dataTable tbody tr.warning > td,
html[data-theme="dark"] table.dataTable tbody tr.warning > th,
html[data-theme="dark"] table.display tbody tr.warning > td,
html[data-theme="dark"] table.display tbody tr.warning > th {
	background-color: #4a3f24 !important;
	color: #f0e6c8 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.success > td,
html[data-theme="dark"] table.dataTable tbody tr.success > th,
html[data-theme="dark"] table.display tbody tr.success > td,
html[data-theme="dark"] table.display tbody tr.success > th {
	background-color: #1f3d2a !important;
	color: #c6f6d5 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.error > td,
html[data-theme="dark"] table.dataTable tbody tr.error > th,
html[data-theme="dark"] table.display tbody tr.error > td,
html[data-theme="dark"] table.display tbody tr.error > th {
	background-color: #442926 !important;
	color: #ffd8d4 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.info > td,
html[data-theme="dark"] table.dataTable tbody tr.info > th,
html[data-theme="dark"] table.display tbody tr.info > td,
html[data-theme="dark"] table.display tbody tr.info > th {
	background-color: #1a3040 !important;
	color: #c8e7fa !important;
}

html[data-theme="dark"] table.dataTable tbody tr.warning,
html[data-theme="dark"] table.dataTable.display tbody tr.warning {
	background-color: #4a3f24 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.success,
html[data-theme="dark"] table.dataTable.display tbody tr.success {
	background-color: #1f3d2a !important;
}

html[data-theme="dark"] table.dataTable tbody tr.error,
html[data-theme="dark"] table.dataTable.display tbody tr.error {
	background-color: #442926 !important;
}

html[data-theme="dark"] table.dataTable tbody tr.info,
html[data-theme="dark"] table.dataTable.display tbody tr.info {
	background-color: #1a3040 !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.warning > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.warning > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.warning > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column tbody tr.warning > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column tbody tr.warning > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column tbody tr.warning > .sorting_3 {
	background-color: #4a3f24 !important;
	color: #f0e6c8 !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.success > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.success > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.success > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column tbody tr.success > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column tbody tr.success > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column tbody tr.success > .sorting_3 {
	background-color: #1f3d2a !important;
	color: #c6f6d5 !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.error > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.error > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.error > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column tbody tr.error > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column tbody tr.error > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column tbody tr.error > .sorting_3 {
	background-color: #442926 !important;
	color: #ffd8d4 !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.info > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.info > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.info > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column tbody tr.info > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column tbody tr.info > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column tbody tr.info > .sorting_3 {
	background-color: #1a3040 !important;
	color: #c8e7fa !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.warning:hover > td,
html[data-theme="dark"] table.dataTable.display tbody tr.warning:hover > th,
html[data-theme="dark"] table.dataTable tbody tr.warning:hover > td,
html[data-theme="dark"] table.dataTable tbody tr.warning:hover > th,
html[data-theme="dark"] table.display tbody tr.warning:hover > td,
html[data-theme="dark"] table.display tbody tr.warning:hover > th {
	background-color: #5c4f2a !important;
	color: #faf3dc !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.warning:hover > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.warning:hover > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.warning:hover > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.warning:hover > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.warning:hover > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.warning:hover > .sorting_3 {
	background-color: #5c4f2a !important;
	color: #faf3dc !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.success:hover > td,
html[data-theme="dark"] table.dataTable.display tbody tr.success:hover > th,
html[data-theme="dark"] table.dataTable tbody tr.success:hover > td,
html[data-theme="dark"] table.dataTable tbody tr.success:hover > th {
	background-color: #265336 !important;
	color: #d8ffe6 !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.success:hover > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.success:hover > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.success:hover > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.success:hover > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.success:hover > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.success:hover > .sorting_3 {
	background-color: #265336 !important;
	color: #d8ffe6 !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.error:hover > td,
html[data-theme="dark"] table.dataTable.display tbody tr.error:hover > th,
html[data-theme="dark"] table.dataTable tbody tr.error:hover > td,
html[data-theme="dark"] table.dataTable tbody tr.error:hover > th {
	background-color: #5c3330 !important;
	color: #ffe8e6 !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.error:hover > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.error:hover > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.error:hover > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.error:hover > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.error:hover > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.error:hover > .sorting_3 {
	background-color: #5c3330 !important;
	color: #ffe8e6 !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.info:hover > td,
html[data-theme="dark"] table.dataTable.display tbody tr.info:hover > th,
html[data-theme="dark"] table.dataTable tbody tr.info:hover > td,
html[data-theme="dark"] table.dataTable tbody tr.info:hover > th {
	background-color: #22425a !important;
	color: #d9eefc !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.info:hover > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.info:hover > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.info:hover > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.info:hover > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.info:hover > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr.info:hover > .sorting_3 {
	background-color: #22425a !important;
	color: #d9eefc !important;
}

html[data-theme="dark"] table.dataTable tbody tr.warning.selected > td,
html[data-theme="dark"] table.dataTable tbody tr.warning.selected > th,
html[data-theme="dark"] table.dataTable.display tbody tr.warning.selected > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.warning.selected > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.warning.selected > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column tbody tr.warning.selected > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column tbody tr.warning.selected > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column tbody tr.warning.selected > .sorting_3 {
	background-color: #5a4a28 !important;
	color: #faf3dc !important;
}

/*
 * Hover / selecionado: o CSS do DataTables (jquery.dataTables.css) pinta as **células** .sorting_1–3
 * com cinzas/azuis claros; custom.css .highlight_row td usa #fcfdc6 !important. Só estilizar tr não basta.
 */
html[data-theme="dark"] .highlight_row td,
html[data-theme="dark"] .highlight_row th,
html[data-theme="dark"] tr.highlight_row > td,
html[data-theme="dark"] tr.highlight_row > th,
html[data-theme="dark"] .dataTables_wrapper table tbody tr.highlight_row > td,
html[data-theme="dark"] .dataTables_wrapper table tbody tr.highlight_row > th,
html[data-theme="dark"] table.dataTable tbody tr.highlight_row > td,
html[data-theme="dark"] table.dataTable tbody tr.highlight_row > th {
	background-color: #4a3f24 !important;
	color: #f0e6c8 !important;
	border-top-color: #30363d !important;
}

/* custom.css: .highlight (sem _row) também usa #fcfdc6 */
html[data-theme="dark"] table.dataTable td.highlight,
html[data-theme="dark"] table.dataTable th.highlight,
html[data-theme="dark"] table.display td.highlight {
	background-color: #4a3f24 !important;
	color: #f0e6c8 !important;
}

html[data-theme="dark"] table.dataTable tbody tr:hover > td,
html[data-theme="dark"] table.dataTable tbody tr:hover > th,
html[data-theme="dark"] table.display tbody tr:hover > td,
html[data-theme="dark"] table.display tbody tr:hover > th {
	background-color: #3a3a3a !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable tbody tr.selected > td,
html[data-theme="dark"] table.dataTable tbody tr.selected > th,
html[data-theme="dark"] table.display tbody tr.selected > td,
html[data-theme="dark"] table.display tbody tr.selected > th {
	background-color: #454545 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable tbody tr:hover.selected > td,
html[data-theme="dark"] table.dataTable tbody tr:hover.selected > th {
	background-color: #505050 !important;
	color: #f0f3f6 !important;
}

html[data-theme="dark"] table.dataTable.order-column.hover tbody tr:hover > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr:hover > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr:hover > .sorting_3 {
	background-color: #3a3a3a !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr.odd.selected > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.odd.selected > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.odd.selected > .sorting_3,
html[data-theme="dark"] table.dataTable.display tbody tr.even.selected > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr.even.selected > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr.even.selected > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column tbody tr.selected > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column tbody tr.selected > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column tbody tr.selected > .sorting_3 {
	background-color: #454545 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] table.dataTable.display tbody tr:hover.selected > .sorting_1,
html[data-theme="dark"] table.dataTable.display tbody tr:hover.selected > .sorting_2,
html[data-theme="dark"] table.dataTable.display tbody tr:hover.selected > .sorting_3,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_1,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_2,
html[data-theme="dark"] table.dataTable.order-column.hover tbody tr:hover.selected > .sorting_3 {
	background-color: #505050 !important;
	color: #f0f3f6 !important;
}

html[data-theme="dark"] table.dataTable thead th:not(.sorting):not(.sorting_asc):not(.sorting_desc):not(.sorting_asc_disabled):not(.sorting_desc_disabled),
html[data-theme="dark"] table.dataTable thead td {
	background-color: #2a3f57 !important;
	background-image: none !important;
	color: #e4e6eb !important;
	border-bottom-color: #3f5d7b !important;
}

html[data-theme="dark"] table.dataTable.row-border tbody th,
html[data-theme="dark"] table.dataTable.row-border tbody td,
html[data-theme="dark"] table.dataTable.display tbody th,
html[data-theme="dark"] table.dataTable.display tbody td {
	border-top-color: #30363d !important;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_length,
html[data-theme="dark"] .dataTables_wrapper .dataTables_filter,
html[data-theme="dark"] .dataTables_wrapper .dataTables_info {
	color: #adbac7 !important;
}

/*
 * "Processando": jquery.dataTables.css usa gradiente branco — sem background-image:none o cinza claro volta.
 * Overlay neutro (#6a6a6a), legível sobre o fundo escuro da área de rolagem.
 */
html[data-theme="dark"] .dataTables_scrollBody {
	position: relative;
}

html[data-theme="dark"] .dataTables_scrollBody > .dataTables_processing {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding-top: 18vh !important;
	box-sizing: border-box !important;
	z-index: 3 !important;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_processing,
html[data-theme="dark"] .dataTables_processing {
	color: #edf5fd !important;
	background: #6a6a6a !important;
	background-color: #6a6a6a !important;
	background-image: none !important;
	-webkit-background-image: none !important;
	-moz-background-image: none !important;
	-ms-background-image: none !important;
	-o-background-image: none !important;
	border: 1px solid #555555 !important;
	box-shadow: none !important;
	filter: none !important;
}

/*
 * Card "Processamento em andamento" (Superius.Util.MostrarOverlayCarregamentoGrid em Application.js).
 * O estilo #dt-processing-enhanced-style força overlay branco + cartão #fff — por isso no escuro parecia cinza claro.
 */
html[data-theme="dark"] .dt-loading-overlay {
	background: rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] .dt-loading-overlay .dt-loading-card {
	background: #6a6a6a !important;
	border: 1px solid #555555 !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .dt-loading-overlay .dt-loading-text {
	color: #edf5fd !important;
}

html[data-theme="dark"] .dt-loading-overlay .dt-loading-spinner {
	border-color: rgba(237, 245, 253, 0.35) !important;
	border-top-color: #a8d4ff !important;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
	background: #2a3f57 !important;
	background-image: none !important;
	border-color: #3f5d7b !important;
	color: #edf5fd !important;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
	background: #3d5a7b !important;
	color: #fff !important;
	border-color: #5a7a9e !important;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
	background: #354e6b !important;
	color: #fff !important;
	border-color: #6e8aad !important;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
	background: #1e1e1e !important;
	color: #6e7681 !important;
	border-color: #30363d !important;
}

/* Paginação legada (jquery.dataTables antigo) */
html[data-theme="dark"] .paginate_enabled_previous,
html[data-theme="dark"] .paginate_enabled_next,
html[data-theme="dark"] span.paginate_button,
html[data-theme="dark"] a.paginate_button,
html[data-theme="dark"] a.paginate_active {
	background: #2a3f57 !important;
	background-image: none !important;
	border-color: #3f5d7b !important;
	color: #edf5fd !important;
	box-shadow: none !important;
	filter: none !important;
}

html[data-theme="dark"] .paginate_disabled_previous,
html[data-theme="dark"] .paginate_disabled_next {
	background: #1e1e1e !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #6e7681 !important;
	box-shadow: none !important;
	filter: none !important;
}

html[data-theme="dark"] a.paginate_active {
	background: #3d5a7b !important;
	color: #fff !important;
	border-color: #5a7a9e !important;
}

html[data-theme="dark"] table.dataTable tr.dtrg-group td,
html[data-theme="dark"] table.dataTable tr.dtrg-group.dtrg-level-1 td,
html[data-theme="dark"] table.dataTable tr.dtrg-group.dtrg-level-2 td {
	background-color: #21262d !important;
	color: #e4e6eb !important;
}

/* Botões de ação / DataTables Buttons */
html[data-theme="dark"] .dt-button,
html[data-theme="dark"] button.dt-button {
	background: #21262d !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] .dt-button:hover,
html[data-theme="dark"] button.dt-button:hover {
	background: #30363d !important;
	color: #fff !important;
}

html[data-theme="dark"] div.dt-button-collection {
	background: #161b22 !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .dataTables_wrapper table tbody td .btn,
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn,
html[data-theme="dark"] table.dataTable tbody td .btn,
html[data-theme="dark"] table.dataTable tbody td a.btn {
	background: #2d3748 !important;
	background-image: none !important;
	border-color: #4a5568 !important;
	color: #e4e6eb !important;
	box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1) !important;
	border-radius: 5px !important;
}

html[data-theme="dark"] .dataTables_wrapper table thead th .btn,
html[data-theme="dark"] .dataTables_wrapper table thead th a.btn,
html[data-theme="dark"] table.dataTable thead th .btn,
html[data-theme="dark"] table.dataTable thead th a.btn {
	background: #2d3748 !important;
	background-image: none !important;
	border-color: #4a5568 !important;
	color: #e4e6eb !important;
	box-shadow: inset 0 0 1px rgba(255, 255, 255, 0.1) !important;
	border-radius: 5px !important;
}

html[data-theme="dark"] table.dataTable tbody td a:not(.btn) {
	color: #79b8ff !important;
}

html[data-theme="dark"] .dataTables_wrapper table tbody td .btn:hover,
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn:hover,
html[data-theme="dark"] table.dataTable tbody td .btn:hover,
html[data-theme="dark"] table.dataTable tbody td a.btn:hover {
	background: #3a4c61 !important;
	background-image: none !important;
	border-color: #6b7d90 !important;
	color: #ffffff !important;
}

html[data-theme="dark"] .dataTables_wrapper table thead th .btn:hover,
html[data-theme="dark"] .dataTables_wrapper table thead th a.btn:hover,
html[data-theme="dark"] table.dataTable thead th .btn:hover,
html[data-theme="dark"] table.dataTable thead th a.btn:hover {
	background: #3a4c61 !important;
	background-image: none !important;
	border-color: #6b7d90 !important;
	color: #ffffff !important;
}

/*
 * Ícones no grid: sprite glyphicons (.icon-*, icons.css) — invert.
 * Também [class^="icon-"] quando a 1.ª classe é icon-print (ordem alternativa).
 * Ícones de fonte (icons.css) — cor clara; entypo/cut/etc. herdavam #353535 no claro.
 */
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn span[class*=" icon-"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn span[class*=" icon-"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn span[class*=" icon-"],
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn span[class^="icon-"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn span[class^="icon-"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn span[class^="icon-"],
html[data-theme="dark"] table.dataTable tbody td button.btn span[class*=" icon-"],
html[data-theme="dark"] table.dataTable tbody td a.btn span[class*=" icon-"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn span[class*=" icon-"],
html[data-theme="dark"] table.dataTable tbody td button.btn span[class^="icon-"],
html[data-theme="dark"] table.dataTable tbody td a.btn span[class^="icon-"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn span[class^="icon-"],
html[data-theme="dark"] .dataTables_wrapper table thead th button.btn span[class*=" icon-"],
html[data-theme="dark"] .dataTables_wrapper table thead th .dt-btnwrap button.btn span[class*=" icon-"],
html[data-theme="dark"] .dataTables_wrapper table thead th button.btn span[class^="icon-"],
html[data-theme="dark"] .dataTables_wrapper table thead th .dt-btnwrap button.btn span[class^="icon-"],
html[data-theme="dark"] table.dataTable thead th button.btn span[class*=" icon-"],
html[data-theme="dark"] table.dataTable thead th .dt-btnwrap button.btn span[class*=" icon-"],
html[data-theme="dark"] table.dataTable thead th button.btn span[class^="icon-"],
html[data-theme="dark"] table.dataTable thead th .dt-btnwrap button.btn span[class^="icon-"] {
	filter: brightness(0) invert(1) !important;
	opacity: 0.95 !important;
}

html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn [class*="icomoon-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn [class*="icomoon-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn [class*="icomoon-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn [class*="minia-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn [class*="minia-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn [class*="minia-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn [class*="silk-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn [class*="silk-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn [class*="silk-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn [class*="entypo-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn [class*="entypo-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn [class*="entypo-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn [class*="cut-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn [class*="cut-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn [class*="cut-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn [class*="brocco-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn [class*="brocco-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn [class*="brocco-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn [class*="iconic-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn [class*="iconic-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn [class*="iconic-icon"],
html[data-theme="dark"] table.dataTable tbody td button.btn [class*="icomoon-icon"],
html[data-theme="dark"] table.dataTable tbody td a.btn [class*="icomoon-icon"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn [class*="icomoon-icon"],
html[data-theme="dark"] table.dataTable tbody td button.btn [class*="minia-icon"],
html[data-theme="dark"] table.dataTable tbody td a.btn [class*="minia-icon"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn [class*="minia-icon"],
html[data-theme="dark"] table.dataTable tbody td button.btn [class*="silk-icon"],
html[data-theme="dark"] table.dataTable tbody td a.btn [class*="silk-icon"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn [class*="silk-icon"],
html[data-theme="dark"] table.dataTable tbody td button.btn [class*="entypo-icon"],
html[data-theme="dark"] table.dataTable tbody td a.btn [class*="entypo-icon"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn [class*="entypo-icon"],
html[data-theme="dark"] table.dataTable tbody td button.btn [class*="cut-icon"],
html[data-theme="dark"] table.dataTable tbody td a.btn [class*="cut-icon"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn [class*="cut-icon"],
html[data-theme="dark"] table.dataTable tbody td button.btn [class*="brocco-icon"],
html[data-theme="dark"] table.dataTable tbody td a.btn [class*="brocco-icon"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn [class*="brocco-icon"],
html[data-theme="dark"] table.dataTable tbody td button.btn [class*="iconic-icon"],
html[data-theme="dark"] table.dataTable tbody td a.btn [class*="iconic-icon"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn [class*="iconic-icon"],
html[data-theme="dark"] .dataTables_wrapper table thead th button.btn [class*="icomoon-icon"],
html[data-theme="dark"] .dataTables_wrapper table thead th .dt-btnwrap button.btn [class*="icomoon-icon"],
html[data-theme="dark"] .dataTables_wrapper table thead th button.btn [class*="minia-icon"],
html[data-theme="dark"] .dataTables_wrapper table thead th .dt-btnwrap button.btn [class*="minia-icon"],
html[data-theme="dark"] table.dataTable thead th button.btn [class*="icomoon-icon"],
html[data-theme="dark"] table.dataTable thead th .dt-btnwrap button.btn [class*="icomoon-icon"],
html[data-theme="dark"] table.dataTable thead th button.btn [class*="minia-icon"],
html[data-theme="dark"] table.dataTable thead th .dt-btnwrap button.btn [class*="minia-icon"] {
	color: #dbe8f6 !important;
	filter: none !important;
	opacity: 1 !important;
}

html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn:hover span[class*=" icon-"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn:hover span[class*=" icon-"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn:hover span[class*=" icon-"],
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn:hover span[class^="icon-"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn:hover span[class^="icon-"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn:hover span[class^="icon-"],
html[data-theme="dark"] table.dataTable tbody td button.btn:hover span[class*=" icon-"],
html[data-theme="dark"] table.dataTable tbody td a.btn:hover span[class*=" icon-"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn:hover span[class*=" icon-"],
html[data-theme="dark"] table.dataTable tbody td button.btn:hover span[class^="icon-"],
html[data-theme="dark"] table.dataTable tbody td a.btn:hover span[class^="icon-"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn:hover span[class^="icon-"],
html[data-theme="dark"] .dataTables_wrapper table thead th button.btn:hover span[class*=" icon-"],
html[data-theme="dark"] .dataTables_wrapper table thead th .dt-btnwrap button.btn:hover span[class*=" icon-"],
html[data-theme="dark"] .dataTables_wrapper table thead th button.btn:hover span[class^="icon-"],
html[data-theme="dark"] .dataTables_wrapper table thead th .dt-btnwrap button.btn:hover span[class^="icon-"],
html[data-theme="dark"] table.dataTable thead th button.btn:hover span[class*=" icon-"],
html[data-theme="dark"] table.dataTable thead th .dt-btnwrap button.btn:hover span[class*=" icon-"],
html[data-theme="dark"] table.dataTable thead th button.btn:hover span[class^="icon-"],
html[data-theme="dark"] table.dataTable thead th .dt-btnwrap button.btn:hover span[class^="icon-"] {
	opacity: 1 !important;
}

html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn:hover [class*="icomoon-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn:hover [class*="icomoon-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn:hover [class*="icomoon-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn:hover [class*="minia-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn:hover [class*="minia-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn:hover [class*="minia-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td button.btn:hover [class*="entypo-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td a.btn:hover [class*="entypo-icon"],
html[data-theme="dark"] .dataTables_wrapper table tbody td .dt-btnwrap button.btn:hover [class*="entypo-icon"],
html[data-theme="dark"] table.dataTable tbody td button.btn:hover [class*="icomoon-icon"],
html[data-theme="dark"] table.dataTable tbody td a.btn:hover [class*="icomoon-icon"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn:hover [class*="icomoon-icon"],
html[data-theme="dark"] table.dataTable tbody td button.btn:hover [class*="minia-icon"],
html[data-theme="dark"] table.dataTable tbody td a.btn:hover [class*="minia-icon"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn:hover [class*="minia-icon"],
html[data-theme="dark"] table.dataTable tbody td button.btn:hover [class*="entypo-icon"],
html[data-theme="dark"] table.dataTable tbody td a.btn:hover [class*="entypo-icon"],
html[data-theme="dark"] table.dataTable tbody td .dt-btnwrap button.btn:hover [class*="entypo-icon"],
html[data-theme="dark"] .dataTables_wrapper table thead th button.btn:hover [class*="icomoon-icon"],
html[data-theme="dark"] .dataTables_wrapper table thead th .dt-btnwrap button.btn:hover [class*="icomoon-icon"],
html[data-theme="dark"] .dataTables_wrapper table thead th button.btn:hover [class*="minia-icon"],
html[data-theme="dark"] .dataTables_wrapper table thead th .dt-btnwrap button.btn:hover [class*="minia-icon"],
html[data-theme="dark"] table.dataTable thead th button.btn:hover [class*="icomoon-icon"],
html[data-theme="dark"] table.dataTable thead th .dt-btnwrap button.btn:hover [class*="icomoon-icon"],
html[data-theme="dark"] table.dataTable thead th button.btn:hover [class*="minia-icon"],
html[data-theme="dark"] table.dataTable thead th .dt-btnwrap button.btn:hover [class*="minia-icon"] {
	color: #ffffff !important;
}

/* main.css .table tr usa box-shadow branco — vira “barra branca” no dark */
html[data-theme="dark"] .table tr,
html[data-theme="dark"] .dataTables_wrapper table tbody tr,
html[data-theme="dark"] .dataTables_wrapper table thead tr,
html[data-theme="dark"] table.dataTable tbody tr,
html[data-theme="dark"] table.dataTable thead tr {
	-moz-box-shadow: none !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}

/* Esconde FAB se o toggle já está no menu (evita duplicado) */
body:has(a.natus-theme-nav-toggle[data-theme-toggle]) .natus-theme-fab {
	display: none !important;
}

/* FullCalendar (/Basico/Calendario/Editar): coluna semana ISO — custom.css carrega antes do tema; gradiente em .fc-content tbody tr cobria o fundo */
.calendario-editar #calendar .fc-view-month.fc-grid th.fc-week-number,
.calendario-editar #calendar .fc-view-month.fc-grid td.fc-week-number {
	background-color: #e8f4fc !important;
	background-image: none !important;
	text-align: right !important;
}
.calendario-editar #calendar .fc-view-month.fc-grid td.fc-week-number > div {
	display: flex !important;
	justify-content: flex-end !important;
	text-align: right !important;
}

/*
 * FullCalendar — tema escuro (mesma linguagem do datepicker / .ui-widget-content: #161b22, #21262d, #adbac7, bordas #30363d)
 */
html[data-theme="dark"] #calendar .fc {
	color: #adbac7 !important;
}

html[data-theme="dark"] #calendar .fc-header-title h2 {
	color: #adbac7 !important;
}

html[data-theme="dark"] #calendar .fc-header .fc-button,
html[data-theme="dark"] #calendar .fc-header .fc-state-default,
html[data-theme="dark"] #calendar .fc-header .fc-state-default .fc-button-inner {
	background-color: #21262d !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #adbac7 !important;
	box-shadow: none !important;
	filter: none !important;
}

html[data-theme="dark"] #calendar .fc-header .fc-state-hover,
html[data-theme="dark"] #calendar .fc-header .fc-state-hover .fc-button-inner {
	border-color: #4a5568 !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] #calendar .fc-header .fc-state-active,
html[data-theme="dark"] #calendar .fc-header .fc-state-active .fc-button-inner {
	background-color: #161b22 !important;
	border-color: #30363d !important;
	color: #e4e6eb !important;
}

html[data-theme="dark"] #calendar thead .fc-first,
html[data-theme="dark"] #calendar thead .fc-last,
html[data-theme="dark"] #calendar .fc-widget-header {
	background: #21262d !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #adbac7 !important;
	box-shadow: none !important;
	filter: none !important;
}

html[data-theme="dark"] #calendar .fc-content tbody tr {
	background: transparent !important;
	background-image: none !important;
	filter: none !important;
}

html[data-theme="dark"] #calendar .fc-widget-content {
	border-color: #30363d !important;
	background-color: #161b22 !important;
	background-image: none !important;
	color: #adbac7 !important;
}

html[data-theme="dark"] #calendar .fc-grid .fc-day-number {
	color: #adbac7 !important;
}

html[data-theme="dark"] #calendar .fc-grid .fc-other-month .fc-day-number {
	color: #6e7681 !important;
	opacity: 1 !important;
	filter: none !important;
}

/* Hoje: mesmo critério suave do datepicker no escuro */
html[data-theme="dark"] #calendar td.fc-today,
html[data-theme="dark"] #calendar .fc-today.fc-widget-content {
	background-color: rgba(63, 185, 80, 0.14) !important;
	background-image: none !important;
	border-color: rgba(63, 185, 80, 0.42) !important;
}

html[data-theme="dark"] #calendar td.fc-today .fc-day-number,
html[data-theme="dark"] #calendar .fc-today .fc-day-number {
	color: #b6f0c2 !important;
}

/* Coluna semana ISO — tom próximo ao header, texto cinza */
html[data-theme="dark"] .calendario-editar #calendar .fc-view-month.fc-grid th.fc-week-number,
html[data-theme="dark"] .calendario-editar #calendar .fc-view-month.fc-grid td.fc-week-number {
	background-color: #1c2128 !important;
	background-image: none !important;
	border-right-color: #30363d !important;
	color: #adbac7 !important;
}

html[data-theme="dark"] .calendario-editar #calendar .fc-view-month.fc-grid td.fc-week-number > div {
	color: #adbac7 !important;
}

/* Eventos no mês — borda legível no escuro */
html[data-theme="dark"] #calendar .fc-event {
	border-color: rgba(48, 54, 61, 0.95) !important;
}

/* -------------------------------------------------------------------------- */
/* Modal preferências de colunas do grid (Superius.Util.AbrirDialogConfigurarGrid) */
/* -------------------------------------------------------------------------- */
.grid-prefs-usuario-dialog .grid-prefs-hint {
	margin-bottom: 8px;
}

/* Modal: pesquisa + linha (Disponíveis | botões | Em uso) */
.grid-prefs-usuario-dialog .grid-prefs-columns-wrap {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	gap: 10px;
	margin-bottom: 10px;
}

.grid-prefs-search-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
}

.grid-prefs-search-label {
	font-weight: 600;
	font-size: 12px;
	color: #333;
	white-space: nowrap;
	flex-shrink: 0;
}

.grid-prefs-search-input {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 13px;
}

.grid-prefs-usuario-dialog .grid-prefs-columns-row {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	justify-content: stretch;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	gap: 10px;
	flex: 1 1 auto;
	min-height: 0;
}

.grid-prefs-transfer {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-self: stretch;
	gap: 8px;
	padding: 0 10px;
	min-width: 152px;
	max-width: 168px;
	border-left: 1px solid #d0d7de;
	border-right: 1px solid #d0d7de;
	box-sizing: border-box;
}

.grid-prefs-transfer-btn {
	font-size: 11px;
	line-height: 1.25;
	padding: 7px 8px;
	cursor: pointer;
	border-radius: 4px;
	border: 1px solid #ccc;
	background: #f0f3f6;
	color: #24292f;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.grid-prefs-transfer-btn:hover {
	background: #e8ecf0;
	border-color: #b0b8c1;
}

.grid-prefs-usuario-dialog .grid-prefs-panel {
	flex: 1 1 0 !important;
	min-width: 0 !important;
	width: auto !important;
	max-width: none !important;
	float: none !important;
	clear: none !important;
	display: flex !important;
	flex-direction: column !important;
	align-self: stretch !important;
	min-height: 280px;
}

/* Borda entre listas fica na coluna .grid-prefs-transfer (painel | transfer | painel) */

.grid-prefs-panel-title {
	font-weight: 600;
	font-size: 12px;
	margin-bottom: 6px;
	color: #333;
}

.grid-prefs-usuario-dialog .grid-prefs-panel .grid-prefs-scroll {
	margin-bottom: 0;
	flex: 1 1 auto;
	min-height: 240px;
	box-sizing: border-box;
}

/* Lista sem itens: altura mínima = zona de drop do jQuery UI sortable */
.grid-prefs-usuario-dialog ul.grid-prefs-ul-connected {
	min-height: 220px;
	box-sizing: border-box;
}

.grid-prefs-li-grip {
	display: inline-block;
	cursor: grab;
	color: #888;
	font-size: 10px;
	line-height: 1;
	margin-right: 0;
	user-select: none;
	vertical-align: middle;
	letter-spacing: -2px;
	flex-shrink: 0;
}

.grid-prefs-li--locked .grid-prefs-li-grip {
	cursor: default;
	opacity: 0.45;
}

.grid-prefs-li-title {
	vertical-align: middle;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.grid-prefs-sortable-placeholder {
	min-height: 36px;
	box-sizing: border-box;
}

.grid-prefs-scroll {
	max-height: 320px;
	overflow: auto;
	border: 1px solid #ccc;
	padding: 8px 12px;
	margin-bottom: 10px;
	border-radius: 4px;
	box-sizing: border-box;
}

.grid-prefs-ul .ui-sortable-placeholder,
.grid-prefs-ul .grid-prefs-sortable-placeholder {
	visibility: visible !important;
	min-height: 36px;
	background: #ececec;
	border: 1px dashed #bbb;
	box-sizing: border-box;
}

.grid-prefs-ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.grid-prefs-li {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	border-bottom: 1px solid #eee;
	cursor: default;
	background: #fafafa;
	margin-bottom: 4px;
	border-radius: 3px;
}

.grid-prefs-li:not(.grid-prefs-li--locked) {
	cursor: grab;
}

.grid-prefs-li:not(.grid-prefs-li--locked):active {
	cursor: grabbing;
}

.grid-prefs-li-cb {
	margin: 0;
	flex-shrink: 0;
	vertical-align: middle;
	cursor: pointer;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
}

.grid-prefs-li-cb--locked {
	cursor: default;
	opacity: 0.9;
}

.grid-prefs-li-cb-spacer {
	display: inline-block;
	width: 18px;
	height: 1px;
	flex-shrink: 0;
}

.grid-prefs-li--filtered-out {
	display: none !important;
}

.grid-prefs-li--locked {
	cursor: default;
	opacity: 0.95;
}

.grid-prefs-li-label {
	cursor: pointer;
	margin: 0;
}

.grid-prefs-fixed-wrap {
	display: block;
	margin-top: 4px;
}

.grid-prefs-fixed-label--short {
	display: none;
}

.grid-prefs-fixed-input {
	width: 56px;
	margin-left: 4px;
}

/* Modal configurar grid — largura máxima (layout responsivo detalhado em custom.css @media max-width 991px) */
.ui-dialog.grid-prefs-ui-dialog-wrap {
	box-sizing: border-box;
	max-width: calc(100vw - 16px);
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap {
	background-color: #21262d !important;
	border-color: #30363d !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-titlebar {
	background: #161b22 !important;
	background-image: none !important;
	border-color: #30363d !important;
	color: #e6edf3 !important;
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-titlebar-close {
	color: #e6edf3 !important;
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-content {
	background-color: #21262d !important;
	color: #e6edf3 !important;
}

html[data-theme="dark"] .grid-prefs-usuario-dialog .grid-prefs-hint {
	color: #adbac7 !important;
}

html[data-theme="dark"] .grid-prefs-search-label {
	color: #e6edf3 !important;
}

html[data-theme="dark"] .grid-prefs-search-input {
	background-color: #000000 !important;
	border: 1px solid #30363d !important;
	color: #e6edf3 !important;
	border-radius: 4px;
}

html[data-theme="dark"] .grid-prefs-transfer {
	border-left-color: #30363d !important;
	border-right-color: #30363d !important;
}

html[data-theme="dark"] .grid-prefs-transfer-btn {
	background: #30363d !important;
	border-color: #484f58 !important;
	color: #e6edf3 !important;
}

html[data-theme="dark"] .grid-prefs-transfer-btn:hover {
	background: #3d444d !important;
	border-color: #6e7681 !important;
}

html[data-theme="dark"] .grid-prefs-panel-title {
	color: #e6edf3 !important;
}

html[data-theme="dark"] .grid-prefs-li-grip {
	color: #6e7681 !important;
}

html[data-theme="dark"] .grid-prefs-scroll {
	background-color: #161b22 !important;
	border-color: #30363d !important;
	scrollbar-color: #484f58 #161b22;
}

html[data-theme="dark"] .grid-prefs-ul .ui-sortable-placeholder,
html[data-theme="dark"] .grid-prefs-ul .grid-prefs-sortable-placeholder {
	background: #30363d !important;
	border: 1px dashed #6e7681 !important;
	visibility: visible !important;
	min-height: 36px;
}

html[data-theme="dark"] .grid-prefs-li {
	background-color: #22272e !important;
	background: #22272e !important;
	border-bottom-color: #30363d !important;
	color: #e6edf3 !important;
}

html[data-theme="dark"] .grid-prefs-li--locked {
	background-color: #1c2128 !important;
	opacity: 1;
}

/* Checkboxes desabilitados (Caixa de seleção / Botões): visíveis no escuro */
html[data-theme="dark"] .grid-prefs-li-cb--locked:disabled {
	opacity: 1 !important;
	accent-color: #6e7681;
	-webkit-appearance: auto;
	appearance: auto;
}

html[data-theme="dark"] .grid-prefs-li-label,
html[data-theme="dark"] .grid-prefs-li-label span,
html[data-theme="dark"] .grid-prefs-li-title {
	color: #e6edf3 !important;
}

html[data-theme="dark"] .grid-prefs-fixed-wrap {
	color: #adbac7 !important;
}

html[data-theme="dark"] .grid-prefs-fixed-input {
	background-color: #000000 !important;
	border: 1px solid #30363d !important;
	color: #e6edf3 !important;
	border-radius: 4px;
	padding: 4px 8px;
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane {
	background: #21262d !important;
	border-top-color: #30363d !important;
	margin-top: 0 !important;
}

/* Rodapé do modal grid: mesma linguagem Bootstrap (verde / azul / laranja), tons compatíveis com o escuro */
html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-success {
	color: #fff !important;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35) !important;
	background-color: #238636 !important;
	background-image: linear-gradient(to bottom, #2ea043, #1a7f37) !important;
	border-color: #2ea043 !important;
	border-bottom-color: #116329 !important;
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-success:hover,
html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-success:focus {
	background-color: #2ea043 !important;
	background-image: linear-gradient(to bottom, #3fb950, #238636) !important;
	border-color: #3fb950 !important;
	color: #fff !important;
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-primary {
	color: #fff !important;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35) !important;
	background-color: #1f6feb !important;
	background-image: linear-gradient(to bottom, #388bfd, #1158c7) !important;
	border-color: #388bfd !important;
	border-bottom-color: #0d419d !important;
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-primary:hover,
html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-primary:focus {
	background-color: #388bfd !important;
	background-image: linear-gradient(to bottom, #58a6ff, #1f6feb) !important;
	border-color: #58a6ff !important;
	color: #fff !important;
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-warning {
	color: #fff !important;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35) !important;
	background-color: #9e6a03 !important;
	background-image: linear-gradient(to bottom, #bb8009, #805500) !important;
	border-color: #bb8009 !important;
	border-bottom-color: #5c3d00 !important;
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-warning:hover,
html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-warning:focus {
	background-color: #bb8009 !important;
	background-image: linear-gradient(to bottom, #d29922, #9e6a03) !important;
	border-color: #d29922 !important;
	color: #fff !important;
}

html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-success:active,
html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-primary:active,
html[data-theme="dark"] .grid-prefs-ui-dialog-wrap .ui-dialog-buttonpane .ui-button.btn-warning:active {
	background-image: none !important;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

/*
 * CRM — Lead Kanban (Areas/CRM/Views/Lead/Index.cshtml): estilos inline claros → paleta escura coerente com .box / modais.
 */
html[data-theme="dark"] .lead-kanban-wrapper hr {
	border-top-color: #30363d;
	border-bottom: none;
}

html[data-theme="dark"] .lead-kanban-secao-titulo {
	color: #e4e6eb;
}

html[data-theme="dark"] .lead-kanban-secao-titulo [class*="icomoon-icon"] {
	color: #79b8ff;
}

html[data-theme="dark"] .lead-kanban-btn-nova-prancha.btn {
	border-color: #1f6feb !important;
	background: #1f6feb !important;
	background-image: none !important;
	box-shadow: none !important;
}

html[data-theme="dark"] .lead-kanban-btn-nova-prancha.btn:hover,
html[data-theme="dark"] .lead-kanban-btn-nova-prancha.btn:focus {
	background: #388bfd !important;
	background-image: none !important;
	border-color: #388bfd !important;
	box-shadow: 0 0 0 2px rgba(56, 139, 253, 0.28) !important;
}

html[data-theme="dark"] .lead-kanban-btn-nova-prancha.btn:active {
	background: #1158c7 !important;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .lead-kpi {
	background: #1c2128 !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .lead-kpi .numero {
	color: #e4e6eb;
}

html[data-theme="dark"] .lead-kpi .descricao {
	color: #8b949e !important;
}

html[data-theme="dark"] .lead-kanban-coluna {
	background: #161b22 !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .lead-kanban-coluna-header {
	background: #21262d !important;
	border-bottom-color: #30363d !important;
}

html[data-theme="dark"] .lead-kanban-coluna-header h5 {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .lead-kanban-coluna-contador {
	background: #1f6feb !important;
	color: #f0f6fc !important;
}

html[data-theme="dark"] .lead-card {
	background: #0d1117 !important;
	border-color: #30363d !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .lead-card-titulo {
	color: #e4e6eb !important;
}

html[data-theme="dark"] .lead-card-meta,
html[data-theme="dark"] .lead-card-footer {
	color: #8b949e !important;
}

html[data-theme="dark"] .lead-card-numero {
	color: #8b949e !important;
}

html[data-theme="dark"] .lead-card-meta strong {
	color: #c9d1d9;
}

html[data-theme="dark"] .lead-card-meta-link {
	color: #79c0ff !important;
	border-bottom-color: rgba(121, 192, 255, 0.45) !important;
}

html[data-theme="dark"] .lead-card-meta-link:hover {
	color: #a5d6ff !important;
	border-bottom-color: #a5d6ff !important;
}

html[data-theme="dark"] .crm-lead-hashtag-sugestoes {
	background: #161b22 !important;
	border-color: #388bfd !important;
	border-left-color: #58a6ff !important;
	box-shadow:
		0 0 0 1px rgba(240, 246, 252, 0.06) inset,
		0 6px 18px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(56, 139, 253, 0.35) !important;
}

html[data-theme="dark"] .crm-lead-hashtag-sugestao-item {
	color: #e6edf3 !important;
	font-weight: 600 !important;
}

html[data-theme="dark"] .crm-lead-hashtag-sugestao-item:hover,
html[data-theme="dark"] .crm-lead-hashtag-sugestao-item:focus {
	background: rgba(56, 139, 253, 0.18) !important;
	color: #f0f6fc !important;
}

html[data-theme="dark"] #crm-lead-modal-hashtag-admin .crm-lead-hashtag-admin-lista {
	background: #0d1117 !important;
	border-color: #30363d !important;
}

html[data-theme="dark"] .crm-lead-hashtag-admin-row {
	border-bottom-color: #21262d !important;
}

html[data-theme="dark"] .crm-lead-hashtag-admin-nome {
	color: #e6edf3 !important;
}

html[data-theme="dark"] .crm-lead-hashtag-admin-msg {
	color: #8b949e !important;
}

html[data-theme="dark"] .lead-kanban-drop-highlight {
	border-color: #388bfd !important;
	background: rgba(56, 139, 253, 0.12) !important;
}

html[data-theme="dark"] .lead-kanban-coluna-placeholder {
	border-color: #388bfd !important;
	background: rgba(56, 139, 253, 0.12) !important;
}

html[data-theme="dark"] .lead-kanban .alert.alert-warning {
	background: #4a3f20 !important;
	border-color: #8a7220 !important;
	color: #f5ecd0 !important;
}

html[data-theme="dark"] .lead-kanban .alert.alert-warning a {
	color: #79b8ff !important;
}

html[data-theme="dark"] #crm-lead-modal-novo .modal-header h3 [class*="icomoon-icon"] {
	color: #79b8ff;
}
