.mtDiscount-page {
  min-width: 980px;
  padding: 18px 22px 28px;
  color: #172033;
}

.mtDiscount-page * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.mtDiscount-page-header,
.mtDiscount-toolbar,
.mtDiscount-filter-bar,
.mtDiscount-status-strip,
.mtDiscount-pagination {
  display: flex;
  align-items: center;
}

.mtDiscount-page-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.mtDiscount-title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 760;
  color: #111827;
}

.mtDiscount-subtitle {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.mtDiscount-storage-warning {
  max-width: 920px;
  color: #dc2626;
  font-weight: 700;
  line-height: 1.55;
}

.mtDiscount-toolbar {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mtDiscount-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.mtDiscount-button:hover {
  border-color: #64748b;
  background: #f8fafc;
}

.mtDiscount-button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.mtDiscount-button-primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.mtDiscount-button-primary:hover {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.mtDiscount-button-danger {
  border-color: #dc2626;
  background: #fff;
  color: #b91c1c;
}

.mtDiscount-button-active {
  border-color: #1d4ed8;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.mtDiscount-button-sm {
  min-height: 27px;
  padding: 0 9px;
  font-size: 12px;
}

.mtDiscount-filter-range > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mtDiscount-filter-range .mtDiscount-input {
  width: 92px;
}

.mtDiscount-column-panel {
  margin-bottom: 12px;
  padding: 11px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
}

.mtDiscount-column-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.mtDiscount-column-panel > header span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
}

.mtDiscount-column-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mtDiscount-column-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  padding: 4px 9px;
  border: 1px solid #dbe4ee;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  cursor: move;
  user-select: none;
}

.mtDiscount-column-drag {
  color: #94a3b8;
}

.mtDiscount-product-cell {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 360px;
  align-items: flex-start;
  gap: 8px;
  min-width: 230px;
}

.mtDiscount-product-thumb {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #f3f4f6;
  object-fit: cover;
}

.mtDiscount-product-thumb-empty {
  display: block;
}

.mtDiscount-product-copy {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.mtDiscount-product-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.mtDiscount-check-link {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.mtDiscount-check-link-active {
  color: #dc2626;
}

.mtDiscount-bundle-mark {
  flex: 0 0 auto;
  color: #16a34a;
  font-weight: 800;
}

.mtDiscount-bundle-badge {
  justify-content: center;
  min-width: 48px;
}

.mtDiscount-related-popover {
  position: absolute;
  z-index: 80;
  width: 760px;
  max-width: 86vw;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
  color: #475569;
  font-size: 12px;
}

.mtDiscount-related-popover header,
.mtDiscount-related-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mtDiscount-related-popover header {
  margin-bottom: 7px;
}

.mtDiscount-related-popover header button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.mtDiscount-related-row {
  padding: 6px 0;
  border-top: 1px solid #f1f5f9;
}

.mtDiscount-related-table .mtDiscount-related-row {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) 78px 78px 88px 70px 82px;
  gap: 9px;
  align-items: center;
}

.mtDiscount-related-head {
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
}

.mtDiscount-related-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #2563eb;
  cursor: pointer;
}

.mtDiscount-related-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid #dbeafe;
}

.mtDiscount-related-current {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(76px, auto));
  gap: 7px;
  align-items: center;
  margin-bottom: 7px;
  padding: 8px;
  border: 1px solid #facc15;
  border-radius: 5px;
  background: #fefce8;
  color: #713f12;
  font-weight: 700;
}

.mtDiscount-related-metric-highlight {
  display: inline-block;
  padding: 3px 6px;
  border: 1px solid #facc15;
  border-radius: 4px;
  background: #fef9c3;
  color: #854d0e;
  font-weight: 800;
}

.mtDiscount-row-related-active {
  background: #fffbeb;
}

.mtDiscount-status-strip {
  min-height: 40px;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  margin-bottom: 12px;
}

.mtDiscount-status-strip strong {
  color: #172033;
}

.mtDiscount-update-store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mtDiscount-update-store .mtDiscount-select {
  width: min(360px, 34vw);
  min-width: 240px;
}

.mtDiscount-status-strip-running {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.mtDiscount-offline-sync-error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.mtDiscount-progress-panel {
  margin-bottom: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.mtDiscount-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: #eff6ff;
  border-bottom: 1px solid #bfdbfe;
}

.mtDiscount-progress-summary {
  min-width: 0;
  color: #1e40af;
  font-weight: 700;
}

.mtDiscount-progress-message {
  margin-top: 2px;
  color: #475569;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.mtDiscount-progress-elapsed {
  margin-top: 3px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 650;
}

.mtDiscount-step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.mtDiscount-step {
  position: relative;
  min-width: 0;
  min-height: 94px;
  padding: 10px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.mtDiscount-step:nth-child(5n) {
  border-right: 0;
}

.mtDiscount-step:nth-child(n+6) {
  border-bottom: 0;
}

.mtDiscount-step-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mtDiscount-step-index {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.mtDiscount-step-name {
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtDiscount-step-meta {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.4;
}

.mtDiscount-step-duration {
  margin-top: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.mtDiscount-step-running {
  z-index: 1;
  background: #dbeafe;
  box-shadow: inset 4px 0 0 #2563eb, inset 0 0 0 1px #93c5fd;
}

.mtDiscount-step-running .mtDiscount-step-index {
  background: #2563eb;
  color: #fff;
}

.mtDiscount-step-completed .mtDiscount-step-index {
  background: #16a34a;
  color: #fff;
}

.mtDiscount-step-completed {
  background: #f0fdf4;
  box-shadow: inset 3px 0 0 #22c55e;
}

.mtDiscount-step-completed .mtDiscount-step-duration {
  color: #15803d;
}

.mtDiscount-step-skipped {
  background: #f8fafc;
}

.mtDiscount-step-skipped .mtDiscount-step-index {
  background: #94a3b8;
  color: #fff;
}

.mtDiscount-step-failed,
.mtDiscount-step-partial {
  background: #fff7ed;
}

.mtDiscount-step-failed .mtDiscount-step-index,
.mtDiscount-step-partial .mtDiscount-step-index {
  background: #ea580c;
  color: #fff;
}

.mtDiscount-update-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border-top: 1px solid #dbe4ee;
  background: #f8fafc;
}

.mtDiscount-evidence-block {
  min-width: 0;
  border: 1px solid #dbe4ee;
  border-radius: 5px;
  background: #fff;
  overflow: hidden;
}

.mtDiscount-evidence-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid #e5e7eb;
  color: #334155;
  font-size: 12px;
}

.mtDiscount-evidence-head span {
  color: #64748b;
  font-size: 11px;
}

.mtDiscount-reason-list,
.mtDiscount-failure-list {
  max-height: 260px;
  overflow: auto;
}

.mtDiscount-reason-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 8px 11px;
  border-bottom: 1px solid #f1f5f9;
  color: #64748b;
  font-size: 11px;
}

.mtDiscount-reason-row:last-child,
.mtDiscount-failure-row:last-child {
  border-bottom: 0;
}

.mtDiscount-reason-text {
  color: #1e293b;
  line-height: 1.45;
}

.mtDiscount-failure-block {
  border-color: #fed7aa;
}

.mtDiscount-failure-row {
  display: grid;
  gap: 5px;
  padding: 9px 11px;
  border-bottom: 1px solid #ffedd5;
  font-size: 11px;
}

.mtDiscount-failure-row > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.mtDiscount-failure-error {
  color: #c2410c;
  line-height: 1.45;
}

.mtDiscount-failure-action {
  color: #64748b;
  line-height: 1.45;
}

.mtDiscount-filter-bar {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  margin-bottom: 12px;
}

.mtDiscount-filter {
  min-width: 160px;
}

.mtDiscount-filter-wide {
  min-width: 240px;
  flex: 1 1 260px;
}

.mtDiscount-filter label {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.mtDiscount-score-filter {
  position: relative;
}

.mtDiscount-score-dropdown {
  position: absolute;
  z-index: 120;
  top: calc(100% + 4px);
  left: 0;
  width: 220px;
  max-height: 360px;
  padding: 7px;
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .16);
}

.mtDiscount-score-dropdown > label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 0;
  padding: 4px 7px;
  border-radius: 4px;
  color: #334155;
  font-size: 12px;
  cursor: pointer;
}

.mtDiscount-score-dropdown > label:hover {
  background: #f1f5f9;
}

.mtDiscount-score-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 2px 7px 7px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 4px;
}

.mtDiscount-score-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
}

.mtDiscount-input,
.mtDiscount-select {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  outline: none;
}

.mtDiscount-input:focus,
.mtDiscount-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .1);
}

.mtDiscount-picker-trigger {
  display: flex;
  width: 100%;
  min-width: 190px;
  height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.mtDiscount-picker-trigger:hover {
  border-color: #64748b;
}

.mtDiscount-picker-trigger:disabled {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

.mtDiscount-table-shell {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.mtDiscount-list-banner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
}

.mtDiscount-table-wrap {
  position: relative;
  max-height: calc(100vh - 308px);
  min-height: 280px;
  overflow: auto;
}

.mtDiscount-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: separate;
  border-spacing: 0;
}

.mtDiscount-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  height: 36px;
  padding: 8px 10px;
  border-bottom: 1px solid #dbe4ee;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}

.mtDiscount-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.mtDiscount-sort-button span {
  color: #94a3b8;
}

.mtDiscount-sort-button-active,
.mtDiscount-sort-button-active span {
  color: #2563eb;
}

.mtDiscount-table td {
  position: relative;
  height: 43px;
  padding: 7px 10px;
  border-bottom: 1px solid #eef2f7;
  color: #334155;
  font-size: 12px;
  vertical-align: middle;
}

.mtDiscount-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

.mtDiscount-table tbody tr:hover td {
  background: #eff6ff;
}

.mtDiscount-cell-title {
  max-width: 100%;
  overflow: hidden;
  color: #172033;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtDiscount-cell-sub {
  max-width: 100%;
  overflow: hidden;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtDiscount-code {
  color: #475569;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.mtDiscount-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.mtDiscount-badge-green {
  background: #dcfce7;
  color: #166534;
}

.mtDiscount-badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.mtDiscount-badge-orange {
  background: #ffedd5;
  color: #9a3412;
}

.mtDiscount-badge-red {
  background: #fee2e2;
  color: #991b1b;
}

.mtDiscount-score {
  color: #dc2626;
  font-size: 14px;
  font-weight: 700;
}

.mtDiscount-loading,
.mtDiscount-empty {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 13px;
}

.mtDiscount-refreshing {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 7px 11px;
  border-bottom: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

.mtDiscount-loading::before {
  width: 16px;
  height: 16px;
  margin-right: 9px;
  border: 2px solid #bfdbfe;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: mtDiscount-spin .75s linear infinite;
  content: "";
}

@keyframes mtDiscount-spin {
  to { transform: rotate(360deg); }
}

.mtDiscount-pagination {
  justify-content: flex-end;
  gap: 9px;
  min-height: 44px;
  padding: 7px 11px;
  color: #64748b;
  font-size: 12px;
}

.mtDiscount-error {
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid #fecaca;
  border-radius: 5px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
}

.mtDiscount-dismissible-error {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mtDiscount-dismissible-error button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-size: 12px;
  cursor: pointer;
}

.mtDiscount-debug-panel {
  margin-top: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.mtDiscount-debug-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.mtDiscount-debug-title {
  color: #172033;
  font-size: 14px;
  font-weight: 760;
}

.mtDiscount-debug-empty {
  padding: 28px 14px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.mtDiscount-debug-error {
  margin: 10px 12px 0;
}

.mtDiscount-debug-list {
  max-height: 720px;
  overflow: auto;
}

.mtDiscount-debug-event {
  border-bottom: 1px solid #e2e8f0;
}

.mtDiscount-debug-event:last-child {
  border-bottom: 0;
}

.mtDiscount-debug-event summary {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: #475569;
  font-size: 12px;
  cursor: pointer;
}

.mtDiscount-debug-event summary:hover {
  background: #f8fafc;
}

.mtDiscount-debug-event summary strong {
  color: #172033;
}

.mtDiscount-debug-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  border-top: 1px solid #e2e8f0;
  background: #e2e8f0;
}

.mtDiscount-debug-columns > div {
  min-width: 0;
  padding: 10px 12px 12px;
  background: #fff;
}

.mtDiscount-debug-label {
  margin-bottom: 7px;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
}

.mtDiscount-debug-columns pre {
  max-height: 360px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  border-radius: 4px;
  background: #111827;
  color: #e5e7eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.mtDiscount-debug-event-error {
  padding: 8px 12px;
  border-top: 1px solid #fecaca;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
}

.mtDiscount-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(15, 23, 42, .52);
}

.mtDiscount-modal {
  width: min(1580px, 96vw);
  max-height: 90vh;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
  overflow: hidden;
}

.mtDiscount-modal-head,
.mtDiscount-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
}

.mtDiscount-modal-foot {
  border-top: 1px solid #e2e8f0;
  border-bottom: 0;
}

.mtDiscount-modal-title {
  font-size: 16px;
  font-weight: 750;
}

.mtDiscount-modal-body {
  max-height: calc(90vh - 118px);
  overflow: auto;
  padding: 14px 15px;
}

.mtDiscount-submission-groups {
  margin: 12px 0;
  border: 1px solid #dbe4ee;
  border-radius: 6px;
  background: #f8fafc;
  overflow: hidden;
}

.mtDiscount-submission-groups > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #dbe4ee;
  background: #fff;
}

.mtDiscount-submission-groups > header span {
  color: #64748b;
  font-size: 12px;
}

.mtDiscount-submission-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 240px;
  padding: 10px;
  overflow: auto;
}

.mtDiscount-submission-group {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid #dbe4ee;
  border-radius: 5px;
  background: #fff;
}

.mtDiscount-submission-group > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.mtDiscount-submission-group > div strong,
.mtDiscount-submission-group > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mtDiscount-submission-group > div span {
  color: #64748b;
  font-size: 11px;
}

.mtDiscount-submission-group-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.mtDiscount-submission-group-submitting {
  border-color: #60a5fa;
  background: #eff6ff;
}

.mtDiscount-submission-group-submitting .mtDiscount-submission-group-index {
  background: #2563eb;
  color: #fff;
}

.mtDiscount-submission-group-accepted,
.mtDiscount-submission-group-succeeded {
  border-color: #86efac;
  background: #f0fdf4;
}

.mtDiscount-submission-group-accepted .mtDiscount-submission-group-index,
.mtDiscount-submission-group-succeeded .mtDiscount-submission-group-index {
  background: #16a34a;
  color: #fff;
}

.mtDiscount-submission-group-failed {
  border-color: #fca5a5;
  background: #fef2f2;
}

.mtDiscount-submission-group-failed .mtDiscount-submission-group-index {
  background: #dc2626;
  color: #fff;
}

@media (max-width: 900px) {
  .mtDiscount-submission-group-grid {
    grid-template-columns: 1fr;
  }

  .mtDiscount-submission-groups > header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.mtDiscount-draft-duplicates {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
  border-radius: 5px;
  background: #fff1f2;
  color: #991b1b;
}

.mtDiscount-draft-duplicates > div {
  display: grid;
  gap: 4px;
}

.mtDiscount-draft-duplicates span {
  font-size: 11px;
}

.mtDiscount-draft-batch-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid #dbeafe;
  border-radius: 5px;
  background: #eff6ff;
}

.mtDiscount-draft-batch-tools label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mtDiscount-draft-batch-tools .mtDiscount-input {
  width: 96px;
}

.mtDiscount-picker-modal {
  width: min(820px, 92vw);
}

.mtDiscount-picker-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto auto;
  gap: 9px;
  align-items: end;
  padding: 12px 15px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.mtDiscount-picker-tools label span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.mtDiscount-picker-list {
  max-height: 56vh;
  overflow: auto;
}

.mtDiscount-picker-row {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 15px;
  border-bottom: 1px solid #eef2f7;
  cursor: pointer;
}

.mtDiscount-picker-row:hover {
  background: #eff6ff;
}

.mtDiscount-picker-row input {
  margin-top: 3px;
}

.mtDiscount-picker-row strong,
.mtDiscount-picker-row small {
  display: block;
}

.mtDiscount-picker-row strong {
  color: #172033;
  font-size: 12px;
}

.mtDiscount-picker-row small {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.mtDiscount-picker-empty {
  padding: 40px 15px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.mtDiscount-action-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid #dbe4ee;
  border-radius: 5px;
  overflow: hidden;
}

.mtDiscount-action-progress span {
  padding: 8px;
  border-right: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  text-align: center;
}

.mtDiscount-action-progress span:last-child {
  border-right: 0;
}

.mtDiscount-action-progress .done {
  background: #dcfce7;
  color: #166534;
  font-weight: 700;
}

.mtDiscount-action-progress .active {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

.mtDiscount-sidebar-group {
  margin: 3px 0 5px;
}

.mtDiscount-sidebar-group-title {
  display: flex;
  align-items: center;
  padding: 7px 16px 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 750;
}

.mtDiscount-sidebar-child {
  padding-left: 28px !important;
}

@media (max-width: 1200px) {
  .mtDiscount-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mtDiscount-step,
  .mtDiscount-step:nth-child(5n),
  .mtDiscount-step:nth-child(n+6) {
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }

  .mtDiscount-step:nth-child(2n) {
    border-right: 0;
  }

  .mtDiscount-step:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .mtDiscount-debug-columns {
    grid-template-columns: 1fr;
  }

  .mtDiscount-update-evidence {
    grid-template-columns: 1fr;
  }

  .mtDiscount-picker-tools {
    grid-template-columns: 1fr 1fr;
  }
}
