body
{
    height: calc(100% - 10px);
}

#mailheader
{
	margin: 0px 0px 0px 2px;
}

#mailloading
{
	background: transparent url('../images/layout/loading.gif') no-repeat center center;
	margin: 0px;
	border: none;
	padding: 0px;
	width: 100%;
	height: 100%;
	min-height: 150px;
	display: block;
	text-align: center;
}

#mailbox
{
	display: block; 
	height: calc(100% - 64px);
}

#maillistcontainer
{
	overflow: hidden;
	display: block;
	box-sizing: border-box;
	color: #07243E;
	background-color: white;
	margin: 5px 0px 0px 2px;
	padding: 0px 0px;
	border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
	border: 1px solid #d1d1d1;
	min-width: 300px;
	height: calc(100% - 10px);
}

#maillistcontainer h1,
#maildetail h1
{
    font-family: sans-serif;
    background-color: var(--layout-bkg-head);
    color: black;
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
    height: 20px;
    padding: 6px 0px 4px 25px;
    padding-top: 6px;
    padding-top: 6px;
    margin: 0px;
}

#maillist
{
	height: calc(100% - 30px);
	overflow-y: auto;
}

#maillist .mailentry
{
	overflow: hidden;
	display: block;
    background-color: white;
	box-sizing: border-box;
	padding: 7px 5px 7px 5px;
    border-left: 4px solid white;
}

#maillist .mailentry:nth-child(odd)
{
    background-color: #f5f5f5;
}

#maillist .mailentry:hover
{
    background-image: none;
    background-color: #cde6f7;
    border-left: 4px solid #89a4b5;
}

#maillist .selectedmail
{
	background-color: #cde6f7 !important;
}

#maillist .mailfrom
{
	color: black;
	font-size: 13px;
	font-weight: bold;
	float: left;
	width: calc(100% - 120px);
    box-sizing: border-box;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#maillist .mailsent
{
	font-size: 11px;
	color: #777;
	float: left;
	width: 120px;
	box-sizing: border-box;
	padding-right: 5px;
	display: block;
	text-align: right;
	font-style: italic;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#maillist .mailsubject
{
	font-size: 13px;
	float: left;
	width: 100%;
    box-sizing: border-box;
    margin-top: 7px;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#maildetail, #maildetail p, #maildetail div, #maildetail li
{
	color: black;
    font-size: 11.0pt;
    font-family: "Calibri","sans-serif";
	line-height: normal;
}

#maildetail
{
    background-color: white;
    margin: 5px 2px 0px 0px;
    padding: 0px 0px;
    border-top-right-radius: 7px;
    border-bottom-right-radius: 7px;
    border: 1px solid #d1d1d1;
    border-left: 2px solid white;
	height: calc(100% - 10px);
	overflow: hidden;
}

#mailbody
{
    width: 100%;
    height: calc(100% - 132px);
    box-sizing: border-box;
	background-color: white;
	padding: 8px;
	overflow-y: auto;
}

#mailframe
{
    border: none;
    width: 100%;
    height: calc(100% - 118px);
    box-sizing: border-box;
    background-color: white;
    overflow-y: auto;
}

#maildetail h2
{
    font-size: 15px;
    font-weight: bold;
    background-color: #909090;
    margin: 5px 0 0 0;
    padding: 3px 8px;   
    color: white;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#maildetail p
{
	padding: 0;
	margin: 0;
}

#maildetail label
{
	font-size: 12px;
	font-weight: normal;
	display: block;
	float: left; 
	padding: 8px 0px 4px 8px;
	width: 60px;
	color: #07243E;
}

#maildetail .field
{
	font-size: 14px;
	font-weight: normal;
	display: block;
	float: left; 
	padding: 8px 0px 4px 5px;
	color: black;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#maildetail .attachments
{
    display: contents;
    width: 100%;
    padding: 8px;
    border-bottom: 1px solid #d1d1d1;
    box-sizing: border-box;
}

#maildetail .attachment
{
    display: block;
    float: left;
    width: 49%;
    box-sizing: border-box;
    margin: 2px;
    border: 1px solid #d1d1d1;
    border-radius: 3px;
}

#maildetail .attachmentFile
{
    float: left;
    width: calc(100% - 24px);
    border-right: 1px solid #d1d1d1;
    box-sizing: border-box;
    padding: 3px;
}

#maildetail .attachmentBtn
{
    float: left;
    width: 24px;
    box-sizing: border-box;
    background: transparent url(../images/10x10/selectbtn.png) no-repeat center;
    padding: 3px;
    height: 38px;
}

#maildetail .attachmentFile:hover,
#maildetail .attachmentBtn:hover
{
    background-color: #f5f5f5;
}

#maildetail .attachmentName
{
    display: block;
    width: 100%;
}

#maildetail .attachmentSize
{
    display: block;
    width: 100%;
    font-size: 12px;
    color: #888;
    font-style: italic;
    padding-left: 28px;    
}

#maildetail .attachmentName a.anyfile,
#maildetail .attachmentName a.anyfile:visited 
{
    display: block;
    box-sizing: border-box;
    background: transparent url(../images/fileicon/File.png) no-repeat 4px center;
    color: black;
    padding-left: 28px;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

#maildetail .attachmentName a.archive   { background-image: url(../images/fileicon/Archiv.png); }
#maildetail .attachmentName a.audio     { background-image: url(../images/fileicon/Audio.png); }
#maildetail .attachmentName a.csvfile   { background-image: url(../images/fileicon/Excel.png); }
#maildetail .attachmentName a.docfile   { background-image: url(../images/fileicon/Word.png); }
#maildetail .attachmentName a.htmlfile  { background-image: url(../images/fileicon/HTML.png); }
#maildetail .attachmentName a.ical      { background-image: url(../images/fileicon/iCal.png); }
#maildetail .attachmentName a.imgfile   { background-image: url(../images/fileicon/Image.png); }
#maildetail .attachmentName a.mailfile  { background-image: url(../images/fileicon/Mail.png); }
#maildetail .attachmentName a.mdfile    { background-image: url(../images/fileicon/Markdown.png); }
#maildetail .attachmentName a.pdffile   { background-image: url(../images/fileicon/PDF.png); }
#maildetail .attachmentName a.txtfile   { background-image: url(../images/fileicon/TXT.png); }
#maildetail .attachmentName a.vcard     { background-image: url(../images/fileicon/vCard.png); }
#maildetail .attachmentName a.video     { background-image: url(../images/fileicon/video.png); }
#maildetail .attachmentName a.xlsfile   { background-image: url(../images/fileicon/Excel.png); }

