
.btnGroup {
  display: inline-block;
  position: relative;
  vertical-align: top;
}

.btnGroup > .btn {
  position: relative;
  float: left;
  margin: 0 !important;
}

.btnGroup > .btn:focus, .btnGroup > .btn:active {
  z-index: 2;
}

.btnGroup > .btn:hover {
  z-index: 2;
}

.btnGroup .btn + .btn,
.btnGroup .btn + .btnGroup,
.btnGroup .btnGroup + .btn,
.btnGroup .btnGroup + .btnGroup {
  margin-left: -0.0625rem !important;
}

.btnGroup > .btn:not(:first-child):not(:last-child) {
  border-radius: 0;
}

.btnGroup > .btn:first-child {
  margin-left: 0 !important;
}

.btnGroup > .btn:first-child:not(:last-child) {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.btnGroup > .btn:last-child:not(:first-child) {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.btnGroup > .btnGroup {
  float: left;
}

.btnGroup > .btnGroup:not(:first-child):not(:last-child) > .btn {
  border-radius: 0;
}

.btnGroup > .btnGroup:first-child:not(:last-child) > .btn:last-child {
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.btnGroup > .btnGroup:last-child:not(:first-child) > .btn:first-child {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}