/* fonts + fixes */

body, input, select, button, textarea { font-family: 'Segoe UI', Helvetica, sans-serif; font-size: 12px; }

body { margin: 0; }
html { -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }

input[type=submit], button { cursor: pointer; /*IE FIX:*/ overflow: visible; }
*:active, *:focus { outline: none; -moz-outline-style: none; }

input::-moz-focus-inner { border: 0; padding: 0; } /*Remove button padding in FF*/
input[type=submit], button { cursor: pointer; }
img { border: 0; }
img.m { vertical-align: middle; }

pre { white-space: pre-wrap; margin: 0; color: #333; }



/* site-wide generic stuff */

body { /*background: url('../images/bg_hex.png');*/ background: url('../images/bg_paper.jpg'); }
#main { width: 960px; margin: 40px auto; }
#header { }
#footer { background: rgba(255,255,255,.5); color: #aaa; border-top: dashed 1px #eee; padding: 4px; text-align: center; font-size: 10px; }
#content { }

.left { float: left; }
.right { float: right; }

br.clear, br.clearl, br.clearr { display: block; overflow: visible; height: 0px; font-size: 0px; }
.clear { clear: both; }
.clearl { clear: left; }
.clearr { clear: right; }

a { color: #508ab7; }
a:hover { color: #000; }
h1 { letter-spacing: -1px; font-size: 26px; margin: 0 0 16px 0; }

hr { border: 0; color: #ccc; background-color: #ccc; height: 1px; margin: 6px 0 6px 0; }

.explanation { color: #999; font-style: italic; }
.explanation.right { margin-top: 5px; float: right; width: 400px; }

.messages { clear: both; margin: 7px 0; }
.messages .message { margin: 0 8px 8px 8px; background: #c6e999; color: #333; border: solid 1px #71ac26; padding: 8px; font-size: 20px; overflow: hidden; }
.messages .message.error { background: #e99999; border: solid 1px #ac2626; }
.messages .message .close { float:right; cursor: pointer; width: 24px; height: 24px; background: url('../images/cross_blk.png'); }

.errorMsg /* 403, 404, etc. */ { font-size: 20px; color: #a00; margin-bottom: 50px; }
.errorMsg p { font-size: 14px; color: #333; } /* not verified msg */

h1.logo { float: left; margin: 0; }
.login { float: right; text-align: right; color: #aaa; margin-top: 16px; padding: 8px; background: #fff; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }
.login a { color: #aaa; }
.login a:hover, .login a.loginbtn:hover { color: #000; }
.login a.loginbtn { color: #555; font-weight: bold; }



/* forms */

.row { overflow: hidden; margin: 10px 0 10px 0; }
.row.multi label { width: inherit; min-width: 70px; margin-right: 10px; }
.row label { display: block; float: left; line-height: 26px; width: 100px; }
.row .misc { display: block; float: left; line-height: 26px; margin-right: 20px; }
.row input { float: left; margin-right: 40px; }
.row input[type=text],input[type=password] { border: solid 1px #ddd; padding: 4px; width: 200px; }
.row select { min-width: 210px; padding: 4px; }
.row span.required { color: #f00; }

input[type=submit], .form button, .button {
	padding: 4px 16px; background: #46afc3; border: 0; color: #fff; font-weight: bold; text-shadow: 0 1px 1px rgba(0,0,0,0.47);
	background: linear-gradient(bottom, #168693 0%, #7fe2fe 100%); background: -o-linear-gradient(bottom, #168693 0%, #7fe2fe 100%); background: -moz-linear-gradient(bottom, #168693 0%, #7fe2fe 100%); background: -webkit-linear-gradient(bottom, #168693 0%, #7fe2fe 100%);
	box-shadow: inset 0 1px 0px rgba(0,0,0,0.24); -webkit-box-shadow: inset 0 1px 0px rgba(0,0,0,0.24); -moz-box-shadow: inset 0 1px 0px rgba(0,0,0,0.24);
	border-radius: 25px; -moz-border-radius: 25px; -webkit-border-radius: 25px;
}
input[type=submit]:hover, .form button:hover, .button:hover {
	background: linear-gradient(bottom, #195a62 0%, #3dd4ff 100%); background: -o-linear-gradient(bottom, #195a62 0%, #3dd4ff 100%); background: -moz-linear-gradient(bottom, #195a62 0%, #3dd4ff 100%); background: -webkit-linear-gradient(bottom, #195a62 0%, #3dd4ff 100%);
}
input[type=text], textarea { border: solid 1px #c3c6cf; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px; box-shadow: 0px 1px 2px #dcdde0 inset; -moz-box-shadow: 0px 1px 2px #dcdde0 inset; -webkit-box-shadow: 0px 1px 2px #dcdde0 inset; padding: 4px 4px; background-color: #fff; }

.row h3 { margin-top: 0; }
.row.narrow { float: left; width:360px; }
.row textarea { width: 400px; height: 100px; }

.row .day { float: left; text-align: center; width: 30px; font-size: 11px; }
.row .day input { float: none; margin: 0; }

.errorSummary { color: #a00; }
.errorSummary p { margin: 0; font-weight: bold; }
.errorSummary ul { margin: 0 0 16px 0; }



/* tabs */

ul.tabs { list-style-type: none; margin: 0 0 0px 0; padding:0px; height: 23px; border-bottom: solid 1px #ddd; }
ul.tabs li a { display: block; float: left; padding: 4px 10px 0 10px; margin: 0 5px; font-size:14px; font-weight:100; text-decoration: none; }
ul.tabs li { float: left; }
ul.tabs li.active a {
	color: #000; font-weight: bold; border: solid 1px #ddd; padding: 3px 10px 4px 10px; border-bottom: 0; background: #fff;
	border-radius: 4px 4px 0 0; -moz-border-radius: 4px 4px 0 0; -webkit-border-radius: 4px 4px 0 0;
}
.paneContainer { background: #fff; padding: 15px; min-height: 100px; }
.paneContainer .pane { display: none; }
.paneContainer .pane.active { display: block; }



/*tokeninput*/

ul.token-input-list-st { overflow: hidden; height: auto !important; height: 1%; width: 100%; border: solid 1px #c3c6cf; border-radius:3px; -moz-border-radius:3px; -webkit-border-radius:3px; box-shadow: 0px 1px 2px #dcdde0 inset; -moz-box-shadow: 0px 1px 2px #dcdde0 inset; -webkit-box-shadow: 0px 1px 2px #dcdde0 inset; cursor: text; min-height: 1px; z-index: 999; margin: 0; padding: 0 4px; background-color: #fff; list-style-type: none; float: left; }
ul.token-input-list-st li input { font-weight:bold; font-size:12px; padding: 0; height: 22px; width:186px; border:0; background:transparent; box-shadow: none; -moz-box-shadow: none; -webkit-box-shadow: none; }
/***/#enquiry .field ul.token-input-list-st li input { font-weight:bold; font-size:15px; padding: 3px 6px; width:186px; border:0; background:transparent; }
li.token-input-token-st { overflow: hidden; height: auto !important; height: 15px; margin: 3px 3px 3px 0; padding: 1px 5px; background-color: #dee5e6; color: #000; cursor: default; font-size: 11px; font-weight:bold; border-radius: 12px; -moz-border-radius: 12px; -webkit-border-radius: 12px; float: left; white-space: nowrap; }
li.token-input-token-st p { display: inline; padding: 0; margin: 0; }
li.token-input-token-st span { color: #a6b3cf; margin-left: 5px; font-weight: bold; cursor: pointer; }
li.token-input-selected-token-st { background-color: #bbc9cb; }
li.token-input-input-token-st { float: left; margin: 0; padding: 0; list-style-type: none; }
div.token-input-dropdown-st { z-index: 99; position: absolute; width: 300px; background-color: #fff; overflow: hidden; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 1px solid #ccc; cursor: default; font-size: 11px; font-family: Verdana; }
div.token-input-dropdown-st p { margin: 0; padding: 5px; font-weight: bold; color: #777; }
div.token-input-dropdown-st ul { margin: 0; padding: 0; }
div.token-input-dropdown-st ul li { background-color: #fff; color: #555; padding: 3px; margin: 0; list-style-type: none; }
div.token-input-dropdown-st ul li.token-input-dropdown-item-st { background-color: #fff; }
div.token-input-dropdown-st ul li.token-input-dropdown-item2-st { background-color: #fff; }
div.token-input-dropdown-st ul li em { font-weight: bold; font-style: normal; }
div.token-input-dropdown-st ul li.token-input-selected-dropdown-item-st { background-color: #c2cbcc; color: #000; }
div.token-input-dropdown-st ul li.new span { color: #999; }


/**********/

form.mainSearch { margin: 20px 0 30px 0; }
form.mainSearch .right { float: right; margin-bottom: 10px; }

form.mainSearch .cell { position: relative; float: left; margin-right: 20px; }
form.mainSearch .cell .label { position: absolute; top: 0; left: 0; line-height: 25px; color: #555; text-shadow: 0px -1px 1px #fff; }
form.mainSearch .cell .inputWrapper { float: left; width: 300px; padding: 0 40px 0 50px; }
form.mainSearch .cell.fulltext .inputWrapper { padding-left: 80px; width: 100px; }
form.mainSearch .cell input { display: block; width: 100%; }
form.mainSearch .cell .minibutton {  position: absolute; top: 0; right: 0; }

.minibutton {
	display: inline-block; text-decoration: none;
	padding: 3px 5px; margin: 0 3px; background: #ededed; border: 0; color: #bbbbbb; text-shadow: 0 -1px 1px rgba(255,255,255,0.47);
	background: linear-gradient(bottom, #d9d9d9 0%, #f4f4f4 100%); background: -o-linear-gradient(bottom, #d9d9d9 0%, #f4f4f4 100%); background: -moz-linear-gradient(bottom, #d9d9d9 0%, #f4f4f4 100%); background: -webkit-linear-gradient(bottom, #d9d9d9 0%, #f4f4f4 100%);
	box-shadow: inset 0 0 1px rgba(0,0,0,0.44); -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.44); -moz-box-shadow: inset 0 0 1px rgba(0,0,0,0.44);
	border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px;
}
.minibutton img { vertical-align: bottom; opacity: 0.8; }
.minibutton.active, .minibutton:hover {
	color: #808080;
	background: linear-gradient(bottom, #c7c7c7 0%, #f4f4f4 100%); background: -o-linear-gradient(bottom, #c7c7c7 0%, #f4f4f4 100%); background: -moz-linear-gradient(bottom, #c7c7c7 0%, #f4f4f4 100%); background: -webkit-linear-gradient(bottom, #c7c7c7 0%, #f4f4f4 100%);
}
.minibutton.active img, .minibutton:hover img { opacity: 1; }



/* intro */

.intro { padding: 16px; box-shadow: 0px 1px 3px rgba(0,0,0,0.25); background: #fff; text-align: center; font-size: 16px; }



/* notes */

.notes { padding: 16px; box-shadow: 0px 1px 3px rgba(0,0,0,0.25); background: #eee; }
.notes .container > h2 { margin-top: 0; color: #444; font-weight: 100; }
.note {
	background: #fff; padding: 6px 8px; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; overflow: hidden; position: relative; margin-bottom: 4px;
	/*transition: max-height 0.4s ease; -o-transition: max-height 0.4s ease; -moz-transition: max-height 0.4s ease; -webkit-transition: max-height 0.4s ease;*/
}
.note.collapsed { max-height: 20px; }
.note.preview { max-height: 50px; margin: 8px 0; }
.note.full { max-height: auto; margin: 8px 0 16px 0; }

.note h2.title { margin: 0 0 10px 0; font-size: 18px; float: left; cursor: pointer; }
.note h2.title s { color: #999; }
.note.collapsed h2.title { font-size: 12px; margin-top: 2px; /*font-weight: normal;*/ }
.note.collapsed a { color: #777; }
.note.collapsed a:hover { color: #000; }

.note.preview h2.title { font-size: 14px; margin-top: 2px; }

.note .fader {
	position: absolute; bottom: 0; left: 4px; width: 920px; height: 5px;
	background: linear-gradient(bottom, rgba(255,255,255,1) 20%, rgba(255,255,255,0.8) 100%);
	background: -o-linear-gradient(bottom, rgba(255,255,255,1) 20%, rgba(255,255,255,0.8) 100%);
	background: -webkit-linear-gradient(bottom, rgba(255,255,255,1) 20%, rgba(255,255,255,0.8) 100%);
	background: -moz-linear-gradient(bottom, rgba(255,255,255,1) 20%, rgba(255,255,255,0.8) 100%);
	background: -ms-linear-gradient(bottom, rgba(255,255,255,1) 20%, rgba(255,255,255,0.8) 100%);
}

.note .togglebar { position: absolute; top: 0px; left: 0px; height: 32px; width: 5px; cursor: pointer; z-index: 2; }

.note .tags { float: right; max-width: 400px; min-height: 18px; }
.note .tags .tag { float: right; height: 15px; margin: 0 0 3px 3px; padding: 1px 5px; background-color: #dee5e6; font-size: 11px; border-radius: 12px; -moz-border-radius: 12px; -webkit-border-radius: 12px; cursor: pointer; }
.note .tags .tag:hover { background-color: #bec5c6; }
.note .tags a.link { display: block; float: right; width: 14px; height: 14px; margin: 1px 0 0 8px; background: url('../images/link.png'); text-indent: -31337px; opacity: 0.5; }
.note .tags a.link:hover { opacity: 1; }
.note .date { text-align: right; color: #aaa; font-size: 9px; }
.note .controls {
	position: absolute; top: 0px; left: 380px; display: none; background: rgba(255,255,255,0.7); padding: 4px; z-index: 3;
	border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;
}
.note:hover .controls { display: block; }

.note .text { line-height: 1.4em; }

.notes .addnew { float: left; padding: 4px; border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; background: #fff; }
.notes .addnew.collapsed { background: transparent; margin-bottom: 8px; }
.notes form.collapsed { display: none; }
.notes form { background: #fff; padding: 10px 8px 6px 8px; border-radius: 0 5px 5px 5px; -moz-border-radius: 0 5px 5px 5px; -webkit-border-radius: 0 5px 5px 5px; margin-bottom: 12px; }

.notes form .row_title { float: left; }
.notes form .row_tags { float: right; }
.notes form .row_tags label.before { display: none; }

.notes form ul.token-input-list-st { width: 200px; float: right; }
.notes form textarea { width: 900px; height: 150px; margin: 8px 0 8px; }
.notes form input[name=title] { width: 400px; font-weight: bold; font-size: 14px; }
.notes form label, .notes form .label { color: #555; margin-right: 8px; }
.notes form .row_tags label { float: right; line-height: 24px; }
.notes form .top { margin-bottom: 8px; }
.notes form .bottom { text-align: right; color: #999; }



/* styles for common html in notes */

.note .text table { border: solid 1px #168693; margin: 0 auto 0 auto; }
.note .text table th { background-color: #dee5e6; text-align: left; }
.note .text table td, .note .text table th { padding: 6px; }


/* public note view */

.notes.public .container > h1 { color: #666; font-size: 20px; font-weight: 100; }
.notes.public .container > h1 .author { color: #bbb; font-size: 14px; }
.notes.public .note .controls { display: none !important; }
.notes.public .note .togglebar { display: none !important; }
.notes.public .note .tag:hover { background-color: #dee5e6; cursor: default; }
.notes.public .note h2.title { cursor: default; }



/* responsive */

@media all and (max-width: 1000px) {
	#main { width: auto; margin: 16px 8px; padding-bottom: 40px; position: relative; }
	
	.login { position: absolute; bottom: 0; right: 0; }
	.login a { margin: 0 10px; }
	
	.note.collapsed { max-height: 40px; }
	.note .controls { float: left; position: static; display: block; padding: 0; width: 95%; cursor: pointer; }
	.note .tags { float: right; max-width: 30%; min-height: 18px; width: 1px;  }
	.note .togglebar { display: none; }
	
	.note .controls a { opacity: .5; }
	
	.notes form .row_tags, .notes form .row_title { float: none; }
	.notes form .row_tags label.before { display: block; }
	.notes form .row_tags label.after { display: none; }
	.notes form .row_tags label { float: none; display: block; }
	.notes form ul.token-input-list-st { width: 100%; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; }

	.notes form textarea, .notes form input[name=title] { width: 100%; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; }
	
	.note .fader { display: none; }
}

@media all and (max-width: 780px) {
	form.mainSearch { margin-top: 0; }
	form.mainSearch .cell { width: 100%; max-width: 400px; }
	form.mainSearch .cell .inputWrapper, form.mainSearch .cell.fulltext .inputWrapper { width: 100%; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; }
	form.mainSearch .cell.fulltext { margin-top: 8px; }
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) {
	body { background-size: 242px 242px; }
}