/* === XR UI2 ORDER EDITOR V1.1 START === */

.xr-ui2-runtime .xr2-order-editor {
  width: min(100%, 1680px);
  margin: 0 auto;
  color: var(--xr2-text);
}

.xr-ui2-runtime .xr2-order-duration { display: block; color: var(--xr2-muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }

.xr-ui2-runtime .xr2-order-commandbar {
  position: sticky;
  top: var(--xr3-topbar-height, 64px);
  z-index: 12;
  margin-bottom: 12px;
  background: var(--xr2-surface);
  border-bottom: 1px solid var(--xr2-border-strong);
  box-shadow: var(--xr2-shadow);
}

.xr-ui2-runtime .xr2-order-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid var(--xr2-border);
  background: linear-gradient(120deg, var(--xr2-surface-raised), var(--xr2-surface));
  flex-wrap: wrap;
}

.xr-ui2-runtime .xr2-order-editor .xr2-btn > svg { width: 16px; height: 16px; flex-shrink: 0; }
.xr-ui2-runtime .xr2-order-editor :is(.xr2-order-section, .xr3-payments, .xr2-order-side-block):focus-visible {
  outline: 2px solid var(--xr2-brand);
  outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .xr-ui2-runtime .xr2-order-item { transition: none; }
}

.xr-ui2-runtime .xr2-order-editor-head-copy {
  min-width: 0;
  flex: 1 1 320px;
}

.xr-ui2-runtime .xr2-order-editor-kicker {
  color: var(--xr2-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.xr-ui2-runtime .xr2-order-editor-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex-wrap: wrap;
  margin-top: 2px;
}

.xr-ui2-runtime .xr2-order-editor-title-row h1 {
  margin: 0 4px 0 0;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0;
}

.xr-ui2-runtime .xr2-order-editor-head-copy > p {
  margin: 3px 0 0;
  color: var(--xr2-muted);
  font-size: 13px;
}

.xr-ui2-runtime .xr2-order-editor-head-actions .xr-order-mobile-menu { display: none; }
.xr-ui2-runtime .xr2-order-editor-head-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
}

.xr-ui2-runtime .xr2-order-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
}

.xr-ui2-runtime .xr2-order-editor-main {
  container-type: inline-size;
  min-width: 0;
  display: grid;
  gap: 24px;
}

.xr-ui2-runtime .xr2-order-editor-side {
  position: sticky;
  top: calc(var(--xr3-topbar-height, 64px) + var(--xr-order-command-height, 100px) + 12px);
  max-height: calc(100dvh - var(--xr3-topbar-height, 64px) - var(--xr-order-command-height, 100px) - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-inline: 16px;
  border-left: 1px solid var(--xr2-border);
  background: var(--xr2-surface-section);
}

.xr-ui2-runtime .xr2-order-section,
.xr-ui2-runtime .xr2-order-details,
.xr-ui2-runtime .xr2-order-side-block {
  border: 0;
  border-top: 1px solid var(--xr2-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.xr-ui2-runtime .xr2-order-section {
  padding: 12px 0 0;
  scroll-margin-top: calc(var(--xr3-topbar-height, 64px) + 132px);
}
.xr-ui2-runtime :is(.xr2-order-items-section, .xr2-order-services-section) {
  container-type: inline-size;
  border-block: 1px solid var(--xr2-border-strong);
  padding: 10px 0;
  background: var(--xr2-surface);
}
.xr-ui2-runtime :is(.xr2-order-items-section, .xr2-order-services-section) > .xr2-order-section-head {
  align-items: center;
  padding-inline: 10px;
}

.xr-ui2-runtime .xr2-order-line-insert { display: flex; justify-content: center; height: 14px; position: relative; z-index: 1; }
.xr-ui2-runtime .xr2-order-line-insert > .xr2-btn { width: 32px; min-width: 32px; height: 24px; min-height: 24px; margin-top: -5px; padding: 2px; color: var(--xr2-brand); }
.xr-ui2-runtime .xr2-order-fulfillment-indicator > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; cursor: pointer; font-weight: 650; }
.xr-ui2-runtime .xr2-order-fulfillment-indicator > summary::before { content: '+'; color: var(--xr2-brand); }
.xr-ui2-runtime .xr2-order-fulfillment-indicator[open] > summary::before { content: '-'; }
.xr-ui2-runtime .xr2-order-fulfillment-indicator > summary::-webkit-details-marker { display: none; }
.xr-ui2-runtime .xr2-order-fulfillment-indicator > summary .xr2-badge { white-space: normal; }
.xr-ui2-runtime .xr2-order-fulfillment-indicator[open] > summary { margin-bottom: 12px; }
.xr-ui2-runtime .xr2-order-editor-side .xr3-payment-fields { grid-template-columns: minmax(0, 1fr); }
.xr-ui2-runtime .xr2-order-editor-side .xr3-payment-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xr-ui2-runtime .xr2-order-editor-side .xr3-payment-summary > .xr3-payment-balance { grid-column: 1 / -1; }
.xr-ui2-runtime .xr2-order-editor-side .xr3-payment-entry { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.xr-ui2-runtime .xr2-order-editor-side .xr3-payment-entry > span:last-child { grid-column: 1 / -1; }
.xr-ui2-runtime .xr2-order-editor-side :is(.xr3-payments, .xr3-payment-entry, .xr3-payment-summary) { overflow-wrap: anywhere; }
.xr-ui2-runtime .xr2-order-editor-side .xr3-payments .xr2-btn { max-width: 100%; white-space: normal; }

.xr-ui2-runtime .xr2-order-section-head,
.xr-ui2-runtime .xr2-order-subhead,
.xr-ui2-runtime .xr2-order-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.xr-ui2-runtime .xr2-order-section-head {
  margin-bottom: 10px;
}

.xr-ui2-runtime .xr2-order-section-head h2,
.xr-ui2-runtime .xr2-order-subhead strong {
  margin: 0;
  color: var(--xr2-text);
  font-size: 18px;
  font-weight: 750;
}

.xr-ui2-runtime .xr2-order-section-head p {
  margin: 2px 0 0;
  color: var(--xr2-muted);
  font-size: 12px;
}

.xr-ui2-runtime .xr2-order-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
}

.xr-ui2-runtime .xr2-order-grid--primary {
  align-items: start;
}
.xr-ui2-runtime [data-order-section="primary"] { border-top: 0; padding-top: 0; }
.xr-ui2-runtime .xr-order-primary-more { position: relative; min-width: 0; }
.xr-ui2-runtime .xr-order-primary-more > summary { padding: 10px 0; cursor: pointer; font-size: 13px; }
.xr-ui2-runtime .xr-order-primary-more[open] { grid-column: 1 / -1; }
.xr-ui2-runtime .xr-order-primary-more > .xr2-order-grid { padding: 12px; border: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr-order-delivery-fields { margin-top: 12px; padding: 12px; border: 1px solid var(--xr2-border); border-radius: 6px; }
.xr-ui2-runtime .xr-order-delivery-fields[hidden] { display: none; }
.xr-ui2-runtime .xr-order-deposit-summary { border-top: 1px solid var(--xr2-border-strong); margin-top: 8px; padding-top: 8px; }

.xr-ui2-runtime .xr2-order-col-12 { grid-column: span 12; }
.xr-ui2-runtime .xr2-order-col-9 { grid-column: span 9; }
.xr-ui2-runtime .xr2-order-col-6 { grid-column: span 6; }
.xr-ui2-runtime .xr2-order-col-4 { grid-column: span 4; }
.xr-ui2-runtime .xr2-order-col-3 { grid-column: span 3; }
.xr-ui2-runtime .xr2-order-col-2 { grid-column: span 2; }

.xr-ui2-runtime .xr2-order-field {
  display: block;
  min-width: 0;
}

.xr-ui2-runtime .xr2-order-field > span,
.xr-ui2-runtime .xr2-order-item-position > span,
.xr-ui2-runtime .xr2-order-item-availability > span,
.xr-ui2-runtime .xr2-order-item-total > span {
  display: block;
  margin-bottom: 4px;
  color: var(--xr2-muted);
  font-size: 12px;
  font-weight: 650;
}

.xr-ui2-runtime .xr2-order-field .xr2-input,
.xr-ui2-runtime .xr2-order-field .xr2-select,
.xr-ui2-runtime .xr2-order-item .xr2-input,
.xr-ui2-runtime .xr2-order-item .xr2-select {
  min-height: 38px;
  font-size: 14px;
}

.xr-ui2-runtime .xr2-order-inline-client .inline-create-panel {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* This embedded legacy field renderer belongs to the editor's theme boundary. */
html.xr-ui2-runtime #orderClientForm .field > label,
html.xr-ui2-runtime #orderClientForm .field > span:first-child {
  color: var(--xr2-muted) !important;
}

.xr-ui2-runtime [data-editor-payment-summary] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.xr-ui2-runtime .xr2-order-items-section {
  padding: 0;
  overflow: visible;
}

.xr-ui2-runtime .xr2-order-items-section > .xr2-order-section-head {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--xr2-border);
  align-items: center;
}

.xr-ui2-runtime .xr2-order-items-head {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 54px 72px 78px 80px 86px 98px;
  gap: 6px;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-bottom: 1px solid var(--xr2-border);
  background: var(--xr2-surface-soft);
  color: var(--xr2-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.xr-ui2-runtime .xr2-order-items {
  display: grid;
}
.xr-ui2-runtime .xr2-order-items-head > span:not(:first-child) { text-align: center; }

.xr-ui2-runtime .xr2-order-item {
  position: relative;
  border-bottom: 1px solid var(--xr2-border);
  background: var(--xr2-surface);
  transition: background 160ms, box-shadow 160ms;
}

.xr-ui2-runtime .xr2-order-item:last-child {
  border-bottom: 0;
}

.xr-ui2-runtime .xr2-order-item.has-conflict {
  box-shadow: inset 2px 0 0 var(--xr2-warning);
}

.xr-ui2-runtime .xr2-order-item-main {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 54px 72px 78px 80px 86px 98px;
  gap: 6px;
  align-items: center;
  min-height: 54px;
  padding: 6px 10px;
}

.xr-ui2-runtime .xr2-order-item-position {
  display: block;
  min-width: 0;
  position: relative;
}
.xr-ui2-runtime .xr-order-readable-name { display: none; pointer-events: none; }
.xr-ui2-runtime .xr2-order-item-position:not(:focus-within):has(.xr-order-readable-name:not(:empty)) input { opacity: 0; }
.xr-ui2-runtime .xr2-order-item-position:not(:focus-within) .xr-order-readable-name:not(:empty) { display: -webkit-box; position: absolute; inset: auto 8px 0; bottom: 50%; transform: translateY(50%); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 13px; line-height: 17px; margin: 0; color: var(--xr2-text); }
.xr-ui2-runtime .xr-order-line-price { position: relative; }
.xr-ui2-runtime .xr-order-line-price > summary { cursor: pointer; list-style: none; text-align: right; text-decoration: underline dotted var(--xr2-border-strong); text-underline-offset: 4px; }
.xr-ui2-runtime .xr-order-line-price > .line-formula { position: absolute; z-index: 8; right: 0; top: 100%; width: min(290px, 70vw); padding: 12px; background: var(--xr2-surface-raised); color: var(--xr2-text); border: 1px solid var(--xr2-border-strong); border-radius: 6px; box-shadow: var(--xr2-shadow); font-size: 13px; }
.xr-ui2-runtime :is(.xr2-order-item-actions, .xr2-order-service-actions) > .xr2-btn { min-width: 30px; width: 30px; min-height: 34px; height: 34px; padding: 5px; }

.xr-ui2-runtime .xr2-order-item-availability,
.xr-ui2-runtime .xr2-order-item-total {
  min-width: 0;
  padding-bottom: 4px;
}

.xr-ui2-runtime .xr2-order-item-availability strong {
  display: block;
  overflow: hidden;
  color: var(--xr2-success);
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xr-ui2-runtime .xr2-order-item-availability strong.danger-tag {
  color: var(--xr2-danger);
}

.xr-ui2-runtime .xr2-order-item-total strong {
  color: var(--xr2-text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.xr-ui2-runtime .xr2-order-item-actions {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 1px;
}

.xr-ui2-runtime .xr2-order-item-state {
  display: flex;
  min-height: 26px;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 10px 6px;
  color: var(--xr2-muted);
  font-size: 12px;
}

.xr-ui2-runtime .xr2-order-item-state > span:not(.xr2-badge) {
  min-width: 0;
}

.xr-ui2-runtime .xr2-order-item-calculation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--xr2-border);
  font-size: 12px;
  color: var(--xr2-muted);
}

.xr-ui2-runtime .xr2-order-item-calculation strong {
  color: var(--xr2-text-soft);
}

.xr-ui2-runtime .xr2-order-item-more {
  position: relative;
}

.xr-ui2-runtime .xr2-order-item-more > summary {
  list-style: none;
}

.xr-ui2-runtime .xr2-order-item-more > summary::-webkit-details-marker {
  display: none;
}

.xr-ui2-runtime .xr2-order-item-more-popover {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 22;
  min-width: 150px;
  padding: 5px;
  border: 1px solid var(--xr2-border);
  border-radius: var(--xr2-radius);
  background: var(--xr2-surface);
  box-shadow: var(--xr2-shadow-sm);
}

.xr-ui2-runtime .xr2-order-item-more-popover button {
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--xr2-text-soft);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.xr-ui2-runtime .xr2-order-item-more-popover button:hover {
  background: var(--xr2-surface-muted);
}

.xr-ui2-runtime .xr2-order-item-more-popover button.is-danger {
  color: var(--xr2-danger);
}

.xr-ui2-runtime .xr2-order-item-settings {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 8px;
  background: transparent;
  color: var(--xr2-brand);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.xr-ui2-runtime .xr2-order-item-settings svg { width: 18px; height: 18px; flex-shrink: 0; }

.xr-ui2-runtime .xr2-order-item-settings:hover {
  text-decoration: underline;
}

.xr-ui2-runtime .xr2-order-item-fulfillment {
  margin: 0 10px 7px;
  border: 1px solid var(--xr2-warning);
  border-radius: 6px;
  background: var(--xr2-warning-soft);
}

.xr-ui2-runtime .xr2-order-item-fulfillment > summary {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 9px;
  list-style: none;
  cursor: pointer;
}

.xr-ui2-runtime .xr2-order-item-fulfillment > summary::-webkit-details-marker {
  display: none;
}

.xr-ui2-runtime .xr2-order-item-fulfillment-summary {
  min-width: 0;
  color: var(--xr2-warning);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.xr-ui2-runtime .xr2-order-item-fulfillment-action {
  flex: 0 0 auto;
  color: var(--xr2-brand);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.xr-ui2-runtime .xr2-order-item-fulfillment[open] .xr2-order-item-fulfillment-action {
  color: var(--xr2-muted);
}

.xr-ui2-runtime .xr2-order-item-fulfillment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 9px;
  border-top: 1px solid var(--xr2-warning);
}

.xr-ui2-runtime .xr2-order-fulfillment-span-2 {
  grid-column: span 2;
}

.xr-ui2-runtime .xr2-order-item-fulfillment-hidden,
.xr-ui2-runtime .xr2-order-deficit-actions[hidden] {
  display: none;
}

.xr-ui2-runtime .xr2-order-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.xr-ui2-runtime .xr2-order-item-advanced {
  margin: 0 10px 8px;
  border: 0;
  border-radius: 6px;
  background: var(--xr2-surface-section);
}

.xr-ui2-runtime .xr2-order-item-advanced:not([open]) {
  display: none;
}

.xr-ui2-runtime .xr2-order-item-advanced[open] {
  border: 1px solid var(--xr2-border);
}

.xr-ui2-runtime .xr2-order-item-advanced > summary:not(.xr2-order-visually-hidden) {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 9px;
  color: var(--xr2-muted);
  font-size: 12px;
  cursor: pointer;
}

.xr-ui2-runtime .xr2-order-item-advanced > summary:not(.xr2-order-visually-hidden) strong {
  color: var(--xr2-warning);
  font-weight: 700;
}

.xr-ui2-runtime .xr2-order-item-advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 9px;
  padding: 9px;
  border-top: 1px solid var(--xr2-border);
}

.xr-ui2-runtime .xr2-order-advanced-span-2 {
  grid-column: span 2;
}

.xr-ui2-runtime .xr2-order-check-wrap {
  display: flex;
  align-items: end;
}

.xr-ui2-runtime .xr2-order-check {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  color: var(--xr2-text-soft);
  font-size: 12px;
  cursor: pointer;
}

.xr-ui2-runtime .xr2-order-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--xr2-brand);
}

.xr-ui2-runtime .xr2-order-items-empty {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  text-align: left;
}

.xr-ui2-runtime .xr2-order-items-empty strong {
  color: var(--xr2-text-soft);
}

.xr-ui2-runtime .xr2-order-items-empty span {
  color: var(--xr2-muted);
  font-size: 12px;
}

.xr-ui2-runtime .xr2-order-services {
  display: grid;
}

.xr-ui2-runtime .xr2-order-service-row {
  border-bottom: 1px solid var(--xr2-border);
  background: var(--xr2-surface);
}
.xr-ui2-runtime .xr2-order-service-row:last-child { border-bottom: 0; }
.xr-ui2-runtime .xr2-order-service-main {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 160px 98px;
  gap: 6px;
  align-items: end;
  padding: 6px 10px;
}
.xr-ui2-runtime .xr2-order-service-name { min-width: 0; }
.xr-ui2-runtime .xr2-order-service-main.has-cost { grid-template-columns: minmax(140px, 1fr) 140px 148px 98px; }
.xr-ui2-runtime .xr2-order-service-settings-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 8px 10px; border-top: 1px solid var(--xr2-border); background: var(--xr2-surface-section); }
.xr-ui2-runtime .xr2-order-service-row > .ui3-expense-warning { margin: 4px 10px; }

.xr-ui2-runtime .xr2-order-service-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.xr-ui2-runtime .xr2-order-empty-line {
  padding: 10px 12px;
  border: 1px dashed var(--xr2-border-strong);
  border-radius: 6px;
  color: var(--xr2-muted);
  font-size: 12px;
  text-align: center;
}

.xr-ui2-runtime .xr2-order-details {
  overflow: hidden;
}

.xr-ui2-runtime .xr2-order-details > summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.xr-ui2-runtime .xr2-order-details > summary:hover {
  background: var(--xr2-surface-soft);
}

.xr-ui2-runtime .xr2-order-details > summary > div {
  display: grid;
}

.xr-ui2-runtime .xr2-order-details > summary strong {
  color: var(--xr2-text);
  font-size: 15px;
}

.xr-ui2-runtime .xr2-order-details > summary span {
  margin-top: 2px;
  color: var(--xr2-muted);
  font-size: 12px;
}

.xr-ui2-runtime .xr2-order-details > summary em {
  color: var(--xr2-text-soft);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.xr-ui2-runtime .xr2-order-details-body {
  padding: 16px 12px;
  border-top: 1px solid var(--xr2-border);
}

.xr-ui2-runtime .xr2-order-check-group {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}

.xr-ui2-runtime .xr2-order-deposit-note {
  margin-top: 10px;
  padding: 8px 9px;
  border-radius: 6px;
  background: var(--xr2-surface-soft);
  color: var(--xr2-muted);
  font-size: 12px;
}

.xr-ui2-runtime .xr2-order-economy-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid var(--xr2-border);
  border-radius: 6px;
}

.xr-ui2-runtime .xr2-order-economy-strip > div {
  padding: 8px 9px;
  border-right: 1px solid var(--xr2-border);
}

.xr-ui2-runtime .xr2-order-economy-strip > div:last-child {
  border-right: 0;
}

.xr-ui2-runtime .xr2-order-economy-strip span {
  display: block;
  color: var(--xr2-muted);
  font-size: 12px;
}

.xr-ui2-runtime .xr2-order-economy-strip strong {
  display: block;
  margin-top: 2px;
  color: var(--xr2-text);
  font-size: 14px;
}

.xr-ui2-runtime .xr2-order-risk-list {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.xr-ui2-runtime .xr2-order-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.xr-ui2-runtime .xr2-order-subhead {
  min-height: 34px;
  align-items: center;
  margin-bottom: 6px;
}

.xr-ui2-runtime .xr2-order-list-stack {
  display: grid;
  gap: 6px;
}

.xr-ui2-runtime .xr2-order-attachment-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 36px;
  gap: 7px;
  align-items: end;
}

.xr-ui2-runtime .xr2-order-comment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 7px;
  align-items: start;
}

.xr-ui2-runtime .xr2-order-comment-row .xr2-textarea {
  min-height: 64px;
}

.xr-ui2-runtime .xr2-order-side-block {
  padding: 11px;
}

.xr-ui2-runtime .xr2-order-side-title {
  color: var(--xr2-text);
  font-size: 12px;
  font-weight: 750;
}

.xr-ui2-runtime .xr2-order-side-note {
  margin-top: 2px;
  color: var(--xr2-muted);
  font-size: 12px;
  line-height: 1.35;
}

.xr-ui2-runtime .xr2-order-side-empty {
  margin-top: 7px;
  color: var(--xr2-muted);
  font-size: 12px;
}

.xr-ui2-runtime .xr2-order-total-main {
  display: grid;
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 6px;
  background: var(--xr2-brand-soft);
}

.xr-ui2-runtime .xr2-order-total-main span {
  color: var(--xr2-brand);
  font-size: 12px;
  font-weight: 650;
}

.xr-ui2-runtime .xr2-order-total-main strong {
  margin-top: 2px;
  color: var(--xr2-text);
  font-size: 23px;
  line-height: 1.05;
}

.xr-ui2-runtime .xr2-order-money-list {
  display: grid;
  margin-top: 7px;
}

.xr-ui2-runtime .xr2-order-money-list > div {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--xr2-border);
  font-size: 12px;
}

.xr-ui2-runtime .xr2-order-money-list > div:last-child {
  border-bottom: 0;
}

.xr-ui2-runtime .xr2-order-money-list span {
  color: var(--xr2-muted);
}

.xr-ui2-runtime .xr2-order-money-list strong {
  color: var(--xr2-text-soft);
  white-space: nowrap;
}

.xr-ui2-runtime .xr2-order-payment-due {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--xr2-border);
  color: var(--xr2-muted);
  font-size: 12px;
}

.xr-ui2-runtime .xr2-order-payment-due strong {
  color: var(--xr2-text);
}

.xr-ui2-runtime .xr2-order-fulfillment-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 8px;
}

.xr-ui2-runtime .xr2-order-fulfillment-kpis > div {
  padding: 6px 7px;
  border: 1px solid var(--xr2-border);
  border-radius: 5px;
  background: var(--xr2-surface-section);
}

.xr-ui2-runtime .xr2-order-fulfillment-kpis span {
  display: block;
  color: var(--xr2-muted);
  font-size: 12px;
}

.xr-ui2-runtime .xr2-order-fulfillment-kpis strong {
  display: block;
  margin-top: 1px;
  color: var(--xr2-text);
  font-size: 14px;
}

.xr-ui2-runtime .xr2-order-side-actions {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

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

.xr-ui2-runtime .xr2-order-next-summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--xr2-text);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: normal;
}

.xr-ui2-runtime .xr2-order-next-summary span {
  flex: 0 0 auto;
  color: var(--xr2-muted);
  font-size: 12px;
  font-weight: 750;
}

.xr-ui2-runtime .xr2-order-side-actions .xr2-btn {
  width: 100%;
}

.xr-ui2-runtime .xr2-order-legacy-history .editor-section,
.xr-ui2-runtime .xr2-order-legacy-history .timeline,
.xr-ui2-runtime .xr2-order-legacy-history .timeline-step {
  margin: 0;
  box-shadow: none;
}

.xr-ui2-runtime .xr2-order-legacy-history .editor-section + .editor-section {
  margin-top: 8px;
}

.xr-ui2-runtime .xr2-order-editor .summary-band,
.xr-ui2-runtime .xr2-order-editor .breakdown-panel,
.xr-ui2-runtime .xr2-order-editor .order-economy-panel,
.xr-ui2-runtime .xr2-order-editor .line-row {
  background: var(--xr2-surface) !important;
  color: var(--xr2-text) !important;
}

.xr-ui2-runtime .xr2-order-editor .inline-create-panel,
.xr-ui2-runtime .xr2-order-editor .editor-section,
.xr-ui2-runtime .xr2-order-editor .timeline-step {
  border-color: var(--xr2-border) !important;
  background: var(--xr2-surface) !important;
  color: var(--xr2-text) !important;
}

@media (max-width: 1280px) {
  .xr-ui2-runtime .xr2-order-editor-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

}

@media (max-width: 1080px) {
  .xr-ui2-runtime .xr2-order-editor-layout {
    grid-template-columns: 1fr;
  }

  .xr-ui2-runtime .xr2-order-editor-side {
    position: static;
    order: -1;
    max-height: none;
    overflow: visible;
    grid-template-columns: 1fr;
    border-left: 0;
  }

  .xr-ui2-runtime .xr2-order-editor-side > .xr2-order-next-action {
    grid-column: 1 / -1;
  }

  .xr-ui2-runtime .xr2-order-grid--primary .xr2-order-col-2,
  .xr-ui2-runtime .xr2-order-grid--primary .xr2-order-col-3,
  .xr-ui2-runtime .xr2-order-grid--primary .xr2-order-col-4 {
    grid-column: span 6;
  }


}

@media (max-width: 1080px) {
  .xr-ui2-runtime .xr2-order-item-fulfillment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .xr-ui2-runtime .xr2-order-editor { padding-bottom: 76px; }
  .xr-ui2-runtime .xr2-order-commandbar { display: contents; }
  .xr-ui2-runtime .xr2-order-section { scroll-margin-top: calc(var(--xr3-topbar-height, 64px) + 16px); }
  .xr-ui2-runtime .xr2-order-line-insert > .xr2-btn { width: 40px; height: 40px; }
  .xr-ui2-runtime .xr2-order-editor-head {
    position: static;
    align-items: stretch;
    flex-direction: column;
    margin: 0;
    padding: 12px;
  }
  .xr-ui2-runtime .xr2-order-editor-head-copy { flex: initial; }

  .xr-ui2-runtime .xr2-order-editor-head-actions {
    position: fixed;
    bottom: env(safe-area-inset-bottom, 0px);
    left: 0;
    right: 0;
    z-index: 30;
    width: 100%;
    padding: 8px 12px;
    border-top: 1px solid var(--xr2-border);
    background: var(--xr2-surface);
    flex-wrap: nowrap;
  }

  .xr-ui2-runtime .xr2-order-editor-head-actions .xr2-btn {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 8px;
    white-space: normal;
  }
  .xr-ui2-runtime .xr2-order-editor-head-actions .xr-order-mobile-menu { display: inline-flex; flex: 0 0 40px; }
  .xr-ui2-runtime .xr2-order-editor-head-actions :is([data-action="cancel-order-edit"], [data-action="order-draft-docs"], [data-action="repeat-order"]) { flex: 0 0 44px; }
  .xr-ui2-runtime .xr2-order-editor-head-actions :is([data-action="cancel-order-edit"], [data-action="order-draft-docs"], [data-action="repeat-order"]) > span { display: none; }
  .xr-ui2-runtime .xr2-order-editor-head-actions [data-action="save-order"] > span { overflow-wrap: normal; }
  .xr-ui2-runtime .xr-order-more .xr2-order-item-more-popover { top: auto; bottom: calc(100% + 4px); max-height: calc(100dvh - 160px); overflow-y: auto; }

  .xr-ui2-runtime :is(.xr2-order-item-actions, .xr2-order-service-actions) > .xr2-btn { min-width: 40px; width: 40px; height: 44px; min-height: 44px; }
  .xr-ui2-runtime .xr2-order-item-settings,
  .xr-ui2-runtime .xr2-order-item-more > summary,
  .xr-ui2-runtime .xr2-order-item-more-popover button { min-height: 44px; }

  .xr-ui2-runtime .xr2-order-grid,
  .xr-ui2-runtime .xr2-order-item-advanced-grid,
  .xr-ui2-runtime .xr2-order-two-col,
  .xr-ui2-runtime .xr2-order-editor-side {
    grid-template-columns: 1fr;
  }

  .xr-ui2-runtime .xr2-order-col-12,
  .xr-ui2-runtime .xr2-order-col-9,
  .xr-ui2-runtime .xr2-order-col-6,
  .xr-ui2-runtime .xr2-order-col-4,
  .xr-ui2-runtime .xr2-order-col-3,
  .xr-ui2-runtime .xr2-order-col-2,
  .xr-ui2-runtime .xr2-order-advanced-span-2 {
    grid-column: 1;
  }


  .xr-ui2-runtime .xr2-order-item-fulfillment-grid {
    grid-template-columns: 1fr;
  }

  .xr-ui2-runtime .xr2-order-fulfillment-span-2 {
    grid-column: 1;
  }

  .xr-ui2-runtime .xr2-order-item-fulfillment > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 7px 9px;
  }

  .xr-ui2-runtime .xr2-order-item-fulfillment-summary {
    white-space: normal;
  }


  .xr-ui2-runtime .xr2-order-attachment-row,
  .xr-ui2-runtime .xr2-order-comment-row {
    grid-template-columns: 1fr 36px;
  }

  .xr-ui2-runtime .xr2-order-attachment-row > .xr2-order-field:first-child {
    grid-column: 1 / -1;
  }
}

/* === XR UI2 ORDER EDITOR V1.1 END === */

/* === XR UI2 ORDER EDITOR VISUAL HIERARCHY V3 START === */

.xr-ui2-runtime .xr2-order-section,
.xr-ui2-runtime .xr2-order-details,
.xr-ui2-runtime .xr2-order-side-block {
  border-color: var(--xr2-border);
}

.xr-ui2-runtime .xr2-order-items-head {
  border-bottom-color: var(--xr2-border-strong);
  background: var(--xr2-surface-section);
  color: var(--xr2-muted);
}

.xr-ui2-runtime .xr2-order-item {
  border-bottom-color: var(--xr2-border);
}

.xr-ui2-runtime .xr2-order-item:hover {
  background: var(--xr2-surface-soft);
  box-shadow: inset 3px 0 0 var(--xr2-brand);
}

.xr-ui2-runtime .xr2-order-item.has-conflict {
  background: var(--xr2-surface);
  box-shadow: inset 2px 0 0 var(--xr2-warning);
}

.xr-ui2-runtime .xr2-order-item-availability strong.danger-tag {
  padding: 0;
  border: 0;
  background: transparent;
}

.xr-ui2-runtime .xr2-order-item-fulfillment {
  border-color: var(--xr2-warning);
  background: var(--xr2-warning-soft);
  box-shadow: none;
}

.xr-ui2-runtime .xr2-order-item-advanced[open] {
  border-color: var(--xr2-border);
  background: var(--xr2-surface-section);
}

.xr-ui2-runtime .xr2-order-service-row:hover {
  border-color: var(--xr2-border-strong);
  background: var(--xr2-surface-soft);
}

.xr-ui2-runtime .xr2-order-details > summary {
  border-left: 0;
  background: var(--xr2-surface-section);
}

.xr-ui2-runtime .xr2-order-details > summary:hover {
  background: var(--xr2-surface-soft);
}

.xr-ui2-runtime .xr2-order-details[open] {
  border-color: var(--xr2-border-strong);
}

.xr-ui2-runtime .xr2-order-details[open] > summary {
  border-left-color: var(--xr2-brand);
  border-bottom: 1px solid var(--xr2-border);
  background: var(--xr2-brand-soft);
}

.xr-ui2-runtime .xr2-order-economy-strip {
  border-color: var(--xr2-border-strong);
  background: var(--xr2-surface-section);
}

.xr-ui2-runtime .xr2-order-economy-strip > div {
  border-right-color: var(--xr2-border-strong);
}

.xr-ui2-runtime .xr2-order-editor-side {
  gap: 12px;
}

.xr-ui2-runtime .xr2-order-side-block {
  position: relative;
  min-width: 0;
  padding: 16px 0;
}

.xr-ui2-runtime .xr2-order-money-block {
  border-top: 2px solid var(--xr2-brand);
}

.xr-ui2-runtime .xr2-order-total-main {
  border: 1px solid var(--xr2-border);
  background: var(--xr2-brand-soft);
}

.xr-ui2-runtime .xr2-order-total-main strong {
  color: var(--xr2-text);
  font-size: 25px;
}

.xr-ui2-runtime .xr2-order-payment-due {
  padding: 8px 9px;
  border: 1px solid var(--xr2-warning);
  border-radius: 6px;
  background: var(--xr2-warning-soft);
  color: var(--xr2-warning);
}

.xr-ui2-runtime [data-xr2-editor-fulfillment] {
  border-top: 4px solid var(--xr2-border-strong);
}

.xr-ui2-runtime [data-xr2-editor-fulfillment]:has(.xr2-badge--success) {
  border-top-color: var(--xr2-success);
}

.xr-ui2-runtime [data-xr2-editor-fulfillment]:has(.xr2-badge--warning) {
  border-top-color: var(--xr2-warning);
  background: var(--xr2-warning-soft);
}

.xr-ui2-runtime [data-xr2-editor-fulfillment]:has(.xr2-badge--danger) {
  border-top-color: var(--xr2-danger);
  background: var(--xr2-danger-soft);
}

.xr-ui2-runtime .xr2-order-fulfillment-kpis > div {
  border-color: var(--xr2-border);
  background: var(--xr2-surface-section);
}

.xr-ui2-runtime .xr2-order-editor-side > .xr2-order-next-action {
  border-top: 2px solid var(--xr2-brand);
  background: var(--xr2-surface-section);
}

.xr-ui2-runtime .xr2-order-editor-side > .xr2-order-next-action .xr2-order-side-title {
  color: var(--xr2-text);
  font-size: 13px;
}

.xr-ui2-runtime .xr2-order-side-actions .xr2-btn--primary {
  min-height: 40px;
  font-size: 12px;
  box-shadow: var(--xr2-shadow);
}

/* === XR UI2 ORDER EDITOR VISUAL HIERARCHY V3 END === */

.xr-ui2-runtime .xr3-payments { min-width: 0; padding: 16px 0 0; border: 0; border-top: 1px solid var(--xr2-border); border-radius: 0; box-shadow: none; }
.xr-ui2-runtime .xr3-payments h2 { font-size: 18px; }
.xr-ui2-runtime .xr3-payments h3 { font-size: 15px; margin: 12px 0; }
.xr-ui2-runtime .xr3-payment-summary,
.xr-ui2-runtime .xr3-payment-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.xr-ui2-runtime .xr3-payment-summary > span,
.xr-ui2-runtime .xr3-payment-fields label { display: grid; gap: 6px; min-width: 0; }
.xr-ui2-runtime .xr3-payment-summary { font-size: 13px; color: var(--xr2-text-muted); }
.xr-ui2-runtime .xr3-payment-summary strong { font-size: 16px; color: var(--xr2-text); font-variant-numeric: tabular-nums; }
.xr-ui2-runtime .xr3-payment-balance { padding-top: 8px; border-top: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-payment-status { margin: 8px 0 12px; font-size: 13px; }
.xr-ui2-runtime .xr3-payment-deposit { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--xr2-border); }
.xr-ui2-runtime .xr3-payment-fields input,
.xr-ui2-runtime .xr3-payment-fields select { width: 100%; min-width: 0; box-sizing: border-box; }
.xr-ui2-runtime .xr3-payment-list { margin: 16px 0; }
.xr-ui2-runtime .xr3-payment-row { border-bottom: 1px solid var(--xr2-border); padding: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xr-ui2-runtime .xr3-payment-entry { display: grid; grid-template-columns: 100px minmax(80px, 1fr) minmax(100px, 1fr); align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.xr-ui2-runtime .xr3-payment-entry:hover:not(:disabled) { background: var(--xr2-bg); }
.xr-ui2-runtime .xr3-payment-entry:disabled { opacity: 1; cursor: default; }
.xr-ui2-runtime .xr3-payment-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.xr-ui2-runtime .xr3-payment-accent,
.xr-ui2-runtime [data-payment-action="refund-details"] { color: var(--xr2-brand); background: var(--xr2-brand-soft); }
.xr-ui2-runtime .xr3-payment-error { color: var(--xr2-danger); margin: 12px 0 0; overflow-wrap: anywhere; }
.xr3-storage-locations {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
  min-width: 0;
  width: 100%;
}
.xr3-storage-locations > strong { grid-column: 1 / -1; }
.xr3-storage-locations > .field { grid-column: auto; min-width: 0; }
.xr3-storage-locations input { width: 100%; min-width: 0; }
@container (min-width: 541px) and (max-width: 680px) {
  .xr-ui2-runtime .xr2-order-grid--primary :is(.xr2-order-col-2, .xr2-order-col-3, .xr2-order-col-4) { grid-column: span 6; }
}
@container (max-width: 760px) {
  .xr-ui2-runtime .xr2-order-items-head { display: none; }
  .xr-ui2-runtime .xr2-order-item-main { grid-template-columns: 60px 76px minmax(70px, 1fr) 80px 90px; align-items: end; gap: 6px; }
  .xr-ui2-runtime .xr2-order-item-position { grid-column: 1 / -1; padding-right: 110px; }
  .xr-ui2-runtime .xr2-order-item-actions { position: absolute; right: 10px; top: 24px; }
  .xr-ui2-runtime .xr2-order-item-position:not(:focus-within) .xr-order-readable-name:not(:empty) { right: 118px; bottom: 19px; }
}
@container (max-width: 540px) {
  .xr-ui2-runtime .xr2-order-item-main { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; }
  .xr-ui2-runtime .xr2-order-item-position { grid-column: 1 / -1; padding-right: 140px; }
  .xr-ui2-runtime .xr2-order-item-availability { grid-column: 1 / 3; }
  .xr-ui2-runtime .xr2-order-item-total { grid-column: 3; }
  .xr-ui2-runtime .xr2-order-item-actions { position: absolute; top: 26px; right: 10px; }
  .xr-ui2-runtime .xr2-order-item-position:not(:focus-within) .xr-order-readable-name:not(:empty) { right: 148px; }
  .xr-ui2-runtime .xr2-order-item-fulfillment > summary { flex-wrap: wrap; padding-block: 8px; gap: 6px; }
  .xr-ui2-runtime .xr2-order-service-main, .xr-ui2-runtime .xr2-order-service-main.has-cost { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xr-ui2-runtime .xr2-order-service-name { grid-column: 1 / -1; }
  .xr-ui2-runtime .xr2-order-service-main.has-cost .xr2-order-service-actions { grid-column: 1 / -1; }
  .xr-ui2-runtime .xr2-order-service-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (min-width: 761px) {
  .xr-ui2-runtime .xr2-order-item-main > :is(label, .xr2-order-item-availability, .xr2-order-item-total) > span:first-child {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}
@media (max-width: 1080px) {
  .xr-ui2-runtime .xr2-order-editor-main, .xr-ui2-runtime .xr2-order-editor-side { display: contents; }
  .xr-ui2-runtime .xr2-order-editor-layout > :is(main, aside) > * { order: 2; min-width: 0; }
  .xr-ui2-runtime .xr2-order-editor-layout [data-xr2-editor-next-action] { order: -3; }
  .xr-ui2-runtime .xr2-order-editor-layout [data-order-section="primary"], .xr-ui2-runtime .xr2-order-inline-client { order: -2; }
  .xr-ui2-runtime .xr2-order-editor-layout .xr2-order-items-section { order: -1; container-type: inline-size; }
  .xr-ui2-runtime .xr2-order-editor-layout [data-editor-money] { order: 0; }
  .xr-ui2-runtime .xr2-order-editor.is-new [data-xr2-editor-next-action] { order: 1; }
  .xr-ui2-runtime .xr2-order-editor-layout .xr-order-draft-note { order: -4; }
}
@media (max-width: 720px) {
  .xr-ui2-runtime:has(#orderForm) .xr2-mobile-nav { display: none; }
  .xr-ui2-runtime .xr2-order-line-insert { height: 28px; }
  .xr-ui2-runtime .xr2-order-grid--primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xr-ui2-runtime .xr2-order-grid--primary > .xr2-order-col-6, .xr-ui2-runtime .xr-order-primary-more[open] { grid-column: 1 / -1; }
  .xr-ui2-runtime .xr2-order-grid--primary > .xr2-order-col-3, .xr-ui2-runtime .xr2-order-grid--primary > .xr2-order-col-4 { grid-column: auto; }
  .xr-ui2-runtime .xr2-order-grid--primary input[type="datetime-local"] { font-size: 13px; padding-inline: 4px; }
}
@media (max-width: 480px) {
  .xr3-storage-locations { grid-template-columns: minmax(0, 1fr); }
}
.xr-ui2-runtime .xr3-refund-toast { position: fixed; right: 24px; bottom: 24px; z-index: 2200; padding: 12px 20px; max-width: calc(100% - 48px); border-radius: 6px; background: #ece9b2; color: #454019; box-shadow: 0 2px 10px #0002; }
@media (max-width: 600px) {
  .xr-ui2-runtime .xr3-payment-fields { grid-template-columns: 1fr; }
  .xr-ui2-runtime .xr3-payment-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xr-ui2-runtime .xr3-payment-entry { grid-template-columns: 90px minmax(65px, 1fr); }
  .xr-ui2-runtime .xr3-payment-entry > span:last-child { grid-column: 1 / -1; }
}
.xr3-unissued-removal { background: #fff; color: #202326; max-width: 480px; }
.xr3-unissued-removal fieldset { border: 0; padding: 16px 0; margin: 0; }
.xr3-unissued-removal fieldset label { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.xr3-unissued-removal input[type="radio"] { width: 18px; height: 18px; flex: 0 0 18px; }
.xr3-unissued-removal [data-removal-error] { color: #a4262c; }
.xr3-deposit-completion { background: #fff; color: #202326; width: min(480px, 100%); padding-bottom: 80px; }
.xr3-deposit-completion fieldset { border: 0; padding: 12px 0; margin: 0; }
.xr3-deposit-completion fieldset label { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.xr3-deposit-completion input[type="radio"] { width: 18px; height: 18px; flex: 0 0 18px; }
.xr3-deposit-completion [hidden] { display: none !important; }
.xr3-deposit-completion [data-compensation-calculation] > div { display: flex; justify-content: space-between; gap: 12px; margin: 12px 0; }
.xr3-deposit-completion dd { margin: 0; white-space: nowrap; }
.xr3-deposit-completion [data-completion-error] { color: #a4262c; }
.xr-ui2-runtime:has(.xr3-deposit-completion) .scroll-rail { display: none; }
.xr-ui2-runtime .xr3-compensation { border-top: 1px solid var(--xr2-border); margin-top: 20px; padding-top: 8px; }
.xr-ui2-runtime .xr3-compensation .xr3-payment-entry { cursor: default; }
.xr-ui2-runtime .xr3-compensation .xr2-btn { max-width: 100%; white-space: normal; }
.xr2-order-field-error {
  display: block;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Compact commercial fieldsets share the editor's existing theme boundary. */
.xr-ui2-runtime .xr2-order-commercial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xr-ui2-runtime .xr2-order-commercial fieldset { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--xr2-border-strong); border-radius: 6px; background: var(--xr2-surface-section); }
.xr-ui2-runtime .xr2-order-commercial legend { padding: 0 8px; margin-inline: auto; color: var(--xr2-text); font-size: 14px; font-weight: 650; }
.xr-ui2-runtime .xr2-order-commercial .xr2-order-grid { gap: 12px; }
.xr-ui2-runtime .xr2-order-commercial > summary svg { width: 18px; height: 18px; flex-shrink: 0; }
.xr-ui2-runtime .xr2-order-commercial[open] > summary svg { transform: rotate(180deg); }
.xr-ui2-runtime .xr2-order-commercial :is(.xr2-order-field > span, small) { text-align: center; }
.xr-ui2-runtime .xr2-order-commercial .xr2-order-check { justify-content: center; }
.xr-ui2-runtime .xr2-order-commercial :is(input:not([type="checkbox"]), select) { text-align: center; }
.xr-ui2-runtime .xr2-order-date-mode { width: 220px; max-width: 100%; }
.xr-ui2-runtime .xr2-order-deficit-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px; }
.xr-ui2-runtime .xr-order-purchase { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 12px; padding: 12px 0; border-top: 1px solid var(--xr2-border-strong); }
.xr-ui2-runtime .xr-order-purchase-totals { display: flex; flex-wrap: wrap; gap: 8px 20px; flex: 1; }
.xr-ui2-runtime .xr-order-purchase-totals span { white-space: nowrap; }
.xr-ui2-runtime .xr-order-purchase-receipt { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.xr-ui2-runtime .xr-order-purchase-receipt span { overflow-wrap: anywhere; }
.xr-ui2-runtime .xr-order-purchase > p { width: 100%; margin: 0; }
.xr-ui2-runtime .xr-purchase-dialog { width: min(600px, 100%); }
.xr-ui2-runtime .xr-purchase-dialog > .panel-head { position: static; display: flex; flex-direction: row; align-items: flex-start; gap: 12px; margin-bottom: 12px; padding: 0; }
.xr-ui2-runtime .xr-purchase-dialog .panel-head h2 { font-size: 18px; line-height: 1.4; }
.xr-ui2-runtime .xr-purchase-dialog .panel-head > button { flex: 0 0 36px; width: 36px; }
.xr-ui2-runtime .xr-purchase-dialog .panel-head p { overflow-wrap: anywhere; }
.xr-ui2-runtime .xr-purchase-dialog .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.xr-ui2-runtime .xr-purchase-dialog .field { min-width: 0; font-family: inherit; font-size: 13px; }
.xr-ui2-runtime .xr-purchase-dialog .span-6 { grid-column: span 1; }
.xr-ui2-runtime .xr-purchase-dialog .span-12 { grid-column: 1 / -1; }
.xr-ui2-runtime .xr-purchase-dialog :is(input, select) { min-width: 0; width: 100%; }
.xr-ui2-runtime .xr-purchase-dialog .xr-purchase-total { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-block: 1px solid var(--xr2-border); font-size: 18px; }
.xr-ui2-runtime .xr-purchase-dialog .toolbar { flex-wrap: wrap; }
@media (max-width: 600px) {
  .xr-ui2-runtime .xr-purchase-dialog { max-height: calc(100dvh - 120px); }
}
.xr-ui2-runtime .xr2-order-item :is(.xr2-order-field > span, .xr2-order-item-total, .xr2-order-item-availability) { text-align: center; }
.xr-ui2-runtime .xr2-order-item input[type="number"] { text-align: center; }
.xr-ui2-runtime .xr2-order-section:has(.xr2-order-date-mode) > .xr2-order-section-head { align-items: center; }
.xr-ui2-runtime .xr2-order-commercial .ui3-expense-warning { margin: 0; }
.xr-ui2-runtime .xr2-order-commercial .ui3-expense-warning[hidden] { display: none; }
@container (max-width: 540px) {
  .xr-ui2-runtime .xr2-order-commercial-grid { grid-template-columns: minmax(0, 1fr); }
  .xr-ui2-runtime .xr2-order-commercial .xr2-order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xr-ui2-runtime .xr2-order-commercial .xr2-order-col-6 { grid-column: span 1; }
  .xr-ui2-runtime .xr2-order-commercial .xr2-order-col-12 { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .xr-ui2-runtime .xr2-order-date-mode { width: 180px; }
}
