/* vendorplus-components.css — Filter panel, Bootstrap custom, dashicons, collapse toggle, cards, badges, btn-link-toggle, tab-content, toast, tooltips, user menu, Tom Select, filter bar, list toolbar, settings page tab bar */

/* =============================================================================
   List toolbar (results-header row above list/table results — per-page, sort)
   ============================================================================= */
.vplus-list-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* SEARCH FORM - FILTER PANEL */
.vplus-js-on .vplus-search-form {
  display: none;
}
.filter-panel * {
  font-weight: normal;
}
.filter-panel.on-top {
  background: rgba(255, 255, 255, 0.9);
  opacity: 1;
}
.filter-panel {
  position: absolute;
  background: #fff;
  padding: 1.25rem;
  box-shadow: #ccc 0 0.1875rem 0.3125rem;
  margin-top: 0.5rem;
  margin-left: -0.5rem;
  width: 100%;
  min-width: 12.5rem;
  z-index: 100;
  opacity: 0.9;
}
th.filter-heading.filter-active {
  background: #fff;
  position: relative;
}
.collapse-all {
  float: right;
}

/* BOOTSTRAP - CUSTOM */
.btn-prev {
  position: absolute;
  top: 0;
  left: 0;
}

.popover.popover .row {
  border-bottom: 1px solid #f2f2f2;
}
.popover.popover .row:last-child {
  border-bottom: 0;
}

@media (min-width: 420px) {
  .popover.popover {
    max-width: max-content;
  }
  .popover.popover .row {
    width: 18.75rem;
  }
}

/* TINY MCE - CUSTOM */
#vplus-vendor-item-form .wp-editor-container {
  border: 1px solid #ddd;
  border-radius: 0.1875rem 0 0.1875rem 0.1875rem;
  overflow: hidden;
}

/* DASHICONS - CUSTOM */

.table > tbody > tr.header-row > td {
  vertical-align: bottom;
}
.table > tbody > tr > td > * {
  vertical-align: middle;
}
.table > tbody > tr:last-child > td {
  border-bottom: 0;
}

.chart-legend-box {
  width: 0.875rem;
  height: 0.875rem;
  display: inline-block;
  vertical-align: text-top;
  margin-right: 0.3125rem;
  opacity: 0;
  border-radius: 0.1875rem;
}

.vplus-badge {
  cursor: pointer;
}

.badge-lighter {
  /* Figma Chrome / Count badge 1424:144414 (4.45.0): pill, bg/muted, 1px
     border/strong, Medium 11 text/default. Was cool blue-grey #e9eef6. */
  background: var(--bg-3, #f1f2ee);
  border: 1px solid var(--line-2, #d8dad4);
  border-radius: var(--radius-full, 9999px);
  color: var(--ink, #1d1e1b);
  font-size: 0.6875rem;
  font-weight: 500;
}

.btn-collapse-toggle {
  padding: 0 1rem;
  color: #666;
}
.btn-collapse-toggle:not(.collapsed) span[class*="fa-"] {
  transform: rotate(180deg);
}
.btn-collapse-toggle:focus {
  outline: none;
  border-color: transparent;
  background: #f5f5f5;
}
.card {
  margin-bottom: 1rem;
}
.card h5 {
  color: #6b6b6b;
  font-size: var(--bs-body-font-size);
  text-transform: uppercase;
  font-weight: bold;
  margin: 0;
}
.card-body + .card-body.collapse,
.card-body + .card-body.collapsing {
  padding-top: 0;
}
.card-body > .row {
  row-gap: 1rem;
}
.card-body p:last-child {
  margin-bottom: 0;
}

.alert p:last-child {
  margin-bottom: 0;
}

.btn-link-toggle {
  padding: 0 0.5rem;
  line-height: 1rem;
}

.btn-link-toggle + .collapsing {
  transition: all 0.3s ease-in;
}
.btn-link-toggle + .collapse {
  margin-top: 0;
}
.btn-link-toggle + .collapse.show,
.btn-link-toggle + .collapsing {
  margin-top: 1rem;
}
.btn-link-toggle:focus,
.btn-link-toggle:active {
  outline: none;
  --bs-btn-active-border-color: transparent;
}
.btn-link-toggle[aria-expanded="false"] .fa-toggle-large-on {
  display: none;
}
.btn-link-toggle[aria-expanded="true"] .fa-toggle-large-off {
  display: none;
}

.card-body .tab-content {
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0 0 var(--bs-border-radius) var(--bs-border-radius);
  border-top: 0;
}

.card-body .row {
  row-gap: 1rem;
}

.card-body .row:has(.form-row) {
  row-gap: 0;
}

/* Bootstrap's .alert must not put Toastify notifications back in page flow. */
.toastify.alert {
  position: fixed;
}

.toast-close.toast-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  font-size: var(--bs-body-font-size-sm);
}

/* Toast (Figma GA Chrome / Toast 1270:895886; design-rules.md §3 "Toasts").
   Markup is built by assets/js/toast.js (window.vplusToast):
   .toastify.vplus-toast.vplus-toast--{success|info|warning|danger|neutral}
     > .vplus-toast-inner > i.vplus-toast-icon + .vplus-toast-copy
       (.vplus-toast-message + optional .vplus-toast-body)
       + optional button.vplus-toast-btn.vplus-toast-action / .vplus-toast-close
   Tinted surface + 1px border from the Chrome / Notice token pairs (Neutral =
   Status badge Neutral); icon in the message colour (text/default). The dark
   inverse look is retired. JS sets `top` (1rem under the Top nav, stacked
   newest first, 8px apart); this block sets everything else, and works
   without vendor/toastify.css. Fallbacks for wp-admin, which has no core.css. */
.toastify.vplus-toast {
  position: fixed;
  z-index: 2147483647;
  right: 2rem;
  left: auto;
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: min(32rem, calc(100vw - 2rem));
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-2, #d8dad4);
  border-radius: var(--radius-md, 0.5rem);
  background: var(--bg-3, #f1f2ee);
  color: var(--ink, #1d1e1b);
  box-shadow: var(--elevation-modal, 0 5px 30px rgba(0, 0, 0, 0.3));
  font-size: 0.8125rem;
  line-height: 1.25rem;
  text-align: left;
  cursor: default;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.215, 0.61, 0.355, 1), top 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.toastify.vplus-toast.on {
  opacity: 1;
}

/* Tones. Raw Toastify() calls with Bootstrap alert classes (e.g. reports.js)
   get the matching tone surface too. */
.toastify.vplus-toast--success,
.toastify.alert.alert-success {
  background: var(--success-tint, #effcf5);
  border-color: var(--success-border, #c5f1d7);
  color: var(--ink, #1d1e1b);
}

.toastify.vplus-toast--info,
.toastify.alert.alert-info,
.toastify.alert.alert-primary {
  background: var(--accent-tint, #eef2fa);
  border-color: var(--line-2, #d8dad4);
  color: var(--ink, #1d1e1b);
}

.toastify.vplus-toast--warning,
.toastify.alert.alert-warning {
  background: var(--warn-tint, #fffbeb);
  border-color: var(--warn-border, #f8e69c);
  color: var(--ink, #1d1e1b);
}

.toastify.vplus-toast--danger,
.toastify.alert.alert-danger {
  background: var(--danger-tint, #fff2f3);
  border-color: var(--danger-border, #f7cfd3);
  color: var(--ink, #1d1e1b);
}

.toastify.vplus-toast--neutral {
  background: var(--bg-3, #f1f2ee);
  border-color: var(--line-2, #d8dad4);
}

.toastify.alert {
  margin-bottom: 0;
  right: 2rem;
}

.vplus-toast-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vplus-toast-icon {
  flex: none;
  width: 1rem;
  font-size: 1rem;
  line-height: 1.25rem;
  text-align: center;
  color: inherit;
}

.vplus-toast-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  max-width: 18.875rem; /* Figma message max 302px */
}

.toastify.vplus-toast .vplus-toast-message,
.toastify.vplus-toast .vplus-toast-body {
  margin: 0;
  overflow-wrap: anywhere;
}

.toastify.vplus-toast .vplus-toast-message {
  font-weight: 500;
}

.toastify.vplus-toast .vplus-toast-body {
  color: var(--ink-3, #6f716b);
  font-weight: 400;
  line-height: 1rem;
}

/* View / Close: Secondary Small look (30px), 44px hit area via ::after. */
.toastify.vplus-toast .vplus-toast-btn {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 1.875rem;
  min-height: 0;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid var(--line-2, #d8dad4);
  border-radius: var(--radius-sm, 0.375rem);
  background: var(--surface, #fff);
  color: var(--ink, #1d1e1b);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

.toastify.vplus-toast .vplus-toast-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 2.75rem);
  height: 2.75rem;
  transform: translate(-50%, -50%);
}

.toastify.vplus-toast .vplus-toast-btn:hover {
  background: var(--bg-3, #f1f2ee);
}

.toastify.vplus-toast .vplus-toast-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 2px #fff, 0 0 0 4px rgba(28, 63, 133, 0.65));
}

.toastify.vplus-toast .vplus-toast-close i {
  font-size: 0.875rem;
}

@media (max-width: 575px) {
  .toastify {
    font-size: var(--bs-body-font-size);
  }

  /* Centre toasts on mobile (Toastify itself only centres up to 360px). */
  .toastify.vplus-toast,
  .toastify.toastify-right,
  .toastify.toastify-left {
    right: 0;
    left: 0;
    width: fit-content;
    max-width: calc(100vw - 2rem);
    margin-right: auto;
    margin-left: auto;
  }

  /* With a body or action: full width so the text wraps (Figma 358 Fill). */
  .toastify.vplus-toast--rich {
    width: calc(100vw - 2rem);
  }

  .vplus-toast-copy {
    max-width: none;
  }
}

.dev-notice-badge {
  background-color: var(--bs-warning-bg);
  color: var(--bs-warning-text);
  border: 1px solid var(--bs-warning-border-subtle);
  font-weight: var(--vplus-font-weight-normal);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* =============================================================================
   Top nav / site header (templates/global/top-nav.php + login-nav.php)
   Matches Figma `Chrome / Top nav` (Desktop 243:61384, Mobile hamburger
   144:35830, Signed-out 243:61356 / 154:40271). Rebuilt 2026-10-13; replaces
   the former .auction-nav / .vplus-user-menu-* rules.
   Figma tokens with an existing variable use it (--line, --ink, --ink-3,
   --bg-3, --accent); bg/surface #fff and radius/full 100px have none, so the
   values are used directly. Sizes are rem (16px base); Figma px in comments.
   Breakpoint 992px = Bootstrap lg (the d-lg-* classes in the markup).
   ============================================================================= */

/* The theme wraps the header in .header > .container (vp-core-theme). Let the
   bar run edge to edge when it is present. :has() keeps this off the sign-in
   page, which renders no .vplus-topnav. */
.header > .container:has(> .vplus-topnav) {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.vplus-topnav {
  display: flex;
  align-items: center;
  gap: 1rem;                     /* 16px */
  height: 3.75rem;               /* 60px mobile signed-in */
  padding: 0 1rem;               /* 16px */
  background: #fff;              /* bg/surface: no matching variable */
  border-bottom: 1px solid var(--line);
  font-family: var(--vplus-font-family-base, Inter, Arial, sans-serif);
}
/* Signed-out bar: 60px on mobile like the signed-in bar (Figma Signed-out
   navigation 390x60), 52px from lg via the shared .vplus-topnav rule below.
   (Was 52px at every width before 4.29.0.) */

.vplus-topnav-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vplus-topnav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;                   /* 8px */
}
.vplus-topnav-mark {
  display: block;
  flex: none;
  width: 1.5rem;                 /* Figma slot 26x24; PNG is square so 24x24 */
  height: 1.5rem;
}
.vplus-topnav-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: normal;
  white-space: nowrap;
}
.vplus-topnav-brand-name {
  font-size: 0.875rem;           /* 14px */
  font-weight: 600;
  color: var(--ink);
}
/* Deliberate, user-approved (2026-10-13) exception to the 26/22/14/13/11 type
   scale: 8px Inter Light, black, exactly as drawn in Figma. */
.vplus-topnav-slogan {
  font-size: 0.5rem;             /* 8px */
  font-weight: 300;
  color: #000;
}

.vplus-topnav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;                  /* 28px */
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.vplus-topnav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-3);
  text-decoration: none;
}
.vplus-topnav-link:hover {
  color: var(--ink);
}

.vplus-topnav-avatar,
.vplus-topnav-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
  cursor: pointer;
}
.vplus-topnav-avatar {
  width: 2rem;                   /* 32px mobile */
  height: 2rem;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 100px;          /* radius/full: no matching variable */
  font-family: inherit;
  font-size: 0.6875rem;          /* 11px */
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.vplus-topnav-menu-btn {
  width: 2.75rem;                /* 44px */
  height: 2.75rem;
  background: transparent;
  border: 0;
  font-size: 1.25rem;            /* 20px icon */
  color: var(--ink);
}
.vplus-topnav-avatar:focus-visible,
.vplus-topnav-menu-btn:focus-visible,
.vplus-topnav-link:focus-visible,
.vplus-topnav .dropdown-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Dropdowns (user menu + mobile links): same tokens, no new colours. */
.vplus-topnav .dropdown-menu {
  --bs-dropdown-bg: #fff;
  --bs-dropdown-border-color: var(--line);
  --bs-dropdown-link-color: var(--ink);
  --bs-dropdown-link-hover-bg: var(--bg-3);
  --bs-dropdown-link-hover-color: var(--ink);
  --bs-dropdown-link-active-bg: var(--accent-tint);
  --bs-dropdown-link-active-color: var(--accent);
  --bs-dropdown-font-size: 0.875rem;
  --bs-dropdown-padding-y: 0;
  --bs-dropdown-divider-margin-y: 0;
  --bs-dropdown-divider-bg: var(--line);
}
.vplus-topnav .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.vplus-topnav .dropdown-item-text,
.vplus-topnav .dropdown-header {
  padding: 0.5rem 1rem;
}
.vplus-topnav-user-name {
  font-weight: 600;
  color: var(--ink);
}
.vplus-topnav .dropdown-menu .fal {
  width: 1.25em;
  text-align: center;
}

@media (min-width: 992px) {
  .vplus-topnav {
    height: 3.25rem;             /* 52px */
    padding: 0 1.5rem;           /* 24px */
  }
  .vplus-topnav-avatar {
    width: 1.75rem;              /* 28px */
    height: 1.75rem;
  }
}

/* Signed-out support link (Figma 243:61356 desktop, 154:40271 mobile; added
   2026-10-14). Only rendered when logged-out-nav.php has a support URL. */
.vplus-topnav-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.vplus-topnav-support {
  display: flex;
  align-items: center;
  gap: 0.5rem;                   /* 8px */
  min-height: 2.75rem;           /* 44px mobile touch target */
  font-size: 0.8125rem;          /* 13px */
}
.vplus-topnav-support-prompt {
  display: none;                 /* mobile shows the link only */
  font-weight: 400;
  color: var(--ink-3);           /* text/muted */
}
.vplus-topnav-support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;                   /* 8px */
  min-height: 2.75rem;
  font-weight: 500;
  color: var(--accent);          /* text/brand */
  text-decoration: none;
}
.vplus-topnav-support-link .fal {
  font-size: 1rem;               /* 16px */
}
/* Mobile: headset icon only (user decision 2026-11-13, no signed-out menu).
   The text stays in the DOM, visually hidden, as the link's accessible name. */
.vplus-topnav-support-link {
  justify-content: center;
  min-width: 2.75rem;            /* 44px square touch target */
}
.vplus-topnav-support-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.vplus-topnav-support-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.vplus-topnav-support-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

@media (min-width: 992px) {
  .vplus-topnav-support {
    min-height: 0;
  }
  .vplus-topnav-support-prompt {
    display: inline;
  }
  .vplus-topnav-support-link {
    min-height: 0;
    min-width: 0;
  }
  .vplus-topnav-support-text {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }
}

/* =============================================================================
   Settings page tab bar (VP_Core_Settings_Page, added 2026-09-11)
   New, single-use component — see design-rules.md §3 "Component vocabulary"
   for the promotion note (this stays here, not shared.css, until it needs
   wp-admin reuse too; see vp-core CLAUDE.md "Settings Page Sub-pages" for
   the build-then-promote rationale). Renders below .vplus-page-header on
   the shared front-end Settings page (templates/settings-page.php) — reset
   the plain <ul>/<li> markup explicitly since no real Bootstrap CSS library
   is loaded anywhere in this codebase (see design-rules.md's Status block).
   Selectors are nested three classes deep on purpose so this always wins
   over auction.css's unscoped ".nav-tabs .nav-link { font-weight: bold; }"
   regardless of <link> enqueue order (equal specificity would otherwise be
   decided by source order, not intent).
   ============================================================================= */

.vplus-settings-tabs {
  margin-bottom: 1.5rem;
}

.vplus-settings-tabs .nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0; /* Figma Tab bar 1385:19951: tabs sit flush, 12px side padding each (4.45.0; was 8px gap) */
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.vplus-settings-tabs .nav-tabs .nav-item {
  margin: 0;
  flex-shrink: 0;
}

/* .vplus-account-tab (Users/Accounts tabs, templates/users/tabs.php) shares
   these navigation-tab rules since 4.32.0 (Figma Accounts 326:79594, Chrome /
   Navigation tab 809:221206); its active state is .is-active. */
.vplus-settings-tabs .nav-tabs .nav-link,
.vplus-account-tab {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  margin: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-weight: 400;
  font-size: 0.8125rem;
  line-height: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

/* Hover: text only. The --line-strong underline was dropped in 4.31.0
   (Figma Chrome / Navigation tab 809:221206 has no hover underline). */
.vplus-settings-tabs .nav-tabs .nav-link:hover,
.vplus-account-tab:hover {
  color: var(--ink);
}

.vplus-settings-tabs .nav-tabs .nav-link.active,
.vplus-account-tab.is-active {
  /* Navy, not indigo: --accent-2 is reserved for special attention-grabbing
     items (user decision 2026-10-09). Was var(--accent-2). */
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Focus: the shared focus ring colours (4.31.0; was a 2px navy outline).
   Drawn inset because the scrolling .nav-tabs row clips an outer ring. */
.vplus-settings-tabs .nav-tabs .nav-link:focus-visible,
.vplus-account-tab:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--focus-ring-gap, #fff), inset 0 0 0 4px rgba(28, 63, 133, 0.65);
}

/* Disabled: filled bg/muted, border/default, text/muted, never opacity
   (Figma Chrome / Navigation tab, 4.31.0). */
.vplus-settings-tabs .nav-tabs .nav-link.disabled,
.vplus-settings-tabs .nav-tabs .nav-link:disabled,
.vplus-settings-tabs .nav-tabs .nav-link[aria-disabled="true"],
.vplus-account-tab:disabled,
.vplus-account-tab[aria-disabled="true"] {
  background: var(--bg-3, #f1f2ee);
  box-shadow: inset 0 0 0 1px var(--line, #e2e3de);
  border-bottom-color: transparent;
  color: var(--ink-3, #6f716b);
  opacity: 1;
  cursor: not-allowed;
}

/* Optional count pill inside a tab (Figma Show count, 4.31.0):
   <span class="vplus-tab-count">12</span> after the label. JetBrains Mono
   12 Bold as Figma draws it (user decision D6 2026-11-16; was Regular), bg/muted +
   text/default; on the active tab bg/brand-subtle + text/brand. */
.vplus-settings-tabs .nav-tabs .nav-link .vplus-tab-count,
.vplus-account-tab .vplus-tab-count {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-2, 0.5rem);
  padding: var(--space-0-5, 0.125rem) var(--space-2, 0.5rem);
  border-radius: var(--radius-full, 9999px);
  background: var(--bg-3, #f1f2ee);
  color: var(--ink, #1d1e1b);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1rem;
}

.vplus-settings-tabs .nav-tabs .nav-link.active .vplus-tab-count,
.vplus-account-tab.is-active .vplus-tab-count {
  background: var(--accent-tint, #eef2fa);
  color: var(--accent-ink, #1c3f85);
}

/* Disabled tab: count pill bg/surface + text/muted (Figma Chrome / Navigation
   tab State=Disabled, Count pill 1104:283569 / 1104:283599; 5.7.0). */
.vplus-settings-tabs .nav-tabs .nav-link.disabled .vplus-tab-count,
.vplus-settings-tabs .nav-tabs .nav-link:disabled .vplus-tab-count,
.vplus-settings-tabs .nav-tabs .nav-link[aria-disabled="true"] .vplus-tab-count,
.vplus-account-tab:disabled .vplus-tab-count,
.vplus-account-tab[aria-disabled="true"] .vplus-tab-count {
  background: var(--surface, #fff);
  color: var(--ink-3, #6f716b);
}

@media (max-width: 767px) {
  .vplus-settings-tabs .nav-tabs .nav-link,
  .vplus-account-tab {
    min-height: 2.75rem;
  }
}

/* =============================================================================
   Global footer (templates/global/footer.php), Figma `Chrome / Footer`
   (Desktop/Default + Mobile/Default, node 155:594). Printed on the theme's
   vplus_footer action. Tokens: --line = border/default, --ink-3 = text/muted,
   --accent = text/brand. Breakpoint 992px, as the Top nav. Mobile first.
   ============================================================================= */

/* Theme .footer adds a 2rem bottom margin; the footer bar sits flush instead. */
.footer:has(> .vplus-footer) {
  margin-bottom: 0;
}

.vplus-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;                  /* 12px */
  padding: 1.5rem 1.5rem 1.75rem; /* 24px 24px 28px */
  border-top: 1px solid var(--line);
  font-family: var(--vplus-font-family-base, Inter, Arial, sans-serif);
  font-size: 0.8125rem;          /* 13px */
  line-height: normal;
  color: var(--ink-3);
}
.vplus-footer p {
  margin: 0;
}
.vplus-footer-security {
  display: flex;
  align-items: center;
  gap: 0.5rem;                   /* 8px */
}
.vplus-footer-security .fal {
  font-size: 0.75rem;            /* 12px */
}
.vplus-footer-legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;                  /* 12px */
}
.vplus-footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;                   /* 24px */
  min-height: 2.75rem;           /* 44px */
  margin: 0;
  padding: 0;
  list-style: none;
  order: -1;                     /* mobile: links above the copyright */
}
.vplus-footer-links a {
  color: var(--ink-3);
  text-decoration: none;
}
.vplus-footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.vplus-footer-links a.is-current {
  color: var(--accent);
  font-weight: 500;
}

@media (min-width: 992px) {
  .vplus-footer {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem;             /* 24px */
  }
  .vplus-footer-legal {
    flex-direction: row;
    gap: 1.5rem;                 /* 24px */
  }
  .vplus-footer-links {
    min-height: 0;
    order: 0;
  }
}
.site-main.vplus-users-page {
	width: calc(100% - 4rem);
	max-width: 76rem;
	margin: 0 auto;
	padding-top: 0; /* top gap comes from .header (core.css), 4.37.1 */
	padding-right: 0;
	padding-left: 0;
	/* Bottom gap above the footer: the shared .site-main rule in core.css (5.3.1; was 2.25rem here at every width). */
	font-size: 0.8125rem;
	line-height: 1.5;
}

.vplus-account-breadcrumb-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.vplus-account-breadcrumbs {
	display: flex;
	align-items: center;
	gap: var(--space-2, 0.5rem);
	min-width: 0;
	color: var(--ink-3);
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
}

.vplus-users-page .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--vplus-account-button-height, 1.875rem);
	padding: 0.25rem 0.75rem;
	border-radius: 0.375rem;
	font-size: 0.8125rem;
	line-height: 1.25rem;
	white-space: nowrap;
}

.vplus-users-page .vplus-page-header > .button,
.vplus-account-form-actions .button,
.vplus-account-sidebar .button,
.vplus-account-panel-heading .button {
	min-height: var(--vplus-account-action-height, 2.25rem);
}

.vplus-account-card {
	font-size: 0.8125rem;
}

/* vp-core's own Accounts cards also carry `.vplus-card` (shared.css, 4.36.1), which
   supplies the surface, border, radius, subtle shadow and padding. This copy is kept
   only for cards without it, e.g. add-on tabs that echo `card vplus-account-card`
   (knowledge-docs/accounts-extensions.md). */
.vplus-account-card:not(.vplus-card) {
	padding: 1.5rem;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	min-width: 0;
	box-shadow: none;
}

.vplus-account-card p {
	margin: 0 0 1rem;
}

.vplus-account-card p:last-child {
	margin-bottom: 0;
}

/* Match the shared form selector without changing other screens' compact inputs. */
.vplus-users-page .vplus-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not(.ts-control input):not(.select2-search__field),
.vplus-users-page .form-control,
.vplus-users-page input[type="search"] {
	width: 100%;
	height: var(--vplus-account-control-height, 2.25rem);
	min-height: var(--vplus-account-control-height, 2.25rem);
	padding: var(--vplus-account-input-padding, 0.4375rem 0.75rem);
	border: 1px solid var(--line-2);
	border-radius: 0.375rem;
	background: var(--vplus-account-input-background, #fff);
	color: var(--vplus-account-input-color, var(--ink));
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.25rem;
	box-sizing: border-box;
}

.vplus-users-page input[readonly] {
	--vplus-account-input-background: var(--bg-3);
	--vplus-account-input-color: var(--ink-3);
}

.vplus-users-page p,
.vplus-users-page li {
	font-weight: 400;
}

.vplus-account-breadcrumbs a {
	text-decoration: none;
}

.vplus-account-breadcrumbs a:hover {
	text-decoration: underline;
}

.vplus-account-field-hint {
	color: var(--ink-3);
	font-size: 0.75rem;
	font-weight: 400;
}

.vplus-account-identity {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.vplus-account-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 2rem;
	height: 2rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--bg-3);
	color: var(--ink);
	font-size: 0.6875rem;
	font-weight: 500;
}

.vplus-account-identity-copy {
	min-width: 0;
}

.vplus-account-identity-copy > strong {
	font-size: 0.875rem;
	font-weight: 600;
}

/* =============================================================================
   Status pill (shared status badge; Figma "Chrome / Status badge")
   Added vp-core 4.25.0. THE one status-badge look for every VP+ location.
   Add-ons consume this class; they must not define their own badge styles.

   MARKUP CONTRACT
     <span class="vplus-status-pill vplus-status-pill--{tone}">Label</span>
       {tone} = success | warning | danger | neutral (only these four exist;
       there is no navy/info tone). A bare .vplus-status-pill is neutral.
     - One element, text label only. The 6px dot is drawn by ::before, so do
       NOT add a .vplus-status-dot, an <img> or an icon inside it.
     - No Bootstrap dependency: do not combine with .badge / .rounded-pill /
       .bg-* (those are !important and would override the tint).
     - Optional Live pulse: add the modifier .vplus-status-pill--pulse to
       animate the dot's opacity (1.5s loop, as the old .vplus-status-dot--pulse).
       Opt-in, normally on Live only. Disabled under prefers-reduced-motion.
       PHP: vplus_status_pill( $label, $tone, [ 'pulse' => true ] ).
     - Display only: no cursor, no hover. Put a title attribute on it if the
       label needs a longer explanation.
     - PHP: vplus_status_pill( $label, $tone, $args ) renders it;
       vplus_status_pill_tone( $status_slug ) maps a status slug to a tone
       (core/functions.php). Do not hand-write the tone mapping in add-ons.
   Shape (Figma): 22px tall, full radius, hugs its label (no min-width, content start-aligned; changed vp-core 5.8.1 to match Figma), 1px border,
   padding 0 8px, gap 4px, Inter Medium 11px, nowrap. Tokens come from
   core.css, each with a literal fallback so the pill also renders where
   core.css is not loaded (wp-admin uses a components.css-only handle).

   TONE DOT (added vp-core 4.27.0): colour a standalone dot by tone, from the
   same tokens as the pill. Add-ons never define status colours.
     <span class="vplus-status-tone-dot vplus-status-tone-dot--{tone}"></span>
       {tone} = success | warning | danger | neutral (a bare
       .vplus-status-tone-dot is neutral).
     These classes only set the custom property --vplus-pill-dot on the
     element (it inherits to ::before/::after and children); they draw nothing.
     The add-on keeps its own dot shape and paints it with
       background: var(--vplus-pill-dot);
     e.g. a ::before dot on an element carrying the classes, or the element
     itself when it is the dot. No colour literal or token is needed add-on
     side. Do not use inside a .vplus-status-pill (it has its own tone).
   ============================================================================= */

.vplus-status-pill {
	--vplus-pill-dot: var(--ink-3, #6f716b);
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	box-sizing: border-box;
	gap: 0.25rem;
	height: 1.375rem;
	max-width: 100%;
	margin: 0;
	padding: 0 0.5rem;
	border: 1px solid var(--line-2, #d8dad4);
	border-radius: 9999px;
	background: var(--bg-3, #f1f2ee);
	color: var(--ink, #1d1e1b);
	font-family: inherit;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: normal;
	white-space: nowrap;
	vertical-align: middle;
}

.vplus-status-pill::before {
	content: "";
	flex: 0 0 0.375rem;
	width: 0.375rem;
	height: 0.375rem;
	border-radius: 50%;
	background: var(--vplus-pill-dot);
}

.vplus-status-tone-dot {
	--vplus-pill-dot: var(--ink-3, #6f716b);
}

.vplus-status-tone-dot--success,
.vplus-status-pill--success {
	--vplus-pill-dot: var(--success, #187a43);
}

.vplus-status-tone-dot--warning,
.vplus-status-pill--warning {
	--vplus-pill-dot: var(--warn, #b45309);
}

.vplus-status-tone-dot--danger,
.vplus-status-pill--danger {
	--vplus-pill-dot: var(--danger, #b91c1c);
}

.vplus-status-tone-dot--neutral,
.vplus-status-pill--neutral {
	--vplus-pill-dot: var(--ink-3, #6f716b);
}

.vplus-status-pill--success {
	background: var(--success-tint, #effcf5);
	border-color: var(--success-border, #c5f1d7);
	color: var(--success, #187a43);
}

.vplus-status-pill--warning {
	background: var(--warn-tint, #fffbeb);
	border-color: var(--warn-border, #f8e69c);
	color: var(--warn, #b45309);
}

.vplus-status-pill--danger {
	background: var(--danger-tint, #fff2f3);
	border-color: var(--danger-border, #f7cfd3);
	color: var(--danger, #b91c1c);
}

.vplus-status-pill--neutral {
	background: var(--bg-3, #f1f2ee);
	border-color: var(--line-2, #d8dad4);
	color: var(--ink, #1d1e1b);
}

@keyframes vplus-status-pill-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.3; }
}

.vplus-status-pill--pulse::before {
	animation: vplus-status-pill-pulse 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
	.vplus-status-pill--pulse::before {
		animation: none;
	}
}

/* =============================================================================
   Count badge (shared; Figma "Chrome / Count badge" set 1623:934762)
   Added vp-core 5.5.0. A small pill that shows a number (a tab count, a list
   count, an alert count). Consumers add the class; they do not restyle it.

   MARKUP CONTRACT
     <span class="vplus-count-badge">3</span>                              neutral
     <span class="vplus-count-badge vplus-count-badge--warning">3</span>   amber
     - Text only (a number, or "9+"). Add aria-hidden="true" when the number is
       decorative and a nearby label carries the meaning.
     - [hidden] hides it. No positioning here: placing the badge (absolute on a
       button corner, inline in a tab, etc.) is the consumer's job.
   Shape (Figma): 22px tall, min-width = height (a circle for one digit), full
   radius, 1px border, padding 0 8px, Inter Medium 11px, tabular numerals.
   Neutral = bg/muted + border/strong + text/default (same tokens as the pill
   and .badge-lighter). Warning = fill bg/warning (amber/700 = --warn), border
   border/warning (--warn-border), text/inverse (white); 5.02:1 contrast.
   Tokens carry literal fallbacks (wp-admin loads components.css without core.css).
   ============================================================================= */

.vplus-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 1.375rem;
	min-width: 1.375rem;
	margin: 0;
	padding: 0 var(--space-2, 0.5rem);
	border: 1px solid var(--line-2, #d8dad4);
	border-radius: var(--radius-full, 9999px);
	background: var(--bg-3, #f1f2ee);
	color: var(--ink, #1d1e1b);
	font-family: inherit;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
	vertical-align: middle;
}

.vplus-count-badge--warning {
	background: var(--warn, #b45309);
	border-color: var(--warn-border, #f8e69c);
	color: var(--text-inverse, #fff); /* Figma text/inverse (5.7.0 token) */
}

.vplus-count-badge[hidden] {
	display: none;
}

/* Status slug tones: ONE definition (moved here from core.css and auction.css,
   vp-core 4.25.0). The slug -> tone table mirrors vplus_status_pill_tone() in
   core/functions.php. Unlisted slugs are neutral. Upcoming and Reconciliation
   are Warning (amber) everywhere, user decision 2026-11-09.
   Report status dots: <span class="fas fa-circle vplus-status-{slug}">
   takes the tone's dot colour. */
.vplus-status-live,
.vplus-status-live-synced,
.vplus-status-sold,
.vplus-status-sold-floor,
.vplus-status-accepted {
	color: var(--success, #187a43);
}
.vplus-status-upcoming,
.vplus-status-reconciliation,
.vplus-status-pending,
.vplus-status-pending-floor,
.vplus-status-unsold,
.vplus-status-review {
	color: var(--warn, #b45309);
}
.vplus-status-rejected {
	color: var(--danger, #b91c1c);
}
.vplus-status-draft,
.vplus-status-draft-synced,
.vplus-status-preview,
.vplus-status-archived,
.vplus-status-reconciled,
.vplus-status-withdrawn {
	color: var(--ink-3, #6f716b);
}

.vplus-account-heading,
.vplus-audit-heading {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.vplus-account-heading h2 {
	font-size: 1.375rem;
	margin: 0;
}

.vplus-account-card > h2,
.vplus-account-panel-heading h2 {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

.vplus-account-card > .vplus-account-fields {
	margin-top: 0;
}

.vplus-account-columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 21.375rem;
	gap: 1.5rem;
	align-items: start;
}

.vplus-account-main,
.vplus-account-sidebar {
	min-width: 0;
	display: grid;
	gap: 1rem;
}

.vplus-account-main > .card,
.vplus-account-sidebar > .card {
	margin-bottom: 0;
}

.vplus-account-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.vplus-account-summary p {
	margin: 0.125rem 0 0;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--ink-3);
	overflow-wrap: anywhere;
}

/* Role and capabilities editor (templates/users/capabilities.php; Figma
   Accounts / Capabilities summary, Capability group, Capability row).
   Checkboxes are the shared .form-check-input; Added / Removed are the
   shared warning status pill. */
.vplus-account-capabilities {
	display: grid;
	gap: var(--space-4, 1rem);
	font-size: 0.8125rem;
	color: var(--ink);
}

.vplus-account-capabilities > .alert,
.vplus-account-capabilities > p {
	margin: 0;
}

.vplus-account-capability-summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3, 0.75rem);
	padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
	border: 1px solid var(--line);
	border-radius: var(--radius-md, 0.5rem);
	background: var(--bg-2);
}

.vplus-account-capability-summary--custom {
	border-color: var(--warn-border);
	background: var(--warn-tint);
}

.vplus-account-capability-summary-text {
	margin: 0;
}

.vplus-account-capability-group {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.vplus-account-capability-group-title {
	float: none;
	width: auto;
	margin: 0 0 var(--space-2, 0.5rem);
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.25rem;
	color: var(--ink);
}

.vplus-account-capability-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-2, 0.5rem) var(--space-4, 1rem);
}

.vplus-account-capability {
	margin: 0;
}

.vplus-account-capability .form-check-label {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-2, 0.5rem);
	overflow-wrap: anywhere;
}

.vplus-account-capability.is-locked .form-check-label {
	color: var(--ink-3);
}

.vplus-account-capability-reason {
	margin: var(--space-0-5, 0.125rem) 0 0;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--ink-3);
}

.vplus-account-role-field {
	max-width: calc(50% - 0.5rem);
	display: grid;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.vplus-account-columns--single {
	grid-template-columns: minmax(0, 1fr);
	max-width: 53.25rem;
}

.vplus-account-form > .vplus-account-card {
	margin-top: 1.5rem;
}

.vplus-account-username {
	grid-column: 1 / -1;
}

.vplus-account-card h3 {
	font-size: 0.8125rem;
	font-weight: 500;
	margin: 1.25rem 0 0.75rem;
}

.vplus-account-card .vplus-account-security-divider {
	border-top: 1px solid var(--line);
	padding-top: 1.25rem;
}

.vplus-account-sidebar .vplus-account-panel-heading {
	margin-bottom: 0.75rem;
}

.vplus-account-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.vplus-account-fields label {
	display: grid;
	gap: 0.5rem;
	min-width: 0;
	font-size: 0.8125rem;
}

.vplus-account-panel-heading,
.vplus-account-form-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.vplus-account-panel-heading h2 {
	margin-bottom: 0;
}

.vplus-account-form-actions {
	justify-content: flex-end;
	margin: 1.5rem 0 0;
}

.vplus-account-address {
	padding: 0.75rem;
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	background: var(--bg-2);
}

.vplus-account-address.is-dragging {
	opacity: 0.65;
	background: var(--bg);
}

.vplus-account-address-row {
	display: grid;
	grid-template-columns: 1rem minmax(8rem, 0.7fr) minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.75rem;
}

.vplus-account-address-name {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--space-2, 0.5rem);
	overflow-wrap: anywhere;
}

.vplus-account-address-summary {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--ink-3);
}

.vplus-account-address-actions {
	display: flex;
	gap: 0.5rem;
}

.vplus-account-drag,
.vplus-account-tab-scroll {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--ink-3);
}

.vplus-account-drag {
	min-height: 2.5rem;
	cursor: grab;
	touch-action: none;
}

.vplus-account-address-readonly {
	grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1fr);
	padding: 1rem;
	margin-top: 0.75rem;
}

.vplus-account-tabs {
	position: relative;
	display: flex;
	margin-bottom: 1.5rem;
}

.vplus-account-tab-viewport {
	display: flex;
	min-width: 0;
	flex: 1;
	overflow-x: auto;
	scrollbar-width: none;
}

.vplus-account-tab-viewport::-webkit-scrollbar {
	display: none;
}

/* .vplus-account-tab: shared navigation-tab rules (see .vplus-settings-tabs
   above, 4.32.0). */

.vplus-account-drag:focus-visible,
.vplus-account-tab-scroll:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.vplus-account-tab-scroll {
	flex: 0 0 2.75rem;
	min-height: 2.75rem;
}

.vplus-account-tabs.has-more::after {
	content: '';
	position: absolute;
	right: 2.75rem;
	top: 0;
	bottom: 0;
	width: 1.5rem;
	background: linear-gradient(to right, transparent, var(--bg));
	pointer-events: none;
}

.vplus-users-page [hidden] {
	display: none;
}

.vplus-users-page .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vplus-account-details {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 1rem 0 0;
}

.vplus-account-facts .vplus-account-details {
	margin-top: 0;
}

.vplus-account-profile-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: start;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.vplus-account-business-details {
	margin: 0;
}

.vplus-account-business-details > div {
	display: grid;
	grid-template-columns: 9rem minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.5rem 0;
	border-bottom: 1px solid var(--line);
}

.vplus-account-business-details > div:last-child {
	border-bottom: 0;
}

.vplus-account-business-details dt {
	font-weight: 400;
	color: var(--ink-3);
}

.vplus-account-business-details dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.vplus-account-details dt {
	font-size: 0.6875rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ink-3);
}

.vplus-account-details dd {
	font-size: 0.8125rem;
	margin: 0.25rem 0 0;
	overflow-wrap: anywhere;
}

.vplus-audit-heading {
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.vplus-audit-heading h2 {
	font-size: 0.875rem;
	margin: 0 0 0.25rem;
}

.vplus-audit-heading p {
	margin: 0 0 0.25rem;
}

.vplus-audit-filter {
	display: flex;
	gap: 0.5rem;
	min-width: 17rem;
}

.vplus-audit-filter .select2-container {
	flex: 1;
	min-width: 0;
}

.vplus-audit-row {
	display: grid;
	grid-template-columns: 11rem 13rem minmax(0, 1fr);
	gap: 1rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.8125rem;
	overflow-wrap: anywhere;
}

.vplus-audit-row time {
	color: var(--ink-3);
}

.vplus-audit-more {
	margin-top: 1rem;
}

.vplus-users-filters {
	display: grid;
	grid-template-columns: minmax(10rem, 1fr) 12rem 12rem auto;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	border: 1px solid var(--line);
	border-radius: 0.5rem;
	background: var(--surface, #fff);
}

.vplus-form.vplus-users-filter-form {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
}

.vplus-users-filters > .button {
	min-height: var(--vplus-account-control-height, 2.25rem);
}

.vplus-users-role-views {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.vplus-users-role-views a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 1.875rem;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--line-2);
	margin-left: -1px;
	background: #fff;
	color: var(--ink-2);
	text-decoration: none;
}

/* .vplus-users-role-count: the role-view counts use the shared
   .vplus-count-badge (Figma Chrome / Button group item "Show count" =
   Chrome / Count badge Tone=Neutral, 5.7.0); the class stays as a hook only. */

.vplus-users-role-views a:first-child {
	border-radius: 0.375rem 0 0 0.375rem;
	margin-left: 0;
}

.vplus-users-role-views a:last-child {
	border-radius: 0 0.375rem 0.375rem 0;
}

.vplus-users-role-views a[aria-current] {
	background: var(--selected-bg);
	color: var(--accent);
	font-weight: 500;
}

.vplus-users-search {
	--vplus-account-input-padding: 0.4375rem 2.25rem;
	position: relative;
	min-width: 0;
}

.vplus-users-search > i {
	position: absolute;
	top: 50%;
	left: 0.75rem;
	transform: translateY(-50%);
	color: var(--ink-3);
}

.vplus-users-search > [data-users-loading] {
	top: calc(50% - 0.40625rem);
	left: auto;
	right: 0.75rem;
}

.vplus-users-filter {
	min-width: 0;
}

.vplus-users-filter .select2-container {
	width: 100% !important;
}

.vplus-users-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 1.5rem 0;
}

.vplus-users-toolbar p {
	margin: 0;
}

.vplus-users-toolbar .select2-container {
	width: 9rem !important;
}

/* Figma User List toolbar (487:998, 4.32.0): pagination sits between the
   summary and the per page / sort controls; per page select 84px. */
.vplus-users-toolbar .vplus-users-pagination ul {
	margin: 0;
}
@media (min-width: 1101px) {
	.vplus-users-toolbar #vplus-users-per-page + .select2-container {
		width: 5.25rem !important;
	}
}

.vplus-users-filter-form > .vplus-users-filters,
.vplus-users-toolbar {
	--bs-body-font-size: 0.8125rem;
}

.vplus-users-directory {
	border: 1px solid var(--line);
	border-radius: var(--radius-lg, 0.75rem);
	background: #fff;
	box-shadow: var(--shadow-subtle, 0 1px 1px rgba(0, 0, 0, 0.04)); /* user D4: shadow on every table */
	overflow: visible;
}

.vplus-users-table-heading,
.vplus-users-list li {
	display: grid;
	grid-template-columns: minmax(9rem, 1.3fr) minmax(8rem, 1.2fr) minmax(6rem, 0.7fr) minmax(6rem, 0.8fr) 3rem 5rem minmax(6rem, 0.8fr) auto;
	align-items: center;
	gap: var(--space-3, 0.75rem); /* user D5: Figma 10 snapped to 12 */
	padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
}

.vplus-users-table-heading {
	border-radius: var(--radius-lg, 0.75rem) var(--radius-lg, 0.75rem) 0 0;
	min-height: 2.25rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	background: var(--bg-2);
	border-bottom: 1px solid var(--line);
	color: var(--ink-3);
	font-size: 0.6875rem;
	font-weight: 600; /* Figma 11 SemiBold (was 500) */
	text-transform: uppercase;
}

.vplus-users-table-heading > :last-child {
	text-align: right;
}

.vplus-users-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.vplus-users-list li {
	border-bottom: 1px solid var(--line);
	overflow-wrap: anywhere;
	font-size: 0.8125rem;
}

.vplus-users-list .vplus-user-suspended {
	background: var(--bg-2);
	color: var(--ink-3);
}

.vplus-users-name {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

.vplus-users-name:hover {
	color: var(--accent);
	text-decoration: underline;
}

.vplus-users-email,
.vplus-users-phone,
.vplus-users-capabilities {
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.vplus-users-email > span,
.vplus-users-phone > span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vplus-users-email > i,
.vplus-users-phone > i,
.vplus-users-capabilities > i {
	display: none;
}

/* Desktop row: count stacked over the "Custom (+N / -N)" warning pill, no
   gap (Figma User Row Capabilities=Custom; the row stays 59px). */
.vplus-users-capability-summary {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	min-width: 0;
}

.vplus-users-capabilities--custom .vplus-users-capability-count {
	color: var(--warn);
}

.vplus-users-actions {
	display: flex;
	gap: var(--space-2, 0.5rem);
	justify-content: flex-end;
}

.vplus-users-action-dropdown > .button {
	width: var(--vplus-account-button-height, 1.875rem);
	padding: 0;
}

.vplus-users-action-menu {
	--bs-dropdown-min-width: 13.75rem;
	--bs-dropdown-padding-y: 0.375rem;
	--bs-dropdown-border-color: var(--line);
	--bs-dropdown-border-radius: 0.5rem;
	--bs-dropdown-box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.12);
	box-shadow: var(--bs-dropdown-box-shadow);
}

.vplus-form.vplus-users-action-form {
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
}

.vplus-users-action-menu .dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: var(--vplus-account-control-height, 2.25rem);
	padding: 0.5rem 0.75rem;
	line-height: 1.25rem;
}

.vplus-users-action-menu .dropdown-item > i {
	width: 0.75rem;
	font-size: 0.75rem;
	text-align: center;
}

.vplus-users-role {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}

.vplus-users-list li:last-child {
	border-radius: 0 0 0.5rem 0.5rem;
	border-bottom: 0;
}

.vplus-users-list strong,
.vplus-users-list .vplus-account-identity-copy > span {
	display: block;
}

.vplus-users-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 1rem 0;
}

.vplus-users-pagination a,
.vplus-users-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 2.25rem;
	padding: 0.25rem 0.5rem;
	border: 1px solid var(--line);
	border-radius: 0.375rem;
	background: var(--bg);
}

.vplus-users-pagination .current {
	background: var(--accent);
	color: var(--bg);
}

@media (max-width: 1100px) {
	.vplus-users-table-heading {
		display: none;
	}

	.vplus-users-directory {
		border: 0;
		border-radius: 0;
		background: transparent;
		overflow: visible;
	}

	.vplus-users-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem;
	}

	.vplus-users-list li {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 0.5rem;
		padding: 1rem;
		border: 1px solid var(--line);
		border-radius: 0.75rem;
		background: #fff;
	}

	.vplus-users-list li:last-child {
		border-bottom: 1px solid var(--line);
	}

	.vplus-users-list .vplus-account-identity {
		grid-column: 1;
		grid-row: 1;
	}

	.vplus-users-role {
		grid-column: 2;
		grid-row: 1;
		justify-content: flex-end;
		align-self: start;
		pointer-events: none;
	}

	.vplus-users-email,
	.vplus-users-phone,
	.vplus-users-capabilities,
	.vplus-users-actions {
		grid-column: 1 / -1;
	}

	.vplus-users-capabilities {
		grid-row: 4;
	}

	.vplus-users-email > i,
	.vplus-users-phone > i,
	.vplus-users-capabilities > i {
		display: inline-block;
		color: var(--ink-3);
	}

	/* Cards: the pill follows the count and wraps (Figma User Row Card Custom). */
	.vplus-users-capability-summary {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--space-1, 0.25rem);
	}

	.vplus-users-status {
		justify-self: start;
	}

	.vplus-users-actions .button:first-child {
		flex: 1;
	}

	.vplus-users-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vplus-users-search {
		grid-column: 1 / -1;
	}
}

@media (max-width: 991px) {
	.vplus-account-columns {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.site-main.vplus-users-page {
		width: calc(100% - 2rem);
	}

	.vplus-users-role-views {
		display: none;
	}

	.vplus-account-summary {
		gap: 1rem;
	}

	.vplus-account-summary > .vplus-account-heading {
		width: 100%;
		gap: 0.5rem;
	}

	.vplus-account-profile-columns,
	.vplus-users-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.vplus-account-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.vplus-account-role-field {
		max-width: none;
	}

	.vplus-account-capability-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.vplus-account-capability-summary .button {
		width: 100%;
	}

	.vplus-account-address-row {
		grid-template-columns: 0.75rem minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 0.5rem;
		row-gap: 0.125rem;
	}

	.vplus-account-address-name {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
	}

	.vplus-account-drag {
		grid-column: 1;
		grid-row: 1 / span 2;
		padding: 0;
	}

	.vplus-account-address-summary {
		grid-column: 2;
		grid-row: 2;
	}

	.vplus-account-address-actions {
		grid-column: 3;
		grid-row: 1 / span 2;
	}

	.vplus-account-address-actions .button {
		min-height: 2.75rem;
		min-width: 2.75rem;
		padding: 0.5rem;
	}

	.vplus-account-address-actions .vplus-account-action-label {
		display: none;
	}

	.vplus-account-form-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.vplus-account-sidebar .button,
	.vplus-audit-more {
		width: 100%;
	}

	.vplus-account-address-readonly {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.5rem;
	}

	.vplus-account-business-details > div {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.125rem;
	}

	.vplus-account-card:not(.vplus-card) {
		padding: 1.25rem 1rem;
	}

	/* Accounts cards switch to 20/16 at this 768px breakpoint, before .vplus-card's 576px one. */
	.card.vplus-card.vplus-account-card {
		--vplus-card-padding-y: var(--space-5, 1.25rem);
		--vplus-card-padding-x: var(--space-4, 1rem);
	}

	.vplus-account-details,
	.vplus-audit-heading {
		flex-direction: column;
		gap: 0.75rem;
	}

	.vplus-audit-filter {
		width: 100%;
		min-width: 0;
	}

	.vplus-audit-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.25rem;
	}

	.vplus-users-toolbar {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.vplus-users-toolbar .vplus-list-toolbar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vplus-users-toolbar .select2-container {
		width: 100% !important;
	}

	.vplus-audit-more {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 575px) {
	.vplus-users-page {
		--vplus-account-control-height: 2.75rem;
		--vplus-account-button-height: 2.75rem;
		--vplus-account-action-height: 2.75rem;
	}

	.vplus-account-breadcrumb-row .button {
		min-height: 2.25rem;
	}
}

/* =============================================================================
   Metrics strip (Figma Chrome / Metrics strip 1121:361147 + Chrome / Metric
   1121:361100), vp-core 4.33.0. Shared component; first user is the auction
   report (templates/loop/content-report.php).

   MARKUP
     <div class="vplus-metrics-strip">
       <div class="vplus-metric">
         <span class="vplus-metric-label">Online bids</span>
         <span class="vplus-metric-value">1,426</span>
         <span class="vplus-metric-context">65.3% of all bids</span>  (optional)
       </div>
       ... 1 to 6 metrics
     </div>
   Desktop: one card row, label + value (22 SemiBold) + context inline on the
   baseline, 1px dividers between metrics. Below 576px: equal columns, label
   above value, context hidden (Figma Mobile layout). Tokens with literal
   fallbacks (components.css also loads in wp-admin without core.css).
   ============================================================================= */

.vplus-metrics-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2, 0.5rem) var(--space-4, 1rem);
  padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
  background: #fff;
  border: 1px solid var(--line, #e2e3de);
  border-radius: var(--radius-lg, 0.75rem);
  box-shadow: var(--shadow-subtle, 0 1px 1px rgba(0, 0, 0, 0.04));
}

.vplus-metric {
  display: flex;
  align-items: baseline;
  gap: var(--space-2, 0.5rem);
  min-width: 0;
  white-space: nowrap;
}

.vplus-metric + .vplus-metric {
  padding-left: var(--space-4, 1rem);
  border-left: 1px solid var(--line, #e2e3de);
}

.vplus-metric-label,
.vplus-metric-context {
  font-size: 0.8125rem;          /* 13px */
  line-height: 1.25rem;          /* 20px */
  color: var(--ink-3, #6f716b);
}

.vplus-metric-value {
  font-size: 1.375rem;           /* 22px */
  font-weight: 600;
  line-height: 1.75rem;
  color: var(--ink, #1d1e1b);
}

.vplus-metric-context {
  margin-left: calc(var(--space-0-5, 0.125rem) - var(--space-2, 0.5rem)); /* Figma: 2px after the value */
}

@media (max-width: 575px) {
  .vplus-metrics-strip {
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-2, 0.5rem) var(--space-3, 0.75rem);
  }

  .vplus-metric {
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    white-space: normal;
  }

  .vplus-metric + .vplus-metric {
    padding-left: var(--space-2, 0.5rem);
  }

  .vplus-metric-label {
    font-size: 0.6875rem;        /* 11px */
    line-height: 1rem;
  }

  .vplus-metric-value {
    font-size: 0.875rem;         /* 14px */
    line-height: 1.25rem;
  }

  .vplus-metric-context {
    display: none;
  }
}

/* =============================================================================
   Users: selection, bulk actions, Import / Export (vp-core 4.44.0, user decision
   D10 2026-11-16; Figma Accounts Users 487:998, Import users dialog 496:4749 /
   496:4920). Markup: templates/users/list.php, users/import-dialog.php;
   script: assets/js/users-data.js.
   ============================================================================= */

.vplus-users-role-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--space-3, 0.75rem);
}

.vplus-users-data-actions {
	display: flex;
	gap: var(--space-2, 0.5rem);
	margin-left: auto;
	margin-bottom: 1.25rem;
}

/* Desktop: text-only screen actions (design-rules §3); the icon shows on mobile only. */
.vplus-users-data-actions .button > i {
	display: none;
}

/* Figma Chrome / Bulk actions bar (5.2.3): "Bulk actions" button on the left, selected count beside it. */
.vplus-users-bulk {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-3, 0.75rem);
	margin-bottom: var(--space-4, 1rem);
}

.vplus-users-bulk [data-users-selected-count] {
	margin: 0;
}

.vplus-users-bulk [data-users-selected-count]:empty {
	display: none;
}

.vplus-users-select-all-mobile {
	display: none;
	margin: 0 auto 0 0;
}

.vplus-users-select {
	display: flex;
	align-items: center;
}

.vplus-users-select .form-check-input {
	margin: 0;
}

.vplus-users-directory--selectable .vplus-users-table-heading,
.vplus-users-directory--selectable .vplus-users-list li {
	grid-template-columns: 1rem minmax(9rem, 1.3fr) minmax(8rem, 1.2fr) minmax(6rem, 0.7fr) minmax(6rem, 0.8fr) 3rem 5rem minmax(6rem, 0.8fr) auto;
}

@media (max-width: 1100px) {
	.vplus-users-select-all-mobile {
		display: block;
	}

	.vplus-users-directory--selectable .vplus-users-list li {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.vplus-users-directory--selectable .vplus-users-list .vplus-users-select {
		grid-column: 1;
		grid-row: 1;
		align-self: start;
		padding-top: var(--space-2, 0.5rem);
	}

	.vplus-users-directory--selectable .vplus-users-list .vplus-account-identity {
		grid-column: 2;
	}

	.vplus-users-directory--selectable .vplus-users-role {
		grid-column: 3;
	}
}

@media (max-width: 767px) {
	/* Figma mobile: Import / Export are 44px icon-only buttons beside Add user. */
	.vplus-users-role-bar {
		justify-content: flex-start;
	}

	.vplus-users-data-actions {
		margin-left: 0;
	}

	.vplus-users-data-actions .button {
		min-width: 2.75rem;
		min-height: 2.75rem;
		padding: 0;
	}

	.vplus-users-data-actions .button > i {
		display: inline-block;
	}

	.vplus-users-data-actions .button > span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* Import users dialog (Chrome / Modal, 640px desktop). */
.vplus-users-import-modal {
	max-width: 40rem;
}

.vplus-users-import-modal .vplus-modal-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-4, 1rem);
}

.vplus-users-import-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-2, 0.5rem);
	padding: var(--space-6, 1.5rem) var(--space-4, 1rem);
	border: 1px dashed var(--line-2, #d8dad4);
	border-radius: var(--radius-md, 0.5rem);
	background: var(--bg-2, #f7f7f5);
	text-align: center;
	cursor: pointer;
}

.vplus-users-import-drop.is-dragover,
.vplus-users-import-drop:focus-within {
	border-color: var(--accent, #1c3f85);
}

.vplus-users-import-drop:focus-within {
	box-shadow: var(--focus-ring);
}

.vplus-users-import-drop > i {
	font-size: 2rem;
	color: var(--ink-3, #6f716b);
}

.vplus-users-import-drop-title {
	font-weight: 600;
	color: var(--ink, #1d1e1b);
}

.vplus-users-import-drop-hint {
	font-size: var(--bs-body-font-size-sm, 0.75rem);
	color: var(--ink-3, #6f716b);
}

.vplus-users-import-template {
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2, 0.5rem);
	margin-top: calc(-1 * var(--space-2, 0.5rem));
}

.vplus-users-import-file {
	display: flex;
	align-items: center;
	gap: var(--space-2, 0.5rem);
	padding: var(--space-3, 0.75rem);
	border: 1px solid var(--line, #e2e3de);
	border-radius: var(--radius-sm, 0.375rem);
}

.vplus-users-import-file[hidden],
.vplus-users-import-drop[hidden] {
	display: none;
}

.vplus-users-import-file-copy {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-0-5, 0.125rem);
	min-width: 0;
}

.vplus-users-import-file-name {
	font-weight: 500;
	overflow-wrap: anywhere;
}

.vplus-users-import-file-meta {
	font-size: var(--bs-body-font-size-sm, 0.75rem);
	color: var(--ink-3, #6f716b);
}

.vplus-users-import-modal [data-users-import-notice] {
	display: flex;
	gap: var(--space-3, 0.75rem);
	margin: 0;
}

.vplus-users-import-modal [data-users-import-notice][hidden] {
	display: none;
}

.vplus-users-import-notice-title {
	margin: 0 0 var(--space-1, 0.25rem);
	font-weight: 600;
}

.vplus-users-import-modal [data-users-import-notice] p {
	margin: 0;
}

.vplus-users-import-issues {
	margin: var(--space-1, 0.25rem) 0 0;
	padding-left: var(--space-4, 1rem);
}

.vplus-users-import-issues:empty {
	display: none;
}

.vplus-users-import-field {
	display: flex;
	flex-direction: column;
	gap: var(--space-2, 0.5rem);
	margin: 0;
	padding: 0;
	border: 0;
}

.vplus-users-import-field .form-label {
	margin: 0;
	font-weight: 600;
}

.vplus-users-import-field .form-text {
	margin: 0;
	color: var(--ink-3, #6f716b);
}

@media (max-width: 575.98px) {
	.vplus-users-import-modal .vplus-modal-footer .button {
		flex: 1;
		min-height: 2.75rem;
	}
}
