.attach-cell {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  overflow: hidden;
  max-height: 32px;
}

.attach-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  text-decoration: none;
  flex-shrink: 0;
}

.attach-img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: cover;
}

.attach-pdf {
  flex-direction: column;
  background: rgba(255,90,60,0.18);
  padding: 1px 4px;
  height: 22px;
  max-width: 60px;
  justify-content: center;
}

.attach-pdf-icon {
  font-size: 7px;
  font-weight: 700;
  color: #ff5a3c;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.attach-pdf-name {
  font-size: 6px;
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 56px;
  display: block;
  line-height: 1.2;
}

.attach-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  border: none;
  color: #fff;
  background: #3d7fd4;
  flex-shrink: 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.attach-upload-btn:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
}

.attach-upload-btn.is-uploading {
  opacity: 1;
  cursor: wait;
  animation: attach-pulse 0.7s ease-in-out infinite alternate;
}

@keyframes attach-pulse {
  from { background: #3d7fd4; }
  to   { background: #1a4fa0; }
}

.attach-upload-btn input[type="file"] {
  display: none;
}

.attach-thumb-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.attach-del {
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 0 3px 0 3px;
  background: rgba(200, 30, 20, 0.88);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 9px;
  line-height: 13px;
  text-align: center;
  padding: 0;
  z-index: 2;
  transition: opacity 0.08s;
}

.attach-thumb-wrap:hover .attach-del {
  opacity: 1;
}
