/* Keep the admin workspace inside the viewport. */
*,
*::before,
*::after {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
*::-webkit-scrollbar-corner {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden !important;
  position: fixed;
  inset: 0;
}

.global-header {
  position: fixed;
  inset: 0 0 auto;
}

.header-service-tools {
  display: flex;
  align-items: center;
  gap:12px;
  flex: 0 0 auto;
  margin-right:12px;
  padding-right:12px;
  border-right: 1px solid #e9edf3;
}

.header-service-tools .local-status {
  white-space: nowrap;
  font-size: 10px;
}

.header-service-tools .refresh-btn {
  flex: 0 0 29px;
}

.project-tabs {
  position: fixed;
  inset: 62px 0 auto;
}

.admin-shell {
  min-height: 0;
  height: 100vh;
}

.admin-side {
  position: fixed;
  top: 108px;
  bottom: 0;
  height: auto;
}

.admin-main {
  position: fixed;
  top: 108px;
  right: 0;
  bottom: 0;
  left: 244px;
  min-height: 0;
  height: auto;
  margin:0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.admin-main::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Keep the workspace full-height while allowing long pages to remain reachable. */
#adminContent {
  min-height: 0;
}

.admin-main:has(.ip-admin-full-page) {
  overflow-y: auto;
}

@media (max-width: 900px) {
  .admin-side {
    top: 108px;
    bottom: 0;
    height: auto;
  }

  .admin-main {
    top: 108px;
    left: 205px;
  }
}

@media (max-width: 600px) {
  .global-header {
    height: 54px;
  }

  .header-service-tools {
    gap:12px;
    margin-right:12px;
    padding-right:12px;
    border-right: 0;
  }

  .header-service-tools .local-status {
    font-size: 8px;
  }

  .header-service-tools .refresh-btn {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }

  .project-tabs {
    top: 54px;
    height: 42px;
  }

  .admin-side {
    top: 96px;
    bottom: 0;
    height: auto;
  }

  .admin-main {
    top: 96px;
    left: 57px;
    height: auto;
    margin:0;
    padding:0 12px;
  }
}
