/*SCROLL PADDING */
html {
  scroll-padding-top: 75px;
}

/* CUSTOMIZE BOOTSTRAP */
.form-switch-success .form-check-input:checked {
  border-color: #198754;
  background-color: #198754;
}

.form-select:disabled,
.form-control:disabled,
.form-control[readonly] {
  background-color: #fff;
}

.form-check-input:disabled ~ .form-check-label,
.form-check-input[disabled] ~ .form-check-label,
.form-check-input:disabled {
  opacity: 1;
}

textarea {
  resize: none;
}

/* LOADING OVERLAY */
.loading-overlay {
  z-index: 5000;
}

.loading-overlay-bg {
  background-color: rgba(0, 0, 0, 0.8);
  z-index: -1;
}

/* CUSTOMIZE DROPZONE */
.dropzone {
  border: 1px solid #ced4da;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dropzone.dz-started {
  padding: 0;
}

.dz-message {
  text-align: center;
  order: 10;
}

.dz-button {
  background: #eee;
  border: none;
  width: 100%;
  padding: 1rem;
}

.dz-preview {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

.dz-preview:not(:last-child) {
  border-bottom: 1px solid #666;
}

.dz-preview:hover {
  background-color: #ddd;
}

.dz-details {
  flex: 1 0 auto;
  padding: 0 0.5rem;
}

.dz-progress {
  flex: 0 0 100px;
  text-align: center;
  padding: 0 0.5rem;
}

.dz-complete .dz-upload {
  width: 100%;
}

.dz-status {
  flex: 0 0 200px;
  padding: 0 0.5rem;
  text-align: center;
}

.dz-success-mark,
.dz-error-mark {
  display: none;
}

.dz-success .dz-success-mark,
.dz-complete .dz-success-mark {
  display: block;
}

.dz-error .dz-error-mark {
  display: block;
}

[data-mode='review'] .dz-button,
[data-mode='review'] .file-input-upload-delete {
  display: none;
}

.file-input-upload:nth-child(odd) {
  background-color: rgb(247, 247, 247);
}

/* CUSTOMIZE SWEETALERTS */
.swal2-popup {
  width: min(100%, 600px) !important;
}

/* TOASTS */
.toast-container {
  z-index: 2000;
}

/* SIGNATURE BOX */
.signature-box-container .modal-body::after {
  content: "";
  position: absolute;
  width: calc(100% - 2rem);
  bottom: calc(1rem + 30px);
  left: 1rem;
  border-bottom: 3px dotted #000;
}

.is-invalid ~ .signature-button {
  border-color: #dc3545;
  padding-right: calc(1.5em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* DUPLICATE ELEMENTS */
[data-mode='review'] .add-duplicate,
[data-mode='review'] .remove-duplicate {
  display: none;
}

/* GLOBAL PRINT CLASSES ARE IN /css/print.css */
