.ppsgenChainFields {
  display: flex;
  position: relative;
}

.ppsgenChainFieldsLeft {
  display: inline-flex;
  position: relative;
  min-width: 500px;
  width: 500px;
  padding: 10px;
}

.ppsgenChainFieldsRight {
  display: inline-flex;
  position: relative;
  width: calc(100% - 500px);
  padding: 10px;
  min-width: 620px;
}

.ppsgenChainFieldsRight .ppsgenComponentsList {
  width: 100%;
}

.ppsgenCfbContainer {
  width: 100%;
}

.ppsgenCfbAddFieldWrapper {
  display: flex;
  position: relative;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.ppsgenCfbAddFieldLabel {
  font-size: 14px;
  padding-right: 10px;
}

.ppsgenCfbAddFieldList {
  margin-right: 10px;
  max-width: 210px !important;
  font-size: 12px !important;
  border: 1px solid #7e90ed !important;
}

.ppsgenCfbAddFieldBtn {
  background: #3f51b5;
  color: white;
  border-top: 2px solid #5679d3;
  border-bottom: 2px solid #051d87;
  border-left: 2px solid #5679d3;
  border-right: 2px solid #051d87;
  border-radius: 4px;
  font-size: 12px;
  line-height: 18px;
  padding: 5px 10px;
  cursor: pointer;
}

.ppsgenCfbAddFieldLabel {
  color: #253695;
}

.ppsgen-chain-ghost {
  opacity: 0.3;
}

.ppsgen-chain-chosen {
  background: #d0ebff;
}

.ppsgen-chain-drag {
  opacity: 0.6;
}

.ppsgenCfbFieldsWrapper {
  display: table;
  position: relative;
  width: 100%;
  background: #e1e5ff;
  padding: 20px 10px;
}

.ppsgenComponentListTitle {
  display: block;
  position: relative;
  font-size: 1em;
  /* margin: 10px 0px; */
  padding: 10px 5px;
  font-size: 15px;
  font-weight: bold;
  color: #253695;
}

.ppsgenCfbFieldsWrapperSizeChanger {
  display: flex;
  position: relative;
  justify-content: space-between;
}

.ppsgenCfbSizeChangerToggle,
.ppsgenCfbSizeChangerBtn {
  display: inline-block;
  position: relative;
  background: #3f51b5;
  color: white;
  border-top: 2px solid #5679d3;
  border-bottom: 2px solid #051d87;
  border-left: 2px solid #5679d3;
  border-right: 2px solid #051d87;
  border-radius: 5px 5px 0px 0px;
  font-size: 14px;
  line-height: 14px;
  padding: 5px 10px;
  opacity: 0.8;
  cursor: pointer;
}

.ppsgenCfbSizeChangerBtn {
  margin-left: 5px;
}

.ppsgenCfbSizeChangerToggle:hover,
.ppsgenCfbSizeChangerBtn:hover {
  opacity: 1;
}

.ppsgenCfbSizeChangerToggleActive,
.ppsgenCfbSizeChangerBtnActive {
  opacity: 1;
}

@keyframes ppsgenBoxShadowFade {
  0% {
    box-shadow: 0 0 0px 0px rgba(100, 100, 100, 0.1);
  }

  50% {
    box-shadow: 0 0 10px 4px rgba(100, 100, 100, 0.5);
  }

  100% {
    box-shadow: 0 0 0px 0px rgba(100, 100, 100, 0.8);
  }
}

.ppsgenCffOptionContainerTitle {
  display: block;
  position: relative;
  font-size: 1.3em;
  color: #253695;
}

.ppsgenCffOptionContainerSubtitle {
  display: block;
  position: relative;
  font-size: 1em;
  margin: 10px 0px;
  color: #253695;
}

.ppsgenCffDeleteBtn,
.ppsgenCffDuplicateBtn {
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  cursor: pointer;
  background: #3f51b5;
  color: white;
  padding: 5px;
  margin: 1px;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
}

.ppsgenCffActionBtns {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ppsgenChainSubmitsWrapperWarning {
  display: block;
  position: relative;
  margin-bottom: 10px;
  background: #e1e5ff;
  padding: 10px;
  border-radius: 2px;
  font-size: 14px;
  padding-left: 15px;
  border-left: 3px solid orange;
}

.ppsgenChainSubmitsRowTitle {
  display: flex;
  position: relative;
  background: #e1e5ff;
  padding: 4px;
  border-radius: 2px;
  font-size: 14px;
  padding-left: 10px;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.ppsgenChainSubmitsRow {
  margin-bottom: 15px;
}

.ppsgenChainSubmitsRowData {
  display: none;
  position: relative;
  margin-top: 10px;
  background: #e1e5ff;
  padding: 10px;
}

.ppsgenChainSubmitsRowDataFieldKey {
  font-weight: bold;
}

.ppsgenChainSubmitsRowDataField {
  background: #f5f6ff;
  padding: 2px;
  padding-left: 10px;
  margin-bottom: 3px;
}

.ppsgenChainSubmitsRowTitleVerifyBtn,
.ppsgenChainSubmitsRowTitleDeleteBtn {
  font-size: 14px;
  line-height: 20px;
  padding: 2px;
}

.ppsgenChainSubmitsRowTitleVerifyBtn:hover,
.ppsgenChainSubmitsRowTitleDeleteBtn:hover {
  color: white;
}

.ppsgenChainSubmitsRowTitleEl {
  padding: 2px;
}

.ppsgenChainSubmitsRowTitleBtns {
  min-width: 100px;
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.ppsgenChainStatsWrapper {
  display: flex;
  position: relative;
  background: #e1e5ff;
  padding: 5px 10px;
  border-radius: 2px;
  font-size: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ppsgenChainStatsRow {
  min-width: 200px;
}

.ppsgenChainStatsRow .dashicons {
  color: #7487ff;
}

.ppsgenChainStepStatsDynamic {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ppsgenChainStepStatsActions,
.ppsgenChainStatsActions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  margin-top: 10px;
  margin-right: 10px;
  justify-content: flex-end;
}

.ppsgenChainStatsActions button,
.ppsgenChainStepStatsActions button {
  display: flex;
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.ppsgenChainStepStatsGroup {
  background: #e1e5ff;
  border-radius: 4px;
  padding: 12px;
}

.ppsgenChainStepStatsGroupTitle {
  font-size: 15px;
  font-weight: 700;
  color: #253695;
  margin-bottom: 10px;
}

.ppsgenChainStepStatsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.ppsgenChainStepStatCard {
  background: #f5f6ff;
  border-radius: 4px;
  padding: 10px 12px;
}

.ppsgenChainStepStatLabel {
  font-size: 12px;
  line-height: 1.4;
  color: #58627a;
  margin-bottom: 6px;
}

.ppsgenChainStepStatValue {
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: #253695;
}

.ppsgenChainContactsIntro {
  margin-bottom: 12px;
  color: #4b5563;
}

.ppsgenChainContactsContactCell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ppsgenChainContactsTable [data-key='next_run_at'] {
  text-align: center;
  width: 100px !important;
}

.ppsgenChainContactsActivityText {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.ppsgenContactIncomingIndicatorBadge {
  display: none;
  align-items: center;
  justify-content: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.16);
}

.ppsgenContactIncomingIndicatorBadge.is-active {
  display: inline-flex;
}

.ppsgenContactIncomingIndicatorBadge .dashicons {
  width: 12px;
  height: 12px;
  font-size: 12px;
  line-height: 12px;
}

.ppsgenChainContactsStats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.ppsgenChainContactsMetaRow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ppsgenChainContactsStat {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2f3a66;
  font-size: 11px;
  line-height: 1.4;
}

.ppsgenChainContactsStatScore {
  background: #eafaf0;
  color: #136c3e;
  font-weight: 700;
}

.ppsgenChainContactsStatMetric {
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding-right: 6px;
}

.ppsgenChainContactsStatTitle {
  font-weight: 700;
  color: #23314d;
}

.ppsgenChainContactsStatValue {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #f8fbff;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.ppsgenChainContactsStatValue.is-total {
  background: #edf6ff;
  color: #0f4fa8;
  border-color: rgba(59, 130, 246, 0.22);
}

.ppsgenChainContactsStatValue.is-suspicious {
  background: #fff1f2;
  color: #b42318;
  border-color: rgba(239, 68, 68, 0.22);
}

.ppsgenChainContactsStatValue.is-live {
  background: #edfdf5;
  color: #0f7a45;
  border-color: rgba(16, 185, 129, 0.22);
}

.ppsgenChainContactsActions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ppsgenChainContactsActionsRow td {
  padding-top: 0 !important;
}

.ppsgenChainContactsActionsRow .ppsgenChainContactsStats {
  margin-top: 0;
}

.ppsgenChainContactsActionsRow .ppsgenChainContactsActions {
  margin-top: 0;
  justify-content: flex-end;
}

.ppsgenChainContactsTable td[data-key="contact_email"] .ppsgenTableListCellContent,
.ppsgenChainContactsTable td[data-key="contact_tags"] .ppsgenTableListCellContent {
  max-width: 100%;
  max-height: 50px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  margin: 0 auto;
  display: inline-block;
  transition: all 0.3s ease;
}

.ppsgenChainContactsTable td[data-key="contact_email"] .ppsgenTableListCellContent:hover,
.ppsgenChainContactsTable td[data-key="contact_tags"] .ppsgenTableListCellContent:hover {
  white-space: normal;
  max-height: 300px;
  overflow: visible;
  z-index: 10;
  position: relative;
  padding: 0;
}

.ppsgenChainContactsAction {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f5f7;
  color: #253695;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.4;
}

.ppsgenChainContactsActionBtn {
  border: 0;
  cursor: pointer;
}

.ppsgenChainContactsAction:hover {
  background: #e1e5ff;
  color: #1d2d7a;
}

.ppsgenChainContactsActionDanger {
  background: #fff1f1;
  color: #b42318;
}

.ppsgenChainContactsActionDanger:hover {
  background: #ffdede;
  color: #912018;
}

.ppsgenVerifiedIcon {
  color: #7487ff;
}

.ppsgen-chain-type-empty {
  padding-right: 5px;
}

.ppsgenCffOptionContainer .ppsgenComponentOptionsList {
  background: #e1e5ff;
}

.ppsgenCffOptionContainer .ppsgenComponentOptionsList .ppsgenComponentRowMB0:nth-child(3) .ppsgenComponentOption {
  width: 100%;
  min-width: 300px;
}

.ppsgenCffOptionContainer .ppsgenComponentOptionsList .ppsgenComponentOption input {
  font-size: 12px;
}

.ppsgenStatsTrendPanel {
  margin-top: 20px;
  padding: 18px 20px 20px;
  background: #fff;
  border: 1px solid #e3e6ef;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(31, 41, 55, 0.05);
}

.ppsgenStatsTrendToolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ppsgenStatsTrendGroup {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ppsgenStatsTrendBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d4d9e6;
  border-radius: 999px;
  background: #f8f9fc;
  color: #384152;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ppsgenStatsTrendBtn:hover {
  border-color: #aeb8d3;
  background: #eef2fb;
  color: #1f2937;
}

.ppsgenStatsTrendBtnActive {
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #fff;
}

.ppsgenStatsTrendLegend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.ppsgenStatsTrendLegendItem {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
}

.ppsgenStatsTrendColor {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.ppsgenStatsTrendColorPrimary {
  background: #2563eb;
}

.ppsgenStatsTrendColorSecondary {
  background: #10b981;
}

.ppsgenStatsTrendColorTertiary {
  background: #8b5cf6;
}

.ppsgenStatsTrendColorDanger {
  background: #ef4444;
}

.ppsgenStatsTrendChart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(38px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 200px;
  padding-top: 8px;
}

.ppsgenStatsTrendCol {
  min-width: 0;
}

.ppsgenStatsTrendBars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 150px;
}

.ppsgenStatsTrendBar {
  width: 100%;
  max-width: 14px;
  min-height: 2px;
  border-radius: 8px 8px 3px 3px;
}

.ppsgenStatsTrendBarPrimary {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
}

.ppsgenStatsTrendBarSecondary {
  background: linear-gradient(180deg, #6ee7b7 0%, #10b981 100%);
}

.ppsgenStatsTrendBarTertiary {
  background: linear-gradient(180deg, #c4b5fd 0%, #8b5cf6 100%);
}

.ppsgenStatsTrendBarDanger {
  background: linear-gradient(180deg, #fca5a5 0%, #ef4444 100%);
}

.ppsgenStatsTrendLabel {
  margin-top: 8px;
  color: #6b7280;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ppsgenStatsTrendEmpty {
  padding: 16px 0 4px;
  color: #6b7280;
  font-size: 13px;
}

.ppsgenComponentOptionsList input {
  max-width: 150px;
}

.ppsgen-chain-col {
  display: block;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  border: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: move;
  padding: 10px;
  background: #3f51b5;
  color: #ffffff;
  border-left: 0;
  border-top: 2px solid #5679d3;
  border-bottom: 2px solid #051d87;
  border-right: 0;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

.ppsgen-chain-col.click-animate {
  animation: ppsgenBoxShadowFade 0.3s ease-out;
}

.ppsgen-chain-col-active {
  border: 2px solid #7f90ef;
  background: #5569da;
}

.ppsgen-chain-col-inner {
  display: block;
  position: relative;
  width: 100%;
  min-height: 50px;
  padding: 10px;
  background: #e1e5ff;
  border: 1px dashed #c5cae9;
  border-radius: 3px;
  color: #3f51b5;
  align-items: start;
}

.ppsgen-chain-col[data-field-type='row'] {
  display: block;
  width: 100%;
}

.ppsgen-chain-col[data-field-type='row'] > .ppsgen-chain-col-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
}

.ppsgen-chain-col[data-field-type='column'] {
  display: block;
  width: 100%;
  min-width: 0;
  /* flex: 1 1 auto; */
}

/* 
.ppsgen-chain-col[data-field-type="column"][style*="width"] {
  flex: 0 0 auto;
} */

.ppsgen-chain-col[data-field-type='column'] > .ppsgen-chain-col-inner {
  /* display: flex;
  flex-direction: column;
  flex-wrap: nowrap; */
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
}

.ppsgen-chain-col-active {
  border-color: #009688;
  background: #009688;
}

.ppsgen-chain-label {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: #3f51b5;
  padding: 0 5px;
  z-index: 999;
  font-size: 12px;
  border-radius: 0px 0px 5px 5px;
  color: #ffffff;
  transition: background 0.2s ease;
}

.ppsgen-chain-col-active > .ppsgen-chain-label {
  background: #009688;
}

#ppsgenAnimOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ppsgenAnimOverlayBg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.ppsgenAnimOverlayContent {
  position: relative;
  background: #fff;
  padding: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  z-index: 99999;
}

.ppsgenAnimClose {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
}

.ppsgenAnimGrid {
  display: grid;
  grid-chain-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.ppsgenAnimSquare {
  background: #f0f0f0;
  border: 1px solid #ddd;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  text-align: center;
  padding: 5px;
  border-radius: 4px;
  overflow: hidden;
}

.ppsgenAnimSquare.ppsgenAnimated {
  animation-duration: 1s !important;
}

.ppsgenChainStepsWrapper {
  display: flex;
  position: relative;
  border: 2px solid #051d87;
}

.ppsgenChainStepsContainer {
  display: flex;
  position: relative;
  overflow-x: auto;
  gap: 5px;
  padding: 5px;
  width: 100%;
  border-right: 2px solid #051d87;
  align-items: center;
}

.ppsgenChainStepsBtns {
  display: block;
  position: relative;
  overflow-x: auto;
  padding: 5px;
  max-width: 145px;
}

.ppsgenChainStepsBtn {
  display: inline-flex;
  position: relative;
  gap: 5px;
  background: #3f51b5;
  color: white;
  border-top: 2px solid #5679d3;
  border-bottom: 2px solid #051d87;
  border-left: 2px solid #5679d3;
  border-right: 2px solid #051d87;
  border-radius: 4px;
  font-size: 14px;
  line-height: 14px;
  padding: 2px;
  cursor: pointer;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.ppsgenChainStepsBtnSave,
.ppsgenChainStepsBtnAdd {
  margin-top: 5px;
}

.ppsgenChainStepsBtn[disabled] {
  opacity: 0.5;
}

.ppsgenChainStep {
  display: inline-flex;
  position: relative;
  height: 60px;
  width: 130px;
  padding: 5px;
  cursor: pointer;
  background: #3f51b5;
  color: white;
  border-radius: 4px;
  border-top: 2px solid #5679d3;
  border-bottom: 2px solid #051d87;
  border-left: 2px solid #5679d3;
  border-right: 2px solid #051d87;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: 0.4s all;
}

.ppsgenChainStep span {
  display: block;
  line-height: 1.4;
  max-height: calc(1.4em * 2);
  overflow: hidden;
  text-align: center;
}

.ppsgenChainStep:hover {
  opacity: 1;
}

.ppsgenChainStep[data-step-active='1']::after {
  display: inline-block;
  position: absolute;
  right: 3px;
  top: 3px;
  background: #8bc34a;
  content: ' ';
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ppsgenChainStep[data-step-active='0']::after {
  display: inline-block;
  position: absolute;
  right: 3px;
  top: 3px;
  background: red;
  content: ' ';
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ppsgenChainStepActive {
  opacity: 1;
}

.ppsgenChainStepBtns {
  display: flex;
  position: relative;
  margin-top: 10px;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-end;
}

.ppsgenChainStepBtnStyle {
  display: inline-block;
  position: relative;
  background: #3f51b5;
  color: white;
  border-top: 2px solid #5679d3;
  border-bottom: 2px solid #051d87;
  border-left: 2px solid #5679d3;
  border-right: 2px solid #051d87;
  border-radius: 5px 5px 0px 0px;
  font-size: 14px;
  line-height: 14px;
  padding: 5px 10px;
  margin-right: 5px;
  opacity: 0.8;
  cursor: pointer;
}

.ppsgenChainStepBtnActive {
  display: inline-block;
  opacity: 1;
}

.ppsgenChainStepWrapper {
  display: block;
  position: relative;
}

.ppsgenChainStepTabContent {
  display: none;
  position: relative;
  border: 2px solid #051d87;
}

.ppsgenChainStepTabContentActive {
  display: block;
  position: relative;
  overflow: hidden;
}

.ppsgenChainFieldsWrapper {
  display: flex;
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
}

.ppsgenChainStepBtnsRight {
  display: flex;
  position: relative;
  margin-bottom: 5px;
  gap: 5px;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-end;
}

.ppsgenChainStepBtnsRight .ppsgenChainStepBtnStyle {
  border-radius: 5px;
  opacity: 1;
  margin-right: 0px;
  gap: 5px;
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.ppsgenChainStepTabContent[data-tab='stepOptions'] {
  padding: 10px;
  padding-top: 0px;
}

.ppsgenChainOptionsBtnApplyChain,
.ppsgenChainOptionsBtnSave {
  display: inline-flex;
  position: relative;
  gap: 5px;
  background: #3f51b5;
  color: white;
  border-top: 2px solid #5679d3;
  border-bottom: 2px solid #051d87;
  border-left: 2px solid #5679d3;
  border-right: 2px solid #051d87;
  border-radius: 4px;
  font-size: 14px;
  line-height: 14px;
  padding: 5px;
  cursor: pointer;
  flex-direction: row;
  align-items: center;
}

.ppsgenChainOptionFieldsExitBtnDelete,
.ppsgenChainOptionFieldsExitBtnAdd,
.ppsgenChainOptionFieldsEntryBtnDelete,
.ppsgenChainOptionFieldsEntryBtnAdd {
  display: inline-flex;
  position: relative;
  gap: 5px;
  background: #3f51b5;
  color: white;
  border-top: 2px solid #5679d3;
  border-bottom: 2px solid #051d87;
  border-left: 2px solid #5679d3;
  border-right: 2px solid #051d87;
  border-radius: 4px;
  font-size: 14px;
  line-height: 14px;
  padding: 5px;
  cursor: pointer;
  flex-direction: row;
  align-items: center;
  width: auto !important;
}

.ppsgenChainOptionFieldsExitEtalon,
.ppsgenChainOptionFieldsEntryEtalon {
  opacity: 0.8;
}

.ppsgenChainOptionsBtnApplyChain[disabled],
.ppsgenLoadChainPreview[disabled],
.ppsgenChainOptionsBtnSave[disabled],
.ppsgenChainStepsBtnAdd[disabled],
.ppsgenChainStepBtnSave[disabled] {
  opacity: 0.5;
}

.ppsgenChainOptionsBarApplyChain {
  display: flex;
  position: absolute;
  left: 0px;
  top: 0px;
  width: 0%;
  height: 100%;
  z-index: 0;
  opacity: 1;
  content: ' ';
  background: #4caf50;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.ppsgenEcaStatsWrapper {
  display: flex;
  position: relative;
  background: #e1e5ff;
  padding: 5px 10px;
  border-radius: 2px;
  font-size: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ppsgenEcaStatsRow {
  min-width: 200px;
  color: black;
}

.ppsgenEcaStatsRow .dashicons {
  color: #7487ff;
}

.ppsgenChainStatsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.ppsgenChainStatsCard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbe4ff;
  box-shadow: 0 10px 24px rgba(63, 81, 181, 0.08);
  overflow: hidden;
}

.ppsgenChainStatsCard::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: #7c8cff;
}

.ppsgenChainStatsCard.is-flow::before {
  background: linear-gradient(90deg, #5b6cff 0%, #7c8cff 100%);
}

.ppsgenChainStatsCard.is-delivery::before {
  background: linear-gradient(90deg, #0ea5e9 0%, #38bdf8 100%);
}

.ppsgenChainStatsCard.is-open::before {
  background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
}

.ppsgenChainStatsCard.is-click::before {
  background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.ppsgenChainStatsCard.is-danger::before {
  background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

.ppsgenChainStatsCard.is-conversion::before {
  background: linear-gradient(90deg, #14b8a6 0%, #2dd4bf 100%);
}

.ppsgenChainStatsCardHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ppsgenChainStatsCardTitleWrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ppsgenChainStatsCardIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.ppsgenChainStatsCard.is-delivery .ppsgenChainStatsCardIcon {
  background: #ecfeff;
  color: #0891b2;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.14);
}

.ppsgenChainStatsCard.is-open .ppsgenChainStatsCardIcon {
  background: #f5f3ff;
  color: #7c3aed;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.14);
}

.ppsgenChainStatsCard.is-click .ppsgenChainStatsCardIcon {
  background: #ecfdf5;
  color: #059669;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.14);
}

.ppsgenChainStatsCard.is-danger .ppsgenChainStatsCardIcon {
  background: #fff1f2;
  color: #dc2626;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.14);
}

.ppsgenChainStatsCard.is-conversion .ppsgenChainStatsCardIcon {
  background: #f0fdfa;
  color: #0f766e;
  box-shadow: inset 0 0 0 1px rgba(20, 184, 166, 0.14);
}

.ppsgenChainStatsCardTitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #24314f;
}

.ppsgenChainStatsCardBody {
  display: grid;
  gap: 8px;
}

.ppsgenChainStatsMetric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.ppsgenChainStatsMetricLabel {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #5d6b8a;
}

.ppsgenChainStatsMetricValue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  background: #eef2ff;
  color: #3341a3;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.ppsgenChainStatsMetricValue.is-primary {
  background: #e8f0ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}

.ppsgenChainStatsMetricValue.is-success {
  background: #eafbf2;
  color: #047857;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.16);
}

.ppsgenChainStatsMetricValue.is-warning {
  background: #fff7e7;
  color: #b45309;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.16);
}

.ppsgenChainStatsMetricValue.is-danger {
  background: #fff0f0;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.16);
}

.ppsgenChainStatsMetricValue.is-muted,
.ppsgenChainStatsMetricValue.is-neutral {
  background: #f1f5f9;
  color: #475569;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
}

@media screen and (max-width: 782px) {
  .ppsgenChainStatsGrid {
    grid-template-columns: 1fr;
  }

  .ppsgenChainStatsCard {
    padding: 13px 14px;
  }
}

.ppsgenChainEditHeaderMain {
  display: block;
  position: relative;
  min-width: 0;
}

.ppsgenChainEditHeaderMeta {
  display: block;
  position: relative;
  min-width: 360px;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid #dbe2ff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(63, 81, 181, 0.08);
  padding: 10px 12px;
}

.ppsgenChainEditHeaderMetaToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 1px solid #d5dbea;
  border-radius: 999px;
  background: #f8f9fc;
  color: #253695;
  cursor: pointer;
  z-index: 2;
}

.ppsgenChainEditHeaderMetaToggle .dashicons {
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
}

.ppsgenChainEditHeaderMetaGrid {
  display: flex;
  position: relative;
  flex-direction: column;
  gap: 6px;
  padding-right: 36px;
}

.ppsgenChainEditHeaderMetaRow {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.ppsgenChainEditHeaderMetaKey {
  color: #4b5563;
  font-weight: 600;
  white-space: nowrap;
}

.ppsgenChainEditHeaderMetaValue {
  color: #111827;
  text-align: right;
  font-weight: 700;
}

.ppsgenChainEditHeaderMeta.ppsgenChainEditHeaderMetaCollapsed .ppsgenChainEditHeaderMetaRowSecondary {
  display: none;
}

@media screen and (max-width: 1024px) {
  .ppsgenModulePageTitleWrapper {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .ppsgenChainEditHeaderMeta {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}
