/* Related Tickets widget on the Create Ticket forms.
   Scoped to #related-tickets-widget so it can't leak into other tables. */

#related-tickets-widget {
  margin: 12px 0 20px;
  font-size: 0.9em;
}

#related-tickets-widget:empty { display: none; }

#related-tickets-widget .rt-heading {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
}

#related-tickets-widget .rt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#related-tickets-widget .rt-card {
  display: block;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s, border-color 0.1s;
}
#related-tickets-widget .rt-card:hover {
  background: #f5f7fa;
  border-color: #adb5bd;
  text-decoration: none;
}

#related-tickets-widget .rt-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.85em;
}

#related-tickets-widget .rt-chip {
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.8em;
  border: 1px solid rgba(0,0,0,0.08);
}
#related-tickets-widget .rt-chip-green { background:#e6f4ea; color:#1e5631; border-color:#a7d7ab; }
#related-tickets-widget .rt-chip-amber { background:#fff4e5; color:#7a4a00; border-color:#ffcf80; }
#related-tickets-widget .rt-chip-muted { background:#eef0f2; color:#57606a; border-color:#d0d7de; }

#related-tickets-widget .rt-queue {
  color: #002D72;
  font-weight: 500;
}
#related-tickets-widget .rt-id {
  color: #6c757d;
  margin-left: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8em;
}

#related-tickets-widget .rt-title {
  color: #002D72;
  font-weight: 500;
  line-height: 1.35;
}

#related-tickets-widget .rt-meta-sub {
  color: #6c757d;
  font-size: 0.85em;
  margin-top: 2px;
}
