﻿/*
    Backgrounds
*/
a {
  color: #0C4B98;
}
a:hover {
  color: #EB1937;
}

body {
  height: 100%;
  display: flex;
  flex-wrap: wrap;
}

header {
  background-color: #d2d2d2;
  border-bottom: 1px solid #cccccc;
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 9999;
  height: 9vh;
  box-shadow: 0 0 5px #cccccc;
}
header .breadcrumb {
  font-size: 90%;
  margin: 0;
}
header .navbar-brand {
  height: 50px;
  display: inline-block;
  padding: 0;
}
header .navbar-brand img {
  height: 50px;
}
header .status {
  width: 25px;
  height: 25px;
  border-radius: 40px;
}
header .status.online {
  border: 2px solid #41a700;
  background-color: #41a700;
  color: #41a700;
}
header .status.require-login {
  border: 2px solid #FFA500;
  background-color: #FFA500;
  color: #FFA500;
}
header .status.offline {
  border: 2px solid #EB1937;
  background-color: #EB1937;
  color: #EB1937;
}
header .buffer-status {
  /*width: 25px;*/
  position: relative;
}
header .buffer-status img {
  height: 35px;
  transform: rotate(70deg);
}
header .buffer-status::before {
  position: absolute;
  width: 15px;
  height: 15px;
  top: -7px;
  right: -7px;
  border-radius: 40px;
}
header .buffer-status.has-items:before {
  content: "";
  border: 2px solid #FFA500;
  background-color: #FFA500;
  color: #FFA500;
}
header .buffer-status.is-active:before {
  content: "";
  border: 2px solid #41a700;
  background-color: #41a700;
  color: #41a700;
}

.shrink {
  flex-grow: 0 !important;
  width: 50px !important;
  min-width: 50px !important;
  transition: 0.5s ease all;
}
.shrink #sidebar-content {
  display: none;
}

.rotate {
  transform: rotate(180deg);
}

#sidebar {
  transition: 0.5s ease all;
  display: block;
  z-index: 100;
  padding: 1rem 0rem;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa !important;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  /*  max-width: 350px;
  min-width: 270px;
  flex-grow: 1;*/
  overflow-y: scroll;
  overflow-x: hidden;
  position: relative;
}
#sidebar button {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #d2d2d2;
  border: 0;
}
#sidebar a {
  color: #525252;
  text-decoration: none !important;
}
#sidebar a:hover {
  color: #0C4B98;
}
#sidebar ol ol {
  font-size: 90%;
}

#maincontent {
  overflow-y: scroll;
  padding: 1rem;
  flex-grow: 1;
}

main {
  display: flex;
  width: 100%;
  height: 91vh;
}

.nav-link {
  color: #0C4B98;
}

.text-green {
  color: #41a700;
}

.text-red {
  color: #EB1937;
}

.text-blue {
  color: #0C4B98;
}

.btn.btn-green {
  background-color: #41a700;
  border-color: #41a700;
  color: #fff;
}
.btn.btn-red {
  background-color: #EB1937;
  border-color: #EB1937;
  color: #fff;
}
.btn.btn-blue {
  background-color: #0C4B98;
  border-color: #0C4B98;
  color: #fff;
}

.modal {
  z-index: 20000 !important;
}

label:has(input:checked) {
  background: #cbefca !important;
}

.radio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.radio-options > * {
  align-self: center;
  width: auto;
  white-space: nowrap;
  flex: 1;
}

.table thead {
  background-color: #0C4B98;
  color: #fff;
}
.table.sticky-header > thead {
  position: sticky;
  inset-block-start: -17px;
}
.table tbody tr td {
  vertical-align: middle;
}
.table.sticky-footer tfoot {
  position: sticky;
  inset-block-end: 60px;
  background-color: #0C4B98;
  color: #fff;
  padding: 0.25rem 0.5rem;
  text-align: center;
  z-index: 3;
}
.table.sticky-footer tfoot table thead {
  font-size: 0.8rem;
  font-weight: bold;
}
.table.sticky-footer tfoot table tbody {
  font-size: 0.75rem;
}
.table.sticky-footer tfoot table tbody textarea {
  font-size: 0.8rem;
  padding: 0.25rem;
}

.test-instrument-table thead tr th:not(:first-child),
.inspection-schedule-table thead tr th:not(:first-child) {
  text-align: center;
}
.test-instrument-table tbody tr td,
.inspection-schedule-table tbody tr td {
  vertical-align: bottom;
}
.test-instrument-table tbody tr td:not(:first-child),
.inspection-schedule-table tbody tr td:not(:first-child) {
  padding: 0.25rem 0.15rem;
}
.test-instrument-table tbody tr td i,
.inspection-schedule-table tbody tr td i {
  font-size: 0.75rem;
}
.test-instrument-table tbody tr td .form-select,
.inspection-schedule-table tbody tr td .form-select {
  min-width: 45px;
  background-position: right 0.25rem center;
  padding-right: 1rem;
  padding-left: 0.25rem;
  font-size: 0.8rem;
  background-size: 12px 9px;
  text-align: center;
}

.inspection-schedule-table thead tr th:first-child {
  vertical-align: middle;
}
.inspection-schedule-table thead tr th:not(:first-child) {
  font-size: 0.75rem;
  text-align: center;
  padding: 0.25rem 0.25rem;
}
.inspection-schedule-table tbody tr td:first-child {
  /*width: 100%;*/
}

.inspection-schedule-notes {
  padding: 0.5rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
}

.toggle-table tbody > .toggle-table-row > td, .toggle-table-sub tbody > .toggle-table-row > td {
  padding: 0;
}
.toggle-table tbody > .toggle-table-row > td > .toggle-table-title, .toggle-table-sub tbody > .toggle-table-row > td > .toggle-table-title {
  position: sticky;
  display: flex;
  padding: 0.3rem 0.5rem;
  padding-right: calc(20px + 1rem);
  inset-block-start: -16px;
  background-color: #0C4B98;
  color: #fff;
  height: 40px;
  z-index: 2;
  cursor: pointer;
}
.toggle-table tbody > .toggle-table-row > td > .toggle-table-title h4, .toggle-table-sub tbody > .toggle-table-row > td > .toggle-table-title h4 {
  margin-bottom: 0;
}
.toggle-table tbody > .toggle-table-row > td > .toggle-table-title h5, .toggle-table-sub tbody > .toggle-table-row > td > .toggle-table-title h5 {
  margin-bottom: 0;
  line-height: 1.5;
}
.toggle-table tbody > .toggle-table-row > td > .toggle-table-title .table-toggle, .toggle-table-sub tbody > .toggle-table-row > td > .toggle-table-title .table-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0.5rem;
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  outline: inherit;
  width: 20px;
  height: 20px;
}
.toggle-table tbody > .toggle-table-row > td > .toggle-table-title .table-toggle:after, .toggle-table-sub tbody > .toggle-table-row > td > .toggle-table-title .table-toggle:after {
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("/images/down-arrow.png"), url("/content/images/down-arrow.png");
  width: 20px;
  height: 20px;
  display: block;
  transform: rotate(180deg);
  transition: ease-in-out transform 0.3s;
}
.toggle-table tbody > .toggle-table-row > td > .toggle-table-content, .toggle-table-sub tbody > .toggle-table-row > td > .toggle-table-content {
  padding: 0.5rem;
}
.toggle-table tbody > .toggle-table-row:not(.active) > td > .toggle-table-content, .toggle-table-sub tbody > .toggle-table-row:not(.active) > td > .toggle-table-content {
  display: none;
}
.toggle-table tbody > .toggle-table-row:not(.active) > td > .toggle-table-title .table-toggle:after, .toggle-table-sub tbody > .toggle-table-row:not(.active) > td > .toggle-table-title .table-toggle:after {
  transform: rotate(0);
}

.toggle-table-sub tbody > .toggle-table-row > td > .toggle-table-title {
  /*inset-block-start: 24px; //123px; //40px;*/
  background-color: grey;
  z-index: 1;
}

/*#HazEquipLocations {
    .haz-equipment-title {
        inset-block-start: 123px; //40px;
        background-color: grey;
        z-index: 3;
    }
}*/
.input-less-than {
  position: relative;
}
.input-less-than input {
  padding-left: 20px;
}
.input-less-than:after {
  position: absolute;
  content: ">";
  left: 6px;
  top: 50%;
  text-align: center;
  display: inline;
  transform: translateY(-50%);
  line-height: 1.5;
  font-size: 16px;
  padding-bottom: 4px;
}

#formSubmissionControls {
  position: fixed;
  bottom: 1rem;
  right: 2.75rem;
  z-index: 5;
}
#formSubmissionControls .btn {
  font-size: 1.5rem;
}
#formSubmissionControls .markcomplete {
  padding-left: 2rem;
}
#formSubmissionControls .markcomplete input {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.75rem;
}

#tblUsedProducts label.error {
  color: #EB1937;
  visibility: hidden;
  width: 30px;
  white-space: nowrap;
  overflow: hidden;
}
#tblUsedProducts label.error:before {
  content: "*";
  color: #EB1937;
  visibility: visible;
  margin-left: 10px;
}

.complete-section {
  color: #41a700 !important;
}

#cameraViewContainer {
  width: 100%;
  aspect-ratio: 1280/720;
  background: #000;
  position: relative;
}
#cameraViewContainer video, #cameraViewContainer #photoCanvas {
  width: 100%;
  height: 100%;
  object-fit: fill;
}
#cameraViewContainer .camera-icon {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid white;
  border-radius: 50%;
  aspect-ratio: 1;
  width: 50px;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.5);
}
#cameraViewContainer .camera-icon i {
  color: white;
  position: absolute;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 25px;
  line-height: 1;
}
#cameraViewContainer .preview-controls {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}
#cameraViewContainer .preview-controls .use-photo-btn, #cameraViewContainer .preview-controls .new-photo-btn {
  /*background-color: $green;
  border-radius: 5px;
  padding: 5px 10px;
  color: #fff;*/
  font-weight: bold;
}
#cameraViewContainer.preview-mode .camera-icon, #cameraViewContainer.preview-mode video {
  display: none;
}
#cameraViewContainer.preview-mode:after {
  content: "Preview:";
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #0C4B98;
  border-radius: 5px;
  padding: 5px 10px;
  color: #fff;
  font-weight: bold;
}
#cameraViewContainer.photo-mode #photoCanvas, #cameraViewContainer.photo-mode .preview-controls {
  display: none;
}

#notifications {
  cursor: pointer;
  position: fixed;
  right: 0px;
  z-index: 9999;
  bottom: 0px;
  margin-bottom: 20px;
  margin-right: 35px;
  max-width: 300px;
}
#notifications .alert a {
  text-decoration: none;
}

.table-noborder th {
  border: none !important;
}
.table-noborder td {
  border: none !important;
}
