/* ================================================================
   Biz Events panel — reuses the Interceptors panel shell (ipd-*,
   interceptor-panel.css) and the biz events tab pills/dots (be-*,
   biz-events-tab.css); only the panel-specific cells live here.
   ================================================================ */

.bep-dialog .bep-ver-pill {
  padding: 0;
  background: transparent;
  color: var(--bm-text-secondary);
  font-size: 11px;
}

.bep-dialog .bep-target-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.bep-dialog .bep-target-cell .be-target-ver-pill {
  background: var(--bm-navy-50, #F4F5FA);
  color: var(--bm-text-secondary);
}

.bep-dialog .bep-target-cell .be-frame-name {
  min-width: 0;
}

.bep-dialog .bep-env-column {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.bep-dialog .bep-event-header {
  background: var(--bm-navy-50, #F4F5FA);
}

.bep-dialog .bep-event-header:hover {
  background: var(--bm-navy-50, #F4F5FA) !important;
}

.bep-dialog .bep-event-header:hover .ipd-td {
  border-bottom-color: var(--bm-border-subtle) !important;
}

.bep-dialog .bep-event-header th {
  text-align: left;
}

.bep-dialog .bep-expand {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.bep-dialog .bep-expand > md-icon {
  flex: none;
  margin: 0;
}

.bep-dialog .bep-event-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.bep-dialog .bep-event-details .ipd-name-text {
  max-width: 100%;
}

.bep-dialog .bep-child-version {
  padding-left: 30px;
}

.bep-dialog .bep-event-switch {
  margin: 0;
}

.bep-dialog .bep-row--disabled td:not(.ipd-td--actions) {
  opacity: .6;
}

/* Keep each action in the same slot across version rows. */
.bep-dialog .bep-actions-cell {
  display: grid;
  grid-template-columns: repeat(5, 30px) 14px;
  align-items: center;
  justify-items: center;
  gap: 4px;
}

.bep-dialog .bep-actions-cell > * {
  grid-row: 1;
}

.bep-dialog .bep-actions-cell .be-row__action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  padding: 0;
}

.bep-dialog .bep-action-glyph {
  display: block;
  line-height: 1;
  white-space: nowrap;
}

.bep-dialog .bep-actions-cell .be-action-icon--mappings { grid-column: 3; }
.bep-dialog .bep-edit-action { grid-column: 4; }
.bep-dialog .bep-delete-action { grid-column: 5; }
.bep-dialog .bep-actions-cell md-progress-circular { grid-column: 6; }

/* Blocked transitions still need hover events for their explanation. */
.bep-dialog .bep-actions-cell:not(.bep-actions-cell--busy) .be-tr-icon--disabled {
  pointer-events: auto !important;
}

.bep-dialog .bep-actions-cell--busy .be-row__action-icon {
  opacity: .45;
  pointer-events: none;
}

/* Last Updated — never wider than its column: long names / emails truncate
   (bm-user's compact title attribute still shows the full value on hover). */
.bep-dialog .ipd-owner-changed-cell {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.bep-dialog .ipd-owner-changed-cell bm-user,
.bep-dialog .ipd-owner-changed-cell .bm-user {
  display: flex;
  max-width: 100%;
  min-width: 0;
}

.bep-dialog .ipd-owner-changed-cell .bm-user-text,
.bep-dialog .ipd-owner-changed-cell .bm-user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
