html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

.container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

.app-topstrip-custom {
  background: cadetblue;
}

.layout-horizontal-preview .left-sidebar {
  display: none !important;
}

.layout-horizontal-preview .body-wrapper {
  margin-left: 0 !important;
  width: 100% !important;
  padding-top: 64px;
}

.layout-horizontal-preview .app-header {
  left: 0 !important;
  width: 100% !important;
}

.layout-horizontal-preview #headerCollapse,
.layout-horizontal-preview #sidebarCollapse {
  display: none !important;
}

.top-horizontal-menu {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e8edf3;
  background: #fff;
  overflow: visible !important;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-horizontal-menu .dropdown {
  position: relative;
}

.top-horizontal-menu .dropdown-menu {
  z-index: 1080;
}

.top-menu-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 0.25rem;
}

.top-menu-brand img {
  height: 34px;
  width: auto;
  border-radius: 6px;
}

.top-menu-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 0.45rem;
  text-decoration: none;
  color: #2a3547;
  font-weight: 600;
}

.top-menu-link:hover {
  background: #f2f6fa;
  color: #2a3547;
}

.app-header .navbar {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
}

.app-header .navbar > .navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.mobile-welcome {
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 8px;
  margin-right: 0 !important;
  margin-bottom: 1rem;
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.body-wrapper-inner {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.responsive-page-header {
  gap: 0.75rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.table-actions .btn {
  white-space: nowrap;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991.98px) {
  .layout-horizontal-preview .body-wrapper {
    padding-top: 56px;
  }

  .app-topstrip-custom {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .app-content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 6px;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .layout-horizontal-preview .body-wrapper {
    padding-top: 0px;
  }

  .top-horizontal-menu {
    padding: 0.35rem 0.4rem;
    justify-content: center;
    gap: 0.25rem;
    white-space: normal;
    flex-wrap: wrap;
  }

  .top-menu-brand img {
    height: 28px;
  }

  .top-menu-link {
    padding: 0.35rem 0.55rem;
    font-size: 0.85rem;
  }

  .app-header {
    top: 0 !important;
  }

  .app-topstrip-custom {
    display: none !important;
  }

  .app-header .navbar {
    min-height: 56px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .app-header .navbar > .navbar-nav:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-user-actions {
    display: none !important;
  }

  .mobile-welcome {
    font-size: 0.9rem;
    max-width: calc(100vw - 110px);
    font-weight: 600;
  }

  #headerCollapse {
    padding: 0.5rem;
  }

  #headerCollapse i {
    font-size: 1.3rem;
  }

  .app-content-wrapper {
    margin-top: 4px;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .responsive-page-header {
    flex-direction: column;
    align-items: stretch !important;
  }

  .responsive-page-header .btn {
    width: 100%;
  }

  .card-body {
    padding: 1rem;
  }

  .navbar-nav h5 { margin-bottom: 0; }
}
