/* make stencil route link look like .btn when in input groups */
.input-group-btn:last-child > stencil-route-link > .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.input-group-btn:first-child > stencil-route-link > .btn {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group-btn > stencil-route-link > .btn {
  position: relative;
}

.input-group-sm > .input-group-btn > stencil-route-link > .btn {
  line-height: 1.5;
  font-size: 12px;
  height: 30px;
  padding: 5px 10px;
}

.input-group-lg > .input-group-btn > stencil-route-link > .btn {
  height: 66px;
  padding: 20px 30px;
  font-size: 18px;
  line-height: 1.3333333;
}

.input-group-btn > stencil-route-link > .btn:hover,
.input-group-btn > stencil-route-link > .btn:focus,
.input-group-btn > stencil-route-link > .btn:active {
  z-index: 2;
}

/*
 * Callouts
 *
 * Not quite alerts, but custom and helpful notes for folks reading the docs.
 * Requires a base and modifier class.
 */

/* Common styles for all types */
.bs-callout {
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #eee;
  border-left-width: 5px;
  border-radius: 3px;
}

.bs-callout h4 {
  margin-top: 0;
  margin-bottom: 5px;
}

.bs-callout .subtitle {
  color: #464646;
}

.bs-callout p:last-child {
  margin-bottom: 0;
}

.bs-callout code {
  border-radius: 3px;
}

/* Tighten up space between multiple callouts */
.bs-callout + .bs-callout {
  margin-top: -5px;
}

/* Variations */
.bs-callout-danger {
  border-left-color: #ce4844;
}

.bs-callout-danger h4 {
  color: #ce4844;
}

.bs-callout-warning {
  border-left-color: #aa6708;
}

.bs-callout-warning h4 {
  color: #aa6708;
}

.bs-callout-info {
  border-left-color: #1b809e;
}

.bs-callout-info h4 {
  color: #1b809e;
}

.bs-callout-success {
  border-left-color: #5c7f34;
}

.bs-callout-success h4 {
  color: #5c7f34;
}

.bs-box {
  position: relative;
  margin: 15px 0;
  padding: 39px 19px 14px;
  background-color: white;
  border: 1px solid #ddd;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.bs-box-heading {
  position: absolute;
  top: -1px;
  left: -1px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  background-color: whiteSmoke;
  border: 1px solid #ddd;
  color: #9da0a4;
  -webkit-border-radius: 4px 0 4px 0;
  -moz-border-radius: 4px 0 4px 0;
  border-radius: 4px 0 4px 0;
}

.badge.badge-success {
  background-color: #93c54b;
}
.badge.badge-info {
  background-color: #29abe0;
}
.badge.badge-warning {
  background-color: #f47c3c;
}
.badge.badge-danger {
  background-color: #d9534f;
}
.badge.badge-primary {
  background-color: #325d88;
}
.badge.badge-muted {
  background-color: #98978b;
}

.label.label-muted {
  background-color: #98978b;
}

.btn.btn-muted {
  background-color: #98978b;
  color: white;
}
.btn.btn-muted:hover {
  background-color: #7d7c70;
}
.btn.btn-muted:active {
  background-color: #69685c;
}

.spaced-h {
  margin-right: 0.5em;
}
.spaced-h:last-child {
  margin-right: 0;
}

.validation-error {
  background-color: #ce4844;
  border: 1px solid #aa6708;
  border-radius: 3px;
  color: #eee;
}

.toolbar > * {
  margin-right: 0.5em;
}

.toolbar > *:last-child {
  margin-right: 0;
}

@keyframes slideup {
  0% {
    margin-bottom: -8rem;
  }

  100% {
    margin-bottom: 10rem;
  }
}

@keyframes slidedown {
  0% {
    margin-bottom: 10rem;
  }

  100% {
    margin-bottom: -8rem;
  }
}

.dropButton {
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
}

.dropButton:hover,
.dropButton:focus {
  background-color: #3e8e41;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.2rem;
  overflow: auto;
  z-index: 1500; /* keep in sync with $layer-dropdown-content */
  border-radius: 0 0.5rem 0.5rem 0.5rem;
  margin-top: -1px;
}

.dropdown-content button {
  margin: 0.5rem;
}

.show {
  display: block;
}

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
  color: #c6c6c6;
}

a.x--collapsible {
  cursor: pointer;
}
/** tablesort styles **/
th[role='columnheader'] {
  cursor: pointer;
  position: relative;
}
th[role='columnheader']:after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  margin-left: -5px;
  border-width: 0 5px 5px;
  border-style: solid;
  border-color: #333 transparent;
  visibility: hidden;
  opacity: 0;
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
}
th[aria-sort='descending'] {
  border-bottom: 2px solid #333 !important;
}
th[aria-sort='ascending']:after {
  border-bottom: none;
  border-width: 5px 5px 0;
  bottom: -7px;
}
th[aria-sort='ascending']:after,
th[aria-sort='descending']:after {
  visibility: visible;
  opacity: 1;
}
th[role='columnheader']:not([aria-sort='ascending']):not([aria-sort='descending']):hover:after {
  visibility: visible;
  opacity: 1;
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0%,
  20%,
  60%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  80% {
    transform: translateY(-5px);
  }
}
