/* AdminLTE RTL flipped .close margins, but modal-header flex still packs
   title and × together. Keep title on the inline-start (right in RTL) and
   × on the inline-end (left in RTL). */
.modal-header {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
}

.modal-header .close {
  order: 1;
  float: none !important;
  /* AdminLTE RTL swapped auto-margins; they pack title+× on the left. */
  margin: -0.25rem 0 !important;
  padding: 0.5rem !important;
}

.modal-header .modal-title,
.modal-header > h4,
.modal-header > h5 {
  order: 0;
  flex: 1 1 auto;
  margin: 0;
  text-align: right;
}
