/*
 * 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.
 */

.data-grid.timeline {
    border: none;
}

.data-grid.timeline table {
    font-size: 11px;
}

.data-grid.timeline th {
    height: 22px;

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

    background-image: none;
    background-color: white;

    border-top: 1px solid rgb(179, 179, 179) !important;
    border-bottom: 1px solid rgb(179, 179, 179) !important;
}

.data-grid.timeline th:not(:last-child) {
    border-right: 1px solid rgb(179, 179, 179);
}

.data-grid.timeline th.sortable:active {
    background-image: none !important;
    background-color: rgb(210, 210, 210);
}

.data-grid.timeline th.sort-ascending,
.data-grid.timeline th.sort-descending {
    background-image: none !important;
    background-color: rgb(230, 230, 230);
}

.data-grid.timeline .data-container {
    top: 23px;
}

.data-grid.timeline th,
.data-grid.timeline td {
    padding-left: 6px;
    padding-right: 6px;
}

.data-grid.timeline td:last-child {
    padding-right: 12px;
}

.data-grid.timeline td {
    padding-top: 2px;
    padding-bottom: 2px;
    line-height: 17px;
}

.data-grid.timeline td:not(:last-child) {
    border-right: 1px solid rgb(179, 179, 179);
}

.data-grid.timeline:focus tr.selected td:not(:last-child) {
    border-right-color: rgb(53, 109, 189);
}

.data-grid.timeline th.sort-ascending > div:first-child,
.data-grid.timeline th.sort-descending > div:first-child {
    padding-right: 13px;
}

.data-grid.timeline th.sort-ascending > div:first-child::after,
.data-grid.timeline th.sort-descending > div:first-child::after {
    top: 1px;
}

.data-grid.timeline td.error {
    color: rgb(224, 16, 16);
}

.data-grid.timeline tr.selected td.error {
    color: inherit;
}

.data-grid.timeline td .icon {
    display: inline-block;
    vertical-align: top;

    width: 16px;
    height: 16px;

    margin-right: 2px;
}

.data-grid.timeline td .go-to-arrow {
    float: right;

    visibility: hidden;

    margin-left: 2px;
}

.data-grid.timeline tr.selected .go-to-arrow,
.data-grid.timeline tr:hover .go-to-arrow {
    visibility: visible;
}

.data-grid.timeline td .subtitle {
    color: rgba(0, 0, 0, 0.7);
}

.data-grid.timeline td .subtitle::before {
    content: " — ";
}

.data-grid.timeline:focus tr.selected td .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.data-grid.timeline > .navigation-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 32px;

    pointer-events: none;
    visibility: hidden;
}

.data-grid.timeline:hover > .navigation-bar-container {
    pointer-events: all;
    visibility: visible;
}

.data-grid.timeline > .navigation-bar-container > .navigation-bar {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    height: 22px;

    border-bottom: none;
    border-top: 1px solid rgb(200, 200, 200);
    box-shadow: none;

    background-color: white;
}

.timeline-data-grid-tree-outline {
    position: relative;
    padding: 0;
    margin: 0;
    outline: none;
    list-style: none;
    font-family: "Lucida Grande", "Helvetica", sans-serif;
    font-size: 11px;
}

.timeline-data-grid-tree-outline .item {
    position: relative;
    height: 36px;
    line-height: 34px;
    padding: 0 5px;
    border-top: 1px solid transparent;
    white-space: nowrap;
}

.timeline-data-grid-tree-outline > .children,
.timeline-data-grid-tree-outline .disclosure-button,
.timeline-data-grid-tree-outline .item .status {
    display: none;
}

.timeline-data-grid-tree-outline .item .icon {
    float: left;
    width: 32px;
    height: 32px;
    margin-top: 1px;
    margin-right: 3px;
}

.timeline-data-grid-tree-outline .item:hover {
    color: white;
    border-radius: 4px;
    box-shadow: inset rgb(87, 152, 206) 0 1px 0;
    background: -webkit-linear-gradient(top, rgb(110, 167, 216), rgb(36, 114, 181));
    background-origin: padding-box;
    background-clip: padding-box;
    text-shadow: rgb(51, 88, 123) 0 1px 0;
    -webkit-text-stroke: 0.4px;
}

.timeline-data-grid-tree-outline .item .titles {
    position: relative;
    top: 5px;
    line-height: 11px;
    padding-bottom: 1px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.timeline-data-grid-tree-outline .item .title::after {
    content: "\A"; /* Newline */
    white-space: pre;
}

.timeline-data-grid-tree-outline .item .subtitle {
    font-size: 9px;
    color: rgba(0, 0, 0, 0.7);
}

.timeline-data-grid-tree-outline .item:hover .subtitle {
    color: white;
}

.timeline-data-grid-tree-outline .item .subtitle:empty {
    display: none;
}

.timeline-data-grid-tree-outline .item.small {
    height: 20px;
}

.timeline-data-grid-tree-outline .item.small .icon {
    width: 16px;
    height: 16px;
}

.timeline-data-grid-tree-outline .item.small .status {
    margin-top: 1px;
}

.timeline-data-grid-tree-outline .item.small .titles {
    top: 2px;
    line-height: normal;
}

.timeline-data-grid-tree-outline .item.small .subtitle {
    font-size: inherit;
}

.timeline-data-grid-tree-outline .item.small:not(.two-line) .title::after {
    content: "";
}

.timeline-data-grid-tree-outline .item.small:not(.two-line) .subtitle::before {
    content: " — ";
}
