/*
  Copyright (c) Microsoft Corporation.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

.network-request {
  display: flex;
  white-space: nowrap;
  align-items: center;
  padding: 0 3px;
  flex: none;
  outline: none;
}

.network-request.selected:focus {
  border-color: var(--orange);
}

.network-request-title {
  height: 28px;
  display: flex;
  align-items: center;
  flex: 1;
}

.network-request-title-status,
.network-request-title-method {
  padding-right: 5px;
}

.network-request-title-status.status-failure {
  background-color: var(--red);
  color: var(--white);
}

.network-request-title-status.status-neutral {
  background-color: var(--white);
}

.network-request-title-url {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.network-request-details {
  width: 100%;
  user-select: text;
  line-height: 24px;
}

.network-request-details-url {
  white-space: normal;
  word-wrap: break-word;
}

.network-request-headers {
  white-space: pre;
  overflow: hidden;
}

.network-request-body {
  white-space: pre;
  overflow: scroll;
  background-color: var(--vscode-sideBar-background);
  border: black 1px solid;
  max-height: 500px;
}

.network-request-response-body {
  white-space: pre;
  overflow: scroll;
  background-color: var(--vscode-sideBar-background);
  border: black 1px solid;
  max-height: 500px;
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

.network-request-details-header {
  margin: 3px 0;
  font-weight: bold;
}

.network-request-details-time {
  float: right;
}
