/*
 * HM Commerce skin - plain CSS loaded after hm.css (no build step).
 * Re-colours the shared components with a fresh grocery palette and adds the login page.
 *   primary  emerald   accent  mango   ink  slate
 */

/* ---------- tokens ---------- */
:root {
  --brand-50: 236 253 245;
  --brand-100: 209 250 229;
  --brand-200: 167 243 208;
  --brand-500: 16 185 129;
  --brand-600: 5 150 105;
  --brand-700: 4 120 87;
  --brand-800: 6 95 70;

  --accent-400: 255 176 59;
  --accent-500: 255 152 0;
  --accent-600: 234 118 0;

  --cx-ink: #0f172a;
  --cx-muted: #64748b;
  --cx-line: #e8ecf1;
  --cx-page: #f6f8fb;
  --cx-radius: 14px;
  --cx-radius-sm: 10px;
  --cx-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px -4px rgba(15, 23, 42, .06);
  --cx-shadow-lift: 0 2px 4px rgba(15, 23, 42, .05), 0 14px 32px -10px rgba(15, 23, 42, .16);
  --cx-grad: linear-gradient(135deg, #10b981 0%, #059669 55%, #047857 100%);
  --cx-grad-accent: linear-gradient(135deg, #ffb03b 0%, #ff8a00 100%);
  --cx-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body,
.font-sans {
  font-family: var(--cx-font);
}

body {
  color: var(--cx-ink);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(16, 185, 129, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 152, 0, .06), transparent 60%),
    var(--cx-page);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  color: var(--cx-ink);
  letter-spacing: -.01em;
}

/* ---------- shell ---------- */
.sidebar {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-right-color: var(--cx-line);
}

.sidebar-brand {
  height: 64px;
  border-bottom-color: transparent;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--cx-grad);
  box-shadow: 0 6px 16px -6px rgba(5, 150, 105, .7);
  font-weight: 800;
}

.nav-section {
  font-weight: 700;
  letter-spacing: .08em;
  color: #94a3b8;
}

.nav-link {
  border-radius: var(--cx-radius-sm);
  padding: 8px 12px;
  font-weight: 500;
  color: #475569;
  transition: background .15s, color .15s, transform .15s;
}

.nav-link:hover {
  background: rgb(var(--brand-50));
  color: rgb(var(--brand-700));
}

.nav-link.is-active {
  background: var(--cx-grad);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(5, 150, 105, .65);
}

.sidebar-footer {
  border-top-color: var(--cx-line);
}

.topbar {
  height: 64px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--cx-line);
}

.topbar-title {
  font-weight: 700;
  font-size: 17px;
}

/* ---------- components ---------- */
.card {
  border-radius: var(--cx-radius);
  border-color: var(--cx-line);
  box-shadow: var(--cx-shadow);
  transition: box-shadow .2s, transform .2s;
}

.card.is-hover:hover,
a.card:hover {
  box-shadow: var(--cx-shadow-lift);
  transform: translateY(-2px);
}

.card-header {
  border-bottom-color: var(--cx-line);
}

.card-title {
  font-weight: 700;
}

.stat {
  border-radius: var(--cx-radius);
  border-color: var(--cx-line);
  box-shadow: var(--cx-shadow);
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(16, 185, 129, .14), transparent 70%);
}

.stat-value {
  font-weight: 800;
  letter-spacing: -.02em;
}

.btn {
  border-radius: var(--cx-radius-sm);
  font-weight: 600;
  transition: transform .12s, box-shadow .2s, background .2s, color .2s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--cx-grad);
  box-shadow: 0 8px 18px -8px rgba(5, 150, 105, .75), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-primary:hover {
  background: var(--cx-grad);
  filter: brightness(1.06);
  box-shadow: 0 10px 22px -8px rgba(5, 150, 105, .85), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.btn-accent {
  color: #fff;
  background: var(--cx-grad-accent);
  box-shadow: 0 8px 18px -8px rgba(234, 118, 0, .75);
}

.btn-secondary {
  border-color: var(--cx-line);
}

.input,
.select,
.textarea {
  border-radius: var(--cx-radius-sm);
  border-color: var(--cx-line);
  transition: border-color .15s, box-shadow .15s;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgb(var(--brand-500));
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}

.table-wrap {
  border-radius: var(--cx-radius);
  border-color: var(--cx-line);
  box-shadow: var(--cx-shadow);
}

.table th {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
}

.table tbody tr {
  transition: background .12s;
}

.table tbody tr:hover td {
  background: rgba(236, 253, 245, .55);
}

.badge {
  border-radius: 999px;
  font-weight: 600;
  padding-left: 9px;
  padding-right: 9px;
}

.badge-orange {
  background: #fff7ed;
  color: #c2410c;
  box-shadow: inset 0 0 0 1px #fed7aa;
}

.badge-violet {
  background: #f5f3ff;
  color: #6d28d9;
  box-shadow: inset 0 0 0 1px #ddd6fe;
}

.modal-panel {
  border-radius: 18px;
}

.toast {
  border-radius: 12px;
}

.tab.is-active {
  border-color: rgb(var(--brand-600));
}

.avatar {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
}

/* entrance animation for page content */
.app-content > * {
  animation: cx-rise .35s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes cx-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   Login: split screen. Left = hero art, right = form.
   ===================================================================== */
.cx-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: #fff;
}

@media (min-width: 1024px) {
  .cx-login {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

/* ---------- hero ---------- */
.cx-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(700px 420px at 15% 10%, rgba(52, 211, 153, .55), transparent 60%),
    radial-gradient(600px 500px at 95% 100%, rgba(255, 176, 59, .45), transparent 60%),
    linear-gradient(160deg, #064e3b 0%, #047857 45%, #065f46 100%);
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  min-height: 300px;
}

@media (min-width: 1024px) {
  .cx-hero {
    padding: 44px 52px;
    min-height: 100vh;
  }
}

.cx-hero.has-photo {
  background-size: cover;
  background-position: center;
}

.cx-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 78, 59, .35) 0%, rgba(6, 78, 59, .82) 100%);
}

.cx-hero > * {
  position: relative;
  z-index: 1;
}

/* soft dotted texture */
.cx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}

.cx-hero-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
}

.cx-hero-brand .brand-mark {
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.cx-hero-copy {
  margin-top: 22px;
  max-width: 520px;
}

@media (min-width: 1024px) {
  .cx-hero-copy {
    margin-top: 56px;
  }
}

.cx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.cx-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, .25);
  animation: cx-pulse 2s infinite;
}

@keyframes cx-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(251, 191, 36, .3); }
  50% { box-shadow: 0 0 0 7px rgba(251, 191, 36, 0); }
}

.cx-hero h2 {
  color: #fff;
  margin-top: 16px;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
}

.cx-hero h2 span {
  background: linear-gradient(90deg, #fde68a, #fbbf24 60%, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cx-hero p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(236, 253, 245, .82);
  max-width: 440px;
}

.cx-art {
  display: none;
  position: relative;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .cx-art {
    display: flex;
  }
}

.cx-art svg {
  width: min(100%, 470px);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(2, 44, 34, .45));
}

.cx-float {
  animation: cx-float 6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.cx-float.d1 { animation-delay: -1.5s; }
.cx-float.d2 { animation-delay: -3s; }
.cx-float.d3 { animation-delay: -4.5s; }

@keyframes cx-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* glass stat chips over the art */
.cx-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  color: var(--cx-ink);
  box-shadow: 0 18px 40px -14px rgba(2, 44, 34, .55);
  animation: cx-float 7s ease-in-out infinite;
  white-space: nowrap;
}

.cx-chip b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.cx-chip small {
  display: block;
  font-size: 11px;
  color: var(--cx-muted);
  font-weight: 500;
}

.cx-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 18px;
}

.cx-chip.c1 { top: 10%; left: 0; }
.cx-chip.c2 { top: 42%; right: -4px; animation-delay: -2.3s; }
.cx-chip.c3 { bottom: 8%; left: 6%; animation-delay: -4.6s; }

.cx-hero-foot {
  display: none;
  gap: 22px;
  font-size: 12px;
  color: rgba(236, 253, 245, .7);
}

@media (min-width: 1024px) {
  .cx-hero-foot {
    display: flex;
  }
}

.cx-hero-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cx-hero-foot svg {
  width: 14px;
  height: 14px;
}

/* ---------- form side ---------- */
.cx-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
  position: relative;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(16, 185, 129, .07), transparent 70%),
    radial-gradient(400px 300px at 0% 100%, rgba(255, 152, 0, .06), transparent 70%),
    #fff;
}

@media (min-width: 1024px) {
  .cx-form-side {
    padding: 48px;
  }
}

.cx-form {
  width: 100%;
  max-width: 400px;
  animation: cx-rise .5s cubic-bezier(.2, .8, .2, 1) both;
}

.cx-form h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.cx-form .cx-sub {
  margin-top: 6px;
  color: var(--cx-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cx-field {
  margin-top: 18px;
}

.cx-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: #334155;
}

.cx-input-wrap {
  position: relative;
}

.cx-input-wrap > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  transition: color .15s;
}

.cx-input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 44px;
  border-radius: 13px;
  border: 1.5px solid var(--cx-line);
  background: #f8fafc;
  font: inherit;
  font-size: 15px;
  color: var(--cx-ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.cx-input::placeholder {
  color: #a0aec0;
}

.cx-input:hover {
  border-color: #d5dce5;
}

.cx-input:focus {
  outline: none;
  background: #fff;
  border-color: rgb(var(--brand-500));
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .14);
}

.cx-input-wrap:focus-within > svg {
  color: rgb(var(--brand-600));
}

.cx-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #94a3b8;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.cx-eye:hover {
  color: var(--cx-ink);
  background: #eef2f6;
}

.cx-eye svg {
  width: 18px;
  height: 18px;
}

.cx-error {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px #fecaca;
  animation: cx-shake .35s;
}

.cx-error svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

@keyframes cx-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.cx-submit {
  margin-top: 22px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--cx-grad);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(5, 150, 105, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .12s, filter .2s, box-shadow .2s;
}

.cx-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 18px 32px -12px rgba(5, 150, 105, .9), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.cx-submit:active {
  transform: translateY(1px);
}

.cx-submit:disabled {
  cursor: progress;
  filter: saturate(.7);
}

.cx-submit svg {
  width: 18px;
  height: 18px;
  transition: transform .2s;
}

.cx-submit:hover svg {
  transform: translateX(3px);
}

.cx-spin {
  width: 18px;
  height: 18px;
  border-radius: 99px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  animation: cx-rot .7s linear infinite;
}

@keyframes cx-rot {
  to { transform: rotate(360deg); }
}

.cx-roles {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cx-roles span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.cx-roles span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgb(var(--brand-500));
}

.cx-roles span:nth-child(2)::before { background: rgb(var(--accent-500)); }
.cx-roles span:nth-child(3)::before { background: #6366f1; }

.cx-legal {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--cx-line);
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cx-legal svg {
  width: 14px;
  height: 14px;
  color: rgb(var(--brand-600));
}

/* =====================================================================
   Panel pieces: charts, thumbs, board, hero band
   ===================================================================== */
.cx-chart { position: relative; }
.cx-chart svg { display: block; overflow: visible; }
.cx-tip {
  position: absolute; z-index: 5; pointer-events: none;
  display: flex; flex-direction: column; gap: 2px;
  padding: 7px 10px; border-radius: 10px;
  background: #0f172a; color: #fff; font-size: 12px; white-space: nowrap;
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, .5);
}
.cx-tip span { color: #cbd5e1; }
.cx-tip b { font-size: 14px; font-weight: 700; }

.cx-thumb {
  position: relative; display: inline-block; flex: none; overflow: hidden;
  border-radius: 10px; vertical-align: middle;
}
.cx-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.cx-thumb img.is-in { opacity: 1; }

/* greeting band on the dashboard */
.cx-band {
  position: relative; overflow: hidden; border-radius: 18px; padding: 22px 24px; color: #fff;
  background:
    radial-gradient(500px 220px at 90% -20%, rgba(255, 176, 59, .45), transparent 60%),
    radial-gradient(500px 260px at 0% 120%, rgba(52, 211, 153, .45), transparent 60%),
    linear-gradient(135deg, #065f46, #047857 55%, #059669);
  box-shadow: 0 18px 40px -22px rgba(4, 120, 87, .8);
}
.cx-band h2 { color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.cx-band p { color: rgba(236, 253, 245, .85); }
.cx-band .btn-light {
  background: #fff; color: #065f46; border-radius: 12px; font-weight: 700;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .4);
}
.cx-band .btn-light:hover { background: #ecfdf5; }
.cx-pulse {
  display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: #fbbf24;
  animation: cx-pulse 2s infinite;
}

.stat-delta { font-size: 12px; font-weight: 600; margin-top: 4px; }
.stat-delta.up { color: #047857; }
.stat-delta.down { color: #b91c1c; }
.stat-delta.flat { color: #94a3b8; }

/* live order board */
.cx-board {
  display: grid; gap: 14px; align-items: start;
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  overflow-x: auto; padding-bottom: 8px;
}
.cx-col {
  border-radius: 16px; background: rgba(241, 245, 249, .8);
  border: 1px solid var(--cx-line); min-height: 220px;
}
.cx-col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 8px; font-weight: 700; font-size: 13px;
}
.cx-col-head .count {
  min-width: 24px; height: 22px; padding: 0 7px; border-radius: 99px;
  display: inline-grid; place-items: center; font-size: 12px; background: #fff; color: #334155;
  box-shadow: inset 0 0 0 1px var(--cx-line);
}
.cx-col-head .dot { width: 8px; height: 8px; border-radius: 99px; margin-right: 8px; display: inline-block; }
.cx-col-body { padding: 4px 10px 12px; display: grid; gap: 10px; }
.cx-card {
  background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--cx-line);
  box-shadow: var(--cx-shadow); transition: box-shadow .2s, transform .2s;
}
.cx-card:hover { box-shadow: var(--cx-shadow-lift); transform: translateY(-1px); }
.cx-card.is-new { animation: cx-new 1.6s ease-out 2; border-color: #fbbf24; }
.cx-card.is-late { border-color: #fca5a5; }
@keyframes cx-new {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .7); }
  100% { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); }
}
.cx-card-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--cx-muted); }
.cx-card-no { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; color: #334155; font-weight: 500; }
.cx-card-name { margin-top: 6px; font-weight: 700; font-size: 14px; }
.cx-card-meta { margin-top: 2px; font-size: 12px; color: var(--cx-muted); }
.cx-card-actions { margin-top: 10px; display: flex; gap: 6px; }
.cx-card-actions .btn { flex: 1; justify-content: center; }
.cx-age { font-weight: 700; font-variant-numeric: tabular-nums; }
.cx-age.warn { color: #c2410c; }
.cx-age.late { color: #b91c1c; }

.cx-chip-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px;
  background: #fff; border: 1px solid var(--cx-line); font-weight: 600; font-size: 13px; cursor: pointer;
}
.cx-chip-toggle[aria-pressed="true"] { background: rgb(var(--brand-50)); border-color: rgb(var(--brand-200)); color: rgb(var(--brand-700)); }

/* image picker grid */
.cx-images { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-images .cx-img { position: relative; }
.cx-images .cx-img button {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 99px;
  background: #0f172a; color: #fff; font-size: 13px; line-height: 22px; text-align: center; border: 2px solid #fff;
}
.cx-images .cx-img.is-removed { opacity: .35; }

/* category tiles */
.cx-cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cx-cat { padding: 14px; display: flex; gap: 12px; align-items: center; }

/* print: packing slip only */
@media print {
  .sidebar, .topbar, .page-actions, .no-print, #toast-root { display: none !important; }
  .app-content { padding: 0 !important; }
  body { background: #fff !important; }
  .card, .table-wrap { box-shadow: none !important; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* shop tag (phase 09d): one colour per shop, so a manager of several shops tells them apart at a glance */
.cx-shop {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--shop); background: color-mix(in srgb, var(--shop) 9%, #fff); border: 1px solid color-mix(in srgb, var(--shop) 28%, #fff);
}
.cx-shop::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 99px; background: var(--shop); }
.cx-card.has-shop { border-left: 4px solid var(--shop); }
