/*
 * Copyright 2009 Palm Inc. Confidential until public release.
 */

/**************************************************************************************************
 *
 * email compose-view specifics
 *
 **************************************************************************************************/

/* Override the 'p' selector in global-base.css */
.compose-message-rte p {
  margin:0;   
  padding:0;   
}

.compose-message-rte {
  margin: -12px;
  padding: 12px;
}

/* Attachments */
.email-compose-attachments {
  font-size: 16px;
  padding: 0px;
  min-height: 40px;
  line-height: 40px;   
}
.email-compose-attachments .attachment-info .title {
  float: left;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 170px;
	padding: 1px 0;
}
.selected .email-compose-attachments {
	color: #fff;
}
.email-compose-attachments .attachment-info .title.fullwidth {
  max-width: 225px;
}
.email-compose-attachments .attachment-info.compressed .title {
  max-width: 255px;
}

.attachment-info .dashboard-newitem {
  position: absolute;
  left: 27px;
}

.grayed-out {
  color: #777;
  display: inline;
}

.email-compose-attachments .file-size {
  float: right;
  margin-right: 8px;
}
.readview-image-thumbnail {
  margin:5px;
}
.readview-icon,
.download-icon {
  height: 41px;
  width: 41px;
  float: left;
  margin: 0px 7px 0px 1px;
  background: url(../images/icon_unknown.png) center center no-repeat;
} 
.readview-icon.type-generic {
  background: url(../images/icon_generic_attch.png) center center no-repeat;
}
.readview-icon.type-image {
  background: url(../images/icon_image.png) center center no-repeat;
}
.readview-icon.type-music {
  background: url(../images/icon_music.png) center center no-repeat;
}
.readview-icon.pdf {
  background: url(../images/icon_pdf.png) center center no-repeat;
}
.readview-icon.ppt {
  background: url(../images/icon_ppt.png) center center no-repeat;
}
.readview-icon.txt {
  background: url(../images/icon_txt.png) center center no-repeat;
}
.readview-icon.type-video {
  background: url(../images/icon_video.png) center center no-repeat;
}
.readview-icon.type-word {
  background: url(../images/icon_word.png) center center no-repeat;
}
.readview-icon.vcard {
  background: url(../images/icon_vcard.png) center center no-repeat;
}
.readview-icon.xls {
  background: url(../images/icon_xls.png) center center no-repeat;
}

.download-icon {
  display: none;
}

.audio-tag-icon {
	position: absolute; 
	top: 3px; 
	left: 3px; 
	z-index: -2;
}

.download-icon.show-download-icon {
  	display: inline;
	margin-left: -48px;
	background: url(../images/icon_download.png) center center no-repeat;
}

.attachment-info {
  margin-left: 0px;
  margin-right: 0px;
  padding: 4px;
}

.download-wrapper {
	position: relative;
	float: left;
	width: 100%;
}

.inline-progress-bar-container {
	margin-bottom: 3px;
}

.file-wrapper {
	clear:both;
}

.attachment-info .inline-progress-bar-container {
  width:100%;
}

#email-readview-attachments-block.selected,
.attachment-info.selected {
  color: #fff !important;
  background: url(../images/selection-gradient-default.png) repeat-x;
}
.download-background {
  z-index: -1;
  position: absolute;
  height: 14px;
  width: 252px;
  right: 0px;
  background-color: #dedede;
  border-width: 15px;
  -webkit-border-image: url(../images/download-background.png) 15 15 15 15 stretch stretch;
}
.download-progress {
  z-index: -1;
  position: absolute;
  height: 14px;
  width: 10px;
  left: 0px;
  background-color: #ececec;
  border-width: 15px;
  -webkit-border-image: url(../images/download-progress.png) 15 15 15 15 stretch stretch;
}
.download-cancel {
  position: absolute;
  right:0;
  width:36px;
  height:48px;
  background: url(../images/download-cancel.png) left center no-repeat;
}


/*end attachment*/

.email-composeview-from {
  font-size: 16px;
  height: 22px;                
  text-shadow: #0f6480 0 1px 1px;
}
.email-composeview-from .label {
  float: left;
  text-align: left;
  width: auto;
  margin-right: 2px 5px 0 3px;
  color: #1879cd;            
  padding-top: 2px; 
  padding-right: 5px;
}
.email-composeview-from .title {     
  display: inline-block;
  font-size: 20px;         
  text-align: left;    
  padding-right: 18px;
  max-width: 87%;
}
.email-composeview-content {
  background: white;
  font-size: 18px;
  margin: 0 -10px 0 0;
  padding: 5px;
  outline: none;
  width: 100%;
  border-width: 10px;
  text-align: left;
  -webkit-border-image: url(../images/email-compose-content.png) 10 10 10 10 stretch stretch;   
  -webkit-box-sizing: border-box;
}

/* This forces the email body text to a specific font size unless it is overriden in html
  -- removed because it doesn't catch all the text, resulting in spans of "randomly sized" text
.email-composeview-content p,
.email-composeview-content div,
.email-composeview-content span {
  font-size: 18px;
  max-width: 290px;
}*/

.email-composeview-triangle-open {
  height: 12px;
  width: 50px;
  background: url(../images/compose-triangle-open.png) center center no-repeat; 
}
.email-composeview-triangle-close {
  height: 12px;
  width: 50px;
  background: url(../images/compose-triangle-close.png) center center no-repeat; 
}

/* hide the pill behind CC and BCC. Move functionality to framework? */
#ccContactsPicker .label-container,
#bccContactsPicker .label-container {
	background: none;
}


.addressing-widget-edit-container.focused {               
	-webkit-border-image: url(../images/text-entry-background.png) 20 1 5 1 repeat repeat;
}

.email-subject {
	font-weight: bold;
	color: #FFF;
	background: url(../images/compose-subject-solid-bg.png) repeat-x;
}                                                                    
.high-priority.email-subject {
  color: #F0BBB7;
	background: url(../images/compose-subject-solid-bg-high.png) repeat-x;
}
.email-subject .hint-text {
	color: #FFF;
}                  
.focused .email-subject {
	background: url(../images/compose-subject-edit-bg.png) repeat-x;
}
.focused .high-priority.email-subject {
	background: url(../images/compose-subject-edit-bg-high.png) repeat-x;
}
.focused .email-subject .hint-text {
	color: #999;
}                  

.forwarded-msg-body {
	/* -webkit-user-select:text magically makes text entry into the editable div (id=msg_rte) not sluggish.
	   the msg_rte div is above forwarded_msg_body so maybe it is related to layout optimizations. */
	-webkit-user-select:text;
	word-wrap:break-word;
	width:100%;
}

.forwarded-msg-body p {
  margin:0;   
  padding:0;   
}

.email-subject input,
.email-subject-textfield,
.email-subject .hint-text {
	font-size: 16px !important;
	font-weight: bold;
}

