html, body { font-family: sans-serif; font-size: 10pt; margin: 0; }
p { margin: 0 0.5em 0.2em; clear: both; }
p .input {
    float: left;
    border-width: 0 5px; border-style: solid; border-color: transparent;
}
p input[type="text"], p .input { width: 4em; margin: 0 2px 0 10px; }
p select { margin: 0 2px 0 10px; } 
p label { width: 12em; text-align: right; float: left; padding-top: 0.2em; }

p > span > span { vertical-align: super; }
input[type="text"] { border: 1px solid #999; }
input[readonly] { background: #ccc; }
input[type="text"].long { width: 8em; }
a { font-weight: bold; text-decoration: none; color: #000; }


.spacer { margin-bottom: 1em; }
.fade .top {
    font-size: 0.8em; margin: 0 5em; padding-top: 1em;
    background: url(img/arrowd.png) no-repeat 20px 0;
}
.primary { font-weight: bold; }
.primary input, .primary .input { font-weight: bold; }
.spinner { display: none; }
.fade {
    position: absolute; top: 434px; left: 228px; width: 414px; 
}
.fade h2 {
    text-align: center; padding-bottom: 0.2em;
    margin: 0 52px -1px; border-bottom: 1px solid #fff;
}
.fade a { padding: 0 0.5em; }
.fade a:hover { background: #fff; }
.fade p.note {
    position: absolute; top: 448px; left: 100px; right: 0px;
    font-size: 0.8em;
}
.button { text-align: center; }

#page { width: 966px; margin: auto; position: relative;}

#header {
    padding: 0; height: 206px; margin-top: 10px;
    background: url("img/header.png") no-repeat;
}
#logo {
    background: url("img/pc_logo.png") no-repeat;
    float: left; height: 165px; width: 362px;
}
#menu { clear: both; padding-top: 2px; }
#menu ul {
    list-style: none outside; margin: 0 2em;
    padding: 0; float: left; 
}
#menu ul li {
    float: left; margin-left: 1em; color: #fff;
    padding: 0; font-weight: bold; cursor: pointer;
}
#menu ul li > a { margin-left: 6px; padding: 4px 10px 4px 4px; color: #fff; display: block; }
#menu ul li:hover { background: url(img/menul.png) no-repeat 0 100%; }
#menu ul li:hover > a { background: url(img/menu.png) no-repeat 100% 100%; }

#menu select { margin-top: 4px; }

#adverts { float: right; width: 270px; }
#advert_head_top, #advert_head_bottom {
    background-position: 50% 50%; background-repeat: no-repeat;
    display: block; float: right;
    height: 60px; width: 468px; margin: 15px 10px 0 0;
}
#adverts > a {
    background-position: 50% 50%; background-repeat: no-repeat;
    display: block; width: 250px; height: 250px; margin: 10px 0 0 10px;
}
#bottle {
    background: url("img/bottle.jpg") no-repeat 50% 47px;
    position: absolute; top: 206px; left: 0px;
    width: 706px; height: 722px;
}
#bottle p {
    text-align: center; margin-left: 164px;
}
#backlink {
    background: url(img/arrowl.png) no-repeat 0 50%;
    color: #fff; padding-left: 10px;
    position: absolute; top: 175px; left: 410px;
}

#quick_conversions {
    position: absolute; top: 210px; z-index: 10;
    border: 1px solid #000; font-size: 0.8em;
    margin: -5px 0 0 10px;
}
#quick_conversions > div { margin-top: 0.5em; }
#quick_conversions label { width: 6em; }
#quick_conversions > div.toggle { font-size: 1.2em; font-weight: bold; }
#quick_conversions input { margin: 0 0 0 2px; }
#quick_calculator input { margin-bottom: 3px; }
#quick_calculator input[type="button"] {
   margin-right: 2px; width: 2em;
}
#calc_result { width: 11em; }

#home, #about { text-align: center; }
#home p {
    background: url(img/divider.png) 50% 100% no-repeat;
    margin: 4px 0 0 0; padding-bottom: 6px;
}

#about p, #links p {
    font-size: 0.8em; margin: 0 5em; padding-top: 1em;
}

#footer {
    clear: both; color: #fff; padding: 10px 0;
    font-size: 0.8em; text-align: center;
}
#footer a { color: #ccc; }
#footer a:hover { color: #fff; }

#footer > div {
    padding: 0.2em  0 0.4em;
    background: url(img/footer_t.png) no-repeat 50% 0;
}
#footer > div > div {
    padding: 4px 0 6px;
    background: url(img/footer.png) no-repeat 50% 100%;
}
#footer img { border: none; margin: 0 0.5em; vertical-align: top; }

.resultsTable td, .resultsTable th {
    text-align: left; vertical-align: bottom;
    background-repeat: no-repeat;
    background-position: 50% 100%;
    padding: 1px 4px;
}
.resultsTable img {
    border: none; vertical-align: top;
}
.resultsTable td > img {
    cursor: pointer;
}
.resultSet > div {
    position: fixed; top: 30px; left: 10px;
    background: #999; border: 1px solid #ccc;
    padding: 5px;
    font-weight: bold;
}
.resultSet > div > img {
    display: block;
}
#lr-cpl { background-image: url(img/cartons-layer.png); }
#lr-l   { background-image: url(img/layers.png); }
#lr-cpp { background-image: url(img/cartons-pallet.png); height: 64px;}
#lr-w   { background-image: url(img/weight.png); }
#lr-ssu { background-image: url(img/space.png); }
#lr-v   { background-image: url(img/view.png); }
#lr-r   { background-image: url(img/report_label.png); }

#pallet_results_holder {
	height: 300px;
	overflow: auto;
	margin-bottom: 2em;
}
#pallet_results_holder table { width: 100%; }
#layoutImage { float: left; margin-left: -230px; }