/* The Discord section of the Outbound tab: what Circular posts to a channel by itself.
   The table and its modal follow the Scanners page. */

.discord-notifications--section {
  margin-top: 2.5rem;
}

.discord-notifications--title {
  margin-bottom: 0.5rem;
  color: var(--text-heading);
  font-size: var(--rem-16);
  font-variation-settings: 'wght' var(--text-medium);
}

/* The shared table cuts a cell to one line. These two are what the row is about, so
   they wrap instead. */
.discord-notifications--label,
.discord-notifications--description {
  display: block;
  white-space: normal;
  text-wrap: wrap;
}

.discord-notifications--description {
  color: var(--neutral-600);
  font-size: var(--rem-13);
}

/* The last failed send, on one line under the badge. The modal shows it whole. */
.discord-notifications--problem {
  display: block;
  margin-top: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--neutral-600);
  font-size: var(--rem-13);
}

.discord-notifications--row-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.discord-notifications--form {
  display: flex;
  flex-direction: column;
  gap: var(--rem-16);
}

.discord-notifications--hint {
  color: var(--neutral-600);
  font-size: var(--rem-13);
}

/* Under the field it explains, with a little air between them. */
.input-groups--input-container > .discord-notifications--hint {
  margin-top: 0.375rem;
}

.discord-notifications--error {
  color: var(--error-600, #dc2626);
  font-size: var(--rem-13);
}

.discord-notifications--enabled {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--rem-8);
}

/* On a phone four columns leave the status chip no room. Last sent is the one the row
   can do without, so it goes, and the cells it was a column of go with it. */
@media (max-width: 40rem) {
  .discord-notifications--last-sent {
    display: none;
  }
}
