html,
body,
body.fixed .wrapper {
  height: 100%;
}

body.fixed,
body.fixed .wrapper {
  overflow: hidden;
}

body.fixed .content-wrapper {
  height: 100vh;
  height: 100dvh;
  min-height: 0 !important;
  box-sizing: border-box;
  overflow: hidden;
}

body.fixed .content-wrapper > .page-content-scroll {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: scroll;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

body.fixed .content-wrapper > .page-content-scroll > .content {
  flex: 1 0 auto;
  width: 100%;
}

body.fixed .main-header {
  width: 100%;
  padding-right: 0 !important;
}

body.fixed .content-wrapper > .page-content-scroll::-webkit-scrollbar {
  width: 10px;
}

body.fixed .content-wrapper > .page-content-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border: 2px solid #fff;
  border-radius: 8px;
}

body.fixed .content-wrapper > .page-content-scroll::-webkit-scrollbar-track {
  background: #fff;
}

body.fixed .content-wrapper > .page-content-scroll > .main-footer {
  flex: 0 0 auto;
  margin-left: 0 !important;
}

@media (min-width: 768px) {
  body.fixed .content-wrapper {
    padding-top: 60px;
  }

  body.fixed .main-sidebar {
    padding-top: 60px;
  }
}

@media (max-width: 767px) {
  body.fixed .content-wrapper {
    padding-top: 110px;
  }

  body.fixed .main-sidebar {
    padding-top: 110px;
  }
}

@media print {
  body.fixed,
  body.fixed .wrapper,
  body.fixed .content-wrapper,
  body.fixed .content-wrapper > .page-content-scroll {
    height: auto;
    overflow: visible;
  }
}
