/*
 * modern-orders.css — Orders queue / list page (ModernOrdersPage): topbar,
 * orders grid, order detail, items-card, list-card / list-row.
 *
 * Phase 6 split: peeled verbatim off modern-base.css (was lines 11441-12486).
 * GLOBAL stylesheet (not Blazor-scoped), loaded via index.html AFTER
 * modern-base.css and BEFORE modern-message-dialog.css — that source order is
 * load-bearing. Do not reorder the <link> tags. Tokens (--scale-*) resolve
 * from modern-tokens.css imported by modern-base.css.
 */

.scale-modern-orders-topbar {
  flex: 0 0 auto;
  height: auto;
  min-height: 50px;
  padding: 8px 16px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0.5px solid var(--scale-separator);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

[data-scale-theme="dark"] .scale-modern-orders-topbar {
  background: var(--scale-bar-bg);
}

.scale-modern-orders-topbar .scale-modern-pos-brand {
  position: static;
  min-width: 220px;
  height: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.scale-modern-orders-topbar .scale-modern-pos-logo {
  width: 92px;
  height: 24px;
  object-fit: contain;
  object-position: left center;
}

.scale-modern-orders-topbar .scale-modern-pos-topbar-actions {
  position: static;
  transform: none;
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  background: transparent;
}

.scale-modern-orders-topbar .scale-modern-pos-nav {
  display: inline-flex;
  gap: 0;
  padding: 2px;
  border-radius: 9px;
  background: rgba(120, 120, 128, 0.16);
}

.scale-modern-orders-topbar .scale-modern-pos-nav button {
  position: relative;
  min-width: 84px;
  min-height: 28px;
  padding: 5px 14px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--scale-text-mute);
  background: transparent;
  font-size: var(--scale-type-subheadline-size);
  line-height: var(--scale-type-subheadline-line);
  font-weight: 500;
  transition: background 120ms ease;
}

.scale-modern-orders-topbar .scale-modern-pos-nav button.is-active {
  color: var(--scale-text);
  background: var(--scale-panel);
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.10), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
}

.scale-modern-orders-topbar .scale-modern-pos-nav button span {
  min-width: 18px;
  height: 16px;
  margin-left: 0;
  padding: 0 5px;
  border-radius: 8px;
  background: rgba(120, 120, 128, 0.22);
  color: var(--scale-text-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--scale-fs-11);
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.scale-modern-orders-topbar .scale-modern-pos-nav button.is-active span {
  background: var(--scale-primary);
  color: var(--scale-text-on-primary);
}

.scale-modern-orders-topbar .scale-modern-pos-nav button.has-alert::after {
  top: 2px;
  right: 6px;
  box-shadow: 0 0 0 2px var(--scale-panel);
}

.scale-modern-orders-topbar .scale-modern-pos-userbar {
  position: static;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.scale-modern-orders-topbar .scale-modern-pos-location {
  height: 27px;
  padding: 4px 10px 4px 8px !important;
  gap: 6px;
  border-radius: 999px !important;
  background: rgba(120, 120, 128, 0.12) !important;
}

.scale-modern-orders-topbar .scale-modern-pos-location i {
  font-size: var(--scale-fs-13);
  color: var(--scale-text-mute);
}

.scale-modern-orders-topbar .scale-modern-pos-location strong {
  font-size: var(--scale-type-footnote-size);
  line-height: var(--scale-type-footnote-line);
  font-weight: 600;
}

.scale-modern-orders-topbar .scale-modern-pos-location span {
  font-size: var(--scale-type-caption-1-size);
  line-height: var(--scale-type-caption-1-line);
  font-weight: 600;
}

.scale-modern-orders-topbar .scale-modern-pos-avatar {
  width: 32px;
  height: 32px;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 16px !important;
  background: var(--scale-primary);
  color: var(--scale-text-on-primary);
  font-size: var(--scale-fs-12);
  font-weight: 600;
  box-shadow: none;
}

.scale-modern-orders-grid {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 35%) minmax(0, 65%);
  /* Constrain the single row to the grid's height so a long order's preview pane can't grow
     the row - the cart list scrolls inside a fixed area instead. */
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

/* Divider on the seam between the order preview (left) and the list (right).
   Matches the POS page's cart/menu divider: a solid 1px --scale-border line, not
   the near-invisible 0.5px translucent hairline this used to be. */
.scale-modern-orders-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 35%;
  width: 1px;
  background: var(--scale-border);
  transform: translateX(-0.5px);
  pointer-events: none;
  z-index: 2;
}

.scale-modern-orders-summary {
  min-height: 0;
  padding: 14px 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.scale-modern-orders-dummy-pane {
  padding: 0;
  gap: 0;
  border-right: 0;
}

.scale-modern-orders-dummy-cart {
  width: 100%;
  /* Fill the (fixed-height) pane as a flex child and allow shrinking, so the cart list inside
     scrolls instead of the whole pane growing with the order's items. */
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.scale-modern-orders-detail-list {
  gap: 0;
}

.scale-modern-orders-detail-item {
  width: 100%;
  padding: 9px 10px;
  border-bottom: 0.5px solid var(--scale-separator);
  color: var(--scale-text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 70px;
  gap: 8px;
  align-items: flex-start;
  font-family: var(--scale-font-sans);
}

.scale-modern-orders-detail-item:last-child {
  border-bottom: 0;
}

.scale-modern-orders-detail-item > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scale-modern-orders-detail-item strong {
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.scale-modern-orders-detail-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.scale-modern-orders-detail-title .scale-modern-pos-cart-badge {
  color: var(--scale-primary);
  font-size: var(--scale-fs-9);
  font-weight: 700;
  line-height: 14px;
  overflow-wrap: normal;
}

.scale-modern-orders-detail-title .scale-modern-pos-cart-badge.is-mods {
  color: var(--scale-accent);
}

.scale-modern-orders-detail-title > span:last-child {
  min-width: 0;
  color: var(--scale-text);
}

.scale-modern-orders-detail-mod-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.scale-modern-orders-detail-mod-line .scale-modern-pos-cart-badge {
  color: var(--scale-accent);
  font-size: var(--scale-fs-9);
  font-weight: 700;
  line-height: 14px;
  overflow-wrap: normal;
  flex: 0 0 auto;
}

.scale-modern-orders-detail-mod-line > span:last-child {
  min-width: 0;
}

.scale-modern-orders-detail-item small,
.scale-modern-orders-detail-item span {
  color: var(--scale-text-mute);
  font-size: var(--scale-type-caption-1-size);
  font-weight: 400;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.scale-modern-orders-detail-item small {
  padding-left: 8px;
  border-left: 2px solid color-mix(in srgb, var(--scale-primary) 30%, var(--scale-separator));
}

/* Qty column: muted, like the order page cart item qty. */
.scale-modern-orders-detail-item em {
  color: var(--scale-text-mute);
  font-size: var(--scale-fs-12);
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Price column: same size/boldness as the order page cart item price. */
.scale-modern-orders-detail-item b {
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-style: normal;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.scale-modern-orders-list-pane {
  min-width: 0;
  min-height: 0;
  padding: 14px 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.scale-modern-orders-section,
.scale-modern-orders-total-card,
.scale-modern-orders-items-card,
.scale-modern-orders-empty-panel {
  background: var(--scale-panel);
  border-radius: 12px;
  box-shadow: var(--scale-shadow-hairline);
  overflow: hidden;
}

.scale-modern-orders-summary-header {
  min-height: 38px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 0.5px solid var(--scale-separator);
}

.scale-modern-orders-summary-header strong {
  color: var(--scale-text);
  font-size: var(--scale-fs-14);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.scale-modern-orders-summary-header span {
  width: 0.5px;
  height: 16px;
  background: var(--scale-separator);
  flex-shrink: 0;
}

.scale-modern-orders-summary-header b {
  min-width: 0;
  flex: 1;
  color: var(--scale-text-soft);
  font-size: var(--scale-fs-14);
  line-height: 1.35;
  font-weight: 400;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-modern-orders-summary-header em {
  color: var(--scale-text-muted);
  font-size: var(--scale-fs-12);
  line-height: 1.35;
  font-style: normal;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.scale-modern-orders-type-row {
  padding: 6px 10px;
  display: inline-flex;
  width: 100%;
  gap: 0;
}

.scale-modern-orders-type-pill {
  flex: 1;
  min-height: 32px;
  padding: 7px 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--scale-text-muted);
  font-size: var(--scale-type-subheadline-size);
  line-height: var(--scale-type-subheadline-line);
  font-weight: 500;
}

.scale-modern-orders-type-row {
  background: rgba(120, 120, 128, 0.16);
  border-radius: 9px;
  margin: 6px 10px;
  padding: 2px;
  width: calc(100% - 20px);
}

.scale-modern-orders-type-pill.is-active {
  background: var(--scale-panel);
  color: var(--scale-text);
  font-weight: 600;
  box-shadow: var(--scale-shadow-tile);
}

.scale-modern-orders-type-note {
  min-width: 94px;
  max-width: 150px;
  height: 32px;
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: var(--scale-text-muted);
  background: color-mix(in srgb, var(--scale-text-muted) 10%, transparent);
  font-size: var(--scale-type-footnote-size);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-modern-orders-items-block {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.scale-modern-orders-label,
.scale-modern-orders-list-title {
  padding: 0 8px 6px;
  color: var(--scale-text-soft);
  font-size: var(--scale-type-footnote-size);
  line-height: var(--scale-type-footnote-line);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scale-modern-orders-list-title {
  padding-top: 4px;
}

.scale-modern-orders-list-title__badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(19, 84, 155, 0.10);
  color: var(--scale-primary);
  font-size: var(--scale-fs-10);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.scale-modern-orders-items-card {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.scale-modern-orders-item-row {
  padding: 10px 14px 10px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 80px;
  gap: 8px;
  align-items: start;
  border-bottom: 0.5px solid var(--scale-separator);
}

.scale-modern-orders-item-row:last-child {
  border-bottom: 0;
}

.scale-modern-orders-item-row p {
  margin: 0;
  color: var(--scale-text);
  font-size: var(--scale-type-callout-size);
  line-height: var(--scale-type-callout-line);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-modern-orders-item-row span {
  display: block;
  margin-top: 2px;
  color: var(--scale-text-muted);
  font-size: var(--scale-type-footnote-size);
  line-height: var(--scale-type-footnote-line);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-modern-orders-item-row em,
.scale-modern-orders-item-row strong {
  font-style: normal;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.scale-modern-orders-item-row em {
  color: var(--scale-text-muted);
  font-size: var(--scale-type-footnote-size);
  font-weight: 400;
}

.scale-modern-orders-item-row strong {
  color: var(--scale-text);
  font-size: var(--scale-type-callout-size);
  font-weight: 500;
}

.scale-modern-orders-muted,
.scale-modern-orders-list-empty,
.scale-modern-orders-empty-panel {
  color: var(--scale-text-soft);
  font-size: var(--scale-type-subheadline-size);
  font-weight: 500;
  text-align: center;
}

.scale-modern-orders-muted {
  padding: 40px 14px;
}

.scale-modern-orders-empty-panel {
  min-height: 180px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.scale-modern-orders-empty-panel strong {
  color: var(--scale-text);
  font-size: var(--scale-type-headline-size);
  font-weight: 600;
}

.scale-modern-orders-total-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.5px auto;
}

.scale-modern-orders-total-lines {
  padding: 8px 12px 8px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.scale-modern-orders-total-lines div {
  min-height: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--scale-text-muted);
  font-size: var(--scale-fs-12);
  line-height: 1.35;
  font-weight: 500;
}

.scale-modern-orders-total-lines strong {
  color: var(--scale-text);
  font-size: var(--scale-fs-12);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.scale-modern-orders-total-lines .is-danger {
  color: var(--scale-danger);
}

.scale-modern-orders-total-divider {
  background: var(--scale-separator);
}

.scale-modern-orders-net {
  min-width: 124px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.scale-modern-orders-net span {
  color: var(--scale-text-soft);
  font-size: var(--scale-fs-10);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scale-modern-orders-net strong {
  margin-top: 1px;
  color: var(--scale-text);
  font-size: var(--scale-fs-24);
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scale-modern-orders-net small {
  color: var(--scale-text-muted);
  font-size: var(--scale-fs-11);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.scale-modern-orders-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scale-modern-orders-primary,
.scale-modern-orders-actions button {
  border: 0;
  font-family: var(--scale-font-sans);
}

.scale-modern-orders-primary {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  background: var(--scale-primary);
  color: var(--scale-text-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--scale-type-headline-size);
  font-weight: 600;
}

.scale-modern-orders-primary i {
  font-size: var(--scale-fs-18);
}

.scale-modern-orders-actions > div {
  display: flex;
  gap: 6px;
}

.scale-modern-orders-actions > div button {
  flex: 1;
  min-height: 38px;
  border-radius: 10px;
  background: var(--scale-tinted);
  color: var(--scale-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: var(--scale-type-footnote-size);
  font-weight: 600;
}

.scale-modern-orders-actions > div button:disabled {
  opacity: 0.45;
}

.scale-modern-orders-actions > div i {
  font-size: var(--scale-fs-15);
}

.scale-modern-orders-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.scale-modern-orders-search {
  height: 36px;
  border-radius: 10px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(120, 120, 128, 0.12);
}

.scale-modern-orders-search i {
  color: var(--scale-text-muted);
  font-size: var(--scale-fs-15);
}

.scale-modern-orders-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--scale-text);
  font-family: var(--scale-font-sans);
  font-size: var(--scale-type-body-size);
  font-weight: 400;
}

.scale-modern-orders-filter {
  min-height: var(--scale-chip-height);
  border-radius: 10px;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  width: 100%;
  background: rgba(120, 120, 128, 0.16);
}

.scale-modern-orders-filter button {
  flex: 1;
  min-width: 0;
  min-height: var(--scale-chip-height);
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--scale-text-muted);
  font-family: var(--scale-font-sans);
  font-size: var(--scale-type-subheadline-size);
  line-height: var(--scale-type-subheadline-line);
  font-weight: 500;
}

.scale-modern-orders-filter button.is-active {
  background: var(--scale-panel);
  color: var(--scale-text);
  font-weight: 600;
  box-shadow: var(--scale-shadow-tile);
}

.scale-modern-orders-list-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.scale-modern-orders-list-card {
  height: 100%;
  min-height: 60px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 28px;
}

.scale-modern-orders-list-scroll-fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 4px;
  bottom: 0;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--scale-bg) 90%);
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: 2;
}

.scale-modern-orders-list-scroll.has-more .scale-modern-orders-list-scroll-fade {
  opacity: 1;
}

.scale-modern-orders-list-scroll-pill {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0 !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 3px 9px 3px 10px !important;
  border-radius: 999px !important;
  background: var(--scale-panel) !important;
  box-shadow: 0 0 0 0.5px var(--scale-separator), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  color: var(--scale-text-mute) !important;
  font-family: var(--scale-font-sans);
  font-size: var(--scale-type-caption-1-size) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  border: 0 !important;
  opacity: 0;
  transition: opacity 200ms ease;
  cursor: pointer;
}

.scale-modern-orders-list-scroll.has-more .scale-modern-orders-list-scroll-pill {
  pointer-events: auto;
  opacity: 1;
}

.scale-modern-orders-list-scroll-pill i {
  width: 11px;
  height: 11px;
  font-size: var(--scale-fs-11) !important;
  line-height: 11px !important;
}

.scale-modern-orders-list-card--cols4,
.scale-modern-orders-list-card--cols6,
.scale-modern-orders-list-card--cols3 {
  display: grid;
  /* Rows keep their content height and stack from the top. Without this the
     container's height:100% (set on .scale-modern-orders-list-card) makes the
     default align-content:stretch blow a single row up to the full pane. */
  align-content: start;
  align-items: stretch;
  gap: 10px;
  padding: 2px;
}

.scale-modern-orders-list-card--cols4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.scale-modern-orders-list-card--cols3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scale-modern-orders-list-card--cols6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.scale-modern-orders-list-row {
  width: 100%;
  min-height: 60px;
  padding: 1% !important;
  border: 0 !important;
  border-bottom: 0.5px solid var(--scale-separator) !important;
  background: transparent;
  color: var(--scale-text);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  gap: 14px;
  align-items: center;
  text-align: left;
  font-family: var(--scale-font-sans);
}

.scale-modern-orders-list-card--cols4 .scale-modern-orders-list-row,
.scale-modern-orders-list-card--cols6 .scale-modern-orders-list-row,
.scale-modern-orders-list-card--cols3 .scale-modern-orders-list-row {
  min-height: 118px;
  padding: 12px !important;
  border: 0.5px solid var(--scale-separator) !important;
  border-radius: 12px !important;
  background: var(--scale-panel);
  box-shadow: var(--scale-shadow-tile);
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  gap: 10px 12px;
}

/* Six across leaves each card roughly half the width of a cols3 card, so the
   card is tightened one step (the same move cols6 makes on the POS product
   tile) instead of keeping cols3/cols4 padding in a much narrower box. */
.scale-modern-orders-list-card--cols6 .scale-modern-orders-list-row {
  min-height: 96px;
  padding: 9px !important;
  border-radius: 10px !important;
  gap: 6px 8px;
}

.scale-modern-orders-list-row:last-child {
  border-bottom: 0;
}

.scale-modern-orders-list-card--cols4 .scale-modern-orders-list-row:last-child,
.scale-modern-orders-list-card--cols6 .scale-modern-orders-list-row:last-child,
.scale-modern-orders-list-card--cols3 .scale-modern-orders-list-row:last-child {
  border-bottom: 0.5px solid var(--scale-separator) !important;
}

.scale-modern-orders-list-row.is-active,
.scale-modern-orders-list-row.is-selected {
  background: var(--scale-primary-soft);
}

.scale-modern-orders-list-row p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.scale-modern-orders-list-row p strong {
  color: var(--scale-text);
  font-size: var(--scale-type-headline-size);
  line-height: var(--scale-type-headline-line);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}

.scale-modern-orders-list-row p span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--scale-success);
}

.scale-modern-orders-list-row p span.is-delivery {
  background: var(--scale-accent);
}

.scale-modern-orders-list-row p span.is-togo {
  background: var(--scale-info);
}

.scale-modern-orders-list-row p em {
  min-width: 0;
  color: var(--scale-success);
  font-size: var(--scale-type-footnote-size);
  line-height: var(--scale-type-footnote-line);
  font-style: normal;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scale-modern-orders-list-row p em.is-delivery {
  color: var(--scale-accent);
}

.scale-modern-orders-list-row p em.is-togo {
  color: var(--scale-info);
}

.scale-modern-orders-list-row small {
  display: block;
  margin-top: 3px;
  color: var(--scale-text-muted);
  font-size: var(--scale-type-footnote-size);
  line-height: var(--scale-type-footnote-line);
  font-weight: 400;
}

.scale-modern-orders-list-row > div:nth-child(2) {
  text-align: right;
}

.scale-modern-orders-list-row > div:nth-child(2) strong {
  display: block;
  color: var(--scale-text);
  font-size: var(--scale-type-headline-size);
  line-height: var(--scale-type-headline-line);
  font-weight: 600;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}

.scale-modern-orders-list-row > div:nth-child(2) small {
  margin: 0;
  color: var(--scale-text-muted);
  font-size: var(--scale-type-caption-2-size);
  line-height: var(--scale-type-caption-2-line);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.scale-modern-orders-list-row > i {
  color: var(--scale-text-soft);
  font-size: var(--scale-fs-16);
}

.scale-modern-orders-list-card--cols4 .scale-modern-orders-list-row > i,
.scale-modern-orders-list-card--cols6 .scale-modern-orders-list-row > i,
.scale-modern-orders-list-card--cols3 .scale-modern-orders-list-row > i {
  display: none;
}

.scale-modern-orders-list-card--cols4 .scale-modern-orders-list-row > div:first-child,
.scale-modern-orders-list-card--cols6 .scale-modern-orders-list-row > div:first-child,
.scale-modern-orders-list-card--cols3 .scale-modern-orders-list-row > div:first-child {
  grid-column: 1 / 3;
}

.scale-modern-orders-list-card--cols4 .scale-modern-orders-list-row > div:nth-child(2),
.scale-modern-orders-list-card--cols6 .scale-modern-orders-list-row > div:nth-child(2),
.scale-modern-orders-list-card--cols3 .scale-modern-orders-list-row > div:nth-child(2) {
  grid-column: 1 / 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  text-align: left;
}

.scale-modern-orders-list-card--cols4 .scale-modern-orders-list-row > div:nth-child(2) strong,
.scale-modern-orders-list-card--cols6 .scale-modern-orders-list-row > div:nth-child(2) strong,
.scale-modern-orders-list-card--cols3 .scale-modern-orders-list-row > div:nth-child(2) strong {
  font-size: var(--scale-type-headline-size);
  line-height: var(--scale-type-headline-line);
}

.scale-modern-orders-list-card--cols4 .scale-modern-orders-list-row > div:nth-child(2) small,
.scale-modern-orders-list-card--cols6 .scale-modern-orders-list-row > div:nth-child(2) small,
.scale-modern-orders-list-card--cols3 .scale-modern-orders-list-row > div:nth-child(2) small {
  margin: 0;
}

.scale-modern-orders-list-card--cols4 .scale-modern-orders-list-row p,
.scale-modern-orders-list-card--cols6 .scale-modern-orders-list-row p,
.scale-modern-orders-list-card--cols3 .scale-modern-orders-list-row p {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.scale-modern-orders-list-card--cols4 .scale-modern-orders-list-row small,
.scale-modern-orders-list-card--cols6 .scale-modern-orders-list-row small,
.scale-modern-orders-list-card--cols3 .scale-modern-orders-list-row small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scale-modern-orders-list-empty {
  padding: 40px;
}

.scale-modern-orders-list-foot {
  flex: 0 0 auto;
  padding: 8px 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--scale-text-soft);
  font-size: var(--scale-type-footnote-size);
  line-height: var(--scale-type-footnote-line);
  font-weight: 400;
}

.scale-modern-orders-list-foot span:last-child {
  font-variant-numeric: tabular-nums;
}

