body {
	padding: 0px;
	margin: 0px;
	font-family: sans-serif;
	background: #F4F4F4;
	font-size: 14px;
}

a {
	text-decoration: none;
	color: #468847;
}

a img {
	border: none;
}

p {
	margin: 5px 0px;
}

img {
	vertical-align: bottom;
}

table {
	border-collapse: collapse;
	border-spacing: 0px;
}

#site {

}

#site > header {
	background: #1B1B1B;
	color: #E5E5E5;
	overflow: auto;
}

#site > header a {
	color: #E5E5E5;
}

#site > header > nav ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}

#site > header > nav ul li {
	float: left;
	line-height: 30px;
	margin: 0px 10px;
	padding: 0px;
}

#main {
	margin: 0px 310px 0px 10px;
	overflow-x: scroll;
}

#main table {
	width: 100%;
}

#side {
	float: right;
	width: 300px;
}

#side h3 {
	text-transform: uppercase;
	font-size: 14px;
	color: #666666;
	margin: 5px 0px;
	padding: 0px;
	cursor: pointer;
}

#side h3 span {
	font-size: 10px;
	color: #999999;
	font-weight: normal;
}

/* Common */

.container {
	margin: 10px;
}

.two-cols {
	width: 50%;
	float: left;
}

.clear {
	clear: both;
}

.collapsed {
	display: none;
}

/* .notice */

.notice {
	border: 1px #D4D4D4 solid;
	padding: 10px;
}

.notice.warning {
	border-color: #D70000;
	background-color: #FFCCCC;
	color: #990000;
}

.notice.success {
	border-color: #00D700;
	background-color: #CCFFCC;
	color: #006600;
}

/* Typography */

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

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

.format-bold {
	font-weight: bold;
}

.format-important {
	font-weight: bold;
	color: #D70000;
}

.format-subtle {
	color: #999999;
	font-size: 12px;
	font-style: italic;
}

.text-small {
	font-size: 10px;
}

.text-large {
	font-size: 25px;
}

/* form */

input[type=text], input[type=number], input[type=password], input[type=email] {
	border: 1px #D4D4D4 solid;
	border-radius: 3px;
	padding: 2px;
	font-size: 14px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input.tiny {
	width: 40px;
}

input.half {
	width: 80px;
}

button {
	font-size: 14px;
}

label[for] {
	cursor: pointer;
}

input.warning, select.warning {
	border: 1px #D70000 solid;
	background-color: #FFCCCC;
	margin-bottom: 0px;
	padding: 3px;
}

input.processing, select.processing {
	border: 1px #D7D700 solid;
	background-color: #FFFFCC;
	margin-bottom: 0px;
	padding: 3px;
}

input.success, select.success {
	border: 1px #00D700 solid;
	background-color: #CCFFCC;
	margin-bottom: 0px;
	padding: 3px;
}

/* #start */

#start {
	text-align: center;
}

#start .logo {
	display: block;
	margin: 100px auto 0px auto;
	width: 700px;
}

#start .search {
	display: block;
	margin: 30px auto 10px auto;
	width: 500px;
	border: 1px #D4D4D4 solid;
	border-radius: 3px;
	padding: 5px;
	background: #FFFFFF;
	font-size: 16px;
}

/* #filter */

#filter {
	overflow: auto;
	margin: 5px 0px;
}

#filter .logo {
	display: block;
	width: 200px;
	margin: 5px 10px;
	float: left;
}

#filter > form {
	display: block;
	margin-left: 220px;
}

#filter > form ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
	overflow: auto;
}

#filter > form > ul li {
	float: left;
	margin: 5px;
	line-height: 34px;
	position: relative;
}

#filter > form input[type=text] {
	float: left;
	font-size: 16px;
	border: 1px #D4D4D4 solid;
	border-radius: 3px 0px 0px 3px;
	padding: 5px;
	margin: 2px 0px;
	width: 300px;
}

#filter > form button {
	float: left;
	margin: 2px 0px;
	border-radius: 0px 3px 3px 0px;
	font-size: 14px;
}

/* #user */

#user {
	text-align: center;
}

#user .logo {
	display: block;
	margin: 100px auto 0px auto;
	width: 700px;
}

#user-container .popover label {
	display: block;
	color: #666666;
	text-transform: uppercase;
	margin: 10px auto;
	width: 500px;
	text-align: left;
	font-weight: bold;
}

#user-container .popover input[type=text], #user-container .popover input[type=password] {
	display: block;
	margin: 10px auto;
	width: 350px;
	border: 1px #D4D4D4 solid;
	border-radius: 3px;
	padding: 5px;
	background: #FFFFFF;
	font-size: 16px;
}

/* Pagination */

div.pagination ul {
	display: block;
	margin: 0;
	text-align: center;
}

div.pagination ul li {
	display: inline;
	margin: 1px;
	vertical-align: top;
}

div.pagination ul li a {
	display: inline-block;
	height: 16px;
	min-width: 12px;
	padding: 0px 2px;
	background-color: #AAAAAA;
    overflow:hidden;
    -webkit-border-radius:15px;
    -moz-border-radius:15px;
    -o-border-radius:15px;
	border-radius: 15px;
	color: #DDDDDD;
	font-size: 10px;
	font-weight: bold;
	text-decoration: none;
	line-height: 15px;
}

div.pagination ul li.dots span {display: inline-block;
	height: 6px;
	width: 6px;
	margin-top: 5px;
	background-color: #AAAAAA;
    overflow:hidden;
    -webkit-border-radius:15px;
    -moz-border-radius:15px;
    -o-border-radius:15px;
	border-radius: 15px;
}


div.pagination ul li a.active {
	background-color: #666666;
}

/* lists */

ul.icons {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}

ul.icons li {
	padding-left: 24px;
	padding-right: 3px;
	background: transparent none 4px center no-repeat;
	margin: 1px 0px;
	line-height: 20px;
	position: relative;
	overflow: hidden;
}

ul.icons li:hover {
	background-color: #E5E5E5;
}

ul.icons li span {
	display: block;
	float: right;
	width: 60px;
	color: #999999;
	font-size: 12px;
}

ul.icons li a {
	color: #468847;
	white-space: nowrap;
	text-overflow: ellipsis;
	display: block;
	overflow-x: hidden;
	margin-right: 65px;
}

/* tables */

table.products {
	width: 100%;
}

table.products thead th {
	font-size: 14px;
	text-transform: uppercase;
	color: #666666;
	font-weight: bold;
}

table.products td, table.products th {
	white-space: nowrap;
	padding: 3px;
}

table.products td.wrap, table.products th.wrap {
	white-space: normal;
}

table.products .expand {
	width: 100%;
	white-space: normal;
}

table.products tbody tr:hover {
	background: #E5E5E5;
}

table .controls {
	display: none;
}

table tr:hover .controls {
	display: inline;
}

table.form {
	width: 100%;
}

table.form tbody th {
	max-width: 30%;
	min-width: 100px;
	text-align: right;
	padding: 3px 6px;
	white-space: nowrap;
}

table.form tbody td {
	padding: 3px 6px;
	width: 100%;
}

.table {
	width: 100%;
}

.table tr {
	border: 1px #D4D4D4 solid;
	border-width: 0px 0px 1px 0px;
}

.table th, .table td {
	padding: 3px 6px;
	white-space: nowrap;
}

.table th.wrap, .table td.wrap {
	white-space: normal;
}

.table th img, .table td img {
	vertical-align: bottom;
}

.table td.expand, .table th.expand {
	width: 100%;
}

.table tr.disabled td, .table tr.disabled td * {
	color: #AAAAAA;
}

/* .well */

.well {
	border: 1px #D4D4D4 solid;
	border-radius: 3px;
	background: #EEEEEE;
}

.well .table tbody tr:last-child {
	border-width: 0px;
}

/* #cart */

#cart {
	position: fixed;
	bottom: 10px;
	right: 10px;
	width: 50px;
	height: 50px;
}

#cart .close-button {
	position: absolute;
	display: block;
	z-index: 100;
	top: 0px;
	right: 0px;
	height: 19px;
	width: 19px;
	border-radius: 50%;
	background: #1B1B1B;
	color: #EEEEEE;
	font-weight: bold;
	text-align: center;
	line-height: 19px;
	font-size: 16px;
}

#cart > a#cart-button {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 25px;
	-webkit-box-shadow: 0 1px 1px rgba(200,200,200,0.4) inset,1px 1px 3px rgba(0,0,0,0.2);
	-moz-box-shadow: 0 1px 1px rgba(200,200,200,0.4) inset,1px 1px 3px rgba(0,0,0,0.2);
	box-shadow: 0 1px 1px rgba(200,200,200,0.4) inset,1px 1px 3px rgba(0,0,0,0.2);
	background: #468847 url('/img/icons/glyphicons/glyphicons-203-shopping-cart.png') center center no-repeat;
}

#cart > a#cart-button.disabled {
	background-color: #D4D4D4;
}

#cart-items tbody tr td {
	height: 49px;
}

.popover-container {
	position: absolute;
	right: 100%;
	bottom: 0px;
	width: 480px;
	z-index: 100;
}

.popover {
	margin: 0px 10px 0px 0px;
	border: 1px #D4D4D4 solid;
	border-radius: 3px;
	background: #FFFFFF;
	position: relative;
}

.popover .arrow {
	position: absolute;
	bottom: 19px;
	right: -6px;
	width: 6px;
	height: 11px;
	background: transparent url('/img/clean/arrow_right.png') top left no-repeat;
}

.popover .close-button {
	position: absolute;
	top: -12px;
	right: -12px;
	display: block;
	width: 24px;
	height: 24px;
	line-height: 24px;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	color: #EEEEEE;
	background: #1B1B1B;
	border-radius: 13px;
	cursor: pointer;
}

.popover h3 {
	text-transform: uppercase;
	font-size: 14px;
	color: #666666;
	margin: 5px 0px;
	padding: 0px;
	cursor: pointer;
}

.popover .scrollarea {
	max-height: 300px;
	overflow-y: scroll;
}

/* #user-container */

#user-container {
	position: fixed;
	top: 10px;
	right: 10px;
	width: 50px;
	height: 50px;
	border-radius: 25px;
	background: #1B1B1B;
	-webkit-box-shadow: 0 1px 1px rgba(200,200,200,0.4) inset,1px 1px 3px rgba(0,0,0,0.2);
	-moz-box-shadow: 0 1px 1px rgba(200,200,200,0.4) inset,1px 1px 3px rgba(0,0,0,0.2);
	box-shadow: 0 1px 1px rgba(200,200,200,0.4) inset,1px 1px 3px rgba(0,0,0,0.2);
}

#user-container > #login-button {
	display: block;
	height: 100%;
	width: 100%;
	background: transparent url('/img/icons/login.png') center center no-repeat;
}

#user-container > #user-button {
	display: block;
	height: 100%;
	width: 100%;
}

#user-container > #user-button:hover {
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.5) url('/img/icons/cogs.png') center center no-repeat;
}

#user-container .popover-container {
	bottom: auto;
	top: 0px;
}

#user-container .popover-container .arrow {
	bottom: auto;
	top: 19px;
}

#user-container .actions {
	display: none;
	position: absolute;
	top: 100%;
	right: 0px;
	margin: 0px;
	list-style-type: none;
	padding: 0px;
	overflow: auto;
}

#user-container .actions li {
	display: block;
	margin: 10px 0px;
}

#user-container .actions li a {
	display: block;
	background: #1B1B1B url('') center center no-repeat;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	text-align: center;
}

#user-container .actions li a.active {
	background-color: #D70000;
}

#user-container .actions li a.edit {
	background-image: url('/img/icons/edit_white.png');
}

#user-container .actions li a.logout {
	background-image: url('/img/icons/login.png');
}