/* =============================================================================
 * Via Hive Admin - LIST LAYER (D-434, Founder verdict: "looks like an internal engineering/admin template").
 * -----------------------------------------------------------------------------
 * Loaded right after vh2-style.css. Styles the shared list pattern used by Clients, Providers, Transactions,
 * Earnings, Financial Alerts, Ratings and Reviews, Review Reports and every other list that mounts
 * <custom-table>:
 *   - summary strip (.vhl-stats / .vhl-stat): compact filter tiles, no tile inside a tile
 *   - toolbar (.vhl-toolbar): bulk actions left, search right; filter bars (.vhl-filters)
 *   - table (.vhl-table): primary + secondary text in a cell, 48px+ rows, 13px+ text, sentence-case headers,
 *     money right-aligned with tabular figures, truncation with title tooltips
 *   - chips (.vhl-chip), identity cell (.vhl-id), row actions (.vhl-rowact): ONE primary action plus a
 *     "more actions" menu (the menu opens the existing confirmation modals)
 *   - footer (.vhl-footer): count, rows per page, pagination
 * The wide-table rule: only the TABLE container scrolls sideways (.vhl-scroll). Never overflow:hidden on .tile,
 * .panel or .modal-content (that clipped popups before). Colours come ONLY from the --vh2-* tokens; the D-430
 * neutral canvas, orange primary pill and soft-blue secondary are kept. Dark mode follows the tokens.
 * Selectors carry the :root body prefix and !important where the legacy bridge (viahive-admin.css) uses it.
 * ========================================================================== */

/* ------------------------------------------------------------ summary strip */
:root body .vhl-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
:root body .vhl-stat {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 12px 14px 12px 16px;
  text-align: left;
  font-family: inherit;
  color: var(--vh2-text-primary);
  background: var(--vh2-surface);
  border: 1px solid var(--vh2-border-default);
  border-radius: 12px;
  box-shadow: inset 4px 0 0 var(--vh2-border-strong);
  cursor: pointer;
  transition: border-color var(--vh2-dur-fast) var(--vh2-ease-standard), background var(--vh2-dur-fast) var(--vh2-ease-standard);
}
:root body .vhl-stats--static .vhl-stat { cursor: default; }
:root body .vhl-stat--ok { box-shadow: inset 4px 0 0 var(--vh2-border-strong); }   /* brand polish: a positive count is not a green outcome; amber / red edges still flag work */
:root body .vhl-stat--warn { box-shadow: inset 4px 0 0 var(--vh2-warning-fg); }
:root body .vhl-stat--bad { box-shadow: inset 4px 0 0 var(--vh2-danger-fg); }
:root body .vhl-stat--info { box-shadow: inset 4px 0 0 var(--vh2-interactive); }
:root body button.vhl-stat:hover { border-color: var(--vh2-focus-ring); }
:root body button.vhl-stat:focus-visible { outline: 0; box-shadow: var(--vh2-focus-glow); }
:root body .vhl-stat.is-active { background: var(--vh2-brand-soft); border-color: var(--vh2-brand); }
:root body .vhl-stat__value {
  font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; color: var(--vh2-text-primary);
}
:root body .vhl-stat__label { font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--vh2-text-secondary); overflow-wrap: anywhere; }
:root body .vhl-stat.is-active .vhl-stat__label { color: var(--vh2-brand-text); }

/* ------------------------------------------------------------------ toolbar */
:root body custom-table .vhl-toolbar {
  padding: 14px 16px !important;
  background: transparent !important;
  border-bottom: 1px solid var(--vh2-border-subtle) !important;
}
:root body custom-table .vhl-toolbar__row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; margin: 0 !important;
}
:root body custom-table .vhl-toolbar__row > [class*="col-"] { float: none; width: auto; padding: 0 !important; min-height: 0; }
:root body custom-table .vhl-toolbar__row > .col-sm-12 { flex: 0 0 100%; }
:root body custom-table .vhl-toolbar__row > .col-sm-12:not(:has(li.all)) { display: none; }
:root body custom-table .vhl-toolbar__bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1 1 320px; }
:root body custom-table .vhl-toolbar__bulk select.form-control { width: auto !important; min-width: 150px; height: 36px; font-size: 14px; }
:root body custom-table .vhl-toolbar__bulk .btn { height: 36px; font-size: 14px; }
:root body custom-table .vhl-toolbar__selected { font-size: 14px; font-weight: 600; color: var(--vh2-brand-text); }
:root body custom-table .vhl-toolbar__send { display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; width: auto !important; }
:root body custom-table .vhl-toolbar__search { flex: 0 1 380px; min-width: 240px; }
:root body .vhl-search { position: relative; width: 100%; }
:root body .vhl-search .form-control { height: 38px; font-size: 14px; padding-left: 38px !important; padding-right: 36px !important; border-radius: 999px !important; }
:root body .vhl-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--vh2-text-tertiary); font-size: 14px; pointer-events: none; }
:root body .vhl-search__clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--vh2-bg-sunken); color: var(--vh2-text-secondary);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
:root body .vhl-search__clear:hover { background: var(--vh2-border-strong); color: var(--vh2-text-primary); }

/* -------------------------------------------------------------- filter bars */
:root body .vhl-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
  padding: 14px 16px; border-bottom: 1px solid var(--vh2-border-subtle); background: transparent;
}
:root body .vhl-filters--bar { border-bottom: 0; padding: 0 0 14px; align-items: center; }
:root body .vhl-filters__group { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
:root body .vhl-filters__group--wide { min-width: 300px; }
:root body .vhl-filters__group label { margin: 0; font-size: 12px; font-weight: 600 !important; color: var(--vh2-text-secondary) !important; }
:root body .vhl-filters .form-control { height: 36px; font-size: 14px; }
:root body .vhl-filters__actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
:root body .vhl-muted { color: var(--vh2-text-tertiary); }
:root body .vhl-note { margin: 0; padding: 12px 16px 0; font-size: 14px; line-height: 1.5; color: var(--vh2-text-secondary); max-width: 920px; }
:root body .vhl-empty-note { padding: 18px 16px; font-size: 14px; color: var(--vh2-text-secondary); }
:root body .vhl-empty-note .fa { color: var(--vh2-success-fg); margin-right: 6px; }
:root body .vhl-segments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px !important; }
:root body .vhl-segments .btn { height: 34px; font-size: 14px; }

/* ------------------------------------------------------------------- table */
:root body custom-table .vhl-body { position: relative; overflow: visible !important; }
:root body .vhl-scroll { overflow-x: auto; max-width: 100%; border: 0; margin: 0; }
:root body .vhl-scroll:focus-visible { outline: 2px solid var(--vh2-focus-ring); outline-offset: -2px; }
:root body .vhl-loading { padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--vh2-text-secondary); background: var(--vh2-bg-subtle); }
/* P11: the background send job progress view (admin-send-progress, custom-table.js) above a list. */
:root body .vhl-send-progress { padding: 8px 16px 0; }
:root body .vh-send-progress { margin-bottom: 8px; font-size: 14px; }
:root body .vh-send-progress .progress { margin: 6px 0; }
:root body table.vhl-table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; }
:root body table.vhl-table > thead > tr > th {
  padding: 11px 14px !important;
  font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0 !important; text-transform: none !important;
  color: var(--vh2-text-secondary) !important; background: var(--vh2-bg-subtle) !important;
  border-bottom: 1px solid var(--vh2-border-default) !important; white-space: nowrap; vertical-align: middle;
}
:root body table.vhl-table > thead > tr > th .sort { cursor: pointer; }
:root body table.vhl-table > tbody > tr > td {
  padding: 8px 12px !important; height: 44px;
  font-size: 14px; line-height: 1.4; color: var(--vh2-text-primary);
  vertical-align: middle; border-top: 1px solid var(--vh2-border-subtle) !important; background: var(--vh2-surface);
}
:root body table.vhl-table > tbody > tr:first-child > td { border-top: 0 !important; }
:root body table.vhl-table > tbody > tr:hover > td { background: var(--vh2-bg-sunken) !important; }
:root body table.vhl-table > tbody > tr.is-selected > td { background: var(--vh2-brand-soft) !important; }
:root body table.vhl-table .vhl-col--check { width: 44px; padding-right: 0 !important; }
:root body table.vhl-table td a:not(.vhl-btn) { font-weight: 600; }
:root body table.vhl-table th.vhl-col--money,
:root body table.vhl-table td.vhl-col--money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
:root body table.vhl-table th.vhl-col--actions,
:root body table.vhl-table td.vhl-col--actions { text-align: right; white-space: nowrap; width: 1%; }
:root body table.vhl-table td.vhl-col--strong { font-weight: 700; }
:root body table.vhl-table td.vhl-col--identity { min-width: 200px; }
:root body table.vhl-table td.vhl-col--contact { min-width: 190px; }
:root body table.vhl-table td.vhl-col--checks { min-width: 230px; }
:root body table.vhl-table td.vhl-col--text { min-width: 240px; }
:root body table.vhl-table td.vhl-col--date { white-space: nowrap; }
:root body table.vhl-table td.vhl-col--chips, :root body table.vhl-table td.vhl-col--status, :root body table.vhl-table td.vhl-col--type { white-space: nowrap; }
/* legacy buttons that other lists still render inside a cell: one compact size, wrapping gently */
:root body table.vhl-table td .btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-top: 0 !important; padding-bottom: 0 !important;
  font-size: 14px; line-height: 1; margin: 2px 6px 2px 0;
}
:root body table.vhl-table td .btn i.fa { margin: 0; }
:root body table.vhl-table td .label,
:root body table.vhl-table td .badge,
:root body table.vhl-table td .vh-badge { font-size: 12px !important; padding: 3px 10px !important; }
:root body .vh-table-error { padding: 14px 16px !important; font-size: 14px; }
:root body .vhl-empty { text-align: center; padding: 44px 16px !important; color: var(--vh2-text-secondary); }
:root body .vhl-empty__icon { display: block; font-size: 28px; margin-bottom: 8px; color: var(--vh2-text-tertiary); }
:root body .vhl-empty strong { display: block; font-size: 16px; color: var(--vh2-text-primary); }
:root body .vhl-empty__hint { display: block; margin-top: 4px; font-size: 14px; }

/* ------------------------------------------------------------ cell patterns */
:root body .vhl-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
:root body .vhl-cell__primary { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--vh2-text-primary); }
:root body .vhl-cell__secondary { font-size: 12px; font-weight: 400; line-height: 1.35; color: var(--vh2-text-secondary); }
:root body .vhl-cell__primary.vhl-muted, :root body .vhl-cell__secondary.vhl-muted, :root body .vhl-cell .vhl-muted { color: var(--vh2-text-tertiary); font-weight: 400; }
:root body .vhl-truncate { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root body .vhl-col--ref .vhl-truncate { max-width: 200px; }
:root body .vhl-clamp { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 420px; font-size: 14px; line-height: 1.4; }
:root body .vhl-mono { font-family: var(--vh2-font-mono); font-size: 14px; letter-spacing: 0; }
:root body .vhl-cell__secondary.vhl-mono { font-size: 12px; }
:root body .vhl-money { font-variant-numeric: tabular-nums; font-weight: 600; }
:root body .vhl-money--strong { font-weight: 700; font-size: 14px; }
:root body .vhl-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
:root body .vhl-id__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
:root body .vhl-id__text .vhl-cell__primary { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root body .vhl-avatar {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  background: var(--vh2-brand-soft); color: var(--vh2-brand-text);
}
/* U35 (Founder 2026-10-29): rating stars are gold-yellow everywhere (website, Admin, apps) - the one allowed yellow */
:root body .vhl-stars { color: var(--vh2-rating, #F5B301); font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
:root body .vhl-star { color: var(--vh2-rating, #F5B301); }

/* ------------------------------------------------------------------- chips */
:root body .vhl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
:root body .vhl-chip {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content;
  padding: 2px 10px; border-radius: 999px; border: 1px solid var(--vh2-neutral-border);
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: var(--vh2-neutral-bg); color: var(--vh2-neutral-fg);
}
:root body .vhl-chip .fa { font-size: 12px; }
:root body .vhl-chip--ok { background: var(--vh2-success-bg); color: var(--vh2-success-fg); border-color: var(--vh2-success-border); }
:root body .vhl-chip--warn { background: var(--vh2-callout-bg); color: var(--vh2-warning-fg); border-color: var(--vh2-warning-border); }
:root body .vhl-chip--bad { background: var(--vh2-danger-bg); color: var(--vh2-danger-fg); border-color: var(--vh2-danger-border); }
/* brand polish status map: the "info" tone is only used for active / in-flight states (claimed, countered, in progress, processing) -> BRAND tone */
:root body .vhl-chip--info, :root body .vhl-chip--brand { background: var(--vh2-brand-soft); color: var(--vh2-brand-text); border-color: var(--vh2-orange-100); }
:root body .vhl-chip--neutral { background: var(--vh2-neutral-bg); color: var(--vh2-neutral-fg); border-color: var(--vh2-neutral-border); }
/* A98 / D-549 provider detail 'Shown on Google' (read-only): the same chip look - Yes = the green check-mark outcome (Founder: verified /
   active style chips stay green), No / not chosen = neutral; the date / source stays muted text */
:root body .vh-public-listing-yes, :root body .vh-public-listing-no, :root body .vh-public-listing-unset {
  display: inline-flex; align-items: center; width: fit-content; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--vh2-neutral-border);
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--vh2-neutral-bg); color: var(--vh2-neutral-fg);
}
:root body .vh-public-listing-yes { background: var(--vh2-success-bg); color: var(--vh2-success-fg); border-color: var(--vh2-success-border); }
:root body .vh-public-listing-detail { margin-left: 6px; color: var(--vh2-text-secondary); }
:root body .vhl-chip--inline { display: inline-flex; margin-left: 8px; padding: 0 8px; font-size: 12px; vertical-align: 1px; }
:root body .vhl-kvs { display: flex; flex-direction: column; gap: 5px; }
:root body .vhl-kv { display: flex; align-items: center; gap: 10px; }
:root body .vhl-kv__k { flex: 0 0 112px; font-size: 12px; color: var(--vh2-text-secondary); }

/* ------------------------------------------------------------ row actions */
:root body .vhl-rowact { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; position: relative; }
:root body .vhl-btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
}
/* the row's main action (Manage / View / Open): the white secondary button - one primary per page, rows never repeat an orange slab */
:root body a.vhl-btn--primary, :root body .vhl-btn--primary { background: var(--vh2-action-blue-bg); color: var(--vh2-action-blue-fg); box-shadow: var(--vh2-hairline-ring), var(--vh2-shadow-blue); }
:root body a.vhl-btn--primary:hover, :root body .vhl-btn--primary:hover { background: var(--vh2-action-blue-bg-hover); color: var(--vh2-action-blue-fg); text-decoration: none; }
:root body .vhl-btn--ghost { background: transparent; color: var(--vh2-text-secondary); box-shadow: inset 0 0 0 1px var(--vh2-border-strong); }
:root body .vhl-btn--ghost:hover { color: var(--vh2-text-primary); background: var(--vh2-bg-sunken); }
:root body .vhl-btn:focus-visible, :root body .vhl-rowact__more:focus-visible, :root body .vhl-rowact__item:focus-visible { outline: 0; box-shadow: var(--vh2-focus-glow); }
:root body .vhl-rowact__more {
  appearance: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--vh2-text-secondary); font-size: 16px;
}
:root body .vhl-rowact__more:hover, :root body .vhl-rowact.is-open .vhl-rowact__more { background: var(--vh2-bg-sunken); color: var(--vh2-text-primary); }
:root body .vhl-rowact--empty .vhl-rowact__more { display: none; }
:root body .vhl-rowact__menu {
  display: none; position: fixed; z-index: 60; margin: 0; padding: 6px; list-style: none; min-width: 210px;
  background: var(--vh2-surface-raised); border: 1px solid var(--vh2-border-default); border-radius: 12px;
  box-shadow: var(--vh2-shadow-pop); text-align: left;
}
:root body .vhl-rowact.is-open .vhl-rowact__menu { display: block; }
:root body .vhl-rowact__item {
  appearance: none; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--vh2-text-primary); font-family: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
}
:root body .vhl-rowact__item:hover { background: var(--vh2-bg-sunken); }
:root body .vhl-rowact__item .fa { width: 16px; text-align: center; font-size: 14px; }
:root body .vhl-rowact__item--warn { color: var(--vh2-warning-fg); }
:root body .vhl-rowact__item--ok { color: var(--vh2-success-fg); }
:root body .vhl-rowact__item--danger { color: var(--vh2-danger-fg); }
:root body .vhl-rowact__item--danger:hover { background: var(--vh2-danger-bg); }
:root body .vhl-rowact--inline { flex-wrap: wrap; justify-content: flex-start; }

/* ------------------------------------------------------------------ footer */
:root body custom-table .vhl-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 12px 16px !important;
}
:root body custom-table .vhl-footer__count { flex: 1 1 200px; font-size: 14px; }
:root body custom-table .vhl-footer__count small { font-size: 14px; color: var(--vh2-text-secondary); }
:root body custom-table .vhl-footer__size { display: flex; align-items: center; gap: 8px; float: none !important; }
:root body custom-table .vhl-footer__size .first { font-size: 14px; color: var(--vh2-text-secondary); float: none; }
:root body custom-table .vhl-footer__size select.form-control { width: auto !important; height: 34px; float: none !important; font-size: 14px; }
:root body custom-table .vhl-footer__pages, :root body custom-table .vhl-footer__pages ul.pagination { margin: 0 !important; }
:root body custom-table .vhl-footer__pages ul.pagination > li > a,
:root body custom-table .vhl-footer__pages ul.pagination > li > span { font-size: 14px; min-width: 34px; text-align: center; }

/* -------------------------------------------------------- page-level bits */
:root body .vhl-page .tile { overflow: visible; }
:root body .vhl-page .tile-header .controls { margin: 0; }
:root body .vhl-page .vhl-add { color: var(--vh2-brand-text); font-weight: 700; }
:root body .vhl-page .page-toolbar .btn { font-size: 14px; }

/* ------------------------------------------------------------ narrow widths */
@media (max-width: 767px) {
  :root body .vhl-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root body custom-table .vhl-toolbar__search { flex: 1 1 100%; }
  :root body .vhl-filters__group, :root body .vhl-filters__group--wide { min-width: 100%; }
  :root body .vhl-filters__actions { margin-left: 0; }
}

/* ------------------------------------------------ legacy summary tiles (cheap, CSS-only)
   Pages that still carry the old .feature-box-container tiles but opted into .vhl-page get the same compact
   strip as .vhl-stats: one value + one label per tile, icon discs hidden, no tile inside a tile. */
:root body .vhl-page .row:has(> .feature-box-container) {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px;
}
:root body .vhl-page .row:has(> .feature-box-container) > .feature-box-container { float: none; width: auto; padding: 0; margin: 0; }
:root body .vhl-page .feature-box-container .card { cursor: pointer; border-radius: 12px !important; box-shadow: inset 4px 0 0 var(--vh2-border-strong) !important; }
:root body .vhl-page .feature-box-container .card:hover { border-color: var(--vh2-border-strong) !important; }
:root body .vhl-page .feature-box-container .card .front { padding: 12px 14px 12px 16px !important; }
:root body .vhl-page .feature-box-container .card .front .row { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
:root body .vhl-page .feature-box-container .card .front .row > [class*="col-"]:first-child { display: none; }
:root body .vhl-page .feature-box-container .card .front p.text-elg { font-size: 22px !important; line-height: 1.15; margin: 0; font-variant-numeric: tabular-nums; color: var(--vh2-text-primary); }
:root body .vhl-page .feature-box-container .card .front span { font-size: 14px; font-weight: 600; }
:root body custom-table .vhl-footer__bulk { display: flex; align-items: center; gap: 8px; }
:root body custom-table .vhl-footer__bulk select.form-control { width: auto !important; height: 34px; font-size: 14px; }

/* ---------------------------------- legacy row buttons on lists that have not moved to the row-actions menu yet
   (Categories, Coupons, Pages, Email templates, Push notifications ...): the same quiet hierarchy. The main action is a
   soft-blue pill; a destructive action is an outlined red pill, never a solid red slab repeated on every row. Behaviour
   (ng-click / ui-sref / confirmations) is untouched. */
:root body table.vhl-table td .btn-info { background: var(--vh2-action-blue-bg) !important; color: var(--vh2-action-blue-fg) !important; box-shadow: var(--vh2-hairline-ring) !important; }
:root body table.vhl-table td .btn-info:hover { background: var(--vh2-action-blue-bg-hover) !important; color: var(--vh2-action-blue-fg) !important; }
/* brand polish: legacy row buttons (Edit / Delete on Categories ...) had their label stuck to the top of the pill; centre it (height unchanged) */
:root body table.vhl-table td .btn { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
/* main.css .btn-ef-5 span is a full-height box with the label on its first line: centre the label inside it */
:root body table.vhl-table td .btn-ef-5 > span { display: inline-flex; align-items: center; justify-content: center; }
:root body table.vhl-table td .btn-danger { background: transparent !important; color: var(--vh2-danger-fg) !important; box-shadow: inset 0 0 0 1px var(--vh2-danger-border) !important; }
:root body table.vhl-table td .btn-danger:hover { background: var(--vh2-danger-bg) !important; filter: none; }
:root body table.vhl-table td .btn-warning { box-shadow: inset 0 0 0 1px var(--vh2-warning-border) !important; }

/* ------------------------------------------------------------------ fixed-layout lists (Clients, Providers)
   The list sets table.tableClass = "vhl-table--fixed": the columns share the container (percentages from the column
   class, actions column a fixed width) and long text truncates inside its cell, so the table never needs sideways
   scrolling at 1366px and up. Every field stays in a cell (primary / secondary text or a tooltip). */
:root body table.vhl-table--fixed { table-layout: fixed; }
:root body table.vhl-table--fixed > thead > tr > th, :root body table.vhl-table--fixed > tbody > tr > td { overflow-wrap: break-word; }
:root body table.vhl-table--fixed th.vhl-col--check, :root body table.vhl-table--fixed td.vhl-col--check { width: 44px; }
:root body table.vhl-table--fixed th.vhl-col--identity { width: 20%; }
:root body table.vhl-table--fixed th.vhl-col--contact { width: 19%; }
:root body table.vhl-table--fixed th.vhl-col--chips { width: 14%; }
:root body table.vhl-table--fixed th.vhl-col--account { width: 14%; }
:root body table.vhl-table--fixed th.vhl-col--checks { width: 18%; }
:root body table.vhl-table--fixed th.vhl-col--num { width: 11%; }
:root body table.vhl-table--fixed th.vhl-col--date { width: 13%; }
:root body table.vhl-table--fixed th.vhl-col--actions { width: 148px; }
:root body table.vhl-table--fixed td.vhl-col--identity, :root body table.vhl-table--fixed td.vhl-col--contact, :root body table.vhl-table--fixed td.vhl-col--checks { min-width: 0; }
:root body table.vhl-table--fixed td.vhl-col--date, :root body table.vhl-table--fixed td.vhl-col--chips, :root body table.vhl-table--fixed td.vhl-col--status { white-space: normal; }
:root body table.vhl-table--fixed .vhl-truncate, :root body table.vhl-table--fixed .vhl-id__text .vhl-cell__primary { max-width: 100%; }
:root body table.vhl-table--fixed .vhl-id__text { flex: 1 1 auto; }
:root body table.vhl-table--fixed .vhl-cell > .vhl-cell__primary, :root body table.vhl-table--fixed .vhl-cell > .vhl-cell__secondary { overflow-wrap: anywhere; }
:root body table.vhl-table--fixed .vhl-kv { flex-wrap: wrap; gap: 2px 8px; }
:root body table.vhl-table--fixed .vhl-kv__k { flex: 0 0 76px; }
:root body table.vhl-table--fixed th, :root body table.vhl-table--fixed th .sort { white-space: normal; }
:root body .vhl-stats { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
:root body table.vhl-table td.vhl-col--num .vhl-cell__primary { white-space: nowrap; }
/* per-list column budgets (percent of the table; the actions column is a fixed width, the rest is shared out) */
:root body table.vhl-table--clients th.vhl-col--identity { width: 20%; }
:root body table.vhl-table--clients th.vhl-col--contact { width: 17%; }
:root body table.vhl-table--clients th.vhl-col--chips { width: 16%; }
:root body table.vhl-table--clients th.vhl-col--account { width: 11%; }
:root body table.vhl-table--clients th.vhl-col--date { width: 15%; }
:root body table.vhl-table--providers th.vhl-col--identity { width: 18%; }
:root body table.vhl-table--providers th.vhl-col--contact { width: 15%; }
:root body table.vhl-table--providers th.vhl-col--account { width: 14%; }
:root body table.vhl-table--providers th.vhl-col--checks { width: 22%; }
:root body table.vhl-table--providers th.vhl-col--num { width: 13%; }
/* a secondary line made of two facts wraps between the facts, never inside one */
:root body .vhl-nb { white-space: nowrap; }
:root body table.vhl-table--fixed .vhl-kv { flex-wrap: nowrap; }
:root body table.vhl-table--fixed .vhl-kv .vhl-chip { flex: 0 0 auto; }
:root body table.vhl-table--fixed td.vhl-col--chips .vhl-chips { flex-wrap: nowrap; gap: 4px; }
:root body table.vhl-table--fixed td.vhl-col--chips .vhl-chip { padding: 1px 8px; }
:root body .vhl-stats { grid-template-columns: repeat(auto-fit, minmax(106px, 1fr)); gap: 8px; }

/* generic widths for the other fixed-layout lists (Transactions, Open jobs, Offers, Earnings, Reviews) */
:root body table.vhl-table--fixed th.vhl-col--id { width: 11%; }
:root body table.vhl-table--fixed th.vhl-col--status { width: 11%; }
:root body table.vhl-table--fixed th.vhl-col--type { width: 11%; }
:root body table.vhl-table--fixed th.vhl-col--money { width: 10%; }
:root body table.vhl-table--fixed th.vhl-col--parties { width: 19%; }
:root body table.vhl-table--fixed th.vhl-col--ref { width: 16%; }
:root body table.vhl-table--fixed th.vhl-col--rating { width: 13%; }
:root body table.vhl-table--fixed th.vhl-col--text { width: 32%; }
:root body table.vhl-table--tx th.vhl-col--date { width: 13%; }
:root body table.vhl-table--tx th.vhl-col--money { width: 12%; }
:root body table.vhl-table--tx th.vhl-col--ref { width: 15%; }
:root body table.vhl-table--board th.vhl-col--contact { width: 14%; }
:root body table.vhl-table--board th.vhl-col--date { width: 9%; }
:root body table.vhl-table--board th.vhl-col--actions { width: 150px; }
:root body table.vhl-table--earn th.vhl-col--identity { width: 22%; }
:root body table.vhl-table--earn th.vhl-col--money { width: 11%; }
:root body table.vhl-table td.vhl-col--id, :root body table.vhl-table td.vhl-col--ref { white-space: nowrap; }
:root body table.vhl-table--fixed td.vhl-col--ref { white-space: normal; }
:root body table.vhl-table--fixed td.vhl-col--id .vhl-cell__primary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root body table.vhl-table--fixed td.vhl-col--ref .vhl-truncate { max-width: 100%; }
:root body table.vhl-table > thead > tr > th { white-space: normal !important; }
:root body table.vhl-table > thead > tr > th.vhl-col--money { white-space: nowrap !important; }
:root body table.vhl-table--fixed td.vhl-col--money { white-space: nowrap; overflow: hidden; }
:root body table.vhl-table--fixed th.vhl-col--check { width: 44px !important; }
/* static alert tables: ids are monospace, truncated to a readable width, full value in the tooltip */
:root body table.vhl-table:not(.vhl-table--fixed) .vhl-truncate { max-width: 150px; }
:root body table.vhl-table td.vhl-col--money .vhl-money { white-space: nowrap; }

:root body table.vhl-table--board th.vhl-col--party { width: 10.5%; }
:root body table.vhl-table--board th.vhl-col--id { width: 11.5%; }
:root body table.vhl-table--board th.vhl-col--status { width: 8.5%; }
:root body table.vhl-table--board th.vhl-col--contact { width: 10%; }
:root body table.vhl-table--board th.vhl-col--date { width: 10.5%; white-space: nowrap !important; }
:root body table.vhl-table--board th.vhl-col--actions { width: 136px; }
/* dates stay on one line ("7 Oct, 10:53" + "2 hours ago"): a wrapped date made every board row three lines tall; names wrap at the space */
:root body table.vhl-table--board td.vhl-col--date { white-space: nowrap; }
:root body table.vhl-table--board td.vhl-col--party { white-space: normal; overflow-wrap: anywhere; }
:root body table.vhl-table--fixed > tbody > tr > td, :root body table.vhl-table--fixed > thead > tr > th { padding-left: 10px !important; padding-right: 10px !important; }

/* INTEGRATION (D-434): the legacy custom checkbox box is a hard-coded white square; on the dark surface every row showed a solid white disc. Tokens only. */
:root body custom-table .checkbox-custom i, :root body custom-table .checkbox-custom-alt i { background-color: var(--vh2-surface); border-color: var(--vh2-border-strong); }
:root body custom-table .checkbox-custom input:checked + i, :root body custom-table .checkbox-custom-alt input:checked + i { background-color: var(--vh2-action-primary-bg); border-color: var(--vh2-action-primary-bg); }

/* INTEGRATION (D-434): legacy-tile summary strips (Open to Offers) - Bootstrap's .row clearfix pseudo-elements became two empty grid cells (the strip started 165px in),
   and the label column kept its 66% width, splitting "Countered" / "Accepted" mid-word. */
:root body .vhl-page .row:has(> .feature-box-container)::before, :root body .vhl-page .row:has(> .feature-box-container)::after { display: none; content: none; }
:root body .vhl-page .feature-box-container .card .front .row > [class*="col-"] { width: 100%; max-width: 100%; flex: 1 1 100%; padding-left: 0; padding-right: 0; }
:root body .vhl-page .feature-box-container .card .front span { word-break: normal; overflow-wrap: normal; }
/* ADMIN-QA 2026-10-24: main.css pulls every .tile-header .btn 24px to the right (one flush button). With two header buttons
   (Provider Plans: Refresh + New plan) the second covered the first. Only a button that is not the last keeps normal spacing. */
:root body .tile .tile-header .btn:not(:last-child) { margin-right: 8px; }
/* ADMIN-QA 2026-10-24: main.css paints .tile-header .controls links WHITE (the legacy dark tile header). On the light header an
   uncoloured link (Add Sub-Admin, Add New Email-Template, Add New Subscriptions, Add New People Comments, the feature lists) was
   white on white and could not be seen. A control that brings its own colour class (bg-greensea etc.) is left alone. */
:root body .tile .tile-header .controls > li > a:not([class*="bg-"]) { color: var(--vh2-text-link); font-weight: 600; }   /* link role = brand orange text (v1.3.0) */
/* ADMIN-QA 2026-10-24: Bootstrap sets .input-group-btn { font-size: 0 } and vh2-base.css makes every .v2-app button inherit its
   font size, so the icon / label of a button inside an input group (the calendar buttons of the date pickers on Coupons and the
   Bookings date filter, Upload / Select file buttons) was 0px and the button showed as an empty pill. */
:root body .v2-app .input-group-btn > .btn { font-size: 14px; }
/* brand polish 2026-10-25: the Categories / Sub Categories header controls ("Show:" filter + "Main Category") are absolutely placed at the
   top right by main.css; on a phone they covered the "Category List" title. Below 768px they flow under the title instead. */
@media (max-width: 767px) {
  :root body .tile .tile-header:has(.vh-cat-filter) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  :root body .tile .tile-header:has(.vh-cat-filter) > .controls { position: static; float: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; width: 100%; }
  :root body .tile .tile-header:has(.vh-cat-filter) > .controls > li { border: 0; padding: 0; }
}

/* TRUST-15 phase 1 (D-594): licence / insurance settings in the category forms and the per-service coverage block in Document review */
:root body .vh-lic { margin: 16px 0; padding: 16px; background: var(--vh2-surface); border: 1px solid var(--vh2-border-default); border-radius: 12px; }
:root body .vh-lic__title { margin: 0 0 4px; font-weight: 700; }
:root body .vh-lic__lead, :root body .vh-lic__help, :root body .vh-lic__since { color: var(--vh2-text-secondary); font-size: 12px; margin: 0 0 10px; display: block; }
:root body .vh-lic__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
:root body .vh-lic__field > span { display: block; font-weight: 600; margin-bottom: 4px; }
:root body .dr-cov { margin: 16px 0; }
:root body .dr-cov__row { border: 1px solid var(--vh2-border-default); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: var(--vh2-surface); }
:root body .dr-cov__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
:root body .dr-cov__name { font-weight: 600; }
:root body .dr-cov__form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
:root body .dr-cov__form .form-control { width: auto; min-width: 160px; flex: 1 1 160px; }
:root body .dr-cov__tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }

/* COMM-06 / D-601 (2026-10-29): marketing consent on the Newsletter / E-mail marketing lists - the import attestation in the
   page toolbar and the "record / withdraw consent" bar above the table. Neutral surfaces, brand tokens only. */
:root body .vhl-import-consent { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-right: 12px; }
:root body .vhl-import-consent__attest { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; font-weight: 500; color: var(--vh2-text-secondary); cursor: pointer; }
:root body .vhl-import-consent__attest input { margin: 0; }
:root body .vhl-import-consent__source { width: 320px; max-width: 100%; height: 32px; font-size: 14px; }
:root body .vhl-consent-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--vh2-border-default); background: var(--vh2-surface-subtle, transparent); }
:root body .vhl-consent-bar__label { font-size: 14px; font-weight: 600; color: var(--vh2-brand-text); }
:root body .vhl-consent-bar__source { flex: 0 1 360px; min-width: 220px; height: 32px; font-size: 14px; }

/* job 588 (S8): a button icon that sits before a label (Search, Refresh, Export CSV, Clear filters, Financial alerts, Send mail, Check payment)
   touched the text. A flex gap puts 8px between the icon and the label; an icon-only button has one item, so no gap shows. */
:root body .v2-app .btn:not(.btn-block):not(.btn-lg):has(> i.fa:first-child, > i.glyphicon:first-child) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* job 588 (S9): Transactions column budgets added up to 92%, so the header row and cells stopped 28px short of the card edge.
   Earnings: "Provider earnings" and "Base amount" were forced onto one line in an 87px column and ran into the next heading. */
:root body table.vhl-table--tx th.vhl-col--ref { width: 18%; }
:root body table.vhl-table--earn th.vhl-col--identity { width: 18%; }
:root body table.vhl-table--earn th.vhl-col--money { width: 12%; }
:root body table.vhl-table--earn > thead > tr > th.vhl-col--money { white-space: normal !important; }

/* job 588 (S18): the SEO settings card had no inner padding, so its titles touched the card edge and the field labels. */
:root body .v2-app .tile-body.vh-form-pad { padding: var(--vh2-s5, 20px) var(--vh2-s6, 24px); }
:root body .v2-app .tile-body.vh-form-pad > h4 { margin: 0 0 var(--vh2-s3, 12px); }
:root body .v2-app .tile-body.vh-form-pad > h4:not(:first-child) { margin-top: var(--vh2-s4, 16px); }
