/*
 * Compatibility layer after the Bootstrap 3 to Bootstrap 5 migration
 * (DBRCBE-1470/1480). Bootstrap 5 is loaded as bootstrap-grid.min.css
 * (grid + utilities only); this file keeps the few global rules the
 * application relied on from the former full Bootstrap 3 stylesheet.
 * Some rules are derived from Bootstrap, licensed MIT
 * (https://github.com/twbs/bootstrap/blob/main/LICENSE).
 */

/* Global border-box sizing (formerly provided by the Bootstrap 3 reboot).
 * Page layouts were built against this model. */
* {
  box-sizing: border-box;
}
*:before,
*:after {
  box-sizing: border-box;
}

/* Structural rules for CMS-generated tab markup (CKEditor bootstrapTabs
 * plugin stores .nav/.nav-tabs/.tab-content markup in portal content).
 * Visual styling lives in bahn.css. */
.nav {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}
.nav > li {
  position: relative;
  display: block;
}
.nav > li > a {
  position: relative;
  display: block;
  padding: 10px 15px;
}
.nav > li > a:hover,
.nav > li > a:focus {
  text-decoration: none;
}
.nav-tabs > li {
  float: left;
  margin-bottom: -1px;
}
.nav-tabs > li > a {
  margin-right: 2px;
  line-height: 1.42857143;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
}
.tab-content > .tab-pane {
  display: none;
}
.tab-content > .active {
  display: block;
}

/* Native inputs inside .checkbox/.radio wrappers (formerly positioned by
 * Bootstrap 3). The DB styleguide draws its own checkbox on the adjacent
 * label (portal.min_2.css, which also sets left:-9999px on the input),
 * while partner_2.css re-shows [type=checkbox] globally with lower
 * specificity. Without this rule both the native and the styled checkbox
 * are visible inside fieldset.checkbox. */
.radio input[type="radio"],
.radio-inline input[type="radio"],
.checkbox input[type="checkbox"],
.checkbox-inline input[type="checkbox"] {
  position: absolute;
  margin-left: -20px;
}
