/* Ngọc Đức HRM · Nút thao tác trong hồ sơ nhân viên. Tách từ bản Apps Script 7.1. */
/* Employee profile actions: one compact menu, scoped to the profile header. */
#view .hr-profilehead.od-has-profile-actions {
  align-items: flex-start;
  flex-wrap: nowrap;
}
#view .od-has-profile-actions > .hr-name {
  min-width: 0;
  flex: 1;
}
#view .od-has-profile-actions .hr-name > div {
  min-width: 0;
}
#view .od-has-profile-actions .hr-name h2 {
  overflow-wrap: anywhere;
}
.od-profile-actions {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}
.od-profile-actions-trigger {
  display: grid;
  place-items: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.od-profile-actions-trigger:hover,
.od-profile-actions-trigger[aria-expanded="true"] {
  background: var(--bg);
  border-color: var(--muted);
}
.od-profile-actions-trigger:focus-visible,
.od-profile-action-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.od-profile-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  width: 224px;
  max-width: calc(100vw - 40px);
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 12px 30px #0002;
}
.od-profile-actions-menu[hidden] {
  display: none;
}
.od-profile-actions-menu.od-flip-up {
  top: auto;
  bottom: calc(100% + 8px);
}
.od-profile-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
.od-profile-action-item:hover,
.od-profile-action-item:focus-visible {
  background: var(--bg);
}
.od-profile-action-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.od-profile-action-delete {
  color: #c62c3e;
  border-top: 1px solid var(--line);
  margin-top: 4px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
body.dark .od-profile-action-delete {
  color: #ff8192;
}
.od-profile-action-delete:hover,
.od-profile-action-delete:focus-visible {
  background: var(--soft);
}
@media print {
  .od-profile-actions {
    display: none !important;
  }
}
