/* Employee header menu. The panel is absolute so opening it does not shift the top bar. */

.employee-portal-menu {
  position: relative;
  flex: 0 0 auto;
  margin-left: 8px;
}

.employee-portal-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #f2f5f8;
  cursor: pointer;
}

.employee-portal-menu-btn:hover,
.employee-portal-menu-btn:focus,
.employee-portal-menu-btn:focus-visible {
  border-color: #59b7de;
  background: rgba(89, 183, 222, 0.16);
  outline: 2px solid #59b7de;
  outline-offset: 2px;
}

.employee-portal-menu-bars,
.employee-portal-menu-bars::before,
.employee-portal-menu-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  content: '';
}

.employee-portal-menu-bars {
  position: relative;
}

.employee-portal-menu-bars::before,
.employee-portal-menu-bars::after {
  position: absolute;
  left: 0;
}

.employee-portal-menu-bars::before {
  top: -5px;
}

.employee-portal-menu-bars::after {
  top: 5px;
}

.employee-portal-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 180px;
  max-width: min(240px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #14171a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.employee-portal-menu-panel[hidden] {
  display: none;
}

.employee-portal-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f2f5f8;
  padding: 10px 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.employee-portal-menu-item:hover,
.employee-portal-menu-item:focus,
.employee-portal-menu-item:focus-visible {
  background: rgba(89, 183, 222, 0.16);
  outline: 2px solid #59b7de;
  outline-offset: 2px;
}
