#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#page-wrapper {
  display: flex;
  flex-direction: row;
  flex-grow: 1;
}

#page-content {
  background: $white;
  flex-grow: 1;
  padding: 20px 40px;
}
.sidebar {
  background-color: $gray-lightest;
  width: 250px;
  font-size: 14px;
  flex-grow: 0;
  flex-shrink: 0;
  border-right: 1px solid $gray-lighter;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  z-index: 1;

  li span.has-children {
    display: flex;
    flex-direction: row;
    a {
      flex-grow: 1;
    }
    .arrow {
      flex-grow: 0;
      width: 50px;
      border: none;
      display: flex;
      justify-content: center;
      i {padding-top: 4px;}
    }

  }
  .nav-link, li.nav-fold {
    border-top: 1px solid $gray-light;
  }
  .nav-link {
    padding: 10px 15px;
    &:last-child {
      border-bottom: 1px solid $gray-light;
    }
  }

  .nav-link {
    .fa {
      margin-right: 5px;
    }
    &.nav-link-second-level span {
      padding-left: 1.6em;
    }
  }

  .nav-link.nav-link-second-level, .nav-link.nav-link-inner, .nav-link.nav-link-inner.active {
    border: none;
  }
  .nav-link.active, .nav-link:hover, .nav-link.nav-link-second-level.active, .nav-link.nav-link-second-level:hover {
    background-color: $gray-lighter;
    color: $brand-primary;
  }
}
.navbar {
  color: $brand-primary;
  background-color: $offwhite;
  border-bottom: 4px $brand-primary solid;
  padding: 0.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  .twitter-typeahead {
      width: inherit;
      margin-right: 8px;
      input.form-control[readonly] {
          background-color: $white !important;
      }
  }
}
.navbar-brand img {
  height: 30px;
  width: auto;
  margin: auto;
}
.speaker-info {
  display: flex;
  flex-direction: row;
  .speaker-image img {
      max-height: 160px;
      float: right;
  }
}
.orga-headline {
  font-weight: bold;
}

.nav-tabs {
  border-bottom: $gray-light solid 1px;
  margin-bottom: 16px;

  .nav-link {
    border: none;
  }
  .nav-link:hover, .nav-link:focus {
    border-bottom: $gray-light solid 2px;
  }
  .nav-link:hover, .nav-link:focus .nav-link.active {
    border-bottom: $brand-primary 2px solid;
    background-color: $white;
  }
  .nav-link.active {
    border-bottom: $brand-primary 4px solid;
  }

}

legend {
  border-bottom: 1px solid $gray-lighter;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 2rem;
}

footer {
  margin-top: 20px;
  text-align: center;
  font-size: 11px;
}
.feedback-card {
  margin-bottom: 8px;
  .card-body {
    padding: 16px 16px 0px 16px;
  }
}
.question-option-row {
  margin-left: -4px;
  display: flex;
  padding-bottom: 8px;
}
.question-option-input.disabled input {
  background-color: $gray-lighter;
  opacity: 1;
  cursor: not-allowed;
}
.search-form {
  display: flex;
  margin-bottom: 1rem;
  align-content: center;
  .form-group {
    min-width: 300px;
    display: flex;
    margin: 8px;
    label {
      display: none;
    }
  }
  .btn {
    align-self: center;
  }

}
.resource-option-row, .resource-option-input {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-left: 8px;

  .resource-option-delete {
    float: right;
    padding-right: 8px;
    flex-grow: 0;
  }
  .form-group {
    display: flex;
    padding-right: 16px;

    .bootstrap-multi-input {
      flex-grow: 1;
    }

    input {
      width: 280px;
      height: 2rem;
    }
  }
}
.avatar-form {
  display: flex;
  align-items: flex-start;
  margin-left: 20px;
  padding-bottom: 8px;

  img.avatar {
    max-width: 100%;
    height: auto;
  }
  .avatar-form-fields {
    display: flex;
    flex-direction: column;
    .user-avatar-display .bootstrap4-multi-input {
      margin: 0;
    }
    .form-group {
      display: flex;
    flex-direction: column;
    }
  }
}
.event-logo-field {
  img.event-logo-display {
    margin-left: 12px;
    margin-right: 16px;
    padding: 2px;
    border:1px solid $gray-light;
    max-width: 180px;
  }
}
.bootstrap4-multi-input {
  margin: auto;
}

.override {
  padding-left: 4px;
}
.history-sidebar {
  max-height: 90vh;
  overflow-y: scroll;
  border-bottom: 1px solid rgba(0,0,0,0.125);
}
.dashboard-history .history-sidebar {
  overflow-y: none;
  max-height: none;
  border: none;
  .list-group {
    .logentry {
      border: none;
      display: flex;
      padding: 0;
      margin: 0;
      padding-right: 8px;
      p {
        br {display: none;}
      }
      .meta {
        display: flex;
        flex-direction: row;
        align-content: baseline;
        padding-right: 8px;
        width: 350px;
        .time {
          width: 200px;
        }
        .person {
          width: 150px;
        }
      }
    }
  }
}
@include media-breakpoint-down(md) {
  .container-fluid {
    padding: 0;
    width: 100%;
  }
  .flex-content {
    max-width: 100%;
  }
  .navbar {
    padding: 0.1rem 1rem;

    ul {
      flex-direction: row;
      .fa {
        padding-left: 12px;
        padding-right: 12px;
      }
    }
  }
  nav.sidebar {
    position: absolute;
    display: none;
  }
  nav.sidebar-uncollapsed {
    display: inherit;
    z-index: 6;  /* display above timeline in dashboard */
  }
  .history-sidebar {
    display: none;
  }
  #page-content {
    padding: 4px 8px;
    flex-grow: 0;
    width: 100%;
  }
  ul.nav-pills {
    li.nav-item {
      padding: 0;
      margin: 0;
      a {
        padding: 4px 8px;
      }
    }
  }
  .col-form-label {
    text-align: left;
    display: flex;
    span {
      padding-left: 4px;
    }
  }
}

td.reviewer {
  display: flex;
  flex-direction: row;
}
td.review-buttons {
  display: flex;
  flex-direction: row;
}

form #id_settings-display_header_pattern, form #id_display-display_header_pattern {
  display: flex;
  flex-direction: row;
  label {
    padding-right: 16px;
    &:before {
      left: 4px;
      top: 8px;
    }
    &:after {
      left: 8px;
      top: 8px;
    }
  }
  .mini-header {
    width: 100px;
    height: 100px;
    background-color: $brand-primary;
    margin: 0 0 0 -36px;
  }
}
.form-plugins {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  align-content: stretch;
  .plugin-card {
    margin: 16px;
    width: 40%;
    flex-grow: 1;
    flex-shrink: 0;
    .card-header {
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      .btn {
        max-width: 150px;
      }
    }
  }
}
legend .submission-state-dropdown {
  padding: 8px;
  button, a {font-size: 16px;}
}
.submission-state-dropdown {
  display: inline-block;

  button.dropdown-toggle, a, a:hover {
    background-color: $white;
    font-weight: 700;
    border: 3px solid;
  }
}
.submission-state-deleted, .submission-state-withdrawn, .submission-state-canceled,
.submission-state-deleted:hover, .submission-state-withdrawn:hover, .submission-state-canceled:hover {
    color: $gray;
    border-color: $gray;
}
.submission-state-submitted, .submission-state-submitted:hover {
    color: $brand-info;
    border-color: $brand-info;
}
.submission-state-accepted, .submission-state-accepted:hover {
    color: lighten($brand-success, 10%);
    border-color: lighten($brand-success, 10%);
}
.submission-state-confirmed, .submission-state-confirmed:hover {
    color: lighten($brand-primary, 10%);
    border-color: lighten($brand-primary, 10%);
}
.submission-state-rejected, .submission-state-rejected:hover {
    color: $danger;
    border-color: $danger;
}
