// Phase 129-01: notatki autorskie operatora w szczegolach zamowienia + badge na liscie.

.order-notes-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  vertical-align: middle;
  transition: background 0.15s ease;

  &:hover {
    background: #e0e7ff;
    text-decoration: none;
  }
}

.order-notes-subtitle {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-muted, #64748b);
}

.order-user-notes {
  display: flex;
  flex-direction: column;
  gap: 8px;

  .order-event--user {
    border-left: 3px solid #6366f1;
    padding-left: 8px;
  }

  .order-event__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  .order-event__meta {
    font-size: 11px;
    color: var(--c-muted, #64748b);
  }

  .order-event__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}

.order-imported-notes {
  .order-event--imported {
    opacity: 0.75;
    font-size: 12px;
  }
}

.btn-link {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 11px;
  color: var(--c-primary, #2563eb);
  cursor: pointer;
  text-decoration: underline;

  &:hover {
    text-decoration: none;
  }

  &--danger {
    color: #dc2626;
  }
}

.order-note-form,
.order-note-edit-form {
  textarea {
    width: 100%;
    min-height: 60px;
    resize: vertical;
  }

  .order-note-form__actions,
  .order-note-edit-form__actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
  }
}

.order-note-edit-form {
  margin-top: 6px;

  .order-note-edit-form__actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
  }
}
