body {
    background: var(--white);
    background: linear-gradient(140deg, rgba(255,255,255,1) 0%, rgba(242,242,242,1) 100%);
    font-size: 12px;
}

input, button {
    outline: none !important;
    box-shadow: none !important;
}

input[type=number]::-webkit-outer-spin-button, 
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
}

:focus {
    outline: none !important;
}

.vertical-center {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}
.letter-spacing-2 {
    letter-spacing: 2px;
}

.currency-tab::before {
    content: 'RM ';
    font-size: 11px;
    font-weight: bold;
}

.btn-submit {
    flex: 1 1 auto;
    transition: 0.5s;
    border: 0;
    font-size: 17px;
    background-size: 150% auto;
    background-repeat: no-repeat;
    background-position: center;
    color: white !important;
    background-image: linear-gradient(to right, #ec6f66 0%, #f3a183 100%);
}

.btn-submit:hover {
    background-position: right center; /* change the direction of the change here */
}

.btn-special {
    position: relative;
    height: 50px;
    font-size: 15px;
}

.btn-category {
    height: 100px;
    width: 130px;
    margin-right: 15px;
    display: inline-grid;
    border: 2px solid;
    border-color: #fff;
    color: var(--gray);
    transition: all 0.15s ease-in-out;
    align-items: top;
}

.btn-category:hover,
.btn-category.active {
    border-color: #3b8c7a;
    color: #3b8c7a;
    font-weight:bold;
}

.btn-category:hover i,
.btn-category.active i {
    color: #3b8c7a;
}

.btn-option i[class*="la"],
.btn-category i[class*="la"] {
    font-size: 28px;
    align-self: end;
    padding-bottom: .25rem;
}

.btn-option {
  height: 110px;
  width: 100%;
  display: inline-grid;
  word-break: break-word;
  align-items: top;
  font-size: 13px;
  position: relative; 
  /* background: rgb(233, 236, 239, 0.5); */
  background: white;
  color: var(--gray);
  border: 1px dashed rgb(233, 236, 239, 1);
  top: 0;
  transition: all 0.25s ease-in-out;
}

.btn-option:hover {
  box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 10%) !important;
  top: -5px;
  border: 1px solid white;
  font-weight: bold;
}

.btn-option > div:first-of-type {
    display: -webkit-box;
    max-width: 100%;
    max-height: 40px;
    margin: 0 auto;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-option.btn-outline-success {
    border-color: #eee;
}

.btn-option.btn-outline-success:hover {
    border-color: #38c172
}

.btn-outline-info:hover {
    color: #fff;
}

#payment-view.disabled::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.5)
}

#payment-view-spinner {
    display: none;
    position: absolute;
    top: calc(50% - 1rem);
    left: calc(50% - 1rem);
}

#payment-view-spinner.show {
    display: initial
}

#item-list {
    height: calc(100% - 50px - 1.5rem);
    position: relative;
    background: var(--white);
}

#item-table th {
    padding: .7rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border: 0;
}

#item-table td {
    vertical-align: middle;
    height: auto;
    padding: 0.5rem 1rem;
    line-height: 1.2;
}

#item-table td small {
    line-height: 1.4;
}

#item-table tr td:first-of-type{
    padding-right: 0;
}

#total-table td {
    height: 38px;
    padding: .3rem 1.2rem;
}

#total-table td:nth-child(odd) {
    width: 20%;
}

#total-table td:nth-child(even) {
    text-align: right;
    width: 30%;
}

.nav {
    font-size: 18px;
}


.btn-pill {
    position: relative;
    margin: 0;
    padding: 5px 12px;
    height: 60px;
    width: 150px;
    outline: none;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    background-color: #ffffff;
    border: 1px solid rgba(22, 76, 167, 0.6);
    border-radius: 10px;
    color: #1d89ff;
    font-weight: 400;
    font-size: 20px;
    font-family: inherit;
    z-index: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
  }
  .btn-pill span {
    color: #164ca7;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.7px;
  }
  .btn-pill:hover {
    animation: rotate 0.7s ease-in-out both;
  }
  .btn-pill:hover span {
    animation: storm 0.7s ease-in-out both;
    animation-delay: 0.06s;
  }
  
  @keyframes rotate {
    0% {
      transform: rotate(0deg) translate3d(0, 0, 0);
    }
    25% {
      transform: rotate(3deg) translate3d(0, 0, 0);
    }
    50% {
      transform: rotate(-3deg) translate3d(0, 0, 0);
    }
    75% {
      transform: rotate(1deg) translate3d(0, 0, 0);
    }
    100% {
      transform: rotate(0deg) translate3d(0, 0, 0);
    }
  }
  @keyframes storm {
    0% {
      transform: translate3d(0, 0, 0) translateZ(0);
    }
    25% {
      transform: translate3d(4px, 0, 0) translateZ(0);
    }
    50% {
      transform: translate3d(-3px, 0, 0) translateZ(0);
    }
    75% {
      transform: translate3d(2px, 0, 0) translateZ(0);
    }
    100% {
      transform: translate3d(0, 0, 0) translateZ(0);
    }
  }
  .btn-pill:before, .btn-pill:after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #1d89ff;
    content: '';
    opacity: 0;
    transition: transform 0.15s cubic-bezier(0.02, 0.01, 0.47, 1), opacity 0.15s cubic-bezier(0.02, 0.01, 0.47, 1);
    z-index: -1;
    transform: translate(100%, -25%) translate3d(0, 0, 0);
  }
  .btn-pill:hover:before, .btn-pill:hover:after {
    opacity: 0.15;
    transition: transform 0.2s cubic-bezier(0.02, 0.01, 0.47, 1), opacity 0.2s cubic-bezier(0.02, 0.01, 0.47, 1);
  }
  .btn-pill:hover:before {
    transform: translate3d(50%, 0, 0) scale(0.9);
  }
  .btn-pill:hover:after {
    transform: translate(50%, 0) scale(1.1);
  }