/**
 * SDOHub global customisations — injected on every Moodle page via
 * local_nadporu_before_http_headers() → $PAGE->requires->css().
 */

/* Hide contact-request-sent banner that RemUI positions over the composer. */
.message-app [data-region="contact-request-sent-message-container"] {
  display: none !important;
}

/*
 * Full-page messaging: give the RemUI wrapper a definite height, then flex
 * the inner column so the message list fills the middle (flex-basis 0%).
 * Height:100% + flex-basis:auto collapsed the list to 0 because its children
 * are position:absolute and contribute no intrinsic height.
 */
#page-message-index .message-app.main {
  display: flex;
  flex-direction: column !important;
  height: calc(100vh - 16rem);
  min-height: calc(100vh - 16rem);
}

#page-message-index .message-app.main > .container-fluid {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
}

#page-message-index .message-app.main > .container-fluid > .row {
  flex: 1 1 0%;
  display: flex;
  width: 100%;
  min-height: 0;
}

#page-message-index .message-app.main .col-4,
#page-message-index .message-app.main .col-8 {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#page-message-index .message-app.main .col-4 > .border-right {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#page-message-index .message-app.main [data-region="panel-body-container"] {
  flex: 1 1 0%;
  min-height: 0;
  overflow: auto;
}

#page-message-index .message-app.main .col-8 [data-region="body-container"] {
  flex: 1 1 0%;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

#page-message-index .message-app.main .col-8 [data-region="footer-container"] {
  flex-shrink: 0;
}
