body{
    background: #eaeae9 url("bg.png") 0 0 repeat-x;
    color: #333333;
    font-family:'Verdana','Helvetica',sans-serif;
    font-size: 11px;
    margin:0;
    padding:0;
}
img{
    border:0;
}
a, a:hover, a:visited{
    color:#333333;
    font-weight:normal;
}
a, a:visited{
    text-decoration:none;
}
a:hover{
    text-decoration:underline;
}
h1 {
	margin: 0 0 20px 0;
	color: #666666;
}
fieldset {
	border: 0;
	padding: 0;
	margin: 0;
}
legend {
	/*background-color: #e20820;
	border: 1px solid #000000;
	font-weight: bold;
	padding: 2px 5px;
	color: #ffffff;*/
	display: none;
}
h2 { 
	background-color: #e20820;
	border: 1px solid black;
	color: #ffffff;
	font-size: 12px;
	padding: 2px 5px;
	top: -20px;
	left: 5px;
	position: absolute;

}
br.clear {
	clear: both;
}
p.error {
	margin: 0 0 10px 0;
	color: red;
	text-decoration: none !important;
}

input#login-submit {
	clear: both;
	margin-left: 80px;
}
div#wrapper {
	width: 1000px;
	margin-left: 120px;
}
div#banner {
	height: 100px;
	line-height: 100px;
	font-size: 16px;
	font-weight: bold;
}
div#banner img {
	float: left;
}
ul#navigation {
	padding: 0;
    height:28px;
    list-style-type:none;
    margin: 0 0 1px 0;
}
ul#navigation li{
    float: left;
    line-height: 28px;
    border-left: 1px solid #ffffff;
    font-size: 12px;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
}
ul#navigation li#login, ul#navigation li#welcome{
	float:right;
	border-left:0; 
	border-right: 1px solid #ffffff;
	color: #333333;
}
ul#navigation li.nav-off{
    color: #ffffff;
    padding:0 10px;
}
ul#navigation li a{
    display: block;
    padding: 0 10px;
}
ul#navigation li:hover a{
    background-color: #ffcc99;
}

ul#navigation-2 {
	margin: 0;
	padding: 0;
	background-color: #fec633;
	list-style-type: none;
	overflow: hidden;
	border-right: 1px solid #ffffff;
	border-bottom: 1px solid #ffffff;
}
ul#navigation-2 li {
	border-left: 1px solid #ffffff;
	float: left;
	line-height: 28px;
	padding: 0 10px;
}
ul#navigation-2 li:hover {
	background-color: #ffcc99;
	cursor: pointer;
}



div#content{
    padding: 20px 0
}
th, td {
	text-align: left;
	border: 1px solid #cccccc;	
	padding: 5px;
}

div#login {
	background-color: #ffffff;
	position: relative;
	border: 2px outset #8d8d8d;
	width: 250px;
	padding: 20px 10px 10px 10px;
	margin-top: 10px;
}

div#login fieldset legend {
	display: none;
}
div#login label {
	width: 100px;
	display: block;
	float: left;
	margin-bottom: 5px;
}
div#login input {
	float: left;
	margin-bottom: 5px;
}
div#login input.textbox {
	width: 120px;	
}
div#login input.submit {
	margin-left: 100px;
}

#filter-ponumber {

}
#autocomplete {
  position:absolute;
  width:250px;
  background-color:white;
  border:1px solid #888;
  margin:0;
  padding:0;
  z-index: 1000;
}
#autocomplete ul {
  list-style-type:none;
  margin:0;
  padding:0;
}
#autocomplete ul li.selected { background-color: #ffb;}
#autocomplete ul li {
  list-style-type:none;
  display:block;
  margin:0;
  padding:2px;
  cursor:pointer;
}



table#quotes {
	width: 100%;
	background: #ffffff;
	border-collapse: collapse;
	border: 2px solid #8d8d8d;
	margin-top: 10px;
}
table#quotes th#po-number {
	width: 150px;
}
table#quotes th#lead-date {
	width: 100px;	
}
table#quotes th#sales-area {
	width: 150px;
}
table#quotes th#sales-person {
	width: 100px;
}
table#quotes th#status {
	width: 60px;
}
table#quotes th#first-appointment-date {
	width: 100px
}
table#quotes th#latest-appointment-date {
	width: 100px;
}
table#quotes th#comments {
	width: 140px;
}
table#quotes th, table#quotes th a {
	font-weight: bold;
}
#previous {
	font-weight: bold;
}
#next {
	float: right;
	font-weight: bold;
}



#details {
	float: left;
	width: 400px;
	position: relative;
	border: 2px outset #8d8d8d;
	padding: 20px 10px 10px;
	background-color: white;
	margin-top: 10px;
}
#details label {
	float: left;
	width: 130px;
	margin-bottom: 5px;
}
#details input.textbox {
	float: left;
	margin-bottom: 5px;
	width: 260px;
}
#details textarea {
	width: 260px;
}
#details input.button {
	margin: 10px 0 0 130px;
}



tr.active td {
	background-color: #ffff99;
}
tr.LOST td {
	back	ground-color: #ff9999;
}
tr.LIVE td {
	background-color: #ffff99;
}

div#top {
	overflow: hidden;
	padding-bottom: 10px;
	border-bottom: 1px solid #8d8d8d;
	margin-bottom: 10px;
}
div#left {
	float: left;
	width: 350px;
	padding-top: 10px;
}
div#right {
	float: right;
	width: 530px;
}

/* Details box */


#installation-details {
	display: block;
	position: relative;
	border: 2px outset #8d8d8d;
	background-color: #ffffff;
	padding: 20px 10px 10px 10px;
}

#contact-details {
	margin-top: 20px;
	background-color: #ffffff;
	border: 2px outset #8d8d8d;
	display: block;
	padding: 20px 10px 10px 10px;
	position: relative;
}

#installation-details br, #contact-details br {
	clear: both;
}
#installation-details label, #contact-details label {
	width: 130px;
	display: block;
	float: left;
}
#installation-details input.text, #contact-details input.text {
	float: left;
	margin-bottom: 5px;
	width: 180px;
}
#installation-details input.checkbox {
	margin-bottom: 5px;
}
#installation-details textarea {
	width: 180px;
	height: 80px;
}
div#salesman-assignment, div#area-assignment {	
	margin-bottom: 20px;
	background-color:#FFFFFF;
	border:2px outset #8D8D8D;
	display:block;
	padding:20px 10px 10px;
	position:relative;	
	margin-top: 10px;
	float: right;
	width: 504px;
}
div#salesman-assignment label, div#area-assignment label {
	float: left;
	margin-bottom: 5px;
	width: 130px;
}
div#salesman-assignment select, div#area-assignment select {
	float: left;
	margin-bottom: 5px;
}
div#salesman-assignment input, div#area-assignment input {
	margin: 10px 0 0 130px;
}
/* Appointments */
div#appointments {
	background-color:#FFFFFF;
	border:2px outset #8D8D8D;
	display:block;
	padding:20px 10px 10px;
	position:relative;	
	margin-top: 10px;
}
div#appointments label {
	display: block;
	float: left;
	width: 130px;
}
div#appointments br {
	clear: both;
}
#appointment_day, #appointment_month, #appointment_hour, #appointment_minute {
	width: 20px;
	margin-bottom: 5px;
}
#appointment_year {
	width: 40px;
	margin-bottom: 5px;	
}
div#appointments table {
	width: 100%;	
	border-collapse: collapse;
	margin-bottom: 20px;
}
div#appointments table th, div#appointments table td {
	margin: 0;
	padding: 5px;
}
div#appointments table th#appointments-col-1 {
	width: 30px;
}
div#appointments table th#appointments-col-2 {
	width: 80px;
}
div#appointments table th#appointments-col-3 {
	width: 80px;
}
div#appointments textarea {
	margin-bottom: 10px;
}
div#appointments input.button {
	margin-left: 130px;
}

/* Quotes */
#quotes {

	background-color: #ffffff;
	border: 1px solid #828177;
	padding: 8px;
	
	background-color:#FFFFFF;
	border:2px outset #8D8D8D;
	display:block;
	padding:20px 10px 10px;
	position:relative;	
	margin-top: 30px;	
}
#quotes legend {
	display: none;
}

div#quotes table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 10px;
}
tr.SOLD td {
	background-color: #99ff99;
}
div#quotes table th, div#quotes table td {
	margin: 0;
	padding: 5px;
}
div#quotes table th#quotes-col-1 {
	width: 150px;
}
div#quotes table th#appointments-col-2 {
	width: 80px;
}
div#quotes table th#quotes-col-3 {
	width: 80px;
}

/* Requests */
#requests-wrapper {
	padding:20px 10px 10px;
}

.requests {
	width: 100%;
	background: #ffffff;
	border-collapse: collapse;
	border: 2px solid #8d8d8d;
	margin-bottom: 10px;
	display: block;
	position: relative;
		padding:20px 10px 10px;
}
.requests-col-1 {
	width: 100px;
}
.requests-col-2 {
	width: 200px;
}
.requests-col-3 {
	width: 150px;
}
.requests-col-4 {
	width: 510px;
}
.requests th, .requests th {
	vertical-align: top;
	background-color: white !important;
}
.request-needed {
	background-color: #ff9999;
	font-weight: bold;
}
.request-needed span {
	float: left;
}
.request-needed form {
	float: left;
}
.request-responded {
	background-color: #99ff99;
	font-weight: bold;
}

.request-needed input {
	margin-left: 50px;
}

/* Filters */
fieldset#filters {
	margin: 5px 0 20px 0;
}
fieldset#filters label, form#filter-ponumber label {
	float: left;
	width: 200px;
	display: block;
	height: 22px;
	line-height: 22px;
	font-weight: bold;
	border-bottom: 1px dashed #999999;
	margin-right: 10px;
}
fieldset#filters span {
	height: 22px;
	line-height: 22px;
	font-style:italic;
}
fieldset#filters span, fieldset#filters input {
	float: left;
}
fieldset#filters div.break {
	height: 5px;
	clear: both;
}

input#filter-date-from-day, input#filter-date-from-month, input#filter-date-to-day, input#filter-date-to-month {
	width: 20px;
	margin: 0 5px 0 0;
}
input#filter-date-from-year, input#filter-date-to-year {
	width: 40px;
	margin: 0 5px 0 0;
}
input#filter-date-from-day, input#filter-date-to-day {
	margin-left: 5px;
}
input#filter-date-to-year {
	margin-right: 10px;
}
fieldset#filters input.checkbox {
	margin: 5px 10px 0 5px;
}

/* Admin */

#admin-salesmen {
	margin-top: 10px;
	border: 2px solid #8d8d8d;
	background: #ffffff;
	padding: 10px;
	overflow: hidden;
}
#admin-salesmen table {
	border-collapse: collapse;
	width: 400px;
	border: 1px solid #cccccc;
	float: left;
}
#admin-appointments {
	margin-top: 10px;
	border: 2px solid #8d8d8d;
	background: #ffffff;
	padding: 10px;
	overflow: hidden;	
}
#admin-appointments table {
	border-collapse: collapse;
	width: 100%;
	border: 1px solid #cccccc;
}
table#admin-ratio-salesmen {
	margin: 10px 0 0 20px;
	width: 540px !important;
}


div#abp {
	float: left;
	width: 400px;
	margin-left: 40px;
	margin-top: 10px;
}
div#abp label {
	font-weight: bold;
	vertical-align: top;
	width: 160px;
}
div#abp select, div#abp input, div#abp label {
	float: left;
	display: block;
}
div#abp select {
	float: left;
	width: 200px;
	display: block;
}
div#abp input.submit {
	margin-left: 160px;
	margin-top: 10px;
}
div#abp p {
	margin: 0 0 10px 0;
	font-weight: bold;
	text-decoration: underline;
}

#edit-appointment {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #cccccc;
}