/*
 * Base structure
 */

 :root {
    --backgroundCol: #f4f4f4;
    --sideCol: #000000;
    --topmenutitleCol: #ffffff;
    --insideBoxCol: #ffffff;
    --menutextCol: #ffffff;
    --menutextactiveCol: #000000;
    --headerTextCol: white;
    --mapbackgroundCol: #ffffff;
    --chartbackgroundCol: #ffffff;
    --topmenutextCol: white;
    --taskinfonameCol: #4d6b41;
    --taskinfopercentCol: #4d6b41;
    --submenuactivebgCol: #3e3e3e;
    --menuseparatorCol: #ffffff;
    --menucurrentselectedCol: #ffffff;
    --tableoddtextCol: #335736;
    --tableeventextCol: #335736;
    --tableheadertextCol: #335736;
    --tableevenbgCol: #e8e7e6;;
    --tableoddbgCol: #ddecde;
    --monitoringPanelBgCol: #f1f8f1;
    --sliderCursor: #37adbf;
    --sliderCursorBorder: #37adbf;
    --zoomControl: #000000;
    --assetpanelheaderbg: #dbdbdb;
    --assetpanelheadertext: #535353;
    --assetpanelborder: #d6d6d6;
    --splashScreen: #ffffff;

    /*
    --backgroundCol:#4d6b41;
    --sideCol:#335736;
    --topmenutitleCol:#a8ccab;
    --insideBoxCol:#efefe4;
    --menutextCol:#99cd94;
    --menutextactiveCol:#144924;
    --headerTextCol:white;
    --mapbackgroundCol:#efefe4;
    --chartbackgroundCol:#efefe4;
    --topmenutextCol:white;
    --taskinfonameCol:#4d6b41;
    --taskinfopercentCol:#4d6b41;
    --submenuactivebgCol:#4d6b41;
    --menuseparatorCol:#144924;
    --menucurrentselectedCol:#ffffff;
    --tableoddtextCol:#335736;
    --tableeventextCol:#335736;
    --tableheadertextCol:#335736;
    --tableevenbgCol:#e8e7e6;;
    --tableoddbgCol:#ddecde;
    --monitoringPanelBgCol:#f1f8f1;
    --sliderCursor:#258b3f;
    --sliderCursorBorder:#8be0a0;


    */

    /* --backgroundCol:#808080;
    --sideCol:#222;
    --insideBoxCol:#808080;
    --menutextCol:grey;
    --menutextactiveCol:#fff;
    --headerTextCol:white;
    --mapbackgroundCol:white;
    google blue #4885ed */

}


/*leaflet overrides */

a.leaflet-control-zoom-in,
a.leaflet-control-zoom-out {
    font: 10px 'Lucida Console', Monaco, monospace;
    text-indent: 1px;
    background-color: var(--zoomControl);
    color: var(--headerTextCol);
}


/* Move down content because we have a fixed navbar that is 50px tall */

body {
    padding-top: 0px;
    background: var(--backgroundCol);
    height: 100%;
}


.layer-button:focus {
    outline: none;
    box-shadow: none;

}


.layer-disabled {
    background-color: grey;
}

.layer-disabled:focus {
    background-color: grey;
    border-color: grey;
    outline: none;
    box-shadow: none;
}

.apptitle {
    background-color: var(--sideCol);
    padding-left: 30px;
}

/* overwrite navbarbrand for text color*/

.navbar-inverse .navbar-brand {
    color: var(--menutextCol);
}


.viewcontainer {
    padding-left: 60px;
    margin-left: 0px;
    margin-right: 0px;
}


/* what happend when on very small screen */

@media (max-width: 767px) {

    .viewcontainer {
        padding-left: 20px;
        padding-right: 0px;
        /* height : calc(100% - 10px); */
    }

    .table-striped {
        font-size: 8px;
    }

    .apptitle {
        display: none;
    }

    .minimenu {
        position: fixed;
        -webkit-transition: all 0.25s ease-out;
        -moz-transition: all 0.25s ease-out;
        transition: all 0.25s ease-out;

        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 10000;
        display: block;
        padding: 0px;
        padding-top: 60px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: var(--sideCol);
        width: 40.6%;
    }


}

/*
.sub-header {
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
} */

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
    border: 0;
    background: var(--sideCol);
    position: fixed;
    height: 50px;

}

.tanalyslogo {
    padding: 0px;
    padding-top: 15px;
    width: 100%;
    height: 100%;


}

.tanalyslogo > img {

    width: 100%;
    height: 100%;


}

.topmenutext {
    display: inline-block !important;
    color: var(--topmenutextCol);
    top: 2px;
}

.smallmap {
    background-color: var(--mapbackgroundCol);
}


.taskChart {
    background-color: var(--chartbackgroundCol);

}

.taskinfo-name {
    width: 100%;
    text-align: center;
    padding-top: 10px;
    color: var(--taskinfonameCol);
}

.taskinfo-percent {
    width: 100%;
    text-align: center;
    font-size: 50px;
    color: var(--taskinfopercentCol);
}

.zoom-modal {
    background-color: var(--mapbackgroundCol);

}

/* dashboard panels */

.firstrow {
    background-color: var(--backgroundCol);
    margin-right: 0;
}

.nextrow {
    background-color: var(--backgroundCol);
    padding-top: 20px;
    margin-right: 0;
}

.firstrow .device-table {
    padding: 0;
}

.panelheader {
    background-color: var(--insideBoxCol);
    color: white;
    width: 100%;
    padding-top: 5px;
    padding-bottom: 0px;
    padding-left: 10px;


}

.panelfooter {
    background-color: var(--insideBoxCol);
    color: white;
    height: 20px;
    padding: 0;
}

.panelbox {

    background-color: var(--insideBoxCol);
    border: 1px solid darkgrey;
    padding: 0px;
}

/* bootstrap overwrites */

.progress {
    margin-bottom: 0px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background-color: var(--insideBoxCol);
}

::-webkit-scrollbar:hover {
    overflow: auto;
    padding-right: 1px
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

::-webkit-scrollbar-thumb {
    border-radius: 20px;
    background-color: #515151;
    /*    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.7);*/
}


/* .table-striped >table{
   background-color: var(--insideBoxCol);


}

.table-striped > thead > tr{
   background-color: var(--insideBoxCol);
   color:var(--tableheadertextCol);
}

.table-striped > tbody > tr:nth-child(2n+1){
   background-color: var(--tableoddbgCol);
   color:var(--tableoddtextCol);
   border:0px;
}

.table-striped > tbody > tr:nth-child(2n){
   background-color: var(--tableevenbgCol);
   color:var(--tableeventextCol);
   border:0px;
} */


.menuicon {
    padding-right: 10px;
}


/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 50px;
        width: 100px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 0px;
        padding-top: 100px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: var(--sideCol);
        border-right: 0px solid #eee;
    }
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: 0px; /* 20px padding + 1px border */
    margin-bottom: 0px;
    margin-left: 0px;
    background: var(--sideCol);
}

.nav-sidebar > li > a {
    padding-right: 20px;
    padding-left: 10px;
}

.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: var(--menutextactiveCol);
    background-color: var(--backgroundCol);;
}

.nav-sidebar > li > a {
    color: var(--menutextCol);
}


/* modal */

.modal-task-name {
    font-size: 1.3em;
    padding-right: 20px;
}

.modal-info-box {
    font-size: 1.3em;
    text-align: center;
    display: inline-block;
    min-width: 25%;
    height: 100%;
    background-color: white;
    border: 1px solid lightgrey;
    padding: 0px;
    margin-right: -4px;
}

.modal-info-box:nth-child(n+2) {
    margin-left: -1px;
}

/*
 * Main content
 */

.main {
    padding: 0px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin: 0px;
}

@media (min-width: 768px) {
    .main {
        /*     padding-right: 40px;
            padding-left: 40px; */
    }

    .viewcontainer {
        padding-left: 60px;
        padding-right: 10px;
        /* height : calc(100% - 500px); */
    }


}

.main .page-header {
    margin-top: 0;
}

.tasks-label {
    background: rgba(255, 255, 255, 0);
    border: 0;
    border-radius: 0px;
    box-shadow: 0 0px 0px;
}

#map .info.legend {
    background-color: rgba(255, 255, 255, .5) !important;
    z-index: 1;
    max-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    margin-left: 5px;
    line-height: 25px;
}
#map .info.legend.incomplete-data {
    background-color: rgba(255, 0, 0, 0.5) !important;
    color: white !important;
}

#map .legend-icon {
    width: 25px;
    height: 15px;
    opacity: .8;
    margin: 0 10px -2px 3px;
    border-radius: 2px;
    display: inline-block;
}

#feature-list .legend-icon {
    width: 25px;
    height: 15px;
    opacity: .8;
    margin: 0 10px -2px 3px;
    border-radius: 2px;
    display: inline-block;
}

#lang-dropdown {
    margin: 15px;
    font-size: medium;
    display: block;
    float: right;
}

#lang-dropdown a {
    color: white
}

#lang-dropdown a[aria-expanded="false"]::before, a[aria-expanded="true"]::before {
    content: '';
    display: none;
}

#lang-dropdown a[aria-expanded="true"]::before {
    content: '';
}

#lang-dropdown .dropdown-menu {
    top: unset;
    left: 1em !important;
    margin-right: 25px;
    min-width: 100px
}

#lang-dropdown .lang-option {
    color: black;
    background-color: white;
    padding-left: 10px !important;
}

#lang-dropdown .lang-option:hover {
    color: white;
    background-color: black;
}

#topmenutitle {
    text-transform: uppercase;
}

#footer {
    bottom: 0;
    margin: 0;
    position: fixed;
    width: 100%;
    text-align: center;
}

#footer footer {
    margin: auto;
}

#footer h5 {
    font-size: 1em;
    margin-bottom: 0;
    text-align-last: center;
    color: grey;
    height: 20px;
}

#footer a {
    color: #4d6b41;
}

#footer a:hover, #footer a:focus {
    text-decoration: underline !important;
}

a, a:hover, a:focus {
    color: #4d6b41;
}

#content {
    width: 100%;
}

#content {
    padding: 0 0 20px 15px
}

#devicesPanel #example {
    margin-top: 0 !important;
}

#periodStart input {
    width: auto;
    line-height: 1.5;
    height: 2em !important;
    padding: 0 0 0 10px
}

#periodStart, #periodStart .input-group-append {
    display: inline-block;
}

#periodStart .input-group-append {
    vertical-align: middle;
    margin-left: -10px;
}

#periodStart .input-group-text {
    height: 2em;
}

.leaflet-top.leaflet-right .leaflet-control-layers-group-name {
    font-weight: 900;
}

#applyFilter {
    margin: auto;
    width: 50%;
}
#applyFilterGang {
    margin: auto;
    width: 50%;
}

.tab-content .row {
    font-size: 14px;
    width: inherit;
    margin: 0;
}

.bootstrap-select .bs-ok-default::after {
    width: 0.3em;
    height: 0.6em;
    border-width: 0 0.1em 0.1em 0;
    transform: rotate(45deg) translateY(0.5rem);
}

.btn.dropdown-toggle:focus {
    outline: none !important;
}

#sidebarFilter button.dropdown-toggle {
    white-space: normal;
}

#filterContent label {
    width: 100%;
    padding-top: 10px;
    font-weight: 500 !important;
    font-size: 1rem !important;
}
#filterContent label div.dropdown button {
    font-size: 1rem;
    font-weight: 500;
}
#filterContent label div.dropdown div.dropdown-menu {
    margin: 0;
    padding: 0;
}

#filterContentGang label {
    width: 100%;
    padding-top: 10px;
    font-weight: 500 !important;
    font-size: 1rem !important;
}
#filterContentGang label div.dropdown button {
    font-size: 1rem;
    font-weight: 500;
}
#filterContentGang label div.dropdown div.dropdown-menu {
    margin: 0;
    padding: 0;
}

#sosSelector {
    text-align-last: center;
    margin-bottom: 1em;
}

#sosSolvedBtn button {
    margin: auto;
}

#cycleSelector, #cycleOccurrenceSelector {
    background-color: white;
    text-align-last: center;
}

#cycleSelector .dropdown, #cycleOccurrenceSelector .dropdown {
    width: 100%;
}

#cycleSelector .bootstrap-select, #cycleOccurrenceSelector .bootstrap-select {
    position: inherit;
}


#sidebar i.fa.fa-caret-down {
    float: right;
}

#reportrange, #reportRangeCycle {
    text-align-last: center;
    font-weight: 500;
    font-size: 1rem;
}

@media screen and (max-width: 1405px) {
    #reportrange, #reportRangeCycle {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 1270px) {
    #reportrange, #reportRangeCycle {
        font-size: 0.7rem;
    }
}

[data-toggle="collapse"] i#deviceRoleCollapse:after {
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: rotate(90deg);
    content: '\f054';
    transition: all linear 0.25s;
    float: left;
}
[data-toggle="collapse"].collapsed i#deviceRoleCollapse:after {
  transform: rotate(0deg) ;
}

i#deviceRoleCollapse {
    vertical-align: text-top;
}

[data-toggle="collapse"] i#summaryPanelCollapse:after {
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: rotate(90deg);
    content: '\f054';
    transition: all linear 0.25s;
    float: left;
}
[data-toggle="collapse"].collapsed i#summaryPanelCollapse:after {
  transform: rotate(0deg) ;
}

i#summaryPanelCollapse {
    vertical-align: text-top;
}

#sidebarDevice a:hover, #sidebarDevice a:focus {
    text-decoration: none !important;
}

#devicesToggle ul li.list-group-item {
    text-align: center;
    padding: 0.5em 0.5em 0 0;
}
.btn-green {
  color: #34612f;
  border: 1px solid #34612f;
  font-weight: 500;
}
.btn-green:hover {
    color: white;
    background:#34612f;
    font-weight: 500;
  }
#downloadSampleBtn {
  border-radius: 50%;
  padding: 0 .5rem;
  vertical-align: -webkit-baseline-middle;
}
.buttons-csv {
  color: #34612f;
  border: 1px solid #34612f;
  font-weight: 500;
}
#loadingFullPage {
  position: absolute;
  width: 70px;
  height: 70px;
  top: 45%;
  left: 45%;
  z-index: 20001;
}