/*******************************************************************************
 * Licensed Materials - Property of IBM
 * (c) Copyright IBM Corporation 2019. All Rights Reserved.
 * Copyright (c) 2020 Red Hat, Inc.
 * US Government Users Restricted Rights - Use, duplication or disclosure
 * restricted by GSA ADP Schedule Contract with IBM Corp.
 *******************************************************************************/

@import 'node_modules/carbon-components/scss/globals/scss/styles';
@import 'node_modules/carbon-components/scss/globals/scss/_colors';
@import 'node_modules/carbon-components/scss/globals/scss/_helper-mixins';
@import '../node_modules/@patternfly/patternfly/patternfly.css';
@import '../node_modules/@patternfly/patternfly/patternfly-addons.css';
@import 'header-carbon-v9-migration';
@import './variables.scss';
@import '_red-hat-font';
@include redhat-font-face;

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  font-family: RedHatText;
}

.bx--link,
.bx--label,
.bx--search-input,
.bx--overflow-menu-options__btn,
.bx--pagination__text,
.bx--text-input,
.bx--tooltip--icon__top::before,
.bx--tooltip--icon__top::after,
.bx--tooltip--icon__bottom::before,
.bx--tooltip--icon__bottom::after {
  font-family: RedHatText;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  height: 100%;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: $acm-background-color;

  .bx--data-table-v2 {
    thead {
      background-color: $acm-background-color;
    }
  }

  .bx--tooltip--shown {
    font-size: .875rem;
  }
}

.page-content-container {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 5% 3.375rem;

  .bx--select--inline {
    svg.bx--select__arrow {
      position: absolute;
    }
  }
}

.content-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.resource-list-filter {
  margin-top: -1.5rem;
  padding-bottom: 3rem;
}

.bx--loading-overlay {
  z-index: 10000; // need higher z-index with modals open
}

.expand-vertically {
  height: 100%;
}

.nested-expandable-row {
  display: flex;
  flex-direction: column;

  .nested-expandable-row-header {
    font-weight: bold;
    color: $color__blue-50;
  }

  .nested-expandable-row-content {
    margin-top: -2rem;
  }
}

.no-resource {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 32.375rem;
  height: 32.375rem;
  color: $color__blue-90;
  background-color: transparent;
  box-shadow: none;
  border: none;
  margin: 1rem auto;

  .button-group {
    display: flex;

    .buttons {
      margin: 0 1rem;

      button:hover {
        .doc-link {
          color: white;
        }
      }

      .doc-link {
        text-decoration: none;
      }
    }
  }

  .no-resource-icon {
    width: 262px;
    height: 195px;
    display: block;
    margin: 0 0 25px;
  }

  .no-resource-title {
    margin: 0;
    font-family: 'RedHatText';
    font-size: 24px;
    font-weight: 600;
    color: $color__blue-90;
    text-align: center;
    line-height: 31px;
  }

  .no-resource-detail {
    margin: 12px;
    font-family: 'RedHatText';
    font-size: 16px;
    color: $color__blue-90;
    text-align: center;
    line-height: 24px;
    max-width: 350px;

    > a {
      font-weight: 700;
      margin-right: 0.3125rem;
      font-size: .875rem;
    }

    #text-highlight {
      font-family: 'RedHatText';
      font-weight: 600;
      color: $color__blue-51;
    }
  }

  .bx--btn {
    height: 40px;
    margin: 19px auto;
    padding: 0 15px;
    font-family: 'RedHatText';
    font-size: 14px;
    font-weight: 600;
  }
}

.yamlEditorContainer {
  width: 100%;
  height: 100%;

  & * {
    font-family: unset;
  }
}

.monaco-editor .monaco-editor-hover {
  color: #cccccc;
  padding: 6px 10px;
  margin-left: 24px;

  p {
    font-size: 14px;
    font-family: RedHatText;
  }
}

#create-application {
  margin-left: 10px;
}

.errorDecoration {
  margin-left: 6px;
  height: 14px !important;
  width: 14px !important;
  cursor: pointer;
  z-index: 1000;
  background: url("data:image/svg+xml;utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='14' height='14'><g fill='red'><circle cx='8' cy='8' r='8' fill='white' fill-opacity='1'/><path d='M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zM5.1 13.3L3.5 12 11 2.6l1.5 1.2-7.4 9.5z'/> </g></svg>");
}

.bx--tooltip--definition .bx--tooltip__trigger {
  border-bottom: none;
}

.bx--tooltip--definition .bx--tooltip__trigger:hover {
  border-bottom: none;
}

.bx--tooltip--definition .bx--tooltip__trigger:hover + .bx--tooltip--definition__bottom {
  min-width: 150px;
}
