/* Compose */

  @compose-max-width: 50em;

  .form-compose {
    padding: 15px 20px 10px 20px;
    background: @grayLight;
  }

  .form-compose label {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: normal;
  }

  .form-compose label a {
    font-size: 14px;
    font-weight: normal;
  }

  .form-compose label a:hover {
    color: @red;
  }

  .form-compose label span,
  .form-compose label a.compose-hide-field {
    color: @gray;
  }

  .compose-headers,
  .compose-subject,
  .compose-options,
  .compose-body {
    width: 100%;
    max-width: @compose-max-width;
  }


/* Compose - Headers */

  .compose-headers {
    padding-bottom: 15px;
  }

	a.compose-show-field {
	  font-family: @text-font-family;
    font-size: 18px;
    font-style: normal;
    font-variant: normal;
    font-weight: bold;
    color: @grayDark;
    margin-left: 10px;
	}


/* Compose - Subject */

  .compose-subject input[type=text] {
    // NOTE: If margins are changed here, please update the .pile-message h3
    //       in the section at the bottom.
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid @grayMid;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 18px;
  }

  .compose-subject input[type=text]:focus {
    outline: none;
    border: 1px solid @gray;
    box-shadow: 0 0 3px @gray;
    -moz-box-shadow: 0 0 3px @gray;
    -webkit-box-shadow: 0 0 3px @gray;
  }


/* Compose - Options */

  .compose-options {
    margin-top: -3px;
    margin-bottom: 0px;
		padding: 0 0 0px 0;
  }

  .compose-options-size {
    font-size: 14px;
    font-weight: normal;
    line-height: 14px;
    color: @gray;
  }

  .compose-options-crypto {
    width: 74px;
    position: relative;
    top: 2px;
    display: inline-block;
    text-align: center;
    background: @white;
    border-left: 1px solid @grayMid;
    border-bottom: 1px solid @grayMid;
    border-right: 1px solid @grayMid;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    float: right;
    padding-top: 5px;
    .compose-options-size();
  }

  .compose-options-crypto .compose-message-settings,
  .compose-options-crypto .compose-crypto-encryption,
  .compose-options-crypto .compose-crypto-signature {
    display: inline-block;
    margin: 10px 6px;
  }

  .compose-message-settings:hover,
  .compose-crypto-signature:hover,
  .compose-crypto-encryption:hover {
    cursor: pointer;
  }

  .compose-options ul {
    display: inline-block;
    margin-bottom: 0px;
    padding: 0px;
  }

  .compose-options ul li {
    margin: 0px 10px 0px 0px;
    .compose-options-size();
  }

  .compose-options ul li a,
  .compose-options label.right,
  .compose-options a.right {
    font-weight: normal;
    .compose-options-size();
  }

  .compose-options ul li a:hover,
  .compose-options label.right:hover,
  .compose-options a.right:hover {
    color: @grayDark;
  }

  .compose-options label.right {
    position: relative;
    top: 9px;
    right: 10px;
    padding-bottom: 0px;
    margin-bottom: 0px;
    cursor: pointer;
    font-style: italic;
  }

  .compose-options a.right {
    position: relative;
    top: 9px;
    right: 5px;
    margin-left: 10px;
  }

  .compose-to-summary {
    max-width: 500px;
    word-wrap: normal;
    word-break: normal;
    white-space: nowrap;
    overflow: hidden;
  }


/* Compose - Body */

  .compose-body {
    border-radius: 4px;
    background: @white;
    border: 1px solid @grayMid;
    padding-bottom: 0px;
  }

  .compose-body textarea {
    width: 97%;
    display: block;
    min-height: 75px;
    margin: 12px auto 0px auto;
    padding: 0px 0px 12px 0px;
    border: 0px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 18px;
    resize: none;
  }

  .compose-body textarea:focus {
    outline: none;
  }


/* Compose - Attachments */

  div.compose-attachments {
    margin-top: 0px;
    padding: 0px 10px 10px 10px;
    font-size: 14px;
  }

  div.compose-attachments ul.horizontal {
    margin-bottom: 0px;
  }

  ul.compose-attachments li {
    margin-right: 15px;
    margin-bottom: 15px;
  }

  a.compose-attachment-remove {
    float: right;
    display: inline;
    position: relative;
    top: 5px;
    right: 5px;
    padding: 4px;
    color: @gray;
    font-size: 14px;
    line-height: 14px;
    border-radius: 5px;
  }

  a.compose-attachment-remove:hover {
    background: @red;
    color: @white;
  }


/* Attachment Browser */

  .attachment-browswer-unsupported {
    color: @gray;
    font-style: italic;
  }

  .attachment-browswer-unsupported a {
    color: @gray;
  }

  label.compose-attach-key {
    color: @grayDark;
    cursor: pointer;
    font-weight: bold;
  }

  label.compose-attach-key:hover,
  label.compose-attach-key:hover span.icon-key {
    color: @red;
  }

  label.compose-attach-key span.icon-key {
    color: @grayDark;
    font-weight: normal;
  }


/* Compose - From Menu */

  .compose-from-select {
    display: block;
    width: 18em;
    background: @white;
    border: 1px solid @grayMid;
    border-radius: @base-border-radius;
    padding: 4px 6px;
    line-height: 14px;
  }

  .compose-from-select:hover {
    cursor: pointer;
    background: @grayDark;
    color: @white
  }

  .compose-from-select:hover .name {
    color: @white;
  }

  .compose-from-selected {
    display: inline-block;
    vertical-align: middle;
  }

  .compose-from-caret {
    display: inline-block;
    padding-left: 5px;
    float: right;
  }

  .compose-from-selected .avatar, .compose-from .avatar {
    width: 24px;
    display: inline-block;
    margin-right: 5px;
    float: left;
  }

  .compose-from-selected .avatar img {
    width: 24px;
    border-radius: @base-border-radius;
  }

  .compose-from-selected .name-and-address, .compose-from .name-and-address {
    float: left;
  }

  .compose-from-selected .name {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    line-height: 14px;
  }

  .compose-from-selected .address {
    font-size: 12px;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: normal;
    color: @grayMid;
    line-height: 12px;
  }

  .compose-from {
    height: 32px;
    font-size: 14px;
    font-weight: bold;
    line-height: 14px;
    margin: 0px;

    display: block;
    width: 18em;
    background: @white;
    border: 1px solid @grayMid;
    border-radius: @base-border-radius;
    padding: 0px;
    line-height: 14px;
  }

  .compose-from .avatar {
    width: 32px;
  }

  .compose-from .avatar img {
    width: 32px;
    border-radius: @base-border-radius;
  }

  .compose-from .name {
    display: inline-block;
    vertical-align: text-top;
    font-size: 14px;
    font-weight: bold;
    line-height: 14px;
  }

  .compose-from .address {
    color: @gray;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: normal;
  }


/* Compose - Actions */

 .compose-actions {
    width: 100%;
    max-width: @compose-max-width - 9em;
    margin-top: -5px;
    padding-bottom: @base-padding;
  }

  .compose-buttons {
    text-align: right;
  }

  .compose-buttons button {
    margin-left: 10px;
  }

  .compose-actions ul.dropdown-menu {
    padding: 0;
    li {
        margin-bottom: 0px;
        a {
            border-radius: 0px;
            border: 0px;
            border-bottom: 1px solid @gray;
        }
    }
  }


/* Composer - Changes for in-pile composer */

  .form-compose .pile-message .subject {
    position: relative;
    padding: 0 4px 0 0;
  }

/*** WORKS IN PROGRESS - COMMENTED OUT

  .pile-message .compose-subject-container {
    display: table;
    width: 100%;
  }

  .pile-message .compose-subject-container h3 {
    display: table-cell;
    margin-bottom: 5px;
    padding: 10px 10px 0 0;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 18px;
    color: @gray;
  }

  .pile-message .compose-subject-container div.compose-subject {
    display: table-cell;
  }

  .pile-message .compose-subject input[type=text] {
    margin-bottom: 5px;
  }

  .pile-message .compose-headers {
    padding-bottom: 0;
  }

  .pile-message div.thread-reply {
    border: 0;
  }

  .pile-message .compose-actions {
    display: table;
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 5px;
    margin-top: 5px;
  }

  .pile-message .compose-actions .dropdown,
  .pile-message .compose-actions .compose-buttons,
  .pile-message .compose-actions .compose-options-crypto {
    display: table-cell;
    white-space: nowrap;
    vertical-align: top;
    padding: 0;
  }

  .pile-message .compose-actions .dropdown {
    position: relative;
    width: 99%;
  }

  .pile-message .compose-actions .dropdown .dropdown-toggle {
    border-radius: 4px;
    padding: 2px 5px;
    margin: 1px 5px 0 0;
    width: 100%;
  }

  .pile-message .compose-body {
    padding-right: 2px;
    position: relative;
    border-bottom-right-radius: 0px;
    width: auto;
  }

  .pile-message .compose-options-crypto {
    width: 111px;
    position: relative;
    display: inline-block;
    text-align: center;
    background: @white;
    padding-top: 9px;
    margin-top: -7px;
    margin-left: 10px;
    border-left: 1px solid @grayMid;
    border-bottom: 1px solid @grayMid;
    border-right: 1px solid @grayMid;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    .compose-options-size();
    float: right;
  }

***** END OF WIP SECTION ************* */
