html, body {
    background-color: black;
    color: #000000;
    margin: 0px;
    padding: 0px;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
}

table, tbody, tr, td { font-family: inherit; font-size: 100%; }

table.layout {
    border: 0px;
    border-collapse: collapse;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    width: 1000px;
    height: 100%;
    top: 0px;
    left: 0px;
}

.layout { margin: 0px; padding: 0px; border: 0px; }

table.page {
    border: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    width: 1000px;
    height: 100%;
    border-collapse: collapse;
}

tbody.page, tr.page, td.page {
    left: 0px;
    top: 0px;
    margin: 0px;
    padding: 0px;
    border: 0px;
}

.shrink { display: block; }

.spacerrow { height: 1px; }
.toprow { height: 75px; }
.pagetitlerow { height: 21px; }
.middlerow { height: 54px; }
.menurow { height: 20px; }
.contenttop { height: 19px; }
.footerrow { height: 1.5em; }

.pagetitle {
    width: 465px;
    height: 21px;
    max-height: 21px;
    overflow: clip;
    font-family: Eurostile, Arial, sans-serif;
    font-size: 1.15em;
    font-weight: bold;
    padding-left: .5em;
    padding-right: .5em;
}

.pagetitlespan {
    background-color: #bbbbbb;
    border: 1px solid #000000;
    padding-left: .5em;
    padding-right: .5em;
}

.menu {
    width: 897px;
    height: 20px;
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
}

.menu a {
    text-decoration: none;
}

.contentleft {
    width: 52px;
}

.contentright {
    width: 51px;
}

.contentcell {
    background-color: white;
    width: 897px;
    vertical-align: top;
}

.content {
    text-align: left;
    vertical-align: top;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
}    

.footercell {
    text-align: center;
    vertical-align: middle;
    background-color: white;
    width: 897px;
}

.sidebar {
    background-color: #dddddd;
    border: 1px solid #000000;
    margin: 10px;
    float: right;
    clear: right;
    max-width: 300px;
    padding: 10px;
}

.sidebar h1 {
    font-size: 1.1em;
}

.control-bar {
    background-color: #dddddd;
    border: 1px solid #000000;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px;
    width: 90%;
}

table.control-bar {
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    border: 0px;
    padding: 0px;
    margin: 0px;
}

table.control-bar tr.control-bar-first-row { }
table.control-bar tr.control-bar-row { border-top: 1px solid #000000; }
table.control-bar th { text-align: right; vertical-align: top; padding: 5px; }
table.control-bar td { text-align: left;  vertical-align: top; padding: 5px; }
table.control-bar td.control-bar-tl { text-align: left; vertical-align: top; }
table.control-bar td.control-bar-tc { text-align: center; vertical-align: top; }
table.control-bar td.control-bar-tr { text-align: right; vertical-align: top; }
table.control-bar td.control-bar-ml { text-align: left; vertical-align: middle; }
table.control-bar td.control-bar-mc { text-align: center; vertical-align: middle; }
table.control-bar td.control-bar-mr { text-align: right; vertical-align: middle; }
table.control-bar td.control-bar-bl { text-align: left; vertical-align: bottom; }
table.control-bar td.control-bar-bc { text-align: center; vertical-align: bottom; }
table.control-bar td.control-bar-br { text-align: right; vertical-align: bottom; }
table.control-bar td.control-bar-mid { width: 100%; }
table.control-bar td.control-bar-larger { font-size: 1.2em; }

div.section { margin-top: 1em; width: 100%; }
div.section h1 { font-size: 1.9em; font-weight: bold; border-bottom: 1px solid #000000; margin-bottom: .5em; }
div.section h2 { font-size: 1.5em; font-weight: bold; }
div.subsection { border-bottom: 1px dashed #000000; width: 100%; }
div.subsection h1 { font-size: 1.2em; font-weight: bold; }
div.subsection h2 { font-size: 1.0em; font-weight: bold; }

span.postinfo {
    margin-left: 0.5em;
    margin-right: 0.5em;
}

table.picgrid {
    width: 100%;
}

td.picthumbcell {
    text-align: center;
    vertical-align: top;
    background-color: #85c0ed;
    width: 150px;
    background-color: #888888;
}

table.picthumbtable {
    margin: auto auto auto auto;
    width: 150px;
    border: 0px;
    padding: 0px;
}

td.picthumb {
    height: 150px;
    text-align: center;
    vertical-align: middle;
}

td.picthumb img {
    margin: auto auto auto auto;
    vertical-align: middle;
    text-align: center;
    border: 0px;
}


td.picthumbtitle {
    font-weight: bold;
    font-size: 0.9em;
}

td.picthumbtags {
    border-top: 1px dashed #000000;
    font-size: 0.8em;
}

td.picthumbinfo {
    border-top: 1px dashed #000000;
    font-size: 0.8em;
}

.tag {
    white-space: nowrap;
    font-size: 0.9em;
    background: #444444;
    color: #dddddd;
    text-decoration: none;
}

.tag {
    white-space: nowrap;
    font-size: 0.9em;
    background: #444444;
    color: #dddddd;
    text-decoration: none;
    padding: 1px;
}

.tag:visited { color: #bbbbbb; }
.tag:hover { color: #ffffff; } 
.tag:active { color: #000000; } 

.tag-match-count {
    font-size: 0.8em;
    color: #bbbbbb;
    vertical-align: super;
    padding-right: 0.1em;
}

span.picinfo {
    margin-left: 0.5em;
    margin-right: 0.5em;
}

a         { color: #000000; }
a:hover   { color: #000000; }
a:active  { color: #000000; }
a:visited { color: #000000; }

div.invoice {
    text-align: center;
}

div.invoiceheadertext { }
table.invoiceinfotable {
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
}
table.invoiceinfotable * { width: auto; }
div.invoicenumber { font-weight: bold; font-size: 2em; }
div.invoicecustomername { font-size: 1.8em; }
div.invoiceterms { font-size: 1.2em; }
div.invoicedate { font-size: 1.2em; text-align: right; }
div.invoicepaiddate { font-size: 1.2em; text-align: right; }
div.invoicesummary { font-style: italic; text-align: right; }
table.invoicetable {
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    padding: 2em;
    width: 90%;
}
table.invoicetable * { width: auto; }
table.invoicetable ul { padding-left: 0px; margin-bottom: 0px; }
table.invoicetable tr { padding-bottom: 1em; }
table.invoicetable p:first-child { margin-top: 0px; }
thead.invoiceheader { border-bottom: 2px solid #000000; }
th.invoiceheaderleft { text-align: left; }
th.invoiceheaderright { text-align: right; }
tbody.invoicedetail { border-bottom: 1px solid #000000; }
tbody.invoicedetail tr.invoicedetailrow { border-top: 0.5px solid #888888; }
td.invoicedetailleft { text-align: left; }
td.invoicedetailright { text-align: right; }
td.invoicedetailnotes { width: 100%; padding-left: 2em; font-style: italic; color: #666666; }
td.invoiceoverdue { color: #990000; }
tbody.invoicesubtotal { border-bottom: 1px solid #000000; }
tbody.invoicesubtotal tr { border-bottom: 0.5px solid #888888; }
td.invoicesubtotalleft { text-align: left; font-weight: bold; }
td.invoicesubtotalright { text-align: right; font-weight: bold; }
tbody.invoicegrandtotal { border-bottom: 2px solid #000000; }
td.invoicegrandtotalleft { text-align: left; font-weight: bold; font-size: 1.2em; }
td.invoicegrandtotalright { text-align: right; font-weight: bold; font-size: 1.2em; }
div.invoicenotes { font-style: italic; color: #666666; text-align: center; }
div.invoicecontractorpaynote { text-align: justify; }

.filter-header {
    cursor: pointer;
	color: #222222;
    font-weight: bold;
	margin: 0;
	padding: 2px 5px;
	background: #bbbbbb;
	border-bottom: 1px solid #aaaaaa;
	border-right: 1px solid #aaaaaa;
	border-top: 1px solid #cccccc;
	border-left: 1px solid #cccccc;
}

.filter-body { padding: 4px 5px; }

.gallery-grid { margin: auto; width: 95%; }

.gallery-thumb-box { text-align: center; vertical-align: middle; }
.gallery-thumb-box-left { text-align: left; vertical-align: middle; }
.gallery-thumb-box-right { text-align: right; vertical-align: middle; }
.gallery-thumb-link { border: 0px; } 
.gallery-thumb-img { display: block; margin: auto; border: 1px solid #000000; }
.gallery-thumb-img-left { display: block; margin: auto auto auto 0; border: 1px solid #000000; }
.gallery-thumb-img-right { display: block; margin: auto 0 auto auto; border: 1px solid #000000; }
.gallery-thumb-tip { text-align: left; color: #dddddd; width: 300px; z-index: 13000; }
.gallery-thumb-title { font-weight: bold; font-size: 0.9em; margin: 0; color: #9FD4FF; padding: 8px 8px 4px; background: url(/site_media/img/bubble.png) top left; }
.gallery-thumb-text { font-size: 0.9em; padding: 4px 8px 8px; background: url(/site_media/img/bubble.png) bottom right; }
.gallery-thumb-dl-title { color: #ffffff; font-weight: bold; }
.gallery-thumb-dl-text { color: #dddddd; }

.gallery-preview-table { margin: auto; }
.gallery-preview-image { margin: auto; border: 1px solid #000000; }
.gallery-preview-info-cell { color: #222222; }
.gallery-preview-dl-title { color: #000000; font-weight: bold; }
.gallery-preview-dl-text { color: #222222; }
.gallery-preview-prev-cell { border: 0px; vertical-align: middle; }
.gallery-preview-prev-cell img { border: 0px; display: block; margin: auto; vertical-align: middle; }
.gallery-preview-next-cell { border: 0px; vertical-align: middle; }
.gallery-preview-next-cell img { border: 0px; display: block; margin: auto; vertical-align: middle; }

.gallery-pic { text-align: center; margin: auto; }
.gallery-pic-info { text-align: left; }
.gallery-pic-div { margin: auto; text-align: center; }
.gallery-pic-image { margin: auto; border: 1px solid #000000; }
.gallery-pic-tip { text-align: left; color: #dddddd; width: 300px; z-index: 13000; }
.gallery-pic-title { font-weight: bold; font-size: 0.9em; margin: 0; color: #9FD4FF; padding: 8px 8px 4px; background: url(/site_media/img/bubble.png) top left; }
.gallery-pic-text { font-size: 0.9em; padding: 4px 8px 8px; background: url(/site_media/img/bubble.png) bottom right; }
.gallery-pic-dl-title { color: #ffffff; font-weight: bold; }
.gallery-pic-dl-text { color: #dddddd; }

