/* Change-history entries (admin): a Before | After pair of columns per entry,
   and the When column of the history tables. */

.audit-entry {
  border-top: 1px solid var(--border-gray);
  margin-top: 1.5rem;
  padding-top: 1rem;
}

.audit-entry-header {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.audit-entry-actor {
  font-weight: 400;
}

/* Before | After side by side; one column once the pair no longer fits. */
.audit-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.audit-column {
  background-color: var(--faint-gray);
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.75rem;
}

.audit-column-title {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.audit-line {
  padding: 0.125rem 0.25rem;
}

/* A line of the After column that differs from the Before column. */
.audit-line-changed {
  background-color: rgba(255, 221, 0, 0.35);
  box-shadow: inset 3px 0 0 #e6a700;
}

/* A line of the Before column that the After column no longer has. */
.audit-line-removed {
  background-color: rgba(202, 42, 42, 0.12);
  box-shadow: inset 3px 0 0 var(--red);
  text-decoration: line-through;
}

.audit-timeline-when {
  white-space: nowrap;
}

@media only screen and (max-width: 700px) {
  .audit-columns {
    grid-template-columns: 1fr;
  }

  .audit-timeline-when {
    white-space: normal;
  }
}
