body{
  overflow: hidden;
}

/* width */
::-webkit-scrollbar {
  width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}
#wrapper, #content-wrapper{
  height: 100vh;
}
#content-wrapper{
  padding-bottom: 20px;
}
.hidden {
  display: none !important;
}
.product_tax_row{
  font-size: 70% !important;
  font-style: italic;
  color: #aaa;
}

.modal-dialog,
.modal-content {
    /* 80% of window height */
    max-height: 100vh;
}

.modal-body {
    /* 100% = dialog height, 120px = header + footer */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.search-dropdown{
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  width: 100%;
  margin: 0.125rem 0 0;
  font-size: 0.85rem;
  color: #858796;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #acacac;
  border-radius: 0.2rem;
}
.search-dropdown .dropdown-item span {
  right: 0;
  left: auto;
  float: right;
}

.dropdown-menu {
  z-index: 1000;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 0.85rem;
  color: #858796;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #e3e6f0;
  border-radius: 0.35rem;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(18px);
    -ms-transform: translateX(18px);
    transform: translateX(18px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 22px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  }

  .product_item_expanded, .sale_item_expanded, .customer_item_expanded, .return_row_expanded{
    border-left: 3px solid #4e73df;
  }

  .product_row_expanded, .sale_row_expanded, .customer_row_expanded, .return_row_expanded, .active_block{
    border-left: 3px solid #4e73df !important;
    background-color: #f9f9f9 !important;
  }
  .product_row_details, .sale_row_details, .customer_row_expanded, .return_row_expanded{
      box-shadow: 0 60px 40px -60px rgb(58 59 69 / 15%) !important;
  }
  .toggle_sale_details:hover, .toggle_product_details:hover, .toggle_customer_details:hover, .toggle_return_details:hover{
    background-color: #f6f6f6;
  }

  /* register card */

  .register_card{
    height: 70vh;
  }

  .register_body{
    height: 35vh;
    overflow: auto;
  }

  .added_product{
    min-height: 17vh;
  }

  /* badge */

  .badge_image{
    height: 35px;
    width: 35px;
    min-height: auto;
    min-width: auto;
    margin: 0 0.5rem;
    border-radius: 5px;
    overflow: hidden;
  }
  .badge_avatar{
    font-size: 15px;
    font-weight: 700;
    line-height: 1.333333;
    margin: 0;
    text-align: center;
    align-items: center;
    display: flex;
    flex: 1 1;
    justify-content: center;
  }
  .badge_small{
    width: 35px;
    height: 35px;
  }
  
/* Loader Css  */
.loaderDiv {
  z-index: 9999999999;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  padding: 50% 40vw;
  width: 100vw;
  height: 100vh;
}

.loader {
  /* margin-top: 100px; */
  text-align: center;
  display: flex;
  /* box-shadow: 0px 40px 60px -20px rgba(0, 0, 0, 0.2); */
}

.loader span {
  display: block;
  width: 20px;
  height: 20px;
  background: #eee;
  border-radius: 50%;
  margin: 0 5px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

.loader span:nth-child(2) {
  background: #f07e6e;
}

.loader span:nth-child(3) {
  background: #84cdfa;
}

.loader span:nth-child(4) {
  background: #5ad1cd;
}

.loader span:not(:last-child) {
  animation: animate 1.5s linear infinite;
}

.loader span:last-child {
  animation: jump 1.5s ease-in-out infinite;
}
@keyframes jump {
  0% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(10px, -10px);
  }

  20% {
    transform: translate(20px, 10px);
  }

  30% {
    transform: translate(30px, -50px);
  }

  70% {
    transform: translate(-150px, -50px);
  }

  80% {
    transform: translate(-140px, 10px);
  }

  90% {
    transform: translate(-130px, -10px);
  }

  100% {
    transform: translate(-120px, 0);
  }
}

#category_block{
  max-height: 70vh !important;
  overflow-y: scroll;
}
#category_block button {
    flex: 0 0;
    width: 100px;
    height: 100px;
    margin: 5px;
    text-align: center;
}
#category_block button p{
    margin: auto;
    line-height: 100px;
}