/* === XR ORDERS V2 REGISTRY V1 START === */

.xr-ui2-runtime .xr3-orders-sticky { position: sticky; top: 0; z-index: 12; padding: 16px 0; background: var(--xr2-bg); border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-orders-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.xr-ui2-runtime .xr3-orders-heading h1 { font-size: 22px; margin: 0 auto 0 0; letter-spacing: 0; }
.xr-ui2-runtime .xr3-orders-heading svg { width: 18px; height: 18px; flex: 0 0 18px; }
.xr-ui2-runtime .xr3-orders-search { display: flex; gap: 6px; min-width: 0; max-width: 100%; }
.xr-ui2-runtime .xr3-orders-search input { width: 240px; min-width: 0; }
.xr-ui2-runtime .xr3-order-controls { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; align-items: center; }
.xr-ui2-runtime .xr3-order-statuses { display: inline-flex; border: 1px solid var(--xr2-border); border-radius: 6px; padding: 3px; gap: 2px; }
.xr-ui2-runtime .xr3-order-statuses .xr2-btn { border: 0; background: transparent; }
.xr-ui2-runtime .xr3-order-statuses [aria-pressed="true"] { background: #d5dc85; color: #272b21; }
.xr-ui2-runtime .xr3-order-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.xr-ui2-runtime .xr3-order-filters label { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.xr-ui2-runtime .xr3-order-filters input { width: 16px; height: 16px; margin: 0; accent-color: #626d29; }
.xr-ui2-runtime .xr3-order-filters label:has(:disabled) { opacity: .45; cursor: default; }
.xr-ui2-runtime .xr3-order-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(170px, 1fr) minmax(110px, .6fr); gap: 24px; padding: 20px 4px; border-bottom: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-order-row > div { min-width: 0; }
.xr-ui2-runtime .xr3-order-identity .xr-orders-order-link { align-items: flex-start; }
.xr-ui2-runtime .xr3-order-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 12px; }
.xr-ui2-runtime .xr3-order-items { font-size: 12px; color: var(--xr2-muted); margin: 8px 0 0; overflow-wrap: anywhere; }
.xr-ui2-runtime .xr3-order-dates { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.xr-ui2-runtime .xr3-order-money { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; font-size: 16px; }
.xr-ui2-runtime .xr3-order-row strong { overflow-wrap: anywhere; }
.xr-ui2-runtime .xr3-orders-empty { padding: 40px 0; color: var(--xr2-muted); }
@media (max-width: 700px) {
  .xr-ui2-runtime .xr3-order-row { grid-template-columns: minmax(0, 1fr) minmax(100px, .6fr); gap: 14px; }
  .xr-ui2-runtime .xr3-order-dates { grid-row: 2; grid-column: 1 / -1; }
  .xr-ui2-runtime .xr3-order-money { grid-row: 1; grid-column: 2; }
  .xr-ui2-runtime .xr3-orders-search:has(input) { width: 100%; }
  .xr-ui2-runtime .xr3-orders-search input { flex: 1; }
  .xr-ui2-runtime .xr3-order-controls { gap: 12px; }
}

.xr-ui2-runtime .xr-orders-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: var(--xr2-surface);
}

.xr-ui2-runtime .xr-orders-kpi {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border: 0;
  border-right: 1px solid var(--xr2-border);
  background: var(--xr2-surface);
  color: var(--xr2-muted);
  font: inherit;
  cursor: pointer;
}

.xr-ui2-runtime .xr-orders-kpi:last-child {
  border-right: 0;
}

.xr-ui2-runtime .xr-orders-kpi:hover {
  background: var(--xr2-surface-soft);
}

.xr-ui2-runtime .xr-orders-kpi span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xr-ui2-runtime .xr-orders-kpi strong {
  color: var(--xr2-text);
  font-size: 18px;
  line-height: 1;
}

.xr-ui2-runtime .xr-orders-kpi.is-active {
  box-shadow: inset 0 -2px 0 var(--xr2-brand);
  background: var(--xr2-brand-soft);
  color: #1d4ed8;
}

.xr-ui2-runtime .xr-orders-kpi.is-danger strong { color: var(--xr2-danger); }
.xr-ui2-runtime .xr-orders-kpi.is-warning strong { color: var(--xr2-warning); }
.xr-ui2-runtime .xr-orders-kpi.is-success strong { color: var(--xr2-success); }
.xr-ui2-runtime .xr-orders-kpi.is-info strong,
.xr-ui2-runtime .xr-orders-kpi.is-brand strong { color: var(--xr2-brand); }

.xr-ui2-runtime .xr-orders-search {
  width: min(520px, 42vw);
}

.xr-ui2-runtime .xr-orders-filter {
  width: 210px;
}

.xr-ui2-runtime .xr-orders-control-label {
  display: none;
}

.xr-ui2-runtime .xr-orders-view-toggle {
  display: inline-flex;
  min-height: var(--xr2-control-h);
  padding: 2px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius-sm);
  background: var(--xr2-surface-soft);
}

.xr-ui2-runtime .xr-orders-view-button {
  min-width: 92px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--xr2-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.xr-ui2-runtime .xr-orders-view-button.is-active {
  background: var(--xr2-surface);
  color: var(--xr2-brand);
  box-shadow: var(--xr2-shadow-xs);
}

.xr-ui2-runtime .xr-orders-table-wrap {
  margin-top: 10px;
}

.xr-ui2-runtime .xr-orders-table {
  min-width: 1080px;
}

.xr-ui2-runtime .xr-orders-table td {
  height: 48px;
}

.xr-ui2-runtime .xr-orders-row {
  position: relative;
}

.xr-ui2-runtime .xr-orders-row > td:first-child {
  position: relative;
}

.xr-ui2-runtime .xr-orders-row > td:first-child::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  content: "";
}

.xr-ui2-runtime .xr-orders-row--danger > td:first-child::before {
  background: var(--xr2-danger);
}

.xr-ui2-runtime .xr-orders-row--warning > td:first-child::before {
  background: var(--xr2-warning);
}

.xr-ui2-runtime .xr-orders-order-link {
  display: flex;
  max-width: 100%;
  align-items: baseline;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.xr-ui2-runtime .xr-orders-order-link strong {
  flex: 0 0 auto;
  color: var(--xr2-text);
  font-weight: 750;
}

.xr-ui2-runtime .xr-orders-order-link span {
  min-width: 0;
  overflow: hidden;
  color: var(--xr2-text-soft);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #cbd5e1;
  text-underline-offset: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xr-ui2-runtime .xr-orders-order-link:hover span {
  color: var(--xr2-brand);
  text-decoration-color: var(--xr2-brand);
}

.xr-ui2-runtime .xr-orders-cell-sub {
  margin-top: 2px;
  overflow: hidden;
  color: var(--xr2-muted);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xr-ui2-runtime .xr-orders-period {
  display: grid;
  gap: 2px;
  color: var(--xr2-text-soft);
  font-size: 11px;
}

.xr-ui2-runtime .xr-orders-period span {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px;
  white-space: nowrap;
}

.xr-ui2-runtime .xr-orders-period b {
  color: var(--xr2-muted);
  font-size: 10px;
  font-weight: 650;
}

.xr-ui2-runtime .xr-orders-amount {
  color: var(--xr2-text);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.xr-ui2-runtime .xr-orders-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.xr-ui2-runtime .xr-orders-next-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.xr-ui2-runtime .xr-orders-next-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.xr-ui2-runtime .xr-orders-next-copy span {
  overflow: hidden;
  color: var(--xr2-muted);
  font-size: 9px;
  font-weight: 750;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.xr-ui2-runtime .xr-orders-next-copy strong {
  overflow: hidden;
  color: var(--xr2-text);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xr-ui2-runtime .xr-orders-next-copy small {
  overflow: hidden;
  color: var(--xr2-muted);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xr-ui2-runtime .xr-orders-next-cell--danger .xr-orders-next-copy strong {
  color: var(--xr2-danger);
}

.xr-ui2-runtime .xr-orders-next-cell--warning .xr-orders-next-copy strong {
  color: var(--xr2-warning);
}

.xr-ui2-runtime .xr-orders-next-cell--success .xr-orders-next-copy strong {
  color: var(--xr2-success);
}

.xr-ui2-runtime .xr-orders-primary-compact {
  min-width: 78px;
  min-height: 32px;
  padding: 0 9px;
  font-size: 11px;
}

.xr-ui2-runtime .xr-orders-menu > summary {
  list-style: none;
}

.xr-ui2-runtime .xr-orders-menu > summary::-webkit-details-marker {
  display: none;
}

.xr-ui2-runtime .xr-orders-menu[open] > summary {
  border-color: #93b4fb;
  background: var(--xr2-brand-soft);
  color: var(--xr2-brand);
}

.xr-ui2-runtime .xr-orders-expanded-row td {
  height: auto;
  padding: 0;
  background: #fbfcfe;
}

.xr-ui2-runtime .xr-orders-expanded-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  padding: 10px 12px 12px 18px;
  border-bottom: 1px solid var(--xr2-border);
}

.xr-ui2-runtime .xr-orders-expanded-label {
  margin-bottom: 5px;
  color: var(--xr2-muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.xr-ui2-runtime .xr-orders-items-inline {
  display: grid;
  gap: 2px;
}

.xr-ui2-runtime .xr-orders-item-inline {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 64px 92px 30px;
  gap: 8px;
  align-items: center;
  min-height: 25px;
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--xr2-muted);
  font-size: 11px;
}

.xr-ui2-runtime .xr-orders-item-inline:nth-child(odd) {
  background: #f5f8fb;
}

.xr-ui2-runtime .xr-orders-item-inline.has-deficit {
  background: var(--xr2-warning-soft);
  color: #92400e;
}

.xr-ui2-runtime .xr-orders-item-name {
  overflow: hidden;
  color: var(--xr2-text-soft);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xr-ui2-runtime .xr-orders-items-more,
.xr-ui2-runtime .xr-orders-expanded-empty {
  padding: 4px 6px;
  color: var(--xr2-muted);
  font-size: 11px;
}

.xr-ui2-runtime .xr-orders-expanded-meta {
  display: grid;
  align-content: start;
  gap: 5px;
}

.xr-ui2-runtime .xr-orders-expanded-meta > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  min-height: 24px;
  align-items: center;
  color: var(--xr2-text-soft);
  font-size: 11px;
}

.xr-ui2-runtime .xr-orders-expanded-meta span {
  color: var(--xr2-muted);
}

.xr-ui2-runtime .xr-orders-expanded-comment {
  align-items: start !important;
}

.xr-ui2-runtime .xr-orders-expanded-comment p {
  margin: 0;
  overflow: hidden;
  line-height: 1.35;
}

.xr-ui2-runtime .xr-orders-trash {
  margin-top: 10px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: var(--xr2-surface);
}

.xr-ui2-runtime .xr-orders-trash > summary {
  padding: 9px 11px;
  color: var(--xr2-muted);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.xr-ui2-runtime .xr-orders-trash-body {
  padding: 0 10px 10px;
}

.xr-ui2-runtime .xr-orders-editor-legacy {
  min-width: 0;
}

/* Drawer */

.xr-ui2-runtime .xr-orders-drawer {
  width: min(520px, calc(100vw - 32px));
}

.xr-ui2-runtime .xr-orders-drawer-kicker {
  margin-bottom: 2px;
  color: var(--xr2-muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.xr-ui2-runtime .xr-orders-drawer-statuses {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.xr-ui2-runtime .xr-orders-drawer-total {
  display: grid;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: var(--xr2-surface-soft);
}

.xr-ui2-runtime .xr-orders-drawer-total span {
  color: var(--xr2-muted);
  font-size: 11px;
}

.xr-ui2-runtime .xr-orders-drawer-total strong {
  margin-top: 2px;
  color: var(--xr2-text);
  font-size: 24px;
  line-height: 1.1;
}

.xr-ui2-runtime .xr-orders-drawer-total small {
  margin-top: 4px;
  color: var(--xr2-muted);
}

.xr-ui2-runtime .xr-orders-drawer-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.xr-ui2-runtime .xr-orders-drawer-meta-grid > div {
  min-width: 0;
}

.xr-ui2-runtime .xr-orders-drawer-meta-grid span,
.xr-ui2-runtime .xr-orders-drawer-item span {
  display: block;
  color: var(--xr2-muted);
  font-size: 10px;
}

.xr-ui2-runtime .xr-orders-drawer-meta-grid strong {
  display: block;
  margin-top: 2px;
  color: var(--xr2-text-soft);
  font-size: 12px;
}

.xr-ui2-runtime .xr-orders-drawer-items {
  display: grid;
  gap: 4px;
}

.xr-ui2-runtime .xr-orders-drawer-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  padding: 7px 8px;
  border: 1px solid #e7edf4;
  border-radius: 6px;
  background: #fbfcfe;
}

.xr-ui2-runtime .xr-orders-drawer-item.has-deficit {
  border-color: #fde68a;
  background: var(--xr2-warning-soft);
}

.xr-ui2-runtime .xr-orders-drawer-item > div:last-child {
  text-align: right;
}

.xr-ui2-runtime .xr-orders-drawer-item strong {
  color: var(--xr2-text-soft);
  font-size: 12px;
}

.xr-ui2-runtime .xr-orders-drawer-comment {
  margin: 0;
  color: var(--xr2-text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.xr-ui2-runtime .xr-orders-drawer-next {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid var(--xr2-border);
  border-radius: 6px;
  background: var(--xr2-surface-soft);
}

.xr-ui2-runtime .xr-orders-drawer-next strong {
  min-width: 0;
  overflow: hidden;
  color: var(--xr2-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xr-ui2-runtime .xr-orders-drawer-next span {
  flex: 0 0 auto;
  color: var(--xr2-muted);
  font-size: 10px;
  font-weight: 700;
}

.xr-ui2-runtime .xr-orders-drawer-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px -16px -16px;
  padding: 10px 16px;
  border-top: 1px solid var(--xr2-border);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
}

@media (max-width: 1180px) {
  .xr-ui2-runtime .xr-orders-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xr-ui2-runtime .xr-orders-kpi {
    border-bottom: 1px solid var(--xr2-border);
  }

  .xr-ui2-runtime .xr-orders-kpi:nth-child(3n) {
    border-right: 0;
  }

  .xr-ui2-runtime .xr-orders-kpi:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .xr-ui2-runtime .xr-orders-search {
    width: min(440px, 48vw);
  }
}

@media (max-width: 760px) {
  .xr-ui2-runtime .xr-orders-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xr-ui2-runtime .xr-orders-kpi {
    border-right: 1px solid var(--xr2-border);
    border-bottom: 1px solid var(--xr2-border);
  }

  .xr-ui2-runtime .xr-orders-kpi:nth-child(2n) {
    border-right: 0;
  }

  .xr-ui2-runtime .xr-orders-kpi:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .xr-ui2-runtime .xr-orders-search,
  .xr-ui2-runtime .xr-orders-filter {
    width: 100%;
  }

  .xr-ui2-runtime .xr-orders-view-toggle {
    width: 100%;
  }

  .xr-ui2-runtime .xr-orders-view-button {
    flex: 1;
  }

  .xr-ui2-runtime .xr-orders-expanded-grid {
    grid-template-columns: 1fr;
  }

  .xr-ui2-runtime .xr-orders-drawer-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* === XR ORDERS V2 REGISTRY V1 END === */


/* === XR UI2 ORDERS ACTION MENU FIX V1 === */
.xr-ui2-runtime .xr-orders-menu-trigger {
  flex: 0 0 auto;
}

.xr-ui2-runtime .xr-orders-menu-trigger.is-open {
  border-color: #93b4fb;
  background: var(--xr2-brand-soft);
  color: var(--xr2-brand);
}

.xr-orders-floating-menu {
  position: fixed;
  z-index: 10050;
  display: grid;
  width: max-content;
  min-width: 190px;
  max-width: min(260px, calc(100vw - 16px));
  padding: 5px;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .08);
}

.xr-orders-floating-item {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334155;
  font: inherit;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.xr-orders-floating-item:hover,
.xr-orders-floating-item:focus-visible {
  outline: none;
  background: #f1f5f9;
  color: #0f172a;
}

/* === XR UI2 ORDERS VISUAL HIERARCHY V2.1 START === */

.xr-ui2-runtime .xr-orders-kpis {
  border-color: var(--xr2-border-strong);
  box-shadow: var(--xr2-shadow-sm);
}

.xr-ui2-runtime .xr-orders-kpi {
  position: relative;
  border-right-color: var(--xr2-border-strong);
  transition: background-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.xr-ui2-runtime .xr-orders-kpi:hover {
  position: relative;
  z-index: 1;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px #b9cae0;
}

.xr-ui2-runtime .xr-orders-kpi.is-brand {
  background: linear-gradient(180deg, #f8fbff 0%, var(--xr2-brand-soft) 100%);
  box-shadow: inset 0 3px 0 var(--xr2-brand);
}

.xr-ui2-runtime .xr-orders-kpi.is-info {
  background: linear-gradient(180deg, #f8fdff 0%, var(--xr2-info-soft) 100%);
  box-shadow: inset 0 3px 0 var(--xr2-info);
}

.xr-ui2-runtime .xr-orders-kpi.is-success {
  background: linear-gradient(180deg, #fbfffd 0%, var(--xr2-success-soft) 100%);
  box-shadow: inset 0 3px 0 var(--xr2-success);
}

.xr-ui2-runtime .xr-orders-kpi.is-warning {
  background: linear-gradient(180deg, #fffdf8 0%, var(--xr2-warning-soft) 100%);
  box-shadow: inset 0 3px 0 var(--xr2-warning);
}

.xr-ui2-runtime .xr-orders-kpi.is-danger {
  background: linear-gradient(180deg, #fffafa 0%, var(--xr2-danger-soft) 100%);
  box-shadow: inset 0 3px 0 var(--xr2-danger);
}

.xr-ui2-runtime .xr-orders-kpi.is-active {
  z-index: 2;
  box-shadow: inset 0 -3px 0 var(--xr2-brand), inset 0 0 0 1px #86aef7;
}

.xr-ui2-runtime .xr-orders-kpi span {
  color: var(--xr2-text-soft);
  font-weight: 750;
}

.xr-ui2-runtime .xr-orders-table-wrap {
  border-color: var(--xr2-border-strong);
  box-shadow: var(--xr2-shadow-sm);
}

.xr-ui2-runtime .xr-orders-table th {
  border-bottom: 1px solid var(--xr2-border-strong);
  background: #edf3f9;
  color: #4b5d73;
}

.xr-ui2-runtime .xr-orders-table td {
  border-bottom: 1px solid #dbe3ed;
  background-clip: padding-box;
}

.xr-ui2-runtime .xr-orders-table td + td,
.xr-ui2-runtime .xr-orders-table th + th {
  border-left: 1px solid #edf1f6;
}

.xr-ui2-runtime .xr-orders-row {
  --xr-order-row-accent: #b8c4d2;
  --xr-order-row-tint: #ffffff;
}

.xr-ui2-runtime .xr-orders-row > td {
  background: var(--xr-order-row-tint);
  transition: background-color .12s ease, box-shadow .12s ease;
}

.xr-ui2-runtime .xr-orders-row > td:first-child {
  padding-left: 14px;
}

.xr-ui2-runtime .xr-orders-row > td:first-child::before {
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--xr-order-row-accent);
}

.xr-ui2-runtime .xr-orders-row--warning {
  --xr-order-row-accent: var(--xr2-warning);
  --xr-order-row-tint: #fffdf7;
}

.xr-ui2-runtime .xr-orders-row--danger {
  --xr-order-row-accent: var(--xr2-danger);
  --xr-order-row-tint: #fff9f9;
}

.xr-ui2-runtime .xr-orders-row:hover > td {
  background: #f2f7fd;
  box-shadow: inset 0 1px 0 #cbd8e7, inset 0 -1px 0 #cbd8e7;
}

.xr-ui2-runtime .xr-orders-row--warning:hover > td {
  background: #fff8e9;
}

.xr-ui2-runtime .xr-orders-row--danger:hover > td {
  background: #fff0ef;
}

.xr-ui2-runtime .xr-orders-order-link strong {
  color: #0f1f33;
  font-size: 13px;
  font-weight: 800;
}

.xr-ui2-runtime .xr-orders-order-link span {
  color: #35475d;
  font-weight: 700;
  text-decoration-color: #a9b8ca;
}

.xr-ui2-runtime .xr-orders-cell-sub {
  color: #718096;
}

.xr-ui2-runtime .xr-orders-amount {
  color: #0f1f33;
  font-size: 15px;
  font-weight: 800;
}

.xr-ui2-runtime .xr-orders-payment-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.xr-ui2-runtime .xr-orders-table .xr2-badge {
  border-width: 1px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.48);
}

.xr-ui2-runtime .xr-orders-table .xr2-badge--danger {
  border-color: #efaaa7;
  background: #ffe8e6;
  color: #a72424;
}

.xr-ui2-runtime .xr-orders-table .xr2-badge--warning {
  border-color: #e9c66c;
  background: #fff0c7;
  color: #8f5207;
}

.xr-ui2-runtime .xr-orders-table .xr2-badge--success {
  border-color: #95d8bd;
  background: #ddf5e9;
  color: #086c4b;
}

.xr-ui2-runtime .xr-orders-table .xr2-badge--brand,
.xr-ui2-runtime .xr-orders-table .xr2-badge--info {
  border-color: #9dbcf0;
  background: #e4efff;
  color: #1d55a5;
}

.xr-ui2-runtime .xr-orders-actions {
  gap: 7px;
}

.xr-ui2-runtime .xr-orders-primary-compact {
  min-width: 86px;
  border-color: #9baec4;
  background: #f8fafc;
  color: #203249;
  font-weight: 750;
}

.xr-ui2-runtime .xr-orders-primary-compact:hover {
  border-color: #6f8cae;
  background: #edf4fc;
}

.xr-ui2-runtime .xr-orders-primary-compact.xr2-btn--primary {
  border-color: #1f58ce;
  background: linear-gradient(180deg, #3275ef 0%, var(--xr2-brand) 100%);
  color: #fff;
  box-shadow: 0 2px 5px rgba(37, 99, 235, .22);
}

.xr-ui2-runtime .xr-orders-primary-compact.xr2-btn--primary:hover {
  border-color: #1747b0;
  background: linear-gradient(180deg, #2668df 0%, var(--xr2-brand-hover) 100%);
}

.xr-ui2-runtime .xr-orders-menu-trigger {
  border-color: #aebdce;
  background: #f4f7fa;
  color: #42556d;
}

.xr-ui2-runtime .xr-orders-menu-trigger:hover {
  border-color: #7892b1;
  background: #eaf0f7;
  color: #1d344f;
}

.xr-ui2-runtime .xr-orders-expanded-row td {
  border-bottom: 1px solid var(--xr2-border-strong);
  background: #f5f8fc;
}

.xr-ui2-runtime .xr-orders-expanded-grid {
  border-top: 1px solid #d8e1ec;
  border-bottom-color: var(--xr2-border-strong);
  background: linear-gradient(180deg, #f8fafc 0%, #f2f6fa 100%);
}

.xr-ui2-runtime .xr-orders-item-inline {
  border: 1px solid #e1e8f0;
  background: #ffffff;
}

.xr-ui2-runtime .xr-orders-item-inline:nth-child(odd) {
  background: #f4f7fb;
}

.xr-ui2-runtime .xr-orders-item-inline.has-deficit {
  border-color: #e6bf58;
  background: #fff3d1;
  color: #814b08;
}

.xr-ui2-runtime .xr-orders-drawer-statuses {
  padding: 8px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: #f5f8fb;
}

.xr-ui2-runtime .xr-orders-drawer-total {
  border-color: var(--xr2-border-strong);
  background: linear-gradient(180deg, #ffffff 0%, #edf4fb 100%);
  box-shadow: var(--xr2-shadow-xs);
}

.xr-ui2-runtime .xr-orders-drawer-item {
  border-color: #d8e1ec;
  background: #f9fbfd;
}

.xr-ui2-runtime .xr-orders-drawer-item.has-deficit {
  border-color: #e6bf58;
  background: #fff3d1;
}

.xr-ui2-runtime .xr-orders-drawer-actions {
  border-top-color: var(--xr2-border-strong);
  box-shadow: 0 -8px 18px rgba(15, 23, 42, .06);
}

.xr-orders-floating-menu {
  border-color: #aebdce;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .18), 0 3px 9px rgba(15, 23, 42, .08);
}

.xr-orders-floating-item + .xr-orders-floating-item {
  border-top: 1px solid #edf1f5;
}

.xr-orders-floating-item:hover,
.xr-orders-floating-item:focus-visible {
  background: #e9f1fb;
  color: #12345b;
}

/* === XR UI2 ORDERS VISUAL HIERARCHY V2.1 END === */
