/* your styles go here */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1; 
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: #888; 
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555; 
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.login-page::before {
	background: url(/resources/img/bg-login.jpg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100%;
	filter: blur(5px);
}

@media print {
	.sorting::before, 
	.sorting::after, 
	.sorting_asc::before, 
	.sorting_asc::after, 
	.sorting_desc::before, 
	.sorting_desc::after { 
		right: 0 !important;
  	content: "" !important; 
  }
}

/* ArcGIS JS API Modification */
#map { height: 60vh; }
#screenshotDiv {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.8);
}
.hide {
  display: none;
}
.js-screenshot-image {
	border: 10px solid white;
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);
}
#screenshotDiv > * {
  margin: 0.5em;
}
.screenshotCursor {
  cursor: crosshair;
}
#maskDiv {
  position: absolute;
  background: rgba(255, 51, 0, 0.1);
  border: 2px dashed rgb(255, 51, 0);
}
.action-button {
  padding: 0.6em;
  border: 1px solid #0079c1;
  text-align: center;
  background-color: white;
  cursor: pointer;
}
.action-button:hover,
.action-button:focus {
  background: #0079c1;
  color: white;
}

.esri-widget-none { display: none !important; }

.water-level-sensor-data-visualization {
	background: url('../../resources/img/prototype/water-level-sensor-container.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.water-level-sensor-full-data-visualization {
	background: url('../../resources/img/prototype/water-level-sensor-full-container.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.paddy-ditch-gate-controller-data-visualization {
	background: url('../../resources/img/prototype/paddy-ditch-gate-controller-container.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.canal-ditch-gate-controller-data-visualization {
	background: url('../../resources/img/prototype/canal-ditch-gate-controller-container.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.flow-metering-device-data-visualization {
	background: url('../../resources/img/prototype/flow-metering-device-container.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.rice-growth-data-visualization {
	/*background: url('../../resources/img/rice-growth/tube/1.png');*/
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.rice-growth-1 {
	background: url('../../resources/img/rice-growth/tube/1.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.rice-growth-2 {
	background: url('../../resources/img/rice-growth/tube/2.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.rice-growth-3 {
	background: url('../../resources/img/rice-growth/tube/3.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.rice-growth-4 {
	background: url('../../resources/img/rice-growth/tube/4.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.rice-growth-5 {
	background: url('../../resources/img/rice-growth/tube/5.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.rice-growth-6 {
	background: url('../../resources/img/rice-growth/tube/6.png');
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.waving {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 0;
	background: url('../../resources/img/wave/water-level-sensor.gif');
	background-size: cover;
	opacity: 0.5;
	z-index: 1;
}

.streaming {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('../../resources/img/wave/ditch-gate-controller.gif');
	background-size: cover;
	opacity: 0.5;
	z-index: 1;
}

.flowing {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/*background: url('../../resources/img/wave/flow-meter-device.gif');*/
	background: url('../../resources/img/wave/water-level-sensor.gif');
	background-size: cover;
	opacity: 0.5;
	z-index: 1;
}

.esri-view-width-greater-than-xsmall .esri-expand--auto .esri-expand__content {
	position: unset !important;
}

.esri-expand__content--expanded,
.esri-expand__content {
	margin: 0 !important;
}

.esri-view-height-xsmall .esri-ui-corner .esri-component .esri-expand__content { max-height: 250px !important; }

@media (max-width: 768px) {
	.esri-search { width: 200px !important; }
	.esri-view-width-xsmall .esri-expand--auto .esri-expand__mask--expanded { display: none !important; }
	.esri-view-width-xsmall .esri-expand--auto .esri-expand__container--expanded {
		position: absolute !important;
		top: unset !important;
		bottom: unset !important;
		height: unset !important;
	}
	/*.esri-expand__content--expanded { width: 200px !important; }
	.esri-expand__content { box-shadow: none !important; }*/
}

@keyframes rotating {
  0% {transform: rotate(360deg);}
}