/* Pipeline multi-selection shares HireHint's neutral bulk-toolbar language.
   Its grid row reserves space so selected candidates stay reachable. */

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar {
  position: relative;
  bottom: auto;
  display: flex;
  box-sizing: border-box;
  align-items: center;
  flex-wrap: nowrap;
  width: calc(100% - 16px);
  min-height: 52px;
  gap: 8px;
  margin: 8px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--color-white) 12%, transparent);
  border-radius: 14px;
  background: var(--surface-inverse);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: var(--hh-font-caption);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__count {
  display: inline-grid;
  box-sizing: border-box;
  flex: 0 0 auto;
  place-items: center;
  min-width: 24px;
  height: 26px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-radius: var(--radius-8);
  background: var(--hh-ui-control);
  color: var(--hh-color-text-primary);
  font-size: var(--hh-font-caption);
  font-weight: var(--hh-weight-title);
  line-height: 26px;
  font-variant-numeric: tabular-nums;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__actions {
  display: flex;
  min-width: 0;
  width: auto;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin: 0;
  overflow: visible;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__actions::before {
  content: '';
  flex: 0 0 1px;
  width: 1px;
  height: 24px;
  margin-inline-end: 3px;
  background: color-mix(in srgb, var(--color-white) 24%, transparent);
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__more {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__btn {
  box-sizing: border-box;
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 30px;
  min-width: 30px;
  min-height: 34px;
  height: 34px;
  padding: 6px;
  border: 0;
  border-radius: var(--radius-10);
  background: transparent;
  color: color-mix(in srgb, var(--color-white) 84%, transparent);
  font: inherit;
  cursor: pointer;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__btn:is(:hover, :focus-visible, [aria-expanded='true']) {
  background: color-mix(in srgb, var(--color-white) 12%, transparent);
  color: var(--color-white);
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__btn:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: -3px;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__btn .svg {
  width: 18px;
  height: 18px;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__btn--danger,
.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__btn--danger:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--apple-red) 12%, transparent);
  color: var(--apple-red);
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar .movemenu {
  min-width: 64px;
  max-width: 142px;
  flex: 1 1 auto;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar .movemenu__split {
  display: flex;
  min-width: 0;
  width: 100%;
  height: 34px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-white) 32%, transparent);
  border-radius: var(--radius-pill);
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__btn--primary {
  width: 100%;
  min-width: 64px;
  max-width: 100%;
  flex: 1 1 auto;
  gap: 4px;
  padding-inline: 10px;
  border: 1px solid color-mix(in srgb, var(--color-white) 32%, transparent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-white);
  font-weight: var(--hh-weight-label);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar .movemenu__split > .cand-bulkbar__btn:first-child {
  width: auto;
  min-width: 0;
  flex: 1 1 auto;
  border: 0;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar .movemenu__caretbtn {
  flex: 0 0 26px;
  width: 26px;
  min-width: 26px;
  padding: 0;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--color-white) 24%, transparent);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar .movemenu__caretbtn::before { display: none; }

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar .movemenu__careticon { display: block; width: 12px; height: 12px; }

@media (pointer: coarse) {
  .page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__btn { min-width: 40px; width: 40px; flex-basis: 40px; min-height: 44px; height: 44px; }
  .page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__btn--primary { min-width: 64px; width: 100%; flex: 1 1 auto; }
  .page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar .movemenu__split { height: 44px; }
  .page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar .movemenu__split > .cand-bulkbar__btn:first-child { min-width: 0; }
  .page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar .movemenu__caretbtn { min-width: 36px; width: 36px; flex-basis: 36px; }
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar .movemenu__panel {
  top: auto;
  right: 0;
  bottom: calc(100% + var(--space-16));
  color: var(--hh-color-text-primary);
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__menu {
  position: absolute;
  z-index: var(--hh-stack-candidate-bulk-menu);
  bottom: calc(100% + var(--space-16));
  left: 0;
  width: 210px;
  padding: var(--candidate-rail-space-sm);
  border: var(--app-surface-border);
  border-radius: var(--app-menu-radius);
  background: var(--app-menu-bg);
  color: var(--hh-color-text-primary);
  box-shadow: var(--shadow-md);
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__menu[hidden] {
  display: none;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__menu button {
  display: grid;
  width: 100%;
  min-height: var(--hh-control-height);
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: var(--candidate-rail-space-md);
  padding: 0 var(--candidate-rail-space-md);
  border: 0;
  border-radius: var(--app-menu-option-radius);
  background: transparent;
  color: var(--hh-color-text-primary);
  font-size: var(--hh-font-label);
  text-align: left;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__menu button:hover, .page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__menu button:focus-visible {
  background: var(--hh-hover-bg);
  outline: 0;
}

.page-workflow .wf-3col--review :where(#candidate-list) .cand-bulkbar__menu svg {
  width: 16px;
  height: 16px;
  color: var(--hh-color-text-secondary);
}
