/* Shared navigation shell used on every authenticated route. */
.wrapper {
  padding-top: 50px;
}

.main-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
}

.modern-home-page .wrapper {
  padding-top: 68px;
}

.modern-app-sidebar {
  border-right: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, #0b2745 0%, #091f37 100%) !important;
  box-shadow: 4px 0 18px rgba(5, 25, 48, .08);
}

body:not(.modern-home-page) .modern-app-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 230px;
  height: 100vh;
  min-height: 0;
  padding-top: 50px;
}

.modern-home-page .modern-app-sidebar {
  top: 68px;
  width: 225px;
  height: calc(100vh - 68px);
  padding-top: 0;
}

.modern-app-sidebar .sidebar {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 12px 15px 0;
}

.modern-app-sidebar .modern-sidebar-menu {
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 2px 10px 0;
  background: transparent;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
  scrollbar-width: thin;
}

.modern-app-sidebar .modern-sidebar-menu::-webkit-scrollbar {
  width: 5px;
}

.modern-app-sidebar .modern-sidebar-menu::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(255, 255, 255, .22);
}

.skin-blue .modern-app-sidebar .modern-sidebar-menu > li {
  margin-bottom: 4px;
}

.skin-blue .modern-app-sidebar .modern-sidebar-menu > li > a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #e4edf7;
  font-size: 14px;
  font-weight: 400;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.skin-blue .modern-app-sidebar .modern-sidebar-menu > li > a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transform: translateX(2px);
}

.skin-blue .modern-app-sidebar .modern-sidebar-menu > li.active > a,
.skin-blue .modern-app-sidebar .modern-sidebar-menu > li.active:hover > a {
  border: 0;
  background: linear-gradient(90deg, #126bd8, #0a82f5);
  box-shadow: 0 6px 16px rgba(0, 101, 220, .28);
  color: #fff;
}

.skin-blue .modern-app-sidebar .modern-sidebar-menu > li > a > .fa {
  flex: 0 0 23px;
  width: 23px;
  margin-right: 8px;
  color: #d7e8f8;
  font-size: 15px;
  text-align: center;
}

.skin-blue .modern-app-sidebar .modern-sidebar-menu > li.active > a > .fa {
  color: #fff;
}

.modern-app-sidebar .modern-sidebar-footer {
  position: static;
  flex: 0 0 auto;
  padding: 10px 0 17px;
}

.modern-app-sidebar .dashboard-theme-toggle {
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.modern-app-sidebar .dashboard-theme-toggle:hover,
.modern-app-sidebar .dashboard-theme-toggle:focus {
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  outline: 0;
}

.modern-app-sidebar .theme-label {
  flex: 1;
  font-weight: 600;
}

.modern-app-sidebar .sidebar-copyright {
  line-height: 1.4;
}

/* Brand continuity for pages that keep the compact AdminLTE header. */
.modern-app-header .modern-app-brand {
  display: flex !important;
  align-items: center;
  width: 230px;
  height: 50px;
  padding: 0 14px;
  background: #0b223c !important;
  color: #fff;
  line-height: normal;
  text-align: left;
}

.modern-app-header .modern-app-brand:hover {
  background: #0b223c !important;
}

.modern-app-header .modern-brand-icon {
  width: 31px;
  height: 31px;
  margin-right: 9px;
  font-size: 25px;
}

.modern-app-header .modern-brand-copy {
  display: flex;
}

.modern-app-header .modern-brand-copy strong {
  font-size: 13px;
}

.modern-app-header .modern-brand-copy small {
  margin-top: 2px;
  font-size: 11px;
}

.skin-blue .modern-app-header .navbar {
  border-bottom: 1px solid #dfe6ef;
  background: #fff;
  box-shadow: 0 2px 8px rgba(21, 43, 70, .05);
}

.skin-blue .modern-app-header .navbar .sidebar-toggle,
.skin-blue .modern-app-header .navbar .nav > li > a {
  color: #17304f;
}

.skin-blue .modern-app-header .navbar .sidebar-toggle:hover,
.skin-blue .modern-app-header .navbar .nav > li > a:hover,
.skin-blue .modern-app-header .navbar .nav > li > a:focus,
.skin-blue .modern-app-header .navbar .nav .open > a {
  background: #f3f7fb;
  color: #0878ee;
}

/* The global theme switch also gives legacy content a neutral dark surface. */
body.dashboard-dark:not(.modern-home-page),
body.dashboard-dark:not(.modern-home-page) .wrapper,
body.dashboard-dark:not(.modern-home-page) .content-wrapper {
  background: #111b2b !important;
}

body.dashboard-dark:not(.modern-home-page) .content-wrapper {
  color: #dce6f2;
}

body.dashboard-dark:not(.modern-home-page) .content-header > h1,
body.dashboard-dark:not(.modern-home-page) .content-header > h1 > small,
body.dashboard-dark:not(.modern-home-page) .content-header .breadcrumb,
body.dashboard-dark:not(.modern-home-page) .content-header .breadcrumb a {
  color: #e7eef8;
}

body.dashboard-dark:not(.modern-home-page) .box,
body.dashboard-dark:not(.modern-home-page) .panel,
body.dashboard-dark:not(.modern-home-page) .modal-content,
body.dashboard-dark:not(.modern-home-page) .nav-tabs-custom,
body.dashboard-dark:not(.modern-home-page) .password-card,
body.dashboard-dark:not(.modern-home-page) .sells-history-panel,
body.dashboard-dark:not(.modern-home-page) .expiry-panel,
body.dashboard-dark:not(.modern-home-page) .offer-builder-panel,
body.dashboard-dark:not(.modern-home-page) .campaign-main-panel,
body.dashboard-dark:not(.modern-home-page) .campaign-side-card {
  border-color: #2b3c52 !important;
  background: #172438 !important;
  color: #dce6f2;
}

body.dashboard-dark:not(.modern-home-page) .box-header,
body.dashboard-dark:not(.modern-home-page) .box-title,
body.dashboard-dark:not(.modern-home-page) .panel-title,
body.dashboard-dark:not(.modern-home-page) label {
  color: #e7eef8;
}

body.dashboard-dark:not(.modern-home-page) .form-control,
body.dashboard-dark:not(.modern-home-page) .input-group-addon,
body.dashboard-dark:not(.modern-home-page) .select2-selection {
  border-color: #35475f !important;
  background: #101c2c !important;
  color: #e7eef8 !important;
}

body.dashboard-dark:not(.modern-home-page) .table > thead > tr > th,
body.dashboard-dark:not(.modern-home-page) .table > tbody > tr > td {
  border-color: #2c3d53;
  color: #dce6f2;
}

@media (min-width: 768px) {
  body:not(.modern-home-page).sidebar-mini.sidebar-collapse .modern-app-sidebar .modern-sidebar-footer {
    display: none;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .modern-app-header .modern-brand-copy {
    display: flex;
  }
}

@media (max-width: 767px) {
  body:not(.modern-home-page) .wrapper {
    padding-top: 100px;
  }

  body:not(.modern-home-page) .modern-app-sidebar {
    padding-top: 100px;
  }

  .modern-app-header .modern-app-brand {
    width: 100%;
  }

  .modern-app-header .modern-brand-copy {
    display: flex;
  }

  .modern-home-page .modern-dashboard-header {
    height: 68px;
    max-height: 68px;
  }

  .modern-home-page .modern-dashboard-header .modern-brand {
    position: absolute;
    top: 0;
    left: 0;
    float: none;
    width: 68px;
    height: 68px;
  }

  .modern-home-page .modern-dashboard-header .navbar {
    position: absolute;
    top: 0;
    right: 0;
    left: 68px;
    float: none;
    width: auto;
    margin: 0;
  }
}
