#price-table .price-table-workspace {
  gap: 12px;
}

#price-table .price-table-page-head.merchant-tool-command {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 6px 10px;
  border-bottom: 1px solid var(--line);
}

#price-table .price-table-page-head.merchant-tool-command::after {
  display: none;
}

#price-table .merchant-tool-identity {
  flex: 1 1 auto;
}

#price-table .merchant-tool-identity > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

#price-table .merchant-tool-tabs {
  order: -1;
  width: auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8f9fb;
}

#price-table .merchant-tool-tabs button {
  min-width: 78px;
  min-height: 34px;
  border: 0;
  border-radius: 7px;
  background: transparent;
}

#price-table .merchant-tool-tabs button.active {
  color: var(--accent);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(51, 112, 255, 0.2);
}

#price-table .price-table-head-actions {
  margin-left: auto;
}

#price-table .price-formula-strip {
  display: flex;
  justify-content: flex-end;
  min-height: 34px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#price-table .price-formula-strip span {
  padding: 8px 4px;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  text-align: right;
}

.price-group-layout {
  display: block;
}

.price-group-panel {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 8px;
}

.price-group-add {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 0 10px;
  border-color: rgba(51, 112, 255, 0.25);
  color: var(--accent);
  background: #f7f9ff;
  font-weight: 760;
}

.price-group-panel > p {
  margin: 0;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.45;
}

.price-group-main {
  display: grid;
  min-width: 0;
  gap: 12px;
}

#price-table .price-table-header {
  margin-left: 48px;
}

#price-table .price-group-head {
  display: none;
}

#price-table .price-table-group {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  min-width: max-content;
  border-bottom: 1px solid var(--line);
}

#price-table .price-group-name-cell {
  display: flex;
  min-width: 0;
  min-height: 96px;
  grid-column: 1;
  grid-row: 1 / span var(--price-group-row-count);
  align-items: center;
  justify-content: center;
  padding: 8px 5px;
  border-right: 1px solid var(--line);
  color: #42658b;
  background: #f5f9ff;
  cursor: grab;
  writing-mode: vertical-rl;
}

#price-table .price-group-name-cell [data-price-group-name] {
  width: 26px;
  min-height: 64px;
  padding: 4px 2px;
  border: 0;
  border-radius: 5px;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
  writing-mode: vertical-rl;
}

#price-table .price-group-name-cell [data-price-group-name]:focus {
  outline: 2px solid rgba(72, 137, 220, 0.3);
  background: #fff;
}

#price-table .price-table-group > .price-table-row,
#price-table .price-table-group > .price-group-empty {
  grid-column: 2;
}

#price-table .price-group-name-cell.group-row-drop-target {
  background: #dceeff;
  box-shadow: inset 3px 0 0 #7aafe8;
}

#price-table .price-group-name-cell.group-drop-target {
  background: #eaf4ff;
  box-shadow: inset 0 0 0 2px #9bc4ee;
}

#price-table .price-table-panel {
  border-color: var(--line);
  border-radius: 12px;
  box-shadow: none;
}

#price-table .price-table-rows {
  background: var(--bg);
}

#price-table .price-table-group + .price-table-group {
  margin-top: 6px;
}

#price-table .price-table-guide {
  min-height: 38px;
  padding: 10px 14px;
  background: #fff;
}

#price-table .price-table-header {
  background: #f7f8fb;
}

#price-table .price-table-row {
  background: #fff;
}

#price-table .price-table-row:hover {
  background: #fbfcff;
}

#price-table .price-table-cell input,
#price-table .price-table-cell select {
  border-color: #e2e6ed;
  border-radius: 7px;
  background: #fafbfc;
}

#price-table .price-table-cell input:focus,
#price-table .price-table-cell select:focus {
  border-color: rgba(51, 112, 255, 0.55);
  outline: 3px solid rgba(51, 112, 255, 0.12);
  background: #fff;
}

#price-table .price-table-cell.is-number input {
  border-color: #c9daf8;
  background: #f1f6ff;
}

#price-table .price-column-head.is-calculation-target {
  color: #24557f;
  background: #dceeff;
}

#price-table .price-column-head.is-calculation-target i {
  color: #5186b2;
}

#price-table .price-table-cell.is-calculation-target {
  background: #dceeff;
}

#price-table .price-table-cell.is-calculation-target input {
  border-color: #bdd9f3;
  color: #24557f;
  background: #dceeff;
  cursor: default;
}

#price-table .price-mode-cell {
  justify-content: center;
}

#price-table .price-mode-cell span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

#price-table .price-row-actions button {
  min-height: 28px;
  padding: 0 5px;
  border-color: transparent;
  background: transparent;
}

.price-group-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

#inventoryPreviewShare {
  display: none !important;
}

@media (max-width: 760px) {
  #price-table .price-table-page-head.merchant-tool-command {
    align-items: stretch;
  }

  #price-table .merchant-tool-tabs {
    order: 0;
  }

  .price-group-panel {
    margin-bottom: 6px;
  }

  .price-group-panel > p {
    display: none;
  }

  .price-group-add {
    width: auto;
    margin: 0;
  }

  #price-table .price-table-header {
    margin-left: 0;
  }

  #price-table .price-table-group {
    grid-template-columns: 38px minmax(0, 1fr);
    min-width: 0;
  }

  #price-table .price-group-name-cell {
    min-height: 88px;
    padding-inline: 3px;
  }

  #price-table .price-formula-strip {
    justify-content: flex-start;
  }

  #price-table .price-formula-strip span {
    text-align: left;
  }
}
