.ma-list [hidden] {
  display: none;
}

.ma-list-fiche {
  margin: 0.75rem 0 1rem;
}

.ma-list-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem 1rem;
}

.ma-list-fiche .ma-list-actions {
  align-items: center;
}

.ma-list-page {
  max-width: 64rem;
}

.ma-list label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  max-width: 100%;
  text-align: start;
}

.ma-list button,
.ma-list select,
.ma-list input {
  min-height: 44px;
  max-width: 100%;
}

.ma-list :is(button, select, input, a):focus-visible {
  outline: 2px solid var(--rouge-h, #c93a39);
  outline-offset: 3px;
}

.ma-list-notice {
  margin: 0.5rem 0;
  text-align: start;
}

.ma-list-notice:empty {
  margin: 0;
}

.ma-list-entries {
  display: grid;
  gap: 0.75rem;
  margin-block-start: 1rem;
  margin-inline: 0;
  padding: 0;
  list-style: none;
}

.ma-list-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem;
  border: 1px solid var(--bordure, #e2e0d8);
  border-radius: 0.5rem;
  background: var(--blanc, #fff);
}

.ma-list-entry > :first-child {
  overflow-wrap: anywhere;
}

.ma-list-file-actions {
  margin-top: 1.5rem;
}

.ma-list button[data-list-clear] {
  border: 1px solid currentColor;
  background: transparent;
  color: var(--rouge-h, #c93a39);
}

@media (max-width: 600px) {
  .ma-list-entry {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ma-list-entry > :first-child {
    grid-column: 1 / -1;
  }
  .ma-list-entry > select {
    grid-column: 1;
    grid-row: 3;
  }
  .ma-list-entry > button {
    grid-column: 2;
    grid-row: 3;
  }
}
