* {
	font-family: "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
	font-size: 12px;
}

body {
	margin: 0;
	padding: 0;
	background: white;
}

img {
	border: none;
}

fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

h1, h1 * {
	font-size: 24px;
}

h2, h2 * {
	font-size: 18px;
}

@media print {
	.no-print, .no-print * {
		display: none !important;
	}
}

#wrapper {
	position: relative;
	margin: 48px 24px 24px 24px;
}

#main_content {
	position: relative;
}

#tools {
	position: absolute;
	left: 820px;
	top: 0;
	width: 150px;
	background: #eee;
	border: 1px solid black;
	padding: 4px;
	line-height: 26px;
	box-shadow: #999 3px 3px 10px;
}

pre {
	margin: 0;
	min-width: 10ex;
	min-height: 24px;
	width: 95%;
	background: #f4f4f4;
}

.r {
	text-align: right;
}

.l {
	text-align: left;
}

.float_r {
	float: right;
}

.cal {
	display: inline-block;
	background-image: url('../gfx/fugue/calendar_month_empty.png');
	width: 16px;
	height: 16px;
	font-size: 11px;
	font-weight: bold;
	text-align: center;
	line-height: 20px;
	color: black;
}

span.editable:empty, span.edit:empty {
	background: #f4f4f4;
	display: inline-block;
	width: 12em;
	height: 1.5em;
}

table .editable input, table .edit input {
	width: 95%;
}

.editable textarea, .edit textarea {
	width: 30em;
	height: 5em;
}

.editable:hover, .edit:hover, .editdate:hover, .editnoaction:hover, {
	outline: 1px solid #ff9999;
}

.client, .user {
	width: 500px;
}

div.new_tabs_frame.client,
div.new_tabs_frame.user {
	width: 522px;
}

img.icon16 {
	margin: -2px 2px -2px 0;
}

tr:nth-child(2n+2) { background-color: #eeeeee; }
tr:hover td { outline: 1px solid #cccccc; }
td { padding: 1px 5px; }
td.newrec { text-align: center; }
td.later { background-color: #cfc; }
td.soon { background-color: #ffc; }
td.due { background-color: #fcc; }

td.newrec:hover { cursor: pointer; }

/* @group invoices */

.invoices .ref {
	
}
.invoices .date {
	width: 110px;
	text-align: center;
}
.invoices .name {
	width: 275px;
}
.invoices .job {
	width: 20px;
}
.invoices .totals {
	width: 80px;
	text-align: right;
}
.invoices .summary td {
	padding-top: 4px;
	border-top: 2px solid #999999;
	background: white;
}

.invoices tr.protection.on td.protection {
	background: url(../gfx/lock-grey.png) no-repeat center;
	background-size: auto 16px;
}

.invoices tr.protection.off td.protection {
	background: url(../gfx/lock-open.png) no-repeat center;
	background-size: auto 16px;
}

/* @end */

/* @group timesheet */

.new-timesheet-entry {
	background: #eee;
	width: auto;
	padding: 2px 8px;
	border: 1px solid black;
}

.new-timesheet-entry .start-stop-link {
	height: 8px;
	width: 75px;
	border: 1px solid #666;
	border-top-style: none;
	border-radius: 0 0 4px 4px;
	margin-left: 160px;
}

.new-timesheet-entry .duration, .new-timesheet-entry .tot-qty {
	margin-left: 183px;
	color: #666;
}

/* @end */

/* @group jobs */

tr.client td {
	background-color: #ccc;
	border: 1px solid #999;
	border-bottom-style: none;
	border-radius: 8px 8px 0 0;
}

td.clientname {
	width: 200px;
	line-height: 18px;
}

td.jobname	{
	padding-left: 32px;
	min-width: 220px;
	line-height: 16px;
}

a.client {
	padding-left: 24px;
	background: url(../gfx/admin/user-on.png) no-repeat 3px -2px;
}

td.clientname a.client {
	color: black;
	font-weight: bold;
	text-decoration: none;
}

a.timesheet {
	padding-left: 22px;
	background: url(../gfx/fugue/blue-document-clock.png) no-repeat 3px -0px;
	cursor: pointer;
}

a.timesheet i {
	display: inline-block;
	background: #cccccc;
	color: #666;
	padding: 0px 4px;
	width: 20px;
	border-radius: 6px;
	text-align: center;
	margin-right: 3px;
}

td.clientname a.timesheet {
	color: #666666;
}

a.invoice {
	padding-left: 22px;
	background: url(../gfx/fugue/document-invoice.png) no-repeat 3px -0px;
}

/* @end */

/* @group notes */

pre p {
	margin: 0;
}

pre h1, pre h2, pre h3 {
	margin: 0;
}

pre em {
	color: #666;
}

pre ul {
	margin: 0.5em 0;
}

code {
	display: block;
	background-color: #dedef2;
	border: 1px solid #c7c7d8;
	padding: 8px 8px 8px 16px;
	font-family: Consolas, Monaco, mono;
}



/* @end */

/* @group Admin Top Menu */

#admin_topmenu {
	position: fixed;
	top: 0;
	background: #555;
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#555), to(#333));
	background: -moz-linear-gradient(center top, #555 0%, #333 100%);
	width: 100%;
	text-align: center;
	border-top: 1px solid #666;
	border-bottom: 1px solid #222;
	color: white;
	height: auto;
	min-height: 36px;
	z-index: 1000;
}

#admin_topmenu.login {
	padding: 1.4em 1em;
	text-align: center;
	background: #531C1C;
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#7D2A2A), to(#531C1C));
	background: -moz-linear-gradient(center top, #7D2A2A 0%, #531C1C 100%);
	border-top: 1px solid #B63D3D;
	border-bottom: 1px solid #391313;
}

#admin_topmenu.login label {
	margin-left: 24px;
}

#admin_topmenu div.col1 {
	position: static;
	margin-top: 6px;
	width: 82%;
	text-align: left;
	padding-left: 12px;
}

#admin_topmenu div.col3 {
	position: absolute;
	top: 0;
	right: 0;
	margin-top: 6px;
	width: 15%;
	text-align: right;
	padding-right: 12px;
}

#admin_topmenu .btn {
	display: inline-block;
	background-color: #777;
	background: #777 -webkit-gradient(linear, 0% 0%, 0% 100%, from(#999), to(#555));
	border: 1px solid #333;
	color: #ddd;
	padding: 0px 8px 0px 8px;
	text-shadow: #555 1px 1px 0;
	text-wrap: none;
}

#admin_topmenu .btn:hover {
	background: #888 -webkit-gradient(linear, 0% 0%, 0% 100%, from(#aaa), to(#666));
	border: 1px solid #ccc;
	color: #fff;
}

#admin_topmenu .btn.selected {
	background: #eee -webkit-gradient(linear, 0% 0%, 0% 100%, from(#fff), to(#ccc));
	border-color: #ccc;
	color: black;
	text-shadow: #ccc 1px 1px 0;
}

/* @end */

/* @group button style */

button {
	cursor: pointer;
}

.btn {
	background-color: #eeeeee;
	border: 1px solid #cccccc;
	border-radius: 8px;
	-moz-border-radius: 8px;
	padding: 1px 8px 2px;
	color: #999;
	text-decoration: none;
	font-size: 14px;
	line-height: 24px;
}

.btn.action {
	background-color: #666;
	color: #ccc;
	border: 1px solid #666;
	padding: 2px 17px 2px 14px;
}

.btn.action:hover {
	color: #eee;
}

/* @end */

/* @group switch */

.switch {
	position: relative;
	display: inline-block;
	width: 36px;
	padding: 0 4px;
	background: silver;
	border: 1px inset #fff;
	border-radius: 8px;
	font-size: 12px;
	line-height: 17px;
	font-weight: bold;
	color: white;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: inset 8px 8px 12px rgba(0, 0, 0, 0.6);
}

.switch.medium {
	font-size: 10px;
	line-height: 15px;
	width: 32px;
}

.switch.small {
	font-size: 9px;
	line-height: 13px;
	width: 28px;
}

.switch.on {
	background: #0e0;
}

.switch.off {
	background: #c00;
	text-align: right;
}

.switch.on.hold {
	background: #e90;
	text-align: center;
	width: auto;
}

.switch div {
	position: absolute;
	top: 1px;
	border-radius: 8px;
	width: 13px;
	height: 13px;
	background: #fff -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eee), to(#ccc));
	border: 1px solid #999;
	box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
}

.switch.medium div {
	width: 11px;
	height: 11px;
}

.switch.small div {
	width: 9px;
	height: 9px;
}

.switch.on div {
	right: 1px;
}

.switch.off div {
	left: 1px;
}

.switch.on.hold div {
	display: none;
}

.switch.on:hover {
	padding: 0 6px 0 2px;
}

.switch.off:hover {
	padding: 0 2px 0 6px;
}

.switch.on:hover div {
	right: 3px;
}

.switch.off:hover div {
	left: 3px;
}

/* @end */



@media only screen 
and (min-device-width : 320px) 
and (max-device-width : 641px), 
only screen and (min-device-pixel-ratio : 1.5) {

body {
	max-width: 465px;
}

#admin_topmenu {
	position: relative;
	width: 465px;
	height: auto;
}

#admin_topmenu span.date {
	display: none;
}

}

