/* Order Archive — clean, modern UI */
:root {
  --bg: #f8fafc;
  --bg-elevated: #ffffff;
  --border: #e2e8f0;
  --border-focus: #94a3b8;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #38a1d8;
  --accent-hover: #2d8fc7;
  --accent-muted: #e0f4fc;
  --error: #dc2626;
  --error-bg: #fef2f2;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1.25rem; }
.main-content { padding-top: 1rem; }

/* Header */
.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: var(--shadow);
}
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-header-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--accent); }
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.site-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.site-nav-link:hover {
  color: var(--accent);
  background: var(--accent-muted);
}
.site-nav-link.is-active {
  color: var(--accent);
  background: var(--accent-muted);
}
.logout {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.logout:hover { color: var(--accent); background: var(--accent-muted); }

/* Alerts */
.alert { padding: 0.875rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-size: 0.9rem; }
.alert-error { background: var(--error-bg); color: var(--error); border: 1px solid #fecaca; }

/* Typography */
h1 { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
h2 { font-size: 1rem; font-weight: 600; margin: 1.75rem 0 0.75rem; color: var(--text); letter-spacing: -0.01em; }
h2:first-of-type { margin-top: 0; }
h3 { font-size: 1.125rem; font-weight: 600; margin: 0 0 1rem; color: var(--text); }

/* Login — mimic theflyerlab.com style: logo, white card, light gray inputs, blue Sign In */
body.page-login .site-header { display: none; }
body.page-login .main-content {
  max-width: none;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
}
.login-toast {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  min-width: 280px;
  max-width: min(92vw, 420px);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #fecaca;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  text-align: center;
  font-size: 0.9rem;
}
.login-box {
  max-width: 380px;
  width: 100%;
  margin: 2rem;
  padding: 2.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}
.login-box-logo {
  text-align: center;
  margin-bottom: 1.15rem;
}
.login-logo {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.login-subtitle {
  margin: -0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.login-box label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 0.4rem;
}
.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.9375rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.login-box input[type="text"] {
  margin-bottom: 0.3rem;
}
.login-box input[type="password"] {
  margin-bottom: 1.25rem;
}
.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
  outline: none;
  border-color: #38a1d8;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(56, 161, 216, 0.2);
}
.login-box button {
  display: block;
  width: 100%;
  max-width: 12rem;
  margin: 0 auto;
  padding: 0.65rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  background: #38a1d8;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.login-box button:hover { background: #2d8fc7; }

/* Search form */
.search-form {
  background: var(--bg-elevated);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.search-form-condensed {
  padding: 1rem 1.25rem;
}
.search-form-condensed .form-grid {
  display: grid;
  gap: 0 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .search-form-condensed .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 768px) {
  .search-form-condensed .form-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
.search-form-condensed .form-row {
  margin-bottom: 0.6rem;
}
.search-form-condensed .form-actions {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.form-row { margin-bottom: 1rem; }
.form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.search-form-condensed .form-row label {
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
}
.form-row input {
  width: 100%;
  max-width: 260px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s;
}
.search-form-condensed .form-row input {
  max-width: none;
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
}
.form-row input:focus {
  outline: none;
  border-color: var(--accent);
}
.form-actions { margin-top: 1.25rem; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.form-actions button {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.form-actions button:hover { background: var(--accent-hover); }
.form-action-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.form-action-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-muted);
}

/* Search results section — same spacing and header style as order detail cards */
.results-section { margin-top: 1.5rem; }
.results-heading {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.results-count { font-weight: 500; color: var(--text-muted); font-size: inherit; }
.results-empty {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}
.results-empty p { margin: 0; }

/* Results filters (dropdowns from current search) */
.results-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
  padding: 0.6rem 0;
}
.results-filters label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}
.results-filters .filter-select {
  padding: 0.4rem 0.6rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
  min-width: 10rem;
}
.results-filters .filter-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-muted);
}
.results-filters .filter-result-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}
.results-filters-spacer {
  flex: 1 1 auto;
  min-width: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.pagination-info {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.pagination-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.pagination-keys-hint {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  opacity: 0.85;
}
.pagination-size-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.pagination-size-select {
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text);
}
.pagination-size-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-muted);
}
.pagination-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.pagination-export-btn:hover {
  background: var(--accent);
  color: #fff;
}
.pagination-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.pagination-btn,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.35rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background 0.15s, border-color 0.15s;
}
.pagination-btn:hover,
.pagination-page:hover {
  background: #f1f5f9;
  border-color: var(--border-focus);
  color: var(--accent);
}
.pagination-page.current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  cursor: default;
  pointer-events: none;
}
.pagination-page.current:hover {
  background: var(--accent);
  color: #fff;
}
.pagination-ellipsis {
  padding: 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.orders-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}
.orders-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.orders-table th,
.orders-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.orders-table thead th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
.orders-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  padding-right: 1.25rem;
  position: relative;
}
.orders-table thead th .sort-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.orders-table thead th.sortable:hover { color: var(--text); }
.orders-table thead th.sortable::after {
  content: '';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom: none;
  margin-top: -2px;
  opacity: 0.4;
}
.orders-table thead th.sortable.sort-asc::after {
  border-top-color: transparent;
  border-bottom-color: var(--accent);
  border-bottom-width: 4px;
  border-top: none;
  margin-top: -6px;
  opacity: 1;
}
.orders-table thead th.sortable.sort-desc::after {
  border-top-color: var(--accent);
  opacity: 1;
}
.orders-table tbody tr { transition: background 0.12s; }
.orders-table tbody tr:nth-child(even) { background: #fafbfc; }
.orders-table tbody tr:hover { background: #f0f4f8; }
.orders-table tbody tr:last-child td { border-bottom: none; }
.orders-table th.num, .orders-table td.num { text-align: right; }
.orders-table .amount { font-variant-numeric: tabular-nums; font-weight: 500; }
.orders-table .order-id { font-weight: 600; color: var(--text); }
.orders-table .order-date { color: var(--text-muted); font-size: 0.875rem; }
.orders-table .products-cell { max-width: 320px; }
.orders-table .products-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
}
.orders-table .products-list li {
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.orders-table .products-list li:last-child { border-bottom: none; }
.orders-table .product-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orders-table .product-qty { flex-shrink: 0; color: var(--text-muted); }
/* Status badge — shared by search results and order detail */
.status-badge {
  display: inline-block;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.15;
  white-space: nowrap;
  background: #e2e8f0;
  color: var(--text);
}
.status-badge.status-complete,
.status-badge.status-delivered { background: #dcfce7; color: #166534; }
.status-badge.status-pending,
.status-badge.status-processing { background: #fef3c7; color: #92400e; }
.status-badge.status-canceled,
.status-badge.status-cancelled,
.status-badge.status-closed { background: #fce7f3; color: #9d174d; }
.orders-table .action-col { width: 1%; white-space: nowrap; }
.orders-table .btn-view {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.orders-table .btn-view:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.orders-table .muted { color: var(--text-muted); }
.customers-table .customer-name { font-weight: 600; color: var(--text); }
.customers-table .plain-email-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.customers-table .plain-email { color: var(--text); }
.email-copy-trigger {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: copy;
  transition: opacity 0.15s;
}
.email-copy-trigger:hover {
  color: var(--text);
  opacity: 0.78;
}
.email-copy-trigger:focus {
  outline: 2px solid var(--accent-muted);
  outline-offset: 2px;
  border-radius: 2px;
}
.email-copy-trigger.copied {
  color: var(--text);
}
.copy-feedback {
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0;
  transform: translateY(1px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
}
.copy-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .search-form:not(.search-form-condensed) { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
  .search-form:not(.search-form-condensed) .form-actions { grid-column: 1 / -1; }
}

/* Order detail — unified with search (same accent, section style) */
.order-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0 1.25rem 0;
  padding: 0.85rem 1.25rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
}
.order-detail-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.order-detail-header .btn-secondary {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.order-detail-header .btn-secondary:hover {
  background: rgba(255,255,255,0.3);
  border-color: #fff;
  color: #fff;
}
.order-detail-actions { display: flex; gap: 0.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border: 1px solid transparent;
}
.btn-secondary {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--border);
}
.btn-secondary:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-muted); }

.order-detail-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 900px) {
  .order-detail-columns { grid-template-columns: 1fr; }
}
.order-detail-left, .order-detail-right { display: flex; flex-direction: column; gap: 1rem; }

/* Cards (sections) — same look as search results wrapper */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-head {
  margin: 0;
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-body { padding: 1rem 1.25rem; font-size: 0.9rem; }
.card-body-pad0 { padding: 0; }
.card-divider { margin: 0.75rem 0; border: none; border-top: 1px solid var(--border); }
.mb0 { margin-bottom: 0; }
.muted { color: var(--text-muted); }

/* Key-value lists */
.kv-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1.5rem;
  margin: 0;
  font-size: 0.9rem;
}
.kv-list dt { color: var(--text-muted); font-weight: 500; }
.kv-list dd { margin: 0; }
.kv-list a { color: var(--accent); text-decoration: none; }
.kv-list a:hover { text-decoration: underline; }

.address-block {
  font-style: normal;
  line-height: 1.6;
  margin: 0;
  color: var(--text);
}

/* Left column: item detail cards (product + options) */
.item-detail-card { padding: 0.25rem 0; }
.item-detail-name { margin: 0 0 0.2rem; font-size: 0.9375rem; }
.item-detail-sku { margin: 0 0 0.5rem; font-size: 0.8125rem; color: var(--text-muted); }
.item-options {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.item-options dt {
  font-weight: 500;
  margin: 0.35rem 0 0.1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.item-options dt:first-child { margin-top: 0; }
.item-options dd { margin: 0; color: var(--text); }

/* Comments history */
.note-list { list-style: none; padding: 0; margin: 0; }
.note-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.note-list li:last-child { border-bottom: none; }
.note-meta { font-size: 0.8125rem; color: var(--text-muted); }
.note-comment { margin: 0.25rem 0 0; color: var(--text); }

/* Items Ordered — single unified section (product + options left, financials right) */
.items-ordered-section { margin: 1rem 0 1rem; max-width: 100%; }
.items-ordered-section .table-wrap { min-width: 0; }
.order-items-unified {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.order-items-unified th,
.order-items-unified td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.order-items-unified th {
  background: #f1f5f9;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.order-items-unified th.num, .order-items-unified td.num { text-align: center; }
.order-items-unified th:first-child,
.order-items-unified td:first-child {
  padding-left: 1rem;
}
.order-items-unified .col-product {
  min-width: 260px;
  width: 36%;
}
.order-items-unified .item-name {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}
.order-items-unified .item-sku {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.order-items-unified .item-options-inline {
  margin: 0.5rem 0 0;
  padding: 0 0 0.35rem 0.35rem;
  font-size: 0.8125rem;
}
.order-items-unified .item-options-inline dt {
  font-weight: 500;
  margin: 0.35rem 0 0.08rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.order-items-unified .item-options-inline dt:first-child { margin-top: 0; }
.order-items-unified .item-options-inline dd { margin: 0 0 0.25rem; color: var(--text); }
.order-items-unified .item-options-inline dd:last-child { margin-bottom: 0; }
.order-items-unified .qty-sub {
  font-size: inherit;
  font-weight: inherit;
  color: var(--text);
}
.order-items-unified tbody tr:hover { background: #fafafa; }

.table-wrap { overflow-x: auto; }

/* Order totals (right column) */
.totals-list {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 2rem;
  margin: 0;
  font-size: 0.9rem;
}
.totals-list dt { color: var(--text-muted); font-weight: 500; }
.totals-list dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals-list .total-row { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); font-size: 1rem; }
.totals-list .total-row dt { color: var(--text); }
.totals-list .total-row dd { color: var(--text); }

.order-detail-footer { margin-top: 1.5rem; }
.price { white-space: nowrap; font-variant-numeric: tabular-nums; }
