/*!
 * Minimal Bootstrap 3 class aliases for Bootstrap 5 pages.
 * Used while shared layout (menu/footer/location) still uses BS3 class names.
 */

.pull-left { float: left !important; }
.pull-right { float: right !important; }
.hidden { display: none !important; }

/* BS3 tabs: li.active > a. BS5 moves .active onto the link after a click. */
.nav-tabs {
  border-bottom: 1px solid #ddd;
}
.nav-tabs > li {
  float: left;
  margin-bottom: -1px;
}
.nav-tabs > li > a {
  display: block;
  padding: 10px 15px;
  margin-right: 2px;
  line-height: 1.42857143;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  color: #337ab7;
}
.nav-tabs > li > a:hover {
  border-color: #eee #eee #ddd;
  background-color: #eee;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus,
.nav-tabs > li > a.active,
.nav-tabs > li > a.active:hover,
.nav-tabs > li > a.active:focus {
  color: #555;
  cursor: default;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
}

/* BS3 .btn-default: white button. BS5 has no equivalent (btn-secondary is a filled gray). */
.btn-default {
  --bs-btn-color: #333;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #ccc;
  --bs-btn-hover-color: #333;
  --bs-btn-hover-bg: #e6e6e6;
  --bs-btn-hover-border-color: #adadad;
  --bs-btn-focus-shadow-rgb: 173, 173, 173;
  --bs-btn-active-color: #333;
  --bs-btn-active-bg: #e6e6e6;
  --bs-btn-active-border-color: #adadad;
  --bs-btn-disabled-color: #333;
  --bs-btn-disabled-bg: #fff;
  --bs-btn-disabled-border-color: #ccc;
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}
.btn-default:hover,
.btn-default:focus,
.btn-default:active,
.show > .btn-default.dropdown-toggle {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

/* BS3 float grid. BS5 .row is flex and .row > * is width:100%, which stacks the old layout. */
.row {
  display: block !important;
  margin-right: -15px;
  margin-left: -15px;
  margin-top: 0;
}
.row::before,
.row::after {
  display: table;
  content: " ";
}
.row::after { clear: both; }
.row > * {
  flex-shrink: unset;
  width: auto;
  max-width: none;
  margin-top: 0;
  padding-right: 15px;
  padding-left: 15px;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 {
  position: relative;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
}
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 {
  width: auto !important;
  float: none;
}
.col-12, .col-xs-12 { width: 100% !important; float: left !important; }
.col-11, .col-xs-11 { width: 91.66666667% !important; float: left !important; }
.col-10, .col-xs-10 { width: 83.33333333% !important; float: left !important; }
.col-9, .col-xs-9 { width: 75% !important; float: left !important; }
.col-8, .col-xs-8 { width: 66.66666667% !important; float: left !important; }
.col-7, .col-xs-7 { width: 58.33333333% !important; float: left !important; }
.col-6, .col-xs-6 { width: 50% !important; float: left !important; }
.col-5, .col-xs-5 { width: 41.66666667% !important; float: left !important; }
.col-4, .col-xs-4 { width: 33.33333333% !important; float: left !important; }
.col-3, .col-xs-3 { width: 25% !important; float: left !important; }
.col-2, .col-xs-2 { width: 16.66666667% !important; float: left !important; }
.col-1, .col-xs-1 { width: 8.33333333% !important; float: left !important; }

@media (min-width: 768px) {
  .col-sm-12 { width: 100% !important; float: left !important; }
  .col-sm-11 { width: 91.66666667% !important; float: left !important; }
  .col-sm-10 { width: 83.33333333% !important; float: left !important; }
  .col-sm-9 { width: 75% !important; float: left !important; }
  .col-sm-8 { width: 66.66666667% !important; float: left !important; }
  .col-sm-7 { width: 58.33333333% !important; float: left !important; }
  .col-sm-6 { width: 50% !important; float: left !important; }
  .col-sm-5 { width: 41.66666667% !important; float: left !important; }
  .col-sm-4 { width: 33.33333333% !important; float: left !important; }
  .col-sm-3 { width: 25% !important; float: left !important; }
  .col-sm-2 { width: 16.66666667% !important; float: left !important; }
  .col-sm-1 { width: 8.33333333% !important; float: left !important; }
}
@media (min-width: 992px) {
  .col-md-12 { width: 100% !important; float: left !important; }
  .col-md-11 { width: 91.66666667% !important; float: left !important; }
  .col-md-10 { width: 83.33333333% !important; float: left !important; }
  .col-md-9 { width: 75% !important; float: left !important; }
  .col-md-8 { width: 66.66666667% !important; float: left !important; }
  .col-md-7 { width: 58.33333333% !important; float: left !important; }
  .col-md-6 { width: 50% !important; float: left !important; }
  .col-md-5 { width: 41.66666667% !important; float: left !important; }
  .col-md-4 { width: 33.33333333% !important; float: left !important; }
  .col-md-3 { width: 25% !important; float: left !important; }
  .col-md-2 { width: 16.66666667% !important; float: left !important; }
  .col-md-1 { width: 8.33333333% !important; float: left !important; }
  .container { max-width: 970px; }
}
@media (min-width: 1200px) {
  .col-lg-12 { width: 100% !important; float: left !important; }
  .col-lg-11 { width: 91.66666667% !important; float: left !important; }
  .col-lg-10 { width: 83.33333333% !important; float: left !important; }
  .col-lg-9 { width: 75% !important; float: left !important; }
  .col-lg-8 { width: 66.66666667% !important; float: left !important; }
  .col-lg-7 { width: 58.33333333% !important; float: left !important; }
  .col-lg-6 { width: 50% !important; float: left !important; }
  .col-lg-5 { width: 41.66666667% !important; float: left !important; }
  .col-lg-4 { width: 33.33333333% !important; float: left !important; }
  .col-lg-3 { width: 25% !important; float: left !important; }
  .col-lg-2 { width: 16.66666667% !important; float: left !important; }
  .col-lg-1 { width: 8.33333333% !important; float: left !important; }
  .container { max-width: 1170px; }
}

.btn-block {
  display: block;
  width: 100%;
}

/* BS3 equal-width button row used by content tabs */
.btn-group-justified {
  display: table !important;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
}
.btn-group-justified > .btn,
.btn-group-justified > .btn-group {
  display: table-cell !important;
  float: none;
  width: 1%;
}
.btn-group-justified > .btn-group > .btn {
  width: 100%;
}

/* Visibility helpers (approximate BS3 behavior) */
@media (max-width: 767.98px) {
  .hidden-xs { display: none !important; }
  .visible-xs { display: block !important; }
}
@media (min-width: 768px) {
  .visible-xs { display: none !important; }
}

@media (max-width: 991.98px) {
  .hidden-sm { display: none !important; }
}
@media (max-width: 1199.98px) {
  .hidden-md { display: none !important; }
}
.hidden-lg { }
@media (min-width: 1200px) {
  .hidden-lg { display: none !important; }
}

/* BS3 pagination markup: ul.pagination > li > a */
.pagination {
  display: inline-flex;
  padding-left: 0;
  margin: 0;
  list-style: none;
  vertical-align: middle;
}
.pagination > li > a,
.pagination > li > span {
  position: relative;
  display: block;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #337ab7;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
}
.pagination > li:first-child > a,
.pagination > li:first-child > span {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.pagination > li:last-child > a,
.pagination > li:last-child > span {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}
.pagination > li > a:hover,
.pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus {
  z-index: 2;
  color: #23527c;
  background-color: #eee;
  border-color: #ddd;
}
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus {
  z-index: 3;
  color: #fff;
  cursor: default;
  background-color: #337ab7;
  border-color: #337ab7;
}
