/*
  SourceTrack overrides for the Bootstrap admin theme.
  Keep this file for non-destructive tweaks (do not edit vendor theme CSS).
*/

/* Remove unwanted top spacing for fixed header/sidebar */
#main-wrapper[data-layout="vertical"][data-sidebar-position="fixed"] .left-sidebar,
.left-sidebar {
  top: 0 !important;
}

#main-wrapper[data-layout="vertical"][data-header-position="fixed"] .app-header,
.app-header {
  top: 0 !important;
}

/*
  Sticky footer (always visible at bottom on short pages)
  - No overlap: footer stays in normal document flow
  - Natural scroll: footer moves down when content overflows
*/
.body-wrapper-inner {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 70px);
}

.body-wrapper-inner > .container-fluid {
  flex: 1 0 auto;
}

.body-wrapper-inner footer {
  margin-top: auto;
}

/* Mobile: subtle header elevation (matches Bootstrap card / theme shadows) */
@media (max-width: 1199.98px) {
  .app-header {
    box-shadow: 0 0.125rem 0.375rem rgba(15, 23, 42, 0.06), 0 0.0625rem 0.125rem rgba(15, 23, 42, 0.04);
  }

  .mobile-header-nav {
    position: relative;
  }

  .mobile-header-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  .mobile-header-logo img {
    height: 28px;
    width: auto;
    display: block;
  }
}

