/**
 * required structural css
 */
.spinbox {
  overflow: hidden;
  position: relative;

  &-rows {
    position: absolute;
    width: 100%;
  }

  &-row {
    position: absolute;
    left: 0;
    right: 0;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }

  &-selection-window {
    position: absolute;
    top: 50%;
    width: 100%;
  }
}

/**
 * customizable presentational css
 */
@row-height: 28px;

.spinbox {
  width: 150px;
  border: 1px solid #ddd;

  &:focus {
    border-color: #bbb;
    outline: none;
  }

  &-rows {
    z-index: 2;
  }

  &-row {
    background: transparent;
    padding: 4px 6px;
    height: @row-height;
    color: #999;

    &.selected {
      font-weight: bold;
      color: #555;
    }
  }

  &-selection-window {
    height: @row-height;
    z-index: 1;
    background: #f7f7f7;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
  }
}