/* AdminLTE 2 bridges for Bootstrap 5.3 (load after AdminLTE) */
/* ---- AdminLTE 2 + Bootstrap 5.3 bridge (loaded after AdminLTE) ---- */

/* BS5 uses .show; BS3/AdminLTE used .open for dropdowns */
.open > .dropdown-menu,
.dropdown.show > .dropdown-menu,
li.dropdown.show > .dropdown-menu,
.navbar-nav > .dropdown.show > .dropdown-menu,
.dropdown-menu.show {
  display: block;
}

/* BS5 reboot: restore BS3-ish body defaults AdminLTE assumes */
body {
  font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.42857143;
  color: #333;
  background-color: #fff;
}
a {
  color: #3c8dbc;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #72afd2;
  text-decoration: none;
}

/* Stop BS5 flex navbar from wrecking AdminLTE main-header */
.main-header .navbar.navbar-static-top,
.main-header .navbar {
  display: block;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  position: relative;
  min-height: 50px;
  margin-bottom: 0;
  border: none;
  border-radius: 0;
  background-image: none;
}
.main-header .navbar-custom-menu {
  float: right;
}
.main-header .navbar-custom-menu > .navbar-nav {
  float: left;
  margin: 0;
}
.main-header .navbar-custom-menu > .navbar-nav > li {
  float: left;
}
.main-header .navbar-custom-menu > .navbar-nav > li > a {
  display: block;
  padding-top: 15px;
  padding-bottom: 15px;
  line-height: 20px;
}

/* Sidebar toggle hit area */
.main-header .sidebar-toggle {
  float: left;
  background-color: transparent;
  background-image: none;
  padding: 15px 15px;
  font-family: FontAwesome, sans-serif;
  color: inherit;
}
.main-header .sidebar-toggle:before {
  content: "\f0c9";
}
.main-header .sidebar-toggle:hover,
.main-header .sidebar-toggle:focus {
  background-color: transparent;
  text-decoration: none;
}

/* Forms: BS5 form-control uses different padding; keep BS3-ish height for AdminLTE inputs */
.form-control {
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
.form-control:focus {
  border-color: #3c8dbc;
  box-shadow: none;
}
textarea.form-control {
  height: auto;
}
select.form-control {
  appearance: auto;
}

/* Input group addon (removed in BS5) */
.input-group-addon {
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  color: #555;
  text-align: center;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: table-cell;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}
.input-group-btn {
  position: relative;
  font-size: 0;
  white-space: nowrap;
  display: table-cell;
  vertical-align: middle;
}
.input-group {
  display: table;
  border-collapse: separate;
  width: 100%;
}
.input-group .form-control {
  display: table-cell;
  width: 100%;
  float: left;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

/* Labels (BS5 dropped .label) */
.label {
  display: inline;
  padding: .2em .6em .3em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25em;
}
.label-default { background-color: #777; }
.label-primary { background-color: #3c8dbc; }
.label-success { background-color: #00a65a; }
.label-info { background-color: #00c0ef; }
.label-warning { background-color: #f39c12; }
.label-danger { background-color: #dd4b39; }

/* Utilities removed/renamed in BS5 */
.pull-left { float: left !important; }
.pull-right { float: right !important; }
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.hidden { display: none !important; }
@media (max-width: 767px) {
  .hidden-xs { display: none !important; }
}

/* BS5 flex models that Bootstrap 3 never resets. AdminLTE 2 markup floats columns and step links. */
.row {
  display: block;
}
.nav,
.navbar-nav {
  display: block;
}
@media (min-width: 768px) {
  .navbar-nav {
    float: left;
    margin: 0;
  }
  .navbar-nav > li {
    float: left;
  }
}

/* BS5 Modal adds .show; BS3 CSS (loaded earlier) keeps .modal.fade .modal-dialog translated off-screen. */
.modal.show .modal-dialog {
  transform: none;
}

/* BS3 foundation only restores fade opacity via .in; BS5 toggles .show instead. */
.fade.show {
  opacity: 1;
}
.modal-backdrop.fade {
  opacity: 0;
}
.modal-backdrop.show,
.modal-backdrop.in {
  opacity: 0.5;
}

/* Keep tab panes visible when BS5 adds .show alongside .active (bridge sets both). */
.tab-content > .tab-pane.show {
  display: block !important;
}

/* Tabs: BS5 .nav-link vs AdminLTE .nav-tabs > li > a */
.nav-tabs > li > a {
  margin-right: 2px;
  line-height: 1.42857143;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  display: block;
  padding: 10px 15px;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: #555;
  cursor: default;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
}
.nav-tabs > li {
  float: left;
  margin-bottom: -1px;
}
.nav-tabs {
  border-bottom: 1px solid #ddd;
}
.nav-tabs::before,
.nav-tabs::after,
.nav::before,
.nav::after,
.clearfix::before,
.clearfix::after {
  display: table;
  content: " ";
}
.nav-tabs::after,
.nav::after,
.clearfix::after {
  clear: both;
}
.tab-content > .tab-pane {
  display: none !important;
}
.tab-content > .tab-pane.active {
  display: block !important;
}

/* Modal close button (BS3 .close) */
.close {
  float: right;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .2;
  background: transparent;
  border: 0;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  opacity: .5;
}
