.doc-container {
	margin-top: 0 !important;
	padding-top: 70px;
	background:
		linear-gradient(180deg, #fff 0%, #fff4ef 30%, #f5f8ff 100%),
		radial-gradient(circle at 12% 14%, rgba(253, 106, 94, .16) 0%, rgba(253, 106, 94, 0) 30%),
		radial-gradient(circle at 88% 20%, rgba(98, 88, 247, .12) 0%, rgba(98, 88, 247, 0) 28%);
}

.search-filter-form {
	position: relative;
	z-index: 20;
}

.doc-sidebar {
	font-family: 'Roboto', sans-serif;
}

.doc-sidebar-search {
	position: relative;
	z-index: 20;
	margin: 0 45px 30px 0;
	padding-bottom: 30px;
	border-bottom: 1px solid rgba(0, 0, 0, .09);
}

.doc-sidebar-search form {
	height: 64px;
	margin: 0;
}

.doc-sidebar-search input {
	padding: 0 15px 0 50px;
	font-family: 'Roboto', sans-serif;
}

.doc-sidebar-search #document-search-input {
	padding-right: 15px;
}

.doc-sidebar-search button {
	top: 0;
	right: auto;
	bottom: 0;
	left: 0;
	width: 50px;
	background: transparent;
}

.doc-sidebar-search button img {
	width: 23px;
	height: 19px;
	filter: brightness(0);
}

.doc-sidebar-search select {
	display: none;
}

#doc-sidebar-nav,
.document-search-results {
	scrollbar-color: #6f55ff #f7faff;
	scrollbar-width: thin;
}

#doc-sidebar-nav::-webkit-scrollbar,
.document-search-results::-webkit-scrollbar {
	width: 5px;
}

#doc-sidebar-nav::-webkit-scrollbar-track,
.document-search-results::-webkit-scrollbar-track {
	background: #f7faff;
}

#doc-sidebar-nav::-webkit-scrollbar-thumb,
.document-search-results::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: #6f55ff;
}

#document-navigation,
#document-navigation h4,
#document-navigation a {
	font-family: 'Roboto', sans-serif;
}

.document-search-results {
	position: absolute;
	top: 58px;
	left: 0;
	width: calc(100% + 50px);
	max-height: 380px;
	overflow-y: auto;
	border: 1px solid #e1e5eb;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 22px 45px rgba(7, 21, 36, .14);
	text-align: left;
}

.document-search-results[hidden] {
	display: none;
}

.document-search-result {
	display: block;
	padding: 15px 20px;
	border-bottom: 1px solid #edf0f3;
	color: #2a2a2a;
}

.document-search-result:last-child {
	border-bottom: 0;
}

.document-search-result:hover,
.document-search-result:focus {
	background: #f7f8fa;
	color: #2a2a2a;
	text-decoration: none;
}

.document-search-result strong {
	display: block;
	font-size: 16px;
	line-height: 1.4em;
}

.document-search-result span {
	display: block;
	margin-top: 3px;
	color: #717986;
	font-size: 12px;
}

.document-search-result p {
	margin: 6px 0 0;
	color: #4f5661;
	font-size: 13px;
	line-height: 1.55em;
}

.document-search-empty {
	padding: 18px 20px;
	color: #656d78;
	font-size: 14px;
}

/* Preserve spacing between navigation items while keeping wrapped titles compact. */
.doc-sidebar .list-item li .sub-menu a {
	padding: 7px 15px;
	line-height: 22px;
}

.doc-sidebar .list-item li .sub-menu a.active {
	padding-top: 5px;
	padding-bottom: 5px;
	line-height: 22px;
}

@media (min-width: 768px) {
	.doc-container > .container > .row {
		align-items: stretch;
	}

	.doc-sidebar {
		position: relative;
		top: auto;
		height: auto;
		min-height: calc(100vh - 90px);
	}

	#doc-sidebar-nav {
		position: static;
		max-height: none;
		overflow-y: visible;
		padding-bottom: 20px;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.doc-sidebar {
		min-height: calc(100vh - 80px);
	}
}

@media (max-width: 767px) {
	.doc-container {
		padding-top: 0;
	}

	.doc-sidebar-search {
		margin: 0 15px 20px;
		padding-bottom: 20px;
	}

	.document-search-results {
		position: relative;
		top: auto;
		left: auto;
		width: 100%;
		margin: 0 auto;
	}
}
