

* { margin: 0; padding: 0; }
body { font: 14px/1.4; }
#page-wrap { width: 800px; margin: 100px auto; }
#image {
    width: 170px!important;
}
textarea { border: 0; font: 14px; overflow: hidden; resize: none; }
#page-wrap table { border-collapse: collapse; }
#page-wrap table td, table th { border: 1px solid black; padding: 5px; }

#header { height: 30px; width: 100%; margin: 20px 0; background: #0c242e; text-align: center; color: white; font: bold 15px ; text-decoration: uppercase; letter-spacing: 20px; padding: 8px 0px; }

#address { width: 400px; height: 150px; float: left; }
#customer { overflow: hidden; }

#logo { text-align: right; float: right; position: relative; margin-top: 10px; border: 1px solid #fff; max-width: 540px; max-height: 100px; overflow: hidden; }
/* #logo:hover, #logo.edit { border: 1px solid #000; margin-top: 0px; max-height: 125px; } */
#logoctr { display: none; }
#logo:hover #logoctr, #logo.edit #logoctr { display: block; text-align: right; line-height: 25px; background: #eee; padding: 0 5px; }
#logohelp { text-align: left; display: none; font-style: italic; padding: 10px 5px;}
#logohelp input { margin-bottom: 5px; }
.edit #logohelp { display: block; }
.edit #save-logo, .edit #cancel-logo { display: inline; }
.edit #image, #save-logo, #cancel-logo, .edit #change-logo, .edit #delete-logo { display: none; }
#customer-title { font-size: 14px; float: right;text-align: right}

#meta { margin-top: 1px; width: 300px; float: left; }
#meta td { text-align: right;  }
#meta td.meta-head { text-align: left; background: #0c242e; color: white; }
#meta td textarea { width: 100%; height: 20px; text-align: right; }

#items { clear: both; width: 100%; margin: 30px 0 0 0; border: 1px solid black; }
#items th { background: #0c242e; color: white }
#items textarea { width: 80px; height: 50px; }
#items tr.item-row {background: rgb(235, 235, 228);}
#items tr.item-row td { border: 0; vertical-align: top; }
#items td.description { width: 2 00px; }
#items td.item-name { width: 250px; }
#items td.description textarea, #items td.item-name textarea { width: 100%; }
#items td.total-line { border-right: 0; text-align: right; }
#items td.total-value { border-left: 0; padding: 10px; }
#items td.total-value textarea { height: 20px; background: none; }
#items td.balance { background: #eee; }
#items td.blank { border: 0; }

#terms { text-align: center; margin: 20px 0 0 0; }
#terms h5 { text-transform: uppercase; font: 13px ; letter-spacing: 10px; border-bottom: 1px solid black; padding: 0 0 8px 0; margin: 0 0 8px 0; }
#terms textarea { width: 100%; text-align: center;}

textarea:hover, textarea:focus, #items td.total-value textarea:hover, #items td.total-value textarea:focus, .delete:hover { background-color:#EEFF88; }

.delete-wpr { position: relative; }
.delete { display: block; color: #000; text-decoration: none; position: absolute; background: #EEEEEE; font-weight: bold; padding: 0px 3px; border: 1px solid; top: -6px; left: -22px; font-family: Verdana; font-size: 12px; }

.bottom-btn {margin-top: 20px}
.bottom-btn li { display: inline-block; background-color: #e4b248; padding: 10px}
.bottom-btn li:hover {background: #0c242e;}
.bottom-btn li a {color: white; padding: 10px 15px;}

@media print {
	#meta td.meta-head {
		background-color: #0c242e;
		-webkit-print-color-adjust: exact; 
	}
	#items th {
		background-color: #0c242e;
		-webkit-print-color-adjust: exact;
	}
	#header {
		background-color: #0c242e;
		-webkit-print-color-adjust: exact;
	}
	#items tr.item-row {
		background: rgb(235, 235, 228);
		-webkit-print-color-adjust: exact;
	}
	#items tr.item-row {
		background: rgb(235, 235, 228);
		-webkit-print-color-adjust: exact;
	}
	#items td.balance { 
		background: #eee;
		-webkit-print-color-adjust: exact;
	}
}