@media (min-width: 992px) {
  .d-flex.min-vh-100:has(.sw-message__content) {
    height: 100vh;
  }
  .sw-app__main:has(.sw-message__content) {
    min-height: 0;
  }

  .sw-app__content:has(.sw-message__content) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .sw-message__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .sw-message__content .sw-msg-app {
    flex: 1 1 0;
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .sw-message__content .sw-uhead__actions .sw-create {
    flex: 0 0 auto;
    width: 40px;
    padding: 0;
    justify-content: center;
  }
  .sw-message__content .sw-create__label {
    display: none;
  }
}

.sw-message__content .sw-inbox__search {
  padding-top: 16px;
}

.sw-message__content .sw-inbox__filters {
  overflow-x: auto;
  scrollbar-width: none;
}
.sw-message__content .sw-inbox__filters::-webkit-scrollbar {
  display: none;
}

.sw-message__content .sw-inbox-tab__count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.sw-message__content .sw-inbox-tab.active .sw-inbox-tab__count {
  background: #ef4444;
  color: #fff;
}
.sw-message__content .sw-inbox-tab__count:empty {
  display: none;
}

.sw-conv__role {
  font-size: 11.5px;
  color: #9ca3af;
  line-height: 14px;
}

.sw-chat__photo--letter {
  background: #f0ebff;
  color: var(--sw-violet);
  font-size: 15px;
}

.sw-chat__role--admin {
  color: #6b7280;
}

@media (max-width: 991.98px) {
  .sw-app__content:has(.sw-message__content) {
    padding: 0;
  }
  .sw-message__content .sw-msg-app {
    height: auto;
    min-height: 0;
  }
  .sw-message__content .sw-inbox {
    height: auto;
  }
  .sw-message__content .sw-conv-list {
    overflow: visible;
  }
  .sw-message__content .sw-chat {
    height: calc(100svh - 64px);
  }

  .sw-message__content .sw-uhead {
    padding: 16px 16px 0;
    margin-bottom: 12px;
    flex-wrap: nowrap;
  }
  .sw-message__content .sw-uhead > :first-child {
    flex: 1;
    min-width: 0;
  }
  .sw-message__content .sw-uhead__actions {
    width: auto;
    flex-shrink: 0;
  }
  .sw-app__content:has(.sw-message__content) .sw-app-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sw-message__content:has(.sw-msg-app[data-view="chat"]) .sw-uhead {
    display: none;
  }
  .sw-app__content:has(.sw-msg-app[data-view="chat"]) .sw-app-footer {
    display: none;
  }
}
