/*
 * Copyright (C) 2017 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.
 */

.content-view.network .navigation-bar .filter-bar {
    background: none;
}

.content-view.network .network-table .icon {
    position: relative;
    width: 16px;
    height: 16px;
    bottom: 1px;
    vertical-align: middle;
    -webkit-margin-end: 4px;
}

.network-table li:not(.filler) .cell.name {
    cursor: pointer;
}

.network-table .cache-type {
    color: var(--text-color-gray-medium);
}

.network-table .error {
    color: var(--error-text-color);
}

.network-table .cell.domain > .lock {
    width: 8px;
    height: 10px;
    content: url(../Images/Locked.svg);
    -webkit-margin-end: 5px;
}

body[dir=ltr] .network-table .cell.name > .status {
    float: right;
    margin-left: 4px;
}

body[dir=rtl] .network-table .cell.name > .status {
    float: left;
    margin-right: 4px;
}

.network-table .cell.name > .status .indeterminate-progress-spinner {
    margin-top: 3px;
    width: 14px;
    height: 14px;
}

.showing-detail .network-table .cell:not(.name) {
    display: none;
}

.showing-detail .network-table .resizer:not(:first-of-type) {
    display: none;
}

.showing-detail .network-table .timeline-ruler {
    display: none;
}

.network-table .header .cell.waterfall {
    /* Hide the label for this column. */
    color: transparent;
}

.network-table :not(.header) .cell:first-of-type {
    background: rgba(0, 0, 0, 0.07);
}

.network-table :not(.header) .cell.waterfall {
    position: absolute;
    height: 20px;
}

.network-table :not(.header) .cell.waterfall .waterfall-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.network-table .timeline-ruler {
    position: absolute;
    top: 0;
    bottom: 0;
    overflow: hidden;
}

.network-table .timeline-ruler > .header {
    top: calc(var(--navigation-bar-height) - var(--timeline-ruler-height));
}

.content-view.network .message-text-view {
    top: var(--navigation-bar-height);
    background: var(--odd-zebra-stripe-row-background-color);
}

.content-view.network .message-text-view > .message {
    font-size: var(--message-text-view-font-size);
    font-weight: normal;
}

.waterfall .block {
    position: absolute;
    top: 8px;
    min-width: 2px;
    height: 4px;
}

.waterfall .block.request,
.waterfall .block.response {
    top: 3px;
    height: 14px;
}

.waterfall .block.mouse-tracking {
    top: 1px;
    z-index: 2;
    height: 18px;
}

.waterfall .block.queue {
    min-width: 3px;
    -webkit-margin-start: -1px;
    background-color: var(--network-queue-color);
}

.waterfall .block.dns {
    background-color: var(--network-dns-color);
}

.waterfall .block.connect {
    background-color: var(--network-connect-color);
}

.waterfall .block.secure {
    background-color: var(--network-secure-color);
}

.waterfall .block.request {
    background-color: var(--network-request-color);
}

.waterfall .block.response {
    background-color: var(--network-response-color);
}
