/* ══ FILE TAB ══ */
/* Componente <file-tab> — tab con nome file, icona PDF e bottone chiudi */
/* Pattern "browser tab": icona tipo + nome + X di chiusura */
/* Usato da: Attach, Delete, Split, Reorder, Rotate */

.file-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 10px;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  background: white;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-900);
  white-space: nowrap;
  max-width: 280px;
}

.file-tab-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bottone X di chiusura — area cliccabile piccola, hover visibile */
.file-tab-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  color: var(--grey-500);
  padding: 0;
  flex-shrink: 0;
  transition: all 0.15s;
}

.file-tab-close:hover {
  background: var(--grey-200);
  color: var(--grey-700);
}