html,body
{
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px !important;
    overflow-x: hidden; 
}

body {
    background: #fff;
}

/* main {
    height: calc(100vh - 86px);
} */

.main-container {
    padding-top: 15px;
}

.table-section-panel-body th {
    text-align: left !important;
}

.check.check-bigger:before {
    top: 2px;
    left: 2px;
}

/* global classes */
.main-green {
    background-color: #006a4d !important;
    color: #ffffff !important;
}

.radio-green {
    border-color: #006a4d !important;
}

.btn-green {
    background-color: #80ba27 !important;
    color: #ffffff !important;
    margin-right: -5px;
}

.btn-orange {
    background-color: #ef7d00 !important;
    color: #ffffff !important;
    margin-right: -5px;
}

.btn-red {
    background-color: #d74b4b !important;
    color: #ffffff !important;
}

.btn-small {
    transform: scale(0.75);
}

.btn-xsmall {
    transform: scale(0.55);
    margin-bottom: -15px;
}

.panel-heading--narrow {
    width: 45%;
}

.panel-heading--wide {
    width: 55%;
    margin-right: 5px;
}

.navbar-collapse--right {
    width: 100%;
}

.no-margin {
    margin: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.margin-left-rem {
    margin-left: 1rem !important;
}

.no-padding {
    padding: 0 !important;
}

.full-width {
    width: 100%;
}

.full-height {
    height: 100% !important;
}

.no-display {
    display: none !important;
}

.check, .check:before {
    color: #006a4d !important;
    border-color: #006a4d !important;
}

.checkbox-material:after {
    background-color: #006a4d !important;
    display: none !important;
}

.active {
    background-color: #003a2b !important;
}

.btn.active {
    color: white !important;
}

.display-block {
    display: block !important;
}

.checkbox .checkbox-material .check:before, label.checkbox-inline .checkbox-material .check:before {
    margin-top: -6px;
    margin-left: 4px;
}

.currentLayer-select-height {
    height: 38px !important;
}

/* end global classes */

/* nav elements */
#menu {
    padding: 0;
}

#header {
    box-shadow: 0 3px 3px rgba(0,0,0,.29);
}

#navbar-brand-logo {
    height: 30px;
}

#navbarSupportedContent > ul > li.nav-item.active > a {
    background-color: transparent;
}

.nav-item {
    width: 60px;
    text-align: center;
}

.nav-item:last-child {
    width: 90px;
}

.nav-item:hover {
    background: #004733;
}

.navbar-toggler {
    border: 1px solid #fff;
    height: 46px;
    width: 46px;
    padding: 0;
}

.navbar-toggler:before {
    content: "\f013";
    font-family: FontAwesome;
    color: #fff;
    position: absolute;
    font-size: 20px;
}

/* objects and statistics panel */
.table-row {
    padding-top: 15px;
    /* height: calc(45vh - 166px); */
}

.table-section-panel-body {
    overflow: auto;
    padding-bottom: 0;
    margin-bottom: 0;
    height: calc(45vh - 166px);
}

.table-section-panel-body th {
    text-align: center;
}

/* map panel */
.map-section-panel {
    height: 55vh;
    margin-bottom: 0;
}

.panel-map-body {
    height: calc(55vh - 50px);
}

#map {
    height: calc(55vh - 50px);
    padding-bottom: 10px;
    padding-top: 10px;
}

span.checkbox-material::before {
    transform: none !important;
    height: 15px !important;
    width: 15px !important;
}

/* projects and catchments panel */
.projects-catchments-section {
    padding-right: 15px;
    height: 100%;
    width: 100%;
}

.projects-panel-row {
    height: 15vh;
}

.projects-panel-body-select {
    width: 75%;
    padding: 0;
    /* width: 100vw; */
    margin-right: 10px; 
    /* float: left; */
}

#new-project-input:focus {
    outline: none !important;
}

.map-panel-select {
    padding: 0;
    width: 50%;
    margin-top: 13px;
    margin-right: 5px;
}

.catchments-panel-row {
    height: 40vh;
    padding-top: 15px;
}

.catchment-rows {
    height: 100%;
}

.catchment-row {
    height: 20%;
    padding: 0px 10px 10px 10px;
}

.catchment-row:last-child() {
    padding-bottom: 0px;
}
/* 
.catchment-options {
    margin-top: 4px;
} */

.catchment-options input[type="radio"] {
    margin-right: 5px;
}

.catchment-time-input {
    width: 75px;
    margin: 2px 5px 0 0;
    padding: 0px;
}

.catchment-settings-buttons {
    margin-left: -5px;
}

.catchment-settings {
    margin-left: -15px;
}

.radio-primary .catchment-settings-label-radio {
    padding-left: 30px;
    padding-right: 0px;
}

.catchment-settings-label-radio input {
    display: none;
}

.panel-body.panel-catchment, .panel-body.panel-projects {
    /* margin-top: 5px; */
    padding: 5px 10px 10px 10px;
    height: calc(100% - 50px);
    width: 100%;
}

.panel-body.panel-catchment {
    margin-top: 0;
}

/* common elements */
.panel-heading .panel-heading--narrow .panel-title {
    line-height: 50px;
    padding-left: 10px;
}

.panel .panel-body {
    padding: 5px 10px 0px 10px;
}

.panel .panel-heading {
    padding: 0px;
    height: 50px;
}

.panel-body {
    padding-top: 0px !important;
}

.btn.btn-raised.btn-success.main-green {
    padding: 5px;
}

.btn.btn-raised.btn-success.main-green.main-green-small {
    padding-left: 10px;
}

.btn.btn-raised.btn-success.btn-red {
    padding: 5px 0px 5px 10px;
    margin-left: 45px;
}

.btn.btn-raised.btn-success.btn-red.btn-catchment {
    margin: 25px 0 0 5px;
}

.btn-circle.btn-circle-success:before {
    background-color: #008e69 !important;
}

.btn.btn-raised.btn-success.main-green:hover {
    background-color: #008e69 !important;
}

.form-group-project {
    margin: 0;
}

.form-group-project-select {
    padding: 0;
    width: 80%;
}

input[type="color"] {
    margin-top: 3px;
    width: 35px;
    padding-bottom: 5px;
    padding-top: 10px;
}

div.row.catchments-panel-row > div > div > div {
    line-height: 52px;
}

.radio .check:after, label.radio-inline .check:after {
    left: -5px !important;
    top: -5px !important;
    height: 25px !important;
    width: 25px !important;
}

.radio input[type=radio]:checked~.check, label.radio-inline input[type=radio]:checked~.check {
    background-color: #006a4d !important;
}

.doNotRemoveThisClassFromModal {
    z-index: 2100;
}

.tempModal {
    width: 300px;
}

#shapeRuleModal .modal-content {
    width: 160%;
    left: -30%;
}

.olEditing {
    position: absolute;
    top: 100px;
    left: 22px;
    z-index: 1600;
    width: 28px;
}

.olEditingRight {
    position: absolute;
    bottom: 8px;
    right: 45px;
    z-index: 1600;
    width: 28px;
}
    
.olEditingRight2 {
    position: absolute;
    top: 60px;
    right: 45px;
    z-index: 1600;
    width: 28px;
}
    
.olEditingRight3 {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 2200;
    width: 28px;
}

#olEditingRight-list {
    height: 274px;
    /* width: 300px; */
    overflow-y: auto;
    position: absolute;
    z-index: 999;
    right: 65px;
    bottom: 50px;
}

#olEditingRight-list-element {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 15px;
    height: 26px;
    /* top: -10px; */
}

#olEditingRight-list-element-name {
    position: relative;
    top: -12px;
}

.olControlZoom a {
    background-color: #006a4d !important;
}

#full-on, #full-off {
    /* right: 15px; */
    top: -20px;
}

.map-full-off {
    height: calc(100vh - 180px);
    width: 100%;
}

.map-full-on {
    position: fixed;
    top:0px;
    left: 0px;
    height: 100vh !important;
    width: 100vw !important;
    background: black none repeat scroll 0 0 !important;
    z-index: 2000 !important;
}

.btn-group-vertical > .btn:first-child:not(:last-child) {
    border-radius: 0px;
}

.btn-group-vertical > .btn:last-child:not(:first-child) {
    border-radius: 0px;
}

.btn-group-vertical > .btn + .btn, .btn-group-vertical > .btn + .btn-group, .btn-group-vertical > .btn-group + .btn, .btn-group-vertical > .btn-group + .btn-group {
    margin-left: 0;
    margin-top: 1px;
    height: 24px;
}

#printFormat {
    background-color: rgba(255, 255, 255, 0.7);
    height: 460px;
    left: 46px;
    overflow-y: auto;
    position: absolute;
    top: 60px;
    width: 270px;
    z-index: 1602;
}

#measurePopup {
    position: absolute;
    top: 60px;
    left: 25%;
    width: 250px;
    background-color: rgba(200,200,200,0.5);
    z-index: 1601;
    padding: 4px;
}

.btn-inactive, .btn-inactive:hover, .btn-inactive:active, .btn-inactive:focus {
    cursor: not-allowed;
    background-color: #bcbcbc;
    border-color: #bcbcbc;
}

.fa.fa-cog, .fa.fa-eraser {
    margin-right: 5px;
}

.formatSample {
    background-color: #C3E5A9;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    border: 2px solid #000000;
    margin: 5px;
    cursor: pointer;
}

.baselayers {
    /* margin-top: 5px !important; */
    position: absolute;
    right: 120px;
    /* bottom: -50px !important; */
    width: 200px;
    z-index: 2000;
    border-radius: 50px !important;
}

ul.list-group.baselayers.pull-right > li:last-child {
    height: 50px !important;
}

.legend-label {
    position: relative; top: -3px;
    height: 20px;
    margin: 0 auto;
}

.legend-item {
    border-radius: 50%;
    height: 10px;
    width: 10px;
    display: inline-block;
    margin-right: 5px;
}

ul.list-group.baselayers.pull-right > li > div {
    height: 20px !important;
}

.list-legend {
    padding: 1px 5px;
}

.list-legend .checkbox {
    margin-left: 5px;
}

.list-legend .checkbox .checkbox-material {
    top: -5px;
}

section > div > div.panel-body.panel-map-body > ul.list-group.baselayers.pull-right > li {
    padding: 3px;
    width: 250px;
}

.statsLabel {
    display: inline-block;
    left: 5px;
    margin-bottom: 5px;
    max-width: 100%;
    position: relative;
    top: -2px;
}

@-moz-document url-prefix() {
    .statsLabel {
    display: inline-block;
    left: 5px;
    margin-bottom: 5px;
    max-width: 100%;
    position: relative;
    top: -5px;
}

@media screen and (max-width: 992px) {
    #menu {
        padding: 5px 0 5px 0;
    }
    
    .navbar-nav {
        margin: 15px 0 15px;
    }

    .navbar-nav, .nav-item {
        width: 100% !important;
    }

    .nav-item > li {
        width: 100% !important;
    }

    .projects-catchments-section {
        padding-top: 15px;
        padding-left: 15px;
    }
}