/* -----------------------------------------------------------------------------
   Group Documents Controls
   ----------------------------------------------------------------------------- */

.bond-group-documents {
	& .bond-documents-screen__controls {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		height: 81.5px;
		padding: 20px 0;
		box-sizing: border-box;
	}

	& .bond-documents-screen__search {
		flex: 0 0 285px;
		width: 285px;
		margin: 0;

		& .search-form_reset {
			display: none;
		}

		& .bp-dir-search-form {
			position: relative;
			display: flex;
			align-items: center;
			width: 100%;
			height: 41.5px;
			min-height: 41.5px;
			margin: 0;
			padding: 0;
			border: 1px solid #989482;
			border-radius: 4px;
			background: #fff;
			box-shadow: none;
			overflow: hidden;

			&::before {
				display: none;
			}

			&:hover,
			&:focus-within {
				border-color: #545246;
			}
		}

		& input[type="search"] {
			appearance: none;
			-webkit-appearance: none;
			width: 100%;
			height: 100%;
			min-height: 0;
			margin: 0;
			padding: 8px 44px 8px 16px;
			border: 0;
			border-radius: 0;
			background: transparent;
			box-shadow: none;
			color: var(--bond-documents-text);
			font-size: 17px;
			line-height: 25.5px;

			&::placeholder {
				color: var(--bond-documents-muted);
				opacity: 1;
			}
		}

		& .nouveau-search-submit {
			appearance: none;
			-webkit-appearance: none;
			position: absolute;
			top: 50%;
			right: 8px;
			display: inline-flex;
			align-items: center;
			justify-content: center;
			width: 24px;
			height: 24px;
			min-width: 24px;
			min-height: 24px;
			margin: 0;
			padding: 0;
			border: 0;
			border-radius: 0;
			background: transparent;
			box-shadow: none;
			color: #545246;
			transform: translateY(-50%);

			&:hover,
			&:focus {
				color: var(--bond-documents-text);
			}

			& #button-text {
				display: none;
			}
		}
	}

	& .bond-documents-screen__filter {
		flex: 0 0 209px;
		width: 209px;
		margin-left: auto;
	}

	& .bond-documents-screen__filter-wrap {
		position: relative;
		display: flex;
		align-items: center;
		width: 100%;
		height: 41.5px;
	}

	& .bond-documents-screen__filter-select {
		appearance: none;
		-webkit-appearance: none;
		width: 100%;
		height: 100%;
		min-height: 41.5px;
		margin: 0;
		padding: 8px 40px 8px 16px;
		border: 1px solid #989482;
		border-radius: 4px;
		background: #fff;
		box-shadow: none;
		color: var(--bond-documents-text);
		font-size: 17px;
		line-height: 25.5px;

		&:hover,
		&:focus {
			border-color: #545246;
			outline: none;
		}
	}
}

@media (max-width: 960px) {
	.bond-group-documents {
		& .bond-documents-screen__title-row,
		& .bond-documents-screen__controls {
			height: auto;
			min-height: 0;
			flex-wrap: wrap;
		}

		& .bond-documents-screen__actions {
			width: 100%;
			justify-content: flex-start;
		}

		& .bond-documents-screen__filter {
			margin-left: 0;
		}
	}
}

@media (max-width: 767px) {
	.bond-group-documents {
		& .bond-documents-screen__search,
		& .bond-documents-screen__filter {
			flex: 1 1 100%;
			width: 100%;
		}
	}
}
