/* 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;
}

.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%;
  margin-top: var(--minim);
}

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

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

.correspondence-icon {
  width: 24px;
  height: 24px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.correspondence-icon:hover {
  opacity: 1;
}