.row-actions-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}

.row-actions-toggle {
  --row-actions-control-size: 36px;
  border: 1px solid #d7deea;
  background: #fff;
  color: #344767;
  border-radius: 8px;
  width: var(--row-actions-control-size);
  height: var(--row-actions-control-size);
  min-width: var(--row-actions-control-size);
  min-height: var(--row-actions-control-size);
  max-width: var(--row-actions-control-size);
  max-height: var(--row-actions-control-size);
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: box-shadow .22s cubic-bezier(.22, 1, .36, 1), transform .22s cubic-bezier(.22, 1, .36, 1), border-color .22s ease;
}

.row-actions-toggle i {
  width: 18px;
  height: 18px;
  font-size: 18px !important;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.row-actions-toggle:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.row-actions-menu.is-open .row-actions-toggle {
  transform: rotate(90deg);
  border-color: #b8c6df;
}

.row-actions-panel {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  left: auto;
  transform: translate(12px, -50%) scale(0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(1.5px);
  transform-origin: right center;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, visibility .2s ease, filter .24s ease;
  background: #fff;
  border: 1px solid #e3e8f2;
  border-radius: 10px;
  height: var(--row-actions-control-size, 36px);
  min-height: var(--row-actions-control-size, 36px);
  max-height: var(--row-actions-control-size, 36px);
  padding: 0 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 20;
  white-space: nowrap;
  box-sizing: border-box;
}

.row-actions-menu[data-menu-direction="right"] .row-actions-panel {
  left: calc(100% + 8px);
  right: auto;
  transform: translate(-12px, -50%) scale(0.94);
  transform-origin: left center;
}

.row-actions-panel.form-row-actions {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  height: var(--row-actions-control-size, 36px) !important;
  min-height: var(--row-actions-control-size, 36px) !important;
  max-height: var(--row-actions-control-size, 36px) !important;
  width: max-content !important;
  max-width: none !important;
  gap: 0.45rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.row-actions-panel.form-row-actions > a,
.row-actions-panel.form-row-actions > button,
.row-actions-panel.form-row-actions > span {
  width: var(--row-actions-control-size, 36px) !important;
  height: var(--row-actions-control-size, 36px) !important;
  min-width: var(--row-actions-control-size, 36px) !important;
  min-height: var(--row-actions-control-size, 36px) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

.row-actions-panel.form-row-actions > a#action-button-type-annotation {
  min-width: var(--row-actions-control-size, 124px) !important;
}

.row-actions-panel.form-row-actions > a i,
.row-actions-panel.form-row-actions > button i,
.row-actions-panel.form-row-actions > span i {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* Remove comportamento genérico de hover/escala apenas no componente de ações */
table.table tbody tr td.row-actions-cell a:hover i,
table.table tbody tr td.row-actions-cell button:hover i,
table.table tbody tr td.row-actions-cell button:hover a i,
table.table tbody tr td:last-child:not(.row-actions-cell) button:hover:not(.disabled) i {
  transform: none !important;
  color: #344767 !important;
}

.row-actions-menu.is-open .row-actions-panel {
  transform: translate(0, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: blur(0);
} 
