:root {
  --bg: #f4f5f9;
  --panel: #ffffff;
  --line: #e7e9f0;
  --line-strong: #d6d9e3;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-ring: rgba(79, 70, 229, .18);
  --ok: #047857;
  --ok-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #fef3c7;
  --err: #b91c1c;
  --err-bg: #fee2e2;
  --info: #1d4ed8;
  --info-bg: #dbeafe;
  --sidebar: #0b1220;
  --sidebar-2: #131c31;
  --sidebar-text: #94a3b8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body { font-family: var(--font); font-size: 13.5px; color: var(--text); background: var(--bg); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; display: flex; align-items: center; gap: 10px; }
h2 { font-size: 14px; font-weight: 650; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 8px; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.block { display: block; }

/* ---------- Shell: Veeqo-style dark top bar ---------- */
.shell { display: flex; flex-direction: column; min-height: 100vh; }
.topbar { --tb-bg: #101a2c; --tb-text: #e5e9f2; height: 44px; background: var(--tb-bg); color: var(--tb-text); display: flex; align-items: stretch; padding: 0 12px 0 0; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 2px 8px rgba(2, 6, 23, .25); }
.tb-brand { display: inline-flex; align-items: center; justify-content: center; width: 48px; color: #fff; background: #1a56db; flex-shrink: 0; }
.tb-brand:hover { background: #1746b0; text-decoration: none; }
.tb-brand svg { width: 20px; height: 20px; }
.tb-nav { display: flex; align-items: stretch; margin-left: 4px; overflow-x: auto; scrollbar-width: none; }
.tb-nav::-webkit-scrollbar { display: none; }
.tb-item { display: inline-flex; align-items: center; padding: 0 14px; color: var(--tb-text); font-size: 13px; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.tb-item:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.tb-item.active { background: rgba(26, 86, 219, .55); color: #fff; font-weight: 600; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.tb-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; color: var(--tb-text); background: transparent; border: 0; cursor: pointer; font: inherit; list-style: none; }
.tb-icon:hover, .tb-icon.active { background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; }
.tb-icon .icon { width: 19px; height: 19px; }
.tb-icon.busy { opacity: .5; pointer-events: none; }
.tb-badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e11d48; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--tb-bg); }
.tb-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-left: 6px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ef4444); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; cursor: pointer; list-style: none; }
.tb-dd > summary::-webkit-details-marker { display: none; }
.tb-dd { position: relative; display: flex; align-items: center; }
.tb-menu { left: auto; right: 0; top: calc(100% + 8px); min-width: 250px; color: var(--text); }
.tb-menu .vq-menuitem { color: var(--text); }
.tb-menu .icon { width: 16px; height: 16px; color: var(--muted); }
.tb-menuempty { padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.tb-who { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; }
.tb-who .muted { font-size: 11.5px; }
.tb-usermenu form { margin: 0; }
.tb-version { padding: 8px 10px 4px; font-size: 11px; border-top: 1px solid var(--line); margin-top: 4px; }
/* (legacy) */
.brand { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; padding: 2px 0 18px; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #6366f1, #22d3ee); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; box-shadow: 0 6px 16px rgba(99, 102, 241, .35); flex-shrink: 0; }
.brand.big { font-size: 22px; padding: 0 0 6px; color: var(--text); justify-content: center; }
.main { flex: 1; padding: 22px 28px 90px; min-width: 0; }
.banner { background: linear-gradient(90deg, #fff7ed, #fffbeb); border: 1px solid #fed7aa; color: #7c2d12; padding: 9px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 12.5px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.page-head .actions { display: flex; gap: 8px; align-items: center; }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 4px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.stat .sub { font-size: 12px; color: var(--muted); }
.stat.accent { background: linear-gradient(135deg, #4f46e5, #6366f1); border-color: transparent; color: #fff; }
.stat.accent .label, .stat.accent .sub { color: rgba(255, 255, 255, .78); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font-family: inherit; font-size: 13px; font-weight: 550; cursor: pointer; line-height: 1.2; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .12s, box-shadow .12s, transform .05s; }
.btn:hover { background: #f8fafc; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(79, 70, 229, .3), 0 4px 12px rgba(79, 70, 229, .18); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn-ghost:hover { background: #eef0f5; color: var(--text); }
.btn-danger { color: var(--err); }
.btn-danger:hover { background: var(--err-bg); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; justify-content: center; }
.btn.busy { position: relative; color: transparent !important; }
.btn.busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.btn-primary).busy::after { border-color: rgba(15, 23, 42, .15); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.tabs { display: inline-flex; gap: 2px; background: #e9ebf2; padding: 3px; border-radius: 10px; }
.tab { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-weight: 550; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.tab .count, .chip .count { background: rgba(15, 23, 42, .08); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 600; }
.tab.active .count { background: var(--accent-soft); color: var(--accent); }
.search { position: relative; }
.search input { width: 320px; max-width: 100%; padding-left: 34px; }
.search::before { content: ""; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") no-repeat center / contain; pointer-events: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 12.5px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { text-decoration: none; color: var(--text); border-color: var(--muted-2); }
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.chip.active .count { background: rgba(255, 255, 255, .2); }

/* ---------- Floating bulk bar ---------- */
.bulkbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: #0f172a; color: #fff; padding: 10px 12px 10px 18px; border-radius: 999px; box-shadow: 0 16px 40px rgba(15, 23, 42, .35); z-index: 40; font-size: 13.5px; animation: rise .18s ease-out; }
.bulkbar .btn { border-radius: 999px; }
.bulkbar .btn-ghost { color: #cbd5e1; }
.bulkbar .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.bulkbar .btn:not(.btn-primary):not(.btn-ghost) { background: #1e293b; border-color: #334155; color: #fff; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Tables ---------- */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th, .table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 650; background: #fafbfd; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: #f8f9fc; }
.table tbody tr:last-child td { border-bottom: 0; }
.table.compact th, .table.compact td { padding: 8px 10px; }
.table td.empty { text-align: center; color: var(--muted); padding: 44px; }
.w-check { width: 36px; }
.w-actions { width: 96px; text-align: right; }
tr.row-busy { opacity: .5; }
tr.row-done { background: #f0fdf4 !important; }
tr.row-error { background: #fef2f2 !important; }
tr.selected { background: var(--accent-soft) !important; }
input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }

/* Orders table specifics */
.orders-table td { font-size: 13px; }
.order-cell .order-name { font-weight: 650; font-size: 13.5px; }
.order-cell .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.customer-cell .name { font-weight: 650; }
.customer-cell .addr { color: var(--text-2); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.customer-cell .contact { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; min-width: 240px; }
.items li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline; }
.items .qty { display: inline-flex; justify-content: center; align-items: center; min-width: 30px; padding: 1px 6px; border-radius: 6px; background: #eef0f5; font-weight: 650; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.items .qty.multi { background: var(--accent-soft); color: var(--accent); }
.items .title { font-size: 12.5px; line-height: 1.35; }
.items .sku { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.items .more { color: var(--muted); font-size: 12px; grid-column: 2; }
.weight-cell .w { font-weight: 600; font-variant-numeric: tabular-nums; }
.weight-cell .src { font-size: 11px; color: var(--muted-2); }
.weight-cell .src.est { color: var(--warn); }
.row-service { max-width: 210px; font-size: 12.5px; padding: 6px 8px; }
.svc-name { font-weight: 550; font-size: 12.5px; }
.svc-provider { font-size: 11.5px; color: var(--muted); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; letter-spacing: .01em; background: #eef0f5; color: #334155; white-space: nowrap; line-height: 1.5; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.intl { background: #ede9fe; color: #5b21b6; }
.ch-temu { background: #ffedd5; color: #9a3412; }
.ch-amazon { background: #fef3c7; color: #92400e; }
.ch-ebay { background: #fee2e2; color: #991b1b; }
.ch-tiktok { background: #0f172a; color: #fff; }
.ch-etsy { background: #ffe4e6; color: #9f1239; }
.ch-shopify { background: #d1fae5; color: #065f46; }
.ch-pos, .ch-other { background: #eef0f5; color: #334155; }
.ch-manual { background: #e0f2fe; color: #075985; }
.no-form textarea { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; width: 100%; resize: vertical; }
.no .od-footer { justify-content: flex-end; }
#items-table input { padding: 6px 8px; }
#items-table input.num { text-align: right; }
.st-open { background: var(--info-bg); color: var(--info); }
.st-labelled { background: var(--warn-bg); color: var(--warn); }
.st-shipped, .st-created { background: var(--ok-bg); color: var(--ok); }
.st-cancelled, .st-voided, .st-error { background: var(--err-bg); color: var(--err); }
.st-archived { background: #eef0f5; color: #475569; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }

/* ---------- Cards & forms ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } .main { padding: 16px 16px 90px; } }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.field > span { font-weight: 600; color: var(--text-2); display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.field small { line-height: 1.35; }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=email], input:not([type]), select, textarea { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; color: var(--text); width: 100%; transition: border-color .12s, box-shadow .12s; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 9px center; background-size: 14px; padding-right: 30px; }
.inline-check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; }
.inline-check input { margin-top: 3px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.service-picker { display: flex; gap: 8px; align-items: center; }
.service-picker select { flex: 1; }
.note { margin-top: 10px; padding: 9px 12px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-sm); font-size: 12.5px; }
details.help { margin-top: 8px; font-size: 13px; }
details.help summary { cursor: pointer; color: var(--accent); font-weight: 500; }
details.help p { margin-top: 8px; color: var(--text-2); }
.steps { margin: 8px 0 4px 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--text-2); }
.steps li { line-height: 1.5; }
.steps .mono { font-size: 11.5px; word-break: break-all; }
.alert { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; }
.alert-warn { background: var(--warn-bg); color: #78350f; border: 1px solid #fcd34d; }
.alert-info { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; }
.alert-error { background: var(--err-bg); color: var(--err); border: 1px solid #fca5a5; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- Login ---------- */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(1200px 600px at 20% -10%, #e0e7ff 0%, transparent 60%), radial-gradient(900px 500px at 100% 110%, #cffafe 0%, transparent 55%), var(--bg); }
.login-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px; width: 380px; max-width: 92vw; box-shadow: var(--shadow-md); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.login-card .field { text-align: left; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 20px; top: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 60; max-width: 440px; }
.toast { background: #0f172a; color: #fff; padding: 11px 14px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-md); animation: fade .18s ease-out; border-left: 4px solid #64748b; }
.toast.ok { border-left-color: #22c55e; }
.toast.err { border-left-color: #ef4444; }
.toast.warn { border-left-color: #f59e0b; }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   Orders queue — Veeqo-style layout
   ===================================================================== */
.page-orders .main { background: #fff; padding: 0 0 40px; }
:root { --vq-blue: #1a56db; --vq-blue-dark: #1746b0; --vq-blue-soft: #e8f0fe; --vq-border: #d0d5dd; --vq-line: #e4e7ec; --vq-text: #101828; --vq-text-2: #344054; --vq-muted: #667085; --vq-pill: #e4e7ec; }
.vq { font-size: 12.5px; color: var(--vq-text); }
.vq-ico { width: 15px; height: 15px; flex-shrink: 0; }

/* Views strip (saved views with live counts, Veeqo-style) */
.vq-views { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 8px 0 10px; border-bottom: 1px solid var(--vq-line); background: #fff; position: sticky; top: 44px; z-index: 20; }
.vq-viewstrip { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.vq-viewstrip::-webkit-scrollbar { display: none; }
.vq-view { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 6px; color: var(--vq-text); font-size: 13px; font-weight: 600; white-space: nowrap; max-width: 320px; flex-shrink: 0; }
.vq-view:hover { background: #f2f4f7; text-decoration: none; }
.vq-viewname { overflow: hidden; text-overflow: ellipsis; }
.vq-viewcount { font-size: 11.5px; color: var(--vq-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.vq-view.active { background: var(--vq-blue-soft); color: var(--vq-blue); }
.vq-view.active .vq-viewcount { background: var(--vq-blue); color: #fff; border-radius: 5px; padding: 1px 7px; font-weight: 700; }
.vq-view.attention .vq-viewcount { background: #fee4e2; color: #b42318; border-radius: 5px; padding: 1px 6px; font-weight: 600; }
.vq-view.attention.active .vq-viewcount { background: #b42318; color: #fff; }
.vq-view.tone-orange .vq-viewcount { background: #ffedd5; color: #c2410c; border-radius: 5px; padding: 1px 6px; font-weight: 600; }
.vq-view.tone-orange.active { background: #ffedd5; color: #c2410c; }
.vq-view.tone-orange.active .vq-viewcount { background: #ea580c; color: #fff; }
.vq-viewmenu { margin: 0 4px 0 -2px; }
.vq-viewmore, .vq-viewscroll { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; border: 0; background: transparent; color: var(--vq-text-2); cursor: pointer; list-style: none; padding: 0; }
.vq-viewmore { color: var(--vq-blue); background: var(--vq-blue-soft); border-radius: 0 6px 6px 0; width: 26px; height: 32px; }
.vq-viewmore:hover, .vq-viewscroll:hover { background: #e4e7ec; }
.vq-viewscroll { border: 1px solid var(--vq-border); background: #fff; }
.vq-viewtools { display: flex; align-items: center; gap: 4px; flex-shrink: 0; padding-left: 6px; border-left: 1px solid var(--vq-line); }
.vq-viewsdd > summary::-webkit-details-marker { display: none; }
.vq-viewsmenu { min-width: 320px; padding: 10px 12px 8px; }
.vq-viewsmenu .small { margin: 0 0 8px; }
.vq-viewsmenu .vq-menuitem { padding: 8px 8px; }
.vq-viewsmenu .vq-menuitem.danger { color: #b42318; }
.vq-viewhint { margin-top: 8px !important; }
.vq-viewform { display: flex; gap: 6px; margin: 4px 0 6px; }
.vq-input { flex: 1; height: 34px; padding: 0 10px; border: 1px solid var(--vq-border); border-radius: 6px; font: inherit; font-size: 13px; min-width: 0; }
.vq-input:focus { border-color: var(--vq-blue); outline: none; box-shadow: 0 0 0 3px rgba(26, 86, 219, .15); }
.vq-viewsdd .vq-menu { left: auto; right: 0; }
.vq-viewmenu .vq-menu { left: 0; right: auto; }
.vq-body { padding: 12px 22px 0; }
.vq-spacer { flex: 1; }
.vq-sync { font-size: 12px; padding-right: 6px; }

/* Rows of controls */
.vq-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.vq-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border: 1px solid var(--vq-border); background: #fff; color: var(--vq-text-2); border-radius: 6px; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); list-style: none; }
.vq-btn:hover { background: #f9fafb; text-decoration: none; }
.vq-btn.primary { background: var(--vq-blue); border-color: var(--vq-blue); color: #fff; }
.vq-btn.primary:hover { background: var(--vq-blue-dark); }
.vq-btn.busy { opacity: .6; pointer-events: none; }
.vq-search { flex: 1; display: flex; align-items: center; position: relative; min-width: 260px; }
.vq-search input { height: 36px; border: 1px solid var(--vq-border); border-radius: 6px; padding: 0 40px 0 12px; font-size: 13px; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.vq-search input:focus { border-color: var(--vq-blue); box-shadow: 0 0 0 3px rgba(26, 86, 219, .15); }
.vq-searchbtn { position: absolute; right: 4px; top: 4px; height: 28px; width: 32px; border: 0; background: transparent; color: var(--vq-muted); border-radius: 5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vq-searchbtn:hover { background: #f2f4f7; color: var(--vq-text); }
.vq-searchbtn .vq-ico { width: 17px; height: 17px; }

/* Filter chips */
.vq-chiprow { gap: 6px; }
.vq-clear { color: var(--vq-blue); text-decoration: underline; font-size: 12.5px; margin-right: 4px; }
.vq-chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 10px; background: #eef0f3; border-radius: 6px; font-size: 12px; color: var(--vq-text-2); white-space: nowrap; }
.vq-chip .vq-ico { width: 13px; height: 13px; color: var(--vq-muted); }
.vq-chipselect { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0 2px; font: inherit; font-size: 12px; font-weight: 600; color: var(--vq-text); width: auto; cursor: pointer; }
.vq-chipselect:focus { outline: none; box-shadow: none; }
#product-filter { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.vq-x { color: var(--vq-muted); font-weight: 700; padding: 0 2px; text-decoration: none; }
.vq-x:hover { color: var(--vq-text); }

/* "Dispatch by" chip + pop-over (Veeqo-style: pick one, or a custom range, then Apply) */
.vq-duedd > summary.vq-chip { cursor: pointer; }
.vq-duedd > summary.vq-chip strong { color: var(--vq-text); font-weight: 600; margin-left: 2px; }
.vq-duedd[open] > summary.vq-chip { background: #e4e7ec; }
.vq-duedd.align-right .vq-menu { left: auto; right: 0; }
.vq-duemenu { min-width: 300px; padding: 10px 12px 12px; }
.vq-duetitle { font-size: 12px; font-weight: 600; color: var(--vq-text-2); margin: 2px 0 8px; }
.vq-dueopt { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 6px; font-size: 13px; color: var(--vq-text); cursor: pointer; }
.vq-dueopt:hover { background: #f2f4f7; }
.vq-dueopt input { margin: 0; accent-color: var(--vq-blue); }
.vq-dueopt small { margin-left: auto; font-size: 11px; }
.vq-duerange { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 6px 2px 28px; }
.vq-duerange label { display: grid; gap: 3px; font-size: 11.5px; color: var(--vq-text-2); }
.vq-duerange input[type=date] { height: 32px; padding: 0 8px; border: 1px solid var(--vq-border); border-radius: 6px; font: inherit; font-size: 12.5px; width: 100%; }
.vq-dueactions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--vq-line); }
.vq-duedate { font-size: 10.5px; color: var(--vq-muted); margin-top: 3px; white-space: nowrap; }

/* Actions row */
.vq-actionrow { margin-top: 2px; }
.vq-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--vq-border); border-radius: 6px; background: #fff; color: var(--vq-text-2); }
.vq-iconbtn:hover { background: #f9fafb; text-decoration: none; }
.vq-summary { font-size: 13px; color: var(--vq-text-2); margin-left: 4px; }
.vq-selcount { color: var(--vq-blue); font-weight: 600; margin-right: 8px; }
.vq-pager { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
.vq-pg { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; color: var(--vq-text-2); }
.vq-pg:hover { background: #f2f4f7; text-decoration: none; }
.vq-pg.disabled { opacity: .35; pointer-events: none; }
.vq-pageform { display: inline-flex; align-items: center; gap: 6px; margin: 0 4px; }
.vq-pageinput { width: 56px; height: 30px; text-align: center; padding: 0 6px; border: 1px solid var(--vq-border); border-radius: 6px; font-size: 12.5px; }
.vq-pages { font-size: 12.5px; color: var(--vq-muted); }
.vq-select { height: 30px; padding: 0 26px 0 8px; font-size: 12.5px; border: 1px solid var(--vq-border); border-radius: 6px; background-color: #fff; width: auto; }
.vq-per { margin-left: 6px; }

/* Dropdown menus */
.vq-dd { position: relative; }
.vq-dd > summary { list-style: none; }
.vq-dd > summary::-webkit-details-marker { display: none; }
.vq-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 280px; background: #fff; border: 1px solid var(--vq-line); border-radius: 8px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); padding: 6px; }
.vq-menuitem { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: transparent; border-radius: 6px; font: inherit; font-size: 13px; color: var(--vq-text); cursor: pointer; }
.vq-menuitem:hover { background: #f2f4f7; }
.vq-menuitem .vq-ico { color: var(--vq-muted); }
.vq-menusep { height: 1px; background: var(--vq-line); margin: 6px 4px; }
.vq-filters { display: grid; gap: 10px; padding: 12px; min-width: 300px; }
.vq-filters label { display: grid; gap: 4px; font-size: 12px; font-weight: 600; color: var(--vq-text-2); }
.vq-filters .vq-select { width: 100%; height: 34px; }

/* Table */
.vq-tablewrap { border: 1px solid var(--vq-line); border-radius: 8px; overflow: auto; }
/* Fixed layout: every column but Products has a set width, so Products always gets the rest (≥ 280px at the min width). */
.vq-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 1440px; table-layout: fixed; }
.vq-table th { position: sticky; top: 0; z-index: 2; background: #fff; text-align: left; font-size: 12px; font-weight: 600; color: var(--vq-text-2); padding: 10px 10px; border-bottom: 1px solid var(--vq-line); white-space: nowrap; }
.vq-table td { padding: 10px 10px; overflow: hidden; border-bottom: 1px solid var(--vq-line); vertical-align: middle; font-size: 12px; color: var(--vq-text-2); line-height: 1.4; }
.vq-table tbody tr:nth-child(even) td { background: #f9fafb; }
.vq-table tbody tr:hover td { background: #f2f6ff; }
.vq-table tbody tr:last-child td { border-bottom: 0; }
.vq-table tr.selected td { background: #e8f0fe !important; }
.vq-table tr.row-busy td { opacity: .55; }
.vq-table tr.row-done td { background: #ecfdf3 !important; }
.vq-table tr.row-error td { background: #fef3f2 !important; }
.vq-table .c-check { width: 36px; text-align: center; }
.vq-table .c-store { width: 74px; }
.vq-table .c-order { width: 150px; }
.vq-table .c-customer { width: 170px; }
.vq-table .c-sku { width: 180px; }
.vq-table .c-printed { width: 44px; text-align: center; }
.vq-table .c-products { /* flexible — takes whatever is left */ }
.vq-table .c-due { width: 86px; }
.vq-table .c-delivery { width: 196px; }
.vq-table .c-total { width: 80px; }
.vq-table .c-tags { width: 100px; }
.vq-table .c-weight { width: 84px; }
.vq-table .c-actions { width: 96px; text-align: center; }
.vq-table th.c-store .vq-ico, .vq-table th.c-due .vq-ico, .vq-table th.c-printed .vq-ico { color: var(--vq-muted); }
.vq-table th { border-right: 1px solid var(--vq-line); }
.vq-table th.c-actions, .vq-table th:last-child { border-right: 0; }
.vq-table th.c-check { border-right: 0; }
/* Printed column */
.vq-printed { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 6px; color: var(--vq-muted); }
.vq-printed .vq-ico { width: 16px; height: 16px; }
.vq-printed.none { color: #c0c6d0; }
.vq-printed.todo { color: #b54708; background: #fef0c7; }
.vq-printed.ok { color: #027a48; background: #d1fadf; }
a.vq-printed:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--vq-blue-soft); }
/* Tags column */
.vq-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.vq-tag { display: inline-block; max-width: 100%; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 500; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vq-orderline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.vq-noteico { display: inline-flex; color: var(--vq-muted); margin-bottom: 4px; }
.vq-noteico .vq-ico { width: 14px; height: 14px; }
.vq-noteico:hover { color: var(--vq-blue); }
.vq-prime { display: inline-block; font-weight: 800; font-style: italic; color: #1a56db; letter-spacing: -.01em; }
.vq-empty { text-align: center; color: var(--vq-muted); padding: 48px 20px !important; font-size: 13px; }
.vq-sort { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.vq-sort:hover { text-decoration: none; color: var(--vq-blue); }
.vq-sort .vq-ico { width: 13px; height: 13px; color: var(--vq-muted); }
.vq-sort.active .vq-ico { color: var(--vq-blue); }

/* Cells */
.vq-pill { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-weight: 500; background: var(--vq-pill); color: var(--vq-text-2); white-space: nowrap; line-height: 1.5; margin-bottom: 4px; }
.vq-pill.status.st-labelled { background: #fef0c7; color: #93370d; }
.vq-pill.status.st-shipped { background: #d1fadf; color: #027a48; }
.vq-pill.status.st-elsewhere { background: #ffedd5; color: #c2410c; }
/* Orders shipped from another platform (Veeqo, Shopify admin, Seller Central…): orange so the team can tell at a glance */
.vq-table tr.row-external td { background: #fff7ed; }
.vq-table tr.row-external td:first-child { box-shadow: inset 4px 0 0 #f97316; }
.vq-table tr.row-external:hover td { background: #ffedd5; }
.vq-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--vq-muted); margin: 8px 0 -2px; }
.vq-backfill { color: #c2410c; font-weight: 600; }
.vq-rulehint { font-size: 10.5px; color: #6d28d9; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Rows a shipping rule highlights (e.g. out-of-area postcodes → Royal Mail only) */
.vq-table tbody tr.row-hl-yellow td, .bulk-row.row-hl-yellow td { background: #fefce8; }
.vq-table tbody tr.row-hl-yellow:hover td { background: #fef9c3; }
.vq-table tbody tr.row-hl-yellow td:first-child { box-shadow: inset 4px 0 0 #eab308; }
.vq-table tbody tr.row-hl-orange td, .bulk-row.row-hl-orange td { background: #fff7ed; }
.vq-table tbody tr.row-hl-orange:hover td { background: #ffedd5; }
.vq-table tbody tr.row-hl-orange td:first-child { box-shadow: inset 4px 0 0 #f97316; }
.vq-table tbody tr.row-hl-red td, .bulk-row.row-hl-red td { background: #fef2f2; }
.vq-table tbody tr.row-hl-red:hover td { background: #fee2e2; }
.vq-table tbody tr.row-hl-red td:first-child { box-shadow: inset 4px 0 0 #ef4444; }
.vq-table tbody tr.row-hl-green td, .bulk-row.row-hl-green td { background: #f0fdf4; }
.vq-table tbody tr.row-hl-green:hover td { background: #dcfce7; }
.vq-table tbody tr.row-hl-green td:first-child { box-shadow: inset 4px 0 0 #22c55e; }
.vq-table tbody tr.row-hl-blue td, .bulk-row.row-hl-blue td { background: #eff6ff; }
.vq-table tbody tr.row-hl-blue:hover td { background: #dbeafe; }
.vq-table tbody tr.row-hl-blue td:first-child { box-shadow: inset 4px 0 0 #3b82f6; }
.vq-tag.rule-tag, .od-tag.rule-tag { font-weight: 700; border: 1px solid transparent; white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
.rule-tag.hl-yellow { background: #fef08a !important; color: #713f12; border-color: #facc15 !important; }
.rule-tag.hl-orange { background: #fed7aa !important; color: #7c2d12; border-color: #fb923c !important; }
.rule-tag.hl-red { background: #fecaca !important; color: #7f1d1d; border-color: #f87171 !important; }
.rule-tag.hl-green { background: #bbf7d0 !important; color: #14532d; border-color: #4ade80 !important; }
.rule-tag.hl-blue { background: #bfdbfe !important; color: #1e3a8a; border-color: #60a5fa !important; }
.od-status.od-ruletag { margin-left: 8px; }
.od-status.od-ruletag.hl-yellow { background: #eab308; color: #1f2937; }
.od-status.od-ruletag.hl-orange { background: #f97316; }
.od-status.od-ruletag.hl-red { background: #ef4444; }
.od-status.od-ruletag.hl-green { background: #22c55e; }
.od-status.od-ruletag.hl-blue { background: #3b82f6; }
.od.od-hl-yellow .od-head { box-shadow: inset 0 -4px 0 #eab308; }
.rules-table .rule-postcodes { width: 180px; min-height: 40px; font-family: var(--mono); font-size: 11.5px; padding: 5px 8px; border-radius: 6px; resize: vertical; }
.rules-table .rule-tag { width: 120px; }
.rules-table input[type=text], .rules-table input[type=number], .rules-table select { padding: 5px 8px; font-size: 12.5px; border-radius: 6px; }
.rules-table .rule-min, .rules-table .rule-max { width: 92px; }
.rules-table .rule-channels { width: 120px; }
.rules-table .rule-name { min-width: 160px; }
.rules-table .rule-service { min-width: 260px; max-width: 420px; }
.rules-table td { vertical-align: top; }
.vq-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid #fdba74; background: #fff7ed; box-shadow: inset 3px 0 0 #f97316; }
.alert.alert-orange { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.vq-pill.status.st-cancelled, .vq-pill.status.st-archived { background: #fee4e2; color: #b42318; }
.vq-pill.warnpill { background: #fee4e2; color: #b42318; margin-left: 4px; }
.vq-pill.due-today { background: #fdf1c7; color: #7a5a00; margin: 0; }
.vq-pill.due-tomorrow { background: #e0f2fe; color: #075985; margin: 0; }
.vq-pill.due-later { background: #eef0f3; color: var(--vq-text-2); margin: 0; }
.vq-pill.due-overdue { background: #fee4e2; color: #b42318; margin: 0; font-weight: 600; }
.od-due-overdue { color: #b42318; }
.od-due-today { color: #7a5a00; }
.vq-pill.paid { background: #e4e7ec; color: #344054; }
.vq-pill.unpaid { background: #fef0c7; color: #93370d; }
.vq-link { display: block; color: var(--vq-blue); text-decoration: underline; font-size: 12.5px; font-weight: 500; }
.vq-ref { font-size: 10.5px; color: var(--vq-muted); font-family: var(--mono); }
.vq-date { font-size: 10.5px; color: var(--vq-muted); margin-top: 2px; }
.vq-name { font-size: 12px; font-weight: 600; color: var(--vq-text); }
.vq-loc { display: flex; align-items: center; gap: 5px; color: var(--vq-blue); font-size: 12px; margin-top: 2px; }
.vq-flag { width: 16px; height: 8px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); flex-shrink: 0; }
.vq-cc { font-size: 9.5px; font-weight: 700; background: #e4e7ec; color: #344054; border-radius: 3px; padding: 0 4px; }
.vq-addr { font-size: 11px; color: var(--vq-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vq-sku { font-size: 11.5px; color: var(--vq-text-2); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vq-sku.nosku { color: var(--vq-muted); font-family: var(--font); font-style: italic; }
/* SKU · Bin column: one line per order line — bin chip first, SKU after */
.vq-skuline { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 2px 4px 2px 0; border-radius: 4px; }
.vq-skuline + .vq-skuline { margin-top: 2px; }
.vq-skuline.hit { background: #fff7e6; box-shadow: inset 2px 0 0 #f59e0b; padding-left: 5px; }
.vq-skuline .vq-sku { flex: 1; min-width: 0; }
.vq-skuline .vq-locchip { margin-right: 0; flex-shrink: 0; min-width: 30px; text-align: center; }
.vq-locchip.empty { background: transparent; color: var(--vq-muted); border: 1px dashed var(--vq-border); font-weight: 500; font-size: 10px; text-decoration: none; }
.vq-locchip.empty:hover { color: var(--vq-blue); border-color: var(--vq-blue); text-decoration: none; }
.vq-more { font-size: 11px; color: var(--vq-muted); }
.vq-delivery { font-size: 12px; margin-bottom: 4px; }
.row-service.vq-select { width: 100%; max-width: 100%; height: 28px; font-size: 11.5px; padding: 0 22px 0 6px; background-size: 12px; background-position: right 6px center; }
.vq-svc { font-size: 11.5px; color: var(--vq-muted); }
.vq-svcfull { font-size: 10.5px; color: var(--vq-muted); margin-top: 3px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vq-svcfull:empty { display: none; }
.vq-total { font-size: 12.5px; font-weight: 600; color: var(--vq-text); }
.vq-itemswrap { display: flex; align-items: flex-start; gap: 8px; }
.vq-itemlist { flex: 1; min-width: 0; }
.vq-item { font-size: 11.5px; color: var(--vq-text-2); }
/* Product lines: "2 ×  Product name (variant)" with the SKU underneath */
.vq-prod { display: flex; align-items: flex-start; gap: 7px; padding: 2px 4px 2px 0; border-radius: 4px; }
.vq-prod + .vq-prod { margin-top: 2px; }
.vq-prod.hit { background: #fff7e6; box-shadow: inset 2px 0 0 #f59e0b; padding-left: 5px; }
.vq-qty { flex-shrink: 0; min-width: 26px; text-align: right; font-size: 11.5px; font-weight: 500; color: var(--vq-text-2); border-radius: 4px; padding: 1px 3px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.vq-qty.multi { background: #fef0c7; color: #93370d; font-weight: 700; }
.vq-prodtext { min-width: 0; flex: 1; }
.vq-ptitle { font-size: 12px; font-weight: 500; color: var(--vq-blue); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vq-variant { font-weight: 500; color: var(--vq-text-2); }
.vq-prodtext .vq-sku { margin-top: 1px; }
.vq-chip.active { background: var(--vq-blue-soft); border-color: var(--vq-blue); }
.vq-productbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vq-plus { color: var(--vq-blue); display: inline-flex; padding: 2px; border-radius: 4px; flex-shrink: 0; }
.vq-plus:hover { background: var(--vq-blue-soft); }
.vq-units { font-size: 10.5px; color: var(--vq-muted); margin-top: 3px; }
.vq-weight { font-size: 12.5px; font-weight: 600; color: var(--vq-text); font-variant-numeric: tabular-nums; }
.vq-wsrc { font-size: 10.5px; color: var(--vq-muted); }
.vq-wsrc.est { color: #b54708; }
.vq-ship { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 30px; border-radius: 5px; border: 1px solid var(--vq-blue); background: var(--vq-blue); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.vq-ship:hover { background: var(--vq-blue-dark); text-decoration: none; }
.vq-ship:disabled { opacity: .45; cursor: not-allowed; }
.vq-ship.secondary { background: #fff; color: var(--vq-blue); }
.vq-ship.secondary:hover { background: var(--vq-blue-soft); }
.vq-ship.busy { opacity: .6; pointer-events: none; }
.vq-footrow { margin-top: 10px; }

/* Account → change password: live rule checklist */
.pw-rules { list-style: none; margin: -4px 0 4px; padding: 0; display: grid; gap: 3px; font-size: 12px; color: var(--muted); grid-column: 1 / -1; }
.pw-rules li { padding-left: 22px; position: relative; }
.pw-rules li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-strong); box-sizing: border-box; }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li.ok::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>") no-repeat center / 9px; }
.pw-rules li.bad { color: var(--err); }
.pw-rules li.bad::before { border-color: var(--err); }
.pw-wrap { display: flex; gap: 6px; align-items: center; }
.pw-wrap input { flex: 1; }
.pw-eye { height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; }
.pw-eye:hover { color: var(--text); }
.pw-error { grid-column: 1 / -1; }
#password-form .form-actions, #password-form > p { grid-column: 1 / -1; }

/* Products → aisle / bay / level pickers */
.loc-pick { display: inline-flex; align-items: center; gap: 4px; }
.loc-pick select { height: 30px; padding: 0 22px 0 8px; font-size: 12.5px; border: 1px solid var(--line-strong); border-radius: 6px; background-color: #fff; width: auto; background-size: 12px; background-position: right 6px center; }
.loc-pick select:disabled { opacity: .45; }
.loc-pick.saving { opacity: .6; pointer-events: none; }
.loc-code { display: inline-block; min-width: 44px; text-align: center; padding: 3px 7px; border-radius: 5px; background: #0f172a; color: #fff; font-family: var(--mono); font-size: 11.5px; font-weight: 600; margin-left: 4px; }
.loc-code.empty { background: #eef0f3; color: var(--muted); font-weight: 500; padding: 3px 7px; }
/* Products → Box: chips for the boxes a product ships in + a drop-down to add one */
.box-pick { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; max-width: 260px; }
.box-pick.saving { opacity: .6; pointer-events: none; }
.box-pick select.box-add { height: 30px; padding: 0 22px 0 8px; font-size: 12.5px; border: 1px solid var(--line-strong); border-radius: 6px; background-color: #fff; width: auto; background-size: 12px; background-position: right 6px center; }
.box-chip { display: inline-flex; align-items: center; gap: 3px; padding: 2px 4px 2px 7px; border-radius: 5px; background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; font-family: var(--mono); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.box-chip.unknown { background: #f3f4f6; color: #6b7280; border-color: #d1d5db; text-decoration: line-through; }
.box-chip .box-rm { border: 0; background: transparent; color: inherit; font-size: 13px; line-height: 1; padding: 0 2px; cursor: pointer; opacity: .6; }
.box-chip .box-rm:hover { opacity: 1; }
.od-box .box-chip { padding: 1px 7px; }
.vq-box { display: inline-block; padding: 0 5px; border-radius: 4px; background: #fef3c7; color: #78350f; border: 1px solid #fcd34d; font-family: var(--mono); font-size: 10.5px; font-weight: 700; line-height: 1.5; vertical-align: 1px; white-space: nowrap; }
.field-wide { grid-column: 1 / -1; }
.field-wide textarea { min-height: 150px; resize: vertical; }
.vq-btn.vq-btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.vq-productbar .vq-btn { margin: 0 6px; }

/* Ephemeral-storage warning */
.banner-storage { background: #fee4e2; border: 1px solid #fda29b; color: #912018; padding: 9px 14px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: 12.5px; }
.banner:empty { display: none; }

/* Extra parcels */
.od-extra { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 4px; background: #e0f2fe; color: #075985; font-size: 10.5px; font-weight: 600; vertical-align: middle; }

/* Table management dialog */
.columns-modal { align-items: flex-start; padding: 24px 18px; overflow: auto; }
.od-modal-card.columns-card { width: 880px; max-width: 100%; padding: 18px 22px 16px; gap: 6px; max-height: calc(100vh - 48px); overflow: auto; }
.columns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 12px 0 4px; align-items: start; }
.columns-grid h3 { font-size: 12.5px; font-weight: 600; color: var(--vq-text-2); margin: 0 0 8px; }
.col-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-height: 60px; }
.col-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--vq-border); border-radius: 6px; background: #fff; font-size: 13px; }
.col-grip { color: #c0c6d0; letter-spacing: -3px; font-size: 13px; cursor: default; }
.col-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.col-name small { font-size: 11px; }
.col-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid transparent; background: transparent; border-radius: 6px; color: var(--vq-text-2); cursor: pointer; }
.col-btn:hover { background: #f2f4f7; border-color: var(--vq-border); }
.col-btn:disabled { opacity: .3; cursor: not-allowed; }
.col-empty { padding: 10px; font-size: 12.5px; border: 1px dashed var(--vq-border); border-radius: 6px; }

/* =====================================================================
   Order detail — Veeqo-style
   ===================================================================== */
.page-order .main { background: #eef0f3; padding: 0 0 80px; }
.od { --od-blue: #4a8ab5; --od-blue-dark: #3f7aa3; --od-line: #e1e4ea; --od-head: #f4f5f7; font-size: 12.5px; color: #1f2937; }
.od-head { background: var(--od-blue); color: #fff; padding: 14px 24px 0; }
.od-head-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.od-title { font-size: 21px; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.od-status { display: inline-block; background: #f5a623; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.od-status.st-labelled { background: #f59e0b; }
.od-status.st-shipped { background: #22c55e; }
.od-status.st-elsewhere { background: #f97316; }
.od-step-external strong { color: #c2410c; }
.od-dot.orange { background: #f97316; border-color: #f97316; }
.od-status.st-cancelled, .od-status.st-archived { background: #ef4444; }
.od-ref { font-size: 12px; font-weight: 500; text-transform: none; opacity: .85; font-family: var(--mono); }
.od-meta { font-size: 11px; opacity: .92; margin-top: 6px; }
.od-head-right { display: flex; align-items: flex-start; gap: 18px; }
.od-account { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .12); padding: 6px 12px 6px 8px; border-radius: 6px; }
.od-account .badge { font-size: 10px; }
.od-acc-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.od-acc-sub { font-size: 11px; opacity: .85; }
.od-close { color: #fff; font-size: 30px; line-height: 1; text-decoration: none; opacity: .9; padding: 0 4px; }
.od-close:hover { opacity: 1; text-decoration: none; }
.od-tabs { display: flex; gap: 4px; margin-top: 14px; }
.od-tab { background: transparent; border: 0; color: rgba(255, 255, 255, .85); font: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 9px 12px 10px; cursor: pointer; border-bottom: 3px solid transparent; }
.od-tab:hover { color: #fff; }
.od-tab.active { color: #fff; border-bottom-color: #fff; }
.od-body { padding: 12px 18px 0; }
.od-card { background: #fff; border: 1px solid var(--od-line); border-radius: 4px; margin-bottom: 12px; overflow: hidden; }
.od-cardhead { background: var(--od-head); border-bottom: 1px solid var(--od-line); padding: 8px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #374151; }
.od-cardbody { padding: 14px; }
.od-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.od-tag { display: inline-block; background: #e5edf7; color: #1e3a8a; border-radius: 3px; padding: 3px 8px; font-size: 11.5px; font-weight: 600; }
.od-tag.alt { background: #f1f5f9; color: #334155; font-weight: 500; }
.od-table { width: 100%; border-collapse: collapse; }
.od-table th { background: var(--od-head); border-bottom: 1px solid var(--od-line); padding: 9px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #374151; text-align: left; }
.od-table td { padding: 12px 14px; border-bottom: 1px solid var(--od-line); font-size: 12.5px; vertical-align: middle; }
.od-table tr:last-child td { border-bottom: 0; }
.od-product { font-weight: 700; text-transform: uppercase; font-size: 12px; color: #1f2937; }
.od-cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; }
.od-col { border-right: 1px solid var(--od-line); min-width: 0; }
.od-col .od-cardhead { border-bottom: 1px solid var(--od-line); }
.od-kv { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 12.5px; }
.od-kv .vq-ico { color: #4a8ab5; width: 16px; height: 16px; }
.od-link { color: #2563eb; word-break: break-all; }
.od-addr div { line-height: 1.6; font-size: 12.5px; }
.od-addr-name { font-weight: 600; }
.od-postcode { color: #2563eb; text-decoration: underline; }
.od-verified { margin-top: 8px; font-size: 11px; color: #9ca3af; }
.od-totals { padding: 14px 18px; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; }
.od-totals > div { display: flex; justify-content: space-between; gap: 12px; }
.od-totals span { font-weight: 700; color: #374151; }
.od-totals strong { font-weight: 700; }
.od-totals .od-grand span, .od-totals .od-grand strong { color: #2563eb; }
.od-grid2 { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 1100px) { .od-cols { grid-template-columns: 1fr 1fr; } .od-grid2 { grid-template-columns: 1fr; } }
.od-notes { display: flex; flex-direction: column; gap: 8px; min-height: 90px; margin-bottom: 12px; }
.od-empty { text-align: center; padding: 24px 10px; color: #4b5563; display: flex; flex-direction: column; gap: 4px; }
.od-empty strong { font-size: 14px; font-weight: 500; color: #374151; }
.od-empty span { font-size: 11.5px; color: #6b7280; }
.od-note { background: #f8fafc; border: 1px solid var(--od-line); border-radius: 6px; padding: 8px 10px; }
.od-note-body { white-space: pre-wrap; font-size: 12.5px; }
.od-note-meta { font-size: 11px; color: #6b7280; margin-top: 4px; display: flex; justify-content: space-between; align-items: center; }
.od-note-del { border: 0; background: transparent; color: #9ca3af; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.od-note-del:hover { color: #b91c1c; }
.od-noteform { display: flex; gap: 6px; }
.od-noteform input { border-radius: 6px; }
.od-send { border: 1px solid #d1d5db; background: #fff; color: #2563eb; border-radius: 6px; width: 40px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.od-send:hover { background: #eff6ff; }
.od-custnote { white-space: pre-wrap; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 10px 12px; font-size: 12.5px; min-height: 90px; }
.od-breakdown { display: flex; flex-direction: column; gap: 14px; }
.od-step { display: flex; align-items: flex-start; gap: 10px; }
.od-step > div { flex: 1; }
.od-step strong { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #1f2937; }
.od-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 4px; background: #d1d5db; flex-shrink: 0; }
.od-dot.on { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.od-dot.done { background: #4a8ab5; }
.od-dot.off { background: #ef4444; }
.od-stepactions { display: flex; gap: 6px; flex: 0 0 auto !important; }
.od-stepactions .vq-btn { height: 30px; padding: 0 10px; font-size: 12px; }
.od-activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.od-activity li { display: grid; grid-template-columns: 130px 200px 1fr; gap: 10px; font-size: 12px; align-items: baseline; }
.od-event { font-family: var(--mono); font-size: 11.5px; color: #374151; }
.od-footer { position: fixed; right: 0; bottom: 0; left: 76px; background: #fff; border-top: 1px solid var(--od-line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .06); padding: 10px 24px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; z-index: 30; }

.od-footlink { margin-right: auto; font-size: 12.5px; color: #2563eb; }
.vq-dd.up .vq-menu { top: auto; bottom: calc(100% + 8px); left: auto; right: 0; }
.vq-btn.outline { border-color: #2563eb; color: #2563eb; text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.vq-btn.outline:hover { background: #eff6ff; }
.vq-btn.danger { border-color: #dc2626; color: #dc2626; }
.vq-btn.danger:hover { background: #fef2f2; }
.vq-menuitem.danger { color: #b91c1c; }
.vq-menuitem.danger .vq-ico { color: #b91c1c; }
.od-ship { min-width: 110px; justify-content: center; text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.od-ship:disabled { opacity: .6; cursor: not-allowed; }
.od .form-grid { margin-bottom: 8px; }
.od .field > span { font-size: 12px; }
.od .service-picker .vq-btn { height: 34px; }
.od-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: flex; align-items: center; justify-content: center; z-index: 80; padding: 20px; }
.od-modal-card { background: #fff; border-radius: 10px; padding: 22px 24px; width: 560px; max-width: 100%; box-shadow: 0 20px 60px rgba(15, 23, 42, .3); display: flex; flex-direction: column; gap: 10px; }
.od-modal-card h2 { font-size: 16px; }
.od-modal-card .inline-check { margin: 2px 0; }
.od-modal-card .form-actions { justify-content: flex-end; margin-top: 8px; }

/* Settings → Whistl → "Show what Whistl sent for each service" */
.svc-details { margin-top: 8px; }
.svc-details > summary { cursor: pointer; }
.svc-details .table-wrap { margin-top: 8px; }
.svc-table th, .svc-table td { padding: 6px 10px; font-size: 12px; vertical-align: top; }

/* Products page */
.products-table td { vertical-align: middle; }
.products-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.products-table tr.row-missing td { background: #fffaf0; }
.wt-edit { display: inline-flex; align-items: center; gap: 6px; }
.wt-edit input { width: 96px; height: 30px; padding: 0 8px; text-align: right; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form input[type=search] { height: 32px; padding: 0 10px; min-width: 220px; }
#weight-check { margin-top: 10px; font-size: 12.5px; display: grid; gap: 4px; }

/* ---------- bulk shipping pop-up ---------- */
.bulk-modal { align-items: flex-start; padding: 24px 18px; overflow: auto; }
.bulk-card { width: 1340px; max-width: 100%; padding: 18px 22px 16px; gap: 12px; max-height: calc(100vh - 48px); }
.bulk-head { display: flex; align-items: center; gap: 12px; }
.bulk-head h2 { font-size: 17px; margin: 0; }
.bulk-titlecount { font-weight: 500; font-size: 13px; }
.bulk-x { margin-left: auto; width: 32px; height: 32px; border: 1px solid var(--vq-border); border-radius: 6px; background: #fff; font-size: 20px; line-height: 1; color: var(--vq-muted); cursor: pointer; }
.bulk-x:hover { background: #f3f4f6; color: var(--vq-text-2); }
.bulk-top { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; padding: 14px 16px; background: var(--vq-bg, #f8fafc); border: 1px solid var(--vq-line); border-radius: 8px; }
.bulk-top .field { min-width: 200px; }
.bulk-top .field > span { font-size: 12px; }
.bulk-top .vq-select { width: 100%; height: 34px; font-size: 13px; }
.bulk-svcfield { flex: 1 1 360px; }
.bulk-dims { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.bulk-dims .field { min-width: 0; width: 96px; }
.bulk-dims input { height: 34px; padding: 0 8px; font-size: 13px; border: 1px solid var(--vq-border); border-radius: 6px; width: 100%; }
.bulk-dims .vq-btn, .bulk-topactions .vq-btn { height: 34px; }
.bulk-help { margin: -4px 0 0; }
.bulk-tablewrap { overflow: auto; border: 1px solid var(--vq-line); border-radius: 8px; flex: 1 1 auto; min-height: 120px; }
.bulk-table { width: 100%; min-width: 1100px; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.bulk-table th { position: sticky; top: 0; background: #fff; z-index: 1; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--vq-text-2); padding: 9px 8px; border-bottom: 1px solid var(--vq-line); white-space: nowrap; }
.bulk-table td { padding: 8px 8px; border-bottom: 1px solid var(--vq-line); vertical-align: middle; color: var(--vq-text-2); line-height: 1.35; }
.bulk-table tr:last-child td { border-bottom: 0; }
.bulk-c-order { white-space: nowrap; width: 112px; overflow: hidden; text-overflow: ellipsis; }
.bulk-c-to { width: 168px; overflow: hidden; }
.bulk-c-to div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bulk-c-prod { width: 214px; overflow: hidden; }
.bulk-prod { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bulk-c-svc { width: 230px; }
.bulk-c-svc .vq-select { width: 100%; max-width: 100%; height: 30px; font-size: 12px; padding: 0 22px 0 6px; }
.bulk-c-num { width: 66px; white-space: nowrap; }
.bulk-table th.bulk-c-w, .bulk-table td.bulk-c-w { width: 94px; }
.bulk-c-w .bulk-in { max-width: 86px; }
.bulk-in { box-sizing: border-box; width: 100%; max-width: 74px; -moz-appearance: textfield; appearance: textfield; height: 30px; padding: 0 4px 0 6px; font-size: 12.5px; border: 1px solid var(--vq-border); border-radius: 6px; font-variant-numeric: tabular-nums; }
.bulk-in:disabled, .bulk-c-svc .vq-select:disabled { background: #f3f4f6; color: var(--vq-muted); }
.bulk-wsrc { font-size: 10.5px; color: var(--vq-muted); margin-top: 2px; }
.bulk-wsrc.est { color: #b54708; }
.bulk-c-status { width: 190px; font-size: 12px; overflow-wrap: anywhere; }
.bulk-in::-webkit-inner-spin-button, .bulk-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bulk-status { display: inline-block; }
.bulk-status.ready { color: var(--vq-muted); }
.bulk-status.skip { color: #b42318; }
.bulk-status.busy { color: #1d4ed8; }
.bulk-status.done { color: #027a48; font-weight: 600; }
.bulk-status.fail { color: #b42318; font-weight: 600; }
.bulk-status.okc { color: #027a48; }
.bulk-status.warnc { color: #b54708; }
.bulk-note { font-size: 11.5px; margin-top: 2px; }
.bulk-alts { margin-top: 4px; font-size: 11.5px; color: var(--vq-muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.bulk-alt { border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3; border-radius: 999px; padding: 1px 8px; font: inherit; font-size: 11.5px; cursor: pointer; }
.bulk-alt:hover { background: #e0e7ff; }
.bulk-intl { display: inline-block; background: #fef0c7; color: #93370d; border-radius: 4px; padding: 0 5px; font-size: 10.5px; }
.bulk-c-x { width: 30px; text-align: center; padding-left: 0; padding-right: 0; }
.bulk-remove { width: 26px; height: 26px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--vq-muted); font-size: 16px; line-height: 1; cursor: pointer; }
.bulk-remove:hover { background: #fee4e2; color: #b42318; border-color: #fecdca; }
.bulk-row.st-skip td { background: #fafafa; color: var(--vq-muted); }
.bulk-row.st-done td { background: #f0fdf4; }
.bulk-row.st-fail td { background: #fff7f7; }
.bulk-row.st-busy td { background: #eff6ff; }
.bulk-row.st-attention .bulk-svc { border-color: #b42318; box-shadow: 0 0 0 2px rgba(180, 35, 24, .15); }
.bulk-foot { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.bulk-foot .vq-btn.primary { min-width: 150px; justify-content: center; }
.bulk-modal.is-busy .bulk-x { visibility: hidden; }
@media (max-width: 900px) { .bulk-card { padding: 14px; } .bulk-c-prod, .bulk-c-to { max-width: 160px; } }

/* ---------- search as you type ---------- */
.vq-search input.searching { background-image: linear-gradient(90deg, transparent, rgba(79, 70, 229, .12), transparent); background-size: 200% 100%; animation: vq-shimmer 1s linear infinite; }
@keyframes vq-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- warehouse locations ---------- */
.vq-locchip { display: inline-block; background: #111827; color: #fff; font-weight: 700; font-size: 10.5px; letter-spacing: .02em; padding: 0 5px; border-radius: 4px; margin-right: 5px; line-height: 1.5; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.vq-productbar .vq-locchip { font-size: 12px; padding: 1px 7px; }
.products-tabs { margin-top: 4px; }
.product-location { height: 30px; padding: 0 22px 0 8px; font-size: 12.5px; border: 1px solid var(--vq-border, #d0d5dd); border-radius: 6px; background-color: #fff; min-width: 96px; }
.products-table tr.row-noloc .product-location { border-color: #f0b429; background: #fffbeb; }
.products-table td.num a { font-weight: 600; }

/* ---------- Amazon seller accounts (Settings) ---------- */
.card h3.sub { font-size: 13px; font-weight: 700; color: var(--text-2); margin: 18px 0 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #a7f3d0; border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; }
.amazon-accounts td { vertical-align: middle; }
.amazon-accounts input.amz-name { width: 180px; height: 30px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; font-size: 13px; }
.amazon-accounts select.amz-marketplaces { width: 170px; height: auto; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 6px; font: inherit; font-size: 12.5px; background: #fff; }
.amazon-add { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 4px; margin-top: 10px; }
.amazon-add .form-actions { flex-wrap: wrap; margin-bottom: 8px; }
.vq-shipby { font-size: 10.5px; margin-top: 4px; white-space: nowrap; color: var(--vq-muted); }
.vq-shipby.today { color: #7a5a00; font-weight: 600; }
.vq-shipby.overdue { color: #b42318; font-weight: 700; }
.vq-prime { color: #0f766e; font-weight: 700; }

/* ---------- accounts, users, security ---------- */
.nav-user { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 8px; border-radius: 8px; color: var(--sidebar-text); font-size: 12.5px; text-decoration: none; overflow: hidden; }
.nav-user .icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user:hover, .nav-user.active { background: var(--sidebar-2); color: #fff; text-decoration: none; }
.code-input { font-size: 20px; letter-spacing: .18em; text-align: center; max-width: 220px; }
.login-card .code-input { max-width: 100%; }
.account-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 900px; }
.mfa-setup { display: grid; grid-template-columns: 1fr 200px; gap: 16px 24px; align-items: start; }
.mfa-setup .steps { grid-column: 1; margin: 0; }
.mfa-qr { grid-column: 2; grid-row: 1 / span 2; width: 200px; min-height: 200px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px; }
.mfa-qr svg { width: 100%; height: auto; }
.mfa-setup .inline-form { grid-column: 1; }
.mfa-secret { display: inline-block; font-size: 14px; letter-spacing: .08em; background: #f1f5f9; padding: 3px 8px; border-radius: 6px; user-select: all; }
.users-table select.user-role { height: 30px; padding: 0 22px 0 8px; font-size: 12.5px; border: 1px solid var(--line-strong); border-radius: 6px; background-color: #fff; max-width: 280px; }
.row-disabled td { opacity: .55; }
.logins-table tr.row-error td { background: #fff7f7; }
.logins-table tr.row-newdevice td { background: #fffbeb; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.stat .label { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.stat .value { font-size: 18px; font-weight: 700; margin-top: 4px; color: var(--text); }
.stat.warnstat { border-color: #fcd34d; background: #fffbeb; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 13px; }
.checklist code { font-family: var(--mono); font-size: 12px; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
@media (max-width: 720px) { .mfa-setup { grid-template-columns: 1fr; } .mfa-qr { grid-column: 1; grid-row: auto; } }
.svc-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; }
