/*  SRT */
.sidebar-unit-nav {
   position: sticky;
   top: 0px; /* adjust if header height differs */
   min-width: 90px;
}

.sidebar-unit-nav .unit-item {
   padding: 0.5rem 0.5rem 0.5rem 0.5rem;
   border-radius: 0.25rem;
   cursor: pointer;
   margin-bottom: 0.25rem;
   height: 52px;
}

.unit-inactive {
   background: #e2e2e2;
}
.unit-active {
   background: #c8e0f4;
}
.unit-invalid {
   background: #ffb3b3;
}
.unit-valid {
   background: #b6e3b6;
}

.unit-icon {
   width: 60px;
   height: auto; /* maintains aspect ratio */
   display: inline-block;
   vertical-align: middle;
}
/* Make select boxes and text inputs look disabled */
.form-select:disabled,
.form-control:disabled,
.form-select[readonly],
.form-control[readonly] {
   background-color: #e9ecef !important;
   color: #6c757d !important;
   opacity: 1 !important;
   cursor: not-allowed !important;
}

#input-table-front-rear tr.spacer-row td {
   border: none;
   height: 0.75rem;
   background: transparent;
}

/* For the print version of report  */
@media print {
   @page {
      margin: 15mm;
   }
   body * {
      visibility: hidden !important;
   }
   #reportSummaryModal,
   #reportSummaryModal * {
      visibility: visible !important;
   }
   #reportSummaryModal {
      display: block !important;
      position: absolute !important;
      top: 5mm !important;
      left: 5mm !important;
      right: 5mm !important;
      margin: 0 !important;
      padding: 0 !important;
      width: calc(100vw - 10mm) !important; /* 100vw minus left+right margins */
      max-width: calc(100vw - 10mm) !important;
      min-width: 0 !important;
      background: #fff !important;
      box-shadow: none !important;
      z-index: 99999 !important;
   }
   .modal-backdrop.show {
      display: none !important;
   }
   .d-print-none {
      display: none !important;
   }
   html,
   body {
      background: #fff !important;
      margin: 0 !important;
      padding: 0 !important;
      width: 100vw !important;
   }
}

label.glossary-label {
   cursor: help;
   text-decoration: dotted underline;
}
