/* application css */
html {
	overflow: -moz-scrollbars-vertical !important;
}

body {
	font-family: "helvetica neue", "arial", "helvetica", sans-serif;
	font-size: 11.5pt;
	margin: 1.5em auto;
	max-width: 725px;
    -webkit-text-size-adjust: 100%;
	color: #555;
}

a,
a:visited {
	color: #3993d1;
}

/* default form styling */

input,
button,
select,
textarea {
	color: #555;
	background-color: white;
	line-height: 1.2em;
	padding: 3px 5px;
}
textarea {
	line-height: 1.35em;
	resize: vertical;
}
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
textarea {
	border: 1px solid #ccc;
}
input:focus, textarea:focus {
	outline-style: solid;
	outline-width: 2px;
}
input[type="checkbox"] {
	margin-top: 0.5em;
}
select {
	border: 1px solid #ccc;
}
input:focus,
textarea:focus {
	border-color: #888;
	color: #303030;
	background-color: white;
	outline: 0;
}
textarea:disabled {
	background-color: #f0f0f0;
}


input[type="submit"]:focus,
button:focus {
	border-color: #888;
	outline: 1px solid #888;
}

/* these must be separate */
::-webkit-input-placeholder {
	color: #aaa;
	font-style: italic;
}
:-moz-placeholder {
	color: #aaa;
	font-style: italic;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
div.select2-choices {
	display: inline-block;
	padding: 2px 10px 2px 10px;
	line-height: 18px;
	color: #333333;
	text-align: center;
	background-color: #fafafa;
	border: 1px solid #ccc;
	border-bottom-color: #bbb;
	cursor: pointer;
}
button:first-child,
input[type="button"]:first-child,
input[type="reset"]:first-child,
input[type="submit"]:first-child {
	margin-left: 0;
}
button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	color: #333333;
	text-decoration: none;
	background-color: #e6e6e6;
}

select {
	margin-top: 3px;
	min-width: 100px;
}
select:focus {
	border-color: rgba(160,160,160,.8);
	color: #303030;
	outline: 0;
}
select::-moz-focus-inner {
	border: 0;
	outline: 0;
}

div.field_with_errors {
	display: inline;
}

div.field_with_errors input[type="text"],
div.field_with_errors input[type="email"],
div.field_with_errors input[type="password"] {
	border: 1px solid red;
}
div.field_with_errors input:focus {
	border-color: rgba(255,0,0,.8);
}

input:disabled, button:disabled {
	background-color: #e9e9e9;
	color: gray;
}

table.data caption {
	font-weight: bold;
	text-align: left;
	padding-bottom: 3px;
}
table.data .capright {
	float: right;
}

table.data th {
	background-color: #eaeaea;
	border-bottom: 1px solid #cacaca;
	border-top: 1px solid #cacaca;
	padding: 3px;
	padding-left: 3px;
	text-align: left;
}
table.data th img {
	vertical-align: middle;
	margin-bottom: 5px;
}

table.data th.r, table.data td.r {
	text-align: right;
	padding-right: 3px;
}

table.data td {
	padding-left: 5px;
	padding-top: 4px;
	padding-bottom: 3px;
}
table.data td img {
	vertical-align: middle;
	padding-left: 2px;
}

table.thread td {
	padding: 0px 0px 0px 3px;
	margin-bottom: 0px;
	line-height: 17px;
	/* text-vertical-align: middle; */
	overflow: hidden;
}
table.thread td img {
	vertical-align: middle;
}

table.data tr.row0 td {
	background-color: white;
	border-bottom: 1px solid #eaeaea;
}
table.data tr.row1 td {
	background-color: #f9f9f9;
	border-bottom: 1px solid #eaeaea;
}
table.data tr.nobottom td {
	border-bottom: 0px;
	padding-bottom: 0px;
}

table.data tr.void td, table.data tr.void td a {
	text-decoration: line-through;
	color: gray !important;
}


nav {
	color: #bbb;
	font-size: larger;
	font-weight: bold;
	padding: 1em;
	text-align: center;
	vertical-align: middle;
}
nav a,
nav a:visited {
	color: #bbb;
	text-decoration: 1px dotted underline;
}
div#logo {
	margin-bottom: 1em;
}
div.subheader {
	margin-bottom: 1em;
	text-align: center;
}
div.subheader a {
	font-size: 12pt;
	font-weight: bold;
	margin-left: 1em;
	margin-right: 1em;
	text-decoration: none;
}

main {
	padding: 0 0.25em;
}

section {
	margin-bottom: 2em;
	padding: 0.5em;
	line-height: 1.45em;
}

hr {
	width: 75%;
	margin-top: 3em;
	margin-bottom: 2em;
	border-color: lightgray;
}

section h1,
section h2,
section div.details {
	text-align: center;
}

section h1,
section h2 {
	font-weight: bold;
	margin-bottom: 0.25em;
}
section h1 {
	font-size: 18pt;
}
section h2 {
	font-size: 16pt;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}
h3 {
	font-size: 12pt;
}

section h1 a,
section h1 a:visited,
section h2 a,
section h2 a:visited {
	color: #333;
	text-decoration: none;
}

h3 {
	margin-bottom: 0;
}

section div.details {
	color: #888;
	font-size: 10pt;
}

section img {
	max-width: 100%;
}


/* for flash_errors(), flash_notices() and flash_successes() */
div.flash-error,
div.flash-notice,
div.flash-success {
	border: 2px solid;
	margin: 5px 5px 10px 5px;
	padding: 5px 10px;
}

div.flash-error {
	background-color: #ffe7e7;
	border-color: red;
}

div.flash-success {
	background-color: #e8ffe7;
	border-color: green;
}

div.flash-notice {
	background-color: #e0e2fc;
	border-color: blue;
}

/* for error_messages_for() */
div.fieldWithErrors {
	display: inline;
}

div.fieldWithErrors input,
div.fieldWithErrors select,
div.fieldWithErrors textarea {
	border: 2px solid red;
	padding: 2px;
}

.page_nav {
	text-align: center;
	margin-top: 3em;
	color: #555;
}
.page_nav.top {
	margin-top: 0;
	margin-bottom: 1em;
}
.page_nav .page {
	border: 1px solid #ddd;
	display: inline-block;
	padding: 5px 10px;
	margin-left: 0.5em;
	text-align: center;
	border-radius: 8px;
}
.page_nav .page.ellipses {
	border-color: transparent;
}

.page_nav .page.cur_page {
	background-color: #f7f7f2;
	font-weight: bold;
	color: #555;
}

footer {
	color: #aaa;
	font-size: 0.9em;
	margin-bottom: 2em;
	margin-top: 3em;
	text-align: center;
}
footer a,
footer a:visited {
	color: gray;
}

/* mobile view */

@media only screen and (max-width: 675px) {
	body {
		margin: 0;
		max-width: auto;
	}

	div#logo img {
		width: 75%;
		height: 75%;
	}

	div.subheader {
		margin-bottom: 0;
	}

	div.subheader a {
		display: block;
	}

	main {
		padding-left: 1em;
		padding-right: 1em;
	}

	section {
		padding-left: 0;
		padding-right: 0;
	}

	.message_body {
		font-size: 9pt;
		width: auto;
	}
}
