/**
 * Copyright (c) 2012-2018 Red Hat, Inc.
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *   Red Hat, Inc. - initial API and implementation
 */
@eval categoryHeaderButtonColor org.eclipse.che.ide.api.theme.Style.theme.categoryHeaderButtonColor();
@eval editorTabIconColor org.eclipse.che.ide.api.theme.Style.getEditorTabIconColor();
@eval processTreeDevLabel org.eclipse.che.ide.api.theme.Style.theme.processTreeDevLabel();
@eval processesTreeMachineNameColor org.eclipse.che.ide.api.theme.Style.theme.processesTreeMachineNameColor();
@eval processBadgeBorderColor org.eclipse.che.ide.api.theme.Style.theme.processBadgeBorderColor();

.processTree {
    font-family: mainFontFamily;
    font-size: fontSize;
    color: mainFontColor;
    text-shadow: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.processTree .processTreeNode {
}

.commandTreeNode {
}

.processTree span {
}

.processTree .machineName {
    line-height: 20px;
    color: processesTreeMachineNameColor;
    font-family: "Open Sans", sans-serif;
    font-size: 9pt;
}

.processName {
    font-family: "Open Sans", sans-serif;
    font-size: 9pt;
}

.processTree .machineStatus {
    position: relative;
    float: left;
    margin: 1px 3px 0px 1px;
    overflow: hidden;
}

.processTree .machineStatus .machineStatusRunning {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    background-color: #46af00;
    border: 1px solid #7ed321;
    border-radius: 5px;
    box-sizing: border-box;
    position: relative;
}

.processTree .machineStatus .machineStatusPausedLeft {
    margin-left: 2px;
}

.processTree .machineStatus .machineStatusPausedLeft,
.processTree .machineStatus .machineStatusPausedRight {
    display: inline-block;
    width: 3px;
    height: 10px;
    background-color: #A97B32;
    border: 1px solid rgb(228, 158, 45);
    border-radius: 5px;
    box-sizing: border-box;
    position: relative;
    top: 1px;
    margin-right: 1px;
}

.sshButton {
    position: relative;
    font-size: 10px;
    float: right;
    margin-right: 2px;
    margin-top: 3px;
    color: categoryHeaderButtonColor;
    cursor: pointer;
    right: 0;
    top: 0;
    display: none;
}

.processTree .newTerminalButton {
    float: right;
    margin: 4px 6px 0 5px;
    width: 12px;
    height: 13px;
    font-size: 13px;
    font-weight: bold;
    line-height: 10px;
    box-sizing: border-box;
    text-align: center;
    cursor: pointer;
    position: relative;
    right: 0;
    top: 0;
    display: none;
}

.processTree .newTerminalButton > svg {
    margin-top: 2px;
}

.newTerminalButton span:hover {
    fill: categoryHeaderButtonHoverColor;
    stroke: categoryHeaderButtonHoverColor;
}

.newTerminalButton:hover,
.sshButton:hover {
    filter: brightness(120%);
    -webkit-filter: brightness(120%);
}

.processTree .machineMonitors {
    float: right;
    cursor: default;
    position: absolute;
    right: 24px;
    top: 0;
}

.processTree .processIcon {
    margin-left: 2px;
    margin-right: 2px;
    position: relative;
    overflow: hidden;
}

.processTree .processIconPanel {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
    margin: 1px 0 -3px 0;
}

.processTree .processBadge {
    position: absolute;
    left: 9px;
    top: 1px;
    width: 7px;
    height: 7px;
    border-radius: 3px;
    background-color: #4EABFF;
    border: 1px solid processBadgeBorderColor;
    box-sizing: border-box;
    display: none;
}

.processTree .badgeVisible .processBadge {
    display: block;
}

.processIcon svg {
    fill: iconColor;
    width: 12px;
    height: 12px;
    vertical-align: middle;
    position: absolute;
    left: 2px;
    top: 3px;
}

.processIcon svg path {
    fill: iconColor;
}

.processTree div[selected="true"] .processIcon svg path {
    fill: activeIconColor;
}

.processNavigation {
    outline: none;
}

.processesPanelStopButtonForProcess {
    position: relative;
    float: right;
    background-color: editorTabIconColor;
    opacity: 0.3;
    margin: 5px 0 0 7px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    box-sizing: border-box;
    cursor: pointer;
    top: 0px;
}

.processesPanelStopButtonForProcess:hover {
    opacity: 0.5;
}

.processesPanelCloseButtonForProcess {
    float: right;
}

.processesPanelCloseButtonForProcess svg {
    position: relative;
    cursor: pointer;
    opacity: 0.5;
    padding-top: 6px;
    padding-bottom: 4px;
    padding-left: 8px;
    padding-right: 9px;
    float: right;
    fill: editorTabIconColor;
}

.processesPanelCloseButtonForProcess svg g,
.processesPanelCloseButtonForProcess svg path {
    fill: editorTabIconColor;
}

.processTree div[selected="true"] .processesPanelCloseButtonForProcess svg,
.processesPanelCloseButtonForProcess:HOVER svg {
    opacity: 1;
}

.hideStopButton .processesPanelStopButtonForProcess {
    display: none;
}
