/*!
    *
    * Wijmo Library 5.20261.50
    * https://developer.mescius.com/wijmo
    *
    * Copyright(c) MESCIUS inc. All rights reserved.
    *
    * Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
    * us.sales@mescius.com
    * https://developer.mescius.com/wijmo/licensing
    *
    */

@use "../misc/mixins";

// flex-chart
.wj-flexchart {
  height: 400px;
  padding: 15px 10px;
  margin-bottom: 12px;
  border: 1px solid #e4e4e4;
  display: block;
  background: transparent;

  .wj-header .wj-title {
    font-size: 16pt;
    fill: #666;
    font-weight: normal;
    background: transparent;
  }

  .wj-footer .wj-title {
    fill: #666;
    font-weight: normal;
  }

  .wj-label,
  .wj-data-label {
    fill: #666;
  }

  .wj-data-label-border {
    stroke: rgba(128, 128, 128, 0.5);
  }

  .wj-data-label-line {
    stroke: rgba(128, 128, 128, 1);
  }

  .wj-axis-x .wj-title,
  .wj-axis-y .wj-title,
  .wj-legend .wj-title {
    font-style: italic;
  }

  .wj-axis-x .wj-line {
    stroke: #aaa;
    stroke-width: 1px;
  }

  .wj-gridline {
    stroke: #666;
    stroke-width: 1px;
    opacity: 0.75;
  }

  .wj-gridline-minor {
    @extend .wj-gridline;
    opacity: 0.25;
  }

  .wj-tick,
  .wj-tick-minor {
    stroke: #aaa;
    stroke-width: 1px;
  }

  .wj-state-selected {
    stroke-width: 3px;
    stroke-dasharray: 6;
    stroke-linecap: square;
  }
  // markers
  &.wj-flexchart-touch-disabled {
    @include mixins.prefix(touch-action, none, ms);
  }

  .wj-chart-linemarker {
    background: rgba(128, 128, 128, 0.3);
    position: absolute;
    padding: 2px;

    .wj-chart-linemarker-hline {
      height: 2px;
      background: rgba(128, 128, 128, 1);
      position: absolute;
      @include mixins.prefix(touch-action, none, ms);
    }

    .wj-chart-linemarker-vline {
      width: 2px;
      background: rgba(128, 128, 128, 1);
      position: absolute;
      @include mixins.prefix(touch-action, none, ms);
    }
  }

  .wj-chart-linemarker-container {
    position: relative;
  }

  &.wj-chart-linemarker-draggable,
  .wj-chart-linemarker .wj-chart-linemarker-draggable {
    //-khtml-user-drag: element;
    cursor: move;
  }
}

// selected items on the chart - smaller screens
@media (max-width: 1025px) {
  .wj-flexchart .wj-state-selected {
    stroke-width: 2px;
    stroke-dasharray: 4;
  }
}

@media (max-width: 767px) {
  .wj-flexchart .wj-state-selected {
    stroke-width: 1px;
    stroke-dasharray: 3;
  }
}
