/****************************************************************************
 ** @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.
 **
 ***************************************************************************/
.timeline-component {
  position: relative;

  .timeline-toolbar {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    z-index: 10;
  }
  .timeline-button {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 99px;
    color: #2a3e50;
    background-color: transparent;
    opacity: 1;
    font-family: 'Material Symbols Outlined', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    &:disabled {
      opacity: 0.5;
    }

    &:hover {
      cursor: pointer;
      border: none;
      background-color: #aec3d5;
      color: #2a3e50;
    }

    &:focus {
      outline: none;
    }

    &:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }
  }

  .yfiles-tooltip {
    background-color: #ffffff;
    color: #0e0e28;
    border: none;
    box-shadow:
      0 1px 2px 0 rgb(0 0 0 / 30%),
      0 1px 3px 1px rgb(0 0 0 / 15%);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    line-height: 20px;
    h3 {
      margin: 0 0 4px 0;
      font-size: 14px;
    }
  }
}
/****************************************************************************
 ** @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.
 **
 ***************************************************************************/
.main-view-buttons {
  display: flex;
  align-items: center;
  margin-right: -7px;
}

.demo-content__components {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}
.main-container {
  .demo-main__graph-component {
    flex: 1 1 auto;
    #graphComponent {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      border-bottom: 4px solid #f7f7f7;
      z-index: 0;
    }
  }
}

#timeline-component {
  flex: 0 0 250px;
  width: 100%;
  background-color: #f7f7f7;
  border-bottom-left-radius: var(--border-radius);
  border-bottom-right-radius: var(--border-radius);
  z-index: 0;
}

#fraud-detection-component {
  flex: 1;
  border-bottom: 4px solid #f7f7f7;
}

.fraud-detection-view {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  position: absolute;
  display: none;
  flex-direction: column;
  border: 5px solid var(--rail-highlighted);
  border-radius: var(--border-radius);
  background-color: white;
}

.fraud-detection-view--visible {
  display: flex;
}

.fraud-detection-view__title {
  position: relative;
  padding: 0 5px;
  font-size: 20px;
  color: white;
}

#layout-button {
  display: none;
  height: 24px;
  align-items: center;
}

#layout-button:hover {
  cursor: pointer;
}

#layout-button.visible {
  display: flex;
  padding: 16px;
}
#separate-layout-button.visible {
  display: inline;
}

#fraud-detection-view__close {
  cursor: pointer;
}

.fraud-detection-view__header {
  background-color: var(--rail-highlighted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

#fraud-detection-timeline-component {
  position: relative;
  height: 180px;
}

.demo-toggle-button.labeled:disabled + label {
  opacity: 0.5;
  cursor: default;
}

.demo-toggle-button.labeled:hover + label {
  background: none;
}

#properties-view .header-container {
  position: relative;
}

#properties-view .header {
  position: relative;
  height: 40px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #4281a4;
  display: flex;
  flex-direction: row;
  padding: 0;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

#properties-view .details-container {
  height: 250px;
  color: var(--color-casper-blue-black);
}

#properties-view .properties-container {
  height: 100%;
  background: var(--toolbar-toggle-button-enabled);
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#properties-view .no-item-selection {
  background: var(--toolbar-toggle-button-enabled) url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20width='55mm'%20height='55mm'%20viewBox='0%200%2055%2055'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20transform='translate(-45.101522,-45.341497)'%3e%3crect%20style='fill:none;stroke:%23b7babd;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:fill%20markers%20stroke'%20width='38.072266'%20height='38.072266'%20x='53.565392'%20y='53.805363'%20/%3e%3crect%20style='fill:none;stroke:%23b7babd;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:2.21816,%202.21816;stroke-dashoffset:1.99634;stroke-opacity:1;paint-order:fill%20markers%20stroke'%20width='52.781841'%20height='52.781841'%20x='46.210602'%20y='46.450577'%20/%3e%3c/g%3e%3c/svg%3e") no-repeat center;
  background-size: 50px;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
}

#properties-view .no-item-selection-text {
  padding-top: 100px;
  font-style: italic;
}

#properties-view .header h2 {
  font-size: 18px;
  font-weight: normal;
  color: white;
  align-self: center;
  width: 70%;
  margin: 0;
}

#properties-view .header img {
  padding-left: 5px;
  width: 15%;
  align-self: center;
  margin: 0;
}

#properties-view td {
  padding: 4px 5px;
  font-size: 14px;
  color: var(--color-text);
}

#properties-view td:first-of-type {
  text-transform: uppercase;
  font-weight: bold;
  width: 100px;
  vertical-align: top;
}

#properties-view .table-container {
  flex: 1;
  overflow: auto;
}

#properties-view .table-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

#properties-view .table-container::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 4px;
}

#properties-view .table-container::-webkit-scrollbar-corner {
  background: var(--toolbar-toggle-button-enabled);
}

#fraud-rings {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-left: 1ex;
  button {
    justify-content: center;
  }
}

.toolbar .warning {
  border: 1px solid var(--color-text);
  justify-content: center;
}

.toolbar .warning:hover {
  cursor: pointer;
  border: none;
}

.toolbar > .separator:last-child {
  display: none !important;
}
.toolbar .toolbar-overflow-container .separator {
  display: none !important;
}
.customCursor {
  cursor: pointer !important;
}

.legend__box {
  width: 160px;
  background: var(--toolbar-toggle-button-enabled);
  border: 2px solid #7e7979;
  border-radius: 4px;
  margin: auto;
  padding: 5px;
}

.legend__item {
  display: grid;
  grid-template-columns: 45% 45%;
  padding: 0 5px;
}

.legend__line {
  height: 3px;
  width: 55px;
  margin: auto !important;
  padding-left: 10px;
}

.legend__line.red {
  background-color: #db3a34;
}

.legend__line.light-green {
  background-color: #56926e;
}

.legend__line.green {
  background-color: #2d4d3a;
}

.legend__line.yellow {
  background-color: #e0e04f;
}

.legend__line.dark-blue {
  background-color: #242265;
}

.legend__line.blue {
  background-color: #2d5a73;
}

.legend__desc {
  font-size: 12px;
  text-align: left;
  padding-left: 5px;
}

.main-view-buttons {
  display: flex;
  align-items: center;
}

span.video-button.play {
  background-repeat: no-repeat;
  padding-left: 20px;
}

.yfiles-tooltip {
  background-color: #ffffff;
  color: #0e0e28;
  border: none;
  box-shadow:
    0 1px 2px 0 rgb(0 0 0 / 30%),
    0 1px 3px 1px rgb(0 0 0 / 15%);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  line-height: 20px;
  h3 {
    margin: 0 0 4px 0;
    font-size: 14px;
  }
}
