/* Documente primărie — paleta demo, legată de modul luminos / întunecat. */

html[data-theme="light"] {
    color-scheme: light;
    --er-bg: #fafafa;
    --er-bg-radial: rgba(30, 91, 214, 0.08);
    --er-surface: #ffffff;
    --er-surface-solid: #ffffff;
    --er-surface-raised: #ffffff;
    --er-panel: #ffffff;
    --er-panel-strong: #ffffff;
    --er-text: #1c1c1c;
    --er-text-secondary: #1c1c1c;
    --er-text-muted: #5c5c5c;
    --er-text-faint: #6b6b6b;
    --er-accent: #1e5bd6;
    --er-accent-hover: #143984;
    --er-accent-soft: rgba(30, 91, 214, 0.1);
    --er-accent-border: rgba(30, 91, 214, 0.28);
    --er-accent-border-strong: rgba(30, 91, 214, 0.5);
    --er-cta: #1e5bd6;
    --er-on-accent: #ffffff;
    --er-on-cta: #ffffff;
    --er-success: #15803d;
    --er-success-bg: rgba(21, 128, 61, 0.12);
    --er-success-border: rgba(21, 128, 61, 0.4);
    --er-danger: #dc2626;
    --er-danger-bg: rgba(220, 38, 38, 0.1);
    --er-danger-border: rgba(220, 38, 38, 0.4);
    --er-warning: #ca8a04;
    --er-nav-bg: #fafafa;
    --er-nav-border: rgba(28, 28, 28, 0.12);
    --er-shadow: 0 12px 28px rgba(20, 57, 132, 0.08);
    --er-input-bg: #ffffff;
    --er-input-border: rgba(28, 28, 28, 0.16);
    --er-focus: #1e5bd6;
    --er-toggle-bg: rgba(30, 91, 214, 0.08);
    --er-toggle-border: rgba(30, 91, 214, 0.35);
    --er-toggle-fg: #1e5bd6;
    --er-highlight: #1e5bd6;
    --er-brand-word: #1c1c1c;
    --er-stepper-bg: linear-gradient(180deg, #ffffff 0%, #f4f7fd 100%);
    --er-viewing: #1e5bd6;
    --er-viewing-soft: rgba(30, 91, 214, 0.12);
    --er-viewing-border: #1e5bd6;
    --er-history-row-bg: #ffffff;
    --er-history-head-bg: #f3f6fb;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --er-bg: #10161f;
    --er-bg-radial: rgba(30, 91, 214, 0.18);
    --er-surface: #182230;
    --er-surface-solid: #121a26;
    --er-surface-raised: #223044;
    --er-panel: #182230;
    --er-panel-strong: #223044;
    --er-text: #eef3fb;
    --er-text-secondary: #eef3fb;
    --er-text-muted: #a9b4c8;
    --er-text-faint: #8b98ad;
    --er-accent: #8eafff;
    --er-accent-hover: #c5d4ff;
    --er-accent-soft: rgba(30, 91, 214, 0.28);
    --er-accent-border: rgba(197, 212, 255, 0.35);
    --er-accent-border-strong: rgba(197, 212, 255, 0.55);
    --er-cta: #1e5bd6;
    --er-on-accent: #ffffff;
    --er-on-cta: #ffffff;
    --er-success: #86efac;
    --er-success-bg: rgba(34, 197, 94, 0.16);
    --er-success-border: rgba(74, 222, 128, 0.45);
    --er-danger: #fca5a5;
    --er-danger-bg: rgba(239, 68, 68, 0.18);
    --er-danger-border: rgba(248, 113, 113, 0.5);
    --er-warning: #fde68a;
    --er-nav-bg: #10161f;
    --er-nav-border: rgba(226, 232, 240, 0.14);
    --er-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    --er-input-bg: #121a26;
    --er-input-border: rgba(226, 232, 240, 0.18);
    --er-focus: #c5d4ff;
    --er-toggle-bg: rgba(30, 91, 214, 0.22);
    --er-toggle-border: rgba(197, 212, 255, 0.4);
    --er-toggle-fg: #c5d4ff;
    --er-highlight: #eef3fb;
    --er-brand-word: #eef3fb;
    --er-stepper-bg: linear-gradient(180deg, #182230 0%, #10161f 100%);
    --er-viewing: #93c5fd;
    --er-viewing-soft: rgba(30, 91, 214, 0.28);
    --er-viewing-border: #93c5fd;
    --er-history-row-bg: #182230;
    --er-history-head-bg: #121a26;
}

.doc-archive {
    font-family: Outfit, sans-serif;
    color: var(--er-text);
    width: 100%;
    max-width: none;
    padding: 0.75rem 0.5rem 1.5rem;
}

.doc-archive-head {
    padding: 0.25rem 0.35rem 0.85rem;
}

.doc-archive button,
.doc-archive input,
.doc-archive select,
.doc-archive textarea,
.doc-archive table {
    font-family: Outfit, sans-serif;
}

.doc-archive #dd-history-modal,
.doc-archive .dd-step1-project-field:has(#dd-project-select),
.doc-archive #dd-leftover-zone,
.doc-archive #dd-step7-zone,
.doc-archive #dd-step8-zone,
.doc-archive #dd-step9-zone {
    display: none !important;
}

body.is-app[data-theme="light"] .doc-archive .archive-panel {
    background: transparent;
}

body.is-app[data-theme="light"] .doc-archive .dd-step1-history-title,
body.is-app[data-theme="light"] .doc-archive .dd-step1-history-name,
body.is-app[data-theme="light"] .doc-archive .dd-step1-history-meta {
    font-family: Outfit, sans-serif;
}

body.is-app[data-theme="light"] .doc-archive .dd-step1-history-item {
    background: #ffffff;
    border-color: rgba(30, 91, 214, 0.22);
    color: #1c1c1c;
}

body.is-app[data-theme="light"] .doc-archive .dd-step1-history-item:hover {
    background: rgba(30, 91, 214, 0.08);
    border-color: #1e5bd6;
}

body.is-app[data-theme="light"] .doc-archive .dd-meta-status--success,
body.is-app[data-theme="light"] .doc-archive .dd-meta-status--validated,
body.is-app[data-theme="light"] .doc-archive .dd-meta-judet--match {
    color: #14532d;
    background: #dcfce7;
    border-color: #4ade80;
}

body.is-app[data-theme="light"] .doc-archive .dd-meta-row--cache .dd-meta-status--success,
body.is-app[data-theme="light"] .doc-archive .dd-meta-judet--reference {
    color: #1e3a8a;
    background: #dbeafe;
    border-color: #60a5fa;
}

body.is-app[data-theme="light"] .doc-archive .dd-meta-status--error {
    color: #991b1b;
    background: #fee2e2;
    border-color: #f87171;
}

body.is-app[data-theme="light"] .doc-archive .dd-meta-status--manual {
    color: #854d0e;
    background: #fef9c3;
    border-color: #eab308;
}

body.is-app[data-theme="light"] .doc-archive .dd-meta-status--pending {
    color: #3f3f46;
    background: #f4f4f5;
    border-color: #a1a1aa;
}

body.is-app[data-theme="light"] .doc-archive .cu-validate-all-btn {
    color: #14532d;
    background: #f0fdf4;
    border-color: #4ade80;
    font-family: Outfit, sans-serif;
}

body.is-app[data-theme="light"] .doc-archive .cu-validate-all-btn:hover:not(:disabled) {
    color: #14532d;
    background: #dcfce7;
    border-color: #22c55e;
    box-shadow: none;
}

body.is-app[data-theme="light"] .doc-archive .cu-add-aviz-btn {
    color: #14532d;
    border-color: #4ade80;
}

body.is-app[data-theme="light"] .doc-archive .dd-step5-preview-content,
body.is-app[data-theme="light"] .doc-archive .dd-step6-preview-content,
body.is-app[data-theme="light"] .doc-archive .dd-step7-preview-content,
body.is-app[data-theme="light"] .doc-archive .dd-step8-preview-content,
body.is-app[data-theme="light"] .doc-archive .dd-step8-viewer,
body.is-app[data-theme="light"] .doc-archive .dd-leftover-preview-content,
body.is-app[data-theme="light"] .doc-archive .dd-coverage-assign-modal__preview-body,
body.is-app[data-theme="light"] .doc-archive .preview-content,
body.is-app[data-theme="light"] .doc-archive .preview-frame {
    background: #ffffff;
    border-color: rgba(30, 91, 214, 0.18);
}

body.is-app[data-theme="light"] .doc-archive .dd-step5-left,
body.is-app[data-theme="light"] .doc-archive .dd-step5-right,
body.is-app[data-theme="light"] .doc-archive .dd-step-assoc-zone,
body.is-app[data-theme="light"] .doc-archive .dd-step5-zone,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-panel {
    border-color: rgba(30, 91, 214, 0.18);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(20, 57, 132, 0.08);
    color: #1c1c1c;
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-tree,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-cu-chip,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc {
    background: #f4f7fd;
    border-color: rgba(30, 91, 214, 0.16);
    color: #1c1c1c;
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-cu-chip.is-active,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc--session-cu {
    background: rgba(30, 91, 214, 0.08);
    border-color: rgba(30, 91, 214, 0.45);
    box-shadow: inset 0 0 0 1px rgba(30, 91, 214, 0.2);
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-tree-root,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-tree-label,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-cu-chip-label,
body.is-app[data-theme="light"] .doc-archive .cu-session-progress {
    color: #143984;
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc-name {
    color: #1c1c1c;
    text-decoration-color: rgba(28, 28, 28, 0.25);
}

body.is-app[data-theme="light"] .doc-archive .dd-step-assoc-zone .cu-session-progress {
    background: rgba(30, 91, 214, 0.08);
    border-color: rgba(30, 91, 214, 0.28);
    color: #143984;
}

body.is-app[data-theme="light"] .doc-archive .dd-step-assoc-zone .cu-session-progress.is-warn {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
    color: #991b1b;
}

body.is-app[data-theme="light"] .doc-archive .dd-step-approve-btn,
body.is-app[data-theme="light"] .doc-archive .dd-step4-cta {
    color: #ffffff;
    background: #1e5bd6;
    box-shadow: 0 8px 18px rgba(30, 91, 214, 0.22);
}

body.is-app[data-theme="light"] .doc-archive .dd-step-approve-btn:hover:not(:disabled),
body.is-app[data-theme="light"] .doc-archive .dd-step4-cta:hover:not(:disabled) {
    background: #143984;
    box-shadow: 0 12px 24px rgba(20, 57, 132, 0.28);
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-preview-btn,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-newest-btn {
    color: #143984;
    background: #ffffff;
    border-color: rgba(30, 91, 214, 0.35);
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-preview-btn:hover,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-newest-btn:hover:not(:disabled) {
    color: #ffffff;
    background: #1e5bd6;
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-match-folder,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-match-filename,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-match-branch,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-match-vl,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-match-detected,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-match-ensemble,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-match-session-cu,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-match-title {
    color: #143984;
    background: rgba(30, 91, 214, 0.1);
    border-color: rgba(30, 91, 214, 0.28);
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc--failed {
    background: rgba(220, 38, 38, 0.06);
    border-color: rgba(220, 38, 38, 0.35);
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc-name--failed {
    color: #991b1b;
    background: rgba(220, 38, 38, 0.12);
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc--cross,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc--title-ambig,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc--unknown-cu {
    background: #fffbeb;
    border-color: rgba(202, 138, 4, 0.45);
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc-name--cross,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc-name--title-ambig,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-doc-name--unknown-cu {
    color: #854d0e;
    background: rgba(202, 138, 4, 0.16);
}

/* Text pastel rămas din tema închisă, pe fundal deschis. */

body.is-app[data-theme="light"] .doc-archive .cu-step-panel--pending .cu-session-title-text,
body.is-app[data-theme="light"] .doc-archive .dd-classify-failed-title,
body.is-app[data-theme="light"] .doc-archive .dd-classify-failed-count,
body.is-app[data-theme="light"] .doc-archive .dd-coverage-missing {
    color: #991b1b;
}

body.is-app[data-theme="light"] .doc-archive .cu-step-panel--active .cu-session-title-text,
body.is-app[data-theme="light"] .doc-archive .cu-step-panel--unvalidated .cu-session-title-text,
body.is-app[data-theme="light"] .doc-archive .cu-ext-legend-from,
body.is-app[data-theme="light"] .doc-archive .cu-extensions-table th.cu-ext-group--from,
body.is-app[data-theme="light"] .doc-archive .cu-ext-badge-manual,
body.is-app[data-theme="light"] .doc-archive .cu-ext-tree-badge.is-virtual,
body.is-app[data-theme="light"] .doc-archive .cu-ext-tree-badge.is-manual,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-title-ambig-label,
body.is-app[data-theme="light"] .doc-archive .dd-pdf-rotate-status.is-warn,
body.is-app[data-theme="light"] .doc-archive .dd-page-range-status.is-warn,
body.is-app[data-theme="light"] .doc-archive .dd-step6-status.is-busy,
body.is-app[data-theme="light"] .doc-archive .dd-step6-rematch-btn.is-busy,
body.is-app[data-theme="light"] .doc-archive .dd-step6-rematch-nudge,
body.is-app[data-theme="light"] .doc-archive .dd-step6-btn-spinner,
body.is-app[data-theme="light"] .doc-archive .dd-step6-match-spinner,
body.is-app[data-theme="light"] .doc-archive .dd-step6-item-class-name,
body.is-app[data-theme="light"] .doc-archive .dd-step6-share-warn,
body.is-app[data-theme="light"] .doc-archive .dd-step6-share-warn strong,
body.is-app[data-theme="light"] .doc-archive .dd-coverage-unmapped-hint,
body.is-app[data-theme="light"] .doc-archive .dd-mentiuni-test-badge {
    color: #854d0e;
}

body.is-app[data-theme="light"] .doc-archive .cu-step-panel--done .cu-session-title-text,
body.is-app[data-theme="light"] .doc-archive .cu-ext-legend-to,
body.is-app[data-theme="light"] .doc-archive .cu-extensions-table th.cu-ext-group--to,
body.is-app[data-theme="light"] .doc-archive .cu-ext-arrow,
body.is-app[data-theme="light"] .doc-archive .cu-session-validated-status,
body.is-app[data-theme="light"] .doc-archive .dd-pdf-rotate-status.is-ok,
body.is-app[data-theme="light"] .doc-archive .dd-page-range-status.is-ok,
body.is-app[data-theme="light"] .doc-archive .dd-leftover-class,
body.is-app[data-theme="light"] .doc-archive .cu-aviz-row--validated .cu-col-tip,
body.is-app[data-theme="light"] .doc-archive .cu-aviz-row--validated .cu-col-emitent,
body.is-app[data-theme="light"] .doc-archive .dd-lane-node.is-done .dd-lane-title,
body.is-app[data-theme="light"] .doc-archive .dd-lane-node.is-done .dd-lane-sub {
    color: #14532d;
}

body.is-app[data-theme="light"] .doc-archive .dd-pdf-rotate-status.is-error,
body.is-app[data-theme="light"] .doc-archive .dd-page-range-status.is-error {
    color: #991b1b;
}

body.is-app[data-theme="light"] .doc-archive .cu-ext-tree-badge,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-cu-chip--ext .cu-assoc-cu-chip-label,
body.is-app[data-theme="light"] .doc-archive .dd-lane-node.is-current .dd-lane-title,
body.is-app[data-theme="light"] .doc-archive .dd-lane-node.is-current .dd-lane-sub {
    color: #1e3a8a;
}

body.is-app[data-theme="light"] .doc-archive .dd-lane-node:not(.is-done):not(.is-current) .dd-lane-title,
body.is-app[data-theme="light"] .doc-archive .dd-lane-node:not(.is-done):not(.is-current) .dd-lane-sub,
body.is-app[data-theme="light"] .doc-archive .dd-step6-item-class--empty {
    color: #3f3f46;
}

body.is-app[data-theme="light"] .doc-archive .cu-step-panel--pending .cu-step-status,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-fail-badge,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-unknown-badge,
body.is-app[data-theme="light"] .doc-archive .dd-meta-judet-tag--warn {
    color: #991b1b;
    background: #fee2e2;
    border-color: #f87171;
}

body.is-app[data-theme="light"] .doc-archive .cu-step-panel--active .cu-step-status,
body.is-app[data-theme="light"] .doc-archive .cu-step-panel--unvalidated .cu-step-status,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-title-ambig-badge,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-title-hit-chip,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-cross-badge,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-branch-badge,
body.is-app[data-theme="light"] .doc-archive .dd-page-range-badge.is-trimmed,
body.is-app[data-theme="light"] .doc-archive .dd-step6-initial-match-banner,
body.is-app[data-theme="light"] .doc-archive .dd-step6-item-badge--pending,
body.is-app[data-theme="light"] .doc-archive .dd-step6-item-badge--shared,
body.is-app[data-theme="light"] .doc-archive .dd-step6-score-badge-shared,
body.is-app[data-theme="light"] .doc-archive .dd-step6-score-badge-vdr,
body.is-app[data-theme="light"] .doc-archive .dd-step6-item-class,
body.is-app[data-theme="light"] .doc-archive .dd-step6-vdr-folder-count,
body.is-app[data-theme="light"] .doc-archive .dd-classify-result-shared-badge,
body.is-app[data-theme="light"] .doc-archive .dd-step9-flag--yellow {
    color: #854d0e;
    background: #fef9c3;
    border-color: #eab308;
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-title-hit-chip:hover:not(:disabled) {
    color: #713f12;
    background: #fde68a;
}

body.is-app[data-theme="light"] .doc-archive .cu-step-panel--done .cu-step-status,
body.is-app[data-theme="light"] .doc-archive .cu-session-validated-icon,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-class-chip,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-title-hit-chip.is-selected,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-accept-btn,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-restore-btn,
body.is-app[data-theme="light"] .doc-archive .dd-duplicates-badge--active,
body.is-app[data-theme="light"] .doc-archive .dd-step6-item-badge,
body.is-app[data-theme="light"] .doc-archive .dd-step6-score-badge-cu,
body.is-app[data-theme="light"] .doc-archive .dd-step6-vdr-file.is-selected,
body.is-app[data-theme="light"] .doc-archive .dd-step6-share-add-btn,
body.is-app[data-theme="light"] .doc-archive .dd-class-picker__option.is-current,
body.is-app[data-theme="light"] .doc-archive .dd-classify-result-row--success .dd-classify-result-label,
body.is-app[data-theme="light"] .doc-archive .dd-classify-result-row--success .dd-classify-result-select {
    color: #14532d;
    background: #dcfce7;
    border-color: #4ade80;
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-accept-btn:hover:not(:disabled) {
    color: #14532d;
    background: #bbf7d0;
}

body.is-app[data-theme="light"] .doc-archive .cu-identity-validity-badge--manual,
body.is-app[data-theme="light"] .doc-archive .dd-step6-vdr-cu-pill.is-shared,
body.is-app[data-theme="light"] .doc-archive .dd-step7-zone .dd-mono,
body.is-app[data-theme="light"] .doc-archive .dd-step1-history-status--aprobat {
    color: #5b21b6;
    background: #ede9fe;
    border-color: #a78bfa;
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-verify-badge,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-match-extension,
body.is-app[data-theme="light"] .doc-archive .dd-extract-avize-cu-tab,
body.is-app[data-theme="light"] .doc-archive .dd-extract-avize-cache-btn,
body.is-app[data-theme="light"] .doc-archive .dd-step6-rematch-remaining-btn,
body.is-app[data-theme="light"] .doc-archive .dd-step6-folder-note,
body.is-app[data-theme="light"] .doc-archive .dd-step6-score-badge-base,
body.is-app[data-theme="light"] .doc-archive .dd-step6-cu-tab.is-active,
body.is-app[data-theme="light"] .doc-archive .dd-step10-status-btn[data-status="InLucru"].is-current,
body.is-app[data-theme="light"] .doc-archive .dd-step1-history-status,
body.is-app[data-theme="light"] .doc-archive .dd-step1-history-status--neinceput,
body.is-app[data-theme="light"] .doc-archive .dd-step1-history-status--inlucru,
body.is-app[data-theme="light"] .doc-archive .dd-step1-history-status-btn,
body.is-app[data-theme="light"] .doc-archive .dd-step9-status--in_curs,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-excluded-badge,
body.is-app[data-theme="light"] .doc-archive .dd-step6-vdr-cu-pill,
body.is-app[data-theme="light"] .doc-archive .dd-classify-result-row--excluded:not(.dd-classify-result-row--success):not(.dd-classify-result-row--error) .dd-classify-result-label {
    color: #1e3a8a;
    background: #dbeafe;
    border-color: #60a5fa;
}

body.is-app[data-theme="light"] .doc-archive .dd-extract-avize-cache-btn:hover:not(:disabled),
body.is-app[data-theme="light"] .doc-archive .dd-step6-rematch-remaining-btn:hover:not(:disabled) {
    color: #1e3a8a;
    background: #bfdbfe;
    border-color: #3b82f6;
}

body.is-app[data-theme="light"] .doc-archive .dd-classify-result-row--manual.dd-classify-result-row--success .dd-classify-result-label,
body.is-app[data-theme="light"] .doc-archive .dd-classify-result-row--manual.dd-classify-result-row--success .dd-classify-result-select,
body.is-app[data-theme="light"] .doc-archive .dd-classify-result-manual-badge,
body.is-app[data-theme="light"] .doc-archive .dd-step8-zone .dd-mono,
body.is-app[data-theme="light"] .doc-archive .dd-step8-row--running,
body.is-app[data-theme="light"] .doc-archive .dd-step8-row--running .dd-step8-row-status,
body.is-app[data-theme="light"] .doc-archive .dd-step8-row--selected,
body.is-app[data-theme="light"] .doc-archive .dd-step8-row--selected .dd-step8-row-status,
body.is-app[data-theme="light"] .doc-archive .dd-step8-viewer-action-btn {
    color: #115e59;
    background: #ccfbf1;
    border-color: #2dd4bf;
}

body.is-app[data-theme="light"] .doc-archive .dd-step8-viewer-action-btn--primary {
    color: #115e59;
    background: #99f6e4;
    border-color: #14b8a6;
}

body.is-app[data-theme="light"] .doc-archive .dd-step10-status-btn[data-status="Aprobat"]:hover:not(:disabled):not(.is-current) {
    color: #14532d;
    background: #dcfce7;
    border-color: #4ade80;
}

body.is-app[data-theme="light"] .doc-archive .cu-assoc-move-select,
body.is-app[data-theme="light"] .doc-archive .cu-assoc-excluded,
body.is-app[data-theme="light"] .doc-archive .dd-step6-rematch-btn {
    color: #1c1c1c;
    background: #ffffff;
    border-color: rgba(30, 91, 214, 0.35);
}

body.is-app[data-theme="light"] .doc-archive .dd-step6-rematch-btn.is-busy {
    color: #854d0e;
    background: #fef9c3;
    border-color: #eab308;
}

.doc-access-gate {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(16, 22, 31, 0.46);
}

.doc-access-gate[hidden] {
    display: none;
}

.doc-access-card {
    width: min(32rem, 100%);
    padding: 1.4rem 1.5rem 1.2rem;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(16, 22, 31, 0.18);
}

.doc-access-card h2 {
    margin: 0.2rem 0 0.45rem;
    font-size: 1.55rem;
}

.doc-access-copy,
.doc-access-label {
    color: var(--muted);
}

.doc-access-label {
    display: block;
    margin-top: 1rem;
    font-size: 0.92rem;
}

.doc-access-input {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.doc-access-error {
    margin: 0.7rem 0 0;
    color: var(--danger);
}

.doc-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.doc-visitor-note {
    display: none;
    margin: 0 0.35rem 0.8rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(30, 91, 214, 0.08);
}

body.is-doc-visitor .doc-visitor-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.doc-visitor-note .ghost-btn {
    margin-left: auto;
}

body.is-doc-visitor #archive-dropzone,
body.is-doc-visitor #dd-change-archive-btn,
body.is-doc-visitor .dd-step1-project-field:has(#dd-project-name-input),
body.is-doc-visitor #dd-archive-files-panel {
    display: none !important;
}

body.is-doc-visitor .cert-extract-right > *,
body.is-doc-visitor aside.dd-step5-right > *,
body.is-doc-visitor .dd-leftover-preview-header,
body.is-doc-visitor #dd-leftover-preview-content,
body.is-doc-visitor #dd-step7-preview-content,
body.is-doc-visitor #dd-step7-preview-title,
body.is-doc-visitor #dd-step7-preview-meta,
body.is-doc-visitor #dd-mentiuni-test-preview-content,
body.is-doc-visitor #dd-mentiuni-test-preview-title,
body.is-doc-visitor #dd-mentiuni-test-preview-meta,
body.is-doc-visitor #dd-step8-preview-pane,
body.is-doc-visitor #dd-extract-mentiuni-preview-btn,
body.is-doc-visitor #cu-preview-btn,
body.is-doc-visitor .dd-step6-preview-header,
body.is-doc-visitor #dd-step6-preview-content,
body.is-doc-visitor #dd-workspace-splitter,
body.is-doc-visitor #dd-metadata-splitter {
    display: none !important;
}

body.is-doc-visitor .dd-step6-card-preview,
body.is-doc-visitor #dd-step6-splitter,
body.is-doc-visitor .dd-step7-right,
body.is-doc-visitor .dd-step7-split .dd-step7-right {
    display: none !important;
}

body.is-doc-visitor .dd-step6-grid .dd-step6-card-cu {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
}

body.is-doc-visitor .dd-step7-split {
    grid-template-columns: 1fr !important;
}

body.is-doc-visitor .cert-extract-right::before,
body.is-doc-visitor aside.dd-step5-right::before {
    content: "Previzualizarea documentelor nu este disponibilă în modul vizitator.";
    display: block;
    padding: 1rem;
    color: var(--muted);
}

html[data-lang="en"] body.is-doc-visitor .cert-extract-right::before,
html[data-lang="en"] body.is-doc-visitor aside.dd-step5-right::before {
    content: "Document preview is not available in visitor mode.";
}
