/* ServerPACS v42 - acciones compactas, accesibles y estables. */
#studies td[data-col="actions"] {
  width: 255px;
  min-width: 255px;
  max-width: 255px;
  padding-inline: 5px !important;
  white-space: normal;
}

.study-row-actions {
  display: grid;
  grid-template-columns: repeat(8, 28px);
  align-items: center;
  justify-content: start;
  gap: 3px;
  min-width: 0;
}

.study-row-actions .study-action-icon {
  position: relative;
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

.study-row-actions .study-action-icon > span[aria-hidden="true"] {
  display: block;
  font-size: 15px;
  line-height: 1;
}

/* Conserva el texto para lectores de pantalla y scripts antiguos, sin ocupar espacio. */
.study-row-actions .action-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.study-row-actions .study-action-icon:focus-visible {
  outline: 2px solid #51c8ff !important;
  outline-offset: 2px;
}

.study-row-actions .deleteOneBtn {
  color: #ffb3b3 !important;
  border-color: #8f3b45 !important;
}

body.ultra #studies td[data-col="actions"] {
  width: 223px;
  min-width: 223px;
  max-width: 223px;
}

body.ultra .study-row-actions {
  grid-template-columns: repeat(8, 25px);
  gap: 2px;
}

body.ultra .study-row-actions .study-action-icon {
  width: 25px !important;
  min-width: 25px !important;
  max-width: 25px !important;
  height: 25px !important;
  min-height: 25px !important;
  font-size: 13px !important;
}

@media (max-width: 760px) {
  #studies td[data-col="actions"] {
    width: 112px;
    min-width: 112px;
    max-width: 112px;
  }

  .study-row-actions {
    grid-template-columns: repeat(3, 28px);
  }
}
