/* /tiktokblacklists/ TablePress controls.
   Search input: theme .form-control, including dark resting fill.
   Length <select> stays in the DOM for DataTables but is visually hidden.
   The visible control is the theme .dropdown / .dropdown-menu card. */
.dt-container:has(.tablepress-id-6) .dt-search input.dt-input {
	display: inline-block;
	width: auto;
	max-width: 100%;
	min-width: 12.5rem;
	height: calc(1.5em + .75rem + 2px);
	padding: .375rem .75rem;
	margin: 0;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--main-color);
	background-color: var(--input-bg-color);
	background-image: none;
	border: 1px solid transparent;
	border-radius: 6px;
	box-shadow: 0 0 0 0.625rem transparent;
	transition: background-color .2s, border-color .3s, box-shadow .25s;
	vertical-align: middle;
	box-sizing: border-box;
}

.dt-container:has(.tablepress-id-6) .dt-search input.dt-input:focus {
	color: var(--main-color);
	background-color: var(--input-bg-color);
	border-color: var(--muted-bg-color);
	box-shadow: 0 0 0 0.1rem var(--focus-shadow-color);
	outline: 0;
}

html.io-black-mode .dt-container:has(.tablepress-id-6) .dt-search input.dt-input:not(:focus) {
	background-color: var(--muted-bg-color);
	color: var(--main-color);
	color-scheme: dark;
}

html.io-black-mode .dt-container:has(.tablepress-id-6) .dt-length,
html.io-black-mode .dt-container:has(.tablepress-id-6) .dt-search,
html.io-black-mode .dt-container:has(.tablepress-id-6) .dt-length label,
html.io-black-mode .dt-container:has(.tablepress-id-6) .dt-search label {
	color: var(--main-color);
}

/* Do not remove the select. Clip it so the native list cannot open. */
.dt-container:has(.tablepress-id-6) .dt-length select.dt-input {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
	pointer-events: none !important;
	appearance: none !important;
}

.dt-container:has(.tablepress-id-6) .dt-length label {
	position: relative;
}

.dt-container:has(.tablepress-id-6) .mq-length-dropdown {
	display: inline-block;
	vertical-align: middle;
	position: relative;
}

.dt-container:has(.tablepress-id-6) .mq-length-dropdown > .btn {
	font-size: 14px;
	line-height: 1.5;
}

.dt-container:has(.tablepress-id-6) .mq-length-dropdown > .dropdown-menu {
	z-index: 1050;
}

.dt-container:has(.tablepress-id-6) .dt-layout-row,
.dt-container:has(.tablepress-id-6) .dt-length {
	overflow: visible;
}
