/* Contract note attachments — modal + timeline lists */

.note-attachments-modal .note-att-dialog {
  max-width: 560px;
  width: calc(100% - 2rem);
}

.note-att-dropzone {
  border: 1px dashed var(--border-subtle, rgba(255, 255, 255, 0.18));
  border-radius: var(--radius-md, 10px);
  padding: 1rem 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.note-att-dropzone--over {
  border-color: var(--accent, #5b9cff);
  background: rgba(91, 156, 255, 0.06);
}

.note-att-dropzone p {
  margin: 0 0 0.75rem;
  color: var(--text-muted, #9aa3b2);
  font-size: 0.9rem;
}

.note-att-file-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.note-att-file {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.note-att-file--error {
  border-color: rgba(239, 68, 68, 0.45);
}

.note-att-file > i {
  margin-top: 0.15rem;
  opacity: 0.85;
}

.note-att-file__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.note-att-file__name {
  font-size: 0.88rem;
  word-break: break-word;
}

.note-att-file__size,
.note-att-item__size {
  font-size: 0.78rem;
  color: var(--text-muted, #9aa3b2);
}

.note-att-file__err {
  font-size: 0.78rem;
  color: #f87171;
}

.note-att-block {
  margin-top: 0.75rem;
}

.note-att-block__label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted, #9aa3b2);
}

.note-att-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.note-att-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm, 8px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.07));
}

.note-att-item--compact {
  padding: 0.35rem 0.45rem;
}

.note-att-item__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.note-att-item__name {
  font-size: 0.84rem;
  word-break: break-word;
}

.note-att-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.note-att-action {
  font-size: 0.78rem;
  padding: 0.2rem 0.45rem;
}

.timeline-item__no-text {
  color: var(--text-muted, #9aa3b2);
  font-style: italic;
}

.agenda-timeline-event__attachments {
  margin-top: 0.55rem;
}

@media (max-width: 640px) {
  .note-att-item {
    flex-wrap: wrap;
  }

  .note-att-item__actions {
    width: 100%;
    justify-content: flex-end;
  }
}
