/* Global admin layout fixes: switches, badges, footer, leftover tooltips */

/* Bootstrap 5 switches use a negative margin. custom.css set padding-left: 16px,
   so the track sits on the previous word. Keep the knob in normal flow. */
.form-check.form-switch {
  padding-left: 0 !important;
  min-height: 1.5rem;
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0;
}
.form-check.form-switch .form-check-input {
  width: 2.5rem !important;
  height: 1.25rem !important;
  margin: 0 !important;
  float: none !important;
  position: relative !important;
  flex: 0 0 2.5rem;
  left: auto !important;
  top: auto !important;
  transform: none !important;
}
.form-check.form-switch .form-check-label {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25rem;
  white-space: nowrap;
}

/* Connection / settings rows: do not let the switch bleed out of the card */
.card .form-check.form-switch,
.card-body .form-check.form-switch {
  margin-left: 0;
}

/* Sidebar HOT / unread badges must sit after the label, not on top of it */
.navbar-vertical .navbar-nav > .nav-item > .nav-link {
  display: flex !important;
  align-items: center !important;
  padding-right: 36px !important;
}
.navbar-vertical .navbar-nav > .nav-item > .nav-link .badge,
.navbar-vertical .navbar-nav > .nav-item > .nav-link .badge.bg-danger {
  position: static !important;
  transform: none !important;
  right: auto !important;
  top: auto !important;
  margin-left: 8px !important;
  width: auto !important;
  height: auto !important;
  min-height: 18px;
  padding: 2px 6px !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* Argon/Dashkit “Apps” pin sitting on the sidebar */
.navbar-vertical-footer,
.js-navbar-vertical-aside-toggle-invoker,
.navbar-vertical-aside-toggle,
.navbar-vertical [title="Apps"] {
  display: none !important;
}

/* Argon leftover “Apps” tooltip (appended to body, sits on the sidebar) */
body > .tooltip {
  display: none !important;
}

/* Footer stays at the bottom of the page; copyright is centered */
footer.footer {
  position: static !important;
  z-index: auto !important;
  width: 100%;
  text-align: center !important;
  background: transparent !important;
  box-shadow: none !important;
  margin-top: 1.5rem !important;
  padding: 1rem 1.5rem !important;
}
footer.footer .copyright,
footer.footer .copyright a {
  display: inline !important;
  position: static !important;
  color: #6b7280 !important;
  font-size: 13px;
}
footer.footer .footer-version-badge {
  position: static !important;
  display: inline-block !important;
  vertical-align: middle;
  margin-left: 8px;
}

/* Bootstrap Table: body was height:100% of an auto parent → 0px (headers only, no rows) */
.bootstrap-table .fixed-table-container {
  height: auto !important;
}
.bootstrap-table .fixed-table-body {
  height: auto !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}
.bootstrap-table .fixed-table-container .table {
  display: table !important;
}
.bootstrap-table .fixed-table-container .table tbody {
  display: table-row-group !important;
}
.bootstrap-table .fixed-table-container .table tbody tr {
  display: table-row !important;
}
