/* Venco Merchant Portal — shared shell and components (v2, "sleek").
   Type: Sora for display, headings and figures; Inter for body copy and sub-copy (user decision, 26 Sep 2026);
   Green/500 #11302D with lime #C1F16D; the stepped "V" tile as a quiet pattern on dark surfaces.
   Layout language: calm neutrals, hairline borders, generous whitespace, tabular numbers —
   desktop with a sidebar, collapsing to a phone layout below 900px. Class names are shared by every page. */

:root {
  /* brand */
  --v-green: #11302d;
  --v-green-2: #0c2522;
  --v-green-3: #173e3a;
  --m-btn: #1b4943;
  --m-btn-hover: #163d38; /* primary buttons: a lighter Venco green than the brand ink */
  --v-lime: #c1f16d;
  --v-lime-2: #d6f79a;
  --v-lime-ink: #4d6b12;
  /* neutrals — true greys; green is kept for the sidebar, primary actions and brand marks only */
  --m-bg: #f6f6f5;
  --m-surface: #ffffff;
  --m-sunk: #fafafa;
  --m-line: #e8e8e6;
  --m-line-2: #dfdfdc;
  --m-soft: #f2f2f0;
  --m-ink: #141615;
  --m-ink-2: #404442;
  --m-muted: #656967;
  --m-faint: #717573;
  /* interface accent (selected, focused, on) — ink, not green */
  /* supporting Venco tones (from venco.africa): mid teal-greens, olive, pale limes */
  --v-teal: #44736f;
  --v-teal-2: #2b524e;
  --v-olive: #8caa4f;
  --v-lime-50: #f5fce5;
  --v-lime-100: #effad9;
  /* secondary accent — Venco lilac (venco.africa #B5A0F0) so green isn't doing every job */
  --m-lilac: #b5a0f0;
  /* selected card: faint lime tint, green edge, thin lime glow, green radio with a lime tick */
  --sel-bg: linear-gradient(160deg, #f6fbec 0%, #fff 65%);
  --sel-ring: 0 0 0 2px rgba(193, 241, 109, 0.4);
  --sel-tick: var(--v-green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c1f16d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  --m-hl: #efeafc; /* highlight fill: active chips, counts, avatars */
  --m-hl-ink: #4b3a9e; /* text/icons on highlight */
  --m-data: #1f5a52; /* charts and meters on light surfaces — Venco green (user: charts green, not purple) */
  --m-data-2: #9fd84a; /* lime accent */
  --m-bar-good: #5f9e3a; /* progress and meter bars: one solid green, no gradients */
  --m-bar-warn: #e5862b; /* the same bars when a value is off target */
  --m-wash: #f7f6f3; /* hover wash (warm neutral, from venco.africa #F8F8F7) */
  /* interface accent — slate ink for focus borders and small icons */
  --m-accent: #3a403d;
  --m-ring: 0 0 0 4px rgba(203, 240, 127, 0.45);
  /* hero cards — charcoal with a hint of Venco green in the corner */
  --m-hero:
    radial-gradient(60% 80% at 100% 0%, rgba(193, 241, 109, 0.2), transparent 60%),
    radial-gradient(70% 90% at 0% 100%, rgba(181, 160, 240, 0.26), transparent 60%),
    linear-gradient(160deg, #1e2221 0%, #151817 60%, #121413 100%);
  /* status — crisp, clearly distinct tones (refreshed 26 Sep: the old set read as dull) */
  --m-success: #167434;
  --m-success-bg: #e6f6ea;
  --m-warn: #cc5208;
  --m-warn-bg: #fff2e6;
  --m-danger: #d6331c;
  --m-danger-bg: #ffeee9;
  --m-info: #1a60b8;
  --m-info-bg: #e8f1fd;
  --m-violet: #6a48d8;
  --m-violet-bg: #f0ebfe;
  --m-teal: #0e8577;
  --m-teal-bg: #e2f5f2;
  /* type */
  --m-display: "Sora", system-ui, sans-serif; /* display, headings, figures */
  --m-ui: "Inter", system-ui, -apple-system, sans-serif; /* body copy, sub-copy, interface */
  /* shape */
  --m-r: 10px;
  --m-r-sm: 8px;
  --m-r-xs: 6px;
  --m-shadow: 0 1px 2px rgba(18, 22, 20, 0.04), 0 1px 1px rgba(18, 22, 20, 0.02);
  --m-shadow-lg: 0 24px 60px -18px rgba(12, 37, 34, 0.35), 0 2px 6px rgba(12, 37, 34, 0.08);
  --m-side: 256px;
  --m-top: 64px;
  /* patterns (Venco V tile) */
  --v-pattern-dark: url("/assets/marketplace/merchant/assets/new/venco-pattern-dark.svg"); /* absolute: used from pages and from this sheet */
  --v-pattern-ink: url("/assets/marketplace/merchant/assets/new/venco-pattern-ink.svg");
  /* pages still reference the Resident App font tokens — map them onto the brand pair inside the portal */
  --font-inter: var(--m-ui);
  --font-sora: var(--m-display);
  --muted: var(--m-muted);
  --ink: var(--m-ink);
}

html,
body {
  background: var(--m-bg);
}
/* default icon size: any inline icon without its own rule scales with the text (specific rules below override) */
:where(svg[viewBox="0 0 24 24"]:not([width])) {
  width: 1em;
  height: 1em;
  flex: none;
} /* zero specificity: any real size rule wins */
body {
  padding: 0 !important;
  font-family: var(--m-ui);
  color: var(--m-ink);
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}
::selection {
  background: var(--v-lime);
  color: var(--v-green);
}
.m-app {
  display: grid;
  grid-template-columns: var(--m-side) minmax(0, 1fr);
  min-height: 100vh;
}

/* ------------------------------------------------------------------ sidebar (Venco dark green) */
.m-side {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  background: var(--v-green);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 14px;
  gap: 16px;
  isolation: isolate;
}
.m-side::before {
  /* no pattern, no glow — soft depth: lighter at the top, hairline edge */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 30% at 100% 0%, rgba(255, 255, 255, 0.05), transparent 70%),
    linear-gradient(180deg, #15393510 0%, rgba(0, 0, 0, 0.14) 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}
.m-side::-webkit-scrollbar {
  display: none;
}
.m-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 6px;
}
.m-brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--v-lime);
  color: var(--v-green);
  display: grid;
  place-items: center;
  font: 700 16px/1 var(--m-display);
  box-shadow: 0 0 0 4px rgba(193, 241, 109, 0.12);
}
.m-brand b {
  font: 600 15px/1.1 var(--m-display);
  letter-spacing: -0.2px;
  display: block;
  color: #fff;
}
.m-brand small {
  font: 500 11px/1.3 var(--m-ui);
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}
/* store switcher — one quiet row: logo, short name, status */
.m-store {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px 7px 7px;
  border-radius: var(--m-r-sm);
  text-align: left;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.m-store:hover,
.m-store:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  outline: 0;
}
.m-store > svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: rgba(255, 255, 255, 0.45);
  stroke-width: 1.8;
  transition: color 0.15s;
}
.m-store:hover > svg {
  color: #fff;
}
.m-store .logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.2);
}
.m-store .logo img {
  max-width: 26px;
  max-height: 22px;
  object-fit: contain;
}
.m-store .t {
  min-width: 0;
  flex: 1;
}
.m-store .t b {
  display: block;
  font: 600 13.5px/1.2 var(--m-ui);
  letter-spacing: -0.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-store .t small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: -1px 0 -4px -4px;
  padding: 4px 0 4px 4px;
  font-size: 11.5px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
}
.m-store .t small .on {
  color: #b4ff5c;
  font-weight: 600;
}
.m-store .t small .off {
  color: #ff8a6e;
  font-weight: 600;
}
.m-store .t small .wh {
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9dff3a;
  display: inline-block;
  flex: none;
  box-shadow:
    0 0 0 3px rgba(157, 255, 58, 0.22),
    0 0 8px rgba(157, 255, 58, 0.6);
}
.m-dot.off {
  background: #ff5a36;
  box-shadow:
    0 0 0 3px rgba(255, 90, 54, 0.22),
    0 0 8px rgba(255, 90, 54, 0.55);
}
.m-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
/* collapsible groups for less-used sections (no category headings) */
.m-grp {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.m-grp + .m-grp {
  margin-top: 2px;
  border-top: 0;
  padding-top: 0;
}
.m-grp-h {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 38px;
  padding: 0 10px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.6);
  font: 500 13.5px var(--m-ui);
  text-align: left;
  transition:
    background 0.12s,
    color 0.12s;
}
.m-grp-h:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.m-grp-h svg {
  width: 17px;
  height: 17px;
  flex: none;
  opacity: 0.8;
}
.m-grp-h .chev {
  width: 14px;
  height: 14px;
  margin-left: auto;
  opacity: 0.55;
  transition: transform 0.2s;
}
.m-grp-h .count {
  margin-left: auto;
}
.m-grp-h .count:not([hidden]) + .chev {
  margin-left: 8px;
}
.m-grp.open .m-grp-h .chev {
  transform: rotate(90deg);
}
.m-grp.open .grp-sum {
  display: none;
}
.m-grp-b {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.m-grp.open .m-grp-b {
  grid-template-rows: 1fr;
}
.m-grp-b > div {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 12px;
  margin-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.m-grp-b a {
  height: 34px !important;
  font-size: 13px !important;
}
.m-grp-b a svg {
  width: 15px !important;
  height: 15px !important;
}
.m-grp-b a[aria-current="page"]::before {
  left: -14px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .m-grp-b,
  .m-grp-h .chev {
    transition: none;
  }
}
.m-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 36px;
  padding: 0 10px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.72);
  font: 500 13.5px/1 var(--m-ui);
  transition:
    background 0.12s,
    color 0.12s;
}
.m-nav a svg {
  width: 17px;
  height: 17px;
  flex: none;
  stroke: currentColor;
  opacity: 0.85;
}
.m-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.m-nav a[aria-current="page"] {
  background: rgba(193, 241, 109, 0.13);
  color: var(--v-lime);
  font-weight: 600;
}
.m-nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--v-lime);
}
.m-nav a[aria-current="page"] svg {
  opacity: 1;
}
.m-nav .count {
  margin-left: auto;
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 600 11px/19px var(--m-ui);
  text-align: center;
}
.m-nav .count[data-count="new"] {
  background: var(--v-lime);
  color: var(--v-green);
}
.m-nav .owner-tag {
  margin-left: auto;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  font: 600 9.5px/18px var(--m-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(193, 241, 109, 0.85);
  border: 1px solid rgba(193, 241, 109, 0.3);
}
.m-nav .count + .owner-tag {
  margin-left: 6px;
}
.m-side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.m-side-foot a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  padding: 7px 10px;
  border-radius: var(--m-r-xs);
}
.m-side-foot a svg {
  width: 15px;
  height: 15px;
}
.m-side-foot a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* ------------------------------------------------------------------ top bar */
.m-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.m-top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--m-top);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  background: rgba(246, 247, 245, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.m-top.scrolled {
  border-bottom-color: var(--m-line);
}
.m-top h1 {
  font: 600 18px/1.2 var(--m-display);
  letter-spacing: -0.4px;
}
.m-top .crumb {
  font: 500 12px/1 var(--m-ui);
  color: var(--m-muted);
  display: block;
  margin-bottom: 5px;
}
.m-top .crumb a:hover {
  color: var(--m-ink);
}
.m-top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  height: 38px;
  padding: 0 8px 0 12px;
  border-radius: var(--m-r-sm);
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  color: var(--m-faint);
  box-shadow: var(--m-shadow);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.m-search:focus-within {
  border-color: var(--m-accent);
  box-shadow: var(--m-ring);
}
.m-search input {
  border: 0;
  outline: 0;
  background: none;
  font: 500 13px var(--m-ui);
  width: 100%;
  color: var(--m-ink);
}
.m-search input::placeholder {
  color: var(--m-faint);
}
.m-search svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.m-search::after {
  content: "⌘K";
  flex: none;
  font: 600 10.5px/1 var(--m-ui);
  color: var(--m-muted);
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--m-soft);
  border: 1px solid var(--m-line);
}
.m-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--m-r-sm);
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  display: grid;
  place-items: center;
  color: var(--m-ink-2);
  box-shadow: var(--m-shadow);
}
.m-icon-btn svg {
  width: 17px;
  height: 17px;
}
.m-icon-btn .badge {
  left: auto;
  right: -5px;
  top: -5px;
  background: #c9501f;
  color: #fff;
  font: 700 10px/1 var(--m-ui);
  min-width: 19px;
  height: 19px;
  border: 2px solid var(--m-bg);
  box-sizing: border-box;
}
.m-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--m-hl);
  color: var(--m-hl-ink);
  box-shadow: inset 0 0 0 1px #e2dbf8;
  display: grid;
  place-items: center;
  font: 600 13px var(--m-display);
  letter-spacing: 0.02em;
}
.m-menu-btn {
  display: none;
}

.m-content {
  padding: 20px 32px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ cards & grids */
.card {
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  border-radius: var(--m-r);
  padding: 20px;
  box-shadow: var(--m-shadow);
}
.card.flush {
  padding: 0;
  overflow: hidden;
}
.card-h {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.card.flush .card-h {
  padding: 18px 20px 0;
}
.card-h h2 {
  font: 600 15px/1.3 var(--m-display);
  letter-spacing: -0.25px;
}
.card-h p {
  font-size: 12.5px;
  color: var(--m-muted);
  margin-top: 3px;
}
.card-h .end {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}
@media (max-width: 560px) {
  .card-h {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .card-h > div:first-child {
    flex: 1 1 160px;
    min-width: 0;
  }
  .card-h .end {
    flex-wrap: wrap;
  }
}
.card.dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  border-color: transparent;
  box-shadow: var(--m-shadow-lg);
  background: var(--m-hero);
}
.card.dark::before {
  content: none;
} /* pattern removed — the ink + lime/lilac glows carry the hero */
.card.dark .card-h p,
.card.dark .muted {
  color: rgba(255, 255, 255, 0.62);
}
.card.tint {
  background: var(--m-sunk);
  box-shadow: none;
}
.grid {
  display: grid;
  gap: 16px;
}
.g-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.g-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g-main {
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.stat .lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 12.5px var(--m-ui);
  color: var(--m-muted);
}
.stat .ico {
  width: 26px;
  height: 26px;
  border-radius: var(--m-r-xs);
  display: grid;
  place-items: center;
  background: var(--m-soft);
  color: var(--m-ink-2);
}
.stat .ico svg {
  width: 14px;
  height: 14px;
}
.stat .val {
  font: 600 24px/1.1 var(--m-display);
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
}
.stat .delta {
  font: 500 12px var(--m-ui);
  color: var(--m-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px;
  border-radius: 100px;
  font: 600 11.5px/1 var(--m-ui);
}
.delta-chip.up {
  background: var(--m-success-bg);
  color: var(--m-success) !important;
}
.delta-chip.down {
  background: var(--m-danger-bg);
  color: var(--m-danger) !important;
}
.delta-chip.plain {
  background: var(--m-soft);
  color: var(--m-muted) !important;
  font-weight: 500;
}
.card.dark .delta-chip.plain {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7) !important;
}
.up {
  color: var(--m-success) !important;
}
.down {
  color: var(--m-danger) !important;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: var(--m-r-sm);
  font: 600 13.5px/1 var(--m-ui);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.08s,
    color 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 15px;
  height: 15px;
}
.btn-primary {
  background: var(--m-btn);
  color: var(--v-lime);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 1px 2px rgba(12, 37, 34, 0.3);
}
.btn-primary:hover {
  background: var(--m-btn-hover);
}
.btn-secondary {
  background: var(--m-soft);
  color: var(--m-ink);
}
.btn-secondary:hover {
  background: #e7ebe4;
}
.btn-outline {
  background: var(--m-surface);
  color: var(--m-ink);
  border-color: var(--m-line-2);
  box-shadow: var(--m-shadow);
}
.btn-outline:hover {
  border-color: #cfcfca;
  background: var(--m-sunk);
}
.btn-danger {
  background: var(--m-danger-bg);
  color: var(--m-danger);
}
.btn-danger:hover {
  background: #fbe1da;
}
.btn-lime {
  background: var(--v-lime);
  color: var(--v-green);
}
.btn-lime:hover {
  background: var(--v-lime-2);
}
.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.14);
}
.btn-text {
  background: none;
  color: var(--v-green);
  padding: 0 4px;
  height: auto;
  font-weight: 600;
  box-shadow: none;
}
.btn-text:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-sm {
  height: 30px;
  padding: 0 11px;
  font-size: 12.5px;
  border-radius: var(--m-r-xs);
}
.btn-lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  border-radius: var(--m-r-sm);
}
.btn[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}
.btn-block {
  width: 100%;
}
.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(193, 241, 109, 0.7);
}

/* ------------------------------------------------------------------ pills, chips, tabs */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  border-radius: 100px;
  font: 600 11.5px/1 var(--m-ui);
  white-space: nowrap;
  background: var(--m-soft);
  color: var(--m-ink-2);
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}
.pill.plain::before {
  display: none;
}
.pill.new {
  background: var(--m-warn-bg);
  color: var(--m-warn);
}
.pill.accepted,
.pill.preparing {
  background: var(--m-info-bg);
  color: var(--m-info);
}
.pill.packed,
.pill.ready {
  background: var(--m-violet-bg);
  color: var(--m-violet);
}
.pill.rider_assigned,
.pill.on_the_way {
  background: var(--m-teal-bg);
  color: var(--m-teal);
}
.pill.delivered,
.pill.ok {
  background: var(--m-success-bg);
  color: var(--m-success);
}
.pill.cancelled,
.pill.rejected,
.pill.bad {
  background: var(--m-danger-bg);
  color: var(--m-danger);
}
.pill.muted {
  background: var(--m-soft);
  color: var(--m-muted);
}
.pill.new::before {
  animation: m-pulse 1.8s ease-out infinite;
}
@keyframes m-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(204, 82, 8, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(204, 82, 8, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(204, 82, 8, 0);
  }
}

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 100px;
  border: 1px solid var(--m-line-2);
  background: var(--m-surface);
  font: 500 13px/1 var(--m-ui);
  color: var(--m-ink-2);
  cursor: pointer;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
}
.chip:hover {
  border-color: #cfcfca;
  color: var(--m-ink);
}
.chip .n {
  font-size: 11.5px;
  color: var(--m-faint);
  font-weight: 600;
}
.chip.on {
  background: var(--m-hl);
  border-color: #d6ccf6;
  color: var(--m-hl-ink);
}
.chip.on .n {
  color: var(--m-hl-ink);
  background: rgba(255, 255, 255, 0.85);
  padding: 1px 6px;
  border-radius: 100px;
  margin-left: 2px;
}

.tabs-m {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--m-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-m::-webkit-scrollbar {
  display: none;
}
.tabs-m button {
  position: relative;
  height: 42px;
  padding: 0 12px;
  font: 500 13.5px var(--m-ui);
  color: var(--m-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: color 0.12s;
}
.tabs-m button:hover {
  color: var(--m-ink);
}
.tabs-m button[aria-selected="true"] {
  color: var(--m-ink);
  font-weight: 600;
}
.tabs-m button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--m-accent);
}
.tabs-m .n {
  min-width: 20px;
  height: 19px;
  padding: 0 6px;
  border-radius: 100px;
  background: var(--m-soft);
  font: 600 11px/19px var(--m-ui);
  color: var(--m-ink-2);
}
.tabs-m button[aria-selected="true"] .n {
  background: var(--m-hl);
  color: var(--m-hl-ink);
}

.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--m-r-sm);
  background: var(--m-soft);
  border: 1px solid var(--m-line);
  gap: 2px;
}
.seg button {
  height: 28px;
  padding: 0 11px;
  border-radius: var(--m-r-xs);
  font: 600 12px var(--m-ui);
  color: var(--m-muted);
  transition:
    background 0.12s,
    color 0.12s;
}
.seg button:hover {
  color: var(--m-ink);
}
.field > .seg {
  align-self: flex-start;
}
.field > .seg button {
  height: 34px;
}
.seg button[aria-pressed="true"],
.seg button[aria-selected="true"] {
  background: var(--m-surface);
  color: var(--m-ink);
  box-shadow: 0 1px 2px rgba(18, 22, 20, 0.1);
}
.card.dark .seg {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}
.card.dark .seg button {
  color: rgba(255, 255, 255, 0.6);
}
.card.dark .seg button:hover {
  color: #fff;
}
.card.dark .seg button[aria-pressed="true"] {
  background: var(--v-lime);
  color: var(--v-green);
  box-shadow: none;
}

/* ------------------------------------------------------------------ tables */
.tbl-wrap {
  overflow-x: auto;
}
table.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 680px;
}
.tbl th {
  text-align: left;
  font: 600 11px/1 var(--m-ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--m-faint);
  padding: 12px 16px;
  background: var(--m-sunk);
  border-bottom: 1px solid var(--m-line);
  white-space: nowrap;
}
.tbl td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--m-line);
  vertical-align: middle;
  font-size: 13.5px;
  color: var(--m-ink);
}
.tbl tr:last-child td {
  border-bottom: 0;
}
.tbl tbody tr {
  transition: background 0.1s;
}
.tbl tbody tr.link {
  cursor: pointer;
}
.tbl tbody tr:hover {
  background: var(--m-sunk);
}
.tbl .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.tbl .sub {
  display: block;
  font-size: 12px;
  color: var(--m-muted);
  margin-top: 3px;
}
.prod-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.prod-cell .th {
  width: 42px;
  height: 42px;
  border-radius: var(--m-r-sm);
  border: 1px solid var(--m-line);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
}
.prod-cell .th img {
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.prod-cell b {
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 320px;
}

/* ------------------------------------------------------------------ forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
} /* title -> box -> helper text: 8px each way */
.field > label,
.field > .lbl {
  font: 600 12.5px/16px var(--m-ui);
  color: var(--m-ink-2);
}
.field .hint {
  font-size: 12px;
  color: var(--m-muted);
}
/* text under a field (17 Oct 2026): helper text, counters and errors sit 8px below it; a link or note placed right after a
   field (e.g. "Use a code instead") gets 10px and lines up with the field's left edge instead of hugging it */
.field + .btn-text,
.field + .hint,
.field + p,
.field + small,
.field + .sa-err {
  display: inline-flex;
  margin-top: 10px;
}
.field + .btn-text {
  padding-left: 0;
  padding-right: 0;
  align-self: flex-start;
}
.input,
.select,
.textarea {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: var(--m-r-sm);
  border: 1px solid var(--m-line-2);
  background: var(--m-surface);
  font: 500 14px var(--m-ui);
  color: var(--m-ink);
  outline: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  box-shadow: var(--m-shadow);
}
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background: var(--m-surface)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b736e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")
    right 11px center / 16px no-repeat;
}
.textarea {
  height: auto;
  min-height: 96px;
  padding: 11px 13px;
  resize: vertical;
  line-height: 1.5;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: #d4d4cf;
}
.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--m-accent);
  box-shadow: var(--m-ring);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--m-faint);
}
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .pre {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--m-line-2);
  border-right: 0;
  border-radius: var(--m-r-sm) 0 0 var(--m-r-sm);
  background: var(--m-sunk);
  color: var(--m-muted);
  font-weight: 600;
}
.input-group .input {
  border-radius: 0 var(--m-r-sm) var(--m-r-sm) 0;
}
.input-group .suf {
  display: grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--m-line-2);
  border-left: 0;
  border-radius: 0 var(--m-r-sm) var(--m-r-sm) 0;
  background: var(--m-sunk);
  color: var(--m-muted);
  font: 500 12.5px var(--m-ui);
  white-space: nowrap;
}
.input-group .input:first-child {
  border-radius: var(--m-r-sm) 0 0 var(--m-r-sm);
}
.input-group .input:first-child:last-child {
  border-radius: var(--m-r-sm);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.form-grid .full {
  grid-column: 1 / -1;
}

.toggle {
  position: relative;
  width: 40px;
  height: 24px;
  flex: none;
  border-radius: 100px;
  background: #dcdcd8;
  transition: background 0.2s;
  cursor: pointer;
  border: 0;
  padding: 0;
}
.toggle::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(18, 22, 20, 0.25);
  transition:
    transform 0.2s cubic-bezier(0.3, 1.4, 0.6, 1),
    background 0.2s;
}
/* On = bright Venco lime track with a Venco green knob */
.toggle[aria-checked="true"] {
  background: linear-gradient(180deg, #cdf585, #b4e55a);
  box-shadow: inset 0 0 0 1px rgba(111, 160, 40, 0.35);
}
.toggle[aria-checked="true"]::after {
  transform: translateX(16px);
  background: var(--v-green);
  box-shadow: 0 1px 3px rgba(17, 48, 45, 0.35);
}
.toggle:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(193, 241, 109, 0.6);
}
.row-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--m-line);
}
.row-toggle:last-child {
  border-bottom: 0;
}
.row-toggle b {
  font-weight: 600;
  display: block;
}
.row-toggle small {
  display: block;
  margin-top: 4px;
  color: var(--m-muted);
  font-size: 12.5px;
  line-height: 17px;
}

/* ------------------------------------------------------------------ modal */
.m-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 22, 20, 0.42);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: m-fade 0.15s ease;
}
.m-modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--m-surface);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--m-shadow-lg);
  border: 1px solid var(--m-line);
  animation: m-rise 0.2s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.m-modal.wide {
  width: min(760px, 100%);
}
.m-modal-h {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}
.m-modal-h h2 {
  font: 500 18px/1.3 var(--m-display);
  letter-spacing: -0.2px;
}
.m-modal-h p {
  color: var(--m-muted);
  font-size: 13px;
  margin-top: 4px;
}
.m-x {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: var(--m-r-xs);
  background: var(--m-soft);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--m-ink-2);
}
.m-x:hover {
  background: #e7ebe4;
}
.m-x svg {
  width: 15px;
  height: 15px;
}
.m-modal-f {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--m-line);
}
/* tall modals scroll; keep the actions in view at the bottom */
.m-modal:not(.rch-modal) .m-modal-f {
  position: sticky;
  bottom: -24px;
  z-index: 3;
  margin-bottom: -24px;
  padding-bottom: 24px;
  background: var(--m-surface);
}
@keyframes m-fade {
  from {
    opacity: 0;
  }
}
@keyframes m-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

.opt-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opt-m {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--m-r-sm);
  border: 1px solid var(--m-line-2);
  background: var(--m-surface);
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
.opt-m:hover {
  border-color: #cfcfca;
}
/* Card selectors keep the Venco green selected state (user decision) — green border, soft lime ring, green dot */
.opt-m[aria-checked="true"],
.opt-m:has(input:checked) {
  border-color: var(--v-green);
  background: var(--sel-bg);
  box-shadow: var(--sel-ring);
}
.opt-m[aria-checked="true"] b,
.opt-m:has(input:checked) b {
  color: var(--v-green);
}
.opt-m b + .sub,
.opt-m b + small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--m-muted);
  font-weight: 400;
}
.opt-m input[type="radio"],
.opt-m input[type="checkbox"] {
  accent-color: var(--v-green);
}
.opt-m .rd {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #cfcfca;
  flex: none;
  display: grid;
  place-items: center;
}
.opt-m[aria-checked="true"] .rd {
  width: 20px;
  height: 20px;
  border: 0;
  background: var(--sel-tick);
}

/* ------------------------------------------------------------------ misc */
.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--m-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.empty .art {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--m-hl);
  box-shadow: inset 0 0 0 1px #e2dbf8;
  display: grid;
  place-items: center;
  color: var(--m-hl-ink);
  margin-bottom: 4px;
}
.empty .art svg {
  width: 24px;
  height: 24px;
}
.empty h3 {
  font: 500 16px var(--m-display);
  color: var(--m-ink);
}
.muted {
  color: var(--m-muted);
}
.small {
  font-size: 12.5px;
}
.sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--m-faint);
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
}
.money {
  font-variant-numeric: tabular-nums;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row.between {
  justify-content: space-between;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.divider {
  height: 1px;
  background: var(--m-line);
  margin: 4px 0;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--m-line);
}
.list-row:last-child {
  border-bottom: 0;
}
.bar {
  height: 6px;
  border-radius: 100px;
  background: var(--m-soft);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--m-data);
}
/* Toast — Inter throughout; status icon, bold lead-in, soft body text, a thin timer line */
.m-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 380px;
  padding: 12px 16px 13px 12px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #232726, #191c1b);
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.005em;
  box-shadow:
    0 18px 40px -16px rgba(12, 37, 34, 0.55),
    0 2px 6px rgba(12, 37, 34, 0.12);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.2s,
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.m-toast * {
  font-family: inherit;
}
.m-toast.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.m-toast .t-ic {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--v-lime);
  color: var(--v-green);
  margin-top: -1px;
}
.m-toast .t-ic svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}
.m-toast.warn .t-ic {
  background: #ffbe4d;
  color: #3d2506;
}
.m-toast.err .t-ic {
  background: #f0533e;
  color: #fff;
}
.m-toast .t-tx {
  flex: 1;
  min-width: 0;
  padding-top: 1px;
}
.m-toast b {
  color: #fff;
  font-weight: 600;
}
.m-toast a,
.m-toast button {
  color: var(--v-lime);
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
  align-self: center;
}
.m-toast a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.m-toast::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(193, 241, 109, 0.55);
  transform-origin: left;
  transform: scaleX(0);
}
.m-toast.on::after {
  animation: t-life var(--t-ms, 2600ms) linear both;
}
@keyframes t-life {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .m-toast {
    transition: opacity 0.2s;
    transform: none;
  }
  .m-toast.on::after {
    animation: none;
  }
}
.kbd {
  font: 600 11px var(--m-ui);
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--m-soft);
  color: var(--m-muted);
  border: 1px solid var(--m-line);
}
.chart {
  width: 100%;
  height: 220px;
  display: block;
}
.demo-note {
  font-size: 12px;
  color: var(--m-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.eyebrow {
  font: 600 11px/1 var(--m-ui);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--m-muted);
}
.display {
  font-family: var(--m-display);
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* area chart + sparkline (VM.areaChart / VM.sparkline) */
.ac {
  position: relative;
}
.ac svg {
  display: block;
  width: 100%;
  overflow: visible;
}
.ac .ac-tip {
  position: absolute;
  top: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--m-ink);
  color: #fff;
  font: 500 12px/1.35 var(--m-ui);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.ac .ac-tip b {
  display: block;
  font: 600 13px var(--m-display);
}
.ac.on .ac-tip {
  opacity: 1;
}
/* chart tooltips: calm white card with ink text (lime was too loud) */
.ac .ac-tip {
  background: #fff;
  color: var(--m-muted);
  border: 1px solid var(--m-line);
  box-shadow: 0 8px 22px -8px rgba(20, 22, 21, 0.28);
  font-weight: 400;
}
.ac .ac-tip b {
  color: var(--m-ink);
}
/* hero charts: frosted-glass tooltip */
.card.dark .ac .ac-tip {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    0 12px 30px -10px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border-radius: var(--m-r-sm);
  padding: 8px 12px;
}
.card.dark .ac .ac-tip b {
  color: #fff;
}
.spark {
  display: block;
  width: 100%;
  height: 34px;
  overflow: visible;
}
.ac-x-labels {
  position: relative;
  height: 16px;
  margin-top: -20px;
  font: 500 11px/16px var(--m-ui);
  color: var(--m-faint);
  pointer-events: none;
}
.ac-x-labels span {
  position: absolute;
  top: 0;
  white-space: nowrap;
}
.ac.dark .ac-x-labels {
  color: rgba(255, 255, 255, 0.5);
}
@media (max-width: 900px) {
  .ac svg {
    height: min(var(--ac-h), 170px) !important;
  }
  .ac-x-labels span.o {
    display: none;
  }
}

/* ------------------------------------------------------------------ phone layout (< 900px) */
.m-tabbar {
  display: none;
}
@media (max-width: 1180px) {
  .g-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .m-search {
    width: 220px;
  }
}
@media (max-width: 900px) {
  .m-app {
    grid-template-columns: 1fr;
  }
  .m-side {
    position: fixed;
    z-index: 70;
    left: 0;
    top: 0;
    width: 284px;
    transform: translateX(-100%);
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
    box-shadow: none;
  }
  .m-app.nav-open .m-side {
    transform: none;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.25);
  }
  .m-app.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(12, 22, 20, 0.45);
  }
  .m-top {
    padding: 0 16px;
    gap: 10px;
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--m-top) + env(safe-area-inset-top, 0px));
  }
  .m-top h1 {
    font-size: 17px;
  }
  .m-menu-btn {
    display: grid;
  }
  .m-search,
  .m-top .hide-sm {
    display: none;
  }
  .m-content {
    padding: 14px 16px 112px;
    gap: 14px;
  }
  .g-3,
  .g-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .g-4 {
    gap: 10px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .card {
    padding: 16px;
    border-radius: 10px;
  }
  .stat .val {
    font-size: 21px;
  }
  .g-4 > .stat .lbl {
    min-height: 32px;
    line-height: 1.25;
  }
  .m-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--m-line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .m-tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font: 500 10.5px var(--m-ui);
    color: var(--m-muted);
    position: relative;
  }
  .m-tabbar a svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
  }
  .m-tabbar a span.ic {
    width: 54px;
    height: 28px;
    border-radius: 100px;
    display: grid;
    place-items: center;
    transition: background 0.15s;
  }
  .m-tabbar a[aria-current="page"] {
    color: var(--m-accent);
    font-weight: 700;
  }
  .m-tabbar a[aria-current="page"] span.ic {
    background: var(--v-lime);
  }
  .m-tabbar .count {
    position: absolute;
    top: -4px;
    left: calc(50% + 7px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 100px;
    background: var(--v-green);
    color: var(--v-lime);
    font: 700 9.5px/17px var(--m-ui);
    text-align: center;
    border: 2px solid #fff;
    box-sizing: content-box;
  }
  .m-toast {
    left: 16px;
    right: 16px;
    bottom: 92px;
    max-width: none;
  }
  .m-scrim {
    align-items: end;
    padding: 0;
  }
  .m-modal {
    width: 100%;
    border-radius: 14px 14px 0 0;
    max-height: 88vh;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .m-modal-f {
    flex-direction: column-reverse;
  }
  .m-modal:not(.rch-modal) .m-modal-f {
    bottom: calc(-20px - env(safe-area-inset-bottom, 0px));
    margin-bottom: calc(-20px - env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .m-modal-f .btn {
    width: 100%;
    height: 46px;
  }
}

/* ------------------------------------------------------------------ tooltips for icon-only controls */
.m-tip {
  position: fixed;
  z-index: 120;
  pointer-events: none;
  max-width: 240px;
  padding: 6px 9px;
  border-radius: var(--m-r-xs);
  background: var(--m-ink);
  color: #fff;
  font: 500 12px/1.3 var(--m-ui);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(18, 22, 20, 0.22);
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.12s,
    transform 0.12s;
}
.m-tip.on {
  opacity: 1;
  transform: none;
}
.m-tip.long {
  white-space: normal;
  max-width: 264px;
  padding: 9px 11px;
  font: 400 12.5px/1.45 var(--m-ui);
  background: #1f2322;
  color: rgba(255, 255, 255, 0.9);
}
/* ⓘ info icon beside a term that needs explaining */
.info-tip {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  vertical-align: -3px;
  border-radius: 50%;
  color: var(--m-faint);
  cursor: default;
  transition:
    color 0.12s,
    background 0.12s;
  flex: none;
}
.info-tip svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
}
.info-tip:hover,
.info-tip:focus-visible {
  color: var(--m-hl-ink);
  background: var(--m-hl);
  outline: 0;
}
.card.dark .info-tip,
.m-side .info-tip {
  color: rgba(255, 255, 255, 0.45);
}
.card.dark .info-tip:hover,
.card.dark .info-tip:focus-visible {
  color: var(--v-lime);
  background: rgba(193, 241, 109, 0.14);
}
.eyebrow .info-tip {
  vertical-align: -4px;
  margin-left: 3px;
}
.m-tip::after {
  content: "";
  position: absolute;
  left: var(--ax, 50%);
  width: 8px;
  height: 8px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}
.m-tip[data-side="top"]::after {
  bottom: -4px;
}
.m-tip[data-side="bottom"]::after {
  top: -4px;
}
[data-icon-only] {
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}
[data-icon-only]:hover,
[data-icon-only]:focus-visible {
  background: var(--m-soft);
  border-color: #cfcfca;
  color: var(--m-accent);
}
.m-icon-btn[data-icon-only]:hover,
.m-icon-btn[data-icon-only]:focus-visible {
  background: var(--m-surface);
  border-color: var(--m-accent);
  box-shadow: 0 0 0 3px rgba(193, 241, 109, 0.55);
}
.m-side [data-icon-only]:hover,
.m-side [data-icon-only]:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.m-top .m-avatar:hover,
.m-top .m-avatar:focus-visible {
  box-shadow: var(--m-ring);
}
[data-icon-only]:focus-visible {
  outline: 0;
  box-shadow: var(--m-ring);
}

/* ------------------------------------------------------------------ shared utilities (consolidated from page styles) */
.ib {
  width: 32px;
  height: 32px;
  border-radius: var(--m-r-xs);
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--m-line);
  background: var(--m-surface);
  color: var(--m-muted);
  transition:
    color 0.12s,
    border-color 0.12s,
    background 0.12s;
}
.ib svg {
  width: 15px;
  height: 15px;
}
.ib:hover {
  color: var(--m-accent);
  border-color: #cfcfca;
  background: var(--m-sunk);
}
.ib.del:hover {
  color: var(--m-danger);
  border-color: #f1c4b9;
  background: var(--m-danger-bg);
}
.is-selected,
[aria-selected="true"].selectable {
  border-color: var(--v-green) !important;
  box-shadow: 0 0 0 3px rgba(193, 241, 109, 0.8);
}
.card-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--m-r-sm);
  background: var(--m-surface);
  border: 1px solid var(--m-line-2);
  box-shadow: var(--m-shadow);
  color: var(--m-faint);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.card-search:focus-within {
  border-color: var(--m-accent);
  box-shadow: var(--m-ring);
}
.card-search input {
  border: 0;
  outline: 0;
  background: none;
  width: 100%;
  font: 500 13.5px var(--m-ui);
  color: var(--m-ink);
}
.card-search svg {
  width: 15px;
  height: 15px;
  flex: none;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--v-green);
  width: 16px;
  height: 16px;
}
.card.dark .select,
.card.dark .input {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: none;
}
.card.dark .select option {
  color: var(--m-ink);
}
.card.dark .btn-danger {
  background: rgba(255, 122, 92, 0.14);
  color: #ffa28a;
}
.card.dark .btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
/* horizontally scrolling rows get a soft fade on the right edge on phones, so it's clear there's more */
@media (max-width: 900px) {
  .scroll-x,
  .tabs-m,
  .stepper-wrap {
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
}

/* ------------------------------------------------------------------ layout fixes shared by every page */
[hidden] {
  display: none !important;
}
#m-content > #page:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: inherit;
}
#page .grid > * {
  min-width: 0;
}

/* ---------- Resident privacy ---------- */
.privacy-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--m-r-sm);
  background: var(--m-sunk, #f1f3ef);
  border: 1px solid var(--m-line);
  font-size: 12px;
  line-height: 1.45;
  color: var(--m-muted);
}
.privacy-note svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
  color: var(--m-accent);
}
/* Pages showing resident orders can't be printed or saved to PDF */
@media print {
  body[data-private] > * {
    display: none !important;
  }
  body[data-private]::after {
    content: "Resident details are private. Printing is disabled for this page — use the packing slip on the order page.";
    display: block;
    padding: 48px;
    font:
      500 16px/1.5 Inter,
      sans-serif;
    color: #11302d;
  }
}

/* ---------- Hover & press layer (26 Sep 2026) ----------
   Anything clickable answers the pointer: rows and list items get a pale-lime wash,
   cards that open something lift slightly, buttons press in. Keyboard focus mirrors hover. */
.btn {
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s,
    box-shadow 0.15s,
    transform 0.12s;
}
.btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.985);
}
.btn-primary:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 6px 16px -8px rgba(17, 48, 45, 0.55);
}
.btn-lime:hover {
  box-shadow: 0 6px 16px -8px rgba(140, 170, 79, 0.7);
}
.btn-outline:hover {
  border-color: #cfcfca;
  color: var(--m-ink);
}
.btn-secondary:hover {
  background: #e9e9e5;
  color: var(--m-ink);
}
.chip {
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.chip:not(.on):hover {
  background: var(--m-wash);
  border-color: #d8d8d2;
  color: var(--m-ink);
}
.opt-m:not([aria-checked="true"]):hover {
  border-color: #cfcfca;
  background: var(--m-wash);
}
.toggle {
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.toggle:hover {
  box-shadow: 0 0 0 4px rgba(20, 22, 21, 0.06);
}
.toggle[aria-checked="true"]:hover {
  box-shadow:
    inset 0 0 0 1px rgba(111, 160, 40, 0.35),
    0 0 0 4px rgba(193, 241, 109, 0.35);
}
.seg button {
  transition:
    color 0.12s,
    background 0.12s;
}

/* clickable table rows and list rows */
.tbl tbody tr {
  transition: background 0.12s;
}
.tbl tbody tr.link,
[data-order],
[data-c],
[data-p],
[data-go] {
  cursor: pointer;
}
.tbl tbody tr.link:hover,
.tbl tbody tr[data-order]:hover,
.tbl tbody tr[data-c]:hover,
.tbl tbody tr[data-p]:hover {
  background: var(--m-wash);
}
.tbl tbody tr.link:hover td:first-child,
.tbl tbody tr[data-order]:hover td:first-child,
.tbl tbody tr[data-c]:hover td:first-child,
.tbl tbody tr[data-p]:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--m-lilac);
}
.tbl tbody tr.link:focus-visible {
  outline: 0;
  background: var(--m-wash);
  box-shadow: inset 0 0 0 2px var(--m-data);
}
.c-card,
.n-item,
.rs-row,
.pr,
.tk {
  transition:
    background 0.12s,
    box-shadow 0.12s;
}
.c-card:hover,
.n-item:hover,
.rs-row:hover,
.pr:hover {
  background: var(--m-wash);
}
.tk:hover {
  background: var(--m-wash);
}

/* product name links */
a.prod-cell b,
a.prod-cell span {
  transition: color 0.12s;
}
a.prod-cell:hover b {
  color: var(--m-ink);
  text-decoration: underline;
  text-decoration-color: rgba(20, 22, 21, 0.3);
  text-underline-offset: 3px;
}
a.prod-cell:hover .thumb,
a.prod-cell:hover img {
  transform: scale(1.04);
}
a.prod-cell .thumb,
a.prod-cell img {
  transition: transform 0.2s;
}

/* cards that are links */
a.card,
button.card,
a.stat,
.gcard,
.card.is-link {
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
  cursor: pointer;
}
a.card:hover,
button.card:hover,
a.stat:hover,
.gcard:hover,
.card.is-link:hover {
  transform: translateY(-2px);
  border-color: #dcdcd7;
  box-shadow:
    0 12px 28px -16px rgba(20, 22, 21, 0.3),
    var(--m-shadow);
}
a.card:focus-visible,
a.stat:focus-visible,
.gcard:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 2px var(--m-data),
    var(--m-ring);
}
a.card,
a.stat {
  color: inherit;
  text-decoration: none;
  display: block;
}

/* shell */

.m-brand {
  transition: opacity 0.15s;
}
a.m-brand:hover {
  opacity: 0.88;
}
.m-tabbar a {
  transition:
    color 0.12s,
    background 0.12s;
}
@media (hover: hover) {
  .m-tabbar a:hover {
    color: var(--v-green);
  }
}
.btn-text {
  transition: color 0.12s;
}
.btn-text:hover {
  color: #17423e;
}

@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled),
  a.card:hover,
  button.card:hover,
  a.stat:hover,
  .gcard:hover,
  .card.is-link:hover,
  .m-side-promo:hover,
  a.prod-cell:hover img,
  a.prod-cell:hover .thumb {
    transform: none;
  }
}
/* short screens: the sidebar promo gives way so nav + footer fit without scrolling */
@media (max-height: 620px) {
  .m-side-promo {
    display: none;
  }
}

/* ---------- Venco date picker ---------- */
.dp-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
@media (max-width: 560px) {
  .dp-field {
    min-width: 0 !important;
  }
}
.dp-field {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  min-width: 150px;
  font: 500 13.5px var(--m-ui);
  color: var(--m-ink);
}
.dp-field .dp-v {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dp-field.dp-empty .dp-v {
  color: var(--m-faint);
  font-weight: 400;
}
.dp-field svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--m-muted);
  transition: color 0.12s;
}
.dp-field:hover svg,
.dp-field[aria-expanded="true"] svg {
  color: var(--v-green);
}
.dp-field[aria-expanded="true"] {
  border-color: var(--v-green);
  box-shadow: 0 0 0 4px rgba(193, 241, 109, 0.45);
}
.dp-field:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dp {
  position: fixed;
  z-index: 130;
  width: 304px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--m-line);
  box-shadow:
    0 24px 60px -18px rgba(12, 37, 34, 0.4),
    0 2px 8px rgba(12, 37, 34, 0.08);
  font-family: var(--m-ui);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top left;
  transition:
    opacity 0.15s,
    transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dp.on {
  opacity: 1;
  transform: none;
}
.dp-h {
  position: relative;
  padding: 14px 16px 14px;
  background: radial-gradient(120% 140% at 100% 0%, #1d4540 0%, var(--v-green) 60%);
  color: #fff;
}
.dp-eb {
  display: block;
  font: 600 10.5px/1 var(--m-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(193, 241, 109, 0.85);
  padding-right: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dp-h b {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
  font: 600 21px/1.1 var(--m-display);
  letter-spacing: -0.5px;
}
.dp-h b small {
  font: 500 13px var(--m-ui);
  color: var(--v-lime);
  letter-spacing: 0;
}
.dp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 4px;
}
.dp-nav span {
  font: 600 14px var(--m-display);
  letter-spacing: -0.2px;
}
.dp-nb {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--m-ink-2);
  transition:
    background 0.12s,
    color 0.12s;
}
.dp-nb:hover {
  background: var(--m-soft);
  color: var(--v-green);
}
.dp-nb svg {
  width: 16px;
  height: 16px;
}
.dp-w,
.dp-g {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 10px;
}
.dp-w span {
  text-align: center;
  font: 600 10.5px/28px var(--m-ui);
  letter-spacing: 0.04em;
  color: var(--m-faint);
  text-transform: uppercase;
}
.dp-g {
  row-gap: 2px;
  padding-bottom: 8px;
}
.dp-d {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 0;
  background: none;
  font: 500 13px/1 var(--m-ui);
  color: var(--m-ink);
  font-variant-numeric: tabular-nums;
  transition: color 0.1s;
}
/* the day's chip: a centred circle, so selected/hover never fill the whole cell */
.dp-d::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.12s;
}
.dp-d:hover:not(:disabled):not(.sel)::before {
  background: rgba(193, 241, 109, 0.4);
}
.dp-d:hover:not(:disabled):not(.sel) {
  color: var(--v-green);
}
.dp-d:focus-visible {
  outline: 0;
}
.dp-d:focus-visible::before {
  box-shadow: 0 0 0 2px var(--v-green);
}
.dp-d.today {
  font-weight: 600;
  color: var(--v-green);
}
.dp-d.today::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 9px 0 0 -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7fb52a;
}
.dp-d.rng {
  background: rgba(193, 241, 109, 0.28);
  color: var(--v-green);
}
.dp-d.end::before {
  background: var(--v-lime);
}
.dp-d.end {
  color: var(--v-green);
  font-weight: 600;
}
.dp-d.sel::before {
  background: var(--v-green);
}
.dp-d.sel {
  color: #fff;
  font-weight: 600;
}
.dp-d.sel.today::after {
  background: var(--v-lime);
}
.dp-d:disabled {
  color: #c9ccc9;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.12);
}
.dp-t {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 12px 6px;
  padding: 10px 0 2px;
  border-top: 1px solid var(--m-line);
}
.dp-t span {
  font: 500 12.5px var(--m-ui);
  color: var(--m-muted);
  margin-right: auto;
}
.dp-t .select {
  height: 34px;
  width: auto;
  min-width: 84px;
  font-size: 13px;
}
.dp-f {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--m-line);
  background: var(--m-sunk);
}
.dp-f .btn-text {
  font-size: 12.5px;
  padding: 0;
}
.dp-f [data-a="clear"] {
  color: var(--m-muted);
}
.dp-f [data-a="today"] {
  margin-right: auto;
}
.dp-f .btn {
  margin-left: auto;
}
.dp.sheet {
  left: 0 !important;
  right: 0;
  bottom: 0;
  top: auto !important;
  width: auto;
  border-radius: 14px 14px 0 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transform: translateY(24px);
}
.dp.sheet.on {
  transform: none;
}
.dp.sheet .dp-d {
  height: 42px;
  font-size: 14px;
}
.dp.sheet .dp-d::before {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
}
.dp.sheet .dp-d.today::after {
  margin-top: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .dp {
    transition: opacity 0.15s;
    transform: none;
  }
}
.ac .ac-tip.below {
  transform: translate(-50%, 12px);
}

/* sidebar "Resident view" link — one compact row */
.m-side-promo {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 10px 10px;
  border-radius: var(--m-r-sm);
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.m-side-promo:hover,
.m-side-promo:focus-visible {
  background: rgba(193, 241, 109, 0.08);
  border-color: rgba(193, 241, 109, 0.3);
  outline: 0;
}
.m-side-promo .sp-ic {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--v-lime);
  color: var(--v-green);
}
.m-side-promo .sp-ic svg {
  width: 16px;
  height: 16px;
}
.m-side-promo .sp-t {
  min-width: 0;
  flex: 1;
}
.m-side-promo .sp-t b {
  display: block;
  font: 600 13px/1.25 var(--m-ui);
  color: #fff;
}
.m-side-promo .sp-t small {
  display: block;
  font-size: 11.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-side-promo .sp-go {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
  transition:
    color 0.15s,
    transform 0.15s;
}
.m-side-promo .sp-go svg {
  width: 15px;
  height: 15px;
}
.m-side-promo:hover .sp-go {
  color: var(--v-lime);
  transform: translate(1px, -1px);
}

/* Button text: Inter SemiBold everywhere (user decision). Content cards that are clickable keep their own type. */
.btn,
a.btn,
.btn-text,
.chip,
.seg button,
.tabs-m button,
.dp-f button,
.m-toast a,
.m-toast button,
.o-clear,
button[data-star] .s,
.ib,
.ia {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif !important;
  font-weight: 600 !important;
}
.chip .n,
.tabs-m button .n {
  font-weight: 600;
}

/* ---------- New-order pop-up ---------- */
.op-stack {
  position: fixed;
  top: calc(76px + env(safe-area-inset-top, 0px));
  right: 20px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 372px;
  pointer-events: none;
}
.op {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--m-line);
  box-shadow:
    0 24px 50px -20px rgba(12, 37, 34, 0.45),
    0 4px 12px rgba(12, 37, 34, 0.08);
  font-family: "Inter", system-ui, sans-serif;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition:
    opacity 0.22s,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.op.on {
  opacity: 1;
  transform: none;
}
.op.out {
  opacity: 0;
  transform: translateX(24px);
}
.op.rs {
  transition: none;
} /* restored on page load: already on screen, no slide-in */
.op-rest {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 10px;
  border-radius: 10px;
  background: var(--v-green);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(12, 37, 34, 0.55);
  font-family: "Inter", system-ui, sans-serif;
  transition:
    transform 0.15s,
    background 0.15s;
}
.op-rest:hover {
  background: var(--v-green-3);
  transform: translateY(-1px);
}
.op-rest {
  animation: op-rest-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.op-rest.out {
  opacity: 0;
  transform: translateX(24px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
@keyframes op-rest-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}
.op-rest-n {
  width: 34px;
  height: 34px;
  border-radius: var(--m-r-sm);
  display: grid;
  place-items: center;
  background: var(--v-lime);
  color: var(--v-green);
  font: 600 13px/1 var(--m-display);
  flex: none;
}
.op-rest b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.op-rest small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 3px;
}
.op-rest svg {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.7);
}
.op-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 10px 10px 16px;
  background: radial-gradient(120% 160% at 100% 0%, #1d4540 0%, var(--v-green) 65%);
  color: #fff;
}
.op-eb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11px/1 var(--m-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v-lime);
}
.op-eb em {
  font-style: normal;
  letter-spacing: 0.04em;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.op-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--v-lime);
  position: relative;
}
.op-pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: var(--v-lime);
  opacity: 0.4;
  animation: ping 1.6s ease-out infinite;
}
.op-when {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}
.op-x {
  width: 28px;
  height: 28px;
  border-radius: var(--m-r-xs);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  transition:
    background 0.12s,
    color 0.12s;
}
.op-x:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.op-x svg {
  width: 15px;
  height: 15px;
}
.op-b {
  padding: 14px 16px 12px;
}
.op-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.op-id {
  display: block;
  font: 600 17px/1.2 var(--m-display);
  letter-spacing: -0.4px;
  color: var(--m-ink);
}
.op-who {
  display: block;
  font-size: 12.5px;
  color: var(--m-muted);
  margin-top: 3px;
}
.op-amt {
  text-align: right;
}
.op-amt b {
  display: block;
  font: 600 17px/1.2 var(--m-display);
  letter-spacing: -0.4px;
  color: var(--m-ink);
  font-variant-numeric: tabular-nums;
}
.op-amt small {
  font-size: 12px;
  color: var(--m-muted);
}
.op-items {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.op-th {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--m-r-sm);
  background: var(--m-soft);
  border: 1px solid var(--m-line);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
}
.op-th img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.op-th i {
  position: absolute;
  right: 2px;
  bottom: 2px;
  font: 600 9.5px/1 var(--m-ui);
  font-style: normal;
  padding: 2px 3px;
  border-radius: 4px;
  background: var(--m-ink);
  color: #fff;
}
.op-more {
  height: 38px;
  min-width: 38px;
  padding: 0 8px;
  border-radius: var(--m-r-sm);
  background: var(--m-soft);
  display: grid;
  place-items: center;
  font: 600 12px var(--m-ui);
  color: var(--m-ink-2);
}
.op-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-radius: 100px;
  background: #eef9d8;
  color: #3f6a10;
  font: 600 11.5px var(--m-ui);
  white-space: nowrap;
}
.op-tag svg {
  width: 12px;
  height: 12px;
}
.op-tag.sched {
  background: var(--m-info-bg);
  color: var(--m-info);
}
.op-timer {
  height: 3px;
  background: var(--m-soft);
}
.op-timer i {
  display: block;
  height: 100%;
  background: var(--m-bar-good);
  transform-origin: left;
  transition:
    transform 1s linear,
    background 0.3s;
}
.op.warn .op-timer i {
  background: #ffbe4d;
}
.op.late .op-timer i {
  background: var(--m-danger);
  transform: scaleX(1) !important;
}
.op-f {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px 16px;
}
.op-left {
  margin-right: auto;
  font: 500 12px var(--m-ui);
  color: var(--m-muted);
  font-variant-numeric: tabular-nums;
}
.op.warn .op-left {
  color: var(--m-warn);
  font-weight: 600;
}
.op.late .op-left {
  color: var(--m-danger);
  font-weight: 600;
}
.op-f .btn {
  height: 32px;
  padding: 0 12px;
}
/* phones: the stack sits just under the top bar (never over the title, menu or bell) and the
   "+N more" card becomes a slim bar */
@media (max-width: 640px) {
  .op-stack {
    top: auto;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    right: 10px;
    width: auto;
    gap: 8px;
  }
  .op {
    transform: translateY(12px);
  }
  .op.out {
    transform: translateY(12px);
  }
  .op-f [data-op-view] {
    display: none;
  }
  .op-b {
    padding: 12px 14px 10px;
  }
  .op-items {
    margin-top: 10px;
  }
  .op-rest {
    padding: 7px 10px 7px 7px;
    gap: 10px;
    border-radius: var(--m-r-sm);
  }
  .op-rest-n {
    width: 28px;
    height: 28px;
    border-radius: var(--m-r-xs);
    font-size: 12px;
  }
  .op-rest b {
    font-size: 12.5px;
  }
  .op-rest small {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .op,
  .op.out {
    transition: opacity 0.2s;
    transform: none;
  }
  .op-pulse::after {
    animation: none;
  }
}
/* mid-size screens: tighter table cells so row actions stay visible */
@media (max-width: 1280px) {
  .tbl th,
  .tbl td {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Venco time picker */
.tp-field {
  min-width: 118px;
}
.dp.tp {
  width: 170px;
  padding: 6px;
}
.tp-l {
  max-height: 248px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: thin;
}
.tp-o {
  height: 34px;
  flex: none;
  border-radius: 7px;
  text-align: left;
  padding: 0 12px;
  font: 500 13px var(--m-ui);
  color: var(--m-ink);
  font-variant-numeric: tabular-nums;
  transition: background 0.1s;
}
.tp-o:hover,
.tp-o:focus-visible {
  background: rgba(193, 241, 109, 0.35);
  color: var(--v-green);
  outline: 0;
}
.tp-o.sel {
  background: var(--v-green);
  color: var(--v-lime);
  font-weight: 600;
}
.dp.tp.sheet .tp-l {
  max-height: 46vh;
}
.dp.tp.sheet .tp-o {
  height: 44px;
  font-size: 15px;
}
.m-side-foot a[aria-current="page"] {
  color: var(--v-lime);
  background: rgba(193, 241, 109, 0.1);
}

/* brand: the official Venco wordmark + a small "Merchant" tag */
.m-brand .wm {
  height: 19px;
  width: auto;
  display: block;
}
.m-brand .tag {
  font: 600 10px/1 var(--m-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 1px;
}
.m-side .m-brand {
  padding: 8px 10px 10px;
  gap: 8px;
}
.m-side .m-brand .wm {
  height: 16px;
}
.m-side .m-brand .tag {
  font-size: 9.5px;
  padding: 3px 6px;
}

/* quick search results */
.m-search {
  position: relative;
}
.m-sr {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  max-height: 70vh;
  overflow-y: auto;
  z-index: 70;
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  box-shadow:
    0 24px 50px -18px rgba(20, 22, 21, 0.35),
    0 2px 8px rgba(20, 22, 21, 0.06);
  padding: 6px;
}
.m-sr-g + .m-sr-g {
  border-top: 1px solid var(--m-line);
  margin-top: 4px;
  padding-top: 4px;
}
.m-sr-h {
  display: block;
  padding: 8px 10px 4px;
  font: 600 10.5px/1 var(--m-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-faint);
}
.m-sr-i {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--m-ink);
  text-decoration: none;
}
.m-sr-i.on,
.m-sr-i:hover {
  background: var(--m-wash);
}
.m-sr-i .ic {
  width: 30px;
  height: 30px;
  border-radius: var(--m-r-xs);
  flex: none;
  display: grid;
  place-items: center;
  background: var(--m-soft);
  color: var(--m-ink-2);
  overflow: hidden;
}
.m-sr-i .ic svg {
  width: 15px;
  height: 15px;
}
.m-sr-i .ic .th {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #fff;
}
.m-sr-i .ic .th img {
  max-width: 26px;
  max-height: 26px;
}
.m-sr-i .ic .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--m-hl);
  color: var(--m-hl-ink);
  font: 600 11px var(--m-display);
}
.m-sr-i .tx {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-sr-i .t1 {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-sr-i .t1 b {
  font-weight: 600;
}
.m-sr-i .t2 {
  font-size: 12px;
  color: var(--m-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-sr-all {
  display: block;
  margin-top: 4px;
  padding: 10px;
  border-top: 1px solid var(--m-line);
  font: 600 12.5px var(--m-ui);
  color: var(--v-green);
  text-decoration: none;
  border-radius: 0 0 7px 7px;
}
.m-sr-all.on,
.m-sr-all:hover {
  background: var(--m-wash);
}
.m-sr-empty {
  padding: 18px 12px;
  text-align: center;
  color: var(--m-muted);
  font-size: 13px;
}

/* delivery type tags: quick (urgent, lime) vs scheduled (calm, blue) */
.dtag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 100px;
  font: 600 11.5px/1 var(--m-ui);
  white-space: nowrap;
}
.dtag svg {
  width: 12px;
  height: 12px;
}
.dtag.quick {
  background: #eef9d8;
  color: #3f6a10;
}
.dtag.sched {
  background: var(--m-info-bg);
  color: var(--m-info);
}

/* contact rider sheet */
.rc-h {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rc-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--m-hl);
  color: var(--m-hl-ink);
  font: 600 14px var(--m-display);
  flex: none;
}
.rc-call .btn {
  height: 44px;
}
.rc-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 8px;
  font-size: 12px;
  color: var(--m-muted);
}
.rc-note svg {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  color: var(--v-green);
}
.rc-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.btn-rider {
  color: var(--v-green);
}

/* review → items modal */
.rvm-h {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rvm-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--m-hl);
  color: var(--m-hl-ink);
  font: 600 13px var(--m-display);
  flex: none;
}
.rvm-review {
  padding: 14px;
  border-radius: var(--m-r-sm);
  background: var(--m-sunk);
  border: 1px solid var(--m-line);
}
.rvm-stars {
  font-size: 16px;
  letter-spacing: 1px;
}
.rvm-review p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--m-ink);
}
.rvm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.rvm-tags span {
  font: 600 11.5px/1 var(--m-ui);
  padding: 5px 8px;
  border-radius: 100px;
  background: var(--m-success-bg);
  color: var(--m-success);
}
.rvm-reply {
  margin-top: 12px;
  padding-left: 10px;
  border-left: 3px solid var(--v-green);
  font-size: 13px;
  color: var(--m-ink-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rvm-reply b {
  font-size: 12px;
  color: var(--m-ink);
}
.rvm-sec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 8px;
}
.rvm-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--m-muted);
}
.rvm-items {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-sm);
  overflow: hidden;
}
.rvm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: var(--m-ink);
  text-decoration: none;
  transition: background 0.12s;
}
.rvm-item + .rvm-item {
  border-top: 1px solid var(--m-line);
}
.rvm-item:hover {
  background: var(--m-wash);
}
.rvm-item .th {
  width: 44px;
  height: 44px;
  border-radius: var(--m-r-sm);
  background: #fff;
  border: 1px solid var(--m-line);
  display: grid;
  place-items: center;
  flex: none;
  overflow: hidden;
}
.rvm-item .th img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}
.rvm-item .nm {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rvm-item .nm b {
  font-weight: 500;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rvm-item .nm small {
  font-size: 12px;
  color: var(--m-muted);
}
.rvm-item .nm em {
  font-style: normal;
  color: var(--m-warn);
}
.rvm-item .amt {
  font: 500 13.5px var(--m-display);
  white-space: nowrap;
}
.rvm-tot {
  display: flex;
  justify-content: space-between;
  padding: 10px 4px 0;
  font-size: 12.5px;
  color: var(--m-muted);
}
.rvm-tot b {
  font: 600 14px var(--m-display);
  color: var(--m-ink);
}

/* reply modal */
.vis-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.vis-seg button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--m-r-sm);
  border: 1px solid var(--m-line);
  background: var(--m-surface);
  text-align: left;
  transition:
    border-color 0.12s,
    box-shadow 0.12s,
    background 0.12s;
}
.vis-seg button:hover {
  background: var(--m-wash);
}
.vis-seg button > svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
  color: var(--m-muted);
}
.vis-seg button span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.vis-seg button b {
  font: 600 13px var(--m-ui);
  color: var(--m-ink);
}
.vis-seg button small {
  font-size: 11.5px;
  color: var(--m-muted);
  line-height: 1.35;
}
.vis-seg button[aria-checked="true"] {
  border-color: var(--v-green);
  background: var(--sel-bg);
  box-shadow: var(--sel-ring);
}
.vis-seg button[aria-checked="true"] b {
  color: var(--v-green);
}
.vis-seg button[aria-checked="true"] > svg {
  color: var(--v-green);
}
.rp-tpl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
@media (max-width: 560px) {
  .vis-seg {
    grid-template-columns: 1fr;
  }
}
/* labels that carry an ⓘ (or a Live badge) centre them on the text */
.eyebrow:has(.info-tip),
.eyebrow:has(.live) {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.eyebrow .info-tip {
  vertical-align: 0;
  margin-left: 4px;
}
.eyebrow .live {
  margin-left: 8px;
}
.stat .lbl .info-tip,
.hero-stats span .info-tip,
.kv .k .info-tip,
label .info-tip,
th .info-tip {
  vertical-align: -3px;
}

/* ================= Sidebar v3 (26 Sep): refined nav, collapse rail, profile menu ================= */
.m-app {
  transition: grid-template-columns 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.m-side {
  gap: 14px;
  padding: 16px 12px 12px;
}
.m-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px 2px 8px;
}
.m-side .m-brand {
  padding: 0;
}
.m-brand .mk {
  display: none;
  width: 26px;
  height: 26px;
}
.m-collapse {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.5);
  transition:
    background 0.12s,
    color 0.12s;
  flex: none;
}
.m-collapse:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.m-collapse svg {
  width: 17px;
  height: 17px;
}
/* nav items */
.m-nav a {
  height: 38px;
  padding: 0 10px 0 12px;
  gap: 12px;
  border-radius: var(--m-r-sm);
  color: rgba(255, 255, 255, 0.66);
  font: 500 13.5px/1 var(--m-ui);
}
.m-nav a svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition:
    color 0.12s,
    opacity 0.12s;
}
.m-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.m-nav a:hover svg {
  opacity: 1;
}
.m-nav a[aria-current="page"] {
  background: rgba(193, 241, 109, 0.12);
  color: var(--v-lime);
  font-weight: 700;
  box-shadow: none;
  border-radius: 0 6px 6px 0;
}
.m-nav a[aria-current="page"] svg {
  color: var(--v-lime);
  opacity: 1;
}
.m-nav a[aria-current="page"]::before {
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 0;
}
.m-nav .count {
  height: 20px;
  min-width: 22px;
  line-height: 20px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
}
.m-grp {
  margin-top: 8px;
  padding-top: 8px;
}
.m-grp-h {
  height: 38px;
  padding: 0 10px 0 12px;
  gap: 12px;
  border-radius: var(--m-r-sm);
  color: rgba(255, 255, 255, 0.58);
}
.m-grp-h svg {
  width: 18px;
  height: 18px;
}
.m-grp-b > div {
  margin-left: 20px;
  padding-left: 10px;
}
.m-grp-b a[aria-current="page"]::before {
  left: -11px;
}
/* profile card + menu */
.m-me {
  position: relative;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.m-me-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--m-r-sm);
  text-align: left;
  color: #fff;
  transition: background 0.12s;
}
.m-me-btn:hover,
.m-me-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.07);
}
.m-me-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--v-lime);
  color: var(--v-green);
  font: 700 12px var(--m-display);
}
.m-me-t {
  flex: 1;
  min-width: 0;
}
.m-me-t b {
  display: block;
  font: 600 13px/1.25 var(--m-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-me-t small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-me-btn > svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.5);
  flex: none;
}
.m-me-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 5;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-me-menu a,
.m-me-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 10px;
  border-radius: 7px;
  font: 500 13px var(--m-ui);
  color: var(--m-ink);
  text-align: left;
  width: 100%;
  text-decoration: none;
}
.m-me-menu a:hover,
.m-me-menu button:hover {
  background: var(--m-wash);
}
.m-me-menu svg {
  width: 16px;
  height: 16px;
  color: var(--m-muted);
}
.m-me-menu .danger {
  color: var(--m-danger);
}
.m-me-menu .danger svg {
  color: var(--m-danger);
}
.m-me-menu a[aria-current="page"] {
  background: var(--m-soft);
  font-weight: 600;
}
.m-side-promo {
  margin-top: auto;
}
/* collapsed rail */
@media (min-width: 901px) {
  .m-app.collapsed {
    --m-side: 76px;
  }
  .m-app.collapsed .m-side {
    padding: 16px 10px 12px;
    overflow: visible;
  }
  .m-app.collapsed .m-brand-row {
    flex-direction: column;
    gap: 10px;
    padding: 4px 0 2px;
  }
  .m-app.collapsed .m-brand .wm,
  .m-app.collapsed .m-brand .tag {
    display: none;
  }
  .m-app.collapsed .m-brand .mk {
    display: block;
  }
  .m-app.collapsed .m-collapse svg {
    transform: scaleX(-1);
  }
  .m-app.collapsed .m-store {
    justify-content: center;
    padding: 6px;
  }
  .m-app.collapsed .m-store .t,
  .m-app.collapsed .m-store > svg {
    display: none;
  }
  .m-app.collapsed .m-nav a,
  .m-app.collapsed .m-grp-h {
    justify-content: center;
    padding: 0;
    gap: 0;
  }
  .m-app.collapsed .m-nav a > span,
  .m-app.collapsed .m-nav .owner-tag,
  .m-app.collapsed .m-grp-h > span,
  .m-app.collapsed .m-grp-h .chev {
    display: none;
  }
  .m-app.collapsed .m-nav .count {
    position: absolute;
    top: 3px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    font-size: 9.5px;
    margin: 0;
  }
  .m-app.collapsed .m-grp-h .count:not([hidden]) {
    display: block;
  }
  .m-app.collapsed .m-grp-b {
    display: none;
  }
  .m-app.collapsed .m-side-promo {
    justify-content: center;
    padding: 8px;
  }
  .m-app.collapsed .m-side-promo .sp-t,
  .m-app.collapsed .m-side-promo .sp-go {
    display: none;
  }
  .m-app.collapsed .m-me-btn {
    justify-content: center;
    padding: 6px;
  }
  .m-app.collapsed .m-me-t,
  .m-app.collapsed .m-me-btn > svg {
    display: none;
  }
  .m-app.collapsed .m-me-menu {
    left: 0;
    right: auto;
    width: 220px;
    bottom: 0;
    left: calc(100% + 10px);
  }
}
@media (max-width: 900px) {
  .m-collapse {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .m-app {
    transition: none;
  }
}
.m-side .m-brand {
  gap: 6px;
  min-width: 0;
  flex: 0 1 auto;
}
.m-side .m-brand .tag {
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 3px 5px;
  white-space: nowrap;
}
.m-brand-row {
  padding-right: 0;
}
.m-grp-h {
  position: relative;
}

/* ---- collapsed rail, cleaned up ---- */
@media (min-width: 901px) {
  .m-app.collapsed {
    --m-side: 72px;
  }
  .m-app.collapsed .m-side {
    padding: 14px 12px 12px;
    gap: 10px;
    align-items: center;
  }
  .m-app.collapsed .m-side > * {
    width: 100%;
  }
  .m-app.collapsed .m-brand-row {
    gap: 8px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .m-app.collapsed .m-brand {
    justify-content: center;
    width: 100%;
  }
  .m-app.collapsed .m-brand .mk {
    width: 28px;
    height: 28px;
  }
  .m-app.collapsed .m-collapse {
    width: 44px;
    height: 32px;
    margin: 0 auto;
  }
  .m-app.collapsed .m-store {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    border-radius: var(--m-r-sm);
  }
  .m-app.collapsed .m-store .logo {
    width: 30px;
    height: 30px;
  }
  .m-app.collapsed .m-nav {
    align-items: center;
    gap: 4px;
  }
  .m-app.collapsed .m-nav a,
  .m-app.collapsed .m-grp-h {
    width: 44px;
    height: 44px;
    border-radius: var(--m-r-sm);
    margin: 0 auto;
  }
  .m-app.collapsed .m-nav a svg,
  .m-app.collapsed .m-grp-h svg {
    width: 20px;
    height: 20px;
  }
  .m-app.collapsed .m-nav a[aria-current="page"] {
    background: rgba(193, 241, 109, 0.16);
    box-shadow: inset 0 0 0 1px rgba(193, 241, 109, 0.22);
  }
  .m-app.collapsed .m-nav a[aria-current="page"]::before {
    left: -12px;
    top: 12px;
    bottom: 12px;
  }
  .m-app.collapsed .m-nav .count,
  .m-app.collapsed .m-grp-h .count:not([hidden]) {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    padding: 0 4px;
    font-size: 9.5px;
    border-radius: 100px;
    box-shadow: 0 0 0 2px var(--v-green);
    margin: 0;
  }
  .m-app.collapsed .m-grp {
    width: 44px;
    margin: 6px auto 0;
    padding-top: 6px;
  }
  .m-app.collapsed .m-grp + .m-grp {
    margin-top: 4px;
    padding-top: 0;
  }
  .m-app.collapsed .m-side-promo {
    width: 44px;
    height: 44px;
    margin: auto auto 0;
    padding: 0;
    justify-content: center;
    border-radius: var(--m-r-sm);
  }
  .m-app.collapsed .m-side-promo .sp-ic {
    width: 32px;
    height: 32px;
  }
  .m-app.collapsed .m-me {
    width: 44px;
    margin: 0 auto;
    padding-top: 10px;
  }
  .m-app.collapsed .m-me-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: var(--m-r-sm);
  }
  .m-app.collapsed .m-me-av {
    width: 34px;
    height: 34px;
  }
}
.m-nav a svg,
.m-grp-h svg {
  width: 20px;
  height: 20px;
}
.m-grp-b a svg {
  width: 19px !important;
  height: 19px !important;
}
.m-store > svg {
  width: 18px;
  height: 18px;
}
.m-side-promo .sp-ic svg {
  width: 18px;
  height: 18px;
}
.m-nav a > span:not(.count):not(.owner-tag),
.m-grp-h > span:not(.count) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.m-nav a,
.m-grp-h {
  gap: 11px;
}
.m-nav .owner-tag {
  flex: none;
}
@media (min-width: 901px) {
  .m-app.collapsed .m-nav a > .count:not([hidden]) {
    display: block;
  }
}
/* sidebar icons: settled size (user: 20px felt too big) */
.m-nav a svg,
.m-grp-h svg {
  width: 18px;
  height: 18px;
}
.m-grp-b a svg {
  width: 17px !important;
  height: 17px !important;
}
.m-store > svg,
.m-side-promo .sp-ic svg {
  width: 16px;
  height: 16px;
}
@media (min-width: 901px) {
  .m-app.collapsed .m-nav a svg,
  .m-app.collapsed .m-grp-h svg {
    width: 19px;
    height: 19px;
  }
}

/* ---------- Back button on detail pages ---------- */
.m-top .m-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 10px;
  border-radius: var(--m-r-sm);
  flex: none;
  border: 1px solid var(--m-line);
  background: var(--m-surface);
  color: var(--m-ink);
  font: 600 13px var(--m-ui);
  text-decoration: none;
  box-shadow: var(--m-shadow);
  transition:
    border-color 0.12s,
    background 0.12s,
    transform 0.12s;
  margin-right: 4px;
}
.m-top .m-back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}
.m-top .m-back:hover {
  border-color: #cfcfca;
  background: var(--m-wash);
}
.m-top .m-back:hover svg {
  transform: translateX(-2px);
}
.m-top .m-back:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 2px var(--v-green),
    var(--m-ring);
}
.m-top .m-title {
  min-width: 0;
}
.m-top .m-title h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .m-top .m-back {
    padding: 0;
    width: 40px;
    justify-content: center;
  }
  .m-top .m-back span {
    display: none;
  }
}

/* ---------- previous / next record ---------- */
.m-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 4px 0 12px;
  border-radius: var(--m-r-sm);
  border: 1px solid var(--m-line);
  background: var(--m-surface);
  box-shadow: var(--m-shadow);
}
.m-pager .pos {
  font: 500 12.5px var(--m-ui);
  color: var(--m-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.m-pager .pos b {
  color: var(--m-ink);
  font-weight: 600;
}
.m-pager a,
.m-pager span.dis {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--m-ink-2);
}
.m-pager a:hover {
  background: var(--m-wash);
  color: var(--m-ink);
}
.m-pager span.dis {
  color: #cfcfca;
}
.m-pager svg {
  width: 16px;
  height: 16px;
}
@media (max-width: 1180px) {
  .m-pager .pos span {
    display: none;
  }
}
@media (max-width: 900px) {
  .m-pager .pos {
    display: none;
  }
  .m-pager {
    padding: 0 3px;
  }
}

/* ------------------------------------------------------------------ notification bell dropdown */
.m-bell {
  position: relative;
}
.nd {
  position: absolute;
  top: calc(100% + 8px);
  right: -46px;
  width: 392px;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  box-shadow:
    0 24px 56px -20px rgba(12, 37, 34, 0.4),
    0 4px 14px rgba(12, 37, 34, 0.08);
  font-family: var(--m-ui);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.16s,
    transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nd.on {
  opacity: 1;
  transform: none;
}
.nd-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px 18px;
}
.nd-h > b {
  font: 600 15px/1.2 var(--m-display);
  letter-spacing: -0.2px;
  color: var(--m-ink);
}
.nd-mark {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  border-radius: var(--m-r-xs);
  font: 600 12.5px var(--m-ui);
  color: var(--v-green);
  transition: background 0.12s;
}
.nd-mark svg {
  width: 14px;
  height: 14px;
}
.nd-mark:hover:not(:disabled) {
  background: var(--m-wash);
}
.nd-mark:disabled {
  color: var(--m-faint);
  cursor: default;
}
.nd-tabs {
  display: flex;
  gap: 4px;
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--m-line);
}
.nd-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--m-r-xs);
  font: 600 12.5px var(--m-ui);
  color: var(--m-muted);
  transition:
    background 0.12s,
    color 0.12s;
}
.nd-tabs button:hover {
  color: var(--m-ink);
  background: var(--m-wash);
}
.nd-tabs button[aria-selected="true"] {
  background: var(--m-soft);
  color: var(--m-ink);
}
.nd-tabs span {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  background: #c9501f;
  color: #fff;
  font: 700 10.5px/1 var(--m-ui);
}
.nd-list {
  max-height: min(420px, calc(100vh - 220px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
}
.nd-empty {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 34px 24px;
  text-align: center;
}
.nd-empty svg {
  width: 22px;
  height: 22px;
  color: var(--m-faint);
  margin-bottom: 6px;
}
.nd-empty b {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--m-ink);
}
.nd-empty small {
  font-size: 12.5px;
  color: var(--m-muted);
  max-width: 250px;
}
.nd-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 44px;
  border-top: 1px solid var(--m-line);
  font: 600 13px var(--m-ui);
  color: var(--v-green);
  text-decoration: none;
  transition: background 0.12s;
}
.nd-all svg {
  width: 14px;
  height: 14px;
}
.nd-all:hover,
.nd-all:focus-visible {
  background: var(--m-wash);
  outline: none;
}
@media (max-width: 640px) {
  .nd {
    position: fixed;
    top: calc(64px + env(safe-area-inset-top, 0px));
    left: 10px;
    right: 10px;
    width: auto;
  }
  .nd-list {
    max-height: calc(100vh - 260px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nd {
    transition: none;
  }
}
/* the bell panel already lists new orders, so the pop-up stack steps aside while it's open */
.op-stack {
  transition: opacity 0.16s;
}
body.nd-open .op-stack,
body:has(.m-scrim) .op-stack {
  opacity: 0;
  pointer-events: none;
}
body.nd-open .op-stack *,
body:has(.m-scrim) .op-stack * {
  pointer-events: none !important;
} /* modals and the bell panel sit above order alerts */

/* ------------------------------------------------------------------ tables respond to their own width (sidebar open or collapsed)
   .tbl-wrap is a size container. Narrow wrappers drop the 680px minimum, tighten padding and hide secondary columns. */
.tbl-wrap {
  container: tbl / inline-size;
}
#ordersTbl .placed-sm,
#ordersTbl .status-sm {
  display: none;
} /* only when their own column is hidden (below) */
@container tbl (max-width: 960px) {
  table.tbl {
    min-width: 0 !important;
  }
  .tbl th,
  .tbl td {
    padding-left: 10px;
    padding-right: 10px;
  }
  .tbl td {
    overflow-wrap: break-word;
  }
  #staff td:first-child {
    min-width: 190px;
  }
  #staff td:last-child {
    white-space: nowrap;
  }
  #ordersTbl th:nth-child(5),
  #ordersTbl td:nth-child(5) {
    display: none;
  } /* Orders: Items */
  #tbl th:nth-child(5),
  #tbl td:nth-child(5) {
    display: none;
  } /* Customers: Avg order */
  #stockTbl th:nth-child(7),
  #stockTbl td:nth-child(7) {
    display: none;
  } /* Inventory: Sold (30d) */
}
@container tbl (max-width: 880px) {
  #ordersTbl th:nth-child(3),
  #ordersTbl td:nth-child(3) {
    display: none;
  } /* Orders: Placed → shown under the order ID */
  #ordersTbl .placed-sm {
    display: block;
  }
}
@container tbl (max-width: 820px) {
  #stockTbl th:nth-child(6),
  #stockTbl td:nth-child(6) {
    display: none;
  } /* Inventory: Value */
  #tbl th:nth-child(7),
  #tbl td:nth-child(7) {
    display: none;
  } /* Customers: Favourite product */
  .tbl-products th:nth-child(7),
  .tbl-products td:nth-child(7) {
    display: none;
  } /* Products: Sold (30d) */
  #txBody td:nth-child(3),
  .tbl-tx th:nth-child(3) {
    display: none;
  } /* Wallet: Type */
}
@container tbl (max-width: 760px) {
  .tbl-products th:nth-child(3),
  .tbl-products td:nth-child(3) {
    display: none;
  } /* Products: Category · Tab */
  #ordersTbl th:nth-child(7),
  #ordersTbl td:nth-child(7) {
    display: none;
  } /* Orders: Status → shown under the value */
  #ordersTbl .status-sm {
    display: block;
    margin-top: 5px;
  }
  #staff .role-desc {
    display: none;
  } /* Team: role name only (matrix below explains) */
}

/* ------------------------------------------------------------------ stacked tables (table.tbl.m-stack, labelled by VM): when the table's own box is narrow */
@container tbl (max-width: 560px) {
  .tbl.m-stack {
    min-width: 0 !important;
    width: 100%;
  }
  .tbl.m-stack thead {
    display: none;
  }
  .tbl.m-stack tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    row-gap: 3px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--m-line);
  }
  .tbl.m-stack tbody tr:last-child {
    border-bottom: 0;
  }
  .tbl.m-stack td {
    display: block;
    padding: 0 !important;
    border: 0 !important;
    height: auto;
    white-space: normal;
    text-align: left;
  }
  .tbl.m-stack td.st-main {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    font-weight: 500;
  }
  .tbl.m-stack td.st-val {
    order: 2;
    flex: none;
    margin-left: auto;
    text-align: right;
    font-weight: 600;
  }
  .tbl.m-stack td.rank {
    order: 0;
    flex: none;
    width: auto;
    color: var(--m-muted);
  }
  .tbl.m-stack td:not(.st-main):not(.st-val):not(.rank):not(.st-full) {
    order: 3;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    font-size: 12.5px;
    color: var(--m-muted);
  }
  .tbl.m-stack td:not(.st-main):not(.st-val):not(.rank):not(.st-full) > span:not(.pill) {
    white-space: normal;
  }
  .tbl.m-stack td:not(.st-main):not(.st-val):not(.rank):not(.st-full)::before {
    content: attr(data-label) " · ";
    color: var(--m-faint);
  }
  .tbl.m-stack td:not(.st-main):not(.st-val):not(.rank):not(.st-full):empty {
    display: none;
  }
  .tbl.m-stack td:not([data-label])::before,
  .tbl.m-stack td[data-label=""]::before {
    content: none !important;
  }
  /* action cells (no header) become their own full-width row of buttons */
  .tbl.m-stack td:not([data-label]):not(.st-main):not(.st-val):not(.rank):not(.st-full) {
    flex-basis: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
    margin-top: 4px;
  }
  .tbl.m-stack td.st-main .sub,
  .tbl.m-stack td.st-main small {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* the first line (main + value) always has its own row; details wrap below */
  .tbl.m-stack tbody tr::after {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }
  .tbl.m-stack td.st-full {
    order: 1;
    flex-basis: 100%;
  }
  .tbl.m-stack td.st-main .sub {
    display: block;
  }
  .tbl.m-stack td:not(.st-main) .sub {
    display: inline;
    margin-left: 4px;
  }
  .tbl.fit td:first-child {
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.3;
  }
  .tbl.fit td.num,
  .tbl.fit th.num {
    white-space: nowrap;
  }
  /* small "share" tables: drop the bar, keep the percentage */
  .tbl.fit th,
  .tbl.fit td {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .tbl.fit .bar,
  .tbl.fit .meter,
  .tbl.fit .share-bar,
  .tbl.m-stack .share .bar {
    display: none !important;
  }
  .tbl.m-stack .share {
    display: inline;
  }
}
/* phones: the "N new orders" card docked in the page flow (see popMore) */
.op-rest.docked {
  box-shadow: none;
  animation: none;
  flex: none;
}
/* desktop: with no pop-up open, the "N new orders" card sits bottom-right instead of over the page's first card */
.op-stack.solo {
  top: auto;
  bottom: 20px;
}

/* ------------------------------------------------------------------ branches (multi-location merchants) */
.br-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px 0 5px;
  border-radius: 5px;
  background: var(--m-soft);
  color: var(--m-ink-2);
  font: 600 11px/1 var(--m-ui);
  white-space: nowrap;
  vertical-align: 1px;
}
.br-tag svg {
  width: 11px;
  height: 11px;
  color: var(--m-data);
}
.card.dark .br-tag,
.op .br-tag.dk {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.card.dark .br-tag svg {
  color: var(--v-lime);
}
.opt-m .th.br-ic {
  background: var(--m-soft);
  color: var(--m-data);
  border: 0;
}
.opt-m .th.br-ic svg {
  width: 17px;
  height: 17px;
}
.opt-m .th.br-ic.all {
  background: var(--v-green);
  color: var(--v-lime);
}
.br-note {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: var(--m-r-sm);
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  font-size: 13px;
  color: var(--m-ink-2);
  box-shadow: var(--m-shadow);
}
.br-note svg {
  width: 15px;
  height: 15px;
  color: var(--m-data);
  flex: none;
}
.br-note b {
  font-weight: 600;
  color: var(--m-ink);
}
.br-note .btn-text {
  margin-left: auto;
  font-weight: 600;
}
.br-bar select {
  min-width: 200px;
  height: 32px;
}
.br-bar label {
  font-weight: 600;
  color: var(--m-ink);
}
/* Branches page (pages/branches.js) */
.br-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 14px 0;
}
.br-card .card-h h3 {
  margin: 0;
  font-size: 15px;
}
.br-card .card-h small {
  color: var(--m-muted);
}
.br-facts {
  padding: 0 16px;
  font-size: 13px;
  color: var(--m-ink-2);
}
.br-miss {
  color: var(--m-warn, #a15c07);
  font-weight: 600;
}
.br-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
}
.br-form {
  margin-top: 14px;
  padding-bottom: 4px;
}
.br-form h4 {
  margin: 16px 16px 6px;
  font-size: 13px;
}
.br-form .muted,
.br-stock .muted {
  margin: 0 16px 8px;
  color: var(--m-muted);
  font-size: 12.5px;
}
.br-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px;
}
.br-grid label {
  display: grid;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
}
.br-grid .wide {
  grid-column: 1 / -1;
}
.br-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}
.br-hours,
.br-estates {
  display: grid;
  gap: 6px;
  padding: 0 16px;
}
.br-hour {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.br-estates {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  font-size: 13px;
}
.br-stock {
  margin-top: 14px;
}
.br-stock .tbl {
  width: 100%;
}
.br-num {
  width: 90px;
}
.br-upload {
  cursor: pointer;
}
@media (max-width: 700px) {
  .br-grid {
    grid-template-columns: 1fr;
  }
}
.op-who .op-br {
  color: var(--m-data);
  font-weight: 600;
}
.od-top h2 .br-tag {
  height: 22px;
  font-size: 11.5px;
}
.sw-manage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 13px;
}
.sw-manage svg {
  width: 14px;
  height: 14px;
}
.sw-add {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--m-r-sm);
  border: 1.5px dashed var(--m-line-2);
  color: inherit;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.sw-add:hover {
  border-color: var(--m-data);
  background: var(--m-wash);
}
.sw-add > svg {
  width: 18px;
  height: 18px;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 10px;
  background: var(--v-lime);
  color: var(--v-green);
  flex: none;
}
.sw-add b {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
}
.sw-add small {
  display: block;
  font-size: 12px;
  color: var(--m-muted);
  margin-top: 1px;
}

/* ------------------------------------------------------------------ new-order alerts as a compact sticky toast (notify.orderStyle = "toast") */
.op-stack.mini {
  top: auto;
  bottom: 20px;
  width: 360px;
}
.op.mini {
  border-radius: 10px;
  background: var(--v-green);
  border-color: var(--v-green);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(12, 37, 34, 0.55);
}
.op.mini .op-m {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 8px 11px 12px;
}
.op.mini .op-mi {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: var(--m-r-sm);
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--v-lime);
  flex: none;
}
.op.mini .op-mi svg {
  width: 16px;
  height: 16px;
}
.op.mini .op-mi .op-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
}
.op.mini .op-mt {
  flex: 1;
  min-width: 0;
}
.op.mini .op-mt b {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font: 600 13.5px var(--m-ui);
  color: #fff;
  white-space: nowrap;
}
.op.mini .op-mt b em {
  font-style: normal;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}
.op.mini .op-when {
  margin-left: auto;
  font: 500 11.5px var(--m-ui);
  color: rgba(255, 255, 255, 0.55);
}
.op.mini .op-mt small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op.mini .op-left {
  color: inherit;
  font: inherit;
  margin: 0;
}
.op.mini.warn .op-left {
  color: #ffc766;
  font-weight: 600;
}
.op.mini.late .op-left {
  color: #ffa28a;
  font-weight: 600;
}
.op.mini .op-mv {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--m-r-xs);
  display: inline-grid;
  place-items: center;
  background: var(--v-lime);
  color: var(--v-green);
  font: 600 12.5px var(--m-ui);
  flex: none;
}
.op.mini .op-mv:hover {
  background: #d3f78f;
}
.op.mini .op-x {
  color: rgba(255, 255, 255, 0.6);
}
.op.mini .op-timer {
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 900px) {
  .op-stack.mini {
    top: auto;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    right: 10px;
    width: auto;
  }
  .op-stack.mini .op {
    transform: translateY(12px);
  }
  .op-stack.mini .op.on {
    transform: none;
  }
  .op.mini .op-mv[data-op-view] {
    display: inline-grid;
  }
}
.op.mini .op-mt b {
  overflow: hidden;
}
.op.mini .op-mt b > :not(.op-when) {
  flex: none;
}
.op.mini .op-when {
  flex: none;
}

/* other toasts stack above bottom-anchored order alerts (--op-lift is set by VM.liftToasts) */
.m-toast {
  z-index: 97;
  right: 20px;
  bottom: max(24px, var(--op-lift, 0px));
  transition-property: opacity, transform, bottom;
}
@media (max-width: 900px) {
  .m-toast {
    bottom: max(92px, var(--op-lift, 0px));
  }
}

/* ------------------------------------------------------------------ sidebar tune-up (27 Sep, user feedback on v3)
   Resident view moved to the top bar + profile menu · calmer active state · orange order count · cleaner lockup */
.m-side-spacer {
  margin-top: auto;
}
/* active item: a soft light highlight, white text and icon, thin lime marker — no green glow */
.m-nav a[aria-current="page"],
.m-app.collapsed .m-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  color: #fff;
  font-weight: 600;
}
.m-nav a[aria-current="page"] svg {
  color: #fff;
  opacity: 1;
}
.m-nav a[aria-current="page"]::before {
  background: var(--v-lime);
  width: 3px;
  top: 10px;
  bottom: 10px;
}
.m-nav a:hover:not([aria-current="page"]) {
  background: rgba(255, 255, 255, 0.05);
}
.m-nav a[aria-current="page"] .count:not([data-count="new"]) {
  background: rgba(255, 255, 255, 0.14);
}
/* order count: orange like the bell badge, so "needs attention" looks the same everywhere */
.m-nav .count[data-count="new"],
.m-tabbar .count[data-count="new"] {
  background: #d4562a;
  color: #fff;
}
.m-tabbar .count[data-count="new"] {
  border-color: #fff;
}
/* "View store" in the top bar */
.m-view-store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--m-r-sm);
  background: var(--m-surface);
  border: 1px solid var(--m-line);
  box-shadow: var(--m-shadow);
  font: 600 13px var(--m-ui);
  color: var(--m-ink-2);
  white-space: nowrap;
  transition:
    border-color 0.12s,
    color 0.12s;
}
.m-view-store svg {
  width: 16px;
  height: 16px;
  color: var(--m-data);
}
.m-view-store:hover,
.m-view-store:focus-visible {
  border-color: #cfcfca;
  color: var(--m-ink);
  outline: 0;
}
@media (max-width: 1180px) {
  .m-view-store span {
    display: none;
  }
  .m-view-store {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
}

/* ------------------------------------------------------------------ notifications v2 (27 Sep) — shared by the bell dropdown and notifications.html */
.nt-row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--m-r-sm);
  color: inherit;
  text-decoration: none;
  transition: background 0.12s;
}
.nt-row:hover,
.nt-row:focus-visible {
  background: var(--m-wash);
  outline: none;
}
.nt-row:focus-visible {
  box-shadow: inset 0 0 0 2px var(--m-accent);
}
.nt-ic {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--m-r-sm);
  display: grid;
  place-items: center;
  flex: none;
}
.nt-ic svg {
  width: 17px;
  height: 17px;
}
.nt-ic.k-order {
  background: #eef9d8;
  color: #3f6a10;
}
.nt-ic.k-review {
  background: #fff3d1;
  color: #e08a00;
}
.nt-ic.k-stock {
  background: #ffeadd;
  color: #e25a0c;
}
.nt-ic.k-payout {
  background: #e2f5e9;
  color: #167434;
}
.nt-ic.k-sum {
  background: #d4562a;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(212, 86, 42, 0.6);
}
.nt-ic.k-sum em {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--v-green);
  color: var(--v-lime);
  font: 700 10.5px/18px var(--m-ui);
  font-style: normal;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.nt-tx {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}
.nt-t {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.nt-t b {
  flex: 1;
  min-width: 0;
  font: 500 13.5px/1.3 var(--m-ui);
  color: var(--m-ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nt-t time {
  flex: none;
  font-size: 11.5px;
  color: var(--m-faint);
  font-variant-numeric: tabular-nums;
}
.nt-s {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--m-muted);
}
.nt-s,
.nt-s .nt-q {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nt-s .nt-q {
  min-width: 0;
}
.nt-s:not(:has(.nt-stars)) {
  display: block;
} /* plain text: block so the ellipsis applies */
.nt-stars {
  display: inline-flex;
  gap: 1px;
  flex: none;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
}
.nt-stars i {
  font-style: normal;
  color: #e2e2dd;
}
.nt-stars i.on {
  color: #f5a524;
}
.nt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  margin-top: 6px;
  background: transparent;
}
.nt-row.unread .nt-t b {
  font-weight: 600;
  color: var(--m-ink);
}
.nt-row.unread .nt-t time {
  color: var(--m-ink-2);
  font-weight: 600;
}
.nt-row.unread .nt-dot {
  background: var(--m-data);
  box-shadow: 0 0 0 3px #e3f3c9;
}
.nt-sum {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 6px;
  padding: 12px;
  border-radius: 10px;
  background: #fff6f1;
  border: 1px solid #fbd9c8;
  color: inherit;
  text-decoration: none;
  transition:
    background 0.12s,
    border-color 0.12s;
}
.nt-sum:hover,
.nt-sum:focus-visible {
  background: #ffefe6;
  border-color: #f6c3a9;
  outline: none;
}
.nt-sum .nt-tx b {
  font: 600 13.5px/1.3 var(--m-ui);
  color: var(--m-ink);
}
.nt-sum .nt-s {
  color: #c8420f;
}
.nt-go {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  font: 600 12.5px var(--m-ui);
  color: #cc4a12;
}
.nt-go svg {
  width: 13px;
  height: 13px;
}
/* bell dropdown shell */
.nd {
  width: 400px;
  border-radius: 12px;
  box-shadow:
    0 28px 64px -24px rgba(12, 37, 34, 0.45),
    0 4px 14px rgba(12, 37, 34, 0.08);
}
.nd-h {
  padding: 16px 12px 10px 18px;
}
.nd-h > b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 16px/1.2 var(--m-display);
  letter-spacing: -0.3px;
}
.nd-n {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #d4562a;
  color: #fff;
  font: 700 11px/20px var(--m-ui);
  text-align: center;
  letter-spacing: 0;
}
.nd-acts {
  display: flex;
  gap: 2px;
}
.nd-mark {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--m-muted);
}
.nd-mark svg {
  width: 16px;
  height: 16px;
}
.nd-mark:hover:not(:disabled) {
  background: var(--m-wash);
  color: var(--m-ink);
}
.nd-tabs {
  padding: 0 14px 10px;
}
.nd-tabs button {
  height: 30px;
  border-radius: 100px;
  padding: 0 12px;
}
.nd-tabs button[aria-selected="true"] {
  background: var(--v-green);
  color: #fff;
}
.nd-tabs span {
  background: #d4562a;
}
.nd-tabs button[aria-selected="true"] span {
  background: var(--v-lime);
  color: var(--v-green);
}
.nd-list {
  padding: 8px;
  max-height: min(460px, calc(100vh - 220px));
}
.nd-grp {
  padding: 10px 12px 4px;
  font: 600 11px var(--m-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m-faint);
}
.nd-all {
  height: 46px;
}
@media (max-width: 640px) {
  .nd {
    width: auto;
  }
}

/* ---------- account verification (new stores in review) ---------- */
.m-dot.pending {
  background: #f5b83d;
  box-shadow: 0 0 0 2.5px rgba(245, 184, 61, 0.22);
}
.m-dot.changes {
  background: #f59a3d;
  box-shadow: 0 0 0 2.5px rgba(245, 154, 61, 0.22);
}
.m-dot.rejected {
  background: #ff7a5c;
  box-shadow: 0 0 0 2.5px rgba(255, 122, 92, 0.2);
}
.m-store small .rev {
  color: #f5cf7a;
  font-weight: 600;
}
.m-store small .rev.rejected {
  color: #f5a38e;
}
.m-nav a .v-lock {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.45);
}
.m-nav a .v-lock svg {
  width: 14px;
  height: 14px;
}
.m-view-store.is-off {
  opacity: 0.45;
  cursor: not-allowed;
}

.vbar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid;
}
.vbar.pending {
  background: #fff8e6;
  border-color: #f4e2ae;
}
.vbar.changes {
  background: #fff1e5;
  border-color: #f6d4b3;
}
.vbar.rejected {
  background: var(--m-danger-bg);
  border-color: #f4c9c5;
}
.vbar.approved {
  background: #11302d;
  border-color: #11302d;
  color: #fff;
}
.vb-ic {
  width: 34px;
  height: 34px;
  border-radius: var(--m-r-sm);
  display: grid;
  place-items: center;
  flex: none;
  background: #fff;
  color: #b36b00;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.vbar.changes .vb-ic {
  color: var(--m-warn);
}
.vbar.rejected .vb-ic {
  color: var(--m-danger);
}
.vbar.approved .vb-ic {
  background: var(--v-lime);
  color: #11302d;
  box-shadow: none;
}
.vb-ic svg {
  width: 18px;
  height: 18px;
}
.vb-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vb-t b {
  font: 600 14.5px/1.3 var(--m-display);
  letter-spacing: -0.2px;
  color: var(--m-ink);
}
.vbar.approved .vb-t b {
  color: var(--v-lime);
}
.vb-t > span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--m-ink-2);
  max-width: 760px;
}
.vbar.approved .vb-t > span {
  color: rgba(255, 255, 255, 0.75);
}
.vb-demo {
  justify-content: flex-start !important;
  margin-top: 4px;
}
.vb-a {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.vbar.approved .m-icon-btn {
  color: rgba(255, 255, 255, 0.7);
}

.vlock {
  text-align: center;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.vl-art {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--m-soft);
  display: grid;
  place-items: center;
  color: var(--m-ink-2);
  margin-bottom: 6px;
}
.vl-art > svg {
  width: 26px;
  height: 26px;
}
.vl-art i {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #11302d;
  color: var(--v-lime);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px #fff;
}
.vl-art i svg {
  width: 13px;
  height: 13px;
}
.vlock h3 {
  font: 600 18px/1.3 var(--m-display);
  letter-spacing: -0.3px;
  color: var(--m-ink);
  margin-top: 4px;
}
.vlock p {
  max-width: 460px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--m-muted);
}
.vl-acts {
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.vsetup {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.vs-hero {
  display: flex;
  gap: 24px;
  align-items: stretch;
  flex-wrap: wrap;
  background: #11302d;
  color: #fff;
  border-color: #11302d;
}
.vs-hero > div:first-child {
  flex: 1 1 380px;
}
.vs-hero .eyebrow {
  color: var(--v-lime);
}
.vs-hero h2 {
  font: 600 24px/1.2 var(--m-display);
  letter-spacing: -0.6px;
  margin: 8px 0 8px;
  color: #fff;
}
.vs-hero p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
}
.vs-prog {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  max-width: 420px;
}
.vs-prog .bar {
  flex: 1;
  height: 8px;
  border-radius: var(--m-r-sm);
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.vs-prog .bar i {
  display: block;
  height: 100%;
  border-radius: var(--m-r-xs);
  background: var(--v-lime);
}
.vs-prog span {
  font: 600 12.5px/1 var(--m-ui);
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.vs-stat {
  flex: 0 1 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.vs-stat .pill {
  align-self: flex-start;
}
.vs-stat b {
  font: 600 16px/1.3 var(--m-display);
  color: #fff;
}
.vs-stat small {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
}
.vs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.vs-steps h3,
.vs-can h3 {
  font: 600 15px/1.3 var(--m-display);
  letter-spacing: -0.25px;
  color: var(--m-ink);
  margin-bottom: 12px;
}
.vs-steps ol {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.vs-steps li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--m-line);
}
.vs-steps li:first-child {
  border-top: 0;
  padding-top: 4px;
}
.vs-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 13px/1 var(--m-ui);
  background: var(--m-soft);
  color: var(--m-ink-2);
}
.vs-n svg {
  width: 15px;
  height: 15px;
}
.vs-steps li.done .vs-n {
  background: #11302d;
  color: var(--v-lime);
}
.vs-steps li.now .vs-n {
  background: #fff3d1;
  color: #b36b00;
}
.vs-steps li.fix .vs-n {
  background: var(--m-warn-bg);
  color: var(--m-warn);
}
.vs-steps li.fail .vs-n {
  background: var(--m-danger-bg);
  color: var(--m-danger);
}
.vs-steps li.lock .vs-n {
  background: var(--m-soft);
  color: var(--m-faint);
}
.vs-t b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--m-ink);
}
.vs-steps li.done .vs-t b {
  color: var(--m-muted);
}
.vs-t small {
  display: block;
  font-size: 12.5px;
  color: var(--m-muted);
  margin-top: 3px;
  line-height: 1.45;
}
.vs-a {
  padding-top: 2px;
}
.vs-checks {
  list-style: none;
  margin-top: 12px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-sm);
}
.vs-checks li {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px !important;
  border-top: 1px solid var(--m-line);
}
.vs-checks li:first-child {
  border-top: 0;
}
.vs-checks b {
  font-size: 13px !important;
  color: var(--m-ink) !important;
}
.vs-checks small {
  margin-top: 1px !important;
}
.vs-sw {
  display: inline-block;
  width: 44px;
  height: 26px;
  border-radius: 13px;
  background: #e4e4e0;
  position: relative;
  cursor: not-allowed;
}
.vs-sw i {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.vs-can ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.vs-can li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--m-ink-2);
  line-height: 1.4;
}
.vs-can li svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}
.vs-yes svg {
  color: var(--m-success);
}
.vs-no svg {
  color: var(--m-faint);
}
.vs-no li {
  color: var(--m-muted);
}
.nt-ic.k-verify {
  background: #fff3d1;
  color: #b36b00;
}
@media (max-width: 900px) {
  .vbar {
    flex-wrap: wrap;
  }
  .vb-a {
    width: 100%;
    padding-left: 48px;
    flex-wrap: wrap;
  }
  .vs-grid {
    grid-template-columns: 1fr;
  }
  .vs-hero h2 {
    font-size: 20px;
  }
  .vs-steps li {
    grid-template-columns: 32px 1fr;
  }
  .vs-a {
    grid-column: 2;
  }
}
.is-locked {
  opacity: 0.5;
}
a.btn.is-off,
a.is-off {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: auto;
}
/* upload box (same as js/account.js, for pages that don't load it) */
.acc-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--m-r-sm);
  border: 1px dashed var(--m-line-2);
  background: var(--m-sunk);
  cursor: pointer;
}
.acc-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.acc-upload .ic {
  width: 40px;
  height: 40px;
  border-radius: var(--m-r-sm);
  background: #fff;
  border: 1px solid var(--m-line);
  display: grid;
  place-items: center;
  flex: none;
  color: var(--v-green);
}
.acc-upload .ic svg {
  width: 18px;
  height: 18px;
}
.acc-upload b {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 18px;
  word-break: break-all;
}
.acc-upload small {
  display: block;
  margin-top: 4px;
  color: var(--m-muted);
  font-size: 12px;
  line-height: 16px;
}
.acc-upload.done {
  border-style: solid;
  background: #fff;
}
.acc-upload.done .ic {
  background: var(--m-success-bg);
  color: var(--m-success);
  border-color: transparent;
}
.vbar.approved .m-icon-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
}
.vbar.approved .m-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.vbar.approved .btn-primary {
  background: var(--v-lime);
  color: #11302d;
  border-color: var(--v-lime);
}

/* ===== FRD alignment (28 Sep): Soon tags, tour link, setup checklist banner, appeal, Verified ===== */
.soon-tag {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font: 700 9.5px/1.2 var(--m-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.m-nav a[aria-current] .soon-tag {
  background: rgba(193, 241, 109, 0.16);
  color: #d9f5a8;
  box-shadow: inset 0 0 0 1px rgba(193, 241, 109, 0.22);
}
.m-nav a:hover .soon-tag {
  color: rgba(255, 255, 255, 0.85);
}
.m-tour-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 8px;
  padding: 9px 12px;
  border-radius: var(--m-r-sm);
  color: rgba(255, 255, 255, 0.72);
  font: 500 13px/1 var(--m-ui);
  background: none;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  cursor: pointer;
}
.m-tour-link:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.m-tour-link svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.m-app.collapsed .m-tour-link span {
  display: none;
}
.m-app.collapsed .m-tour-link {
  justify-content: center;
  margin: 0 10px 8px;
}
.vbar.limited {
  background: #f4f9ec;
  border-color: #d6ebb4;
}
.vbar.limited .vb-ic {
  background: #e3f3c8;
  color: #3d6b12;
}
.vbar.appeal {
  background: #eef4ff;
  border-color: #cfe0fb;
}
.vbar.verified {
  background: linear-gradient(90deg, #11302d, #1f4e48);
  border-color: #11302d;
  color: #fff;
}
.vbar.verified .vb-t b {
  color: #fff;
}
.vbar.verified .vb-t span {
  color: rgba(255, 255, 255, 0.78);
}
.vbar.verified .vb-ic {
  background: rgba(193, 241, 109, 0.18);
  color: #c1f16d;
}
.vb-prog {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  max-width: 360px;
}
.vb-prog .bar {
  flex: 1;
  height: 6px;
  border-radius: var(--m-r-xs);
  background: rgba(17, 48, 45, 0.1);
  overflow: hidden;
}
.vb-prog .bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: #5a9a1f;
}
.vb-prog span {
  font: 600 12px/1 var(--m-ui);
  color: #3d6b12;
  white-space: nowrap;
}
.vb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}
.vb-list li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 500 12.5px/1.3 var(--m-ui);
  color: var(--m-muted);
}
.vb-list li svg {
  width: 14px;
  height: 14px;
}
.vb-list li.done {
  color: #2f6a12;
}
@media (max-width: 560px) {
  .vb-a {
    padding-left: 0;
  }
  .vb-a .btn {
    flex: 1 1 auto;
  }
}
.v-check {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.v-check li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-sm);
}
.v-check li > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.v-check small {
  color: var(--m-muted);
  font-size: 12.5px;
}
.v-check .vc-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--m-soft);
  color: var(--m-muted);
  flex: none;
}
.v-check .vc-ic svg {
  width: 15px;
  height: 15px;
}
.v-check li.done .vc-ic {
  background: #e3f3c8;
  color: #2f6a12;
}
.v-quote {
  padding: 12px 14px;
  border-radius: var(--m-r-sm);
  background: var(--m-soft);
  margin-bottom: 14px;
}
.v-quote p {
  margin-top: 4px;
  font-size: 13.5px;
}
.m-dot.limited {
  background: #9fd84a;
  box-shadow: 0 0 0 2.5px rgba(159, 216, 74, 0.22);
}
.m-dot.appeal {
  background: #6aa7ff;
  box-shadow: 0 0 0 2.5px rgba(106, 167, 255, 0.22);
}
.m-store small .rev.limited {
  color: #c9ec8f;
}

/* ===== draggable alerts + smart snap (28 Sep) ===== */
.op-stack .op,
.op-stack .op-rest:not(.docked),
.m-toast.on {
  cursor: grab;
  touch-action: none;
}
.op-stack .op a,
.op-stack .op button,
.m-toast a,
.m-toast button {
  cursor: pointer;
}
.op-stack.dragging,
.m-toast.dragging {
  cursor: grabbing;
  z-index: 99;
}
.op-stack.dragging .op,
.m-toast.dragging {
  box-shadow:
    0 30px 60px -20px rgba(12, 37, 34, 0.55),
    0 0 0 1px rgba(17, 48, 45, 0.08);
}
.m-toast.dragging {
  transform: none !important;
}
body.float-drag,
body.float-drag * {
  user-select: none !important;
  -webkit-user-select: none !important;
}
.snap-layer {
  position: fixed;
  inset: 0;
  z-index: 93;
  pointer-events: none;
  background: rgba(12, 14, 16, 0.05);
  animation: snap-in 0.15s ease;
}
.snap-t {
  position: fixed;
  border-radius: 12px;
  border: 1.5px dashed rgba(17, 48, 45, 0.22);
  background: rgba(255, 255, 255, 0.35);
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
.snap-t.on {
  border-style: solid;
  border-color: #15191b;
  background: rgba(21, 25, 27, 0.05);
  box-shadow: 0 0 0 4px rgba(193, 241, 109, 0.35);
}
@keyframes snap-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .snap-layer {
    animation: none;
  }
}

/* ===== rider chat (28 Sep) ===== */
.m-modal.rch-modal {
  width: min(440px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
}
.rch {
  display: flex;
  flex-direction: column;
  max-height: min(640px, calc(100vh - 48px));
}
.rch-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px 18px;
  border-bottom: 1px solid var(--m-line);
}
.rch-h .rc-av {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--m-soft);
  font: 600 13px var(--m-display);
  flex: none;
}
.rch-on {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3fbf5c;
  box-shadow: 0 0 0 2px #fff;
}
.rch-t {
  flex: 1;
  min-width: 0;
}
.rch-t b {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
}
.rch-t small {
  display: block;
  color: var(--m-muted);
  font-size: 12px;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rch-h .btn svg {
  width: 14px;
  height: 14px;
}
.rch-body {
  flex: 1;
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7f8f8;
}
.rch-empty {
  margin: auto;
  color: var(--m-muted);
  font-size: 13px;
  text-align: center;
}
.rch-m {
  max-width: 80%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rch-m span {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.45;
}
.rch-m time {
  font-size: 10.5px;
  color: var(--m-faint);
  padding: 0 4px;
}
.rch-m.out {
  align-self: flex-end;
  align-items: flex-end;
}
.rch-m.out span {
  background: #15191b;
  color: #fff;
  border-bottom-right-radius: 5px;
}
.rch-m.in {
  align-self: flex-start;
}
.rch-m.in span {
  background: #fff;
  color: var(--m-ink);
  box-shadow: inset 0 0 0 1px var(--m-line);
  border-bottom-left-radius: 5px;
}
.rch-m.typing span {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}
.rch-m.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b3b9bd;
  animation: rch-dot 1s infinite ease-in-out;
}
.rch-m.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.rch-m.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes rch-dot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.rch-tips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 16px 0;
}
.rch-tips::-webkit-scrollbar {
  display: none;
}
.rch-tips .chip {
  flex: none;
}
.rch-f {
  display: flex;
  gap: 8px;
  padding: 10px 16px 6px;
}
.rch-f .input {
  flex: 1;
  min-width: 0;
}
.rch-f .btn {
  width: 42px;
  padding: 0;
  justify-content: center;
}
.rch-f .btn svg {
  width: 16px;
  height: 16px;
}
.rch-note {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 16px 14px;
  font-size: 11.5px;
  color: var(--m-faint);
}
.rch-note svg {
  width: 13px;
  height: 13px;
  flex: none;
}

/* ---------- Sidebar: one clean list ----------
   Group headers read as quiet section labels (no icon, no tree line), and every item sits on the same
   grid as Overview / Orders. The collapsed rail keeps the icon headers. */
.m-app:not(.collapsed) .m-grp,
.m-app:not(.collapsed) .m-grp + .m-grp {
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
}
.m-app:not(.collapsed) .m-grp-h {
  height: 34px;
  padding: 0 10px 0 12px;
  margin-bottom: 2px;
  border-radius: var(--m-r-xs);
  gap: 8px;
  font: 600 12px/1 var(--m-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.m-app:not(.collapsed) .m-grp-h > svg:not(.chev) {
  display: none;
}
.m-app:not(.collapsed) .m-grp-h:hover {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}
.m-app:not(.collapsed) .m-grp-h .chev {
  width: 15px !important;
  height: 15px !important;
  opacity: 0;
  transform: rotate(90deg);
  transition:
    opacity 0.15s,
    transform 0.2s;
}
.m-app:not(.collapsed) .m-grp-h:hover .chev,
.m-app:not(.collapsed) .m-grp:not(.open) .m-grp-h .chev {
  opacity: 0.7;
}
.m-app:not(.collapsed) .m-grp:not(.open) .m-grp-h .chev {
  transform: none;
}
.m-app:not(.collapsed) .m-grp-h .grp-sum {
  height: 16px;
  min-width: 18px;
  line-height: 16px;
  font-size: 10px;
  letter-spacing: 0;
}
.m-app:not(.collapsed) .m-grp-b > div {
  margin-left: 0;
  padding-left: 0;
  border-left: 0;
  gap: 1px;
}
.m-app:not(.collapsed) .m-grp-b a {
  height: 38px !important;
  font-size: 13.5px !important;
}
.m-app:not(.collapsed) .m-grp-b a svg {
  width: 18px !important;
  height: 18px !important;
}
.m-app:not(.collapsed) .m-grp-b a[aria-current="page"]::before {
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
}
.m-app:not(.collapsed) .m-nav .soon-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  font-size: 9px;
  letter-spacing: 0.08em;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.5);
}
.m-app:not(.collapsed) .m-nav a[aria-current] .soon-tag {
  background: rgba(193, 241, 109, 0.14);
  color: #d9f5a8;
  box-shadow: inset 0 0 0 1px rgba(193, 241, 109, 0.28);
}

/* ---------- "Confirm it's you" (step-up check for sensitive changes) ---------- */
.su-modal {
  max-width: 440px;
}
.su-modal .su-ic {
  width: 40px;
  height: 40px;
  border-radius: var(--m-r-sm);
  display: grid;
  place-items: center;
  background: var(--m-soft);
  color: var(--m-ink);
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px var(--m-line);
}
.su-modal .su-ic svg {
  width: 20px;
  height: 20px;
}
.su-modal .m-modal-h p b {
  color: var(--m-ink);
  font-weight: 600;
  white-space: nowrap;
}
.su-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.su-d {
  height: 52px;
  min-width: 0;
  border-radius: var(--m-r-sm);
  border: 1px solid var(--m-line-2);
  background: #fff;
  text-align: center;
  font: 600 20px var(--m-display);
  color: var(--m-ink);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.su-d:focus {
  border-color: var(--v-green);
  box-shadow: var(--m-ring);
}
.su-sms {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: var(--m-soft);
  color: var(--m-ink-2);
  font: 500 12.5px var(--m-ui);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--m-line);
}
.su-sms[hidden] {
  display: none;
}
.su-sms b {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--m-ink);
}
.su-sms svg {
  width: 14px;
  height: 14px;
}
.su-sms:hover {
  background: #eef0f1;
}
.su-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.su-links .btn-text[disabled] {
  color: var(--m-faint);
  cursor: default;
}
.su-err {
  margin: 0;
}

/* ---------- Store switcher: calm card, status as a small pill ---------- */
.m-store {
  gap: 11px;
  padding: 8px 8px 8px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.m-store:hover,
.m-store:focus-visible {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.14);
}
.m-store .logo {
  width: 36px;
  height: 36px;
  border-radius: var(--m-r-sm);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.m-store .logo img {
  max-width: 28px;
  max-height: 24px;
}
.m-store .t b {
  font: 600 13.5px/1.25 var(--m-ui);
}
.m-store .t small {
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}
.m-store .st-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 18px;
  padding: 0 7px 0 6px;
  border-radius: 999px;
  font: 600 10.5px/1 var(--m-ui);
  letter-spacing: 0.01em;
  flex: none;
}
.m-store .st-pill .m-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}
.m-store .st-pill.on {
  background: rgba(157, 255, 58, 0.12);
  color: #c9f28a;
}
.m-store .st-pill.on .m-dot {
  background: #9dff3a;
}
.m-store .st-pill.off {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}
.m-store .st-pill.off .m-dot {
  background: #ff7a5c;
}
.m-store .st-pill.paused {
  background: rgba(245, 184, 61, 0.14);
  color: #f5cf7a;
}
.m-store .st-pill.paused .m-dot {
  background: #f5b83d;
}
.m-store .st-pill.rev {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}
.m-store .st-pill.rev.pending,
.m-store .st-pill.rev.appeal {
  color: #f5cf7a;
}
.m-store .st-pill.rev.rejected {
  color: #f5a38e;
}
.m-store .st-pill.rev.limited {
  color: #c9ec8f;
}
.m-store .t small .wh {
  color: rgba(255, 255, 255, 0.45);
}
.m-store .sw-ic {
  width: 26px;
  height: 26px;
  border-radius: var(--m-r-xs);
  display: grid;
  place-items: center;
  flex: none;
  color: rgba(255, 255, 255, 0.45);
  transition:
    background 0.15s,
    color 0.15s;
}
.m-store .sw-ic svg {
  width: 15px;
  height: 15px;
}
.m-store:hover .sw-ic {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
@media (min-width: 901px) {
  .m-app.collapsed .m-store .sw-ic {
    display: none;
  }
}

/* ---------- compact new-order toast (Settings → Notifications → toast style) ----------
   Top line: label left, countdown right (beside the close button). Then order number + amount, then customer. */
.op.mini .op-m {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 16px;
  padding: 12px 14px 14px 16px;
  position: relative;
}
.op.mini .op-mt {
  display: contents;
}
.op.mini .op-meb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 26px;
  margin-bottom: 8px;
  white-space: nowrap;
}
.op.mini .op-meb .k {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 10.5px/1 var(--m-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(193, 241, 109, 0.9);
}
.op.mini .op-meb .k em {
  font-style: normal;
  letter-spacing: 0.06em;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
}
.op.mini .op-meb .op-pulse {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
}
.op.mini .op-meb .op-pulse::after {
  display: none;
}
.op.mini .op-left {
  margin-left: auto;
  height: auto;
  padding: 0;
  background: none;
  border-radius: 0;
  font: 500 11.5px/1 var(--m-ui);
  color: rgba(255, 255, 255, 0.6);
  font-variant-numeric: tabular-nums;
}
.op.mini.warn .op-left {
  background: none;
  color: #ffc766;
  font-weight: 600;
}
.op.mini.late .op-left {
  background: none;
  color: #ffa28a;
  font-weight: 600;
}
.op.mini .op-mt b,
.op.mini .op-mt small {
  grid-column: 1;
  min-width: 0;
}
.op.mini .op-mt b {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font: 600 15px/1.25 var(--m-display);
  letter-spacing: -0.3px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}
.op.mini .op-mt b .amt {
  font: 500 13.5px/1.25 var(--m-ui);
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}
.op.mini .op-mt b .amt::before {
  content: "·";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
}
.op.mini .op-mt small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.op.mini .op-mv {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  height: 34px;
  padding: 0 18px;
  border-radius: var(--m-r-sm);
  margin: 0 !important;
}
.op.mini .op-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: var(--m-r-xs);
}
.op.mini .op-x svg {
  width: 13px;
  height: 13px;
}
.op.mini .op-m {
  row-gap: 0;
  gap: 0 16px;
}
.op.mini .op-mt small {
  margin-top: 2px;
}

/* floating alerts: draggable surfaces (the "N new orders" card and pop-up headers) don't scroll the page on touch */
.op-stack .op-rest,
.op-stack .op-h,
.op-stack .op.mini .op-m {
  touch-action: none;
  -webkit-user-drag: none;
  user-select: none;
  cursor: grab;
}
body.float-drag,
body.float-drag * {
  cursor: grabbing !important;
}

/* top bar: every control the same height */
.m-top-actions {
  align-items: center;
}
.m-top-actions .m-search,
.m-top-actions .m-view-store,
.m-top-actions .m-icon-btn,
.m-top-actions .btn {
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
}
.m-top-actions .m-avatar,
.m-top-actions .m-me-btn {
  height: 38px;
}

/* go-live card (limited stores): ring + next action, then one tile per item */
.vbar.gl {
  display: block;
  padding: 0;
  background: #f4f9ec;
  border-color: #d6ebb4;
  overflow: hidden;
}
.gl-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.gl-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
}
.gl-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gl-ring circle {
  fill: none;
  stroke-width: 4;
}
.gl-ring .bg {
  stroke: #dcebc6;
}
.gl-ring .fg {
  stroke: #11302d;
  stroke-linecap: round;
}
.gl-ring b {
  position: relative;
  font: 600 12px var(--m-display);
  color: var(--m-ink);
  letter-spacing: -0.2px;
}
.gl-msg {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gl-msg b {
  font: 600 15px/1.3 var(--m-display);
  letter-spacing: -0.2px;
  color: var(--m-ink);
}
.gl-msg span {
  font-size: 13px;
  color: var(--m-muted);
}
.gl-act {
  display: flex;
  gap: 8px;
  flex: none;
}
.gl-steps {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  border-top: 1px solid #dcebc6;
}
.gl-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: inherit;
  text-decoration: none;
  transition: background 0.12s;
  min-width: 0;
}
.gl-step + .gl-step {
  border-left: 1px solid #dcebc6;
}
.gl-step:hover {
  background: #ecf5e0;
}
.gl-n {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font: 600 11.5px var(--m-display);
  color: var(--m-ink-2);
  box-shadow: inset 0 0 0 1.5px #c9dfae;
  background: #fff;
}
.gl-step.next .gl-n {
  color: #fff;
  background: #11302d;
  box-shadow: none;
}
.gl-step.done .gl-n {
  background: #e3f3c8;
  color: #2f6a12;
  box-shadow: none;
}
.gl-n svg {
  width: 13px;
  height: 13px;
}
.gl-tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.gl-tx b {
  font: 600 13px/1.3 var(--m-ui);
  color: var(--m-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gl-tx small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-muted);
}
.gl-step.done .gl-tx b {
  color: var(--m-muted);
  font-weight: 500;
}
.gl-step > svg {
  width: 14px;
  height: 14px;
  color: var(--m-faint);
  flex: none;
}
.gl-step.done {
  pointer-events: none;
}
@media (max-width: 760px) {
  .gl-top {
    flex-wrap: wrap;
  }
  .gl-act {
    width: 100%;
  }
  .gl-act .btn {
    flex: 1;
  }
  .gl-steps {
    grid-template-columns: 1fr;
  }
  .gl-step + .gl-step {
    border-left: 0;
    border-top: 1px solid #dcebc6;
  }
}

/* go-live item in a pop-up (VM.completeModal): the onboarding step in an iframe */
.m-modal.cm {
  position: relative;
  width: min(640px, 100%);
  height: min(780px, calc(100vh - 40px));
  padding: 0;
  overflow: hidden;
  display: flex;
}
.cm-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--m-surface);
  opacity: 0;
  transition: opacity 0.15s;
}
.cm-ready .cm-frame {
  opacity: 1;
}
.cm-x {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
}
.cm-load {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.cm-load span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--m-line);
  border-top-color: var(--m-ink);
  animation: cm-spin 0.7s linear infinite;
}
.cm-ready .cm-load {
  display: none;
}
@keyframes cm-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 640px) {
  .m-modal.cm {
    height: 92vh;
    padding: 0;
  }
  .cm-x {
    top: 16px;
    right: 14px;
  }
}

/* approved, ready to open: celebration card */
.vbar.ap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px 28px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: radial-gradient(120% 160% at 100% 0%, #2a6a4f 0%, #14392f 42%, #0c2420 100%);
  box-shadow: 0 18px 40px -22px rgba(12, 36, 32, 0.7);
}
.vbar.ap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--v-pattern-dark) right -30px top -40px / 134px 159px repeat;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(70% 120% at 100% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 120% at 100% 0%, #000, transparent 75%);
}
.vbar.ap::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(193, 241, 109, 0.28), transparent);
}
.ap-seal {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--v-lime);
  color: #11302d;
  box-shadow:
    0 0 0 6px rgba(193, 241, 109, 0.14),
    0 10px 26px -8px rgba(193, 241, 109, 0.6);
  animation: ap-pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.ap-seal svg {
  width: 30px;
  height: 30px;
  stroke-width: 2.6;
}
.ap-seal i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(193, 241, 109, 0.55);
  animation: ap-ring 2.4s ease-out infinite;
}
.ap-seal i + i {
  animation-delay: 1.2s;
}
.ap-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ap-eye {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px var(--m-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v-lime);
}
.ap-eye svg {
  width: 13px;
  height: 13px;
}
.ap-t > b {
  font: 600 24px/1.15 var(--m-display);
  letter-spacing: -0.7px;
  color: #fff;
  margin-top: 2px;
}
.ap-t > span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}
.ap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}
.ap-chips li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font: 500 12px var(--m-ui);
  color: rgba(255, 255, 255, 0.85);
}
.ap-chips svg {
  width: 12px;
  height: 12px;
  color: var(--v-lime);
  stroke-width: 3;
}
.ap-a {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  flex: none;
}
.ap-go {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  background: var(--v-lime);
  color: #11302d;
  font: 600 15px var(--m-ui);
  box-shadow: 0 10px 24px -10px rgba(193, 241, 109, 0.8);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.ap-go svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
  transition: transform 0.15s;
}
.ap-go:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(193, 241, 109, 0.9);
}
.ap-go:hover svg {
  transform: translateX(3px);
}
.ap-go::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: ap-shine 3.2s ease-in-out 1s infinite;
}
.ap-prev {
  text-align: center;
  font: 600 13px var(--m-ui);
  color: rgba(255, 255, 255, 0.75);
  padding: 4px;
}
.ap-prev:hover {
  color: #fff;
}
.ap-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.ap-x:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.ap-x svg {
  width: 15px;
  height: 15px;
}
.ap-conf {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ap-conf i {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: var(--w);
  height: calc(var(--w) * 1.6);
  border-radius: 2px;
  background: var(--c);
  opacity: 0;
  transform: rotate(var(--r));
  animation: ap-fall 2.2s cubic-bezier(0.25, 0.6, 0.4, 1) var(--d) 1 both;
}
.ap-conf i:nth-child(3n) {
  border-radius: 50%;
  height: var(--w);
}
.ap-launch .ap-seal {
  animation: ap-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes ap-fall {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(var(--r));
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(190px) rotate(calc(var(--r) + 540deg));
  }
}
@keyframes ap-ring {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
@keyframes ap-pop {
  0% {
    transform: scale(0.4);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes ap-shine {
  0%,
  70% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap-conf,
  .ap-seal i,
  .ap-go::after {
    display: none;
  }
  .ap-seal {
    animation: none;
  }
}
@media (max-width: 760px) {
  .vbar.ap {
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 20px;
  }
  .ap-seal {
    width: 52px;
    height: 52px;
  }
  .ap-seal svg {
    width: 24px;
    height: 24px;
  }
  .ap-t {
    flex-basis: calc(100% - 70px);
  }
  .ap-t > b {
    font-size: 20px;
    padding-right: 24px;
  }
  .ap-a {
    width: 100%;
  }
  .ap-go {
    width: 100%;
  }
}
.ap-spark {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ap-spark i {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--v-lime);
  opacity: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: ap-twinkle 3s ease-in-out infinite;
}
.ap-spark i:nth-child(1) {
  left: 58%;
  top: 18%;
  animation-delay: 0.2s;
}
.ap-spark i:nth-child(2) {
  left: 66%;
  top: 68%;
  width: 7px;
  height: 7px;
  animation-delay: 1.1s;
  background: #fff;
}
.ap-spark i:nth-child(3) {
  left: 74%;
  top: 30%;
  width: 13px;
  height: 13px;
  animation-delay: 1.9s;
}
.ap-spark i:nth-child(4) {
  left: 52%;
  top: 76%;
  width: 6px;
  height: 6px;
  animation-delay: 2.5s;
  background: #fff;
}
.ap-spark i:nth-child(5) {
  left: 80%;
  top: 78%;
  width: 8px;
  height: 8px;
  animation-delay: 0.7s;
}
@keyframes ap-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) rotate(0);
  }
  50% {
    opacity: 0.85;
    transform: scale(1) rotate(45deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap-spark {
    display: none;
  }
}
@media (max-width: 760px) {
  .ap-spark {
    display: none;
  }
}
/* approved card: 3-step path to live (dashboard) and to-do chips (Storefront) */
.ap-go {
  text-decoration: none;
  white-space: nowrap;
}
.ap-steps {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.ap-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ap-steps li + li::before {
  content: "";
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin-right: 2px;
}
.ap-steps .n {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font: 600 11px var(--m-display);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28);
}
.ap-steps .n svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}
.ap-steps li.done .n {
  background: var(--v-lime);
  color: #11302d;
  box-shadow: none;
}
.ap-steps li.now .n {
  background: #fff;
  color: #11302d;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}
.ap-steps b {
  display: block;
  font: 600 12.5px/1.2 var(--m-ui);
  color: #fff;
}
.ap-steps small {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.6);
}
.ap-steps li:not(.done):not(.now) b {
  color: rgba(255, 255, 255, 0.7);
}
.ap-chips li.todo {
  background: transparent;
  box-shadow: none;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  padding: 3px 10px;
}
.ap-chips li.todo a {
  color: #fff;
  text-decoration: none;
}
.ap-chips li.todo a::after {
  content: " →";
  color: var(--v-lime);
}
.ap-chips li.todo:hover {
  background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 760px) {
  .ap-steps {
    flex-direction: column;
    gap: 8px;
  }
  .ap-steps li + li::before {
    display: none;
  }
}
.ap-burst {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}
.ap-burst .ap-conf {
  z-index: 0;
}
.ap-burst .ap-conf i {
  top: -16px;
  animation-name: ap-rain;
  animation-duration: 2.8s;
}
@keyframes ap-rain {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(var(--r));
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(calc(var(--r) + 720deg));
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap-burst {
    display: none;
  }
}

/* approved, not live yet (v3): quiet dark card, lime pill, slim track or checklist, one button */
.vbar.apx {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 22px 24px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--m-hero);
  box-shadow: 0 14px 34px -24px rgba(18, 20, 19, 0.75);
}
.vbar.apx::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--v-pattern-dark) right -30px top -40px / 134px 159px repeat;
  opacity: 0.14;
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000);
  mask-image: linear-gradient(90deg, transparent 45%, #000);
}
.apx-t {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.apx-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 11px 0 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  font: 500 12px/1 var(--m-ui);
  letter-spacing: 0.01em;
}
.apx-pill svg {
  width: 10px;
  height: 10px;
  padding: 3px;
  box-sizing: content-box;
  border-radius: 50%;
  background: var(--v-lime);
  color: #11302d;
  stroke-width: 3.4;
  flex: none;
}
.apx-t > b {
  margin-top: 10px;
  font: 600 19px/1.25 var(--m-display);
  letter-spacing: -0.4px;
  color: #fff;
}
.apx-t > span:not(.apx-pill) {
  margin-top: 3px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.66);
}
.apx-track {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: min(460px, 100%);
}
.apx-track i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.apx-track em {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--v-lime);
}
.apx-track span {
  display: block;
  margin-top: 7px;
  font: 500 12px var(--m-ui);
  color: rgba(255, 255, 255, 0.5);
}
.apx-track li.done span,
.apx-track li.now span {
  color: rgba(255, 255, 255, 0.88);
}
.apx-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.apx-list li,
.apx-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 13px var(--m-ui);
  color: #fff;
  text-decoration: none;
}
.apx-list a:hover {
  color: var(--v-lime);
}
.apx-list .d {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
}
.apx-list li.ok {
  color: rgba(255, 255, 255, 0.55);
}
.apx-list li.ok .d {
  background: var(--v-lime);
  color: #11302d;
  box-shadow: none;
}
.apx-list .d svg {
  width: 10px;
  height: 10px;
  stroke-width: 3.2;
}
.apx-a {
  flex: none;
}
.apx-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--m-r-sm);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  background: var(--v-lime);
  color: #11302d;
  font: 600 14px var(--m-ui);
  transition:
    background 0.15s,
    transform 0.15s;
}
.apx-go:hover {
  background: #cff589;
}
.apx-go svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
  transition: transform 0.15s;
}
.apx-go:hover svg {
  transform: translateX(2px);
}
/* approved card: confetti keeps drifting down in a loop (negative delays so it's already mid-fall on load) */
.apx .ap-conf i {
  top: -14px;
  animation: ap-drift 5.5s linear infinite;
  animation-delay: calc(var(--d) * -9);
}
.apx .ap-conf i:nth-child(2n) {
  animation-duration: 7s;
}
.apx .ap-conf i:nth-child(3n) {
  animation-duration: 6.2s;
}
.apx .ap-conf i:nth-child(5n) {
  animation-duration: 8.4s;
}
@keyframes ap-drift {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(var(--r));
  }
  8% {
    opacity: 0.9;
  }
  50% {
    transform: translate(10px, 110px) rotate(calc(var(--r) + 260deg));
  }
  88% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-6px, 230px) rotate(calc(var(--r) + 520deg));
  }
}
@media (max-width: 760px) {
  .vbar.apx {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px;
  }
  .apx-go {
    width: 100%;
    justify-content: center;
  }
}

/* Frappe form controls mounted by js/frappe-controls.js (VFC). Frappe's own site CSS is not
   loaded (it would restyle the portal): VFC gives each input the portal's own class (.input,
   .select, .textarea), and Frappe's form-layout wrappers become plain full-width blocks (the
   portal's .row is a flex row, which shrank them to their content, 232 px on sign-in). */
.vfc .form-layout,
.vfc .form-page,
.vfc .form-section,
.vfc .section-body,
.vfc .form-column,
.vfc form,
.vfc .frappe-control,
.vfc .form-group,
.vfc .control-input-wrapper,
.vfc .control-input {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.vfc .control-label,
.vfc .help-box,
.vfc .form-message {
  display: none;
}
.vfc .awesomplete {
  position: relative;
  width: 100%;
}
.vfc .awesomplete > ul {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line, #e3e6e4);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 30, 25, 0.12);
  max-height: 280px;
  overflow: auto;
}
.vfc .awesomplete > ul[hidden],
.vfc .awesomplete > ul:empty {
  display: none;
}
.vfc .awesomplete > ul > li {
  padding: 9px 10px;
  border-radius: var(--m-r-sm);
  cursor: pointer;
}
.vfc .awesomplete > ul > li[aria-selected="true"],
.vfc .awesomplete > ul > li:hover {
  background: var(--m-hl, #efeafc);
}
.vfc .awesomplete > ul > li p,
.vfc .awesomplete > ul > li .small {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.7;
}
.vfc .link-btn,
.vfc .btn-open {
  display: none;
}
.pick-unit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line, #e3e6e4);
  border-radius: 12px;
}
.pick-unit span {
  opacity: 0.7;
}
/* sidebar header: smaller wordmark, tag and collapse icon centred on one line with room between them */
.m-side .m-brand-row {
  align-items: center;
  gap: 12px;
}
.m-side .m-brand {
  align-items: center;
  gap: 10px;
}
.m-side .m-brand .wm {
  height: 14px;
}
.m-side .m-brand .tag {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 6px;
  margin: 0;
  font-size: 8.5px;
  line-height: 1;
  border-radius: 5px;
}
.m-side .m-collapse {
  width: 28px;
  height: 28px;
  margin-left: auto;
}
.m-side .m-collapse svg {
  width: 16px;
  height: 16px;
}

/* area chart overlays: HTML so dots stay round and labels don't stretch with the SVG */
.ac-ov {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: var(--ac-h);
  pointer-events: none;
}
.ac .ac-ov > * {
  margin: 0;
  letter-spacing: normal;
  text-transform: none;
}
.ac .ac-ov .ac-dot {
  display: block;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  margin: -5.5px 0 0 -5.5px;
}
.ac-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  border-radius: 50%;
  background: #1f5a52;
  box-shadow: 0 0 0 2px #fff;
  transition:
    left 0.06s,
    top 0.06s;
}
.ac-dot.live {
  background: #fff;
  box-shadow: inset 0 0 0 2px #1f5a52;
}
.ac.dark .ac-dot {
  background: #c1f16d;
  box-shadow: 0 0 0 2px #151817;
}
.ac.dark .ac-dot.live {
  background: #151817;
  box-shadow: inset 0 0 0 2px #c1f16d;
}
.ac-y {
  position: absolute;
  left: 0;
  transform: translateY(calc(-100% - 3px));
  font: 500 10.5px var(--m-ui);
  color: var(--m-faint);
}
.ac-avg[hidden] {
  display: none;
}
.ac-avg.up {
  transform: translateY(calc(-100% - 5px));
}
.ac-avg {
  position: absolute;
  right: 22px;
  transform: translateY(5px);
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px #dfe6e1;
  font: 600 10.5px var(--m-ui);
  color: #1f5a52;
}
.ac-best {
  position: absolute;
  width: 0;
  height: 0;
}
.ac-best i {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4c9a3a;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 7px rgba(76, 154, 58, 0.16);
}
.ac-best em {
  position: absolute;
  bottom: 14px;
  left: 0;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--m-ink);
  color: #fff;
  font: 600 11.5px/1.25 var(--m-ui);
  font-style: normal;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.35);
}
.ac-best em small {
  display: block;
  font-weight: 500;
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.6);
}
.ac-best.r em {
  transform: translateX(calc(-100% + 14px));
}
.ac-best.l em {
  transform: translateX(-14px);
}
.ac.on .ac-best em {
  opacity: 0.15;
  transition: opacity 0.15s;
}
.ac.rich .ac-reveal {
  transform-box: fill-box;
  transform-origin: left center;
  animation: acDraw 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.ac.rich .ac-area,
.ac.rich .ac-ov > span:not(.ac-dot) {
  opacity: 0;
  animation: acFade 0.5s ease 0.7s forwards;
}
@keyframes acDraw {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes acFade {
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ac.rich .ac-reveal {
    animation: none;
  }
  .ac.rich .ac-area,
  .ac.rich .ac-ov > span {
    animation: none;
    opacity: 1;
  }
}
@media (max-width: 900px) {
  .ac-ov {
    height: min(var(--ac-h), 170px);
  }
  .ac-avg,
  .ac-y {
    font-size: 10px;
  }
}

/* audit fixes (Sep 2026) */
/* the bell panel and search results live inside the sticky top bar; lift the bar while they're open so tabs and ribbons stay under them */
body.nd-open .m-top,
.m-top:has(.m-sr:not([hidden])) {
  z-index: 85;
}
/* bell panel: keep it inside the viewport on tablets (the avatar is hidden there, so the bell is the last item) */
@media (min-width: 641px) and (max-width: 900px) {
  .nd {
    right: 0;
  }
}
/* phones: modals open as bottom sheets, so toasts sit above the sheet instead of over its buttons; pop-ups stay out of the open drawer */
@media (max-width: 640px) {
  body:has(.m-scrim) .m-toast {
    bottom: auto;
    top: calc(12px + env(safe-area-inset-top, 0px));
  }
}
.m-app.nav-open ~ .op-stack,
body:has(.m-app.nav-open) .op-stack {
  display: none !important;
}
.ac-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  border-radius: var(--m-r-sm);
  background: var(--m-sunk);
  font-size: 13px;
  color: var(--m-muted);
}
.ac.dark + .ac-empty,
.card.dark .ac-empty {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
}

/* Venco Verified banner: dismiss control on the dark background */
.vbar.verified {
  align-items: center;
}
.vbar.verified .vb-x {
  margin-left: auto;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.6);
  transition:
    background 0.12s,
    color 0.12s;
}
.vbar.verified .vb-x:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.vbar.verified .vb-x svg {
  width: 16px;
  height: 16px;
}

/* "Your store" (store switcher for a single-store merchant) */
.sw-modal .m-modal-h p {
  margin-top: 4px;
}
.sw-cur {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--m-sunk);
  box-shadow: inset 0 0 0 1px var(--m-line);
}
.sw-cur .th {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--m-r-sm);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--m-line);
}
.sw-cur .th img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sw-cur .t {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.sw-cur .t b {
  font: 600 15px var(--m-display);
  letter-spacing: -0.2px;
  color: var(--m-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sw-cur .t small {
  font-size: 12.5px;
  color: var(--m-muted);
}
.sw-cur .t {
  flex: 1;
}
.sw-pill {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font: 600 12px var(--m-ui);
  background: #eef6e6;
  color: #3f6a10;
}
.sw-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.sw-pill.paused {
  background: #fff4e0;
  color: #9a6200;
}
.sw-pill.off {
  background: #f1f2f1;
  color: var(--m-muted);
}
.sw-pill.rev {
  background: #fff4e0;
  color: #9a6200;
}
.sw-modal .sw-add {
  margin-bottom: 0;
}
/* the stores this person may open, below the current store (merchant.js vencoStores) */
.sw-modal .sw-stores {
  margin: 16px 0 0;
}

/* Check: Frappe's own label beside its box; block-level flex, as inline-flex sat on a text line
   and added 2 px of line-box height (24.1 px against the design's 22) */
.vfc .checkbox,
.vfc .checkbox label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  cursor: pointer;
}
.vfc .checkbox .input-area {
  display: inline-flex;
}

/* One-time code: a single Frappe Data control drawn as four boxes (js/parts.js codeField, CODE_LEN) */
.va-otp-host {
  width: max-content;
}
.vfc .input.va-otp {
  width: 208px;
  height: 52px;
  padding: 0 0 0 19px;
  font: 600 22px/1 var(--m-ui);
  letter-spacing: 34.6px;
  font-variant-numeric: tabular-nums;
  background:
    repeating-linear-gradient(90deg, #fff 0 46px, transparent 46px 54px),
    repeating-linear-gradient(90deg, var(--line, #e3e6e4) 0 54px);
  background-clip: padding-box;
}

/* A control's stand-in until the Frappe control mounts (VUI.ctl): same box, not interactive */
.ctl-wait {
  pointer-events: none;
  cursor: progress;
}
.ctl-wait.check {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid var(--m-line-2);
  border-radius: 4px;
  vertical-align: middle;
}
.ctl-wait-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* frappe.ui.Dialog in the design's look (VPARTS.dialog, VFC's $.fn.modal stand-in): the modal
   element is the .m-scrim while open, its content box the .m-modal; Frappe's header/footer hidden */
.modal:not(.show) {
  display: none;
}
.modal .modal-dialog {
  display: contents;
}
.vui-dialog .modal-header,
.vui-dialog .modal-footer,
.vui-dialog .modal-message,
.modal .hide,
.modal .hidden {
  display: none;
}
.vui-dialog .modal-body {
  padding: 0;
}

/* Frappe control details every page needs (found converting the catalogue, 2026-10-02):
   Frappe's own select chevron and placeholder layer (the design draws .select's chevron), and an
   inline textarea's baseline gap (5 px, shifting everything below it) */
.vfc .select-icon,
.vfc .placeholder {
  display: none;
}
.vfc textarea {
  display: block;
}

/* browser autofill: keep our own white field and dark text instead of the browser's tinted background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--m-ink) !important;
  caret-color: var(--m-ink);
  -webkit-box-shadow: 0 0 0 1000px var(--m-surface, #fff) inset !important;
  box-shadow: 0 0 0 1000px var(--m-surface, #fff) inset !important;
  transition:
    background-color 600000s 0s,
    color 600000s 0s;
}
input:autofill {
  background-color: var(--m-surface, #fff);
}
/* the focus ring still shows on an autofilled field */
input:-webkit-autofill:focus {
  -webkit-box-shadow:
    0 0 0 1000px var(--m-surface, #fff) inset,
    var(--m-ring) !important;
  box-shadow:
    0 0 0 1000px var(--m-surface, #fff) inset,
    var(--m-ring) !important;
}

/* pages opened inside a pop-up (?embed=1): just the content, no portal chrome */
body.embed {
  background: #fff;
}
body.embed .m-side,
body.embed .m-top,
body.embed .m-tabbar,
body.embed .vbar,
body.embed .op-stack,
body.embed .op-rest,
body.embed .m-sr {
  display: none !important;
}
body.embed .m-app {
  display: block;
  min-height: 0;
}
body.embed .m-content {
  padding: 0;
  max-width: none;
  gap: 0;
}
/* Add product pop-up: large, nearly full height */
.m-modal.cm.pm {
  width: min(1100px, 100%);
  height: calc(100vh - 48px);
  max-height: 940px;
  border-radius: 14px;
}
@media (max-width: 640px) {
  .m-modal.cm.pm {
    height: 96vh;
    border-radius: 14px 14px 0 0;
  }
}
/* selected item: 8px radius on every corner, a soft fill, and a short straight lime marker set inside the fill
   (an inset shadow bent around the rounded corners, which looked untidy) */
.m-app:not(.collapsed) .m-nav a[aria-current="page"],
.m-app:not(.collapsed) .m-grp-b a[aria-current="page"] {
  border-radius: 8px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.08);
}
.m-app:not(.collapsed) .m-nav a[aria-current="page"]::before,
.m-app:not(.collapsed) .m-grp-b a[aria-current="page"]::before {
  display: block;
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  bottom: auto;
  width: 3px;
  height: 16px;
  margin-top: -8px;
  border-radius: 0 3px 3px 0;
  background: var(--v-lime);
}
/* store switcher: "Add a branch" shown greyed out until Branches launches */
.sw-add.soon {
  cursor: default;
  border-style: dashed;
  background: var(--m-sunk);
}
.sw-add.soon:hover {
  border-color: var(--m-line-2);
  background: var(--m-sunk);
}
.sw-add.soon > svg {
  background: var(--m-soft);
  color: var(--m-faint);
}
.sw-add.soon b {
  color: var(--m-muted);
}
.sw-add.soon small {
  color: var(--m-faint);
}
.sw-soon {
  margin-left: auto;
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--m-soft);
  color: var(--m-muted);
  font: 700 10px/1.2 var(--m-ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* buttons are flat: no drop shadows anywhere (the keyboard focus ring stays) */
.btn:not(:focus-visible),
.btn:not(:focus-visible):hover {
  box-shadow: none !important;
}
/* one-time code (sign-up, sign-in, invites, settings): 3 + 3 boxes, demo autofill chip, resend + switch in a footer */
/* verification codes: 4 separate square boxes (6 for a bank's OTP), big centred digits */
.su-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.su-sep {
  display: none;
}
.su-d {
  flex: none;
  width: 60px;
  height: 64px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--m-line-2);
  background: #fff;
  text-align: center;
  font: 600 26px/1 var(--m-display);
  color: var(--m-ink);
  caret-color: var(--v-green);
}
.su-d:not(:placeholder-shown),
.su-d.filled {
  border-color: #b9c2bd;
}
.su-d:focus {
  border-color: var(--v-green);
  box-shadow: 0 0 0 4px rgba(193, 241, 109, 0.55);
}
.su-row.otp6 .su-d {
  width: 50px;
  height: 58px;
  font-size: 22px;
}
.su-modal .su-links {
  border-top: 0;
  padding-top: 0;
  margin-top: 16px;
}
.su-modal .su-err {
  margin-top: 10px;
}
.su-d.bad {
  border-color: var(--m-danger) !important;
  background: #fffaf9 !important;
  box-shadow: 0 0 0 3px rgba(214, 51, 28, 0.14) !important;
}
.su-sms {
  margin-top: 14px;
  padding: 7px 12px;
  background: var(--m-sunk);
  box-shadow: inset 0 0 0 1px var(--m-line);
}
.su-links {
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--m-line);
  font-size: 13px;
}
.su-rs {
  color: var(--m-muted);
}
.su-rs .btn-text {
  padding: 0;
  font-size: 13px;
  vertical-align: baseline;
}
.su-links > .btn-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-size: 13px;
}
.su-links > .btn-text svg {
  width: 15px;
  height: 15px;
}
.vc-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.vc-ic {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: rgba(193, 241, 109, 0.35);
  color: var(--v-green);
  display: grid;
  place-items: center;
}
.vc-ic svg {
  width: 20px;
  height: 20px;
}
.vc-head b {
  display: block;
  font: 600 16px var(--m-display);
  color: var(--m-ink);
}
.vc-head small {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--m-muted);
}
.vc-head small strong {
  color: var(--m-ink);
  font-weight: 600;
}
.vc-head small .btn-text {
  padding: 0;
  font-size: 13px;
  margin-left: 6px;
  vertical-align: baseline;
}
@media (max-width: 420px) {
  .su-d {
    width: 56px;
    height: 60px;
    font-size: 24px;
  }
  .su-row {
    gap: 10px;
  }
  .su-row.otp6 {
    gap: 6px;
  }
  .su-row.otp6 .su-d {
    width: 42px;
    height: 52px;
    font-size: 20px;
  }
  .su-links {
    flex-wrap: wrap;
  }
}

/* Table pagination (VM.pager) */
/* Footer under a list or table card: holds VM.pager. Use it for every list footer. */
.list-foot {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--m-line);
}
.list-foot:empty {
  display: none;
}
.list-foot > .pager {
  width: auto;
  flex: 1 1 260px;
}
@media (max-width: 640px) {
  .list-foot {
    padding: 12px 16px;
  }
}
.pager {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.pager .pg-note {
  font: 400 13px/1.4 var(--m-ui);
  color: var(--m-muted);
}
.pager .pg-btns {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.pager .pg {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  font: 500 13px/1 var(--m-ui);
  color: var(--m-ink-2);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.pager .pg:hover:not(:disabled):not(.on) {
  background: #f3f3f1;
}
.pager .pg.on {
  background: var(--v-green);
  color: #fff;
  font-weight: 600;
}
.pager .pg-arrow {
  border-color: var(--m-line-2);
  color: var(--m-ink);
}
.pager .pg:disabled {
  opacity: 0.35;
  cursor: default;
}
.pager .pg:focus-visible {
  outline: 2px solid var(--v-green);
  outline-offset: 2px;
}
.pager .pg-gap {
  min-width: 20px;
  text-align: center;
  color: var(--m-muted);
  font-size: 13px;
}
@media (max-width: 560px) {
  .pager .pg-btns {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
  .pager .pg-note {
    width: 100%;
    text-align: center;
  }
}

/* Reporting period picker (VM.periodBar): one button + menu */
.pb {
  position: relative;
  display: inline-flex;
}
.pb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--m-line-2);
  border-radius: 10px;
  background: #fff;
  font: 600 13px/1 var(--m-ui);
  color: var(--m-ink);
  cursor: pointer;
  white-space: nowrap;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.pb-btn:hover {
  border-color: #c9cbc6;
}
.pb-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 48, 45, 0.15);
  border-color: var(--v-green);
}
.pb-btn > svg:first-child {
  width: 15px;
  height: 15px;
  color: var(--m-muted);
}
.pb-btn .pb-d {
  font-weight: 400;
  color: var(--m-muted);
}
.pb-btn .pb-d::before {
  content: "·";
  margin-right: 8px;
  color: #c4c6c2;
}
.pb-chev {
  color: var(--m-muted);
  transition: transform 0.15s;
}
.pb.open .pb-chev {
  transform: rotate(180deg);
}
.pb-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  width: 260px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: var(--m-ink);
  border: 1px solid var(--m-line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.14);
  padding: 6px;
}
.pb-pop[hidden] {
  display: none;
}
.pb-it {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 16px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: none;
  border: 0;
  font: 500 13px/1.2 var(--m-ui);
  color: var(--m-ink);
  text-align: left;
  cursor: pointer;
}
.pb-it small {
  font: 400 12px/1.2 var(--m-ui);
  color: var(--m-muted);
  white-space: nowrap;
}
.pb-it svg {
  color: var(--v-green);
}
.pb-it:hover,
.pb-it:focus-visible {
  background: #f4f5f2;
  outline: none;
}
.pb-it.on {
  font-weight: 600;
}
.pb-sep {
  height: 1px;
  background: var(--m-line);
  margin: 6px 4px;
}
.pb-cust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
}
.pb-cust b {
  font: 600 13px/1.2 var(--m-ui);
}
.pb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pb-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font: 500 12px/1.2 var(--m-ui);
  color: var(--m-muted);
}
.pb-row .input {
  min-width: 0;
}
.pb-f {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.pb-cust ~ * {
  display: none;
}
@media (max-width: 560px) {
  .pb-btn .pb-d {
    display: none;
  }
  .pb-pop {
    right: auto;
    left: 0;
  }
}
.pb-pop:has(.pb-cust) {
  width: 320px;
}

/* Dropdowns: focus ring only for keyboard users (not after a mouse pick).
   Filter dropdowns (.fsel) that are set to anything but their first "All …" option get a calm "set" state. */
.select:focus:not(:focus-visible) {
  box-shadow: none;
  border-color: var(--m-line-2);
}
.select.fsel.is-set {
  border-color: var(--v-green) !important;
  box-shadow: inset 0 0 0 0.5px var(--v-green) !important;
  background-color: var(--m-surface);
  color: var(--m-ink);
  font-weight: 600;
}

/* Order tags drawn by js/orders.js on any page: who delivers (VO.byTag) and Overdue (VO.lateTag) */
.dtag.by {
  background: var(--m-soft, #f1f2ef);
  color: var(--m-ink-2, #3f4549);
}
.dtag.by.own {
  background: var(--m-sunk, #f6f7f5);
  color: var(--m-ink, #161a19);
  box-shadow: inset 0 0 0 1px var(--m-line-2, #dfe2dd);
}
.late-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 100px;
  background: var(--m-danger, #d6331c);
  color: #fff;
  font: 600 11.5px/1 var(--m-ui, Inter, sans-serif);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.late-tag svg {
  width: 12px;
  height: 12px;
}
/* a pickup order (VO.pickTag) and one waiting at the counter over a day (VO.uncollectedTag) */
.dtag.pick {
  background: var(--m-soft, #f1f2ef);
  color: var(--m-ink, #161a19);
  box-shadow: inset 0 0 0 1px var(--m-line-2, #dfe2dd);
}
.nc-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 100px;
  background: var(--m-soft, #f1f2ef);
  color: var(--m-muted, #6b7176);
  font: 500 11.5px/1 var(--m-ui, Inter, sans-serif);
  white-space: nowrap;
}
/* a page in an iframe pop-up fills it (the onboarding completion step, the order pop-up on Orders) */
.m-modal.cm > .modal-body,
.m-modal.cm > .modal-body > div:not(.hide),
.cm-in {
  flex: 1;
  display: flex;
  min-width: 0;
}
/* Upload errors shown where they happen: the upload area gets a red outline and the reason sits under it */
.up-err {
  outline: 1.5px solid var(--m-danger, #d6331c);
  outline-offset: -1px;
  border-color: transparent !important;
}
.up-err-msg {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 8px;
  font: 500 12.5px/1.45 var(--m-ui);
  color: var(--m-danger, #d6331c);
}
.up-err-msg svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 1px;
}
.up-err-msg[hidden] {
  display: none;
}
/* A button sitting next to a text field is the same height as the field (category / sub-category / slot add rows).
   Not .tab-new in product.html: there the Add button sits inside the field's border on purpose. */
.cat-add,
.st-add,
.slot-add {
  align-items: stretch;
}
.cat-add > .btn:not(.btn-text),
.st-add > .btn:not(.btn-text),
.slot-add > .btn:not(.btn-text) {
  height: auto;
  min-height: 0;
  flex: none;
  padding-left: 16px;
  padding-right: 16px;
}
.slot-add > .muted {
  align-self: center;
}
/* Text that ends in "..." hides its overflow, and a line box only as tall as the letters cuts the tails of g, y, p, j
   (and accents on top). Give those labels room above and below, cancelled by a negative margin so nothing moves. */
.m-nav a > span:not(.count):not(.owner-tag),
.m-grp-h > span:not(.count),
.m-store .t b,
.m-store .t small .wh,
.m-top h1 {
  padding-block: 0.22em;
  margin-block: -0.22em;
}

/* leave-with-unsaved-changes pop-up (VM.leaveCheck: the dialog's .m-modal carries lv-modal) */
.m-modal.lv-modal {
  width: min(460px, calc(100vw - 32px));
}
.lv-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: var(--m-warn-bg);
  color: var(--m-warn);
}
.lv-ic svg {
  width: 19px;
  height: 19px;
}
.lv-f {
  align-items: center;
}
.lv-f .sp {
  flex: 1;
}
.lv-f .lv-leave {
  padding: 0;
  color: var(--m-danger);
}
@media (max-width: 520px) {
  .lv-f {
    flex-wrap: wrap;
  }
  .lv-f .sp {
    display: none;
  }
  .lv-f .lv-leave {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}
.pp-pin {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
@media (max-width: 520px) {
  .pp-pin {
    grid-template-columns: 1fr 1fr;
  }
  .pp-pin button {
    grid-column: span 2;
  }
}

/* Notification rows open a detail dialog; their CTA is the only navigation. */
button.nt-row {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.nt-detail {
  padding: 20px 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
