.message-form table {
  width: 100%;
}

.message-form .label {
  width: 50px;
  white-space: nowrap;
  padding-right: 10px;
  vertical-align: top;
  line-height: 20px;
}

.message-form input {
  border:  1px solid;
  border-color: rgba( 200, 200, 200 ,  1 );
  border-color: rgba( var(--palette-neutral-20,200, 200, 200) ,  1 );
  width: 100%;
}

.message-form input.disabled {
  cursor: default;
  color: rgba(0, 0, 0, .55);
  color: var(--text-secondary-color,rgba(0, 0, 0, .55));
}

/*
 * The input in a dropdown/combo control, e.g. IdentityPicker,
 * only needs the border for the outer input.
 */
.send-mail-dialog .message-form .search-input-wrapper .search-input {
  border: 0;
}

.bowtie-style.send-mail-dialog .message-form .search-input-wrapper .search-input {
  height: inherit;
}

.message-form .dropdown-input-text {
  border: 0;
}

.bowtie-style.send-mail-dialog .message-form.new-form .dropdown-input-text {
  border: 0 !important;
  /* Override new bowtie style for input to avoid double border */
  height: 24px !important;
  /* Override new bowtie style for input since this input has a wrapper */
  background-color: transparent;
  font-size: 100%;
  line-height: inherit;
  position: absolute;
  top: 0;
  left: 0;
}

.bowtie-style.send-mail-dialog .message-form.new-form .dropdown-input-inputarea {
  height: 24px;
}

.message-form .body-container {
  padding: 10px 0 10px 0;
}

.bowtie-style.send-mail-dialog textarea {
  height: 130px;
  resize: none;
  overflow: auto;
}

.bowtie-style.send-mail-dialog .email-read-only-body {
  max-height: 180px;
}

.bowtie-style.send-mail-dialog .email-read-only-body a {
  color: rgba( 16, 110, 190 ,  1 );
  color: rgba( var(--palette-primary-shade-10,16, 110, 190) ,  1 );
}

.bowtie-style.send-mail-dialog .email-read-only-body table th {
  font-family: "Segoe UI VSS (Regular)","Segoe UI","-apple-system",BlinkMacSystemFont,Roboto,"Helvetica Neue",Helvetica,Ubuntu,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 12px;
}

.bowtie-style.send-mail-dialog .email-read-only-body table td {
  max-width: 50px;
  font-family: "Segoe UI VSS (Regular)","Segoe UI","-apple-system",BlinkMacSystemFont,Roboto,"Helvetica Neue",Helvetica,Ubuntu,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  font-size: 12px;
}

.bowtie-style.send-mail-dialog .email-new-note-label {
  display: inline !important;
  /* Override bowtie style for Note label since we want it in the same line */
}

.bowtie-style.send-mail-dialog .message-form.new-form .identity-input.email-input-to-focused,
.bowtie-style.send-mail-dialog .message-form.new-form .identity-input.email-input-to-focused:hover {
  border-color: rgba(0, 120, 212, 1);
  border-color: var(--communication-background,rgba(0, 120, 212, 1));
}

.bowtie-style.send-mail-dialog .message-form.new-form .identity-input:hover {
  border-color: rgba( 166, 166, 166 ,  1 );
  border-color: rgba( var(--palette-neutral-30,166, 166, 166) ,  1 );
}

.bowtie-style.send-mail-dialog .message-form.new-form .identity-input {
  width: 600px;
}

.bowtie-style.send-mail-dialog .message-form.new-form .email-input-to.email-input-to-focused,
.bowtie-style.send-mail-dialog .message-form.new-form .email-input-to.email-input-to-focused:hover {
  border-color: rgba(0, 120, 212, 1);
  border-color: var(--communication-background,rgba(0, 120, 212, 1));
}

.bowtie-style.send-mail-dialog .message-form.new-form .email-input-to:hover {
  border-color: rgba( 166, 166, 166 ,  1 );
  border-color: rgba( var(--palette-neutral-30,166, 166, 166) ,  1 );
}

.bowtie-style.send-mail-dialog textarea:focus {
  border-color: rgba(0, 120, 212, 1);
  border-color: var(--communication-background,rgba(0, 120, 212, 1));
}

.bowtie-style.send-mail-dialog .message-form.new-form .select-tester-identity-picker {
  overflow-y: auto;
  max-height: 52px;
}

.bowtie-style.send-mail-dialog .message-form.new-form .email-input-subject {
  height: 28px !important;
  /* Override input height from bowtie style, too high in our scenario */
}

.bowtie-style.send-mail-dialog .email-note-container {
  margin: 24px 0 0 0;
}

.send-mail-dialog .messagearea-container {
  margin-bottom: 2px;
}

.send-mail-dialog .email-editable-body {
  margin-top: 5px;
  width: 100%;
  height: 136px;
  overflow: auto;
  background-color: inherit;
  resize: none;
  border:  1px solid;
  border-color: rgba( 200, 200, 200 ,  1 );
  border-color: rgba( var(--palette-neutral-20,200, 200, 200) ,  1 );
}

.send-mail-dialog .email-read-only-body {
  max-height: 208px;
  overflow: auto;
}

.send-mail-dialog .email-read-only-content {
  margin-top: 5px;
}

.send-mail-dialog .email-read-only-body > div {
  position: relative;
}

.send-mail-dialog .email-read-only-body .overlay {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba( 244, 244, 244 ,  1 );
  background-color: rgba( var(--palette-neutral-4,244, 244, 244) ,  1 );
}

.send-mail-dialog .message-form.new-form .email-input-to {
  border:  1px solid;
  border-color: rgba( 218, 218, 218 ,  1 );
  border-color: rgba( var(--palette-neutral-10,218, 218, 218) ,  1 );
}

.bowtie-style.send-mail-dialog .message-form.new-form .identity-picker-input {
  border: none !important;
  /* Override the bowtie-style to avoid double border */
  width: 100%;
  height: 24px !important;
  /* This is a input inside a wrapper, too height in our scenario */
}

.send-mail-dialog .message-form.new-form .select-tester-identity-picker {
  max-height: 52px;
  overflow-y: visible;
}

.bowtie-style.send-mail-dialog .message-form.new-form .email-subject-row input {
  padding-left: 8px;
}

.send-mail-dialog .message-form.new-form .email-subject-row input {
  line-height: 18px;
  outline: 0;
  padding-left: 2px;
  background-color: inherit;
}

.send-mail-dialog .message-form.new-form .label {
  margin-top: 4px;
}

.send-mail-dialog .message-form.new-form > table {
  table-layout: fixed;
}

.send-mail-dialog .email-read-only-body table td,
.send-mail-dialog .email-read-only-body table th {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.send-mail-dialog .message-form.new-form .email-note-label {
  display: inline-block;
}

.send-mail-dialog .message-form.new-form .email-read-only-label {
  padding-top: 4px;
}

.send-mail-dialog .message-form.new-form .email-characters-count {
  float: right;
}

.send-mail-dialog .message-form.new-form .email-characters-count.email-count-error {
  color: rgba( 168, 0, 0 ,  1 );
  color: rgba( var(--palette-accent1-dark,168, 0, 0) ,  1 );
}

.ui-dialog .send-mail-dialog.mail-work-items {
  overflow: hidden;
}

.ui-dialog .send-mail-dialog.mail-work-items th {
  text-align: left;
}

@media screen and (max-height: 900px) {
  .send-mail-dialog.bowtie-style.mail-work-items {
    height: 424px !important;
    /* Override inline style from dialog */
  }
  .send-mail-dialog.bowtie-style.mail-work-items textarea {
    height: 70px;
  }
  .send-mail-dialog.bowtie-style.mail-work-items .email-read-only-body {
    max-height: 105px;
  }
  .send-mail-dialog.bowtie-style.mail-work-items .message-form.new-form .email-input-subject {
    height: 22px !important;
    font-size: 11px;
  }
  .send-mail-dialog.bowtie-style.mail-work-items .message-form.new-form .dropdown-input-text,
  .send-mail-dialog.bowtie-style.mail-work-items .message-form.new-form .dropdown-input-inputarea {
    height: 18px !important;
  }
}
