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

.cpu-usage-view {
    display: flex;
    width: 100%;
    height: calc(var(--cpu-usage-view-height) + 1px); /* +1 for border-bottom */
    border-bottom: 1px solid var(--border-color);
}

.cpu-usage-view > .details {
    flex-shrink: 0;
    width: 150px;
    padding-top: 10px;
    padding-inline-start: 15px;
    border-inline-end: 1px solid var(--border-color);
    font-family: -webkit-system-font, sans-serif;
    font-size: 12px;
    color: var(--text-color-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}

.cpu-usage-view > .details > .name {
    color: var(--text-color);
    white-space: nowrap;
}

body[dir=rtl] .cpu-usage-view > .graph {
    transform: scaleX(-1);
}

.cpu-usage-view > .graph {
    position: relative;
}

.cpu-usage-view > .graph,
.cpu-usage-view > .graph > .area-chart,
.cpu-usage-view > .graph > .area-chart > svg {
    width: 100%;
    height: 100%;
}
