/****************************************************************************
 ** @license
 ** This demo file is part of yFiles for HTML 3.1.0.4.
 ** Copyright (c) 2026 by yWorks GmbH, Vor dem Kreuzberg 28,
 ** 72070 Tuebingen, Germany. All rights reserved.
 **
 ** yFiles demo files exhibit yFiles for HTML functionalities. Any redistribution
 ** of demo files in source code or binary form, with or without
 ** modification, is not permitted.
 **
 ** Owners of a valid software license for a yFiles for HTML version that this
 ** demo is shipped with are allowed to use the demo source code as basis
 ** for their own yFiles for HTML powered applications. Use of such programs is
 ** governed by the rights and conditions as set out in the yFiles for HTML
 ** license agreement.
 **
 ** THIS SOFTWARE IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED
 ** WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
 ** NO EVENT SHALL yWorks BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 ** TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 **
 ***************************************************************************/
.description-panel {
  .event-options-heading {
    display: block;
    cursor: pointer;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    user-select: none;
    color: white !important;
    padding: 5px 5px 5px 15px;
    box-sizing: border-box;
    margin-top: 0 !important;
    margin-bottom: 2px !important;
    align-items: center;
    p {
      float: right;
      margin: 0;
      font-size: 27px;
    }
  }
  .event-options-content {
    padding-bottom: 1px;
    margin-bottom: 10px;
  }

  .options-section {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }

  & input[type='checkbox'] {
    &::after {
      color: var(--color-casper-blue-dark) !important;
    }

    &:hover {
      background-color: var(--color-casper-blue) !important;
    }
  }

  #event-options {
    color: var(--color-casper-blue-black);
  }

  #event-options li {
    list-style-type: none;
    position: relative;
  }

  *[data-tooltip]:after {
    content: attr(data-tooltip);
    position: absolute;
    left: 3em;
    top: 2em;
    background: rgba(100, 100, 100, 1);
    color: rgba(255, 255, 255, 1);
    border-radius: 3px;
    max-width: 100%;
    padding: 10px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease-in-out 0s;
    visibility: hidden;
    pointer-events: none;
  }

  *[data-tooltip]:hover:after {
    opacity: 1;
    transition: opacity 0.3s ease-in-out 0.5s;
    visibility: visible;
  }

  #event-options input {
    position: relative;
    vertical-align: middle;
    bottom: 1px;
  }
}

.group-events-container {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

#group_events_label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#log {
  padding: 0 5px;
  overflow: auto;
  -webkit-overflow-scrolling: auto !important;
  font-family: 'Consolas', 'Courier New', Courier, mono, serif;
}

#clear-log-button {
  margin-left: auto;
}

.logMessage {
  background-color: #eee;
  padding: 3px;
  box-sizing: border-box;
  margin-bottom: 5px;
  color: var(--color-casper-blue-black);
  text-overflow: ellipsis;
  overflow: hidden;
}

.logGroup {
  margin-bottom: 5px;
  box-sizing: border-box;
  padding: 0;
}

.logGroup-container {
  display: flex;
  position: relative;
  vertical-align: top;
  box-sizing: border-box;
  border-spacing: 3px;
  border: 2px solid var(--description-heading);
  background-color: var(--interaction-bg);
}
.logGroup-container:before,
.logGroup-container:after {
  left: 20px;
  right: 20px;
  height: 3px;
  background: var(--interaction-bg);
  content: '';
  position: absolute;
}
.logGroup-container:before {
  top: -3px;
}

.logGroup-container:after {
  bottom: -3px;
}

.logGroup .logMessage {
  margin-bottom: 0 !important;
}

.logGroup-messages {
  overflow: hidden;
  box-sizing: border-box;
  display: table-cell;
  color: var(--color-casper-blue-black);
}

.logGroup-count {
  align-self: center;
  font-size: 1.3rem;
  padding: 3px;
  font-weight: bold;
  color: var(--description-heading);
}

.logMessage.category-InputMode {
  border-left: 3px solid #26a65b;
}

.event-options-heading.category-InputMode {
  background-color: #26a65b;
}

.category-InputMode-light,
.logMessage.category-InputMode,
.logGroup.category-InputMode {
  background-color: #ebf6f0;
}

.logMessage.category-GraphComponent {
  border-left: 3px solid #5c97bf;
}

.event-options-heading.category-GraphComponent {
  background-color: #5c97bf;
}

.category-GraphComponent-light,
.logMessage.category-GraphComponent,
.logGroup.category-GraphComponent {
  background-color: #d4e8f5;
}

.logMessage.category-Graph {
  border-left: 3px solid #e87e04;
}

.event-options-heading.category-Graph {
  background-color: #e87e04;
}

.category-Graph-light,
.logMessage.category-Graph,
.logGroup.category-Graph {
  background-color: #f6dec2;
}

.category-Unknown {
  background-color: #eee;
}

#dnd-panel {
  padding: 10px 0;
}

#dnd-panel > div {
  display: inline-block;
  padding: 10px;
}

.yfiles-cursor-dragdrop-copy {
  cursor: copy;
}

.yfiles-cursor-dragdrop-move {
  cursor: move;
}

.yfiles-cursor-dragdrop-link {
  cursor: alias;
}

.yfiles-cursor-dragdrop-scroll {
  cursor: move;
}

.yfiles-cursor-dragdrop-all {
  cursor: copy;
}

.yfiles-cursor-dragdrop-no-drop {
  cursor: no-drop;
}

.yfiles-drag {
  z-index: 15;
  opacity: 0.35;
  transition: opacity 0.2s ease-in-out;
}

.yfiles-drag.hidden {
  opacity: 0;
}
