/*
 * REGISTRATIE Central Theme R2: Graphite + Gold
 * ------------------------------------------------------------
 * Source of truth: the existing Dashboard graphite banner.
 * Dark mode intentionally pairs graphite banners/sidebar with
 * readable ivory data surfaces, just like the current Dashboard.
 * Light mode is NOT changed. Business/status colours are preserved.
 *
 * New views should use the semantic .reg-theme-hero and
 * .reg-theme-surface classes, rather than defining a new dark palette.
 * Scoped to authenticated app pages, not the login experience.
 */
html[data-reg-theme="dark"] {
    --reg-central-hero-bg:
        radial-gradient(circle at 90% 15%, rgba(229,190,83,.16), transparent 30%),
        linear-gradient(135deg, #181c24 0%, #262c37 68%, #8e620f 145%);
    --reg-central-hero-text: #f9f8f4;
    --reg-central-hero-description: #e0e2e7;
    --reg-central-hero-eyebrow: #efd681;
    --reg-central-hero-edge: rgba(217,177,77,.34);
    --reg-central-page: #f5f3ed;
    --reg-central-surface: #fffdf8;
    --reg-central-surface-soft: #faf7ef;
    --reg-central-border: #e7dfcc;
    --reg-central-ink: #242831;
    --reg-central-muted: #5f6571;
    --reg-central-gold: #c9951f;
    --reg-central-gold-pale: #fff3d2;
    --reg-central-shadow: 0 10px 28px rgba(18,20,27,.06);
}

/* The shell stays the same as Dashboard. Only module banners are aligned. */
html[data-reg-theme="dark"] body.reg-app-body :is(
    .reg-theme-hero,
    .emp-hero,
    .edoc-hero,
    .cdoc-hero,
    .cmp-hero,
    .cust-hero,
    .prj-hero,
    .tt-hero,
    .vdoc-hero,
    .veh-hero,
    .vser-hero,
    .inv-hero,
    .iap-hero,
    .at-hero,
    .pln-hero,
    .wo-hero,
    .rdt-hero,
    .orgv-header,
    .omx-hero,
    .ob-hero,
    .dmail-hero,
    .reg-nc-hero,
    .reg-language-hero,
    .reg-tr-hero
) {
    background: var(--reg-central-hero-bg) !important;
    background-color: #20252e !important;
    border-color: var(--reg-central-hero-edge) !important;
    color: var(--reg-central-hero-text) !important;
    box-shadow: 0 18px 42px rgba(20,24,31,.15) !important;
}

/* Strong contrast, including modules that hardcoded black-on-gold banners. */
html[data-reg-theme="dark"] body.reg-app-body :is(
    .reg-theme-hero,.emp-hero,.edoc-hero,.cdoc-hero,.cmp-hero,
    .cust-hero,.prj-hero,.tt-hero,.vdoc-hero,.veh-hero,.vser-hero,
    .inv-hero,.iap-hero,.at-hero,.pln-hero,.wo-hero,.rdt-hero,
    .orgv-header,.omx-hero,.ob-hero,.dmail-hero,.reg-nc-hero,
    .reg-language-hero,.reg-tr-hero
) :is(h1, h2) {
    color: var(--reg-central-hero-text) !important;
    text-shadow: none !important;
}
html[data-reg-theme="dark"] body.reg-app-body :is(
    .reg-theme-hero,.emp-hero,.edoc-hero,.cdoc-hero,.cmp-hero,
    .cust-hero,.prj-hero,.tt-hero,.vdoc-hero,.veh-hero,.vser-hero,
    .inv-hero,.iap-hero,.at-hero,.pln-hero,.wo-hero,.rdt-hero,
    .orgv-header,.omx-hero,.ob-hero,.dmail-hero,.reg-nc-hero,
    .reg-language-hero,.reg-tr-hero
) p {
    color: var(--reg-central-hero-description) !important;
}
html[data-reg-theme="dark"] body.reg-app-body :is(
    .reg-theme-hero .reg-theme-eyebrow,
    .emp-kicker,.edoc-kicker,.cdoc-overline,.cmp-eyebrow,
    .cust-kicker,.prj-eyebrow,.tt-eyebrow,.vdoc-eyebrow,
    .veh-eyebrow,.vser-eyebrow,.inv-kicker,.iap-eyebrow,
    .at-eyebrow,.pln-eyebrow,.wo-eyebrow,.rdt-kicker,
    .orgv-eyebrow,.omx-eyebrow,.ob-eyebrow,.dmail-eyebrow,
    .reg-nc-kicker,.reg-language-eyebrow
) {
    color: var(--reg-central-hero-eyebrow) !important;
}

/* Data/scope chips INSIDE a dark header; don't touch the status pills in tables. */
html[data-reg-theme="dark"] body.reg-app-body :is(
    .emp-hero-meta span,
    .edoc-hero .edoc-meta span,
    .prj-hero-chips span,
    .cust-hero-pills > span,
    .orgv-header .orgv-scope strong,
    .veh-hero-scope,
    .inv-hero .inv-scope,
    .vdoc-hero .vdoc-scope,
    .cdoc-hero .cdoc-scope,
    .reg-nc-hero .reg-nc-scope
) {
    background: rgba(255,255,255,.12) !important;
    border-color: rgba(239,214,129,.33) !important;
    color: #fff6d9 !important;
    box-shadow: none !important;
}
html[data-reg-theme="dark"] body.reg-app-body :is(
    .orgv-header .orgv-scope > span,
    .cdoc-hero .cdoc-scope,
    .vdoc-hero .vdoc-scope,
    .edoc-hero .edoc-scope
) {
    color: #f2dfaf !important;
}
html[data-reg-theme="dark"] body.reg-app-body .edoc-hero.edoc-hero--refined .edoc-kicker {
    background: rgba(230,194,105,.13) !important;
    border-color: rgba(239,214,129,.28) !important;
    color: var(--reg-central-hero-eyebrow) !important;
}
/* The circular graphics remain decorative; remove the bright overlay in dark mode. */
html[data-reg-theme="dark"] body.reg-app-body .edoc-hero.edoc-hero--refined::before {
    background: linear-gradient(90deg,rgba(255,255,255,.035),transparent 45%) !important;
}
html[data-reg-theme="dark"] body.reg-app-body .edoc-hero.edoc-hero--refined::after {
    background: radial-gradient(circle,rgba(229,190,83,.15),transparent 70%) !important;
}

/* Header CTAs follow a common accessible white/gold treatment. */
html[data-reg-theme="dark"] body.reg-app-body :is(
    .emp-hero .emp-btn-light,
    .edoc-hero .edoc-btn.light,
    .cdoc-hero .cdoc-btn-new,
    .cmp-hero .cmp-hero-action,
    .cust-hero .cust-btn-light,
    .cust-hero .cust-btn-primary,
    .prj-hero .prj-btn-light,
    .tt-hero .tt-btn-hero,
    .vdoc-hero .vdoc-button.outline,
    .omx-hero .omx-btn-hero,
    .rdt-hero .rdt-button-primary
) {
    background: #fffaf0 !important;
    background-image: none !important;
    border-color: rgba(241,213,150,.75) !important;
    color: #42300f !important;
    text-shadow: none !important;
}

/* Just like Dashboard: ivory information panels on a pale background.
   This is intentional (NOT a forced dark table background); the reports
   remain legible and status colours retain their business meaning. */
html[data-reg-theme="dark"] body.reg-app-body :is(
    .reg-theme-surface,
    .emp-card,.emp-stat,
    .edoc-card,.edoc-stats > *,
    .cdoc-card,.cdoc-stats > article,
    .cmp-panel,.cmp-stats > div,
    .cust-panel,.cust-stat,
    .prj-panel,.prj-stat,
    .tt-panel,.tt-stat,
    .vdoc-card,.vdoc-metrics > div,
    .veh-card,.veh-metrics > div,
    .vser-card,.vser-metrics > div,
    .inv-card,.inv-metrics > div,
    .iap-card,
    .at-card,
    .rdt-panel,.rdt-stat,
    .orgv-filter,.orgv-chart-panel,.orgv-summary > div,.orgv-summary-trigger,
    .omx-panel,.omx-kpi,
    .reg-nc-panel,.reg-nc-stat
) {
    background: var(--reg-central-surface) !important;
    border-color: var(--reg-central-border) !important;
    box-shadow: var(--reg-central-shadow);
}

/* These are presentation surfaces, not the detailed organigram nodes.
   The hard-earned tree geometry and its lines are left untouched. */
html[data-reg-theme="dark"] body.reg-app-body :is(
    .emp-page,.edoc-page,.cdoc-page,.cmp-page,.cust-page,.prj-page,
    .tt-page,.vdoc-page,.veh-page,.vser-page,.inv-page,.omx-page,
    .orgv-page,.rdt-page
) {
    color: var(--reg-central-ink);
}

html[data-reg-theme="dark"] body.reg-app-body :is(
    .emp-table th,.edoc-table th,.cdoc-table th,.cmp-table th,
    .cust-table th,.prj-table th,.tt-table th,.vdoc-table th,
    .veh-table th,.vser-table th,.inv-table th,.rdt-table th,
    .omx-table th,.reg-nc-table th
) {
    background: var(--reg-central-surface-soft) !important;
    border-bottom-color: var(--reg-central-border) !important;
    color: #66522d !important;
}
html[data-reg-theme="dark"] body.reg-app-body :is(
    .emp-table td,.edoc-table td,.cdoc-table td,.cmp-table td,
    .cust-table td,.prj-table td,.tt-table td,.vdoc-table td,
    .veh-table td,.vser-table td,.inv-table td,.rdt-table td,
    .omx-table td,.reg-nc-table td
) {
    border-bottom-color: #eee5d6 !important;
}
/* Keep semantic success/danger/warning background badges unchanged. */

/* Fix a legacy dark-mode contrast leak: company names in the Employees
   module were rendered nearly white over Dashboard-style ivory table rows. */
html[data-reg-theme="dark"] body.reg-app-body :is(
    .emp-company-brand .reg-company-name,
    .emp-assignment-company .reg-company-name
) {
    color: var(--reg-central-ink) !important;
}

/* Shared field appearance where the module uses semantic form controls. */
html[data-reg-theme="dark"] body.reg-app-body :is(
    .emp-control,.rdt-field,.orgv-field,.omx-input,
    .cmp-field,.tt-field input,.tt-field select,
    .prj-field input,.prj-field select,
    .cust-field input,.cust-field select,
    .cdoc-page input:not([type="checkbox"]):not([type="radio"]),
    .cdoc-page select,.cdoc-page textarea,
    .vdoc-filter-grid input,.vdoc-filter-grid select
) {
    background-color: #fffdfa !important;
    border-color: #d9c69c !important;
    color: var(--reg-central-ink) !important;
}

/* Interface contrast and focus remain visible in both keyboard and touch use. */
html[data-reg-theme="dark"] body.reg-app-body :is(
    .emp-control,.rdt-field,.orgv-field,.omx-input,
    .cmp-field,.prj-field input,.prj-field select,
    .cust-field input,.cust-field select,.vdoc-filter-grid input,
    .vdoc-filter-grid select
):focus-visible {
    outline: 2px solid #b78620;
    outline-offset: 1px;
}

/* Opt-in class contract for NEW screens with no existing module CSS. */
html[data-reg-theme="dark"] body.reg-app-body .reg-theme-muted {
    color: var(--reg-central-muted) !important;
}
/* =============================================================
 * REGISTRATIE / Werkbon overview: Dashboard-style dark theme.
 *
 * Only the WorkOrders INDEX contains a direct .wo-stat-grid child.
 * This scope intentionally excludes Create, Edit, Details, Print,
 * and the WorkOrders-specific confirmation dialogs.
 * Keep the dark graphite hero; use the Dashboard's readable ivory
 * cards, tables and inputs. No layout or interaction changes.
 * ============================================================= */
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) {
    color: var(--reg-central-ink) !important;
}

/* Dashboard-like bright metric cards with charcoal numbers. */
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-stat,
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-card {
    background: var(--reg-central-surface) !important;
    border-color: var(--reg-central-border) !important;
    color: var(--reg-central-ink) !important;
    box-shadow: var(--reg-central-shadow) !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-stat::before {
    background: var(--reg-central-gold) !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-stat small {
    color: #6b5733 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-stat strong {
    color: #242831 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-stat > span {
    color: #65615b !important;
}

/* Filters belong to the light data surface, NOT to the hero. */
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-field > span {
    color: #6b5835 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-field input,
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-field select {
    background: #fffdfa !important;
    border-color: #d9c99f !important;
    color: #242831 !important;
    color-scheme: light;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-field input::placeholder {
    color: #716d66 !important;
    opacity: 1;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-field :is(input, select):focus-visible {
    outline: 2px solid #b88725;
    outline-offset: 2px;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-btn-neutral {
    background: #fffdf9 !important;
    border-color: #d9c99f !important;
    color: #423b2d !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-btn-neutral:hover {
    background: #fff4d9 !important;
    border-color: #d1ac55 !important;
    color: #3b2d15 !important;
}

/* Light list heading, readable table header and data rows. */
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-card-head {
    border-bottom-color: #e9dfcf !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-card-head h2,
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-primary strong,
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-empty strong {
    color: #242831 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-card-head p,
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-primary small,
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-empty,
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-pagination {
    color: #68635c !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-table th {
    background: #f8f3e8 !important;
    border-bottom-color: #e7ddc9 !important;
    color: #66522d !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-table td {
    background: transparent !important;
    border-bottom-color: #ece5d9 !important;
    color: #332f29 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-table .reg-company-name {
    color: #302d28 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-table tbody tr:hover {
    background: #fff6e5 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-table tbody tr.wo-archived-row {
    background: #f8f2e9 !important;
}

/* Pager adopts the same bright, accessible control style. */
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-pagination {
    border-top-color: #e7dfcc !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-page-link:not(.is-current) {
    background: #fffdf9 !important;
    border-color: #d9c99f !important;
    color: #584422 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-page-link.is-current {
    background: #c9951f !important;
    border-color: #c9951f !important;
    color: #17130a !important;
}

/* Chips IN the dark hero mirror the Dashboard status chips.
   Do not change state pills in the table (success, warning, danger). */
html[data-reg-theme="dark"] body.reg-app-body .wo-page:has(> .wo-stat-grid) .wo-hero-meta > span {
    background: rgba(255, 255, 255, .11) !important;
    border-color: rgba(239, 214, 129, .34) !important;
    color: #fff4d6 !important;
}

/* =============================================================
 * REGISTRATIE / Werkbon Planning: Dashboard dark-theme standard.
 *
 * This view uses .wb2-* (Planning/Werkbon.cshtml), not .pln-*.
 * Restrict every override to installed app + dark mode + .wb2.
 * Keep planning matrix meaning intact: gold headings, yellow TOT,
 * turquoise VR, weekend fills, subtotal and status colours.
 * Light mode, route/method bindings and table geometry are untouched.
 * ============================================================= */

/* The Dashboard-style graphite banner was missing on the Werkbon
   planning variant. All of its header text now has proper contrast. */
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-hero {
    background: var(--reg-central-hero-bg) !important;
    background-color: #20252e !important;
    border-color: var(--reg-central-hero-edge) !important;
    color: var(--reg-central-hero-text) !important;
    box-shadow: 0 18px 42px rgba(20, 24, 31, .15) !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-hero h1,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-hero-meta strong {
    color: var(--reg-central-hero-text) !important;
    text-shadow: none !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-hero p,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-hero-meta small {
    color: var(--reg-central-hero-description) !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-eyebrow {
    color: var(--reg-central-hero-eyebrow) !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-context {
    background: rgba(255, 255, 255, .11) !important;
    border: 1px solid rgba(239, 214, 129, .33) !important;
    color: #fff6d9 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-hero::after {
    border-color: rgba(239, 214, 129, .10) !important;
}

/* Dashboard-like ivory information areas, never black panels. */
html[data-reg-theme="dark"] body.reg-app-body .wb2 {
    color: var(--reg-central-ink) !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-stats > article,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-card {
    background: var(--reg-central-surface) !important;
    border-color: var(--reg-central-border) !important;
    color: var(--reg-central-ink) !important;
    box-shadow: var(--reg-central-shadow) !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-stats > article {
    border-top-color: var(--reg-central-gold) !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-stats article > span {
    color: #6b5733 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-stats article > strong,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-board-head h2,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-summary h2,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-finance h2 {
    color: var(--reg-central-ink) !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-stats article > small,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-board-head p,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-summary header p,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-finance header p {
    color: var(--reg-central-muted) !important;
}

/* The weekly controls are bright and legible even while dark mode is on. */
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-tabs a:not(.current),
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-week .wb2-today {
    background: #fffdf9 !important;
    border-color: #dccba8 !important;
    color: #473819 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-tabs a.current {
    background: #d5a537 !important;
    border-color: #b88b24 !important;
    color: #261e10 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-filter label,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-week label {
    color: #544631 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-filter input[type="search"] {
    background: #fffdfa !important;
    border-color: #d9c69c !important;
    color: var(--reg-central-ink) !important;
    color-scheme: light;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-filter input[type="search"]::placeholder {
    color: #766c5e !important;
    opacity: 1;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-filter input[type="search"]:focus-visible,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-tools :is(a, button):focus-visible {
    outline: 2px solid #b88725;
    outline-offset: 2px;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-disclaimer {
    background: #fff8e3 !important;
    border-left-color: #c9951f !important;
    color: #51452c !important;
}

/* Keep coloured planning cells and dark Werkbon group separators
   unchanged. Only improve text and surrounding surfaces. */
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-matrix {
    color: #252934 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-matrix :is(th, td) {
    border-color: #e9dfcf !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-matrix thead th {
    color: #40331c !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-matrix .wb2-block th {
    color: #ffffff !important;
    border-color: #242424 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-matrix .wb2-block span {
    color: #f3e4c0 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-company td,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-finance td {
    color: #282c34 !important;
}

/* Company / financial subsection titles are structural headings, not
   warning/status badges. Align their accent bars with the graphite hero. */
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-company h3,
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-finance th {
    background: #303744 !important;
    color: #fffdf8 !important;
}
html[data-reg-theme="dark"] body.reg-app-body .wb2 .wb2-company h3 .wb2-company-count {
    background: #fff3d2 !important;
    color: #594113 !important;
}

/* -------------------------------------------------------------
 * Inventory R4 / dark hero button contrast hotfix.
 * Inventory R1 has .inv-page a { color: inherit; }, so buttons
 * inside the graphite hero inherit white text on ivory/gold.
 * Restrict this correction to inventory hero ACTION links only;
 * no light-mode, layout, stock, or form rules are modified.
 * ------------------------------------------------------------- */
html[data-reg-theme="dark"] body.reg-app-body .inv-page .inv-hero .inv-hero-action a.inv-button.inv-button-white {
    background: #fffaf0 !important;
    border-color: #e0c692 !important;
    color: #36260d !important;
    text-shadow: none !important;
}
html[data-reg-theme="dark"] body.reg-app-body .inv-page .inv-hero .inv-hero-action a.inv-button.inv-button-white:hover {
    background: #ffefcb !important;
    border-color: #c79b3f !important;
    color: #30200b !important;
}
html[data-reg-theme="dark"] body.reg-app-body .inv-page .inv-hero .inv-hero-action a.inv-button.inv-button-primary {
    color: #21190d !important;
    text-shadow: none !important;
}
html[data-reg-theme="dark"] body.reg-app-body .inv-page .inv-hero .inv-hero-action a.inv-button:focus-visible {
    outline: 3px solid #f0c85f !important;
    outline-offset: 3px;
}
