body {
	font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.manual-title,
.accordion-header {
	font-family: "IBM Plex Sans", sans-serif;
}

.btn.btn-primary {
	background-color: #338136 !important;
	border-color: #338136 !important;
}

.btn.btn-primary:hover {
	background-color: #2a6b2b !important;
	border-color: #2a6b2b !important;
	color: white !important;
}

#body {
	display: flex;
	height: 100vh;
	margin: 0;
}

figcaption {
	font-style: italic;
	font-weight: bold;
	margin-bottom: 50px;
}

#sidebar {
	width: 325px;
	height: 100vh;
	min-width: 325px;
	max-width: 325px;
	display: flex;
	flex-direction: column;
	position: relative;
	border-right: 1px solid #ddd;
	overflow-y: auto;
	background-color: #f8f9fa;
	flex-shrink: 0;
	transition: width 0.3s;
	font-family: "IBM Plex Sans", sans-serif;
	font-style: normal;
}

#sidebarAccordion {
	flex-grow: 1;
	overflow-y: auto;
	padding-bottom: 14px;
}

	#sidebarAccordion .accordion-collapse > .accordion-body {
		padding: 0 !important;
	}

	#sidebarAccordion .accordion-body > ul {
		list-style-type: none;
		padding-top: 8px;
		padding-left: 0px;
	}

#sidebar .accordion-collapse > .accordion-body > ul > li > a {
	padding-left: 30px;
}

#sidebar .accordion-body ul .accordion-body {
	padding-top: 0px;
	padding-bottom: 0px;
	background: white;
	font-weight: normal;
}

#sidebar .accordion-body ul ul {
	padding-top: 0px;
}

#sidebar .accordion-body a {
	text-decoration: none;
	color: rgb(33, 37, 41) !important;
	text-wrap: wrap;
	padding: 8px 24px;
}

	#sidebar .accordion-body a:hover {
		text-decoration: underline;
		background-color: #EEEEEE;
	}

.hidden-sidebar {
	width: 0 !important;
	min-width: 0 !important;
	max-width: 0 !important;
	overflow: hidden;
}

#exportButtonContainer {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 10px;
	box-sizing: border-box;
	background-color: #f8f9fa;
}

#exportButton {
	width: 100%;
}

#main-panel {
	flex-grow: 1;
	padding: 20px;
	overflow-y: auto;
	transition: margin-left 0.3s;
}

.toggle-button {
	position: fixed;
	top: 15px;
	left: 0;
	border-radius: 0 !important;
	border-top-right-radius: 0.25rem !important;
	border-bottom-right-radius: 0.25rem !important;
}

.toggle-button-open {
	left: 325px;
}

.accordion-button {
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	width: 100%;
	/* Prevent button from stretching the sidebar */
}

#product-title:hover {
	cursor: pointer;
}

.content-link,
.content-sublink,
.content-subsublink {
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	display: block;
	max-width: 100%;
	/* Prevent stretching */
}

.active-link {
	background-color: #dcdcdc;
	font-weight: bold;
}

.accordion-item {
	max-width: 100%;
}

.tooltip-custom {
	position: absolute;
	z-index: 1000;
	background-color: #333;
	color: #fff;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 14px;
	opacity: 0;
	transition: opacity 0.3s;
}

	.tooltip-custom.show {
		opacity: 1;
	}

.manual-title-container {
	display: flex;
	/* Use Flexbox to align items horizontally */
	align-items: center;
	/* Vertically align items in the center */
	height: auto;
	/* The container will take the height of the image */
}

.manual-logo {
	width: 100px;
	/* Adjust the size of the image */
	height: auto;
	/* Maintain aspect ratio of the image */
	margin-right: 20px;
	/* Space between the image and the text */
}

.manual-title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.title-content {
	display: flex;
	justify-content: center;
	/* Center children horizontally */
	align-items: center;
	/* Center children vertically */
	flex-direction: column;
	/* Stack h1 and img vertically */
	text-align: center;
	/* Center text */
}

.content-section {
	padding: 50px;
}

	.content-section > p,
	.content-subsection > p {
		text-align: justify;
	}

p.bold-text {
	font-weight: bold;
}

/* Glossary */

#general-information--glossary table.manual-table tbody tr td:first-child {
    font-weight: bold;
}

#general-information--glossary table.manual-table tbody tr td:first-child p {
	white-space: nowrap;
}

#general-information--glossary table.manual-table tbody tr td {
	width: auto;
}

#general-information--glossary table.manual-table tbody tr td p {
	text-align: left !important;
	margin-bottom: 0;
}

.glossary-term {
	font-weight: bold;
	/* Make glossary terms bold */
	text-align: left;
	min-width: 150px;
	/* Ensures the term column isn't too narrow */
}

.glossary-def {
	text-align: justify;
	/* Justify the text in the definition column */
	min-width: 350px;
	/* Ensures the term column isn't too narrow */
	width: 750px;
}

/* Optional: Set a minimum width for the term column */
.glossary-item {
	min-width: 150px;
	/* Ensures the term column isn't too narrow */
}

table.manual-table {
	width: 100%;
	/* Makes table fill available width */
	border-collapse: collapse;
	/* Ensures no extra space between cells */
	border-radius: 4px;
}

.monitor-table th {
	border: 1px solid black;
	text-align: center;
	font-weight: bold;
}

table.manual-table td {
	padding: 10px;
	/* Adds padding to make the text less cramped */
	border: 1px solid #A9A9A9;
	/* Adds borders around the cells */
}

table.manual-table tr:nth-child(even) {
	background-color: #E9E9E9;
	/* Light grey background for even rows */
}

.monitor-table td {
	border: 1px solid black;
	padding: 0 5;
	text-align: left;
}

td.term {
	min-width: 200;
}

td.spec {
	min-width: 360;
}

table.manual-table td p {
	margin-bottom: 0 !important;
}

figure {
	text-align: center;
}

#product-description img {
	margin: 0 auto;
}

.txt-rotate > .wrap {
	border-right: 0.08em solid #666
}

.scrollax-performance,
.scrollax-performance *,
.scrollax-performance *:before,
.scrollax-performance *:after {
	pointer-events: none !important;
	-webkit-animation-play-state: paused !important;
	animation-play-state: paused !important;
}

/* Centered Images */

#product-specifications--product-description img,
#product-specifications--external-view img,
#product-specifications--internal-view img,
#product-specifications--accessories img,
#installation--monitor-mounting img,
#installation--wiring--ram-3 img {
	display: block;
	margin: 20px auto;
}

/* Product Specifications */
#product-specifications--amc-1bz-monitor table.manual-table td[colspan="2"], 
#product-specifications--amc-atx-transmitter-specifications table.manual-table td[colspan="2"],
#product-specifications--product-order-numbers table.manual-table tr:first-child td,
#product-specifications--accessories table.manual-table tr:first-child td {
	font-weight: bold;
}

#product-specifications--sensor-module-specifications table.manual-table tbody tr td:first-child {
    font-weight: bold;
    width: 1%;
    white-space: nowrap;
}

#product-specifications--sensor-module-specifications table.manual-table tbody tr td {
    text-align: left;
}

#product-specifications--sensor-module-specifications table.manual-table tbody tr td p {
    text-align: left !important;
}

#product-specifications--amc-1bz-monitor table.manual-table td[colspan="2"] p {
	text-align: center;
}

#product-specifications--amc-1bz-monitor table.manual-table td p {
	text-align: left;
}

/* External/Internal View */
#product-specifications--external-view table.manual-table tbody tr td:first-child p,
#product-specifications--internal-view table.manual-table tbody tr td:first-child p {
	white-space: nowrap;
}

#product-specifications--external-view table.manual-table tbody tr td,
#product-specifications--internal-view table.manual-table tbody tr td {
	width: auto !important;
}

#product-specifications--external-view table.manual-table tbody tr td p,
#product-specifications--internal-view table.manual-table tbody tr td p {
	text-align: left !important;
	margin-bottom: 0;
}

#product-specifications--accessories table.manual-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

#product-specifications--accessories table.manual-table tbody,
#product-specifications--accessories table.manual-table tr {
    display: contents;
}

#product-specifications--accessories table.manual-table tbody tr td {
    width: auto;
}

#product-specifications--accessories table.manual-table tbody tr:nth-child(even) td {
    background-color: #E9E9E9;
}

#product-specifications--accessories table.manual-table tbody tr:nth-child(odd) td {
    background-color: transparent;
}


#installation--wiring figure > img[src] {
    max-width: 100% !important;
}

#operation--status-leds table.manual-table tr:first-child td,
#user-interface table.manual-table tr:first-child td,
#maintenance table.manual-table tr:first-child td,
#troubleshooting table.manual-table tr:first-child td,
#sensor-module-defaults table.manual-table tr:first-child td,
#revision-history table.manual-table tr:first-child td {
	font-weight: bold;
}

/* generic nested collapse behavior */
.nested-collapse { display: none; }
.nested-collapse.show { display: block; }

/* caret */
.sidebar-caret {
  margin-left: .5rem;
  display: inline-block;
  transition: transform .2s ease;
  font-size: .85em;
  opacity: .75;
}
.sidebar-caret.rotated { transform: rotate(90deg); }

/* optional: give indented feel for deeper levels */
ul[data-level] { padding-left: 0.75rem; border-left: 0; }
ul[data-level="2"] { padding-left: 1rem; }
ul[data-level="3"] { padding-left: 1.25rem; }
