﻿#sidePanelControls {
    position: fixed;
    left: -3px;
    top: 50px;
    border: 1px solid silver;
    background-color: white;
    font-size: 0.8em;
    padding: 2px;
    padding-top: 6px;
    border-radius: 3px;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.18);
    width: 50px;
    height: 300px;
    z-index: 10;
}

#sidePanelControls .toggleMenuSlide {
    width: 34px;
    height: 34px;
    margin: 5px;
    border-radius: 3px;
    background-color: #eee;
}

#sidePanelControls .toggleMenuSlide.hover {
    background-color: #ccc;
    border: 1px solid forestgreen;
}
/*#show_contactForm.hover{
    background-color: #ccc;
    border: 1px solid forestgreen;
}*/
#sidePanelControls .toggleMenuSlide.active {
    background-color: #1cc71c;
}

#sidePanelControls .toggleMenuSlide img {
    padding: 2px;
    width: 28px;
    height: 28px;
}

#sidePanelControls #exitDraw {
    margin-top:10px;
    background-color: #ccffcc;
    border-radius: 17px;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.18);
}

#sidePanelContact{
    border-top:1px solid silver;
    position: absolute;
    bottom: 0;
}

#polyArea {
    font-size: 0.7em;
    position: absolute;
    top: 38px;
    right: 10px;
}

.sideMenu {
    position: fixed;
    /*left: -3px;*/
    left: -183px;
    top: 50px;
    border: 1px solid silver;
    background-color: white;
    font-size: 0.8em;
    padding: 5px;
    border-radius: 3px;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.18);
    min-width: 180px;
    z-index: 9;
    display: none;
    min-height: 50px;
}
.sideMenu .closeButton{
    display: block;
    float: right;
    width: 16px;
    height: 16px;
    margin-bottom: -16px;
    margin-top: -4px;
    margin-right: -4px;
    font-size: 16px;
    color: silver;
    font-weight: bold;
    line-height: 0.3em;
    padding: 3px;
    border: 1px solid silver;
    border-radius: 4px;
    cursor:pointer;
}
.sideMenu .closeButton:hover{
    color:#666;
    border: 1px solid #666;
}

#layers {
    width: 220px;
}

#layers h3 {
    margin-bottom: 4px;
    text-align: center;
}

#layers ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#layers ul li {
    background-repeat: no-repeat;
    background-position: 0 5px;
    height: 20px;
    margin-left: 14px;
    margin-bottom: 3px;
    margin-top: 1px;
}

#layers ul li > div {
    padding: 1px 0 0 0px;
    width: 20px;
    height: 18px;
    float: left;
    margin: 0 5px 0 0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#layers ul li.Maize > div {
    background-color: #ffdd66;
}

#layers ul li.Rice > div {
    background-color: #44ddff;
}

#layers ul li.Soyabean > div {
    background-color: #99ff99;
}

#layers ul li.highlight > span{
    color:#333;
    margin-left:-80px;
}

#layers ul li.highlight > div{
    width:100px;
}

#layers .layerRow {
    clear: both;
    margin-top: 2px;
    margin-bottom: 2px;
    min-height: 24px;
}

#layers .keyRow {
    clear: both;
    margin-top: 2px;
    margin-bottom: 2px;
    min-height: 18px;
}

#layers #allLayers {
    font-weight: bold;
    background-color: #eee;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    margin-top: 5px;
    margin-bottom: 5px;
}

#layers .toggleIcon {
    width: 24px;
    height: 24px;
}

#layers .thumb {
    display: block;
    float: left;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#layers .thumb img {
    cursor: pointer;
}

#layers .layerName {
    color: #626262;
}

#layers div.layerName {
    width: 180px;
    display: block;
    float: left;
    padding-left: 6px;
    vertical-align: middle;
    padding-top: 4px;
}

#layers h4 {
    font-weight: bold;
    color: #626262;
    margin: 0;
}

#layers span.layerName {
    font-weight: normal;
}

#layers .spacer {
    height: 8px;
}

#layers hr {
    height: 8px;
    width: 130px;
    text-align: center;
    border: 0;
    border-bottom: 1px solid #ddd;
}

#layers .mapToggle{
    background-image: url('../images/icons/eye_open.png');
    background-repeat: no-repeat;
    background-position-x: 160px;
    background-position-y: 4px;
    background-size: 15px;
}
#layers .keyRow.mapToggle{
    background-position-x: 174px;
    background-position-y: 3px; /* offset for elec / water / etc */
}
#layers .mapToggle:hover{
    background-color:#eee;
    cursor:pointer;
}
#layers .mapToggle.off{
    background-image: url('../images/icons/eye_close.png');
}

.toggleAllOn {
    fill-opacity: 0.8;
}

.highlight {
    font-weight: bold;
}
/* Add infrastructure*/
#addInfrastructureMenu .toggleIcon {
    width: 24px;
    height: 24px;
}

#addInfrastructureMenu .thumb {
    display: block;
    float: left;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#addInfrastructureMenu .thumb img {
    cursor: pointer;
}

/* Styles related to infrastructure information pop-ups and markers */
.info-pop-up {
    min-height: 150px;
    min-width: 200px;
    color: #626262;
}

.info-pop-up .section {
    border-bottom: 1px solid silver;
}

.info-pop-up .centerblock {
    width: 90%;
    text-align: center;
}

.info-pop-up .header {
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    font-size: 1.1em;
    margin-bottom: 12px;
}

.info-pop-up .header div {
    font-weight: bold;
    padding-left: 32px;
}

.info-pop-up .header img {
    width: 24px;
    height: 24px;
    float: left;
    padding-right: 4px;
}

    .infoBox .forecast-icon {
        width: 24px;
        height: 24px;
        float: left;
        padding-right: 4px;
    }

.info-pop-up .rows {
    position: absolute;
    top: 45px;
}

.info-pop-up .rowsection {
    margin-top: 5px;
    margin-bottom: 14px;
    margin-left: 10px;
}

.info-pop-up .icon {
    width: 32px;
    height: 32px;
    position: absolute;
    left: 0;
    top: 0;
}

.info-pop-up .forecasticon {
    padding: 1px 0 0 2px;
    width: 20px;
    height: 18px;
    float: left;
    margin: 0 5px 0 0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    float: left;
    margin-right: 10px;
}

.info-pop-up .forecasticon.corn {
    background-color: #ffdd66;
}

.info-pop-up .forecasticon.rice {
    background-color: #44ddff;
}

.info-pop-up .forecasticon.soy {
    background-color: #99ff99;
}

.info-pop-up h1 {
    position: absolute;
    left: 40px;
    top: 0;
    font-size: 12px;
}

.info-pop-up h1.metrics {
    position: relative;
    margin-top: 2px;
    display: inline-block;
    margin-bottom: 2px;
    left: 0;
    margin-left: 5px;
    font-size: 1.1em;
}

.info-pop-up .rowsection .farm {
    line-height: 20px;
}
.info-pop-up .rowsection .row{
    margin-left:10px;
}
.info-pop-up .rowsection td.row{
    padding-right:40px;

}
.infoBox {
    width: 280px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    padding: 5px;
    z-index: 2000;
    font-size: 1.1em;
    box-shadow: rgba(0, 0, 0, 0.2) 0 1px 1px 1px;
    position: fixed;
    cursor: default;
    background-color: white;
}
.infrastructureData {
    min-height: 150px;
    min-width: 270px;
    color: #626262;
    /*max-height: 300px;*/
    text-align: center;
    background-color: white;
    z-index: 15;
}

.infrastructureData .header {
    font-size: 1.1em;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    display: inline-block;
}

.infrastructureData .header div {
    padding-top: 4px;
    float: left;
}

.infrastructureData .icon {
    width: 24px;
    height: 24px;
    float: left;
    padding-right: 4px;
}

.infrastructureData .rows {
    clear: both;
    /*background-color:#f4f4f4;*/
    border-radius: 6px;
    padding: 6px;
    padding-left: 8px;
    max-height: 260px;
    overflow: auto;
    text-align: left;
}

.infrastructureData .row {
    line-height: 1.1em;
    clear: both;
    min-height: 22px;
    vertical-align: central;
}

.infrastructureData .row .key {
    width: 85px;
    float: left;
    font-weight: bold;
    margin:2px;
    padding:2px;

}

.infrastructureData .row .val {
    float: left;
    width: 140px;
    padding:2px;
    border: 1px solid #fff;
}
.infrastructureData .row .val.editable {
    border: 1px solid #eee;
}
.infrastructureData .row .val:focus {
    outline: 1px solid yellow;
}
.infrastructureData .row .val.edited {
    border: 1px solid orange;
}
.infrastructureData .row .val.error {
}
.infrastructureData  .help-block.help{
    clear: none;
    font-size: 0.7em;
    margin-top: -8px;
    color: #5a5;
    float: left;
    margin-left: 2px;
    margin-bottom: -20px;
    width: 40%;
    text-align: right;
}
.infrastructureData .help-block.form-error{
    clear: both;
    font-size: 0.7em;
    text-align: right;
    display: inline-block;
    float: right;
}
.infrastructureData .footer{
    border: 0;
    border-top: 1px solid #eee;
    clear:both;
    height:26px;
    padding-top:4px;
    padding-left:4px;
}

.infrastructureData .footer input{
    display: inline-block;
    float:left;
    min-width:20px;
    height:20px;
    padding-left: 2px;
    padding-right:2px;
}
.infrastructureData .footer .buttonContainer{
    display: inline-block;
    float:right;
    pointer-events:all;
}

.infrastructureData .footer div#lastEditedField{
    font-size:smaller;
    display: inline-block;
    float:left;
    min-width:20px;
    height:20px;
    border:0;
    background-color: #fff;
    margin-right:4px;
    padding-left: 2px;
    padding-right:2px;
    padding-top:4px;
    overflow:hidden;
}

.infrastructureData .row input.key{
    padding: 2px;
    border: 1px solid #eee;
    margin: 0;
    margin-right: 2px;
}

.infrastructureData hr {
    border: 0;
    border-bottom: 2px solid white;
}

    .infrastructureData .addNewRow {
        border: 1px solid #eee;
        border-bottom: 2px solid #ddd;
        width: 70px;
        border-radius: 4px;
        padding: 2px;
        margin-bottom: 10px;
        font-size: 0.8em;
        float: left;
        margin-right: 5px;
    }
    .infrastructureData .addNewRow:hover {
        background:#eee;
    }
    #newRowSuggestions{
        float:left;
    }
    #newRowSuggestions select{
        width:12px;
    }

.userEdited{
    box-shadow: 0px 0px 3pt 4pt lightgreen;
    outline: 2px solid white;
}

.infrastructureData #lastEditedField.edited{
    font-weight: bold;
    color:darkgreen;
}

#infrastructureTooltip {
    color: #626262;
    text-align: center;
    background-color: white;
    z-index: 15;
}

#infrastructureTooltip .header {
    font-size: 1.1em;
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
    line-height: 1.8em;
}

#infrastructureTooltip .header div {
    padding-top: 3px;
    float: left;
}

#infrastructureTooltip .icon {
    width: 24px;
    height: 24px;
    float: left;
    padding-right: 4px;
}

.user-pop-up {
    min-height: 90px;
    min-width: 200px;
}

.user-pop-up #polyData {
    width: 260px;
}

.user-pop-up-small {
    min-height: 40px;
    min-width: 150px;
}

#addInfrastructureMenu .thumb{
    display: block;
    float: left;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#addInfrastructureMenu .addIcon {
    width: 24px;
    height: 24px;
}

#addInfrastructureMenu .thumb{
    border-radius:14px;
}
#addInfrastructureMenu .thumb:hover{
    -moz-box-shadow:2px 2px 6px #1cc71c;
    -webkit-box-shadow: 2px 2px 6px  #1cc71c;
    box-shadow:  2px 2px 6px  #1cc71c;
}
#addInfrastructureMenu .thumb img {
    cursor: pointer;
}

#addInfrastructureMenu .layerName {
    color: #626262;
}

#addInfrastructureMenu div.layerName {
    width: 140px;
    display: block;
    float: left;
    padding-left: 6px;
    vertical-align: middle;
    padding-top: 4px;
}

#addInfrastructureMenu h4 {
    font-weight: bold;
    color: #626262;
    margin: 0;
}

#addInfrastructureMenu span.layerName {
    font-weight: normal;
}

#addInfrastructureMenu .spacer {
    height: 8px;
}

#addInfrastructureMenu hr {
    height: 8px;
    width: 130px;
    text-align: center;
    border: 0;
    border-bottom: 1px solid #ddd;
}

#addInfrastructureMenu .layerRow {
    clear: both;
    margin-top: 2px;
    margin-bottom: 2px;
    min-height: 24px;
}

#addInfrastructureMenu .keyRow {
    clear: both;
    margin-top: 2px;
    margin-bottom: 2px;
    min-height: 18px;
}

/*modal dialog for submitting changes*/

.qtip-content input{
    clear:both;
    width:242px;
    margin-bottom:10px;
}
.qtip-content input:focus{
    outline:1px solid silver;
}
.qtip-content #btnSend{
    width:100px;
    float:right;
}
.qtip-content #btnCancel{
    width:100px;
    float:left;
}

#submitError{
    clear: both;
    font-size: smaller;
    color: red;
}

/* Soil Fertility */
#soilLegend {
    min-height: 50px;
    background-color: rgba(255,255,255,0.4);
}
#soilLegend .mapToggle{
    border-radius:3px;
    cursor:pointer;
    border:1px solid transparent;
    height:30px;
}
#soilLegend .mapToggle img{
    float:left;
}
#soilLegend .mapToggle .layerName{
    float:left;
}
#soilLegend .mapToggle:hover{
    cursor:pointer;
    border:1px solid green;
}
#soilLegend .mapToggle.active{
    cursor:pointer;
    border:1px solid transparent;
    border-bottom:1px solid silver;
    background-color: rgba(128,255,128,0.4);
}

#soilLegend .soilLayer{
    padding:4px;
}
#soilLegend .keyColor{
    width: 10px;
    height: 14px;
    margin-right: 10px;
    float: left;
    border-radius: 2px;
    border: 1px solid #ddd;
    opacity:0.8;
}

.mapMode{
    margin-top:4px;
    float:left;
    padding:4px;
    color: #666;
    border-radius:4px;
}
.mapMode.active{
    color:#333;
    background:#eee;
}
.mapMode:hover{
    color:black;
    background:#ddd;
    cursor:pointer;
}