* {
	margin: 0;
	padding: 0;
}

body {
	font-size: 0.7em;
	margin: 0;
	padding: 0;
}

body * { font-size: 1em; }

a img { border: none; }

table {
  border-collapse: collapse;
  border: 1px solid #CCC;
}

td, th {
  border: 1px solid #CCC;
  padding: 0.3em;
}

table thead th {
	background: #9BCDFF;
}

form#user-search-form table tr,
table#mail-key tr {
	float: left;
}

pre {
	font-family: "Courier New", Courier, monospace;
	padding: 0.5em;
	border: 1px solid #666;
	background: #DDD;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

code {
	font-family: "Courier New", Courier, monospace;
}

table#mail-key {
	margin-bottom: 0.5em;
}

table tbody tr.registered td {
	background: #D0FFC7;
}

table tbody tr.personal td {
	background: #F8FF80;
}

table tbody tr.pro td {
	background: #FFB052;
}

table tbody tr.pro_plus td {
	background: #FF6E77;
}

table tbody tr.investor td {
	background: #896EFF;
}

table tbody tr.unconfirmed td {
	background: #BBB;
}

table tbody tr.no_type td {
	background: #FFF;
}

table tbody tr.started td {
	background: #FFB730;
}

table tbody tr.active td {
	background: #24DE38;
}

table tbody tr.complete td {
	background: #7A88FF;
}

table tbody tr.deleted td {
	background: red !important;
  color: white !important;
}

.advert-type-detail {
	display: none;
}

img.right-align { float: right; margin-left: 1em; margin-bottom: 1em; }
img.left-align { float: left; margin-right: 1em; margin-bottom: 1em; }

a.action:link, a.action:active, a.action:visited {
	display: block;
	float: left;
	padding: 0.25em 0.5em;
	border: 1px solid #666;
	background: #DDD;
	color: #000;
	text-decoration: none;
	margin-right: 0.5em;
}

a.action:hover {
	background: #FFF;
}

div#logo {
	float: left;
	margin-right: 20px;
	padding-left: 20px;
}

div#admin-header {
	border-bottom: 1px solid #CCC;
	padding-top: 10px;
}

h1, h2 {
	font-family: verdana, sans-serif;
}

h1 span.no-bold, h2 span.no-bold { font-weight: normal; }

h1 { font-size: 1.3em; }
h2 { font-size: 1.1em; }

div#middle-section h1 {
	font-size: 1.8em;
}

div#middle-section h2 {
	font-size: 1.5em;
	margin: 0.5em 0;
}

.centre-align { text-align: center; }

div#debugger {
	background: #FFF;
	position: absolute;
	bottom: 0px;
	height: 250px;
	border-top: 1px solid #CCC;
	overflow: auto;
	width: 100%;
}

div#debugger h1 {
	font-size: 1em;
	padding: 10px;
	margin: 0;
}

div#debugger div#debug-content {
	padding: 0 10px 10px;
}

div#main-content-area {
	padding: 0 10px 10px;
}

div#middle-main h1 {
	font-size: 1.8em;
	padding: 10px;
}

form#login-form {
	width: 300px;
	border: 1px solid #666;
	background: #DDD;
	padding: 10px;
	margin: 60px auto 60px;
}

form#login-form label {
	width: 100px;
	float: left;
	padding-top: 4px;
}

form#login-form input {
	margin-top: 0.15em;
}

form#login-form p { margin: 5px 0 0; }

form#add_advert fieldset,
form#personal-details-form fieldset,
form#form-change-type fieldset,
form#form-change-goals fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 1em 0;
}

form#add_advert fieldset legend,
form#personal-details-form fieldset legend,
form#form-change-type fieldset legend,
form#form-change-goals fieldset legend {
	display: block;
	background: #9BCDFF;
	font-size: 1.3em;
	font-weight: bold;
	padding: 0.25em;
	margin-bottom: 0.5em;
}

div#footer {
	font-size: 0.9em;
	text-align: center;
	border-top: 1px solid #CCC;
}

form#form-change-type label.form-checkbox,
form#form-change-goals label.form-checkbox {
	font-weight: normal;
}

div#loggedin-bar {
	float: right;
	padding-right: 20px;
}

div#left-middle {
	float: left;
	width: 247px;
}

div#middle-main {
	float: left;
	width: 75%;
}

div#middle-section {
	background: url('/cp/images/2col_bg_left.gif') repeat-y;
}

div#middle-section.no-left {
	background: none;
}

form.top-form {
	background: #EEE;
	padding: 10px;
	border: 1px solid #BBB;
	margin-bottom: 1em;
}

div#middle-main p {
	margin: 0.5em 0;
}

div.no-left div#middle-main { padding-left: 0; }

#error, #warning, #notice {
  margin-bottom: 15px;
  padding: 1em;
}

#error {
  border: 1px solid #ef3b39;
  background: #f79d9c;
}

#warning {
  border: 1px solid #ffcd33;
  background: #ffe699;
}

#notice {
  border: 1px solid #43b649;
  background: #a1daa4;
}

#error ul, #warning ul, #notice ul {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}

#error li, #warning li, #notice li { padding-left: 1.5em; margin-bottom: 0.35em; }
#error li { background: url('/cp/images/error-li.png') no-repeat left; }
#warning li { background: url('/cp/images/warning-li.png') no-repeat left; }
#notice li { background: url('/cp/images/notice-li.png') no-repeat left; }

ul.tabs li {
	list-style-type: none;
	float: left;
}

ul.tabs li a {
	display: block;
	padding: 0.25em 1em;
	background: #BBB;
	border-top: 1px solid #666;
	border-right: 1px solid #666;
	border-bottom: 1px solid #666;
	color: #000;
	text-decoration: none;
	font-weight: bold;
}

ul.tabs li.selected a {
		border-bottom: 1px solid #FFF;
		background: #FFF;
}

ul.tabs li.first a {
		border-left: 1px solid #666;
}

div.tab_content {
	border: 1px solid #666;
	margin-top: -1px;
	padding: 1em;
}

div.tab_content fieldset {
	border: none;
	padding: 0;
	display: none;
}

div.tab_content fieldset.selected {
	display: block;
}

div.tab_content fieldset legend {
	display: none;
}

div.tab_content fieldset select {
	width: 45%;
	padding: 2px;
}

form input.form_text,
div.tab_content fieldset input.form_text,
form#rescatform input.form_text,
form#add_advert fieldset input.form_text,
form#add_admin input.form_text,
form#change_password input.form_text,
form#add-discount input.form_text,
form#edit-permissions input.form_text {
	width: 40em;
	padding: 2px;
}

form input.short,
form#add_advert fieldset input.short { width: auto; }

form textarea {
	font-size: 1.2em;
	font-family: "Courier New", Courier, monospace;
	padding: 2px;
	margin-top: 0.25em;
}

form label,
div.tab_content fieldset label,
form#add_advert fieldset label,
form#rescatform label,
form#add_admin label,
form#change_password label,
form#add-discount label,
form#edit-permissions label {
	font-weight: bold;
}

form label.left_label,
div.tab_content fieldset label.left_label,
form#add_advert fieldset label.left_label,
form#rescatform label.left_label,
form#add_admin label.left_label,
form#change_password label.left_label,
form#add-discount label.left_label,
form#edit-permissions label.left_label {
	float: left;
	width: 120px;
	padding-top: 0.25em;
}

div.tip {
	padding: 1em;
	margin-left: 650px;
}

div.tab_content fieldset select[multiple="multiple"] {
	float: left;
}

span.pusher {
	display: block;
	float: left;
	padding: 1em;
}

div#middle-section div.profile_section h2 {
	font-size: 1.2em;
	margin: 0;
}

div#middle-section form.profile-edit {
	width: 600px;
}

form.profile-edit label {
	font-weight: normal;
}

form div.list_container ul li {
	margin: 0.25em 0;
}

form input.form-checkbox {
	margin-right: 0.5em;
}

div#middle-section div.tip h2 {
	font-size: 1.2em;
	color: #9E4600;
}

div.tip dl dt {
	float: left;
	width: 120px;
	font-weight: bold;
}

div.tip dl dd {
	padding-bottom: 0.5em;
}

div.form {
	float: left;
	width: 650px;
	border-right: 1px solid #666;
}

form textarea {
	font-family: "Courier New", Courier, monospace;
}

#left-middle .function {
	margin: 0.5em;
	border: 1px solid #BBBBBB;
	background: #EEEEEE;
	padding: 0.5em;
}

#left-middle .function p {
	margin: 0.5em 0;
}

div#middle-section #left-middle h1 {
	font-size: 1.2em;
	margin-bottom: 0.5em;
}

h3.key {
	margin-top: 0;
}

.bold { font-weight: bold; }

div.summary {
	float: left;
	width: 50%;
	margin-bottom: 1em;
}

div.summary table {
	width: 80%;
}

div.summary table td {
	text-align: center;
}

div.summary table tbody th {
	text-align: left;
}

/* Fixes and Hacks */
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */
