/* Production → Imports (docs/05-views.md; demo area imports) */

/* The whole row opens the import's details: the name's link covers the row. */
.imports tbody tr {
  position: relative;
}

.imports tbody td {
  transition: background-color var(--duration-fast) var(--ease);
}

.imports tbody tr:hover td,
.imports tr.selected td {
  background: var(--surface);
}

.imports__name a {
  color: inherit;
  font-weight: 600;
}

.imports__name a::after {
  position: absolute;
  inset: 0;
  content: "";
}

/* "Retry" stays clickable above the row's link. */
.imports__actions form {
  position: relative;
  z-index: 1;
}

/* The weekdays of a new scheduled import. */
.imports__weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.imports__weekdays legend {
  margin-bottom: 8px;
  font-weight: 600;
}

.imports__weekdays label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.imports__weekdays input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

/* The form below the list of scheduled imports. */
.imports__schedule-form {
  margin-top: 20px;
}

/* An FTP server's listing to choose the one file to import from (#905). */
.imports__file-choice {
  margin: 0 0 16px;
}

.imports__file-choice > .btn {
  margin: 8px 0;
}

.ftp-listing {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}

.ftp-listing legend {
  margin-bottom: 8px;
  font-weight: 600;
}

.ftp-listing label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.ftp-listing input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

/* The line under the name on "New import": the time in the name is UTC. */
.imports__name-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}
