/* Office Life Messages: keep the conversation inside the modal and scroll only the thread. */
.dm-center{
  height:calc(100% - 36px)!important;
  max-height:calc(100% - 36px)!important;
  box-sizing:border-box!important;
}
.dm-shell{
  height:100%!important;
  min-height:0!important;
  overflow:hidden!important;
}
.dm-shell>header{
  flex:0 0 auto!important;
}
.dm-layout{
  flex:1 1 0!important;
  min-height:0!important;
  height:0!important;
  overflow:hidden!important;
}
.dm-list{
  min-height:0!important;
  max-height:100%!important;
  overflow-y:auto!important;
  overscroll-behavior:contain;
}
.dm-conversation{
  min-width:0!important;
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
}
.dm-person{
  flex:0 0 auto!important;
}
.dm-log{
  flex:1 1 0!important;
  min-height:0!important;
  height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
.dm-reply{
  flex:0 0 auto!important;
  position:relative!important;
  z-index:2!important;
}
@media(max-width:760px){
  .dm-center{
    height:calc(100% - 16px)!important;
    max-height:calc(100% - 16px)!important;
  }
  .dm-layout{
    height:0!important;
    grid-template-rows:minmax(110px,28%) minmax(0,1fr)!important;
  }
  .dm-list{
    max-height:none!important;
  }
  .dm-conversation{
    min-height:0!important;
  }
}
