html, body { width: 100%; }
body { margin: 10px; width: 860px; }

#prototypes { display: none; }

#cost-breakdown {
	display: none;
	position: fixed;
	background-color: rgba(214, 214, 214, 0.9);
	border: solid 1px black;
	top: 50px;
	right: 10px;
	z-index: 2;
	padding: 3px;
	border-radius: 10px;
	box-shadow: 10px 10px 5px rgba(128, 128, 128, 0.5);
}

th, td {
	padding: 10px;
}

th { text-align: left; }

td:first-child {
	text-align: left;
}

td  {
	text-align: right;
}

header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: auto;
	background-color: rgba(255, 255, 255, 0.75);
	border-bottom: solid 1px black;
	padding: 5px;
	z-index: 1;
	text-align: center;
}

.field-info {
	font-style: oblique;
	color: blue;
	display: none;
}

#header-shim {
	height: 100px;
}

#details {
	position: absolute;
	left: 10px;
	line-height: 50px;
}

#the-final-word {
	position: absolute;
	right: 10px;
	top: 10px;
	height: auto;
	border-radius: 10px;
	padding: 10px;
	text-align: center;
	border-style: solid;
	border-width: 1px;
	cursor: pointer;
	color: white;
}

#the-final-word > var {

	font-weight: bold;
}

#the-final-word.neg {
	background-color: red;
	border-color: #aa0000;
}

#the-final-word.pos {
	background-color: green;
	border-color: #00aa00;
}

h1 {
	color: black;
	text-shadow: 2px 2px 2px rgba(128, 128, 128, 0.5);
	margin: 0.25em 0
}

section {
	box-shadow: 10px 10px 5px rgba(128, 128, 128, 0.5);
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	padding: 5px 5px 5px 5px;
	margin: 10px;
	float: left;
	position: relative;
}

section > h2 {
	margin: 0;
	text-align: center;
	text-shadow: 2px 2px 2px rgba(128, 128, 128, 0.5);
	border-bottom-style: solid;
	border-bottom-width: 1px;
}

section.green {
	background: #8bf484; /* Old browsers */
	background: -moz-linear-gradient(top,  #8bf484 0%, #177717 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#8bf484), color-stop(100%,#177717)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #8bf484 0%,#177717 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #8bf484 0%,#177717 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #8bf484 0%,#177717 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #8bf484 0%,#177717 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#8bf484', endColorstr='#177717',GradientType=0 ); /* IE6-9 */
}

section.green > h2 {
	color: black;
	border-bottom-color: #00aa00;
	text-shadow: 2px 2px 2px rgba(0, 255, 0, 0.5);
}

section.gold {
	background: #ffdd49; /* Old browsers */
	background: -moz-linear-gradient(top,  #ffdd49 0%, #ea8b25 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffdd49), color-stop(100%,#ea8b25)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #ffdd49 0%,#ea8b25 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #ffdd49 0%,#ea8b25 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #ffdd49 0%,#ea8b25 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #ffdd49 0%,#ea8b25 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffdd49', endColorstr='#ea8b25',GradientType=0 ); /* IE6-9 */
}

section.gold > h2 {
	color: black;
	border-bottom-color: #cc9900;
	text-shadow: 2px 2px 2px rgba(255, 255, 0, 0.5);
}

section.purple {
	background: #e28ecf; /* Old browsers */
	background: -moz-linear-gradient(top,  #e28ecf 0%, #e045be 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e28ecf), color-stop(100%,#e045be)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #e28ecf 0%,#e045be 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #e28ecf 0%,#e045be 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #e28ecf 0%,#e045be 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #e28ecf 0%,#e045be 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e28ecf', endColorstr='#e045be',GradientType=0 ); /* IE6-9 */
}

section.purple > h2 {
	color: black;
	border-bottom-color: #e28ecf;
	text-shadow: 2px 2px 2px rgba(255, 0, 255, 0.5);
}

section.red {
	background: #db3232; /* Old browsers */
	background: -moz-linear-gradient(top,  #db3232 0%, #ff0800 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#db3232), color-stop(100%,#ff0800)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #db3232 0%,#ff0800 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #db3232 0%,#ff0800 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #db3232 0%,#ff0800 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #db3232 0%,#ff0800 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#db3232', endColorstr='#ff0800',GradientType=0 ); /* IE6-9 */
}

section.red > h2 {
	color: black;
	border-bottom-color: #ff0800;
	text-shadow: 2px 2px 2px rgba(255, 0, 0, 0.5);
}

section > .shim {
	height: 30px;
}

section > .footer-row {
    background-color: rgba(0,0,0,0.75);
    position: absolute;
    bottom: 0px;
    left: 0px;
    right:  0px;
    width: auto;
    height: 30px;
    line-height: 30px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    text-align: right;
	padding-right: 10px;
	font-size: 0.8em;
}

section.green > .footer-row {
	color: #177717;
}

section.gold > .footer-row {
	color: #ea8b25;
}

section.purple > .footer-row {
	color: #e045be;
}

section.red > .footer-row {
	color: #ff0800;
}

.control-row {
	margin: 1em 0;
}

.control-row > label {
	text-align: right;
	display: inline-block;
	width: 200px;
	float: left;
	font-weight: bold;
	margin-right: 1em;
}

input[type=number] {
	width: 100px;
	text-align: right;
}

input:focus, select:focus {
	background-color: #ffffcc;
}

/* federal tax categories */

.receipt-category-group  {
	margin-top: 1em;
}

.receipt-category-group > span {
	font-size: 1.5em;
	font-weight: bold;
}

.receipt-category-list {
	margin-top: 0.5em;
	margin-left: 20px;
}

.receipt-category {
	padding: 0.25em 0;
}

.receipt-category:hover {
	background-color: rgba(255, 255, 255, 0.5);
}

.receipt-category > .value {
	display: inline-block;
	float: right;
	margin-right: 10px;
}

.receipt-category > .value > input {
	width: 150px;
}

.center {
	text-align: center;
}

#btnCalculate {
	padding: 10px;
	background-color: yellow;
	margin: 10px 0;
}