@media screen{
        .IDBScrollDiv {
                max-width:100%;
/*              width:100%;*/
                overflow:auto;
                overflow-x:auto;
        }
}

.query_results {
        font-family: courier new, monospace;
        font-size: 10px;
        line-height: 15px;
        background: url(../images/pre_query_results.png) 5px 5px;
        border: 1px solid #000;
        padding: 5px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
}

.query_selected {
        background: #ddd;
        text-align:right;
}
/* changed width of table to correct column sizes*/
@media screen{
        table.query_table_wide {
                width:40%;
                margin: 10px 0 0 0;
                border: 1px solid #fff;
                border-right: 1px solid #CCC;
                        border-bottom: 1px solid #CCC;
                        border-left: 1px solid #CCC;
                overflow: scroll;
        }
}
@media print{
        table.query_table_wide {
                width:40%;
                margin: 10px 0 0 0;
                border: 1px solid #fff;
                border-right: 1px solid #CCC;
                        border-bottom: 1px solid #CCC;
                        border-left: 1px solid #CCC;
                /*overflow: scroll;*/
        }
}

div.query_table_wide {

}
.idbCountryTable{
        float:left;
        width:100%;
}
        
/* changed width of table to correct column sizes*/     
.query_table {
        margin: 15px 0 0 0;
        max-width: 98%;
        /*width: 98%;*/
        border: 1px solid #fff;
        border-right: 1px solid #CCC;
        border-bottom: 1px solid #CCC;
        border-left: 1px solid #CCC;
        /*table-layout: fixed; /* speeds up page rendering */
}

.query_row_even {
        background: #fff;
        white-space:nowrap;
}

.query_row_odd {
        background: #eee;
        white-space:nowrap;
}

.query_row_median {
        background: #cef;
        white-space:nowrap;
}

.query_source, .download{
        font-size: 70%;
        margin: 20px auto 0 auto;
        width: 100%; /*changed 5/28/2010 - was 50%*/
        /*float:left;*/
        display:block; /*added 5/28/2010*/
}
/* TABLE STYLES */

table, table.metadata {
        font-size: 0.9em;
        font-family: Arial, Helvetica, verdana sans-serif;
        background-color:#fff;
        border-collapse: collapse;
/*      width: 100%;*/
        max-width:100%;
}
table.rank {
        font-size: 0.9em;
        font-family: Arial, Helvetica, verdana sans-serif;
        background-color:#fff;
        border-collapse: collapse;
        width: 50%;
}
caption, table.metadata caption, table.rank caption {
        font-size: 110%;
        color: #000;
        font-weight: bold;
        text-align: left;
        padding: 5px;
        margin-bottom: -5px;
}
thead th, table.metadata thead th, table.rank thead th {
        border-right: 1px solid #fff;
        color:#000;
        text-align:center;
        padding:2px;
        text-transform:capitalize;
        height:25px;
        background-color: #99ccff;
        font-weight: bold;
}
thead th.shaded2 {
        border-bottom: 1px solid #fff;
}
thead th.tableRowHead, 
table.metadata thead th.tableRowHead, 
table.rank thead th.tableRowHead {
        width: 25%;
}
thead th.AGtableRowHead {
        width: 10%;
}
thead th.DItableRowHead {
        width: auto;
}
thead th.DItableRowHead1,thead th.DItableRowHead2,thead th.DItableRowHead3,thead th.DItableRowHead4,thead th.DItableRowHead5,
thead th.DItableRowHead10,thead th.DItableRowHead9,thead th.DItableRowHead7,thead th.DItableRowHead7,thead th.DItableRowHead6,
thead th.DItableRowHead11,thead th.DItableRowHead12,thead th.DItableRowHead13,thead th.DItableRowHead14,thead th.DItableRowHead15,
thead th.DItableRowHead16, thead th.DItableRowHead8 {
        width: auto;
        text-align:right;
}
tbody tr, 
table.metadata tbody tr, 
table.rank tbody tr {
        background-color:#fff;
        border-bottom: 1px solid #f0f0f0;
}
tbody td {
        color: #000;
        padding: 2px;
        text-align: right;
        font-weight: normal;
        border-right: 1px solid #CCC;
        border-bottom: 1px solid #CCC;
}
table.metadata tbody td,
table.rank tbody td {
        color: #000;
        padding: 5px;
        text-align: left;
        font-weight: normal;
        border-right: 1px solid #CCC;
        border-bottom: 1px solid #CCC;
        vertical-align: top;
}
tbody td.DItableRowHead  {
        text-align: left;
        border-right: 1px solid #CCC;
        border-left: 1px solid #CCC;
        border-bottom: 1px solid #CCC;
}
tbody td.tableRowHead, 
table.metadata tbody td.tableRowHead,
table.rank tbody td.tableRowHead {
        text-align: left;
        border-right: 1px solid #CCC;
        border-left: 1px solid #CCC;
        border-bottom: 1px solid #CCC;
}
table.metadata tbody td.RFtableRowHead,
table.rank tbody td.RFtableRowHead {
        width: 10%;
}
tbody td.shaded2 {
        background-color: #DDD;
        border-right: 1px solid #fff;
}
tbody th, 
table.metadata tbody th,
table.rank tbody th {
        text-align:left;
        padding:2px;
        font-weight: normal;
}
tbody td a, tbody th a, 
table.metadata tbody td a, table.metadata tbody th a,
table.rank tbody td a, table.rank tbody th a {
        color:#008bb9;
        text-decoration: none;
        font-weight:normal; 
}
