body[text="#404040"], body[onload] {
	background-image: linear-gradient(90deg, #002D3D 0%, #0078A2 33%, #0078A2 66%, #002d3d 100%);
}
body, td, th, dd, dt, h1, h2, h3, h4, h5, h6, p, ol, ul, li {
  font-family: bitstream vera sans,verdana,sans-serif;
  line-height: 1.4em;
}
body, small {
  font-size: 8pt;
}
td, th {
  font-size: 10pt;
}
textarea, pre {
  font-family: monospace;
  font-size: 9pt;
}

a {
	text-decoration: none;
	display: inline-block;
}
form a:active {
	color: #0078A2 
}
form a:visited {
	color: #0078A2
}
form a:hover {
	color: #005AAB;
	text-decoration: underline
}
::selection {
   background: #0078A2;
   color: #fff;
   }
::-moz-selection {
   background: #0078A2;
   color: #fff;
   }

/* Login & Signout Page */

body[onload] form > table[bgcolor="#ffffff"], body[bgcolor="#FFFFFF"] > table[width="50%"] {
    margin-top: 33vh;
    width: 33vw;
    margin-left: auto;
    margin-right: auto;
}
body[onload] form > table[bgcolor="#ffffff"] { /* Login Page only */
    padding: 13px 0 21px;
}

/* Left Menu Frame */

body[bgcolor="#ACB4B6"] {
	background-image: linear-gradient(to right, #004C65 0%, #002d3d 66%, #002d3d 100%);
}
body[bgcolor="#ACB4B6"] > table table {
	margin-left: auto;
    margin-right: auto;
    padding: 13px 21px 8px;
    border-bottom: 1px solid #DDD;
}

body[bgcolor="#ACB4B6"] > table td > span {
	display: block;
	padding: 5px 0 3px;
    margin-bottom: -1em;
    font-weight: bolder;
    letter-spacing: 1px;
    transition: 0.39s;
}
body[bgcolor="#ACB4B6"] > table td > span:hover {
	background-color: #002d3d;
}
body[bgcolor="#ACB4B6"] > table td > span a font:hover, body[bgcolor="#ACB4B6"] > table td > span a:hover {
	color: #ffffcc;
}

/* Composing Form */

form[name="compose"] {
	padding-top: 1em;
}
form[name="compose"] > table {
	background-color: #eee;
	padding: 13px 0 13px 0;
	width: 92%;
    max-width: 900px;
}
form[name="compose"] > table tr td {
	background-color: #eee;
}
form[name="compose"] > table tr:nth-child(1) td input[type="text"],
form[name="compose"] > table tr:nth-child(2) td input[type="text"],
form[name="compose"] > table tr:nth-child(3) td input[type="text"],
form[name="compose"] > table tr:nth-child(4) td input[type="text"] {
	width: calc(80vw - 10% + 13px);
    max-width: calc(900px - 10%);
}
form[name="compose"] > table tr:nth-child(4) td input {
	font-weight: bold;
}
form[name="compose"] > table tr:nth-child(5), form[name="compose"] > table tr:nth-child(6) {
	margin-top: 5px;
}
form[name="compose"] > table tr:nth-child(5) select {
	margin: 0 34px 0 8px;
}
form[name="compose"] > table tr:nth-child(6) td input {
	margin-right: 3px;
}
form[name="compose"] > table tr td textarea {
	width: 80vw;
    max-width: 900px;
	margin: 8px;
	padding: 13px;
	font-size: 108%;
}

/* Right Reading Pane */

body > table[bgcolor="#CCCCCC"]:first-of-type {
	display: flow-root;
}
body > table[bgcolor="#CCCCCC"]:first-of-type td {
	float: left;
	width: unset;
	padding-right: 13px;
}
body > table[bgcolor="#CCCCCC"]:first-of-type td:nth-child(2) {
    background-color: #bbb;
    padding-left: 1ex;
    padding-right: 1ex;
}

/* Right Reading Pane, show email header */

body[text="#404040"] > table[width="99%"] {
    background-color: #ddd;
    width: 100%;
    padding: 5px 0 8px 13px;
}

/* Right Reading Pane, quotations */

body[text="#404040"] > table[width="100%"]:last-of-type table table table font:first-of-type:before, blockquote {
	border-top: 1px solid #999;
    width: 100%;
    display: block;
    content: '';
    height: 5px;
}

/* Right Reading Pane, print preview */

body[text="#000000"] > table table {	/* attachements */
    border: none;
    opacity: 61%;
}
body[text="#000000"] > table table td {
    border: 0;
    padding: 0 1ex;
}
body[text="#000000"] > table table td:first-of-type {
    min-width: 150px;
}
body[text="#000000"] > table table th {
    background-color: #eee;
    padding: 2px 1ex;
    min-width: 300px;
    text-align: left;
}

/* Address Book Adding Form */

form[name="f_add"] {
	background-color: #fff;
}

/* Search Page */

table ~ div {
    color: #9e9e9e;
}
form[name="s"] ~ div {
    background-color: #eee;
}

/* Help Page */

body[text="#404040"] > table[width="90%"]:last-child {
	background-color: #fff;
    width: calc(95% - 4px);
}

/* Fetch from POP3 server Page */

center > form > table {
	background-color: #fff;
    width: calc(95% - 4px);
    padding: 21px 0px;
}

/* Failed Login Attempt Page */

body > center > img[alt="atec21 Logo"] {
	background-color: #fff;
}
