.limitSelection {
  float: right;
  position: relative;
  margin-left: 5px;
  min-height: 20px;
  z-index: 1;
}

.limitSelection.hidden {
  display: none;
}

.limitSelection > div {
  border: 1px solid #DFDFDF;
  border-radius: 4px;
  background: url(plugins/Zeitgeist/images/sort_subtable_desc_light.png) no-repeat right 2px;
  padding: 0 14px 0 4px;
  display: block;
  width: 24px;
  height: 20px;
  cursor: pointer;
}

.limitSelection.disabled > div {
  opacity: 0.5;
  cursor: not-allowed;
  filter: Alpha(opacity=50);
}

.limitSelection.visible > div {
  border-radius: 0 0 4px 4px;
  background-image: url(plugins/Zeitgeist/images/sort_subtable_asc_light.png)
}

.limitSelection > ul {
  margin-top: 1px;
  overflow: visible;
  background-color: #fff;
}

.limitSelection > ul > li {
  cursor: pointer;
  width: 28px;
  padding: 0 10px 0 4px;
  font-size: 1.1em;
  font-weight: bold;
  height: 20px;
  margin-top: -40px;
  background-color: #fff;
  border-left: 1px solid #DFDFDF;
  border-right: 1px solid #DFDFDF;
  vertical-align: middle;
  text-align: right;
}

.limitSelection > ul > li.last {
  border-top: 1px solid #DFDFDF;
  border-radius: 4px 4px 0 0;
}

.limitSelection > ul > li:hover {
  background-color: #EBEAE6;
}

.limitSelection span {
  padding-top: 3px;
  display: inline-block;
}