.contract-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 20px;
}

.contract {
  background: rgb(240, 240, 240);
  padding: 2em;
  border-radius: 0.2em;
}

.contract-section {
  margin-bottom: 2.5rem;
}

.bank-details {
  padding: 15px;
  margin: 15px 0;
}

.price-table {
  margin-top: 1rem;
}

/* Modify bootstrap table styles */
.table-primary,
.table-primary>td,
.table-primary>th {
  background-color: #e45c00;
  color: white;
}


.signature-section {
  border-top: 1px solid #ccc;
  padding-top: 2rem;
}


/* Custom Toggle Switch Styles */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #dc3545;
  /* Red when off */
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked+.slider {
  background-color: #28a745;
  /* Green when on */
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.toggle-label {
  margin-bottom: 0;
  cursor: pointer;
}


/* The ajax stuff */
.contract-feedback {
  transition: all 0.3s ease;
  animation: slide 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.spinner-border {
  vertical-align: -0.125em;
}

.contract-footer {
  position: relative;
  margin-top: 2rem;
  font-size: 12px;
  color: grey;
  text-align: center;
}


body.modal-open {
  overflow: auto;
  padding-right: 0 !important;
}

.modal-backdrop {
  display: none !important;
}

.hidden-dashboard {
  display: none;
}


.qr-code-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-popup-modal {
  background: #fff;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3em;
}

.custom-popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 18px;
  color: #888;
  cursor: pointer;
  font-weight: bold;
  background: none;
  border: none;
}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle {
	border-color: #e45c00;
}

.qr-input-group {
  margin-top: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
}

#custom-amount-input {
  margin-left: 1em;
  width: 5ch;
  padding: 0.375rem 0;
  font-size: 1rem;
  color: #495057;
  background: transparent;
  border: none;
  border-bottom: 2px solid #ced4da;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s;
  text-align: right;
}

#custom-amount-input:focus {
  border-bottom: 2px solid #e45c00;
}

#custom-popup-close-btn {
  margin-top: 2em;
}