/* STYLING FOR MESSAGE INDEX PAGE */

.message-index {
  height: calc(100dvh - var(--header-height));
  max-height: calc(100dvh - var(--header-height));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.messaging-widget {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  min-height: 0;
  padding-left: 16px;
  padding-right: 16px;
}

.message-list {
  flex: auto 1 1;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: var(--semiquaver);
  padding: 0 var(--minim);
  margin-bottom: var(--quaver);
}

.correspondence-header {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--quaver);
  padding-bottom: var(--minim);
  width: 100%;
}

.correspondence-header-border {
  width: 100%;
  height: 1px;
  background-color: var(--mb-70);
}

.correspondence-header-icons {
  display: flex;
  gap: var(--crotchet);
  align-items: center;
  overflow: visible;
}

.correspondence-icon {
  width: auto;
  height: auto;
  opacity: 1;
  cursor: pointer;
  padding: 2px;
}