.rebate-editor {
  width: min(1220px, 96vw);
  max-width: 1220px;
}
.rebate-editor > .field {
  max-width: 540px;
}
.rebate-editor .plan-help {
  margin: 18px 0;
}
.rebate-editor .plan-batch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
  padding: 14px;
  background: #f5f8fc;
  border: 1px solid #e0e9f4;
  border-radius: 9px;
}
.rebate-editor .plan-batch input {
  max-width: 180px;
}
.rebate-editor .plan-batch select {
  max-width: 180px;
}
.rebate-products {
  max-height: 46vh;
  overflow: auto;
}
.rebate-products th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f8fc;
}
.rebate-products input[type="number"] {
  min-width: 110px;
  max-width: 210px;
}
.rebate-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 13px;
  color: #71879b;
  margin: 18px 0;
}
.rebate-pager > span:first-child {
  margin-right: auto;
}
.rebate-team-list {
  max-height: 48vh;
  overflow: auto;
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.rebate-team-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1e8f2;
  padding: 14px;
  border-radius: 8px;
}
.rebate-team-list small {
  margin-left: auto;
  color: #7b8da4;
}
.rebate-confirm {
  z-index: 1200;
}
.rebate-workspace .section-heading p {
  color: #7b8da4;
  font-size: 13px;
}
@media (max-width: 700px) {
  .rebate-editor .plan-batch input,
  .rebate-editor .plan-batch select {
    max-width: 100%;
    flex: 1 1 130px;
  }
  .rebate-products table {
    min-width: 680px;
  }
  .rebate-team-list label {
    flex-wrap: wrap;
  }
  .rebate-pager {
    gap: 7px;
    font-size: 12px;
  }
}
.rebate-workspace .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.rebate-editor {
  padding: 24px 28px;
}
.rebate-editor > .modal-heading {
  top: -24px;
  justify-content: space-between;
}
.rebate-editor > .modal-heading p {
  margin: 5px 0;
  color: #7b8da4;
  font-size: 13px;
}
.rebate-editor > .dialog-actions {
  bottom: -24px;
  padding: 16px 0 10px;
  z-index: 3;
}
.modal-backdrop.rebate-confirm {
  z-index: 1200 !important;
}
.earnings-rules-link {
  justify-self: end;
}
@media (max-width: 700px) {
  .rebate-editor {
    padding: 18px 16px;
  }
  .rebate-editor > .modal-heading {
    top: -18px;
  }
  .rebate-editor > .dialog-actions {
    bottom: -18px;
  }
}
