:root {
    --wi-ch-blue: #17469e;
    --oview-select-value-color: var(--bs-primary);
    --inv-select-value-color: var(--bs-warning);
    --table-norm-cell-width: 120px;
    --table-wide-cell-width: 200px;
    --table-norm-cell-width-minus-10: calc(var(--table-norm-cell-width) - 10px);
    --size-font: 14px;
}

.text-wi-ch-blue {
    color: var(--wi-ch-blue);
}

.bg-wi-ch-blue {
    background-color: var(--wi-ch-blue);
}

.login-button {
    color: var(--wi-ch-blue);
    border-color: var(--wi-ch-blue);
}

.login-button:active {
    color: var(--wi-ch-blue) !important;
    border-color: var(--wi-ch-blue) !important;
}

.login-button:hover {
  background-color: var(--wi-ch-blue);
  color: white;
}

.block-visible {
    display: inline
}

.block-invisible {
    display: none
}

.sticky-all {
    position: -webkit-sticky; /* Safari */
    position: sticky;
}

.sticky-1 {  /* tabs row */
    top: 0;
    z-index: 5;
}

.sticky-2 {  /* first controls row */
    top: 38px;
    z-index: 5;
}

.tx-rx-tabs .nav-link {
    height: 28px;
    line-height: 14px;
}

.table-common {
    width: auto;
}

.table-common td { /* a lot of data to fit into a table, keeping things tight */
    height: 1.0625rem; /* exactly one more pixel for the nominal 16px case */
    line-height: 1.0625rem;
    width: var(--table-norm-cell-width);
}

.table-common td, .table-common th {
    text-align: center;
    vertical-align: middle;
    padding: 0 3px 0 3px;
}

.table-force-min-width td, .table-force-min-width th {
    min-width: var(--table-norm-cell-width);
}

.table-alerts td:last-child {
    width: var(--table-wide-cell-width);
}

.table-errors td:nth-child(2) {
    width: var(--table-wide-cell-width);
}

/* html.p of table cells */
.p-table-element {
    margin: 0.25rem 0.25rem 0.25rem 0.25rem; /* m-1 in DBS classnames */
    display: flex;
    justify-content: center;
}

/* Allowing a tighter fit for small screens  */
@media (max-width: 500px) {
    .p-table-element {
    margin: 0rem 0rem 0rem 0rem;
  }
}

/* time slider styling */
.rc-slider-track {
    background-color: var(--bs-primary);
}

.rc-slider-dot-active {
    border-color: var(--bs-primary);
}

.rc-slider-handle {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.rc-slider-handle:hover {
    border-color: var(--bs-info);
}

.rc-slider-handle-active:active {
    border-color: var(--bs-primary);
}

.rc-slider-mark-text {
    font-size: 1rem;
    font-weight: 700;
}

.link-html-common {
    color: black;
    text-decoration: none; /* No underline usually */
}

.link-hover-html:hover {
    text-decoration: underline; /* underline on mouse hover */
    cursor: pointer;
}

.link-nohover-html:hover {
    cursor: text;
}

.hover-cursor:hover {
    cursor: pointer;
}

@media (max-width: 550px) {
  #unit-graph-quads {
    width: 95vw;
    height: 95vw;
  }
}

@media (min-width: 551px) {
  #unit-graph-quads {
    width: 500px;
    height: 500px;
  }
}

.last-checkbox input[type="checkbox"] {
    transform: scale(1.75);
}

.small-checkbox input[type="checkbox"] {
    transform: scale(1.25);
}

.last-checkbox input[type="checkbox"]:focus, .small-checkbox input[type="checkbox"]:focus {
    outline: 0;
    box-shadow: 0 0 0 0.1rem rgba(50, 93, 136, 0.25);
}

.last-checkbox.orange-outline input[type="checkbox"] {
   box-shadow: 0 0 0 3px #f47c3c;
}

.mb-1_5 {
    margin-bottom: 0.375rem
}

/* Overview tab, coloring of the selected locations in the dropdown */
.overview-select .Select-value {
    color: var(--oview-select-value-color);
    background-color: white;
    border: 1px solid var(--oview-select-value-color);
}

.overview-select .Select-value-icon {
    border-right: 1px solid var(--oview-select-value-color);
}

/* Inventory types tab, coloring of the selected locations in the dropdown */
.inv-select .Select-value {
    color: var(--inv-select-value-color);
    background-color: white;
    border: 1px solid var(--inv-select-value-color);
}

.inv-select .Select-value-icon {
    border-right: 1px solid var(--inv-select-value-color);
}

.custom-cyto {
    height: 300px;  /* Default height for non-mobile devices */
}

@media (max-width: 767px) {
    .custom-cyto {
        height: 150px;  /* Height for mobile devices */
    }
}

/* radio and button groups */
.network-heatmap-radio-group .form-check {
    display: inline-flex;
}

.radio-group .form-check {
    padding-left: 0;
}

.radio-group .btn-group > .form-check:not(:last-child) > .btn {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.radio-group .btn-group > .form-check:not(:first-child) > .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}

.radio-group .btn-group > .form-check > .btn {
    width: 80px;
    padding-left: 0;
    padding-right: 0;
}

.radio-group .btn-group > .form-check > .btn.narrow-width {
    width: 25px;
    padding-left: 0;
    padding-right: 0;
}

.double-top-border-row {
    border-top: 3px double !important;
}

/* Shadow input elements */

.shadow-input {
    font-size: var(--size-font);
    color: black;
}

.shadow-input .Select-placeholder {
    text-align: center;
    color: grey;
    font-size: var(--size-font);
}

.shadow-input::placeholder {
    text-align: center;
    color: grey;
    font-size: var(--size-font);
}

.shadow-input .Select-value {
    font-weight: bold;
}

.shadow-input .VirtualizedSelectOption {
    font-weight: normal;
}

.w-table-input {
    width: var(--table-norm-cell-width-minus-10);
}

/* inventory modal input elements */

.inventory-input .Select-value {
    font-weight: bold;
}

.inventory-input {
 background-color: #f47c3c;  /* sandstone warning */
 border: 2px solid #f47c3c;
 border-radius: 6px;
}

/* makes dropdown open up */
.dropUp .Select-menu-outer {
    top: 0;
     -webkit-transform: translateY(3px) translateY(-100%);
     transform: translateY(3px) translateY(-100%);
     border-top-right-radius: 4px;
     border-top-left-radius: 4px;
     border-bottom-right-radius: 0px;
     border-bottom-left-radius: 0px;
     border: 1px solid #ccc;
     border-bottom: none;
}

/* Override the dash 'Loading...' screen with a spinner */
._dash-loading {
  margin: auto;
  color: transparent;
  width: 100%;
  height: 100%;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

._dash-loading::after {
  content: "";
  background: url("/assets/loading_logo.png");
  background-size: 100px 100px;
  width: 100px;
  height: 100px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Removes up/down arrows from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}
