/* Staff hub — a plain, dense console. Dark header, white cards on a light
   canvas, blue primary; shop badges carry each shop's own colours. */
:root { --dark: #222428; --dark-2: #2d3036; --ink: #101725; --text: #2c3445; --muted: #4a5263; --canvas: #eef1f5; --surface: #fff; --line: #e3e7ee; --line-strong: #d3d9e2; --blue: #2069de; --blue-hover: #1a5bc4; --blue-text: #1a56b8; --blue-tint: #e6eefb; --danger: #b42318; --radius: 12px; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14px; line-height: 1.45; color: var(--text); background: var(--canvas); }
a { color: var(--blue-text); }
.hub-header { background: var(--dark); color: #fff; }
.hub-header-inner { max-width: 1600px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 32px; }
.hub-brand { font-size: 20px; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -0.01em; }
.hub-brand span { color: #7fa8ee; }
.hub-nav { display: flex; gap: 6px; flex: 1; }
.hub-nav a { color: #c3c6cc; text-decoration: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.hub-nav a:hover { background: var(--dark-2); color: #fff; }
.hub-nav a.is-active { background: var(--blue); color: #fff; }
.hub-user { display: flex; align-items: center; gap: 14px; color: #c3c6cc; }
.hub-user form { margin: 0; }
.hub-main { max-width: 1600px; margin: 28px auto; padding: 0 28px; }
.hub-footer { max-width: 1600px; margin: 40px auto; padding: 0 28px; color: var(--muted); font-size: 12px; }
.page-h { font-size: 26px; margin: 0 0 18px; color: var(--ink); }
.page-h .count { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.section-h { font-size: 18px; margin: 28px 0 12px; color: var(--ink); }
.card { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; box-shadow: 0 1px 2px rgba(16,23,37,.06); margin-bottom: 18px; }
.table-card { padding: 0; overflow-x: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.filters label, .form-row label, .login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.filters .grow { flex: 1; min-width: 260px; }
input[type=text], input[type=search], input[type=email], input[type=password], select { font: inherit; font-size: 14px; padding: 9px 12px; border: 2px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; }
input:focus, select:focus { outline: none; border-color: var(--blue); }
.btn { font: inherit; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 10px; border: 2px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.2; white-space: nowrap; }
.btn:hover { border-color: var(--blue); color: var(--blue-text); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }
.btn-link { border-color: transparent; background: transparent; color: var(--blue-text); padding-left: 6px; padding-right: 6px; }
.hub-user .btn-quiet { background: transparent; border-color: #474a51; color: #fff; }
.hub-user .btn-quiet:hover { border-color: #fff; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; border-bottom: 2px solid var(--line-strong); background: #f6f8fb; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table .empty { text-align: center; color: var(--muted); padding: 40px; }
.table .actions { white-space: nowrap; }
.table .actions .btn, .table .actions form { margin: 0 4px 4px 0; }
.inline { display: inline-flex; gap: 6px; align-items: center; }
.inline input { padding: 6px 10px; }
.order-id { font-weight: 700; color: var(--ink); font-size: 15px; }
.muted { color: var(--muted); font-size: 13px; }
.shop-badge { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pill { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #eef1f5; color: var(--muted); }
.pay-completed, .pay-shipped, .ret-resolved, .ret-received { background: #e7f6ee; color: #1f7a45; }
.pay-pending, .ret-requested { background: #fff4d6; color: #7a4d00; }
.pay-failed, .pay-cancelled, .ret-rejected { background: #fdecea; color: #b42318; }
.pay-refunded, .ret-approved, .ret-label_sent { background: var(--blue-tint); color: var(--blue-text); }
.pill-admin { background: var(--blue-tint); color: var(--blue-text); }
.status-select { padding: 7px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.st-waiting_parts { background: #fff4d6; border-color: #f2c96b; }
.st-ready_to_ship { background: #e7f6ee; border-color: #b9e4cc; }
.st-canceled { background: #fdecea; border-color: #f3b9b4; }
tr.ostatus-waiting_parts td:first-child { box-shadow: inset 4px 0 0 #f2c96b; }
tr.ostatus-ready_to_ship td:first-child { box-shadow: inset 4px 0 0 #1f9e5c; }
tr.ostatus-canceled td:first-child { box-shadow: inset 4px 0 0 #b42318; }
.items { margin-top: 6px; }
.items summary { cursor: pointer; color: var(--blue-text); font-weight: 600; font-size: 13px; }
.items ul { list-style: none; margin: 8px 0 0; padding: 0; }
.items li { padding: 6px 0; border-top: 1px solid var(--line); }
.opts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.opts b { color: var(--ink); font-weight: 600; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.flash-success { background: #e7f6ee; color: #1f7a45; }
.flash-error { background: #fdecea; color: #b42318; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; }
.pager a { padding: 6px 11px; border-radius: 8px; background: #fff; text-decoration: none; font-weight: 600; border: 2px solid var(--line-strong); }
.pager a.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.form-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
/* login */
.login-body { display: grid; place-items: center; min-height: 100vh; margin: 0; }
.login-card { width: min(420px, calc(100% - 32px)); background: #fff; border-radius: 20px; padding: 36px; box-shadow: 0 20px 60px -20px rgba(16,23,37,.35); }
.login-card h1 { margin: 0 0 4px; font-size: 26px; color: var(--ink); }
.login-card h1 span { color: var(--blue); }
.login-sub { margin: 0 0 24px; color: var(--muted); }
.login-card form { display: flex; flex-direction: column; gap: 16px; }
.login-card .btn-primary { padding: 12px; font-size: 15px; }
@media (max-width: 900px) { .hub-header-inner { flex-wrap: wrap; gap: 12px; } .hub-nav { order: 3; width: 100%; } .table th, .table td { padding: 10px; } }

/* order row: products inline, delivery like the shop's own row */
.products .product-line { padding: 3px 0; white-space: nowrap; }
.products .items summary { font-size: 12px; }
.products .opts { margin-top: 4px; white-space: normal; max-width: 320px; }
.delivery-type { font-weight: 700; color: var(--ink); }
.delivery-type.is-pakkeshop { color: #b8860b; }
.table .amount { font-weight: 700; color: var(--ink); margin-top: 6px; white-space: nowrap; }
.label-col { white-space: nowrap; }
.sm-error { background: #fff4d6; border: 1px solid #f2c96b; border-radius: 8px; padding: 8px 10px; font-size: 12px; color: #7a4d00; max-width: 260px; white-space: normal; }
.sm-error strong { display: block; margin-bottom: 2px; }
.sm-error .muted { font-size: 11px; margin-top: 3px; }
.nav-badge { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 999px; background: #eaa40a; color: #fff; font-size: 11px; font-weight: 800; text-align: center; margin-left: 4px; }
.nav-sep { flex: 1; }
.nav-label { align-self: center; color: #a4a8b0; font-size: 12px; font-weight: 600; }
.hub-nav .nav-stat { padding: 6px 10px; font-size: 13px; }
.no-label { color: #b42318; font-weight: 700; font-size: 12px; white-space: nowrap; }
