/* /sales/emails (Sales::EmailsController#index) — the sequences, emails and
 * variants table, and what every /sales/emails page shares: the page width,
 * section heads, tables, the approval and draft flags and the warning notice. */

.sales-emails {
  max-width: 72rem;
  margin-inline: auto;
  color: var(--text-primary);
}

.sales-emails-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--spacing-12);
  flex-wrap: wrap;
}

.sales-emails-table-wrap { overflow-x: auto; }

.sales-emails-table {
  width: 100%;
  border-collapse: collapse;

  & th, & td {
    padding: var(--spacing-4) var(--spacing-8);
    border-top: var(--stroke-weight-1) solid var(--border-subtle);
    text-align: left;
    vertical-align: top;
  }

  & th { color: var(--text-tertiary); font-weight: var(--font-weight-400); }
}

.sales-emails-flag {
  display: inline-block;
  margin-right: var(--spacing-4);
  font-weight: var(--font-weight-600);
}

.sales-emails-flag--ok { color: var(--text-protective); }
.sales-emails-flag--warn { color: var(--text-warning); }

.sales-emails-notice {
  margin: 0;
  padding: var(--spacing-8) var(--spacing-12);
  border-radius: var(--corner-radius-sm);
}

.sales-emails-notice--warn {
  background: var(--background-warning);
  border: var(--stroke-weight-1) solid var(--border-warning);
}
