/* CORE LAYOUTING */
/* https://paletton.com/#uid=54B0P0kaytH2LP+6eE6fmpAkpkK */
html {
  background-color: #896E9F;
  color: #202020;
  font-family: 'NexaLight';
}

body {
  margin: 0px;
}

.confirmatron-root {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  gap: 5px;
}

.confirmatron-wrapper {
  margin-top: 115px;
}

.confirmatron-pageheader {
  position: fixed;
  height: 100px;
  width: 100vw;
  z-index: 100;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 20px;
  color: white;
  background: #491375;
}

.confirmatron-navbar {
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  height: 100vh;
  gap: 10px;
  transition: 0.3s;
  width: 0px;
  background: lightgray;
  padding-left: 0px;
  z-index: 10;
  white-space: nowrap;
  padding-top: 115px;
  overflow: hidden;
}

.confirmatron-navbar.active {
  padding-left: 10px;
  width: 250px;
  overflow: scroll;
}



.nav-link, .nav-link:visited, .header-link, .header-link:visited {
  font-family: 'NexaBold';
  text-decoration: none;
  font-size: 1.3em;
}

.nav-link, .nav-link:visited {
  color: black;
}

.header-link, .header-link:visited {
  color: white;
}

.confirmatron-logo {
}

.confirmatron-logo.onclick:hover {
  cursor: pointer;
}

.confirmatron-pageheader .confirmatron-logo {
  height: 80px;
  margin-left: 15px;
}

.pre-wrapper {
  width:96%;
  display: flex;
  flex-flow: row wrap;
  background: #30416F;
  gap: 10px;
  font-size: 24px;
  padding: 2%;
  color: #A2ABC3;
}

/*
 * General Purpose UI Classes
 */

.flex-mobile-break {
  flex-basis: 0%;
  height:0;
}

.collapse {
  max-height: 1000px;
  transition: all 0.3s ease;
}

.collapse.toggled {
  max-height: 0px;
  overflow: hidden;
}

.job-options {
  display: flex;
  flex-flow: column nowrap;
  gap: 30px;
}

.confirmatron-option-container {
  display: flex;
  flex-flow: column nowrap;
  gap: 5px;
}

.confirmatron-input-container {
  display: flex;
  flex-flow: column nowrap;
  gap: 5px;
}

.confirmatron-button-container {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 10px;
}

.confirmatron-options {
  display: flex;
}

.confirmatron-option-button {
  font-family: 'NexaBold';
  border: 3.5px solid #512D6F;
  border-radius: 12px;
  background: #B3A0C3;
  transition: all 0.3s;
  flex-shrink: 0;
  padding: 4px;
  min-width: 100px;
  max-width: 100px;
  text-align: center;
}

.confirmatron-option-button.secondary {
  background: #A2ABC3;
}

.confirmatron-option-button.secondary:hover {
  background: #D1D6E2;
}

.confirmatron-option-button.cancel {
  background: #EEC0CC;
}

.confirmatron-option-button.cancel:hover {
  background: #B96078;
}


.confirmatron-option-button:hover {
    background: #DAD0E2;
    cursor: pointer;
}

.confirmatron-option-button:active {
    background: #FFEED9;
}

.confirmatron-input-group {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 10px;
}

.confirmatron-input-group input {
  font-size: 20px;
  font-family: 'NexaBold';
  flex-grow: 1;
  min-width: 150px;
}

.confirmatron-input-name {
  min-width: 115px;
  font-family: 'NexaBold';
  text-align: right;
}

/* User Fun Styling */

.user-function {
  display: flex;
  flex-flow: column nowrap;
  gap: 5px;
}

.uf-title {
  font-family: 'NexaBold';
  margin-bottom: 12px;
  font-size: 20px;
}

.uf-inputs {
  display: flex;
  flex-flow: column nowrap;
}

.uf-input {
  display: flex;
  flex-flow: row wrap;
}

.uf-label {
  min-width: 200px;
  font-family: 'NexaBold';
  margin: 8px;
}

.confirmatron-button {
  font-family: 'NexaBold';
  cursor: pointer;
  padding: 10px;
  width: fit-content;
  color: #202020;
  text-decoration: none;
  background: #EEC0CC;
  border-radius: 12px;
}

textarea.uf-input {
  min-height: 200px;
  width: 100%;
}

.user-function .confirmatron-button {
  align-self: end;
}

.flexbreak {
  height: 0;
  flex-basis: 100%;
}

.userdata-list {
  display: flex;
  flex-flow: column nowrap;
  gap: 5px;
}

/* FILTER */

.listing-filter {
  display: flex;
  flex-flow: row nowrap;
  align-items: start;
  gap: 10px;
  margin-bottom: 15px;
}

.listing-filter input {
  font-family: 'NexaBold';
  font-size: 16px;
}

.filter-txt-input {
  flex-grow: 1;
}

.filter-infos {
  font-size: 1.5em;
  font-family: 'NexaLight';
}

.filter-num {
  font-family: 'NexaBold';
}

/*
 * User Data Styling
 */

.data-listing-wrapper {
  display: flex;
  flex-flow: column nowrap;
}

.data-container {

}

.data-container.filtered-out {
  display: none;
}

.data-preview {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 5px;
  background: #30416F;
  font-family: 'NexaBold';
  color: white;
  cursor: pointer;
  padding: 5px;
}

.preview-title {
  min-width: 200px;
  flex-grow: 1;
}

.preview-timestamp {
  font-family: 'NexaLight';
  font-size: 0.7em;
  display: flex;
  flex-flow: column nowrap;
  min-width: 120px;
}

.datetime {
  font-family: 'NexaBold';
}

.data-viewcontainer {
  max-height: 100vh;
  transition: all 0.5s ease;
  background: #A2ABC3;
  overflow: hidden;
  border-bottom-right-radius: 20px;
  border-bottom-left-radius: 20px;
  overflow: scroll;
}

.data-viewcontainer.toggled {
  padding: 0;
  max-height: 0;
}

.data-item {
  display: flex;
  flex-flow: column nowrap;
  padding-bottom: 10px;
}

.data-title {
  font-family: 'NexaBold';
  font-size: 20px;
  margin-bottom: 5px;
  margin-top: 10px;
  margin-left: 5px;
}

.data-description {
  margin-left: 5px;
}

.data-options {
  margin-left: 5px;
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}

.usertask-button.done {
  background: lightgray;
}

.action-footer {
  display: flex;
  flex-flow: row wrap;
  gap: 0px 10px;
  justify-content: flex-end;
  margin-right: 10px;
}

.file-view {
  margin-bottom: 15px;
}

.file-header {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  cursor: pointer;
  background: white;
  padding-top: 5px;
  padding-bottom: 5px;
}

.confirmatron-icon {
  height: 1.5em;
}

.file-icon {
  padding-left: 15px;
  text-align: center;
  height: 2em;
}

.file-title {
  font-family: 'NexaBold';
  font-size: 25px;
}

.file-dl-link {
  margin-left: auto;
  padding-right: 15px;
}

.small-action-link {
  font-family: 'NexaBold';
  font-size: 12px;
  cursor: pointer;
  color: #202020;
  text-decoration: none;
}

.file-preview {
  max-height: 1000px;
  overflow: scroll;
  transition: all 0.3s;
}

.file-preview.toggled {
  max-height: 0px;
  overflow: hidden;
}

/* MEDIA FORMATTING (used for Confirmatron Data) */

.confirmatron-text-container {
  padding: 12px;
  font-size: 14px;
  background: aliceblue;
}

.confirmatron-code-container {
  background: black;
  width: fit-content;
  min-width: 100%;
}

.confirmatron-code-container pre {
  margin-top: 0;
}

.media-preview {
  width: 100%;
  max-height: 600px;
}

/* Upload Form */

.upload-form {
  display: flex;
  flex-flow: column nowrap;
  gap: 10px;
}

.upload-file-container {
  border-radius: 15px;
  width: 100%;
  min-height: 120px;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1.5em;
  font-family: 'NexaBold';
  background: lightgray;
}

.upload-file-container label {
  text-align: center;
}

.upload-file-container.dragover {
  background: #fdbb3e;
}

.upload-label {
  font-family: 'NexaBold';
}


/* User Tasks */

.confirmatron-usertask {
  display: flex;
  flex-flow: column nowrap;
  gap: 5px;
}

.usertask-keylabel {
  font-family: 'NexaBold';
  font-size: 1.8em;
  align-self: center;
}

.usertask-sublabel {
  font-family: 'NexaLight';
  font-size: 1.2em;
  align-self: center;
}


@media screen and (max-width:767px) {
  .usertask-keylabel {
    font-size: 1.2em;
  }

  .usertask-sublabel {
    font-size: 1em;
  }
}

.usertask-header {
  display: flex;
  flex-flow: row nowrap;

}

.usertask-buttons {
  display: flex;
  flex-flow: row nowrap;
  gap: 5px;
  margin-left: auto;
}

.usertask-main {
  max-height: 80vh;
  overflow: scroll;
}

/* User Task Base Inputs */

.usertask-input {
  display: flex;
  flex-flow: row wrap;
}

.usertask-input-labels {
  flex: 1;
}

.usertask-inputs {
  padding: 5px;
  display: flex;
  flex-flow: column nowrap;
  gap: 10px;
}

.usertask-input-wrapper {
  flex: 2;
  align-self: center;
}

.usertask-input-label {
  font-family: 'NexaBold';
  font-size: 1.3em;
}

.usertask-input-sublabel {
  font-size: 1.2em;
}

.usertask-input-radiobuttons {
  display: flex;
  flex-flow: row wrap;
  gap: 5px;
  font-family: 'NexaBold';
  font-size: 1.2em;
}

.usertask-radiobutton-group {
  background: lightgray;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.usertask-radiobutton-group label {
  cursor: pointer;
}

.usertask-input-wrapper input[type="text"] {
  width: 100%;
}

.usertask-radiobutton-group:has(> input[type="radio"]:checked) {
  background: #eec0cc;
}

.usertask-radiobutton-group input {
  display: none;
}

/* Image Select */

.is-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Create four equal columns that sits next to each other */
.is-column {
  flex: 25%;
  max-width: 24%;
  display: flex;
  flex-flow: column nowrap;
  gap: 5px 0px;
}

.is-column img {
  vertical-align: middle;
  width: 100%;
}

.is-column img.selected {
  filter: brightness(110%);
  position: relative;
}

.usertask-select-img {
  position: relative;
  cursor: pointer;
}

.usertask-is-select-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #92A8FF54;
  display: none;
}

.usertask-select-img.selected .usertask-is-select-overlay {
  display: flex;
}

.select-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: white;
  font-family: 'NexaBold';
}


/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .is-column {
    flex: 48%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .is-column {
    flex: 100%;
    max-width: 100%;
  }
}



/* Job Status */

.job-listing {
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
}

.job-container {
  display: flex;
  flex-flow: column nowrap;
  background: #A2ABC3;
  flex: 23%;
  height: fit-content;
}

.job-container.filtered-out {
  display: none;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .job-container {
    flex: 48%;
    max-width: 50%;
  }
}

.job-completion-bar {
  font-family: 'NexaBold';
  color: black;
  position: relative;
}

.job-completion-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

.job-content {
  display: flex;
  flex-flow: column nowrap;
  margin: 5px;
}

.job-footer {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  gap: 5px;
}

.job-completion {
  height: 15px;
  background: lightgray;
}

.job-completion-indicator {
  height: inherit;
  background: #EEC0CC;
}

.job-header {
  font-family: 'NexaBold';
  font-size: 0.85em;
  background: #30416F;
  color: white;
  padding: 2px;
  display: flex;
  flex-flow: row nowrap;
}

.job-header .small-action-link {
  color: white;
}

.job-label {
  font-family: 'NexaBold';
  font-size: 0.7em;
}

.job-data {

}

/* Control Job Status Special: File States */

.file-states {
  display: flex;
  flex-flow: column nowrap;
  gap: 3px;
}

.file-state {
  display: flex;
  flex-flow: row nowrap;
  gap: 5px;
}

.file-state-status {
  border-radius: 20px;
  width: 15px;
  height: 15px;
}

.file-state-status.failed {
  background: #d93f94;
}

.file-state-status.posted {
  background: #fdbb3e;
}

.file-state-status.created {
  background: #3efd80;
}

.file-state-status.outstanding {
  background: lightgray;
}

.file-state-name {
  font-family: 'Courier'
}


.job-collab-status {
  align-self: flex-end;
  border-top-left-radius: 6px;
  display: flex;
  flex-flow: column nowrap;
  padding: 3px;
  margin-top: 3px;
}

.job-collab-status.open {
  background: #fdbb3e;
}

.job-collab-status.claimed {
  background: #009fff;
}

.job-collab-status.app-locked {
  background: #3efd80;
}

/*
 * Production Pipeline
 */

.pipeline-list {
  display: flex;
  flex-flow: column nowrap;
  gap: 15px;
}

.production-pipeline {
  display: flex;
  flex-flow: column nowrap;
}

.production-pipeline.filtered-out {
  display: none;
}

.production-header {
  background: #30416F;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

.production-content {
  display: flex;
  flex-flow: column nowrap;
  gap: 20px;
  background: #A2ABC3;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.production-content-wrapper {
  display: flex;
  flex-flow: column nowrap;
  gap: 15px;
  padding: 10px;
}

.production-title {
  font-family: 'NexaBold';
  font-size: 20px;
  color: white;
}

.production-subtitle {
  font-family: 'NexaBold';
  font-size: 18px;
}

.production-subsubtitle {
  font-family: 'NexaBold';
}

.production-goals {
  display: flex;
  flex-flow: column nowrap;
  gap: 15px;
}

.production-goal {
  display: flex;
  flex-flow: row nowrap;
  gap: 15px;
}

.goal-description {
  display: flex;
  flex-flow: column nowrap;
  flex-grow: 1;
  flex-basis: 0;
}

.goal-header {
  display: flex;
  flex-flow: row nowrap;
  gap: 5px;
}

.goal-status {
  flex-grow: 1;
  flex-basis: 0;
}

.goal-light {
  height: 30px;
  width: 30px;
  border-radius: 15px;
}

.goal-light.red {
  background: #d93f94;
  align-self: center;
}
.goal-light.orange {
  background: #fdbb3e;
}
.goal-light.green {
  background: #3efd80;
}

.buffer-progress {
  display: flex;
  flex-flow: column nowrap;
  gap: 5px;
}

.buffer-bar {
  background: #9b9b9b;
  position: relative;
}

.buffer-text {
  position: absolute;
  top: 50%;
  z-index: 5;
  left: 50%;
  transform: translate(-50%, -50%);
}

.buffer-databar {
  background: #fdbb3e;
  height: 25px;
}

.buffer-actions {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  gap: 10px;
}

.buffer-actions a {
  font-family: 'NexaBold';
  color: #202020;
  text-decoration: none;
  cursor: pointer;
}

.schedule-timeline {
  display: flex;
  flex-flow: row nowrap;
  gap: 5px;
  justify-content: space-between;
}

.schedule-items {
  display: flex;
  flex-flow: row nowrap;
  gap 10px;
}

.schedule-action {
  display: flex;
  flex-flow: column nowrap;
  gap: 5px;
  align-items: center;
  text-align: center;
  padding-top: 0.9em;
}

.schedule-textwrap .schedule-action {
  padding-top: 0em;
}

.schedule-indicator {
  height: 30px;
  width: 30px;
  border-radius: 15px;
  background: blue;
  border: 2px solid black;
}
.schedule-indicator.green {
  background: #3efd80;
}
.schedule-indicator.orange {
  background: #fdbb3e;
}
.schedule-indicator.red {
  background: #d93f94;
}
.schedule-indicator.pending {
  background: #009fff;
}

.schedule-label {
  font-size: 0.9em;
  font-family: 'NexaBold';
  text-align: center;
}

.schedule-time {
  font-size: 12px;
}

/*
 * WIKI
 */

.wiki-page {
  background: white;
  border-radius: 5px;
  padding: 25px;
}

.wiki-page p {
  font-size: 1rem;
  margin-left: 25px;
}

.wiki-page strong {
  font-family: 'NexaBold';
}

.wiki-page h1, h2, h3, h4, h5, h6 {
  font-family: 'NexaBold';
}

.wiki-page li {
  font-size: 1rem;
}

.wiki-page img {
  max-width: 100%;
}

.wiki-img-wrap {
  margin-top: 30px;
  margin-bottom: 30px;
}

.wiki-img-comment {
  text-align: center;
  font-family: 'NexaBold';
}

.wiki-page code {
  color: #d83e93;
}

.wiki-page .codehilite {
  background: #424242;
  padding: 5px;
  max-height: 300px;
  overflow: auto;
  margin: 25px;
  border-radius: 5px;
}

/* EDITOR */

.json-editor {
  background: #202020;
  overflow: auto;
}

/* WEBFONTS */

@font-face {
    font-family: 'NexaLight';
    src:url('NexaLight.ttf.woff') format('woff'),
        url('NexaLight.ttf.svg#NexaLight') format('svg'),
        url('NexaLight.ttf.eot'),
        url('NexaLight.ttf.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'NexaBold';
    src:url('NexaBold.ttf.woff') format('woff'),
        url('NexaBold.ttf.svg#NexaBold') format('svg'),
        url('NexaBold.ttf.eot'),
        url('NexaBold.ttf.eot?#iefix') format('embedded-opentype');
    font-weight: normal;
    font-style: normal;
}

/* MOBILE SPECIFIC */

.confirmatron-wrapper {
  display: flex;
  justify-content: center;
}

.confirmatron-main {
  width: 65%;
}

@media screen and (max-width:767px) {
    .confirmatron-main {
        width: 100%;
    }

    .confirmatron-navbar.active {
        width: 200px;
    }

    .confirmatron-pageheader {
        height: 40px;
    }

    .confirmatron-wrapper {
        margin-top: 50px;
    }

    .flex-mobile-break {
        flex-basis: 100%;
    }

    .pre-wrapper {
      font-size: 12px;
    }

    .job-container {
      width: 100vw;
    }

    .production-goal {
      flex-flow: row wrap;
    }
}
