.entity-row-actions {
  position: fixed;
  inset: 0 auto auto 0;
  margin: 0;
  padding: 6px;
  width: max-content;
  min-width: 144px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow: auto;
  border: 1px solid var(--border, #d8cbbd);
  border-radius: 10px;
  color: var(--text, inherit);
  background: var(--surface, Canvas);
  box-shadow: 0 8px 24px #0003;
}
:is(#content,#modalContent) .table .entity-row-actions :is(button,a) {
  display: block;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  white-space: normal;
}
.entity-row-actions .danger {
  border-top: 1px solid var(--border, #d8cbbd);
  border-radius: 0;
}
.entity-row-actions-toggle { white-space: nowrap; }
.entity-row-actions-toggle::after { content: ' ▾'; }


.table-row-actions .entity-row-actions-toggle { white-space: normal; }
.table-row-actions:not(:has(.entity-row-actions > :not([hidden]))) .entity-row-actions-toggle { display:none; }
@media (min-width:601px) {
  :is(#content,#modal) .table:not(.entity-list-table) table { width:100%; }
  :is(#content,#modal) .table:not(.entity-list-table) th,
  :is(#content,#modal) .table:not(.entity-list-table) td {
    padding:7px 6px;
    font-size:var(--ui-text-sm,12px);
    vertical-align:middle;
    overflow-wrap:anywhere;
  }
  :is(#content,#modal) .table:not(.entity-list-table) th { font-size:var(--ui-caption,11px); }
  #content .table:not(.entity-list-table) tbody tr { height:60px; }
  #content .table:not(.entity-list-table) td.table-row-actions { min-width:96px; }
}
