/* Override a few default rules */
html, body {
    font-family: sans-serif;
    font-size: small;
}

img {
    border: 0;
}

input {
    border: 1px solid #999;
}
input.checkbox, input.radio {
    border: none;
}

form ul.errorlist {
    font-weight: bold;
    list-style-type: square;
}

fieldset {
    border: 1px solid #65a0cc;
    padding: 10px;
}
fieldset legend {
    color: #4c799a;
}

a, a:link, a:visited {
    color: #4c799a;
    text-decoration: none;
}

a:hover, a:active {
    text-decoration: underline;
}

h2 {
  color: #65a0cc;
  border-bottom: 1px dotted #65a0cc;
}

/* Rempec skin */
#header {
    background: transparent url(../img/bg-header.png) no-repeat scroll top left;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 75px;
    overflow: hidden;
    width: 100%;
}

/* GUI features : */
/* - menu bar in-line items */
#menubar {
    color: #fff;
    background: #4c799a;
    position: absolute;
    left: 0px;
    right: 0px;
    top: 75px;
    height: 25px;
    overflow: hidden;
    width: 100%;
}

#menubar ul.ulmenu {
    float: right;
    margin: 0;
    padding: 0;
}
#menubar ul#rightmenu {
    top: 0;
    right: 0;
    font-size: 12px;
    padding-top: 6px;
    padding-right: 15px;
}
#menubar ul.ulmenu li {
    list-style-type: none;
    display: inline;
    padding-left: 2px;
    padding-right: 2px;
}
#menubar img {
    vertical-align: middle;
}

#menubar a {
    color: #fff;
}

/* maintenance tasks */
#maintenance_msg {
    position: absolute;
    left: 3px;
    top: 80px;
    font-weight: bold;
    color: white;
    font-size: 10px;
    line-height: 18px;
}
#maintenance_msg img {
    vertical-align: top;
}

/* - Logos */
div#logos {
    position: absolute;
    top: 5px;
    right: 5px;
    border: 0;
    padding: 0;
    margin: 0;
    text-align: right;
}
div#logos a {
    border: 0;
    padding: 0;
    margin: 0 5px;
}

ul#safemedproject {
    list-style-type: none ;
}

ul#safemedproject li {
    position: absolute;
}
ul#safemedproject li a {
    position: absolute;
    width: 550px;
    height: 25px;
}

ul#safemedproject li#safemed {
    left: 80px;
    top: 3px;
}

ul#safemedfunded {
    list-style-type: none ;
}

ul#safemedfunded li {
    position: absolute;
}

ul#safemedfunded li#safemed_text{
    top: 50px;
    right: 220px;
}

ul#safemedfunded li#safemed_text a {
    position: absolute;
    width: 70px;
    height: 15px;
}

ul#safemedfunded li#europeaid {
    top: 50px;
    right: 75px;
}

ul#safemedfunded li#europeaid a {
    position: absolute;
    width: 70px;
    height: 15px;
}

#textfooter {
    font-size: 10px;
    color: #4f7ea0;
    position: absolute;
    top: 60px;
    right: 10px;
}
#textfooter a {
    font-weight: bold;
    text-decoration: none;
    color: #4f7ea0;
}

#textcopyright {
    font-size: 10px;
    color: white;
    position: absolute;
    top: 62px;
    left: 5px;
}

/* Modal window */
#control_overlay {
    background-color: #4c799a;
}
.modal {
    background-color: #fff;
    padding: 10px;
    border: 10px solid #4c799a;
    width: 60%;
}
.modal p {
    text-align: justify;
}
.modal p#disclaimer_buttons {
    text-align: center;
}
.modal p#disclaimer_buttons input {
    margin: 0 30px;
    width: 160px;
    height: 50px;
    background: white url(../img/bgButton_disclaimer.png) no-repeat;
    color: white;
    border: none;
}

.modal h1 {
    border-bottom: 1px solid #4c799a;
    color: #4c799a;
}

/* Legal notice */
.legal {
    padding: 20px;
}

.legal h1 {
    border-bottom: 1px solid #4c799a;
    color: #4c799a;
}

/* OL */
div.olControlOverviewMapElement {
    background-color: #4c799a;
}

.olControlPanel  {
    float: right;
    right: 0px;
    height: 35px;
}
.olControlPanel div {
    float: right;
    width: 25px;
    height: 25px;
    margin: 5px;
}
.olControlPanel .olControlZoomBoxItemActive {
    background: url("../js/openlayers/img/icon_zoom.png") no-repeat left top;
    background-position: 0 -25px;
}
.olControlPanel .olControlZoomBoxItemInactive {
    background: url("../js/openlayers/img/icon_zoom.png") no-repeat left top;
}
.olControlPanel .olControlPrintMapItemInactive {
    background: url("../js/openlayers/img/icon_print.png") no-repeat left top;
}

/* Auto complete */
div.autocomplete {
    position: absolute;
    width: 250px;
    margin: 0;
    padding: 0;
    z-index: 1000;
    background-color: white;
    border: 1px solid #888;
}
div.autocomplete ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
div.autocomplete ul li {
    list-style-type: none;
    display: block;
    margin: 0;
    padding: 2px;
    cursor: pointer;
    font-style: normal;
    color: black;
}
div.autocomplete ul li.selected {
    background-color: #ffb;
}

/* Slider */
div.slider { /* width and height set in html code to fix hidden slider issues */
    margin: 10px 0;
    background: #ccc url(../img/bg_slider.png) no-repeat scroll top left;
    position: relative;
}
div.slider div.handle {
    background: #f00 url(../img/cursor_slider.png) no-repeat scroll top left;
    cursor: move;
    position: absolute;
}

/* paginator */
p.pg {
    font-size: 11px;
    line-height: 22px;
    margin: 0;
    padding: 10px 5px;
    color: #666666;
}
p.pg a:link, p.pg a:visited {
    padding: 2px 6px;
    margin: 0 1px;
    border: 1px solid #cccccc;
}
p.pg span.current {
    font-size: 13px;
    font-weight: bold;
    padding: 2px 6px;
    vertical-align: top;
}

/* Picker */
.pickerControlContainer {
    z-index: 200;
}
.pickerControl {
    border: 1px solid gray;
    background-color: #EEEEEE;
    padding: 3px;
}

/* Tooltip */
.tooltip {
    border:1px solid #4c799a;
    background-color:#fff;
    font-size:10px;
    color:#4c799a;
    padding: 2px;
}

/* tabs */
.tabs {
    position: absolute;
    clear: left;
    margin: 0;
    padding: 0 0 19px 10px;
}
.tabs li {
    display: inline;
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.tabs a:link, .tabs a:visited {
    color: #65a0cc;
    float: left;
    line-height: 14px;
    margin-right: 8px;
    padding: 2px 10px 2px 10px;
    text-decoration: none;
    background: #fff;
    border: 1px solid #65a0cc;
}
.tabs a:link.active-tab, .tabs a:visited.active-tab {
    color: white;
    background: #65a0cc;
    border-bottom: 1px solid #fff;
}

/* Map */
.sidepane {
    padding: 0;
    margin: 0;
    position: absolute;
    top: 105px;
    left: 5px;
    bottom: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 342px;
    border: 1px solid #65a0cc;
    background: #fff;
    z-index: 100;
}
#sidepane_content {
    margin: 5px;
}

#sidepane_content p {
    margin: 5px;
}

.closer {
    padding: 0;
    margin: 0;
    position: absolute;
    top: 104px;
    left: 348px;
    right: 5px;
    bottom: 5px;
    width: 8px;
}
.closer img {
    position: absolute;
    top: 50%;
    margin-top: -45px;
    cursor: pointer;
}
.mappane {
    padding: 0;
    margin: 0;
    position: absolute;
    top: 105px;
    left: 358px;
    right: 5px;
    bottom: 5px;
    border: 1px solid #65a0cc;
}

fieldset.layer_switcher ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    color: black;
}

/* Sea Areas */
#sidepane_sea_areas #new_sa_name {
    width: 95%;
}
#sidepane_sea_areas .sa_btn {
    margin-top: 5px;
}

/* Static view */
#sidepane dt {
    background-color: #65a0cc;
    line-height: 21px;
}
#sidepane dt img {
    margin: 0px 3px 0px 4px;
}

/* Analytic view */
#sidepane_analyticview {
    width: 542px;
}
#sidepane_analyticview dl#query_list {
    margin: 0;
    padding: 0;
    list-style-type: none;
    color: black;
    height: 150px;
    overflow: auto;
}
#sidepane_analyticview dt {
    line-height: 21px;
    background-color: #eee;
}
#sidepane_analyticview dt img, #sidepane_analyticview h2 img {
    margin: 0px 3px 0px 4px;
}
#sidepane_analyticview dt.hl {
    background-color: #65a0cc;
}
#sidepane_analyticview dt span.query {
    cursor: pointer;
}
#sidepane_analyticview #query_result {
}
#sidepane_analyticview #query_result_title {
    text-align: center;
    font-size: small;
}
#sidepane_analyticview div.query_wait, #sidepane_analyticview p.query_error {
    text-align: center;
}
#sidepane_analyticview #query_result_table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}
#sidepane_analyticview #query_result_table table thead {
    background-color: #ddd;
}
#sidepane_analyticview #query_result_table table th, #sidepane_analyticview #query_result_table table td {
    padding: 5px;
    border: 1px solid white;
}
#sidepane_analyticview #query_result_table table th {
    cursor: pointer;
    padding-right: 20px;
    background-repeat: no-repeat;
    background-position: right center;
}
#sidepane_analyticview #query_result_table table th.ascending {
    background-color: #65a0cc;
    background-image: url(../img/arrow_down.gif);
}
#sidepane_analyticview #query_result_table table th.descending {
    background-color: #ddffac;
    background-image: url(../img/arrow_up.gif);
}
#sidepane_analyticview #query_result_table table tr {
    cursor: pointer;
}
#sidepane_analyticview #query_result_table table tr.roweven {
    background-color: #f2f2f2;
}
#sidepane_analyticview #query_result_table table tr.hl {
    background-color: #b9ddff;
}
#sidepane_analyticview #query_result_table #query_export {
    display: block;
    text-align: right;
    color: black;
}
#sidepane_analyticview #query_result_table #query_export a {
    border: none;
}
#closer_analyticview {
    left: 548px;
}
#mappane_analyticview {
    left: 558px;
}

/* Query */
#tabs_queries {
    top: 105px;
}
#sidepane_queries {
    width: 442px;
    top: 124px; /* 105px + 19px (menu height) */
}
#sidepane_queries #simple_query_management h2 {
    clear: both;
    padding-left: 10px;
    font-size: 12px;
    background-color: #65a0cc;
    height: 15px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    border: none;
}
#sidepane_queries #simple_query_management h2 .query_title {
    float: left;
}
#sidepane_queries #simple_query_management h2 .query_arrow {
    float: right;
    margin-right: 10px;
}
#sidepane_queries #simple_query_management h2 .query_arrow img {
    vertical-align: middle;
}
#sidepane_queries #simple_query_management div.query_wait {
    text-align: center;
}
#sidepane_queries .simple_query_panel {
    width: 430px;
}
#sidepane_queries table {
    width: 100%;
    border-collapse: collapse;
}
#sidepane_queries td.label {
    width: 40%;
    text-align: right;
    padding-right: 10px;
}
#sidepane_queries td.field {
    width: 55%;
}
#sidepane_queries td.field img {
    vertical-align: middle;
    cursor: pointer;
}
#sidepane_queries td.field img#ida_areas_select {
    vertical-align: top;
    cursor: pointer;
}
#sidepane_queries td.field select {
    width: 210px;
}
#sidepane_queries td.field textarea {
    width: 210px;
    height: 40px;
}
#sidepane_queries td.field div.inputExtension {
    cursor: pointer;
}
#sidepane_queries div.buttons {
    text-align: center;
    margin-top: 5px;
}
#sidepane_queries input.btn_query {
    width: 100px;
}
#sidepane_queries #idp_gross_tonnage_min, #sidepane_queries #idp_gross_tonnage_max {
    width: 70px;
}
#sidepane_queries #idr_gross_tonnage_min, #sidepane_queries #idr_gross_tonnage_max {
    width: 70px;
}
#sidepane_queries #ida_release_qty_min, #sidepane_queries #ida_release_qty_max {
    width: 50px;
}
#closer_queries {
    left: 448px;
}
#mappane_queries {
    left: 458px;
    top: 124px; /* 105px + 19px (menu height) */
}

/* view without map */
#content {
    padding: 0;
    margin: 0;
    position: absolute;
    top: 105px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    overflow: auto;
    background: #fff;
}
