/* JustDocs brand overrides for the shared Qdev Techs documentation theme.
   Green on white, like the product; a darker green for text and links so they stay readable. */
:root,
[data-bs-theme="light"] {
	--bs-primary: #5f9a1f;
	--bs-primary-rgb: 95, 154, 31;
	--bs-link-color: #4e8a22;
	--bs-link-color-rgb: 78, 138, 34;
	--bs-link-hover-color: #38501e;
	--bs-link-hover-color-rgb: 56, 80, 30;
	--bs-body-color: #475569;
	--bs-body-color-rgb: 71, 85, 105;
	--bs-heading-color: #0f172a;
	--bs-border-color: #e2e8f0;
	--bs-primary-bg-subtle: #e2f0d2;
	--bs-primary-border-subtle: #b9db92;
	--bs-primary-text-emphasis: #38501e;
	--bs-focus-ring-color: rgba(139, 195, 74, 0.3);
}

body {
	color: #475569;
	background: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
.site-logo .logo-text,
.docs-article strong,
.docs-article .section-heading {
	color: #0f172a;
}

a {
	color: #4e8a22;
}

a:hover {
	color: #38501e;
}

.link-primary,
.text-primary {
	color: #4e8a22 !important;
}

.link-primary:hover,
.text-primary:hover {
	color: #38501e !important;
}

code {
	color: #38501e;
	background: rgba(139, 195, 74, 0.14);
}

.btn-primary {
	color: #fff !important;
	background: linear-gradient(135deg, #7caf42 0%, #5f9a1f 100%);
	border: 0;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
	color: #fff !important;
	background: linear-gradient(135deg, #6f9c3b 0%, #4e8a22 100%);
}

.btn-light {
	color: #4e8a22 !important;
	background: #fff;
}

.btn-light:hover,
.btn-light:focus,
.btn-light:active {
	color: #38501e !important;
	background: #f8fafc;
}

.theme-bg-dark {
	background: linear-gradient(135deg, #2f4a1f 0%, #4a7a2a 100%) !important;
}

.page-header.theme-bg-dark .page-heading {
	color: #fff;
	text-shadow: 0 1px 2px rgba(31, 50, 20, 0.2);
}

.page-header.theme-bg-dark .page-intro {
	color: rgba(255, 255, 255, 0.92);
	opacity: 1;
	text-shadow: 0 1px 2px rgba(31, 50, 20, 0.2);
}

.theme-bg-shapes-right::before,
.theme-bg-shapes-left::before {
	background: rgba(226, 240, 210, 0.08);
}

.theme-bg-shapes-right::after,
.theme-bg-shapes-left::after {
	background: rgba(226, 240, 210, 0.12);
}

.theme-bg-light,
.docs-overview .card:hover,
.theme-icon-holder,
.social-list li {
	background: rgba(139, 195, 74, 0.14) !important;
}

.theme-icon-holder,
.theme-icon-holder .svg-inline--fa,
.social-list li a {
	color: #4e8a22;
}

.docs-nav .nav-link,
.docs-article,
.docs-article h2,
.docs-article h3,
.docs-article h4,
.docs-article h5,
.docs-article h6 {
	color: #475569;
}

.docs-article .docs-section,
.docs-overview .card,
.table,
.table-bordered th,
.table-bordered td,
.table th,
.table td,
.table thead th {
	border-color: #e2e8f0;
}

.docs-article .docs-time {
	color: #64748b;
}

.docs-sidebar {
	background: #fff;
	border-right: 0;
	box-shadow: 1px 0 5px rgba(0, 0, 0, 0.1);
	scrollbar-color: rgba(15, 23, 42, 0.22) #f8fafc;
}

.docs-sidebar::-webkit-scrollbar {
	background-color: #f8fafc;
}

.docs-nav .nav-link {
	display: inline-block;
	width: auto;
	color: #475569;
	border-radius: 0;
	transition: none;
}

.docs-nav .section-title .nav-link {
	color: #475569;
	font-weight: 400;
}

.docs-nav .nav-item.section-title.parent-active > .nav-link {
	color: #4e8a22;
}

.docs-nav .nav-item.section-title.parent-active > .nav-link .theme-icon-holder {
	color: #fff;
	background: #5f9a1f !important;
}

.docs-nav .nav-item.section-title.parent-active > .nav-link .theme-icon-holder .svg-inline--fa {
	color: #fff;
}

.docs-nav .nav-link:hover {
	color: #4e8a22;
	background: transparent;
	text-decoration: none;
}

.docs-nav .nav-link .theme-icon-holder {
	color: #4e8a22;
	background: rgba(139, 195, 74, 0.14) !important;
	border: 0;
}

.docs-nav .nav-link.active {
	color: #38501e;
	font-weight: 600;
}

.site-logo .logo-icon {
	height: 36px;
	width: auto;
}

.site-logo .logo-text {
	display: none;
}

.search-btn,
.search-btn:hover {
	color: #4e8a22;
}

.badge.bg-primary {
	background: #5f9a1f !important;
}


.docs-nav .nav-link .theme-icon-holder .svg-inline--fa {
	color: #4e8a22;
}

.docs-nav .nav-item.active .nav-link,
.docs-nav .nav-link.active {
	color: #4e8a22;
}

.docs-nav .nav-item.active .nav-link::before,
.docs-nav .nav-link.active::before {
	background: #5f9a1f;
}

.docs-nav .nav-item.active .nav-link .theme-icon-holder,
.docs-nav .nav-link.active .theme-icon-holder {
	color: #fff;
	background: #5f9a1f !important;
}

.docs-nav .nav-item.active .nav-link .theme-icon-holder .svg-inline--fa,
.docs-nav .nav-link.active .theme-icon-holder .svg-inline--fa {
	color: #fff;
}

.docs-nav .nav-link::before {
	background: rgba(139, 195, 74, 0.14);
}

.form-control {
	border-color: #cbd5e1;
}

.form-control:focus {
	border-color: #7caf42;
	box-shadow: 0 0 0 0.2rem rgba(139, 195, 74, 0.22);
}

#search-results {
	display: none;
	border: 1px solid #e2e8f0;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
}

#search-results .list-group-item:hover,
#search-results .list-group-item:focus-within {
	background: rgba(139, 195, 74, 0.14);
}

#search-results .list-group-item.text-center {
	color: #64748b;
	background: #f8fafc;
}

.alert-info {
	--bs-alert-color: #2e5a14;
	--bs-alert-bg: #f1f8e9;
	--bs-alert-border-color: #c9e3a9;
}

.alert-warning {
	--bs-alert-color: #854d0e;
	--bs-alert-bg: #fffbeb;
	--bs-alert-border-color: #fde68a;
}

.alert-danger {
	--bs-alert-color: #991b1b;
	--bs-alert-bg: #fef2f2;
	--bs-alert-border-color: #fecaca;
}

.alert-success {
	--bs-alert-color: #166534;
	--bs-alert-bg: #f0fdf4;
	--bs-alert-border-color: #bbf7d0;
}

.page-header .container,
.cta-section .container {
	position: relative;
	z-index: 2;
}

.docs-code-block pre {
	border-radius: 0.65rem;
}

@media (max-width: 575.98px) {
	.site-logo .logo-icon {
		height: 30px;
	}

	.docs-article {
		padding: 1.5rem 1rem;
	}
}
