/* General */

body {
    background-image: url('../images/body_bg.gif');
    text-align: justify;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 11px;
    padding: 0px;
    margin: 0px;
}

table {
	/* border-collapse: collapse; */
}

thead {
    background-color: black;
    color: white;
    font-weight: bold;
}

th {
	font-weight: bold;
	text-align: right;
}

.c {
	text-align: center;
}

.r {
	text-align: right;
}

a img {
   border: none;
}

.table {
	margin-bottom: 4ex;
}

.table td, .tableOrder th {
	padding: 0.5ex 1ex;
	border: 1px solid black;
}


/* Page layout */

#content-outer {
	margin: 2ex;
	padding: 5px;
	background-color: rgb(230, 230, 230);
	border: solid 1px rgb(214, 214, 214);
	border-radius: 6px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
}

#content-inner {
	padding: 2ex;
	background-color: white;
    min-height: 650px;
	border-radius: 4px;
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
}

#logo {
	margin-top: 2ex;
	margin-left: 10ex;
}

#flashMessages {
	color: darkgreen;
	font-weight: bold;
}

div.column {
	float: left;
	width: 48%;
	margin-left, margin: right: 1%;
}


/* Admin menu */

.admin_menu {
	overflow: hidden;
	background-color: rgb(38,38,38);
	font-family: arial;
}

.admin_menu p {
	padding: 10px 0px 0px 20px;
	float: left;
	font-size: 0.8em;
	color: #ffffff;
	line-height: 19px;
}

.admin_menu ul {
	padding: 0px;
	margin: 0px;
	float: right;
}

.admin_menu ul li {
	float: left;
	list-style-type: none;
	padding: 0px;
	margin: 0px;
}

.admin_menu ul li a {
	padding: 10px 20px 10px 20px;
	font-size: 13px;
	color: #ffffff;
	line-height: 19px;
	text-decoration: none;
	border-left: 1px solid rgb(100,100,100);
	float: left;
}

.admin_menu ul .active a {
	background-color: rgb(240,0,0);
}

/* Forms */

input, textarea, select {
	border: solid 1px black;
	font-size: 100%;
}

input.error {
	border-color: red !important;
	color: darkred;
}

span.error {
	/* margin-left: 1ex; */
	color: red;
}

input[type=submit] {
	display: inline;
	min-height: 22px;
	padding: 3px 10px 3px 25px;
	background-color: black;
    background-repeat: no-repeat;
    background-position: 5px 3px;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}


/* Basket */

.basketTableItem {
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid black;
    width: 100%;
    margin: 2ex 0ex;
}

.basketTableItem + .basketTableItem {
	margin-top: 0ex;
}

.basketTableItem td {
	padding: 0.5ex 1ex;
}

.decorSmall {
	border: solid 1px black;
	width: 50px;
	height: 50px;
	padding: 1px;
}

.itemName {
    font-size: 14px;
    font-weight: bold;
}

.itemPieces {
    font-size: 14px;
    font-weight: bold;
}

#result {
	text-align: center;
	width: 100%;
	min-height: 100px;
}


/* Edit form */

.tableDetails td {
    padding: 0.5ex;
    white-space: nowrap;
}

.tableDetails th {
	width: 25%;
}

td.decorTh {
	width: 10ex;
}

#decorCell {
	width: 170px;
	text-align: center;
	vertical-align: top;
}

#decor {
	border: solid 1px black;
	margin-top: 1ex;
	padding: 3px;
}

.edgesTable {
	margin: 2ex 0ex;
}

.edgesTable td {
    text-align: center;
}

.edgeTable {
    border-collapse: collapse;
    border: 1px solid black;
}

.edgeTable td {
    text-align: left;
    padding: 0.5ex 1ex;
}

#previewContainer {
	padding: 0px;
	background-color: #ffffe0;
	border: solid 1px black;
	text-align: center;
}

#edit #previewContainer {
	height: 150px;
	margin: 1ex 0ex;
}

#table #previewContainer {
	position: absolute;
    z-index: 2;
	display: none;
	height: 170px;
	width: 270px;
}

#preview {
	width: 0px;
	height: 0px;
	border: 1px solid black;
    background-color: #6FD0FF;
	background-image: url('images/preview-bkg.png');
    color: white;
    font-weight: bold;
	margin-left: auto;
	margin-right: auto;
	padding-top: 0;
	margin-top: 0;
}

#previewTitle {
    font-weight: bold;
    font-size: 1.2em;
}


/* Menu generated by Ajax (decors and edges) */

#ajaxMenu {
    position: absolute;
    z-index: 3;
    display: none;
    background-color: white;
    padding: 1.5ex;
    border: 1px solid black;
    width: 70ex;
    text-align: left
}

#ajaxMenu td {
	padding: 0ex 0.5ex;
	height: 22px; 
}

.decorIcon {
	position: relative;
	top: 2px;
	width: 20px;
	height: 20px;
}


/* Order */

.orderOuter td {
	vertical-align: top;
	padding: 0ex 2ex;
}

.tableCustomer td {
	padding: 0.2ex 1ex;
}


/* Item table */

.itemTable {
	margin-bottom: 2ex;
    border-spacing: 0px;
}

.itemTable td {
	border: 1px solid black;
    border-left: 0px none black;
    border-bottom: 0px none black;
	padding: 0.3ex;
    vertical-align: top;
}

.itemTable tr td:first-child {
    border-left: 1px solid black;
}

.itemTable tr:last-child td {
    border-bottom: 1px solid black;
}

.itemTable thead td {
	text-align: center;
    border: 0px none black;
}

.itemTable thead tr:first-child td,
.itemTable thead tr:nth-child(2) td:nth-child(2),
.itemTable thead tr:nth-child(2) td:nth-child(4),
.itemTable thead tr:nth-child(2) td:nth-child(9) {
     border-right: 1px solid #ffffff;
 }

.itemTable thead tr:first-child td:last-child,
.itemTable thead tr:first-child td:nth-last-child(2) {
    border-right: 1px solid black;
}

.itemTable input {
	border: 1px solid #a0a0a0;
    margin-top: 1px;
}

/* Checkbox styles to maintain centering */
/*
.itemTable .checkbox {
    border: 1px solid #a0a0a0;
}
*/

#toolTip {
    display: none;
    background-color: #ffffe0;
    width: auto;
    height: auto;
    position: absolute;
    border: 1px solid black;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    color: black;
}

.orderMessage {

    font-size: 1.2em;
    float:left;
    display: inline;
    width: 100%;
    padding-bottom: 10px;

}


.backLink {
    display: inline;
    min-height: 22px;
    padding: 3px 10px 3px 25px;
    background-color: black;
    background-repeat: no-repeat;
    background-position: 5px 3px;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    background-image: url('images/icons/back.png');
    text-decoration: none;
}

.orderWrapper {
    text-align: center;
    border: 1px solid black;
    padding: 10px;
    width: 50%;
    margin: 0 auto;
    background-color: #ffffe0;
}