div.Message {
  margin-top: 16px;
  margin-bottom: 6px;
}

div.Message .Form .section:first-child .Body {
  margin-top: 30px;
}

div.Message .ActionBar {
  position: absolute;
  right: 10px;
  top: 0px;
  font-size: 10px;
}

div.Message .ActionBar .Action {
  display: inline-block;
  margin-left: 4px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 4px;
  padding-bottom: 4px;
  background-color: #DDDDDD;
}

.MessageThread .ActionBar .Action:hover {
  background-color: #FFDD8A;
}

.MessageThread {
  display: flex;
  flex-direction: column;
}

.MessageThread > .Contents {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0.5em;
}

.MessageThread > .Contents.Loaded {
  scroll-behavior: smooth;
}

.MessageThread > .Input {
  flex: 0 0 auto;
  display: flex;
}

.MessageThread > .Toolbar {
  position: relative;
  display: none;
  padding: 0.5em;
}

.MessageThread > .Toolbar.Visible {
  display: block;
}

.MessageThread > .Input,
.MessageThread > .Toolbar {
  background-color: #FFFFFF
}

.MessageThread > .Input > textarea {
  flex: 1 1 auto;
  margin: 1em;
  border: 1px solid #D3D3D3;
  border-radius: 0.75em;
  background-color: #F5F5F5;
  padding: 0.75em;
  line-height: normal;
  resize: vertical;
}

.MessageThread > .Input > .Add,
.MessageThread > .Toolbar > .Delete {
  border: none;
  min-width: unset;
  background-size: 18px 18px;
  background-repeat: no-repeat;
  background-position: center;
}

.MessageThread > .Input > .Add {
  flex: 0 0 auto;
  margin: 1.5em 0.5em 1.5em 0;
  border: none;
  border-radius: .75em;
  width: 40px;
  height: 40px;
  min-width: unset;
  background-image: url("UserInterface.Icon.PaperPlane.svg");
}

.MessageThread > .Input.Reply > .Add {
  background-image: url("UserInterface.Icon.Reply.svg");
}

.MessageThread > .Toolbar > .Delete {
  position: absolute;
  right: 0;
  width: 20px;
  height: 20px;
  background-size: 12px 12px;
  background-image: url("UserInterface.Icon.Dustbin.svg");
}

.MessageThread > .Input > .Add:focus {
  background-color: #f3f8fc;
}

.MessageThread > .Contents .Messages {
  margin-left: 2em;
}

.MessageThread > .Contents .Message > .Contents {
  border-radius: 0.75em;
  background-color: white;
  box-shadow: 2px 1px 5px #ccc;
  padding: 0.5em 0.75em;
}

.MessageThread > .Contents .Message > .Contents:hover {
  cursor: pointer;
}

.MessageThread > .Contents .Message.Selected > .Contents {
  background-color: #f3f8fc;
}

.MessageThread .Message > .Contents > .Information {
  position: relative;
  font-size: 80%;
  font-style: italic;
  margin-bottom: 0.2em;
  color: #c0c0c0;
}

.MessageThread .Message > .Contents > .Information > .Instant {
  font-style: normal;
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}

.MessageThread.InProgress > .Contents {
  opacity: 0.6;
}

.MessageThread.InProgress > .Input > textarea,
.MessageThread > .Input > textarea[disabled],
.MessageThread > .Input > input[disabled] {
  opacity: 0.6;
}



