/**
 * Badge used to paint every ticket state with its configured color.
 *
 * The background and text colors are printed inline by ticket.module, because
 * each state stores its own color; this file only keeps the badge readable
 * when the state is rendered as a link or inside compact table cells.
 */
.ticket-state-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.ticket-state-badge a,
.ticket-state-badge a:hover,
.ticket-state-badge a:focus,
.ticket-state-badge a:visited {
  color: inherit;
  text-decoration: none;
}

.ticket-state-badge a:hover,
.ticket-state-badge a:focus {
  text-decoration: underline;
}

/* Los estados con color propio no necesitan el fondo de la vista. */
.ticket-styled-view td .ticket-state-badge {
  font-size: 13px;
}
