/* Mantém o botão, as opções e a busca alinhados na mesma linha. */
.dataTables_filter_options .dataTables_filter {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

/* .dataTables_filter_options .dataTables_filter label {
	margin: 0;
} */

.dataTables_filter_options .dt-filter-options-menu {
	position: relative;
}

/* .dataTables_filter_options .dt-filter-options-toggle {
	height: 34px;
	padding-right: 15px;
	padding-left: 15px;
	border-radius: 18px;
   float: left;
} */

/* O seletor fica escondido em um menu abaixo do botão Filtros. */
.dataTables_filter_options .dt-filter-options-fields {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 100;
	display: none;
	align-items: center;
	gap: 8px;
	padding: 10px;
	background-color: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.dataTables_filter_options .dt-filter-options-fields.is-open {
	display: flex;
}

.dataTables_filter_options .dt-filter-column {
	width: 210px;
}

/* .dataTables_filter_options .dataTables_filter input[type="search"] {
	width: 300px;
} */

/* O período substitui a busca de texto quando uma coluna de data é selecionada. */
.dataTables_filter_options .dt-filter-date-range {
	display: none;
	align-items: center;
	gap: 8px;
}

.dataTables_filter_options .dt-filter-date-range.is-active {
	display: flex;
}

/* .dataTables_filter_options .dt-filter-date-field {
	display: flex;
	align-items: center;
	gap: 5px;
} */

/* .dataTables_filter_options .dt-filter-date-field label {
	position: static;
	display: inline-block;
	font-weight: 600;
	white-space: nowrap;
} */

.dataTables_filter_options .dt-filter-date-field label::before {
	content: none;
}

/* .dataTables_filter_options .dt-filter-date-field input {
	width: 145px;
	height: 34px;
} */

/* No celular, cada controle ocupa a largura disponível. */
@media (max-width: 767px) {
	.dataTables_filter_options .dataTables_filter,
	.dataTables_filter_options .dt-filter-date-range {
		width: 100%;
	}

	.dataTables_filter_options .dataTables_filter {
		justify-content: stretch;
	}

	/* .dataTables_filter_options .dt-filter-options-menu,
	.dataTables_filter_options .dt-filter-options-toggle,
	.dataTables_filter_options .dt-filter-column,
	.dataTables_filter_options .dt-search-label,
	.dataTables_filter_options .dataTables_filter input[type="search"] {
		width: 100% !important;
	} */

   .dataTables_filter_options .dt-filter-options-menu,
	.dataTables_filter_options .dt-filter-column,
	.dataTables_filter_options .dt-search-label,
	.dataTables_filter_options .dataTables_filter input[type="search"] {
		width: 100% !important;
      text-align: left;
	}

	.dataTables_filter_options .dt-filter-options-fields {
		right: auto;
		left: 0;
		width: 100%;
	}

	.dataTables_filter_options .dt-filter-date-range {
		flex-wrap: wrap;
	}

	.dataTables_filter_options .dt-filter-date-field {
		flex: 1;
	}

	.dataTables_filter_options .dt-filter-date-field input {
		margin-left: 0 !important;
      width: 100% !important;
	}
}