.combo-scheme-group-row td {
  background: #eef3f6;
  border-bottom: 1px solid var(--line);
  color: #4f5a63;
  padding: 10px 12px;
}

.combo-scheme-group-row strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.combo-scheme-group-row span {
  color: #6f7782;
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.combo-scheme-editor-row > td {
  background: #f5f5f5;
  border-bottom: 0;
  padding: 0;
}

.combo-document-list-panel > .table-wrap {
  background: #f5f5f5;
  padding: 12px;
}

.combo-document-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.combo-scheme-editor-list {
  display: grid;
  gap: 10px;
  padding: 0 0 12px;
}

.combo-scheme-card {
  background: #ffffff;
  border: 1px solid #d9dee3;
  min-width: 0;
}

.combo-scheme-card.selected {
  border-color: #7fb4d9;
  box-shadow: inset 3px 0 0 #0789da;
}

.combo-scheme-card-header {
  align-items: center;
  background: #f1f1f1;
  border-bottom: 1px solid #d9dee3;
  display: grid;
  gap: 10px;
  grid-template-columns: 28px minmax(150px, 0.65fr) minmax(190px, 0.85fr) minmax(170px, 220px) 110px;
  min-height: 48px;
  padding: 7px 12px;
}

.combo-scheme-card-header select,
.combo-scheme-card-header input {
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  color: #1f252d;
  font-size: 13px;
  height: 32px;
  min-width: 0;
  padding: 5px 8px;
  text-align: left;
}

.combo-order-type-picker {
  min-width: 0;
  position: relative;
}

.combo-order-type-picker > summary {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  color: #1f252d;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  height: 32px;
  list-style: none;
  overflow: hidden;
  padding: 5px 26px 5px 8px;
  position: relative;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-order-type-picker > summary::-webkit-details-marker {
  display: none;
}

.combo-order-type-picker > summary::after {
  border-bottom: 1px solid #5f6b76;
  border-right: 1px solid #5f6b76;
  content: "";
  height: 6px;
  position: absolute;
  right: 10px;
  top: 10px;
  transform: rotate(45deg);
  width: 6px;
}

.combo-order-type-picker[open] > summary {
  border-color: #0789da;
  box-shadow: 0 0 0 2px rgb(7 137 218 / 14%);
}

.combo-order-type-picker[open] > summary::after {
  top: 13px;
  transform: rotate(225deg);
}

.combo-order-type-options {
  background: #ffffff;
  border: 1px solid #aeb7bf;
  box-shadow: 0 5px 14px rgb(0 0 0 / 18%);
  display: grid;
  left: 0;
  max-height: 240px;
  min-width: 100%;
  overflow: auto;
  padding: 5px;
  position: absolute;
  top: calc(100% + 3px);
  width: max-content;
  z-index: 20;
}

.combo-order-type-option {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 7px;
  min-height: 30px;
  padding: 4px 7px;
  white-space: nowrap;
}

.combo-order-type-option:hover {
  background: #eef6fb;
}

.combo-order-type-option.is-disabled span {
  color: #7c848a;
}

.combo-scheme-card-header .combo-order-type-option input {
  flex: 0 0 auto;
  height: 14px;
  margin: 0;
  padding: 0;
  width: 14px;
}

.combo-order-types-empty {
  color: #7c848a;
  padding: 7px 9px;
  white-space: nowrap;
}

.combo-scheme-card-header select:focus,
.combo-scheme-card-header input:focus {
  border-color: #0789da;
  box-shadow: 0 0 0 2px rgb(7 137 218 / 14%);
  outline: none;
}

.combo-scheme-name-input::placeholder {
  color: #8a8a8a;
}

.combo-scheme-price-input {
  text-align: right !important;
  width: 100%;
}

.combo-scheme-collapse {
  background: transparent;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  height: 28px;
  position: relative;
  width: 28px;
}

.combo-scheme-collapse::before {
  border-bottom: 2px solid #5f6b76;
  border-right: 2px solid #5f6b76;
  content: "";
  height: 8px;
  left: 9px;
  position: absolute;
  top: 7px;
  transform: rotate(45deg);
  width: 8px;
}

.combo-scheme-card.collapsed .combo-scheme-collapse::before {
  left: 7px;
  top: 9px;
  transform: rotate(-45deg);
}

.combo-scheme-collapse:hover,
.combo-scheme-collapse:focus-visible {
  background: #e3edf5;
  outline: none;
}

.combo-scheme-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.combo-website-publication-settings {
  background: #f7fafc;
  border: 1px solid #d9e3ea;
  display: grid;
  gap: 9px;
  padding: 10px;
}

.combo-website-publication-settings > header {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.combo-website-publication-settings > header span,
.combo-website-publication-settings label > span {
  color: #66727b;
  font-size: 11px;
}

.combo-website-copy-row,
.combo-website-policy-row {
  display: grid;
  gap: 8px;
}

.combo-website-copy-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.combo-website-policy-row {
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
}

.combo-website-publication-settings label {
  display: grid;
  gap: 3px;
}

.combo-stacking-group-title {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.combo-stacking-group-field {
  display: grid;
  gap: 3px;
}

.combo-stacking-info-button {
  align-items: center;
  background: #fff;
  border: 1px solid #8495a2;
  border-radius: 50%;
  color: #435966;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  height: 17px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 17px;
}

.combo-stacking-info-button:hover,
.combo-stacking-info-button:focus-visible {
  background: #e8f4fb;
  border-color: #0789da;
  color: #0789da;
  outline: none;
}

.combo-website-publication-settings .combo-compatible-all-check {
  align-items: center;
  align-self: end;
  display: flex;
  gap: 7px;
  height: 30px;
  padding: 0 4px;
}

.combo-website-publication-settings .combo-compatible-all-check input {
  height: 16px;
  margin: 0;
  padding: 0;
  width: 16px;
}

.combo-compatible-all-check.is-disabled {
  opacity: 0.55;
}

.combo-repeat-policy {
  align-self: end;
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(150px, 1fr) 72px;
}

.combo-website-publication-settings .combo-repeat-application-check {
  align-items: center;
  display: flex;
  gap: 7px;
  min-height: 30px;
}

.combo-website-publication-settings .combo-repeat-application-check input {
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  padding: 0;
  width: 16px;
}

.combo-website-publication-settings .combo-repeat-application-check span {
  color: #263039;
  line-height: 1.15;
}

.combo-repeat-application-limit input {
  min-width: 0;
}

.combo-website-publication-settings input:disabled,
.combo-website-publication-settings select:disabled {
  background: #edf0f2;
  color: #7d868c;
  cursor: not-allowed;
}

.combo-stacking-help-layer {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 16000;
}

.combo-stacking-help-backdrop {
  background: rgb(18 28 36 / 58%);
  inset: 0;
  position: absolute;
}

.combo-stacking-help-dialog {
  background: #fff;
  border: 1px solid #c8d2d9;
  box-shadow: 0 18px 54px rgb(0 0 0 / 24%);
  color: #263039;
  max-height: calc(100vh - 48px);
  max-width: 680px;
  overflow: auto;
  position: relative;
  width: 100%;
}

.combo-stacking-help-dialog > header {
  align-items: center;
  border-bottom: 1px solid #dbe2e7;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.combo-stacking-help-dialog h2 {
  font-size: 19px;
  margin: 0;
}

.combo-stacking-help-dialog > header button {
  background: transparent;
  border: 0;
  color: #59666f;
  cursor: pointer;
  font-size: 27px;
  line-height: 1;
  padding: 0 4px;
}

.combo-stacking-help-body {
  display: grid;
  font-size: 14px;
  gap: 12px;
  line-height: 1.5;
  padding: 18px;
}

.combo-stacking-help-body p {
  margin: 0;
}

.combo-stacking-help-body code {
  background: #eef3f6;
  border-radius: 3px;
  padding: 2px 5px;
}

.combo-stacking-help-dialog > footer {
  border-top: 1px solid #dbe2e7;
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px;
}

.combo-website-publication-settings input,
.combo-website-publication-settings select {
  background: #fff;
  border: 1px solid #cfcfcf;
  height: 30px;
  min-width: 0;
  padding: 4px 6px;
  width: 100%;
}

.combo-scheme-lines {
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}

.combo-scheme-lines th,
.combo-scheme-lines td {
  border-bottom: 1px solid #e2e2e2;
  border-right: 1px solid #d9dee3;
  height: 32px;
  line-height: 1.15;
  padding: 3px 5px;
  vertical-align: middle;
}

.combo-scheme-lines th:last-child,
.combo-scheme-lines td:last-child {
  border-right: 0;
}

.combo-scheme-lines th {
  background: #f7f7f7;
  color: #4d4d4d;
  font-size: 12px;
  font-weight: 500;
  height: 34px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-scheme-lines tbody tr:nth-child(even) td {
  background: #fafafa;
}

.combo-scheme-lines th:first-child,
.combo-scheme-lines td:first-child {
  text-align: center;
  width: 96px;
}

.combo-scheme-lines th:last-child,
.combo-scheme-lines td:last-child {
  text-align: center;
  width: 40px;
}

.combo-scheme-lines input {
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  color: #1f252d;
  font-size: 13px;
  height: 28px;
  min-width: 0;
  padding: 4px 6px;
  width: 100%;
}

.combo-scheme-lines input:focus {
  background: #ffffff;
  border-color: #0789da;
  box-shadow: 0 0 0 2px rgb(7 137 218 / 12%);
  outline: none;
}

.combo-scheme-lines input[type="number"] {
  text-align: center;
}

.combo-scheme-lines .combo-same-size-cell {
  text-align: center;
  width: 92px;
}

.combo-scheme-lines .combo-same-size-cell input[type="checkbox"] {
  height: 18px;
  margin: 0;
  padding: 0;
  width: 18px;
}

.combo-line-remove {
  background: #ffffff;
  border: 1px solid #cfcfcf;
  border-radius: 2px;
  color: #6b737a;
  cursor: pointer;
  font-size: 13px;
  height: 28px;
  line-height: 1;
  width: 28px;
}

.combo-line-remove:hover {
  background: #fff1f1;
  border-color: #d9a5a5;
  color: #c33535;
}

.combo-scheme-extra-section {
  display: grid;
  gap: 8px;
}

.combo-scheme-rule-section h3,
.combo-scheme-extra-section h3 {
  color: #20242a;
  font-size: 14px;
  font-weight: 600;
  margin: 2px 0 0;
}

.combo-scheme-extra-lines {
  margin-left: 0;
  width: 100%;
}

.combo-scheme-extra-lines th:first-child,
.combo-scheme-extra-lines td:first-child {
  text-align: left;
  width: 200px;
}

.combo-scheme-card-footer {
  align-items: center;
  border-top: 1px solid #e2e2e2;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 10px;
}

.combo-scheme-active-check {
  align-items: center;
  color: #3f464c;
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
  white-space: nowrap;
}

.combo-scheme-active-check input {
  height: 14px;
  margin: 0;
  width: 14px;
}

@media (max-width: 980px) {
  .combo-scheme-card-header {
    grid-template-columns: 28px minmax(140px, 0.65fr) minmax(180px, 0.85fr) minmax(150px, 190px) 96px;
  }

  .combo-document-list-panel > .table-wrap {
    padding: 8px;
  }
}

.combo-scheme-card-footer { flex-wrap: wrap; }
.combo-scheme-card, .combo-scheme-card * { box-sizing: border-box; }
.combo-scheme-card-body, .combo-scheme-editor-list { min-width: 0; }
.combo-scheme-card-body > * { min-width: 0; }
.combo-website-copy-row, .combo-website-policy-row { min-width: 0; }
.combo-website-copy-row > *, .combo-website-policy-row > * { min-width: 0; }
.combo-scheme-card-header { grid-template-columns: 28px minmax(90px, 1fr) minmax(110px, 1fr) minmax(100px, 1fr) minmax(70px, 100px); }

.promotion-image-dialog { border: 1px solid #cfcfcf; border-radius: 6px; padding: 0; width: min(1080px, calc(100vw - 32px)); max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: hidden; }
.promotion-image-form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 34px); margin: 0; }
.promotion-image-dialog::backdrop { background: #0008; }
.promotion-image-form header, .promotion-image-form footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px; }
.promotion-image-form header { justify-content: space-between; border-bottom: 1px solid #ddd; }
.promotion-image-form h2 { margin: 0; font-size: 18px; }
.promotion-image-form header button { min-width: 40px; min-height: 40px; }
.promotion-image-content { padding: 0 16px; overflow: auto; min-height: 0; }
.promotion-image-preview { display: grid; place-items: center; height: 180px; background: #eee; }
.promotion-image-preview img { max-width: 100%; max-height: 180px; object-fit: contain; }
.promotion-image-preview [hidden] { display: none; }
.promotion-image-file { display: grid; gap: 6px; margin: 12px 0; }
.promotion-image-file input { width: 100%; min-width: 0; }
.promotion-image-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.promotion-image-actions .promotion-image-file { flex: 1 1 220px; margin: 0; }
.promotion-image-actions .promotion-image-remove { color: #a21a1a; border-color: #bb5959; min-height: 40px; }
.promotion-image-removal-pending { padding: 12px; border: 1px solid #d7a847; background: #fff5db; color: #593b09; }
.promotion-image-removal-pending[hidden] { display: none; }
.promotion-image-alt-fields { display: grid; gap: 10px; margin-top: 16px; }
.promotion-image-alt-fields label { display: grid; gap: 4px; min-width: 0; }
.promotion-image-alt-fields input { min-width: 0; width: 100%; box-sizing: border-box; }

.promotion-artwork { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(250px, 1fr); gap: 24px; }
.promotion-artwork-controls, .promotion-artwork-controls label { display: grid; gap: 6px; min-width: 0; }
.promotion-artwork-controls { gap: 12px; }
.promotion-artwork-controls input, .promotion-artwork-controls select { min-width: 0; max-width: 100%; box-sizing: border-box; }
.promotion-artwork-number { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; }
.promotion-artwork-number input { width: 100%; }
.promotion-artwork-controls .promotion-artwork-theme { display: flex; align-items: center; }
.promotion-artwork-help { font-size: 12px; margin: 0; color: #555; }
.promotion-artwork-stage { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.promotion-artwork-stage > p { margin: 0; }
.promotion-website-viewport { position:relative; overflow:hidden; flex:none; max-width:100%; }
.promotion-website-viewport iframe { position:absolute; left:0; top:0; border:0; width:1280px; height:4000px; max-width:none; transform-origin:0 0; }
@media (min-width: 641px) { .promotion-artwork-stage { position: sticky; top: 12px; align-self: start; } }
.promotion-text-controls { display: grid; gap: 10px; min-width: 0; margin: 8px 0; border: 1px solid #ccc; padding: 12px; }
.promotion-text-controls textarea { width: 100%; min-width: 0; box-sizing: border-box; resize: vertical; font: inherit; padding: 8px; }
.promotion-artwork-image-settings > summary, .promotion-text-controls summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.promotion-artwork-image-settings[open] { display: grid; gap: 10px; }
.promotion-text-toolbar, .promotion-text-selection { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; }
.promotion-text-toolbar button, .promotion-text-selection button { min-height: 34px; padding: 6px 12px; }
.promotion-text-selection button[aria-pressed="true"] { background: #0877b9; border-color: #0877b9; color: #fff; }
.promotion-text-copy { padding: 8px; border: 1px solid #ddd; border-radius: 5px; background: #fafafa; }
.promotion-text-copy[data-selected="true"] { border-color: #0877b9; }
.promotion-text-copy > button { justify-self: end; font-size: 12px; }
.promotion-text-style-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.promotion-text-style-grid input[type="color"] { width: 100%; height: 34px; }
.promotion-artwork-warning { padding: 10px; background: #fff0ce; color: #694700; border-radius: 4px; }
.promotion-artwork-warning[hidden] { display: none; }
@media (max-width: 640px) { .promotion-artwork { grid-template-columns: minmax(0, 1fr); } .promotion-artwork-stage { grid-row: 1; } }

@media (max-width: 760px) {
  .combo-scheme-card-header { grid-template-columns: 28px minmax(0, 1fr) minmax(90px, 1fr); }
  .combo-scheme-card-header > :nth-child(4) { grid-column: 2; }
  .combo-website-copy-row, .combo-website-policy-row { grid-template-columns: minmax(0, 1fr); }
}
