#tbl_rules th:nth-child(1),
#tbl_rules td:nth-child(1) {
	width: 5rem;
}

#tbl_rules th:nth-child(2),
#tbl_rules td:nth-child(2) {
	width: calc(100% - 24rem);
}

#tbl_rules th:nth-child(3),
#tbl_rules td:nth-child(3) {
	width: 12rem;
}

#tbl_rules th:nth-child(4),
#tbl_rules td:nth-child(4) {
	text-align: center;
	width: 7rem;
}

.rules-delete {
	padding: 0.25rem 0.6rem;
}

#rules-page-controls {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

#rules-page {
	border: 1px solid #c7d2fe;
	border-radius: 0.25rem;
	padding: 0.2rem 0.35rem;
}

#rules-search {
	border: 1px solid #c7d2fe;
	border-radius: 0.25rem;
	flex: 0 1 24rem;
	font-size: 1.1rem;
	margin: 0 auto;
	min-width: 18rem;
	padding: 0.25rem 0.5rem;
}

#rules-search:focus {
	border-color: #0d6efd;
	box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
	outline: none;
}

@media only screen and (max-width: 960px) {

	#mobile-rules-search {
		border: 1px solid #c7d2fe;
		border-radius: 0.25rem;
		box-sizing: border-box;
		flex: 1;
		font-size: 1rem;
		min-width: 0;
		padding: 0.45rem 0.55rem;
	}

	#mobile-rules-search:focus {
		border-color: #0d6efd;
		box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
		outline: none;
	}

	#mobile-btn-add-rules {
		align-items: center;
		background-color: #0d6efd;
		box-sizing: border-box;
		color: white;
		display: inline-flex;
		flex: 0 0 auto;
		font-size: 1.35rem;
		font-weight: 700;
		height: 2.15rem;
		justify-content: center;
		line-height: 1;
		padding: 0;
		width: 2.15rem;
	}
}
