html,
body {
  position: fixed;
  display: grid;
  grid-template-rows: 10fr 99fr 4fr;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100vw;
  height: 100vh;
  -webkit-overflow-scrolling: touch;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

canvas {
  display: none;
}

video {
  width: 109%;
  margin: -20px;
}

img {
  opacity: 1;
  transition: opacity 0.3s;
}

img[data-src] {
  opacity: 0;
}

button {
  background-color: #2196f3;
  display: block;
  width: 90%;
  margin: auto;
  color: white;
  padding: 10px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  border-radius: 10px;
}

table {
  border-collapse: collapse;
  width: 80%;
  margin: auto;
}

th,
td {
  text-align: left;
  padding: 8px;
  width: 50%;
  color: black;
}

th {
  background-color: #24292e;
  color: white;
}

form {
  margin-left: 20px;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #f9f9f9;
  color: #676767;
  font-size: 0.7em;
  padding: 5px;
}

footer span {
  cursor: pointer;
  margin-right: 10px;
}

a {
  color: #1e7ad3;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 2px;
  border: 1px solid #dfdfdf;
  border-radius: 2px;
  margin-right: 10px;
  padding: 7px;
  padding-right: 2rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  overflow-y: auto;
}

li {
  padding: 10px;
  border-bottom: 1px solid #c7c7c7;
  color: #4c4c4c;
  cursor: pointer;
  background-color: white;
  display: grid;
  grid-template-columns: 1fr 8fr 1fr;
}

::-webkit-scrollbar {
  width: 10px;
  background: #ececec;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #c7c7c7;
  border-radius: 5px;
}

.wordBreak {
  word-break: break-all;
}

#darkenBackground {
  background-color: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: none;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.mobile_item_overlay {
  display: none;
}

.search-darken-background {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: none;
}

.nav-top {
  padding: 10px;
  background-color: #24292e;
  display: flex;
}

.nav-top img {
  height: 2em;
}

.category-selection {
  display: flex;
}

.elements {
  display: flex;
  margin: auto;
  overflow-x: scroll;
  margin-bottom: -1px;
}

.element {
  display: inline-table;
  padding-left: 5px;
  padding-right: 5px;
  padding-top: 4px;
  cursor: pointer;
  margin-left: 5px;
}

.element::after {
  display: block;
  content: "";
  border-bottom: solid 3px #2196f3;
  transform: scaleX(0);
  transition: transform 250ms ease-in-out;
  margin-top: 5px;
}

.Object_element {
  display: inline-table;
  padding-right: 5px;
  padding-top: 4px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.Object_element::after {
  display: block;
  content: "";
  border-bottom: solid 3px #2196f3;
  transform: scaleX(0);
  transition: transform 250ms ease-in-out;
  margin-top: 5px;
}

.Object_element p {
  margin: 0;
  text-align: center;
  width: 100%;
  font-size: 0.8em;
  color: #676767;
  font-weight: 500;
  margin-left: 5px;
  margin-bottom: 1px;
  display: inline;
}

.Object_elementSelected p {
  font-weight: bold !important;
}

.Object_elementSelected::after {
  display: block;
  content: "";
  border-bottom: solid 3px #2196f3;
  transform: scaleX(1);
  transition: transform 250ms ease-in-out;
  margin-top: 5px;
}

.elementSelected p {
  font-weight: bold !important;
}

.elementSelected::after {
  display: block;
  content: "";
  border-bottom: solid 3px #2196f3;
  transform: scaleX(1);
  transition: transform 250ms ease-in-out;
  margin-top: 5px;
}

.element img {
  margin-top: 9px;
  height: 0.6em;
  display: inline-block;
  position: static;
}

.element p {
  margin: 0;
  text-align: center;
  width: 100%;
  font-size: 0.8em;
  color: #676767;
  font-weight: 500;
  margin-left: 5px;
  margin-bottom: 1px;
  display: inline;
}

.main-container {
  display: grid;
  grid-template-columns: 2fr 8fr;
  height: 100%;
  border-top: 1px solid #c7c7c7;
}

.object-selector {
  border-right: 1px solid #c7c7c7;
  position: relative;
}

li:hover {
  filter: brightness(90%);
}

.object-selector i {
  font-size: 0.8em;
}

li > .fa-angle-right {
  float: right;
  font-size: 1em !important;
}

.objectSelected {
  background-color: #2196f3 !important;
  color: white !important;
}

#object_name {
  width: 80%;
  margin: auto;
  margin-top: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}

.barcode-print {
  margin-left: 10px;
  cursor: pointer;
  color: black;
}

.barcode-download {
  margin-left: 10px;
  cursor: pointer;
  color: black;
}

.barcode_container {
  color: black;
  position: relative;
}

.barcode_controls {
  position: absolute;
  right: 20px;
  top: 40px;
}

.barcode_controls i {
  margin-right: 5px;
}

.barcode_controls span {
  cursor: pointer;
}

.map_container {
  color: black;
}

.object-selector-search {
  position: relative;
}

.object-selector-search i {
  position: absolute;
  right: 15px;
  font-size: 0.9em;
  top: 6px;
  color: #676767;
}

.object-selector-search input {
  display: block;
  font-size: 0.8em;
  padding: 5px;
  width: 90%;
  border: none;
  outline: none;
  border-bottom: 2px solid black;
  margin: auto;
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
}

.search {
  position: relative;
  padding: 1px;
  padding-top: -10px;
  border-top-right-radius: 5px;
  border-top-left-radius: 5px;
  z-index: 6;
}

.search input {
  border-radius: 5px;
  border: none;
  padding: 4px;
  width: 20vw;
  background-color: #ffffff29;
}

.search input:focus {
  outline: none;
  color: #676767;
  background-color: white;
  border: 1px solid black;
  width: 24vw;
  font-size: 1em;
}

.search input:focus ~ .results {
  display: block;
}

.search input:focus ~ .search-darken-background {
  display: block;
}

.search > .search input:focus {
  background-color: white !important;
}

.search ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search .results {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 24vw;
  z-index: 10;
  padding: 0;
  margin: 0;
  margin-top: 2em;
  border: 1px solid white;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  border-top: none;
  background-color: white;
}

#manual_info {
  position: relative;
  background-color: #f9f9f9;
  margin-top: -20px;
}

#manual_info h2 {
  margin-left: 15px;
  padding-top: 20px;
}

#manual_info select {
  position: absolute;
  right: 0px;
  top: 20px;
  background-color: white;
}

#manual_info iframe {
  width: 100%;
  height: 80vh;
  background-color: white;
  border: none;
  border-top: 1px solid #c7c7c7;
}

.modal {
  position: absolute;
  top: 10%;
  left: 25%;
  right: 25%;
  z-index: 10;
  background-color: white;
  border-top: 5px solid black;
  display: none;
}

.modal-top h5 {
  margin: 0;
  margin-top: 10px;
  margin-left: 10px;
  margin-bottom: 10px;
}

.modal-top i {
  margin-right: 10px;
}

.modalClose {
  cursor: pointer;
  float: right;
}

.modal-container {
  max-height: 70vh;
  height: 100%;
  padding: 20px;
  padding-top: 5px;
  overflow: auto;
}

.autocomplete {
  /*the container must be positioned relative:*/
  position: relative;
  display: inline-block;
}
#search {
  border: 1px solid transparent;
  background-color: #ffffff1c;
  border-radius: 5px;
  margin-top: 3px;
  padding: 4px;
  font-size: 14px;
  width: 290px;
  color: white;
}

#search:focus {
  outline: none;
  background-color: white;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border: 1px solid #d4d4d4;
  color: black;
  border-bottom: none;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}
.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9e9;
}
.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important;
  color: #ffffff;
}

.scannSettings {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 100%;
  background-color: white;
}

.scannInput {
  padding: 16px;
  width: 83%;
  margin: 10px;
  background-color: white;
  border: 1px solid #eeeeee;
}

#deviceSelection {
  margin: 10px;
}

#mobileCatSelector,
#mobileCatImg {
  display: none;
}

.scanButton {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.mobile-navigation-controls {
  display: none;
}

.mobile-nav {
  display: none;
}

.tabView {
  display: block;
  width: 80%;
  margin: auto;
}

.tabs {
  background-color: #24292e;
  cursor: pointer;
}

.tab-selected {
  background-color: #2196f3;
}

.tab {
  color: white;
  padding: 10px;
  display: inline-block;
  box-sizing: border-box;
  overflow: auto;
  width: 100%;
  height: 85%;
}

.tab_content {
  height: 10em;
  overflow-y: scroll;
}

#info_container h2 {
  display: block;
  width: 90%;
  margin: auto;
  color: black;
  margin-top: 15px;
}

#info_container a {
  color: #c7c7c7;
  margin-left: 10px;
  font-size: 0.9em;
}

#info_container tr:nth-child(even) {
  background-color: #f1f1f1;
}

#doc_container {
  color: #6c6c6c;
}

#doc_container div {
  border: 1px solid #c7c7c7;
  padding: 20px;
  width: 90%;
  margin: auto;
  margin-top: -1px;
}

#doc_container table {
  border: 1px solid #c7c7c7;
  padding: 20px;
  width: 90%;
  margin: auto;
  margin-top: -1px;
}

#doc_container tr:nth-child(even) {
  background-color: #f1f1f1;
}

.search_manuals input {
  border: none;
  border-bottom: 2px solid #c7c7c7;
}

.search_manuals a {
  text-decoration: none;
  background-color: #0096fa;
  padding: 5px;
  border: none;
  color: white;
  border-radius: 5px;
}

#videoSource {
  height: 33px;
  margin: 10px;
}
