body {
    font-family: "Lucida Grande", Arial, sans-serif;
    font-size: 12px;
    background-color: #fff;
    color: #000;
    margin: 0;
    min-width: 650px;
}

p {
	margin: 0 0 1em 0;
	line-height: 1.5em;
	font-size: 12px;
}

h1 {
	font-size: 23px;
	font-weight: normal;
	margin: 0 0 .3em 0;
}

h2 {
	font-size: 21px;
	font-weight: normal;
	margin: 0 0 .3em 0;
}

h3 {
    font-size: 14px;
    font-weight: normal;
    margin: 0 0 .3em 0;
}

table {
    font-size: 12px;
}

label {
    display: block;
    font-weight: bold;
    margin: 20px 0 2px 0;
}

a img {
    border: none;
}
a {
	color: #006600;
}

a:hover {
	color: #009900;
	text-decoration: underline;
}

acronym {
    color: #4A7023;
}


.right_align {
    text-align: right;
}

.description {
    margin: 10 0 10px 0;
}

#master_container {
    margin: 0 auto 0 auto;
}

#content {
    margin: 15px;
    min-width: 750px;
}
#content updated{
	font-weight:bold;
	color: #ff0000;
}

.right_bar_link {
    border: 1px solid #d2d2d2;
    margin-bottom: 3px;
    padding: 5px 5px 5px 10px; 
    width: 160px;
    cursor: pointer;
    background: url("../images/sub.gif") no-repeat right;
}

a#right_bar_link, a:visited#right_bar_link {
    color: #fff;
    text-decoration: none;
    display: block;
    border: 1px solid #d2d2d2;
    margin-bottom: 3px;
    padding: 5px 5px 5px 10px; 
    width: 140px;
    background: url("../images/sub.gif") no-repeat right;
}

a {
	text-decoration: none;
}

.headernavilink A:link {
	text-decoration: none;
}
.headernavilink A:hover {
	text-decoration: underline;
}

.right_bar_link a:link, .right_bar_link a:visited {
    color: #fff;
    text-decoration: none;
}


/*** COLORS ***/

.meta {
    color: gray;
}

.code {
    font-family: Courier, serif;
    font-size: 12px;
}


/*** END COLORS ***/



/**** HEADER ****/

#header {
    /*background-image: url(../images/_header_bg.gif);*/
    background-repeat: repeat-x;
    background-color: #0D6910;
    color: #fff;
    height: 50px;
    text-align: left;
}

#header a {
    color: #fff;
    text-decoration: none;
}

#user_links {
    float: right;
    display: inline;
    padding: 3 5px 0 0;
}



#main_nav {
	background-color: #dadada;
	position: relative;
	width: 100%;
	border-top: 1px solid #a0a0a0;
	border-bottom: 1px solid #a0a0a0;
	font-size: 12px;
	font-family: Arial, sans-serif;
	height: 25px;
}

#main_nav a:link, #main_nav a:visited {
	color: #333;
	border-bottom: none;
	padding: 7px 9px 7px 9px;
    display: block;
    text-decoration: none;
}

#main_nav a:hover {
    color: #fff;
    border-top: none;
    border-bottom: none;
    background-color: #0D6910;
}

#main_nav #user {
    float: right;
    margin: 0;
    padding-bottom: 10px;
}

#main_nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font: bold 10px "Lucida Grande", Arial, sans-serif;
}

#main_nav ul li {
    list-style: none;
    margin: 0;
    display: inline;
}

#main_nav li {
    float: left;
}

/**** END HEADER ****/



/*** Homepage ***/

#user_login {
    border: 1px solid #d2d2d2; 
    padding: 5px; 
    background-color: #BCED91;
}


#blog_updates {
    margin: 0px 20px 50px 475px;
    padding: 10px;
}

#data_streams {
    position: absolute;
    top: 78px;
    padding: 0 20px 0 10px;
    background-color: #fff;
}

#data_streams h2, #blog_updates h2 {
    font-size: 15px;
    border-bottom: 1px solid #D1D1D1;
    padding-bottom: 2px;
}

.stream {
    font-size: 10px;
    padding: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.stream h3 {
    font-size: 13px;
    font-weight: normal;
    padding-bottom: 0.8em;
}

.stream .meta {
    text-align: right;
}

.time {
	color: #999999;
	margin: 0;
	padding: 0;
}

#home_links {
    border-top: 1px dashed #d2d2d2;
    margin-top: 50px;
    padding-top: 15px;
}

#home_links ul {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

#home_links ul li {
    margin: 15px 0 15px 0;
}

/*** end of homepage ***/



/*** Project creation ***/

#project_create label, #table_create label, #rss_create label {
    display: block;
    font-weight: bold;
    margin: 20px 0 2px 0;
}

#project_create input.submit, #table_create input.submit {
    margin-top: 20px;
    font-weight: bold;
}

/*** end project creation ***/

/*** Query View ***/

#query_tables {
    border: 1px solid #517693;
    padding: 10px 10px 10px 10px;
    margin: 0 20px 0 0;
    min-width: 500px;
}

#query_tables tr th {
    padding: 5 20px 0 0;
}

#query_tables tr td {
    
}

#query_tables td.query_project {
    font-weight: bold;
    padding: 5px 20px 0 0;
}

#query_tables td.query_table {
    padding: 5px 20px 0 0;
}

#query_tables td.query_size {
    padding: 5px 20px 0 0;
}

/*** Notification View ***/
#project_note_tables {
    border: 1px solid #009900;
    padding: 10px 10px 10px 10px;
    margin: 0 20px 0 0;
    min-width: 500px;
    background: #F0F0F0;
}
#new_notification{
    border: 1px solid #009900;
    border-top: none;
    padding: 10px 10px 10px 10px;
    margin: 0 20px 0 0;
    /*min-width: 500px;*/
    background: #F0F0F0;	
}

#project_note_tables tr th {
    padding: 5 20px 0 0;
}

#project_note_tables tr td {
    
}

#project_note_tables td.table_name {
    font-weight: bold;
    padding: 5px 20px 0 0;
}

#project_note_tables td.table_description {
    padding: 5px 20px 0 0;
}

#project_note_tables table{
    border-collapse: collapse;
}


#project_note_tables th{
    text-align: left;
    padding: 0 30px 5px 0;
    border-bottom: 1px solid gray;
}
#project_note_tables th.first{
    /*text-align: right;*/
    padding: 5px 7px 0px 0px;
    border-bottom: 1px solid gray;
}

#project_note_tables td{
    padding: 5px 10px 5px 3px;    
}
#project_note_tables td.del{
    padding: 5px 3px 5px 0px;        
}

#project_note_tables tr.continuing{
	padding: 0px;
	margin: 0px;
	border-bottom: 1px solid gray;
}
#project_note_tables .note_col{
	font-weight: bold;
}
#project_note_tables .note_cond{
	color: gray;
}
#project_note_tables .note_para{
	font-style: italic;
}

/*** Project View ***/

#project_description {
    padding: 10px 0 10px 0;
}

#project_tables {
    border: 1px solid #C1FFC1;
    padding: 10px 10px 10px 10px;
    margin: 0 20px 0 0;
    min-width: 500px;
}

#project_tables tr th {
    padding: 5 20px 0 0;
}

#project_tables tr td {
    
}

#project_tables td.table_name {
    font-weight: bold;
    padding: 5px 20px 0 0;
}

#project_tables td.table_description {
    padding: 5px 20px 0 0;
}


#project_map {
    width: 300px;
    height: 300px;
    margin: 0px 20px 0 0;
    background-color: #e2e2e2;
}

#project_sensors {
    margin-top: 10px;
}


/*
#project_tables_list ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}
*/


#project_meta {
    padding: 10px;
}

#project_meta table {
    border-collapse: collapse;
}

#project_meta td {
    border-top: 1px solid #d2d2d2;
    border-bottom: 1px solid #d2d2d2;
    padding: 5px;
}

#project_meta td.field {
    font-weight: bold;
    padding: 5 15 5 5px;
}

#project_table {
    padding: 5px;
}

#project_table table {
    border-collapse: collapse;
}

#project_table th {
    border: 1px solid #d2d2d2;
    padding: 5px 15px 5px 15px;
}

#project_table td {
    border: 1px solid #d2d2d2;
    padding: 5px 10px 5px 10px;
}

#project_table td.field {
    font-weight: bold;
    padding: 5px 20px 5px 5px;
}


#project_notes {
    margin: 10px 20px 10px 0;
    padding: 20px 0 0 0;
    text-align: left;
}

#project_notes ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

#project_notes li.note {
    padding: 0 0 20px 0;
}

#note_form {
    background-color: #e8e8e8;
    padding: 10px;
    width: 375px;
}

#note_form textarea {
    border: 1px solid #000;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

/* end project view */



/********project settings ***********/

#project_users {
    margin-top: 20px;
}

#project_users table.users {
    border-collapse: collapse;
    margin-top: 10px;
}

#project_users table.users td {
    border-bottom: 1px solid #d2d2d2;
    padding-bottom: 5px;
}

#project_users table td.email {
    padding-right: 50px;
    font-weight: bold;
}

#privacy_settings {
    border-top: 1px solid #d2d2d2;
    padding-top: 20px;
    margin-top: 50px;
}

#privacy_settings ul {
    list-style-type: none;
}




/*** table view ***/

#table_updated {
    margin-top: 10px;
}

#table_attributes {
    margin-top: 0px;
    margin-right: 20px;
    min-width: 500px;
}

#project_tables table, #table_attributes table, #query_tables table, #table_graph table {
    border-collapse: collapse;
}

#table_attributes #ids_sensor {
    background-color: #CCCCFF;
}

#project_tables th, #table_attributes th, #query_tables th, #table_graph th {
    text-align: left;
    padding: 0 30px 5px 0;
    border-bottom: 1px solid gray;
}

#project_tables td, #table_attributes td, #query_tables td {
    padding: 5px 20px 5px 5px;
}

#table_attributes td.attribute_name {
    font-weight: bold;
}

#table_attributes td.attribute_description {
    
}

#table_attributes td.attribute_type, #table_attributes th.attribute_type {
    padding: 5px 5px 5px 0;
}


#attribute_add_link {
    margin-top: 10px;
}

#attribute_add_form {
    margin-top: 10px;
}

#attribute_add_form table {
    width: 500px;
}

#attribute_add_form th, #attribute_add_form td {
    border: none;
}

#attribute_add_form th {
    text-align: left;
    padding: 0;
}

/*** Graphing css ***/

#graph_add_link {
    margin-top: 10px;
}

#graph_add_form {
    margin-top: 10px;
}

#graph_add_form table {
    width: 500px;
}

#graph_add_form th, #graph_add_form td {
    border: none;
}

#graph_add_form th {
    text-align: left;
    padding: 0;
}

#table_graph td.graph_name {
    font-weight: bold;
}

#table_graph td.graph_criteria {
    
}

#table_graph td.graph_field, #table_graph th.graph_field {
    padding: 5px 5px 5px 0;
}







#more_project_tables {
    background-color: #d2d2d2;
    padding: 10 10 10 10px;
    min-width: 180px;
}

#more_project_tables ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

#more_project_tables li {
    padding-bottom: 15px;
}



/*** end table view ***/


/*** Data browsing ***/

#data table {
    margin: 10px 0 10px 0;
    border-collapse: collapse;
}

#data table th {
    border: 1px solid #e2e2e2;
    background-color: #d2d2d2;
}

#data table td {
    border: 1px solid #e2e2e2;
}




/*** Sensor Identification ***/

#sensors_table table, #untagged_sensors table {
    border-collapse: collapse;
}

#sensors_table th, #untagged_sensors th {
    border: 1px solid #d2d2d2;
    padding: 5px 10px 5px 10px;
}

#sensors_table td, #untagged_sensors td {
    border: 1px solid #d2d2d2;
    padding: 5px 10px 5px 10px;
    text-align: center;
}

#sensors_table input {
    
}

#untagged_sensors {
    margin-top: 30px;
}

#untagged_sensors .new_sensor td {
    background-color: #FFFFAA;
    padding: 1px;
}

#untagged_sensors .new_sensor input {
    border: 1px solid #FFFFAA;
    padding: 2;
}



/******* ATTRIBUTE VIEW *********/

#attribute table
{
    border-collapse: collapse;
}

#attribute th {
    padding: 5px 40px 5px 0;
    text-align: center;
}

#attribute td {
    padding: 5px 40px 5px 0;
    text-align: left;
}

button.close_link {
    margin: 15px 0 10px 0;
    font-weight: bold;
}


/********* USER VIEW ***********/

#user_projects h3 {
    font-weight: bold;
}

#user_projects a:link, #user_projects a:visited {
    color: #333;
    text-decoration: none;
}

#user_projects a:hover {
    text-decoration: underline;
}

#user_projects .project {
    border: 1px solid #d2d2d2;
    margin: 0 0 15px 0;
    padding: 5px 0 0 0;
}

#user_projects .created_project {
    background-color: #BCED91;
    border: 1px solid #d2d2d2;
    margin: 0 0 15px 0;
    padding: 5px 0 0 0;
}

#user_projects .project_info {
    margin: 0 10px 10px 10px;
}

#user_projects .control_bar {
    background-color: #629632;
    padding: 2px 10px 2px 10px;
}

#user_projects .control_bar a:link, #user_projects .control_bar a:visited {
    text-decoration: none;
    color: #fff;
    margin-right: 10px;
}

#user_tables {
    
}

#user_tables ul {
    list-style-type: none;
    padding: 0 10px 10px 10px;
}

#user_tables li {
    padding: 10px 5px 10px 5px;
    border-bottom: 1px solid #d2d2d2;
}

#user_map {
    background-color: #ffffff;
    margin: 0 10px 0 10px;
    width: 300px;
    height: 300px;
}



/***** Data export ****/

#data_find_options {
    min-width: 375px
}

#data_find_options ul {
    list-style-type: none; 
    padding-left: 0; 
    margin-left: 0;
}

#data_find_options ul li {
    padding-bottom: 25px;
}



/******* project searching ********/

#search_results {
    margin-top: 40px;
}

#search_results ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

#search_results ul li {
    margin-bottom: 20px;
}

#search_results h2 {
    font-size: 16px;
}

#search_results h3 {
    margin-bottom: 2px;
    padding-bottom: 0;
}




/***** autocompletion *****/

div.autocomplete {
    position:absolute;
    width:250px;
    background-color:white;
    border:1px solid #888;
    margin:0px;
    padding:0px;
}
div.autocomplete ul {
    list-style-type:none;
    margin:0px;
    padding:0px;
}
div.autocomplete ul li.selected { background-color: #ffb;}
div.autocomplete ul li {
    list-style-type:none;
    display:block;
    margin:0;
    padding:2px;
    /*height:32px;*/
    cursor:pointer;
}
.informal {
    color: gray;
}



/****** FORM VALIDATION *********/

input.disabled {
	border: 1px solid #F2F2F2;
	background-color: #F2F2F2;
}

input.required, textarea.required {
	/*border: 1px solid #00A8E6;*/
	/*border: 1px solid gray;*/
}
input.validation-failed, textarea.validation-failed {
	border: 1px solid #FF3300;
	color : #FF3300;
}
input.validation-passed, textarea.validation-passed {
	border: 1px solid darkgreen;
	color : #000;
}

.validation-advice {
	margin: 5px 0;
	/*padding: 5px;*/
	/*background-color: #FF3300;*/
	/*color : #FFF;*/
	color: #FF3300;
	font-weight: bold;
}

.custom-advice {
	margin: 5px 0;
	padding: 5px;
	background-color: #C8AA00;
	color : #FFF;
	font-weight: bold;
}



/****** DROPDOWN MENU http://www.stylephreak.com/index.php/archives/2004/05/css-only-branching-menu/ ****/

/* phreakmenu css 
---------------------------------*/

ul.spcssmenu, ul.spcssmenu ul {
	/*width: 100px;*/
	/*height: 100px;*/
	padding: 0px;
	margin: 0px;
}

ul.spcssmenu li {
	list-style-type: none;
	list-style-image: url(../images/pixel.gif);
	list-style-position: outside;
	/*width: 94px;*/
	width: auto;
	margin: -1px 0px 0px 0px;
	/*padding: 3px 3px 3px 3px;*/
	padding: 3px 30px 3px 3px;
	position: relative;
	border: 1px solid #fff;
	/*font: 12px verdana, arial, sans-serif;*/
	/*background-color: #9b9b88;*/
	background-color: #d2d2d2;
}

ul.spcssmenu li>ul {
	display: none;
	position: absolute;
	/*position: relative;*/
	top: 0px;
	left: 100px;
}

li.sub {
	background: url("../images/sub.gif") no-repeat right;
}

ul.spcssmenu li:hover {
	background: #600;
}

ul.spcssmenu li:hover>ul {
	display: block;
}

ul.spcssmenu li a {
	text-decoration: none;
	display: block;
	/*width: 94px;*/
	width: auto;
	font-weight: bold;
}


ul.spcssmenu li  a:link {
	/*color: #fff;*/
	color: #000;
}

ul.spcssmenu li  a:visited {
	/*color: #fff;*/
	color: #000;
}

ul.spcssmenu li  a:hover {
	color: #fff;
}





/******* documentation *******/

.section {
    padding: 15px 0 10px 0;
}

.function {
    font-weight: bold;
    padding: 10px 0 10px 0;
}

.function_description {
    padding: 10px 0 10px 0;
}

.function_parameters {
    padding: 10px 0 10px 0;
}

pre.code {
    border: 1px dashed #d2d2d2;
    background-color: #BCED91;
    padding: 10px;
}

#example {
    margin-top: 30px;
}

#example h3 {
    font-weight: bold;
}

#example code {
    font-weight: bold;
}