.assessment-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;

  .label {
    border: 1px solid #4a7fb9;
    color: #4a7fb9;
    padding: .2rem .5rem;
    border-radius: .5rem;
  }

  .label.not-anonymous {
    border: 1px solid #4a7fb9;
    color: #4a7fb9;
    padding: .2rem .5rem;
    border-radius: .5rem;
  }

  h1 {
    margin: 0;
    line-height: 1;
  }
}

.assessment-grid {
  align-items: start;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .assessment-grid {
    grid-template-columns: 1fr 2fr;
  }
}

@media (max-width: 1023px) {
  .assessment-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--light-gray);
  box-shadow: var(--default-app-shadow);
  border-radius: 0.5rem;
  padding: 1rem;
}

.card.muted {
  opacity: .75;
}

.card h2 {
  margin: 0 0 1rem;
}

.assessment-details {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;

  date {
    color: var(--metatext-color);
  }
}

.assessment-detail {
  a {
    color: var(--purple);
    font-weight: 600;
  }
}

.assessors-table {
  overflow: visible;
}

.assessment-results {
  a.button {
    align-items: center;
    background: var(--darkblue);
    display: flex;
    padding: .5rem 1rem;
    font-size: 1em;
    gap: .5rem;
    justify-content: center;

    &:hover {
      background: var(--purple);
      text-decoration: none;
    }
  }
}

.actions-cell {
  position: relative;
}

.assessment-invite-assessors {
  align-items: center;
  border-radius: 0.5rem;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  padding: 1rem;
  width: 100%;
}

.pill {
  background: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  align-self: flex-start;
}

.pill.completed {
  box-shadow: 0 0 0 1px #b2d1b9;
  color: #28a745;
  background: #e6f3e6;
}

.pill.pending {
  box-shadow: 0 0 0 1px #b4b6b8;
  color: #6c757d;
  background: #f1f3f5;
}

.invite-again.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: line-through;
}

/* Label styles */

.label-display {
  cursor: pointer;
  border-radius: 0.25rem;
  display: inline-block;
  font-size: 0.75rem;
  padding: .2rem .5rem;
}

.label-display.has-label {
  background-color: var(--offwhite);
  border: 1px solid var(--darkgray);
  border-radius: .5rem;
  padding: .2rem .5rem;
}


@keyframes flashSuccess {
  0%   { background-color: #d1f2d1; }
  100% { background-color: transparent; }
}
.flash-success { animation: flashSuccess 2s ease-out forwards; }
