.custom-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
}

.gap-1 {
  /* meant to be used in flex context */
  gap: 1em;
}

.gap-third {
  gap: 0.3em;
}

.form-field {
  flex: 1;
  max-width: 180px;
}

.payments, .go-payments {
  display: flex;
  gap: 1em;
  margin-left: 1em;
}

.calculated-fields .form-control {
  width: auto;
  max-width: max-content;
}

.scroll-x {
  overflow-x: auto;
}

.payments .form-field, .go-payments .form-field {
  max-width: 100px;
  min-width: 0px;
  justify-content: end;
}

.payments label, .go-payments label {
  font-size: 11px;
  font-weight: bold;
}

.hidden {
  visibility: hidden;
}

[class*="-discount"] > span:first-child {
  position: absolute;
  top: -14px;
  font-weight: bold;
}

[class*="-discount"] {
  position: relative;
  border-left: 1px solid gray;
  padding-left: 1rem;;
}

.simple-view .buttons {
  display: none;
}

.canceled {
  background-color: #8000004d !important;
  border: 1px solid red;
}

.paid {
  background-color: #0080004d !important;
  border: 1px solid green;
}

.canceled.paid {
 	background-color: #1a76ca4d !important;
 	border: 1px solid #1a76ca;
}