#gtfs-diff-steps {
  margin: -3em auto 2em;
  li.active {
    font-weight: bold;
  }
}

.actions {
  margin-top: var(--space-m);
  display: flex;
  gap: var(--space-s);
  justify-content: end;
  flex-direction: row-reverse;

  button.button {
    margin: 0;
  }
}

#gtfs-diff-input {
  justify-content: left;
  align-items: stretch;
  #upload-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 60px 0 0;
    max-width: unset;
    width: 100%;
    .drop-zone {
      padding: 0;
      display: flex;
      flex-direction: column;
      align-items: stretch;
      opacity: 0.7;
      &:hover {
        opacity: unset;
      }
      label {
        display: flex;
        align-content: center;
        justify-content: center;
        padding-block: 75px;
        font-size: 20px;
        gap: 30px;

        &:hover {
          cursor: pointer;
        }
        i.fa-upload {
          align-self: center;
          font-size: 30px;
        }
        span {
          max-width: 400px;

        }
      }
      input[type="file"] {
        display: none;
      }
    }
    button {
      max-width: 300px;
    }
    #uploaded-files {
      margin-top: 30px;
      display: grid;
      grid-template-columns: 1fr max-content 1fr;
      gap: 20px;
      align-items: center;

      article.upload-entry.panel + * {
        margin-top: 0;
      }
      article.upload-entry {
        display: grid;
        height: 100%;
        min-height: 150px;
        grid-template-columns: 1fr max-content;
        grid-template-rows: repeat(3, max-content);
        grid-template-areas:
          "title title"
          "entry progress";
        row-gap: 10px;

        h4 {
          grid-area: title;
          margin-bottom: 0;
        }

        .entry-name {
          grid-area: entry;
          text-wrap: nowrap;
          display: inline-block;
          overflow: hidden;
          text-overflow: ellipsis;

          i.fa {
            margin-right: 0.5em;
          }
          .fa-square-check {
            color: var(--green);
          }
          .fa-square-xmark {
            color: var(--red);
          }
        }
        .progress-bar {
          grid-area: progress;
          progress {
            width: 100px;
            margin-inline: 0.5em;
            accent-color: var(--blue);
          }
        }
        .upload-errors {
          grid-area: errors;
        }
      }
      article.upload-entry.upload-entry-errors {
        grid-template-areas:
          "title title"
          "entry progress"
          "errors errors";
        border-color: var(--red);
      }
      article.upload-entry.upload-entry-inactive {
        opacity: 0.5;
        grid-template-areas:
          "title title"
          "placeholder placeholder";
        .placeholder {
          grid-area: placeholder;
        }
      }
    }
  }
}

#gtfs-diff-results {
  min-height: 90vh;
  .green {
    color: green;
  }
  .red {
    color: red;
  }
  .orange {
    color: orange;
  }
  .summary {
    display: flex;
    justify-content: space-around;
    ul {
      padding-left: 12px;
    }
  }
  .dashboard {
    min-height: 50vh;
    max-height: 75vh;
    .main {
      overflow: scroll;
    }
  }

  .symbol {
    margin-inline: 6px;
  }

  div.scrollable-table {
    display: inline-block;
    max-height: 20em;
    overflow-y: auto;
    width: 100%;

    thead th {
      position: sticky;
      top: -1px;
    }
    tfoot td {
      position: sticky;
      bottom: -1px;
    }
  }

  .color-picker {
    display: grid;
    grid-template-columns: min-content min-content;
    gap: 6px;
    align-items: center;
  }
}

@media (max-width: 749px) {
  #gtfs-diff-input #upload-form #uploaded-files {
    grid-template-columns: 1fr;
    justify-items: center;
    article.upload-entry {
      width: 100%;
    }
    i.fa-arrow-right-arrow-left {
      transform: rotate(90deg);
    }
  }
}
