/* Vendas: visual measurements taken from the original Hatu interface. */
.app-main:has(> .sales-page) {
  padding: 88px 24px 36px;
  background: #fdf8fb;
}

.sales-page {
  --sales-gray-50: oklch(.985 .002 247.839);
  --sales-gray-100: oklch(.967 .003 264.542);
  --sales-gray-200: oklch(.928 .006 264.531);
  --sales-gray-400: oklch(.707 .022 261.325);
  --sales-gray-500: oklch(.551 .027 264.364);
  --sales-gray-600: oklch(.446 .03 256.802);
  --sales-gray-700: oklch(.373 .034 259.733);
  --sales-gray-900: oklch(.21 .034 264.665);
  --sales-pink-700: oklch(.592 .249 .584);
  color: var(--sales-gray-900);
  font-size: 14px;
  line-height: 20px;
}

.sales-page .sales-platform-bar {
  min-height: 82px;
  padding: 16px;
  margin-bottom: 24px;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--sales-gray-200);
  border-radius: 18px;
  box-shadow: none;
}

.sales-page .sales-platform-tabs {
  padding: 4px;
  gap: 4px;
  border-radius: 14px;
  background: #f3f4f6;
}

.sales-page .sales-platform-tab {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 20px;
  color: var(--sales-gray-500);
}

.sales-page .sales-platform-tab.sales-is-active {
  color: var(--sales-pink-700);
  background: #fff;
  box-shadow: none;
}

.sales-page .sales-account-button {
  min-height: 26px;
  padding: 4px 12px;
  gap: 8px;
  color: var(--sales-gray-600);
  background: var(--sales-gray-100);
  border: 1px solid var(--sales-gray-200);
  border-radius: 9999px;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 16px;
}

.sales-page .sales-heading {
  margin: 0 0 24px;
}

.sales-page .sales-heading h2 {
  margin: 0;
  color: var(--sales-gray-900);
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: 0;
}

.sales-page .sales-heading p {
  margin: 0;
  color: var(--sales-gray-500);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.sales-page .sales-section-label {
  margin: 0 0 16px;
  color: var(--sales-gray-600);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  letter-spacing: .05em;
}

.sales-page .sales-kpis {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.sales-page .sales-kpi {
  min-height: 100px;
  padding: 16px;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--sales-gray-200);
  border-radius: 18px;
  box-shadow: none;
}

.sales-page .sales-kpi-icon {
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: 14px;
}

.sales-page .sales-kpi-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.sales-page .sales-kpi-copy {
  flex: 1;
  gap: 0;
  container-type: inline-size;
}

.sales-page .sales-kpi-label {
  justify-content: flex-start;
  flex-wrap: wrap;
  min-height: 20px;
  margin-bottom: 2px;
  gap: 6px;
  row-gap: 2px;
  color: var(--sales-gray-400);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: .05em;
}

.sales-page .sales-kpi-label > span:first-child {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
}

.sales-page .sales-kpi strong {
  color: var(--sales-gray-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 28px;
  letter-spacing: 0;
}

.sales-page .sales-kpi small {
  color: var(--sales-gray-500);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.sales-page .sales-tone-green .sales-kpi-icon {
  color: oklch(.627 .194 149.214);
  background: oklch(.982 .018 155.826);
}

.sales-page .sales-tone-blue .sales-kpi-icon {
  color: oklch(.546 .245 262.881);
  background: oklch(.97 .014 254.604);
}

.sales-page .sales-tone-red .sales-kpi-icon {
  color: oklch(.577 .245 27.325);
  background: oklch(.971 .013 17.38);
}

.sales-page .sales-tone-yellow .sales-kpi-icon {
  color: oklch(.681 .162 75.834);
  background: oklch(.987 .026 102.212);
}

.sales-page .sales-tone-purple .sales-kpi-icon {
  color: oklch(.558 .288 302.321);
  background: oklch(.977 .014 308.299);
}

.sales-page .sales-shopee-only {
  padding: 2px 8px;
  border-radius: 9999px;
  color: oklch(.47 .157 37.304) !important;
  background: oklch(.98 .016 73.684);
  font-size: 10px !important;
  font-weight: 800;
  line-height: 15px;
  letter-spacing: 0;
}

.sales-page .sales-result {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 20px;
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--sales-gray-200);
  border-radius: 18px;
  box-shadow: none;
}

.sales-page .sales-result-revenue {
  flex: 1 1 200px;
  min-width: 200px;
}

.sales-page .sales-result-costs {
  flex: 2.4 1 440px;
  min-width: 0;
}

.sales-page .sales-result-margin {
  flex: 1.2 1 260px;
  min-width: 260px;
}

.sales-page .sales-result h4 {
  margin: 0 0 8px;
  color: var(--sales-gray-600);
  font-size: 11px;
  font-weight: 700;
  line-height: 16.5px;
  letter-spacing: .05em;
}

.sales-page .sales-revenue-box,
.sales-page .sales-cost-box,
.sales-page .sales-margin-box {
  min-height: 248.5px;
  height: calc(100% - 24.5px);
  padding: 16px;
}

.sales-page .sales-revenue-box,
.sales-page .sales-cost-box {
  background: #f8f9fb;
  border-radius: 14px;
}

.sales-page .sales-revenue-box {
  gap: 4px;
}

.sales-page .sales-revenue-box > strong {
  color: var(--sales-gray-900);
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
  letter-spacing: 0;
}

.sales-page .sales-revenue-box > span {
  color: var(--sales-gray-500);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.sales-page .sales-cost-total {
  margin-bottom: 12px;
  color: var(--sales-gray-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 28px;
  letter-spacing: 0;
}

.sales-page .sales-cost-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}

.sales-page .sales-cost-item {
  padding: 8px 0;
  border-bottom: 1px dashed oklch(.872 .01 258.338);
}

.sales-page .sales-cost-item > span {
  min-height: 18px;
  margin-bottom: 4px;
  align-items: center;
  color: var(--sales-gray-700);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.sales-page .sales-cost-item > div {
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-top: 0;
  gap: 8px;
  color: var(--sales-gray-900);
  font-size: 13px;
  font-weight: 700;
  line-height: 19.5px;
}

.sales-page .sales-cost-item strong,
.sales-page .sales-cost-item b {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.sales-page .sales-math-symbol {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  margin: auto 0;
  background: var(--sales-gray-200);
  color: var(--sales-gray-700);
  font-size: 18px;
  font-weight: 900;
  line-height: 28px;
}

.sales-page .sales-margin-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  color: #fff;
  border-radius: 18px;
  background: linear-gradient(to bottom right, oklch(.656 .241 354.308), oklch(.586 .253 17.585));
  box-shadow: 0 10px 15px -3px oklch(.656 .241 354.308 / .2), 0 4px 6px -4px oklch(.656 .241 354.308 / .2);
}

.sales-page .sales-margin-before {
  margin-top: 12px;
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid rgb(255 255 255 / .3);
}

.sales-page .sales-margin-total {
  justify-content: space-between;
  margin: 0;
  padding: 0;
  gap: 8px;
  border: 0;
}

.sales-page .sales-margin-total > strong {
  font-size: 24px;
  font-weight: 900;
  line-height: 32px;
  letter-spacing: 0;
}

.sales-page .sales-margin-total > b {
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 900;
  line-height: 28px;
  background: rgb(0 0 0 / .2);
  border: 0;
}

.sales-page .sales-margin-before > span {
  margin-bottom: 4px;
  color: rgb(255 255 255 / .85);
  font-size: 11px;
  font-weight: 400;
  line-height: 16.5px;
}

.sales-page .sales-margin-before > div {
  margin-top: 0;
}

.sales-page .sales-margin-before strong {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0;
}

.sales-page .sales-margin-before b {
  padding: 2px 8px;
  border: 0;
  border-radius: 8px;
  background: rgb(255 255 255 / .2);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.sales-page .sales-table-toolbar {
  min-height: 50px;
  padding: 8px 12px;
  gap: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--sales-gray-200);
  border-radius: 10px;
  background: #fff;
  flex-wrap: nowrap;
}

.sales-page .sales-orders {
  container-type: inline-size;
}

.sales-page .sales-search {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  color: var(--sales-gray-400);
}

.sales-page .sales-search > svg {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
}

.sales-page .sales-search input {
  height: 32px;
  padding: 6px 12px 6px 32px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--sales-gray-900);
}

.sales-page .sales-search input::placeholder {
  color: var(--sales-gray-400);
}

.sales-page .sales-month-picker {
  padding-left: 0;
  gap: 4px;
  border-left: 0;
}

.sales-page .sales-month-picker > span {
  min-width: 110px;
  color: var(--sales-gray-700);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0;
  text-align: center;
}

.sales-page .sales-month-picker > button {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 4px;
  color: var(--sales-gray-400);
  background: transparent;
}

.sales-page .sales-month-picker > button:disabled {
  opacity: .3;
}

.sales-page .sales-month-picker > button svg {
  width: 14px;
  height: 14px;
}

.sales-page .sales-toolbar-button {
  padding: 6px 12px;
  gap: 6px;
  color: var(--sales-gray-600);
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 16px;
}

.sales-page .sales-toolbar-button svg {
  width: 13px;
  height: 13px;
}

.sales-page .sales-custom-date {
  padding: 4px 10px;
  border: 0;
  color: var(--sales-gray-400);
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 15px;
  letter-spacing: 0;
}

.sales-page .sales-sort-group {
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.sales-page .sales-sort-group > span:not(.sales-sort-tag) {
  color: var(--sales-gray-400);
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: 0;
}

.sales-page .sales-sort-tag {
  padding: 2px 8px;
  gap: 4px;
  border: 1px solid oklch(.899 .061 343.231);
  border-radius: 4px;
  background: oklch(.971 .014 343.198);
  color: var(--sales-pink-700);
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 16px;
  text-transform: none;
  letter-spacing: 0;
}

.sales-page .sales-toolbar-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 20px;
  background: var(--sales-gray-200);
}

.sales-page .sales-sort-direction,
.sales-page .sales-sort-remove,
.sales-page .sales-filter-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 16px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  color: inherit;
  background: transparent;
  line-height: 16px;
}

.sales-page .sales-sort-direction svg,
.sales-page .sales-sort-remove svg,
.sales-page .sales-filter-remove svg {
  width: 12px;
  height: 12px;
}

.sales-page .sales-sort-remove {
  color: oklch(.718 .202 349.761);
}

.sales-page .sales-sort-add-wrap,
.sales-page .sales-filter-add-wrap {
  position: relative;
  display: inline-flex;
}

.sales-page .sales-sort-add,
.sales-page .sales-filter-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px dashed oklch(.872 .01 258.338);
  border-radius: 8px;
  color: var(--sales-gray-500);
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  white-space: nowrap;
}

.sales-page .sales-sort-add:hover,
.sales-page .sales-filter-add:hover {
  color: var(--sales-pink-700);
  border-color: var(--sales-pink-700);
  background: oklch(.971 .014 343.198);
}

.sales-page .sales-sort-add svg,
.sales-page .sales-filter-add svg {
  width: 12px;
  height: 12px;
}

.sales-page .sales-filter-panel {
  margin: -12px 0 24px;
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sales-page .sales-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid var(--sales-gray-200);
  border-radius: 4px;
  color: var(--sales-gray-700);
  background: var(--sales-gray-100);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.sales-page .sales-control-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  max-width: min(280px, calc(100vw - 24px));
  padding: 4px;
  border: 1px solid var(--sales-gray-200);
  border-radius: 10px;
  color: var(--sales-gray-700);
  background: #fff;
  box-shadow: 0 6px 16px rgb(17 24 39 / .10);
}

.sales-page .sales-control-menu-item,
.sales-page .sales-control-menu-empty {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--sales-gray-700);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  text-align: left;
}

.sales-page .sales-control-menu-item:hover,
.sales-page .sales-control-menu-item:focus-visible {
  color: var(--sales-pink-700);
  background: oklch(.971 .014 343.198);
}

.sales-page .sales-control-menu-empty {
  color: var(--sales-gray-400);
}

.sales-page .sales-table-wrap {
  background: #fff;
  border: 1px solid var(--sales-gray-200);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow: none;
}

.sales-page .sales-table {
  width: 100%;
  min-width: 1060px;
  table-layout: auto;
  color: var(--sales-gray-900);
  font-size: 14px;
  line-height: 20px;
}

.sales-page .sales-table > thead {
  background: var(--sales-gray-50);
}

.sales-page .sales-table > thead > tr > th {
  padding: 16px;
  border-bottom: 1px solid var(--sales-gray-200);
  color: var(--sales-gray-500);
  font-size: 10px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: .5px;
}

.sales-page .sales-table > thead > tr > th:nth-child(1) { width: 54px; min-width: 54px; }
.sales-page .sales-table > thead > tr > th:nth-child(2) { width: 224px; }
.sales-page .sales-table > thead > tr > th:nth-child(n + 3) { width: auto; }

.sales-page .sales-table > tbody > .sales-order-row > td {
  padding: 16px;
  border-bottom: 1px solid var(--sales-gray-100);
  font-size: 14px;
  line-height: 20px;
}

.sales-page .sales-table > tbody > .sales-order-row:last-child > td {
  border-bottom: 0;
}

.sales-page .sales-order-row {
  height: 97.28125px;
}

.sales-page .sales-table > thead > tr > th:nth-child(2),
.sales-page .sales-table > thead > tr > th:last-child,
.sales-page .sales-table > tbody > .sales-order-row > td:nth-child(2),
.sales-page .sales-table > tbody > .sales-order-row > td:last-child {
  padding-left: 24px;
  padding-right: 24px;
}

.sales-page .sales-table > thead > tr > th:nth-child(3),
.sales-page .sales-table > thead > tr > th:nth-child(4),
.sales-page .sales-table > thead > tr > th:last-child,
.sales-page .sales-table > tbody > .sales-order-row > .sales-items-cell,
.sales-page .sales-table > tbody > .sales-order-row > .sales-margin-cell {
  text-align: center;
}

.sales-page .sales-order-id-line {
  margin: 4px 0;
  gap: 4px 8px;
  flex-wrap: wrap;
  min-width: 0;
  width: 220px;
  max-width: 220px;
}

.sales-page .sales-order-date {
  margin-bottom: 0;
  width: 220px;
  max-width: 220px;
  color: var(--sales-gray-400);
  font-size: 10px;
  font-weight: 400;
  line-height: 14.2857px;
}

.sales-page .sales-order-date > span {
  font-size: inherit;
}

.sales-page .sales-id-button {
  flex: 1 1 140px;
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--sales-gray-900);
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 20px;
}

.sales-page .sales-integration-tag {
  max-width: 200px;
  margin-top: 0;
  padding: 2px 6px;
  gap: 6px;
  border: 0;
  border-radius: 4px;
  color: var(--sales-gray-600);
  background: var(--sales-gray-100);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.sales-page .sales-integration-tag svg {
  width: 12px;
  height: 12px;
}

.sales-page .sales-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  text-transform: uppercase;
}

.sales-page .sales-status-blue {
  color: oklch(.488 .243 264.376);
  background: oklch(.932 .032 255.585);
}

.sales-page .sales-status-green {
  color: oklch(.527 .154 150.069);
  background: oklch(.962 .044 156.743);
}

.sales-page .sales-status-purple {
  color: oklch(.496 .265 301.924);
  background: oklch(.946 .033 307.174);
}

.sales-page .sales-status-cyan {
  color: oklch(.52 .105 223.128);
  background: oklch(.956 .045 203.388);
}

.sales-page .sales-status-red {
  color: oklch(.505 .213 27.518);
  background: oklch(.936 .032 17.717);
}

.sales-page .sales-table > tbody > .sales-order-row .sales-icon-button {
  width: 22px;
  height: 22px;
  padding: 4px;
  color: var(--sales-gray-400);
}

.sales-page .sales-table > tbody > .sales-order-row .sales-icon-button svg {
  width: 14px;
  height: 14px;
}

.sales-page .sales-channel {
  width: 24px;
  height: 24px;
}

.sales-page .sales-channel-logo {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sales-page .sales-channel-note {
  display: block;
  margin-top: 2px;
  color: var(--sales-gray-500);
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
}

.sales-page .sales-num {
  letter-spacing: 0;
}

.sales-page .sales-items-cell strong {
  color: var(--sales-gray-900);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.sales-page .sales-items-cell small {
  margin-top: 0;
  color: var(--sales-gray-400);
  font-size: 10px;
  font-weight: 400;
  line-height: 14.2857px;
}

.sales-page .sales-revenue-cell {
  font-weight: 700;
}

.sales-page .sales-cost {
  color: var(--sales-gray-500);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.sales-page .sales-cost-outflow {
  color: oklch(.637 .237 25.331);
}

.sales-page .sales-cost-neutral {
  color: var(--sales-gray-500);
}

.sales-page .sales-positive {
  color: oklch(.627 .194 149.214);
}

.sales-page .sales-negative {
  color: oklch(.637 .237 25.331);
}

.sales-page .sales-margin-low {
  color: oklch(.705 .213 47.604);
}

.sales-page .sales-margin-cell strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
}

.sales-page .sales-margin-cell small {
  margin-top: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 14.2857px;
}

.sales-page .sales-margin-cell small.sales-positive {
  color: oklch(.723 .219 149.579);
}

.sales-page .sales-margin-high {
  color: oklch(.723 .219 149.579);
}

.sales-page .sales-table-footer {
  padding: 16px 24px;
  border-color: var(--sales-gray-200);
  border-top: 1px solid var(--sales-gray-200);
  border-radius: 0 0 22px 22px;
  color: var(--sales-gray-500);
  background: oklch(.985 .002 247.839 / .5);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.sales-page .sales-table-footer strong {
  color: inherit;
  font-weight: inherit;
}

.sales-page .sales-pagination > button {
  padding: 6px 12px;
  border: 1px solid oklch(.872 .01 258.338);
  border-radius: 10px;
  color: var(--sales-gray-700);
  background: #fff;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 16px;
}

@container (max-width: 128px) {
  .sales-page .sales-kpi strong { font-size: 15px; }
}

@container (max-width: 1100px) {
  .sales-page .sales-table-toolbar { flex-wrap: wrap; }
  .sales-page .sales-search { flex: 1 0 100%; }
  .sales-page .sales-table-toolbar > .sales-search + .sales-toolbar-divider { display: none; }
}

@media (max-width: 1050px) {
  .app-main:has(> .sales-page) { padding: 84px 18px 32px; }
  .sales-page .sales-platform-bar { flex-wrap: wrap; }
  .sales-page .sales-platform-tabs { max-width: 100%; }
  .sales-page .sales-account-button { margin-left: auto; }
  .sales-page .sales-kpi:last-child { grid-column: auto; }
}

@media (max-width: 700px) {
  .app-main:has(> .sales-page) { padding: 80px 12px 64px; }
  .sales-page .sales-platform-bar { padding: 10px; }
  .sales-page .sales-platform-tabs { width: 100%; }
  .sales-page .sales-platform-tab { flex: 1; padding: 10px 16px; }
  .sales-page .sales-kpis { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
  .sales-page .sales-result { flex-direction: column; padding: 16px; }
  .sales-page .sales-result-revenue,
  .sales-page .sales-result-costs,
  .sales-page .sales-result-margin { flex: 0 1 auto; min-width: 0; }
  .sales-page .sales-math-symbol { display: none; }
  .sales-page .sales-revenue-box { min-height: 100px; }
  .sales-page .sales-cost-box { min-height: 0; }
  .sales-page .sales-cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .sales-page .sales-cost-item > span { flex-wrap: wrap; }
  .sales-page .sales-cost-item > div { flex-wrap: wrap; gap: 2px 8px; }
  .sales-page .sales-margin-box { min-height: 200px; }
}

/* Retain each mock order's unique suffix within the observed column width. */
.sales-page .sales-id-button {
  display: inline-flex;
  align-items: baseline;
  text-align: left;
}
.sales-page .sales-id-prefix {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sales-page .sales-id-suffix {
  flex: 0 0 auto;
}
