/******************************************************* 
 * STYLE FOR TOC/LEGEND  
 *******************************************************/

#toc, #toclegend {
    position:absolute;
    top:0px;
    left:0px;
    width:100%;
    overflow:auto; 
    z-index:2;
}

#tocContainer {
    position:absolute;
    top:10px;
    left:0px; 
    width:100%; 
    height:90%; 
    overflow:auto;
}

#tocTabs {
    /*position:absolute;
    top:0px;
    left:0px;*/
    display:block;
    height:40px;
    width:100%;
}

#autoRefreshButton {
    height:30px;   
    display:block; 
}

.toc BODY {
    background-color : #B1BBC5;
}

.toc TD,TH {
    color: #000000;
    text-align: left;
}

/*** Links: eg. open/close nodes ***/
.toc A, .cat A {
    color: #000000;
    text-align: left;
    text-decoration: none;
}

.toc A:hover, .cat A:hover {
	text-decoration: underline;
}

.toc A:visited {
	color: #000000;
}

/*** checkboxes ***/
TD.cbx {
    color: #000000;
    width: 14px;
    text-align: left;
    padding: 0px 0px 0px 1px;
    /*
    background-color : #EBEBEB;
    border-top:    1px solid #999999;
    border-left:   1px solid #999999;
    */
}

.cbx INPUT {
    color: #000000;
    width: 14px;
    text-align: left;
}

/*** open/close img ***/
TD.opcl {
    width: 12px;
    padding-left: 4px;
}

/*** Categories ***/
TH.cat {
    text-align: left;
	color: #000000;
    padding: 0px 0px 0px 3px;
    /*
    background-color : #D1D1D1;
    border-top:    1px solid #999999;
    border-left:   1px solid #999999;
    padding: 3px;
    margin-top: 3px;
    */
}

/*** Groups/Layers ***/
TH.grp {
    text-align: left;
    padding: 0px 0px 0px 3px;
    font-weight:normal;
    font-size : 11px;
    
    /*
    background-color : #EBEBEB;
    border-top:    1px solid #999999;
    border-left:   1px solid #999999;
    */
}

TH.grp img, TH.cat img{
    padding: 0px 0px 0px 6px;
}

IMG {
    border: none;
}


/* Text Color for visible layers */
.vis {
    color: #000000;
}
/* Text Color for unvisible layers (not visible at current scale)*/
.unvis {
    color: #999999;
}



/**** BUTTONS  ****/
.toc .button_on {
    color: #000000;
    background-color : #003366;
    text-align: center;    
    border: 1px solid #FFFFFF;
    width: 50%;
}
.toc .button_off {
    background-color : #EBEBEB;
    text-align: center;
    border: 1px solid #003366;
    width: 50%;
}


/**** STYLE FOR TOC/LEGEND ITEMS ****/
.legtab  {
    margin: 2px 3px 2px 3px;
}
.legtab TABLE {
    border-left:  1px solid #999999;
    border-right: 1px solid #999999;
    border-bottom: 1px solid #999999;
    
}
.legtab TD {
    color: #000000;
    background-color : #EBEBEB;
    padding: 1px 3px 1px 3px;
    text-align: left;
    border-top:    1px solid #999999;
    border-left:   1px solid #999999;
    border-bottom: none; /*1px solid #999999;*/
    border-right:  none; /*1px solid #999999;*/
    /*white-space: nowrap;*/
}
.legtab TH {
    color: #000000;
    padding: 0px 0px 0px 2px;   
    margin-top: 10px;   
}
.legtab IMG {
    margin-top: 2px;
}


/* Buttons used in TOC and legend */
#legbutton {
    margin: 3px 0px 5px 0px;
    width: 100%; 
    height: 22px;
}



/**
 * Tabs for TOC/Legend and legStyle 'swap'
 */
.tocTabs {
    list-style: none;
    margin: 0;
    margin-top: 4px;
    padding: 0px 0px 0px 2px;
    width:100%;
}
.tocTabs ul {
    display: inline;
}
.tocTabs li {
    float: left;
    margin: 0px 0px 0px 0px;
    width:49%;
    border-bottom: 1px solid #efefef;
}
.tocTabs a {
    text-align:center;
    display: block;
    border: 1px solid #eaeaea;
    z-index: 2;
    padding: 2px 4px 1px 4px;
    color: #666666;
    text-decoration: none;
    font-weight: bold;
    background-color: #e0e4e9; 
    margin:3px 1px 0px 1px;
}
.tocTabs .tabs-selected a, .tocTabs .tabs-selected a:hover {
    color: #000000;
    padding-bottom: 3px;
    padding-top: 5px;
    background: none;
    border-bottom: 0;
    margin:0px;

}
li.tabs-selected {
    border-bottom: none;
}
.tocTabs a:focus, .tocTabs a:active {
    outline: none; /* @ Firefox 1.5, remove ugly dotted border */
    background: none;
}
.tocTabs a:hover {
    background: #f4f4f4;
    text-decoration: none;
}
