/* Copyright 2022 Esri
 *
 * Licensed under the Apache License Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import url("./flat/flat-icons.css");

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  overflow: hidden;
}

#map {
  height: 100%;
  width: calc(100% - 300px);
  float: left;
  z-index: -1;
}

.basemapGallery-container {
  position: absolute;
  top: 20px;
  left: 60px;
  z-index: 50;
  opacity: 0.7;
}

.dijitTitlePaneTitle {
  background: white;
  padding: 10px;
  border: 1px solid #b8b8b8;
  border-radius: 5px;
}

.flat .dijitContentPane {
  border: 1px solid #b8b8b8;
  border-radius: 5px;
}

#controls {
  box-sizing: border-box;
  float: left;
  width: 300px;
  height: 100%;
  background: #fafafa;
  color: #515151;
  border-left: 1px solid #b8b8b8;
  position: relative;
  overflow-y: auto;
}

.collapser {
  position: absolute;
  width: 2.7rem;
  height: 2.7rem;
  right: 300px;
  font-size: 2.7rem;
  background: #fafafa;
  cursor: pointer;
}

.panel-collapsed .collapser {
  right: 0;
}

#collapsedPane {
  display: none;
}

#expanderIcon {
  display: none;
}

.panel-collapsed #map {
  width: calc(100% - 1px);
}

.panel-collapsed #controls {
  width: 0;
}

.panel-collapsed #controls section {
  overflow: hidden;
}

.panel-collapsed #expanderIcon {
  display: inline-block;
}

.panel-collapsed #collapserIcon {
  display: none;
}

.panel-collapsed #timeSlider {
  width: 100% !important;
}

.config-header {
  padding: 8px 10px;
  background: linear-gradient(to right, #fff, #fafafa);
  border: 1px solid #b8b8b8;
  border-left: none;
  border-right: none;
  display: flex;
  cursor: pointer;
}

.config-header:hover {
  background: linear-gradient(to right, #fafafa, #f6f6f6);
}

section:first-of-type .config-header {
  border-top: none;
}

.config-header h2 {
  flex: 1 0 auto;
  margin: 0;
  font-size: 1.2rem;
  font-weight: normal;
}

.config-content {
  padding: 5px 10px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  overflow: hidden;
  max-height: 500px;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.section-hidden .config-content {
  padding: 0 10px;
  max-height: 0;
}

.header-actions-group i {
  cursor: pointer;
  color: #a6a6a6;
}

.header-actions-group #expandedPane {
  display: inline-block;
}

.header-actions-group i {
  font-size: 1.4em;
}

.section-hidden .header-actions-group #expandedPane {
  display: none;
}

.section-hidden .header-actions-group #collapsedPane {
  display: inline-block;
}

.header-actions-group i:hover {
  color: #313131;
}

.header-actions-group .dijitDropDownButton {
  margin: 0;
}

.header-actions-group .dijitButtonNode {
  border: none;
}

.header-actions-group .dijitArrowButtonInner {
  display: none;
}

.input-group {
  margin: 5px 0;
}

.input-group-full {
  width: 100%;
}

.input-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.input-group-flex {
  display: flex;
}

#streamServiceUrl {
  flex-basis: 100%;
}

#expressionFilter {
  flex-grow: 2;
}

#applyWhereClause {
  width: 25%;
}

.prev-element {
  margin-right: 10px;
}

.flat .dijitDropDownButton .dijitButtonNode {
  padding: 0;
  border: none;
  background: transparent;
}

.flat .dijitButtonText {
  padding: 0;
  line-height: 0;
}

.flat .dijitDownArrowButton {
  line-height: 0;
}

.flat .dijitTooltipContainer {
  border: 1px solid #b8b8b8;
  background: #fafafa;
  color: #515151;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  border-radius: 2px;
}

.flat .dijitTooltipContainer .input-group-full input {
  width: calc(100% - 135px) !important;
}

.flat .dijitTooltipFocusNode {
  padding: 10px;
}

.flat .dijitTooltipFocusNode > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 250px;
}

.esri-ui-top-right {
  margin-right: 40px;
}

#panelWrapper {
  background-color: white;
  border: 1px solid gray;
  width: 100%;
  padding-left: 10px;
  min-height: 450px;
  max-height: 450px;
  overflow-wrap: anywhere;
}

#panelHeading {
  margin-top: 10px;
}

#panelMessage {
  overflow: scroll;
  height: 380px;
  margin-top: 0;
}

#panelMessage span {
  display: block;
  margin-top: 10px;
}

#clear {
  font-style: italic;
  font-size: small;
  right: 20px;
  cursor: pointer;
  position: absolute;
}
