*
{
    margin: 0;
    padding: 0;
}

a, a:visited, a:active
{
    color: #0000FF;
    text-decoration: none;
}

a:hover
{
    text-decoration:underline;
}

a.link, a.link:visited, a.link:active
{
    color: #FFFFFF;
}

div, label, td, span, dt, dl
{
    font-family:Tahoma;
    text-align: left;
}

body#main
{
    background-attachment:scroll;
    background-image:url("../images/bg_img.jpg");
    background-repeat:repeat-x;
}

body
{
    font-family:Tahoma,verdana,Arial,sans-serif;
    font-size:11px;
    text-align:left;
}

input, textarea, select
{
    font-size: 11px;
}

table
{
    width: 100%;
    border-spacing: 0;
}
table.header
table.layout,
table .layout
{
    width: 800px;
}

table.header .menu,
table.header .info
{
    width: 100%;
    border-spacing: 0;      
}

table.header .info
{
    color: #FFFFFF;
    line-height: 25px;
}

table.header .filler
{
    height: 10px;
}

table.header .menu
{
    height: 28px;
}

/**
* login screen
*/
#form_login
{
    left:200px;
    position:relative;
    top:70px;
    width:400px;
    background:none repeat scroll 0 0 #0099FF;
    border:2px solid #3E9ADE;
    color:#FFFFFF;
    display:block;
    padding:10px;
}

#form_login p
{
    font-size:140%;
    font-weight:bold;
    margin:10px;
}

#form_login label
{
    float:left;
    margin:4px;
    padding:2px;
    text-align:right;
    width:100px;
}

#form_login input
{
    margin:4px;
    width:170px;
}

/**
* menu
*/
.menu .menu_wrap
{
    display: block;
    float: right;
}

.menu .item
{
    display:inline;
    float:left;
}

.menu .item label,
.menu .item label a
{
    background-image:url("../images/menu-sprite.png");
}

.menu .item label
{
    background-position:100% 0;
    color:#FFFFFF;
    display:block;
    float:left;
    font-weight:bold;
    height:28px;
    padding-right:30px;
}

.menu .item label.-nosub
{
    padding-right: 0;
}

.menu .item label a
{
    background-position:0 0;
    float:left;
    height:28px;
    padding-left:10px;
    padding-top:5px;
    color: #FFFFFF;
}

.menu .item label a.-nosub
{
    padding-right: 10px;
}

.menu .item dl
{
    margin:28px 0 0;
    position:absolute;
    clear: left; 
    display: none;
    background: #39b8e7;
    border: 1px solid #0083b0;
    border-top: 0;
    z-index: 9999;
}

.menu .item dl dt,
.menu .item dl dt.subs 
{                                    
    clear: both;
    color:#D8E8E8;
    display:block;
    float:left;
    font-weight:bold;
    width: 150px;
    text-align: left;
    border-top: 1px solid #39b8e7;
    border-bottom: 1px solid #39b8e7;
}

.menu .item dl dt.subs:hover,
.menu .item dl dt.subs
{
    cursor: default;
    background: #1AA0D1;
    border: 0;
    color: #000000;
    border-top: 1px solid #147DA3;
}

.menu .item dl dt span
{
    line-height:20px;
    padding-left:5px;
    text-align: left;
}

.menu .item dl dt a
{
    display: block;
    color:#E6EEFF;
    line-height:30px;
    padding-left:15px;
    text-align: left;
}

/**
* hover
*/
.menu .item label.hover
{
    background-position:100% 128px;
}

.menu .item label.hover a
{
    background-position:0 128px;
}

.menu .item dl dt:hover
{
    background: #1d3e4f;
    border-top: 1px solid #1d3e4f;
    border-bottom: 1px solid #1d3e4f;
}

.menu .item dl dt:hover a
{
    color: #FFFFFF;
}


/*
.menu .item label:hover,
.menu .item label.hover
{
    background-position:100% 128px;
}

.menu .item label.hover a,
.menu .item label:hover a
{
    background-position:0 128px;
}

.menu .item label:hover + dl,
.menu .item dl:hover
{
    display: block;
}*/

td.quarter
{
    width: 25%;
}

td.padding-left
{
    padding-left: 10px;
}

table.summary
{
    height: 75px;
}

table.summary td
{
    padding: 5px;
}

table.summary tr.main
{
    background:#F1F1F1;
    color:#000000;
    font-weight:bold;
}

table.summary tr.main td
{
    border-bottom:1px solid #F2F2F2;
    font-family:arial;
    font-size:14px;
}

table.summary tr.main td.value
{
    text-decoration:underline; 
}

.total_inv
{
    border-bottom:1px solid #CCCCCC;
    border-left:1px solid #CCCCCC;
    border-right:1px solid #CCCCCC;
    display:block;
    float:right;
    position:relative;
    top:0px;
    width:250px;
}

.total_inv div.subs
{
    margin:5px;
}

.total_inv .key
{
    text-align:left;
    float:left;
}

.total_inv .value
{
    font-weight:bold;
    text-align:right;
}

.total_inv label#total_tax
{
    width: auto;
    margin: 0;
}

.total_inv div.discount div.right
{
    float: right;
}

.total_inv div.total
{
    background:#F0F0F0;
    height:25px;
    padding: 5px;
    padding-top:10px;
    text-align:center;
    vertical-align:middle;
}

.total_inv div.total_f
{
    font-size:120%;
}

.total_inv div.total .error
{
    background: #E5FFE5;
    color: #A60000;
}

.total_inv div.total .green
{
    background: #E5FFE5;
    color: #00FF00;
}
