/*
 * 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.instrument > .title-bar {
    position: absolute;
    left: 0;
    right: 0;

    box-shadow: inset rgba(255, 255, 255, 0.2) 0 1px 0;
    border-bottom: 1px solid rgb(179, 179, 179);

    height: 22px;
    padding: 4px 6px;

    font-size: 11px;
    font-family: "Lucida Grande", sans-serif;

    white-space: nowrap;
    overflow: hidden;
}

.sidebar > .panel.instrument > .title-bar.timelines {
    top: 0;
}

.sidebar > .panel.instrument > .title-bar > .record-glyph {
    position: absolute;
    top: 0;
    right: 0;
    width: 21px;
    height: 21px;
    padding: 0;
    border: none;
    outline: none;
    color: transparent;
    overflow: hidden;
    
    -webkit-appearance: none;

    background-color: transparent;
    background-image: -webkit-image-set(url(Images/RecordingStopped.png) 1x, url(Images/RecordingStopped@2x.png) 2x);
    background-repeat: no-repeat;
    background-size: 21px 21px;
}

.sidebar > .panel.instrument > .title-bar > .record-glyph.recording {
    background-image: -webkit-image-set(url(Images/Recording.png) 1x, url(Images/Recording@2x.png) 2x);
}

.sidebar > .panel.instrument > .title-bar > .record-glyph:hover {
    background-image: -webkit-image-set(url(Images/RecordingHovered.png) 1x, url(Images/RecordingHovered@2x.png) 2x);
}

.sidebar > .panel.instrument > .title-bar > .record-glyph.recording:hover {
    background-image: -webkit-image-set(url(Images/RecordingStopped.png) 1x, url(Images/RecordingStopped@2x.png) 2x);
}

.sidebar > .panel.instrument > .title-bar > .record-glyph.forced {
    background-image: -webkit-image-set(url(Images/RecordingStopped.png) 1x, url(Images/RecordingStopped@2x.png) 2x) !important;
}

.sidebar > .panel.instrument > .title-bar > .record-glyph.recording.forced {
    background-image: -webkit-image-set(url(Images/Recording.png) 1x, url(Images/Recording@2x.png) 2x) !important;
}

.sidebar > .panel.instrument > .title-bar > .record-status {
    position: absolute;
    top: 0;
    right: 21px;
    line-height: 20px;
    color: rgb(76, 76, 76);
}

.sidebar > .panel.instrument > .navigation-sidebar-panel-content-tree-outline.timelines {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    height: 78px;
}

.sidebar > .panel.instrument > .navigation-sidebar-panel-content-tree-outline.timelines .item:not(:first-child):not(.selected) {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.sidebar > .panel.instrument > .navigation-sidebar-panel-content-tree-outline.timelines .item.selected + .item {
    border-top-color: rgba(0, 0, 0, 0.4);
}

.sidebar > .panel.instrument > .title-bar.profiles {
    top: 100px;
    border-top: 1px solid rgb(179, 179, 179);
    height: 23px;
}

.sidebar > .panel.instrument > .content,
.sidebar > .panel.instrument > .empty-content-placeholder {
    top: 123px;
}
