:root {
  --theme-color:rgb(28, 42, 57);
  --theme-color-light:rgb(41, 62, 83);
  --theme-color-very-light: rgb(80, 104, 129);
  --theme-color-dark: rgb(21, 31, 43);
  --theme-highlight-color: rgb(255, 200, 28);
  --theme-white-color: rgb(250, 250, 250);
  --theme-red-color: rgb(170, 1, 20);

  /*light mode
  --background-color: var(--theme-white-color);
  --background-color-light: var(--theme-white-color);
  --background-color-dark: var(--theme-white-color);
  --highlight-color: var(--theme-highlight-color);
  --font-color: var(--theme-color);
  --font-alert-color: var(--theme-red-color);
  /*end light mode*/
  /*dark mode*/
  --background-color: var(--theme-color);
  --background-color-light: var(--theme-color-light);
  --background-color-dark: var(--theme-color-dark);
  --highlight-color: var(--theme-highlight-color);
  --font-color: var(--theme-white-color);
  --font-alert-color: var(--theme-highlight-color);
  /*end dark mode*/

  --search-top: 152px;   /* below header / progress bar */
  --search-h1: 40vh;     /* inventory list */
  --search-h2: 10vh;     /* search buttons */
  --search-h3: 50vh;     /* popup */
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}
body{
  display:flex;
  flex-direction: column;
  z-index: 2;
  background: var(--background-color-dark);
  color: var(--font-color);
  min-height: 100vh;
  min-height: 100dvh;

  padding-bottom: 4rem !important;
}
.transition-animation{
  overflow: hidden !important;
}
.small-haul-logo{
  float: left;
  height: 100%;
  width: auto;
  padding: 5px;
}
header{
  z-index: 5;
  display:flex;
  flex: 0 0 auto;
  width: 100vw;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: var(--theme-color);
  color: var(--theme-white-color);
}
.header-div {
  display: flex;
  flex-direction: row;
  width: 100vw;
  text-align: center;
  align-items: center;
  justify-content: center;
}
@media screen and (max-width: 630px) {
  .header-div {
      height: 52px;
      font-size: 0.5rem;
      padding: 0px;
  }
}
.header-text-div{
  display:flex;
  flex-direction: column;
}
.branch{
  position: absolute;
  top:0;
  right:0;
  padding: 1rem;
  color: var(--theme-highlight-color);
}
.header-subtext{
  font-size: x-small;
  opacity: 0.5;
}
.progress-bar-div{
  width:100vw;
  background-color: var(--theme-color-light);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.progress-bar{
  display: flex;
  padding: 10px;
  list-style:none;
  overflow:hidden;
  justify-content: center;
}
.progress-bar-step{
  float: none;
  position: relative;
  padding: 1.0625rem 1.25rem;
  width: 17%;
  height: 3.125rem;
  background-color: var(--theme-white-color);
  border-radius: .375rem;
  color: var(--theme-color-light);
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0.1rem 0 0 0 white;
  transition: width ease-in 500ms;
  user-select: none;
}
.progress-bar-step.is-complete{
  background-color: var(--theme-highlight-color);
  cursor: pointer;
}
.progress-bar-step::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1rem;
  transform: translateY(-50%) scaleX(.4) scaleY(.8) rotate(45deg);
  width: 2.75rem;
  height: 2.75rem;
  background-color: inherit;
  box-shadow: .5rem -.5rem 0 0 white;
  z-index: 3 !important;
}
.progress-bar-step:last-child:after {
  display: none;
}
@media screen and (max-width: 630px) {
  .progress-bar-step {
      font-size: 0.7rem;
      text-align: center;
      height:1rem;
      padding: 0.1rem;
  }
  .progress-bar-step::after{
      max-width:0%;
  }
  .progress-bar-step.is-complete{
      content:'';
  }
}
.outer-render-div{
  display:flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  align-items: center;
  justify-content: center;
}
.outer-render-div.fade-in{
  opacity: 1;
animation-name: fadeInOpacity;
animation-iteration-count: 1;
animation-timing-function: ease-in;
animation-duration: 1s;
}
@keyframes fadeInOpacity {
0% {
  opacity: 0;
}
100% {
  opacity: 1;
}
}
.slide-in-from-bottom {
animation: slideInFromBottom 0.5s ease forwards;
}

@keyframes slideInFromBottom {
from {
  transform: translateY(100%);
  opacity: 0;
}
to {
  transform: translateY(0);
  opacity: 1;
}
}
.slide-out-to-bottom {
animation: slideOutToBottom 0.5s ease forwards;
}

@keyframes slideOutToBottom {
from {
  transform: translateY(0);
  opacity: 1;
}
to {
  transform: translateY(100%);
  opacity: 0;
}
}
.slide-out-to-top {
animation: slideOutToTop 0.5s ease forwards;
}

@keyframes slideOutToTop {
from {
  transform: translateY(0);
  opacity: 1;
}
to {
  transform: translateY(-100%);
  opacity: 0;
}
}
.slide-in-from-right {
animation: slideInFromRight 0.5s ease forwards;
}
@keyframes slideInFromRight {
from {
  transform: translateX(100%);
  opacity: 0;
}
to {
  transform: translateX(0);
  opacity: 1;
}
}
.slide-out-to-left {
animation: slideOutToLeft 0.5s ease forwards;
}

@keyframes slideOutToLeft {
from {
  transform: translateX(0);
  opacity: 1;
}
to {
  transform: translateX(-100%);
  opacity: 0;
}
}
.slide-out-to-right {
animation: slideOutToRight 0.5s ease forwards;
}
@keyframes slideOutToRight {
from {
  transform: translateX(0);
  opacity: 1;
}
to {
  transform: translateX(100%);
  opacity: 0;
}
}
.slide-in-from-left {
animation: slideInFromLeft 0.5s ease forwards;
}

@keyframes slideInFromLeft {
from {
  transform: translateX(-100%);
  opacity: 0;
}
to {
  transform: translateX(0);
  opacity: 1;
}
}
.inner-render-div{
  display:inherit;
  flex-direction: inherit;
  align-items: inherit;
  justify-content: inherit;
  height: inherit;
  width: inherit;
}
.upper-render-div{
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.render-div{
  display:flex;
  flex-direction: column;
  min-width: 90vw;
  align-items: center;
  justify-content: flex-start;
  padding: 10px;
  box-sizing:border-box;
  overflow-y: auto;
  min-height: 0;
}
.render-div-error-messages {
text-align: center;
}
.error-message,
.render-div-error-messages p {
color: var(--font-alert-color) !important;
}
.lower-render-div{
  box-shadow: 0 -10px 30px rgba(0,0,0,0.35);
  height: 4rem;
  display:flex;
  position: fixed;
  left:0;
  right:0;
  bottom: 0;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 15px;
  gap: 0.2rem;
}
.lower-render-div button{
  font-family: Roboto, sans-serif; font-weight: 700;
  font-size: 20px;
  height: 3rem;
  border-radius: 0.5rem;
  color:black;
  
}
.lower-render-div button.is-back,
.lower-render-div button.is-next {
  background-color: var(--theme-highlight-color);
  position: relative;
  --noop: none;
}
.lower-render-div button.is-back{
  width:15vw;
  max-width: 6rem;
}
.lower-render-div button.is-back img{
  width: 1rem;
  height: auto;
}
.lower-render-div button.is-next{
  width:60vw;
  max-width:17rem;
}
.render-title{
  display:flex;
  font-size: 1.5rem;
  text-align: center;
}
.render-subtitle{
  display:flex;
  opacity: .6;
  font-size: 1rem;
  text-align: center;
}
.render-div button{
  color:rgb(0, 0, 0);
  min-width: 20rem;
  padding: 0.5rem;
  margin:1rem;
}
.render-div small{
color:black;
}
.render-div input{
  color: var(--font-color);
  background-color: var(--background-color-light);
  padding:0.5rem;
  border-radius: 1rem;
  width: 20rem;
}
.render-div p{
margin: 0.5rem;
text-align: center;
}
.inventory-item-notes,
.render-div textarea{
  color: var(--font-color);
  background-color: var(--background-color-light);
  padding:0.5rem;
  border-radius: 1rem;
  min-width: 20rem;
}
.inventory-edit-token select,
.render-div select{
  color: var(--font-color);
  background-color: var(--background-color-light);
  height: 2rem;
  border-radius: 1rem;
  text-align: center;
}
.render-div img{
  width: 20rem;
  height:auto;
}
.flatpickr-input {
  text-align: center;
  display:none;
}
.flatpickr-months,
.flatpickr-monthDropdown-months,
.flatpickr-monthDropdown-month,
.flatpickr-current-month input.cur-year {
color: #000000 !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:active{
  color: black !important;
  background-color: var(--theme-highlight-color) !important;
  border: 1px solid var(--theme-color-light);
}
.flatpickr-calendar::before,
.flatpickr-calendar::after{
  display: none !important;
}
.highlighted-day{
  color:rgb(255, 255, 255) !important;
  background-color: var(--theme-color-dark) !important;
}
button {
  border-radius: 1rem;
  cursor: pointer;
}
.outer-render-div.is-dynamic-split{
  flex: 1 0 auto !important;
  height: auto;
  min-height: 0;
}
.render-map-div{
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
#map{
  height: inherit;
  width: inherit;
  padding:0;
  margin:0;
}
.inner-render-div.is-draggable{
  display: flex;
  flex: 0 1 auto;
  height: fit-content;
  flex-direction: column;
  align-items: center;
  border-radius: 1rem 1rem 0 0;
  bottom:0;
  left: 0;
  right: 0;
  border-top: var(--theme-color-light);
  background-color: var(--theme-color);
  width:100%;
  min-height: 20vh;
  min-height: 20dvh;
  max-height: 50vh;
  max-height: 50dvh;
  margin-top: -0.35rem; /* so other things show under border-radius*/
  z-index: 2;
}
.draggable-handle-div{
  display:flex;
  justify-content: center;
  align-items: center;
  border-radius: inherit;
  background-color: inherit;
  height:10px;
  width: 100%;
}
.draggable-handle{
  height:5px;
  width: 40px;
  margin: 1rem;
  border-radius: 1rem;
  background-color: var(--theme-color-very-light);
}
.location{
  justify-content: center;
  align-items: center;
  position: relative;
  width: 20rem;
  height: 2rem;
  background-color: var(--theme-color-light) !important;
}
.location:first-child{
  border-radius: 0.5rem 0.5rem 0 0;
}
#additionalStopLabel,
.location.addStop{
  cursor:pointer;
}
.location.addStop:last-child{
  border-radius: 0 0 0.5rem 0.5rem;
}
.location::before {
  content: '';
  position: absolute;
  top: 0.6rem;
  left: -0.65rem;
  transform: scaleX(.1) scaleY(.3);
  width: 2.75rem;
  height: 2.75rem;
  background-color: rgba(200, 200, 200);
  z-index: 3 !important;
}
.location.close:last-child::before,
.location.addStop:last-child::before{
  display:none;
}
.location::after {
  content: '';
  position: absolute;
  width: 90%;
  height: 0.1rem;
  bottom: 0;
  right:0;
  background-color: var(--theme-color);
  z-index: 3 !important;
}
.location.addStop:last-child::after{
  display:none;
}
.location img{
  height: 1rem;
  margin:0.2rem;
  width: auto;
}
.location input{
  border: 0;
  border-radius: 0;
}
.location label{
  margin: 0;
  padding: 0.5rem;
  min-height: 2rem;
  min-width: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  text-align: left;
  font-size: 0.8rem;
}
.location button{
  margin: 0;
  padding: 0.5rem;
  border: 0;
  min-height: 2rem;
  min-width: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
  text-align: left;
  background-color: var(--theme-color-light);
  color: var(--theme-color-dark);
}
/*
.location button:first-child{
  border-radius: 0.5rem 0.5rem 0 0;
}
.location button:last-child{
  border-radius: 0 0 0.5rem 0.5rem;
}*/
.location.close{
  display:flex;
  justify-content:center;
  align-items: center;
  width:2rem;
  border-radius: 0.5rem;
  color: var(--theme-white-color);
}
.force-wide{
  min-width: 15rem !important;
}
.popup-render-div{
  display:none;
}
.popup-render-div.is-open{
  position: fixed;
  z-index: 10;
  display:flex;
  flex-direction: column;
  align-items: center;
  overflow: auto;
  padding:1rem;
  gap:1rem;
  border-radius: 1rem;
  background-color: var(--theme-color);
  border: 0.5rem solid var(--theme-color-dark);

  min-width: 33dvw;
  max-width: 100dvw;
  min-height: 33dvh;
  max-height: 90dvh;
}
.popup-render-div.is-open.backdrop{
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.5);
}
.popup-render-div.is-open input{
  color:rgb(255, 255, 255);
  background-color: var(--theme-color-light);
  padding:0.1rem;
  border-radius: 1rem;
  width: 19rem;
}
.popup-render-div.is-open button{
  color:rgb(255, 255, 255);
  background-color: var(--theme-color-light);
  padding:0.5rem;
  border-radius: 1rem;
  width: 5rem;
}

.popup-render-div.locationPopup{
  top: 10%;
  height: 425px !important;
  overflow: hidden;
}
.popup-render-div.editItemPopup{
  height:425px !important;
  overflow: auto;
}
.top-right-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem !important;
  height: auto;
  margin: 0.3rem !important;
}
.top-right-save-and-close {
  position: absolute;
  top: 0;
  right: 0;
  width: auto !important;
  height: auto;
  margin: 0.3rem !important;
}
.auto-width{
  width: auto !important;
}
.checkbox{
  display:flex;
  position: relative;
  width:15rem;
  padding:0.5rem;
  margin: 0.2rem;
  border-radius: 1rem;
  background: var(--background-color-light);
  border-style: solid;
  border-width: 0.2rem;
  border-color: var(--background-color-dark);

  cursor: pointer;
  
}
.checkbox label{
  width: fit-content;
  cursor: inherit;
}
.checkbox small{
  color:inherit;
}
.checkbox input{
  width: 100%;
  border-radius: 0;
  border: none;
  outline: none;
  padding: 0;
  font-size: 1rem;
  
  width: fit-content;
}
.checkbox img{
  display:none;
}
.checkbox small{
  display: none !important;
}
.checkbox small.show{
  display: unset !important;
}
.checkbox.is-selected{
  border-color: var(--theme-highlight-color);
}
.checkbox.is-selected img{
  display:flex;
  position:absolute;
  right: 0;
  width: 1rem;
  height: 1rem;
  right: 0.4rem;
}
.checkbox.is-selected small{
  display:flex !important;
}
.note{
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
}
.note-no-pad{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 !important;
  margin: 0 !important;
}
.note-no-pad::before{
  content:" ";
  margin-left: 0.3rem;
}
.note-no-pad p{
  margin: 0 !important;
}

.note img{
  height: 1rem !important;
  width: auto !important;
  padding: 0.1rem !important;
}
.underline{
  text-decoration: underline;
}
.underline::before{
  content:" ";
  margin-left: 0.3rem;
}
.note small{
  color: var(--font-color);
  white-space:unset;
  overflow-wrap:normal;
}

.number{
  width: 8rem !important;
}
.counter-div{
  gap:0.2rem;
}
.counter{
  gap: 0;
  margin: 0;
  padding: 0;
}
.counter small{
  color: var(--font-color);
  align-self: center;
}
.counter input{
  min-width: 0;
  border-radius: 0;
  border: none;
  height:2rem;
  width: 2rem !important;
  background-color: var(--theme-color-very-light);
}
.counter button{
  margin: 0;
  min-width: 0;
  height:2rem;
  width: 2rem !important;
  border: none;
  background-color: var(--background-color-light);
  color: var(--font-alert-color);
}
.counter button:first-child{
  border-radius: 1rem 0 0 1rem;
}
.counter button:last-child{
  border-radius: 0 1rem 1rem 0;
}
.inventory-tutorial{
  align-items: center;
  justify-content: center;
  width: 1rem;
}
.inventory-tutorial button{
  min-width: 2rem;
}
.inventory-select{
  gap: 0.1rem;
}
.inventory-selected,
.inventory {
  display: flex;
  flex-wrap:wrap;
  min-width: 20rem;
  min-height: 2rem;
  background-color: var(--background-color-light);
  border-radius: 1rem;
  border-color: var(--theme-color-dark);
  padding: 0.5rem;
  gap: 0.1rem;
}
@media screen and (min-width: 630px) {
  .inventory-select,
  .inventory-selected,
  .inventory{
      max-width: 768px;
  }
}
/*start search */
@media screen and (max-width: 630px) {
  .inventory.search{
    --search-top: 87px;
  }
  .inventory-search-buttons.search{
    --search-top: 87px;
    top: calc(var(--search-top) + var(--search-h1)) !important;
  }
  .popup-render-div.search{
    --search-top: 87px;
    top: calc(var(--search-top) + var(--search-h1) + var(--search-h2)) !important;
    bottom: 0;
  }
}
@media screen and (min-width: 630px) {
  .inventory-search-buttons.search{
    justify-content: center !important;
    bottom: 0;
  }
}

.inventory-search-by-room-div{
  display: none;
}

.inventory-search-by-room-div.show{
  display: unset;
}

.inventory.search{
  position: fixed;
  top: var(--search-top);
  height: var(--search-h1);
  z-index: 11;
  overflow-y: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  padding: 12px;
}
.inventory-search-buttons.search{
  position: fixed;
  top: calc(var(--search-top) + var(--search-h1));
  left: 0;
  right: 0;
  height: var(--search-h2);
  z-index: 12;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: left;
  padding: 0.5rem;
  overflow-x: auto;
  background-color: var(--background-color);
}
.popup-render-div.search{
  position: fixed;
  top: calc(var(--search-top) + var(--search-h1) + var(--search-h2));
  left: 0;
  right: 0;
  /*height: var(--search-h3);*/
  bottom: 0;
  z-index: 13;
  overflow: auto;
}

/*end search*/
.inventory input {
  display: flex;
  min-width: 14rem;
  margin: 0.1rem;
  border-radius: 0;
  border: none;
  outline: none;
  padding: 0;
  font-size: 1rem;
  
  height:2rem;
  width: auto;
}
.inventory-select button,
.inventory-selected button,
.inventory button {
  min-width: 0;
  margin: 0.1rem;
  padding: 0;
  min-height: 2rem;
}
.inventory-select img,
.inventory-selected img,
.inventory img{
  height:2rem;
  width:auto;
  justify-content: center;
  align-items: center;
}
.inventory-item-name-keyword-box ul,
.inventory-keyword-box ul{
  position: absolute;
  background-color: var(--theme-white-color);
  color: var(--theme-color-dark);
  padding: 0.2rem;
  max-height: 10rem;
  overflow: scroll;
}
.inventory-item-name-keyword-box ul li,
.inventory-keyword-box ul li{
  list-style: none;
  cursor: pointer;
}
.search-by-room-div {
  background-color: var(--theme-white-color);
  color: var(--theme-color-dark);
  overflow-y: auto;
}
.search-by-room-div ul{
  background-color: inherit;
  color: inherit;
  padding: 0.2rem;
  border: 0 !important;
}
.search-by-room-div ul li::before{
  content: "• ";
}
.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #f5f5f5;
  cursor: pointer;
}

.search-text {
  font-weight: 500;
}

.search-plus {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: none;
  background: orange;
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
}

.search-by-room-div ul li{
  color: var(--font-color);
  background: var(--background-color-light);
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--theme-color-dark);
  padding: 0.1rem;
}
.inventory-edit-token {
  display:flex;
  height: 0.1rem;
}
.inventory-item-dimension,
.inventory-item-name{
  width: 10rem !important;
  height: 2rem;
}
.inventory-item-quantity{
  width: 3rem !important;
  height: 2rem;
}
.inventory-edit-token {
  align-items: center;
}
.inventory-token{
  background-color: var(--theme-white-color);
  color: var(--theme-color-dark);
  border-radius: 1rem;
  overflow: hidden;
  cursor:pointer;
}
.inventory-token-remove{
  background-color: inherit;
  border: none;
  outline: none;
  min-width: 1rem !important;
  height: 95%;
}
.inventory-search-buttons{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.inventory-search-buttons button{
  min-width: fit-content;
  margin:0rem;
  background-color: var(--theme-color-light);
  color: white;
}

.inventory-select{
  display: flex;
  flex-wrap:wrap;
  min-width: 20rem;
  min-height: 2rem;
  background-color: var(--background-color-light);
  border-color: var(--theme-color-dark);
  padding: 0.5rem;
}
.inventory-select-quantity input{
  border-radius: 0 !important;
  width: 5rem !important;
  height: 3rem;
  font-size: 3rem;
}
.inventory-select-quantity p{
  padding-left: 0.4rem;
  font-size: 3rem;
}
.window-style-buttons div{
  align-items: center;
  justify-content: center;
}
.window-style-buttons img{
  width:40%;
  max-width: 10rem;
  height:auto;
}
.window-style-buttons img:hover{
  border: 0.1rem solid var(--highlight-color);
}
.left-align{
  align-items:flex-start;
}
#notes{
  height:5rem;
}
.code-entry{
  width:20rem;
  align-items: center;
  justify-content: center;
}
.code-entry input{
  width:6rem;
  border-radius: 0;
  background-color: var(--background-color-light);
  color: var(--font-color);

}
.code-entry button{
  min-width: fit-content;
  border-radius: 0;
  margin: 0;
  background-color: var(--background-color-light);
  color: var(--font-color);
}
.code-entry .is-valid{
  background-color: green;
}
.code-entry .is-invalid{
  background-color: var(--theme-red-color);
}
.submit {
  background-color: var(--theme-red-color) !important;
  color: rgb(250, 250, 250) !important;
}