/* ============================================================================
   WikiDoc — Night mode (dark theme)
   ----------------------------------------------------------------------------
   Activated by the `wd-dark` class on <html>, toggled from the TopMenu
   day/night button (window.wikidocTheme in js/wikidoc.js) and persisted in
   localStorage under 'wd-theme'. An inline pre-paint script in App.razor
   applies the class before first render so there is no white flash.

   Lives in wwwroot (NOT a .razor.css) deliberately — same deploy-reliability
   reason as the review styles (§4.25 in CLAUDE.md): app.css-style plain
   stylesheets always load; the CSS-isolation bundle can go stale on publish.
   Loaded AFTER wikidocweb.styles.css so `html.wd-dark ...` rules also win
   against component-scoped rules via cascade order + specificity.

   Structure:
     1. Tokens + base (html/body, scrollbars, links)
     2. Theme-toggle button (icon swap — includes the LIGHT-mode rule)
     3. Top navbar + admin dropdown
     4. Bootstrap components (cards, modals, tables, forms, alerts, …)
     5. Grouped overrides for custom classes (surfaces / headers / hovers /
        tinted states / text), generated from an inventory of every
        light-background class across app.css + the component stylesheets.
   ============================================================================ */

/* ── 1. Tokens + base ─────────────────────────────────────────────────────── */

html.wd-dark {
    color-scheme: dark;
    --wd-bg: #262626;            /* page background */
    --wd-surface: #2e2e2e;       /* cards, panels, modals (was #fff) */
    --wd-surface-2: #373737;     /* headers, subtle grey bands (was #f8f9fa…) */
    --wd-surface-3: #414141;     /* hover / raised */
    --wd-border: #4d4d4d;
    --wd-border-soft: #3c3c3c;
    --wd-text: #d9d9d9;
    --wd-text-strong: #f0f0f0;
    --wd-muted: #a6a6a6;
    --wd-link: #6aa6f8;
}

html.wd-dark,
html.wd-dark body {
    background: var(--wd-bg);
    color: var(--wd-text);
}

html.wd-dark a,
html.wd-dark .btn-link {
    color: var(--wd-link);
}

html.wd-dark h1, html.wd-dark h2, html.wd-dark h3,
html.wd-dark h4, html.wd-dark h5, html.wd-dark h6 {
    color: var(--wd-text-strong);
}

html.wd-dark hr {
    border-color: var(--wd-border);
}

html.wd-dark .page-loading-overlay {
    background-color: rgba(10, 13, 20, 0.82);
}

html.wd-dark .main-content-container,
html.wd-dark .main-container {
    background: var(--wd-bg);
}

/* ── 2. Day/Night toggle button (markup in TopMenu.razor) ─────────────────── */

.wd-theme-toggle .wd-theme-icon-sun,
.wd-theme-toggle .wd-theme-label-day {
    display: none;
}

html.wd-dark .wd-theme-toggle .wd-theme-icon-sun,
html.wd-dark .wd-theme-toggle .wd-theme-label-day {
    display: inline;
}

html.wd-dark .wd-theme-toggle .wd-theme-icon-moon,
html.wd-dark .wd-theme-toggle .wd-theme-label-night {
    display: none;
}

.wd-theme-toggle .fa-moon { color: #3b4252; }
html.wd-dark .wd-theme-toggle .fa-sun { color: #fbbf24; }

/* ── 3. Top navbar + admin dropdown ───────────────────────────────────────── */

html.wd-dark nav.navbar {
    background-color: #1f1f1f !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

html.wd-dark .nav-link,
html.wd-dark .dropbtn,
html.wd-dark .topbar-item-text,
html.wd-dark .topbar-item-block a {
    color: var(--wd-text) !important;
}

html.wd-dark .nav-link:hover,
html.wd-dark .dropbtn:hover,
html.wd-dark .dropbtn:focus,
html.wd-dark .topbar-item-block:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* Inline SVG icons in the navbar carry hardcoded fill="#353533" attributes —
   the CSS `fill` property outranks presentation attributes, so this wins. */
html.wd-dark nav.navbar svg {
    fill: var(--wd-text);
}

html.wd-dark .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.12);
}

html.wd-dark .navbar-light .navbar-toggler-icon {
    filter: invert(1);
}

html.wd-dark .ddown-content {
    background-color: var(--wd-surface);
    border-color: var(--wd-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

html.wd-dark .ddown-item,
html.wd-dark .topbar-ddown-item-text,
html.wd-dark #admDrop .navbar-dropdown-container li a {
    color: var(--wd-text);
}

html.wd-dark #admDrop .navbar-dropdown-container li a:hover {
    background-color: var(--wd-surface-3);
}

html.wd-dark .ddown-section-label {
    color: var(--wd-muted);
}

html.wd-dark .topbar {
    background-color: #1a1a1a;
}

/* ── 4. Bootstrap components ──────────────────────────────────────────────── */

/* Cards */
html.wd-dark .card {
    background-color: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .card-header,
html.wd-dark .card-footer {
    background-color: var(--wd-surface-2);
    border-color: var(--wd-border);
}

/* Modals */
html.wd-dark .modal-content {
    background-color: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .modal-header,
html.wd-dark .modal-footer {
    border-color: var(--wd-border);
}

html.wd-dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(180%);
}

/* Tables (Bootstrap + QuickGrid renders plain <table class="table">) */
html.wd-dark .table {
    color: var(--wd-text);
    border-color: var(--wd-border);
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
    --bs-table-striped-color: var(--wd-text);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-table-hover-color: var(--wd-text);
}

html.wd-dark th,
html.wd-dark td {
    border-color: var(--wd-border-soft);
}

html.wd-dark thead {
    background-color: var(--wd-surface-2);
}

html.wd-dark tbody td {
    color: var(--wd-text);
}

/* Generic striped/hover rows used by the scoped ::deep grid styles
   (AdmDocumente QuickGrid, Home doc lists, …) */
html.wd-dark tbody tr:nth-child(odd) td { background-color: transparent; }
html.wd-dark tbody tr:nth-child(even) td { background-color: rgba(255, 255, 255, 0.03); }
html.wd-dark tbody tr:hover td { background-color: rgba(255, 255, 255, 0.06); }

/* Named tables whose scoped rules carry higher specificity */
html.wd-dark .rf-table thead tr th,
html.wd-dark .clients-table thead tr th {
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .rf-table tbody tr:nth-child(odd) td,
html.wd-dark .clients-table tbody tr:nth-child(odd) td { background: transparent; }

html.wd-dark .rf-table tbody tr:nth-child(even) td,
html.wd-dark .clients-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.03); }

html.wd-dark .rf-table tbody tr:hover td,
html.wd-dark .clients-table tbody tr:hover td { background: rgba(255, 255, 255, 0.06); }

/* Forms */
html.wd-dark .form-control,
html.wd-dark .form-select,
html.wd-dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="submit"]):not([type="button"]),
html.wd-dark select,
html.wd-dark textarea {
    background-color: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .form-control:focus,
html.wd-dark .form-select:focus,
html.wd-dark input:focus,
html.wd-dark select:focus,
html.wd-dark textarea:focus {
    background-color: var(--wd-surface-3);
    border-color: var(--wd-link);
    color: var(--wd-text-strong);
    box-shadow: 0 0 0 0.2rem rgba(106, 166, 248, 0.2);
}

html.wd-dark .form-control:disabled,
html.wd-dark .form-control[readonly],
html.wd-dark input:disabled,
html.wd-dark select:disabled,
html.wd-dark textarea:disabled {
    background-color: var(--wd-surface);
    color: var(--wd-muted);
}

html.wd-dark ::placeholder {
    color: var(--wd-muted);
    opacity: 1;
}

/* Re-draw the .form-select caret in a light stroke (the default is dark) */
html.wd-dark .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23aab2c5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

html.wd-dark .form-check-input {
    background-color: var(--wd-surface-2);
    border-color: var(--wd-border);
}

html.wd-dark .form-check-input:checked {
    background-color: #2f6fd0;
    border-color: #2f6fd0;
}

html.wd-dark .input-group-text {
    background-color: var(--wd-surface-3);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

/* Dropdown menus */
html.wd-dark .dropdown-menu {
    background-color: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .dropdown-item { color: var(--wd-text); }
html.wd-dark .dropdown-item:hover,
html.wd-dark .dropdown-item:focus {
    background-color: var(--wd-surface-3);
    color: var(--wd-text-strong);
}
html.wd-dark .dropdown-divider { border-color: var(--wd-border); }

/* List groups */
html.wd-dark .list-group-item {
    background-color: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

/* Accordions */
html.wd-dark .accordion-item {
    background-color: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .accordion-button {
    background-color: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .accordion-button:not(.collapsed) {
    background-color: var(--wd-surface-3);
    color: var(--wd-text-strong);
}

html.wd-dark .accordion-button::after {
    filter: invert(1) grayscale(100%) brightness(160%);
}

html.wd-dark .accordion-body {
    background-color: var(--wd-surface);
    color: var(--wd-text);
}

/* Tabs, pagination, breadcrumbs */
html.wd-dark .nav-tabs { border-color: var(--wd-border); }
html.wd-dark .nav-tabs .nav-link { color: var(--wd-text) !important; }
html.wd-dark .nav-tabs .nav-link.active {
    background-color: var(--wd-surface);
    border-color: var(--wd-border) var(--wd-border) var(--wd-surface);
    color: var(--wd-text-strong) !important;
}

html.wd-dark .page-link {
    background-color: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-link);
}

html.wd-dark .breadcrumb { background-color: var(--wd-surface-2); }

/* Buttons that assume a light page */
html.wd-dark .btn-light {
    background-color: var(--wd-surface-3);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .btn-outline-secondary,
html.wd-dark .btn-outline-dark {
    color: var(--wd-text);
    border-color: var(--wd-border);
}

html.wd-dark .btn-outline-secondary:hover,
html.wd-dark .btn-outline-dark:hover {
    background-color: var(--wd-surface-3);
    color: var(--wd-text-strong);
}

/* Utility classes */
html.wd-dark .bg-white { background-color: var(--wd-surface) !important; }
html.wd-dark .bg-light { background-color: var(--wd-surface-2) !important; }
html.wd-dark .text-dark { color: var(--wd-text) !important; }
html.wd-dark .text-body { color: var(--wd-text) !important; }
html.wd-dark .text-muted { color: var(--wd-muted) !important; }
html.wd-dark .text-secondary { color: var(--wd-muted) !important; }
html.wd-dark .text-black-50 { color: var(--wd-muted) !important; }
html.wd-dark .border { border-color: var(--wd-border) !important; }
html.wd-dark .badge.bg-light { color: var(--wd-text) !important; }
html.wd-dark .shadow-sm,
html.wd-dark .shadow { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important; }

/* Alerts — dark tinted variants */
html.wd-dark .alert-primary   { background: #172a45; border-color: #29497a; color: #a5c6f2; }
html.wd-dark .alert-info      { background: #10303f; border-color: #1d566e; color: #93d6f2; }
html.wd-dark .alert-success   { background: #122e1f; border-color: #1e5233; color: #93e0af; }
html.wd-dark .alert-warning   { background: #362c10; border-color: #6b5518; color: #f5d882; }
html.wd-dark .alert-danger    { background: #3a181b; border-color: #6e2a2e; color: #f2a6ab; }
html.wd-dark .alert-secondary,
html.wd-dark .alert-light     { background: var(--wd-surface-2); border-color: var(--wd-border); color: var(--wd-text); }

/* Toasts / popovers */
html.wd-dark .toast {
    background-color: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

/* ── 5. Custom app surfaces (grouped by token) ───────────────────────────── */

/* 5a. White panels → surface. Inventory: app.css + component stylesheets. */
html.wd-dark .administrator-data,
html.wd-dark .module,
html.wd-dark .plan-card,
html.wd-dark .contract-section,
html.wd-dark .setdoc-modal,
html.wd-dark .setdoc-doc-list,
html.wd-dark .setdoc-doc-check,
html.wd-dark .feedback-form,
html.wd-dark .feedback-pill,
html.wd-dark .feedback-scale-btn,
html.wd-dark .feedback-thanks,
html.wd-dark .review-popup,
html.wd-dark .review-list-filters,
html.wd-dark .review-card,
html.wd-dark .review-wizard-pill,
html.wd-dark .review-wizard-scale-btn,
html.wd-dark .support-list-toolbar,
html.wd-dark .support-card,
html.wd-dark .support-info-card,
html.wd-dark .doc-puncte-dropdown,
html.wd-dark .tier-popover,
html.wd-dark .doc-row-available,
html.wd-dark .doc-section-available,
html.wd-dark .client-search-box,
html.wd-dark .client-dropdown-toggle,
html.wd-dark .client-dropdown-menu,
html.wd-dark .doc-seturi-banner-exit,
html.wd-dark .adm-act-toolbar,
html.wd-dark .adm-act-tri,
html.wd-dark .adm-act-stat,
html.wd-dark .adm-act-empty,
html.wd-dark .adm-act-table-wrap,
html.wd-dark .adm-act-toggle,
html.wd-dark .adm-act-modal,
html.wd-dark .adm-grid-card,
html.wd-dark .chatbot-panel,
html.wd-dark .chatbot-panel-footer,
html.wd-dark .chatbot-msg--assistant .chatbot-msg-bubble,
html.wd-dark .chatbot-card,
html.wd-dark .data-card,
html.wd-dark .elab-client-dropdown-toggle,
html.wd-dark .elab-client-dropdown-menu,
html.wd-dark .elab-client-dropdown-filters,
html.wd-dark .elab-sig-preview,
html.wd-dark .elab-show-configured-btn,
html.wd-dark .elab-company-card,
html.wd-dark .manage-card,
html.wd-dark .btn-view-user-data,
html.wd-dark .adm-mt-card,
html.wd-dark .adm-mt-mode-toggle,
html.wd-dark .adm-cbi-stat,
html.wd-dark .adm-cbi-toolbar,
html.wd-dark .adm-cbi-filter,
html.wd-dark .adm-cbi-table-wrapper,
html.wd-dark .adm-cbi-modal,
html.wd-dark .adm-cbi-progress-card,
html.wd-dark .stat-card,
html.wd-dark .search-input,
html.wd-dark .gdpr-paper,
html.wd-dark .gdpr-history-scroll,
html.wd-dark .gdpr-load-more-btn,
html.wd-dark .seturi-dropdown-toggle,
html.wd-dark .seturi-dropdown-menu,
html.wd-dark .seturi-btn-save-current,
html.wd-dark .rf-mode-btn,
html.wd-dark .rfimg-preview,
html.wd-dark .subscription-box.default-highlighted,
html.wd-dark .subscription-box.hovered,
html.wd-dark .subscription-box:hover {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

/* 5b. Light-grey bands / headers / inputs → surface-2 */
html.wd-dark .data-card-header,
html.wd-dark .manage-card-header,
html.wd-dark .manage-info-field,
html.wd-dark .manage-platitor-tva,
html.wd-dark .manage-logo-preview,
html.wd-dark .doc-top-toolbar,
html.wd-dark .doc-header-row,
html.wd-dark .doc-puncte-dropdown-header,
html.wd-dark .domain-selector-section,
html.wd-dark .contract-header,
html.wd-dark .setdoc-modal-footer,
html.wd-dark .setdoc-counter,
html.wd-dark .chatbot-panel-header,
html.wd-dark .chatbot-card-header,
html.wd-dark .chatbot-input,
html.wd-dark .chatbot-disclaimer,
html.wd-dark .chatbot-panel-body,
html.wd-dark .adm-act-preset-btn,
html.wd-dark .adm-act-modal-head,
html.wd-dark .adm-act-detaliu-head,
html.wd-dark .bulk-dropzone,
html.wd-dark .bulk-legend,
html.wd-dark .frag-dropzone,
html.wd-dark .adm-mt-dropzone,
html.wd-dark .adm-mt-mode-bar,
html.wd-dark .adm-mt-doc-row,
html.wd-dark .adm-mt-compare-frame-wrap,
html.wd-dark .adm-cbi-modal-header,
html.wd-dark .adm-cbi-modal-footer,
html.wd-dark .feedback-accordion,
html.wd-dark .review-wizard-accordion,
html.wd-dark .support-card-body,
html.wd-dark .elab-accordion .accordion-button,
html.wd-dark .elab-sig-card,
html.wd-dark .elab-cards-modal-body,
html.wd-dark .gdpr-note,
html.wd-dark .gdpr-kv-table th,
html.wd-dark .gdpr-punct,
html.wd-dark .doc-seturi-row,
html.wd-dark .doc-seturi-row-free,
html.wd-dark .doc-preset-help,
html.wd-dark .doc-filter-select,
html.wd-dark .doc-search-input,
html.wd-dark .adm-search-input,
html.wd-dark .adm-filter-select,
html.wd-dark .top-row,
html.wd-dark .doc-category,
html.wd-dark .review-list-tab-count,
html.wd-dark .adm-act-badge-self,
html.wd-dark .adm-act-back,
html.wd-dark .adm-act-mini-grey,
html.wd-dark .adm-act-filter-note,
html.wd-dark .adm-act-clear-filter,
html.wd-dark .adm-act-subtitle code,
html.wd-dark .adm-cbi-btn-refresh,
html.wd-dark .adm-cbi-badge-notindexed,
html.wd-dark .adm-cbi-badge-excluded,
html.wd-dark .adm-mt-pill--empty,
html.wd-dark .elab-subaccount-chip,
html.wd-dark .btn-subscribe-main:disabled,
html.wd-dark .doc-seturi-mode-pill-free,
html.wd-dark .fake-checkbox,
html.wd-dark .terms-conditions-box,
html.wd-dark .support-card-category-other,
html.wd-dark .setdoc-modal-header-secondary,
html.wd-dark .seturi-dropdown-divider {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

/* Support page inputs force white with !important — match strength. */
html.wd-dark .support-input {
    background: var(--wd-surface-2) !important;
    border-color: var(--wd-border) !important;
    color: var(--wd-text) !important;
}

html.wd-dark .support-input:disabled {
    background: var(--wd-surface) !important;
    color: var(--wd-muted) !important;
}

html.wd-dark .btn-support-secondary {
    background: var(--wd-surface-2) !important;
    border-color: var(--wd-border) !important;
    color: var(--wd-text) !important;
}

/* 5c. Hovers on white/pale-blue → raised surface */
html.wd-dark .doc-punct-row:hover,
html.wd-dark .doc-row-available:hover,
html.wd-dark .client-dropdown-item:hover,
html.wd-dark .domain-btn:hover,
html.wd-dark .manage-add-btn:hover,
html.wd-dark .manage-icon-action:hover:not(:disabled),
html.wd-dark .adm-mt-icon-btn:hover:not(:disabled),
html.wd-dark .adm-mt-mode-btn:hover:not(:disabled):not(.is-active),
html.wd-dark .adm-mt-doc-row:hover,
html.wd-dark .setdoc-doc-row:hover,
html.wd-dark .seturi-dropdown-item:hover,
html.wd-dark .elab-client-dropdown-item:hover:not(.disabled),
html.wd-dark .adm-cbi-row:hover,
html.wd-dark .chatbot-doc-row:hover,
html.wd-dark .adm-act-preset-btn:hover,
html.wd-dark .adm-act-toggle:hover,
html.wd-dark .adm-act-modal-x:hover,
html.wd-dark .adm-act-back:hover,
html.wd-dark .adm-act-mini-grey:hover,
html.wd-dark .client-search-clear:hover,
html.wd-dark .seturi-btn-save-current:hover,
html.wd-dark .bulk-dropzone:hover,
html.wd-dark .frag-dropzone:hover,
html.wd-dark .doc-filter-select:focus,
html.wd-dark .doc-search-input:focus,
html.wd-dark .adm-search-input:focus,
html.wd-dark .adm-filter-select:focus {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

/* 5d. Tinted states — green (selected / success) */
html.wd-dark .doc-row-selected,
html.wd-dark .doc-punct-row-checked,
html.wd-dark .doc-section-selected .doc-section-header,
html.wd-dark .setdoc-doc-row-selected,
html.wd-dark .adm-act-kill-on,
html.wd-dark .adm-act-mini-green,
html.wd-dark .adm-act-regen-note.ok,
html.wd-dark .elab-toast-success,
html.wd-dark .status-active-badge,
html.wd-dark .plan-disc-box,
html.wd-dark .support-state-success,
html.wd-dark .adm-mt-dropzone.is-filled,
html.wd-dark .rfimg-info,
html.wd-dark .rfimg-grid-badge {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #7ed99a;
}

html.wd-dark .doc-row-selected,
html.wd-dark .doc-punct-row-checked,
html.wd-dark .setdoc-doc-row-selected {
    color: var(--wd-text);
}

html.wd-dark .doc-row-selected:hover {
    background: rgba(239, 68, 68, 0.14); /* red tint = "click to deselect" cue */
}

html.wd-dark .doc-section-selected .doc-section-header { color: #7ed99a; }

/* Inline last-archive card (green gradient) */
html.wd-dark .doc-last-archive {
    background: linear-gradient(135deg, #0e2b20, #12382a);
    border-color: rgba(52, 211, 153, 0.35);
}

html.wd-dark .doc-last-archive-name { color: #a7f3d0; }
html.wd-dark .doc-last-archive-meta { color: #6ee7b7; }
html.wd-dark .doc-last-archive-icon { color: #34d399; }

/* 5e. Tinted states — red (errors / danger) */
html.wd-dark .sub-error-msg,
html.wd-dark .feedback-error,
html.wd-dark .review-wizard-error,
html.wd-dark .support-card-category-urgent,
html.wd-dark .adm-act-kill-off,
html.wd-dark .adm-act-row-threat td,
html.wd-dark .adm-act-regen-note.err,
html.wd-dark .support-state-error,
html.wd-dark .elab-toast-error,
html.wd-dark .elab-field-chip.miss,
html.wd-dark .status-inactive-badge,
html.wd-dark .bulk-rejected,
html.wd-dark .chatbot-notice-error,
html.wd-dark .chatbot-doc-btn-failed,
html.wd-dark .seturi-item-delete:hover,
html.wd-dark .manage-logo-error {
    background: rgba(239, 68, 68, 0.13);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f1a0a5;
}

html.wd-dark .adm-act-tri-error:hover,
html.wd-dark .adm-act-tri-error.active { background: rgba(239, 68, 68, 0.13); }

/* 5f. Tinted states — yellow/amber (warnings / unread) */
html.wd-dark .no-plan-hint,
html.wd-dark .support-card-unread,
html.wd-dark .support-card-category-ops,
html.wd-dark .adm-act-badge-onbehalf,
html.wd-dark .adm-act-row-watch td,
html.wd-dark .chatbot-notice-warning,
html.wd-dark .adm-cbi-notice-warning,
html.wd-dark .adm-cbi-badge-stale,
html.wd-dark .support-state-warning,
html.wd-dark .status-incomplete-badge,
html.wd-dark .elab-card-domain-pill.elab-state-partial {
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f2c76a;
}

html.wd-dark .adm-act-tri-warning:hover,
html.wd-dark .adm-act-tri-warning.active { background: rgba(245, 158, 11, 0.13); }

html.wd-dark .doc-empty-state-soon {
    background: linear-gradient(180deg, #2b2410 0%, #1d1a10 100%);
}

/* 5g. Tinted states — blue/indigo (info / chips) */
html.wd-dark .plan-prorata-box,
html.wd-dark .adm-act-inspect,
html.wd-dark .adm-act-dom-chip,
html.wd-dark .adm-act-mini-blue,
html.wd-dark .subscription-box,
html.wd-dark .frag-file-pill,
html.wd-dark .frag-badge,
html.wd-dark .btn-add-icon,
html.wd-dark .bulk-dropzone.is-dragover,
html.wd-dark .frag-dropzone.is-dragover,
html.wd-dark .adm-mt-dropzone.is-dragover,
html.wd-dark .support-info-card--accent,
html.wd-dark .chatbot-doc-module,
html.wd-dark .chatbot-citation,
html.wd-dark .adm-cbi-module,
html.wd-dark .client-dropdown-item.selected,
html.wd-dark .elab-client-dropdown-item.selected,
html.wd-dark .support-urgent-banner {
    background: rgba(96, 165, 250, 0.13);
    border-color: rgba(96, 165, 250, 0.35);
    color: #9dc3f2;
}

/* 5h. Tinted states — purple (SetDocumente / group mode) */
html.wd-dark .setdoc-modal-header,
html.wd-dark .doc-seturi-row-group,
html.wd-dark .doc-seturi-banner,
html.wd-dark .seturi-dropdown-toggle-active,
html.wd-dark .seturi-dropdown-item-active,
html.wd-dark .elab-sig-header {
    background: linear-gradient(135deg, #2a2350 0%, #352b63 100%);
    border-color: rgba(167, 139, 250, 0.4);
    color: #c4b5fd;
}

html.wd-dark .doc-seturi-banner-exit:hover { background: var(--wd-surface-3); }

html.wd-dark .setdoc-modal-header-danger {
    background: linear-gradient(135deg, #3a181b 0%, #4a2024 100%);
    color: #f1a0a5;
}

/* 5i. Page backgrounds with light gradients */
html.wd-dark .support-page {
    background: linear-gradient(180deg, #262626 0%, #2b2b2b 100%);
}

/* 5j. Hardcoded dark text on recolored surfaces */
html.wd-dark .doc-name,
html.wd-dark .doc-punct-name,
html.wd-dark .adm-doc-title,
html.wd-dark .tier-popover-title,
html.wd-dark .client-search-box,
html.wd-dark .client-dropdown-toggle,
html.wd-dark .doc-filter-select,
html.wd-dark .adm-search-input,
html.wd-dark .adm-filter-select,
html.wd-dark .bulk-dropzone-title,
html.wd-dark .bulk-legend-item,
html.wd-dark .bulk-filename,
html.wd-dark .bulk-match-info,
html.wd-dark .adm-no-results span,
html.wd-dark .doc-search-clear:hover,
html.wd-dark .client-search-clear:hover {
    color: var(--wd-text);
}

/* Headers whose children hardcode near-black titles */
html.wd-dark .chatbot-panel-header *,
html.wd-dark .chatbot-card-header *,
html.wd-dark .adm-cbi-modal-header *,
html.wd-dark .adm-act-modal-head *,
html.wd-dark .data-card-header *,
html.wd-dark .manage-card-header * {
    color: var(--wd-text);
}

/* Muted secondary text that hardcodes mid-grey and stays readable enough is
   left alone; anything darker inherits from the surface rules above. */

/* Iframes rendering PDFs stay white by nature (PDF canvas) — acceptable. */

/* ============================================================================
   6. PER-PAGE FULL COVERAGE (generated 2026-07-09 from a per-file sweep of
   every stylesheet + inline <style> block; loads after the grouped sections
   above, so these more complete per-page rules win where they overlap).
   ============================================================================ */

/* ── app.css custom-class overrides ── */

/* ── Base / misc (app.css top) ─────────────────────────────────────────── */

/* Focus ring uses a white inner ring — swap for page bg so it reads on dark */
html.wd-dark .btn:focus,
html.wd-dark .btn:active:focus,
html.wd-dark .btn-link.nav-link:focus,
html.wd-dark .form-control:focus,
html.wd-dark .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--wd-bg), 0 0 0 0.25rem #258cfb;
}

html.wd-dark .selected-module {
    border: 1px solid #1b6ec2 !important;
    box-shadow: 0 0 0 0.1rem var(--wd-bg), 0 0 0 0.25rem #258cfb !important;
}

html.wd-dark .selected-button {
    border: 1px solid #1b6ec2;
    box-shadow: 0 0 0 0.1rem var(--wd-bg), 0 0 0 0.25rem #258cfb;
}

html.wd-dark .page-loading-overlay .page-loading-overlay-text {
    color: var(--wd-text);
}

html.wd-dark .eye-icon {
    color: var(--wd-text);
}

html.wd-dark .link-button {
    color: var(--wd-link);
}

html.wd-dark .disabled-link {
    color: var(--wd-muted);
}

html.wd-dark .renewal-link {
    color: var(--wd-link);
}

html.wd-dark .domeni-p {
    color: var(--wd-muted);
}

/* Status text — brighten for dark surfaces */
html.wd-dark .status-active,
html.wd-dark .status-notexpired {
    color: #7ed99a;
}

html.wd-dark .status-expired {
    color: #f1a0a5;
}

/* ── .administrator-data table ─────────────────────────────────────────── */

html.wd-dark .administrator-data {
    background: var(--wd-surface);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.45);
}

html.wd-dark .administrator-head h4 {
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .administrator-data table thead tr {
    background: var(--wd-surface-2);
}

html.wd-dark .administrator-data table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

html.wd-dark .administrator-data table tr th,
html.wd-dark .administrator-data table tr td {
    color: var(--wd-text);
}

html.wd-dark .administrator-data table tr td .edit {
    color: var(--wd-link);
}

/* Scoped sticky thead (grid) */
html.wd-dark [b-5wuud7risv] thead {
    background-color: var(--wd-surface-2);
}

/* ── Module cards + fake checkbox (registration / CreateEditUser) ─────── */

html.wd-dark .module {
    background-color: var(--wd-surface);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

html.wd-dark .module label {
    color: var(--wd-text);
}

html.wd-dark .fake-checkbox {
    background-color: var(--wd-surface-2);
    border-color: var(--wd-border);
}

/* Re-assert checked state (base override above would outrank the original) */
html.wd-dark .module.selected .fake-checkbox {
    background-color: #007bff;
    border-color: #007bff;
}

/* ── .subscription-box (legacy subscription tiles) ─────────────────────── */

html.wd-dark .subscription-box {
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .subscription-box.default-highlighted,
html.wd-dark .subscription-box.hovered,
html.wd-dark .subscription-box:hover {
    background: var(--wd-surface-3);
    box-shadow: 0 7px 29px 0 rgba(0, 0, 0, 0.5);
}

html.wd-dark .btn-subscription:hover {
    color: var(--wd-text-strong);
}

/* ── Subscription / Upgrade / ActivateSubscription (.sub-page family) ──── */

html.wd-dark .sub-title {
    color: var(--wd-text-strong);
}

html.wd-dark .sub-subtitle {
    color: var(--wd-muted);
}

html.wd-dark .tier-col {
    background: rgba(27, 32, 43, 0.8);
    border-color: var(--wd-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

html.wd-dark .tier-col-label {
    color: var(--wd-muted);
}

/* Plan cards — body text (headers keep their per-tier gradients) */
html.wd-dark .plan-card {
    background: var(--wd-surface);
    border-color: var(--wd-border-soft);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

html.wd-dark .plan-card:hover:not(.plan-card--selected) {
    border-color: #93c5fd;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.15);
}

html.wd-dark .plan-card--selected {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2), 0 6px 24px rgba(0, 0, 0, 0.4);
}

html.wd-dark .plan-badge {
    box-shadow: 0 0 0 3px var(--wd-surface), 0 6px 18px rgba(180, 83, 9, 0.45);
}

html.wd-dark .plan-name {
    color: var(--wd-text-strong);
}

html.wd-dark .plan-card-desc {
    color: var(--wd-muted);
}

html.wd-dark .plan-price-main {
    color: var(--wd-text-strong);
}

html.wd-dark .plan-period-label {
    color: var(--wd-muted);
}

html.wd-dark .plan-monthly-equiv {
    color: var(--wd-muted);
}

html.wd-dark .plan-vat-note {
    color: var(--wd-muted);
}

html.wd-dark .plan-feats li {
    color: var(--wd-text);
}

html.wd-dark .plan-disc-box {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #7ed99a;
}

html.wd-dark .plan-disc-box--none {
    background: var(--wd-surface-2);
    border-color: var(--wd-border-soft);
    color: var(--wd-muted);
}

/* Contract section */
html.wd-dark .contract-section {
    background: var(--wd-surface);
    border-color: var(--wd-border-soft);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

html.wd-dark .contract-header {
    background: var(--wd-surface-2);
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .contract-header-title {
    color: var(--wd-text-strong);
}

html.wd-dark .contract-body {
    color: var(--wd-text);
}

html.wd-dark .contract-body::-webkit-scrollbar-track {
    background: var(--wd-surface-2);
}

html.wd-dark .contract-body::-webkit-scrollbar-thumb {
    background: #565656;
}

html.wd-dark .contract-body h6 {
    color: var(--wd-text-strong);
}

html.wd-dark .contract-footer {
    border-top-color: var(--wd-border-soft);
}

html.wd-dark .contract-agree-label {
    color: var(--wd-text);
}

html.wd-dark .btn-subscribe-main:disabled {
    background: var(--wd-surface-2);
    color: var(--wd-muted);
}

html.wd-dark .sub-error-msg {
    background: rgba(239, 68, 68, 0.13);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f1a0a5;
}

html.wd-dark .no-plan-hint {
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f2c76a;
}

html.wd-dark .plan-prorata-box {
    background: rgba(96, 165, 250, 0.13);
    border-color: rgba(96, 165, 250, 0.35);
    color: #9dc3f2;
}

html.wd-dark .plan-prorata-box strong {
    color: #9dc3f2;
}

/* ── SetDocumente modals (.setdoc-*) ───────────────────────────────────── */

html.wd-dark .setdoc-modal {
    background: var(--wd-surface);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

html.wd-dark .setdoc-modal-header {
    background: linear-gradient(135deg, #2a2350 0%, #352b63 100%);
    border-bottom-color: var(--wd-border);
}

html.wd-dark .setdoc-modal-header h5 {
    color: #c4b5fd;
}

html.wd-dark .setdoc-close-btn {
    color: var(--wd-muted);
}

html.wd-dark .setdoc-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--wd-text-strong);
}

html.wd-dark .setdoc-modal-footer {
    background: var(--wd-surface-2);
    border-top-color: var(--wd-border);
}

html.wd-dark .setdoc-name-row label {
    color: var(--wd-text);
}

html.wd-dark .setdoc-search-icon {
    color: var(--wd-muted);
}

html.wd-dark .setdoc-search-clear {
    color: var(--wd-muted);
}

html.wd-dark .setdoc-search-clear:hover {
    background: rgba(255, 255, 255, 0.08);
}

html.wd-dark .setdoc-counter {
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .setdoc-counter-num {
    color: #c4b5fd;
}

html.wd-dark .setdoc-doc-list {
    background: var(--wd-surface);
    border-color: var(--wd-border-soft);
}

html.wd-dark .setdoc-doc-row {
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .setdoc-doc-row:hover {
    background: var(--wd-surface-3);
}

html.wd-dark .setdoc-doc-row-selected {
    background: rgba(34, 197, 94, 0.12);
}

html.wd-dark .setdoc-doc-row-selected:hover {
    background: rgba(34, 197, 94, 0.2);
}

html.wd-dark .setdoc-doc-check {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
}

/* Re-assert selected check (base override above outranks the original) */
html.wd-dark .setdoc-doc-row-selected .setdoc-doc-check {
    background: #10b981;
    border-color: #10b981;
}

html.wd-dark .setdoc-doc-name {
    color: var(--wd-text);
}

html.wd-dark .setdoc-doc-meta {
    color: var(--wd-muted);
}

html.wd-dark .setdoc-loading,
html.wd-dark .setdoc-empty {
    color: var(--wd-muted);
}

html.wd-dark .setdoc-modal-header-danger {
    background: linear-gradient(135deg, #3a1a1d 0%, #4a2024 100%);
}

html.wd-dark .setdoc-modal-header-danger h5 {
    color: #f1a0a5;
}

/* ── Chatbot disclaimer band ───────────────────────────────────────────── */

html.wd-dark .chatbot-disclaimer {
    color: var(--wd-muted);
    background: var(--wd-surface-2);
    border-top-color: var(--wd-border-soft);
}

/* ── Public /Feedback page (.feedback-*) ───────────────────────────────── */

html.wd-dark .feedback-page {
    color: var(--wd-text);
}

html.wd-dark .feedback-header h1 {
    color: var(--wd-text-strong);
}

html.wd-dark .feedback-subtitle {
    color: var(--wd-muted);
}

html.wd-dark .feedback-form {
    background: var(--wd-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

html.wd-dark .feedback-fieldset legend {
    color: var(--wd-text-strong);
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .feedback-form label {
    color: var(--wd-text);
}

html.wd-dark .feedback-form input[type="text"],
html.wd-dark .feedback-form input[type="email"],
html.wd-dark .feedback-form input[type="tel"],
html.wd-dark .feedback-form textarea,
html.wd-dark .feedback-text-input,
html.wd-dark .feedback-textarea {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .feedback-star {
    color: #565656;
}

html.wd-dark .feedback-star.active {
    color: #fbbf24;
}

html.wd-dark .feedback-pill {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .feedback-pill:hover {
    border-color: #4285f4;
    color: #9dc3f2;
}

html.wd-dark .feedback-pill.active {
    background: #4285f4;
    border-color: #4285f4;
    color: #ffffff;
}

html.wd-dark .feedback-scale-btn {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .feedback-scale-btn:hover {
    border-color: #4285f4;
    color: #9dc3f2;
}

html.wd-dark .feedback-scale-btn.active {
    background: #4285f4;
    border-color: #4285f4;
    color: #ffffff;
}

html.wd-dark .feedback-accordion {
    background: var(--wd-surface-2);
    border-color: var(--wd-border-soft);
}

html.wd-dark .feedback-accordion > summary {
    color: var(--wd-text);
}

html.wd-dark .feedback-accordion-hint {
    color: var(--wd-muted);
}

html.wd-dark .feedback-accordion-body {
    border-top-color: var(--wd-border-soft);
}

html.wd-dark .feedback-category {
    color: var(--wd-muted);
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .feedback-error {
    background: rgba(239, 68, 68, 0.13);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f1a0a5;
}

html.wd-dark .feedback-thanks {
    background: var(--wd-surface);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

html.wd-dark .feedback-thanks-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #7ed99a;
}

html.wd-dark .feedback-thanks h2 {
    color: var(--wd-text-strong);
}

html.wd-dark .feedback-thanks p {
    color: var(--wd-muted);
}

/* ── In-app review wizard (.review-wizard-*) ───────────────────────────── */

html.wd-dark .review-wizard {
    color: var(--wd-text);
}

html.wd-dark .review-wizard-header h3 {
    color: var(--wd-text-strong);
}

html.wd-dark .review-wizard-header p {
    color: var(--wd-muted);
}

html.wd-dark .review-wizard-label {
    color: var(--wd-text);
}

html.wd-dark .review-star {
    color: #565656;
}

html.wd-dark .review-star.active {
    color: #fbbf24;
}

html.wd-dark .review-wizard-input,
html.wd-dark .review-wizard-textarea {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .review-wizard-pill {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .review-wizard-pill:hover {
    border-color: #4285f4;
    color: #9dc3f2;
}

html.wd-dark .review-wizard-pill.active {
    background: #4285f4;
    border-color: #4285f4;
    color: #ffffff;
}

html.wd-dark .review-wizard-scale-btn {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .review-wizard-scale-btn:hover {
    border-color: #4285f4;
    color: #9dc3f2;
}

html.wd-dark .review-wizard-scale-btn.active {
    background: #4285f4;
    border-color: #4285f4;
    color: #ffffff;
}

html.wd-dark .review-wizard-accordion {
    background: var(--wd-surface-2);
    border-color: var(--wd-border-soft);
}

html.wd-dark .review-wizard-accordion > summary {
    color: var(--wd-text);
}

html.wd-dark .review-wizard-accordion-hint {
    color: var(--wd-muted);
}

html.wd-dark .review-wizard-accordion-body {
    border-top-color: var(--wd-border-soft);
}

html.wd-dark .review-wizard-category {
    color: var(--wd-muted);
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .review-wizard-footer {
    border-top-color: var(--wd-border-soft);
}

html.wd-dark .review-wizard-error {
    background: rgba(239, 68, 68, 0.13);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f1a0a5;
}

html.wd-dark .review-wizard-thanks-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #7ed99a;
}

html.wd-dark .review-wizard-thanks h3 {
    color: var(--wd-text-strong);
}

html.wd-dark .review-wizard-thanks p {
    color: var(--wd-muted);
}

/* ── Clippy-style review popup (.review-popup*) ────────────────────────── */

html.wd-dark .review-popup {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* CSS-triangle tail must match the popup surface */
html.wd-dark .review-popup::after {
    border-top-color: var(--wd-surface);
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.3));
}

html.wd-dark .review-popup-close {
    color: var(--wd-muted);
}

html.wd-dark .review-popup-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--wd-text-strong);
}

html.wd-dark .review-popup-body strong {
    color: var(--wd-text-strong);
}

html.wd-dark .review-popup-body p {
    color: var(--wd-muted);
}

/* ── Admin review list (.review-list-*, .review-card*) ─────────────────── */

html.wd-dark .review-list-filters {
    background: var(--wd-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

html.wd-dark .review-list-tabs {
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .review-list-tab {
    color: var(--wd-muted);
}

html.wd-dark .review-list-tab:hover,
html.wd-dark .review-list-tab.active {
    color: #6aa6f8;
}

html.wd-dark .review-list-tab.active {
    border-bottom-color: #6aa6f8;
}

html.wd-dark .review-list-tab-count {
    background: var(--wd-surface-2);
    color: var(--wd-muted);
}

html.wd-dark .review-list-tab.active .review-list-tab-count {
    background: #4285f4;
    color: #ffffff;
}

html.wd-dark .review-list-controls {
    color: var(--wd-muted);
}

html.wd-dark .review-list-controls select,
html.wd-dark .review-list-controls input[type="date"] {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .review-list-loading,
html.wd-dark .review-list-empty {
    color: var(--wd-muted);
}

html.wd-dark .review-card {
    background: var(--wd-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Keep the source-indicator border-left colors (5a's border-color would eat them) */
html.wd-dark .review-card,
html.wd-dark .review-card-inapp {
    border-left-color: #4285f4;
}

html.wd-dark .review-card-external {
    border-left-color: #10b981;
}

html.wd-dark .review-card-identity strong {
    color: var(--wd-text-strong);
}

html.wd-dark .review-card-company {
    color: var(--wd-muted);
}

html.wd-dark .review-card-source-inapp {
    background: rgba(96, 165, 250, 0.13);
    color: #9dc3f2;
}

html.wd-dark .review-card-source-external {
    background: rgba(34, 197, 94, 0.12);
    color: #7ed99a;
}

html.wd-dark .review-card-star {
    color: #565656;
}

html.wd-dark .review-card-star.filled {
    color: #fbbf24;
}

html.wd-dark .review-card-contact {
    color: var(--wd-muted);
}

html.wd-dark .review-card-ip {
    color: var(--wd-muted);
}

html.wd-dark .review-card-freetext {
    color: var(--wd-text);
}

html.wd-dark .review-card-answers-body {
    border-top-color: var(--wd-border-soft);
}

html.wd-dark .review-card-answers-body h6 {
    color: var(--wd-muted);
}

html.wd-dark .review-card-answer-list dt {
    color: var(--wd-muted);
}

html.wd-dark .review-card-answer-list dd {
    color: var(--wd-text);
}

html.wd-dark .review-card-footer {
    border-top-color: var(--wd-border-soft);
}

html.wd-dark .review-card-date {
    color: var(--wd-muted);
}

/* ── Support messages admin (.support-list-*, .support-card*) ──────────── */

html.wd-dark .support-list-toolbar {
    background: var(--wd-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

html.wd-dark .support-list-stats {
    color: var(--wd-muted);
}

html.wd-dark .support-list-stat strong {
    color: var(--wd-text-strong);
}

/* Re-assert the red unread counter (rule above would outrank the original) */
html.wd-dark .support-list-stat-unread strong {
    color: #f1a0a5;
}

html.wd-dark .support-list-filter {
    color: var(--wd-muted);
}

html.wd-dark .support-list-loading,
html.wd-dark .support-list-empty {
    color: var(--wd-muted);
}

html.wd-dark .support-card {
    background: var(--wd-surface);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    border-left-color: var(--wd-border);
}

html.wd-dark .support-card-unread {
    border-left-color: #dc2626;
    background: rgba(245, 158, 11, 0.07);
}

html.wd-dark .support-card-category-urgent {
    background: rgba(239, 68, 68, 0.13);
    color: #f1a0a5;
}

html.wd-dark .support-card-category-ops {
    background: rgba(245, 158, 11, 0.13);
    color: #f2c76a;
}

html.wd-dark .support-card-category-comm {
    background: rgba(96, 165, 250, 0.13);
    color: #9dc3f2;
}

html.wd-dark .support-card-category-other {
    background: var(--wd-surface-2);
    color: var(--wd-muted);
}

html.wd-dark .support-card-topic {
    color: var(--wd-text-strong);
}

html.wd-dark .support-card-date {
    color: var(--wd-muted);
}

html.wd-dark .support-card-contact {
    color: var(--wd-muted);
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .support-card-contact strong {
    color: var(--wd-text-strong);
}

html.wd-dark .support-card-body {
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .support-card-read-indicator {
    color: var(--wd-muted);
}

/* ── Home.razor.css overrides ── */

/* ══ Source: wikidocweb/Components/Pages/Home.razor.css ══════════════════════ */

/* Puncte de lucru selector dropdown */
html.wd-dark .doc-puncte-dropdown {
    background: var(--wd-surface);
    border-color: var(--wd-border-soft);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

html.wd-dark .doc-puncte-dropdown-header {
    background-color: var(--wd-surface-2);
    border-bottom-color: var(--wd-border-soft);
    color: var(--wd-text);
}

html.wd-dark .doc-puncte-link {
    color: var(--wd-link);
}

html.wd-dark .doc-puncte-sep {
    color: var(--wd-muted);
}

html.wd-dark .doc-punct-row {
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .doc-punct-row:hover {
    background-color: var(--wd-surface-3);
}

html.wd-dark .doc-punct-row-checked {
    background-color: rgba(34, 197, 94, 0.12);
}

html.wd-dark .doc-punct-row-checked:hover {
    background-color: rgba(34, 197, 94, 0.2);
}

html.wd-dark .doc-punct-name {
    color: var(--wd-text);
}

html.wd-dark .doc-punct-loc {
    color: var(--wd-muted);
}

/* Filters + search */
html.wd-dark .doc-filter-select {
    border-color: var(--wd-border);
    color: var(--wd-text);
    background: var(--wd-surface-2);
}

html.wd-dark .doc-filter-select:focus {
    border-color: #4285F4;
    background: var(--wd-surface);
}

html.wd-dark .doc-search-label {
    color: var(--wd-muted);
}

html.wd-dark .doc-search-help,
html.wd-dark .doc-search-icon {
    color: var(--wd-muted);
}

html.wd-dark .doc-search-count {
    color: var(--wd-muted);
}

html.wd-dark .doc-search-clear {
    background-color: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .doc-search-clear:hover {
    background-color: var(--wd-border);
    color: var(--wd-text-strong);
}

html.wd-dark .doc-search-input {
    border-color: var(--wd-border);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .doc-search-input:focus {
    border-color: #4285F4;
    background: var(--wd-surface);
}

/* QuickGrid template leftovers (::deep stripped) */
html.wd-dark thead {
    background-color: var(--wd-surface-2);
}

html.wd-dark tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

html.wd-dark tr {
    border-bottom-color: var(--wd-border-soft);
}

/* Tier popover */
html.wd-dark .tier-popover {
    background: var(--wd-surface);
    border-color: var(--wd-border-soft);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

html.wd-dark .tier-popover-title {
    color: var(--wd-text-strong);
}

html.wd-dark .tier-popover-body {
    color: var(--wd-text);
}

/* Domain selector */
html.wd-dark .domain-selector-section {
    background-color: var(--wd-surface-2);
    border-color: var(--wd-border-soft);
}

html.wd-dark .domain-selector-label {
    color: var(--wd-muted);
}

html.wd-dark .domain-btn {
    color: var(--wd-link);
}

html.wd-dark .domain-btn:hover {
    background-color: rgba(96, 165, 250, 0.13);
}

/* keep active state colored (blue bg, white text) */
html.wd-dark .domain-btn-active {
    background-color: #4285F4;
    color: #fff;
}

html.wd-dark .domain-btn-active:hover {
    background-color: #3367d6;
}

html.wd-dark .domain-lock-icon {
    box-shadow: 0 0 0 2px var(--wd-surface-2);
}

html.wd-dark .domain-btn-coming-soon:not(.domain-btn-active) {
    background-color: var(--wd-surface-2);
    color: var(--wd-muted);
    border-color: var(--wd-border-soft);
}

/* Section headers + document rows */
html.wd-dark .doc-section-selected .doc-section-header {
    background-color: rgba(34, 197, 94, 0.12);
    color: #7ed99a;
    border-left-color: #43a047;
}

html.wd-dark .doc-row {
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .doc-row-selected {
    background-color: rgba(34, 197, 94, 0.1);
}

html.wd-dark .doc-row-selected:hover {
    background-color: rgba(239, 68, 68, 0.13);
}

html.wd-dark .doc-row-available {
    background-color: var(--wd-surface);
}

html.wd-dark .doc-row-available:hover {
    background-color: var(--wd-surface-3);
}

html.wd-dark .doc-add-icon {
    color: var(--wd-muted);
}

html.wd-dark .doc-row-available:hover .doc-add-icon {
    color: var(--wd-link);
}

/* Row text columns */
html.wd-dark .doc-name {
    color: var(--wd-text);
}

html.wd-dark .doc-category {
    color: var(--wd-muted);
    background-color: var(--wd-surface-3);
}

html.wd-dark .doc-date,
html.wd-dark .doc-adm-datecreat {
    color: var(--wd-muted);
}

/* Admin column-header row */
html.wd-dark .doc-header-row {
    border-bottom-color: var(--wd-border);
    background-color: var(--wd-surface-2);
    color: var(--wd-muted);
}

html.wd-dark .doc-header-row .doc-name,
html.wd-dark .doc-header-row .doc-date {
    color: var(--wd-muted);
}

html.wd-dark .doc-sort-label:hover {
    color: var(--wd-link);
}

html.wd-dark .doc-sort-ico.fa-sort-up,
html.wd-dark .doc-sort-ico.fa-sort-down {
    color: var(--wd-link);
}

html.wd-dark .doc-col-resizer::after {
    background: var(--wd-border);
}

html.wd-dark .doc-col-resizer:hover::after {
    background: #4285F4;
}

/* Per-row PDF button — disabled look */
html.wd-dark .doc-pdf-btn:disabled,
html.wd-dark .doc-pdf-btn[disabled] {
    background-color: var(--wd-surface-3);
    color: var(--wd-muted);
    box-shadow: none;
}

/* Separator + available section + empty states */
html.wd-dark .doc-separator-line {
    background-color: var(--wd-border-soft);
}

html.wd-dark .doc-separator-label {
    color: var(--wd-muted);
}

html.wd-dark .doc-section-available {
    border-color: var(--wd-border-soft);
    background: var(--wd-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

html.wd-dark .doc-empty-state {
    color: var(--wd-muted);
}

html.wd-dark .doc-empty-state-soon {
    color: var(--wd-muted);
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.4);
}

html.wd-dark .doc-empty-state-soon i {
    color: #f2c76a;
}

html.wd-dark .doc-empty-state-title {
    color: var(--wd-text-strong);
}

html.wd-dark .doc-empty-state-sub {
    color: var(--wd-muted);
}

/* Unified top toolbar */
html.wd-dark .doc-top-toolbar {
    background: var(--wd-surface-2);
    border-color: var(--wd-border-soft);
}

/* Inline last-archive card (green tinted) */
html.wd-dark .doc-last-archive {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

html.wd-dark .doc-last-archive-icon {
    background: rgba(34, 197, 94, 0.18);
    color: #7ed99a;
}

html.wd-dark .doc-last-archive-name {
    color: #7ed99a;
}

html.wd-dark .doc-last-archive-meta {
    color: #7ed99a;
}

/* Progress strip — keep the loud blue animation; tone down near-white layers */
html.wd-dark .doc-toolbar-progress::before {
    background: linear-gradient(110deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 48%,
        rgba(255, 255, 255, 0.14) 50%,
        rgba(255, 255, 255, 0.08) 52%,
        transparent 70%);
}

html.wd-dark .doc-progress-spinner {
    color: #9dc3f2;
}

html.wd-dark .doc-progress-name {
    color: var(--wd-text-strong);
}

html.wd-dark .doc-progress-meta {
    color: var(--wd-muted);
}

html.wd-dark .doc-progress-bar-outer {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

html.wd-dark .doc-progress-pct {
    color: #9dc3f2;
}

/* Archive status pills (tinted-state pattern) */
html.wd-dark .archive-status-queued {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .archive-status-running {
    background: rgba(96, 165, 250, 0.18);
    color: #9dc3f2;
    animation-name: wd-dark-archive-status-running-pulse;
}

@keyframes wd-dark-archive-status-running-pulse {
    0%, 100% {
        background: rgba(96, 165, 250, 0.18);
        box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.0);
    }
    50% {
        background: rgba(96, 165, 250, 0.32);
        box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
    }
}

html.wd-dark .archive-status-completed {
    background: rgba(34, 197, 94, 0.12);
    color: #7ed99a;
}

html.wd-dark .archive-status-failed {
    background: rgba(239, 68, 68, 0.13);
    color: #f1a0a5;
}

html.wd-dark .archive-status-timedout {
    background: rgba(245, 158, 11, 0.13);
    color: #f2c76a;
}

html.wd-dark .archive-status-canceled {
    background: var(--wd-surface-3);
    color: var(--wd-muted);
}

/* Admin "View as client" dropdown */
html.wd-dark .client-search-icon {
    color: var(--wd-muted);
}

html.wd-dark .client-search-box {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .client-search-box::placeholder {
    color: var(--wd-muted);
}

html.wd-dark .client-search-clear {
    color: var(--wd-muted);
}

html.wd-dark .client-search-clear:hover {
    background: var(--wd-surface-3);
    color: var(--wd-text-strong);
}

html.wd-dark .client-dropdown-empty {
    color: var(--wd-muted);
}

html.wd-dark .client-dropdown-toggle {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .client-dropdown-placeholder,
html.wd-dark .client-dropdown-caret {
    color: var(--wd-muted);
}

html.wd-dark .client-dropdown-menu {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

html.wd-dark .client-dropdown-item:hover {
    background: var(--wd-surface-3);
}

html.wd-dark .client-dropdown-item.selected {
    background: rgba(96, 165, 250, 0.13);
}

/* SetDocumente (preset) overlay UI on Home */
html.wd-dark .doc-seturi-row,
html.wd-dark .doc-seturi-row-free {
    background: var(--wd-surface-2);
    border-color: var(--wd-border-soft);
}

html.wd-dark .doc-seturi-label {
    color: var(--wd-text);
}

html.wd-dark .doc-seturi-label i {
    color: #c4b5fd;
}

html.wd-dark .doc-seturi-row-group {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.4);
}

html.wd-dark .doc-seturi-mode-pill-free {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .doc-seturi-banner {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html.wd-dark .doc-seturi-banner-title,
html.wd-dark .doc-seturi-banner-sub {
    color: #c4b5fd;
}

html.wd-dark .doc-seturi-banner-exit {
    background: var(--wd-surface);
    border-color: rgba(167, 139, 250, 0.4);
    color: #c4b5fd;
}

html.wd-dark .doc-seturi-banner-exit:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.6);
}

/* Preset-locked rows: keep the diagonal-stripe signal, as dark green tints */
html.wd-dark .doc-row-preset-locked {
    background: repeating-linear-gradient(
        45deg,
        rgba(34, 197, 94, 0.16),
        rgba(34, 197, 94, 0.16) 10px,
        rgba(34, 197, 94, 0.07) 10px,
        rgba(34, 197, 94, 0.07) 20px
    );
}

html.wd-dark .doc-row-preset-locked:hover {
    background: repeating-linear-gradient(
        45deg,
        rgba(34, 197, 94, 0.26),
        rgba(34, 197, 94, 0.26) 10px,
        rgba(34, 197, 94, 0.13) 10px,
        rgba(34, 197, 94, 0.13) 20px
    );
}

html.wd-dark .doc-row-preset-locked .doc-check-icon {
    color: #c4b5fd;
}

html.wd-dark .doc-preset-help {
    background: var(--wd-surface-2);
    color: var(--wd-muted);
}

html.wd-dark .doc-preset-help i.fa-info-circle {
    color: #c4b5fd;
}

html.wd-dark .doc-preset-help i.fa-pen {
    color: var(--wd-link);
}

/* ══ Source: wikidocweb/Components/SeturiDocumente/SeturiDocumentePanel.razor.css ══ */

html.wd-dark .seturi-dropdown-toggle {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .seturi-dropdown-toggle:hover {
    border-color: var(--wd-muted);
}

html.wd-dark .seturi-dropdown-toggle-active {
    background: rgba(167, 139, 250, 0.15);
    border-color: #8b5cf6;
    color: #c4b5fd;
}

html.wd-dark .seturi-toggle-icon {
    color: var(--wd-muted);
}

html.wd-dark .seturi-dropdown-toggle-active .seturi-toggle-icon {
    color: #c4b5fd;
}

html.wd-dark .seturi-toggle-caret {
    color: var(--wd-muted);
}

html.wd-dark .seturi-dropdown-menu {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

html.wd-dark .seturi-dropdown-divider {
    background: var(--wd-border-soft);
}

html.wd-dark .seturi-dropdown-item:hover {
    background: var(--wd-surface-3);
}

html.wd-dark .seturi-dropdown-item-active {
    background: rgba(167, 139, 250, 0.15);
}

html.wd-dark .seturi-dropdown-item-active:hover {
    background: rgba(167, 139, 250, 0.25);
}

html.wd-dark .seturi-item-icon {
    color: var(--wd-muted);
}

html.wd-dark .seturi-dropdown-item-active .seturi-item-icon {
    color: #c4b5fd;
}

html.wd-dark .seturi-item-text {
    color: var(--wd-text);
}

html.wd-dark .seturi-item-count {
    color: var(--wd-muted);
}

html.wd-dark .seturi-item-action {
    color: var(--wd-muted);
}

html.wd-dark .seturi-item-edit:hover {
    background: rgba(96, 165, 250, 0.13);
    color: #9dc3f2;
}

html.wd-dark .seturi-item-delete:hover {
    background: rgba(239, 68, 68, 0.13);
    color: #f1a0a5;
}

html.wd-dark .seturi-dropdown-loading,
html.wd-dark .seturi-dropdown-empty {
    color: var(--wd-muted);
}

html.wd-dark .seturi-btn-save-current {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .seturi-btn-save-current:hover {
    background: var(--wd-surface-3);
    border-color: var(--wd-muted);
}

/* ── Admin pages batch 1 overrides ── */

/* ============================================================
   Shared between AdmReplaceFields.razor.css + AdmClienti.razor.css
   (.page-header block, .data-card block, status badges, actions)
   ============================================================ */

html.wd-dark .page-title {
    color: var(--wd-text-strong);
}

html.wd-dark .page-subtitle {
    color: var(--wd-muted);
}

html.wd-dark .data-card {
    background: var(--wd-surface);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

html.wd-dark .data-card-header {
    border-bottom: 1px solid var(--wd-border-soft);
    background: var(--wd-surface-2);
}

html.wd-dark .data-card-title {
    color: var(--wd-text-strong);
}

html.wd-dark .status-active-badge {
    background: rgba(34, 197, 94, .12);
    color: #7ed99a;
}

html.wd-dark .status-inactive-badge {
    background: rgba(239, 68, 68, .13);
    color: #f1a0a5;
}

/* ============================================================
   Source: AdmReplaceFields.razor.css
   ============================================================ */

html.wd-dark .rf-table thead tr th {
    background: var(--wd-surface-2);
    color: var(--wd-muted);
    border-bottom: 2px solid var(--wd-border-soft);
}

html.wd-dark .rf-table tbody tr:nth-child(odd) td {
    background: var(--wd-surface);
}

html.wd-dark .rf-table tbody tr:nth-child(even) td {
    background: var(--wd-surface-2);
}

html.wd-dark .rf-table tbody tr td {
    color: var(--wd-text);
    border-bottom: 1px solid var(--wd-border-soft);
}

html.wd-dark .rf-table tbody tr:hover td {
    background: var(--wd-surface-3);
}

/* Text / Word / Imagine mode toggle */
html.wd-dark .rf-mode-caption {
    color: var(--wd-text);
}

html.wd-dark .rf-mode-toggle {
    border: 1.5px solid var(--wd-border);
}

html.wd-dark .rf-mode-btn {
    background: var(--wd-surface);
    color: var(--wd-muted);
}

html.wd-dark .rf-mode-btn + .rf-mode-btn {
    border-left: 1.5px solid var(--wd-border);
}

html.wd-dark .rf-mode-btn:hover {
    background: var(--wd-surface-3);
}

/* keep the saturated active states readable (re-assert after the hover override) */
html.wd-dark .rf-mode-active-text, html.wd-dark .rf-mode-active-text:hover {
    background: #5f6368;
    color: #fff;
}

html.wd-dark .rf-mode-active-word, html.wd-dark .rf-mode-active-word:hover {
    background: #1f6fd6;
    color: #fff;
}

html.wd-dark .rf-mode-active-image, html.wd-dark .rf-mode-active-image:hover {
    background: #0F9D58;
    color: #fff;
}

/* Image-injection mode (green-tinted dropzone + info + preview) */
html.wd-dark .frag-dropzone.rfimg-dropzone {
    border-color: rgba(34, 197, 94, .35);
    background: rgba(34, 197, 94, .07);
}

html.wd-dark .frag-dropzone.rfimg-dropzone:hover {
    border-color: #0F9D58;
    background: rgba(34, 197, 94, .12);
}

html.wd-dark .frag-dropzone.rfimg-dropzone.is-dragover {
    border-color: #0F9D58;
    background: rgba(34, 197, 94, .16);
    box-shadow: 0 4px 18px rgba(15, 157, 88, 0.25);
}

html.wd-dark .rfimg-info {
    background: rgba(34, 197, 94, .10);
    border: 1px solid rgba(34, 197, 94, .35);
}

html.wd-dark .rfimg-info .rfimg-file {
    color: var(--wd-text-strong);
}

html.wd-dark .rfimg-info .rfimg-res {
    color: var(--wd-muted);
}

html.wd-dark .rfimg-slider-label {
    color: var(--wd-text);
}

html.wd-dark .rfimg-preview-label {
    color: var(--wd-muted);
}

html.wd-dark .rfimg-preview {
    border: 1px dashed var(--wd-border);
    background: var(--wd-surface);
}

html.wd-dark .rfimg-preview-box {
    border: 1px solid var(--wd-border-soft);
}

html.wd-dark .rfimg-ref-text {
    color: var(--wd-text);
}

html.wd-dark .rfimg-grid-badge {
    background: rgba(34, 197, 94, .12);
    color: #7ed99a;
    border-color: rgba(34, 197, 94, .35);
}

/* Fragment dropzone (Document Word mode) */
html.wd-dark .frag-dropzone {
    border: 2.5px dashed var(--wd-border);
    background: var(--wd-surface-2);
}

html.wd-dark .frag-dropzone:hover {
    border-color: #4285F4;
    background: var(--wd-surface-3);
}

html.wd-dark .frag-dropzone.is-dragover {
    border-color: #4285F4;
    background: var(--wd-surface-3);
    box-shadow: 0 4px 18px rgba(66, 133, 244, 0.25);
}

html.wd-dark .frag-dropzone-title {
    color: var(--wd-text-strong);
}

html.wd-dark .frag-dropzone-sub {
    color: var(--wd-muted);
}

html.wd-dark .frag-file-pill {
    background: rgba(96, 165, 250, .13);
    border: 1px solid rgba(96, 165, 250, .35);
    color: var(--wd-text);
}

html.wd-dark .frag-badge {
    background: rgba(96, 165, 250, .13);
    color: #9dc3f2;
    border: 1px solid rgba(96, 165, 250, .35);
}

/* Collapsible section header */
html.wd-dark .rf-collapsible-header:hover {
    background: var(--wd-surface-3);
}

/* Resize handles (globale grid) */
html.wd-dark .rf-grid-scroll .wd-th-resizer::after {
    background: var(--wd-border);
}

html.wd-dark .rf-grid-scroll .wd-th-resizer:hover::after {
    background: #4285F4;
}

/* Concrete entity name under the Nivel badge */
html.wd-dark .rf-nivel-ent {
    color: var(--wd-muted);
}

/* ============================================================
   Source: AdmClienti.razor.css
   ============================================================ */

html.wd-dark .stat-card {
    background: var(--wd-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    /* border-left accent colors (.stat-card-admin/-active/-sub) stay saturated — untouched */
}

html.wd-dark .stat-number {
    color: var(--wd-text-strong);
}

html.wd-dark .stat-label {
    color: var(--wd-muted);
}

html.wd-dark .btn-add-icon {
    background: rgba(96, 165, 250, .13);
    color: #9dc3f2;
}

html.wd-dark .btn-add-icon:hover {
    background: #1b6ec2;
    color: #fff;
}

html.wd-dark .search-icon {
    color: var(--wd-muted);
}

html.wd-dark .search-input {
    border: 1.5px solid var(--wd-border-soft);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .search-input:focus {
    border-color: #1b6ec2;
    box-shadow: 0 0 0 3px rgba(27, 110, 194, 0.25);
}

html.wd-dark .clients-table thead tr th {
    background: var(--wd-surface-2);
    color: var(--wd-muted);
    border-bottom: 2px solid var(--wd-border-soft);
}

html.wd-dark .clients-table tbody tr:nth-child(odd) td {
    background: var(--wd-surface);
}

html.wd-dark .clients-table tbody tr:nth-child(even) td {
    background: var(--wd-surface-2);
}

html.wd-dark .clients-table tbody tr td {
    color: var(--wd-text);
    border-bottom: 1px solid var(--wd-border-soft);
}

html.wd-dark .clients-table tbody tr:hover td {
    background: var(--wd-surface-3);
}

html.wd-dark .status-incomplete-badge {
    background: rgba(245, 158, 11, .13);
    color: #f2c76a;
}

/* ============================================================
   Source: AdmDocumente.razor.css
   ============================================================ */

html.wd-dark .adm-doc-title {
    color: var(--wd-text-strong);
}

html.wd-dark .adm-search-input {
    border: 1.5px solid var(--wd-border);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .adm-search-input:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.22);
    background: var(--wd-surface);
}

html.wd-dark .adm-filter-select {
    border: 1.5px solid var(--wd-border);
    background-color: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .adm-filter-select:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.22);
    background-color: var(--wd-surface);
}

html.wd-dark .adm-grid-card {
    border: 1px solid var(--wd-border-soft);
    background: var(--wd-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* QuickGrid table (was ::deep thead / tr / td) */
html.wd-dark .wd-th-resizer::after {
    background: var(--wd-border);
}

html.wd-dark .wd-th-resizer:hover::after {
    background: #4285F4;
}

html.wd-dark thead {
    background-color: var(--wd-surface-2);
}

html.wd-dark thead th {
    color: var(--wd-muted);
    border-bottom: 1px solid var(--wd-border-soft);
}

html.wd-dark tr {
    border-bottom: 1px solid var(--wd-border-soft);
}

html.wd-dark tbody tr:nth-child(odd) td {
    background-color: var(--wd-surface);
}

html.wd-dark tbody tr:nth-child(even) td {
    background-color: var(--wd-surface-2);
}

html.wd-dark tbody tr:hover td {
    background-color: var(--wd-surface-3);
}

html.wd-dark tbody td {
    color: var(--wd-text);
}

html.wd-dark .col-width-draghandle {
    background: var(--wd-border);
}

html.wd-dark .col-width-draghandle:hover {
    background: #4285F4;
}

/* Empty state */
html.wd-dark .adm-no-results {
    color: var(--wd-muted);
}

html.wd-dark .adm-no-results span {
    color: var(--wd-text-strong);
}

html.wd-dark .adm-no-results small {
    color: var(--wd-muted);
}

/* Bulk dropzone modal */
html.wd-dark .bulk-dropzone {
    border: 2.5px dashed var(--wd-border);
    background: var(--wd-surface-2);
}

html.wd-dark .bulk-dropzone:hover {
    border-color: #4285F4;
    background: var(--wd-surface-3);
}

html.wd-dark .bulk-dropzone.is-dragover {
    border-color: #4285F4;
    background: var(--wd-surface-3);
    box-shadow: 0 4px 18px rgba(66, 133, 244, 0.25);
}

html.wd-dark .bulk-dropzone-title {
    color: var(--wd-text-strong);
}

html.wd-dark .bulk-dropzone-sub {
    color: var(--wd-muted);
}

html.wd-dark .bulk-rejected {
    background: rgba(239, 68, 68, .13);
    border: 1px solid rgba(239, 68, 68, .4);
    color: #f1a0a5;
}

/* Legend */
html.wd-dark .bulk-legend {
    background: var(--wd-surface-2);
    border: 1px solid var(--wd-border-soft);
}

html.wd-dark .bulk-legend-title {
    color: var(--wd-muted);
}

html.wd-dark .bulk-legend-item {
    color: var(--wd-text);
}

/* Review table */
html.wd-dark .bulk-review-table thead th {
    background: var(--wd-surface-2);
    color: var(--wd-muted);
    border-bottom: 1.5px solid var(--wd-border-soft);
}

html.wd-dark .bulk-review-table tbody td {
    border-bottom: 1px solid var(--wd-border-soft);
}

/* Pale row tints → subtle dark tints of the same hue */
html.wd-dark .bulk-row-update  { background: rgba(96, 165, 250, .08); }
html.wd-dark .bulk-row-create  { background: rgba(34, 197, 94, .07); }
html.wd-dark .bulk-row-ambig   { background: rgba(245, 158, 11, .08); }
html.wd-dark .bulk-row-skip    { background: var(--wd-surface-2); }
html.wd-dark .bulk-row-error   { background: rgba(239, 68, 68, .08); }
html.wd-dark .bulk-row-done    { background: rgba(34, 197, 94, .10); }

html.wd-dark .bulk-filename {
    color: var(--wd-text-strong);
}

html.wd-dark .bulk-filesize {
    color: var(--wd-muted);
}

html.wd-dark .bulk-match-info {
    color: var(--wd-text);
}

html.wd-dark .bulk-create-grid label {
    color: var(--wd-muted);
}

html.wd-dark .bulk-action-select {
    border: 1.5px solid var(--wd-border);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .bulk-candidate-select {
    border: 1.5px solid #f0c757;
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .bulk-cell-error {
    color: #f1a0a5;
}

html.wd-dark .bulk-cell-done {
    color: #7ed99a;
}

/* ============================================================
   Source: AdmActivitateGenerari.razor.css
   ============================================================ */

html.wd-dark .adm-act-title {
    color: var(--wd-text-strong);
}

html.wd-dark .adm-act-subtitle {
    color: var(--wd-muted);
}

html.wd-dark .adm-act-subtitle code {
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .adm-act-toolbar {
    background: var(--wd-surface);
    border: 1px solid var(--wd-border-soft);
}

html.wd-dark .adm-act-field label {
    color: var(--wd-muted);
}

html.wd-dark .adm-act-date,
html.wd-dark .adm-act-search {
    border: 1px solid var(--wd-border);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .adm-act-preset-btn {
    border: 1px solid var(--wd-border);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .adm-act-preset-btn:hover {
    background: var(--wd-surface-3);
    border-color: rgba(99, 102, 241, .5);
    color: #a5b4fc;
}

/* VS-style triangle filters */
html.wd-dark .adm-act-tri {
    border: 1px solid var(--wd-border);
    background: var(--wd-surface);
}

html.wd-dark .adm-act-tri-warning {
    color: #f2c76a;
}

html.wd-dark .adm-act-tri-warning:hover,
html.wd-dark .adm-act-tri-warning.active {
    background: rgba(245, 158, 11, .13);
    border-color: #f59e0b;
}

html.wd-dark .adm-act-tri-error {
    color: #f1a0a5;
}

html.wd-dark .adm-act-tri-error:hover,
html.wd-dark .adm-act-tri-error.active {
    background: rgba(239, 68, 68, .13);
    border-color: #ef4444;
}

html.wd-dark .adm-act-tri.active {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.07);
}

/* Stat cards — only the non-left borders (left accent colors stay saturated) */
html.wd-dark .adm-act-stat {
    background: var(--wd-surface);
    border-top-color: var(--wd-border-soft);
    border-right-color: var(--wd-border-soft);
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .adm-act-stat-num {
    color: var(--wd-text-strong);
}

html.wd-dark .adm-act-stat-red .adm-act-stat-num {
    color: #f1a0a5;
}

html.wd-dark .adm-act-stat-label {
    color: var(--wd-muted);
}

/* Filter note */
html.wd-dark .adm-act-filter-note {
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .adm-act-clear-filter {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .adm-act-clear-filter:hover {
    background: var(--wd-border);
}

/* Loading / empty */
html.wd-dark .adm-act-loading {
    color: var(--wd-muted);
}

html.wd-dark .adm-act-empty {
    color: var(--wd-muted);
    background: var(--wd-surface);
    border: 1px dashed var(--wd-border);
}

/* Main table */
html.wd-dark .adm-act-table-wrap {
    background: var(--wd-surface);
    border: 1px solid var(--wd-border-soft);
}

html.wd-dark .adm-act-table th {
    color: var(--wd-muted);
    border-bottom: 2px solid var(--wd-border);
}

html.wd-dark .adm-act-table td {
    color: var(--wd-text);
    border-bottom: 1px solid var(--wd-border-soft);
}

html.wd-dark .adm-act-zi {
    color: var(--wd-muted);
}

/* Row tints (threat left borders stay saturated — untouched) */
html.wd-dark .adm-act-row-watch td {
    background: rgba(245, 158, 11, .07);
}

html.wd-dark .adm-act-row-threat td {
    background: rgba(239, 68, 68, .08);
}

/* brightness(0.98) darkens on dark — invert to a slight lift */
html.wd-dark .adm-act-table tbody tr:hover td {
    filter: brightness(1.12);
}

/* User cell */
html.wd-dark .adm-act-user-nume {
    color: var(--wd-text-strong);
}

html.wd-dark .adm-act-user-email {
    color: var(--wd-muted);
}

html.wd-dark .adm-act-blocked-badge {
    background: var(--wd-surface-3);
    color: var(--wd-text-strong);
}

/* Badges */
html.wd-dark .adm-act-badge-self {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .adm-act-badge-onbehalf {
    background: rgba(245, 158, 11, .13);
    color: #f2c76a;
}

html.wd-dark .adm-act-fail {
    color: #f1a0a5;
}

/* Kill switch (saturated hover states left as-is) */
html.wd-dark .adm-act-kill-off {
    background: rgba(239, 68, 68, .13);
    color: #f1a0a5;
    border-color: rgba(239, 68, 68, .4);
}

html.wd-dark .adm-act-kill-on {
    background: rgba(34, 197, 94, .12);
    color: #7ed99a;
    border-color: rgba(34, 197, 94, .35);
}

/* "Doar arhive" toggle */
html.wd-dark .adm-act-toggle {
    border: 1px solid var(--wd-border);
    background: var(--wd-surface);
    color: var(--wd-text);
}

html.wd-dark .adm-act-toggle i {
    color: var(--wd-muted);
}

html.wd-dark .adm-act-toggle:hover {
    border-color: rgba(99, 102, 241, .5);
    background: var(--wd-surface-3);
}

html.wd-dark .adm-act-toggle.active {
    background: #4338ca;
    border-color: #4338ca;
    color: #fff;
}

/* Inspect button (indigo tinted) */
html.wd-dark .adm-act-inspect {
    border: 1px solid rgba(99, 102, 241, .45);
    background: rgba(99, 102, 241, .15);
    color: #a5b4fc;
}

html.wd-dark .adm-act-inspect:hover {
    background: #4338ca;
    color: #fff;
    border-color: #4338ca;
}

/* Modal */
html.wd-dark .adm-act-modal-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

html.wd-dark .adm-act-modal {
    background: var(--wd-surface);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

html.wd-dark .adm-act-modal-head {
    border-bottom: 1px solid var(--wd-border-soft);
    background: var(--wd-surface-2);
}

html.wd-dark .adm-act-modal-head h4 {
    color: var(--wd-text-strong);
}

html.wd-dark .adm-act-modal-x {
    color: var(--wd-muted);
}

html.wd-dark .adm-act-modal-x:hover {
    background: var(--wd-surface-3);
    color: var(--wd-text-strong);
}

html.wd-dark .adm-act-regen-note.ok {
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #7ed99a;
}

html.wd-dark .adm-act-regen-note.err {
    background: rgba(239, 68, 68, .13);
    border: 1px solid rgba(239, 68, 68, .4);
    color: #f1a0a5;
}

html.wd-dark .adm-act-back {
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .adm-act-back:hover {
    background: var(--wd-surface-3);
}

/* Detail header */
html.wd-dark .adm-act-detaliu-head {
    background: var(--wd-surface-2);
    border: 1px solid var(--wd-border-soft);
}

html.wd-dark .adm-act-detaliu-status {
    color: var(--wd-text);
}

html.wd-dark .adm-act-detaliu-time,
html.wd-dark .adm-act-detaliu-empty,
html.wd-dark .adm-act-cod-more {
    color: var(--wd-muted);
}

/* Code chips — dark-on-dark chip lifted to a raised surface */
html.wd-dark .adm-act-cod-chip {
    background: var(--wd-surface-3);
    color: var(--wd-text-strong);
}

html.wd-dark .adm-act-cod-chip-btn:hover {
    background: #4338ca;
    color: #fff;
}

html.wd-dark .adm-act-dom-chip {
    background: rgba(99, 102, 241, .15);
    color: #a5b4fc;
}

html.wd-dark .adm-act-muted {
    color: var(--wd-muted);
}

/* Items / jobs table inside modal */
html.wd-dark .adm-act-items-table th {
    color: var(--wd-muted);
    border-bottom: 2px solid var(--wd-border);
}

html.wd-dark .adm-act-items-table td {
    color: var(--wd-text);
    border-bottom: 1px solid var(--wd-border-soft);
}

html.wd-dark .adm-act-items-num {
    color: var(--wd-muted);
}

html.wd-dark .adm-act-items-ver {
    color: var(--wd-text);
}

/* Mini buttons (saturated hovers on green/blue left as-is) */
html.wd-dark .adm-act-mini-grey {
    background: var(--wd-surface-2);
    color: var(--wd-text);
    border-color: var(--wd-border-soft);
}

html.wd-dark .adm-act-mini-grey:hover {
    background: var(--wd-surface-3);
}

html.wd-dark .adm-act-mini-green {
    background: rgba(34, 197, 94, .12);
    color: #7ed99a;
    border-color: rgba(34, 197, 94, .35);
}

html.wd-dark .adm-act-mini-blue {
    background: rgba(99, 102, 241, .15);
    color: #a5b4fc;
    border-color: rgba(99, 102, 241, .45);
}

/* ── Admin pages batch 2 overrides ── */

/* ============================================================
   AdmElaborat.razor.css
   ============================================================ */

html.wd-dark .page-title,
html.wd-dark .data-card-title,
html.wd-dark .elab-company-card-name {
    color: var(--wd-text-strong);
}

html.wd-dark .page-subtitle,
html.wd-dark .elab-client-dropdown-caret,
html.wd-dark .elab-company-card-meta,
html.wd-dark .elab-company-card-parent {
    color: var(--wd-muted);
}

html.wd-dark .data-card {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

html.wd-dark .data-card-header {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .data-card-header * {
    color: var(--wd-text);
}

html.wd-dark .elab-client-dropdown-toggle,
html.wd-dark .elab-client-dropdown-filters {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .elab-client-dropdown-menu {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

html.wd-dark .elab-client-dropdown-placeholder {
    color: var(--wd-muted);
}

html.wd-dark .elab-filter-label {
    color: var(--wd-text);
}

html.wd-dark .elab-client-dropdown-item {
    color: var(--wd-text);
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .elab-client-dropdown-item:hover:not(.disabled) {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .elab-client-dropdown-item.selected {
    background: rgba(96, 165, 250, 0.13);
    border-color: rgba(96, 165, 250, 0.35);
    color: #9dc3f2;
}

html.wd-dark .elab-accordion .accordion-item {
    border-color: var(--wd-border-soft);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.wd-dark .elab-accordion .accordion-button {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .elab-accordion .accordion-button:not(.collapsed) {
    background: rgba(96, 165, 250, 0.13);
    color: #9dc3f2;
    box-shadow: inset 0 -1px 0 rgba(96, 165, 250, 0.35);
}

html.wd-dark .elab-sig-card {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .elab-sig-header {
    background: linear-gradient(135deg, #2a2350 0%, #352b63 100%);
    border-color: rgba(167, 139, 250, 0.4);
    color: #c4b5fd;
}

html.wd-dark .elab-sig-preview {
    background: var(--wd-surface);
    border-color: var(--wd-border);
}

html.wd-dark .elab-subaccount-chip {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .elab-field-chip.ok {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #7ed99a;
}

html.wd-dark .elab-field-chip.miss {
    background: rgba(239, 68, 68, 0.13);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f1a0a5;
}

html.wd-dark .elab-state-pill.elab-state-empty {
    background: var(--wd-surface-3);
    color: var(--wd-muted);
}

html.wd-dark .elab-show-configured-btn {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .elab-cards-modal-body {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .elab-company-card {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html.wd-dark .elab-company-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    border-color: #1b6ec2;
}

html.wd-dark .elab-company-card-domains {
    border-top-color: var(--wd-border-soft);
}

html.wd-dark .elab-card-domain-pill.elab-state-complete,
html.wd-dark .elab-legend-pill.elab-state-complete {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #7ed99a;
}

html.wd-dark .elab-card-domain-pill.elab-state-partial,
html.wd-dark .elab-legend-pill.elab-state-partial {
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f2c76a;
}

html.wd-dark .elab-card-domain-pill.elab-state-empty,
html.wd-dark .elab-legend-pill.elab-state-empty {
    background: var(--wd-surface-3);
    border-color: var(--wd-border-soft);
    color: var(--wd-muted);
}

html.wd-dark .elab-toast {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35);
}

html.wd-dark .elab-toast-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #7ed99a;
}

html.wd-dark .elab-toast-error {
    background: rgba(239, 68, 68, 0.13);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f1a0a5;
}

html.wd-dark .elab-toast-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   AdmMasterTemplate.razor.css
   ============================================================ */

html.wd-dark .adm-mt-title,
html.wd-dark .adm-mt-shortname,
html.wd-dark .adm-mt-mode-label,
html.wd-dark .adm-mt-dropzone-filename {
    color: var(--wd-text-strong);
}

html.wd-dark .adm-mt-subtitle,
html.wd-dark .adm-mt-fullname,
html.wd-dark .adm-mt-meta,
html.wd-dark .adm-mt-uploaded-at,
html.wd-dark .adm-mt-empty-msg,
html.wd-dark .adm-mt-doc-meta,
html.wd-dark .adm-mt-mode-hint,
html.wd-dark .adm-mt-dropzone-size {
    color: var(--wd-muted);
}

html.wd-dark .adm-mt-card {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html.wd-dark .adm-mt-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Restore the accent left borders that the card's border-color would clobber */
html.wd-dark .adm-mt-card--filled {
    border-left-color: #16a34a;
}

html.wd-dark .adm-mt-card--empty {
    border-left-color: var(--wd-border);
}

html.wd-dark .adm-mt-pill--ok {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #7ed99a;
}

html.wd-dark .adm-mt-pill--empty {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-mt-filename {
    color: var(--wd-text);
}

html.wd-dark .adm-mt-card-actions {
    border-top-color: var(--wd-border-soft);
}

html.wd-dark .adm-mt-icon-btn:hover:not(:disabled) {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .adm-mt-card-busy {
    background: rgba(10, 13, 20, 0.8);
    color: var(--wd-text);
}

html.wd-dark .adm-mt-dropzone {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-mt-dropzone.is-dragover {
    background: rgba(96, 165, 250, 0.13);
    border-color: rgba(96, 165, 250, 0.35);
    color: #9dc3f2;
}

html.wd-dark .adm-mt-dropzone.is-filled {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #7ed99a;
}

html.wd-dark .adm-mt-dropzone-empty {
    color: var(--wd-muted);
}

html.wd-dark .adm-mt-dropzone-filled {
    color: #7ed99a;
}

html.wd-dark .adm-mt-doc-row {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-mt-doc-row:hover {
    background: var(--wd-surface-3);
    border-color: rgba(96, 165, 250, 0.35);
    color: var(--wd-text);
}

html.wd-dark .adm-mt-doc-name {
    color: var(--wd-text);
}

html.wd-dark .adm-mt-mode-bar {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-mt-mode-toggle {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-mt-mode-btn {
    color: var(--wd-text);
}

html.wd-dark .adm-mt-mode-btn:not(:last-child) {
    border-right-color: var(--wd-border);
}

html.wd-dark .adm-mt-mode-btn:hover:not(:disabled):not(.is-active) {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .adm-mt-compare-pane {
    border-right-color: var(--wd-border-soft);
}

html.wd-dark .adm-mt-compare-frame-wrap {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-mt-compare-loader {
    background: rgba(10, 13, 20, 0.8);
    color: var(--wd-muted);
}

/* ============================================================
   AdmChatbotIndexare.razor.css
   ============================================================ */

html.wd-dark .adm-cbi-title,
html.wd-dark .adm-cbi-stat-num,
html.wd-dark .adm-cbi-modal-header h4,
html.wd-dark .adm-cbi-progress-card h4 {
    color: var(--wd-text-strong);
}

html.wd-dark .adm-cbi-subtitle,
html.wd-dark .adm-cbi-stat-label,
html.wd-dark .adm-cbi-loading,
html.wd-dark .adm-cbi-error-list,
html.wd-dark .adm-cbi-progress-sub,
html.wd-dark .adm-cbi-empty {
    color: var(--wd-muted);
}

html.wd-dark .adm-cbi-notice code {
    background: rgba(255, 255, 255, 0.08);
}

html.wd-dark .adm-cbi-notice-warning {
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f2c76a;
}

html.wd-dark .adm-cbi-stat {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Restore stat accent left borders after the surface rule above */
html.wd-dark .adm-cbi-stat-green  { border-left-color: #10b981; }
html.wd-dark .adm-cbi-stat-orange { border-left-color: #f59e0b; }
html.wd-dark .adm-cbi-stat-grey   { border-left-color: #9ca3af; }
html.wd-dark .adm-cbi-stat-blue   { border-left-color: #4285f4; }

html.wd-dark .adm-cbi-toolbar {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html.wd-dark .adm-cbi-search {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-cbi-filter {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-cbi-btn-refresh {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-cbi-table-wrapper {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html.wd-dark .adm-cbi-table thead {
    background: var(--wd-surface-2);
}

html.wd-dark .adm-cbi-table th {
    color: var(--wd-muted);
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .adm-cbi-table td {
    color: var(--wd-text);
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .adm-cbi-row:hover {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .adm-cbi-module {
    background: rgba(96, 165, 250, 0.13);
    border-color: rgba(96, 165, 250, 0.35);
    color: #9dc3f2;
}

html.wd-dark .adm-cbi-badge-indexed {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
    color: #7ed99a;
}

html.wd-dark .adm-cbi-badge-stale {
    background: rgba(245, 158, 11, 0.13);
    border-color: rgba(245, 158, 11, 0.4);
    color: #f2c76a;
}

html.wd-dark .adm-cbi-badge-notindexed,
html.wd-dark .adm-cbi-badge-excluded {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-cbi-action {
    color: var(--wd-muted);
}

html.wd-dark .adm-cbi-action:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.08);
}

html.wd-dark .adm-cbi-modal {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

html.wd-dark .adm-cbi-modal-header {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-cbi-modal-header * {
    color: var(--wd-text);
}

html.wd-dark .adm-cbi-modal-header-success {
    background: linear-gradient(135deg, #0e2b20, #12382a);
}

html.wd-dark .adm-cbi-modal-header-success h4 {
    color: #7ed99a;
}

html.wd-dark .adm-cbi-modal-header-warning {
    background: linear-gradient(135deg, #362c10, #453915);
}

html.wd-dark .adm-cbi-modal-header-warning h4 {
    color: #f2c76a;
}

html.wd-dark .adm-cbi-modal-body {
    color: var(--wd-text);
}

html.wd-dark .adm-cbi-modal-footer {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .adm-cbi-progress-card {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

html.wd-dark .adm-cbi-progress-bar-track {
    background: var(--wd-surface-3);
}

html.wd-dark .adm-cbi-progress-label {
    color: var(--wd-text);
}

html.wd-dark .adm-cbi-progress-err {
    color: #f1a0a5;
}

/* ============================================================
   CreateEditUser.razor.css
   ============================================================ */

html.wd-dark .btn-view-user-data {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

html.wd-dark .manage-card {
    background: var(--wd-surface);
    border-color: var(--wd-border);
    color: var(--wd-text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

html.wd-dark .manage-card-header {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
    color: var(--wd-text);
}

html.wd-dark .manage-card-header * {
    color: var(--wd-text);
}

/* Accent headers — tinted bg + restored saturated left border
   (the base rule above clobbers border-left-color otherwise) */
html.wd-dark .manage-card-header.accent-blue {
    background: rgba(96, 165, 250, 0.13);
    border-left-color: #4285F4;
    color: #9dc3f2;
}

html.wd-dark .manage-card-header.accent-green,
html.wd-dark .manage-card-header.accent-teal {
    background: rgba(34, 197, 94, 0.12);
    border-left-color: #0F9D58;
    color: #7ed99a;
}

html.wd-dark .manage-card-header.accent-purple {
    background: rgba(167, 139, 250, 0.15);
    border-left-color: #7c3aed;
    color: #c4b5fd;
}

html.wd-dark .manage-card-header.accent-orange {
    background: rgba(245, 158, 11, 0.13);
    border-left-color: #f59e0b;
    color: #f2c76a;
}

html.wd-dark .manage-card-header.accent-red {
    background: rgba(239, 68, 68, 0.13);
    border-left-color: #e53935;
    color: #f1a0a5;
}

html.wd-dark .manage-section-divider {
    color: var(--wd-muted);
}

html.wd-dark .manage-section-divider::before,
html.wd-dark .manage-section-divider::after {
    background: var(--wd-border-soft);
}

html.wd-dark .manage-person-row,
html.wd-dark .manage-punct-row {
    border-bottom-color: var(--wd-border-soft);
}

html.wd-dark .manage-person-name,
html.wd-dark .manage-punct-name {
    color: var(--wd-text-strong);
}

html.wd-dark .manage-person-meta,
html.wd-dark .manage-punct-meta {
    color: var(--wd-muted);
}

html.wd-dark .manage-badge-blue {
    background: rgba(96, 165, 250, 0.13);
    color: #9dc3f2;
}

html.wd-dark .manage-badge-green {
    background: rgba(34, 197, 94, 0.12);
    color: #7ed99a;
}

html.wd-dark .manage-badge-orange {
    background: rgba(245, 158, 11, 0.13);
    color: #f2c76a;
}

html.wd-dark .manage-badge-purple {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
}

html.wd-dark .manage-badge-teal {
    background: rgba(20, 184, 166, 0.14);
    color: #6fd9c8;
}

html.wd-dark .manage-add-btn:hover {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .manage-icon-btn-edit {
    background: rgba(245, 158, 11, 0.13);
    color: #f2c76a;
}

html.wd-dark .manage-icon-btn-delete {
    background: rgba(239, 68, 68, 0.13);
    color: #f1a0a5;
}

html.wd-dark .manage-icon-action {
    color: var(--wd-muted);
}

html.wd-dark .manage-icon-action:hover:not(:disabled) {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .manage-icon-action-primary:hover:not(:disabled) {
    background-color: rgba(96, 165, 250, 0.15);
    color: #9dc3f2;
}

html.wd-dark .manage-icon-action-danger:hover:not(:disabled) {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f1a0a5;
}

html.wd-dark .manage-logo-preview {
    background: var(--wd-surface-2);
    border-color: var(--wd-border);
}

html.wd-dark .manage-form-label {
    color: var(--wd-text);
}

html.wd-dark .manage-empty-state {
    color: var(--wd-muted);
}

html.wd-dark .account-status-active {
    background: rgba(34, 197, 94, 0.12);
    color: #7ed99a;
}

html.wd-dark .account-status-inactive {
    background: rgba(239, 68, 68, 0.13);
    color: #f1a0a5;
}

html.wd-dark .account-status-incomplete {
    background: rgba(245, 158, 11, 0.13);
    color: #f2c76a;
}

/* ── Chatbot / Support / Manage / misc overrides ── */

/* ════════════════════════════════════════════════════════════════════════
   Components/Chatbot/ChatbotLauncher.razor.css
   ════════════════════════════════════════════════════════════════════════ */

html.wd-dark .chatbot-panel {
    background: var(--wd-surface);
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.5);
}

html.wd-dark .chatbot-panel-header {
    border-bottom: 1px solid var(--wd-border-soft);
    background: var(--wd-surface-2);
}

html.wd-dark .chatbot-panel-title-text {
    color: var(--wd-text-strong);
}

html.wd-dark .chatbot-panel-subtitle {
    color: var(--wd-muted);
}

html.wd-dark .chatbot-panel-close {
    color: var(--wd-muted);
}

html.wd-dark .chatbot-panel-close:hover,
html.wd-dark .chatbot-panel-close:focus-visible {
    background: rgba(239, 68, 68, 0.13);
    color: #f1a0a5;
}

html.wd-dark .chatbot-panel-body {
    background: var(--wd-surface);
}

html.wd-dark .chatbot-empty {
    color: var(--wd-text);
}

html.wd-dark .chatbot-empty-bleep {
    color: var(--wd-muted);
}

html.wd-dark .chatbot-empty-bleep strong {
    color: var(--wd-link);
}

html.wd-dark .chatbot-empty-title {
    color: var(--wd-text-strong);
}

html.wd-dark .chatbot-panel-footer {
    border-top: 1px solid var(--wd-border-soft);
    background: var(--wd-surface);
}

html.wd-dark .chatbot-input {
    border: 1px solid var(--wd-border);
    background: var(--wd-surface-2);
    color: var(--wd-muted);
}

html.wd-dark .chatbot-input:not(:disabled):focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.25);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .chatbot-send-btn:disabled {
    background: var(--wd-surface-3);
    color: var(--wd-muted);
}

html.wd-dark .chatbot-msg--assistant .chatbot-msg-bubble {
    background: var(--wd-surface-2);
    color: var(--wd-text);
    border: 1px solid var(--wd-border-soft);
}

html.wd-dark .chatbot-msg-typing span {
    background: var(--wd-muted);
}

html.wd-dark .chatbot-card {
    background: var(--wd-surface);
    border: 1px solid var(--wd-border-soft);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

html.wd-dark .chatbot-card-header {
    background: var(--wd-surface-2);
    border-bottom: 1px solid var(--wd-border-soft);
    color: var(--wd-text);
}

html.wd-dark .chatbot-doc-row {
    border-top: 1px solid var(--wd-border-soft);
}

html.wd-dark .chatbot-doc-row:hover {
    background: var(--wd-surface-2);
}

html.wd-dark .chatbot-doc-row-done {
    background: rgba(34, 197, 94, 0.08);
}

html.wd-dark .chatbot-doc-row-failed {
    background: rgba(239, 68, 68, 0.08);
}

html.wd-dark .chatbot-doc-name {
    color: var(--wd-text-strong);
}

html.wd-dark .chatbot-doc-meta {
    color: var(--wd-muted);
}

html.wd-dark .chatbot-doc-module {
    background: var(--wd-surface-3);
    color: var(--wd-text);
}

html.wd-dark .chatbot-doc-similarity {
    color: var(--wd-muted);
}

html.wd-dark .chatbot-doc-btn-generate:disabled {
    background: var(--wd-surface-3);
}

html.wd-dark .chatbot-doc-btn-busy {
    background: var(--wd-surface-3);
    color: var(--wd-muted);
}

html.wd-dark .chatbot-doc-btn-done {
    background: rgba(34, 197, 94, 0.12);
    color: #7ed99a;
}

html.wd-dark .chatbot-doc-btn-failed {
    background: rgba(239, 68, 68, 0.13);
    color: #f1a0a5;
}

html.wd-dark .chatbot-citations-label {
    color: var(--wd-muted);
}

html.wd-dark .chatbot-citation {
    background: var(--wd-surface-3);
    color: var(--wd-text);
    border: 1px solid var(--wd-border);
}

html.wd-dark .chatbot-notice code {
    background: rgba(255, 255, 255, 0.08);
}

html.wd-dark .chatbot-notice-warning {
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f2c76a;
}

html.wd-dark .chatbot-notice-error {
    background: rgba(239, 68, 68, 0.13);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f1a0a5;
}

/* ════════════════════════════════════════════════════════════════════════
   Components/Pages/Support.razor.css
   ════════════════════════════════════════════════════════════════════════ */

html.wd-dark .support-page {
    background: linear-gradient(180deg, var(--wd-bg) 0%, #141a28 100%);
}

html.wd-dark .support-hero-title {
    color: var(--wd-text-strong);
}

html.wd-dark .support-hero-subtitle {
    color: var(--wd-muted);
}

html.wd-dark .support-card {
    background: var(--wd-surface);
    border: 1px solid var(--wd-border-soft);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

html.wd-dark .support-label {
    color: var(--wd-text);
}

html.wd-dark .support-input,
html.wd-dark input.support-input,
html.wd-dark select.support-input,
html.wd-dark textarea.support-input {
    background: var(--wd-surface-2) !important;
    border-color: var(--wd-border) !important;
    color: var(--wd-text) !important;
}

html.wd-dark .support-input:hover:not(:disabled):not(:focus) {
    border-color: #4a5263 !important;
}

html.wd-dark .support-input:focus {
    border-color: #565ADE !important;
    box-shadow: 0 0 0 4px rgba(86, 90, 222, 0.25) !important;
}

html.wd-dark .support-input:disabled {
    background: var(--wd-surface-3) !important;
    color: var(--wd-muted) !important;
}

html.wd-dark .support-select-caret {
    color: var(--wd-muted);
}

html.wd-dark .support-charcount {
    color: var(--wd-muted);
}

html.wd-dark .support-urgent-banner {
    background: rgba(239, 68, 68, 0.13);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-left: 4px solid #dc2626;
    color: #f1a0a5;
}

html.wd-dark .support-urgent-banner strong {
    color: #f5b8bc;
}

html.wd-dark .btn-support-secondary {
    background: var(--wd-surface) !important;
    color: #a5a8f5 !important;
    border: 1.5px solid #565ADE !important;
}

html.wd-dark .support-state-error {
    background: rgba(239, 68, 68, 0.13);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f1a0a5;
}

html.wd-dark .support-state-error strong {
    color: #f5b8bc;
}

html.wd-dark .support-state-error a {
    color: #f1a0a5;
}

html.wd-dark .support-state-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
}

html.wd-dark .support-state-warning {
    background: rgba(245, 158, 11, 0.13);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f2c76a;
}

html.wd-dark .support-state-warning strong {
    color: #f6d48a;
}

html.wd-dark .support-state-warning a {
    color: #f2c76a;
}

html.wd-dark .support-state-title {
    color: #7ed99a;
}

html.wd-dark .support-state-text {
    color: #a3d9b1;
}

html.wd-dark .support-info-card {
    background: var(--wd-surface);
    border: 1px solid var(--wd-border-soft);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

html.wd-dark .support-info-card--accent {
    background: rgba(86, 90, 222, 0.12);
    border-color: rgba(86, 90, 222, 0.35);
}

html.wd-dark .support-info-card--accent .support-info-title {
    color: var(--wd-text-strong);
}

html.wd-dark .support-info-title {
    color: var(--wd-text-strong);
}

html.wd-dark .support-info-icon {
    background: rgba(86, 90, 222, 0.22);
    color: #a5a8f5;
}

html.wd-dark .support-info-label {
    color: var(--wd-muted);
}

html.wd-dark .support-info-value {
    color: var(--wd-text);
}

html.wd-dark a.support-info-value:hover {
    color: var(--wd-link);
}

html.wd-dark .support-eta-list li {
    color: var(--wd-text);
}

/* ════════════════════════════════════════════════════════════════════════
   Components/Pages/Account/Manage/Index.razor.css
   ════════════════════════════════════════════════════════════════════════ */

html.wd-dark .manage-page-title {
    color: var(--wd-text-strong);
    border-bottom: 2px solid var(--wd-border-soft);
}

html.wd-dark .manage-card {
    background: var(--wd-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html.wd-dark .manage-card-header {
    background: var(--wd-surface-2);
    border-bottom: 1px solid var(--wd-border-soft);
    color: var(--wd-text);
}

html.wd-dark .manage-card-header.accent-blue {
    border-left: 4px solid #4285F4;
    color: #9dc3f2;
    background: rgba(96, 165, 250, 0.13);
}

html.wd-dark .manage-card-header.accent-green {
    border-left: 4px solid #0F9D58;
    color: #7ed99a;
    background: rgba(34, 197, 94, 0.12);
}

html.wd-dark .manage-card-header.accent-purple {
    border-left: 4px solid #7c3aed;
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.15);
}

html.wd-dark .manage-card-header.accent-orange {
    border-left: 4px solid #f59e0b;
    color: #f2c76a;
    background: rgba(245, 158, 11, 0.13);
}

html.wd-dark .manage-info-field {
    background: var(--wd-surface-2);
    border: 1px solid var(--wd-border-soft);
}

html.wd-dark .manage-info-label {
    color: var(--wd-muted);
}

html.wd-dark .manage-info-value {
    color: var(--wd-text);
}

html.wd-dark .manage-platitor-tva {
    background: var(--wd-surface-2);
    border: 1px solid var(--wd-border-soft);
    color: var(--wd-text);
}

html.wd-dark .manage-section-divider {
    color: var(--wd-muted);
}

html.wd-dark .manage-section-divider::before,
html.wd-dark .manage-section-divider::after {
    background: var(--wd-border-soft);
}

html.wd-dark .manage-person-row {
    border-bottom: 1px solid var(--wd-border-soft);
}

html.wd-dark .manage-person-row:last-child {
    border-bottom: none;
}

html.wd-dark .manage-person-name {
    color: var(--wd-text-strong);
}

html.wd-dark .manage-person-meta {
    color: var(--wd-muted);
}

html.wd-dark .manage-punct-row {
    border-bottom: 1px solid var(--wd-border-soft);
}

html.wd-dark .manage-punct-row:last-child {
    border-bottom: none;
}

html.wd-dark .manage-punct-name {
    color: var(--wd-text-strong);
}

html.wd-dark .manage-punct-meta {
    color: var(--wd-muted);
}

html.wd-dark .manage-badge-blue {
    background: rgba(96, 165, 250, 0.13);
    color: #9dc3f2;
}

html.wd-dark .manage-badge-green {
    background: rgba(34, 197, 94, 0.12);
    color: #7ed99a;
}

html.wd-dark .manage-badge-orange {
    background: rgba(245, 158, 11, 0.13);
    color: #f2c76a;
}

html.wd-dark .manage-badge-purple {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
}

html.wd-dark .manage-badge-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #6fd9c9;
}

html.wd-dark .manage-add-btn {
    border: 2px dashed var(--wd-link);
    color: var(--wd-link);
}

html.wd-dark .manage-add-btn:hover {
    background: rgba(96, 165, 250, 0.13);
}

html.wd-dark .manage-icon-btn-edit {
    background: rgba(245, 158, 11, 0.13);
    color: #f2c76a;
}

html.wd-dark .manage-icon-btn-delete {
    background: rgba(239, 68, 68, 0.13);
    color: #f1a0a5;
}

html.wd-dark .manage-icon-action {
    color: var(--wd-muted);
}

html.wd-dark .manage-icon-action:hover:not(:disabled) {
    background-color: var(--wd-surface-3);
}

html.wd-dark .manage-icon-action-primary {
    color: #6aa6f8;
}

html.wd-dark .manage-icon-action-primary:hover:not(:disabled) {
    background-color: rgba(96, 165, 250, 0.13);
    color: #9dc3f2;
}

html.wd-dark .manage-icon-action-danger {
    color: #db4442;
}

html.wd-dark .manage-icon-action-danger:hover:not(:disabled) {
    background-color: rgba(239, 68, 68, 0.13);
    color: #f1a0a5;
}

html.wd-dark .manage-logo-preview {
    border: 1px solid var(--wd-border-soft);
    background: var(--wd-surface-2);
}

html.wd-dark .manage-logo-hint {
    color: #f1a0a5;
}

html.wd-dark .manage-logo-error {
    background: rgba(239, 68, 68, 0.13);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f1a0a5;
}

html.wd-dark .manage-form-label {
    color: var(--wd-text);
}

html.wd-dark .manage-empty-state {
    color: var(--wd-muted);
}

/* ════════════════════════════════════════════════════════════════════════
   Components/Common/UserDataView.razor.css
   ════════════════════════════════════════════════════════════════════════ */

html.wd-dark .gdpr-loading {
    color: var(--wd-muted);
}

html.wd-dark .gdpr-paper {
    background: var(--wd-surface);
    border: 1px solid var(--wd-border);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.5);
    color: var(--wd-text);
}

html.wd-dark .gdpr-paper-header {
    border-bottom: 2px solid var(--wd-link);
}

html.wd-dark .gdpr-paper-header h1 {
    color: var(--wd-link);
}

html.wd-dark .gdpr-paper-subtitle {
    color: var(--wd-muted);
}

html.wd-dark .gdpr-paper-meta {
    color: var(--wd-muted);
}

html.wd-dark .gdpr-paper-intro {
    color: var(--wd-muted);
}

html.wd-dark .gdpr-section h2 {
    color: var(--wd-link);
    border-bottom: 1px solid var(--wd-border-soft);
}

html.wd-dark .gdpr-section h3 {
    color: var(--wd-text-strong);
}

html.wd-dark .gdpr-section h4 {
    color: var(--wd-muted);
}

html.wd-dark .gdpr-note {
    background: var(--wd-surface-2);
    border-left: 3px solid var(--wd-link);
    color: var(--wd-text);
}

html.wd-dark .gdpr-empty {
    color: var(--wd-muted);
}

html.wd-dark .gdpr-kv-table th,
html.wd-dark .gdpr-kv-table td {
    border: 1px solid var(--wd-border-soft);
}

html.wd-dark .gdpr-kv-table th {
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .gdpr-kv-table td {
    color: var(--wd-text);
}

html.wd-dark .gdpr-grid-table td {
    border: 1px solid var(--wd-border-soft);
    color: var(--wd-text);
}

html.wd-dark .gdpr-grid-table tbody tr:nth-child(even) td {
    background: var(--wd-surface-2);
}

html.wd-dark .gdpr-punct {
    background: var(--wd-surface-2);
    border: 1px solid var(--wd-border-soft);
}

html.wd-dark .gdpr-history-meta {
    color: var(--wd-muted);
}

html.wd-dark .gdpr-history-scroll {
    border: 1px solid var(--wd-border-soft);
    background: var(--wd-surface);
}

html.wd-dark .gdpr-load-more-btn {
    border: 1px solid var(--wd-link);
    background: var(--wd-surface);
    color: var(--wd-link);
}

html.wd-dark .gdpr-load-more-btn:hover {
    background: #1e40af;
    color: #fff;
}

html.wd-dark .gdpr-paper-footer {
    border-top: 1px solid var(--wd-border-soft);
    color: var(--wd-muted);
}

html.wd-dark .gdpr-paper-footer a {
    color: var(--wd-link);
}

/* ════════════════════════════════════════════════════════════════════════
   Components/Pages/Account/Inregistrare.razor.css
   Note: `body` / `.col-md-4` / `h3` / `hr` / `.text-danger` were bare element
   or Bootstrap selectors in the scoped source; the prefixed overrides below
   mirror them verbatim (per convention) — values chosen so they are also
   safe if they match outside the Inregistrare page.
   ════════════════════════════════════════════════════════════════════════ */

/* Scoped to the registration wrapper so the generic .col-md-4 / body / hr
   selectors from the page's CSS don't leak dark overrides app-wide.
   body/h3/hr are already handled by the base sections of dark-mode.css. */
html.wd-dark .wrapper .content .row.justify-content-center > .col-md-4 {
    background-color: var(--wd-surface);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.35);
}

html.wd-dark .form-floating label {
    color: var(--wd-muted);
}

html.wd-dark .form-floating input {
    border: 1px solid var(--wd-border);
    background-color: var(--wd-surface-2);
    color: var(--wd-text);
}

html.wd-dark .form-floating input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

html.wd-dark .text-danger {
    color: #f1a0a5 !important; /* Bootstrap's .text-danger is !important */
}

html.wd-dark .form-check-label {
    color: var(--wd-muted);
}

html.wd-dark .terms-conditions-box {
    border: 1px solid var(--wd-border);
    background-color: var(--wd-surface-2);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

html.wd-dark .terms-conditions-box::-webkit-scrollbar-track {
    background-color: var(--wd-surface);
}

html.wd-dark .terms-conditions-box::-webkit-scrollbar-thumb {
    background-color: var(--wd-border);
}

html.wd-dark .terms-conditions-box::-webkit-scrollbar-thumb:hover {
    background-color: #4a5263;
}

html.wd-dark .position-relative .eye-icon {
    color: var(--wd-muted);
}

html.wd-dark .position-relative .eye-icon:hover {
    color: var(--wd-text);
}

html.wd-dark .terms-conditions-content {
    color: var(--wd-text);
}

/* ════════════════════════════════════════════════════════════════════════
   Components/Pages/Account/Manage/ChangePassword.razor.css
   ════════════════════════════════════════════════════════════════════════ */

html.wd-dark .cp-page-title {
    color: var(--wd-text-strong);
    border-bottom: 2px solid var(--wd-border-soft);
}

html.wd-dark .cp-card {
    background: var(--wd-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

html.wd-dark .cp-card-header {
    background: rgba(96, 165, 250, 0.13);
    border-bottom: 1px solid var(--wd-border-soft);
    border-left: 4px solid #4285F4;
    color: #9dc3f2;
}

html.wd-dark .cp-field-label {
    color: var(--wd-text);
}

html.wd-dark .cp-eye-btn {
    color: var(--wd-muted);
}

html.wd-dark .cp-rules {
    background: var(--wd-surface-2);
    border: 1px solid var(--wd-border-soft);
    color: var(--wd-text);
}

html.wd-dark .cp-rules-title {
    color: var(--wd-text-strong);
}

/* ════════════════════════════════════════════════════════════════════════
   Components/Pages/Account/Manage/GdprExport.razor.css
   ════════════════════════════════════════════════════════════════════════ */

html.wd-dark .gdpr-page .gdpr-loading,
html.wd-dark .gdpr-loading {
    color: var(--wd-muted);
}

html.wd-dark .gdpr-toolbar {
    background: var(--wd-surface);
    border: 1px solid var(--wd-border-soft);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.wd-dark .gdpr-toolbar-info {
    color: var(--wd-muted);
}

html.wd-dark .gdpr-toolbar-info i {
    color: var(--wd-link);
}

/* ════════════════════════════════════════════════════════════════════════
   Components/Layout/MainLayout.razor.css
   (.sidebar gradient and .topbar are already dark — left untouched)
   ════════════════════════════════════════════════════════════════════════ */

html.wd-dark .top-row {
    background-color: var(--wd-surface-2);
    border-bottom: 1px solid var(--wd-border);
}

html.wd-dark #blazor-error-ui {
    background: rgba(245, 158, 11, 0.13);
    color: #f2c76a;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.5);
}

/* ════════════════════════════════════════════════════════════════════════
   Components/Layout/NavMenu.razor.css
   No overrides needed — sidebar nav is already dark (white SVG icons,
   #d7d7d7 links, translucent white hover states, rgba(0,0,0,.4) top-row).
   ════════════════════════════════════════════════════════════════════════ */

/* ── Inline <style> block overrides (razor-embedded styles) ── */

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Organigrama/Organigrama.razor
   ══════════════════════════════════════════════════════════════ */

/* Panou selectie firme */
html.wd-dark .og-panel {
    border-color: var(--wd-border-soft);
    background: var(--wd-surface);
}
html.wd-dark .og-panel-head { border-bottom-color: var(--wd-border-soft); }

/* Butoane generice */
html.wd-dark .og-btn {
    border-color: var(--wd-border);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}
html.wd-dark .og-btn:hover:not(:disabled) { background: var(--wd-surface-3); }
html.wd-dark .og-link { color: var(--wd-link); }
html.wd-dark .og-link-danger { color: #f1a0a5; }

/* Lista firme */
html.wd-dark .og-list-empty { color: var(--wd-muted); }
html.wd-dark .og-row:hover { background: var(--wd-surface-3); }
html.wd-dark .og-row-on { background: rgba(96,165,250,.13); }
html.wd-dark .og-row-name { color: var(--wd-text-strong); }
html.wd-dark .og-row-sub { color: var(--wd-muted); }
html.wd-dark .og-pager { border-top-color: var(--wd-border-soft); }
html.wd-dark .og-pager-info { color: var(--wd-muted); }

/* Toolbar */
html.wd-dark .og-toolbar { border-bottom-color: var(--wd-border-soft); }
html.wd-dark .og-title h1 { color: var(--wd-text-strong); }
html.wd-dark .og-subtitle { color: var(--wd-muted); }
html.wd-dark .og-dirty { color: #f2c76a; }
html.wd-dark .og-seg { border-color: var(--wd-border); }
html.wd-dark .og-seg button {
    background: var(--wd-surface-2);
    color: var(--wd-text);
}
html.wd-dark .og-seg button + button { border-left-color: var(--wd-border); }
html.wd-dark .og-seg button:hover { background: var(--wd-surface-3); }
html.wd-dark .og-empty { color: var(--wd-muted); }

/* Busy overlay + spinner */
html.wd-dark .og-busy { background: rgba(10,13,20,0.55); }
html.wd-dark .og-spinner { border-color: var(--wd-border); border-top-color: #6aa6f8; }

/* Bannere */
html.wd-dark .og-banner {
    background: rgba(239,68,68,.13);
    border-color: rgba(239,68,68,.4);
    color: #f1a0a5;
}
html.wd-dark .og-banner-ok {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.35);
    color: #7ed99a;
}
html.wd-dark .og-hint { color: var(--wd-muted); }

/* Bara de save (jos) */
html.wd-dark .og-savebar {
    background: rgba(27,32,43,0.96);
    border-top-color: var(--wd-border);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.5);
}
html.wd-dark .og-savebar-txt { color: var(--wd-text); }

/* Panza + linii conectoare (var --og-line conduce toate pseudo-elementele) */
html.wd-dark .og-viewport {
    background: radial-gradient(rgba(215,220,230,0.08) 1px, transparent 1px);
}
html.wd-dark .og-tree { --og-line: #5a6478; }

/* Cardul de nod (border/box-shadow colorate vin din style inline per-nod) */
html.wd-dark .og-node {
    background: var(--wd-surface);
    color: var(--wd-text);
}
html.wd-dark .og-meta { color: var(--wd-muted); }
html.wd-dark .og-resp { border-top-color: var(--wd-border-soft); }
html.wd-dark .og-resp-nume { color: var(--wd-text); }
html.wd-dark .og-resp-gol { color: var(--wd-muted); }

/* Badge-uri posturi */
html.wd-dark .og-pill-total { background: rgba(152,162,181,.18); color: #b6c0d2; }
html.wd-dark .og-pill-ocup  { background: rgba(96,165,250,.13);  color: #9dc3f2; }
html.wd-dark .og-pill-over  { background: rgba(239,68,68,.13);   color: #f1a0a5; }
html.wd-dark .og-pill-liber { background: rgba(34,197,94,.12);   color: #7ed99a; }

/* Angajati in card */
html.wd-dark .og-membri { border-top-color: var(--wd-border-soft); }
html.wd-dark .og-membru-btn {
    border-color: var(--wd-border);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}
html.wd-dark .og-membru-nume { color: var(--wd-text); }
html.wd-dark .og-membru-fn { color: var(--wd-muted); }
html.wd-dark .og-emp-btn { background: var(--wd-surface); }
html.wd-dark .og-count { background: var(--wd-surface); box-shadow: 0 2px 6px rgba(0,0,0,0.45); }
html.wd-dark .og-arr {
    border-color: var(--wd-border);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}

/* Vedere lista */
html.wd-dark .og-lcard {
    border-color: var(--wd-border-soft);
    background: var(--wd-surface);
}
html.wd-dark .og-lcard.og-clickable:hover { background: var(--wd-surface-3); }
html.wd-dark .og-lcard-kind { color: var(--wd-muted); }
html.wd-dark .og-lcard-name { color: var(--wd-text-strong); }
html.wd-dark .og-lcard-resp { color: var(--wd-text); }

/* Modale de baza (folosite si de dialogurile componente) */
html.wd-dark .ogd-modal { background: var(--wd-surface); }
html.wd-dark .ogd-head {
    color: var(--wd-text-strong);
    border-bottom-color: var(--wd-border-soft);
}
html.wd-dark .ogd-field label { color: var(--wd-text); }
html.wd-dark .ogd-error { color: #f1a0a5; }
html.wd-dark .ogd-foot { border-top-color: var(--wd-border-soft); }
html.wd-dark .ogd-del { color: #f1a0a5; border-color: rgba(239,68,68,.4); }

/* Modala membri */
html.wd-dark .ogm-sub { color: var(--wd-muted); }
html.wd-dark .ogm-table th {
    color: var(--wd-muted);
    border-bottom-color: var(--wd-border);
}
html.wd-dark .ogm-table td { border-bottom-color: var(--wd-border-soft); }
html.wd-dark .ogm-nume { color: var(--wd-text); }
html.wd-dark .ogm-functie { color: var(--wd-text); }
html.wd-dark .ogm-empty { color: var(--wd-muted); }

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Organigrama/OrgEditDialog.razor
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .ogd-resp-head { color: var(--wd-text); }
html.wd-dark .ogd-resp-rol { color: var(--wd-link); }
html.wd-dark .ogd-resp-titles .ogd-resp-fields span { color: var(--wd-muted); }

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Organigrama/OrgPickerDialog.razor
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .ogp-item {
    border-color: var(--wd-border-soft);
    background: var(--wd-surface-2);
    color: var(--wd-text);
}
html.wd-dark .ogp-item:hover:not(:disabled) { background: var(--wd-surface-3); }
html.wd-dark .ogp-sub { color: var(--wd-muted); }
html.wd-dark .ogp-clear { color: var(--wd-link); }
html.wd-dark .ogp-empty { color: var(--wd-muted); }

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Organigrama/OrgNodDialog.razor — no <style> block (skip)
   Components/Pages/Organigrama/OrgCard.razor — no <style> block (colors inline per-node, skip)
   Components/Pages/Organigrama/OrgBranch.razor — no <style> block (skip)
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Organigrama/RadialMenu.razor
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .rm-center {
    background: var(--wd-surface);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
html.wd-dark .rm-center-label { color: var(--wd-text-strong); }
html.wd-dark .rm-center-sub { color: var(--wd-muted); }
html.wd-dark .rm-item {
    background: var(--wd-surface);
    color: var(--wd-text);
    box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
html.wd-dark .rm-item-danger { color: #f1a0a5; }
html.wd-dark .rm-item-warn { color: #f2c76a; }
html.wd-dark .rm-item-disabled {
    color: var(--wd-muted);
    border-color: var(--wd-border-soft);
    background: var(--wd-surface-2);
}
html.wd-dark .rm-item-disabled:hover {
    background: var(--wd-surface-2);
    color: var(--wd-muted);
    border-color: var(--wd-border-soft);
}
html.wd-dark .rm-close {
    border-color: var(--wd-border);
    background: var(--wd-surface-2);
    color: var(--wd-muted);
}
html.wd-dark .rm-close:hover { color: var(--wd-text-strong); }

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Account/Login.razor
   (html/body + input rules covered by base dark-mode.css; left panel
    gradient, brand buttons and banned-notice are already dark — kept)
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .lw-root { background: var(--wd-bg); }
html.wd-dark .lw-form-panel { background: var(--wd-bg); }
html.wd-dark .lw-card { background: var(--wd-surface); }
html.wd-dark .lw-card-title { color: var(--wd-text-strong); }
html.wd-dark .lw-card-subtitle { color: var(--wd-muted); }
html.wd-dark .lw-label { color: var(--wd-text); }
html.wd-dark .lw-val-msg { color: #f1a0a5; }
html.wd-dark .lw-remember { color: var(--wd-text); }
html.wd-dark .lw-forgot { color: var(--wd-link); }
html.wd-dark .lw-forgot:hover { color: #9dc3f2; }
html.wd-dark .lw-divider::before { background: var(--wd-border); }
html.wd-dark .lw-divider span {
    background: var(--wd-surface);
    color: var(--wd-muted);
}
html.wd-dark .lw-validation-summary {
    background: rgba(239,68,68,.13);
    border-color: rgba(239,68,68,.4);
    color: #f1a0a5;
}
html.wd-dark .lw-contact {
    background: var(--wd-surface-2);
    color: var(--wd-text);
}
html.wd-dark .lw-contact-icon { color: var(--wd-link); }
html.wd-dark .lw-contact a { color: var(--wd-link); }
html.wd-dark .lw-footer-copy a:hover { color: var(--wd-link); }

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Account/Subscription.razor
   (tier gradients, plan-card headers, badges kept; .plan-card /
    .contract-section / .plan-disc-box / .sub-error-msg / .no-plan-hint
    already themed in base dark-mode.css)
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .tier-col {
    background: rgba(27,32,43,0.72);
    border-color: var(--wd-border);
}
html.wd-dark .tier-col-label { color: var(--wd-muted); }
html.wd-dark .plan-badge {
    box-shadow: 0 0 0 3px var(--wd-surface), 0 6px 18px rgba(180,83,9,0.45);
}
html.wd-dark .plan-card-desc { color: var(--wd-muted); }
html.wd-dark .plan-price-main { color: var(--wd-text-strong); }
html.wd-dark .plan-period-label { color: var(--wd-muted); }
html.wd-dark .plan-vat-note { color: var(--wd-muted); }
html.wd-dark .contract-header-title { color: var(--wd-text-strong); }
html.wd-dark .contract-body { color: var(--wd-text); }
html.wd-dark .contract-body::-webkit-scrollbar-track { background: var(--wd-surface-2); }
html.wd-dark .contract-body::-webkit-scrollbar-thumb { background: var(--wd-border); }
html.wd-dark .contract-footer { border-top-color: var(--wd-border-soft); }
html.wd-dark .contract-agree-label { color: var(--wd-text); }
html.wd-dark .plan-feats li { color: var(--wd-text); }
/* restore grey look on the "no discount" variant (base tints .plan-disc-box green) */
html.wd-dark .plan-disc-box--none {
    background: var(--wd-surface-2);
    border-color: var(--wd-border-soft);
    color: var(--wd-muted);
}

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Account/InregistrarePasul2.razor
   (form-control/floating-label/input rules covered by base;
    .col-md-4 is generic Bootstrap → scoped under the signup page's
    .wrapper .content root, shared with Inregistrare.razor below)
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .wrapper .content .col-md-4 {
    background: var(--wd-surface);
    background-color: var(--wd-surface);
    border-color: var(--wd-border-soft);
}
html.wd-dark .form-section-label { border-bottom-color: rgba(96,165,250,.25); }
html.wd-dark .cui-result-ok {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.35);
    color: #7ed99a;
}
html.wd-dark .cui-result-manual {
    background: rgba(245,158,11,.13);
    border-color: rgba(245,158,11,.4);
    color: #f2c76a;
}

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Account/InregistrarePasul3.razor
   (.module / .fake-checkbox base-covered; brand gradients kept)
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .reg3-card {
    background: var(--wd-surface);
    border-color: var(--wd-border-soft);
}
html.wd-dark .module:hover {
    border-color: rgba(96,165,250,.35);
    background: var(--wd-surface-3);
}
html.wd-dark .module.selected { background: rgba(96,165,250,.13); }
html.wd-dark .module label { color: var(--wd-text); }
html.wd-dark .reg3-total {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.35);
    color: #7ed99a;
}
html.wd-dark .reg3-error {
    background: rgba(239,68,68,.13);
    border-color: rgba(239,68,68,.4);
    color: #f1a0a5;
}

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Account/InregistrarePasul4.razor
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .reg4-success-card {
    background: var(--wd-surface);
    border-color: var(--wd-border-soft);
}
html.wd-dark .reg4-check-icon {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.35);
    color: #7ed99a;
}
html.wd-dark .reg4-success-title { color: #7ed99a; }
html.wd-dark .reg4-success-msg { color: var(--wd-text); }
html.wd-dark .reg4-redirect-note {
    color: var(--wd-muted);
    border-top-color: var(--wd-border-soft);
}
html.wd-dark .reg4-loading-card {
    background: var(--wd-surface);
    border-color: var(--wd-border-soft);
}

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Account/Inregistrare.razor (inline block only)
   (.col-md-4 covered by the shared .wrapper .content rule above;
    inputs / .input-group-text / .terms-conditions-box base-covered)
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .eye-btn:hover { color: var(--wd-text-strong); }
html.wd-dark .terms-conditions-box::-webkit-scrollbar-track { background: var(--wd-surface-2); }
html.wd-dark .terms-conditions-box::-webkit-scrollbar-thumb { background: var(--wd-border); }
html.wd-dark .terms-conditions-content { color: var(--wd-muted); }

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Administrare/TrimitereEmail.razor
   (btn-success/btn-primary gradients + tab-unread-badge kept)
   ══════════════════════════════════════════════════════════════ */
/* the page re-declares .card with a light gradient background-image —
   base .card only fixes background-color, so the gradient must be killed here */
html.wd-dark .page-wrap .card {
    background: var(--wd-surface);
    border-color: var(--wd-border);
}
html.wd-dark .page-wrap .card > .d-flex > strong,
html.wd-dark .page-wrap .sec-title { color: var(--wd-text-strong); }
html.wd-dark .page-wrap .form-label { color: var(--wd-muted); }
html.wd-dark .send-sticky {
    background: rgba(18,21,29,0.9);
    border-bottom-color: var(--wd-border-soft);
}
html.wd-dark .chip-badge {
    background: var(--wd-surface-2) !important;
    border-color: var(--wd-border) !important;
    color: var(--wd-text) !important;
}
html.wd-dark .firm-card { border-color: var(--wd-border) !important; }
html.wd-dark .firm-card:hover {
    border-color: var(--wd-border) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.45) !important;
}
html.wd-dark .tem-tabs { border-bottom-color: var(--wd-border); }
html.wd-dark .tem-tabs .nav-link:hover { background: rgba(96,165,250,.13); }
html.wd-dark .tem-tabs .nav-link.active {
    background: linear-gradient(180deg, rgba(96,165,250,.13), var(--wd-surface));
}

/* ══════════════════════════════════════════════════════════════
   Components/Pages/Administrare/AdmClienti.razor (inline block only)
   — .btn-add-icon already themed in base dark-mode.css (§5g blue tint),
     .btn-add-tooltip is already dark, .data-card-actions is layout-only.
     No overrides needed. (Light colors in style="" attributes are out of
     scope for stylesheet overrides.)
   ══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════
   Components/Layout/ManageLayout.razor
   (.manage-layout-title is an h1 — base heading rule covers it)
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .manage-nav-container { border-bottom-color: var(--wd-border); }
html.wd-dark .manage-nav-link { color: var(--wd-muted); }
html.wd-dark .manage-nav-link:hover {
    color: #9dc3f2;
    background: rgba(96,165,250,.13);
}
html.wd-dark .manage-nav-link.active {
    color: #9dc3f2;
    background: rgba(96,165,250,.13);
}

/* ══════════════════════════════════════════════════════════════
   Components/Layout/RegistrationProgress.razor
   (done/active step colors kept — green/blue dots with white text)
   ══════════════════════════════════════════════════════════════ */
html.wd-dark .reg-step--pending .reg-step-dot {
    background: var(--wd-surface-2);
    color: var(--wd-muted);
    border-color: var(--wd-border);
}
html.wd-dark .reg-step--pending .reg-step-label { color: var(--wd-muted); }
html.wd-dark .reg-connector { background: var(--wd-border); }
html.wd-dark .reg-connector--done { background: #16a34a; }

/* ══════════════════════════════════════════════════════════════
   Components/Layout/ManageNavMenu.razor — no <style> block
   (its .manage-nav-link styles live in ManageLayout.razor, handled above)
   ══════════════════════════════════════════════════════════════ */

/* ============================================================================
   7. NAVBAR POLISH (2026-07-09) — logo + admin-dropdown icon chips.
   The blanket `nav.navbar svg { fill: var(--wd-text) }` rule from section 3
   also hit the SVGs inside the pastel .ddown-icon chips (light-grey icon on a
   light pastel chip = invisible). Restore currentColor there and switch the
   chips themselves to dark tints with brighter accent icons.
   ============================================================================ */

/* Logo is a monochrome dark-grey mark on transparency → render it near-white. */
html.wd-dark .logo-wikidoc {
    filter: brightness(0) invert(0.92);
}

/* Icon chips: dark tint background + brighter accent, SVG follows currentColor.
   Specificity must beat `html.wd-dark nav.navbar svg` → include nav.navbar. */
html.wd-dark nav.navbar .ddown-icon svg {
    fill: currentColor;
}

html.wd-dark .ddown-icon--blue   { background: rgba(59, 130, 246, 0.18);  color: #82b4f8; }
html.wd-dark .ddown-icon--purple { background: rgba(139, 92, 246, 0.18);  color: #b9a0f8; }
html.wd-dark .ddown-icon--green  { background: rgba(34, 197, 94, 0.18);   color: #74d796; }
html.wd-dark .ddown-icon--orange { background: rgba(249, 115, 22, 0.18);  color: #f3a86f; }
html.wd-dark .ddown-icon--teal   { background: rgba(20, 184, 166, 0.18);  color: #62d4c5; }
html.wd-dark .ddown-icon--red    { background: rgba(239, 68, 68, 0.18);   color: #f19392; }
html.wd-dark .ddown-icon--indigo { background: rgba(99, 102, 241, 0.18);  color: #a9adf6; }
html.wd-dark .ddown-icon--amber  { background: rgba(245, 158, 11, 0.18);  color: #f2c46e; }
html.wd-dark .ddown-icon--rose   { background: rgba(244, 63, 94, 0.18);   color: #f298aa; }

/* Slightly stronger presence for the chip icons on dark (source sets 0.7). */
html.wd-dark .ddown-item svg {
    opacity: 0.95;
}
