.modalDialogCustom {
  margin-top: 2% !important;
  margin-bottom: auto !important;
  transform: none !important;
  top: 0 !important;
  height: 90vh;
  max-height: 90vh;
}

@media only screen and (max-width: 767px) {
  .modalDialogCustom {
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100vh;
    max-height: 100vh;
  }
}

.modalHeader {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

@media (max-width: 768px) {
  .modalHeader {
    padding: 0.75rem !important;
  }
}

@media only screen and (max-width: 767px) {
  .modalHeader {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
  }
}

.modalTitle {
  font-weight: bold !important;
  font-size: 16px !important;
  margin-bottom: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .modalTitle .h4, .modalTitle .h5 {
    font-size: 16px !important;
  }
}

.modalBody {
  background-color: var(--bg-body);
  color: var(--text-body);
  padding: 10px;
  height: 100%;
  max-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  flex: 1 1 auto;
}

@media only screen and (max-width: 767px) {
  .modalBody {
    height: 100%;
    max-height: 100vh;
    padding: 0.1rem;
    overflow-y: auto;
  }
}
