/*
 * SAMS OMS design system — Webflow-inspired operational adaptation.
 *
 * This final cascade layer converts the existing refreshed interface to the
 * project-owned rules in DESIGN.md without changing routes, data, or access.
 */

html.oms-refresh {
  color-scheme: light;
  --wf-ink: #080808;
  --wf-white: #fff;
  --wf-hairline: #d8d8d8;
  --wf-purple: #7a3dff;
  --wf-pink: #ed52cb;
  --wf-blue: #3b89ff;
  --wf-blue-info: #146ef5;
  --wf-orange: #ff6b00;
  --wf-green: #00d722;
  --wf-yellow: #ffae13;
  --wf-red: #ee1d36;

  --oms-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --oms-bg: #f6f6f6;
  --oms-bg-deep: #ededed;
  --oms-sidebar: #fff;
  --oms-surface: #fff;
  --oms-surface-raised: #fff;
  --oms-surface-soft: #f3f3f3;
  --oms-line: #d8d8d8;
  --oms-line-strong: #b9b9b9;
  --oms-text: #080808;
  --oms-text-soft: #5a5a5a;
  --oms-text-faint: #6f6f6f;
  --oms-accent: #146ef5;
  --oms-accent-strong: #006acc;
  --oms-accent-ink: #fff;
  --oms-blue: #3b89ff;
  --oms-violet: #7a3dff;
  --oms-amber: #bd7200;
  --oms-red: #d9162d;
  --oms-green: #008f18;
  --oms-primary: #080808;
  --oms-on-primary: #fff;
  --oms-radius-xl: 8px;
  --oms-radius: 8px;
  --oms-radius-sm: 4px;
  --oms-shadow: 0 22px 60px rgba(8, 8, 8, .14);
  --oms-shadow-soft: none;
  --primary-gradient: #080808;
  --shadow: none;
  --shadow-soft: none;
}

/* v1.3.240 operational workspaces */
.oms-refresh .order-action-note-list,.oms-refresh .shipment-tracking-list,.oms-refresh .finance-expense-list{display:grid;gap:12px;margin:16px 0}
.oms-refresh .order-action-note,.oms-refresh .shipment-tracking-card,.oms-refresh .finance-expense-row{border:1px solid var(--oms-line);border-radius:var(--oms-radius);background:var(--oms-surface);padding:16px}
.oms-refresh .order-action-note p{margin:0 0 8px;white-space:normal}.oms-refresh .order-action-note small,.oms-refresh .shipment-tracking-main small,.oms-refresh .finance-expense-row small{display:block;color:var(--oms-text-soft);margin-top:4px}
.oms-refresh .shipment-tracking-card{display:flex;align-items:center;gap:12px}.oms-refresh .shipment-tracking-card.severity-exception,.oms-refresh .shipment-tracking-card.severity-monitoring-error{border-left:4px solid var(--oms-red)}.oms-refresh .shipment-tracking-card.severity-delay{border-left:4px solid var(--oms-amber)}
.oms-refresh .shipment-tracking-main{appearance:none;width:auto;margin:0;border:0;background:transparent;color:inherit;display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,1.5fr) minmax(170px,1fr) auto;gap:18px;align-items:center;text-align:left;flex:1;padding:0;box-shadow:none}
.oms-refresh .finance-expense-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(160px,.7fr) auto auto;gap:18px;align-items:center}.oms-refresh .finance-expense-row.is-paid{opacity:.72}.oms-refresh .finance-expense-row.is-paid>div:first-child strong{text-decoration:line-through}
.oms-refresh .dashboard-auction-insights .dashboard-insights-head{margin-bottom:16px}
@media(max-width:800px){.oms-refresh .shipment-tracking-card{align-items:stretch;flex-direction:column}.oms-refresh .shipment-tracking-main,.oms-refresh .finance-expense-row{grid-template-columns:1fr}.oms-refresh .shipment-tracking-main{gap:10px}}

html.oms-refresh[data-theme="dark"] {
  color-scheme: dark;
  --oms-bg: #0b0a09;
  --oms-bg-deep: #060605;
  --oms-sidebar: #0b0a09;
  --oms-surface: #161513;
  --oms-surface-raised: #1c1b18;
  --oms-surface-soft: #211f1c;
  --oms-line: #393631;
  --oms-line-strong: #555049;
  --oms-text: #f8f6f2;
  --oms-text-soft: #c0b9af;
  --oms-text-faint: #aaa39a;
  --oms-accent: #3b89ff;
  --oms-accent-strong: #6aa5ff;
  --oms-accent-ink: #080808;
  --oms-blue: #5a9aff;
  --oms-violet: #986cff;
  --oms-amber: #ffae13;
  --oms-red: #ff5166;
  --oms-green: #32dc4d;
  --oms-primary: #fff;
  --oms-on-primary: #080808;
  --oms-shadow: 0 22px 60px rgba(0, 0, 0, .5);
}

html.oms-refresh,
html.oms-refresh body,
html.oms-refresh button,
html.oms-refresh input,
html.oms-refresh select,
html.oms-refresh textarea {
  font-family: var(--oms-font-sans);
  font-feature-settings: "ss01" 1;
}

html.oms-refresh body {
  background: var(--oms-bg);
  color: var(--oms-text);
  font-size: 14px;
  line-height: 1.6;
}

html.oms-refresh :focus-visible {
  outline: 2px solid var(--wf-blue-info);
  outline-offset: 2px;
}

html.oms-refresh ::selection {
  background: color-mix(in srgb, var(--wf-blue) 28%, transparent);
}

.oms-refresh :is(h1, h2, h3, h4, h5, h6, strong, b),
.oms-refresh :is(button, .button-link, .nav-link, .nav-menu-trigger) {
  font-weight: 600;
}

.oms-refresh .oms-content h1,
.oms-refresh .oms-content h2,
.oms-refresh .oms-content h3 {
  letter-spacing: -.025em;
}

.oms-refresh .oms-content > h1,
.oms-refresh .oms-content > .item-head:first-child h1,
.oms-refresh .dashboard-page-head h1,
.oms-refresh .settings-page-head h1,
.oms-refresh .photo-download-page-head h1 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.04;
}

.oms-refresh .oms-content h2 {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.25;
}

.oms-refresh .oms-content h3 {
  font-size: 18px;
  font-weight: 500;
}

/* The OMS does not use decorative eyebrow text above ordinary headings. */
.oms-refresh .kicker,
.oms-refresh .dashboard-panel-label,
.oms-refresh .dashboard-section-label,
.oms-refresh .dashboard-section-marker {
  display: none !important;
}

/* Shell and navigation */
.oms-refresh .oms-workspace.nav-wrap,
.oms-refresh .oms-sidebar {
  transition-duration: .14s;
}

.oms-refresh .oms-sidebar {
  border-right-color: var(--oms-line);
  background: var(--oms-sidebar);
}

.oms-refresh .oms-sidebar-brand,
.oms-refresh .oms-sidebar-footer {
  border-color: var(--oms-line);
}

.oms-refresh .oms-sidebar-context {
  display: none !important;
}

.oms-refresh .oms-sidebar-context span {
  color: var(--oms-text-faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
}

.oms-refresh .oms-sidebar-context strong {
  font-size: 13px;
}

.oms-refresh .oms-sidebar .nav > .nav-link,
.oms-refresh .oms-sidebar .nav-menu > .nav-menu-trigger {
  min-height: 44px;
  border-radius: 4px;
  color: var(--oms-text-soft);
  font-size: 14px;
  font-weight: 500;
}

.oms-refresh .oms-sidebar .nav > .nav-link:hover,
.oms-refresh .oms-sidebar .nav-menu > .nav-menu-trigger:hover,
html.oms-refresh .oms-sidebar .nav-menu.open > .nav-menu-trigger {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface-soft) !important;
  color: var(--oms-text) !important;
}

.oms-refresh .oms-sidebar .nav > .nav-link.current,
.oms-refresh .oms-sidebar .nav-menu.current > .nav-menu-trigger,
html.oms-refresh .oms-sidebar .nav-menu.current.open > .nav-menu-trigger,
html.oms-refresh[data-theme="dark"] .oms-sidebar .nav-menu.current.open > .nav-menu-trigger {
  border-color: var(--wf-ink) !important;
  background: var(--wf-ink) !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.oms-refresh[data-theme="dark"] .oms-sidebar .nav > .nav-link.current,
html.oms-refresh[data-theme="dark"] .oms-sidebar .nav-menu.current > .nav-menu-trigger,
html.oms-refresh[data-theme="dark"] .oms-sidebar .nav-menu.current.open > .nav-menu-trigger {
  border-color: #fff !important;
  background: #fff !important;
  color: #080808 !important;
}

.oms-refresh .oms-sidebar .current > .nav-menu-trigger .nav-icon,
.oms-refresh .oms-sidebar .nav-link.current .nav-icon {
  color: currentColor;
}

.oms-refresh .oms-sidebar .nav-dropdown,
.oms-refresh .oms-sidebar .nav-menu--admin .nav-dropdown {
  border-left-color: var(--oms-line) !important;
}

/* Open navigation groups read as one compact component. */
html.oms-refresh .oms-sidebar .nav-menu.open {
  gap: 2px;
  margin: 2px 0 6px;
  padding: 4px !important;
  border: 1px solid var(--oms-line) !important;
  border-radius: 8px !important;
  background: var(--oms-surface-soft) !important;
}

html.oms-refresh .oms-sidebar .nav-menu.current.open {
  border-color: var(--oms-line-strong) !important;
}

html.oms-refresh .oms-sidebar .nav-menu.open > .nav-menu-trigger,
html.oms-refresh .oms-sidebar .nav-menu.current.open > .nav-menu-trigger,
html.oms-refresh[data-theme="dark"] .oms-sidebar .nav-menu.current.open > .nav-menu-trigger {
  min-height: 40px;
  padding: 8px;
  border-color: transparent !important;
  background: transparent !important;
  color: var(--oms-text) !important;
  box-shadow: none !important;
}

.oms-refresh .oms-sidebar .nav-chevron {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--oms-line);
  border-radius: 4px;
  background: var(--oms-surface);
  color: var(--oms-text-soft);
  line-height: 1;
}

.oms-refresh .oms-sidebar .nav-menu.open > .nav-dropdown,
.oms-refresh .oms-sidebar .nav-menu--admin.open > .nav-dropdown {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}

html.oms-refresh .oms-sidebar .nav-dropdown button {
  min-height: 50px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent !important;
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .oms-sidebar .nav-dropdown button:hover,
html.oms-refresh .oms-sidebar .nav-dropdown button:focus-visible {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface) !important;
  color: var(--oms-text) !important;
}

.oms-refresh .oms-sidebar .nav-dropdown button > .nav-icon {
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 6px;
  border-radius: 4px;
  background: var(--oms-surface);
  color: var(--oms-text-faint);
}

.oms-refresh .oms-sidebar .nav-dropdown button:hover > .nav-icon,
.oms-refresh .oms-sidebar .nav-dropdown button:focus-visible > .nav-icon {
  background: var(--oms-text);
  color: var(--oms-surface);
}

.oms-refresh .oms-sidebar .nav-dropdown button > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.oms-refresh .oms-sidebar .nav-dropdown strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oms-refresh .oms-sidebar .nav-dropdown small {
  overflow: hidden;
  color: var(--oms-text-faint) !important;
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oms-refresh .oms-sidebar .nav-dropdown button,
.oms-refresh .oms-sidebar-collapse,
.oms-refresh .oms-sidebar-close,
.oms-refresh .oms-sidebar-footer .logout-button {
  border-radius: 4px;
  box-shadow: none;
}

.oms-refresh .oms-topbar {
  height: 72px;
  min-height: 72px;
  border-bottom-color: var(--oms-line);
  background: var(--oms-surface);
  backdrop-filter: none;
}

.oms-refresh .oms-breadcrumb,
.oms-refresh .oms-top-user {
  font-size: 13px;
}

.oms-refresh .oms-topbar .theme-toggle,
.oms-refresh .oms-topbar .specmn-shortcut {
  min-height: 40px;
  border-color: var(--oms-line-strong);
  border-radius: 4px;
  background: var(--oms-surface);
  color: var(--oms-text);
}

.oms-refresh .oms-topbar .specmn-shortcut:hover {
  border-color: var(--oms-text);
  background: var(--oms-text);
  color: var(--oms-surface);
}

.oms-refresh .oms-main {
  min-height: calc(100vh - 72px);
  padding: clamp(24px, 3vw, 48px);
}

@media (min-width: 921px) {
  .oms-refresh .oms-sidebar-brand {
    height: 72px;
    min-height: 72px;
    padding: 10px 16px;
  }

  .oms-refresh .sidebar-collapsed .oms-sidebar-brand {
    height: 72px;
    min-height: 72px;
    flex-direction: row;
    gap: 4px;
    padding: 8px;
  }

  .oms-refresh .sidebar-collapsed .brand-crystal,
  .oms-refresh .sidebar-collapsed .brand-logo {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .oms-refresh .sidebar-collapsed .oms-sidebar-collapse {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}

.oms-refresh .oms-content {
  width: min(1600px, 100%);
}

/* Controls */
.oms-refresh button,
.oms-refresh .button-link {
  min-height: 40px;
  border: 1px solid var(--oms-primary);
  border-radius: 4px;
  background: var(--oms-primary);
  color: var(--oms-on-primary);
  box-shadow: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .14s ease, background .14s ease, color .14s ease;
}

.oms-refresh button:hover:not(:disabled),
.oms-refresh .button-link:hover {
  border-color: var(--wf-blue-info);
  background: var(--wf-blue-info);
  color: #fff;
  box-shadow: none;
  transform: none;
}

.oms-refresh button.secondary,
.oms-refresh .secondary,
.oms-refresh .button-link.secondary,
.oms-refresh .copy-btn,
.oms-refresh .compact-link {
  border-color: var(--oms-line-strong);
  background: var(--oms-surface);
  color: var(--oms-text);
  box-shadow: none;
}

.oms-refresh button.secondary:hover:not(:disabled),
.oms-refresh .secondary:hover:not(:disabled),
.oms-refresh .copy-btn:hover,
.oms-refresh .compact-link:hover {
  border-color: var(--oms-text);
  background: var(--oms-text);
  color: var(--oms-surface);
}

.oms-refresh button.green,
.oms-refresh .green {
  border-color: var(--oms-primary);
  background: var(--oms-primary);
  color: var(--oms-on-primary);
}

.oms-refresh button.danger,
.oms-refresh .danger {
  border-color: var(--wf-red);
  background: var(--wf-red);
  color: #fff;
  box-shadow: none;
}

.oms-refresh .danger-outline {
  border-color: var(--wf-red);
  background: transparent;
  color: var(--oms-red);
}

.oms-refresh input,
.oms-refresh select,
.oms-refresh textarea {
  min-height: 42px;
  border: 1px solid var(--oms-line-strong);
  border-radius: 4px;
  background: var(--oms-surface);
  color: var(--oms-text);
  box-shadow: none;
}

.oms-refresh input:focus,
.oms-refresh select:focus,
.oms-refresh textarea:focus {
  border-color: var(--wf-blue-info);
  background: var(--oms-surface);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--wf-blue-info) 14%, transparent);
}

/* Native checks must not inherit the full-size text-input dimensions. */
.oms-refresh :is(.check-row, .check, .permission) > input:is([type="checkbox"], [type="radio"]) {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  box-shadow: none;
  accent-color: var(--wf-blue-info);
}

.oms-refresh .check-row {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  line-height: 1.35;
}

.oms-refresh .settings-page :is(.inline, .settings-actions, .settings-test-actions) {
  align-items: center;
}

.oms-refresh .settings-page :is(.inline, .settings-actions, .settings-test-actions) button,
.oms-refresh .settings-page .settings-section > button.small {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.oms-refresh .settings-page .settings-section > button.small {
  margin-top: 12px;
}

.oms-refresh .settings-section-heading > .check-row {
  align-self: center;
  margin: 0;
}

/* Shared surfaces */
.oms-refresh :is(
  .module,
  .shipment-detail-section,
  .settings-section,
  .settings-group,
  .product-detail-section,
  .product-raw,
  .upload-review-card,
  .order-group-member,
  .order-group-candidate,
  .ebay-unpaid-resolution-form,
  .photo-download-card,
  .recent-auction-buyer,
  .social-caption-card,
  .ebay-batch-preparation,
  .server-maintenance-card
) {
  border: 1px solid var(--oms-line);
  border-radius: 8px;
  background: var(--oms-surface);
  box-shadow: none;
}

/* Neutral graphite replaces the inherited navy theme surfaces. */
html.oms-refresh[data-theme="dark"] :is(
  .module,
  .shipment-detail-section,
  .settings-section,
  .settings-group,
  .product-detail-section,
  .product-raw,
  .upload-review-card,
  .order-card,
  .order-combined-container,
  .order-combined-heading,
  .order-group-member,
  .order-group-candidate,
  .ebay-unpaid-resolution-form,
  .photo-download-card,
  .recent-auction-buyer,
  .social-caption-card,
  .ebay-batch-preparation,
  .server-maintenance-card,
  .dashboard-panel,
  .dashboard-order-insights,
  .dashboard-auction-insights
) {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface) !important;
  box-shadow: none !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .item,
  .action,
  .reply,
  .copy-field,
  .document-upload-card,
  .document-row,
  .permission,
  .product-card,
  .listing-check-card,
  .order-fedex-ci-ready,
  .order-fedex-rate,
  .stockpile-detail-grid > div,
  .dashboard-order-queue-row,
  .dashboard-action-row,
  .notification-item,
  .dashboard-upload-row,
  .dashboard-store-health-row,
  .dashboard-erocks-primary,
  .dashboard-erocks-auction,
  .ebay-unpaid-order
) {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface-raised) !important;
  box-shadow: none !important;
}

html.oms-refresh[data-theme="dark"] .listing-check-image {
  background: var(--oms-surface-soft) !important;
}

html.oms-refresh[data-theme="dark"] :is(input, select, textarea, .stat, .table-wrap) {
  border-color: var(--oms-line-strong) !important;
  background: var(--oms-surface-soft) !important;
  color: var(--oms-text) !important;
  box-shadow: none !important;
}

.oms-refresh :is(
  .item,
  .action,
  .reply,
  .copy-field,
  .document-upload-card,
  .document-row,
  .permission,
  .product-card,
  .order-fedex-ci-ready,
  .order-fedex-rate,
  .stockpile-detail-grid > div,
  .dashboard-erocks-auction,
  .ebay-unpaid-order
) {
  border-radius: 4px;
  background: var(--oms-surface-raised);
  box-shadow: none;
}

.oms-refresh .stat {
  border-radius: 4px;
  background: var(--oms-surface-soft);
  box-shadow: none;
}

.oms-refresh .stat::after {
  display: none;
  content: none;
}

.oms-refresh .tag,
.oms-refresh .dashboard-panel-count,
.oms-refresh .dashboard-notification-count,
.oms-refresh .dashboard-mini-counts span {
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.oms-refresh .table-wrap {
  border-radius: 8px;
  box-shadow: none;
}

.oms-refresh .route-state {
  border-radius: 8px;
  background: var(--oms-surface);
}

.oms-refresh .message {
  border-radius: 4px;
}

.oms-refresh .app-modal,
.oms-refresh .modal,
.oms-refresh .whats-new-panel {
  border-radius: 8px;
  box-shadow: 0 8px 0 rgba(8, 8, 8, .12), 0 28px 72px rgba(8, 8, 8, .28);
}

/* Dashboard */
.oms-refresh .dashboard-page-head--refresh {
  min-height: 0;
  margin-bottom: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.oms-refresh .dashboard-page-head--refresh h1 {
  font-size: clamp(36px, 4.3vw, 60px);
}

.oms-refresh .dashboard-date {
  border-color: var(--oms-line);
  border-radius: 4px;
  background: var(--oms-surface-soft);
}

.oms-refresh .dashboard-kpi-grid {
  gap: 12px;
  margin: 0 0 28px;
}

.oms-refresh .dashboard-kpi {
  --kpi-surface: var(--oms-surface);
  min-height: 132px;
  padding: 22px 20px;
  border: 1px solid var(--oms-line);
  border-radius: 8px;
  background: var(--kpi-surface);
  color: var(--oms-text);
  box-shadow: none;
}

.oms-refresh .dashboard-kpi--green {
  background: var(--kpi-surface);
  color: var(--oms-text);
}

.oms-refresh .dashboard-kpi--blue {
  background: var(--kpi-surface);
  color: var(--oms-text);
}

.oms-refresh .dashboard-kpi--amber {
  background: var(--kpi-surface);
  color: var(--oms-text);
}

.oms-refresh .dashboard-kpi--violet {
  background: var(--kpi-surface);
  color: var(--oms-text);
}

.oms-refresh .dashboard-kpi--mint {
  background: var(--kpi-surface);
  color: var(--oms-text);
}

html.oms-refresh[data-theme="dark"] :is(
  .dashboard-kpi--green,
  .dashboard-kpi--blue,
  .dashboard-kpi--amber,
  .dashboard-kpi--violet,
  .dashboard-kpi--mint
) {
  --kpi-surface: var(--oms-surface);
  border-color: var(--oms-line);
  color: var(--oms-text);
}

.oms-refresh button.dashboard-kpi:hover {
  border-color: var(--oms-text);
  background: var(--kpi-surface);
  color: var(--oms-text);
  box-shadow: none;
  transform: none;
  filter: none;
}

html.oms-refresh[data-theme="dark"] button.dashboard-kpi:hover {
  border-color: var(--oms-text);
  color: var(--oms-text);
  filter: none;
}

.oms-refresh .dashboard-kpi-value,
.oms-refresh .dashboard-kpi-label {
  color: currentColor;
}

.oms-refresh .dashboard-kpi-value {
  font-size: clamp(36px, 3.5vw, 50px);
  font-weight: 600;
  letter-spacing: -.04em;
}

.oms-refresh .dashboard-kpi-label {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
}

.oms-refresh .dashboard-section {
  padding-top: 24px;
}

.oms-refresh .dashboard-panel.dashboard-panel,
.oms-refresh .dashboard-order-insights,
.oms-refresh .dashboard-auction-insights {
  border: 1px solid var(--oms-line) !important;
  border-radius: 8px;
  background: var(--oms-surface) !important;
  box-shadow: none !important;
}

.oms-refresh .dashboard-panel.dashboard-panel::before,
.oms-refresh .dashboard-order-insights::before,
.oms-refresh .dashboard-auction-insights::before {
  display: none !important;
  content: none !important;
}

.oms-refresh .dashboard-order-queue-row,
.oms-refresh .dashboard-action-row,
.oms-refresh .notification-item,
.oms-refresh .dashboard-upload-row,
.oms-refresh .dashboard-store-summary .dashboard-store-health-row,
.oms-refresh .dashboard-erocks-primary,
.oms-refresh .dashboard-erocks-auction {
  border: 1px solid var(--oms-line);
  border-radius: 4px !important;
  background: var(--oms-surface-raised);
  box-shadow: none;
}

.oms-refresh .dashboard-order-queue-row:hover,
.oms-refresh .dashboard-action-row:hover,
.oms-refresh .notification-item:hover,
.oms-refresh .dashboard-upload-row:hover {
  border-color: var(--oms-text);
  background: var(--oms-surface-soft);
}

.oms-refresh .dashboard-action-row,
.oms-refresh .notification-item.unread {
  border-left-width: 1px;
}

.oms-refresh .dashboard-order-store,
.oms-refresh .notification-item-icon,
.oms-refresh .dashboard-action-icon,
.oms-refresh .dashboard-action-row > b,
.oms-refresh .dashboard-erocks-primary,
.oms-refresh .dashboard-mini-counts span {
  border-radius: 4px;
}

.oms-refresh .dashboard-order-insights .dashboard-order-chart,
.oms-refresh .dashboard-order-insights .dashboard-insight-summary > div,
.oms-refresh .dashboard-auction-insights .dashboard-insight-summary > div,
.oms-refresh .dashboard-order-single-day,
.oms-refresh .dashboard-auction-chart {
  border-radius: 4px;
  background: var(--oms-surface-raised);
  box-shadow: none;
}

.oms-refresh .dashboard-range-switch,
.oms-refresh .dashboard-channel-tabs {
  border-radius: 4px;
  background: var(--oms-surface-soft);
}

.oms-refresh .dashboard-range-switch button,
.oms-refresh .dashboard-channel-tabs button {
  min-height: 34px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--oms-text-soft);
}

.oms-refresh .dashboard-range-switch button.active,
.oms-refresh .dashboard-channel-tabs button.active {
  background: var(--oms-text);
  color: var(--oms-surface);
}

/* Login retains the same system instead of becoming a separate campaign page. */
.oms-refresh .oms-login-page {
  background: var(--oms-bg);
}

.oms-refresh .oms-login-card,
.oms-refresh .oms-login-aside {
  border-radius: 8px;
  box-shadow: none;
}

@media (max-width: 920px) {
  .oms-refresh .oms-topbar {
    background: var(--oms-surface);
  }

  .oms-refresh .oms-sidebar {
    box-shadow: 12px 0 40px rgba(8, 8, 8, .18);
  }
}

@media (max-width: 640px) {
  .oms-refresh .oms-main {
    padding: 20px 14px 32px;
  }

  .oms-refresh .dashboard-page-head--refresh {
    min-height: 0;
    padding: 0;
  }

  .oms-refresh .dashboard-page-head--refresh h1 {
    font-size: 36px;
  }

  .oms-refresh .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .oms-refresh .dashboard-kpi {
    min-height: 112px;
    padding: 17px 15px;
  }
}

/* v1.3.345 compact Mobile Book-in and confirmed Canon print feedback. */
html.oms-refresh .admin-mobile-bookin {
  max-width: 800px;
  gap: 10px;
}

html.oms-refresh .admin-mobile-bookin > .shipment-detail-section,
html.oms-refresh .admin-mobile-bookin > #orderFedexSlot > .shipment-detail-section {
  margin: 0;
  padding: 14px;
}

html.oms-refresh .admin-mobile-bookin .shipment-detail-section h2,
html.oms-refresh .admin-mobile-bookin .order-action-note-list,
html.oms-refresh .admin-mobile-bookin .order-item-list {
  margin-top: 0;
}

html.oms-refresh .admin-mobile-bookin .order-action-note-list,
html.oms-refresh .admin-mobile-bookin .order-item-list {
  gap: 7px;
  margin-bottom: 8px;
}

html.oms-refresh .admin-mobile-bookin .order-action-note {
  padding: 10px;
}

html.oms-refresh .admin-mobile-notes.is-empty {
  padding-block: 10px;
}

html.oms-refresh .admin-mobile-notes.is-empty .item-head,
html.oms-refresh .admin-mobile-notes .order-action-note-list:empty {
  margin: 0;
}

html.oms-refresh .admin-mobile-notes .order-action-note-list:empty {
  display: none;
}

html.oms-refresh .admin-mobile-notes .order-note-display p {
  margin-bottom: 5px;
}

html.oms-refresh .admin-mobile-notes .order-note-display footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

html.oms-refresh .admin-mobile-notes .order-note-display footer small {
  margin: 0;
}

html.oms-refresh .admin-mobile-notes .order-note-display footer button {
  width: auto;
  margin: 0;
}

html.oms-refresh .admin-mobile-note-summary,
html.oms-refresh #adminMobileShippingHeaderActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

html.oms-refresh .admin-mobile-note-summary > *,
html.oms-refresh #adminMobileShippingHeaderActions > * {
  width: auto;
  margin: 0;
}

html.oms-refresh .admin-mobile-items .order-item-row {
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 48px;
  gap: 8px;
  padding-bottom: 6px;
}

html.oms-refresh .admin-mobile-items :is(.order-item-row img,.order-item-image-placeholder) {
  width: 44px;
  height: 44px;
  border-radius: 5px;
}

html.oms-refresh .admin-mobile-items .order-item-main strong {
  font-size: 12px;
}

html.oms-refresh .admin-mobile-items .order-item-main span {
  font-size: 10px;
}

html.oms-refresh .admin-mobile-shipping-summary {
  display: grid;
  gap: 10px;
}

html.oms-refresh .admin-mobile-recipient {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}

html.oms-refresh .admin-mobile-recipient strong {
  color: var(--oms-text);
  font-size: 14px;
}

html.oms-refresh .admin-mobile-recipient span {
  color: var(--oms-text-soft);
  font-size: 11px;
}

html.oms-refresh .admin-mobile-shipping-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

html.oms-refresh .admin-mobile-shipping-facts > div,
html.oms-refresh .admin-mobile-customs {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--oms-line);
  border-radius: 7px;
  background: var(--oms-surface-soft);
}

html.oms-refresh .admin-mobile-shipping-facts span,
html.oms-refresh .admin-mobile-customs span {
  color: var(--oms-text-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

html.oms-refresh .admin-mobile-shipping-facts strong,
html.oms-refresh .admin-mobile-customs strong {
  overflow-wrap: anywhere;
  color: var(--oms-text);
  font-size: 12px;
}

html.oms-refresh .admin-mobile-shipping-facts small {
  color: var(--oms-text-soft);
  font-size: 9px;
}

html.oms-refresh .admin-mobile-shipping-facts .required-text {
  color: var(--oms-red);
}

html.oms-refresh .admin-mobile-shipping-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

html.oms-refresh .admin-mobile-shipping-quick-actions button {
  margin: 0;
}

html.oms-refresh .admin-mobile-quick-form {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--oms-line);
  border-radius: 8px;
  background: var(--oms-surface-soft);
}

html.oms-refresh .admin-mobile-quick-form label,
html.oms-refresh .admin-mobile-quick-form input {
  margin: 0;
}

html.oms-refresh .admin-mobile-quick-form input {
  margin-top: 4px;
}

html.oms-refresh .admin-mobile-bookin :is(input, select, textarea) {
  font-size: 16px;
}

html.oms-refresh .admin-mobile-quick-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

html.oms-refresh .admin-mobile-quick-form-actions button {
  width: auto;
  margin: 0;
}

html.oms-refresh .admin-mobile-note-add {
  margin-top: 8px;
}

html.oms-refresh .admin-mobile-note-add > button {
  width: auto;
  margin: 0;
}

html.oms-refresh #adminMobileWaybillPrintStatus:empty {
  display: none;
}

html.oms-refresh #adminMobileWaybillPrintStatus .message {
  margin: 9px 0 0;
}

@media (max-width: 700px) {
  html.oms-refresh .admin-mobile-bookin {
    gap: 8px;
  }

  html.oms-refresh .admin-mobile-order-head {
    gap: 8px;
  }

  html.oms-refresh .admin-mobile-order-head h1 {
    font-size: 28px;
  }

  html.oms-refresh .admin-mobile-head-actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
  }

  html.oms-refresh .admin-mobile-head-actions button {
    min-height: 40px;
  }

  html.oms-refresh .admin-mobile-bookin > .shipment-detail-section,
  html.oms-refresh .admin-mobile-bookin > #orderFedexSlot > .shipment-detail-section {
    padding: 11px;
    border-radius: 8px;
  }

  html.oms-refresh .admin-mobile-bookin .item-head {
    gap: 7px;
    margin-bottom: 7px;
  }

  html.oms-refresh .admin-mobile-bookin .order-detail-items > .item-head,
  html.oms-refresh .admin-mobile-bookin .order-action-notes > .item-head,
  html.oms-refresh .admin-mobile-bookin .admin-mobile-waybill > .item-head {
    align-items: center;
    flex-direction: row;
  }

  html.oms-refresh .admin-mobile-notes .order-note-display footer {
    align-items: center;
    flex-direction: row;
  }

  html.oms-refresh .admin-mobile-notes .order-note-display footer button {
    width: auto;
  }

  html.oms-refresh .admin-mobile-bookin .order-detail-items .order-item-row {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 48px;
    gap: 8px;
    padding-bottom: 6px;
  }

  html.oms-refresh .admin-mobile-bookin .order-detail-items :is(.order-item-row img,.order-item-image-placeholder) {
    width: 44px;
    height: 44px;
    border-radius: 4px;
  }

  html.oms-refresh .admin-mobile-bookin .order-detail-items .order-item-price {
    grid-column: 2;
  }

  html.oms-refresh .admin-mobile-order-information #orderEditForm > .grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
  }

  html.oms-refresh .admin-mobile-order-information #orderEditForm > .grid2 > :is(:nth-child(3),:nth-child(10),:nth-child(12),:nth-child(13),:nth-child(14)) {
    grid-column: 1 / -1;
  }

  html.oms-refresh .admin-mobile-order-information #orderEditForm label {
    margin: 6px 0 3px;
    font-size: 10px;
    line-height: 1.25;
  }

  html.oms-refresh .admin-mobile-order-information #orderEditForm :is(input,select) {
    min-height: 40px;
    padding: 8px 9px;
  }

  html.oms-refresh .admin-mobile-order-information #orderEditForm textarea,
  html.oms-refresh .admin-mobile-bookin .order-fedex-options textarea {
    min-height: 58px;
  }

  html.oms-refresh .admin-mobile-order-information #orderEditForm .meta {
    font-size: 9px;
    line-height: 1.35;
  }

  html.oms-refresh .admin-mobile-shipping-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.oms-refresh .admin-mobile-shipping-facts > div:first-child {
    grid-column: 1 / -1;
  }

  html.oms-refresh .admin-mobile-quick-form-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.oms-refresh .admin-mobile-quick-form-actions button {
    width: 100%;
  }

  html.oms-refresh .admin-mobile-quick-form-actions button:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }

  html.oms-refresh .admin-mobile-bookin .order-information-save {
    margin-top: 9px;
  }

  html.oms-refresh .admin-mobile-bookin .order-fedex-controls,
  html.oms-refresh .admin-mobile-bookin .order-fedex-result,
  html.oms-refresh .admin-mobile-bookin .order-fedex-options {
    margin-top: 8px;
  }

  html.oms-refresh .admin-mobile-bookin .order-fedex-controls {
    display: grid;
    gap: 9px;
  }

  html.oms-refresh .admin-mobile-bookin .order-fedex-controls button {
    width: 100%;
    min-height: 48px;
  }

  html.oms-refresh .admin-mobile-bookin .order-fedex-result {
    grid-template-columns: 1fr;
  }

  html.oms-refresh .admin-mobile-bookin .order-fedex-rate {
    display: grid;
    justify-items: stretch;
    gap: 12px;
    padding: 14px;
    text-align: center;
  }

  html.oms-refresh .admin-mobile-bookin .order-fedex-rate > div:first-child {
    justify-items: center;
  }

  html.oms-refresh .admin-mobile-bookin .order-fedex-rate > div:first-child > strong {
    font-size: 30px;
    line-height: 1.05;
  }

  html.oms-refresh .admin-mobile-bookin .order-fedex-book-actions {
    display: grid;
    width: 100%;
    gap: 9px;
  }

  html.oms-refresh .admin-mobile-bookin .order-marketplace-tracking {
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: left;
  }

  html.oms-refresh .admin-mobile-bookin .order-marketplace-tracking strong {
    font-size: 12px;
  }

  html.oms-refresh .admin-mobile-bookin .order-fedex-book-actions > button {
    width: 100%;
    min-height: 52px;
    margin: 0;
    font-size: 15px;
  }

  html.oms-refresh .admin-mobile-bookin .message {
    margin-top: 8px;
    padding: 9px 10px;
  }

  html.oms-refresh .admin-mobile-sticky-actions {
    bottom: 6px;
    padding: 7px;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oms-refresh *,
  .oms-refresh *::before,
  .oms-refresh *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Keep legacy navy module fills from leaking into the warm graphite dark theme. */
html[data-theme="dark"].oms-refresh .dashboard-order-insights,
html[data-theme="dark"].oms-refresh .dashboard-auction-insights,
html[data-theme="dark"].oms-refresh .dashboard-insight-summary > div,
html[data-theme="dark"].oms-refresh .dashboard-order-chart,
html[data-theme="dark"].oms-refresh .dashboard-store-activity,
html[data-theme="dark"].oms-refresh .shipment-detail-section,
html[data-theme="dark"].oms-refresh .item,
html[data-theme="dark"].oms-refresh .module,
html[data-theme="dark"].oms-refresh .order-action-note,
html[data-theme="dark"].oms-refresh .shipment-tracking-card,
html[data-theme="dark"].oms-refresh .finance-expense-row {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface) !important;
  background-image: none !important;
}

html[data-theme="dark"].oms-refresh .dashboard-range-switch {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface-soft) !important;
}

/* Specimen importer uses the same flat operational surfaces in both themes. */
.oms-refresh .specimen-upload-section,
.oms-refresh .specimen-processing-summary,
.oms-refresh .specimen-results-section,
.oms-refresh .specimen-history-section,
.oms-refresh .specimen-result-card,
.oms-refresh .specimen-history-row {
  border-color: var(--oms-line);
  border-radius: 8px;
  background: var(--oms-surface);
  box-shadow: none;
}

.oms-refresh .specimen-drop-zone,
.oms-refresh .specimen-raw pre,
.oms-refresh .specimen-history-row.current {
  border-color: var(--oms-line);
  border-radius: 4px;
  background: var(--oms-surface-soft);
}

.oms-refresh .specimen-drop-zone.is-dragging,
.oms-refresh .specimen-drop-zone:focus-visible,
.oms-refresh .specimen-history-row.current {
  border-color: var(--oms-accent);
}

.oms-refresh .specimen-result-card {
  border-left: 1px solid var(--oms-line);
}

/* Product rows are selection controls, not primary action buttons. */
.oms-refresh .social-create-form {
  border-color: var(--oms-line);
  border-radius: 8px;
  background: var(--oms-surface);
  box-shadow: none;
}

.oms-refresh .social-create-form fieldset {
  border-color: var(--oms-line);
  border-radius: 4px;
}

.oms-refresh .social-create-form legend {
  color: var(--oms-text);
  font-weight: 600;
}

.oms-refresh .social-product-note {
  border-radius: 4px;
  background: var(--oms-surface-soft);
  color: var(--oms-text-soft);
}

.oms-refresh .social-product-results {
  gap: 8px;
  padding: 4px 8px 4px 4px;
}

.oms-refresh button.social-product-choice {
  min-height: 82px;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 9px;
  border: 1px solid var(--oms-line);
  border-radius: 4px;
  background: var(--oms-surface-raised);
  color: var(--oms-text);
  box-shadow: none;
}

.oms-refresh button.social-product-choice:hover:not(:disabled),
.oms-refresh button.social-product-choice.is-selected {
  border-color: var(--oms-accent);
  background: color-mix(in srgb, var(--oms-accent) 8%, var(--oms-surface));
  color: var(--oms-text);
}

.oms-refresh button.social-product-choice.is-selected {
  box-shadow: inset 3px 0 0 var(--oms-accent);
}

.oms-refresh button.social-product-choice:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--oms-accent) 24%, transparent);
  outline-offset: 1px;
}

.oms-refresh .social-product-choice img,
.oms-refresh .social-product-image-placeholder {
  width: 76px;
  height: 64px;
  border-radius: 4px;
  background: var(--oms-surface-soft);
  color: var(--oms-text-soft);
}

.oms-refresh .social-product-choice strong,
.oms-refresh .social-product-choice small {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
}

.oms-refresh .social-product-choice strong {
  color: var(--oms-text);
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

.oms-refresh .social-product-choice small {
  color: var(--oms-text-soft);
  font-size: 12px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
}

@media (max-width: 620px) {
  .oms-refresh button.social-product-choice {
    min-height: 74px;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
  }

  .oms-refresh .social-product-choice img,
  .oms-refresh .social-product-image-placeholder {
    width: 62px;
    height: 56px;
  }

  .oms-refresh .social-product-choice-tags {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Social video tester */
.oms-refresh .social-post-page-actions {
  align-items: center;
  justify-content: flex-end;
}

.oms-refresh .social-post-page-actions button {
  margin: 0;
}

.oms-refresh .social-video-tester {
  margin-top: 14px;
  border: 1px solid var(--oms-line);
  border-radius: 8px;
  background: var(--oms-surface);
}

.oms-refresh .social-video-tester > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  color: var(--oms-text);
  cursor: pointer;
  list-style: none;
}

.oms-refresh .social-video-tester > summary::-webkit-details-marker {
  display: none;
}

.oms-refresh .social-video-tester > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.oms-refresh .social-video-tester > summary strong {
  font-size: 14px;
  font-weight: 600;
}

.oms-refresh .social-video-tester > summary small,
.oms-refresh .social-video-tester-body > p,
.oms-refresh .social-video-test-result article span {
  color: var(--oms-text-soft);
}

.oms-refresh .social-video-tester[open] > summary {
  border-bottom: 1px solid var(--oms-line);
}

.oms-refresh .social-video-tester[open] > summary .settings-chevron {
  transform: rotate(180deg);
}

.oms-refresh .social-video-tester-body {
  padding: 14px;
}

.oms-refresh .social-video-tester-body > p {
  max-width: 72ch;
  margin: 0 0 12px;
  line-height: 1.5;
}

.oms-refresh .social-video-test-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
}

.oms-refresh .social-video-test-controls label {
  margin-top: 0;
}

.oms-refresh .social-video-test-controls > .check-row {
  margin: 0 0 5px;
  white-space: nowrap;
}

.oms-refresh .social-video-test-controls > button {
  width: auto;
  margin: 0;
  white-space: nowrap;
}

.oms-refresh .social-video-test-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.oms-refresh .social-video-test-result article {
  overflow: hidden;
  border: 1px solid var(--oms-line);
  border-radius: 4px;
  background: var(--oms-surface-raised);
}

.oms-refresh .social-video-test-result video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: #111;
  object-fit: contain;
}

.oms-refresh .social-video-test-result article > div {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
}

.oms-refresh .social-video-test-result article strong {
  color: var(--oms-text);
  font-size: 13px;
  font-weight: 600;
}

.oms-refresh .social-video-test-result article span {
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .oms-refresh .social-video-test-controls,
  .oms-refresh .social-video-test-result {
    grid-template-columns: 1fr;
  }

  .oms-refresh .social-video-test-controls > .check-row {
    margin: 0;
    white-space: normal;
  }

  .oms-refresh .social-video-test-controls > button,
  .oms-refresh .social-post-page-actions {
    width: 100%;
  }

  .oms-refresh .social-post-page-actions button {
    flex: 1 1 160px;
  }
}

/* Marketplace statistics */
.oms-refresh .statistics-head {
  align-items: flex-end;
}

.oms-refresh .statistics-filter {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius);
  background: var(--oms-surface);
}

.oms-refresh .statistics-presets,
.oms-refresh .statistics-filter-fields,
.oms-refresh .statistics-legend {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.oms-refresh .statistics-filter-fields > div {
  width: 132px;
  min-width: 0;
}

.oms-refresh .statistics-filter-fields {
  justify-content: flex-end;
  margin-left: auto;
}

.oms-refresh .statistics-filter-fields label,
.oms-refresh .statistics-currency {
  margin: 0;
  font-size: 11px;
}

.oms-refresh .statistics-filter-fields input,
.oms-refresh .statistics-filter-fields select {
  min-height: 34px;
  padding: 5px 8px;
}

.oms-refresh .statistics-filter-fields > div:nth-child(3) {
  width: 94px;
}

.oms-refresh .statistics-source {
  margin: 0 0 14px;
}

.oms-refresh .statistics-panel {
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius);
  background: var(--oms-surface);
}
.oms-refresh .statistics-panel header p {
  color: var(--oms-text-soft);
}

.oms-refresh .statistics-panel {
  min-width: 0;
  margin: 10px 0;
  padding: 18px;
  overflow-x: auto;
  overflow-y: hidden;
}

.oms-refresh .statistics-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 12px;
}

.oms-refresh .statistics-panel h2,
.oms-refresh .statistics-panel header p {
  margin: 0;
}

.oms-refresh .statistics-panel header p {
  max-width: 580px;
  font-size: 13px;
  text-align: right;
}

.oms-refresh .statistics-svg {
  display: block;
  width: 100%;
  min-width: 640px;
  color: var(--oms-text-soft);
}

.oms-refresh .statistics-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 20px;
  color: var(--oms-text-soft);
  border: 1px dashed var(--oms-line);
  border-radius: var(--oms-radius);
  text-align: center;
}

.oms-refresh .statistics-grid {
  stroke: var(--oms-line);
  stroke-width: 1;
}

.oms-refresh .statistics-axis {
  fill: currentColor;
  font-size: 10px;
}

.oms-refresh .statistics-legend {
  justify-content: flex-start;
  margin: 2px 0 10px;
  color: var(--oms-text);
  font-size: 12px;
}

.oms-refresh .statistics-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 8px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface-2);
}

.oms-refresh .statistics-legend i {
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: var(--legend);
}

.oms-refresh .statistics-legend b {
  font-weight: 600;
}

.oms-refresh .statistics-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 10px;
}

.oms-refresh .statistics-fees {
  display: grid;
  gap: 12px;
  padding-top: 8px;
}

.oms-refresh .statistics-fee-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(100px, 1.5fr) auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.oms-refresh .statistics-fee-row > span {
  overflow-wrap: anywhere;
  text-transform: capitalize;
}

.oms-refresh .statistics-fee-row > div {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--oms-surface-2);
}

.oms-refresh .statistics-fee-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #f4a340;
}

.oms-refresh .statistics-fee-row strong {
  font-weight: 600;
  text-align: right;
}

.oms-refresh .statistics-channel-table table {
  min-width: 980px;
}

.oms-refresh .statistics-channel-table tfoot :is(th, td) {
  border-top: 2px solid var(--oms-line-strong);
  background: var(--oms-surface-2);
  font-weight: 600;
}

.oms-refresh .statistics-weight-table table {
  min-width: 980px;
}

.oms-refresh .statistics-weight-table tfoot :is(th, td) {
  border-top: 2px solid var(--oms-line-strong);
  background: var(--oms-surface-2);
  font-weight: 600;
}

.oms-refresh .statistics-country-table table {
  min-width: 900px;
}

.oms-refresh .statistics-coverage,
.oms-refresh .statistics-country {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  white-space: nowrap;
}

.oms-refresh .statistics-country {
  flex-direction: column;
  gap: 1px;
}

.oms-refresh .statistics-country small,
.oms-refresh .statistics-country-table td small {
  color: var(--oms-text-soft);
  font-size: 10px;
}

.oms-refresh .statistics-undercharge {
  color: var(--oms-danger);
  font-weight: 600;
}

.oms-refresh .statistics-coverage-note {
  margin: 10px 0 0;
}

.oms-refresh .statistics-weight-estimator {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(340px, 1.3fr) minmax(220px, .8fr);
  gap: 16px;
  align-items: end;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface-2);
}

.oms-refresh .statistics-weight-estimator h3,
.oms-refresh .statistics-weight-estimator p {
  margin: 0;
}

.oms-refresh .statistics-weight-estimator h3 {
  margin-top: 3px;
  font-size: 16px;
}

.oms-refresh .statistics-weight-estimator p {
  margin-top: 5px;
  color: var(--oms-text-soft);
  font-size: 12px;
}

.oms-refresh .statistics-weight-estimator-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.oms-refresh .statistics-weight-estimator-fields label {
  display: grid;
  gap: 4px;
  color: var(--oms-text-soft);
  font-size: 11px;
  font-weight: 600;
}

.oms-refresh .statistics-weight-estimator-fields :is(input, select) {
  min-height: 36px;
  padding: 6px 8px;
}

.oms-refresh .statistics-weight-estimate {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 2px solid var(--oms-accent);
}

.oms-refresh .statistics-weight-estimate span {
  color: var(--oms-text-soft);
  font-size: 11px;
}

.oms-refresh .statistics-weight-estimate strong {
  font-size: 15px;
  font-weight: 600;
}

.oms-refresh button.statistics-items-sold {
  display: inline-block;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 1px 3px;
  border: 0;
  border-bottom: 1px dotted currentColor;
  border-radius: 2px;
  background: transparent;
  color: var(--oms-text);
  cursor: help;
  font: inherit;
  font-variant-numeric: tabular-nums;
  line-height: inherit;
  box-shadow: none;
}

.oms-refresh button.statistics-items-sold:is(:hover, .is-open):not(:disabled) {
  border-color: var(--oms-text);
  background: var(--oms-surface-2);
  color: var(--oms-text);
}

.oms-refresh button.statistics-items-sold:focus-visible {
  outline: 2px solid var(--oms-accent);
  outline-offset: 3px;
}

.oms-refresh .statistics-average-popover {
  position: fixed;
  z-index: 1200;
  display: grid;
  width: min(310px, calc(100vw - 24px));
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid var(--oms-line-strong);
  border-radius: var(--oms-radius);
  background: var(--oms-surface-raised);
  color: var(--oms-text);
  box-shadow: var(--oms-shadow);
  pointer-events: none;
}

.oms-refresh .statistics-average-popover[hidden] {
  display: none;
}

.oms-refresh .statistics-average-popover > strong {
  font-size: 13px;
  font-weight: 600;
}

.oms-refresh .statistics-average-values {
  display: grid;
  gap: 5px;
}

.oms-refresh .statistics-average-values > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--oms-text-soft);
  font-size: 12px;
}

.oms-refresh .statistics-average-values b {
  color: var(--oms-text);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.oms-refresh .statistics-average-popover p {
  margin: 0;
  color: var(--oms-text-soft);
  font-size: 12px;
}

.oms-refresh .statistics-currency {
  display: grid;
  width: 112px;
  gap: 4px;
  color: var(--oms-text-soft);
}

.oms-refresh .statistics-currency select {
  min-height: 34px;
  padding: 5px 8px;
}

.oms-refresh .statistics-fee-manager {
  margin: 10px 0;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius);
  background: var(--oms-surface);
}

.oms-refresh .statistics-fee-manager > summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
}

.oms-refresh .statistics-fee-manager-body {
  padding: 0 18px 18px;
  border-top: 1px solid var(--oms-line);
}

.oms-refresh .statistics-manual-fee-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.oms-refresh .statistics-manual-fee-form > div {
  width: 150px;
}

.oms-refresh .statistics-manual-fee-form label {
  margin: 0;
  font-size: 11px;
}

.oms-refresh .statistics-manual-fees {
  display: grid;
  gap: 6px;
}

.oms-refresh .statistics-manual-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--oms-line);
}

.oms-refresh .statistics-manual-fee-row > span:first-child {
  display: grid;
  gap: 2px;
}

.oms-refresh .statistics-manual-fee-row small {
  color: var(--oms-text-soft);
}

@media (max-width: 1050px) {
  .oms-refresh .statistics-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .oms-refresh .statistics-filter-fields {
    justify-content: flex-start;
    margin-left: 0;
  }

  .oms-refresh .statistics-two-column {
    grid-template-columns: 1fr;
  }

  .oms-refresh .statistics-weight-estimator {
    grid-template-columns: 1fr 1fr;
  }

  .oms-refresh .statistics-weight-estimate {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .oms-refresh .statistics-head,
  .oms-refresh .statistics-panel > header {
    align-items: stretch;
    flex-direction: column;
  }

  .oms-refresh .statistics-head .inline,
  .oms-refresh .statistics-head button,
  .oms-refresh .statistics-filter-fields > div,
  .oms-refresh .statistics-filter-fields button {
    width: 100%;
  }

  .oms-refresh .statistics-filter-fields {
    align-items: stretch;
  }

  .oms-refresh .statistics-presets > button {
    flex: 1 1 92px;
  }

  .oms-refresh .statistics-panel {
    overflow-x: auto;
  }

  .oms-refresh .statistics-panel header p {
    text-align: left;
  }

  .oms-refresh .statistics-fee-row {
    grid-template-columns: minmax(110px, 1fr) auto;
  }

  .oms-refresh .statistics-fee-row > div {
    display: none;
  }

  .oms-refresh .statistics-manual-fee-form > div,
  .oms-refresh .statistics-manual-fee-form > button {
    width: 100%;
  }

  .oms-refresh .statistics-manual-fee-row {
    align-items: stretch;
    flex-direction: column;
  }

  .oms-refresh .statistics-weight-estimator,
  .oms-refresh .statistics-weight-estimator-fields {
    grid-template-columns: 1fr;
  }

  .oms-refresh .statistics-weight-estimate {
    grid-column: auto;
  }
}

/* v1.3.262 compact prior-phone picker */
.oms-refresh .order-phone-suggestion-slot {
  grid-column: 1 / -1;
  min-width: 0;
}

.oms-refresh .order-phone-suggestion-slot:empty {
  display: none;
}

.oms-refresh .order-phone-suggestion-loading {
  color: var(--oms-text-faint);
  font-size: 10px;
}

.oms-refresh .order-phone-suggestion-menu {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface);
}

.oms-refresh .order-phone-suggestion-menu > summary {
  display: flex;
  min-height: 32px;
  align-items: center;
  padding: 4px 8px;
  color: var(--oms-accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.oms-refresh .order-phone-suggestion-choices {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding: 0 6px 6px;
}

.oms-refresh .order-phone-suggestion-choices > span {
  color: var(--oms-text-faint);
  font-size: 10px;
}

.oms-refresh button.order-phone-suggestion-choice {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 4px 7px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface-soft);
  color: var(--oms-text);
  box-shadow: none;
  font-size: 11px;
}

.oms-refresh button.order-phone-suggestion-choice:hover:not(:disabled),
.oms-refresh button.order-phone-suggestion-choice:focus-visible {
  border-color: var(--oms-accent);
  background: var(--oms-surface);
  color: var(--oms-text);
}

.oms-refresh .order-phone-suggestion-choice span {
  color: var(--oms-text-faint);
  font-size: 10px;
}

@media (max-width: 560px) {
  .oms-refresh .order-phone-suggestion-menu {
    width: 100%;
  }

  .oms-refresh .order-phone-suggestion-choices {
    align-items: stretch;
    flex-direction: column;
  }

  .oms-refresh button.order-phone-suggestion-choice {
    justify-content: space-between;
  }
}

/* v1.3.263 FedEx bulk check-in */
.oms-refresh .fedex-bulk-page-head,
.oms-refresh .fedex-bulk-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.oms-refresh .fedex-bulk-page-head h1,
.oms-refresh .fedex-bulk-review-head h2,
.oms-refresh .fedex-bulk-progress h2 {
  margin: 4px 0 6px;
}

.oms-refresh .fedex-bulk-page-head p,
.oms-refresh .fedex-bulk-review-head p,
.oms-refresh .fedex-bulk-progress p {
  margin: 0;
  color: var(--oms-text-soft);
}

.oms-refresh .fedex-bulk-summary,
.oms-refresh .fedex-bulk-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius);
  background: var(--oms-surface);
}

.oms-refresh .fedex-bulk-summary > div:first-child,
.oms-refresh .fedex-bulk-action-bar > div:first-child {
  display: grid;
  gap: 3px;
}

.oms-refresh .fedex-bulk-summary span,
.oms-refresh .fedex-bulk-action-bar span {
  color: var(--oms-text-soft);
  font-size: 12px;
}

.oms-refresh .fedex-bulk-summary-actions,
.oms-refresh .fedex-bulk-final-actions,
.oms-refresh .fedex-bulk-result-documents {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.oms-refresh .fedex-bulk-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.oms-refresh .fedex-bulk-row,
.oms-refresh .fedex-bulk-review-row,
.oms-refresh .fedex-bulk-result-row {
  display: grid;
  grid-template-columns: 24px minmax(180px, 1.05fr) minmax(330px, 1.5fr) minmax(170px, .75fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius);
  background: var(--oms-surface);
}

.oms-refresh .fedex-bulk-row.selected,
.oms-refresh .fedex-bulk-review-row.selected {
  border-color: var(--oms-accent);
  background: color-mix(in srgb, var(--oms-accent) 5%, var(--oms-surface));
}

.oms-refresh .fedex-bulk-review-row.failed,
.oms-refresh .fedex-bulk-result-row.failed,
.oms-refresh .fedex-bulk-result-row.uncertain,
.oms-refresh .fedex-bulk-result-row.attention {
  border-left: 4px solid var(--oms-red);
}

.oms-refresh .fedex-bulk-check {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.oms-refresh .fedex-bulk-check input,
.oms-refresh .fedex-bulk-tracking input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  accent-color: var(--oms-accent);
}

.oms-refresh .fedex-bulk-identity,
.oms-refresh .fedex-bulk-rate,
.oms-refresh .fedex-bulk-doc-state,
.oms-refresh .fedex-bulk-review-error,
.oms-refresh .fedex-bulk-result-status {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.oms-refresh .fedex-bulk-identity strong,
.oms-refresh .fedex-bulk-facts strong,
.oms-refresh .fedex-bulk-rate strong {
  overflow-wrap: anywhere;
}

.oms-refresh .fedex-bulk-identity small,
.oms-refresh .fedex-bulk-rate small,
.oms-refresh .fedex-bulk-doc-state small,
.oms-refresh .fedex-bulk-result-status small {
  color: var(--oms-text-soft);
}

.oms-refresh .fedex-bulk-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 12px;
}

.oms-refresh .fedex-bulk-facts > span {
  display: grid;
  gap: 2px;
}

.oms-refresh .fedex-bulk-facts small,
.oms-refresh .fedex-bulk-facts em,
.oms-refresh .fedex-bulk-package label {
  color: var(--oms-text-faint);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.oms-refresh .fedex-bulk-package {
  display: grid;
  gap: 7px;
}

.oms-refresh .fedex-bulk-package label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.oms-refresh .fedex-bulk-package select,
.oms-refresh .fedex-bulk-package input {
  min-height: 36px;
  margin: 0;
  padding: 6px 9px;
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
}

.oms-refresh .fedex-bulk-review-row {
  grid-template-columns: 24px minmax(220px, 1.15fr) minmax(180px, .7fr) minmax(220px, .85fr);
}

.oms-refresh .fedex-bulk-rate strong {
  font-size: 18px;
}

.oms-refresh .fedex-bulk-doc-state > span {
  color: var(--oms-text-soft);
  font-size: 11px;
}

.oms-refresh .fedex-bulk-doc-state > strong,
.oms-refresh .fedex-bulk-review-error {
  color: var(--oms-red);
}

.oms-refresh .fedex-bulk-action-bar {
  position: sticky;
  z-index: 5;
  bottom: 12px;
}

.oms-refresh .fedex-bulk-action-bar.review {
  align-items: center;
}

.oms-refresh .fedex-bulk-tracking {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
}

.oms-refresh .fedex-bulk-tracking > span {
  display: grid;
  gap: 2px;
}

.oms-refresh .fedex-bulk-tracking strong {
  color: var(--oms-text);
}

.oms-refresh .fedex-bulk-progress {
  padding: 20px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius);
  background: var(--oms-surface);
}

.oms-refresh .fedex-bulk-progress-head,
.oms-refresh .fedex-bulk-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.oms-refresh .fedex-bulk-progress progress {
  width: 100%;
  height: 8px;
  margin: 18px 0;
  accent-color: var(--oms-accent);
}

.oms-refresh .fedex-bulk-progress-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--oms-line);
}

.oms-refresh .fedex-bulk-progress-row {
  min-height: 54px;
  border-bottom: 1px solid var(--oms-line);
}

.oms-refresh .fedex-bulk-progress-row > span:first-child {
  display: grid;
  gap: 2px;
}

.oms-refresh .fedex-bulk-progress-row small {
  color: var(--oms-text-soft);
}

.oms-refresh .fedex-bulk-result-row {
  grid-template-columns: minmax(220px, 1fr) minmax(250px, 1fr) minmax(300px, auto);
}

.oms-refresh .fedex-bulk-result-documents {
  justify-content: flex-end;
}

@media (max-width: 1000px) {
  .oms-refresh .fedex-bulk-row,
  .oms-refresh .fedex-bulk-review-row {
    grid-template-columns: 24px minmax(180px, 1fr) minmax(260px, 1.4fr);
  }

  .oms-refresh .fedex-bulk-package,
  .oms-refresh .fedex-bulk-doc-state,
  .oms-refresh .fedex-bulk-review-error {
    grid-column: 2 / -1;
  }

  .oms-refresh .fedex-bulk-package {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .oms-refresh .fedex-bulk-result-row {
    grid-template-columns: 1fr 1fr;
  }

  .oms-refresh .fedex-bulk-result-documents {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .oms-refresh .fedex-bulk-page-head,
  .oms-refresh .fedex-bulk-review-head,
  .oms-refresh .fedex-bulk-summary,
  .oms-refresh .fedex-bulk-action-bar,
  .oms-refresh .fedex-bulk-progress-head {
    align-items: stretch;
    flex-direction: column;
  }

  .oms-refresh .fedex-bulk-row,
  .oms-refresh .fedex-bulk-review-row,
  .oms-refresh .fedex-bulk-result-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
  }

  .oms-refresh .fedex-bulk-facts,
  .oms-refresh .fedex-bulk-package,
  .oms-refresh .fedex-bulk-rate,
  .oms-refresh .fedex-bulk-doc-state,
  .oms-refresh .fedex-bulk-review-error,
  .oms-refresh .fedex-bulk-result-status,
  .oms-refresh .fedex-bulk-result-documents {
    grid-column: 2;
  }

  .oms-refresh .fedex-bulk-facts {
    grid-template-columns: 1fr;
  }

  .oms-refresh .fedex-bulk-package {
    grid-template-columns: 1fr;
  }

  .oms-refresh .fedex-bulk-final-actions,
  .oms-refresh .fedex-bulk-final-actions button,
  .oms-refresh .fedex-bulk-action-bar > button {
    width: 100%;
  }

  .oms-refresh .fedex-bulk-result-documents {
    justify-content: flex-start;
  }
}

/* v1.3.264 temporary bulk Waybill printing */
.oms-refresh .bulk-waybill-head {
  margin-bottom: 20px;
}

.oms-refresh .bulk-waybill-head h1 {
  margin: 4px 0 6px;
}

.oms-refresh .bulk-waybill-head p {
  max-width: 760px;
  margin: 0;
  color: var(--oms-text-soft);
}

.oms-refresh .bulk-waybill-toolbar,
.oms-refresh .bulk-waybill-action-bar,
.oms-refresh .bulk-waybill-ready {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius);
  background: var(--oms-surface);
}

.oms-refresh .bulk-waybill-toolbar label {
  display: grid;
  width: min(520px, 100%);
  gap: 5px;
  margin: 0;
  color: var(--oms-text-soft);
  font-size: 11px;
  font-weight: 600;
}

.oms-refresh .bulk-waybill-toolbar input {
  min-height: 40px;
  margin: 0;
}

.oms-refresh .bulk-waybill-toolbar > div,
.oms-refresh .bulk-waybill-ready > div,
.oms-refresh .bulk-waybill-ready > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.oms-refresh .bulk-waybill-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.oms-refresh .bulk-waybill-row {
  display: grid;
  grid-template-columns: 24px minmax(240px, 1.2fr) minmax(180px, .8fr) minmax(150px, auto);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius);
  background: var(--oms-surface);
}

.oms-refresh .bulk-waybill-row.selected {
  border-color: var(--oms-accent);
  background: color-mix(in srgb, var(--oms-accent) 5%, var(--oms-surface));
}

.oms-refresh .bulk-waybill-check {
  display: flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.oms-refresh .bulk-waybill-check input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  accent-color: var(--oms-accent);
}

.oms-refresh .bulk-waybill-identity,
.oms-refresh .bulk-waybill-tracking,
.oms-refresh .bulk-waybill-date,
.oms-refresh .bulk-waybill-action-bar > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.oms-refresh .bulk-waybill-identity strong,
.oms-refresh .bulk-waybill-tracking strong {
  overflow-wrap: anywhere;
}

.oms-refresh .bulk-waybill-identity small,
.oms-refresh .bulk-waybill-tracking small,
.oms-refresh .bulk-waybill-date small,
.oms-refresh .bulk-waybill-action-bar span,
.oms-refresh .bulk-waybill-ready small,
.oms-refresh .bulk-waybill-ready p {
  color: var(--oms-text-soft);
  font-size: 12px;
}

.oms-refresh .bulk-waybill-date {
  justify-items: end;
  text-align: right;
}

.oms-refresh .bulk-waybill-action-bar {
  position: sticky;
  z-index: 5;
  bottom: 12px;
}

.oms-refresh .bulk-waybill-ready {
  align-items: center;
  margin-bottom: 14px;
  border-color: color-mix(in srgb, var(--oms-green) 45%, var(--oms-line));
}

.oms-refresh .bulk-waybill-ready > div:first-child > div {
  display: grid;
  gap: 2px;
}

.oms-refresh .bulk-waybill-ready p {
  flex-basis: 100%;
  margin: 0;
}

@media (max-width: 760px) {
  .oms-refresh .bulk-waybill-toolbar,
  .oms-refresh .bulk-waybill-action-bar,
  .oms-refresh .bulk-waybill-ready {
    align-items: stretch;
    flex-direction: column;
  }

  .oms-refresh .bulk-waybill-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
  }

  .oms-refresh .bulk-waybill-tracking,
  .oms-refresh .bulk-waybill-date {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .oms-refresh .bulk-waybill-toolbar > div,
  .oms-refresh .bulk-waybill-toolbar button,
  .oms-refresh .bulk-waybill-action-bar > button,
  .oms-refresh .bulk-waybill-ready > div:nth-child(2),
  .oms-refresh .bulk-waybill-ready a {
    width: 100%;
  }
}

.recent-auction-buyer.order-label-focus {
  outline: 3px solid var(--accent, #1f7ae0);
  outline-offset: 3px;
  animation: order-label-focus-pulse 1.2s ease-out 1;
}
@keyframes order-label-focus-pulse {
  from { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent, #1f7ae0) 30%, transparent); }
  to { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .recent-auction-buyer.order-label-focus { animation: none; }
}

.sorting-summary { display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:10px;margin:16px 0; }
.sorting-summary .stat { min-width:0;overflow-wrap:anywhere; }
.sorting-groups-head-actions { display:flex;align-items:center;gap:8px; }
.sorting-open-total { display:flex;align-items:baseline;gap:6px;padding:8px 10px;border:1px solid var(--border);border-radius:4px;background:var(--surface-soft,#f7f9fc);white-space:nowrap; }
.sorting-open-total strong { color:var(--navy);font-size:16px;font-variant-numeric:tabular-nums;line-height:1; }
.sorting-open-total span { color:var(--muted);font-size:9px;font-weight:600;letter-spacing:.04em;text-transform:uppercase; }
.sorting-printer-state,.sorting-bulk-action { display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:100%;margin:0 0 12px;padding:14px 16px;border:1px solid var(--oms-line,#d8d8d8);border-radius:8px;background:var(--oms-surface,#fff); }
.sorting-printer-state > div,.sorting-bulk-action > div { display:grid;gap:3px;min-width:0; }
.sorting-printer-state strong,.sorting-bulk-action strong { font-size:.78rem;font-weight:600;letter-spacing:.08em; }
.sorting-printer-state span,.sorting-bulk-action span { overflow-wrap:anywhere;color:var(--oms-text-soft,#5a5a5a);font-size:.88rem;line-height:1.45; }
.sorting-printer-state button,.sorting-bulk-action button { flex:0 0 auto;max-width:100%;width:auto;margin:0; }
.sorting-printer-state.is-online { border-color:#69bf92;background:#effbf4; }
.sorting-printer-state.is-online strong { color:#135e39; }
.sorting-printer-state.is-offline { border-color:#dfa94f;background:#fff8e9; }
.sorting-printer-state.is-offline strong { color:#7a4200; }
.sorting-bulk-action { border-width:2px; }
html.oms-refresh[data-theme="dark"] .sorting-printer-state.is-online { border-color:#397859;background:#112e22; }
html.oms-refresh[data-theme="dark"] .sorting-printer-state.is-online strong { color:#8ff0bc; }
html.oms-refresh[data-theme="dark"] .sorting-printer-state.is-offline { border-color:#815d21;background:#33250d; }
html.oms-refresh[data-theme="dark"] .sorting-printer-state.is-offline strong { color:#ffd38a; }
.sorting-buyer-card { overflow:hidden;border-width:2px; }
.sorting-state-band { display:flex;align-items:center;gap:14px;margin:-18px -18px 16px;padding:12px 18px; }
.sorting-state-band span { font-size:.78rem;font-weight:900;letter-spacing:.12em; }
.sorting-state-band strong { font-size:1rem; }
.sorting-new .sorting-state-band { background:#dff7ea;color:#135e39; }
.sorting-existing .sorting-state-band { background:#e1efff;color:#174f83; }
.sorting-sorted .sorting-state-band { background:var(--oms-surface-soft,#f3f3f3);color:var(--oms-text-soft,#5a5a5a); }
.sorting-attention .sorting-state-band { background:#fff0d5;color:#7a4200; }
html.oms-refresh[data-theme="dark"] .sorting-new .sorting-state-band { background:#123b2a;color:#8ff0bc; }
html.oms-refresh[data-theme="dark"] .sorting-existing .sorting-state-band { background:#122f50;color:#a8d0ff; }
html.oms-refresh[data-theme="dark"] .sorting-attention .sorting-state-band { background:#4a310c;color:#ffd38a; }
.sorting-primary-action { min-height:44px;font-weight:800; }
.sorting-item-labels { display:flex;align-items:center;gap:9px;min-width:0; }
.sorting-item-new-tag {
  min-height:22px;
  align-items:center;
  padding:3px 7px;
  border-color:color-mix(in srgb,var(--oms-accent) 48%,var(--oms-line));
  background:color-mix(in srgb,var(--oms-accent) 12%,var(--oms-surface));
  color:var(--oms-accent-strong);
  font-size:.68rem;
  line-height:1;
  letter-spacing:.08em;
}
.sorting-item-is-new { background:color-mix(in srgb,var(--oms-accent) 3%,var(--oms-surface)); }
.sorting-group-hero { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0; }
.sorting-group-hero > div { display:flex;flex-direction:column;gap:5px;padding:18px;border:1px solid var(--oms-line,#d8d8d8);border-radius:14px;background:var(--oms-surface,#fff); }
.sorting-group-hero span { font-size:.75rem;font-weight:800;letter-spacing:.09em;color:var(--oms-text-soft,#5a5a5a); }
.sorting-group-hero strong { font-size:1.3rem; }
.sorting-group-hero > div:first-child strong { font-size:2.4rem; }
.sorting-group-hero small { color:var(--oms-text-soft,#5a5a5a); }
html.oms-refresh button.sorting-buyer-history-link {
  display: inline-block;
  width: fit-content;
  min-height: 0;
  margin: 0;
  padding: 2px 3px;
  border: 0;
  border-bottom: 1px dotted currentColor;
  border-radius: 2px;
  background: transparent;
  color: var(--oms-text);
  box-shadow: none;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}
html.oms-refresh button.sorting-buyer-history-link:is(:hover,.is-open):not(:disabled) {
  border-color: var(--oms-text);
  background: var(--oms-surface-soft);
  color: var(--oms-text);
}
html.oms-refresh button.sorting-buyer-history-link:focus-visible {
  outline: 2px solid var(--oms-accent);
  outline-offset: 3px;
}
.sorting-buyer-retention-note { margin:0 0 18px; }
.sorting-buyer-history-group { align-items:center; }
.sorting-buyer-history-group > .inline { align-items:center; }
.sorting-buyer-history-group > .inline > .tag {
  align-items: center;
  align-self: center;
  min-height: 40px;
  padding: 8px 12px;
  line-height: 1.2;
}
html.oms-refresh button.sorting-history-group-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.sorting-history-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.sorting-item-individual-actions {
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}
.sorting-item-individual-actions button {
  width:auto;
  min-height:40px;
  margin:0;
}
.sorting-group-result {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  cursor: default;
}
.sorting-group-result-identity { display: grid; min-width: 0; gap: 2px; }
.sorting-group-result-username {
  color: var(--oms-text);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.sorting-group-result-name {
  color: var(--oms-text-soft);
  font-size: .9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.sorting-group-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin-top: 5px;
  color: var(--oms-text-faint);
  font-size: .78rem;
  line-height: 1.4;
}
.sorting-group-result-meta span + span {
  padding-left: 14px;
  border-left: 1px solid var(--oms-line-strong);
}
.sorting-group-result-links { margin-top: 2px; }
.sorting-group-result-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.sorting-group-result-actions > button { width: auto; margin: 0; white-space: nowrap; }
.sorting-group-result-status {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  width: auto;
  min-height: 40px;
  padding: 8px 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
.order-label-batch-bar { display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 16px;padding:13px 15px;border:1px solid var(--oms-line,#d8d8d8);border-radius:8px;background:var(--oms-surface,#fff); }
.order-label-batch-bar .check-row { margin:0; }
.order-label-batch-actions { display:flex;align-items:center;gap:12px;white-space:nowrap; }
.order-label-select-control { display:grid;place-items:center;align-self:stretch;padding:0 4px;cursor:pointer; }
.order-label-select-control input { width:18px;height:18px;margin:0; }
.sorting-detail-status { font-size:1rem;padding:9px 13px; }
.sorting-detail-actions { margin:0 0 18px; }
.sorting-stockpile-link-row { align-items:center;cursor:default; }
.sorting-stockpile-link-row > div:first-child { min-width:0; }
.sorting-stockpile-link-row button { margin:0; }
@media (max-width:620px) {
  .sorting-stockpile-link-head,
  .sorting-stockpile-link-row { align-items:stretch;flex-direction:column; }
  .sorting-stockpile-link-head .tag { align-self:flex-start; }
  .sorting-stockpile-link-row > .inline { display:grid;width:100%; }
  .sorting-stockpile-link-row button { width:100%; }
}
.sorting-item-removed { opacity:.55;border-style:dashed; }
.search-row { display:flex;gap:10px;margin:16px 0; }
.search-row input { min-width:0;flex:1 1 auto; }
.search-row button { flex:0 0 auto;width:auto;margin:0; }
@media (max-width:900px) {
  .sorting-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sorting-printer-state,.sorting-bulk-action { align-items:stretch;flex-direction:column; }
  .sorting-printer-state button,.sorting-bulk-action button { width:100%; }
  .sorting-group-hero { grid-template-columns:1fr; }
  .order-label-batch-bar,.order-label-batch-actions { align-items:stretch;flex-direction:column; }
  .order-label-batch-actions { width:100%; }
  .order-label-batch-actions button { width:100%; }
  .sorting-state-band,.sorting-buyer-card .recent-auction-buyer-head { align-items:flex-start;flex-direction:column; }
  .sorting-primary-action,.search-row button { width:100%; }
  .search-row { flex-direction:column; }
}
@media (max-width:620px) {
  .sorting-groups-page-head { align-items:stretch;flex-direction:column; }
  .sorting-groups-head-actions { width:100%;justify-content:space-between; }
  .sorting-group-result { grid-template-columns: 1fr; }
  .sorting-group-result-actions { justify-content: flex-start; }
}
@media (max-width:420px) {
  .sorting-group-result-meta { display: grid; gap: 2px; }
  .sorting-group-result-meta span + span { padding-left: 0; border-left: 0; }
  .sorting-group-result-actions { align-items: stretch; flex-direction: column; }
  .sorting-group-result-actions > :is(.tag,button) { width: 100%; }
}
@media (max-width:520px) {
  .sorting-summary { grid-template-columns:1fr; }
  .sorting-buyer-card .inline { width:100%; }
  .sorting-buyer-card .inline > button { width:100%; }
}

/* v1.3.295 media previews, Social Post source hierarchy, and Order cards */
.oms-refresh .upload-photo > img,
.oms-refresh .ebay-prepared-media-card > img {
  background: var(--oms-surface-soft);
  object-fit: cover;
}

.oms-refresh .upload-video-frame,
.oms-refresh .prepared-video-thumbnail {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--oms-line);
  border-radius: 4px;
  background: #080808;
  color: #fff;
}

.oms-refresh .upload-video-frame video,
.oms-refresh .prepared-video-thumbnail video,
.oms-refresh .prepared-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oms-refresh .upload-video-frame > span,
.oms-refresh .prepared-video-thumbnail > span {
  position: absolute;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(8,8,8,.72);
  color: #fff;
  font-size: 14px;
}

.oms-refresh .upload-video-frame > small {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(8,8,8,.78);
  color: #fff;
  font-size: 10px;
}

.oms-refresh .ebay-prepared-media-card > .prepared-video-thumbnail,
.oms-refresh .ebay-selected-media-grid .prepared-video-thumbnail {
  width: 100%;
  height: auto;
}

.oms-refresh .prepared-media-delete {
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  margin-top: 6px;
}

.oms-refresh .prepared-media-actions .prepared-media-delete {
  justify-self: auto;
  width: auto;
  margin: 0;
}

html.oms-refresh .card {
  border-color: var(--oms-line);
  background: var(--oms-surface);
  color: var(--oms-text);
  box-shadow: var(--oms-shadow-soft);
}

.oms-refresh .support-attention-panel {
  border-color: var(--oms-line);
  background: var(--oms-surface);
}

.oms-refresh button.support-attention-row {
  border: 1px solid var(--oms-line);
  background: var(--oms-surface-raised);
  color: var(--oms-text);
  box-shadow: none;
}

.oms-refresh button.support-attention-row:hover,
.oms-refresh button.support-attention-row:focus-visible {
  border-color: var(--oms-accent);
  background: color-mix(in srgb, var(--oms-accent) 5%, var(--oms-surface-raised));
  color: var(--oms-text);
}

.oms-refresh .support-attention-row small,
.oms-refresh .support-attention-chevron { color: var(--oms-text-soft); }
.oms-refresh .support-attention-count {
  background: color-mix(in srgb, var(--oms-amber) 15%, var(--oms-surface));
  color: var(--oms-text);
}

.oms-refresh .social-media-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.oms-refresh .social-media-heading h2,
.oms-refresh .social-media-heading p {
  margin: 0;
}

.oms-refresh .social-video-preview {
  border-color: var(--oms-line);
  border-radius: 4px;
  background: var(--oms-surface-soft);
}

.oms-refresh .social-video-preview > div small {
  display: block;
  max-width: 620px;
  color: var(--oms-text-soft);
  line-height: 1.5;
}

.oms-refresh .social-video-alternatives {
  margin-top: 12px;
  border: 1px solid var(--oms-line);
  border-radius: 4px;
  background: var(--oms-surface);
}

.oms-refresh .social-video-alternatives > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--oms-text);
  font-weight: 600;
}

.oms-refresh .social-video-alternatives > summary span {
  color: var(--oms-text-faint);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

.oms-refresh .social-video-alternatives > div {
  padding: 12px;
  border-top: 1px solid var(--oms-line);
}

.oms-refresh .order-label-mode-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
}

.oms-refresh .order-label-mode-entry button { width: auto; margin: 0; }
.oms-refresh .order-label-mode-entry span { color: var(--oms-text-faint); font-size: 11px; }

.oms-refresh .order-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--oms-line) !important;
  border-left: 4px solid var(--oms-line-strong) !important;
  border-radius: 8px;
  background: var(--oms-surface) !important;
  box-shadow: none !important;
}

.oms-refresh .order-card.is-label-selected {
  border-color: var(--oms-accent) !important;
  box-shadow: inset 0 0 0 1px var(--oms-accent) !important;
}

.oms-refresh .order-card.store-ebay { border-left-color: var(--oms-blue) !important; }
.oms-refresh .order-card.store-etsy { border-left-color: #ec8c55 !important; }
.oms-refresh .order-card.store-shopify { border-left-color: var(--oms-green) !important; }
.oms-refresh .order-card.store-e-rocks { border-left-color: var(--oms-violet) !important; }
.oms-refresh .order-card.store-other { border-left-color: var(--oms-text-faint) !important; }

.oms-refresh .order-card-main { padding: 16px 18px 0; }
.oms-refresh .order-card-identity { display: flex; min-width: 0; align-items: flex-start; gap: 12px; }
.oms-refresh .order-card-identity > div { min-width: 0; }

.oms-refresh .order-label-select-control {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  align-self: auto;
  padding: 4px 8px;
  border: 1px solid var(--oms-line-strong);
  border-radius: 4px;
  background: var(--oms-surface-soft);
  color: var(--oms-text-soft);
  cursor: pointer;
  font-size: 11px;
  white-space: nowrap;
}

.oms-refresh .order-label-select-control input { width: 18px; height: 18px; margin: 0; }
.oms-refresh .order-card-status-row { margin-top: 12px; }
.oms-refresh .order-card-items { margin-top: 12px; padding-top: 10px; }

.oms-refresh .order-card-workflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 12px -18px 0;
  padding: 11px 18px;
  border-top: 1px solid var(--oms-line);
  background: var(--oms-surface-soft);
}

.oms-refresh .order-card-workflow-label {
  color: var(--oms-text-faint);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.oms-refresh .order-card-workflow-actions,
.oms-refresh .order-card-workflow-actions .order-quick-chips {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.oms-refresh .order-card-workflow-actions button { margin: 0; }
.oms-refresh .order-card-fedex-action { min-height: 34px; }

.oms-refresh .customer-support-workspace button.order-quick-chip.support-priority {
  min-height: 42px;
  padding: 10px 16px;
  border-color: var(--oms-accent) !important;
  background: var(--oms-accent) !important;
  color: var(--oms-accent-ink) !important;
  font-size: 13px;
  font-weight: 600;
}

.oms-refresh .customer-support-workspace button.order-quick-chip.support-priority:hover,
.oms-refresh .customer-support-workspace button.order-quick-chip.support-priority:focus-visible {
  border-color: var(--oms-accent-strong) !important;
  background: var(--oms-accent-strong) !important;
  color: var(--oms-accent-ink) !important;
}

.oms-refresh .order-filter-group,
html.oms-refresh[data-theme="dark"] .order-filter-group,
.oms-refresh .order-status-filter-group,
html.oms-refresh[data-theme="dark"] .order-status-filter-group {
  border-color: var(--oms-line) !important;
  border-radius: 8px;
  background: var(--oms-surface) !important;
  box-shadow: none !important;
}

.oms-refresh .order-filter-tabs button,
html.oms-refresh[data-theme="dark"] .order-filter-tabs button {
  border-color: var(--oms-line-strong) !important;
  background: var(--oms-surface-soft) !important;
  color: var(--oms-text-soft) !important;
}

.oms-refresh .order-filter-tabs button.active,
html.oms-refresh[data-theme="dark"] .order-filter-tabs button.active {
  border-color: var(--oms-text) !important;
  background: var(--oms-primary) !important;
  color: var(--oms-on-primary) !important;
}

.oms-refresh .order-filter-tabs button span,
html.oms-refresh[data-theme="dark"] .order-filter-tabs button span {
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  background: color-mix(in srgb, currentColor 10%, transparent) !important;
  color: inherit !important;
}

html.oms-refresh :is(
  .order-card-more > summary,
  .order-combined-details > summary
) {
  color: var(--oms-accent-strong);
}

html.oms-refresh footer { color: var(--oms-text-soft); }
html.oms-refresh footer a { color: var(--oms-accent-strong); }

html.oms-refresh .order-filter-tabs button .order-filter-button-label {
  color: inherit !important;
  font-size: inherit;
  font-weight: 600;
  opacity: 1 !important;
}

html.oms-refresh[data-theme="light"] .order-filter-tabs button.active {
  border-color: #080808 !important;
  background: #080808 !important;
  color: #fff !important;
}

html.oms-refresh[data-theme="dark"] .order-filter-tabs button.active {
  border-color: #f8f6f2 !important;
  background: #f8f6f2 !important;
  color: #080808 !important;
}

html.oms-refresh[data-theme="light"] :is(
  .tag.order-category.ready-to-process,
  .tag.order-group-status.ready-to-process
) {
  border-color: #74bd82 !important;
  background: #dff7e3 !important;
  color: #0b5d1e !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .tag.order-category.ready-to-process,
  .tag.order-group-status.ready-to-process
) {
  border-color: color-mix(in srgb, var(--oms-green) 45%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-green) 13%, var(--oms-surface)) !important;
  color: #68e77b !important;
}

/* Final contrast guard for Orders and legacy neutral workspace surfaces. */
.oms-refresh .order-destination-country {
  border-color: var(--oms-line-strong);
  background: color-mix(in srgb, var(--oms-text) 11%, var(--oms-surface));
  color: var(--oms-text);
}

.oms-refresh .order-destination-country span { color: var(--oms-accent); }

.oms-refresh :is(
  .order-filter-label,
  .order-card-workflow-label,
  .order-label-mode-entry span
) {
  color: var(--oms-text-soft);
}

/* Role editing must never combine legacy light cards with dark-theme text. */
html.oms-refresh .role-editor-form .role-identity-section,
html.oms-refresh .role-editor-form .role-permission-group,
html.oms-refresh .role-editor-form .role-navigation-section,
html.oms-refresh .role-editor-form .role-save-bar {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface) !important;
  color: var(--oms-text) !important;
  box-shadow: none !important;
}

html.oms-refresh .role-editor-form .role-permission-group > summary {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface-soft) !important;
  color: var(--oms-text) !important;
}

html.oms-refresh .role-editor-form .role-permission-group[open] > summary {
  border-bottom-color: var(--oms-line) !important;
}

html.oms-refresh .role-editor-form .role-permission-group > .permission-grid {
  background: var(--oms-surface) !important;
}

html.oms-refresh .role-editor-form .role-permission-group .permission {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface-raised) !important;
  color: var(--oms-text) !important;
}

html.oms-refresh .role-editor-form .role-permission-group .permission:has(input:checked) {
  border-color: color-mix(in srgb, var(--oms-accent) 58%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-accent) 8%, var(--oms-surface)) !important;
  box-shadow: inset 3px 0 0 var(--oms-accent) !important;
}

html.oms-refresh .role-editor-form .role-permission-group .permission:has(input:disabled) {
  opacity: 1;
}

html.oms-refresh .role-editor-form .role-identity-section > label,
html.oms-refresh .role-editor-form .role-permission-group > summary strong,
html.oms-refresh .role-editor-form .role-permission-group .permission strong {
  color: var(--oms-text) !important;
}

html.oms-refresh .role-editor-form .role-identity-section > .meta,
html.oms-refresh .role-editor-form .role-permission-group > summary small,
html.oms-refresh .role-editor-form .role-permission-group .permission small,
html.oms-refresh .role-editor-form .role-save-bar > span {
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .role-editor-form .role-permission-count {
  border: 1px solid var(--oms-line) !important;
  background: var(--oms-surface-raised) !important;
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .role-editor-form .role-navigation-row,
html.oms-refresh .waybill-attachment-row {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface-raised) !important;
  color: var(--oms-text) !important;
}

html.oms-refresh .role-editor-form .role-navigation-row strong,
html.oms-refresh .waybill-attachment-row strong {
  color: var(--oms-text) !important;
}

html.oms-refresh .role-editor-form .role-navigation-row small,
html.oms-refresh .waybill-attachment-row :is(small,span) {
  color: var(--oms-text-soft) !important;
}

.oms-refresh :is(
  .activity-row,
  .import-row,
  .erocks-source-note,
  .erocks-item-review,
  .ebay-review-settings-group,
  .ebay-unpaid-card-meta > span,
  .ebay-unpaid-item,
  .fedex-debug,
  .fedex-debug .debug-grid > div,
  .photo-download-file,
  .product-stats span,
  .product-gallery-missing,
  .product-variant,
  .social-target,
  .social-video-upload,
  .social-watermark-settings,
  .ticket-image-preview-card,
  .ticket-image-grid a,
  .upload-tag-chip,
  .upload-table th,
  .video-converter-form
) {
  border-color: var(--oms-line);
  background: var(--oms-surface-raised);
  color: var(--oms-text);
  box-shadow: none;
}

.oms-refresh :is(
  .activity-row,
  .import-row,
  .erocks-source-note,
  .erocks-item-review,
  .ebay-review-settings-group,
  .ebay-unpaid-card-meta > span,
  .ebay-unpaid-item,
  .fedex-debug,
  .photo-download-file,
  .product-stats span,
  .product-gallery-missing,
  .product-variant,
  .social-target,
  .social-video-upload,
  .social-watermark-settings,
  .ticket-image-preview-card,
  .ticket-image-grid a,
  .upload-tag-chip,
  .upload-table th,
  .video-converter-form
) :is(small, .meta) {
  color: var(--oms-text-soft);
}

html.oms-refresh[data-theme="dark"] :is(
  .order-store-tag.store-ebay,
  .tag.order-category.shipped,
  .tag.shipment-linked,
  .processing-username-tag,
  .release-version,
  .ebay-upload-import-panel,
  .social-pool-position,
  .social-slot-days span,
  .ticket-assignee-avatar,
  .stockpile-status.active,
  .stockpile-warning.active,
  .listing-check-tags span,
  .product-tags span
) {
  border-color: color-mix(in srgb, var(--oms-blue) 35%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-blue) 13%, var(--oms-surface)) !important;
  color: var(--oms-blue) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .order-store-tag.store-shopify,
  .tag.order-category.ready-to-process,
  .document-upload-card.document-complete,
  .document-summary-row.available,
  .erocks-import-complete,
  .stockpile-status.ready-to-ship,
  .social-product-selected .social-product-choice,
  .social-post-pool-state,
  .shopify-sync-summary,
  .tag-suggestion.added,
  .ticket-assignee-option:has(input:checked),
  .ticket-order-selection
) {
  border-color: color-mix(in srgb, var(--oms-green) 35%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-green) 11%, var(--oms-surface)) !important;
  color: var(--oms-green) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .order-store-tag.store-etsy,
  .shipment-store.store-etsy,
  .product-sync-summary,
  .upload-import-panel
) {
  border-color: color-mix(in srgb, var(--wf-orange) 36%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--wf-orange) 9%, var(--oms-surface)) !important;
  color: var(--oms-text) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .order-store-tag.store-e-rocks,
  .tag.order-group-tag,
  .tag.planned,
  .tag.listing-check-old-site,
  .order-open-ticket-tag,
  .ebay-unpaid-note-preview,
  .social-status.scheduled,
  .social-pool-status,
  .social-pool-event
) {
  border-color: color-mix(in srgb, var(--oms-violet) 35%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-violet) 12%, var(--oms-surface)) !important;
  color: var(--oms-violet) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .order-store-tag.store-other,
  .shipment-store.store-other,
  .document-summary-row.missing,
  .product-status.inactive,
  .social-status.draft,
  .social-status.skipped,
  .stockpile-view-toggle .secondary .view-count,
  .muted-row,
  .stockpile-status.cancelled
) {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface-soft) !important;
  color: var(--oms-text-soft) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .invoice-template-note,
  .erocks-usd-confirm,
  .upload-reconcile,
  .ebay-title-review,
  .ebay-title-review-row,
  .social-posted-warning,
  .shipment-status.waiting,
  .product-status.sold_out,
  .stockpile-warning.soft-limit-reached,
  .tag.listing-check-status.minor_improvements,
  .tag.order-group-status.stockpiling
) {
  border-color: color-mix(in srgb, var(--oms-amber) 36%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-amber) 10%, var(--oms-surface)) !important;
  color: var(--oms-amber) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .tag.order-category.cancelled,
  .dashboard-trend--down,
  .ebay-title-input-invalid,
  .product-status.expired,
  .product-status.deleted,
  .social-status.failed,
  .social-status.uncertain,
  .stockpile-warning.hard-limit-reached,
  .tag.listing-check-status.needs_review,
  .tag.listing-check-status.possible_mismatch
) {
  border-color: color-mix(in srgb, var(--oms-red) 34%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-red) 10%, var(--oms-surface)) !important;
  color: var(--oms-red) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .hold-card.note,
  .hold-card.Note,
  .hold-detail.note,
  .hold-detail.Note
) {
  border-color: color-mix(in srgb, var(--oms-amber) 38%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-amber) 8%, var(--oms-surface)) !important;
  color: var(--oms-text) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .hold-card.hold,
  .hold-card.Hold,
  .hold-detail.hold,
  .hold-detail.Hold
) {
  border-color: color-mix(in srgb, var(--oms-red) 38%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-red) 8%, var(--oms-surface)) !important;
  color: var(--oms-text) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .hold-card.ready-to-ship,
  .hold-card.Ready-to-Ship,
  .hold-detail.ready-to-ship,
  .hold-detail.Ready-to-Ship
) {
  border-color: color-mix(in srgb, var(--oms-green) 38%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-green) 8%, var(--oms-surface)) !important;
  color: var(--oms-text) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .hold-card.archived,
  .hold-card.Archived,
  .hold-detail.archived,
  .hold-detail.Archived
) {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface-soft) !important;
  color: var(--oms-text-soft) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .order-item-image-placeholder,
  .order-item-row img,
  .product-image-placeholder,
  .listing-check-image,
  .ticket-image-preview-card img,
  .ticket-image-grid img,
  .loading-skeleton i,
  .video-converter-progress,
  .application-update-progress
) {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface-soft) !important;
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .loading-state {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface) !important;
  color: var(--oms-text) !important;
  box-shadow: none !important;
}

html.oms-refresh .loading-state > span {
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .loading-skeleton i {
  background: color-mix(in srgb, var(--oms-text) 12%, var(--oms-surface)) !important;
}

html.oms-refresh .loading-skeleton i::after {
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--oms-text) 13%, transparent),
    transparent
  ) !important;
}

html.oms-refresh[data-theme="dark"] .ticket-image-drop.dragging {
  border-color: var(--oms-accent) !important;
  background: color-mix(in srgb, var(--oms-accent) 9%, var(--oms-surface)) !important;
  color: var(--oms-text) !important;
}

@media (max-width:700px) {
  .oms-refresh .social-media-heading,
  .oms-refresh .order-card-heading,
  .oms-refresh .order-card-workflow { align-items: stretch; flex-direction: column; }
  .oms-refresh .order-card-value { width: auto; justify-items: start; text-align: left; }
  .oms-refresh .order-card-workflow-actions,
  .oms-refresh .order-card-workflow-actions .order-quick-chips { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .oms-refresh .order-card-workflow-actions :is(button,.order-quick-chip,.order-packed-toggle) { width: 100%; justify-content: center; }
  .oms-refresh .order-label-select-control { width: fit-content; }
}

.oms-refresh button.account-menu-trigger {
  width: auto;
  margin: 0;
  border-color: var(--oms-line);
  background: transparent;
  color: var(--oms-text);
  box-shadow: none;
  text-align: left;
}

.oms-refresh button.account-menu-trigger:hover { background: var(--oms-surface-soft); }

.oms-refresh button.account-menu-trigger .user-avatar {
  border: 1px solid var(--oms-line);
  background: var(--oms-surface-raised);
  color: var(--oms-text-soft);
}

.account-menu-backdrop {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: transparent;
}

.account-menu-popover {
  position: fixed;
  top: var(--account-menu-top,72px);
  right: var(--account-menu-right,16px);
  width: min(360px,calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--oms-line);
  border-radius: 8px;
  background: var(--oms-surface-raised);
  color: var(--oms-text);
  box-shadow: var(--oms-shadow);
}

.account-menu-popover > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--oms-line);
}

.account-menu-popover > header > div,
.permission-preview-current { display: grid; gap: 3px; }
.account-menu-popover > header span,
.permission-preview-current span { color: var(--oms-text-soft); font-size: 11px; }
.account-menu-popover > header button { width: 32px; min-height: 32px; margin: 0; padding: 0; }
#permissionPreviewMenu { padding: 14px; }
#permissionPreviewMenu label { margin: 0; }
#permissionPreviewMenu select { margin: 6px 0 0; }
#permissionPreviewMenu > button,
.permission-preview-current button { width: 100%; margin: 12px 0 0; }

.permission-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--oms-amber);
  border-radius: 4px;
  background: color-mix(in srgb,var(--oms-amber) 11%,var(--oms-surface));
}

.permission-preview-banner > div { display: grid; gap: 1px; }
.permission-preview-banner span { color: var(--oms-text-soft); font-size: 11px; }
.permission-preview-banner button { width: auto; margin: 0; }

@media (max-width:620px) {
  .account-menu-popover { top: 64px; right: 12px; }
  .permission-preview-banner { align-items: stretch; flex-direction: column; }
  .permission-preview-banner button { width: 100%; }
}

.oms-refresh .qr-scanner-trigger {
  display: inline-flex;
  width: auto;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 8px 11px;
  border-color: var(--oms-line-strong);
  background: var(--oms-surface);
  color: var(--oms-text);
  white-space: nowrap;
}

.oms-refresh .qr-scanner-trigger:hover:not(:disabled) {
  border-color: var(--oms-accent);
  background: color-mix(in srgb,var(--oms-accent) 10%,var(--oms-surface));
  color: var(--oms-accent);
}

.oms-refresh .qr-scanner-trigger .nav-icon { width: 17px; height: 17px; }

.qr-scanner-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.68);
  backdrop-filter: blur(5px);
}

.qr-scanner-dialog {
  width: min(520px,100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--oms-line-strong);
  border-radius: 10px;
  background: var(--oms-surface-raised);
  color: var(--oms-text);
  box-shadow: var(--oms-shadow);
}

.qr-scanner-dialog > header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--oms-line);
  background: var(--oms-surface);
}

.qr-scanner-dialog > header h2 { margin: 2px 0 0; }
.qr-scanner-dialog > header .kicker { margin: 0; }

.oms-refresh .qr-scanner-close {
  width: 38px;
  min-height: 38px;
  flex: 0 0 38px;
  margin: 0;
  padding: 0;
  border-color: var(--oms-line);
  background: var(--oms-surface-soft);
  color: var(--oms-text);
  font-size: 24px;
  line-height: 1;
}

.qr-scanner-camera {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 18px 18px 0;
  border: 1px solid var(--oms-line-strong);
  border-radius: 8px;
  background: #050708;
}

.qr-scanner-video { display: block; width: 100%; height: 100%; object-fit: cover; }

.qr-scanner-frame {
  position: absolute;
  width: min(62%,270px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border: 3px solid #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 999px rgba(0,0,0,.22),0 0 0 1px rgba(0,0,0,.4);
  pointer-events: none;
}

.qr-scanner-camera.barcode-mode .qr-scanner-frame {
  width: min(82%,380px);
  aspect-ratio: 3 / 1;
}

.qr-scanner-dialog [data-qr-scanner-status],
.qr-scanner-dialog > .qr-scanner-device-row,
.qr-scanner-dialog > .qr-scanner-start,
.qr-scanner-dialog > .qr-scanner-manual,
.qr-scanner-dialog > .meta { margin-right: 18px; margin-left: 18px; }
.qr-scanner-dialog [data-qr-scanner-status] .message { margin: 12px 0; }
.qr-scanner-device-row { display: grid; gap: 6px; margin-top: 12px; }
.qr-scanner-device-row[hidden] { display: none; }
.qr-scanner-device-row select { margin: 0; }
.qr-scanner-dialog > .qr-scanner-start { width: calc(100% - 36px); margin-top: 0; }
.qr-scanner-manual { display: grid; gap: 6px; margin-top: 16px; }
.qr-scanner-manual > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.qr-scanner-manual input,
.qr-scanner-manual button { margin: 0; }
.qr-scanner-dialog > .meta { margin-top: 12px; margin-bottom: 18px; }

@media (max-width:760px) {
  .oms-refresh .qr-scanner-trigger { width: 40px; height: 40px; padding: 0; }
  .oms-refresh .qr-scanner-trigger > span { display: none; }
  .qr-scanner-backdrop {
    box-sizing: border-box;
    height: 100dvh;
    align-items: end;
    padding: max(12px, env(safe-area-inset-top)) 0 env(safe-area-inset-bottom);
  }
  .qr-scanner-dialog {
    width: 100%;
    max-height: calc(100dvh - 12px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overscroll-behavior: contain;
    border-radius: 12px 12px 0 0;
  }
  .qr-scanner-camera { aspect-ratio: 1; }
  .qr-scanner-dialog :is(input, select, textarea) { font-size: 16px; }
}

@media (max-width:480px) {
  .qr-scanner-manual > div { grid-template-columns: 1fr; }
  .qr-scanner-manual button { width: 100%; }
}

/* v1.3.316 audited cross-theme contrast and control targets */
html.oms-refresh .ticket-list-row,
html.oms-refresh .ticket-list-row.is-unread {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface) !important;
  color: var(--oms-text) !important;
}

html.oms-refresh .ticket-list-row:hover {
  border-color: var(--oms-line-strong) !important;
  background: var(--oms-surface-soft) !important;
}

html.oms-refresh .ticket-list-row.is-unread {
  border-left-color: var(--oms-violet) !important;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--oms-violet) 8%, var(--oms-surface)),
    var(--oms-surface) 24%
  ) !important;
}

html.oms-refresh .ticket-row-heading > strong,
html.oms-refresh .ticket-row-people strong,
html.oms-refresh .ticket-row-update time {
  color: var(--oms-text) !important;
}

html.oms-refresh .ticket-row-preview,
html.oms-refresh .ticket-row-people small,
html.oms-refresh .ticket-row-update small {
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .ticket-row-update > strong {
  color: var(--oms-accent-strong) !important;
}

html.oms-refresh .listing-check-tabs button.active {
  border-color: var(--oms-primary) !important;
  background: var(--oms-primary) !important;
  color: var(--oms-on-primary) !important;
}

html.oms-refresh :is(
  .listing-check-stats .stat span,
  .listing-check-footer .meta,
  .dashboard-order-queue-main small,
  .dashboard-order-queue-row time,
  .notification-compact-copy,
  .notification-item .meta,
  .settings-page .meta,
  .settings-page small
) {
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .upload-row-mode-option,
html.oms-refresh .upload-row-mode-option:hover {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface) !important;
  color: var(--oms-text) !important;
}

html.oms-refresh .upload-row-mode-option:hover {
  border-color: var(--oms-line-strong) !important;
}

html.oms-refresh .upload-row-mode-option:has(input:checked) {
  border-color: var(--oms-accent) !important;
  background: color-mix(in srgb, var(--oms-accent) 8%, var(--oms-surface)) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--oms-accent) 14%, transparent) !important;
}

html.oms-refresh .upload-row-mode-option strong {
  color: var(--oms-text) !important;
}

html.oms-refresh .upload-row-mode-option small {
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .order-packed-toggle {
  border-color: var(--oms-line-strong) !important;
  background: var(--oms-surface-soft) !important;
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .order-packed-toggle.is-packed {
  border-color: var(--oms-green) !important;
  background: color-mix(in srgb, var(--oms-green) 10%, var(--oms-surface)) !important;
  color: var(--oms-green) !important;
}

html.oms-refresh .photo-download-status.ready {
  color: var(--oms-green) !important;
}

html.oms-refresh .photo-download-status.not-ready {
  color: var(--oms-red) !important;
}

html.oms-refresh .photo-download-date-tabs button.active {
  border-color: var(--oms-accent) !important;
  background: var(--oms-accent) !important;
  color: var(--oms-accent-ink) !important;
}

html.oms-refresh .photo-download-date-tabs button.active :is(strong, span) {
  color: inherit !important;
}

html.oms-refresh :is(
  .stockpile-view-toggle .view-count,
  .shipment-status-tabs button b
) {
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent) !important;
  background: color-mix(in srgb, currentColor 10%, transparent) !important;
  color: inherit !important;
}

html.oms-refresh .shipment-history-reference > strong {
  color: var(--oms-accent-strong) !important;
}

html.oms-refresh .order-sort-control > span {
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .warning {
  border-color: color-mix(in srgb, var(--oms-amber) 48%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-amber) 9%, var(--oms-surface)) !important;
  color: #8a5200 !important;
}

html.oms-refresh[data-theme="dark"] .warning {
  color: var(--oms-amber) !important;
}

html.oms-refresh .small.danger {
  border-color: #c8102e !important;
  background: #c8102e !important;
  color: #fff !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .shipment-store.store-shopify,
  .shipment-status.complete,
  .social-status.published
) {
  border-color: color-mix(in srgb, var(--oms-green) 40%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-green) 11%, var(--oms-surface)) !important;
  color: var(--oms-green) !important;
}

html.oms-refresh[data-theme="dark"] :is(
  .tag.store,
  .shipment-store.store-ebay
) {
  border-color: color-mix(in srgb, var(--oms-blue) 40%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-blue) 12%, var(--oms-surface)) !important;
  color: var(--oms-blue) !important;
}

html.oms-refresh .declared-value-icon,
html.oms-refresh button.statistics-items-sold {
  min-width: 32px;
  min-height: 32px;
}

html.oms-refresh .ebay-unpaid-stockpile-tag {
  min-height: 32px;
}

/* v1.3.317 final computed-style audit repair */
html.oms-refresh[data-theme="light"] {
  --oms-text-faint: #5f6f82;
  --oms-blue: #006acc;
  --oms-green: #087461;
  --oms-amber: #8a5200;
  --oms-red: #b42318;
}

html.oms-refresh .meta {
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .dashboard-store-health-row small,
html.oms-refresh .statistics-panel th {
  color: var(--oms-text-soft) !important;
}

html.oms-refresh .ticket-status-tabs {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface) !important;
}

html.oms-refresh .ticket-status-tabs button,
html.oms-refresh .shipment-status-tabs button {
  border-color: var(--oms-line) !important;
  background: var(--oms-surface-soft) !important;
  color: var(--oms-text-soft) !important;
  box-shadow: none !important;
}

html.oms-refresh .ticket-status-tabs button:hover,
html.oms-refresh .shipment-status-tabs button:hover {
  border-color: var(--oms-line-strong) !important;
  background: var(--oms-surface-raised) !important;
  color: var(--oms-text) !important;
}

html.oms-refresh .ticket-status-tabs button.active,
html.oms-refresh .shipment-status-tabs button.active,
html.oms-refresh .stockpile-view-toggle button:not(.secondary) {
  border-color: var(--oms-primary) !important;
  background: var(--oms-primary) !important;
  color: var(--oms-on-primary) !important;
}

html.oms-refresh :is(
  .ticket-status-tabs button strong,
  .shipment-status-tabs button b,
  .stockpile-view-toggle .view-count
) {
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent) !important;
  background: color-mix(in srgb, currentColor 10%, transparent) !important;
  color: inherit !important;
}

html.oms-refresh[data-theme="light"] .shipment-status-tabs button.shipment-attention-tab:not(.active) {
  color: #8a5200 !important;
}

html.oms-refresh[data-theme="dark"] .shipment-status-tabs button.shipment-attention-tab:not(.active) {
  color: var(--oms-amber) !important;
}

html.oms-refresh .order-destination-country > span {
  color: var(--oms-accent-strong) !important;
}

html.oms-refresh .tag.warning {
  border-color: color-mix(in srgb, var(--oms-amber) 48%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-amber) 9%, var(--oms-surface)) !important;
  color: var(--oms-amber) !important;
}

html.oms-refresh[data-theme="light"] :is(.message.notice, .notice) {
  border-color: color-mix(in srgb, var(--oms-amber) 42%, var(--oms-line)) !important;
  background: color-mix(in srgb, var(--oms-amber) 8%, var(--oms-surface)) !important;
  color: #6b4600 !important;
}

html.oms-refresh[data-theme="light"] :is(.message.notice, .notice) :is(strong, span, p, small) {
  color: inherit !important;
}

html.oms-refresh[data-theme="light"] .danger-outline {
  border-color: var(--oms-red) !important;
  background: transparent !important;
  color: var(--oms-red) !important;
}

/* v1.3.321 e-Rocks screenshot review and durable customer history */
html.oms-refresh .erocks-screenshot-intro form {
  display: grid;
  gap: 14px;
  max-width: 820px;
}

html.oms-refresh .erocks-screenshot-review-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.8fr);
  gap: 18px;
  align-items: start;
}

html.oms-refresh .erocks-screenshot-source {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 100px);
  overflow: auto;
}

html.oms-refresh .erocks-screenshot-source figure {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
}

html.oms-refresh .erocks-screenshot-source img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-bg-deep);
}

html.oms-refresh .erocks-screenshot-source figcaption {
  color: var(--oms-text-soft);
  font-size: 12px;
}

html.oms-refresh .erocks-screenshot-items-head {
  margin-top: 24px;
}

html.oms-refresh .erocks-screenshot-item {
  display: grid;
  grid-template-columns: 34px minmax(120px, .65fr) minmax(220px, 2fr) 90px 120px auto;
  gap: 10px;
  align-items: end;
  padding: 13px 0;
  border-top: 1px solid var(--oms-line);
}

html.oms-refresh .erocks-screenshot-item-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  border: 1px solid var(--oms-line-strong);
  border-radius: 999px;
  color: var(--oms-text-soft);
  font-weight: 600;
}

html.oms-refresh .erocks-screenshot-item label,
html.oms-refresh .erocks-screenshot-fields label {
  color: var(--oms-text-soft);
}

html.oms-refresh .erocks-import-queue-card,
html.oms-refresh .customer-profile-card,
html.oms-refresh .customer-history-order {
  border-color: var(--oms-line);
  background: var(--oms-surface);
}

html.oms-refresh .erocks-unpaid-order {
  display: grid;
  gap: 16px;
  border-inline-start: 4px solid var(--oms-orange);
  background: var(--oms-surface);
}

html.oms-refresh .erocks-unpaid-order-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

html.oms-refresh .erocks-unpaid-order-items > div {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface-soft);
}

html.oms-refresh .erocks-unpaid-order-items small,
html.oms-refresh .erocks-unpaid-order-items span {
  color: var(--oms-text-soft);
}

html.oms-refresh .erocks-unpaid-order-footer {
  padding-top: 12px;
  border-top: 1px solid var(--oms-line);
}

html.oms-refresh .tag.order-category.unpaid {
  border-color: color-mix(in srgb, var(--oms-orange) 52%, var(--oms-line));
  background: color-mix(in srgb, var(--oms-orange) 14%, var(--oms-surface));
  color: var(--oms-text);
}

html.oms-refresh .erocks-related-order {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: var(--oms-text);
}

html.oms-refresh .customer-profile-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

html.oms-refresh .customer-profile-card > div {
  display: grid;
  gap: 4px;
}

html.oms-refresh .customer-history-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

html.oms-refresh .customer-history-items > div {
  display: grid;
  gap: 3px;
  padding: 11px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface-soft);
}

html.oms-refresh .customer-history-items span,
html.oms-refresh .customer-history-items small {
  color: var(--oms-text-soft);
}

html.oms-refresh .order-address-book {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--oms-line-strong);
  border-radius: var(--oms-radius-md);
  background: var(--oms-surface-soft);
}

html.oms-refresh .order-address-book-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 14px 0;
}

html.oms-refresh .order-address-book-search > button {
  margin: 0;
}

html.oms-refresh .customer-address-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

html.oms-refresh .customer-address-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface);
  color: var(--oms-text);
}

html.oms-refresh .customer-address-card.preferred {
  border-color: color-mix(in srgb, var(--oms-accent) 60%, var(--oms-line));
}

html.oms-refresh .customer-address-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

html.oms-refresh .customer-address-card-head > div,
html.oms-refresh .customer-address-lines,
html.oms-refresh .customer-address-history {
  display: grid;
  gap: 3px;
  min-width: 0;
}

html.oms-refresh .customer-address-card-head .inline {
  align-items: center;
}

html.oms-refresh .customer-address-lines,
html.oms-refresh .customer-address-history span {
  color: var(--oms-text-soft);
  font-size: 12px;
}

html.oms-refresh .customer-address-history {
  padding-top: 9px;
  border-top: 1px solid var(--oms-line);
}

html.oms-refresh .customer-address-history strong {
  color: var(--oms-text);
  font-size: 12px;
}

html.oms-refresh .customer-address-add {
  margin-top: 14px;
  background: var(--oms-surface-soft);
}

html.oms-refresh .customer-address-add > summary {
  color: var(--oms-text);
  font-weight: 750;
  cursor: pointer;
}

html.oms-refresh .customer-address-add-actions {
  align-items: center;
  margin-top: 14px;
}

@media (max-width: 1050px) {
  html.oms-refresh .erocks-screenshot-review-layout {
    grid-template-columns: 1fr;
  }
  html.oms-refresh .erocks-screenshot-source {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    max-height: 440px;
  }
  html.oms-refresh .erocks-screenshot-source h2,
  html.oms-refresh .erocks-screenshot-source > button,
  html.oms-refresh .erocks-screenshot-source > .empty {
    grid-column: 1 / -1;
  }
  html.oms-refresh .erocks-screenshot-item {
    grid-template-columns: 34px minmax(120px, 1fr) 90px 120px auto;
  }
  html.oms-refresh .erocks-screenshot-item-title {
    grid-column: 2 / -1;
  }
}

@media (max-width: 700px) {
  html.oms-refresh .erocks-unpaid-order-footer .inline,
  html.oms-refresh .erocks-unpaid-order-footer .inline > button {
    width: 100%;
  }
  html.oms-refresh .erocks-screenshot-review-head {
    align-items: stretch;
    flex-direction: column;
  }
  html.oms-refresh .erocks-screenshot-review-head > .inline {
    justify-content: flex-start;
  }
  html.oms-refresh .erocks-screenshot-source {
    grid-template-columns: 1fr;
  }
  html.oms-refresh .erocks-screenshot-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  html.oms-refresh .erocks-screenshot-item > *:not(.erocks-screenshot-item-number) {
    grid-column: 2;
  }
  html.oms-refresh .customer-profile-card,
  html.oms-refresh .erocks-related-order {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  html.oms-refresh .order-address-book-search,
  html.oms-refresh .customer-address-results {
    grid-template-columns: 1fr;
  }
  html.oms-refresh .customer-address-card-head {
    flex-direction: column;
  }
  html.oms-refresh .customer-address-card-head > button {
    width: 100%;
  }
}

/* e-Rocks auction-set label printing */
html.oms-refresh .erocks-auction-label-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin: 16px 0;
}

html.oms-refresh .erocks-auction-label-form > label {
  margin: 0;
}

html.oms-refresh .erocks-auction-label-form > button {
  width: auto;
  margin: 0;
}

html.oms-refresh .erocks-auction-label-form > .meta {
  grid-column: 1 / -1;
  margin: 0;
}

html.oms-refresh .erocks-auction-label-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

html.oms-refresh .erocks-auction-label-summary > div {
  display: grid;
  gap: 3px;
  padding: 13px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface);
}

html.oms-refresh .erocks-auction-label-summary span,
html.oms-refresh .erocks-auction-label-summary small {
  color: var(--oms-text-soft);
}

html.oms-refresh .erocks-auction-label-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--oms-line-strong);
  border-radius: var(--oms-radius-md);
  background: var(--oms-surface-soft);
}

html.oms-refresh .erocks-auction-label-actions > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

html.oms-refresh .erocks-auction-label-actions button {
  width: auto;
  margin: 0;
}

html.oms-refresh .erocks-auction-label-list {
  display: grid;
  gap: 8px;
}

html.oms-refresh .erocks-auction-label-order {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface);
  color: var(--oms-text);
  cursor: pointer;
}

html.oms-refresh .erocks-auction-label-order.is-selected {
  border-color: color-mix(in srgb, var(--oms-accent) 68%, var(--oms-line));
  background: color-mix(in srgb, var(--oms-accent) 6%, var(--oms-surface));
}

html.oms-refresh .erocks-auction-label-order > input {
  width: 18px;
  height: 18px;
  margin: 0;
}

html.oms-refresh .erocks-auction-label-order-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

html.oms-refresh .erocks-auction-label-order-copy strong,
html.oms-refresh .erocks-auction-label-order-copy small {
  overflow-wrap: anywhere;
}

html.oms-refresh .erocks-auction-label-order-copy small {
  color: var(--oms-text-soft);
}

/* Custom 38 x 20 mm event and show labels */
html.oms-refresh .custom-label-page-head > .tag {
  align-self: flex-start;
}

html.oms-refresh .custom-label-template-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

html.oms-refresh .custom-label-template-panel h2,
html.oms-refresh .custom-label-template-panel p {
  margin: 0;
}

html.oms-refresh .custom-label-template-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}

html.oms-refresh .custom-label-template-controls > label {
  display: grid;
  flex: 1 1 280px;
  gap: 5px;
  margin: 0;
}

html.oms-refresh .custom-label-template-controls > label > span {
  color: var(--oms-text-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

html.oms-refresh .custom-label-template-controls select {
  min-width: 0;
  margin: 0;
}

html.oms-refresh .custom-label-template-controls button {
  width: auto;
  margin: 0;
}

html.oms-refresh .modal-input-suggestion {
  width: 100%;
  margin: 8px 0 0;
}

html.oms-refresh .custom-label-form {
  display: grid;
  gap: 14px;
}

html.oms-refresh .custom-label-intro {
  display: block;
}

html.oms-refresh .custom-label-intro p {
  margin: 0;
}

html.oms-refresh .custom-label-intro > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--oms-text);
  cursor: pointer;
  list-style: none;
}

html.oms-refresh .custom-label-intro > summary::-webkit-details-marker {
  display: none;
}

html.oms-refresh .custom-label-intro > summary > span {
  display: grid;
  gap: 3px;
}

html.oms-refresh .custom-label-intro > summary strong {
  font-size: 14px;
  font-weight: 600;
}

html.oms-refresh .custom-label-intro > summary small {
  color: var(--oms-text-soft);
  font-size: 11px;
}

html.oms-refresh .custom-label-intro > summary::after {
  content: '+';
  font-size: 20px;
  line-height: 1;
}

html.oms-refresh .custom-label-intro[open] > summary::after {
  content: '−';
}

html.oms-refresh .custom-label-intro-body {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--oms-line);
}

html.oms-refresh .custom-label-toolbar,
html.oms-refresh .custom-label-paste > div,
html.oms-refresh .custom-label-row header > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

html.oms-refresh .custom-label-toolbar button,
html.oms-refresh .custom-label-paste button,
html.oms-refresh .custom-label-row header button {
  width: auto;
  margin: 0;
}

html.oms-refresh .custom-label-add-count {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--oms-text-soft);
  font-size: 11px;
  font-weight: 600;
}

html.oms-refresh .custom-label-add-count input {
  width: 74px;
  min-height: 36px;
  margin: 0;
  padding: 6px 8px;
}

html.oms-refresh .custom-label-paste {
  border-top: 1px solid var(--oms-line);
  padding-top: 12px;
}

html.oms-refresh .custom-label-paste summary {
  color: var(--oms-text);
  font-weight: 600;
  cursor: pointer;
}

html.oms-refresh .custom-label-paste > label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

html.oms-refresh .custom-label-paste textarea {
  min-height: 118px;
  resize: vertical;
}

html.oms-refresh .custom-label-paste > div {
  margin-top: 8px;
}

html.oms-refresh .custom-label-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  align-items: start;
  gap: 14px;
}

html.oms-refresh .custom-label-rows {
  display: grid;
  gap: 9px;
  min-width: 0;
}

html.oms-refresh .custom-label-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-md);
  background: var(--oms-surface);
}

html.oms-refresh .custom-label-row.is-preview {
  border-color: color-mix(in srgb, var(--oms-accent) 70%, var(--oms-line));
  box-shadow: inset 3px 0 0 var(--oms-accent);
}

html.oms-refresh .custom-label-row header {
  display: flex;
  align-items: center;
  gap: 8px;
}

html.oms-refresh .custom-label-row header > span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  border-radius: 999px;
  background: var(--oms-surface-soft);
  color: var(--oms-text-soft);
  font-size: 11px;
}

html.oms-refresh .custom-label-row header > div {
  justify-content: flex-end;
  margin-left: 0;
}

html.oms-refresh .custom-label-row header button {
  min-width: 34px;
  padding: 7px 9px;
}

html.oms-refresh .custom-label-copy-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 auto;
  color: var(--oms-text-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

html.oms-refresh .custom-label-copy-control input {
  width: 68px;
  min-height: 36px;
  margin: 0;
  padding: 6px 8px;
}

html.oms-refresh .custom-label-margin-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 8px;
}

html.oms-refresh .custom-label-format-disclosure {
  justify-self: start;
  margin: 0;
}

html.oms-refresh .custom-label-row.is-format-open .custom-label-margin-grid {
  display: grid;
}

html.oms-refresh .custom-label-margin-grid label,
html.oms-refresh .custom-label-line-editor > label,
html.oms-refresh .custom-label-format-controls label {
  display: grid;
  gap: 5px;
  margin: 0;
}

html.oms-refresh .custom-label-margin-grid label > span,
html.oms-refresh .custom-label-line-editor > label > span,
html.oms-refresh .custom-label-format-controls label > span {
  color: var(--oms-text-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

html.oms-refresh .custom-label-margin-grid select,
html.oms-refresh .custom-label-margin-grid input,
html.oms-refresh .custom-label-line-editor input,
html.oms-refresh .custom-label-format-controls select {
  min-width: 0;
  margin: 0;
}

html.oms-refresh .custom-label-line-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

html.oms-refresh .custom-label-line-editor {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--oms-line);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface-soft);
}

html.oms-refresh .custom-label-format-controls {
  display: none;
  align-items: end;
  flex-wrap: wrap;
  gap: 6px;
}

html.oms-refresh .custom-label-row.is-format-open .custom-label-format-controls {
  display: flex;
}

html.oms-refresh .custom-label-format-controls label {
  flex: 1 1 82px;
}

html.oms-refresh .custom-label-format-toggle {
  min-width: 34px;
  width: 34px;
  height: 36px;
  margin: 0;
  padding: 5px;
  font-weight: 600;
}

html.oms-refresh .custom-label-format-toggle[data-action="custom-label-format-underline"] {
  text-decoration: underline;
  text-underline-offset: 2px;
}

html.oms-refresh .custom-label-format-toggle.is-active {
  border-color: var(--oms-accent);
  background: color-mix(in srgb, var(--oms-accent) 12%, var(--oms-surface));
  color: var(--oms-accent-strong);
}

html.oms-refresh .custom-label-print-panel {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 14px;
}

html.oms-refresh .custom-label-preview {
  position: relative;
  width: min(100%, 304px);
  aspect-ratio: 38 / 20;
  margin: 9px auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #bcc3ca;
  border-radius: 4px;
  background: #fff;
  color: #111;
  box-shadow: 0 8px 20px rgb(0 0 0 / 10%);
}

html.oms-refresh .custom-label-preview-proof {
  display: block;
  width: 100%;
  height: 100%;
  color: #0c0d0e;
  overflow: visible;
}

html.oms-refresh .custom-label-preview-proof text {
  dominant-baseline: text-before-edge;
  fill: currentColor;
  font-weight: 600;
  white-space: pre;
}

html.oms-refresh .custom-label-preview-proof .custom-label-preview-logo {
  color: #050606;
  pointer-events: none;
}

html.oms-refresh .custom-label-preview-proof .custom-label-preview-logo text {
  dominant-baseline: auto;
}

html.oms-refresh .custom-label-preview-proof .font-sans,
html.oms-refresh .custom-label-preview-proof .font-wide {
  font-family: "Arial Narrow", "Roboto Condensed", "Liberation Sans Narrow", Arial, sans-serif;
}

html.oms-refresh .custom-label-preview-proof .font-compact {
  font-family: "Bahnschrift Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

html.oms-refresh .custom-label-preview-proof .font-classic {
  font-family: "Courier New", Courier, monospace;
}

html.oms-refresh .custom-label-preview-proof rect {
  fill: currentColor;
  shape-rendering: crispEdges;
}

html.oms-refresh .custom-label-preview.is-empty {
  color: #7b8289;
}

html.oms-refresh .custom-label-preview.is-empty .custom-label-preview-proof {
  color: #7b8289;
}

html.oms-refresh .custom-label-preview.is-empty .custom-label-preview-logo {
  opacity: .45;
}

html.oms-refresh .custom-label-print-summary {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-block: 1px solid var(--oms-line);
}

html.oms-refresh .custom-label-print-summary span,
html.oms-refresh .custom-label-media-confirm small {
  color: var(--oms-text-soft);
  font-size: 11px;
}

html.oms-refresh .custom-label-media-confirm {
  align-items: flex-start;
  margin: 0;
  padding: 11px;
  border: 1px solid var(--oms-line-strong);
  border-radius: var(--oms-radius-sm);
  background: var(--oms-surface-soft);
}

html.oms-refresh .custom-label-media-confirm > span {
  display: grid;
  gap: 3px;
}

html.oms-refresh .custom-label-media-confirm input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

html.oms-refresh .custom-label-print-panel > button {
  width: 100%;
  margin: 0;
}

@media (max-width: 760px) {
  html.oms-refresh .custom-label-page-head,
  html.oms-refresh .erocks-auction-label-head {
    align-items: stretch;
    flex-direction: column;
  }
  html.oms-refresh .erocks-auction-label-form,
  html.oms-refresh .erocks-auction-label-summary {
    grid-template-columns: 1fr;
  }
  html.oms-refresh .erocks-auction-label-form > .meta {
    grid-column: 1;
  }
  html.oms-refresh .erocks-auction-label-form > button,
  html.oms-refresh .erocks-auction-label-head > button {
    width: 100%;
  }
  html.oms-refresh .erocks-auction-label-actions {
    align-items: stretch;
    flex-direction: column;
  }
  html.oms-refresh .erocks-auction-label-actions > div {
    align-items: stretch;
    flex-direction: column;
  }
  html.oms-refresh .erocks-auction-label-actions button {
    width: 100%;
  }
  html.oms-refresh .custom-label-layout,
  html.oms-refresh .custom-label-line-grid,
  html.oms-refresh .custom-label-margin-grid {
    grid-template-columns: 1fr;
  }
  html.oms-refresh .custom-label-print-panel {
    position: static;
    grid-row: 1;
  }
  html.oms-refresh .custom-label-toolbar,
  html.oms-refresh .custom-label-paste > div,
  html.oms-refresh .custom-label-template-controls {
    align-items: stretch;
    flex-direction: column;
  }
  html.oms-refresh .custom-label-toolbar button,
  html.oms-refresh .custom-label-paste button,
  html.oms-refresh .custom-label-template-controls button {
    width: 100%;
  }
  html.oms-refresh .custom-label-add-count {
    justify-content: space-between;
  }
  html.oms-refresh .custom-label-row header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  html.oms-refresh .custom-label-row header > div {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}

/* v1.3.343 order actions, label selection, and top-bar control alignment */
html.oms-refresh a.erocks-order-external.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--oms-violet) 42%, var(--oms-line));
  border-radius: 4px;
  background: color-mix(in srgb, var(--oms-violet) 9%, var(--oms-surface));
  color: color-mix(in srgb, var(--oms-violet) 78%, var(--oms-text));
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

html.oms-refresh a.erocks-order-external.tag:hover,
html.oms-refresh a.erocks-order-external.tag:focus-visible {
  border-color: var(--oms-violet);
  background: color-mix(in srgb, var(--oms-violet) 15%, var(--oms-surface));
  color: var(--oms-text);
  text-decoration: none;
}

html.oms-refresh .order-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

html.oms-refresh .order-header-actions > :is(button,.button-link) {
  display: inline-flex;
  width: auto;
  height: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 13px;
  line-height: 1.15;
  white-space: nowrap;
}

html.oms-refresh .order-label-batch-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

html.oms-refresh .order-label-batch-bar > .check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

html.oms-refresh .order-label-batch-bar > .check-row > input {
  width: 18px;
  height: 18px;
  margin: 0;
}

html.oms-refresh .order-label-batch-bar > .check-row > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

html.oms-refresh .order-label-batch-bar > .check-row strong,
html.oms-refresh .order-label-batch-bar > .check-row small {
  display: block;
  line-height: 1.35;
}

html.oms-refresh .order-label-batch-bar > .check-row small {
  color: var(--oms-text-soft);
}

html.oms-refresh .order-label-batch-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

html.oms-refresh .order-label-batch-actions > :is(button,strong) {
  margin: 0;
}

html.oms-refresh .order-label-batch-actions > button {
  width: auto;
  height: 40px;
  min-height: 40px;
}

html.oms-refresh .order-card-identity-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

html.oms-refresh .order-label-select-control {
  display: inline-flex;
  width: fit-content;
  min-height: 0;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--oms-text-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

html.oms-refresh .order-label-select-control:hover {
  color: var(--oms-text);
}

html.oms-refresh .order-label-select-control input {
  width: 18px;
  height: 18px;
  margin: 0;
}

html.oms-refresh .oms-topbar .oms-top-actions > :is(button,a) {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  margin: 0;
  border-radius: 4px;
}

html.oms-refresh .oms-top-actions > :is(.qr-scanner-trigger,.specmn-shortcut,.whats-new-trigger) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

html.oms-refresh .oms-top-actions .nav-icon {
  display: block !important;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

@media (max-width: 760px) {
  html.oms-refresh .order-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  html.oms-refresh .order-header-actions > :is(button,.button-link) {
    width: 100%;
    white-space: normal;
  }
  html.oms-refresh .order-label-batch-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  html.oms-refresh .order-label-batch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  html.oms-refresh .order-label-batch-actions > strong {
    grid-column: 1 / -1;
  }
  html.oms-refresh .order-label-batch-actions > button {
    width: 100%;
  }
  html.oms-refresh .order-label-batch-actions > button:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  html.oms-refresh .oms-top-actions > :is(.qr-scanner-trigger,.specmn-shortcut,.whats-new-trigger,.theme-toggle) {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }
  html.oms-refresh .oms-top-actions > :is(.qr-scanner-trigger,.specmn-shortcut,.whats-new-trigger) > span:not(.whats-new-trigger-dot) {
    display: none;
  }
}
