﻿/* container */
.p-map-widget {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border: none;

    font-size: 12px;
    font-family: Verdana,Helvetica,sans-serif;
}

/* map */
.p-map {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

.p-map-loading {
    position: absolute;
    width: 80px;
    top: 10px;
    left: 50%;
    margin-left: -40px;
    text-align: center;
    line-height: 1.5;
    background-color: #fff;
    z-index: 999;
}

.p-map-loading-icon {
    display: inline-block;
    height: 11px;
    width: 16px;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url("../images/loading.gif");
}

/* right pane */
.p-map-right-content {
    padding: 5px !important;
}

.p-map-right-title,
.p-map-control-popup-title {
    font-size: 14px;
    font-weight: bold;
    border-bottom: #b0b0b0 1px solid;
    padding: 5px !important;
}

.p-map-widget .dijitSplitterV {
    background: #eee;
    border: 0;
    width: 6px;
}

/* zoom controls */
.p-map .esriSimpleSliderIncrementButton,
.p-map .esriSimpleSliderDecrementButton {
    text-align: center;
}

/* coordinates */
.p-map-coordinates {
    position: absolute;
    bottom: 30px;
    left: 170px;
    color: #666;
    background-color: #ffffff;
    background-color: rgba(255,255,255,0.7);
    padding:  0 4px;
}

/* controls */
.p-map-controls {
    position: absolute;
    z-index: 30;
}

.p-map-hidden {
   display: none;
}

.p-map-controls-left {
    top: 84px;
    left: 20px;
}

.p-map-controls-right {
    top: 10px;
    right: 20px;
}

.p-map-control:hover {
    background-color: #eee;
}

.p-map-control-group {
    margin-top: 10px;
    border: 1px solid #666;
    border-top: none;
}

.p-map-control-group .p-map-control {
    margin-top: 0px;
    border: none;
    border-top: 1px solid #666;
}

.p-map-control {
    margin-top: 10px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    cursor: pointer;
    border: 1px solid #666;
    background-position: center center;
    background-repeat: no-repeat;
}

.p-map-control-popup-left {
    position: absolute;
    top: 20px;
    right: 60px;
    background-color: #fff;
    border: 1px solid #666;
}

.p-map-controls-popup-item:hover {
    background-color: #eee;
}

.p-map-controls-popup-item {
    cursor: pointer;
    padding: 0 5px;
    font-size: 12px;
    line-height: 2;
    border-bottom: 1px solid #ddd;
}

.p-map-control-active,
.p-map-controls-popup-item-active,
.p-map-controls-popup-item-active:hover {
    background-color: #ddd;
}

/* home, locate controls */
.p-map-control-home .home {
    background-image: url("../images/home.png");
}

.p-map-control-locate .zoomLocateButton {
    background-image: url("../images/locate.png");
}

.p-map-control-home .loading,
.p-map-control-locate .loading,
.p-map-control-print.loading,
.p-map-control-download.loading {
    background-image: url("../images/loading.gif");
}

.p-map-control-home .home,
.p-map-control-locate .zoomLocateButton {
    width: 30px;
    height: 30px;
    background-position: center center;
    background-repeat: no-repeat;
}

.p-map-control .home span,
.p-map-control .zoomLocateButton span {
    display: none;
}

/* geocode control */
.p-map-control-geocode {
    display: block;
    position: absolute;
    top: 20px;
    left: 70px;
    z-index: 2;
}

.p-map-control-geocode .esriGeocoder {
    border-width: 1px;
    border-radius: 0;
}

.p-map-control-geocode .esriGeocoderResults {
    border-width: 1px;
    border-top: 0;
    border-radius: 0;
}

/* basemaps control */
.p-map-control-basemaps {
    background-image: url("../images/basemaps.png");
}

/* layers control */
.p-map-control-layers {
    background-image: url("../images/layers.png");
}
.p-map-layers-tree {
    padding: 5px;
    line-height: 1.5;
    max-width: 400px;
    min-width: 200px;
}
.p-map-layers-tree .dijitTreeRowHover,
.p-map-layers-tree .dijitTreeRowSelected .dijitTreeLabel {
    background: none;
}

/* layerNavigator control */
.p-map-layer-navigator {
   height: 100%;
}
.p-map-layer-navigator-title {
   color: #666; 
   font-size: 1.1em;
   font-weight: bold;
   border-bottom: #b0b0b0 1px solid;
   padding: 5px 5px 5px 10px !important;
}
.p-map-layer-navigator-tree {
    padding: 5px;
    line-height: 1.5;
    max-width: 400px;
    min-width: 200px;
}
   .p-map-layer-navigator-tree .dijitTreeRowHover {
      background-color: #eee;
   }
   .p-map-layer-navigator-tree .dijitTreeRowSelected .dijitTreeLabel {
      padding: 3px;
      background: #cceeff;
   }

/* layerGrid */
.p-map-layer-grid {
   position: absolute;
   top: 0;
   bottom: 0;
   left: 0;
   right: 0;
   height: auto;
   cursor: pointer;
}

/* legend control */
.p-map-control-legend {
    background-image: url("../images/legend.png");
}

/* drawing controls */
.p-map-control-draw {
    background-image: url("../images/draw.png");
}

.p-map-control-draw-section {
    clear: both;
}
.p-map-control-draw-section-title {
    padding: 5px;
    background-color: #ddd;
}

.p-map-control-draw-section-controls {
    margin: 8px 5px 10px 5px;
    text-align: center;
}

.p-map-control-draw-entry {
   padding: 5px;
   display: none;
}

.p-map-control-draw-textbox {
   display: block;
   width: 80%;
   padding: 5px;
   margin: 0 auto 5px auto;
}
.p-map-control-draw-textbox-label {
   display: block;
   margin: 8px 0 5px 0;
}
.p-map-control-draw-button {
   background-color: #eee;
   width: 85%;
   margin: 5px auto;
   border: 1px solid #999;
}
.p-map-control-draw-button:hover {
   background-color: #ccc;
}
.p-map-control-draw-error {
   display: block;
   width: 90%;
   text-align: center;
   margin: 5px auto 5px auto;
   color: red;
}

.p-map-control-draw-style {
    margin-bottom: 8px;
    display: none;
}
.p-map-control-draw-type {
    float: left;
    margin: 5px !important;
}

.p-map-control-draw-remove {
    background-image: url("../images/draw-remove.png");
}

.p-map-control-draw-reset {
    background-image: url("../images/draw-reset.png");
}

.p-map-control-draw-point {
    background-image: url("../images/draw-point.png");
}

.p-map-control-draw-multi-point {
    background-image: url("../images/draw-multi-point.png");
}

.p-map-control-draw-line {
    background-image: url("../images/draw-line.png");
}

.p-map-control-draw-polyline {
    background-image: url("../images/draw-polyline.png");
}

.p-map-control-draw-polygon {
    background-image: url("../images/draw-polygon.png");
}

.p-map-control-draw-freehand-polyline {
    background-image: url("../images/draw-freehand-polyline.png");
}

.p-map-control-draw-freehand-polygon {
    background-image: url("../images/draw-freehand-polygon.png");
}

.p-map-control-draw-arrow {
    background-image: url("../images/draw-arrow.png");
}

.p-map-control-draw-rectangle {
    background-image: url("../images/draw-rectangle.png");
}

.p-map-control-draw-circle {
    background-image: url("../images/draw-circle.png");
}

.p-map-control-draw-ellipse {
    background-image: url("../images/draw-ellipse.png");
}

.p-map-control-draw-triangle {
    background-image: url("../images/draw-triangle.png");
}

.p-map-control-draw-text {
    background-image: url("../images/draw-text.png");
}

/* Draw Annotation */
.p-map-control-annotation-section {
    clear: both;
}
.p-map-control-annotation-section-title {
    padding: 5px;
    background-color: #ddd;
}
.p-map-control-annotation-controls {
    margin: 8px 5px 10px 5px;
    text-align: center;
}
.p-map-control-annotation-entry {
   padding: 5px;
}

/* print control */
.p-map-control-print {
    background-image: url("../images/print.png");
}

.p-map-control-download {
    background-image: url("../images/download.png");
}


/* zoom slider */
.p-map .esriSimpleSlider {
    border: 1px solid #666;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -o-border-radius: 0px;
    border-radius: 0px;
}

.esriSimpleSliderVertical .esriSimpleSliderIncrementButton {
    border-bottom: 1px solid #666;
}
