/* AC Milestones Plugin */

/* ── Section heading ── */
#ac-milestones-section .ac-milestones-heading,
#ac-milestones-form-section .ac-milestones-heading {
  font-size: 1em;
  font-weight: bold;
  margin: 1em 0 0.4em 0;
  padding: 0;
  border: none;
  color: #505050;
}

/* ── Display list ── */
.ac-milestone-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ac-milestone-item {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 3px 0;
  line-height: 1.4;
}

.ac-milestone-check {
  flex: 0 0 auto;
}

.ac-milestone-subject {
  flex: 1 1 auto;
}

.ac-milestone-subject-done {
  text-decoration: line-through;
  color: #aaa;
}

.ac-milestone-due {
  flex: 0 0 auto;
  font-size: 0.9em;
  color: #666;
  white-space: nowrap;
  padding: 0 0.3em;
}

.ac-milestone-overdue {
  color: #c00;
  font-weight: bold;
}

.ac-milestone-link-action {
  flex: 0 0 auto;
  font-size: 0.85em;
}

.ac-milestone-linked-issue {
  color: #169;
  font-weight: bold;
}

.ac-milestone-create-link {
  color: #888;
  cursor: pointer;
}

.ac-milestone-create-link:hover {
  color: #169;
}

/* ── Form list ── */
.ac-milestone-form-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 800px;
}

.ac-milestone-fields {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 3px 0;
}

.ac-milestone-drag-handle {
  cursor: ns-resize;
  color: #ccc;
  font-size: 1.1em;
  flex: 0 0 auto;
  padding: 0 2px;
  user-select: none;
}

.ac-milestone-drag-handle:hover {
  color: #666;
}

.ac-milestone-subject-field {
  flex: 1 1 auto;
  min-width: 0;
}

.ac-milestone-date-field {
  flex: 0 0 auto;
  width: 8em;
}

.ac-milestone-remove-btn {
  flex: 0 0 auto;
}

.ac-milestone-add-row {
  margin: 0.4em 0 0 0;
}

/* sortable placeholder */
.ac-milestone-form-list .ui-sortable-placeholder {
  visibility: visible !important;
  border: 1px dashed #aaa;
  height: 28px;
}
