/*!
 *  Copyright 2022-2025 SenX S.A.S.
 *
 *  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.
 */
/*!
*  Copyright 2022  SenX S.A.S.
*
*  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.
*/
/*!
*  Copyright 2022  SenX S.A.S.
*
*  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.
*/
input {
  margin-bottom: 15px;
}

input[type=text], select {
  display: block;
  height: 32px;
  padding: 6px 16px;
  width: calc(100% - 32px);
  border-radius: var(--warp-view-form-input-border-radius, 5px);
  color: var(--warp-view-form-input-font-color, #000000);
  background-color: var(--warp-view-form-input-bg-color, #ffffff);
  border: var(--warp-view-form-input-border, 1px solid #a0a0a0);
}

select {
  height: var(--warp-view-switch-height, 2em);
  padding: 0 0 0 3px;
}

button {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 16px;
  border: var(--warp-view-form-button-border, 1px solid #a0a0a0);
  background-color: var(--warp-view-form-button-bg-color, #ffffff);
  color: var(--warp-view-form-button-font-color, #000000);
  border-radius: var(--warp-view-form-button-border-radius, 5px);
  width: auto;
}

label {
  color: var(--warp-view-font-color, #000000);
}

:host {
  width: 100%;
  height: 100%;
  position: relative;
  overflow-y: auto;
  overflow-x: visible;
  max-height: 100%;
}
:host h2 {
  padding: 5px;
  margin: 0;
  flex-shrink: 1;
  text-align: center;
  color: var(--warp-view-font-color, #000000);
}
:host .discovery-plot-wrapper {
  height: 100%;
  width: calc(100% + 15px);
  background: var(--warp-view-tile-background, transparent);
  color: var(--warp-view-font-color, #000000);
  margin-left: -10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
}
:host .discovery-plot-wrapper > * {
  background: none;
}
:host .discovery-plot-wrapper .controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}
:host .discovery-plot-wrapper .controls .left-controls {
  display: flex;
  align-items: start;
}
:host .discovery-plot-wrapper .controls .right-controls {
  display: flex;
  align-items: end;
}
:host .discovery-plot-wrapper .controls .chart-selector {
  width: auto;
  display: flex;
  white-space: nowrap;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0 10px 0 auto;
}
:host .discovery-plot-wrapper .controls .chart-selector label {
  margin-right: 10px;
}
:host .discovery-plot-wrapper .list-wrapper {
  padding: 5px 0;
  height: auto;
}
:host .main-wrapper {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: visible;
}
:host .list-wrapper {
  width: 100%;
  height: auto;
}
:host #ws {
  color: transparent;
  font-size: 0;
  height: 0;
  overflow: hidden;
}
:host .main {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: aqua;
  margin: 0;
  overflow: visible;
}
:host .line {
  width: 0;
  height: calc(100% - 20px - var(--warp-view-resize-handle-height, 10px));
  position: absolute;
  top: 20px;
  left: -5px;
  border-left: 1px dashed var(--warp-view-bar-color, red);
}
:host button {
  cursor: pointer;
}
:host .plot-container {
  height: calc(100% - 20px);
  min-height: calc(100% - 20px);
  width: 100%;
  overflow-x: visible;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}
:host .plot-container .annotation-area {
  height: auto;
  width: 100%;
  padding-bottom: 10px;
}
:host .plot-container .tree-area {
  height: auto;
  width: 100%;
}
:host .plot-container .plot-area {
  width: 100%;
  height: calc(100% - 160px);
  flex-direction: column;
  justify-content: stretch;
  align-items: center;
  display: flex;
  overflow: visible;
}
:host .plot-container .plot-area .chart-area {
  height: 0;
  width: 100%;
  min-height: 0;
}
:host .plot-container .plot-area .chart-area.has-chart {
  flex-grow: 1;
  min-height: 100px;
  height: 100%;
}
:host .plot-container .plot-area .chart-area.has-no-chart {
  height: 0 !important;
}
:host .plot-container .plot-area .chart-area.has-map {
  flex-grow: 0 !important;
  height: 50%;
}
:host .plot-container .plot-area .map-area {
  height: 0;
  width: 100%;
  min-height: 0;
  flex-grow: 0;
}
:host .plot-container .plot-area .map-area.has-chart {
  height: 50% !important;
}
:host .plot-container .plot-area .map-area.has-map {
  min-height: 100px;
  flex-grow: 1;
  height: 100%;
}
:host .plot-container .plot-area .map-area.has-no-map {
  height: 0 !important;
}
:host .plot-container .resizer {
  background-color: #a0a0a0;
  cursor: ns-resize;
  height: 5px;
  width: 100%;
  justify-content: center;
  align-items: center;
  z-index: 999;
  display: none;
}
:host .plot-container .resizer.has-map.has-chart {
  display: flex;
}
:host .plot-container .resizer .grip {
  height: 100%;
  width: 30px;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFAQMAAABo7865AAAABlBMVEVHcEzMzMzyAv2sAAAAAXRSTlMAQObYZgAAABBJREFUeF5jOAMEEAIEEFwAn3kMwcB6I2AAAAAASUVORK5CYII=");
}