
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 0px;
    overflow-y: scroll !important; /* fixing */
}
/* Sticky footer styles
-------------------------------------------------- */

.footer {
    position: absolute;
    bottom: 10px;
    width: 100%;
    font-size: x-small;
    /* Set the fixed height of the footer here */
    /*height: 80px;*/
    background-color: white;

}

.push {
    position: absolute;
    bottom: 0;
    height: auto;
    width: 100%;
}

.panel-title {
    font-size: 12px;
}

.navbar {
    margin: 0;

}
.ng-hide {
    height: 0;
    opacity: 0;
}

.dialog-close-btn {
    float: right;
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2000;
}

.dialog-input-strong{
    font-weight: bold;
}


.clickable:hover {
    cursor: pointer;
    text-decoration: underline;
}

#refuse {
    background: url(/img/bgr_refuse.png) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

.maritimeweb-sidebar {
    position: absolute;
    /*min-width: 240px;*/
    top: 51px;
    bottom: 3%;
    right: 24px;
    margin: 1em 1em 1em 0;
    z-index: 300;
    height: 75%;
    background-color: white ;
    border-radius: 4px;
    padding: 4px;
    overflow-y: scroll;
    opacity: 0.90;
    border: 1px #269 solid;
}

.sidebar-minimized{
    height:105px !important;
}
.sidebar-normal{
    height:auto;
}


@media screen and (max-width: 768px) {
    .sidebar-minimized{
        height:300px !important;

    }
}

.sidebar-panel {
    padding: 10px 5px;
}
.cursor-default{
    cursor: default !important;
}
.sidebar-badge {
    background-color: darkgreen;
    font-size: 10px;
}
#loadingspinner{
    z-index: 9999;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    top: 20%;
    left: 50%; opacity: 0.85;
}

/** Maps **/

.map {
    padding: 0px;
    margin-right: 0px;
    height: 90%;
    width: 100%;
    position: absolute;
    border: 1px #269 solid;
    background-color:#269;
    background-image: linear-gradient(white 2px, transparent 2px),
    linear-gradient(90deg, white 2px, transparent 2px),
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
    background-size:100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px;
    /*
    background:url(
    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAI0lEQVQIW2M8c+bMfxMTE0YGKADxwRyYBIxGUQHTgV0lNjMBG7MizEwu19wAAAAASUVORK5CYII=
    ) repeat;
    */
}

.map-sr-browser {
    padding: 0px;
    height: 90%;
    width: 70%;
    position: absolute;
    border: 1px #269 solid;
    background-color:#269;
    background-image: linear-gradient(white 2px, transparent 2px),
    linear-gradient(90deg, white 2px, transparent 2px),
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
    background-size:100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position:-2px -2px, -2px -2px, -1px -1px, -1px -1px;
    /*
    background:url(
    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAI0lEQVQIW2M8c+bMfxMTE0YGKADxwRyYBIxGUQHTgV0lNjMBG7MizEwu19wAAAAASUVORK5CYII=
    ) repeat;
    */
}

.map-sr-sidebar {
    position: absolute;
    width: 30%;
    right: 0px;
    z-index: 300;

    background-color: white ;

    border-radius: 4px;
    padding: 4px;
    overflow-y: scroll;


    border: 1px #269 solid;

}

.json-formatter-dark{
    background-color: #2e2e2e;
}
.xml-formatter-dark{
    background-color: #2e2e2e;
    font-family: monospace;
    color: #fefefe;

}



.sidebar-toggle-btn {
    color: white;
    top: 65px;
    right: 12px;
    position: absolute;
    z-index: 100;
    margin: 0;
    padding: 3px;
    border-radius: 4px;
    border: 2px  rgba(255, 255, 255, 0.9) solid;
    background-color: rgba(0, 60, 136, 0.5);
    transition: background .5s ease-in-out;
    -moz-transition: background .5s ease-in-out;
    -webkit-transition: background .5s ease-in-out;
}

.sidebar-toggle-btn:hover {
    cursor: hand;
    background-color: rgba(0, 60, 136, 0.9);

}

.map-weather-box {
    left: 1rem;
    bottom: -30rem;
    height: auto;
    font-size: 1.2rem;
    width: 70rem;
    position: absolute;
    z-index: 100;
    margin: 0;
    padding: 3px;
    border-radius: 4px;
    opacity: 1.0;
}
.map-weather {
    right: 1rem;
    bottom: -8rem;
    font-size: 1.0em;
    z-index: 100;
    margin: 0;
    padding: 3px;
    border-radius: 4px;
}
.map-weather-btn {
    left: 1rem;
    bottom: -10rem;
    font-size: 1.0rem;
    z-index: 100;
    margin: 0;
    padding: 3px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 0.8;
}

.map-weather-btn:hover {
    cursor: hand;
    background-color: rgba(255, 255, 255, 0.8);
}
.map-weather-btn span {
    color: white;
    border-radius: 4px;
    padding: 4px;
    background-color: rgba(0, 60, 136, 0.5);
}

.map-no-go-btn{
    left: 12px;
    top: 160px;
/*    font-size: 1.0em;
    width: 8em;*/
    position: absolute;
    z-index: 100;
    margin: 0;
    padding: 3px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 0.8;
}
.map-no-go-btn:hover {
    cursor: hand;
    background-color: rgba(255, 255, 255, 0.8);
}
.map-no-go-btn span {
    color: white;
    border-radius: 4px;
    padding: 4px;
    background-color: rgba(0, 60, 136, 0.5);
}
.map-no-go-btn:hover span {
    cursor: pointer;
    color: white;
    border-radius: 4px;
    padding: 4px;
    background-color: rgba(0, 60, 136, 0.9);
}

.map-current-pos-btn {
    left: 12px;
    top: 80px;
    font-size: 1.5em;
    position: absolute;
    z-index: 100;
    margin: 0;
    padding: 3px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 0.8;

}

.map-current-pos-btn:hover {
    cursor: hand;
    background-color: rgba(255, 255, 255, 0.8);

}
.map-current-pos-btn span {
    color: white;
    border-radius: 4px;
    padding: 4px;
    background-color: rgba(0, 60, 136, 0.5);
    list-style-type: none;
}

.map-current-pos-btn:hover span {
    cursor: pointer;
    color: white;
    border-radius: 4px;
    padding: 4px;
    background-color: rgba(0, 60, 136, 0.9);
}

.map-current-pos-orientation-btn {
    left: 12px;
    top: 100px;
    font-size: 1.5em;
    position: absolute;
    z-index: 100;
    margin: 0;
    padding: 3px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    opacity: 0.8;
    cursor: hand;
}

.map-current-pos-orientation-btn span {
    color: white;
    border-radius: 4px;
    padding: 4px;
    background-color: rgba(0, 60, 136, 0.5);
    list-style-type: none;
}



.map-scale-line {
    left: 50px;
    top: 65px;
    position: absolute;
    z-index: 100;
}

.ol-scale-line {
    background-color: rgba(0, 60, 136, 0.5);
    position: relative;
}

.map-mouse-position {
    position: absolute;
    left: 60px;
    top: 65px;
    border-radius: 4px;
    padding: 4px;
    width: auto;
    height: 1.85em;
    line-height: 1.3em;
    text-align: center;
    font-size: 0.8em;
    color: white;
    z-index: 100;
    background-color: rgba(0, 60, 136, 0.5);
}
.map-mouse-position-toggle{
    font-size: 1.4em !important;
    position: absolute;
    left: 110%;
    top:0px;
    border-radius: 4px;
    padding: 4px;
    width: 25px;
    height: 100%;
    text-align: center;
    font-size: 0.8em;
    color: white;
    z-index: 100;
    background-color: rgba(0, 60, 136, 0.5);
}


.popover {
    font-size: 1em;
    width: 240px;
}

/** Vessel list **/

.vessel-login {
    margin: 10px 20px;
    padding: 10px;
    border-radius: 4px;
    background-color: lightgray;
    text-align: center;
}

.vessel-item {
    font-size: 10px;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

/** NW-NM list **/

.message-services {
    font-size: 11px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid lightgray;
}

.message-services-header {
    text-align: center;
    background-color: lightgray;
    padding: 5px;
}

.message-service {
    padding: 5px 10px;
}

.message-item {
    font-size: 11px;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.message-area-heading {
    padding: 10px 5px;
    font-size: 12px;
    font-weight: bold;
    background-color: lightgray;
    color: white;
}

/** NW-NM Message Details Dialog **/

.message-details-item {
    padding: 10px !important;
    font-size: 11px;
}

table.message-details-item-fields {
    font-size: 11px;
    width: 100%;
}

table.message-details-item-fields th {
    width: 85px;
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
    color: gray;
    padding-top: 5px;
}

table.message-details-item-fields td {
    padding-top: 5px;
}

.label-message-id {
    background-color: black;
    font-size: 10px;
    display: inline-block;
    margin-bottom: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}


/** For tables in the message rich text description field **/
.message-description table {
    border-collapse: collapse;
    border: 1px solid #333;
}

.message-description table td, .message-description table th {
    vertical-align: top;
    border: 1px solid #333;
    padding: 3px;
}

.message-description ol, .message-description ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.message-description ol li, .message-description ul li {
    margin-bottom: 3px;
}

.message-description ol li:last-child, .message-description ul li:last-child {
    margin-bottom: 0;
}

.message-description p, .message-description p {
    margin: 0 0 3px 0;
}

.message-description ol li p:last-child, .message-description ul li p:last-child {
    padding: 0;
    margin: 0;
}

table.no-border {
    border: 0;
}

table.no-border td, table.no-border th {
    border: 0;
}

table.condensed {
    padding: 0;
}

table.condensed td, table.condensed th {
    padding: 0;
}

tr.underline td {
    border-bottom: 1px solid #333;
}

td.underline {
    border-bottom: 1px solid #333;
}

table.positions {
    border: 0;
    margin-bottom: 1mm;
}

table.positions td, table.positions th {
    color: #333;
    border: 0;
    padding: 0 3mm 0 0;
    text-align: left;
    white-space: nowrap;
}

table.positions td:nth-child(1) {
    text-align: right;
    color: darkgray;
}

.message-details-map {
    width: 100%;
    /* height: 200px;*/
    border: 1px solid lightgray;
    margin-bottom: 20px;
    background-color: #b5d0d0;
    position: relative;
    height: 200px;
}

.message-details-route {
    /* height: 200px;*/
    border: 1px solid #b5d0d0;
    background-color: rgba(255, 255, 255, 0.4);
    position: absolute;
    left: 0px;
    bottom: 0px;
    padding: 1em;

    z-index: 100;
}

.message-details-optimized-route {
    /* height: 200px;*/
    border: 1px solid #b5d0d0;
    background-color: rgba(255, 255, 255, 0.4);
    position: absolute;
    right: 0px;
    bottom: 0px;
    padding: 1em;
    z-index: 100;
}

.route-details-map {
    width: 100%;

     height: 660px;
    border: 1px solid lightgray;
    margin-bottom: 20px;
    background-color: #b5d0d0;
    position: relative;
}

@media (min-width: 800px) {
    .message-details-map {
        height: 300px;
    }
}

.message-details-map .ol-zoom {
    top: auto;
    bottom: 10px;
}

.ol-zoom {
    top: 65px;
}

.message-details-close-btn {
    float: right;
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 2000;
}

.ol-attribution ul{
    font-size: small;
}

.ol-popup {
    min-width: 360px;
}

@media (min-width: 800px) {
    .ol-popup {
        min-width: 420px;
    }
}

.ol-popup {
    position: absolute;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    bottom: 12px;
    left: -50px;
}
#ol-popup-top, #ol-popup-bottom {
    background-color: white;
}

#ol-popup-top {
    padding-top: 30px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-top: 1px solid white;
    border-top: 1px solid #cccccc;
}

#ol-popup-top:before {
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
}

#ol-popup-bottom {
    padding-bottom: 20px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom: 1px solid white;
    border-top: 1px solid #cccccc;
}
#ol-popup-bottom:after {
    top: 100%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    -webkit-filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
}

#ol-popup-bottom:after {
    border-top-color: white;
    border-width: 10px;
    left: 48px;
    margin-left: -10px;
}
#ol-popup-bottom:before {
    border-top-color: #cccccc;
    border-width: 11px;
    left: 48px;
    margin-left: -11px;
}
.ol-popup-closer {
    text-decoration: none;
    position: absolute;
    top: 2px;
    right: 8px;
}
.ol-popup-closer:after {
    content: "✖";
}

.ol-popup-img {
    align-self: center;
}

/* aligning of content in table of vesseldata.*/
.table tbody>tr>td.vert-align{
    vertical-align: middle;
}

/*  compass */
.compass-div {
    border: 0;
    display: inline-block;
    position: relative;
}
.compass-circle {
    width: 98px;
    height: 98px;
}
.compass-circle-small {
    width: 51px;
    height: 51px;
}
.compass-needle {
    width: 98px;
    height: 98px;
    position: absolute;
    left: 0;
    top: 0;
}.compass-needle-small {
    width: 51px;
    height: 51px;
    position: absolute;
    left: 0;
    top: 0;
}


 /* active table
 */
.table > thead > tr > td.active, .table > tbody > tr > td.active, .table > tfoot > tr > td.active, .table > thead > tr > th.active, .table > tbody > tr > th.active, .table > tfoot > tr > th.active, .table > thead > tr.active > td, .table > tbody > tr.active > td, .table > tfoot > tr.active > td, .table > thead > tr.active > th, .table > tbody > tr.active > th, .table > tfoot > tr.active > th {

    background-color: cornflowerblue;
}

 /*  FILE upload */
.drop-box {
    background: #F8F8F8;
    border: 5px dashed #DDD;
    width: 200px;
    height: 65px;
    text-align: center;
    padding-top: 25px;
    margin: 10px;
}
.dragover {
    border: 5px dashed blue;
}

/* loader */
.loader {
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    width: 60px;
    height: 60px;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

