/*
 * Page View Message
 */
#mobile_viewmessage div[data-role=content] {
    overflow-x: visible;
}

#form_quick_reply .input-email-reply {
	border: 1px solid #AAAAAA;
	color: #333333 !important;
    display: block;
    font-size: 14px;
    margin-bottom: 7px;
    margin-left: 0 !important;
    margin-top: 8px;
    padding-bottom: 4px;
    padding-left: 0px !important;
    padding-top: 7px;
    text-align: left;
    width: 70%;
	height: 18px;
	background: #fff !important;
	text-shadow: none !important;
	font-weight: normal;
	
	/* makes textbox resize upwards */
	bottom: 0;
	position: absolute;
}

#form_quick_reply .ui-btn {
    -moz-box-shadow:none;
	-webkit-box-shadow:none;
	box-shadow: none;
	background:#f2f2f2;
	background-image:-webkit-gradient(linear,left top,left bottom,from(#f2f2f2),to(#dcdcdc));
	background-image:-webkit-linear-gradient(#f2f2f2,#dcdcdc);
	background-image:-moz-linear-gradient(#f2f2f2,#dcdcdc);
	background-image:-ms-linear-gradient(#f2f2f2,#dcdcdc);
	background-image:-o-linear-gradient(#f2f2f2,#dcdcdc);
	background-image:linear-gradient(#f2f2f2,#dcdcdc);
	border: 1px solid #AAA;
    float: right;
    height: 29px;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 8px;
    width: 60px;
	line-height: 14px;
}

.quick-reply-input {
	background:#f3f3f3;
	background-image:-webkit-gradient(linear,left top,left bottom,from(#f3f3f3),to(#dddddd));
	background-image:-webkit-linear-gradient(#f3f3f3,#dddddd);
	background-image:-moz-linear-gradient(#f3f3f3,#dddddd);
	background-image:-ms-linear-gradient(#f3f3f3,#dddddd);
	background-image:-o-linear-gradient(#f3f3f3,#dddddd);
	background-image:linear-gradient(#f3f3f3,#dddddd);
	overflow: hidden;
    width: 100%;
}

#form_quick_reply span.ui-btn-inner {
    border-top: 1px solid #FFFFFF;
    font-size: 13px;
    min-width: 10px !important;
    padding: 6px;
    text-shadow: 0 1px 0 #FFFFFF;
}

.attachedImg {
    max-width: 250px;
}

div#view_attachments ul {
	list-style-type: none;
	margin: 10px 0 20px;
	padding: 0;
}

div#view_attachments ul li {
    margin-bottom: 20px;
}

#header_viewmessage{
    overflow: visible; /* Let menu content overflow outside the header_viewmessage */
}
#header_viewmessage ul { /* Menu Name */
	list-style-type: none;
	margin-bottom: 0;
    margin-top: -36px;
    text-align: right;
}
#header_viewmessage .ui-btn-corner-all {
    /* border-radius: 0; /* Make the menu button squarish */
}
#header_viewmessage ul ul { /* Menu Item List */
    position: absolute; /* Position absolutely */
    display: none; /* Hide */
    z-index:500; /* Ensure visibility over other elements on page */
    margin-top: 0px; /* Bring menu closer to button; not needed on mobile */
}
#header_viewmessage ul ul li {
    width: 200px; /* Fixed width menu items*/
    display: block; /* JQM makes a inline-blocks... reset it to block */
}
#header_viewmessage ul ul li a {
    white-space: normal; /* Stop long menu names from truncating */
}
#header_viewmessage ul:hover ul {
    /* display: block; /* Display menu on hover over parent */
}
.menu-left {
    float: left;
    margin-left:0.5em;
}
.menu-right {
    float: right;
    margin-right:0.5em;
}
.menu-left ul {
    margin-left:0.5em;
}
.menu-right ul {
    margin-right: 0.5em;
    right: 0em;
}

ul.list-menu-right {
	background:#FDFDFD;
	background-image:-webkit-gradient(linear,left top,left bottom,from(#FDFDFD),to(#e3e3e3));
	background-image:-webkit-linear-gradient(#FDFDFD,#e3e3e3);
	background-image:-moz-linear-gradient(#FDFDFD,#e3e3e3);
	background-image:-ms-linear-gradient(#FDFDFD,#e3e3e3);
	background-image:-o-linear-gradient(#FDFDFD,#e3e3e3);
	background-image:linear-gradient(#FDFDFD,#e3e3e3);
	margin-top: 6px !important;
}

#header_viewmessage ul.list-menu-right .ui-btn-corner-all {
	background: none repeat scroll 0 0 transparent;
	border: medium none;
    padding-bottom: 6px;
    padding-left: 10px;
    padding-top: 6px;
    text-align: left;
	padding-right: 0px;
}

ul.list-menu-right .ui-btn-icon-right .ui-icon {
	right: 8px !important;
}

#header_viewmessage ul ul.list-menu-right li {
	border-color: #cccccc;
	text-shadow: 0 1px #FFFFFF;
	color: #333;
}

#header_viewmessage ul ul.list-menu-right li.ui-li-has-arrow {
	width: 150px;
}

#header_viewmessage ul ul.list-menu-right li.ui-li-has-arrow div.ui-btn-inner {
	padding-right: 0px;
}

#header_viewmessage ul ul.list-menu-right li.ui-li-has-arrow a.ui-btn {
	padding-right: 0px;
	text-shadow: 0 1px #FFFFFF;
	color: #333;
}

#header_viewmessage ul ul.list-menu-right li.ui-li-has-arrow a.ui-btn:hover {
	color: #fff !important;
	text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
}

#header_viewmessage ul ul.list-menu-right a.ui-btn-down-a, #header_viewmessage ul ul.list-menu-right a.ui-btn-hover-a  {
	color: #fff !important;
	text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
}

#header_viewmessage ul ul.list-menu-right li:hover {
	text-decoration: none;
  	color: #fff !important;
 	text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
  	background-color: #194b7e;
	background-image:-webkit-gradient(linear,left top,left bottom,from(#eeeeee),to(#dbdbdb));
	background-image:-webkit-linear-gradient(#eeeeee,#dbdbdb);
	background-image:-moz-linear-gradient(#eeeeee,#dbdbdb);
	background-image:-ms-linear-gradient(#eeeeee,#dbdbdb);
	background-image:-o-linear-gradient(#eeeeee,#dbdbdb);
	background-image:linear-gradient(#eeeeee,#dbdbdb)
  	-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(0, 0, 0, 0.08);
  	-moz-box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(0, 0, 0, 0.08);
  	box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 1px rgba(0, 0, 0, 0.08);
}

ul.list-menu-right li {
	background: none;
}

ul.list-menu-right li {
	background: none;
}

ul.list-menu-right li.ui-corner-top {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

ul.list-menu-right li.ui-corner-bottom {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}


/*
 * Page Mail list
 */

.preview {
    color: #777;
}

.mail-check-icon {
    background: url("../../../images/themes/mobile/unchecked.png") no-repeat scroll 8px 8px transparent;
    height: 26px;
    width: 26px;


    /*
    -webkit-background-size: 18px 19px;
    background-size: 18px 19px;
    background-position: 8px;
    */
}

.mail-row.selected .mail-check-icon, .contact-row.selected .mail-check-icon{
    background: url("../../../images/themes/mobile/checked.png") no-repeat scroll 8px 8px transparent;
}

.mail-item {
    left: 64px;
    position: relative;
    top: -41px;
	width: 95%;
}

.mail-item.EditList {
    left: 35px;
    top: -14px;
}

.mail-row {
    height: 60px;
}

.contact-row {
    height: 62px;
}

.contact-item {
    left: 80px;
    position: relative;
    top: -54px;
}

img.contact-photo-icon {
    height: 49px;
    left: 6px;
    position: relative;
    top: 6px;
    width: 49px;
}

#folder_inbox a span.folder-name {
    background: url("../../../images/themes/mobile/inbox-icon.png") no-repeat scroll 0 8px transparent;
    display: block;
    padding: 7px 3px 4px 27px;
	height: 18px;
	width: 20px;
}

#folder_sent a span.folder-name {
    background: url("../../../images/themes/mobile/sent-icon.png") no-repeat scroll 0 7px transparent;
    display: block;
    height: 18px;
    padding: 6px 3px 4px 27px;
    width: 14px;
}

#folder_spam a span.folder-name {
    background: url("../../../images/themes/mobile/spam-icon.png") no-repeat scroll 0 8px transparent;
    display: block;
    padding: 7px 3px 4px 27px;
	height: 18px;
	width: 20px;
}

#folder_trash a span.folder-name {
    background: url("../../../images/themes/mobile/trash-icon.png") no-repeat scroll 2px 7px transparent;
    display: block;
    padding: 7px 3px 4px 27px;
	height: 18px;
	width: 20px;
}

#folder_drafts a span.folder-name {
    background: url("../../../images/themes/mobile/drafts-icon.png") no-repeat scroll 0 7px transparent;
    display: block;
    padding: 7px 3px 4px 27px;
	height: 18px;
	width: 20px;
}

#list_mail_folder .custom-folder a span.folder-name {
    background: url("../../../images/themes/mobile/folder-icon.png") no-repeat scroll 0 7px transparent;
    display: block;
    padding: 7px 3px 4px 27px;
	height: 18px;
	width: 20px;
}

.quick-reply-focused .fixed-to-bottom {
    position: absolute !important;
    bottom: 0px;
    padding-bottom: 0px;
}

#icon_no_message {
    background: url("../../../images/no-message-selected.png") no-repeat scroll 48% 30% transparent;
    height: 200px;
    left: 50%;
    margin-left: -100px;
    margin-top: -100px;
    position: absolute;
    top: 50%;
    width: 200px;
}

#icon_no_message p {
    color: #999999;
    font-family: arial,helvetica,sans-serif;
    font-size: 16px;
    font-weight: bold;
    margin: 140px 40px 0;
    padding: 4px;
    text-align: center;
}

.contact-photo {
    float: left;
    height: 128px;
}

.contact-basic-info {
    float: left;
}

.contact-info-group {
    position: relative;
    clear: both;
}


/*
 * Page compose
 */

.textboxlist-autocomplete { margin-left:61px; position:relative; text-align:left; width: auto;}
.textboxlist-autocomplete-placeholder, .textboxlist-autocomplete-results { opacity: 1; filter: alpha(opacity=90); background: #fff; border-bottom:1px solid #CCCCCC; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none; border: 1px solid #999; border-top: none; border-bottom:none;display: none; margin: 0 0 0 10px;}
.textboxlist-autocomplete-placeholder { padding: 5px 7px; padding-top: 0px;}
.textboxlist-autocomplete-results { margin: -4px 0 0 59px; padding: 0; position:absolute; right:0; width:100%; }

/* #Calendar .textboxlist-autocomplete-results { margin: -4px 0 0 10px; padding: 0; } */

.textboxlist-autocomplete-results { margin: -4px 0 0 59px; padding: 0; }
.textboxlist-autocomplete-result { line-height:2.8; margin: 0; padding: 5px; list-style-type: none; background: #fff; border-bottom:1px solid #CCCCCC; }
.textboxlist-autocomplete-result-focus { background: #E2E7ED; }
.textboxlist-autocomplete-highlight { background: #EEF0C4; font-weight: bold; }

/*  TextboxList.Autocomplete Style guidelines
			Try to keep .textboxlist-autocomplete {} as it is now
			If you apply custom styles to placeholder, also apply them to results, like it is now.
			.textboxlist-autocomplete-result {} needs a background for IE.
*/

.textBoxBorder { width:50%; border:1px solid #999999; margin:0 0px 4px 0px; overflow:hidden; padding:4px 5px; }
/*
	Text box List
*/

.textboxlist { font: 11px "Lucida Grande", Verdana; cursor: text; }
.textboxlist-bits { zoom: 1; overflow: hidden; margin:0 -10px 4px 10px !important; padding: 3px 4px 0; border: none; *padding-bottom: 3px; *margin-right: 0px;}
.textboxlist-bits-focus { zoom: 1; overflow: hidden; margin:0 0 4px 10px; padding: 3px 4px 0; border: 1px solid #97A9B6; *padding-bottom: 3px; background:#E8ECF2 none repeat scroll 0 0; }
.textboxlist-bit { list-style-type: none; float: left; display: block; padding: 0; margin: 0 5px 3px 0; cursor: default; color: #000;}
.textboxlist-bit-editable { border: 1px solid transparent; }
.textboxlist-bit-editable-input { border: 0; padding: 2px 0; *padding-bottom: 0; height: 14px; font: 11px "Lucida Grande", Verdana; background: transparent; }
.textboxlist-bit-editable-input:focus { outline: 0; }
.textboxlist-bit-box { position: relative; line-height: 18px; padding: 0 5px; -moz-border-radius: 9px; -webkit-border-radius: 9px; border-radius: 9px; border: 1px solid #CAD8F3; background: #DEE7F8; cursor: default; }
.textboxlist-bit-box-deletable { padding-right: 15px; }
a.textboxlist-bit-box-deletebutton { position: absolute; right: 4px; top: 6px; display: block; width: 7px !important; height: 7px !important; font-size: 1px; background: url('images/close.png') !important; }
.textboxlist-bit-box-deletebutton:hover { border: none; background-position: 7px; text-decoration: none; }
.textboxlist-bit-box-hover { background: #e2e7ed; border: 1px solid #97a9b6; }
.textboxlist-bit-box-focus { border-color: #97a9b6; background: #d1d8e2; color: #000; }
.textboxlist-bit-box-focus .textboxlist-bit-box-deletebutton { background-position: bottom; }

