/* Generic file-attachment UI (ir.attachment) — usable by any bespoke detail
   page, not just CRM's Lead Detail. See static/src/js/attachments.js. */

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary-color);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
}

.btn-link:hover {
  opacity: 0.8;
}

.attachment-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.attachment-dropzone i {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.attachment-dropzone p {
  margin: 0;
  font-size: 0.9rem;
}

.attachment-dropzone.drag-over {
  border-color: var(--primary-color);
  background-color: rgba(67, 97, 238, 0.06);
}

.attachment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background-color: var(--background-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.attachment-item > i {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.attachment-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.attachment-name {
  text-align: left;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
}
