/*
 * Copyright (C) 2013 Apple Inc. All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``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 APPLE INC. OR ITS CONTRIBUTORS
 * 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.
 */

.sidebar > .panel.navigation.timeline > .navigation-bar > .item.record-start-stop {
    /* Workaround for background image clipping issue on non-retina machines. See http://webkit.org/b/147346. */
    filter: brightness(100%);
}

.sidebar > .panel.navigation.timeline > .navigation-bar > .item.record-start-stop:hover {
    filter: brightness(95%);
}

.sidebar > .panel.navigation.timeline > .navigation-bar > .item.record-start-stop:active {
    filter: brightness(80%);
}

.sidebar > .panel.navigation.timeline > .navigation-bar > .item.record-start-stop * {
    pointer-events: none;
}

.sidebar > .panel.navigation.timeline > .navigation-bar > .item.flexible-space {
    justify-content: center;

    line-height: 20px;
    font-weight: bold;

    color: hsl(0, 0%, 29%);
    text-shadow: hsla(0, 0%, 100%, 0.5) 0 1px 0;
}

.sidebar > .panel.navigation.timeline > .title-bar {
    position: absolute;
    left: 0;
    right: 0;

    height: 29px;

    border-bottom: 1px solid var(--border-color);
    background-color: var(--panel-background-color);
    color: hsl(0, 0%, 22%);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-weight: bold;

    padding: 4px 9px;

    white-space: nowrap;
    overflow: hidden;
}

.sidebar > .panel.navigation.timeline > .title-bar.timelines {
    top: 29px;
    padding: 8px 9px;
}

.sidebar > .panel.navigation.timeline > .navigation-bar-container {
    position: absolute;
    top: 29px;
    left: 0;
    right: 0;
}

.sidebar > .panel.navigation.timeline > .navigation-bar-container > .navigation-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    align-content: center;
}

.sidebar > .panel.navigation.timeline > .title-bar.timeline-events {
    display: flex;
    height: 23px;
    border-top: 1px solid var(--border-color);
}

.sidebar > .panel.navigation.timeline > .title-bar.timeline-events > .title-bar-scope-bar {
    position: absolute;
    top: 2px;
    right: 0;
    font-weight: normal;
}

.sidebar > .panel.navigation.timeline > .title-bar.timeline-events > .title-bar-scope-bar > .default-item-selected > .multiple {
    background-color: transparent;
    color: black;
}

.sidebar > .panel.navigation.timeline > .title-bar.timeline-events > .title-bar-scope-bar > .default-item-selected > .multiple .arrows {
    color: black;
}

.sidebar > .panel.navigation.timeline > .timelines-content {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;

    overflow: hidden;
}

.sidebar > .panel.navigation.timeline > .timelines-content .close-button {
    width: 14px;

    visibility: hidden;
}

.sidebar > .panel.navigation.timeline > .timelines-content li.item .icon {
    width: 24px;
    height: 24px;
    margin-top: 5px;
}

.sidebar > .panel.navigation.timeline > .timelines-content li.item.selected .close-button {
    visibility: visible;
}

.sidebar > .panel.navigation.timeline > .timelines-content li.item:not(.selected):nth-child(even) {
    background-color: hsla(0, 0%, 0%, 0.03);
    background-clip: padding-box;
}

.sidebar > .panel.navigation.timeline > .timelines-content li.item:not(.selected):not(:first-child) {
    border-top: 1px solid hsla(0, 0%, 0%, 0.09);
}

.sidebar > .panel.navigation.timeline > .timelines-content li.item.selected + li.item {
    border-top-color: hsl(0, 0%, 83%);
}

body.window-inactive .sidebar > .panel.navigation.timeline > .timelines-content li.item.selected + li.item {
    border-top-color: hsl(0, 0%, 83%);
}

.sidebar > .panel.navigation.timeline > .timelines-content :focus li.item.selected + li.item {
    border-top-color: hsl(209, 100%, 49%);
}

.sidebar > .panel.navigation.timeline > .content,
.sidebar > .panel.navigation.timeline > .empty-content-placeholder {
    top: 189px;
}

.sidebar > .panel.navigation.timeline.timeline-recording-content-view-showing > .content {
 /* This hides the scrollbar. The view shows a scrollbar, we don't need two. */
    padding-right: 16px;
    right: -16px;
}

.sidebar > .panel.navigation.timeline .item:not(:hover, .selected) .status .status-button,
.sidebar > .panel.navigation.timeline .item:hover:not(.selected) .status .close.status-button {
    display: none;
}

.sidebar > .panel.navigation.timeline:not(.timeline-recording-content-view-showing) .status .go-to-arrow.status-button {
    display: none;
}

.sidebar > .panel.navigation.timeline.timeline-recording-content-view-showing .status .close.status-button {
    display: none;
}

.sidebar > .panel.navigation.timeline > .timelines-content > .details-section > div.header {
    display: none;
}

.sidebar > .panel.navigation.timeline > .timelines-content > .details-section > .content > .group > .row.chart {
    height: 108px;
}

.sidebar > .panel.navigation.timeline > .timelines-content > .details-section > .content > .group > .row.chart > .chart-content > .chart {
    width: 76px;
    height: 76px;
}
