/* Production → Exports (docs/05-views.md, "Exports"; mockup "exporte") */

/* "New export": run, export template and target side by side, one below the other below 900px. */
.exports__choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

@container app (max-width: 899px) {
  .exports__choices {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

.exports__name {
  font-weight: 600;
}

.exports__name a {
  color: inherit;
  text-decoration: none;
}

.exports__name a:hover {
  text-decoration: underline;
}

.exports__sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

/* A failed transfer: the chip with "Retry transfer" next to it. */
.exports__transfer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

/* One file name per line; a long name breaks where the table would otherwise scroll. */
.exports__files code {
  display: block;
  min-width: 180px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* A ready export's file is a link that downloads it: the download icon, then the name. */
.exports__download {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  padding: 2px 0;
  color: inherit;
  text-decoration: none;
}

.exports__download .ms {
  flex: none;
  width: 18px;
  color: var(--muted);
  font-size: 18px;
}

/* Room for the usual name on one line, while the link stays about as wide as a plain name. */
.exports__download code {
  min-width: 166px;
}

.exports__download:hover code,
.exports__download:focus-visible code {
  text-decoration: underline;
}

/* A stopped export has no files: in their place the reason with the articles concerned, then "Edit
   template". As wide as a file name, so the table keeps its width. */
.exports__reason {
  min-width: 180px;
}

.exports__reason .small {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}

/* The articles of the assortment without a text: one framed box, the count and the explanation. */
.exports__missing {
  min-width: 180px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.exports__missing .small {
  margin: 0;
  overflow-wrap: anywhere;
}

/* "Contents" of a ready export below its files (#760). */
.exports__contents {
  margin-top: 8px;
}

/* "Delete" below the state (#1381); while it waits for the build or the transfer, the line saying when it
   can be deleted, wrapped to the column. */
.exports__delete {
  margin-top: 8px;
}

.exports__delete-later {
  min-width: 140px;
  max-width: 200px;
  white-space: normal;
}

/* The preview's images ZIP: one file name with its variant per line. */
.export-contents__images {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.export-contents__images li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 2px 0;
}
