/* Connection → Export templates (docs/05-views.md) */

/* The template selector: one pill per template, the selected one filled. */
.export-template-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.export-template-selector a {
  padding: 5px 12px;
  border: var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.export-template-selector a[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.export-template-selector a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* The selector's pager (#1149), between the pills and the editor. */
.export-template-selector + .pager {
  margin: 0 0 14px;
}

.export-template__fact {
  margin: 0 0 16px;
}

.export-template__help {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.export-template__columns {
  margin: 24px 0 8px;
  font-size: 15px;
}

/* The columns table: a header field and a source select in each row, the moves at the end. */
.export-template__table td input[type="text"],
.export-template__table td select {
  width: 100%;
  padding: 5px 8px;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
}

.export-template__table td {
  vertical-align: top;
}

.export-template__table td [aria-invalid="true"] {
  border-color: var(--red);
}

.export-template__moves {
  white-space: nowrap;
  text-align: right;
}

.export-template__moves .btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.export-template__add {
  margin: 12px 0 20px;
}

.export-template__invalid td {
  background: var(--red-tint);
}
