/* WORKFLOWS PAGE */

.workflows-page .shelf .container {
  display: flex;
  align-items: center;
}

.workflows-page .shelf .title {
  margin-right: 16px;
}

.workflows-page .create-new-container {
  margin-left: auto;
}

.workflows-page .no-workflows-container {
  margin: 32px;
  display: flex;
}

.workflows-page .no-workflows-card {
  display: flex;
  flex-direction: column;
  align-items: center;

  border-radius: 8px;
  padding: 32px;
  max-width: 100%;
  width: 440px;
}

.workflows-page .zero-state-animation {
  max-width: 400px;
}

.workflows-page .no-workflows-card .details {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.workflows-page .no-workflows-card > :not(:last-child) {
  margin-bottom: 32px;
}

.workflows-page .no-workflows-card .details > :not(:last-child) {
  margin-bottom: 16px;
}

.workflows-page .buttons {
  display: flex;
}

.workflows-page .buttons > :not(:last-child) {
  margin-right: 8px;
}

.workflows-page .workflow-item {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.workflows-page .workflow-item > :not(:last-child) {
  margin-right: 16px;
}

.workflows-page .workflow-name {
  font-size: 18px;
  font-weight: 600;
}

.workflows-page .workflow-description {
  font-size: 14px;
  color: #aaa;
}

.workflows-page .workflow-dropdown-menu {
  min-width: 180px;
}

.workflows-page .repo-url {
  background: #f8f8f8;
  border-radius: 4px;
  padding: 4px 8px;
}

.workflows-page .workflow-item-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.workflows-page .workflow-item-row > :not(:last-child) {
  margin-right: 16px;
}

.workflows-page .workflow-item-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 40px;
}

.workflows-page .workflow-item-column > :not(:last-child) {
  margin-bottom: 8px;
}

.workflows-page .workflow-buttons-container {
  margin-left: auto;
}

.workflows-page .workflow-button-container {
  position: relative;
}

.workflows-page .run-workflow-button {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workflows-page .history .card .title {
  font-size: 18px;
  margin-right: 8px;
}

.workflows-page .history .card .details {
  margin-top: 8px;
}

.workflows-page .run-results-title,
.workflows-page .history-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 24px;
}

.workflows-page .error-details {
  margin-top: 4px;
  font-size: 14px;
  color: #d32f2f;
}

.workflows-page .card .detail {
  margin-top: 0;
}

.workflows-page .upgrade-notice {
  margin-top: 12px;
  font-size: 12px;
  color: #757575;
  display: flex;
  gap: 4px;
}

.workflows-page .upgrade-notice .icon {
  width: 16px;
  height: 16px;
}

.workflows-page .workflow-item-row .git-merge-icon {
  width: 16px;
  height: 16px;
  align-self: center;
  margin-right: 8px;
}

.workflows-page .run-workflow-input {
  padding: 12px;
}

.workflows-page .run-workflow-input .title {
  font-weight: 600;
  font-size: 15px;
  background: white;
  padding: 4px;
}

.workflows-page .run-workflow-input button {
  margin-top: 8px;
}

.workflows-page .run-clean-container {
  display: flex;
  align-items: center;
  padding: 8px 0px;
}

.workflows-page .run-clean-container span {
  padding-left: 8px;
}

.action-error-hovercard {
  width: 30%;
  margin: 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-size: 14px;
  backdrop-filter: blur(3px);
}

/* CREATE WORKFLOW PAGE */

.create-workflow-page .content {
  padding: 16px 0;
  max-width: 600px;
}

.create-workflow-page .workflow-form > :not(:last-child) {
  margin-bottom: 16px;
}

.create-workflow-page .form-row {
  display: flex;
  flex-direction: column;
}

.create-workflow-page .explanation {
  color: #555;
  font-size: 13px;
}

.create-workflow-page .error {
  color: #f44336;
}

.workflow-created-dialog .dialog-body > :not(:last-child) {
  margin-bottom: 16px;
}

.workflow-created-dialog input {
  width: 100%;
}

/* GITHUB IMPORT */

.workflows-github-import .content-container {
  width: 600px;
  max-width: 100%;
  padding-top: 32px;
}

.workflows-github-import .content-container > :not(:last-child) {
  margin-bottom: 8px;
}

.workflows-github-import .install-app-banner .banner-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflows-github-import .install-app-banner .base-button {
  align-self: start;
}

.workflows-github-import .repo-search {
  display: flex;
  gap: 8px;
}

.workflows-github-import .repo-search.repo-search {
  margin-bottom: 16px;
}

.workflows-github-import .repos-loading {
  margin-top: 16px;
}

.workflows-github-import .owner-picker {
  flex-shrink: 0;
  min-width: 180px;
  max-width: 260px;
}

.workflows-github-import .repo-list {
  margin-top: 16px;
}

.workflows-github-import .repo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  min-height: 40px;
}

.workflows-github-import .repo-item > :not(:last-child) {
  margin-right: 8px;
}

.workflows-github-import .repo-owner-separator {
  color: #777;
  padding: 0 2px;
}

.workflows-github-import .repo-name {
  font-weight: 600;
}

.workflows-github-import .created-indicator,
.workflows-github-import .create-loading {
  text-align: center;
  flex-grow: initial;

  /* Match button sizing. */
  width: 64px;
  height: 40px;
  padding: 8px 0;
  box-sizing: border-box;
}

.workflows-github-import .show-more-button-container {
  display: flex;
  justify-content: flex-end;
}

.workflows-github-import .show-more-button > :not(:last-child) {
  margin-right: 8px;
}

.workflows-github-import .create-other-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.workflows-github-import .create-other {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.7;
  gap: 8px;
}

.workflows-github-import .create-other svg {
  width: 16px;
  height: 16px;
}

.workflows-github-import .create-other > :not(:last-child) {
  margin-right: 8px;
}

.workflows-github-import .create-other:hover {
  opacity: 1;
}

/* ANIMATION STUFF BELOW */

.workflows-page .no-workflows-card {
  animation-name: card-enter;
  animation-delay: 750ms;
  animation-duration: 1000ms;
  animation-fill-mode: forwards;
}

.workflows-page .zero-state-animation .wave {
  animation-name: anim-wave-stroke;
  animation-delay: 500ms;
  animation-duration: 2000ms;
  animation-timing-function: cubic-bezier(0.08, 0.14, 0.23, 0.97);
  animation-fill-mode: forwards;

  stroke-dashoffset: 1000;
  stroke-dasharray: 1000;
}

.workflows-page .zero-state-animation .character {
  animation-name: anim-pop-in, anim-blob-floaty;
  animation-delay: 500ms, 1000ms;
  animation-duration: 500ms, 2000ms;
  animation-timing-function: cubic-bezier(0.08, 0.14, 0.23, 0.97), ease-in-out;
  animation-fill-mode: forwards, forwards;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;

  opacity: 0;
}

.workflows-page .zero-state-animation .code-icon {
  animation-duration: 500ms, 1900ms;
}

.workflows-page .zero-state-animation .git-blob,
.workflows-page .zero-state-animation .git-icon {
  animation-delay: 750ms, 1250ms;
  animation-duration: 500ms, 1800ms;
}
.workflows-page .zero-state-animation .git-icon {
  animation-duration: 500ms, 1700ms;
}

.workflows-page .zero-state-animation .bb-blob {
  animation-delay: 1000ms, 1500ms;
  animation-duration: 500ms, 2200ms;
}
.workflows-page .zero-state-animation .bb-icon {
  animation-duration: 500ms, 2100ms;
}

.workflows-page .no-workflows-card .details {
  animation-name: details-enter;
  animation-duration: 500ms;
  animation-delay: 1000ms;
  animation-fill-mode: forwards;

  opacity: 0;
}

@keyframes card-enter {
  from {
    box-shadow: none;
  }
  to {
    box-shadow:
      0 1px 3px rgba(0, 0, 0, 0.27),
      0 3px 12px rgba(0, 0, 0, 0.05);
  }
}

@keyframes anim-wave-stroke {
  to {
    stroke-dashoffset: 487;
  }
}

@keyframes anim-pop-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes anim-blob-floaty {
  from {
    transform: translateY(0px);
  }
  to {
    transform: translateY(4px);
  }
}

@keyframes details-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.workflows-page .workflow-history {
  padding-top: 16px;
  padding-bottom: 16px;
}

.workflows-page .inline-icon {
  position: relative;
  vertical-align: top;
  top: -2px;
}

.workflows-page .card.action-history-card {
  padding: 24px 32px;
  justify-content: space-between;
}

.workflows-page .card.action-history-card .title-section {
  flex: 0 0 200px;
}

.workflows-page .action-stat {
  display: inline-block;
}

.workflows-page .action-stat:not(:last-child) {
  margin-right: 24px;
}

.workflows-page .action-history-section {
  position: relative;
  top: 6px;
}

.workflows-page .action-stats-section {
  min-width: 300px;
}

.workflows-page .action-history-chart {
  margin: 2px 8px 0;
  min-width: 540px;
}

.workflows-page .action-history-explainer-text {
  position: absolute;
  top: -18px;
  color: #aaa;
  font-size: 12px;
  line-height: 18px;
}

.workflows-page .action-history-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 16px;
}

.workflows-page .action-history-bar-wrapper {
  display: inline-block;
  position: relative;
  height: 36px;
  width: 20px;
}

@media screen and (max-width: 1560px) {
  .workflows-page .action-history-bar {
    width: 8px;
  }

  .workflows-page .action-history-bar-wrapper {
    width: 10px;
  }

  .workflows-page .action-history-chart {
    min-width: 300px;
  }
}

@media screen and (max-width: 1220px) {
  .workflows-page .action-history-bar {
    width: 4px;
  }

  .workflows-page .action-history-bar-wrapper {
    width: 6px;
  }

  .workflows-page .action-history-chart {
    min-width: 180px;
  }
}

@media screen and (max-width: 1090px) {
  .workflows-page .action-history-chart {
    display: none;
  }

  .workflows-page .action-stats-section {
    min-width: auto;
  }
}

.workflows-page .action-history-bar.success {
  background-color: #8bc34a;
}

.workflows-page .action-history-bar.failure {
  background-color: #f44336;
}

.workflows-page .action-history-bar.in-progress {
  background-color: #03a9f4;
}

.workflows-page .action-history-bar.neutral {
  background-color: #aaa;
}

.workflows-page .action-history-bar.no-data {
  border-width: 0.25px;
  border-color: #aaa;
  border-style: dashed;
  box-sizing: border-box;
}

.workflows-page-action-history-tooltip {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  padding: 16px;
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.16),
    0 3px 6px rgba(0, 0, 0, 0.23);
  pointer-events: none;
  z-index: 1;
}
