/* ===== Live table filter =====
   Shared by the pages whose table scrolls inside its own panel
   (laboratories, institutes, products). The markup is generated in each view:
   an input carrying data-table-filter="<wrapper class>" plus an optional
   data-table-filter-label="<noun>" for the result counter. */
.table-filter {
	margin-bottom: 14px;
}

.table-filter-field {
	position: relative;
	display: flex;
	align-items: center;
	max-width: 460px;
}

.table-filter-icon {
	position: absolute;
	left: 13px;
	font-size: 13px;
	color: var(--c-blue-9);
	pointer-events: none;
}

.table-filter-input {
	width: 100%;
	height: 40px;
	padding: 0 38px 0 36px;
	border: 1px solid var(--c-blue-14);
	border-radius: 10px;
	background: var(--c-bg);
	color: var(--c-blue-1);
	font-size: 14px;
	line-height: 38px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.table-filter-input::-webkit-search-cancel-button {
	display: none;
}

.table-filter-input::placeholder {
	color: var(--c-blue-9);
}

.table-filter-input:focus {
	outline: none;
	border-color: var(--primary-orange, var(--c-primary-300));
	box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.18);
}

.table-filter-clear {
	position: absolute;
	right: 6px;
	display: none;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--c-tint-2);
	color: var(--c-text-body-muted-alt);
	font-size: 12px;
	cursor: pointer;
}

.table-filter-clear:hover {
	background: var(--c-blue-15);
	color: var(--c-blue-1);
}

.table-filter-clear.is-visible {
	display: inline-flex;
}

.table-filter-clear:focus-visible {
	outline: 2px solid var(--primary-orange, var(--c-primary-300));
	outline-offset: 1px;
}

.table-filter-status {
	margin: 8px 0 0;
	color: var(--c-text-body-muted-alt);
	font-size: 13px;
}

.table-filter-empty {
	margin: 14px 0 0;
	padding: 18px;
	border: 1px dashed var(--c-blue-14);
	border-radius: 10px;
	background: var(--c-surface-raised);
	color: var(--c-text-body-muted-alt);
	font-size: 14px;
	text-align: center;
}

.table-filter-empty[hidden] {
	display: none;
}

/* Visually hidden, still announced by screen readers. */
.table-filter-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 767.98px) {
	.table-filter-field {
		max-width: 100%;
	}

	.table-filter-input {
		height: 44px;
		line-height: 44px;
	}
}
