/*
 * Copyright (C) 2006, 2007, 2008 Apple Inc.  All rights reserved.
 * Copyright (C) 2009 Anthony Ricaud <rik@webkit.org>
 *
 * 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.
 * 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
 *     its contributors may be used to endorse or promote products derived
 *     from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE 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 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.
 */

.panel.timeline > .toolbar {
    border-bottom: 1px solid #dadada;
}

#timeline-overview-panel {
    flex: none;
    position: relative;
    border-bottom: 1px solid rgb(140, 140, 140);
}

.panel.timeline .banner,
.panel.layers .banner {
    color: #777;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    font-size: 13px;
    overflow: auto;
    z-index: 500;
}

.panel.timeline .banner a,
.panel.layers .banner a {
    color: inherit;
}

#timeline-overview-panel .timeline-graph-bar {
    pointer-events: none;
}

#timeline-overview-grid {
    background-color: rgb(255, 255, 255);
}

#timeline-overview-grid .timeline-grid-header {
    height: 12px;
}

#timeline-overview-grid .resources-dividers-label-bar {
    pointer-events: auto;
    height: 12px;
}

#timeline-overview-grid .resources-divider-label {
    top: 1px;
}

.timeline-details-split {
    flex: auto;
}

.timeline-view-stack {
    flex: auto;
    display: flex;
}

#timeline-container .webkit-html-external-link,
#timeline-container .webkit-html-resource-link {
    color: inherit;
}

.timeline-graph-side.hovered {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.timeline.panel .status-pane-container {
    z-index: 1000;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.timeline.panel .status-pane-container.tinted {
    background-color: hsla(0, 0%, 90%, 0.8);
    pointer-events: auto;
}

#timeline-overview-panel .overview-strip {
    margin-top: 2px;
    justify-content: center;
}

#timeline-overview-panel .overview-strip .timeline-overview-strip-title {
    color: #666;
    font-size: 10px;
    font-weight: bold;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0 4px;
    position: absolute;
    top: 0;
    right: 0;
}

#timeline-overview-cpu-activity {
    flex-basis: 25px;
}

#timeline-overview-network,
#timeline-overview-framerate {
    flex-basis: 20px;
}

#timeline-overview-filmstrip {
    flex-basis: 40px;
}

#timeline-overview-memory {
    flex-basis: 22px;
}

#timeline-overview-framerate::before,
#timeline-overview-network::before,
#timeline-overview-cpu-activity::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    border-bottom: 1px solid hsla(0, 0%, 0%, 0.06);
    z-index: -200;
}

.overview-strip .background {
    z-index: -10;
}

#timeline-overview-responsiveness {
    flex-basis: 6px;
    margin-top: 1px !important;
}

#timeline-overview-input {
    flex-basis: 6px;
}

#timeline-overview-pane {
    flex: auto;
    position: relative;
    overflow: hidden;
}

#timeline-overview-container {
    display: flex;
    flex-direction: column;
    flex: none;
    position: relative;
    overflow: hidden;
}

#timeline-overview-container canvas {
    width: 100%;
    height: 100%;
}

#timeline-graphs {
    position: absolute;
    left: 0;
    right: 0;
    max-height: 100%;
    top: 20px;
}

.timeline-aggregated-legend-title {
    display: inline-block;
}

.timeline-aggregated-legend-value {
    display: inline-block;
    width: 70px;
    text-align: right;
}

.timeline-aggregated-legend-swatch {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin: 0 6px;
    position: relative;
    top: 1px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.popover ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#resources-container-content {
    overflow: hidden;
    min-height: 100%;
}

.timeline-toolbar-resizer {
    background-image: url(Images/toolbarResizerVertical.png);
    background-repeat: no-repeat;
    background-position: right center, center;
}

.memory-graph-label {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 9px;
    color: #888;
    white-space: nowrap;
    padding: 0 4px;
    background-color: hsla(0, 0%, 100%, 0.8);
}

#memory-graphs-canvas-container {
    overflow: hidden;
    flex: auto;
    position: relative;
}

#memory-counters-graph {
    flex: auto;
}

#memory-graphs-canvas-container .memory-counter-marker {
    position: absolute;
    border-radius: 3px;
    width: 5px;
    height: 5px;
    margin-left: -3px;
    margin-top: -2px;
}

#memory-graphs-container .memory-counter-selector-swatches {
    flex: 0 0 24px;
    padding: 5px 0;
    background-color: #eee;
    border-bottom: 1px solid #ddd;
}

.memory-counter-selector-info {
    flex: 0 0 auto;
    margin-left: 5px;
    white-space: nowrap;
}

.memory-counter-selector-info .range {
    margin: 0 4px;
    align-items: center;
    display: inline-flex;
}

.memory-counter-value {
    margin: 8px;
}

#counter-values-bar {
    flex: 0 0 20px;
    border-top: solid 1px lightgray;
    width: 100%;
    overflow: hidden;
    line-height: 18px;
}

.image-preview-container {
    background: transparent;
    text-align: left;
    border-spacing: 0;
}

.image-preview-container img {
    max-width: 100px;
    max-height: 100px;
    background-image: url(Images/checker.png);
    -webkit-user-select: text;
    -webkit-user-drag: auto;
}

.image-container {
    padding: 0;
}

.timeline-filters-header {
    overflow: hidden;
    flex: none;
}

.timeline-details {
    vertical-align: top;
}

.timeline-details-title {
    border-bottom: 1px solid #B8B8B8;
    font-weight: bold;
    padding-bottom: 5px;
    padding-top: 0;
    white-space: nowrap;
}

.timeline-details-row-title {
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
}

.timeline-details-row-data {
    white-space: nowrap;
}

.timeline-details-view {
    color: #333;
    overflow: hidden;
}

.timeline-details-view-body {
    flex: auto;
    overflow: auto;
    position: relative;
    background-color: #f3f3f3;
}

.timeline-details-view-block {
    flex: none;
    display: flex;
    background-color: white;
    flex-direction: column;
    padding-bottom: 5px;
    border-bottom: 1px solid #ccc;
}

.timeline-details-view-row {
    padding-left: 10px;
    flex-direction: row;
    display: flex;
    line-height: 20px;
}

.timeline-details-view-block .timeline-details-stack-values {
    flex-direction: column !important;
}

.timeline-details-chip-title {
    font-size: 13px;
    padding: 8px;
    display: flex;
    align-items: center;
}

.timeline-details-chip-title > div {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-right: 4px;
    content: " ";
}

.timeline-details-view-row-title {
    color: rgb(152, 152, 152);
    overflow: hidden;
}

.timeline-details-warning {
    background-color: rgba(250, 209, 209, 0.48);
}

.timeline-details-warning .timeline-details-view-row-title {
    color: red;
}

.timeline-details-warning .timeline-details-view-row-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-details-view-row-value {
    -webkit-user-select: text;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-left: 10px;
}

.timeline-details-view-row-value .stack-preview-container {
    line-height: 11px;
}

.timeline-details-view-row-value .timeline-details-warning-marker {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.timeline-details-view-pie-chart-wrapper {
    margin: 4px 0;
}

.timeline-details-view-pie-chart {
    margin-top: 5px;
}

.timeline-details-view-pie-chart-total {
    width: 100px;
    margin-top: 10px;
    text-align: center;
}

.timeline-details-view-row-stack-trace {
    padding: 4px 0;
    line-height: inherit;
}

.timeline-details-view-row-stack-trace div {
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 12px;
}

.timeline-aggregated-info-legend > div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.timeline-flamechart {
    overflow: hidden;
}

.timeline-status-pane.banner {
    text-align: left !important;
}

.layer-tree,
.profiler-log-view {
    overflow: auto;
}

.layers-3d-view {
    overflow: hidden;
    -webkit-user-select: none;
}

.layers-3d-view canvas {
    flex: 1 1;
}

.transform-control-panel {
    white-space: nowrap;
    flex: none;
}

.layer-details-view table td {
    padding-left: 8px;
}

.layer-details-view table td:first-child {
    font-weight: bold;
}

.layer-details-view .scroll-rect.active {
    background-color: rgba(100, 100, 100, 0.2);
}

.paint-profiler-overview .banner {
    z-index: 500;
}

.paint-profiler-canvas-container {
    flex: auto;
    position: relative;
}

.paint-profiler-overview {
    background-color: #eee;
}

.paint-profiler-pie-chart {
    width: 60px !important;
    height: 60px !important;
    padding: 2px;
    overflow: hidden;
    font-size: 10px;
}

.paint-profiler-canvas-container canvas {
    z-index: 200;
    background-color: white;
    opacity: 0.95;
    height: 100%;
    width: 100%;
}

.paint-profiler-canvas-container .overview-grid-dividers-background,
.paint-profiler-canvas-container .overview-grid-window {
    bottom: 0;
    height: auto;
}

.paint-profiler-canvas-container .overview-grid-window-resizer {
    z-index: 2000;
}

.paint-profiler-image-view {
    overflow: hidden;
}

.paint-profiler-image-view .paint-profiler-image-container {
    -webkit-transform-origin: 0 0;
}

.paint-profiler-image-view .paint-profiler-image-container div {
    border-color: rgba(100, 100, 100, 0.4);
    border-style: solid;
    z-index: 100;
    position: absolute;
    top: 0;
    left: 0;
}

.paint-profiler-image-view img {
    border: solid 1px black;
}

.layer-details-view ul {
    list-style: none;
    -webkit-padding-start: 0;
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
}

.layer-details-view a {
    padding: 8px;
    display: block;
}

.timeline-layers-view > div:last-child,
.timeline-layers-view-properties > div:last-child {
    background-color: #eee;
}

.timeline-layers-view-properties table {
    width: 100%;
    border-collapse: collapse;
}

.timeline-layers-view-properties td {
    border: 1px solid #e1e1e1;
    line-height: 22px;
}

.timeline-paint-profiler-log-split > div:last-child {
    background-color: #eee;
    z-index: 0;
}

.timeline-gap {
    flex: none;
}

.timeline-filmstrip-preview {
    margin-top: 10px;
    max-width: 200px;
    max-height: 200px;
    cursor: pointer;
    border: 1px solid #ddd;
}

.timeline-overview-popover .frame .time {
    display: none;
}

.timeline-overview-popover .frame .thumbnail img {
    max-width: 200px;
}

.timeline-tree-view {
    display: flex;
    overflow: hidden;
}

.timeline-tree-view > .toolbar {
    border-bottom: 1px solid #dadada;
}

.timeline-tree-view .data-grid {
    border: none;
    flex: auto;
}

.timeline-tree-view .data-grid .data-container {
    overflow-y: scroll;
}

.timeline-tree-view .data-grid.data-grid-fits-viewport .corner {
    display: table-cell;
}

.timeline-tree-view .data-grid table.data {
    background: white;
}

.timeline-tree-view .data-grid tr:not(.selected) .highlight {
    background-color: rgb(255, 230, 179);
}

.timeline-tree-view .data-grid tr:hover td:not(.bottom-filler-td) {
    background-color: rgba(0, 0, 0, 0.1);
}

.timeline-tree-view .data-grid td.numeric-column {
    text-align: right;
    position: relative;
}

.timeline-tree-view .data-grid div.background-percent-bar {
    float: right;
}

.timeline-tree-view .data-grid span.percent-column {
    color: #888;
    width: 44px;
    display: inline-block;
}

.timeline-tree-view .data-grid tr.selected span {
    color: inherit;
}

.timeline-tree-view .data-grid .name-container {
    display: flex;
    align-items: center;
}

.timeline-tree-view .data-grid .name-container div {
    flex: none;
}

.timeline-tree-view .data-grid .name-container .activity-icon {
    width: 10px;
    height: 10px;
    margin: 0 4px 0 2px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.timeline-tree-view .data-grid .name-container .activity-warning::after {
    content: "[deopt]";
    margin: 0 4px;
    line-height: 12px;
    font-size: 10px;
    color: #777;
}

.timeline-tree-view .data-grid tr.selected .name-container .activity-warning::after {
    color: white;
}

.timeline-tree-view .data-grid .name-container .activity-link {
    flex: auto;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 5px;
}

.timeline-tree-view .data-grid .background-bar-container {
    position: absolute;
    left: 3px;
    right: 0;
}

.timeline-tree-view .data-grid .background-bar {
    float: right;
    height: 15px;
    background-color: hsla(43, 84%, 64%, 0.2);
    border-bottom: 1px solid hsl(43, 84%, 64%);
}

.timeline-tree-view .data-grid .selected .background-bar {
    background-color: rgba(255, 255, 255, 0.25);
    border-bottom-color: transparent;
}

.timeline-tree-view .timeline-details-view-body .banner {
    background-color: inherit;
}

.timeline-details #filter-input-field {
    width: 120px;
}

.timeline-tree-view .data-grid .header-container {
    height: 21px;
}

.timeline-tree-view .data-grid .data-container {
    top: 21px;
}

.timeline-tree-view .data-grid th {
    border-bottom: 1px solid #ddd;
    background-color: #f3f3f3
}

.timeline-stack-view-header {
    height: 26px;
    background-color: white;
    padding: 6px 10px;
    color: #5a5a5a;
}
