:root {
  --navy: #111a2c;
  --navy-2: #18243a;
  --ink: #172033;
  --muted: #697386;
  --line: #e3e8ef;
  --soft: #f5f7fa;
  --white: #ffffff;
  --blue: #3563e9;
  --blue-soft: #eef3ff;
  --green: #178f63;
  --green-soft: #eaf8f2;
  --orange: #c96b18;
  --orange-soft: #fff4e8;
  --purple: #7357d9;
  --purple-soft: #f2efff;
  --red: #c43d4f;
  --red-soft: #fff0f2;
  --shadow: 0 10px 30px rgba(18, 31, 53, .06);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--soft); color: var(--ink); }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.mfa-qr-frame { display: grid; place-items: center; width: 260px; min-height: 260px; margin: 18px auto; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.mfa-qr-frame img { display: block; width: 240px; height: 240px; image-rendering: pixelated; }

.app-shell { display: grid; grid-template-columns: 286px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 16px; background: linear-gradient(180deg,#10192a 0%,#15223a 100%); color: #d6ddea; z-index: 42; box-shadow: 12px 0 38px rgba(17,26,44,.08); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 25px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: white; background: linear-gradient(145deg, #4f74f0, #6d55d9); box-shadow: 0 8px 20px rgba(73, 95, 227, .32); }
.brand strong, .brand span { display: block; }
.brand strong { color: #fff; font-size: 16px; letter-spacing: -.02em; }
.brand span { margin-top: 2px; color: #8591a6; font-size: 11px; }
.nav { display: grid; gap: 5px; }
.nav.secondary { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.07); }
.nav-item { width: 100%; min-height: 43px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 0 12px; color: #aab4c5; background: transparent; border: 0; border-radius: 9px; text-align: left; font-size: 13.5px; font-weight: 600; transition: .16s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: #25334d; box-shadow: inset 3px 0 0 #6f8cff; }
.nav-icon { width: 24px; text-align: center; font-size: 18px; line-height: 1; }
.nav-count { min-width: 22px; padding: 2px 6px; border-radius: 999px; color: #cdd7ff; background: rgba(88, 115, 229, .23); text-align: center; font-size: 11px; }
.sidebar-spacer { flex: 1; }
.sidebar-foot { display: flex; align-items: center; gap: 10px; margin: 18px 6px 0; padding: 13px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.025); }
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { color: #dce5f3; font-size: 11px; }
.sidebar-foot span { margin-top: 2px; color: #79879b; font-size: 10px; }
.safety-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: #38c58b; box-shadow: 0 0 0 4px rgba(56,197,139,.12); }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 78px; display: flex; align-items: center; gap: 20px; padding: 14px 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.page-heading { flex: 1; min-width: 0; }
.page-heading h1 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.035em; }
.page-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.connection-pill, .env-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.connection-pill { border: 1px solid #dce3ec; background: #fff; }
.connection-pill span { width: 7px; height: 7px; border-radius: 50%; background: #a0a9b7; }
.connection-pill.ok span { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.connection-pill.bad span { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.env-pill { color: #4c596d; background: #eff2f6; text-transform: capitalize; font-weight: 700; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 20px; }

.page { display: none; padding: 28px 30px 42px; }
.page.active { display: block; }
.notice { margin: 18px 30px 0; padding: 12px 15px; border: 1px solid #cfe2ff; border-radius: 10px; color: #214f9b; background: #f0f6ff; font-size: 13px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 0 15px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: 12px; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 5px 12px rgba(53,99,233,.18); }
.button.primary:hover { background: #2f58d3; }
.button.secondary { color: #3e4a5d; border-color: #d7dee8; background: #fff; }
.button.danger { color: var(--red); border-color: #f0cdd3; background: #fff; }
.button.ghost { box-shadow: none; }
.button.compact { min-height: 34px; padding: 0 12px; }
.button.full { width: 100%; }
.text-button { padding: 5px; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 700; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 9px; color: #6c7788; background: #f0f3f7; font-size: 23px; line-height: 1; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi-card { min-height: 132px; display: flex; align-items: flex-start; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.kpi-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; font-size: 19px; font-weight: 800; }
.accent-purple .kpi-icon { color: var(--purple); background: var(--purple-soft); }
.accent-green .kpi-icon { color: var(--green); background: var(--green-soft); }
.accent-blue .kpi-icon { color: var(--blue); background: var(--blue-soft); }
.accent-orange .kpi-icon { color: var(--orange); background: var(--orange-soft); }
.kpi-card span, .kpi-card strong, .kpi-card small { display: block; }
.kpi-card span { margin-top: 1px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi-card strong { margin-top: 9px; font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.kpi-card small { margin-top: 10px; color: #8490a0; font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; margin-top: 18px; }
.dashboard-grid.lower-grid { grid-template-columns: 1fr 1fr; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel.span-2 { grid-column: span 2; }
.panel-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid #edf0f4; }
.panel-head h2 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.sync-panel { padding-bottom: 18px; }
.sync-panel .panel-head { border-bottom: 0; }
.sync-panel > .button { width: calc(100% - 36px); margin: 15px 18px 0; }
.health-stack { padding: 0 18px; }
.health-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 12px 0; border-top: 1px solid #eef1f4; }
.health-row:first-child { border-top: 0; }
.health-row strong, .health-row small { display: block; }
.health-row strong { font-size: 12px; }
.health-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.health-row > span:last-child { color: #8993a2; font-size: 10px; }
.health-icon { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 12px; }
.health-icon.ok { color: var(--green); background: var(--green-soft); }
.health-icon.bad { color: var(--red); background: var(--red-soft); }
.attention-list { padding: 9px 20px 17px; }
.attention-list button { width: 100%; display: flex; justify-content: space-between; padding: 13px 0; border: 0; border-bottom: 1px solid #eef1f4; background: transparent; color: #354052; font-size: 12px; }
.attention-list button:last-child { border-bottom: 0; }
.attention-list strong { min-width: 30px; padding: 2px 8px; border-radius: 999px; color: var(--orange); background: var(--orange-soft); text-align: center; }
.store-overview { display: grid; gap: 10px; padding: 16px 20px 20px; }
.store-overview-row { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; }
.channel-logo { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #3166b6; background: #eef4ff; font-weight: 800; font-size: 12px; }
.store-overview-row strong, .store-overview-row small { display: block; }
.store-overview-row strong { font-size: 12px; }
.store-overview-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.store-overview-row > span { color: var(--green); font-size: 11px; font-weight: 700; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.toolbar-group { display: flex; align-items: center; gap: 9px; }
.toolbar-group.grow { flex: 1; }
.search-field { min-width: 260px; max-width: 430px; flex: 1; display: flex; align-items: center; gap: 8px; height: 39px; padding: 0 12px; border: 1px solid #d7dee8; border-radius: 9px; background: #fff; }
.search-field span { color: #8b96a6; font-size: 18px; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 12px; }
select, input, textarea { border: 1px solid #d7dee8; border-radius: 8px; color: var(--ink); background: #fff; outline: 0; }
select { height: 39px; padding: 0 32px 0 11px; font-size: 12px; }
input:focus, select:focus, textarea:focus, .search-field:focus-within { border-color: #85a1f4; box-shadow: 0 0 0 3px rgba(53,99,233,.09); }

.mini-kpis, .variation-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 15px; }
.mini-kpis > div, .variation-summary > div { padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.mini-kpis span, .mini-kpis strong, .variation-summary span, .variation-summary strong { display: block; }
.mini-kpis span, .variation-summary span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.mini-kpis strong, .variation-summary strong { margin-top: 5px; font-size: 18px; }
.variation-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.table-panel { min-height: 270px; overflow: hidden; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th { height: 42px; padding: 0 15px; border-bottom: 1px solid var(--line); color: #768194; background: #fafbfc; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .045em; white-space: nowrap; }
td { padding: 13px 15px; border-bottom: 1px solid #edf0f4; vertical-align: middle; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcff; }
.compact-table table { min-width: 650px; }
.compact-table td { padding-top: 11px; padding-bottom: 11px; }
.cell-main { max-width: 340px; }
.cell-main strong, .cell-main small { display: block; }
.cell-main strong { color: #253047; font-size: 12px; line-height: 1.35; }
.cell-main small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.truncate { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; }
.muted { color: var(--muted); }
.number-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-action { padding: 5px 8px; border: 1px solid #dce2ea; border-radius: 7px; color: #4c5b70; background: #fff; font-size: 10px; font-weight: 700; }
.row-action:hover { border-color: #9db0e9; color: var(--blue); }
.status-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; color: #566174; background: #eef1f5; font-size: 10px; font-weight: 800; white-space: nowrap; text-transform: capitalize; }
.status-badge.ready_to_dispatch, .status-badge.operational, .status-badge.active, .status-badge.linked, .status-badge.completed { color: var(--green); background: var(--green-soft); }
.status-badge.awaiting_payment, .status-badge.missing, .status-badge.completed_with_errors { color: var(--orange); background: var(--orange-soft); }
.status-badge.cancelled, .status-badge.failed, .status-badge.unlinked, .status-badge.credentials_error { color: var(--red); background: var(--red-soft); }
.status-badge.dispatched { color: var(--blue); background: var(--blue-soft); }
.option-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.option-chip { padding: 3px 6px; border-radius: 5px; color: #586377; background: #f0f3f7; font-size: 9px; white-space: nowrap; }
.empty-state { padding: 60px 24px; text-align: center; color: var(--muted); }
.empty-state > div { font-size: 34px; color: #a8b1bf; }
.empty-state h3 { margin: 12px 0 5px; color: #394458; font-size: 15px; }
.empty-state p { margin: 0; font-size: 11px; }

.section-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-intro h2 { margin: 0; font-size: 18px; }
.section-intro p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.read-only-banner { padding: 7px 11px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 800; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.store-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.store-card-head { display: flex; align-items: center; gap: 12px; }
.store-card h3 { margin: 0; font-size: 14px; }
.store-card p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.store-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.store-metrics div { padding: 10px; border-radius: 8px; background: var(--soft); }
.store-metrics span, .store-metrics strong { display: block; }
.store-metrics span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.store-metrics strong { margin-top: 4px; font-size: 16px; }

.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.system-grid .panel { padding-bottom: 18px; }
.detail-list { display: grid; grid-template-columns: 1fr auto; row-gap: 11px; column-gap: 16px; margin: 0; padding: 18px 20px; font-size: 11px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; max-width: 330px; color: #354052; text-align: right; word-break: break-word; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px; }
.safe-call-list { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px 20px 8px; }
.safe-call-list span { padding: 5px 8px; border: 1px solid #cbe9dc; border-radius: 6px; color: var(--green); background: var(--green-soft); font-family: ui-monospace, monospace; font-size: 10px; }
.system-grid .muted { margin: 8px 20px; font-size: 11px; line-height: 1.5; }
.storage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 20px 0; }
.storage-item { padding: 12px; border-radius: 9px; background: var(--soft); }
.storage-item span, .storage-item strong { display: block; }
.storage-item span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .04em; }
.storage-item strong { margin-top: 6px; font-size: 11px; word-break: break-word; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(14, 23, 38, .36); backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; z-index: 60; width: min(540px, 96vw); height: 100vh; display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 45px rgba(16,28,48,.16); animation: slide-in .18s ease-out; }
.drawer.wide { width: min(880px, 98vw); }
@keyframes slide-in { from { transform: translateX(20px); opacity: .65; } to { transform: translateX(0); opacity: 1; } }
.drawer-head { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 2px 0 0; font-size: 18px; }
.eyebrow { color: var(--blue); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.drawer-body { flex: 1; overflow: auto; padding: 22px; }
.order-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 20px; }
.order-summary-grid > div { padding: 12px; border-radius: 9px; background: var(--soft); }
.order-summary-grid span, .order-summary-grid strong { display: block; }
.order-summary-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.order-summary-grid strong { margin-top: 5px; font-size: 12px; }
.drawer-section { margin-top: 22px; }
.drawer-section h3 { margin: 0 0 10px; font-size: 13px; }
.address-card { padding: 14px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; line-height: 1.6; }
.order-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; }
.order-line strong, .order-line small { display: block; }
.order-line strong { font-size: 12px; }
.order-line small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.order-line-price { text-align: right; font-size: 11px; }
.match-note { display: inline-flex; margin-top: 6px; padding: 3px 6px; border-radius: 5px; color: var(--green); background: var(--green-soft); font-size: 9px; font-weight: 700; }
.match-note.unmatched { color: var(--orange); background: var(--orange-soft); }

.family-form { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.family-form label, .variant-grid label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; font-weight: 700; }
.family-form input, .variant-grid input { width: 100%; height: 38px; padding: 0 10px; font-size: 11px; text-transform: none; font-weight: 400; }
.family-form .options-field { grid-column: 1 / -1; }
.family-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.variant-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 10px; }
.variant-section-head h3 { margin: 0; font-size: 13px; }
.variant-card { margin-bottom: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 10px; }
.variant-card-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.variant-card-head strong, .variant-card-head small { display: block; }
.variant-card-head strong { font-size: 12px; }
.variant-card-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; gap: 8px; align-items: end; }
.assign-product { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; border-radius: 9px; background: var(--soft); }
.assign-product select { width: 100%; }

.modal { width: min(620px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 14px; color: var(--ink); box-shadow: 0 30px 70px rgba(18,31,53,.25); }
.modal::backdrop { background: rgba(14,23,38,.42); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 2px 0 0; font-size: 17px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 20px; }
.form-grid label { display: grid; gap: 6px; color: #566174; font-size: 10px; font-weight: 700; }
.form-grid label.span-2 { grid-column: span 2; }
.form-grid input, .form-grid textarea { width: 100%; padding: 10px 11px; font-size: 12px; resize: vertical; }
.form-grid small { color: var(--muted); font-weight: 400; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 20px; border-top: 1px solid var(--line); background: #fafbfc; }

.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 8px; }
.toast { min-width: 280px; max-width: 420px; padding: 12px 14px; border: 1px solid #dce3ec; border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(18,31,53,.16); font-size: 12px; animation: toast-in .16s ease-out; }
.toast.success { border-left: 4px solid var(--green); }
.toast.error { border-left: 4px solid var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 12px; top: 12px; bottom: 12px; height: auto; transform: translateX(calc(-100% - 24px)); width: min(360px,calc(100vw - 24px)); border-radius: 20px; transition: transform .22s ease; box-shadow: 24px 0 60px rgba(10,20,34,.32); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: block; }
  .topbar { padding-left: 18px; padding-right: 18px; }
  .page { padding-left: 18px; padding-right: 18px; }
  .notice { margin-left: 18px; margin-right: 18px; }
  .dashboard-grid, .dashboard-grid.lower-grid, .system-grid { grid-template-columns: 1fr; }
  .panel.span-2 { grid-column: span 1; }
  .store-grid { grid-template-columns: 1fr; }
  .storage-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .top-actions .connection-pill, .top-actions .env-pill { display: none; }
  .topbar { gap: 10px; }
  .page-heading p { display: none; }
  .page { padding-top: 18px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-group { align-items: stretch; flex-direction: column; }
  .search-field { min-width: 0; max-width: none; }
  .toolbar select { width: 100%; }
  .mini-kpis, .variation-summary { grid-template-columns: 1fr 1fr; }
  .family-form, .variant-grid { grid-template-columns: 1fr; }
  .family-form .options-field { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.span-2 { grid-column: auto; }
  .order-summary-grid { grid-template-columns: 1fr 1fr; }
}

.privacy-body { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; background: linear-gradient(145deg, #eef3fb, #f8fafc 55%, #eef1ff); }
.privacy-shell { width: min(760px, 100%); }
.privacy-card { padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(17,26,44,.12); }
.privacy-brand { padding: 0 0 28px; }
.privacy-brand strong { color: var(--ink); }
.privacy-brand span { color: var(--muted); }
.privacy-card h1 { margin: 8px 0 18px; font-size: 30px; letter-spacing: -.04em; }
.privacy-card h2 { margin: 25px 0 7px; font-size: 15px; }
.privacy-card p { color: #5f6b7d; font-size: 13px; line-height: 1.7; }
.privacy-card .button { margin-top: 14px; }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 15%, #e9efff, transparent 34%), linear-gradient(145deg, #f3f6fb, #eef2f8); }
.login-shell { width: min(430px, 100%); }
.login-card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(17,26,44,.14); }
.login-brand { padding: 0 0 30px; }
.login-brand strong { color: var(--ink); }
.login-brand span { color: var(--muted); }
.login-card h1 { margin: 8px 0 9px; font-size: 27px; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-card form { display: grid; gap: 16px; }
.login-card label { display: grid; gap: 7px; color: #4f5b6e; font-size: 11px; font-weight: 700; }
.login-card input { width: 100%; height: 44px; padding: 0 12px; font-size: 14px; }
.login-error { margin-top: 14px; padding: 10px 12px; border-radius: 8px; color: var(--red); background: var(--red-soft); font-size: 11px; }
.login-help { display: block; margin-top: 20px; color: #8691a2; font-size: 10px; line-height: 1.6; }
.login-help code { padding: 1px 4px; border-radius: 4px; background: #f0f2f6; }

/* v8 unified catalogue, packing and tracking */
.catalogue-summary,.variation-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.catalogue-summary>div,.variation-summary>div{background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}.catalogue-summary span{color:var(--muted);font-size:12px}.catalogue-summary strong{font-size:20px}.catalogue-table .family-row td{background:#f5f3ff;border-top:1px solid #ded7ff;border-bottom:1px solid #ded7ff;padding:12px 16px}.family-row td>div{display:flex;justify-content:space-between;align-items:center;gap:12px}.family-row td>div>div:first-child,.family-row td>div:first-child{display:flex;align-items:center;gap:10px}.family-row span{color:var(--muted);font-size:12px}.family-row.standalone td{background:#f6f8fb;border-color:var(--border)}.product-row td{vertical-align:middle}.expand-button{border:0;background:transparent;font-size:17px;cursor:pointer;color:#6750a4;margin-right:4px}.cell-main.inline{display:inline-flex;vertical-align:middle}.offer-detail-row td{background:#fafbfe!important;padding:0!important}.offer-dropdown{padding:14px 20px 18px 54px}.offer-dropdown h4{margin:0 0 10px}.offer-line{display:grid;grid-template-columns:minmax(240px,2fr) minmax(160px,1.3fr) minmax(120px,1fr) minmax(130px,1fr);gap:14px;align-items:center;padding:11px 0;border-top:1px solid var(--border)}.offer-line small{display:block;color:var(--muted);margin-top:3px}.option-chips{display:flex;flex-wrap:wrap;gap:5px}.option-chip{display:inline-flex;padding:4px 7px;border-radius:999px;background:#f0edfa;color:#55418a;font-size:11px;white-space:nowrap}.family-edit{display:grid;gap:12px;margin-bottom:24px}.family-edit label{display:grid;gap:6px}.variant-card{border:1px solid var(--border);border-radius:12px;padding:14px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:10px 0}.variant-card small{display:block;color:var(--muted);margin:4px 0 8px}.pack-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px}.pack-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:var(--shadow-sm)}.pack-card-top{display:flex;justify-content:space-between;gap:14px}.pack-card h3{margin:5px 0 3px}.pack-card p{margin:0;color:var(--muted)}.pack-progress{height:7px;background:#edf0f4;border-radius:99px;overflow:hidden;margin:16px 0}.pack-progress span{display:block;height:100%;background:#6d55b6;border-radius:99px}.pack-card-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pack-card-metrics div{background:#f7f8fb;border-radius:10px;padding:9px}.pack-card-metrics span{display:block;font-size:10px;text-transform:uppercase;color:var(--muted);margin-bottom:3px}.pack-card-metrics strong{font-size:12px;overflow-wrap:anywhere}.pack-preview{display:grid;gap:5px;margin:14px 0;color:#465066;font-size:12px}.pack-actions{display:flex;justify-content:flex-end;gap:8px}.order-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.order-summary-grid>div{background:#f7f8fb;border-radius:10px;padding:10px}.order-summary-grid span{display:block;font-size:10px;text-transform:uppercase;color:var(--muted);margin-bottom:4px}.order-operation-actions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.drawer-section{border-top:1px solid var(--border);padding-top:18px;margin-top:18px}.drawer-section h3{margin:0 0 12px}.address-card{border:1px solid var(--border);border-radius:12px;padding:14px;line-height:1.55;background:#fbfcfe}.pick-line{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;border:1px solid var(--border);border-radius:12px;padding:12px;margin:8px 0;cursor:pointer}.pick-line input{width:19px;height:19px}.pick-line small{display:block;color:var(--muted);margin:4px 0}.wide-input{width:100%;resize:vertical}.parcel-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;align-items:end}.parcel-grid label{display:grid;gap:5px;font-size:11px;color:var(--muted)}.shipping-quotes{display:grid;gap:8px;margin-top:12px}.quote-card{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--border);border-radius:11px;padding:12px}.quote-card small{display:block;color:var(--muted);margin-top:4px}.shipment-card{border:1px solid var(--border);border-radius:13px;padding:13px;margin:10px 0;display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:start}.shipment-card>div:first-child span{display:block;margin-top:4px}.shipment-card small{display:block;color:var(--muted);margin-top:5px}.shipment-actions{display:flex;gap:6px}.tracking-form{display:grid;grid-template-columns:1fr 1.4fr auto;gap:8px;margin-top:12px}.tracking-timeline{grid-column:1/-1;border-top:1px solid var(--border);padding-top:10px}.tracking-timeline>div{display:grid;grid-template-columns:12px 1fr;gap:8px;margin:8px 0}.tracking-timeline>div>span{width:8px;height:8px;border-radius:50%;background:#6d55b6;margin-top:4px}.tracking-timeline small{display:block}.stores-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.store-card{background:#fff;border:1px solid var(--border);border-radius:15px;padding:18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px}.store-logo{width:44px;height:44px;border-radius:12px;background:#e7e3f8;color:#5b4695;display:grid;place-items:center;font-weight:800}.store-card h3{margin:0 0 5px}.store-card p{margin:0;color:var(--muted)}.status-badge.not_added,.status-badge.missing,.status-badge.unstarted,.status-badge.label_created,.status-badge.unknown{background:#eef1f5;color:#536070}.status-badge.picking,.status-badge.in_transit,.status-badge.collected{background:#e7f1ff;color:#235fa2}.status-badge.packed,.status-badge.out_for_delivery{background:#fff3da;color:#875c00}.status-badge.shipped,.status-badge.delivered{background:#dff7e8;color:#1f6b3b}.status-badge.exception,.status-badge.failed{background:#ffe2e2;color:#9a2323}
@media(max-width:1050px){.offer-line{grid-template-columns:1fr 1fr}.parcel-grid{grid-template-columns:repeat(3,1fr)}.order-summary-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.catalogue-summary{grid-template-columns:repeat(2,1fr)}.pack-board{grid-template-columns:1fr}.offer-line{grid-template-columns:1fr}.offer-dropdown{padding-left:16px}.parcel-grid{grid-template-columns:repeat(2,1fr)}.shipment-card{grid-template-columns:1fr}.tracking-form{grid-template-columns:1fr}.order-summary-grid{grid-template-columns:1fr 1fr}}
:root { --border: var(--line); --shadow-sm: var(--shadow); }

/* simple dispatch workspace and PDF controls */
.button.success{color:#fff;background:var(--green);box-shadow:0 5px 12px rgba(23,143,99,.18)}
.button.success:hover{background:#117a54}
.dispatch-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.dispatch-stage{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;min-height:82px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-align:left;box-shadow:var(--shadow);transition:.16s ease}
.dispatch-stage:hover{transform:translateY(-1px);border-color:#cad4e3}
.dispatch-stage.active{border-color:#8ea8f6;box-shadow:0 0 0 3px rgba(53,99,233,.08),var(--shadow)}
.dispatch-stage-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#eef3ff;color:var(--blue);font-weight:800}
.dispatch-stage:nth-child(2) .dispatch-stage-icon{background:var(--orange-soft);color:var(--orange)}
.dispatch-stage:nth-child(3) .dispatch-stage-icon{background:var(--green-soft);color:var(--green)}
.dispatch-stage strong,.dispatch-stage small{display:block}.dispatch-stage strong{font-size:13px}.dispatch-stage small{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.35}.dispatch-stage b{min-width:34px;padding:6px 9px;border-radius:999px;background:#f0f3f7;text-align:center;font-size:13px}
.dispatch-toolbar{margin-bottom:12px}.dispatch-layout{display:grid;grid-template-columns:minmax(0,2.3fr) minmax(250px,.7fr);gap:16px;align-items:start}.dispatch-queue-panel{overflow:hidden}.queue-total{padding:5px 9px;border-radius:999px;background:#f0f3f7;color:#586477;font-size:11px;font-weight:800}.dispatch-queue{display:grid}.dispatch-order{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(150px,1fr) minmax(230px,1.45fr) minmax(115px,.7fr) minmax(130px,.8fr) auto;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid #edf0f4;background:#fff}.dispatch-order:last-child{border-bottom:0}.dispatch-order:hover{background:#fbfcff}.dispatch-order-id{display:flex;align-items:center;gap:9px}.channel-dot{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#eef4ff;color:#3166b6;font-size:10px;font-weight:800}.dispatch-order small{display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.35}.dispatch-customer strong,.dispatch-items strong{display:block;font-size:12px}.dispatch-items small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dispatch-progress>div{height:6px;overflow:hidden;border-radius:99px;background:#edf0f4}.dispatch-progress>div span{display:block;height:100%;border-radius:99px;background:var(--blue)}.dispatch-delivery{display:grid;justify-items:start;gap:2px}.dispatch-actions{display:flex;justify-content:flex-end;gap:7px;white-space:nowrap}.dispatch-guide{padding-bottom:18px}.dispatch-guide ol{list-style:none;margin:0;padding:5px 18px 12px}.dispatch-guide li{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start;padding:12px 0;border-bottom:1px solid #edf0f4}.dispatch-guide li:last-child{border-bottom:0}.dispatch-guide li>span{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#eef3ff;color:var(--blue);font-size:11px;font-weight:800}.dispatch-guide li strong,.dispatch-guide li small{display:block}.dispatch-guide li strong{font-size:12px}.dispatch-guide li small{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.45}.dispatch-guide-note{margin:0 18px;padding:12px;border-radius:10px;background:#f7f8fb}.dispatch-guide-note strong,.dispatch-guide-note span{display:block}.dispatch-guide-note strong{font-size:11px}.dispatch-guide-note span{margin-top:4px;color:var(--muted);font-size:10px}
.order-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin-bottom:16px;padding:13px 12px;border:1px solid var(--line);border-radius:12px;background:#fbfcfe}.order-flow>div{position:relative;display:grid;justify-items:center;gap:6px;color:#8b95a5;font-size:10px}.order-flow>div:not(:last-child)::after{content:"";position:absolute;left:61%;right:-39%;top:13px;height:2px;background:#dfe4eb}.order-flow span{position:relative;z-index:1;width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#e9edf2;color:#6f7a8b;font-size:10px;font-weight:800}.order-flow .active span{background:var(--blue);color:#fff}.order-flow .active strong{color:var(--blue)}.order-flow .done span{background:var(--green);color:#fff}.order-flow .done strong{color:var(--green)}.order-flow .done:not(:last-child)::after{background:#8bd1b5}.pdf-download{align-self:center}.status-badge.ready_to_post{background:var(--orange-soft);color:#875c00}
@media(max-width:1250px){.dispatch-layout{grid-template-columns:1fr}.dispatch-guide{display:none}.dispatch-order{grid-template-columns:minmax(120px,.8fr) minmax(130px,1fr) minmax(200px,1.4fr) minmax(100px,.7fr) auto}.dispatch-delivery{display:none}}
@media(max-width:850px){.dispatch-stages{grid-template-columns:1fr}.dispatch-order{grid-template-columns:1fr auto;gap:10px}.dispatch-order-id,.dispatch-customer,.dispatch-items,.dispatch-progress,.dispatch-delivery{grid-column:1}.dispatch-actions{grid-column:2;grid-row:1/6;flex-direction:column}.dispatch-items small{white-space:normal}.order-operation-actions .button,.order-operation-actions .text-button{flex:1 1 150px}}
@media(max-width:560px){.dispatch-order{display:block}.dispatch-order>*{margin-bottom:10px}.dispatch-actions{display:grid;grid-template-columns:1fr 1fr;margin-bottom:0}.order-flow{padding-left:4px;padding-right:4px}.order-flow>div:not(:last-child)::after{left:65%;right:-35%}}

/* v10 analytics, barcode scan and collapsible parent products */
.analytics-panel{margin-top:18px;overflow:hidden}.analytics-head{min-height:74px}.range-select{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px;font-weight:700}.range-select select{min-width:150px}.analytics-layout{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(210px,.7fr);gap:18px;padding:18px 20px 20px}.sales-chart-wrap{position:relative;min-height:270px;border:1px solid #edf0f4;border-radius:13px;background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);overflow:hidden}.sales-chart{display:block;width:100%;height:270px}.sales-chart .grid-line{stroke:#e8ecf2;stroke-width:1}.sales-chart .axis-label{fill:#7b8696;font-size:10px;font-family:Arial,sans-serif}.sales-chart .sales-area{fill:rgba(53,99,233,.11)}.sales-chart .sales-line{fill:none;stroke:var(--blue);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.sales-chart .sales-point{fill:#fff;stroke:var(--blue);stroke-width:2}.sales-chart .order-bar{fill:rgba(23,143,99,.22)}.chart-empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:12px;background:#fff}.analytics-metrics{display:grid;grid-template-columns:1fr;gap:9px}.analytics-metrics>div{padding:13px 14px;border:1px solid var(--line);border-radius:11px;background:#fff}.analytics-metrics span,.analytics-metrics strong,.analytics-metrics small{display:block}.analytics-metrics span{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.analytics-metrics strong{margin-top:5px;font-size:20px;letter-spacing:-.03em}.analytics-metrics small{margin-top:4px;color:var(--muted);font-size:10px}.analytics-metrics small.positive{color:var(--green)}.analytics-metrics small.negative{color:#b23a3a}.scan-field{min-width:285px;display:grid;grid-template-columns:auto minmax(130px,1fr) auto;align-items:center;gap:8px;height:41px;padding-left:11px;border:1px solid #b9c8f2;border-radius:10px;background:#f8faff;box-shadow:0 0 0 3px rgba(53,99,233,.05)}.scan-field:focus-within{border-color:#6384e8;box-shadow:0 0 0 3px rgba(53,99,233,.12)}.scan-field input{min-width:0;border:0;outline:0;background:transparent;font-size:12px;color:var(--ink)}.scan-field .button{border-radius:8px;margin-right:3px}.scan-icon{color:var(--blue);font-size:17px}.family-toggle{display:inline-grid;place-items:center;width:27px;height:27px;border:1px solid #d9d3ef;border-radius:8px;background:#fff;color:#604b96;cursor:pointer;font-size:14px}.family-toggle:hover{background:#f6f3ff}.family-row .family-main{display:flex;align-items:center;gap:10px}.family-row .family-actions{display:flex;align-items:center;gap:7px}.family-variant-row.family-hidden,.offer-detail-row.family-hidden{display:none}
@media(max-width:1050px){.analytics-layout{grid-template-columns:1fr}.analytics-metrics{grid-template-columns:repeat(4,1fr)}.scan-field{min-width:240px}}
@media(max-width:760px){.analytics-metrics{grid-template-columns:repeat(2,1fr)}.analytics-layout{padding:12px}.analytics-head{align-items:flex-start;flex-direction:column}.range-select{width:100%;justify-content:space-between}.range-select select{flex:1}.dispatch-toolbar .toolbar-group{align-items:stretch}.scan-field{min-width:0;width:100%}}
@media(max-width:480px){.analytics-metrics{grid-template-columns:1fr}.sales-chart-wrap,.sales-chart{height:230px;min-height:230px}}

/* v11 multi-carrier shipping and Parcel2Go rate shopping */
.section-title{margin:0;font-size:18px;letter-spacing:-.02em}.section-subtitle{margin:4px 0 0;color:var(--muted);font-size:11px}.provider-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin-bottom:18px}.provider-card{padding:18px}.provider-card-head{display:grid;grid-template-columns:44px 1fr auto;align-items:center;gap:12px;margin-bottom:15px}.provider-card-head h2,.provider-card-head p{margin:0}.provider-card-head h2{font-size:16px}.provider-card-head p{margin-top:3px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.provider-logo{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#244fbb,#5c7ee5);color:#fff;font-size:13px;font-weight:900;letter-spacing:.04em;box-shadow:0 7px 16px rgba(53,99,233,.18)}.provider-capabilities{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:15px}.provider-capabilities span,.future-carriers span{padding:6px 9px;border:1px solid #dce4f7;border-radius:999px;background:#f7f9ff;color:#52637d;font-size:9px;font-weight:800}.detail-list.compact{grid-template-columns:minmax(80px,.7fr) minmax(120px,1.3fr);margin:0 0 16px}.shipping-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shipping-info-list{padding:4px 18px 18px}.shipping-info-list>div{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start;padding:12px 0;border-bottom:1px solid #edf0f4}.shipping-info-list>div:last-child{border-bottom:0}.shipping-info-list>div>span{width:27px;height:27px;display:grid;place-items:center;border-radius:8px;background:#eef3ff;color:var(--blue);font-size:11px;font-weight:900}.shipping-info-list p,.shipping-info-list strong,.shipping-info-list small{display:block;margin:0}.shipping-info-list strong{font-size:12px}.shipping-info-list small{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.45}.future-carriers{display:flex;flex-wrap:wrap;gap:8px;padding:8px 18px 14px}.future-carriers span{background:#f8f8fb;border-color:#e2e4ea;color:#687385}.panel-note{margin:0 18px 18px;padding:12px 13px;border-radius:10px;background:#f7f8fb;color:var(--muted);font-size:10px;line-height:1.5}.quote-controls{display:flex;align-items:center;gap:8px;margin-bottom:10px}.quote-controls select{min-width:150px}.quote-controls>span{margin-left:auto;color:var(--muted);font-size:10px;font-weight:800}.quote-list{display:grid;gap:8px}.quote-card.selectable{display:grid;grid-template-columns:auto minmax(170px,1.2fr) minmax(100px,.8fr) minmax(90px,.45fr);align-items:center;gap:12px;padding:12px 13px;border:1px solid #dfe4ec;border-radius:11px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}.quote-card.selectable:hover{border-color:#9fb3ee;box-shadow:0 5px 16px rgba(35,55,90,.08);transform:translateY(-1px)}.quote-card.selectable:has(input:checked){border-color:#6687e9;box-shadow:0 0 0 3px rgba(53,99,233,.1)}.quote-card input[type=radio]{width:17px;height:17px;accent-color:var(--blue)}.quote-courier strong,.quote-courier span,.quote-courier small,.quote-price strong,.quote-price small{display:block}.quote-courier strong{font-size:12px}.quote-courier span{margin-top:2px;font-size:11px}.quote-courier small{margin-top:4px;color:var(--muted);font-size:9px}.quote-extras{display:flex;flex-wrap:wrap;gap:5px}.quote-extras span{padding:4px 6px;border-radius:6px;background:#f1f4f8;color:#657084;font-size:8px;font-weight:700}.quote-price{text-align:right}.quote-price strong{font-size:16px}.quote-price small{margin-top:3px;color:var(--muted);font-size:9px}.book-bar{position:sticky;bottom:-1px;display:flex;align-items:end;justify-content:flex-end;gap:10px;margin-top:12px;padding:12px;border:1px solid #dfe4ec;border-radius:11px;background:rgba(255,255,255,.96);box-shadow:0 -5px 20px rgba(30,45,75,.06);backdrop-filter:blur(8px)}.book-bar label{display:grid;gap:5px;color:var(--muted);font-size:9px;font-weight:800}.book-bar select{min-width:190px}.shipment-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.status-badge.booking_created,.status-badge.label_created{background:#edf3ff;color:#315aa8}.status-badge.awaiting_checkout,.status-badge.payment_pending,.status-badge.unpaid{background:var(--orange-soft);color:#875c00}.status-badge.paid{background:var(--green-soft);color:var(--green)}
@media(max-width:900px){.shipping-info-grid{grid-template-columns:1fr}.quote-card.selectable{grid-template-columns:auto 1fr auto}.quote-extras{grid-column:2/4}.provider-grid{grid-template-columns:1fr}}
@media(max-width:600px){.provider-card-head{grid-template-columns:42px 1fr}.provider-card-head .status-badge{grid-column:1/3;justify-self:start}.quote-controls{align-items:stretch;flex-direction:column}.quote-controls select{width:100%}.quote-controls>span{margin-left:0}.quote-card.selectable{grid-template-columns:auto 1fr}.quote-price{grid-column:2;text-align:left}.quote-extras{grid-column:2}.book-bar{align-items:stretch;flex-direction:column}.book-bar label,.book-bar select,.book-bar button{width:100%}}


/* larger operations navigation panel */
.sidebar-top{display:flex;align-items:center;justify-content:space-between}.sidebar-top .brand{padding-bottom:16px}.sidebar-close{display:none;width:38px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:11px;color:#fff;background:rgba(255,255,255,.06);font-size:24px;line-height:1}.sidebar-summary{margin:0 4px 18px;padding:15px 16px;border:1px solid rgba(143,164,211,.14);border-radius:14px;background:linear-gradient(145deg,rgba(75,100,180,.20),rgba(103,78,170,.12))}.sidebar-summary span,.sidebar-summary strong,.sidebar-summary small{display:block}.sidebar-summary span{color:#8fa0bd;font-size:10px;text-transform:uppercase;letter-spacing:.09em}.sidebar-summary strong{margin-top:5px;color:#fff;font-size:15px}.sidebar-summary small{margin-top:4px;color:#9eabc0;font-size:11px}.nav{gap:4px}.nav-heading{display:block;padding:14px 12px 7px;color:#718099;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.nav-item{min-height:56px;grid-template-columns:32px 1fr auto;padding:7px 12px;border-radius:12px}.nav-icon{width:28px;font-size:19px}.nav-copy strong,.nav-copy small{display:block}.nav-copy strong{font-size:13px;color:inherit}.nav-copy small{margin-top:3px;color:#75849b;font-size:10px;font-weight:500}.nav-item:hover .nav-copy small,.nav-item.active .nav-copy small{color:#aebbd0}.nav-item.active{background:linear-gradient(90deg,#273958,#22314b);box-shadow:inset 3px 0 0 #7692ff,0 8px 18px rgba(0,0,0,.10)}.nav-item.nav-featured:not(.active){background:rgba(74,102,190,.10);border:1px solid rgba(114,143,236,.10)}.sidebar-foot{padding:14px 13px;border-radius:13px}.sidebar-overlay{display:none;position:fixed;inset:0;z-index:40;border:0;background:rgba(9,16,28,.55);backdrop-filter:blur(3px)}

/* transparent quote diagnostics */
.quote-problem{display:grid;grid-template-columns:42px 1fr;gap:14px;padding:17px;border:1px solid #f0c9c9;border-radius:14px;background:#fff8f8}.quote-problem-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;color:#a52d38;background:#ffe1e4;font-weight:900;font-size:19px}.quote-problem h4{margin:0;font-size:14px}.quote-problem p{margin:5px 0 13px;color:#697386;font-size:12px}.quote-route{display:grid;grid-template-columns:1fr auto 1fr 1.45fr;gap:10px;align-items:center}.quote-route>div{padding:10px 12px;border:1px solid #e7eaf0;border-radius:10px;background:#fff}.quote-route span,.quote-route strong,.quote-route small{display:block}.quote-route span{color:#7b8798;font-size:9px;text-transform:uppercase;letter-spacing:.06em}.quote-route strong{margin-top:3px;font-size:12px}.quote-route small{margin-top:2px;color:#7b8798;font-size:10px}.quote-route>b{color:#8d98a7}.quote-errors{margin:13px 0 0;padding:10px 12px 10px 29px;border-radius:10px;color:#8c2833;background:#fff0f2;font-size:11px}.quote-errors li+li{margin-top:5px}.quote-checks{display:grid;gap:6px;margin-top:13px;padding:12px;border:1px solid #dce7f5;border-radius:10px;background:#f7faff;font-size:11px}.quote-checks strong{margin-bottom:2px}.quote-checks span{color:#526074}.quote-diagnostics{margin-top:12px;color:#687487;font-size:10px}.quote-diagnostics summary{cursor:pointer;font-weight:700}.quote-diagnostics div{margin-top:7px;overflow-wrap:anywhere}

@media(max-width:960px){body.nav-open{overflow:hidden}.sidebar-overlay.visible{display:block}.sidebar-close{display:grid;place-items:center}.app-shell{grid-template-columns:1fr}.sidebar.open{transform:translateX(0)}}
@media(max-width:700px){.quote-route{grid-template-columns:1fr auto 1fr}.quote-parcel-summary{grid-column:1/-1}.quote-problem{grid-template-columns:1fr}.quote-problem-icon{display:none}}

.dropoff-notice{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;margin-bottom:12px;border:1px solid #b8e2d0;background:#eefaf5;border-radius:12px}.dropoff-notice strong{color:#116347;white-space:nowrap}.dropoff-notice span{color:#44645a;font-size:13px;line-height:1.45}

/* v18 full-screen navigation workspace */
.app-shell{display:block;min-height:100vh}.workspace{min-height:100vh}.mobile-menu{display:inline-flex!important;align-items:center;gap:8px;min-height:38px;padding:0 13px;border:1px solid #d7dee8;border-radius:10px;background:#fff;color:#344055;font-size:12px;font-weight:800;box-shadow:0 3px 10px rgba(18,31,53,.05)}.mobile-menu span{font-size:18px;line-height:1}.sidebar{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;padding:28px clamp(20px,5vw,72px)!important;border-radius:0!important;overflow:auto;opacity:0;visibility:hidden;transform:scale(.985)!important;transition:opacity .2s ease,transform .2s ease,visibility .2s!important;background:radial-gradient(circle at 75% 15%,rgba(83,105,207,.30),transparent 28%),linear-gradient(145deg,#0c1424 0%,#15243d 58%,#111b30 100%)!important;box-shadow:none!important;z-index:120!important}.sidebar.open{opacity:1;visibility:visible;transform:scale(1)!important}.sidebar-top,.sidebar-summary,.sidebar>.nav,.sidebar-foot,.sidebar-spacer{width:min(1180px,100%);margin-left:auto;margin-right:auto}.sidebar-top{min-height:76px}.sidebar-top .brand{padding:0}.sidebar-top .brand-mark{width:52px;height:52px;border-radius:15px;font-size:15px}.sidebar-top .brand strong{font-size:20px}.sidebar-top .brand span{font-size:12px}.sidebar-close{display:grid!important;place-items:center;width:48px;height:48px;border-radius:14px;font-size:30px}.sidebar-summary{margin-top:28px;margin-bottom:24px;padding:22px 24px;border-radius:18px}.sidebar-summary span{font-size:11px}.sidebar-summary strong{font-size:22px}.sidebar-summary small{font-size:12px}.sidebar>.nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.sidebar>.nav.secondary{margin-top:18px;padding-top:18px;grid-template-columns:repeat(3,minmax(0,1fr))}.nav-heading{grid-column:1/-1;padding:8px 2px 2px;font-size:10px}.nav-item{min-height:108px;grid-template-columns:52px minmax(0,1fr) auto;gap:14px;padding:18px 20px;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(255,255,255,.035);box-shadow:0 16px 35px rgba(0,0,0,.10)}.nav-item:hover{background:rgba(255,255,255,.075);transform:translateY(-2px)}.nav-item.active{background:linear-gradient(145deg,rgba(83,111,210,.40),rgba(72,83,154,.28));box-shadow:inset 0 0 0 1px rgba(133,158,255,.32),0 18px 35px rgba(0,0,0,.16)}.nav-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:15px;background:rgba(255,255,255,.075);font-size:27px}.nav-copy strong{font-size:17px}.nav-copy small{margin-top:7px;font-size:11px;line-height:1.45}.nav-count{align-self:start;min-width:30px;padding:4px 8px;font-size:12px}.sidebar-spacer{display:none}.sidebar-foot{margin-top:24px;padding:18px 20px;border-radius:16px}.sidebar-foot strong{font-size:13px}.sidebar-foot span{font-size:11px}.sidebar-overlay,.sidebar-overlay.visible{display:none!important}body.nav-open{overflow:hidden}.topbar{padding-left:clamp(18px,3vw,36px)}

/* v18 provider dropdowns */
.provider-grid{display:grid;grid-template-columns:1fr;gap:14px}.provider-accordion{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:var(--shadow)}.provider-accordion>summary{display:grid;grid-template-columns:56px minmax(0,1fr) auto 28px;align-items:center;gap:14px;min-height:86px;padding:15px 20px;cursor:pointer;list-style:none}.provider-accordion>summary::-webkit-details-marker{display:none}.provider-logo.large{width:52px;height:52px;border-radius:15px;font-size:15px}.provider-accordion-title strong,.provider-accordion-title small{display:block}.provider-accordion-title strong{font-size:17px}.provider-accordion-title small{margin-top:5px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.07em}.provider-chevron{font-size:20px;color:#738096;transition:transform .18s}.provider-accordion[open] .provider-chevron{transform:rotate(180deg)}.provider-accordion-body{padding:0 20px 20px;border-top:1px solid #edf0f4}.provider-accordion-body .provider-capabilities{margin-top:18px}.provider-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.mono-wrap{overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px}.provider-help{display:grid;gap:5px;margin-top:2px;padding:13px 15px;border:1px solid #dce7fa;border-radius:11px;background:#f6f9ff}.provider-help strong{font-size:11px}.provider-help span{color:#607087;font-size:10px;line-height:1.5}.provider-action-row{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}

/* v18 rates grouped by provider */
.quote-provider-group{margin-top:10px;overflow:hidden;border:1px solid #dfe4ec;border-radius:13px;background:#fff}.quote-provider-group>summary{display:grid;grid-template-columns:38px minmax(0,1fr) auto 22px;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;list-style:none;background:#f8fafc}.quote-provider-group>summary::-webkit-details-marker{display:none}.provider-summary-logo{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;color:#fff;background:linear-gradient(145deg,#3158ba,#6d82df);font-size:10px;font-weight:900}.quote-provider-group>summary strong,.quote-provider-group>summary small{display:block}.quote-provider-group>summary strong{font-size:12px}.quote-provider-group>summary small{margin-top:2px;color:var(--muted);font-size:9px}.quote-provider-group>summary b{min-width:26px;padding:3px 7px;border-radius:999px;color:#36599d;background:#eaf0ff;text-align:center;font-size:10px}.quote-provider-group>summary i{font-style:normal;color:#748198;transition:transform .18s}.quote-provider-group[open]>summary i{transform:rotate(180deg)}.quote-provider-body{padding:12px}.provider-rate-empty{display:grid;grid-template-columns:34px 1fr;gap:11px;padding:13px;border:1px solid #efd4d7;border-radius:11px;background:#fff9f9}.provider-rate-empty-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;color:#a53643;background:#ffe6e9;font-weight:900}.provider-rate-empty strong{font-size:11px}.provider-rate-empty p{margin:4px 0 0;color:#6f7887;font-size:10px;line-height:1.5}.provider-request-line{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.provider-request-line span{padding:5px 7px;border-radius:7px;background:#f2f4f7;color:#5d6878;font-size:9px}.quote-overall-problem{margin-top:12px}

@media(max-width:900px){.sidebar>.nav,.sidebar>.nav.secondary{grid-template-columns:repeat(2,minmax(0,1fr))}.provider-detail-grid{grid-template-columns:1fr}.provider-action-row{justify-content:stretch}.provider-action-row .button{flex:1}}
@media(max-width:620px){.sidebar{padding:18px!important}.sidebar-summary{margin-top:18px}.sidebar>.nav,.sidebar>.nav.secondary{grid-template-columns:1fr}.nav-item{min-height:86px;padding:14px 15px}.nav-icon{width:44px;height:44px;font-size:23px}.nav-copy strong{font-size:15px}.provider-accordion>summary{grid-template-columns:48px minmax(0,1fr) 24px;padding:13px}.provider-accordion>summary .status-badge{grid-column:2;justify-self:start}.provider-chevron{grid-column:3;grid-row:1}.provider-accordion-body{padding:0 13px 15px}.provider-action-row{flex-direction:column}.quote-provider-group>summary{grid-template-columns:36px 1fr auto}.quote-provider-group>summary i{display:none}.provider-rate-empty{grid-template-columns:1fr}.provider-rate-empty-icon{display:none}}

/* Packlink validation diagnostics */
.provider-api-response{max-height:220px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#0f172a;color:#e2e8f0;border-radius:10px;padding:12px;margin:10px 0 0;font-size:12px;line-height:1.45}

/* Dispatch control centre */
.dispatch-command{display:grid;grid-template-columns:minmax(320px,1.2fr) minmax(360px,1fr) auto;gap:18px;align-items:center;padding:22px 24px;margin-bottom:16px;border:1px solid #dfe5ee;border-radius:20px;background:linear-gradient(135deg,#101827 0%,#1e2a42 62%,#2d4271 100%);color:#fff;box-shadow:0 18px 45px rgba(19,31,54,.15)}
.dispatch-command .eyebrow{color:#aebfdf}.dispatch-command h2{margin:5px 0 6px;font-size:23px}.dispatch-command p{margin:0;max-width:620px;color:#cbd5e7;font-size:12px;line-height:1.55}.dispatch-scan{min-width:0;background:#fff;border-radius:13px;padding:6px}.dispatch-scan input{border:0;min-width:0}.dispatch-scan input:focus{box-shadow:none}.dispatch-command>.button{border-color:rgba(255,255,255,.35);color:#fff;background:rgba(255,255,255,.1)}
.dispatch-workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;align-items:start}.dispatch-queue-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;padding:20px 22px;border-bottom:1px solid var(--border)}.dispatch-queue-head h2{margin:4px 0}.dispatch-queue-head p{margin:0;color:var(--muted)}.dispatch-queue-tools{display:flex;align-items:center;gap:10px}.dispatch-queue-tools .search-field{min-width:290px}.dispatch-side{display:grid;gap:14px;position:sticky;top:84px}.dispatch-next,.dispatch-tip{padding:20px}.dispatch-next h3{margin:5px 0 14px}.dispatch-step-list{display:grid;gap:8px}.dispatch-step-list>div{display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:center;padding:10px;border-radius:11px;background:#f7f9fc}.dispatch-step-list b{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#e9efff;color:#345fbb}.dispatch-step-list strong,.dispatch-step-list small{display:block}.dispatch-step-list small{margin-top:3px;color:var(--muted);font-size:10px}.dispatch-tip{border-color:#cfdaf5;background:#f4f7ff}.dispatch-tip strong{display:block;color:#274f9d}.dispatch-tip p{margin:7px 0 0;color:#52627e;font-size:11px;line-height:1.5}
.dispatch-queue{padding:12px;gap:10px;background:#f7f9fc}.dispatch-order-card{padding:16px 17px;border:1px solid #e1e6ee;border-radius:15px;background:#fff;box-shadow:0 3px 10px rgba(22,36,61,.04);transition:.15s ease}.dispatch-order-card:hover{border-color:#b9c8e6;box-shadow:0 7px 18px rgba(22,36,61,.08);transform:translateY(-1px)}.dispatch-card-main{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(180px,1fr) auto;align-items:center;gap:15px}.dispatch-card-items{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0}.dispatch-card-items span{padding:6px 9px;border-radius:8px;background:#f2f5f9;color:#435169;font-size:11px}.dispatch-card-items b{color:#223d75}.dispatch-card-foot{display:grid;grid-template-columns:minmax(180px,.9fr) minmax(160px,1fr) auto;align-items:center;gap:14px;border-top:1px solid #eef1f5;padding-top:12px}.dispatch-service small{color:var(--muted)}
.shipping-workbench{background:#fbfcff;border:1px solid #dfe6f1;border-radius:16px;padding:18px}.shipping-workbench-head h3{margin:4px 0}.shipping-workbench-head p{margin:0 0 14px;color:var(--muted)}.shipping-workbench .parcel-grid{grid-template-columns:repeat(5,minmax(90px,1fr))}.carrier-rate-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}.carrier-rate-actions .button{min-width:170px}.carrier-isolation-note{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 10px;padding:10px 12px;border-radius:10px;background:#edf4ff;color:#294f91}.carrier-isolation-note strong,.carrier-isolation-note span{font-size:11px}.carrier-isolation-note span{color:#546a90}.provider-awaiting{padding:18px;text-align:center;color:var(--muted)}.provider-awaiting strong{display:block;color:var(--ink);margin-bottom:5px}.provider-awaiting p{margin:0}.diagnostic-attempt{display:grid;gap:5px;margin:10px 0;padding:10px;border:1px solid #e0e5ed;border-radius:9px;background:#fff}.diagnostic-attempt>span,.diagnostic-attempt>small{color:var(--muted);font-size:10px}.diagnostic-attempt code{display:block;overflow-wrap:anywhere;padding:6px;border-radius:6px;background:#f4f6f9;font-size:9px}.diagnostic-attempt pre{max-height:190px;overflow:auto;margin:0;padding:8px;border-radius:6px;background:#111827;color:#d8e2f1;font-size:9px;white-space:pre-wrap}.provider-rate-empty{padding:15px}.provider-request-line{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.provider-request-line span{padding:5px 7px;border-radius:7px;background:#f2f4f7;font-size:10px}.quote-provider-group{margin-top:10px}
@media(max-width:1180px){.dispatch-command{grid-template-columns:1fr}.dispatch-command>.button{justify-self:start}.dispatch-workspace{grid-template-columns:1fr}.dispatch-side{display:none}.dispatch-card-main{grid-template-columns:1fr 1fr auto}.dispatch-card-foot{grid-template-columns:1fr auto}.dispatch-service{display:none}}
@media(max-width:760px){.dispatch-command{padding:17px}.dispatch-scan{display:grid;grid-template-columns:auto 1fr}.dispatch-scan .button{grid-column:1/-1}.dispatch-queue-head{align-items:stretch;flex-direction:column}.dispatch-queue-tools{align-items:stretch;flex-direction:column}.dispatch-queue-tools .search-field{min-width:0;width:100%}.dispatch-card-main,.dispatch-card-foot{display:flex;flex-direction:column;align-items:stretch}.dispatch-actions{display:grid;grid-template-columns:1fr 1fr}.shipping-workbench .parcel-grid{grid-template-columns:repeat(2,1fr)}.carrier-rate-actions .button{width:100%}.carrier-isolation-note{align-items:flex-start;flex-direction:column}}


/* v21 centred order workspace */
.order-modal {
  top: 50%;
  left: 50%;
  right: auto;
  width: min(1180px, 96vw);
  height: min(920px, 92vh);
  border: 1px solid rgba(28, 39, 61, .12);
  border-radius: 24px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  box-shadow: 0 32px 90px rgba(12, 22, 42, .28);
  animation: order-modal-in .18s ease-out;
}
.order-modal > header {
  min-height: 84px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfbfe);
}
.order-modal > header button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 24px;
  cursor: pointer;
}
.order-modal .drawer-body {
  padding: 24px 28px 34px;
  background: #f7f8fb;
}
.order-modal .order-summary-grid,
.order-modal .order-operation-actions,
.order-modal .drawer-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
}
.order-modal .order-operation-actions {
  position: sticky;
  top: -24px;
  z-index: 3;
  box-shadow: 0 8px 22px rgba(20, 30, 50, .08);
}
.order-modal .drawer-section {
  border-top: 1px solid var(--line);
}
.order-modal .shipping-workbench {
  border-color: #d8d2f2;
  box-shadow: 0 8px 28px rgba(71, 54, 126, .06);
}
@keyframes order-modal-in {
  from { opacity: 0; transform: translate(-50%, -47%) scale(.985); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (max-width: 760px) {
  .order-modal {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }
  .order-modal .drawer-body { padding: 16px; }
  .order-modal .order-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-modal .parcel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

body.overlay-open { overflow: hidden; }


/* v22 stepped order wizard */
.order-modal .drawer-body{padding:0;background:#f5f7fb;overflow:auto}
.order-wizard-shell{min-height:100%;display:flex;flex-direction:column}
.order-flow{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:14px 22px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:rgba(255,255,255,.96);backdrop-filter:blur(12px)}
.order-flow-step{position:relative;display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;min-width:0;padding:10px 12px;border:1px solid #e2e7ef;border-radius:12px;background:#fff;color:#707b8d;text-align:left;cursor:pointer}
.order-flow-step:not(:last-child)::after{display:none}
.order-flow-step>span{grid-row:1/3;width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#eef1f5;color:#697588;font-size:11px;font-weight:800}
.order-flow-step>strong{align-self:end;color:#354052;font-size:12px}
.order-flow-step>small{align-self:start;overflow:hidden;color:#8a94a4;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.order-flow-step.done{border-color:#c9e9dc;background:#f7fdf9}.order-flow-step.done>span{background:var(--green);color:#fff}.order-flow-step.done>strong{color:var(--green)}
.order-flow-step.active{border-color:#8ea9f5;background:#f5f8ff;box-shadow:0 0 0 3px rgba(53,99,233,.08)}.order-flow-step.active>span{background:var(--blue);color:#fff}.order-flow-step.active>strong{color:var(--blue)}
.order-wizard-summary{margin:16px 22px 0!important;padding:0!important;border:0!important;background:transparent!important}
.order-wizard-summary>div{border:1px solid #e3e8ef;background:#fff}
.order-wizard-pages{flex:1;padding:0 22px 22px}
.order-wizard-page{display:none;min-height:560px}.order-wizard-page.active{display:block}
.order-step-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 2px 14px}.order-step-title h3{margin:4px 0 5px;font-size:21px}.order-step-title p{margin:0;color:var(--muted);font-size:12px}
.order-pick-layout,.order-pack-layout,.order-done-grid{display:grid;grid-template-columns:minmax(220px,.38fr) minmax(0,1fr);gap:16px;align-items:start}
.order-pick-layout>aside,.order-pick-layout>div,.order-step-card{padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 4px 15px rgba(20,30,50,.035)}
.order-pick-layout h4,.order-step-card h4,.variant-section-head h4{margin:0 0 12px;font-size:14px}.order-pick-layout aside .button{margin-top:12px}
.order-pack-layout{grid-template-columns:minmax(0,1fr) 300px}.order-step-card{margin:0}.step-subheading{margin-top:20px!important}.paperwork-card{display:grid;gap:10px;align-content:start}.paperwork-card p{margin:-4px 0 6px;color:var(--muted);font-size:11px;line-height:1.5}.paperwork-summary{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:10px;padding-top:14px;border-top:1px solid var(--line);font-size:11px}.paperwork-summary span{color:var(--muted)}
.order-wizard-footer{position:sticky;bottom:-22px;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding:14px 16px;border:1px solid #dce3ed;border-radius:14px;background:rgba(255,255,255,.97);box-shadow:0 -6px 22px rgba(22,34,55,.08);backdrop-filter:blur(10px)}.order-wizard-footer>div{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.wizard-help{color:var(--muted);font-size:10px}
.order-step-card.shipping-workbench{padding:18px;background:#fff}.shipping-workbench-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.shipping-workbench-head h4{margin:0 0 5px}.shipping-workbench-head p{margin:0;color:var(--muted);font-size:11px}.order-step-card+.order-step-card{margin-top:16px}
.done-title{align-items:center}.done-check{width:58px;height:58px;display:grid;place-items:center;border-radius:18px;background:var(--green-soft);color:var(--green);font-size:27px;font-weight:900}.order-done-grid{grid-template-columns:1fr 1fr}.done-summary{display:grid;grid-template-columns:1fr auto;gap:10px;margin:0;font-size:11px}.done-summary dt{color:var(--muted)}.done-summary dd{margin:0;font-weight:700;text-align:right}
@media(max-width:900px){.order-flow{padding:10px;gap:5px}.order-flow-step{grid-template-columns:28px 1fr;padding:8px}.order-flow-step>span{width:27px;height:27px}.order-flow-step>small{display:none}.order-wizard-summary{margin-left:14px!important;margin-right:14px!important}.order-wizard-pages{padding-left:14px;padding-right:14px}.order-pick-layout,.order-pack-layout,.order-done-grid{grid-template-columns:1fr}.paperwork-card{grid-template-columns:1fr 1fr}.paperwork-card h4,.paperwork-card p,.paperwork-summary{grid-column:1/-1}}
@media(max-width:600px){.order-modal>header{min-height:70px;padding:12px 15px}.order-flow{grid-template-columns:repeat(4,1fr)}.order-flow-step{display:grid;justify-items:center;padding:7px 3px;text-align:center}.order-flow-step>span{grid-row:auto}.order-flow-step>strong{font-size:10px}.order-flow-step>small{display:none}.order-wizard-summary{grid-template-columns:repeat(2,1fr)}.order-wizard-pages{padding-bottom:12px}.order-step-title{padding-top:18px}.order-step-title h3{font-size:18px}.paperwork-card{display:grid;grid-template-columns:1fr}.paperwork-card>*{grid-column:auto}.order-wizard-footer{bottom:-12px;align-items:stretch;flex-direction:column}.order-wizard-footer>div{display:grid;grid-template-columns:1fr}.order-wizard-footer .button{width:100%}.shipping-workbench-head{flex-direction:column}.done-title .done-check{display:none}}

/* v23 encrypted in-app shipping integration settings */
.shipping-settings-toolbar{align-items:flex-end;gap:24px}.shipping-settings-hero{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}.shipping-settings-hero>div{background:linear-gradient(145deg,#13243c,#1d3554);color:#fff;border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:7px;min-height:118px;box-shadow:0 16px 34px rgba(18,34,55,.15)}.shipping-settings-hero strong{font-size:16px}.shipping-settings-hero span{font-size:13px;line-height:1.55;color:#d9e6f5}.shipping-settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:22px;align-items:start}.shipping-section-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}.shipping-section-heading h3{margin:0 0 4px;font-size:20px}.shipping-section-heading p{margin:0;color:var(--muted);font-size:13px}.integration-account-grid{display:grid;gap:14px}.integration-account-card{background:#fff}.shipping-general-column{display:grid;gap:16px;position:sticky;top:92px}.shipping-general-form{display:grid;gap:14px}.shipping-general-form label{display:grid;gap:6px;font-weight:700;font-size:13px;color:var(--ink)}.shipping-general-form input,.shipping-general-form textarea,.shipping-general-form select{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;color:var(--ink);font:inherit}.shipping-security-card code{font-size:12px;background:#eef3f8;padding:2px 5px;border-radius:5px}.security-facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.security-facts span{background:#edf5ff;color:#1e4e7d;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:800}.shipping-account-form{width:min(920px,94vw);max-height:92vh}.shipping-form-sections{display:grid;gap:18px;padding:20px;overflow:auto}.shipping-form-sections section{border:1px solid var(--line);border-radius:14px;padding:16px;background:#fbfcfe}.shipping-form-sections h3{margin:0 0 12px;font-size:16px}.shipping-form-sections .form-help{margin:-4px 0 12px;color:var(--muted);font-size:12px}.check-label{display:flex!important;align-items:center;gap:9px;align-self:end;min-height:42px}.check-label input{width:auto!important}.provider-action-row .danger{margin-left:auto}
@media(max-width:1050px){.shipping-settings-layout{grid-template-columns:1fr}.shipping-general-column{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.shipping-settings-hero{grid-template-columns:1fr}}
@media(max-width:700px){.shipping-general-column{grid-template-columns:1fr}.shipping-settings-toolbar{align-items:stretch}.shipping-settings-toolbar .toolbar-actions{width:100%}.shipping-settings-toolbar .toolbar-actions .button{flex:1}.provider-action-row{display:grid;grid-template-columns:1fr 1fr}.provider-action-row .danger{margin-left:0}.shipping-account-form{width:100vw;max-width:none;height:100vh;max-height:none;border-radius:0}}

/* v25 simplified provider and store onboarding */
.onboarding-toolbar{align-items:flex-end;gap:24px;margin-bottom:18px}.onboarding-toolbar .section-title{font-size:26px}.onboarding-toolbar .section-subtitle{max-width:760px;font-size:13px;line-height:1.55}.onboarding-banner{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:16px;margin-bottom:22px;padding:18px 20px;border:1px solid #d9e4f2;border-radius:18px;background:linear-gradient(135deg,#f9fbff,#eef5ff);box-shadow:0 10px 28px rgba(40,69,110,.06)}.onboarding-banner.store-banner{background:linear-gradient(135deg,#fbfffc,#eef9f2);border-color:#d6eadc}.onboarding-banner-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#223c6e;color:#fff;font-size:20px;font-weight:900;box-shadow:0 8px 18px rgba(34,60,110,.18)}.store-banner .onboarding-banner-icon{background:#147552}.onboarding-banner strong,.onboarding-banner span{display:block}.onboarding-banner>div:nth-child(2)>strong{font-size:15px}.onboarding-banner>div:nth-child(2)>span{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.55}.onboarding-banner-flow{display:flex;align-items:center;gap:8px}.onboarding-banner-flow span{padding:7px 10px;border-radius:999px;background:#fff;color:#4d607a;font-size:10px;font-weight:800;box-shadow:0 2px 8px rgba(25,42,70,.05)}.onboarding-banner-flow b{color:#8ea0b9;font-size:12px}.simplified-settings-layout{grid-template-columns:minmax(0,1fr) 350px}.integration-choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:16px}.integration-choice-card{position:relative;display:flex;flex-direction:column;gap:15px;min-height:410px;padding:22px;border:1px solid #dfe5ed;border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(20,34,58,.06);transition:transform .18s,border-color .18s,box-shadow .18s}.integration-choice-card:hover{transform:translateY(-2px);border-color:#b8c8e0;box-shadow:0 16px 36px rgba(20,34,58,.10)}.integration-choice-card.connected{border-color:#b8ddcd;background:linear-gradient(180deg,#fff,#f8fdfb)}.integration-choice-card.attention{border-color:#ead8a6;background:linear-gradient(180deg,#fff,#fffcf4)}.integration-choice-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.integration-mark{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;color:#fff;font-size:16px;font-weight:900;letter-spacing:.03em;box-shadow:0 10px 20px rgba(30,55,95,.16)}.integration-mark.blue{background:linear-gradient(145deg,#1951b8,#5584e7)}.integration-mark.green{background:linear-gradient(145deg,#0d7a58,#42ad83)}.integration-mark.red{background:linear-gradient(145deg,#9c2e3f,#db5a68)}.integration-mark.orange{background:linear-gradient(145deg,#d16d17,#f3a341)}.integration-mark.purple{background:linear-gradient(145deg,#6237a4,#9a72d4)}.integration-mark.sand{background:linear-gradient(145deg,#9b5a24,#dc9454)}.integration-choice-card h3{margin:0;font-size:20px;letter-spacing:-.02em}.integration-choice-card p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.55}.integration-capability-list{display:flex;flex-wrap:wrap;gap:7px}.integration-capability-list span{padding:6px 9px;border:1px solid #dbe4ef;border-radius:999px;background:#f6f9fc;color:#506279;font-size:9px;font-weight:800}.integration-checklist{display:grid;gap:8px;padding:12px;border:1px solid #e8ecf2;border-radius:13px;background:#fafbfd}.integration-checklist>div{display:flex;align-items:center;gap:9px;color:#7b8797;font-size:11px}.integration-checklist>div>span{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:#edf0f4;font-size:10px;font-weight:900}.integration-checklist>div.done{color:#197450}.integration-checklist>div.done>span{background:#dff3e9;color:#197450}.integration-account-summary{margin-top:auto;padding-top:13px;border-top:1px solid #e8ecf2}.integration-account-summary strong,.integration-account-summary span{display:block}.integration-account-summary strong{font-size:12px}.integration-account-summary span{margin-top:4px;color:var(--muted);font-size:10px}.integration-card-actions{display:flex;gap:8px}.integration-card-actions .button{flex:1}.onboarding-help-card h3{margin:5px 0 8px;font-size:18px}.onboarding-help-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}.store-provider-section{margin-bottom:28px}.connected-store-section{padding-top:4px}.enhanced-stores-grid{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}.enhanced-store-card{display:flex;flex-direction:column;gap:16px;min-height:235px}.enhanced-store-card .store-card-head{display:grid;grid-template-columns:48px 1fr auto}.store-card-actions{display:flex;gap:8px;margin-top:auto}.store-card-actions .button{flex:1}.store-empty-state{grid-column:1/-1;padding:50px 20px;border:2px dashed #d7e0eb;border-radius:20px;background:#fbfcfe}.store-empty-state p{margin:7px 0 16px;color:var(--muted)}

.onboarding-dialog{width:min(1040px,96vw);max-width:none;padding:0;border:0;border-radius:22px;overflow:hidden;box-shadow:0 30px 80px rgba(10,22,42,.30)}.onboarding-dialog::backdrop{background:rgba(9,18,32,.68);backdrop-filter:blur(5px)}.onboarding-form{width:100%;max-height:94vh;display:flex;flex-direction:column}.onboarding-form>header{flex:0 0 auto}.wizard-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:14px 20px;border-bottom:1px solid var(--line);background:#f8fafc}.wizard-progress button{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;border:1px solid #e0e6ee;border-radius:11px;background:#fff;color:#788597;font-size:11px;cursor:pointer}.wizard-progress button span{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#eef1f5;font-size:10px;font-weight:900}.wizard-progress button.active{border-color:#7694e9;background:#f4f7ff;color:#274fbd;box-shadow:0 0 0 3px rgba(53,99,233,.07)}.wizard-progress button.active span{background:var(--blue);color:#fff}.wizard-progress button.done{color:#18704e}.wizard-progress button.done span{background:#dff3e9;color:#18704e}.shipping-wizard-pages{flex:1;min-height:0;overflow:auto;padding:22px}.shipping-wizard-page{display:none}.shipping-wizard-page.active{display:block}.wizard-page-heading{margin-bottom:17px}.wizard-page-heading h3{margin:4px 0 6px;font-size:22px;letter-spacing:-.02em}.wizard-page-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.provider-onboarding-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.provider-choice-card{min-height:190px;display:flex;flex-direction:column;align-items:flex-start;gap:11px;padding:18px;border:2px solid #e1e7ee;border-radius:17px;background:#fff;text-align:left;cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}.provider-choice-card:hover:not(:disabled){transform:translateY(-2px);border-color:#9eb5ec;box-shadow:0 12px 24px rgba(30,50,90,.09)}.provider-choice-card.selected{border-color:#5279df;background:#f6f8ff;box-shadow:0 0 0 4px rgba(53,99,233,.08)}.provider-choice-card.unavailable,.provider-choice-card.planned{opacity:.58;cursor:not-allowed}.provider-choice-card .integration-mark{width:50px;height:50px;border-radius:14px}.provider-choice-card strong{font-size:16px}.provider-choice-card small{color:var(--muted);font-size:11px;line-height:1.45}.wizard-card{padding:20px;border:1px solid #e1e6ed;border-radius:17px;background:#fbfcfe}.wizard-card .form-grid{margin:0}.onboarding-enable-toggle{display:flex!important;align-items:flex-start!important;gap:12px!important;margin-top:14px;padding:14px;border:1px solid #dfe6ef;border-radius:13px;background:#fff}.onboarding-enable-toggle input{width:auto!important;margin-top:3px}.onboarding-enable-toggle span,.onboarding-enable-toggle strong,.onboarding-enable-toggle small{display:block}.onboarding-enable-toggle strong{font-size:12px}.onboarding-enable-toggle small{margin-top:4px;color:var(--muted);font-size:10px}.wizard-footer{display:grid!important;grid-template-columns:auto 1fr auto auto;align-items:center;gap:10px;padding:14px 20px!important;border-top:1px solid var(--line);background:#fff}.wizard-footer-status{justify-self:center;color:var(--muted);font-size:11px;font-weight:800}.store-onboarding-body{overflow:auto;padding:22px}.store-choice-grid{grid-template-columns:repeat(5,minmax(130px,1fr))}.store-choice-grid .provider-choice-card{min-height:145px}.store-onboarding-detail{margin-top:18px}.onboarding-detail-card{display:grid;grid-template-columns:72px 1fr;gap:18px;padding:20px;border:1px solid #dce4ee;border-radius:18px;background:linear-gradient(135deg,#fbfdff,#f4f8ff)}.onboarding-detail-card.planned{background:#fbfbfd}.onboarding-detail-card h3{margin:4px 0 7px;font-size:21px}.onboarding-detail-card p{margin:0 0 13px;color:var(--muted);font-size:12px;line-height:1.55}.onboarding-safety-note{display:flex;align-items:center;gap:10px;margin-top:14px;padding:12px;border-radius:11px;background:#fff;border:1px solid #e1e7ef}.onboarding-safety-note strong{font-size:11px}.onboarding-safety-note span{color:var(--muted);font-size:10px}.store-onboarding-dialog footer{display:flex;justify-content:flex-end;gap:8px}

@media(max-width:1050px){.simplified-settings-layout{grid-template-columns:1fr}.shipping-general-column{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.onboarding-banner{grid-template-columns:52px 1fr}.onboarding-banner-flow{grid-column:1/-1;justify-content:center}.store-choice-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.onboarding-toolbar{align-items:stretch}.onboarding-toolbar .toolbar-actions{display:grid;grid-template-columns:1fr 1fr}.integration-choice-grid{grid-template-columns:1fr}.shipping-general-column{grid-template-columns:1fr}.provider-onboarding-grid,.store-choice-grid{grid-template-columns:1fr}.onboarding-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.onboarding-form{height:100dvh;max-height:none}.wizard-progress{padding:9px;gap:5px}.wizard-progress button{padding:8px 4px;flex-direction:column;gap:4px}.wizard-progress button strong{font-size:9px}.shipping-wizard-pages,.store-onboarding-body{padding:15px}.wizard-footer{grid-template-columns:1fr 1fr}.wizard-footer-status{grid-column:1/-1;grid-row:1}.wizard-footer .button{width:100%}.onboarding-banner{grid-template-columns:44px 1fr;padding:15px}.onboarding-banner-icon{width:42px;height:42px}.onboarding-banner-flow{overflow:auto;justify-content:flex-start}.onboarding-detail-card{grid-template-columns:1fr}.store-card-actions{flex-direction:column}}

/* v26 - separate aggregator/carrier setup and service controls */
.shipping-type-explainer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:22px}.shipping-type-explainer article{display:grid;grid-template-columns:54px minmax(0,1fr);gap:15px;align-items:center;padding:18px 20px;border:1px solid #dce5f0;border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(25,42,70,.05)}.shipping-type-explainer strong{display:block;font-size:15px}.shipping-type-explainer p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.55}.shipping-type-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;color:#fff;font-size:18px;font-weight:900}.shipping-type-icon.aggregator{background:linear-gradient(145deg,#2455b7,#6a91e7)}.shipping-type-icon.carrier{background:linear-gradient(145deg,#a03949,#dc6b78)}.shipping-provider-sections{display:grid;gap:28px}.shipping-provider-group{padding:20px;border:1px solid #e0e6ef;border-radius:22px;background:#fbfcfe}.shipping-provider-group.aggregator-group{background:linear-gradient(180deg,#f9fbff,#fff);border-color:#d9e5f6}.shipping-provider-group.carrier-group{background:linear-gradient(180deg,#fffafa,#fff);border-color:#eedcdf}.shipping-provider-group .integration-choice-grid{grid-template-columns:repeat(auto-fit,minmax(275px,1fr))}.provider-kind-badge{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.provider-kind-badge.aggregator{background:#e7efff;color:#2353a8}.provider-kind-badge.carrier{background:#fbe8eb;color:#9a3444}.integration-card-badges{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.integration-service-summary{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border-radius:12px;background:#f1f6fd}.integration-service-summary span{padding:5px 7px;border-radius:8px;background:#fff;color:#4e6179;font-size:9px;font-weight:800}.integration-service-summary.direct{background:#fbf1f3}.stacked-actions{display:grid;gap:8px}.stacked-actions>div{display:grid;grid-template-columns:1fr 1.35fr;gap:8px}.service-control-button{width:100%;border-color:#c8d7ed;background:#edf4ff;color:#234f91}.service-control-button:hover{background:#e2edff}.onboarding-provider-group{margin-top:20px;padding:16px;border:1px solid #e2e8f0;border-radius:16px;background:#fafbfd}.onboarding-provider-group:first-of-type{margin-top:0}.onboarding-provider-group h4{margin:3px 0 12px;font-size:15px}.service-control-dialog{width:min(920px,calc(100vw - 28px));max-height:92vh;padding:0;border:0;border-radius:20px;box-shadow:0 30px 90px rgba(16,28,49,.3)}.service-control-form{max-height:92vh}.service-control-form>header p{margin:5px 0 0;color:var(--muted);font-size:11px}.service-control-body{display:grid;gap:18px;padding:20px 24px;overflow:auto}.service-control-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;border:1px solid #d9e5f6;border-radius:15px;background:#f5f9ff}.service-control-summary strong,.service-control-summary span{display:block}.service-control-summary strong{font-size:13px}.service-control-summary span{margin-top:4px;color:var(--muted);font-size:10px}.shipping-section-heading.compact{margin-bottom:12px}.service-catalogue-list{display:grid;gap:12px}.service-empty-state{padding:28px;border:2px dashed #d7e1ec;border-radius:16px;text-align:center;background:#fafcfe}.service-empty-state strong{display:block;font-size:13px}.service-empty-state p{max-width:560px;margin:7px auto 0;color:var(--muted);font-size:10px;line-height:1.6}.courier-control-card{overflow:hidden;border:1px solid #dce4ee;border-radius:16px;background:#fff}.courier-control-card>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#f7faff}.courier-control-card.disabled{opacity:.72}.courier-control-card.disabled>header{background:#f5f5f6}.courier-service-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#e5eaf1}.service-toggle-row{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;background:#fff;cursor:pointer}.service-toggle-row input{width:18px;height:18px;margin:1px 0 0;accent-color:#275fbd}.service-toggle-row span,.service-toggle-row strong,.service-toggle-row small{display:block}.service-toggle-row strong{font-size:11px}.service-toggle-row small{margin-top:4px;color:var(--muted);font-size:9px;line-height:1.4}.service-toggle-row.courier-toggle{padding:0;background:transparent}.service-toggle-row.courier-toggle strong{font-size:13px}.service-toggle-row input:disabled+span{opacity:.55}
@media(max-width:900px){.shipping-type-explainer{grid-template-columns:1fr}.courier-service-list{grid-template-columns:1fr}.shipping-settings-layout.simplified-settings-layout{grid-template-columns:1fr}.shipping-general-column{order:-1}}@media(max-width:600px){.shipping-provider-group{padding:14px}.service-control-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.service-control-form{height:100dvh;max-height:none}.service-control-body{padding:15px}.service-control-summary{align-items:stretch;flex-direction:column}.stacked-actions>div{grid-template-columns:1fr}}

.undiscovered-service-note{grid-column:1/-1;padding:14px 16px;background:#fbfcfe;color:var(--muted);font-size:10px;line-height:1.55}.courier-service-list.empty{display:block;background:#fff}.shipping-rules-panel{margin-top:24px;padding:0;overflow:hidden}.shipping-rules-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f7faff,#fff)}.shipping-rules-head h2{margin:3px 0 0;font-size:17px}.shipping-rules-head p{margin:5px 0 0;color:var(--muted);font-size:11px}.shipping-rules-list{display:grid;gap:10px;padding:18px 20px}.shipping-rule-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px;border:1px solid #dce5f0;border-radius:14px;background:#fff}.shipping-rule-card.disabled{opacity:.65}.shipping-rule-priority{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#eef4ff;color:#275fbd;font-size:12px;font-weight:900}.shipping-rule-title{display:flex;align-items:center;gap:8px}.shipping-rule-title strong{font-size:12px}.shipping-rule-card p{margin:5px 0 3px;font-size:11px;font-weight:800;color:#3b485d}.shipping-rule-card small{color:var(--muted);font-size:9px}.shipping-rule-actions{display:flex;gap:7px}.row-action.danger{color:var(--red);border-color:#f0cdd2}.shipping-rule-dialog{width:min(760px,calc(100vw - 28px));padding:0;border:0;border-radius:18px;box-shadow:0 30px 90px rgba(16,28,49,.3)}.shipping-rule-dialog::backdrop{background:rgba(14,23,38,.44);backdrop-filter:blur(3px)}.shipping-rule-form-grid select{width:100%;min-height:40px}.quote-card.recommended{border:2px solid #2c68ca;background:linear-gradient(135deg,#f1f6ff,#fff);box-shadow:0 8px 22px rgba(39,95,189,.12)}.rule-recommendation{display:inline-flex;margin-bottom:5px;padding:3px 7px;border-radius:999px;background:#dfeaff;color:#2459aa;font-size:8px;font-style:normal;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
@media(max-width:700px){.shipping-rules-head{align-items:flex-start;flex-direction:column}.shipping-rule-card{grid-template-columns:40px minmax(0,1fr)}.shipping-rule-actions{grid-column:1/-1;justify-content:flex-end}.shipping-rule-dialog{width:100vw;height:100dvh;border-radius:0}.shipping-rule-dialog .modal-form{height:100dvh}}

/* v28 compact 4Seller-inspired dispatch workspace */
.compact-command{grid-template-columns:minmax(360px,1.15fr) minmax(420px,.85fr);padding:18px 22px}
.dispatch-table-panel{overflow:hidden}.dispatch-actionbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 16px;border-bottom:1px solid var(--line);background:#fff}.dispatch-batch-actions,.dispatch-queue-tools{display:flex;align-items:center;gap:9px}.selection-count{font-size:11px;font-weight:700;color:var(--muted)}
.dispatch-table{min-width:1040px}.dispatch-table-head,.dispatch-table-row{display:grid;grid-template-columns:34px minmax(275px,1.55fr) minmax(145px,.8fr) minmax(145px,.75fr) minmax(150px,.8fr) minmax(175px,.9fr) minmax(115px,.6fr) 145px;align-items:stretch}.dispatch-table-head{min-height:44px;align-items:center;background:#f5f7fa;border-bottom:1px solid #dfe4eb;color:#334056;font-size:11px;font-weight:800}.dispatch-table-head>span{padding:0 10px}.dispatch-table-body{background:#fff}.dispatch-table-row{min-height:126px;border-bottom:1px solid #e5e9ef;transition:.13s ease}.dispatch-table-row:hover{background:#fbfcfe}.dispatch-table-row:last-child{border-bottom:0}.dispatch-table-row>*{padding:13px 10px;border-right:1px solid #edf0f4}.dispatch-table-row>*:last-child{border-right:0}.dispatch-select{display:flex;justify-content:center;align-items:flex-start;padding-top:17px!important}.dispatch-select input{width:15px;height:15px}
.dispatch-product-cell{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}.dispatch-product-cell strong{font-size:12px;line-height:1.3}.dispatch-product-cell small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}.dispatch-product-cell b{margin-top:auto;font-size:11px}.dispatch-order-number{padding:0;font-size:11px}.dispatch-variant-line{color:#315eaa!important;font-weight:700}.dispatch-customer-cell,.dispatch-time-cell,.dispatch-status-cell{display:flex;flex-direction:column;gap:4px;justify-content:center}.dispatch-customer-cell strong{font-size:11px}.dispatch-customer-cell small,.dispatch-status-cell small{color:var(--muted);font-size:10px}.dispatch-time-cell span{display:grid;grid-template-columns:48px 1fr;gap:4px;font-size:10px}.dispatch-time-cell b{color:#44516a}
.dispatch-edit-card{appearance:none;width:calc(100% - 16px);margin:8px;border:1px solid #88b5ab;border-radius:8px;background:#f8fffd;padding:10px;text-align:left;cursor:pointer;transition:.13s ease}.dispatch-edit-card:hover{border-color:#16836d;box-shadow:0 0 0 3px rgba(22,131,109,.08)}.dispatch-edit-card span,.dispatch-edit-card small,.dispatch-edit-card em{display:block}.dispatch-edit-card span{font-size:12px;font-weight:800;color:#1f3448}.dispatch-edit-card small{margin-top:5px;color:#5f6d7e;font-size:10px}.dispatch-edit-card em{margin-top:7px;color:#16836d;font-size:9px;font-style:normal;font-weight:800;text-transform:uppercase}.dispatch-edit-card.courier-card{border-color:#ef9f9f;background:#fffafa}.dispatch-edit-card.courier-card:hover{border-color:#d94848;box-shadow:0 0 0 3px rgba(217,72,72,.07)}.dispatch-edit-card.courier-card em{color:#c13f3f}.dispatch-edit-card.locked{border-color:#dce1e8;background:#f5f6f8;cursor:not-allowed}.dispatch-edit-card.locked em{color:#8d97a5}
.dispatch-inline-form{margin:8px;padding:8px;border:1px solid #7eaad9;border-radius:8px;background:#f8fbff;align-self:stretch}.package-inline-form{display:grid;grid-template-columns:repeat(4,minmax(42px,1fr));gap:5px}.dispatch-inline-form label{font-size:9px;font-weight:800;color:#526074}.dispatch-inline-form input{width:100%;min-height:31px;margin-top:3px;padding:5px;border:1px solid #c7d2e0;border-radius:6px;font-size:10px}.dispatch-inline-form>div{grid-column:1/-1;display:flex;align-items:center;gap:7px}.shipping-inline-form{display:grid;grid-template-columns:minmax(0,1fr) 132px;gap:7px}.shipping-inline-form>div{grid-column:1/-1}.shipping-inline-form input{font-size:11px}.dispatch-status-cell{align-items:flex-start}.dispatch-row-actions{display:flex;flex-direction:column;justify-content:center;gap:7px}.dispatch-row-actions .button{width:100%}.dispatch-table-row.is-locked{background:#fafbfc}.dispatch-table-row.is-locked .dispatch-product-cell,.dispatch-table-row.is-locked .dispatch-customer-cell{opacity:.82}
@media(max-width:1180px){.dispatch-table-panel{overflow-x:auto}.compact-command{grid-template-columns:1fr}.dispatch-actionbar{align-items:stretch;flex-direction:column}.dispatch-queue-tools .search-field{min-width:0;flex:1}.dispatch-table{min-width:1040px}}
@media(max-width:680px){.dispatch-batch-actions,.dispatch-queue-tools{align-items:stretch;flex-direction:column}.dispatch-batch-actions .button{width:100%}}

.package-popup-note{display:flex;align-items:flex-start;gap:12px;margin-top:16px;padding:14px;border:1px solid #cfe1f2;border-radius:13px;background:#f7faff}.package-popup-note>span{display:grid;place-items:center;flex:0 0 38px;height:28px;border-radius:9px;background:#e7f0fb;color:#355a84;font-size:9px;font-weight:900;text-transform:uppercase}.package-popup-note strong{display:block;font-size:11px}.package-popup-note p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.5}
/* v30 dispatch popups: package details first, all-courier lookup second */
.dispatch-package-dialog,.dispatch-courier-dialog{padding:0;border:0;border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 30px 90px rgba(16,28,49,.32)}
.dispatch-package-dialog::backdrop,.dispatch-courier-dialog::backdrop{background:rgba(14,23,38,.48);backdrop-filter:blur(3px)}
.dispatch-package-dialog{width:min(680px,calc(100vw - 28px))}
.dispatch-courier-dialog{width:min(1180px,calc(100vw - 28px));max-height:94vh}
.dispatch-package-form,.dispatch-courier-form{display:flex;flex-direction:column;max-height:94vh;margin:0;background:#fff}
.dispatch-package-form>header,.dispatch-courier-form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f7faff,#fff)}
.dispatch-package-form>header h2,.dispatch-courier-form>header h2{margin:2px 0 0;font-size:19px}
.dispatch-package-form>header p,.dispatch-courier-form>header p{margin:6px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.dispatch-package-form>header button,.dispatch-courier-form>header button{appearance:none;flex:0 0 auto;width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#526074;font-size:20px;line-height:1;cursor:pointer}
.dispatch-package-form>footer,.dispatch-courier-form>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid var(--line);background:#fafbfd}
.dispatch-package-form>footer>div,.dispatch-courier-form>footer>div{display:flex;align-items:center;gap:9px}
.dispatch-package-body{display:grid;gap:18px;padding:24px;overflow:auto}
.dispatch-popup-order{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid #dbe6f3;border-radius:14px;background:#f7faff}
.dispatch-popup-order strong,.dispatch-popup-order span{display:block}
.dispatch-popup-order strong{font-size:13px}.dispatch-popup-order span{color:var(--muted);font-size:10px;text-align:right}
.dispatch-package-measurements{display:grid;gap:16px;padding:20px;border:1px solid #a9d7cc;border-radius:16px;background:#f8fffd}
.dispatch-package-weight,.dispatch-dimension-grid label{display:grid;gap:7px}.dispatch-package-weight>span,.dispatch-dimension-grid label>span{font-size:10px;font-weight:900;color:#355165;text-transform:uppercase;letter-spacing:.04em}
.dispatch-package-weight>div,.dispatch-dimension-grid label>div{display:flex;align-items:center;gap:8px}
.dispatch-package-weight input,.dispatch-dimension-grid input{width:100%;min-width:0;padding:11px 12px;border:2px solid #78bcae;border-radius:11px;background:#fff;color:#152238;font-weight:900;text-align:right;outline:none}
.dispatch-package-weight input{font-size:27px}.dispatch-dimension-grid input{font-size:20px}
.dispatch-package-weight input:focus,.dispatch-dimension-grid input:focus{border-color:#16836d;box-shadow:0 0 0 4px rgba(22,131,109,.12)}
.dispatch-package-weight b,.dispatch-dimension-grid b{min-width:24px;color:#526074;font-size:13px}.dispatch-package-weight small,.dispatch-package-help{margin:0;color:var(--muted);font-size:10px;line-height:1.5}
.dispatch-dimension-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:15px;border-top:1px solid #cfe6e0}
.dispatch-courier-body{display:grid;gap:18px;padding:20px 24px;overflow:auto}
.dispatch-courier-summary{display:grid;grid-template-columns:1.2fr 1fr .7fr 1.15fr;gap:1px;overflow:hidden;border:1px solid #dce4ee;border-radius:15px;background:#dce4ee}
.dispatch-courier-summary>div{min-width:0;padding:13px 14px;background:#fff}.dispatch-courier-summary span,.dispatch-courier-summary strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dispatch-courier-summary span{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.dispatch-courier-summary strong{margin-top:5px;font-size:11px}
.dispatch-rate-workbench{display:grid;gap:14px;align-items:start}
.dispatch-rate-controls{display:grid;gap:14px;padding:16px;border:1px solid #dce4ee;border-radius:16px;background:#fafcfe}
.dispatch-rate-controls h3,.dispatch-shipping-section h3{margin:0;font-size:14px}.dispatch-rate-controls>p,.dispatch-shipping-section>p{margin:5px 0 0;color:var(--muted);font-size:10px;line-height:1.55}
.dispatch-quote-parcel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dispatch-quote-parcel label{display:grid;gap:5px;color:#526074;font-size:9px;font-weight:800}.dispatch-quote-parcel input{width:100%;min-height:38px;padding:8px 10px;border:1px solid #cbd6e4;border-radius:9px;background:#fff;font-size:11px}.dispatch-quote-parcel input[readonly]{background:#eef3f7;color:#526074;font-weight:800}.dispatch-quote-parcel .wide{grid-column:1/-1}
.courier-rate-actions{display:flex;justify-content:flex-end}.courier-rate-actions .button{min-width:210px}
.dispatch-shipping-quotes{min-width:0}.dispatch-shipping-quotes:empty{min-height:180px;border:2px dashed #d7e1ec;border-radius:16px;background:#fafcfe}
.dispatch-shipping-section{display:grid;gap:12px;padding-top:2px}.dispatch-shipping-section+.dispatch-shipping-section{padding-top:17px;border-top:1px solid var(--line)}
.dispatch-tracking-form{display:grid;grid-template-columns:minmax(150px,.55fr) minmax(220px,1fr) auto;gap:9px}.dispatch-tracking-form input{min-height:40px;padding:9px 11px;border:1px solid #cbd6e4;border-radius:9px;font-size:11px}.dispatch-tracking-form .button{min-width:110px}
.dispatch-handoff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:12px 0}.handoff-card{display:flex!important;align-items:flex-start;gap:14px}.handoff-card>span{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#e7f6f2;color:#16836d;font-size:14px;font-weight:900}.handoff-card.shipping>span{background:#fff0f0;color:#c13f3f}.handoff-card h4{margin:1px 0 6px}.handoff-card p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}
@media(max-width:900px){.dispatch-rate-workbench{grid-template-columns:1fr}.dispatch-courier-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dispatch-quote-parcel{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.dispatch-package-dialog,.dispatch-courier-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.dispatch-package-form,.dispatch-courier-form{height:100dvh;max-height:none}.dispatch-package-form>header,.dispatch-courier-form>header,.dispatch-package-body,.dispatch-courier-body,.dispatch-package-form>footer,.dispatch-courier-form>footer{padding-left:15px;padding-right:15px}.dispatch-package-form>footer,.dispatch-courier-form>footer{align-items:stretch;flex-direction:column}.dispatch-package-form>footer>div,.dispatch-courier-form>footer>div{display:grid;grid-template-columns:1fr}.dispatch-package-form>footer .button,.dispatch-courier-form>footer .button{width:100%}.dispatch-popup-order{align-items:flex-start;flex-direction:column}.dispatch-popup-order span{text-align:left}.dispatch-dimension-grid,.dispatch-courier-summary,.dispatch-quote-parcel{grid-template-columns:1fr}.courier-rate-actions .button{width:100%;min-width:0}.dispatch-tracking-form{grid-template-columns:1fr}.dispatch-handoff-grid{grid-template-columns:1fr}}

/* v31 easier shipping-method selection, delivery-speed badges and filters */
.shipping-rate-filter{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;border:1px solid #dce5ee;border-radius:14px;background:#f7fafc}.shipping-rate-filter>div:first-child strong,.shipping-rate-filter>div:first-child span{display:block}.shipping-rate-filter>div:first-child strong{font-size:12px}.shipping-rate-filter>div:first-child span{margin-top:4px;color:var(--muted);font-size:9px}.shipping-rate-filter-buttons{display:flex;flex-wrap:wrap;gap:7px}.rate-filter-button{appearance:none;display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #d5dee8;border-radius:999px;background:#fff;color:#46556a;font-size:10px;font-weight:850;cursor:pointer;transition:.14s ease}.rate-filter-button:hover{border-color:#8eacc7;background:#f8fbff}.rate-filter-button b{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#edf1f5;color:#657185;font-size:9px}.rate-filter-button.active{border-color:#07866f;background:#e9faf5;color:#076c5b;box-shadow:0 0 0 3px rgba(7,134,111,.08)}.rate-filter-button.active b{background:#fff;color:#076c5b}
.best-rate-section{display:grid;gap:10px;margin-top:12px}.best-rate-heading,.all-provider-rates-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.best-rate-heading h3{margin:2px 0 0;font-size:15px}.best-rate-heading p,.all-provider-rates-heading span{margin:4px 0 0;color:var(--muted);font-size:9px}.best-rate-heading>strong{padding:5px 8px;border-radius:999px;background:#eaf7f3;color:#16705f;font-size:9px}.best-rate-list{display:grid;gap:9px}.all-provider-rates{display:grid;gap:2px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.all-provider-rates-heading{align-items:center;padding:0 2px 4px}.all-provider-rates-heading strong{font-size:12px}
.quote-card.shipping-method-card{position:relative;grid-template-columns:24px 44px minmax(0,1fr) minmax(92px,auto);gap:11px;min-height:78px;padding:12px 13px;border-color:#d9e1e9;border-radius:12px;background:#fff;overflow:visible}.quote-card.shipping-method-card:hover{border-color:#78a99e;box-shadow:0 7px 18px rgba(26,55,67,.09);transform:translateY(-1px)}.quote-card.shipping-method-card:has(input:checked),.quote-card.shipping-method-card.selected{border:2px solid #0b8d74;background:linear-gradient(135deg,#f0fcf8,#fff);box-shadow:0 0 0 3px rgba(11,141,116,.09)}.quote-card.shipping-method-card.recommended{border-color:#477bca;background:linear-gradient(135deg,#f2f7ff,#fff)}.quote-card.shipping-method-card.recommended:has(input:checked),.quote-card.shipping-method-card.recommended.selected{border-color:#0b8d74;background:linear-gradient(135deg,#edfaff,#f4fff9)}.quote-card.shipping-method-card>input[type=radio]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.shipping-method-check{width:20px;height:20px;display:grid;place-items:center;border:2px solid #b7c3cf;border-radius:50%;background:#fff}.quote-card.shipping-method-card:has(input:checked) .shipping-method-check,.quote-card.shipping-method-card.selected .shipping-method-check{border-color:#0b8d74;background:#0b8d74;box-shadow:inset 0 0 0 4px #fff}.shipping-method-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(145deg,#7d8996,#5b6776);color:#fff}.shipping-method-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.shipping-method-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.shipping-method-title-row>strong{min-width:0;font-size:12px;line-height:1.35}.shipping-method-badges{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}.rate-badge{display:inline-flex;align-items:center;min-height:20px;padding:3px 7px;border-radius:999px;font-size:8px;font-weight:900;line-height:1;white-space:nowrap}.cheapest-badge{background:#bff7dc;color:#086445}.fastest-badge{background:#dff0ff;color:#1e5f91}.recommended-badge{background:#e1eaff;color:#2f5fa7}.speed-24-badge{background:#fff0c7;color:#805a00}.speed-48-badge{background:#ede7ff;color:#6246a3}.quote-card.shipping-method-card .rule-recommendation{margin:5px 0 0}.quote-card.shipping-method-card .quote-courier>span{margin-top:5px;color:#4f5f72;font-size:10px}.quote-card.shipping-method-card .quote-courier>small{margin-top:4px;color:#7a8797;font-size:9px}.quote-card.shipping-method-card .quote-extras{margin-top:6px}.quote-card.shipping-method-card .quote-price{align-self:center;text-align:right}.quote-card.shipping-method-card .quote-price strong{font-size:15px}.quote-card.shipping-method-card .quote-price small{font-size:8px}.rate-filter-empty{display:grid;place-items:center;min-height:118px;padding:18px;border:2px dashed #d5dfe8;border-radius:13px;background:#fbfcfd;text-align:center}.rate-filter-empty strong{font-size:12px}.rate-filter-empty span{margin-top:5px;color:var(--muted);font-size:10px}.provider-best-shown{padding:14px}.book-bar{align-items:center}.book-bar-selected{min-width:220px;margin-right:auto}.book-bar-selected small,.book-bar-selected strong,.book-bar-selected span{display:block}.book-bar-selected small{color:var(--muted);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.book-bar-selected strong{margin-top:3px;font-size:11px}.book-bar-selected span{margin-top:3px;color:#5e6c7d;font-size:9px}
@media(max-width:820px){.shipping-rate-filter{align-items:stretch;flex-direction:column}.shipping-rate-filter-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.rate-filter-button{justify-content:center}.quote-card.shipping-method-card{grid-template-columns:22px 40px minmax(0,1fr) auto}.shipping-method-icon{width:38px;height:38px}.shipping-method-title-row{display:block}.shipping-method-badges{justify-content:flex-start;margin-top:6px}.book-bar-selected{width:100%;min-width:0}}
@media(max-width:560px){.shipping-rate-filter-buttons{grid-template-columns:1fr}.quote-card.shipping-method-card{grid-template-columns:20px 38px 1fr}.quote-card.shipping-method-card .quote-price{grid-column:3;text-align:left}.shipping-method-icon{width:36px;height:36px}.best-rate-heading{align-items:flex-start}.best-rate-heading>strong{flex:0 0 auto}.all-provider-rates-heading{align-items:flex-start;flex-direction:column}.book-bar-selected{margin:0}.book-bar{align-items:stretch}}

/* v32 consolidated settings and custom package presets */
.settings-page{max-width:none}
.settings-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:22px;align-items:start}
.settings-menu{position:sticky;top:90px;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow)}
.settings-menu-heading{padding:22px;border-bottom:1px solid var(--line);background:linear-gradient(145deg,#f7faff,#fff)}
.settings-menu-heading h2{margin:5px 0 7px;font-size:23px;letter-spacing:-.03em}
.settings-menu-heading p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}
.settings-menu nav{display:grid;padding:10px}
.settings-menu-item{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:11px;width:100%;padding:11px;border:0;border-radius:12px;background:transparent;color:#445066;text-align:left;cursor:pointer;transition:.16s ease}
.settings-menu-item:hover{background:#f4f7fb;color:#1f2d44}
.settings-menu-item.active{background:linear-gradient(135deg,#eaf1ff,#f4f7ff);color:#2456ae;box-shadow:inset 3px 0 0 #4774d7}
.settings-menu-item>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#eef2f7;color:#607087;font-size:13px;font-weight:900}
.settings-menu-item.active>span{background:#dce8ff;color:#2456ae}
.settings-menu-item strong,.settings-menu-item small{display:block}
.settings-menu-item strong{font-size:12px}
.settings-menu-item small{margin-top:3px;color:#8792a3;font-size:9px;line-height:1.35}
.settings-content{min-width:0}
.settings-pane{display:none}
.settings-pane.active{display:block;animation:settings-pane-in .16s ease-out}
@keyframes settings-pane-in{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}
.settings-pane-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;padding:2px 2px 0}
.settings-pane-heading h2{margin:5px 0 6px;font-size:24px;letter-spacing:-.035em}
.settings-pane-heading p{max-width:760px;margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.settings-two-column{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;align-items:start}
.settings-pane-toolbar{margin-bottom:18px;padding:0}
.settings-courier-layout{grid-template-columns:minmax(0,1fr) 310px}
.settings-contained-panel{margin-top:0}
.settings-contained-panel .shipping-rules-list{padding:18px}

.package-preset-list{display:grid;gap:12px}
.package-preset-card{display:grid;grid-template-columns:84px minmax(0,1fr) auto;align-items:center;gap:17px;padding:15px 17px;border:1px solid #dce4ee;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(18,31,53,.05)}
.package-preset-card.disabled{opacity:.62;background:#fafbfc}
.package-preset-code{width:76px;height:76px;display:grid;place-items:center;border:2px solid #9eb6e9;border-radius:19px;background:linear-gradient(145deg,#eef4ff,#fff);color:#285bb4;font-size:29px;font-weight:950;letter-spacing:-.04em;cursor:pointer;box-shadow:0 8px 18px rgba(42,89,175,.10)}
.package-preset-code:hover{border-color:#4f78d3;transform:translateY(-1px)}
.package-preset-copy>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.package-preset-copy strong{font-size:15px}
.package-preset-copy p{margin:7px 0 0;color:#34445d;font-size:12px;font-weight:800}
.package-preset-copy small{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.45}
.package-preset-actions{display:flex;gap:7px}
.package-preset-empty{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:20px;padding:30px;border:2px dashed #cad7e8;border-radius:20px;background:#fbfcff}
.package-preset-empty-code,.package-preset-example-code{display:grid;place-items:center;border-radius:22px;background:linear-gradient(145deg,#315fbd,#7696e5);color:#fff;font-size:38px;font-weight:950;box-shadow:0 14px 30px rgba(39,83,167,.20)}
.package-preset-empty-code{width:92px;height:92px}
.package-preset-empty strong{font-size:17px}.package-preset-empty p{margin:7px 0 14px;color:var(--muted);font-size:12px;line-height:1.55}
.package-preset-help{display:grid;grid-template-columns:76px 1fr;align-items:center;gap:18px;margin-top:18px;padding:20px}
.package-preset-example-code{width:70px;height:70px;font-size:29px}
.package-preset-help h3{margin:0 0 6px;font-size:16px}.package-preset-help p{margin:0;color:var(--muted);font-size:11px;line-height:1.55}
.package-preset-dialog{width:min(720px,calc(100vw - 28px));padding:0;border:0;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 30px 90px rgba(16,28,49,.32)}
.package-preset-dialog::backdrop{background:rgba(14,23,38,.48);backdrop-filter:blur(3px)}
.package-preset-dialog .modal-form{margin:0}
.package-preset-dialog .modal-form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#f7faff,#fff)}
.package-preset-dialog .modal-form>header h2{margin:3px 0 0;font-size:19px}
.package-preset-dialog .modal-form>header p{margin:6px 0 0;color:var(--muted);font-size:11px}
.package-preset-dialog .modal-form>header button{width:34px;height:34px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#526074;font-size:20px;cursor:pointer}
.package-preset-dialog .modal-form>footer{display:flex;justify-content:flex-end;gap:8px;padding:15px 20px;border-top:1px solid var(--line);background:#fafbfd}
.package-preset-form-grid input{text-transform:none}
#packagePresetCode{text-transform:uppercase;font-size:20px;font-weight:900;letter-spacing:.08em;text-align:center}

.dispatch-package-presets{display:grid;gap:11px;padding:17px;border:1px solid #d8e2f1;border-radius:16px;background:#fbfcff}
.dispatch-package-presets-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.dispatch-package-presets-head span,.dispatch-package-presets-head small{display:block}
.dispatch-package-presets-head span{color:#355165;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.dispatch-package-presets-head small{margin-top:4px;color:var(--muted);font-size:9px;line-height:1.45}
.dispatch-package-preset-buttons{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px}
.dispatch-package-preset-button{display:grid;grid-template-rows:auto auto 1fr;justify-items:center;align-items:start;gap:4px;min-height:132px;padding:12px 10px;border:2px solid #d6e0ed;border-radius:15px;background:#fff;color:#26374f;text-align:center;cursor:pointer;transition:.15s ease}
.dispatch-package-preset-button:hover{border-color:#7f9edb;box-shadow:0 7px 17px rgba(39,82,163,.10);transform:translateY(-1px)}
.dispatch-package-preset-button.selected{border-color:#2e67c5;background:linear-gradient(145deg,#edf4ff,#fff);box-shadow:0 0 0 3px rgba(46,103,197,.10)}
.dispatch-package-preset-button strong{width:54px;height:54px;display:grid;place-items:center;border-radius:15px;background:#e8f0ff;color:#285bb4;font-size:24px;font-weight:950;letter-spacing:-.04em}
.dispatch-package-preset-button.selected strong{background:#2e67c5;color:#fff}
.dispatch-package-preset-button span{font-size:11px;font-weight:900}
.dispatch-package-preset-button small{color:var(--muted);font-size:8.5px;line-height:1.35}
.dispatch-package-preset-empty{grid-column:1/-1;padding:13px 14px;border:1px dashed #cbd7e6;border-radius:12px;background:#fff}
.dispatch-package-preset-empty strong,.dispatch-package-preset-empty span{display:block}
.dispatch-package-preset-empty strong{font-size:11px}.dispatch-package-preset-empty span{margin-top:4px;color:var(--muted);font-size:9px;line-height:1.45}

@media(max-width:1100px){.settings-layout{grid-template-columns:240px minmax(0,1fr)}.settings-two-column,.settings-courier-layout{grid-template-columns:1fr}.settings-courier-layout .shipping-general-column{position:static;order:-1}}
@media(max-width:820px){.settings-layout{grid-template-columns:1fr}.settings-menu{position:static}.settings-menu nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.settings-menu-heading{padding:17px}.settings-pane-heading{align-items:stretch;flex-direction:column}.package-preset-card{grid-template-columns:70px minmax(0,1fr)}.package-preset-code{width:64px;height:64px;font-size:24px}.package-preset-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:560px){.settings-menu nav{grid-template-columns:1fr}.settings-menu-item{padding:9px}.package-preset-card{grid-template-columns:58px minmax(0,1fr);gap:12px;padding:12px}.package-preset-code{width:54px;height:54px;border-radius:15px;font-size:20px}.package-preset-actions{display:grid;grid-template-columns:1fr 1fr}.package-preset-empty{grid-template-columns:1fr;text-align:center}.package-preset-empty-code{margin:auto}.package-preset-help{grid-template-columns:1fr;text-align:center}.package-preset-example-code{margin:auto}.dispatch-package-presets-head{flex-direction:column}.dispatch-package-preset-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.package-preset-dialog{width:100vw;height:100dvh;border-radius:0}.package-preset-dialog .modal-form{height:100dvh;overflow:auto}}

/* v33 compact operations shell inspired by modern marketplace ERPs */
:root{--header-height:64px;--context-width:218px;--ops-green:#19a77b;--ops-green-soft:#eaf8f3}
.app-shell{display:block;min-height:100vh;background:#f4f6f8}
.sidebar.app-header{position:sticky!important;inset:auto!important;top:0!important;z-index:110!important;width:100%!important;height:var(--header-height)!important;max-width:none!important;display:flex!important;flex-direction:row!important;align-items:stretch!important;gap:14px!important;padding:0 22px!important;overflow:visible!important;opacity:1!important;visibility:visible!important;transform:none!important;border:0!important;border-radius:0!important;background:linear-gradient(90deg,#0b1823 0%,#102633 100%)!important;box-shadow:0 5px 18px rgba(11,24,35,.14)!important}
.sidebar.app-header .sidebar-top{width:auto;min-height:var(--header-height);margin:0;display:flex;align-items:center;flex:0 0 auto}
.sidebar.app-header .brand{gap:9px;padding:0 18px 0 0;border-right:1px solid rgba(255,255,255,.10)}
.sidebar.app-header .brand-mark{width:35px;height:35px;border-radius:9px;background:linear-gradient(145deg,#1ca981,#4c78df);box-shadow:none;font-size:11px}
.sidebar.app-header .brand strong{font-size:14px}.sidebar.app-header .brand span{margin-top:1px;color:#90a5ad;font-size:9px}
.sidebar.app-header .sidebar-close{display:none!important}
.sidebar.app-header>.nav{width:auto;margin:0;display:flex!important;grid-template-columns:none!important;align-items:stretch;gap:2px!important;padding:0!important;border:0!important}
.sidebar.app-header>.nav.primary-nav{flex:1}
.sidebar.app-header>.nav.secondary{margin-left:auto!important}
.sidebar.app-header .nav-heading,.sidebar.app-header .sidebar-summary,.sidebar.app-header .sidebar-spacer{display:none!important}
.sidebar.app-header .nav-item{position:relative;width:auto;min-width:92px;min-height:var(--header-height);display:flex;grid-template-columns:none;align-items:center;justify-content:center;gap:7px;padding:0 15px;border:0;border-radius:0;background:transparent!important;box-shadow:none!important;color:#a9bac3;font-size:12px;transform:none!important}
.sidebar.app-header .nav-item:hover{color:#fff;background:rgba(255,255,255,.045)!important}
.sidebar.app-header .nav-item.active{color:#fff;background:rgba(255,255,255,.055)!important;box-shadow:inset 0 -3px 0 var(--ops-green)!important}
.sidebar.app-header .nav-icon{width:auto;height:auto;display:inline;place-items:initial;border-radius:0;background:transparent;font-size:16px}
.sidebar.app-header .nav-copy strong{font-size:12px}.sidebar.app-header .nav-copy small{display:none}
.sidebar.app-header .nav-count{min-width:20px;padding:2px 6px;color:#dff8ef;background:rgba(25,167,123,.23);font-size:9px}
.sidebar.app-header .sidebar-foot{width:auto;margin:0 0 0 5px;padding:0 0 0 14px;border:0;border-left:1px solid rgba(255,255,255,.09);border-radius:0;background:transparent;box-shadow:none}
.sidebar.app-header .sidebar-foot strong{color:#d7e7e2;font-size:9px}.sidebar.app-header .sidebar-foot span{color:#7f9994;font-size:8px}.sidebar.app-header .safety-dot{width:7px;height:7px;box-shadow:0 0 0 3px rgba(56,197,139,.11)}
.sidebar-overlay{display:none!important}
.workspace{min-height:calc(100vh - var(--header-height));background:#f4f6f8}
.topbar{top:var(--header-height);z-index:30;min-height:66px;padding:10px 22px;border-bottom:1px solid #dfe4e9;background:rgba(255,255,255,.96)}
.mobile-menu{display:none!important}
.page-heading{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:8px;align-items:baseline}
.module-kicker{grid-row:1/3;align-self:center;padding:5px 8px;border-radius:6px;color:#3a6d60;background:var(--ops-green-soft);font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap}
.page-heading h1{font-size:19px}.page-heading p{margin-top:2px;font-size:10px}
.page{padding:18px 22px 34px}.notice{margin:14px 22px 0}

.module-layout{display:grid;grid-template-columns:var(--context-width) minmax(0,1fr);gap:15px;align-items:start}
.module-menu{position:sticky;top:calc(var(--header-height) + 82px);overflow:hidden;border:1px solid #dfe5e9;border-radius:11px;background:#fff;box-shadow:0 6px 19px rgba(18,31,53,.045)}
.module-menu-heading{padding:17px 16px 14px;border-bottom:1px solid #e8ecef;background:linear-gradient(145deg,#f8fbfa,#fff)}
.module-menu-heading h2{margin:4px 0 5px;font-size:15px;letter-spacing:-.02em}.module-menu-heading p{margin:0;color:var(--muted);font-size:9px;line-height:1.5}
.module-menu nav{display:grid;padding:7px}
.module-menu-item{width:100%;display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:55px;padding:7px 8px;border:0;border-radius:8px;background:transparent;color:#435064;text-align:left;transition:.13s ease}
.module-menu-item:hover{background:#f3f7f6;color:#1f3540}.module-menu-item.active{background:#eaf7f3;color:#116c54;box-shadow:inset 3px 0 0 var(--ops-green)}
.module-menu-icon{width:29px;height:29px;display:grid;place-items:center;border-radius:7px;background:#eef2f4;color:#607080;font-size:10px;font-weight:900}.module-menu-item.active .module-menu-icon{background:#d5f0e7;color:#0d785b}
.module-menu-item>span:nth-child(2) strong,.module-menu-item>span:nth-child(2) small{display:block}.module-menu-item>span:nth-child(2) strong{font-size:10.5px}.module-menu-item>span:nth-child(2) small{margin-top:2px;color:#87929f;font-size:8px;line-height:1.3}
.module-menu-item>b{min-width:23px;padding:3px 6px;border-radius:999px;background:#eef1f4;color:#697688;text-align:center;font-size:8px}.module-menu-item.active>b{background:#fff;color:#16765d}
.module-menu-note{display:grid;gap:4px;margin:4px 9px 10px;padding:10px;border:1px solid #e4e9ed;border-radius:8px;background:#fafbfc}.module-menu-note strong{font-size:9px}.module-menu-note span{color:var(--muted);font-size:8px;line-height:1.45}
.module-content{min-width:0}
.workspace-strip{min-height:59px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 15px;border:1px solid #dfe5e9;border-radius:10px 10px 0 0;background:#fff}
.workspace-strip h2{margin:3px 0 0;font-size:14px}.workspace-strip-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.compact-filterbar{margin:0;padding:10px 12px;border:1px solid #dfe5e9;border-top:0;background:#fafbfc}
.compact-filterbar .search-field{max-width:none;min-width:220px}.compact-filterbar select{background:#fff}
.module-content>.panel.table-panel,.module-content>.catalogue-summary+.panel{border-radius:0 0 11px 11px;box-shadow:0 6px 19px rgba(18,31,53,.045)}
.module-content .catalogue-summary{margin:10px 0}
.table-wrap thead{position:sticky;top:0;z-index:2}
th{height:38px;padding:0 12px;background:#f7f9fa;font-size:9px}td{padding:11px 12px}

.orders-module-layout .dispatch-command{margin:0;border:1px solid #dfe5e9;border-radius:10px 10px 0 0;background:#fff;box-shadow:none}
.orders-module-layout .dispatch-table-panel{border-radius:0 0 11px 11px;box-shadow:0 6px 19px rgba(18,31,53,.045)}
.compact-command{grid-template-columns:minmax(260px,.9fr) minmax(360px,1.1fr);gap:18px;padding:13px 15px}.dispatch-command-copy h2{font-size:15px}.dispatch-command-copy p{max-width:620px;margin-top:4px;font-size:9px}.dispatch-command-copy .eyebrow{font-size:8px}
.dispatch-actionbar{padding:10px 12px;background:#fafbfc}.dispatch-table-head{min-height:39px;font-size:9px}

.settings-page{padding-top:18px}.settings-menu{top:calc(var(--header-height) + 82px)}
.connection-pill,.env-pill{min-height:27px;font-size:9px}.button.compact{min-height:31px;font-size:10px}

@media(max-width:1100px){:root{--context-width:190px}.module-menu-item{grid-template-columns:28px minmax(0,1fr) auto}.module-menu-item>span:nth-child(2) small{display:none}.sidebar.app-header .nav-item{min-width:78px;padding:0 10px}.sidebar.app-header .sidebar-foot{display:none}}
@media(max-width:850px){
  body.nav-open{overflow:hidden}.sidebar-overlay.visible{display:block!important;position:fixed;inset:0;z-index:109;border:0;background:rgba(9,16,28,.55);backdrop-filter:blur(3px)}
  .sidebar.app-header{position:fixed!important;inset:0 auto 0 0!important;width:min(330px,88vw)!important;height:100dvh!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;padding:18px!important;overflow:auto!important;opacity:0!important;visibility:hidden!important;transform:translateX(-100%)!important;transition:opacity .18s ease,transform .18s ease,visibility .18s!important}
  .sidebar.app-header.open{opacity:1!important;visibility:visible!important;transform:translateX(0)!important}
  .sidebar.app-header .sidebar-top{width:100%;min-height:50px;justify-content:space-between}.sidebar.app-header .brand{border:0}.sidebar.app-header .sidebar-close{display:grid!important;place-items:center;width:38px;height:38px;border:1px solid rgba(255,255,255,.12);border-radius:10px;color:#fff;background:rgba(255,255,255,.06);font-size:24px}
  .sidebar.app-header>.nav,.sidebar.app-header>.nav.primary-nav,.sidebar.app-header>.nav.secondary{width:100%;display:grid!important;gap:4px!important;margin:0!important}
  .sidebar.app-header>.nav.secondary{padding-top:10px!important;border-top:1px solid rgba(255,255,255,.08)!important}
  .sidebar.app-header .nav-item{width:100%;min-height:51px;justify-content:flex-start;padding:0 12px;border-radius:9px}.sidebar.app-header .nav-item.active{box-shadow:inset 3px 0 0 var(--ops-green)!important}.sidebar.app-header .nav-copy small{display:block;margin-top:2px;font-size:8px}.sidebar.app-header .nav-icon{width:25px;text-align:center}.sidebar.app-header .nav-count{margin-left:auto}.sidebar.app-header .sidebar-foot{display:flex;width:100%;margin-top:auto;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:9px;background:rgba(255,255,255,.03)}
  .topbar{top:0;min-height:61px;padding:9px 14px}.mobile-menu{display:inline-flex!important}.page-heading{display:block}.module-kicker{display:none}.page-heading h1{font-size:17px}.top-actions .env-pill{display:none}
  .page{padding:13px 14px 28px}.notice{margin:10px 14px 0}
  .module-layout{grid-template-columns:1fr}.module-menu{position:static}.module-menu-heading{display:none}.module-menu nav{grid-template-columns:repeat(4,minmax(120px,1fr));overflow:auto;padding:6px}.module-menu-item{min-width:120px;grid-template-columns:27px minmax(0,1fr);min-height:49px}.module-menu-item>b{display:none}.module-menu-item>span:nth-child(2) small{display:none}.module-menu-note{display:none}
  .workspace-strip{align-items:flex-start;flex-direction:column}.workspace-strip-actions{width:100%;justify-content:flex-start}.compact-filterbar .toolbar-group{align-items:stretch;flex-direction:column}.compact-filterbar .search-field,.compact-filterbar select{width:100%;max-width:none}.compact-command{grid-template-columns:1fr}.dispatch-scan{width:100%;min-width:0}
  .settings-menu{top:auto}
}
@media(max-width:560px){.top-actions .connection-pill{display:none}.top-actions{gap:5px}.workspace-strip-actions{display:grid;grid-template-columns:1fr 1fr}.workspace-strip-actions .button:first-child{grid-column:1/-1}.module-menu nav{grid-template-columns:repeat(4,minmax(105px,1fr))}.module-menu-item{min-width:105px;padding:6px}.module-menu-icon{width:25px;height:25px}.module-menu-item>span:nth-child(2) strong{font-size:9px}}

/* B&Q Marketplace sales-channel connection */
.integration-mark.teal{background:linear-gradient(145deg,#006c70,#13a5a5)}
.store-choice-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}
.bq-store-logo{width:54px!important;font-size:10px!important;letter-spacing:-.03em;background:linear-gradient(145deg,#006c70,#13a5a5)!important}
.bq-onboarding-card{background:linear-gradient(135deg,#f9ffff,#f0fbfb);border-color:#cfe6e5}
.bq-connection-form{display:grid;gap:15px;margin-top:17px;padding-top:17px;border-top:1px solid #dce7e8}
.bq-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.bq-form-grid .span-2{grid-column:1/-1}
.bq-form-grid label{display:grid;gap:6px;color:#526176;font-size:10px;font-weight:800}
.bq-form-grid label>span{font-size:10px;text-transform:uppercase;letter-spacing:.06em}
.bq-form-grid input,.bq-form-grid select{width:100%;min-width:0}
.bq-form-grid small{color:var(--muted);font-size:9px;line-height:1.45;font-weight:500;text-transform:none;letter-spacing:0}
.bq-test-status{display:grid;gap:4px;margin-top:14px;padding:11px 13px;border:1px solid #dce4ed;border-radius:12px;background:#fff}
.bq-test-status strong{font-size:11px}.bq-test-status span{color:var(--muted);font-size:9px;line-height:1.45}
.bq-test-status.success{border-color:#b9dfcf;background:#f5fcf8}.bq-test-status.success strong{color:#14734d}
.bq-test-status.error{border-color:#edc4ca;background:#fff7f8}.bq-test-status.error strong{color:#a33747}
.bq-test-status.neutral strong{color:#53637a}
.bq-account-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:11px 13px;border-radius:12px;background:#eaf8f7}
.bq-account-summary strong{font-size:11px}.bq-account-summary span{color:#49676a;font-size:9px}
.bq-capability-note{display:grid;gap:5px;padding:12px 13px;border:1px solid #d7e7e7;border-radius:12px;background:#fff}
.bq-capability-note strong{font-size:11px}.bq-capability-note span{color:var(--muted);font-size:9px;line-height:1.55}
.bq-connection-actions{align-items:center;flex-wrap:wrap}
@media(max-width:760px){.bq-form-grid{grid-template-columns:1fr}.bq-form-grid .span-2{grid-column:auto}.bq-connection-actions .button{width:100%}.bq-onboarding-card{grid-template-columns:1fr}.bq-account-summary{align-items:flex-start;flex-direction:column}}

/* v35 marketplace identity and compact multi-channel rows */
.brand-logo{width:58px;height:58px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;border:1px solid #dce4ee;border-radius:16px;background:#fff;box-shadow:0 6px 16px rgba(27,45,75,.08)}
.brand-logo img{display:block;max-width:84%;max-height:72%;object-fit:contain}
.brand-logo.small{width:36px;height:36px;border-radius:11px;box-shadow:none}
.brand-logo.circle{border-radius:50%}
.brand-logo.small.circle{border-radius:50%}
.brand-ebay img{max-width:88%}.brand-bq img{max-width:90%;max-height:78%}.brand-amazon img{max-width:82%}.brand-shopify img{max-width:74%}.brand-woocommerce img{max-width:88%}.brand-etsy img{max-width:68%}
.order-channel-cell,.dispatch-order-brand,.offer-brand-title{display:flex;align-items:center;gap:10px;min-width:0}
.order-channel-cell>div,.dispatch-order-brand>div,.offer-brand-title>div{display:grid;gap:2px;min-width:0}
.order-channel-cell small,.dispatch-order-brand small{display:block;color:var(--muted);font-size:10px;white-space:nowrap}
.dispatch-product-cell .dispatch-order-brand{margin-bottom:4px}
.branded-offer-line{align-items:center}
.offer-brand-title strong,.offer-brand-title small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.store-overview-row>.brand-logo{grid-column:auto}
.integration-choice-top>.brand-logo,.provider-choice-card>.brand-logo{margin-bottom:2px}
.enhanced-store-card .store-card-head>.brand-logo{width:46px;height:46px}
.onboarding-detail-card>.brand-logo{width:64px;height:64px}
@media(max-width:760px){.brand-logo{width:50px;height:50px}.onboarding-detail-card>.brand-logo{width:58px;height:58px}.order-channel-cell{gap:8px}}
.order-summary-channel{display:flex!important;align-items:center;gap:8px}.order-summary-channel b{font:inherit}

/* v36 Shopify Admin API connection */
.shopify-onboarding-card{background:linear-gradient(135deg,#fbfff7,#f1f9e9);border-color:#d6e7c5}
.shopify-onboarding-card .bq-account-summary{background:#eef8e7;color:#304b23}
.shopify-onboarding-card .bq-capability-note{border-color:#d9e8cb}
.shopify-token-field.hidden,.shopify-client-field.hidden{display:none!important}

.login-mfa-setup{margin-top:20px;padding:18px;border:1px solid #d7dee8;border-radius:12px;background:#f8fafc}.login-mfa-setup h2{margin:5px 0 8px}.login-mfa-setup details{margin:10px 0 15px}.long-code{display:block;white-space:normal;overflow-wrap:anywhere;margin-top:8px}.recovery-codes{font:600 14px/1.8 ui-monospace,monospace;padding:14px;background:#172033;color:#fff;border-radius:10px;user-select:all}
.current-user{font-size:12px;font-weight:700;color:#4d596a}.security-review-actions{display:grid;gap:10px}.security-review-actions .button{justify-content:space-between}.security-review-actions .button span{font-size:11px;opacity:.75}.security-review-grid{align-items:start}

.compliance-posture-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}
.compliance-posture-item{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border:1px solid var(--line,#dfe4ea);border-radius:12px;padding:13px;background:#fff}
.compliance-posture-item strong,.compliance-posture-item small{display:block}.compliance-posture-item small{margin-top:4px;color:var(--muted,#667085);line-height:1.35}
.compliance-posture-item.fail{border-color:#f3b5b5;background:#fff7f7}.compliance-posture-item.warning,.compliance-posture-item.not_configured{border-color:#f0d49a;background:#fffaf0}.compliance-posture-item.pass{border-color:#b9dfca;background:#f7fcf9}

/* v38.1 separate store Listings workspace and merged Product masters */
.listings-workspace{min-width:0}
.listings-workspace-strip{border-radius:11px 11px 0 0}
.listings-workspace-strip>div:first-child p{margin:4px 0 0;color:var(--muted);font-size:9px;line-height:1.45}
.listing-store-tabs-wrap{padding:0 12px;border:1px solid #dfe5e9;border-top:0;background:#fff}
.listing-store-tabs{display:flex;gap:3px;overflow:auto;padding:8px 0 0;scrollbar-width:thin}
.listing-store-tab{position:relative;display:flex;align-items:center;gap:8px;min-width:150px;min-height:50px;padding:8px 12px 10px;border:0;border-bottom:3px solid transparent;background:transparent;color:#536273;text-align:left;cursor:pointer;white-space:nowrap}
.listing-store-tab:hover{background:#f7faf9;color:#20313c}
.listing-store-tab.active{border-bottom-color:var(--ops-green);background:#f2faf7;color:#0c7257}
.listing-store-tab>span:last-child strong,.listing-store-tab>span:last-child small{display:block}
.listing-store-tab>span:last-child strong{font-size:10.5px}.listing-store-tab>span:last-child small{margin-top:2px;color:#88949f;font-size:8px}
.listing-store-tab.active>span:last-child small{color:#548979}
.amazon-listing-template{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;gap:13px;margin:10px 0;padding:14px 16px;border:1px solid #ead9b7;border-radius:11px;background:linear-gradient(135deg,#fffaf0,#fff)}
.amazon-listing-template.hidden{display:none}
.amazon-template-mark{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#18202c,#344257);color:#ffb13b;font:900 28px/1 Georgia,serif}
.amazon-listing-template h3,.amazon-listing-template p{margin:0}.amazon-listing-template h3{margin-top:3px;font-size:14px}.amazon-listing-template p{margin-top:4px;max-width:850px;color:#6c7682;font-size:9.5px;line-height:1.5}
.listings-filterbar{margin:0;border-top:1px solid #dfe5e9}
.listing-result-count{margin-left:auto;color:#6c7888;font-size:9px;font-weight:800;white-space:nowrap}
.listings-table-panel{border-radius:0 0 11px 11px!important}
.listings-table{min-width:1180px}
.listing-product-cell{display:grid;grid-template-columns:38px minmax(120px,1fr);align-items:center;gap:9px;min-width:185px}
.listing-product-cell img,.listing-image-placeholder{width:38px;height:38px;border:1px solid #e1e6eb;border-radius:8px;background:#fff;object-fit:contain}
.listing-image-placeholder{display:grid;place-items:center;color:#a8b0ba;background:#f7f9fa;font-size:15px}
.listing-product-cell strong,.listing-product-cell small{display:block}.listing-product-cell strong{font-size:10.5px;line-height:1.3}.listing-product-cell small{margin-top:3px;color:var(--muted);font-size:8px}
.listing-issue-count{display:inline-flex;padding:4px 7px;border-radius:999px;background:#fff1e5;color:#a04a00;font-size:8px;font-weight:900}
@media(max-width:850px){.listing-store-tab{min-width:135px}.amazon-listing-template{grid-template-columns:42px 1fr}.amazon-template-mark{width:42px;height:42px}.amazon-listing-template>.status-badge{grid-column:1/-1;justify-self:start}.listing-result-count{display:none}}

/* v38.1.1 collapsible marketplace variation rows */
.listing-parent-product{display:flex;align-items:center;gap:5px;min-width:225px}
.listing-expand-button,.listing-expand-spacer{width:24px;min-width:24px;height:30px}
.listing-expand-button{display:grid;place-items:center;border:1px solid #d9e2e6;border-radius:7px;background:#fff;color:#3d5661;font-size:14px;font-weight:900;cursor:pointer;transition:.15s ease}
.listing-expand-button:hover{border-color:#95cbbd;background:#eef9f5;color:#08785c}
.listing-expand-spacer{display:block}
.listing-parent-row.has-variations td{background:#fbfcfc}
.listing-parent-row.has-variations:hover td{background:#f5faf8}
.listing-variant-products{display:inline-flex;padding:4px 7px;border-radius:999px;background:#edf4f7;color:#48616d;font-size:8px;font-weight:900;white-space:nowrap}
.listing-variation-row td{background:#f8fafb;border-top-color:#edf0f2;color:#465462}
.listing-variation-row.hidden{display:none}
.listing-variation-row:hover td{background:#f1f7f5}
.listing-variation-product{display:flex;align-items:center;gap:5px;padding-left:24px;min-width:220px}
.variation-branch{width:18px;min-width:18px;color:#91a0aa;font-size:15px;text-align:center}
.listing-product-cell.compact{grid-template-columns:30px minmax(120px,1fr);min-width:170px}
.listing-product-cell.compact img,.listing-product-cell.compact .listing-image-placeholder{width:30px;height:30px;border-radius:7px}
.variation-detail{max-width:300px}
.variation-detail small{white-space:normal;line-height:1.45;color:#6f7b85}
@media(max-width:850px){.listing-parent-product{min-width:205px}.listing-variation-product{padding-left:12px;min-width:200px}}


/* v38.1.2 multi-level variation sorting and filtering */
.listing-variation-controls-row.hidden{display:none}
.listing-variation-controls-row td{padding:0!important;background:#f3f8f6!important;border-top:1px solid #e2ece8!important}
.variation-controls{padding:12px 14px 13px 48px;border-left:3px solid #8dcbb9}
.variation-controls-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.variation-controls-head strong,.variation-controls-head small{display:block}.variation-controls-head strong{font-size:10.5px;color:#29463d}.variation-controls-head small{margin-top:3px;color:#75847e;font-size:8px;line-height:1.45}
.variation-controls-actions{display:flex;align-items:center;gap:9px;color:#66766f;font-size:8px;font-weight:800;white-space:nowrap}
.variation-rules{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:8px}
.variation-rule{display:grid;grid-template-columns:minmax(0,1fr) minmax(105px,.8fr);gap:7px 8px;padding:9px;border:1px solid #dbe8e3;border-radius:9px;background:#fff}
.variation-rule-heading{grid-column:1/-1;display:flex;align-items:center;gap:7px;min-width:0}.variation-rule-heading strong{font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.variation-priority{width:20px;height:20px;display:grid;place-items:center;border-radius:999px;background:#0b8061;color:#fff;font-size:8px;font-weight:900}
.variation-priority-buttons{display:flex;gap:3px;margin-left:auto}.variation-priority-buttons button{width:25px;height:23px;border:1px solid #d9e3df;border-radius:6px;background:#f8fbfa;color:#4c625a;font-size:10px;font-weight:900;cursor:pointer}.variation-priority-buttons button:hover:not(:disabled){border-color:#82c8b4;background:#edf8f4;color:#08785c}.variation-priority-buttons button:disabled{opacity:.28;cursor:default}
.variation-rule label{display:grid;gap:3px;min-width:0}.variation-rule label>span{color:#77857f;font-size:7px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.variation-rule select{width:100%;min-width:0;height:31px;padding:0 7px;border:1px solid #d9e2df;border-radius:7px;background:#fff;color:#31433d;font-size:8.5px}
.listing-variation-empty td{padding:15px 18px 15px 52px!important;background:#fbfdfc!important;color:#64746e}.listing-variation-empty strong,.listing-variation-empty span{display:block}.listing-variation-empty strong{font-size:9.5px}.listing-variation-empty span{margin-top:3px;font-size:8px}
@media(max-width:850px){.variation-controls{padding-left:15px}.variation-controls-head{display:grid}.variation-controls-actions{justify-content:space-between}.variation-rules{grid-template-columns:1fr}}

/* v38.1.3 product marketplace badges and master-listing controls */
.product-channel-logos{display:flex;align-items:center;gap:6px;min-height:34px;flex-wrap:wrap}.product-channel-badge{position:relative;display:inline-grid;place-items:center}.product-channel-badge .brand-logo.small{width:32px;height:32px;border-radius:50%;background:#fff}.product-channel-badge.master .brand-logo{border-color:#0b8f76;box-shadow:0 0 0 2px rgba(11,143,118,.14)}.product-channel-badge .master-marker{position:absolute;right:-3px;top:-5px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;background:#0b8f76;color:#fff;font-size:9px;font-weight:900;border:2px solid #fff}.product-channel-count{font-size:11px;color:var(--muted);margin-left:2px}.product-master-copy{display:block;color:#0b725f!important;font-weight:700}.offer-line.master-offer-line{background:#f1fbf8;border-radius:12px;padding:11px 10px;margin:4px -10px;border-top:1px solid #cdeee5}.master-listing-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.master-listing-pill{display:inline-flex;align-items:center;gap:5px;border-radius:999px;background:#dff7ef;color:#086d5b;padding:5px 8px;font-size:10px;font-weight:900}.master-listing-pill.default{background:#edf3ff;color:#315b91}.master-listing-defaults{margin-top:18px}.master-default-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(320px,1.2fr) auto;gap:16px;align-items:end}.master-default-layout label{display:grid;gap:6px;font-weight:700;font-size:13px}.master-default-layout select{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 12px;background:#fff;color:var(--ink);font:inherit}.master-default-layout small{color:var(--muted);font-weight:500;line-height:1.45}.master-default-explainer{display:grid;gap:5px;background:#f7f9fc;border:1px solid var(--border);border-radius:12px;padding:12px 14px}.master-default-explainer span{font-size:12px;line-height:1.5;color:var(--muted)}@media(max-width:900px){.master-default-layout{grid-template-columns:1fr}.master-default-layout .button{width:100%}}

/* v38.2 Shopify spreadsheet listing editor */
.listing-select-head,.listing-select-cell{width:34px;min-width:34px;text-align:center!important;padding-left:8px!important;padding-right:8px!important}.listing-select-head input,.listing-select-cell input{width:15px;height:15px;accent-color:#0b8061;cursor:pointer}.listing-selection-count{min-width:70px;text-align:right}.listing-parent-row.selected td{background:#f2faf7!important}.listing-parent-row.selected:hover td{background:#edf8f4!important}
.shopify-editor-dialog{width:min(98vw,1780px);height:min(94vh,980px);max-width:none;max-height:none;padding:0;border:0;border-radius:14px;background:#fff;box-shadow:0 30px 80px rgba(15,30,40,.28);overflow:hidden}.shopify-editor-dialog::backdrop{background:rgba(15,27,36,.56);backdrop-filter:blur(2px)}.shopify-editor-shell{height:100%;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;background:#f7f9fb}.shopify-editor-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border-bottom:1px solid #dce3e7;background:#fff}.shopify-editor-title{display:flex;align-items:center;gap:11px;min-width:0}.shopify-editor-title h2,.shopify-editor-title p{margin:0}.shopify-editor-title h2{font-size:18px}.shopify-editor-title p{margin-top:3px;color:#6f7b86;font-size:9.5px}.shopify-editor-brand{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#95bf47;color:#fff;font-weight:900;font-size:17px}.shopify-editor-header-actions,.shopify-editor-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.shopify-editor-notice{display:none;padding:9px 18px;border-bottom:1px solid #ead7a8;background:#fff8e8;color:#755013;font-size:9.5px;line-height:1.45}.shopify-editor-notice.visible{display:block}.shopify-editor-notice.ok{border-color:#cce8dc;background:#f1fbf7;color:#176850}.shopify-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 18px;border-bottom:1px solid #dce3e7;background:#fbfcfd}.shopify-editor-stats{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.shopify-editor-stat{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid #dbe3e7;border-radius:999px;background:#fff;color:#4e5e68;font-size:8.5px;font-weight:800}.shopify-editor-stat.changed{border-color:#9fd8c7;background:#eefaf6;color:#0a765b}.shopify-sheet-wrap{min-height:0;overflow:auto;background:#fff}.shopify-sheet{border-collapse:separate;border-spacing:0;min-width:1570px;width:100%;font-size:9px}.shopify-sheet th{position:sticky;top:0;z-index:5;height:37px;padding:7px 8px;border-right:1px solid #dde4e8;border-bottom:1px solid #ced8dd;background:#edf2f4;color:#40515c;text-align:left;font-size:8px;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap}.shopify-sheet td{height:38px;padding:0;border-right:1px solid #e3e8eb;border-bottom:1px solid #e4e9ec;background:#fff;vertical-align:middle}.shopify-sheet th:first-child,.shopify-sheet td:first-child{position:sticky;left:0;z-index:4}.shopify-sheet th:nth-child(2),.shopify-sheet td:nth-child(2){position:sticky;left:54px;z-index:4;box-shadow:2px 0 3px rgba(30,50,60,.05)}.shopify-sheet th:first-child,.shopify-sheet th:nth-child(2){z-index:7}.shopify-sheet .sheet-row-type{width:54px;min-width:54px}.shopify-sheet .sheet-product{width:220px;min-width:220px}.shopify-sheet-product-row td{background:#f9fbfc}.shopify-sheet-product-row td:first-child,.shopify-sheet-product-row td:nth-child(2){background:#f3f7f8}.shopify-sheet-variant-row td:first-child,.shopify-sheet-variant-row td:nth-child(2){background:#fff}.shopify-sheet-row-label{display:grid;place-items:center;height:100%;font-weight:900;color:#63727c}.shopify-sheet-row-label.product{color:#0b765c}.shopify-sheet-product-cell{padding:6px 9px;min-height:38px}.shopify-sheet-product-cell strong,.shopify-sheet-product-cell small{display:block}.shopify-sheet-product-cell strong{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:198px}.shopify-sheet-product-cell small{margin-top:2px;color:#7d8992;font-size:7.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:198px}.shopify-sheet-variant-row .shopify-sheet-product-cell{padding-left:22px}.shopify-sheet input,.shopify-sheet select{display:block;width:100%;height:37px;margin:0;padding:0 7px;border:0;border-radius:0;background:transparent;color:#25343d;font:inherit;outline:none}.shopify-sheet select{padding-right:24px}.shopify-sheet input:focus,.shopify-sheet select:focus{position:relative;z-index:2;box-shadow:inset 0 0 0 2px #139b78;background:#fff}.shopify-sheet td.dirty{background:#fff7d9!important;box-shadow:inset 0 0 0 1px #e4c156}.shopify-sheet td.dirty input,.shopify-sheet td.dirty select{background:#fff7d9}.shopify-sheet .sheet-readonly{display:flex;align-items:center;height:37px;padding:0 8px;color:#687680;background:#f8fafb}.shopify-sheet .sheet-readonly.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.shopify-sheet .sheet-price{min-width:92px}.shopify-sheet .sheet-wide{min-width:180px}.shopify-sheet .sheet-tags{min-width:240px}.shopify-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 18px;border-top:1px solid #dce3e7;background:#fff;color:#65737d}.shopify-editor-footer strong,.shopify-editor-footer span{display:block}.shopify-editor-footer strong{font-size:9px;color:#2e404a}.shopify-editor-footer span{margin-top:2px;font-size:8px}.shopify-editor-footer>div:last-child{font-size:9px;font-weight:900;color:#50606a;text-align:right}.shopify-editor-result-error{color:#a13131}.shopify-editor-result-success{color:#087156}@media(max-width:900px){.shopify-editor-dialog{width:100vw;height:100vh;border-radius:0}.shopify-editor-header,.shopify-editor-toolbar,.shopify-editor-footer{align-items:flex-start;flex-direction:column}.shopify-editor-header-actions,.shopify-editor-actions{width:100%}.shopify-editor-actions .button{flex:1}.listing-selection-count{display:none}}

/* v38.3 Shopify advanced product editor */
.shopify-sheet{table-layout:fixed;width:max-content;min-width:100%;}
.shopify-sheet th{position:sticky;top:0;z-index:5;box-sizing:border-box;overflow:visible;}
.shopify-sheet th>span:first-child{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:8px;}
.shopify-col-resize{position:absolute;top:0;right:-4px;width:9px;height:100%;cursor:col-resize;z-index:12;touch-action:none;}
.shopify-col-resize::after{content:"";position:absolute;top:7px;bottom:7px;left:4px;width:1px;background:#c6d1d7;}
.shopify-col-resize:hover::after,.shopify-col-resize:active::after{width:2px;background:#0b8f76;}
.shopify-sheet th:first-child,.shopify-sheet td:first-child{left:0;}
.shopify-sheet th:nth-child(2),.shopify-sheet td:nth-child(2){left:70px;}
.shopify-sheet td{box-sizing:border-box;overflow:hidden;}
.shopify-sheet-product-row td{height:78px;}
.shopify-sheet-variant-row td{height:42px;}
.shopify-sheet input,.shopify-sheet select,.shopify-sheet textarea{box-sizing:border-box;min-width:0;}
.shopify-sheet input,.shopify-sheet select{height:41px;}
.shopify-sheet-product-row input,.shopify-sheet-product-row select{height:77px;}
.shopify-sheet textarea{display:block;width:100%;height:77px;min-height:77px;max-height:77px;margin:0;padding:8px;border:0;border-radius:0;background:transparent;color:#25343d;font:inherit;line-height:1.35;resize:none;outline:none;overflow:auto;}
.shopify-sheet textarea:focus{position:relative;z-index:2;box-shadow:inset 0 0 0 2px #139b78;background:#fff;}
.shopify-sheet td.dirty textarea{background:#fff7d9;}
.shopify-sheet .sheet-readonly{height:100%;min-height:41px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.shopify-sheet-product-row .sheet-readonly{min-height:77px;}
.shopify-sheet-product-cell{position:relative;height:100%;box-sizing:border-box;overflow:hidden;}
.shopify-sheet-product-cell strong,.shopify-sheet-product-cell small{max-width:none;}
.shopify-sheet-product-row .shopify-sheet-product-cell{padding:9px 10px 7px;}
.sheet-inline-action{position:absolute;left:9px;bottom:7px;border:0;background:transparent;padding:0;color:#08765d;font:inherit;font-size:8px;font-weight:900;cursor:pointer;}
.sheet-inline-action:hover{text-decoration:underline;}
.shopify-new-variant-options{display:flex;gap:5px;align-items:center;overflow-x:auto;padding-top:3px;padding-bottom:1px;}
.shopify-new-variant-options label{display:grid;gap:2px;min-width:86px;}
.shopify-new-variant-options label span{font-size:6.5px;text-transform:uppercase;letter-spacing:.04em;color:#77857f;font-weight:900;}
.shopify-new-variant-options input{height:24px!important;border:1px solid #d5e0dc!important;border-radius:5px!important;background:#fff!important;padding:0 5px!important;font-size:8px!important;}
.shopify-sheet-variant-row.new-variant td{background:#f2fbf7;}
.shopify-sheet-variant-row.new-variant td:first-child,.shopify-sheet-variant-row.new-variant td:nth-child(2){background:#eaf8f2;}
.shopify-sheet-variant-row.delete-pending td{background:#fff1f1!important;color:#8a4d4d;}
.shopify-sheet-variant-row.delete-pending input,.shopify-sheet-variant-row.delete-pending select{opacity:.55;text-decoration:line-through;pointer-events:none;}
.shopify-sheet-variant-row.delete-pending .shopify-sheet-product-cell strong,.shopify-sheet-variant-row.delete-pending .shopify-sheet-product-cell small{text-decoration:line-through;opacity:.65;}
.sheet-action-cell{padding:0 7px!important;text-align:center;}
.sheet-action-cell .row-action{font-size:8px;padding:5px 7px;}
.row-action.danger{color:#a62e2e;border-color:#eccaca;background:#fff8f8;}
.row-action.danger:hover{background:#fff0f0;}
.shopify-editor-toolbar{position:relative;z-index:8;}
.shopify-editor-actions .button{white-space:nowrap;}
@media(max-width:900px){.shopify-sheet th:nth-child(2),.shopify-sheet td:nth-child(2){left:70px}.shopify-sheet-product-row td{height:66px}.shopify-sheet textarea{height:65px;min-height:65px;max-height:65px}.shopify-sheet-product-row input,.shopify-sheet-product-row select{height:65px}}

/* v38.4 static application routes */
.static-brand,.sidebar.app-header .nav-item,.listing-store-tab,.attention-list a,.text-button[href]{text-decoration:none}
.attention-list a{width:100%;display:flex;justify-content:space-between;align-items:center;padding:13px 0;border:0;border-bottom:1px solid #eef1f4;background:transparent;color:#354052;font-size:12px}
.attention-list a:last-child{border-bottom:0}.attention-list a:hover{color:#0d765b}
.shopify-editor-static-page{padding:18px 22px 22px}
.shopify-editor-page-frame{height:calc(100vh - var(--header-height) - 106px);min-height:620px;overflow:hidden;border:1px solid #d6dfe4;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(18,31,53,.07)}
.shopify-editor-page-frame .shopify-editor-shell{height:100%}
.shopify-editor-page-frame .shopify-editor-header{position:relative;z-index:3}
@media(max-width:900px){.shopify-editor-static-page{padding:0}.shopify-editor-page-frame{height:calc(100dvh - var(--header-height));min-height:0;border:0;border-radius:0}.shopify-editor-page-frame .shopify-editor-header,.shopify-editor-page-frame .shopify-editor-toolbar,.shopify-editor-page-frame .shopify-editor-footer{align-items:flex-start;flex-direction:column}}

/* v38.4.1 B&Q spreadsheet editor */
.bq-editor-brand{width:52px;font-size:9px;letter-spacing:.02em;background:#007a5e}.shopify-sheet tr[data-bq-offer-row] td{height:78px}.shopify-sheet tr[data-bq-offer-row] input{height:77px}

/* v38.4.2 routing hotfix: no visual changes. */

/* v38.5 sourcing and landed-cost workspace */
.sourcing-content{min-width:0}.module-menu-item[href]{text-decoration:none;color:inherit}.inline-rate-field{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted,#667085);white-space:nowrap}.inline-rate-field input{width:92px;padding:8px 10px;border:1px solid var(--border,#d8dee8);border-radius:8px;background:#fff}.sourcing-rate-note,.invoice-capability-note{margin:0 0 16px;padding:11px 14px;border:1px solid #dce5f0;background:#f7f9fc;border-radius:10px;color:#536071;font-size:13px}.sourcing-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin:0 0 14px}.sourcing-summary-card{padding:14px 16px;border:1px solid #e2e8f0;background:#fff;border-radius:12px}.sourcing-summary-card span{display:block;font-size:12px;color:#6b7280;margin-bottom:4px}.sourcing-summary-card strong{font-size:20px}.sourcing-table{width:100%;border-collapse:collapse}.sourcing-table th,.sourcing-table td{padding:11px 12px;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:middle}.sourcing-table th{font-size:12px;color:#667085;background:#fafbfc;white-space:nowrap}.sourcing-product-cell{display:flex;align-items:center;gap:10px;min-width:240px}.sourcing-product-cell img{width:42px;height:42px;object-fit:contain;border:1px solid #e6eaf0;border-radius:8px;background:#fff}.sourcing-product-cell .placeholder{width:42px;height:42px;display:grid;place-items:center;border:1px solid #e6eaf0;border-radius:8px;background:#f8fafc;color:#98a2b3}.sourcing-product-cell strong,.sourcing-product-cell small{display:block}.sourcing-product-cell small{color:#7a8492;margin-top:3px}.sourcing-method{display:inline-flex;padding:4px 8px;border-radius:999px;background:#f2f4f7;font-size:12px}.sourcing-method.components{background:#eef6ff;color:#175cd3}.sourcing-method.direct{background:#f9f5ff;color:#6941c6}.sub-strip{margin-bottom:14px}.sub-strip p{margin:4px 0 0;color:#667085}.sourcing-cost-form{width:min(1120px,96vw)}.sourcing-cost-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) 260px;gap:16px;align-items:start}.sourcing-editor-card,.sourcing-total-card{border:1px solid #e3e8ef;border-radius:12px;background:#fff;padding:16px}.sourcing-editor-card h3{margin:0 0 14px}.segmented-control{display:flex;gap:8px;margin-bottom:14px}.segmented-control label{flex:1}.segmented-control input{position:absolute;opacity:0;pointer-events:none}.segmented-control span{display:block;padding:10px 12px;border:1px solid #d9e0e8;border-radius:9px;text-align:center;cursor:pointer;background:#fff}.segmented-control input:checked+span{border-color:#2f6fed;background:#eef4ff;color:#1849a9;font-weight:700}.sourcing-bom-head,.invoice-lines-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.sourcing-bom-rows{display:grid;gap:8px}.sourcing-bom-row{display:grid;grid-template-columns:minmax(160px,1fr) 90px 110px 34px;gap:8px;align-items:center}.sourcing-bom-row select,.sourcing-bom-row input{width:100%}.sourcing-bom-row .bom-line-total{font-weight:700;text-align:right}.icon-danger{border:0;background:transparent;color:#b42318;font-size:18px;cursor:pointer}.sourcing-total-card{position:sticky;top:14px;background:#0f172a;color:#fff}.sourcing-total-card>span{display:block;color:#cbd5e1;font-size:12px}.sourcing-total-card>strong{display:block;font-size:28px;margin:3px 0 14px}.sourcing-total-card div{display:flex;justify-content:space-between;gap:8px;padding:6px 0;color:#dbe3ee}.sourcing-total-card hr{border:0;border-top:1px solid #334155;margin:10px 0}.sourcing-total-card em{display:block;margin-top:7px;color:#93c5fd;font-style:normal;font-weight:700}.invoice-list{display:grid;gap:12px}.invoice-card{border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:15px 16px}.invoice-card-head{display:flex;gap:14px;align-items:center;justify-content:space-between}.invoice-card-main{min-width:0}.invoice-card-main strong{display:block}.invoice-card-main small{display:block;color:#6b7280;margin-top:3px}.invoice-card-actions{display:flex;gap:8px;align-items:center}.invoice-status{display:inline-flex;padding:4px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:12px}.invoice-status.parsed,.invoice-status.reviewed{background:#ecfdf3;color:#027a48}.invoice-status.needs_processing,.invoice-status.needs_mapping{background:#fffaeb;color:#b54708}.invoice-meta-grid{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:10px;margin-top:12px}.invoice-meta-grid div{padding:9px 10px;border:1px solid #edf1f5;border-radius:9px}.invoice-meta-grid span{display:block;font-size:11px;color:#7a8492}.invoice-meta-grid strong{display:block;margin-top:2px}.invoice-file-picker small{display:block;color:#667085;margin-top:6px}.invoice-review-form{width:min(1180px,97vw)}.invoice-review-table-wrap{max-height:360px;margin-bottom:14px}.invoice-review-table-wrap input,.invoice-review-table-wrap select{min-width:100px}.invoice-review-table-wrap td:nth-child(2) input{min-width:250px}.invoice-review-table-wrap td:nth-child(6) select{min-width:220px}.source-cost-missing{color:#b54708;font-weight:600}.source-cost-ready{color:#027a48;font-weight:600}
@media (max-width:1100px){.sourcing-cost-grid{grid-template-columns:1fr}.sourcing-total-card{position:static}.sourcing-summary{grid-template-columns:repeat(2,minmax(150px,1fr))}.invoice-meta-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}}
@media (max-width:700px){.sourcing-summary{grid-template-columns:1fr}.inline-rate-field{white-space:normal}.workspace-strip-actions{flex-wrap:wrap}.sourcing-bom-row{grid-template-columns:1fr 80px 90px 34px}.invoice-card-head{align-items:flex-start;flex-direction:column}.invoice-card-actions{width:100%;flex-wrap:wrap}}
.source-alias-count{display:inline-flex;padding:4px 8px;border-radius:999px;background:#f2f4f7;color:#475467;font-size:12px;cursor:help}.invoice-lines-actions{display:flex;gap:8px;flex-wrap:wrap}.invoice-mapping-table{min-width:1180px}.invoice-mapping-table td{vertical-align:top}.invoice-ref-cell{min-width:125px}.invoice-ref-cell input{display:block;width:118px;margin-bottom:6px}.invoice-description-cell{min-width:360px}.invoice-description-cell>input{width:100%;min-width:340px}.invoice-description-parts{display:grid;grid-template-columns:1fr 120px;gap:6px;margin-top:6px}.invoice-description-cell small{display:block;max-width:440px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7a8492;margin-top:5px}.invoice-component-cell{min-width:270px}.invoice-component-cell select{display:block;width:100%;min-width:250px}.invoice-component-cell .row-action{margin-top:7px}.invoice-match-badge{display:inline-flex;margin-top:6px;padding:3px 7px;border-radius:999px;font-size:11px}.invoice-match-badge.matched{background:#ecfdf3;color:#027a48}.invoice-match-badge.unmatched{background:#fffaeb;color:#b54708}.invoice-bom-suggestions{margin:14px 0;padding:14px;border:1px solid #dce5f0;border-radius:12px;background:#f8fafc}.invoice-bom-suggestion-list{display:grid;gap:10px}.invoice-bom-card{display:grid;gap:10px;padding:13px;border:1px solid #e3e8ef;border-radius:10px;background:#fff}.invoice-bom-card>div>small{display:block;color:#667085;margin-top:3px}.invoice-bom-lines{display:flex;gap:6px;flex-wrap:wrap}.invoice-bom-lines span{padding:4px 7px;border-radius:7px;background:#f2f4f7;font-size:12px}.invoice-bom-lines span.ready{background:#ecfdf3;color:#027a48}.invoice-bom-lines span.missing{background:#fef3f2;color:#b42318}.invoice-bom-actions{display:flex;gap:8px;align-items:center}.invoice-bom-actions select{min-width:320px;flex:1}.invoice-meta-grid small{display:block;color:#98a2b3;margin-top:2px;font-size:10px}
@media (max-width:700px){.invoice-description-parts{grid-template-columns:1fr}.invoice-bom-actions{align-items:stretch;flex-direction:column}.invoice-bom-actions select{min-width:0;width:100%}}

/* v38.7 sourcing purchase lots, invoice stock and product BOM assignment */
.sourcing-settings-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;flex-wrap:wrap}.inline-cost-method{display:grid;gap:4px;font-size:12px;color:#667085}.inline-cost-method select{min-width:215px;padding:8px 10px;border:1px solid var(--border,#d8dee8);border-radius:8px;background:#fff;color:#101828}.sourcing-summary-card small{display:block;margin-top:3px;color:#667085;font-size:11px}.sourcing-table td small{display:block;margin-top:3px}.stock-accuracy{width:max-content;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:650}.stock-accuracy.stocktake{background:#ecfdf3;color:#027a48}.stock-accuracy.invoice_estimate{background:#fffaeb;color:#b54708}.stock-accuracy.not_set{background:#f2f4f7;color:#667085}.component-actions{min-width:245px;white-space:normal}.component-actions .row-action{margin:2px 3px 2px 0}.invoice-receive-cell{text-align:center!important}.invoice-receive-check{width:18px;height:18px;accent-color:#2563eb}.invoice-receive-check:disabled{opacity:.45}.source-lot-history{width:min(1100px,96vw)}.source-lot-history .table-wrap{max-height:430px}.stock-adjustment-history{margin-top:14px;border-top:1px solid #e5e7eb;padding-top:12px}.stock-adjustment-history h3{margin:0 0 8px;font-size:14px}.stock-adjustment-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(110px,.5fr) minmax(180px,1fr);gap:10px;align-items:center;padding:8px 10px;border:1px solid #edf1f5;border-radius:8px;margin-top:7px;background:#fafbfc;font-size:12px}.stock-adjustment-row strong{font-size:13px}.stock-adjustment-row span:last-child{text-align:right;color:#667085}.invoice-receipt-note{display:block;color:#027a48;margin-top:3px}.invoice-fx-note{display:block;color:#667085;margin-top:3px}.bom-stock-note{display:block;font-size:11px;color:#667085;margin-top:2px}.bom-stock-low{color:#b54708;font-weight:650}@media(max-width:900px){.sourcing-settings-actions{justify-content:flex-start}.stock-adjustment-row{grid-template-columns:1fr}.stock-adjustment-row span:last-child{text-align:left}.component-actions{min-width:190px}}
.invoice-po-fx{margin:14px 0;padding:12px;border:1px solid #dce5f0;border-radius:10px;background:#f8fafc}.invoice-po-fx-rows{display:grid;gap:8px}.invoice-po-fx-row{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(240px,1fr) minmax(260px,1fr);gap:10px;align-items:center;padding:9px 10px;background:#fff;border:1px solid #e5eaf0;border-radius:8px}.invoice-po-fx-row label{display:flex;align-items:center;gap:7px;font-size:12px;color:#667085}.invoice-po-fx-row input{min-width:110px;flex:1}@media(max-width:900px){.invoice-po-fx-row{grid-template-columns:1fr}.invoice-po-fx-row label{align-items:flex-start;flex-direction:column}}

/* v38.8 product BOM browsing, searchable assignment and product merging */
.sourcing-bom-head>div small{display:block;margin-top:3px;color:#667085;font-weight:400}.source-component-picker{margin-top:12px;padding:12px;border:1px solid #dce5f0;border-radius:10px;background:#f8fafc}.source-picker-search{margin-bottom:10px}.source-component-picker-results,.assign-product-results{display:grid;gap:7px;max-height:320px;overflow:auto}.source-component-pick,.assign-product-result{width:100%;border:1px solid #e2e8f0;border-radius:9px;background:#fff;padding:10px 11px;text-align:left;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;cursor:pointer;color:inherit}.source-component-pick:hover,.assign-product-result:hover{border-color:#9db7e8;background:#f8fbff}.source-component-pick.already-used{background:#f7f9fc}.source-component-pick span strong,.source-component-pick span small,.assign-product-result strong,.assign-product-result small{display:block}.source-component-pick small,.assign-product-result small{margin-top:3px;color:#667085;font-size:11px}.source-component-pick em{font-style:normal;color:#175cd3;font-weight:700;font-size:12px}.source-component-pick.already-used em{color:#667085}.source-picker-empty{padding:16px;text-align:center;color:#667085;border:1px dashed #d6dde8;border-radius:9px;background:#fff}.assign-product-result{display:block}.assign-product-selected{padding:10px 12px;border:1px solid #a6d7c2;border-radius:9px;background:#ecfdf3;color:#065f46}.assign-product-selected small{margin-left:6px;color:#477665}.product-merge-form{width:min(760px,96vw)}.product-merge-source{padding:12px 14px;margin-bottom:14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.product-merge-source>span{display:block;color:#667085;font-size:11px;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}.product-merge-source strong,.product-merge-source small{display:block}.product-merge-source small{margin-top:3px;color:#667085}.product-merge-results{margin:9px 0 14px;max-height:300px}.compact-notice{margin:4px 0 14px;font-size:12px}.sourcing-bom-row select{min-width:230px}
@media(max-width:700px){.source-component-pick{grid-template-columns:1fr}.source-component-pick>span:nth-child(2){display:none}.sourcing-bom-row select{min-width:0}}

/* v38.8.3 invoice-linked stock receipt */
.pending-purchase-lot td{background:#fffaeb;color:#7a2e0e}.pending-purchase-lot strong,.pending-purchase-lot small{display:block}.pending-purchase-lot small{margin-top:4px;color:#9a4b14}

/* v38.9.0 unified operational table grid and first-class Sourcing workspace */
:root{
  --table-grid:#e2e7ec;
  --table-grid-strong:#bcc6d0;
  --table-head-bg:#f5f7f9;
  --table-parent-bg:#f8fafb;
}

/* Every operational HTML table now shares the same cell geometry. */
table:not(.shopify-sheet){border-collapse:collapse}
table:not(.shopify-sheet) th,
table:not(.shopify-sheet) td{
  box-sizing:border-box;
  border-right:1px solid var(--table-grid);
  line-height:1.35;
}
table:not(.shopify-sheet) th:last-child,
table:not(.shopify-sheet) td:last-child{border-right:0}
table:not(.shopify-sheet) thead th{
  height:44px;
  padding:0 12px;
  vertical-align:middle;
  border-bottom:2px solid var(--table-grid-strong);
  background:var(--table-head-bg);
}
table:not(.shopify-sheet) tbody td{
  height:52px;
  padding:10px 12px;
  vertical-align:middle;
  border-bottom:1px solid var(--table-grid);
}
table:not(.shopify-sheet) tbody tr:last-child>td{border-bottom:0}
.compact-table table:not(.shopify-sheet) tbody td{height:44px;padding-top:8px;padding-bottom:8px}
.table-panel>.table-wrap{background:#fff}
.table-panel>.table-wrap>table{margin:0}

/* Parent / child records get a visibly stronger neutral separator. */
.listings-table .listing-parent-row.has-variations>td{
  border-top:2px solid var(--table-grid-strong)!important;
  border-bottom:2px solid var(--table-grid-strong)!important;
  background:var(--table-parent-bg)!important;
}
.listings-table .listing-parent-row.has-variations:hover>td{background:#f3f6f8!important}
.listings-table .listing-variation-row>td{
  border-right:1px solid var(--table-grid)!important;
  border-bottom:1px solid var(--table-grid)!important;
  background:#fcfdfe;
}
.listings-table .listing-variation-row>td:last-child{border-right:0!important}
.listings-table .listing-variation-controls-row>td{
  border-right:0!important;
  border-bottom:1px solid var(--table-grid)!important;
}
.listings-table .listing-variation-empty>td{border-bottom:1px solid var(--table-grid)!important}

.catalogue-table .family-row>td{
  border-top:2px solid var(--table-grid-strong)!important;
  border-bottom:2px solid var(--table-grid-strong)!important;
  border-right:1px solid var(--table-grid)!important;
  background:var(--table-parent-bg)!important;
}
.catalogue-table .family-row>td:last-child{border-right:0!important}
.catalogue-table .product-row>td{border-bottom:1px solid var(--table-grid)}
.catalogue-table .offer-detail-row>td{
  border-right:0!important;
  border-bottom:2px solid #d2d9e0!important;
}

/* Shopify and B&Q spreadsheet editors already use a sheet layout; make its grid
   match the rest of ChannelOps and make product rows stronger than variants. */
.shopify-sheet th{
  border-right:1px solid var(--table-grid)!important;
  border-bottom:2px solid var(--table-grid-strong)!important;
  background:var(--table-head-bg)!important;
}
.shopify-sheet td{
  border-right:1px solid var(--table-grid)!important;
  border-bottom:1px solid var(--table-grid)!important;
}
.shopify-sheet th:last-child,.shopify-sheet td:last-child{border-right:0!important}
.shopify-sheet-product-row>td{
  border-top:2px solid var(--table-grid-strong)!important;
  border-bottom:2px solid var(--table-grid-strong)!important;
}

/* Dispatch is a CSS-grid table, so mirror the same column and heading rules. */
.dispatch-table-head{border-bottom:2px solid var(--table-grid-strong)!important;background:var(--table-head-bg)!important}
.dispatch-table-head>span{
  height:100%;
  display:flex;
  align-items:center;
  border-right:1px solid var(--table-grid);
}
.dispatch-table-head>span:last-child{border-right:0}
.dispatch-table-row{border-bottom:1px solid var(--table-grid)!important}
.dispatch-table-row>*{border-right:1px solid var(--table-grid)!important}
.dispatch-table-row>*:last-child{border-right:0!important}

/* Sourcing tables use the same row height/alignment even where controls are present. */
.sourcing-table th,.sourcing-table td{vertical-align:middle!important}
.sourcing-table thead th{border-bottom:2px solid var(--table-grid-strong)!important}
.invoice-mapping-table td{vertical-align:middle!important}
.source-lot-history .sourcing-table tbody td{height:48px}

@media(max-width:900px){
  .sidebar.app-header .nav-item{min-width:72px;padding-left:9px;padding-right:9px}
}

/* v38.9.1 purchase-lot landed-cost bridge */
.purchase-lot-cost-bridge{margin:0 0 14px;padding:12px 14px;border:1px solid #d9e0e7;border-radius:10px;background:#f8fafb}.purchase-lot-cost-bridge-head strong,.purchase-lot-cost-bridge-head small{display:block}.purchase-lot-cost-bridge-head small{margin-top:3px;color:#667085;font-size:11px;line-height:1.45}.purchase-lot-cost-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:10px}.purchase-lot-cost-grid>div{padding:9px 10px;border:1px solid #e4e9ee;border-radius:8px;background:#fff}.purchase-lot-cost-grid span,.purchase-lot-cost-grid strong{display:block}.purchase-lot-cost-grid span{font-size:11px;color:#667085}.purchase-lot-cost-grid strong{margin-top:3px;font-size:13px}.purchase-lot-cost-bridge.no-lot-costs{opacity:.72}.sourcing-cost-form .form-grid label small{display:block;margin-top:4px;color:#667085;font-size:10px;line-height:1.35}.sourcing-total-card>div span small{display:block;margin-top:2px;color:#98a2b3;font-size:9px;font-weight:500;line-height:1.2}.sourcing-total-card .sourcing-fx-fee-row{border-top:1px dashed #e0e5eb;padding-top:8px;margin-top:3px}.sourcing-total-card .sourcing-fx-fee-row b{color:#475467}
@media(max-width:800px){.purchase-lot-cost-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v38.10.0 marketplace margin control and Shopify auto-pricing */
.pricing-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:22px 24px;margin-bottom:16px;border:1px solid #dfe5ec;border-radius:14px;background:linear-gradient(135deg,#fff,#f7f9fc)}
.pricing-hero h2{margin:4px 0 6px}.pricing-hero p{max-width:760px;margin:0;color:#667085;line-height:1.55}.pricing-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.pricing-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.pricing-summary-card{padding:14px 16px;border:1px solid #e0e6ed;border-radius:12px;background:#fff}.pricing-summary-card span,.pricing-summary-card strong,.pricing-summary-card small{display:block}.pricing-summary-card span{font-size:11px;color:#667085}.pricing-summary-card strong{margin-top:4px;font-size:22px}.pricing-summary-card small{margin-top:3px;color:#98a2b3;font-size:10px}
.pricing-panel-head{gap:16px}.pricing-search{min-width:280px}.pricing-table{min-width:1420px}.pricing-table tbody td>strong,.pricing-table tbody td>small{display:block}.pricing-table tbody td>small{margin-top:3px;color:#667085;font-size:10px;line-height:1.35}.pricing-table .table-link{border:0;background:transparent;color:#175cd3;padding:0;font:inherit;font-weight:700;cursor:pointer}.pricing-rule-error{max-width:180px;color:#b42318!important;white-space:normal}.empty-cell{text-align:center;color:#667085;padding:28px!important}
.pricing-defaults-form{width:min(1180px,96vw)}.pricing-rule-form{width:min(1260px,97vw)}.pricing-defaults-form>header,.pricing-rule-form>header{position:sticky;top:0;z-index:4;background:#fff}.pricing-defaults-form>footer,.pricing-rule-form>footer{position:sticky;bottom:0;z-index:4;background:#fff}
.pricing-settings-grid,.pricing-rule-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px}.pricing-editor-card{padding:15px;border:1px solid #dde4ec;border-radius:12px;background:#fbfcfd}.pricing-editor-card h3{margin:0 0 10px;font-size:14px}.pricing-editor-card>.muted{margin-top:-5px;margin-bottom:10px;font-size:11px;line-height:1.45}.pricing-editor-card .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pricing-editor-card .form-grid label{font-size:11px;color:#475467}.pricing-editor-card .form-grid label small{display:block;color:#98a2b3;font-size:9px;margin:2px 0 4px}.pricing-editor-card input,.pricing-editor-card select{width:100%}
.pricing-cost-readout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.pricing-cost-readout>div{padding:10px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}.pricing-cost-readout span,.pricing-cost-readout strong{display:block}.pricing-cost-readout span{font-size:10px;color:#667085}.pricing-cost-readout strong{margin-top:4px;font-size:15px}
.pricing-fee-editor{display:grid;gap:8px}.pricing-fee-rows{display:grid;gap:7px}.pricing-fee-row{display:grid;grid-template-columns:58px minmax(170px,1.5fr) minmax(105px,.7fr) minmax(120px,.8fr) 34px;gap:7px;align-items:end;padding:8px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}.pricing-fee-row label>span{display:block;margin-bottom:3px;color:#667085;font-size:9px}.pricing-fee-enabled{display:flex!important;align-items:center;gap:6px;min-height:38px}.pricing-fee-enabled input{width:auto}.pricing-fee-enabled span{margin:0!important}.pricing-fee-row .icon-danger{height:38px}.pricing-empty-fees{padding:12px;text-align:center;border:1px dashed #d4dce6;border-radius:8px;color:#667085;background:#fff}.pricing-inherit-row{margin-bottom:9px}.pricing-inherit-row label{display:flex;align-items:center;gap:8px;font-size:11px;color:#475467}.pricing-inherit-row input{width:auto}
.pricing-shipping-toolbar{display:flex;align-items:stretch;gap:10px;margin:12px 0}.pricing-selected-shipping{flex:1;display:grid;grid-template-columns:auto auto 1fr;gap:8px;align-items:center;padding:8px 10px;border:1px solid #dce4ed;border-radius:9px;background:#fff}.pricing-selected-shipping span{font-size:10px;color:#667085}.pricing-selected-shipping strong{font-size:14px}.pricing-selected-shipping small{color:#667085;font-size:10px}.pricing-quote-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.pricing-quote-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid #dfe5ec;border-radius:9px;background:#fff;text-align:left;cursor:pointer;color:inherit}.pricing-quote-card:hover{border-color:#9db7e8;background:#f8fbff}.pricing-quote-card.selected{border-color:#7cc8aa;background:#ecfdf3}.pricing-quote-card span strong,.pricing-quote-card span small{display:block}.pricing-quote-card span small{margin-top:3px;color:#667085;font-size:10px}.pricing-quote-card>b{font-size:13px}.pricing-quote-card>em{font-style:normal;color:#175cd3;font-size:10px;font-weight:700}.pricing-no-quotes{grid-column:1/-1;padding:12px;border:1px dashed #d5dce5;border-radius:9px;color:#667085;background:#fff;font-size:11px}
.pricing-auto-toggle{display:flex;gap:10px;align-items:flex-start;margin-top:12px;padding:11px 12px;border:1px solid #cfe0f7;border-radius:10px;background:#f5f9ff}.pricing-auto-toggle input{width:auto;margin-top:3px}.pricing-auto-toggle span strong,.pricing-auto-toggle span small{display:block}.pricing-auto-toggle span small{margin-top:3px;color:#667085;line-height:1.4}.pricing-calculation{margin-top:12px}.pricing-calc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.pricing-calc-grid>div{padding:9px 10px;border:1px solid #e0e6ed;border-radius:9px;background:#fff}.pricing-calc-grid span,.pricing-calc-grid strong,.pricing-calc-grid small{display:block}.pricing-calc-grid span{color:#667085;font-size:9px}.pricing-calc-grid strong{margin-top:3px;font-size:13px}.pricing-calc-grid small{margin-top:2px;color:#667085;font-size:9px}.pricing-calc-grid .pricing-target-price{border-color:#9bd2bc;background:#ecfdf3}.pricing-calc-grid .pricing-target-price strong{font-size:18px;color:#065f46}.pricing-calc-warning{padding:11px 12px;border:1px solid #f1d6a8;border-radius:9px;background:#fffaeb}.pricing-calc-warning strong,.pricing-calc-warning span{display:block}.pricing-calc-warning span{margin-top:3px;color:#7a2e0e;font-size:10px}.pricing-margin-definition{margin:8px 2px 0;color:#667085;font-size:9px;line-height:1.45}
@media(max-width:1050px){.pricing-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pricing-settings-grid,.pricing-rule-layout{grid-template-columns:1fr}.pricing-quote-list{grid-template-columns:1fr}}
@media(max-width:700px){.pricing-hero{display:block}.pricing-hero-actions{justify-content:flex-start;margin-top:12px}.pricing-summary-grid{grid-template-columns:1fr}.pricing-panel-head{display:block}.pricing-search{min-width:0;margin-top:10px}.pricing-editor-card .form-grid,.pricing-cost-readout,.pricing-calc-grid{grid-template-columns:1fr}.pricing-fee-row{grid-template-columns:1fr}.pricing-fee-enabled{min-height:0}.pricing-shipping-toolbar,.pricing-selected-shipping{display:grid}.pricing-selected-shipping{grid-template-columns:1fr}}

/* v38.10.1 dynamic product-family variant filtering */
.catalogue-variation-controls-row.hidden{display:none}
.catalogue-variation-controls-row>td{padding:0!important;border-right:0!important;border-bottom:1px solid var(--table-grid)!important;background:#f5f8fb!important}
.catalogue-variation-controls{padding-left:48px;border-left-color:#9aa8b6}
.catalogue-variation-controls .variation-rule{border-color:#d9e0e6}
.catalogue-variation-controls .variation-priority{background:#667789}
.catalogue-variation-controls .variation-priority-buttons button:hover:not(:disabled){border-color:#9aa8b6;background:#f1f4f7;color:#3e4c5a}
.catalogue-filter-active{display:inline-flex;align-items:center;padding:4px 7px;border:1px solid #d6dee5;border-radius:999px;background:#f4f7f9;color:#596a79;font-size:8px;font-weight:900;white-space:nowrap}
.catalogue-variation-empty>td{padding:14px 18px 14px 52px!important;border-right:0!important;border-bottom:2px solid var(--table-grid-strong)!important;background:#fbfcfd!important;color:#687784}
.catalogue-variation-empty strong,.catalogue-variation-empty span{display:block}.catalogue-variation-empty strong{font-size:9.5px}.catalogue-variation-empty span{margin-top:3px;font-size:8px}
@media(max-width:850px){.catalogue-variation-controls{padding-left:15px}.catalogue-variation-empty>td{padding-left:18px!important}}

/* v38.11.0 Veeqo private-API store selection and order bridge */
.brand-veeqo img{max-width:78%;max-height:78%}
.provider-card-note{margin-top:-2px;padding:8px 10px;border:1px solid #e3d9f8;border-radius:8px;background:#faf8ff;color:#6941c6;font-size:10px;font-weight:700;line-height:1.4}
.veeqo-onboarding-card{align-items:flex-start}.veeqo-onboarding-card>.brand-logo{margin-top:2px}.veeqo-safety-note{border-color:#ddd6fe;background:#faf8ff}
.veeqo-store-selector{margin-top:16px;padding:15px;border:1px solid #d8dee7;border-radius:12px;background:#fbfcfd}.veeqo-store-selector-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:11px;border-bottom:2px solid #d4dbe4}.veeqo-store-selector-head h4{margin:3px 0 4px;font-size:15px}.veeqo-store-selector-head p{margin:0;color:#667085;font-size:10px;line-height:1.45}.veeqo-store-bulk-actions{display:flex;gap:7px;padding:10px 0}.veeqo-store-list{border:1px solid #e0e5eb;border-radius:9px;overflow:hidden;background:#fff}.veeqo-store-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.42fr);align-items:center;gap:14px;padding:11px 12px;border-bottom:1px solid #e6eaef;cursor:pointer}.veeqo-store-row:last-child{border-bottom:0}.veeqo-store-row:hover{background:#f8fafc}.veeqo-store-toggle{display:flex;align-items:center;gap:10px;min-width:0}.veeqo-store-toggle input{width:auto;flex:0 0 auto}.veeqo-store-toggle span,.veeqo-store-import{display:block;min-width:0}.veeqo-store-toggle strong,.veeqo-store-toggle small,.veeqo-store-import strong,.veeqo-store-import small{display:block}.veeqo-store-toggle strong{font-size:12px}.veeqo-store-toggle small,.veeqo-store-import small{margin-top:3px;color:#667085;font-size:9px;line-height:1.35}.veeqo-store-import{text-align:right}.veeqo-store-import strong{font-size:10px;color:#475467}.veeqo-store-actions{justify-content:flex-end;margin-top:11px}.veeqo-proxy-store.disabled{opacity:.68}.veeqo-proxy-store .store-card-head p{line-height:1.35}
@media(max-width:720px){.veeqo-store-selector-head{display:block}.veeqo-store-selector-head>.status-badge{margin-top:8px}.veeqo-store-row{grid-template-columns:1fr}.veeqo-store-import{text-align:left;padding-left:29px}.veeqo-store-actions{justify-content:flex-start}}


/* v38.11.1 Amazon FBA / FBM fulfilment separation */
.order-amazon-logo{position:relative;overflow:visible;background:#fff}
.order-amazon-logo img{max-width:76%;max-height:58%;transform:translateY(-2px)}
.order-amazon-logo em{position:absolute;right:-4px;bottom:-3px;min-width:23px;padding:2px 4px;border:2px solid #fff;border-radius:999px;color:#fff;font:900 6px/1.1 system-ui,sans-serif;letter-spacing:.04em;text-align:center;box-shadow:0 1px 4px rgba(16,24,40,.18)}
.order-amazon-logo.amazon-fba{border-color:#9cc7ef;background:linear-gradient(145deg,#f5fbff,#e8f4ff)}
.order-amazon-logo.amazon-fba em{background:#1769aa}
.order-amazon-logo.amazon-fbm{border-color:#f0c984;background:linear-gradient(145deg,#fffdf7,#fff5df)}
.order-amazon-logo.amazon-fbm em{background:#b75d00}
.order-amazon-logo:not(.small) em{right:-6px;bottom:-4px;min-width:31px;padding:3px 6px;font-size:8px}
.order-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 14px;border-bottom:2px solid var(--table-grid-strong,#c8d0d8);background:#fbfcfd}
.order-section-heading h3{margin:3px 0 3px;font-size:14px}.order-section-heading p{margin:0;color:var(--muted);font-size:9px;line-height:1.45}.order-section-heading>strong{color:#5d6978;font-size:9px;white-space:nowrap}
.merchant-orders-panel{border-radius:0 0 11px 11px!important}
.amazon-fba-panel{margin-top:16px;border-color:#bfd8ee!important;border-radius:11px!important;overflow:hidden}
.amazon-fba-heading{background:linear-gradient(145deg,#f0f8ff,#fff);border-bottom-color:#9fc3e1}
.amazon-fba-heading .eyebrow{color:#1769aa}.amazon-fba-heading>strong{color:#1769aa}
.amazon-fba-order-row td{background:#fbfdff}.amazon-fba-order-row:hover td{background:#f3f9ff}
.fba-managed-pill{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #a8cce9;border-radius:999px;background:#edf7ff;color:#145f97;font-size:8px;font-weight:900;white-space:nowrap}
.amazon-fba-menu-item{color:#315d82}.amazon-fba-menu-item .module-menu-icon{background:#e8f4ff;color:#1769aa}.amazon-fba-menu-item:hover{background:#f2f8fd;color:#174d78}
.amazon-fba-drawer{display:grid;gap:14px}.amazon-fba-banner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px;border:1px solid #b9d6ed;border-radius:12px;background:linear-gradient(145deg,#edf7ff,#fff)}
.amazon-fba-banner h3{margin:3px 0 4px;font-size:18px}.amazon-fba-banner p{margin:0;color:#52677a;font-size:10px;line-height:1.5}.amazon-fba-detail-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:12px}.fba-summary-grid{margin:0}.fba-order-lines{display:grid;border:1px solid #e0e6ed;border-radius:9px;overflow:hidden}.fba-order-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 11px;border-bottom:1px solid #e7ebef}.fba-order-line:last-child{border-bottom:0}.fba-order-line strong,.fba-order-line small{display:block}.fba-order-line small{margin-top:3px;color:var(--muted);font-size:9px}.fba-order-line>b{font-size:14px}.fba-order-meta{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 12px;margin-top:12px;padding-top:10px;border-top:1px solid #e1e6eb}.fba-order-meta span{color:var(--muted);font-size:9px}.fba-order-meta strong{font-size:9px}
@media(max-width:760px){.order-section-heading{display:block}.order-section-heading>strong{display:block;margin-top:7px}.amazon-fba-banner{grid-template-columns:auto 1fr}.amazon-fba-banner>.fba-managed-pill{grid-column:1/-1;justify-self:start}.amazon-fba-detail-grid{grid-template-columns:1fr}}

/* v38.11.3 Amazon fulfilment resolution and order pagination */
.order-amazon-logo.amazon-unknown{border-color:#cfd6de;background:linear-gradient(145deg,#fbfcfd,#f2f4f7)}
.order-amazon-logo.amazon-unknown em{background:#667085}
.veeqo-fba-warning{margin:10px 14px;border-color:#f3cf8c;background:#fffaf0}
.veeqo-fba-warning strong{color:#8a4b00}
.veeqo-store-row.veeqo-amazon-fba{background:#f8fcff}
.veeqo-store-row.veeqo-amazon-fba:hover{background:#f1f8ff}
.order-page-size{display:flex;align-items:center;gap:7px;margin-left:auto;color:#667085;font-size:9px;font-weight:800;white-space:nowrap}
.order-page-size select{min-width:78px}
.order-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-top:1px solid var(--table-grid,#e1e6eb);background:#fbfcfd;color:#667085;font-size:9px}
.order-pager-controls{display:flex;align-items:center;gap:8px}
.order-pager-controls strong{min-width:88px;color:#475467;text-align:center;font-size:9px}
@media(max-width:760px){.order-page-size{width:100%;justify-content:flex-end}.order-pager{align-items:flex-start;flex-direction:column}.order-pager-controls{width:100%;justify-content:space-between}.veeqo-fba-warning{margin:10px}}

/* v38.11.4 Awaiting-payment order separation */
.awaiting-payment-panel{margin-top:16px;border-color:#efd49a!important;border-radius:11px!important;overflow:hidden}
.awaiting-payment-heading{background:linear-gradient(145deg,#fffaf0,#fff);border-bottom-color:#e5c16f}
.awaiting-payment-heading .eyebrow{color:#8a4b00}.awaiting-payment-heading>strong{color:#8a4b00}
.awaiting-payment-order-row td{background:#fffdf8}.awaiting-payment-order-row:hover td{background:#fff9eb}
.awaiting-payment-pill{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #e5c16f;border-radius:999px;background:#fff7df;color:#7a4700;font-size:8px;font-weight:900;white-space:nowrap}
.awaiting-payment-menu-item{color:#765318}.awaiting-payment-menu-item .module-menu-icon{background:#fff4d8;color:#8a4b00}.awaiting-payment-menu-item:hover{background:#fffaf0;color:#68420a}
.awaiting-payment-drawer{display:grid;gap:14px}
.awaiting-payment-banner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;padding:15px;border:1px solid #e5c16f;border-radius:12px;background:linear-gradient(145deg,#fff7df,#fff)}
.awaiting-payment-banner h3{margin:3px 0 4px;font-size:18px}.awaiting-payment-banner p{margin:0;color:#6d5a37;font-size:10px;line-height:1.5}
@media(max-width:760px){.awaiting-payment-banner{grid-template-columns:auto 1fr}.awaiting-payment-banner>.awaiting-payment-pill{grid-column:1/-1;justify-self:start}}

/* v38.11.6 Veeqo-style full-width order views and table management */
#page-orders.orders-page-full{padding:0 0 42px;background:#f4f6f8}
.orders-view-bar{display:flex;align-items:stretch;justify-content:space-between;gap:12px;min-height:52px;border-bottom:1px solid #d9e0e6;background:#fff;padding:0 14px}
.orders-view-tabs{min-width:0;display:flex;align-items:stretch;gap:2px;overflow-x:auto;scrollbar-width:thin}
.order-view-tab{display:flex;align-items:center;gap:7px;min-width:max-content;padding:0 12px;border:0;border-bottom:3px solid transparent;background:transparent;color:#344054;font-size:10px;font-weight:800;cursor:pointer}
.order-view-tab b{min-width:20px;padding:2px 6px;border-radius:999px;background:#f0f2f5;color:#667085;font-size:8px;text-align:center}
.order-view-tab:hover{background:#f8fafc}
.order-view-tab.active{border-bottom-color:#2877c7;background:#eef6ff;color:#175f9d}
.order-view-tab.active b{background:#2877c7;color:#fff}
.order-view-tab.custom span::after{content:' custom';margin-left:5px;color:#98a2b3;font-size:7px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.orders-view-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.orders-fullwidth-workspace{width:100%}
.orders-commandbar{display:flex;align-items:center;gap:9px;padding:10px 12px;border-bottom:1px solid #dfe4e9;background:#fff}
.orders-search{max-width:none;min-width:260px;flex:1}
.orders-filter-row{display:flex;align-items:flex-end;gap:9px;padding:9px 12px;border-bottom:1px solid #e1e6eb;background:#f7f9fb}
.orders-filter-row.collapsed{display:none}
.orders-filter-row label{display:grid;gap:4px;color:#667085;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.orders-filter-row select{min-width:175px;height:34px;font-size:10px;text-transform:none;letter-spacing:0}
.orders-filter-row select:disabled{background:#eef1f4;color:#667085;cursor:not-allowed}
.orders-clear-filters{margin-left:auto;align-self:center}
.orders-managed-panel{width:100%;border-top:1px solid #dfe4e9;border-bottom:1px solid #dfe4e9;background:#fff;box-shadow:0 4px 14px rgba(18,31,53,.035)}
.orders-table-meta{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 13px;border-bottom:1px solid #dfe4e9;background:#fff}
.orders-table-meta h2{margin:2px 0 2px;font-size:13px}.orders-table-meta p{margin:0;color:#667085;font-size:8.5px;line-height:1.45}
.orders-table-meta-actions{display:flex;align-items:center;gap:14px;color:#667085;font-size:9px;white-space:nowrap}
.orders-table-meta-actions>strong{color:#475467}
.orders-managed-table-wrap{width:100%;max-width:100vw;overflow:auto;background:#fff}
.managed-orders-table{width:100%;min-width:max-content;border-collapse:separate!important;border-spacing:0}
.managed-orders-table thead th{position:sticky;top:0;z-index:3;height:38px;padding:0 10px;border-right:1px solid #dfe4e9;border-bottom:1px solid #cfd6dd;background:#f7f9fb;color:#475467;font-size:8px;text-transform:none;letter-spacing:0;font-weight:800}
.managed-orders-table tbody td{height:58px;max-width:320px;padding:8px 10px;border-right:1px solid #e6eaee;border-bottom:1px solid #e1e6eb;background:#fff;font-size:9.5px;vertical-align:middle}
.managed-orders-table tbody tr:hover td{background:#f8fbff}
.managed-orders-table th:last-child,.managed-orders-table td:last-child{border-right:0}
.managed-orders-table [data-order-column="store"]{min-width:145px}.managed-orders-table [data-order-column="orderDate"]{min-width:115px}.managed-orders-table [data-order-column="orderDetailed"]{min-width:190px}.managed-orders-table [data-order-column="orderNumber"]{min-width:165px}.managed-orders-table [data-order-column="channel"]{min-width:155px}.managed-orders-table [data-order-column="customerDetailed"]{min-width:170px}.managed-orders-table [data-order-column="customerName"]{min-width:140px}.managed-orders-table [data-order-column="shippingCountry"]{min-width:110px}.managed-orders-table [data-order-column="postcode"]{min-width:100px}.managed-orders-table [data-order-column="email"]{min-width:185px}.managed-orders-table [data-order-column="status"]{min-width:125px}.managed-orders-table [data-order-column="fulfillment"]{min-width:135px}.managed-orders-table [data-order-column="payment"]{min-width:115px}.managed-orders-table [data-order-column="packing"]{min-width:110px}.managed-orders-table [data-order-column="trackingStatus"]{min-width:125px}.managed-orders-table [data-order-column="trackingNumber"]{min-width:150px}.managed-orders-table [data-order-column="delivery"]{min-width:160px}.managed-orders-table [data-order-column="deliveryCost"]{min-width:105px}.managed-orders-table [data-order-column="total"]{min-width:95px}.managed-orders-table [data-order-column="itemsDetailed"]{min-width:260px}.managed-orders-table [data-order-column="sku"]{min-width:150px}.managed-orders-table [data-order-column="units"]{min-width:75px}.managed-orders-table [data-order-column="picked"]{min-width:80px}.managed-orders-table [data-order-column="printed"]{min-width:105px}.managed-orders-table [data-order-column="actions"]{min-width:82px;text-align:center}
.order-store-cell,.order-detailed-cell,.order-items-detailed,.order-sku-list{display:grid;gap:3px}.order-store-cell{grid-template-columns:28px minmax(0,1fr);align-items:center;gap:7px}.order-store-cell strong,.order-store-cell small,.order-detailed-cell small,.order-item-line strong,.order-item-line small{display:block}.order-store-cell strong{font-size:9px}.order-store-cell small,.order-detailed-cell small,.order-item-line small,.order-items-more{color:#667085;font-size:7.5px}.order-detailed-cell{justify-items:start}.order-detailed-cell .status-badge{min-height:17px;padding:0 5px;font-size:7px}.order-detailed-cell .text-button{padding:0;font-size:9px}.order-item-line strong{font-size:8.5px;line-height:1.35;font-weight:650}.order-item-line+ .order-item-line{padding-top:3px;border-top:1px dotted #e2e8ef}.order-sku-list .mono{display:block;font-size:8px}.order-open-button{min-height:28px;padding:0 10px;font-size:9px}.fbm-managed-pill{display:inline-flex;align-items:center;padding:5px 8px;border:1px solid #efc477;border-radius:999px;background:#fff7df;color:#915100;font-size:8px;font-weight:900;white-space:nowrap}
.managed-orders-table .awaiting-payment-order-row td{background:#fffdf8}.managed-orders-table .amazon-fba-order-row td{background:#fbfdff}
.order-table-dialog,.order-view-dialog{padding:0;border:0;border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 28px 80px rgba(16,28,49,.30)}
.order-table-dialog::backdrop,.order-view-dialog::backdrop{background:rgba(14,23,38,.46);backdrop-filter:blur(3px)}
.order-table-dialog{width:min(900px,calc(100vw - 28px));max-width:none}.order-view-dialog{width:min(720px,calc(100vw - 28px))}
.order-table-dialog-form,.order-view-form{margin:0;max-height:92vh;display:flex;flex-direction:column}
.order-table-dialog-form>header,.order-view-form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 19px;border-bottom:1px solid #dfe4e9}.order-table-dialog-form>header h2,.order-view-form>header h2{margin:3px 0 4px;font-size:18px}.order-table-dialog-form>header p,.order-view-form>header p{margin:0;color:#667085;font-size:9.5px;line-height:1.45}
.order-column-search{padding:11px 18px 8px}.order-column-search .search-field{max-width:none}
.order-column-management-grid{min-height:360px;display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:8px 18px 16px;overflow:auto}
.order-column-management-grid>section+section{padding-left:18px;border-left:1px solid #dfe4e9}.order-column-list-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:8px}.order-column-list-heading strong,.order-column-list-heading small{display:block}.order-column-list-heading strong{font-size:10px}.order-column-list-heading small{color:#98a2b3;font-size:7.5px;text-align:right}
.order-column-list{display:grid;gap:6px}.order-column-row{display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:44px;padding:6px 7px;border:1px solid #cfd7df;border-radius:5px;background:#fff}.order-column-row.shown{cursor:grab}.order-column-row.shown:active{cursor:grabbing}.order-column-row strong,.order-column-row small{display:block}.order-column-row strong{font-size:9px}.order-column-row small{margin-top:2px;color:#7b8794;font-size:7.5px}.order-column-drag{display:grid;place-items:center;color:#667085;font-size:14px}.order-column-row-actions{display:flex;align-items:center;gap:3px}.order-column-row-actions button,.order-column-add{min-width:26px;height:27px;padding:0 6px;border:1px solid #d7dee5;border-radius:5px;background:#fff;color:#475467;font-size:8px;font-weight:800}.order-column-row-actions button:hover:not(:disabled),.order-column-add:hover{border-color:#8fb3db;background:#f1f7fd;color:#175f9d}.order-column-row-actions button:disabled{opacity:.35;cursor:not-allowed}.order-column-list-empty{padding:18px;border:1px dashed #d7dee5;border-radius:7px;color:#98a2b3;text-align:center;font-size:8px}
.order-table-dialog-form>footer,.order-view-form>footer{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid #dfe4e9;background:#fafbfc}
.order-view-grid{padding:18px;margin:0}.order-view-grid .span-2{grid-column:1/-1}.order-view-note{margin:0 18px 18px;padding:10px 12px;border:1px solid #dce6f1;border-radius:8px;background:#f7faff;color:#536273;font-size:9px}.order-view-form .form-grid label>span{display:block;margin-bottom:5px;color:#667085;font-size:9px;font-weight:800}.order-view-form input,.order-view-form select{width:100%}
@media(max-width:900px){.orders-view-bar{align-items:stretch;flex-direction:column;padding-top:5px}.orders-view-actions{justify-content:flex-end;padding-bottom:6px}.orders-commandbar{flex-wrap:wrap}.orders-search{order:3;flex-basis:100%;min-width:0}.orders-filter-row{flex-wrap:wrap}.orders-filter-row label{flex:1 1 180px}.orders-filter-row select{width:100%;min-width:0}.order-column-management-grid{grid-template-columns:1fr}.order-column-management-grid>section+section{padding-left:0;padding-top:14px;border-left:0;border-top:1px solid #dfe4e9}}
@media(max-width:620px){#page-orders.orders-page-full{padding-bottom:18px}.orders-view-actions{display:grid;grid-template-columns:1fr 1fr}.orders-view-actions .button,.orders-view-actions a{width:100%}.orders-view-actions #editOrderViewButton:not(.hidden){grid-column:1/-1}.orders-commandbar{display:grid;grid-template-columns:1fr 1fr}.orders-commandbar .orders-search{grid-column:1/-1}.orders-commandbar .button{width:100%}.orders-table-meta{align-items:flex-start;flex-direction:column}.orders-table-meta-actions{width:100%;justify-content:space-between}.order-table-dialog,.order-view-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.order-table-dialog-form,.order-view-form{height:100dvh;max-height:none}.order-column-management-grid{min-height:0;flex:1}.order-view-grid{grid-template-columns:1fr!important;overflow:auto}.order-view-grid .span-2{grid-column:auto}.order-table-dialog-form>footer,.order-view-form>footer{grid-template-columns:1fr 1fr}.order-table-dialog-form>footer>span,.order-view-form>footer>span{display:none}}

/* v38.11.6: printed-slip status and bulk new-slip action */
.managed-orders-table [data-order-column="printed"]{min-width:92px;text-align:center}
.packing-slip-print-state{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:12px;font-weight:900;line-height:1}
.packing-slip-print-state.printed{border:1px solid #8fd0ad;background:#eaf8f0;color:#147a43}
.packing-slip-print-state.not-printed{border:1px solid #d7dee5;background:#f7f9fb;color:#98a2b3}
.print-new-slips-button{gap:6px}
.print-new-slips-button span{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e9eef5;color:#344054;font-size:8px;font-weight:900}
.print-new-slips-button:disabled span{opacity:.65}


/* v38.11.7: Veeqo-style selection, resizable order columns and last-courier reuse */
.orders-bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 12px;border-bottom:1px solid #cfd8e3;background:#edf5ff;box-shadow:inset 3px 0 0 #4d8dcc}
.orders-bulk-bar.hidden{display:none}.orders-bulk-selection,.orders-bulk-actions{display:flex;align-items:center;gap:10px}.orders-bulk-selection strong{font-size:10px;color:#184f82}.orders-bulk-selection .text-button{font-size:9px}.orders-bulk-actions label{display:flex;align-items:center;gap:7px;color:#536273;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.orders-bulk-actions select{min-width:190px;height:32px;font-size:9px;text-transform:none;letter-spacing:0}
.managed-orders-table thead th[data-order-column]{padding-right:15px;overflow:visible}.managed-orders-table thead th[data-order-column]>span:first-child{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-col-resize{position:absolute;top:0;right:-4px;width:9px;height:100%;cursor:col-resize;z-index:8;touch-action:none}.order-col-resize::after{content:"";position:absolute;top:6px;bottom:6px;left:4px;width:1px;background:#c6d1d7}.order-col-resize:hover::after,.order-col-resize:active::after{width:2px;background:#1875c1}
.managed-orders-table .order-select-column{position:sticky;left:0;z-index:4;width:42px!important;min-width:42px!important;max-width:42px!important;padding:0!important;text-align:center;background:#f7f9fb}.managed-orders-table tbody .order-select-column{z-index:2;background:#fff}.managed-orders-table .order-select-column input{width:15px;height:15px;margin:0;vertical-align:middle;accent-color:#1675c1}.managed-orders-table tbody tr.selected-order-row td{background:#edf6ff}.managed-orders-table tbody tr.selected-order-row .order-select-column{background:#e5f2ff}.managed-orders-table tbody tr:hover.selected-order-row td{background:#e7f3ff}
.managed-orders-table [data-order-column="lastCourier"]{min-width:140px}.last-courier-cell{display:grid;gap:2px}.last-courier-cell strong{font-size:9px}.last-courier-cell span{font-size:8px;color:#475467}.last-courier-cell small{font-size:7px;color:#7b8794}
.last-courier-dialog{padding:0;border:0;border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 28px 80px rgba(16,28,49,.30);width:min(820px,calc(100vw - 28px));max-width:none}.last-courier-dialog::backdrop{background:rgba(14,23,38,.46);backdrop-filter:blur(3px)}.last-courier-form{margin:0;max-height:90vh;display:flex;flex-direction:column}.last-courier-form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 19px;border-bottom:1px solid #dfe4e9}.last-courier-form>header h2{margin:3px 0 4px;font-size:18px}.last-courier-form>header p{margin:0;color:#667085;font-size:9.5px;line-height:1.45}.last-courier-warning{display:flex;align-items:flex-start;gap:9px;margin:13px 18px 0;padding:10px 12px;border:1px solid #f0cf8c;border-radius:8px;background:#fff9ea;color:#77520a;font-size:8.5px}.last-courier-warning strong{white-space:nowrap}.last-courier-preview-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;border-bottom:1px solid #e1e6eb}.last-courier-preview-summary strong{font-size:11px}.last-courier-preview-summary span{font-size:8.5px;color:#667085}.last-courier-preview-body{padding:12px 18px;overflow:auto}.last-courier-preview-list{display:grid;gap:6px}.last-courier-preview-list+ .last-courier-preview-list{margin-top:14px}.last-courier-preview-list h3{margin:0 0 4px;font-size:10px}.last-courier-preview-list.failures h3{color:#9a2323}.last-courier-preview-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:9px 10px;border:1px solid #e0e5eb;border-radius:7px;background:#fff}.last-courier-preview-row strong,.last-courier-preview-row small{display:block}.last-courier-preview-row strong{font-size:9px}.last-courier-preview-row small{margin-top:2px;color:#667085;font-size:7.5px}.last-courier-book-results{display:grid;gap:7px}.last-courier-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px;border:1px solid #dce4eb;border-radius:8px}.last-courier-result.ok{background:#f6fbf8;border-color:#cde8d8}.last-courier-result.failed{background:#fff7f7;border-color:#efcccc}.last-courier-result strong,.last-courier-result small{display:block}.last-courier-result small{margin-top:3px;font-size:8px;color:#667085}.last-courier-result>div:last-child{display:flex;gap:6px}.last-courier-form>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid #dfe4e9;background:#fafbfc}
@media(max-width:900px){.orders-bulk-bar{align-items:flex-start;flex-direction:column}.orders-bulk-actions{width:100%;flex-wrap:wrap}.orders-bulk-actions label{flex:1 1 220px}.orders-bulk-actions select{width:100%}.last-courier-preview-summary{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.orders-bulk-actions{display:grid;grid-template-columns:1fr 1fr}.orders-bulk-actions label{grid-column:1/-1}.orders-bulk-actions .button{width:100%}.last-courier-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.last-courier-form{height:100dvh;max-height:none}.last-courier-preview-body{flex:1}.last-courier-preview-row{grid-template-columns:1fr}.last-courier-result{align-items:flex-start;flex-direction:column}}

/* v38.11.8: page-width Orders grid and Veeqo-style action fly-outs */
.orders-managed-table-wrap{width:100%;max-width:100%;overflow-x:hidden!important;overflow-y:visible;background:#fff}
.managed-orders-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed;border-collapse:separate!important;border-spacing:0}
.managed-orders-table col{min-width:0!important}
.managed-orders-table th[data-order-column],.managed-orders-table td[data-order-column]{min-width:0!important;max-width:none!important;overflow:hidden;overflow-wrap:anywhere;word-break:normal}
.managed-orders-table th[data-order-column]{white-space:nowrap;text-overflow:ellipsis}
.managed-orders-table td[data-order-column]>*{max-width:100%;min-width:0}
.managed-orders-table .order-select-column{position:sticky;left:0;z-index:4;width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;text-align:center;background:#f7f9fb;overflow:visible}
.managed-orders-table tbody .order-select-column{z-index:2;background:#fff}
.managed-orders-table .order-select-column input{max-width:15px}
.managed-orders-table [data-order-column="lastCourier"],.managed-orders-table [data-order-column="printed"]{min-width:0!important}
.order-store-cell{grid-template-columns:minmax(18px,28px) minmax(0,1fr)}
.order-store-cell img,.order-store-cell .brand-logo{max-width:100%}
.order-items-detailed,.order-detailed-cell,.last-courier-cell,.cell-main{min-width:0}
.order-items-detailed strong,.order-items-detailed small,.last-courier-cell strong,.last-courier-cell span,.last-courier-cell small,.cell-main strong,.cell-main small{overflow-wrap:anywhere}

.orders-table-toolbar{position:relative;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:47px;padding:7px 10px;border-bottom:1px solid #cfd6dd;background:#f7f9fb}
.orders-table-toolbar-left,.orders-table-toolbar-right{display:flex;align-items:center;gap:8px;min-width:0}
.orders-table-toolbar-left{flex:1}
.orders-result-count{font-size:9px;color:#344054;white-space:nowrap}
.orders-selected-count{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;background:#e7f2ff;color:#175f9d;font-size:8px;font-weight:900;white-space:nowrap}
.orders-toolbar-icon{display:grid;place-items:center;width:31px;height:31px;padding:0;border:1px solid #cfd8e3;border-radius:4px;background:#fff;color:#344054;font-size:14px;font-weight:800;cursor:pointer}
.orders-toolbar-icon:hover{border-color:#91a7bd;background:#f8fbff}
.orders-toolbar-icon:disabled{opacity:.5;cursor:not-allowed}

.orders-action-menu{position:relative;z-index:40}
.orders-action-menu>summary,.orders-action-group>summary{list-style:none}
.orders-action-menu>summary::-webkit-details-marker,.orders-action-group>summary::-webkit-details-marker{display:none}
.orders-actions-button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:82px;height:31px;padding:0 11px;border:1px solid #0d6fbc;border-radius:4px;background:#0877c9;color:#fff;font-size:9px;font-weight:900;cursor:pointer;user-select:none}
.orders-action-menu[open]>.orders-actions-button,.orders-actions-button:hover{background:#0568b1}
.orders-action-menu-panel{position:absolute;top:calc(100% + 5px);left:0;width:228px;padding:0 0 6px;border:1px solid #cdd6df;border-radius:5px;background:#fff;box-shadow:0 10px 28px rgba(17,37,63,.18);z-index:60}
.orders-action-scope{display:flex;align-items:flex-start;gap:8px;padding:10px 11px;border-bottom:1px solid #e1e6eb;background:#f8fafc;color:#536273;font-size:8px;line-height:1.45}
.orders-action-info{display:grid;place-items:center;flex:0 0 16px;width:16px;height:16px;border:1px solid #1580d0;border-radius:50%;color:#0877c9;font-size:9px;font-weight:900}
.orders-action-group{position:relative}
.orders-action-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;padding:0 12px;color:#344054;font-size:9px;cursor:pointer;user-select:none}
.orders-action-group>summary:hover,.orders-action-group[open]>summary{background:#f3f7fb;color:#175f9d}
.orders-action-group>summary b{font-size:16px;font-weight:500;color:#667085}
.orders-action-submenu{position:absolute;top:-1px;left:calc(100% - 3px);width:262px;padding:6px;border:1px solid #cdd6df;border-radius:5px;background:#fff;box-shadow:0 10px 28px rgba(17,37,63,.18);z-index:70}
.orders-action-submenu button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:8px 9px;border:0;border-radius:4px;background:#fff;color:#344054;text-align:left;cursor:pointer}
.orders-action-submenu button:hover{background:#f2f7fc;color:#175f9d}
.orders-action-submenu button:disabled{background:#fff;color:#a0a9b5;cursor:not-allowed}
.orders-action-submenu button>span{display:grid;gap:2px;min-width:0}
.orders-action-submenu button strong{font-size:9px}
.orders-action-submenu button small{font-size:7.5px;color:#667085;line-height:1.35}
.orders-action-submenu button:disabled small{color:#a0a9b5}
.orders-action-count{display:grid;place-items:center;min-width:22px;height:20px;padding:0 5px;border-radius:999px;background:#edf2f7;color:#475467;font-size:8px}
.order-page-size{display:flex;align-items:center;gap:6px;color:#667085;font-size:8px;font-weight:800;white-space:nowrap}
.order-page-size select{height:30px;min-width:68px;padding:0 24px 0 8px;font-size:9px}

@media(max-width:900px){
  .orders-table-toolbar{align-items:flex-start;flex-direction:column}
  .orders-table-toolbar-left{width:100%;flex-wrap:wrap}
  .orders-table-toolbar-right{width:100%;justify-content:flex-end}
}
@media(max-width:620px){
  .orders-action-submenu{position:fixed;left:12px;right:12px;top:auto;width:auto;max-width:none}
  .orders-result-count{white-space:normal}
  .managed-orders-table thead th,.managed-orders-table tbody td{padding-left:5px;padding-right:5px;font-size:8px}
}

/* v38.11.9: Orders uses the main navigation bar for connection/user controls; no duplicate page header. */
.orders-workspace-no-topbar{padding-top:0}
.orders-mobile-nav{display:none}
.sidebar.app-header .header-utility-actions{min-width:0;display:flex;align-items:center;gap:6px;margin-left:auto;padding-left:12px;border-left:1px solid rgba(255,255,255,.09);white-space:nowrap}
.sidebar.app-header .header-utility-actions .connection-pill{min-height:27px;padding:0 8px;border-color:rgba(255,255,255,.13);color:#dce9e5;background:rgba(255,255,255,.055)}
.sidebar.app-header .header-utility-actions .connection-pill strong{font-size:9px}
.sidebar.app-header .header-utility-actions .connection-pill.ok span{box-shadow:0 0 0 3px rgba(25,167,123,.18)}
.sidebar.app-header .header-utility-actions .env-pill{min-height:27px;padding:0 8px;color:#c6d6d2;background:rgba(255,255,255,.07);font-size:9px}
.header-utility-button{min-height:30px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;border:1px solid rgba(255,255,255,.12);border-radius:7px;color:#d8e5e2;background:rgba(255,255,255,.045);font:inherit;font-size:9px;font-weight:800;text-decoration:none;cursor:pointer}
.header-utility-button:hover{color:#fff;background:rgba(255,255,255,.09)}
.header-current-user{max-width:110px;overflow:hidden;text-overflow:ellipsis;color:#c4d4d1;font-size:9px;font-weight:700}
.header-utility-button.signout{color:#b9cbc6}
@media(max-width:1280px){.sidebar.app-header .header-utility-actions .env-pill{display:none}.header-utility-button span{display:none}.header-current-user{display:none}.sidebar.app-header .nav-item{min-width:76px;padding-left:9px;padding-right:9px}}
@media(max-width:760px){
  .orders-mobile-nav{display:flex;align-items:center;min-height:54px;padding:8px 12px;border-bottom:1px solid #dfe4e9;background:#fff}
  .orders-mobile-nav .mobile-menu{display:inline-flex!important}
  .sidebar.app-header .header-utility-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 0 0;padding:12px 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.08);white-space:normal}
  .sidebar.app-header .header-utility-actions .connection-pill{grid-column:1/-1;justify-content:center}
  .sidebar.app-header .header-utility-actions .env-pill{display:flex;justify-content:center}
  .header-utility-button{min-height:38px;font-size:10px}
  .header-utility-button span{display:inline}
  .header-current-user{display:flex;align-items:center;max-width:none;min-height:38px;padding:0 10px;border:1px solid rgba(255,255,255,.08);border-radius:7px;color:#dce9e5;font-size:10px}
}
.address-card.address-pending{border-color:#e4c98d;background:#fffaf0}
.address-pending-note{display:grid;gap:3px;margin-top:10px;padding-top:9px;border-top:1px solid #ecd9ad;color:#82611f}
.address-pending-note strong{font-size:10px}.address-pending-note span{font-size:9px;line-height:1.45}
.address-pending-inline{color:#9a6b12!important;font-weight:700}

/* v38.11.10: the checkbox/select column participates in the same page-width paired resize model. */
.managed-orders-table thead .order-select-column{overflow:visible}
.managed-orders-table thead .order-select-column .order-select-resize{right:-4px}

/* v38.11.11: cropped Twister Screws logo is the Home control in the persistent navbar. */
.brand-logo-mark{overflow:hidden!important;width:48px!important;height:38px!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.brand-logo-mark img{display:block;width:100%;height:100%;object-fit:contain}
.sidebar.app-header .brand-logo-mark{width:46px!important;height:36px!important;background:transparent!important;box-shadow:none!important}
@media(max-width:760px){.sidebar.app-header .brand-logo-mark{width:52px!important;height:40px!important}}

/* v38.11.13: in-place Orders refresh indicator. */
#refreshOrdersButton.refreshing{pointer-events:none;opacity:.7}
#refreshOrdersButton.refreshing{animation:channelops-order-refresh-spin .8s linear infinite}
@keyframes channelops-order-refresh-spin{to{transform:rotate(360deg)}}

body.resizing-order-column{cursor:col-resize!important;user-select:none!important}body.resizing-order-column *{cursor:col-resize!important}

/* v38.11.13: visible confirmation that the current Orders width profile is persistent. */
.order-column-save-state{display:inline-flex;align-items:center;min-height:23px;padding:0 7px;border-radius:999px;background:#edf8f2;color:#25724f;font-size:7.5px;font-weight:800;white-space:nowrap}
.order-column-save-state[data-state="saving"]{background:#eef4fb;color:#376b97}
.order-column-save-state[data-state="error"]{background:#fff6e6;color:#8a5a0a}

/* v38.11.15 one-page Veeqo-style order console */
.order-modal{
  width:min(1560px,calc(100vw - 20px));
  height:min(960px,calc(100vh - 18px));
  max-height:calc(100vh - 18px);
  border-radius:10px;
}
.order-modal>.order-console-header{
  min-height:72px;
  padding:13px 20px;
  background:linear-gradient(135deg,#5d96b8,#6ea5c2);
  color:#fff;
  border-bottom:0;
}
.order-console-heading{min-width:0}.order-console-heading>.eyebrow{color:rgba(255,255,255,.78)}
.order-console-title-line{display:flex;align-items:center;gap:10px;min-width:0}.order-console-title-line h2{margin:2px 0 0;color:#fff;font-size:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-console-status{display:flex;flex-wrap:wrap;gap:5px}.order-console-status .status-badge{box-shadow:0 1px 3px rgba(0,0,0,.08)}
.order-console-heading p{margin:4px 0 0;color:rgba(255,255,255,.84);font-size:10px}
.order-modal>.order-console-header button{border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.12);color:#fff}
.order-modal>.order-console-header button:hover{background:rgba(255,255,255,.22)}
.order-modal .drawer-body{padding:0;background:#f5f6f8;overflow:auto}
.order-console-shell{min-height:100%;background:#f5f6f8}
.order-console-tabs{position:sticky;top:0;z-index:15;display:flex;gap:2px;height:42px;padding:0 18px;border-bottom:1px solid #d7dde5;background:#fff;box-shadow:0 2px 7px rgba(26,40,62,.04)}
.order-console-tabs button{appearance:none;position:relative;padding:0 11px;border:0;background:transparent;color:#506075;font-size:11px;font-weight:850;text-transform:uppercase;cursor:pointer}
.order-console-tabs button::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:3px;border-radius:3px 3px 0 0;background:transparent}
.order-console-tabs button:hover{color:#235e84}.order-console-tabs button.active{color:#195d89}.order-console-tabs button.active::after{background:#2b83b8}.order-console-tabs button:disabled{cursor:not-allowed;opacity:.38}
.order-console-panel{display:none;padding:10px 12px 18px}.order-console-panel.active{display:block}
.order-console-summary-strip{display:grid;grid-template-columns:minmax(330px,1.8fr) repeat(3,minmax(130px,.7fr));gap:1px;margin-bottom:10px;border:1px solid #dfe4ea;background:#dfe4ea}
.order-console-summary-strip>div{min-width:0;padding:9px 11px;background:#fff}.order-console-summary-strip span{display:block;margin-bottom:4px;color:#68778a;font-size:9px;font-weight:800}.order-console-summary-strip strong{font-size:11px;color:#263548}
.order-console-summary-strip .address-card{padding:0;border:0;border-radius:0;background:transparent;font-size:10px;line-height:1.45}.order-console-summary-strip .address-pending-note{margin-top:7px;padding:7px 8px}
.order-console-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(400px,430px);gap:10px;align-items:start}.order-console-main{display:grid;gap:10px}.order-console-shipping{position:sticky;top:52px;display:grid;gap:10px;min-width:0}
.order-console-card{min-width:0;padding:13px;border:1px solid #dce2e9;border-radius:6px;background:#fff;box-shadow:0 1px 3px rgba(20,34,54,.035)}
.order-console-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.order-console-card-head h3{margin:2px 0 0;font-size:13px}.order-console-card-head .eyebrow{font-size:8px}.order-console-card-head>.brand-logo{flex:0 0 auto}
.order-console-table-wrap{overflow:auto;border:1px solid #e1e5ea}.order-console-items{width:100%;border-collapse:collapse;font-size:10px}.order-console-items th{padding:8px 9px;background:#f3f4f6;color:#4f5d6d;font-size:9px;text-align:left;text-transform:uppercase}.order-console-items td{padding:10px 9px;border-top:1px solid #e4e8ed;vertical-align:middle}.order-console-items th:first-child,.order-console-items td:first-child{width:55px;text-align:center}.order-console-items th:nth-child(4),.order-console-items td:nth-child(4){width:58px;text-align:center}.order-console-items th:last-child,.order-console-items td:last-child{width:86px;text-align:right}.order-console-pick input{width:17px;height:17px}.order-console-product strong,.order-console-product small{display:block}.order-console-product small{margin-top:4px}.order-console-product .option-chips{gap:3px}.order-console-product .option-chip{padding:2px 5px;font-size:8px}
.order-console-item-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:10px;color:#687487;font-size:9px}.order-console-item-footer>div,.order-inline-actions,.order-shipping-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.order-console-lock{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 10px;padding:10px 12px;border:1px solid #efd99c;background:#fff8e4;color:#70530c;font-size:10px}.order-console-lock strong{font-size:11px}.order-console-lock.compact{align-items:flex-start;flex-direction:column;margin:9px 0}
.order-shipping-card{display:grid;gap:10px}.order-shipping-current{display:grid;gap:3px;padding:9px 10px;border:1px solid #dde4eb;background:#f8fafc}.order-shipping-current span{color:#748195;font-size:8px;font-weight:850;text-transform:uppercase}.order-shipping-current strong{font-size:11px}.order-shipping-current small{color:#7a8796;font-size:8px}
.order-package-inline{display:grid;gap:9px}.order-section-label{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-section-label strong{font-size:11px}.order-section-label span{color:#738094;font-size:8px;text-align:right}
.order-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.order-package-grid label{display:grid;gap:4px;color:#667487;font-size:8px;font-weight:800}.order-package-grid input{width:100%;min-height:34px;padding:6px 8px;border:1px solid #cfd8e2;border-radius:4px;background:#fff;font-size:10px}.order-package-grid label:nth-child(5),.order-package-grid label:nth-child(6){grid-column:span 1}
.order-inline-quotes{display:grid;gap:8px;margin-top:2px}.order-inline-quotes .shipping-rate-filter{align-items:stretch;flex-direction:column;padding:9px;border-radius:6px}.order-inline-quotes .shipping-rate-filter-buttons{display:grid;grid-template-columns:repeat(3,1fr)}.order-inline-quotes .rate-filter-button{justify-content:center;min-height:31px;padding:5px 7px}.order-inline-quotes .carrier-isolation-note{align-items:flex-start;flex-direction:column;margin:6px 0;padding:8px}.order-inline-quotes .quote-card.shipping-method-card{grid-template-columns:18px 34px minmax(0,1fr);min-height:66px;padding:9px}.order-inline-quotes .quote-card.shipping-method-card .quote-price{grid-column:3;text-align:left}.order-inline-quotes .shipping-method-icon{width:32px;height:32px}.order-inline-quotes .shipping-method-icon svg{width:20px;height:20px}.order-inline-quotes .shipping-method-title-row{display:block}.order-inline-quotes .shipping-method-badges{justify-content:flex-start;margin-top:5px}.order-inline-quotes .all-provider-rates{margin-top:9px;padding-top:9px}.order-inline-quotes .book-bar{position:static;display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:9px;border-radius:6px}.order-inline-quotes .book-bar-selected{grid-column:1/-1;width:100%;min-width:0;margin:0}.order-inline-quotes .book-bar label{grid-column:1/-1}.order-inline-quotes .book-bar .button{width:100%}
.order-edit-sheet{display:grid;gap:10px}.order-edit-head,.order-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:6px 2px}.order-edit-head h3,.order-history-head h3{margin:3px 0;font-size:16px}.order-edit-head p,.order-history-head p{margin:0;color:#6c7889;font-size:10px}.manual-override-pill{padding:5px 8px;border-radius:999px;background:#e8f7f1;color:#166b55;font-size:8px;font-weight:900;white-space:nowrap}.order-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.order-edit-grid .order-console-card h4{margin:0 0 11px;font-size:12px}.order-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.order-form-grid label{display:grid;gap:4px;color:#667487;font-size:9px;font-weight:800}.order-form-grid .span-2{grid-column:1/-1}.order-form-grid input,.order-form-grid textarea{width:100%;padding:8px 9px;border:1px solid #cfd8e2;border-radius:4px;background:#fff;font:inherit;color:#263548}.order-form-grid input:disabled,.order-form-grid textarea:disabled{background:#f0f2f5;color:#7a8594}.order-edit-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 13px;border:1px solid #dce2e9;background:#fff}.order-edit-footer span{color:#707c8e;font-size:9px}
.order-history-timeline{display:grid;gap:0;border:1px solid #dce2e9;background:#fff}.order-history-timeline article{display:grid;grid-template-columns:18px 1fr;gap:9px;padding:11px 13px;border-top:1px solid #edf0f3}.order-history-timeline article:first-child{border-top:0}.order-history-timeline article>span{width:8px;height:8px;margin-top:3px;border-radius:50%;background:#4d93bd;box-shadow:0 0 0 4px #eaf3f8}.order-history-timeline strong,.order-history-timeline small{display:block}.order-history-timeline strong{font-size:10px}.order-history-timeline small{margin-top:3px;color:#758195;font-size:9px}
.order-console-main .tracking-form{grid-template-columns:minmax(130px,.55fr) minmax(200px,1fr) auto}.order-console-main .shipment-card{font-size:10px}.order-console-main .wide-input{min-height:80px;padding:9px;border:1px solid #cfd8e2;border-radius:4px}
@media(max-width:1120px){.order-console-grid{grid-template-columns:1fr}.order-console-shipping{position:static}.order-console-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.order-console-summary-strip .wide{grid-column:1/-1}.order-edit-grid{grid-template-columns:1fr}}
@media(max-width:720px){.order-modal{width:100vw;height:100dvh;max-height:none;border-radius:0}.order-modal>.order-console-header{padding:11px 13px}.order-console-panel{padding:8px}.order-console-summary-strip{grid-template-columns:1fr}.order-console-summary-strip .wide{grid-column:auto}.order-console-item-footer,.order-edit-footer{align-items:stretch;flex-direction:column}.order-console-item-footer>div{display:grid;grid-template-columns:1fr}.order-package-grid,.order-form-grid{grid-template-columns:1fr}.order-package-grid label,.order-form-grid .span-2{grid-column:auto}.order-console-main .tracking-form{grid-template-columns:1fr}.order-console-tabs{padding:0 8px}.order-console-tabs button{flex:1}.order-console-title-line{align-items:flex-start;flex-direction:column;gap:5px}.order-console-status{display:none}}

/* v38.11.16 compact ChannelOps order console with a dedicated shipping mode */
.order-modal{
  width:min(1480px,calc(100vw - 28px));
  height:calc(100dvh - 28px);
  max-height:calc(100dvh - 28px);
  border:1px solid rgba(17,26,44,.14);
  border-radius:18px;
  box-shadow:0 28px 90px rgba(12,22,42,.24);
}
.order-modal>.order-console-header{
  min-height:68px;
  padding:12px 18px;
  background:linear-gradient(135deg,var(--navy) 0%,#21304b 72%,#294163 100%);
  border-bottom:0;
}
.order-modal>.order-console-header::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--blue),var(--ops-green,#19a77b));}
.order-modal .drawer-body{min-height:0;padding:0;overflow:hidden;background:#f5f7fa;}
.order-console-shell{height:100%;min-height:0;display:flex;flex-direction:column;background:linear-gradient(180deg,#f8fafc 0%,#f4f6f9 100%);}
.order-console-toolbar{flex:0 0 54px;display:flex;align-items:center;gap:12px;padding:8px 16px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.97);}
.order-console-tabs{position:static;z-index:auto;display:flex;align-items:center;gap:5px;height:auto;padding:0;border:0;background:transparent;box-shadow:none;}
.order-console-tabs button{min-height:36px;padding:0 13px;border:0;border-radius:999px;background:transparent;color:#5d697c;font-size:11px;font-weight:800;text-transform:none;letter-spacing:0;}
.order-console-tabs button::after{display:none;}
.order-console-tabs button:hover{color:var(--ink);background:#f1f4f8;}
.order-console-tabs button.active{color:var(--blue);background:var(--blue-soft);}
.order-console-ship-button{margin-left:auto;min-height:36px;padding-inline:16px;border-radius:999px;box-shadow:0 6px 16px rgba(53,99,233,.18);}
.order-console-ship-button.active{box-shadow:0 0 0 3px rgba(53,99,233,.12),0 6px 16px rgba(53,99,233,.18);}
.order-console-panel{display:none;flex:1;min-height:0;padding:14px 16px 16px;overflow:hidden;}
.order-console-panel.active{display:flex;flex-direction:column;min-height:0;}
.order-console-summary-strip{flex:0 0 auto;display:grid;grid-template-columns:minmax(330px,1.8fr) repeat(3,minmax(120px,.62fr));gap:0;margin:0 0 12px;padding:4px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(18,31,53,.045);}
.order-console-summary-strip>div{min-width:0;padding:9px 12px;border-left:1px solid #edf0f4;background:transparent;}
.order-console-summary-strip>div:first-child{border-left:0;}
.order-console-summary-strip span{margin-bottom:3px;color:#7b8798;font-size:8px;letter-spacing:.025em;text-transform:uppercase;}
.order-console-summary-strip strong{font-size:11px;color:var(--ink);}
.order-console-summary-strip .address-card{font-size:10px;line-height:1.35;}
.order-console-lock{flex:0 0 auto;border:1px solid #efd99c;border-radius:12px;background:#fff9e9;}
.order-summary-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.65fr) minmax(330px,.7fr);gap:14px;}
.order-console-card{min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 8px 26px rgba(18,31,53,.045);}
.order-console-card-head{margin-bottom:10px;}
.order-console-card-head h3{font-size:14px;letter-spacing:-.015em;}
.order-console-card-head .eyebrow{color:#8290a1;font-size:8px;letter-spacing:.05em;text-transform:uppercase;}
.order-items-card{display:flex;flex-direction:column;min-height:0;}
.order-console-table-wrap{flex:1;min-height:0;overflow:auto;border:1px solid #edf0f4;border-radius:11px;scrollbar-gutter:stable;}
.order-console-items{min-width:0;}
.order-console-items th{height:34px;padding:0 9px;background:#f8fafc;font-size:8px;}
.order-console-items td{padding:9px;border-top:1px solid #eef1f4;font-size:10px;}
.order-console-item-footer{flex:0 0 auto;padding-top:10px;}
.order-console-item-footer>span strong{color:var(--ink);}
.order-summary-side{min-height:0;display:flex;flex-direction:column;gap:14px;}
.order-summary-fulfilment{flex:0 0 auto;}
.order-summary-fulfilment .wide-input{min-height:64px;max-height:84px;resize:none;border-radius:10px;background:#fbfcfe;}
.order-summary-quickfacts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:10px 0;}
.order-summary-quickfacts>div{padding:8px;border-radius:10px;background:#f6f8fb;}
.order-summary-quickfacts span,.order-summary-quickfacts strong{display:block;}
.order-summary-quickfacts span{color:var(--muted);font-size:8px;text-transform:uppercase;}
.order-summary-quickfacts strong{margin-top:3px;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.order-summary-ship-cta{margin-top:3px;}
.order-summary-shipments{flex:1;min-height:0;display:flex;flex-direction:column;}
.order-summary-shipment-list{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;}
.order-summary-shipments .shipment-card{grid-template-columns:minmax(0,1fr) auto;padding:9px 10px;margin:7px 0;border-radius:11px;}
.order-summary-shipments .shipment-card>div:nth-child(2){display:none;}
.order-summary-shipments .tracking-form{flex:0 0 auto;grid-template-columns:.7fr 1fr auto;gap:6px;margin-top:8px;}
.order-summary-shipments .tracking-form input{min-width:0;height:34px;}

.order-ship-heading{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:10px;padding:0 2px;}
.order-ship-heading h3{margin:2px 0 2px;font-size:18px;letter-spacing:-.025em;}
.order-ship-heading p{margin:0;color:var(--muted);font-size:10px;}
.order-ship-facts{flex:0 0 auto;display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:8px;margin-bottom:12px;}
.order-ship-facts>div{min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(18,31,53,.035);}
.order-ship-facts span,.order-ship-facts strong,.order-ship-facts small{display:block;}
.order-ship-facts span{color:#7d899a;font-size:8px;font-weight:800;text-transform:uppercase;}
.order-ship-facts strong{margin-top:4px;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.order-ship-facts small{margin-top:3px;color:var(--muted);font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.order-ship-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(300px,350px) minmax(0,1fr);gap:14px;}
.order-ship-settings{min-height:0;overflow:auto;scrollbar-gutter:stable;}
.order-shipping-current{padding:10px 11px;border:0;border-radius:11px;background:linear-gradient(135deg,#f3f6fb,#edf3ff);}
.order-package-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.order-package-grid input{min-height:36px;border-radius:9px;}
.order-shipping-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;}
.order-shipping-actions .button{width:100%;}
.order-mark-posted{width:100%;margin-top:7px;text-align:center;}
.order-ship-rates-card{min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.order-ship-rate-hint{padding:5px 8px;border-radius:999px;color:#52705f;background:var(--green-soft);font-size:8px;font-weight:800;white-space:nowrap;}
.order-ship-rates{flex:1;min-height:0;overflow:auto;margin-top:0;padding-right:4px;scrollbar-gutter:stable;}
.order-ship-rates .shipping-rate-filter{border-radius:12px;}
.order-ship-rates .carrier-isolation-note{border-radius:11px;}
.order-ship-rates .quote-card.shipping-method-card{border-radius:12px;}
.order-ship-rates .quote-provider-group{border-radius:12px;overflow:hidden;}
.order-ship-rates .book-bar{position:sticky;bottom:0;z-index:4;border:1px solid #dce4ee;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 -6px 22px rgba(18,31,53,.08);backdrop-filter:blur(8px);}

.order-edit-sheet{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;}
.order-edit-head{padding:0 2px;}
.order-edit-grid{min-height:0;}
.order-edit-grid .order-console-card{min-height:0;overflow:auto;scrollbar-gutter:stable;}
.order-edit-footer{border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 5px 16px rgba(18,31,53,.035);}
.order-form-grid input,.order-form-grid textarea{border-radius:9px;}
.order-history-head{flex:0 0 auto;padding:0 2px 8px;}
.order-history-timeline{flex:1;min-height:0;overflow:auto;border:0;border-radius:14px;background:#fff;box-shadow:0 8px 26px rgba(18,31,53,.045);scrollbar-gutter:stable;}
.order-history-timeline article{padding:10px 14px;}

@media(max-width:1050px){
  .order-summary-layout{grid-template-columns:minmax(0,1.35fr) minmax(300px,.7fr);gap:10px;}
  .order-console-summary-strip{grid-template-columns:minmax(280px,1.5fr) repeat(3,minmax(100px,.6fr));}
  .order-ship-layout{grid-template-columns:310px minmax(0,1fr);gap:10px;}
}
@media(max-width:820px){
  .order-modal{width:100vw;height:100dvh;max-height:none;border-radius:0;}
  .order-console-toolbar{padding:7px 10px;}
  .order-console-tabs button{padding:0 9px;font-size:10px;}
  .order-console-ship-button{padding-inline:11px;}
  .order-console-panel.active{overflow:auto;}
  .order-console-summary-strip{grid-template-columns:1fr 1fr;}
  .order-console-summary-strip .wide{grid-column:1/-1;}
  .order-console-summary-strip>div:nth-child(3){border-left:0;}
  .order-summary-layout,.order-ship-layout,.order-edit-grid{grid-template-columns:1fr;}
  .order-items-card,.order-summary-shipments,.order-ship-rates-card{min-height:360px;}
  .order-summary-side{overflow:visible;}
  .order-ship-facts{grid-template-columns:1fr;}
  .order-ship-heading{align-items:flex-start;}
}

/* v38.11.17 centred shipping-first order popup */
.drawer-backdrop{
  z-index:125;
  background:rgba(8,18,29,.54);
  backdrop-filter:blur(4px);
}
.order-modal{
  position:fixed;
  z-index:130;
  top:calc(var(--header-height) + 18px);
  bottom:18px;
  left:50%;
  right:auto;
  width:min(1360px,calc(100vw - 56px));
  height:auto;
  max-height:none;
  transform:translateX(-50%);
  border:1px solid rgba(18,36,50,.16);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 26px 80px rgba(7,19,31,.32);
  animation:order-shipping-popup-in .16s ease-out;
}
@keyframes order-shipping-popup-in{
  from{opacity:0;transform:translate(-50%,8px) scale(.992)}
  to{opacity:1;transform:translate(-50%,0) scale(1)}
}
.order-modal>.order-console-header{
  position:relative;
  min-height:58px;
  padding:9px 16px;
  background:linear-gradient(105deg,#102633 0%,#153446 72%,#194459 100%);
}
.order-modal>.order-console-header::before{height:2px}
.order-console-heading>.eyebrow{font-size:7px}
.order-console-title-line h2{font-size:17px}
.order-console-heading p{margin-top:2px;font-size:8.5px}
.order-console-status .status-badge{font-size:7.5px}
.order-modal>.order-console-header button{
  width:36px;
  height:36px;
  border-radius:10px;
  font-size:21px;
}
.order-modal .drawer-body{
  min-height:0;
  padding:0;
  overflow:hidden;
  background:#f4f7f8;
}
.order-console-shell{
  height:100%;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:linear-gradient(180deg,#f9fbfb 0%,#f3f6f7 100%);
}
.order-console-toolbar{
  flex:0 0 48px;
  min-height:48px;
  padding:6px 12px;
  border-bottom:1px solid #dfe6e8;
  background:#fff;
}
.order-console-tabs{gap:4px}
.order-console-tabs button{
  min-height:34px;
  padding:0 13px;
  border-radius:9px;
  color:#52626b;
  font-size:10px;
  font-weight:850;
}
.order-console-tabs button:first-child{
  padding-inline:15px;
}
.order-console-tabs button:first-child:not(:disabled){
  color:#126b55;
  background:#ecf8f4;
}
.order-console-tabs button:first-child.active{
  color:#fff;
  background:var(--ops-green);
  box-shadow:0 5px 14px rgba(25,167,123,.18);
}
.order-console-tabs button.active:not(:first-child){color:#174f72;background:#eaf3f8}
.order-console-toolbar-note{
  min-width:0;
  margin-left:auto;
  padding-left:14px;
  border-left:1px solid #e4eaed;
  text-align:right;
}
.order-console-toolbar-note span,.order-console-toolbar-note strong{display:block}
.order-console-toolbar-note span{color:#87939c;font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.order-console-toolbar-note strong{max-width:320px;margin-top:2px;overflow:hidden;color:#334752;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.order-console-panel{
  flex:1;
  min-height:0;
  padding:11px 12px 12px;
  overflow:hidden;
}
.order-console-panel.active{display:flex;flex-direction:column;min-height:0;overflow:hidden}

/* Shipping is the primary order screen. Keep the outer popup fixed; only the rate list scrolls. */
.order-ship-facts{
  flex:0 0 auto;
  grid-template-columns:1.15fr .95fr .9fr;
  gap:8px;
  margin-bottom:10px;
}
.order-ship-facts>div{
  padding:8px 10px;
  border:1px solid #e0e7e9;
  border-radius:10px;
  box-shadow:none;
}
.order-ship-facts span{font-size:7px}
.order-ship-facts strong{margin-top:3px;font-size:10px}
.order-ship-facts small{margin-top:2px;font-size:8px}
.order-ship-layout{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(280px,325px) minmax(0,1fr);
  gap:11px;
  overflow:hidden;
}
.order-console-card{
  border-color:#dde6e8;
  border-radius:12px;
  box-shadow:0 7px 22px rgba(18,43,55,.045);
}
.order-ship-settings{
  min-height:0;
  padding:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.order-ship-settings .order-console-card-head{flex:0 0 auto;margin-bottom:8px}
.order-ship-settings .order-console-card-head h3{font-size:13px}
.order-shipping-current{flex:0 0 auto;padding:8px 10px;border-radius:9px}
.order-package-inline{flex:0 0 auto;gap:8px;margin-top:8px}
.order-package-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.order-package-grid label{font-size:7.5px}
.order-package-grid input{min-height:33px;padding:6px 8px;border-radius:8px;font-size:9.5px}
.order-shipping-actions{gap:6px}
.order-shipping-actions .button{min-height:31px;font-size:9px}
.order-ship-settings .button.success.full{min-height:34px;margin-top:1px;font-size:9.5px}
.order-mark-posted{margin-top:1px;padding:5px;font-size:8px}
.order-ship-existing{
  display:grid;
  grid-template-columns:1fr auto;
  gap:2px 8px;
  margin-top:auto;
  padding:8px 9px;
  border-top:1px solid #e7edef;
  color:#677782;
}
.order-ship-existing span{font-size:7px;font-weight:850;text-transform:uppercase}
.order-ship-existing strong{font-size:10px;color:#2f4652}
.order-ship-existing small{grid-column:1/-1;font-size:7.5px}
.order-ship-rates-card{
  min-height:0;
  padding:12px;
  overflow:hidden;
}
.order-ship-rates-card>.order-console-card-head{flex:0 0 auto;margin-bottom:7px}
.order-ship-rates-card>.order-console-card-head h3{font-size:13px}
.order-ship-rates{
  flex:1;
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding-right:3px;
}
.order-ship-rates .shipping-rate-filter{padding:8px}
.order-ship-rates .carrier-isolation-note{margin:5px 0;padding:7px 9px}
.order-ship-rates .best-rate-heading{margin-bottom:6px}
.order-ship-rates .quote-card.shipping-method-card{min-height:60px;padding:8px}
.order-ship-rates .quote-provider-group>summary{padding:9px 11px}
.order-ship-rates .book-bar{bottom:0;border-radius:10px}

/* Summary is informational only: no pick/pack workflow in the order popup. */
.order-console-summary-strip{
  flex:0 0 auto;
  grid-template-columns:minmax(300px,1.7fr) repeat(3,minmax(105px,.6fr));
  margin-bottom:10px;
  border-radius:11px;
  box-shadow:none;
}
.order-console-summary-strip>div{padding:8px 10px}
.order-summary-readonly{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(290px,.62fr);
  gap:11px;
  overflow:hidden;
}
.order-summary-readonly .order-items-card{min-height:0;padding:12px}
.order-summary-readonly .order-console-table-wrap{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.order-console-items-summary th:first-child,.order-console-items-summary td:first-child{width:auto;text-align:left}
.order-console-items-summary th:nth-child(3),.order-console-items-summary td:nth-child(3){width:60px;text-align:center}
.order-console-items-summary th:last-child,.order-console-items-summary td:last-child{width:88px;text-align:right}
.order-summary-details{flex:0 0 auto;padding:11px}
.order-summary-quickfacts-four{grid-template-columns:repeat(2,minmax(0,1fr));margin:4px 0 0}
.order-summary-shipments{padding:11px}
.order-summary-shipment-list{overscroll-behavior:contain}
.order-summary-shipments .tracking-form{grid-template-columns:.65fr 1fr auto}

/* Edit and history also stay contained inside the popup. */
.order-edit-grid .order-console-card,.order-history-timeline{overscroll-behavior:contain}
body.overlay-open{overflow:hidden!important}

@media(max-width:1050px){
  .order-modal{width:calc(100vw - 34px)}
  .order-ship-layout{grid-template-columns:290px minmax(0,1fr)}
  .order-summary-readonly{grid-template-columns:minmax(0,1.3fr) minmax(270px,.65fr)}
  .order-console-toolbar-note strong{max-width:220px}
}
@media(max-width:820px){
  .drawer-backdrop{z-index:125}
  .order-modal{
    z-index:130;
    top:10px;
    right:10px;
    bottom:10px;
    left:10px;
    width:auto;
    height:auto;
    max-height:none;
    transform:none;
    border-radius:14px;
    animation:none;
  }
  .order-modal>.order-console-header{min-height:54px;padding:8px 11px}
  .order-console-toolbar{overflow-x:auto;padding:5px 8px}
  .order-console-toolbar-note{display:none}
  .order-console-tabs{min-width:max-content}
  .order-console-tabs button{flex:0 0 auto}
  .order-console-panel.active{overflow:auto;overscroll-behavior:contain}
  .order-ship-facts{grid-template-columns:1fr}
  .order-ship-layout,.order-summary-readonly,.order-edit-grid{grid-template-columns:1fr;overflow:visible}
  .order-ship-settings,.order-ship-rates-card,.order-items-card,.order-summary-shipments{min-height:320px}
}

/* v38.11.18 packaged-item weights + saved package-size shortcuts */
.order-ship-items{
  flex:0 0 auto;
  margin-bottom:8px;
  overflow:hidden;
  border:1px solid #e1e8ea;
  border-radius:10px;
  background:#fff;
}
.order-ship-items-head{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 9px;
  border-bottom:1px solid #edf1f2;
  background:#f8fafb;
}
.order-ship-items-head span,.order-saved-package-sizes-head span{
  display:block;
  color:#7a8a94;
  font-size:7px;
  font-weight:850;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.order-ship-items-head strong{display:block;margin-top:1px;color:#314752;font-size:8.5px}
.order-ship-items-head .text-button{flex:0 0 auto;padding:4px 6px;font-size:7.5px}
.order-ship-items-list{max-height:112px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.order-ship-item-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 34px 74px 52px;
  align-items:center;
  gap:6px;
  padding:6px 9px;
  border-bottom:1px solid #f0f3f4;
}
.order-ship-item-row:last-child{border-bottom:0}
.order-ship-item-row>div{min-width:0}
.order-ship-item-row>div strong,.order-ship-item-row>div small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-ship-item-row>div strong{color:#263c48;font-size:8.5px}
.order-ship-item-row>div small{margin-top:1px;color:#84919a;font-size:7px}
.order-ship-item-row>span{color:#657781;font-size:8px;text-align:right}
.order-ship-item-row>b{color:#2e5a49;font-size:8px;text-align:right;white-space:nowrap}
.order-ship-item-row>b.missing{color:#a66b32}
.order-ship-item-row>em{color:#5d6d76;font-size:7.5px;font-style:normal;text-align:right;white-space:nowrap}
.order-ship-items-empty{padding:10px;color:#7e8b94;font-size:8px;text-align:center}
.order-saved-package-sizes{
  padding:7px 8px;
  border:1px solid #dfe8ea;
  border-radius:9px;
  background:#f8fbfb;
}
.order-saved-package-sizes-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.order-saved-package-sizes-head a{color:#1d6f98;font-size:7.5px;font-weight:800;text-decoration:none}
.order-saved-package-size-buttons{display:flex;flex-wrap:wrap;gap:5px;min-height:25px;align-items:center}
.order-saved-package-size-buttons button{
  min-width:58px;
  min-height:27px;
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:5px;
  padding:4px 7px;
  border:1px solid #d8e2e5;
  border-radius:8px;
  background:#fff;
  color:#425660;
  cursor:pointer;
}
.order-saved-package-size-buttons button:hover{border-color:#9fc5d6;background:#f1f8fb}
.order-saved-package-size-buttons button.selected{border-color:#2b8db9;background:#eaf6fb;box-shadow:0 0 0 1px rgba(43,141,185,.08)}
.order-saved-package-size-buttons button strong{font-size:8px;color:#176f95}
.order-saved-package-size-buttons button span{max-width:78px;overflow:hidden;font-size:7.5px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.order-package-inline{gap:7px}
@media(max-height:720px) and (min-width:821px){
  .order-ship-items-list{max-height:80px}
  .order-ship-item-row{padding-top:4px;padding-bottom:4px}
  .order-saved-package-sizes{padding-top:5px;padding-bottom:5px}
}
.order-ship-settings{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;}

/* v38.11.19 Veeqo-style final parcel contents check */
.order-ship-final-check .order-ship-items-head{background:#fbfcfc}
.order-ship-check-table-wrap{max-height:138px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.order-ship-check-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff}
.order-ship-check-table th{
  position:sticky;
  top:0;
  z-index:1;
  padding:6px 8px;
  border-bottom:1px solid #dbe3e6;
  background:#f4f6f7;
  color:#53646e;
  font-size:7px;
  font-weight:850;
  letter-spacing:.025em;
  text-align:left;
  text-transform:uppercase;
}
.order-ship-check-table th:nth-child(1){width:48%}
.order-ship-check-table th:nth-child(2){width:22%}
.order-ship-check-table th:nth-child(3){width:20%}
.order-ship-check-table th:nth-child(4){width:10%;text-align:center}
.order-ship-check-table td{
  min-width:0;
  padding:6px 8px;
  border-bottom:1px solid #edf1f2;
  color:#42545e;
  font-size:8px;
  vertical-align:middle;
}
.order-ship-check-table tbody tr:last-child td{border-bottom:0}
.order-ship-check-table td:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-ship-check-product{min-width:0;display:flex;align-items:center;gap:7px}
.order-ship-check-product img,.order-ship-check-thumb-placeholder{
  flex:0 0 27px;
  width:27px;
  height:27px;
  border:1px solid #e0e6e8;
  border-radius:6px;
  background:#fff;
}
.order-ship-check-product img{object-fit:contain}
.order-ship-check-thumb-placeholder{display:grid;place-items:center;color:#a8b3b9;font-size:11px}
.order-ship-check-product>div{min-width:0}
.order-ship-check-product strong,.order-ship-check-product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-ship-check-product strong{color:#263c48;font-size:8.5px}
.order-ship-check-product small{margin-top:2px;color:#8a969d;font-size:6.8px}
.order-ship-check-weight{display:block;color:#314752;font-size:8px;white-space:nowrap}
.order-ship-check-weight.missing{color:#a66b32}
.order-ship-check-table td:nth-child(3) small{display:block;margin-top:1px;color:#8b979e;font-size:6.7px;white-space:nowrap}
.order-ship-check-qty{text-align:center;font-weight:800;color:#314752}
@media(max-height:720px) and (min-width:821px){.order-ship-check-table-wrap{max-height:100px}.order-ship-check-table th,.order-ship-check-table td{padding-top:4px;padding-bottom:4px}}

/* v38.11.19 Veeqo ambiguous-address recovery */
.order-address-candidates{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(0,2fr);gap:10px;padding:10px 12px;border:1px solid #cfe1e8;border-radius:12px;background:#f5fbfd;box-shadow:0 5px 16px rgba(18,31,53,.025)}
.order-address-candidates h4{margin:2px 0 4px;color:#203d4b;font-size:12px}
.order-address-candidates p{margin:0;color:#667b86;font-size:8.5px;line-height:1.45}
.order-address-candidate-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:6px;min-width:0;max-height:112px;overflow:auto;overscroll-behavior:contain}
.order-address-candidate{display:grid;gap:2px;padding:7px 9px;border:1px solid #d5e3e8;border-radius:9px;background:#fff;color:#314b58;text-align:left;cursor:pointer;box-shadow:0 2px 7px rgba(18,31,53,.025)}
.order-address-candidate:hover{border-color:#5ca8c7;background:#f7fcfe;box-shadow:0 4px 12px rgba(43,141,185,.09)}
.order-address-candidate strong{font-size:8.5px}.order-address-candidate span{font-size:7.4px;line-height:1.35}.order-address-candidate small{margin-top:2px;color:#1d78a0;font-size:7px;font-weight:850}
@media(max-width:900px){.order-address-candidates{grid-template-columns:1fr}.order-address-candidate-list{max-height:150px}}

/* v38.11.20 shipping builder: item weights -> package size -> all courier rates */
.order-ship-workbench{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:minmax(520px,1.08fr) minmax(420px,.92fr);
  gap:12px;
  overflow:hidden;
}
.order-ship-builder,.order-ship-rates-panel{
  min-width:0;
  min-height:0;
  border:1px solid #dce5e8;
  border-radius:15px;
  background:#fff;
  box-shadow:0 10px 28px rgba(18,43,55,.055);
  overflow:hidden;
}
.order-ship-builder{display:flex;flex-direction:column}
.order-ship-destination{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:1.45fr 1fr .55fr;
  gap:0;
  min-height:58px;
  border-bottom:1px solid #e5ebed;
  background:linear-gradient(180deg,#fbfdfd,#f7fafb);
}
.order-ship-destination>div{min-width:0;padding:10px 12px;border-left:1px solid #e8edef}
.order-ship-destination>div:first-child{border-left:0}
.order-ship-destination span,.order-ship-destination strong,.order-ship-destination small{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-ship-destination span{color:#7b8a93;font-size:7px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.order-ship-destination strong{margin-top:3px;color:#243d49;font-size:10px}
.order-ship-destination small{margin-top:2px;color:#71818a;font-size:7.6px}
.order-ship-builder-step{flex:0 0 auto;padding:10px 12px;border-bottom:1px solid #e8edef;background:#fff}
.order-ship-weight-step{min-height:0;display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}
.order-ship-builder-step-head{display:flex;align-items:center;gap:9px;min-height:36px;margin-bottom:7px}
.order-ship-step-number{flex:0 0 27px;width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#eaf5f1;color:#158362;font-size:10px;font-weight:900}
.order-ship-builder-step-head>div:nth-child(2){min-width:0;flex:1}
.order-ship-builder-step-head span{display:block;color:#7d8991;font-size:6.8px;font-weight:850;letter-spacing:.045em;text-transform:uppercase}
.order-ship-builder-step-head h3{margin:1px 0 1px;color:#233c48;font-size:12px;letter-spacing:-.01em}
.order-ship-builder-step-head p{margin:0;color:#7a8992;font-size:7.6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-ship-weight-total{flex:0 0 auto;min-width:116px;padding:6px 9px;border-radius:10px;background:#f4f8f7;text-align:right}
.order-ship-weight-total span,.order-ship-weight-total strong,.order-ship-weight-total small{display:block}
.order-ship-weight-total strong{margin-top:1px;color:#1f4d3f;font-size:11px}
.order-ship-weight-total small{margin-top:1px;color:#8a6d42;font-size:7px}
.order-ship-weight-total small.ready{color:#18815f}
.order-ship-weight-step .order-ship-check-table-wrap{flex:1;min-height:92px;max-height:none;overflow:auto;border:1px solid #e3e9eb;border-radius:10px;scrollbar-gutter:stable}
.order-ship-weight-table{table-layout:fixed}
.order-ship-weight-table th:nth-child(1){width:36%}
.order-ship-weight-table th:nth-child(2){width:17%}
.order-ship-weight-table th:nth-child(3){width:7%;text-align:center}
.order-ship-weight-table th:nth-child(4){width:22%}
.order-ship-weight-table th:nth-child(5){width:18%;text-align:right}
.order-ship-weight-table td:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-ship-weight-table td:nth-child(3){text-align:center}
.order-ship-weight-table td:nth-child(5){text-align:right}
.order-ship-weight-table tr.weight-missing{background:#fffaf4}
.order-line-weight-cell small{display:block;margin-top:2px;color:#819099;font-size:6.6px;white-space:nowrap}
.order-line-weight-editor{display:flex;align-items:center;gap:4px;min-width:0}
.order-line-weight-editor input{min-width:0;width:70px;height:29px;padding:4px 6px;border:1px solid #cfdcdf;border-radius:7px;background:#fff;color:#263e49;font-size:9px;font-weight:800;text-align:right}
.order-line-weight-editor input:focus{outline:0;border-color:#398eb0;box-shadow:0 0 0 2px rgba(57,142,176,.11)}
.order-line-weight-editor span{color:#6e7d86;font-size:7px;white-space:nowrap}
.order-line-total-weight strong{color:#284955;font-size:8px;white-space:nowrap}
.weight-missing .order-line-total-weight strong{color:#a66b32}
.order-ship-size-step{padding-bottom:9px;background:#fbfcfc}
.order-ship-manage-sizes{margin-left:auto;color:#19789f;font-size:7.5px;font-weight:850;text-decoration:none;white-space:nowrap}
.order-size-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(115px,1fr));gap:6px;min-height:0;margin-bottom:7px}
.order-size-picker button{min-width:0;min-height:47px;display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:7px;padding:7px 8px;border:1px solid #d8e3e6;border-radius:10px;background:#fff;color:#38505b;text-align:left;cursor:pointer}
.order-size-picker button:hover{border-color:#8fbfd0;background:#f5fbfd}
.order-size-picker button.selected{border-color:#2390b9;background:#edf8fc;box-shadow:0 0 0 2px rgba(35,144,185,.09)}
.order-size-picker button strong{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#eaf5f8;color:#166f94;font-size:9px}
.order-size-picker button span{min-width:0;overflow:hidden;color:#2e4652;font-size:8px;font-weight:850;text-overflow:ellipsis;white-space:nowrap}
.order-size-picker button small{min-width:0;overflow:hidden;color:#84929a;font-size:6.7px;text-overflow:ellipsis;white-space:nowrap}
.order-size-empty{grid-column:1/-1;padding:8px;border:1px dashed #cfdcdf;border-radius:9px;color:#74838b;font-size:8px}
.order-size-empty a{color:#19789f;font-weight:850}
.order-custom-size{display:flex;align-items:center;gap:5px;padding:6px 7px;border:1px solid #e1e8ea;border-radius:9px;background:#fff}
.order-custom-size>span{margin-right:auto;color:#657781;font-size:7.5px;font-weight:850}
.order-custom-size label{display:flex;align-items:center;gap:3px;color:#7c8991;font-size:7px;font-weight:800}
.order-custom-size input{width:58px;height:27px;padding:3px 5px;border:1px solid #d1dde0;border-radius:7px;font-size:8px;text-align:right}
.order-custom-size small{color:#829099;font-size:7px}
.order-ship-builder-footer{flex:0 0 auto;display:flex;align-items:end;gap:6px;padding:8px 12px;background:#f8fafb}
.order-ship-builder-footer label{display:grid;gap:2px;min-width:100px;color:#75848d;font-size:6.8px;font-weight:800}
.order-ship-builder-footer input{height:30px;padding:4px 7px;border:1px solid #d4dfe2;border-radius:8px;font-size:8px}
.order-ship-builder-footer .button{min-height:31px;padding-inline:10px;font-size:8px;white-space:nowrap}
.order-ship-builder-footer .order-mark-posted{margin-left:auto;padding:6px 4px;font-size:7.5px;white-space:nowrap}
.order-ship-rates-panel{display:flex;flex-direction:column}
.order-ship-rates-header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-bottom:1px solid #e4eaec;background:linear-gradient(180deg,#fbfdfd,#f8fafb)}
.order-ship-rates-header h3{margin:2px 0 1px;color:#233d49;font-size:13px}
.order-ship-rates-header p{margin:0;color:#7b8992;font-size:7.5px}
.order-ship-rates-panel .order-ship-rates{flex:1;min-height:0;overflow:auto;padding:9px;scrollbar-gutter:stable;overscroll-behavior:contain}
.order-rate-empty{min-height:220px;display:grid;place-items:center;align-content:center;gap:5px;padding:22px;color:#74848d;text-align:center}
.order-rate-empty-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:#eef6f8;color:#2585a7;font-size:19px;font-weight:900}
.order-rate-empty strong{color:#344e5a;font-size:11px}.order-rate-empty p{max-width:310px;margin:0;font-size:8px;line-height:1.45}
.order-rate-empty.loading .order-rate-empty-icon{animation:order-rate-spin 1s linear infinite}
@keyframes order-rate-spin{to{transform:rotate(360deg)}}.order-rate-empty.error .order-rate-empty-icon{background:#fff0ef;color:#b94a43}
.order-rate-provider-stack{display:grid;gap:8px;margin-top:7px;padding-bottom:86px}
.order-rate-provider{overflow:hidden;border:1px solid #dce5e8;border-radius:11px;background:#fff}
.order-rate-provider>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 9px;border-bottom:1px solid #e7edef;background:#f8fafb}
.order-rate-provider>header div{min-width:0}.order-rate-provider>header strong,.order-rate-provider>header small{display:block}.order-rate-provider>header strong{color:#294550;font-size:9px}.order-rate-provider>header small{margin-top:1px;color:#849198;font-size:6.8px}.order-rate-provider>header>span{min-width:24px;padding:3px 6px;border-radius:999px;background:#eaf3f7;color:#267596;font-size:7px;font-weight:900;text-align:center}
.order-rate-provider-list{display:grid;gap:5px;padding:6px}
.order-rate-provider-list .quote-card.shipping-method-card{min-height:58px;margin:0;border-radius:9px;padding:7px}
.order-rate-provider-list .provider-rate-empty{margin:0;border:0;border-radius:0}
.order-rate-book-bar{position:sticky;bottom:0;z-index:5;margin-top:-77px;min-height:70px;border:1px solid #d6e1e4;border-radius:11px;background:rgba(255,255,255,.97);box-shadow:0 -8px 24px rgba(18,43,55,.1);backdrop-filter:blur(9px)}
.order-rate-book-bar #saveSelectedRate{display:none}
@media(max-width:1100px){.order-ship-workbench{grid-template-columns:minmax(430px,1fr) minmax(360px,.9fr)}.order-ship-destination{grid-template-columns:1.35fr .9fr .55fr}.order-ship-builder-step-head p{display:none}}
@media(max-height:760px) and (min-width:821px){.order-ship-builder-step{padding-top:7px;padding-bottom:7px}.order-ship-builder-step-head{min-height:30px;margin-bottom:5px}.order-size-picker button{min-height:40px}.order-ship-builder-footer{padding-top:6px;padding-bottom:6px}.order-ship-destination{min-height:50px}.order-ship-destination>div{padding-top:7px;padding-bottom:7px}}
@media(max-width:820px){.order-ship-workbench{display:block;overflow:auto}.order-ship-builder,.order-ship-rates-panel{min-height:520px;margin-bottom:10px}.order-ship-destination{grid-template-columns:1fr}.order-ship-destination>div{border-left:0;border-top:1px solid #e8edef}.order-ship-destination>div:first-child{border-top:0}.order-ship-builder-footer{flex-wrap:wrap}.order-ship-builder-footer .order-mark-posted{margin-left:0}.order-size-picker{grid-template-columns:1fr 1fr}}


/* v38.11.22 compact parcel builder: larger contents table, no step headings */
.order-ship-workbench{grid-template-columns:minmax(0,1.32fr) minmax(350px,.68fr);gap:10px}
.order-ship-builder-step{padding:8px 10px}
.order-ship-weight-step{padding-top:9px}
.order-ship-weight-step .order-ship-check-table-wrap{flex:1;min-height:150px;max-height:none;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;border:1px solid #e3e9eb;border-radius:10px}
.order-ship-weight-table{width:100%;min-width:0;table-layout:fixed}
.order-ship-weight-table th:nth-child(1){width:44%}
.order-ship-weight-table th:nth-child(2){width:16%}
.order-ship-weight-table th:nth-child(3){width:6%;text-align:center}
.order-ship-weight-table th:nth-child(4){width:20%}
.order-ship-weight-table th:nth-child(5){width:14%;text-align:right}
.order-ship-weight-table th,.order-ship-weight-table td{box-sizing:border-box}
.order-ship-weight-table td{overflow:hidden}
.order-ship-check-product{max-width:100%;align-items:flex-start}
.order-ship-check-product>div{max-width:calc(100% - 34px)}
.order-ship-check-product strong{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.25}
.order-ship-check-product .order-ship-product-variation{margin-top:3px;color:#59717d;font-size:6.9px;font-weight:750;white-space:normal;line-height:1.28}
.order-ship-check-product .order-ship-product-dimensions{color:#98a3a9;font-size:6.4px}
.order-line-weight-editor{max-width:100%}
.order-line-weight-editor input{width:58px;max-width:58px}
.order-line-total-weight strong{font-size:7.6px}
.order-ship-weight-summary{flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:7px;padding:7px 3px 0;color:#75848d}
.order-ship-weight-summary span{font-size:7px;font-weight:800;text-transform:uppercase;letter-spacing:.025em}
.order-ship-weight-summary strong{color:#1f4d3f;font-size:10px}
.order-ship-weight-summary small{padding:3px 6px;border-radius:999px;background:#f4f8f7;color:#8a6d42;font-size:6.7px}
.order-ship-weight-summary small.ready{color:#18815f}
.order-ship-size-step{padding-top:7px;padding-bottom:7px;background:#fbfcfc}
.order-size-picker{grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:5px;margin-bottom:6px}
.order-size-picker button{min-height:43px;padding:6px 7px}
.order-custom-size{padding:5px 6px}
.order-custom-size>span{display:none}
.order-custom-size .order-ship-manage-sizes{margin-left:auto}
.order-ship-rates-header{padding:9px 10px}
.order-ship-rates-header h3{font-size:12px}
.order-ship-rates-panel .order-ship-rates{padding:7px}
@media(max-width:1100px){.order-ship-workbench{grid-template-columns:minmax(0,1.18fr) minmax(330px,.82fr)}.order-ship-weight-table th:nth-child(1){width:40%}.order-ship-weight-table th:nth-child(2){width:17%}.order-ship-weight-table th:nth-child(3){width:7%}.order-ship-weight-table th:nth-child(4){width:21%}.order-ship-weight-table th:nth-child(5){width:15%}}
@media(max-height:760px) and (min-width:821px){.order-ship-weight-step .order-ship-check-table-wrap{min-height:120px}.order-ship-size-step{padding-top:5px;padding-bottom:5px}.order-size-picker button{min-height:37px}}

/* v38.11.26 compact full-height shipping rates */
.order-ship-rates-panel .order-ship-rates{
  padding:6px;
  overflow-y:auto;
  overflow-x:hidden;
  scrollbar-gutter:stable;
}
.order-rate-filter-strip{
  position:sticky;
  top:0;
  z-index:7;
  display:flex;
  align-items:center;
  gap:5px;
  min-height:34px;
  padding:4px 5px;
  margin-bottom:5px;
  border:1px solid #e0e7ea;
  border-radius:9px;
  background:rgba(255,255,255,.97);
  box-shadow:0 3px 10px rgba(18,43,55,.035);
  backdrop-filter:blur(8px);
}
.order-rate-filter-strip>span{
  margin-left:auto;
  padding-right:4px;
  color:#7b8992;
  font-size:7px;
  font-weight:800;
  white-space:nowrap;
}
.order-rate-filter-button{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:25px;
  padding:3px 7px;
  border:1px solid #d7e0e4;
  border-radius:999px;
  background:#fff;
  color:#536771;
  font-size:7px;
  font-weight:900;
  cursor:pointer;
}
.order-rate-filter-button b{
  min-width:16px;
  padding:1px 4px;
  border-radius:999px;
  background:#edf2f4;
  color:#6d7d86;
  font-size:6.5px;
  text-align:center;
}
.order-rate-filter-button.active{
  border-color:#238a75;
  background:#edf9f5;
  color:#0f6d5b;
}
.order-rate-filter-button.active b{background:#fff;color:#0f6d5b}
.order-compact-rate-list{
  display:grid;
  gap:4px;
  padding-bottom:56px;
}
.order-compact-rate{
  position:relative;
  display:grid;
  grid-template-columns:17px minmax(0,1fr) auto;
  align-items:center;
  gap:7px;
  min-height:46px;
  padding:5px 7px;
  border:1px solid #dce5e8;
  border-radius:9px;
  background:#fff;
  cursor:pointer;
  transition:border-color .12s,background .12s,box-shadow .12s;
}
.order-compact-rate:hover{
  border-color:#9cbfc8;
  background:#fbfdfd;
  box-shadow:0 4px 12px rgba(18,43,55,.055);
}
.order-compact-rate.cheapest{border-color:#9ad8c7;background:#f7fdfa}
.order-compact-rate.selected{
  border-color:#16866e;
  background:#effaf6;
  box-shadow:0 0 0 2px rgba(22,134,110,.08);
}
.order-compact-rate>input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.order-compact-rate-check{
  width:15px;
  height:15px;
  border:1.5px solid #afbdc3;
  border-radius:50%;
  background:#fff;
}
.order-compact-rate.selected .order-compact-rate-check{
  border-color:#16866e;
  background:#16866e;
  box-shadow:inset 0 0 0 3px #fff;
}
.order-compact-rate-copy{min-width:0}
.order-compact-rate-title{
  display:flex;
  align-items:baseline;
  gap:5px;
  min-width:0;
}
.order-compact-rate-title strong{
  flex:0 0 auto;
  max-width:40%;
  overflow:hidden;
  color:#263f4b;
  font-size:8.5px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.order-compact-rate-title span{
  min-width:0;
  overflow:hidden;
  color:#405964;
  font-size:8px;
  font-weight:750;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.order-compact-rate-meta{
  display:flex;
  align-items:center;
  gap:5px;
  min-width:0;
  margin-top:3px;
}
.order-compact-rate-meta>span{
  min-width:0;
  overflow:hidden;
  color:#829098;
  font-size:6.5px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.order-compact-rate-meta>div{display:flex;align-items:center;gap:3px;margin-left:auto}
.order-rate-badge{
  display:inline-flex;
  align-items:center;
  min-height:16px;
  padding:2px 5px;
  border-radius:999px;
  font-size:6.2px;
  font-weight:950;
  line-height:1;
  white-space:nowrap;
}
.order-rate-badge.cheapest{background:#c9f4df;color:#086347}
.order-rate-badge.speed24{background:#fff0bf;color:#755300}
.order-rate-badge.speed48{background:#e9e4ff;color:#5b4698}
.order-rate-badge.recommended{background:#e2ebff;color:#315a9c}
.order-compact-rate-price{
  min-width:62px;
  text-align:right;
  white-space:nowrap;
}
.order-compact-rate-price strong{display:block;color:#203b47;font-size:11px}
.order-compact-rate-price small{display:block;margin-top:1px;color:#88959c;font-size:6px}
.order-rate-failures{margin:5px 0 58px;border:1px solid #e3e8ea;border-radius:8px;background:#fbfcfc}
.order-rate-failures>summary{padding:6px 8px;color:#75858e;font-size:7px;font-weight:850;cursor:pointer}
.order-rate-failures .provider-rate-empty{margin:4px;border-radius:7px}
.order-rate-book-bar{
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:6px;
  min-height:48px;
  margin-top:-50px;
  padding:5px 6px;
  border-radius:9px;
}
.order-rate-book-bar .book-bar-selected{min-width:0;margin-right:0}
.order-rate-book-bar .book-bar-selected small{display:none}
.order-rate-book-bar .book-bar-selected strong{margin:0;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-rate-book-bar .book-bar-selected span{margin-top:1px;font-size:6.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.order-rate-book-bar label{gap:2px;font-size:6.2px}
.order-rate-book-bar select{min-width:120px;height:29px;padding:3px 6px;font-size:7px}
.order-rate-book-bar .button{min-height:30px;padding:5px 9px;font-size:7px;white-space:nowrap}
@media(max-width:1100px){
  .order-rate-filter-strip>span{display:none}
  .order-compact-rate-title strong{max-width:35%}
  .order-rate-book-bar select{min-width:108px}
}
@media(max-width:820px){
  .order-rate-filter-strip{position:static}
  .order-compact-rate-list{padding-bottom:0}
  .order-rate-book-bar{position:static;grid-template-columns:1fr;margin-top:6px}
  .order-rate-book-bar label,.order-rate-book-bar select,.order-rate-book-bar .button{width:100%}
}

/* v38.11.30 carrier-grouped shipping rates with logo-led visibility */
.order-carrier-rate-stack{
  display:grid;
  gap:7px;
  padding-bottom:56px;
}
.order-carrier-rate-group{
  overflow:hidden;
  border:1px solid #dce5e8;
  border-radius:10px;
  background:#fff;
  box-shadow:0 2px 8px rgba(18,43,55,.035);
}
.order-carrier-rate-group.has-cheapest{border-color:#9bd7c7}
.order-carrier-rate-header{
  display:grid;
  grid-template-columns:82px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  min-height:39px;
  padding:5px 7px;
  border-bottom:1px solid #edf1f2;
  background:#f9fbfb;
}
.order-carrier-rate-group.has-cheapest .order-carrier-rate-header{background:#f5fbf8}
.order-carrier-logo{
  width:78px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.order-carrier-logo img{
  display:block;
  max-width:78px;
  max-height:28px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.order-carrier-logo-fallback{
  display:grid;
  place-items:center;
  min-width:34px;
  height:26px;
  padding:0 7px;
  border-radius:7px;
  background:#eaf0f2;
  color:#31505e;
  font-size:9px;
  font-weight:950;
}
.order-carrier-rate-heading{min-width:0}
.order-carrier-rate-heading strong{
  display:block;
  overflow:hidden;
  color:#243f4b;
  font-size:8.5px;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.order-carrier-rate-heading span{
  display:block;
  margin-top:1px;
  color:#839199;
  font-size:6.2px;
  font-weight:750;
}
.order-carrier-rate-best{
  display:flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}
.order-carrier-rate-best>strong{
  color:#536771;
  font-size:7px;
  font-weight:900;
}
.order-carrier-rate-rows{display:grid}
.order-carrier-rate-rows .order-compact-rate{
  min-height:40px;
  padding:4px 7px;
  border:0;
  border-bottom:1px solid #edf1f2;
  border-radius:0;
  box-shadow:none;
}
.order-carrier-rate-rows .order-compact-rate:last-child{border-bottom:0}
.order-carrier-rate-rows .order-compact-rate:hover{box-shadow:none;background:#f8fbfb}
.order-carrier-rate-rows .order-compact-rate.selected{box-shadow:inset 3px 0 0 #16866e;background:#effaf6}
.order-carrier-rate-rows .order-compact-rate.cheapest{background:#f7fdfa}
.order-carrier-rate-rows .order-compact-rate-title strong{
  max-width:none;
  color:#304c58;
  font-size:8px;
}
.order-carrier-rate-rows .order-compact-rate-meta{margin-top:2px}
.order-carrier-rate-rows .order-compact-rate-price strong{font-size:10.5px}
.order-carrier-rate-rows .order-rate-badge{min-height:15px;padding:2px 5px;font-size:6px}
@media(max-width:1100px){
  .order-carrier-rate-header{grid-template-columns:70px minmax(0,1fr) auto}
  .order-carrier-logo{width:66px}.order-carrier-logo img{max-width:66px}
  .order-carrier-rate-best .cheapest{display:none}
}
@media(max-width:820px){
  .order-carrier-rate-stack{padding-bottom:0}
  .order-carrier-rate-header{grid-template-columns:64px minmax(0,1fr) auto}
  .order-carrier-logo{width:60px}.order-carrier-logo img{max-width:60px;max-height:24px}
}

/* v38.11.35: compact encrypted default collection address used by Veeqo Shipping. */
.shipping-collection-form .shipping-collection-grid{margin-top:4px}
.shipping-collection-form .panel-head{align-items:flex-start}
.shipping-collection-form .form-help{margin:2px 0 12px;color:var(--muted)}

/* v38.11.38: Veeqo linked-carrier health and manual configuration fallback. */
.veeqo-linked-account-controls{margin-top:18px;padding:16px;border:1px solid var(--line,#dbe3ee);border-radius:14px;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);display:grid;gap:12px}
.veeqo-linked-account-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.veeqo-linked-account-head>div{display:grid;gap:4px}
.veeqo-linked-account-head strong{font-size:15px;color:var(--ink,#172033)}
.veeqo-linked-account-head span{font-size:12px;line-height:1.45;color:var(--muted,#667085)}
.veeqo-linked-account-list{display:grid;gap:8px;max-height:240px;overflow:auto;padding-right:2px}
.veeqo-linked-account-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dfe7f1;border-radius:11px;background:#fff;cursor:pointer}
.veeqo-linked-account-row input{width:18px;height:18px;margin:0}
.veeqo-linked-account-row>span{display:grid;gap:2px;min-width:0}
.veeqo-linked-account-row strong{font-size:13px;color:#172033;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.veeqo-linked-account-row small{font-size:11px;color:#667085;line-height:1.35}
.veeqo-linked-account-row .status-badge{font-style:normal;white-space:nowrap}
.veeqo-account-option{margin:0!important;padding:2px 0}
.veeqo-account-warning{display:grid;gap:4px;padding:11px 12px;border:1px solid #f2c57c;border-radius:11px;background:#fff9ed;color:#7a4b00}
.veeqo-account-warning span,.veeqo-account-warning small{font-size:12px;line-height:1.4}
@media (max-width:760px){.veeqo-linked-account-head{align-items:stretch;flex-direction:column}.veeqo-linked-account-row{grid-template-columns:auto minmax(0,1fr)}.veeqo-linked-account-row .status-badge{grid-column:2;justify-self:start}}
.provider-rate-actions{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}

/* v38.11.39: permanent fast Ship action with provider payment settings kept out of the order screen. */
.order-fast-ship-button{
  min-width:54px;
  font-weight:900;
}
.order-carrier-rate-stack{padding-bottom:6px}
.order-rate-failures{margin-bottom:5px}
.order-permanent-ship-bar{
  position:relative;
  z-index:9;
  flex:0 0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:62px;
  padding:8px 9px;
  border-top:1px solid #dce5e8;
  background:linear-gradient(180deg,rgba(255,255,255,.98),#f4faf7);
  box-shadow:0 -7px 20px rgba(18,43,55,.08);
}
.order-permanent-ship-summary{
  min-width:0;
  display:grid;
  gap:2px;
}
.order-permanent-ship-summary small,
.order-permanent-ship-summary strong,
.order-permanent-ship-summary span{
  display:block;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.order-permanent-ship-summary small{
  color:#70838b;
  font-size:6.5px;
  font-weight:950;
  letter-spacing:.045em;
  text-transform:uppercase;
}
.order-permanent-ship-summary strong{
  color:#203d47;
  font-size:9px;
}
.order-permanent-ship-summary span{
  color:#6f8088;
  font-size:7px;
}
.order-permanent-ship-button{
  min-width:116px;
  min-height:40px;
  padding:8px 16px;
  font-size:9px;
  font-weight:950;
  white-space:nowrap;
  box-shadow:0 6px 14px rgba(22,134,110,.18);
}
.order-permanent-ship-button:disabled{
  box-shadow:none;
  cursor:not-allowed;
  opacity:.55;
}
@media(max-width:820px){
  .order-permanent-ship-bar{position:sticky;bottom:0;grid-template-columns:minmax(0,1fr) auto}
  .order-permanent-ship-button{min-width:106px}
}
@media(max-width:520px){
  .order-permanent-ship-bar{grid-template-columns:1fr}
  .order-permanent-ship-button{width:100%}
}

/* v38.11.45: official provider logos plus source-led rate selection. Courier logo stays on the group; each rate shows who sold/quoted it. */
.order-compact-rate{
  grid-template-columns:17px 52px minmax(0,1fr) auto;
}
.order-rate-source-logo{
  width:50px;
  height:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #dde5e8;
  border-radius:6px;
  background:#fff;
  box-shadow:0 1px 2px rgba(20,45,55,.04);
}
.order-rate-source-logo img{
  display:block;
  max-width:48px;
  max-height:21px;
  width:auto;
  height:auto;
  object-fit:contain;
}
.order-rate-source-logo b{
  color:#425b66;
  font-size:7px;
  font-weight:950;
  line-height:1;
}
.order-rate-source-logo.source-amazon-buy-shipping img{max-width:31px;max-height:14px}
.order-rate-source-logo.source-veeqo img{max-width:19px;max-height:19px}
.order-rate-source-logo.source-dpd-local img,.order-rate-source-logo.source-dpd img{max-width:34px;max-height:17px}
.order-rate-source-logo.source-parcel2go img{max-width:48px;max-height:21px}
.order-rate-source-logo.source-packlink img{max-width:48px;max-height:18px}
.shipping-method-source-logo{
  width:56px;
  height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #dbe3e7;
  border-radius:9px;
  background:#fff;
  box-shadow:0 2px 5px rgba(24,48,60,.05);
}
.shipping-method-source-logo img{display:block;max-width:52px;max-height:28px;width:auto;height:auto;object-fit:contain}
.shipping-method-source-logo b{color:#425b66;font-size:9px;font-weight:950}
.shipping-method-source-logo.source-amazon-buy-shipping img{max-width:36px;max-height:18px}
.shipping-method-source-logo.source-veeqo img{max-width:30px;max-height:30px}
@media(max-width:560px){
  .order-compact-rate{grid-template-columns:17px 44px minmax(0,1fr) auto}
  .order-rate-source-logo{width:42px;height:22px}.order-rate-source-logo img{max-width:40px}
}

/* v38.11.45: show when the packed parcel came directly from the Veeqo allocation package. */
.veeqo-saved-parcel{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 2px;padding:9px 11px;border:1px solid #b9e2d1;border-radius:9px;background:#f1fbf7}.veeqo-saved-parcel div{min-width:0}.veeqo-saved-parcel span,.veeqo-saved-parcel strong,.veeqo-saved-parcel small{display:block}.veeqo-saved-parcel span{color:#16794e;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.veeqo-saved-parcel strong{margin-top:2px;color:#163b2b;font-size:11px}.veeqo-saved-parcel small{margin-top:2px;color:#5b7167;font-size:8.5px}.veeqo-saved-parcel>b{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#d8f4e7;color:#126b45;font-size:8px;text-transform:uppercase}

/* v38.11.48 order-source sync centre */
.order-sync-dialog{padding:0;border:0;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 28px 80px rgba(16,28,49,.30);width:min(1040px,calc(100vw - 28px));max-width:none}.order-sync-dialog::backdrop{background:rgba(14,23,38,.46);backdrop-filter:blur(3px)}
.order-sync-form{margin:0;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.order-sync-form>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #dfe4e9;background:linear-gradient(135deg,#f7faff,#fff)}.order-sync-form>header h2{margin:3px 0 4px;font-size:20px}.order-sync-form>header p{margin:0;max-width:650px;color:#667085;font-size:10px;line-height:1.5}.order-sync-form>footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:13px 18px;border-top:1px solid #dfe4e9;background:#fafbfc}
.order-sync-schedule{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 18px;border-bottom:1px solid #e3e8ee;background:#fbfcfe}.order-sync-schedule>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 12px;padding:10px 12px;border:1px solid #dfe6ed;border-radius:10px;background:#fff}.order-sync-schedule span{font-size:8px;text-transform:uppercase;letter-spacing:.06em;color:#6d7786;font-weight:800}.order-sync-schedule strong{font-size:11px;color:#142238}.order-sync-schedule small{grid-column:2;font-size:8px;color:#3f6f58;font-weight:800;text-align:right}
.order-sync-columns{display:grid;grid-template-columns:minmax(250px,1.5fr) minmax(120px,.7fr) minmax(120px,.7fr) minmax(220px,1.25fr) 105px;gap:12px;padding:9px 18px 7px;border-bottom:1px solid #edf0f3;color:#778292;font-size:7.5px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.order-sync-sources{padding:0 18px 12px;overflow:auto}.order-sync-source{display:grid;grid-template-columns:minmax(250px,1.5fr) minmax(120px,.7fr) minmax(120px,.7fr) minmax(220px,1.25fr) 105px;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e6eaef}.order-sync-source:last-child{border-bottom:0}.order-sync-source.is-running{background:linear-gradient(90deg,rgba(33,121,210,.045),transparent);margin:0 -18px;padding-left:18px;padding-right:18px}.order-sync-source-identity{display:flex;align-items:center;gap:11px;min-width:0}.order-sync-source-identity .brand-logo{width:44px;height:44px;flex:0 0 44px}.order-sync-source-identity>div{min-width:0}.order-sync-source-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.order-sync-source-title>strong{font-size:10.5px}.order-sync-source-identity small{display:block;margin-top:3px;font-size:8px;color:#6b7685;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.order-sync-source-stat,.order-sync-source-result{min-width:0}.order-sync-source-stat>span,.order-sync-source-result>span{display:block;margin-bottom:3px;font-size:7px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#818b98}.order-sync-source-stat>strong{display:block;font-size:9px;color:#1a2a3f}.order-sync-source-stat>small{display:block;margin-top:2px;font-size:7.5px;color:#6c7685}.order-sync-source-result>strong{display:block;font-size:8.5px;line-height:1.4;color:#26364a;font-weight:700;white-space:normal}.order-sync-source-result>small{display:block;margin-top:2px;font-size:7.5px;color:#9a5a18}.order-sync-source-action{display:flex;justify-content:flex-end}.order-sync-source-action .button{width:100%;white-space:nowrap}.order-sync-loading{padding:30px;text-align:center;color:#6c7685;font-size:10px}.order-sync-help{display:flex;align-items:flex-start;gap:10px;margin:0 18px 14px;padding:10px 12px;border:1px solid #cfe0f1;border-radius:9px;background:#f5f9fd;color:#3c566f;font-size:8px;line-height:1.5}.order-sync-help strong{white-space:nowrap;color:#274760}
@media(max-width:820px){.order-sync-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.order-sync-form{height:100dvh;max-height:none}.order-sync-schedule{grid-template-columns:1fr}.order-sync-columns{display:none}.order-sync-sources{flex:1}.order-sync-source{grid-template-columns:minmax(0,1fr) auto;gap:9px}.order-sync-source-identity{grid-column:1}.order-sync-source-action{grid-column:2;grid-row:1}.order-sync-source-stat,.order-sync-source-result{padding-left:55px}.order-sync-source-result{grid-column:1/-1}.order-sync-help{flex-direction:column}.order-sync-source-action .button{width:auto}}
@media(max-width:520px){.order-sync-form>header{padding:15px}.order-sync-schedule{padding:12px}.order-sync-sources{padding:0 12px 12px}.order-sync-source{grid-template-columns:1fr}.order-sync-source-action{grid-column:1;grid-row:auto;padding-left:55px;justify-content:flex-start}.order-sync-source-action .button{width:100%}.order-sync-source.is-running{margin:0 -12px;padding-left:12px;padding-right:12px}.order-sync-help{margin:0 12px 12px}.order-sync-form>footer{display:grid;grid-template-columns:1fr 1fr}.order-sync-form>footer .button{width:100%}}

/* v38.11.49: explicit packed-parcel override controls for Veeqo-imported parcels. */
.order-packed-parcel-editor{flex-wrap:wrap;row-gap:6px}
.order-packed-parcel-editor .packed-weight-input{width:74px}
.order-packed-parcel-help{display:block;margin-top:5px;color:#6f7f87;font-size:7px;line-height:1.35}
.veeqo-saved-parcel.pending-manual-override,.veeqo-saved-parcel.channelops-parcel-override{border-color:#9fc8df;background:#f1f8fc}
.veeqo-saved-parcel.pending-manual-override span,.veeqo-saved-parcel.channelops-parcel-override span{color:#176d91}
.veeqo-saved-parcel.pending-manual-override>b,.veeqo-saved-parcel.channelops-parcel-override>b{background:#dceff9;color:#155f7e}
@media(max-width:820px){.order-packed-parcel-editor{align-items:flex-end}.order-packed-parcel-editor .order-ship-manage-sizes{width:100%;margin-left:0}}

/* v38.11.53: exact-address order merge suggestions and one-parcel fulfilment workspace. */
.order-merge-pill{display:inline-flex;align-items:center;justify-content:center;margin-left:5px;padding:2px 6px;border-radius:999px;font-size:6.5px;font-weight:950;letter-spacing:.035em;text-transform:uppercase;vertical-align:middle;white-space:nowrap}
.order-merge-pill.suggested{border:1px solid #a8cde5;background:#edf7fd;color:#17658c}
.order-merge-pill.active{border:1px solid #8fd2b2;background:#eaf9f1;color:#14744b}
.order-merge-banner-row>td{padding:0!important;border-bottom:0!important;background:#f8fbfd}
.order-merge-banner{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;margin:7px 9px;padding:10px 12px;border:1px solid #bdd9ea;border-radius:11px;background:linear-gradient(135deg,#f1f9fe 0%,#fff 72%);box-shadow:0 3px 10px rgba(35,91,120,.06)}
.order-merge-banner.active{border-color:#a9d9c2;background:linear-gradient(135deg,#effaf5 0%,#fff 72%)}
.order-merge-icon{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:10px;background:#dceffa;color:#17688e;font-size:18px;font-weight:900}
.order-merge-banner.active .order-merge-icon{background:#d9f2e6;color:#15734b}
.order-merge-banner-copy{min-width:0}.order-merge-banner-copy span{display:block;color:#55727f;font-size:7px;font-weight:950;letter-spacing:.055em;text-transform:uppercase}.order-merge-banner-copy strong{display:block;margin-top:2px;color:#173947;font-size:10.5px}.order-merge-banner-copy small{display:block;margin-top:3px;color:#657881;font-size:8px;line-height:1.4}
.order-merge-banner-actions{display:flex;align-items:center;gap:7px;justify-content:flex-end;flex-wrap:wrap}.order-merge-banner-actions .button{white-space:nowrap}
.merged-order-row td{background:#fbfffd}.merged-order-row:hover td{background:#f4fbf7}.merge-suggested-order-row td{background:#fcfeff}
.order-merge-console-banner{margin:0 0 12px;padding:13px 14px;border:1px solid #9bd1b7;border-radius:12px;background:linear-gradient(135deg,#edf9f3,#fff);box-shadow:0 4px 12px rgba(26,105,72,.07)}
.order-merge-console-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.order-merge-console-head h3{margin:2px 0 4px;color:#17432f;font-size:13px}.order-merge-console-head p{margin:0;max-width:760px;color:#587064;font-size:8.5px;line-height:1.5}
.order-merge-source-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:7px;margin-top:11px}.order-merge-source-list article{min-width:0;padding:8px 9px;border:1px solid #cae5d7;border-radius:8px;background:rgba(255,255,255,.78)}.order-merge-source-list strong,.order-merge-source-list span,.order-merge-source-list small{display:block}.order-merge-source-list strong{color:#173f2e;font-size:8.5px}.order-merge-source-list span{margin-top:2px;color:#46705c;font-size:7px;font-weight:850;text-transform:uppercase}.order-merge-source-list small{margin-top:2px;color:#687a71;font-size:7.5px}
.order-merge-safety-note{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:8px 10px;border-radius:8px;background:#fff8e7;color:#735517;font-size:8px;line-height:1.45}.order-merge-safety-note strong{color:#60460f;white-space:nowrap}.order-merge-safety-note.provider-restriction{background:#f5f3ff;color:#5c4a83}.order-merge-safety-note.provider-restriction strong{color:#47356f}
.channelops-merged-parcel{border-color:#9bd1b7;background:#effaf5}.channelops-merged-parcel span{color:#16764e}.channelops-merged-parcel>b{background:#d9f3e6;color:#126b45}
.order-ship-source-order{display:block!important;margin-top:2px;color:#16704b!important;font-size:7px!important;font-weight:900!important}
@media(max-width:760px){.order-merge-banner{grid-template-columns:36px minmax(0,1fr)}.order-merge-icon{width:34px;height:34px}.order-merge-banner-actions{grid-column:1/-1;justify-content:stretch}.order-merge-banner-actions .button{flex:1}.order-merge-console-head{flex-direction:column}.order-merge-console-head .button{width:100%}.order-merge-source-list{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.order-merge-source-list{grid-template-columns:1fr}.order-merge-safety-note{flex-direction:column;gap:3px}}

/* v38.11.54: dedicated Mergeable order queue, matching the fast Veeqo-style tab. */
.order-view-tab.mergeable{margin:5px 5px 5px 6px;padding:0 10px;border:1px solid #ddd2f4;border-bottom-width:1px;border-radius:5px;background:#f8f4ff;color:#633b91}
.order-view-tab.mergeable b{background:#6d3fa0;color:#fff}
.order-view-tab.mergeable:hover{background:#f1e9fc}
.order-view-tab.mergeable.active{border-color:#6d3fa0;background:#6d3fa0;color:#fff;box-shadow:0 2px 7px rgba(83,45,128,.18)}
.order-view-tab.mergeable.active b{background:#fff;color:#633b91}
.order-view-tab.mergeable span::before{content:'↥';display:inline-block;margin-right:5px;font-size:11px;font-weight:900}

/* v38.11.55: focused settings workspace with separate packing-slip and dispatch pages. */
.settings-page{padding-top:18px}
.settings-layout-v2{grid-template-columns:272px minmax(0,1fr);gap:20px}
.settings-menu-v2{top:calc(var(--header-height) + 18px);max-height:calc(100dvh - var(--header-height) - 36px);display:flex;flex-direction:column;border-radius:14px;box-shadow:0 8px 24px rgba(18,31,53,.055)}
.settings-menu-v2 .settings-menu-heading{padding:17px 17px 15px;background:linear-gradient(145deg,#f7faff,#fff)}
.settings-menu-v2 .settings-menu-heading h2{margin:3px 0 5px;font-size:20px}
.settings-menu-v2 .settings-menu-heading p{font-size:10px;line-height:1.45}
.settings-search{display:grid!important;grid-template-columns:26px minmax(0,1fr);align-items:center;margin-top:13px;border:1px solid #d9e1eb;border-radius:9px;background:#fff;overflow:hidden;box-shadow:0 2px 7px rgba(18,31,53,.035)}
.settings-search>span{display:grid;place-items:center;color:#758194;font-size:14px}
.settings-search input{width:100%;min-height:34px;padding:0 10px 0 0;border:0!important;outline:0;background:transparent;font-size:10.5px}
.settings-menu-v2 nav{display:block;min-height:0;padding:8px 9px 12px;overflow:auto}
.settings-menu-group-label{display:block;padding:10px 9px 5px;color:#98a2b1;font-size:7.5px;font-weight:950;letter-spacing:.075em;text-transform:uppercase}
.settings-menu-group-label:first-child{padding-top:4px}
.settings-menu-item{grid-template-columns:33px minmax(0,1fr);gap:9px;padding:8px 9px;border-radius:9px}
.settings-menu-item>span{width:31px;height:31px;border-radius:9px;font-size:10px}
.settings-menu-item strong{font-size:10.5px}.settings-menu-item small{margin-top:2px;font-size:7.8px}
.settings-menu-item.active{background:#eef4ff;box-shadow:inset 3px 0 0 #3563e9}
.settings-search-empty{margin:12px 8px;padding:10px;border:1px dashed #d8e0ea;border-radius:8px;color:#7c8797;text-align:center;font-size:9px}
.settings-content-v2{max-width:1380px}
.settings-pane-heading-v2{align-items:center;margin-bottom:14px;padding:0}
.settings-pane-heading-v2 h2{margin:3px 0 5px;font-size:21px}
.settings-pane-heading-v2 p{max-width:800px;font-size:10.5px;line-height:1.48}
.settings-heading-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}

.settings-overview-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:14px;padding:20px 22px;border:1px solid #d8e3f4;border-radius:14px;background:linear-gradient(135deg,#eef5ff 0%,#fff 72%);box-shadow:0 7px 20px rgba(37,76,145,.055)}
.settings-overview-hero h3{margin:4px 0 6px;font-size:18px;letter-spacing:-.025em}.settings-overview-hero p{max-width:690px;margin:0;color:#667386;font-size:10px;line-height:1.55}
.settings-overview-hero-flow{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:9px 11px;border:1px solid #d9e4f4;border-radius:10px;background:rgba(255,255,255,.75);color:#4e627e;font-size:8px;font-weight:850;white-space:nowrap}.settings-overview-hero-flow b{color:#3563e9}
.settings-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.settings-overview-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:82px;padding:13px 14px;border:1px solid #dfe5ed;border-radius:12px;background:#fff;color:var(--ink);text-align:left;box-shadow:0 4px 13px rgba(18,31,53,.035);transition:.15s ease}
.settings-overview-card:hover{border-color:#aebfdd;box-shadow:0 8px 19px rgba(28,56,105,.075);transform:translateY(-1px)}
.settings-overview-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#edf3ff;color:#2c5bb4;font-size:11px;font-weight:950}.settings-overview-icon.dispatch{background:#eaf8f2;color:#187a58}.settings-overview-icon.packages{background:#fff5e9;color:#a95d17}.settings-overview-icon.rules{background:#f2efff;color:#694fc5}.settings-overview-icon.couriers{background:#eaf7fb;color:#16758e}.settings-overview-icon.channels{background:#eef8ed;color:#3a7c36}.settings-overview-icon.catalogue{background:#fff2f4;color:#a64155}.settings-overview-icon.security{background:#f0f2f5;color:#4d596b}
.settings-overview-card div>span,.settings-overview-card div>strong,.settings-overview-card div>small{display:block}.settings-overview-card div>span{color:#7a8494;font-size:7px;font-weight:950;letter-spacing:.055em;text-transform:uppercase}.settings-overview-card div>strong{margin-top:3px;font-size:11.5px}.settings-overview-card div>small{margin-top:3px;color:#768293;font-size:8.2px;line-height:1.35}.settings-overview-card>em{color:#53709f;font-size:8px;font-style:normal;font-weight:900;white-space:nowrap}
.settings-overview-footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.settings-compact-panel{padding:16px}.settings-compact-panel h3{margin:4px 0 6px;font-size:14px}.settings-compact-panel p{margin:0 0 12px;color:var(--muted);font-size:9px;line-height:1.5}

.settings-primary-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(310px,.85fr);gap:14px;align-items:start}
.settings-form-card{overflow:hidden}.settings-form-card>label{display:block;margin:14px 18px 0}.settings-form-card>label:last-of-type{margin-bottom:0}.settings-form-card input,.settings-form-card select,.settings-form-card textarea{width:100%}.settings-form-card label>small{display:block;margin-top:5px;color:#7d8796;font-size:8px;line-height:1.45}
.settings-save-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding:13px 18px;border-top:1px solid #edf0f4;background:#fafbfc}.settings-save-row>span{color:#6f7a89;font-size:8.5px;line-height:1.4}
.packing-slip-settings-preview{padding-bottom:16px}.packing-slip-mini-preview{margin:16px 17px 13px;padding:14px;border:1px solid #cfd7df;border-radius:7px;background:#fff;box-shadow:0 4px 12px rgba(18,31,53,.05);font-family:Arial,sans-serif;color:#111}.packing-slip-mini-preview>strong{font-size:14px}.packing-slip-mini-preview>div:nth-of-type(1){display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px;font-size:6.5px;font-weight:700}.packing-slip-mini-row,.packing-slip-mini-product{display:grid!important;grid-template-columns:minmax(0,1fr) 72px 22px!important;gap:5px!important;margin-top:11px!important;padding:4px 0;border-top:1px solid #222;border-bottom:1px solid #222;font-size:6.5px!important}.packing-slip-mini-product{margin-top:0!important;border-top:0;font-size:6.2px!important;line-height:1.3}.packing-slip-mini-product b{font-weight:900}.packing-slip-mini-preview>i{display:block;width:55%;height:24px;margin:18px auto 0;background:repeating-linear-gradient(90deg,#111 0,#111 2px,#fff 2px,#fff 4px)}
.settings-fact-list{display:grid;gap:0;margin:0 17px;border:1px solid #e2e7ed;border-radius:9px;overflow:hidden}.settings-fact-list>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px;padding:9px 10px;border-top:1px solid #edf0f3}.settings-fact-list>div:first-child{border-top:0}.settings-fact-list span{color:#7b8594;font-size:7.5px;font-weight:900;text-transform:uppercase}.settings-fact-list strong{font-size:8.5px;line-height:1.4}

.settings-stacked-form{display:grid;gap:12px}.settings-stacked-form .settings-form-card{margin:0}.settings-stacked-form .shipping-collection-grid{padding:17px 18px}.veeqo-dispatch-card>.veeqo-linked-account-list{margin:15px 18px}.settings-advanced-block{margin:0 18px 17px;border:1px solid #dce4ed;border-radius:10px;background:#fbfcfe;overflow:hidden}.settings-advanced-block summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;cursor:pointer;list-style:none}.settings-advanced-block summary::-webkit-details-marker{display:none}.settings-advanced-block summary span>strong,.settings-advanced-block summary span>small{display:block}.settings-advanced-block summary span>strong{font-size:10px}.settings-advanced-block summary span>small{margin-top:2px;color:#7a8594;font-size:8px}.settings-advanced-block summary>b{color:#3563e9;font-size:8px}.settings-advanced-block[open] summary>b{font-size:0}.settings-advanced-block[open] summary>b::after{content:'Hide';font-size:8px}.settings-advanced-content{display:grid;gap:12px;padding:0 13px 13px;border-top:1px solid #e7ebf0}.settings-advanced-content>label:first-child{margin-top:13px}.settings-advanced-content textarea{width:100%}
.settings-save-bar{position:sticky;bottom:10px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid #cad7e8;border-radius:11px;background:rgba(255,255,255,.96);box-shadow:0 9px 28px rgba(18,31,53,.12);backdrop-filter:blur(8px)}.settings-save-bar strong,.settings-save-bar span{display:block}.settings-save-bar strong{font-size:10px}.settings-save-bar span{margin-top:2px;color:#7a8594;font-size:8px}
.settings-info-strip{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px;padding:10px 12px;border:1px solid #d7e5f3;border-radius:9px;background:#f5f9fd;color:#466079;font-size:8.5px;line-height:1.45}.settings-info-strip strong{color:#2b4e6d;white-space:nowrap}
.settings-type-chips{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:12px}.settings-type-chips>span{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;column-gap:10px;padding:11px 12px;border:1px solid #dfe5ed;border-radius:10px;background:#fff}.settings-type-chips b{grid-row:1/3;display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#edf3ff;color:#3563e9;font-size:11px}.settings-type-chips strong{font-size:9.5px}.settings-type-chips small{color:#7a8595;font-size:7.8px;line-height:1.35}.settings-side-help{position:sticky;top:calc(var(--header-height) + 18px)}
.settings-compact-help{margin-top:12px}.settings-health-grid{gap:12px}.settings-health-grid .panel{overflow:hidden}

@media(max-width:1180px){.settings-layout-v2{grid-template-columns:238px minmax(0,1fr)}.settings-primary-grid,.settings-courier-layout{grid-template-columns:1fr}.settings-side-help{position:static;order:-1}.settings-overview-hero{align-items:flex-start;flex-direction:column}.settings-overview-hero-flow{white-space:normal}}
@media(max-width:820px){.settings-layout-v2{grid-template-columns:1fr}.settings-menu-v2{position:static;max-height:none}.settings-menu-v2 nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;overflow:visible}.settings-menu-group-label{grid-column:1/-1}.settings-search-empty{grid-column:1/-1}.settings-overview-grid,.settings-overview-footer-grid,.settings-type-chips{grid-template-columns:1fr}.settings-primary-grid{grid-template-columns:1fr}.settings-save-bar{bottom:6px}.settings-pane-heading-v2{align-items:stretch;flex-direction:column}.settings-heading-actions{justify-content:flex-start}}
@media(max-width:560px){.settings-menu-v2 nav{grid-template-columns:1fr}.settings-overview-card{grid-template-columns:38px minmax(0,1fr)}.settings-overview-card>em{grid-column:2}.settings-overview-hero{padding:16px}.settings-overview-hero-flow{display:grid;grid-template-columns:1fr;text-align:center;width:100%}.settings-overview-hero-flow b{transform:rotate(90deg)}.settings-save-row,.settings-save-bar{align-items:stretch;flex-direction:column}.settings-save-row .button,.settings-save-bar .button{width:100%}.settings-fact-list>div{grid-template-columns:1fr}.settings-type-chips{grid-template-columns:1fr}.settings-stacked-form .shipping-collection-grid{padding:14px}.settings-advanced-block,.veeqo-dispatch-card>.veeqo-linked-account-list{margin-left:14px;margin-right:14px}}

/* v38.11.55: focused Settings pages, dedicated packing-slip controls and exact Products-tab names. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.settings-menu-v2 .settings-search{display:block;margin:13px 0 0}.settings-menu-v2 .settings-search>div{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:5px;padding:0 9px;border:1px solid #d9e1eb;border-radius:9px;background:#fff;color:#7c8795}.settings-menu-v2 .settings-search input{min-width:0;width:100%;height:34px;padding:0;border:0;outline:0;background:transparent;font-size:9px}
.settings-menu-group{padding:5px 0}.settings-menu-group.hidden{display:none}.settings-menu-group-label{display:block;padding:8px 9px 5px;color:#929baa;font-size:7px;font-weight:950;letter-spacing:.075em;text-transform:uppercase}
.settings-menu-v2 .settings-menu-item{display:grid;grid-template-columns:25px minmax(0,1fr);align-items:center;gap:8px;width:100%;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:#536071;text-align:left}.settings-menu-v2 .settings-menu-item:hover{background:#f4f7fb}.settings-menu-v2 .settings-menu-item.active{background:#edf3ff;color:#244f9c;box-shadow:inset 3px 0 0 #3563e9}.settings-menu-v2 .settings-menu-item>span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:#eef2f7;font-size:9px;font-weight:950}.settings-menu-v2 .settings-menu-item.active>span{background:#dce8ff}.settings-menu-v2 .settings-menu-item strong,.settings-menu-v2 .settings-menu-item small{display:block}.settings-menu-v2 .settings-menu-item strong{font-size:9.5px}.settings-menu-v2 .settings-menu-item small{margin-top:2px;color:#8791a0;font-size:7.6px;line-height:1.25}.settings-search-empty{margin:8px 9px;padding:10px;border:1px dashed #d8e0ea;border-radius:8px;color:#7c8797;text-align:center;font-size:9px}
.settings-content-v2>.settings-pane{display:none}.settings-content-v2>.settings-pane.active{display:block}
.settings-pane-heading-card{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px;padding:18px 20px;border:1px solid #dfe6ef;border-radius:13px;background:linear-gradient(135deg,#f8fbff,#fff);box-shadow:0 5px 16px rgba(18,31,53,.04)}.settings-pane-heading-card h2{margin:3px 0 5px;font-size:20px;letter-spacing:-.025em}.settings-pane-heading-card p{max-width:780px;margin:0;color:#6f7b8c;font-size:10px;line-height:1.5}.settings-pane-back-row{margin-bottom:10px}
.settings-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-overview-card{grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:start}.settings-overview-card>.settings-overview-icon{grid-row:1/3}.settings-overview-card>div:nth-child(2){min-width:0}.settings-overview-card>div:nth-child(2) .eyebrow{display:block;color:#7a8494;font-size:7px;font-weight:950;letter-spacing:.055em;text-transform:uppercase}.settings-overview-card>div:nth-child(2) h3{margin:3px 0 0;font-size:11.5px}.settings-overview-card>div:nth-child(2) p{margin:3px 0 0;color:#768293;font-size:8.2px;line-height:1.35}.settings-overview-card>.status-badge{justify-self:end;white-space:nowrap}.settings-overview-card>.button{grid-column:2/4;min-height:31px;margin-top:1px;font-size:8px}.settings-overview-icon.package,.settings-overview-icon.packages{background:#fff5e9;color:#a95d17}.settings-overview-icon.rule,.settings-overview-icon.rules{background:#f2efff;color:#694fc5}.settings-overview-icon.courier,.settings-overview-icon.couriers{background:#eaf7fb;color:#16758e}.settings-overview-icon.channel,.settings-overview-icon.channels{background:#eef8ed;color:#3a7c36}.settings-overview-icon.product,.settings-overview-icon.catalogue{background:#fff2f4;color:#a64155}.settings-overview-icon.connection{background:#edf3ff;color:#315aa5}
.settings-packing-layout{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr)}.settings-option-group{display:grid;gap:2px;margin:15px 18px 0;padding:12px;border:1px solid #dfe6ee;border-radius:10px;background:#fafcff}.settings-option-group legend{padding:0 5px;color:#536176;font-size:8px;font-weight:900}.settings-option-group .checkbox-line{margin:0;padding:8px 4px}.settings-option-group .checkbox-line input{width:16px;height:16px}.settings-option-group .checkbox-line strong,.settings-option-group .checkbox-line small{display:block}.settings-option-group .checkbox-line strong{font-size:9px}.settings-option-group .checkbox-line small{margin-top:2px;color:#7a8595;font-size:7.5px}
.settings-preview-card{display:grid;gap:18px;padding:18px;position:sticky;top:calc(var(--header-height) + 18px)}.settings-preview-card h3{margin:4px 0 6px;font-size:14px}.settings-preview-card p,.settings-preview-card li{color:#707d8e;font-size:8.5px;line-height:1.5}.settings-preview-card ul{margin:10px 0 0;padding-left:17px}.settings-preview-paper{display:block;min-height:210px;padding:18px 16px;border:1px solid #cfd7df;border-radius:7px;background:#fff;color:#111;box-shadow:0 5px 14px rgba(18,31,53,.07);font-family:Arial,sans-serif}.settings-preview-paper b{display:block;font-size:16px}.settings-preview-paper i{display:block;margin-top:42px;padding:5px 0;border-top:1px solid #222;border-bottom:1px solid #222;font-size:7px;font-style:normal;font-weight:700}.settings-preview-paper em{display:block;margin-top:8px;font-size:8px;font-style:normal;font-weight:700}.settings-preview-paper:after{content:'';display:block;width:58%;height:28px;margin:52px auto 0;background:repeating-linear-gradient(90deg,#111 0,#111 2px,#fff 2px,#fff 4px)}
.settings-product-defaults{max-width:920px}.settings-product-defaults .master-listing-defaults{width:100%}.settings-product-defaults .master-default-layout{padding:18px}.settings-product-defaults .master-default-layout>label{display:block}.settings-product-defaults .master-default-layout select{width:100%}
@media(max-width:1180px){.settings-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-packing-layout{grid-template-columns:1fr}.settings-preview-card{position:static}}
@media(max-width:820px){.settings-pane-heading-card{flex-direction:column}.settings-overview-grid{grid-template-columns:1fr}.settings-packing-layout{grid-template-columns:1fr}}

/* v38.11.55 refinement: compact, task-based settings pages and packing-slip controls. */
.settings-pane-heading-card{padding:16px 18px;border:1px solid #dfe6ef;border-radius:12px;background:linear-gradient(135deg,#f7faff 0%,#fff 72%);box-shadow:0 4px 13px rgba(18,31,53,.035)}
.settings-pane-heading-card .settings-overview-back{flex:0 0 auto}
.settings-pane-back-row{display:flex;justify-content:flex-start;margin-bottom:9px}
.settings-menu-group{display:block}
.settings-menu-group.hidden{display:none}
.settings-search{grid-template-columns:28px minmax(0,1fr)!important}
.settings-search>span{display:grid!important;position:static!important;width:auto!important;height:auto!important;clip:auto!important;clip-path:none!important;overflow:visible!important;white-space:normal!important}
.settings-search input{min-width:0}
.settings-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.settings-overview-card{grid-template-columns:42px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center}
.settings-overview-card>div:nth-child(2){min-width:0}
.settings-overview-card h3{margin:2px 0 3px;font-size:11.5px;line-height:1.25}
.settings-overview-card p{margin:0;color:#768293;font-size:8.2px;line-height:1.4}
.settings-overview-card>.status-badge{align-self:start;justify-self:end;white-space:nowrap}
.settings-overview-card>.button{grid-column:1/-1;width:100%;margin-top:2px}
.settings-overview-icon.packing{background:#eef1ff;color:#5550aa}
.settings-overview-icon.package,.settings-overview-icon.packages{background:#fff5e9;color:#a95d17}
.settings-overview-icon.rule,.settings-overview-icon.rules{background:#f2efff;color:#694fc5}
.settings-overview-icon.courier,.settings-overview-icon.couriers{background:#eaf7fb;color:#16758e}
.settings-overview-icon.channel,.settings-overview-icon.channels{background:#eef8ed;color:#3a7c36}
.settings-overview-icon.product,.settings-overview-icon.catalogue{background:#fff2f4;color:#a64155}
.settings-overview-icon.connection{background:#edf4ff;color:#315f9d}
.settings-packing-layout{grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr)}
.settings-option-group{display:grid;gap:7px;margin:15px 18px 0;padding:12px;border:1px solid #dfe5ed;border-radius:10px;background:#fbfcfe}
.settings-option-group legend{padding:0 6px;color:#59677a;font-size:8px;font-weight:950;letter-spacing:.055em;text-transform:uppercase}
.checkbox-line{display:flex!important;align-items:flex-start;gap:10px;padding:9px 10px;border:1px solid #e3e8ef;border-radius:8px;background:#fff;color:#26364a!important;cursor:pointer}
.checkbox-line:hover{border-color:#c5d3e5;background:#fbfdff}
.checkbox-line>input{flex:0 0 auto;width:15px!important;height:15px;margin:1px 0 0;padding:0}
.checkbox-line>span{display:block;min-width:0}
.checkbox-line strong,.checkbox-line small{display:block}
.checkbox-line strong{font-size:9px}
.checkbox-line small{margin-top:2px!important;color:#7a8594;font-size:7.8px!important;font-weight:500;line-height:1.4}
.settings-preview-card{position:sticky;top:calc(var(--header-height) + 18px);display:grid;gap:16px;padding:18px;overflow:hidden}
.settings-preview-paper{display:grid;gap:12px;min-height:265px;padding:18px 16px;border:1px solid #bdc6cf;border-radius:5px;background:#fff;color:#111;box-shadow:0 8px 22px rgba(18,31,53,.08);font-family:Arial,sans-serif}
.settings-preview-paper b{font-size:16px}.settings-preview-paper i{align-self:start;padding:5px 0;border-top:1px solid #111;border-bottom:1px solid #111;font-size:7px;font-style:normal}.settings-preview-paper em{align-self:start;font-size:8px;font-style:normal;line-height:1.45}.settings-preview-paper::after{content:'';align-self:end;width:72%;height:30px;margin:0 auto;background:repeating-linear-gradient(90deg,#111 0,#111 2px,#fff 2px,#fff 4px)}
.settings-preview-card h3{margin:3px 0 6px;font-size:14px}.settings-preview-card p{margin:0;color:var(--muted);font-size:9px;line-height:1.5}.settings-preview-card ul{display:grid;gap:5px;margin:12px 0 0;padding-left:17px;color:#5f6d80;font-size:8.5px;line-height:1.4}
.settings-product-defaults{display:grid;grid-template-columns:minmax(0,900px);gap:14px}
.settings-product-defaults .master-listing-defaults{margin-top:0}
.settings-contained-panel{overflow:hidden}
.simplified-settings-layout{align-items:start}
.settings-health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-health-grid .button-row{flex-wrap:wrap}
.settings-pane[data-settings-pane="security"]>.panel,.settings-pane[data-settings-pane="security"]>.system-grid{margin-top:12px}
@media(max-width:1180px){.settings-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-packing-layout{grid-template-columns:1fr}.settings-preview-card{position:static}}
@media(max-width:820px){.settings-menu-group{display:contents}.settings-menu-group.hidden{display:none}.settings-menu-group-label{grid-column:1/-1}.settings-overview-grid,.settings-health-grid{grid-template-columns:1fr}.settings-pane-heading-card{padding:14px}.settings-pane-back-row{margin-top:2px}}
@media(max-width:560px){.settings-overview-card{grid-template-columns:38px minmax(0,1fr)}.settings-overview-card>.status-badge{grid-column:2;justify-self:start}.settings-overview-card>.button{grid-column:1/-1}.settings-option-group{margin-left:14px;margin-right:14px}.settings-preview-card{padding:14px}.settings-pane-heading-card .settings-overview-back{width:100%}}

/* v38.11.57: product variation tabs in Orders and opt-in workstation direct printing. */
.order-item-variation-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:3px;
  margin-top:3px;
}
.order-item-variation-tabs span{
  display:inline-flex;
  align-items:stretch;
  min-width:0;
  overflow:hidden;
  border:1px solid #d9e1e9;
  border-radius:5px;
  background:#fff;
  color:#35475a;
  line-height:1.15;
}
.order-item-variation-tabs b,
.order-item-variation-tabs em{
  display:block;
  min-width:0;
  padding:2px 4px;
  font-size:6.5px;
  overflow-wrap:anywhere;
}
.order-item-variation-tabs b{
  flex:0 0 auto;
  border-right:1px solid #d9e1e9;
  background:#f2f5f8;
  color:#657386;
  font-weight:950;
  letter-spacing:.025em;
  text-transform:uppercase;
}
.order-item-variation-tabs em{
  background:#fff;
  color:#21384d;
  font-style:normal;
  font-weight:850;
}
.settings-overview-icon.printing{background:#edf8f4;color:#14735e}
.direct-print-trial-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:14px;
  padding:12px 14px;
  border:1px solid #edcf7a;
  border-radius:10px;
  background:#fffae9;
  color:#70520d;
}
.direct-print-trial-note strong{flex:0 0 auto;font-size:9px}
.direct-print-trial-note span{font-size:8.5px;line-height:1.5}
.direct-print-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,.34fr);
  gap:14px;
  align-items:start;
}
.direct-print-status-card,
.direct-print-settings-form,
.direct-print-help-card{margin:0}
.direct-print-status-card{grid-column:1/-1}
.direct-print-status-body{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:15px 18px 18px;
}
.direct-print-status-body>div:first-child{min-width:0}
.direct-print-status-body strong,
.direct-print-status-body small{display:block}
.direct-print-status-body strong{font-size:10px;color:#24364b}
.direct-print-status-body small{margin-top:4px;color:#758194;font-size:8px;line-height:1.45}
.direct-print-status-body .button-row{flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end}
.direct-print-settings-form{overflow:hidden}
.direct-print-options{margin-bottom:0}
.direct-print-options .checkbox-line.locked{background:#f6f8fa;color:#667085!important;cursor:not-allowed}
.direct-print-profile-grid{display:grid;gap:0;padding:8px 18px 2px}
.direct-print-profile-row{
  display:grid;
  grid-template-columns:minmax(155px,.8fr) minmax(230px,1.2fr) auto;
  gap:12px;
  align-items:end;
  padding:11px 0;
  border-bottom:1px solid #e7ebf0;
}
.direct-print-profile-row:last-child{border-bottom:0}
.direct-print-profile-row>div strong,
.direct-print-profile-row>div small{display:block}
.direct-print-profile-row>div strong{font-size:9.5px;color:#23354b}
.direct-print-profile-row>div small{margin-top:2px;color:#7a8595;font-size:7.5px}
.direct-print-profile-row label{margin:0;color:#647186;font-size:7px;font-weight:900;text-transform:uppercase;letter-spacing:.045em}
.direct-print-profile-row select{width:100%;margin-top:4px;text-transform:none;letter-spacing:normal;font-weight:600}
.direct-print-profile-row .button{min-width:86px;white-space:nowrap}
.direct-print-help-card{padding:18px;position:sticky;top:calc(var(--header-height) + 18px)}
.direct-print-help-card h3{margin:4px 0 8px;font-size:14px}
.direct-print-help-card ol{display:grid;gap:8px;margin:12px 0;padding-left:19px;color:#536176;font-size:8.5px;line-height:1.5}
.direct-print-help-card p{margin:12px 0 0;padding-top:12px;border-top:1px solid #e5e9ee;color:#7b5b18;font-size:8px;line-height:1.5}
@media(max-width:1040px){
  .direct-print-layout{grid-template-columns:1fr}
  .direct-print-help-card{position:static}
}
@media(max-width:760px){
  .direct-print-status-body{align-items:stretch;flex-direction:column}
  .direct-print-status-body .button-row{justify-content:flex-start}
  .direct-print-profile-row{grid-template-columns:1fr}
  .direct-print-profile-row .button{width:100%}
  .direct-print-trial-note{flex-direction:column}
}

/* v38.11.57: one canonical variation badge per order line; repeated marketplace/product attributes stay hidden. */
.order-item-variation-tabs.single span{max-width:100%}
.order-item-variation-tabs.single em{font-size:7px}
