/* Overlay component */
.overlay-wrapper {
  height: 100%;
  width: 100%;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  transition: 0.5s;
}

/* Loading */
.wrap-loading {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #25cd7b;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  min-width: 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

html {
  height: -webkit-fill-available;
}

/* switch button */
.switch .switch-off {
  background-color: gray;
}

.switch .switch-on {
  background-color: #28a745;
}

/* Notification */

.swal2-popup.swal2-toast .swal2-html-container {
  margin: 0em 1em !important;
}

.swal2-popup.swal2-toast {
  padding: 10px !important;
}

.swal2-icon.swal2-error {
  margin-right: 0 !important;
}

.fullscreen {
  margin-top: 1vh !important;
  margin-bottom: 0;
}

@media (min-width: 480px),
(min-height: 800px) {
  .fullscreen {
    margin-top: 5vh !important;
  }
}

.discount-mark {
  font-size: 11px;
  background-color: #fdeee2;
  width: fit-content;
  padding: 3px 6px;
  border-radius: 4px;
}

.count-red {
  display: inline-block;
  width: 18px;
  height: 18px;
  font-size: 11px;
  line-height: 18px;
  background-color: #ff0000;
  color: white;
  border-radius: 50%;
  text-align: center;
  border: 1px solid #fff;
}

.log-th {
  top: -20px;
  position: sticky;
  background-color: #25cd7b;
}

.log-table {
  padding-top: 1rem;
  margin-bottom: 1rem;
  max-height: calc(100vh - 300px);
  overflow-x: auto;
  overflow-y: auto;
}

.log-page-btn {
  width: 30px;
  margin: 0;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid #dee2e6;
  background-color: #25cd7b;
  color: #212529;
  cursor: pointer;
}

.log-page-btn:hover {
  background-color: #218838;
}

.log-page-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.change {
  font-weight: 600;
}

.custom-text-overflow {
  max-width: 9rem;
}

@media (min-width: 760px) {
  .custom-text-overflow {
    max-width: 20rem;
  }
}