.modal-header {
  border-bottom: none !important;
  padding: 0.5rem 1rem;
}

.modal-footer {
  border-top: none;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content {
  max-height: 70vh;
}

.shareModalItem {
  color: var(--text-normal);
}

.form-control, .form-control:focus {
  background-color: var(--background-light);
  color: var(--text-normal);
  text-overflow: ellipsis;
}

.form-control::placeholder {
  color: var(--text-lighter);
}

.modal-content {
  background-color: var(--background-dark);
}

.report-modal-top-text, .report-modal-option {
  color: var(--text-lighter);
}

.report-modal-question {
  color: var(--text-light);
}

.cancel-button {
  color: var(--text-normal);
}

@media (prefers-color-scheme: dark) {
  .other-reason {
    color: var(--text-normal);
    background-color: var(--background-light);
    border: none;
  }
  .other-reason::placeholder, #delete-single-record-title, #delete-record-title, .record-inaccessible {
    color: var(--text-lighter);
  }
}
/********************************************
    Workaround for bootstrap migrating to v5
*********************************************/
.modal-header .close {
  float: right;
  margin: 0 0 0 auto;
  padding: 0;
  background-color: transparent;
  border: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-normal);
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
}