/*
  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.
*/

.test-result {
  flex: auto;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.test-result > div {
  flex: none;
}

.test-result video,
.test-result img.screenshot {
  flex: none;
  box-shadow: var(--box-shadow-thick);
  margin: 24px auto;
  min-width: 200px;
  max-width: 80%;
}

.test-result-path {
  padding: 0 0 0 5px;
  color: var(--color-fg-muted);
}

.test-result-counter {
  border-radius: 12px;
  color: var(--color-canvas-default);
  padding: 2px 8px;
  line-height: normal;
}

.step-title-container {
  display: flex;
  align-items: center;
  flex: auto;
  min-width: 0;
}

.step-title-container > * {
  flex-shrink: 0;
}

.step-title-text {
  flex-shrink: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.step-title-highlight {
  background: var(--color-attention-subtle);
}

.step-spacer {
  flex: auto;
}

.step-attachment-link {
  display: flex;
  flex: none;
  border-radius: 4px;
  padding: 4px;
}

.step-attachment-link:hover {
  background-color: var(--color-neutral-muted);
}

.step-attachment-link .octicon {
  margin-right: 0;
}

.step-indirect-attachment-indicator {
  display: flex;
  flex: none;
  padding: 4px;
  opacity: 0.5;
}

.step-indirect-attachment-indicator .octicon {
  margin-right: 0;
}

.step-duration {
  flex: none;
  white-space: nowrap;
  margin-left: 4px;
}

:root.light-mode {
  .test-result-counter {
    background: var(--color-scale-gray-5);
  }
}

:root.dark-mode {
  .test-result-counter {
    background: var(--color-scale-gray-3);
  }
}

.step-filter {
  margin-bottom: 8px;
}

@media only screen and (max-width: 600px) {
  .test-result {
    padding: 0 !important;
  }
}
