/*
 * Copyright 2017 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

.flame-chart-main-pane {
  overflow: hidden;
}

.flame-chart-marker-highlight-element {
  position: absolute;
  top: 1px;
  height: 18px;
  width: 6px;
  margin: 0 -3px;
  content: "";
  display: block;
}

.flame-chart-canvas:focus-visible {
  border-top: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
}

.flame-chart-highlight-element {
  position: absolute;
  pointer-events: none;
  background-color: rgb(56 121 217 / 10%); /* stylelint-disable-line plugin/use_theme_colors */
  /* See: crbug.com/1152736 for color variable migration. */
}

.flame-chart-selected-element {
  position: absolute;
  pointer-events: none;
  outline: 2px solid var(--selection-bg-color);
  background-color: rgb(56 121 217 / 10%); /* stylelint-disable-line plugin/use_theme_colors */
  /* See: crbug.com/1152736 for color variable migration. */
}

.flame-chart-unfocused-selected-element {
  outline: 2px solid rgb(123 123 123 / 100%);
}

.chart-cursor-element {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 100;
  width: 2px;
  background-color: var(--selection-bg-color);
  pointer-events: none;
}

.flame-chart-entry-info:not(:empty) {
  z-index: 2000;
  position: absolute;
  background-color: var(--color-background);
  pointer-events: none;
  padding: 4px 8px;
  white-space: nowrap;
  max-width: 80%;
  box-shadow: var(--drop-shadow);
}

.flame-chart-entry-info table tr td:empty {
  padding: 0;
}

.flame-chart-entry-info table tr td:not(:empty) {
  padding: 0 5px;
  white-space: nowrap;
}

.flame-chart-entry-info table tr td:first-child {
  font-weight: bold;
}

.flame-chart-entry-info table tr td span {
  margin-right: 5px;
}
