/* idf-file-attachment — Junction-Datei-Liste für Modal-Tabs (#137 / T8).
   Vorher je Modul lokal (.wz-/.zb-/.vm-unterlagen*). Lädt über page-styles
   ($useFileAttachment). Pillen kommen aus list-grid (.idf-pill-tag,
   .idf-list-action-link, .idf-list-delete-btn). */

.idf-fa {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.idf-fa-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}
/* Typ-Select eigenständig gestylt, weil der Tab nicht im .idf-form-
   Container sitzt (eigener embed-Tab). */
.idf-fa-select {
  max-width: 260px;
  height: 36px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}
.idf-fa-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.idf-fa-select.is-block { max-width: none; width: 100%; margin-top: 10px; }
.idf-fa-modal-file {
  margin: 0;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idf-fa-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.idf-fa-empty {
  padding: 24px 8px;
  text-align: center;
  color: var(--soft);
  font-size: 13px;
}
/* 3 Spalten: Dateiname (flex) · Download (44px) · Delete (44px).
   Mit Typ-Feld (.has-typ) zusätzlich die Typ-Pille (220px — Platz für
   UPPERCASE .idf-pill-tag wie „TECHNISCHES DATENBLATT"). */
.idf-fa-item {
  display: grid;
  grid-template-columns: 1fr 44px 44px;
  align-items: center;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
}
.idf-fa.has-typ .idf-fa-item { grid-template-columns: 1fr 220px 44px 44px; }
.idf-fa-item:last-child { border-bottom: none; }
.idf-fa-name {
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}
.idf-fa-name i { margin-right: 6px; opacity: 0.7; }
