.nexdoc-mail-container {
  padding-top: 1.6em; }
  .nexdoc-mail-container.reply {
    padding-top: 50px;
    margin-top: 1.6em;
    background-color: #fafafa; }

.nexdoc-mail {
  position: relative;
  background-color: #fafafa;
  padding: 20px; }
  .nexdoc-mail.reply {
    border-top: 1px solid #c4c4c4; }
    .nexdoc-mail.reply .btn-archive, .nexdoc-mail.reply .btn-unarchive {
      top: 163px; }
  .nexdoc-mail span {
    max-width: none !important; }
  .nexdoc-mail p {
    max-width: none !important;
    margin: 0 !important; }
  .nexdoc-mail .reply-area {
    height: 150px;
    border: 1px solid #ddd;
    font-size: 90%;
    display: none;
    overflow: scroll; }
    .nexdoc-mail .reply-area.reply {
      display: block;
      background-color: white;
      padding: 10px;
      width: 97%;
      resize: none; }
  .nexdoc-mail .file-drop-zone {
    margin-top: 10px;
    background-color: white; }
  .nexdoc-mail .mail-from, .nexdoc-mail .mail-subject-container {
    padding: 1em;
    font-weight: normal;
    font-size: 90%; }
  .nexdoc-mail .text-normal {
    font-weight: normal; }
    .nexdoc-mail .text-normal div {
      display: inline-block; }
    .nexdoc-mail .text-normal .mail-attachment {
      margin-left: 5px; }
  .nexdoc-mail .mail-date {
    display: block;
    padding-top: 1em; }
  .nexdoc-mail .mail-body-container {
    padding: 1em;
    padding-bottom: 0;
    font-size: 90%;
    margin-bottom: 1em;
    white-space: pre-line; }
    .nexdoc-mail .mail-body-container .mail-body p, .nexdoc-mail .mail-body-container .mail-body span {
      margin-bottom: 1em; }
  .nexdoc-mail .mail-icon, .nexdoc-mail .btn-archive, .nexdoc-mail .btn-reply-action, .nexdoc-mail .btn-unarchive, .nexdoc-mail .btn-reply, .nexdoc-mail .btn-attach, .nexdoc-mail .action-history {
    display: block;
    padding: 10px 15px;
    background-color: #fafafa;
    cursor: pointer;
    border: 0; }
    .nexdoc-mail .mail-icon::before, .nexdoc-mail .btn-archive::before, .nexdoc-mail .btn-reply-action::before, .nexdoc-mail .btn-unarchive::before, .nexdoc-mail .btn-reply::before, .nexdoc-mail .btn-attach::before, .nexdoc-mail .action-history::before {
      display: inline-block;
      width: 20px;
      height: 20px;
      margin: 0 .4em -8px 0;
      background-repeat: no-repeat;
      background-size: auto 18px;
      pointer-events: none;
      content: ''; }
    .nexdoc-mail .mail-icon:hover, .nexdoc-mail .btn-archive:hover, .nexdoc-mail .btn-reply-action:hover, .nexdoc-mail .btn-unarchive:hover, .nexdoc-mail .btn-reply:hover, .nexdoc-mail .btn-attach:hover, .nexdoc-mail .action-history:hover {
      color: #333;
      opacity: 0.7; }
  .nexdoc-mail .btn-archive, .nexdoc-mail .btn-reply-action, .nexdoc-mail .btn-unarchive {
    right: 0;
    position: absolute;
    top: 10px;
    display: inline-block;
    opacity: 0.8; }
  .nexdoc-mail .btn-archive {
    right: 10px;
    top: -43px;
    background-color: white; }
    .nexdoc-mail .btn-archive::before {
      background-image: url("../archive.svg"); }
  .nexdoc-mail .btn-unarchive {
    right: 10px;
    top: -43px;
    background-color: white; }
    .nexdoc-mail .btn-unarchive::before {
      background-image: url("../unarchive.svg"); }
  .nexdoc-mail .btn-reply-action.reply {
    right: 10px;
    top: 28px;
    background-color: #fafafa; }
    .nexdoc-mail .btn-reply-action.reply::before {
      background-image: url("./reply.svg"); }
  .nexdoc-mail .btn-reply-action.send {
    right: 210px;
    top: -28px; }
    .nexdoc-mail .btn-reply-action.send::before {
      background-image: url("./send.svg"); }
  .nexdoc-mail .btn-reply-action.discard {
    right: 10px;
    top: -28px; }
  .nexdoc-mail .btn-reply-action.attach {
    right: 90px;
    top: -28px; }
    .nexdoc-mail .btn-reply-action.attach::before {
      background-image: url("./attach.svg"); }
  .nexdoc-mail .btn-reply {
    padding-left: 0;
    opacity: 0.8;
    display: inline; }
    .nexdoc-mail .btn-reply::before {
      background-image: url("./reply.svg"); }
  .nexdoc-mail .btn-attach {
    display: inline;
    opacity: 0.8; }
    .nexdoc-mail .btn-attach::before {
      background-image: url("./attach.svg"); }
  .nexdoc-mail .action-history {
    display: block;
    opacity: 0.8;
    padding-left: 0;
    border-bottom: 1px solid #1B7991; }
    .nexdoc-mail .action-history::before {
      background-image: url("./caret-down.svg");
      margin: 0 0.4em -6px 0 !important; }

.attach-files ul li {
  display: relative; }
  .attach-files ul li::after {
    content: '';
    background-image: url("close.svg");
    display: inline-block;
    width: 24px;
    height: 24px;
    margin: 0 .4em -8px 0;
    background-repeat: no-repeat;
    background-size: auto 20px;
    cursor: pointer;
    margin-left: 5px; }

.mail-attachment {
  cursor: pointer;
  border: 0;
  background-color: inherit;
  padding: 5px;
  margin-left: 1em; }
  .mail-attachment::before {
    content: '';
    background-image: url("file.svg");
    display: inline-block;
    width: 24px;
    height: 18px;
    margin: 0 -5px -5px 0;
    background-repeat: no-repeat;
    background-size: auto 18px;
    cursor: pointer; }
  .mail-attachment:hover {
    background-color: white; }

.back-button {
  margin-top: 1em; }

div[class^="reply-mail-"] .mail-from {
  border-top: 1px solid #ddd;
  padding-bottom: 0;
  padding-top: 20px; }

div[class^="reply-mail-"] .mail-subject-container {
  border-bottom: none; }

.reply-mail-0 .mail-from {
  border-top: none !important;
  font-weight: bold !important;
  border-bottom: 0 !important; }

.reply-mail-0 .mail-subject-container {
  font-weight: bold !important; }

.reply-mail-0 .mail-date {
  font-weight: bold !important; }
