/* Bootstrap 3 compatibility shim for pages running Bootstrap 4/5. */

/* Grid: map col-xs-* to Bootstrap 4 flex columns */
[class*="col-xs-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

@media (min-width: 0) {
  .col-xs-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-xs-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xs-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xs-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xs-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xs-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xs-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-xs-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xs-9 { flex: 0 0 75%; max-width: 75%; }
  .col-xs-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-xs-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-xs-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Legacy floats */
.pull-right { float: right !important; }
.pull-left { float: left !important; }
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Panels -> Cards */
.panel {
  background: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}
.panel-heading {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
}
.panel-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.panel-body {
  padding: 1rem;
}
.panel-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
}

/* Default button */
.btn-default {
  color: #212529;
  background-color: #e2e6ea;
  border-color: #dae0e5;
}
.btn-default:hover,
.btn-default:focus {
  color: #212529;
  background-color: #d3d9df;
  border-color: #c8ced3;
}

/* Labels -> Badges */
.label {
  display: inline-block;
  padding: 0.2em 0.6em;
  font-size: 75%;
  font-weight: 600;
  line-height: 1;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}
.label-default { background-color: #6c757d; }
.label-primary { background-color: #007bff; }
.label-success { background-color: #28a745; }
.label-info { background-color: #17a2b8; }
.label-warning { background-color: #ffc107; color: #1f2a37; }
.label-danger { background-color: #dc3545; }

/* Wells */
.well {
  min-height: 20px;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

/* Thumbnails */
.thumbnail {
  display: block;
  padding: 4px;
  margin-bottom: 1rem;
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.thumbnail > img,
.thumbnail a > img {
  margin-right: auto;
  margin-left: auto;
}

/* Input group addon */
.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

/* Navbar defaults */
.navbar-default {
  background-color: #f8f9fa;
  border-color: #dee2e6;
}
.navbar-default .navbar-nav > li > a {
  color: #495057;
}
.navbar-default .navbar-nav > li > a:hover {
  color: #1f2937;
}

/* Helpers */
.hidden-xs { display: none !important; }
.visible-xs-block,
.visible-xs-inline,
.visible-xs-inline-block { display: none !important; }
