.ert_toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  align-content: start;
  min-width: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #e5eaf2;
  background: #fbfdff;
}

.ert_tabs,
.ert_actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ert_tabs {
  flex: 1 1 auto;
  flex-wrap: wrap;
}

.ert_actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.ert_tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}

.ert_tab em,
.ert_action_btn em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.ert_tab:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #f8fbff;
}

.ert_tab.is-active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eff6ff;
}

.ert_tab:disabled,
.ert_tab.is-disabled,
.ert_action_btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.ert_action_btn {
  white-space: nowrap;
}

.ert_status_pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.ert_status_pill.is-ok {
  border-color: #bbf7d0;
  background: #dcfce7;
  color: #047857;
}

@media (max-width: 960px) {
  .ert_toolbar {
    align-items: flex-start;
  }

  .ert_actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}
