:root {
  --bs-gray: #6c757d;
  --bs-gray-dark: #343a40;
  --bs-gray-light: #f5f5f5;
  --bs-primary: #0d6efd;
  --bs-secondary: #6c757d;
  --bs-success: #87af87;
  --bs-info: #0dcaf0;
  --bs-warning: #9e6a03;
  --bs-danger: #dc3545;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.qfc-profile-avatar {
  width: 100%;
  padding-top: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: inline-block;
  border: 0.2rem solid #eee;
  position: relative;
}

@media (min-width: 768px) {
  .qfc-avatar-widget .qfc-profile-avatar {
    width: 200px;
    height: 200px;
    padding-top: 0;
  }
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

@media (max-width: 768px) {
  .w-sm-100 {
    width: 100% !important;
  }

  .modal-dialog {
    margin: 0.5rem;
  }

  .qfc-profile-avatar {
    width: 40%;
    padding-top: 40%;
    margin-left: 30%;
  }
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: anywhere;
  word-break: normal;
}

.container {
  width: auto;
  max-width: 1024px;
  padding: 0 15px;
}

.footer {
  background-color: #f5f5f5;
}

.svg-background {
  fill: none;
  padding: 0;
}

th.orderable.asc:after {
  content: "▲";
  font-weight: bold;
}

th.orderable.desc:after {
  content: "▼";
  font-weight: bold;
}

.qfield-div {
  color: white;
  fill: #4a6fae;
}

.ok-svg {
  fill: #80cc28;
}

.err-svg {
  fill: red;
}

.top-right {
  top: 0;
  right: 0;
}

.text-break-all {
  word-break: break-all !important;
}

.qfc-profile-info {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.qfc-profile-info .fa {
  width: 1.2rem;
}

.qfc-profile-avatar img {
  width: 110%;
  height: 110%;
  position: absolute;
  top: -5%;
  left: 0;
  bottom: 0;
  right: 0;
}

.qfc-profile-avatar.qfc-inline {
  width: 2em;
  height: 2em;
  vertical-align: middle;
  margin: 0.5em;
  border-width: 1px;
  padding-top: 0;
}

.qfc-members-list, .qfc-teams-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.qfc-togglebox:not(.qfc-active) .qfc-active-visible {
  display: none;
}

.qfc-togglebox.qfc-active .qfc-active-visible {
  display: block;
}

.qfc-togglebox:not(.qfc-active) .qfc-active-hidden {
  display: block;
}

.qfc-togglebox.qfc-active .qfc-active-hidden {
  display: none;
}

.qfc-icon-rotate {
  transition: all 0.5s;
}

.qfc-icon-rotate.qfc-icon-rotated {
  transform: rotate(90deg)
}

.qfc-header-logo {
  height: 1.5rem;
}

.badge-outline {
  background-color: transparent;
}

.badge-outline.badge-light {
  color: white;
  border: 1px solid white;
}

.badge-outline.badge-secondary {
  color: #6c757d;
  border: 1px solid #6c757d;
}

.badge-outline.badge-success {
  color: #80cc28;
  border: 1px solid #80cc28;
}

.ml-5rem {
  margin-left: 5rem;
}

.input-group > .form-control.qfc-w3em,
.qfc-w3em {
  width: 3em;
}

.grow-wrap {
  /* easy way to plop the elements on top of each other and have them both sized based on the tallest one's height */
  display: grid;
}

.grow-wrap::after {
  /* Note the weird space! Needed to prevent jumpy behavior */
  content: attr(data-replicated-value) " ";
  /* This is how textarea text behaves */
  white-space: pre-wrap;
  /* Hidden from view, clicks, and screen readers */
  visibility: hidden;
}

.grow-wrap > textarea {
  /* You could leave this, but after a user resizes, then it ruins the auto sizing */
  resize: none;
  /* Firefox shows scrollbar on growth, you can hide like this. */
  overflow: hidden;
}

.grow-wrap > textarea,
.grow-wrap::after {
  /* Identical styling required!! */
  border: 1px solid black;
  padding: 0.5rem;
  font: inherit;
  /* Place on top of each other */
  grid-area: 1/1/2/2;
}

.toasts {
  position: absolute;
  top: 5rem;
  right: 1rem;
  z-index: 10000;
}

.toast-logo {
  max-height: 2rem;
  max-width: 2rem;
}

.qfc-delta-modal-values tr td:first-child {
  font-weight: bold;
  white-space: nowrap;
  text-align: right;
}

.qfc-delta-modal-values tr td:last-child {
  word-break:break-all;
  overflow-wrap: break-word;
}

.qfc-delta-action-select {
  max-width: 7rem;
}

[aria-expanded="true"] .qfc-toggle-collapsed,
[aria-expanded="false"] .qfc-toggle-expanded {
    display:none;
}

.nav-link.active a {
    color: white;
}

.nav-pills .show > .nav-link:not(.active) {
    color: #4a6fae  ;
    background-color: inherit;
}

.qfc-btn-show-when-dirty, .btn.qfc-btn-show-when-dirty {
  opacity: 0;
  transition: opacity 0.2s;
}

.qfc-fade-in, .btn.qfc-fade-in {
  opacity: 1;
  transition: opacity 0.2s;
}

/* Nyuki help text */
/* Inspired from https://www.html-code-generator.com/css/speech-bubble-generator */
.qfc-nyuki-help {
  border-radius: 0.5rem;
}

.qfc-nyuki-help .qfc-nyuki-img {
  height: 4rem;
  filter: drop-shadow(0.2rem 0.2rem 0.2rem #ccc);
}

.qfc-speech-bubble {
    position: relative;
    border: #4a6fae solid 1px;
}

.qfc-speech-bubble:after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    z-index: 1;
    border-style: solid;
    border-width: 0 0 15px 13px;
    border-color: transparent transparent #ffffff transparent;
    bottom: 2rem;
    left: -13px;
    margin-top: -7.5px;
}
.qfc-speech-bubble:before {
    content: '';
    position: absolute;
    width: 0;
    z-index: 0;
    border-style: solid;
    border-width: 0 0 16px 14px;
    border-color: transparent transparent #4a6fae transparent;
    bottom: 1.95rem;
    left: -15px;
    margin-top: -7.5px;
    display: block;
}
.qfc-speech-bubble *:last-child {
  margin-bottom: 0;
}
/* /Nyuki help text */

.required label::after {
  content: ' *';
  color: red;
}


.qfc-code-text {
  background: #666;
  color: #eee;
  font-family: monospace;
}

/* Files list CSS */
.qfc-files-tree {
  position: relative;
  background: white;
  font-family: "Roboto Mono", monospace;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
}
.qfc-files-tree span {
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.4px;
  color: #a8a8a8;
}
.qfc-files-tree .fa-folder-open, .qfc-files-tree .fa-folder {
  color: #007bff;
}
.qfc-files-tree .fa-html5 {
  color: #f21f10;
}
.qfc-files-tree ul {
  padding-left: 0;
  list-style: none;
}
.qfc-files-tree ul li {
  position: relative;
  box-sizing: border-box;
}
.qfc-files-tree ul li:before {
  position: absolute;
  top: 15px;
  left: 0;
  width: 10px;
  height: 1px;
  margin: auto;
  content: "";
  background-color: #666;
}
.qfc-files-tree ul li:after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 100%;
  content: "";
  background-color: #666;
}
.qfc-files-tree ul li:last-child:after {
  height: 15px;
}
.qfc-files-tree ul a {
  cursor: pointer;
}
.qfc-files-tree ul a:hover {
  text-decoration: none;
}
/* /Files list CSS */


/* Job log output */
.qfc-job-output-log-step {
  width: 0;
  height: 0;
  position: absolute;
  top: -1000;
  left: -1000;
}

.qfc-job-output-log-step:not([disabled]):after {
  display: block;
  content: "❯";
}
.qfc-job-output-log-step:checked:after {
  transform: rotate(90deg)
}

.qfc-job-output-log-step+.qfc-job-output-status+.qfc-job-output-log-group {
  height: 0;
  overflow-y: hidden;
}

.qfc-job-output-log-step:checked+.qfc-job-output-status+.qfc-job-output-log-group {
  height: auto;
}

.qfc-job-output-log-group .qfc-job-output-log-group > * {
  white-space: pre-wrap;
}

.qfc-job-output-status {
  font-weight: bold;
  margin: 0;
  padding-left: 1rem;
}

.qfc-job-output-status-0:after {
  display: inline-block;
  color: #80cc28;
  content: "○";
}

.qfc-job-output-status-1:after {
  display: inline-block;
  color: #ff0000;
  content: "✖";
}

.qfc-job-output-status-2:after {
  display: inline-block;
  color: #80cc28;
  content: "✓";
}

.qfc-job-output-log {
  min-height: 50rem;
  min-height: 75vh;
}
/* /Job log output */

.qfc-emphasize {
  text-decoration: underline;
  font-weight: bold;
}

/* Project metadata */
.card-text .qfc-content.qfc-active-hidden {
  white-space: pre-line;
}

/* Project status dot */
.qfc-project-status-ok,
.qfc-project-status-busy,
.qfc-project-status-failed {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--bs-gray, 'gray');
  border-radius: 50%;
}

.qfc-project-status-ok {
  background-color: var(--bs-success, 'green');
}

.qfc-project-status-busy {
  background-color: var(--bs-warning, 'orange');
}

.qfc-project-status-failed {
  background-color: var(--bs-danger, 'red');
}
/* /Project status dot */

/* Project changes reviewer */
.qfc-reviewer-map {
  width: 100%;
  height: 50vh;
}

.qfc-reviewer .qfc-label {
  font-size: 0.75rem;
}

.qfc-reviewer .qfc-value {
  display: block;
  font-weight: bold;
  text-overflow: ellipsis;
  overflow-x: hidden;
}

.qfc-value-copy {
  cursor: pointer;
}

.qfc-diff-deleted,
.qfc-diff-added {
  padding: 0.2rem;
  border-radius: 0.5em;
}

.qfc-diff-added {
  background-color: #E6FFEC;
}

.qfc-diff-deleted {
  background-color: #FFEBE9;
}

.qfc-reviewer-attribute-table {
  min-width: 50%;
}

.qfc-reviewer-attribute-table tbody tr :nth-child(n+2) {
  width: 40%;
}

.qfc-attribute-type-number,
.qfc-attribute-type-boolean,
.qfc-attribute-type-null,
.qfc-attribute-type-string {
  font-family: monospace;
}

.qfc-attribute-value-number,
.qfc-attribute-value-boolean {
  color: blue;
}

.qfc-attribute-value-null {
  color: gray;
}

.qfc-reviewer-map-wrapper {
  position: relative;
  overflow: hidden;
}

option[value="apply"] {
  color: green;
}

option[value="ignore"] {
  color: orange;
}

.qfc-reviewer-map-overlay {
  display: none;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
  opacity: 0;
  transition: all 0.5s;
}

.qfc-reviewer-map-overlay h1 {
  color: #fff;
  text-shadow: 0px 0px 3px #000;
}

.qfc-reviewer-map-overlay.active {
  display: flex;
  opacity: 1;
  background: rgba(255, 255, 255, 0.5);
}
/* /Project changes reviewer */


.qfc-ribbon {
  height: 2rem;
  background: var(--bs-primary, 'royalblue');
  width: 250px;
  text-align: center;
  font-size: 1rem;
  line-height: 2rem;
  padding-right: 50px;
  font-family: sans-serif;
  color: var(--bs-gray-light, 'white');
  transform: rotate(-45deg);
  position: fixed;
  top: -2px;
  left: -70px;
  z-index: 1000;
  text-align: center;
  box-shadow: inset 0px 0px 0px 4px rgba(255, 255, 255, 0.34);
}

.qfc-ribbon:hover {
  color: var(--bs-gray-light, 'white');
}

.qfc-table-border-top {
  border-top: 1px solid #dee2e6;
}

.qfc-text-bigger {
  font-size: larger;
}

.qfc-text-smaller {
  font-size: smaller;
}

.qfc-fs-xx-small {
  font-size: xx-small;
}
.qfc-fs-x-small {
  font-size: x-small;
}
.qfc-fs-small {
  font-size: small;
}
.qfc-fs-medium {
  font-size: medium;
}
.qfc-fs-large {
  font-size: large;
}
.qfc-fs-x-large {
  font-size: x-large;
}
.qfc-fs-xx-large {
  font-size: xx-large;
}

.qfc-gb:not(:empty)::after {
  content: ' GB';
}

.qfc-nowrap {
  white-space: nowrap;
}

.qfc-two-column-table tr td:nth-child(2) {
  width: 33%;
}
.qfc-two-column-table tr td:nth-child(3) {
  width: 0%;
}

.qfc-three-column-table tr td:nth-child(3) {
  width: 33%;
}
.qfc-three-column-table tr td:nth-child(4) {
  width: 0%;
}

/* Storage slider */
.qfc-storage-spinner input {
  width: 60px
}
.qfc-input-number-spinner-input {
  -moz-appearance: textfield;
}
.qfc-input-number-spinner-input::-webkit-outer-spin-button,
.qfc-input-number-spinner-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* /Storage slider */


/* Payment */
#qfc-payment-stripe-element {
  min-height: 200px;
}
/* /Payment */

/* Plans */
.qfc-plans-details .list-group-item {
  min-height: 4.5em;
}

.qfc-plans-details .list-group-item:nth-child(2n+1) {
  background-color: #fafafa;
}

.qfc-plans-compare .qfc-plans-heading {
  min-height: 6.5em;
  margin-bottom: 1em;
  border-bottom: 1px solid #ddd;
}

.qfc-plans-compare .qfc-plans-card * {
  flex-grow: 0;
}

.qfc-plans-compare .qfc-plans-card *:first-child {
  flex-grow: 1;
}

.qfc-plans-compare .qfc-plans-price {
  font-weight: bold;
  padding: 1em 0;
  font-size: 1.2em;
}

.qfc-hide-value-change .qfc-value-change,
.qfc-hide-value-change .qfc-subscription-storage-form-alert-wrapper {
  display: none;
}

.qfc-price-discounted + .qfc-price-original {
  color: #cd6868;
  text-decoration: line-through;
  margin-right: 0.5rem;
}

/* /Plans */

#qfc-stripe-payment-element {
  min-height: 205px;
}

/* Cookies */
.qfc-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2147483645;
  box-sizing: border-box;
  width: 100%;
  background-color: rgba(230, 236, 234, 0.5);
}
/* /cookies */

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

.cursor-help {
  cursor: help;
}
/* /Cursor */


/* Tooltip */
.qfc-inverted .tooltip-inner {
  color: #000;
  background-color: #fff;
  box-shadow: 0 0 2px black;
}
/* /Tooltip */
