html {
  overflow: hidden;
}

html,
body {
  padding: 0;
  margin: 0;
  height: 100vh;
  /* fallback for Js load */
  height: var(--doc-height);
  font-family: 'Open Sans', sans-serif;
}

.spinner-overlay {
  z-index: 2000;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  transition: 1s;
}

.click-through {
  pointer-events: none;
}

.striped> :nth-child(even of :not([style*="display: none;"])) {
  /* Based on bootstrap table-striped styling */
  --bs-table-color-type: var(--bs-table-color);
  --bs-table-bg-type: #0000000d;
  box-shadow: inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)));
}

td.td-shrink {
  width: 0.1%;
  white-space: nowrap;
}

/* z-index */
.z-1001 {
  z-index: 1001;
}

.z-1021 {
  /* Above sticky-top */
  z-index: 1021;
}

.z-1030 {
  /*
    Exception case: above dropdown that is above sticky-top
  */
  z-index: 1030;
}

.z-3001 {
  /* Above shadow-scroll__shadow */
  z-index: 3001;
}

/* Alpine.js */
[x-cloak] {
  display: none !important;
}

/* bootstrap collapse */
.btn .fa-chevron-up {
  transition: transform 0.3s ease;
}

.btn.collapsed .fa-chevron-up {
  transform: rotate(180deg);
}

/* width utils */
.w-15px {
  width: 15px;
  min-width: 15px;
  max-width: 15px;
}

.w-min-25px {
  min-width: 25px;
}

/* scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  background-color: white;
  border-radius: var(--bs-border-radius);
}

::-webkit-scrollbar-thumb {
  background-color: var(--bs-secondary);
  width: 10px;
  border: 3px solid transparent;
  border-radius: 12px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--bs-secondary-bg-subtle);
}

/* bootstrap buttons */
.btn-xs {
  --bs-btn-padding-y: 0.25rem;
  --bs-btn-padding-x: 0.25rem;
  --bs-btn-font-size: 0.75rem;
}

/* bs forms */
.form-label {
  width: 100%;
}

/* Autocomplete */
.input-group {
  .autocomplete-menu {
    top: 100%;
    right: 0;
  }
}

/* React Bootstrap Typeahead */
.spinner-border {
  /* Above input:focus (z-index: 5) */
  z-index: 10;
}


/*
  Scroll Shadows
  loosely based on https://codepen.io/shadeed/pen/jWBjVd
*/
.shadow-scroll__shadow-wrapper {
  display: none;
  position: relative;
  border-width: 0;
  border-style: var(--bs-border-style);
  border-color: var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  height: 100%;
}


.shadow-scroll__scroll-box {
  overflow: auto;
  height: 100%;
}

.shadow-scroll__scroll-box-padded {
  padding: 0.5rem 1rem;
}

.shadow-scroll__shadow {
  pointer-events: none;
  position: absolute;
  left: 0;
  z-index: 3000;
  height: 10px;
  width: 100%;
  opacity: .5;
}

.shadow-scroll__top-shadow {
  top: 0;
  background: -webkit-linear-gradient(270deg, rgba(0, 0, 0, 0.20), transparent);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.20), transparent);
  border-top-left-radius: var(--bs-border-radius) !important;
  border-top-right-radius: var(--bs-border-radius) !important;
}

.shadow-scroll__bottom-shadow {
  bottom: 0;
  background: -webkit-linear-gradient(90deg, rgba(0, 0, 0, 0.20), transparent);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.20), transparent);
  border-bottom-left-radius: var(--bs-border-radius) !important;
  border-bottom-right-radius: var(--bs-border-radius) !important;
}
