/* Shared portal navigation polish. */

/* Keep the attendance clock and Quick Create visually separate without wasting space. */
.main-header .hr-clock-nav {
  margin-right: .55rem !important;
}
.main-header .ithd-quick-create-nav-item {
  margin-left: 0 !important;
  margin-right: .15rem;
}
.main-header .top-create-btn {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Quick Create becomes a compact command menu rather than a random bag of links. */
.ithd-quick-create-menu {
  min-width: 230px;
  padding: .45rem;
  border-radius: 12px;
}
.ithd-quick-create-heading {
  padding: .35rem .65rem .5rem;
  color: #8fa6cf;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ithd-quick-create-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 42px;
  padding: .5rem .65rem;
  border-radius: 8px;
  font-weight: 600;
}
.ithd-quick-create-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: #a9c4ff;
}

/* Floating label for icon-only collapsed sidebar navigation. */
.ithd-sidebar-tooltip {
  position: fixed;
  z-index: 10050;
  transform: translateY(-50%) translateX(-4px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  padding: 7px 10px;
  border-radius: 7px;
  background: #07101f;
  color: #fff;
  box-shadow: 0 5px 18px rgba(0,0,0,.25);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: opacity .12s ease, transform .12s ease, visibility .12s ease;
}
.ithd-sidebar-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Tablet widths keep the profile control but drop the person's name. */
@media (max-width: 1199.98px) and (min-width: 768px) {
  .main-header .ithd-profile-nav-link {
    font-size: 0 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
  }
  .main-header .ithd-profile-nav-link img,
  .main-header .ithd-profile-nav-link i,
  .main-header .ithd-profile-nav-link .user-avatar {
    font-size: 1rem !important;
  }
}

/* DEV marker is useful, but the word itself does not deserve scarce tablet space. */
@media (max-width: 991.98px) {
  .ithd-dev-nav-badge .ithd-dev-label-long {
    display: none !important;
  }
  .ithd-dev-nav-badge {
    min-width: 28px;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
  .ithd-dev-nav-badge i {
    margin-right: 0 !important;
  }
}

/* Phone priority: hamburger, search, clock, create, alerts and profile survive. */
@media (max-width: 767.98px) {
  .main-header .ithd-phone-hide {
    display: none !important;
  }
  .main-header .ithd-profile-nav-link {
    font-size: 0 !important;
    padding-left: .35rem !important;
    padding-right: .35rem !important;
  }
  .main-header .ithd-profile-nav-link img,
  .main-header .ithd-profile-nav-link i,
  .main-header .ithd-profile-nav-link .user-avatar {
    font-size: 1rem !important;
  }
  .main-header .hr-clock-nav {
    margin-right: .35rem !important;
  }
  .main-header .ithd-quick-create-nav-item {
    margin-right: .05rem !important;
  }
  .ithd-quick-create-menu {
    position: fixed !important;
    top: 58px !important;
    right: 8px !important;
    left: auto !important;
    width: min(280px, calc(100vw - 16px));
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
}
