/* THRS V14.88 — Central Audit Center / Midnight Navy & Cumin Gold DARK COLORS ONLY.
   V14.51 page layout, hero shield/waves, immutable audit records, filters,
   inspection drawer, pagination, authorization, RTL and Light Mode unchanged. */
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451{
 --au-paper:#173449!important;
 --au-soft:#203f53!important;
 --au-ink:#edf4f9!important;
 --au-muted:#c1d2df!important;
 --au-line:#4d6d81!important;
 --au-shadow:0 8px 21px rgba(0,8,20,.23),inset 0 1px 0 rgba(255,255,255,.035)!important;
 color-scheme:dark!important;
}
/* Hero shield SVG stays untouched; active audit indicator toned down. */
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-live-dot{
 background:#6dcb96!important;
 box-shadow:0 0 0 3px rgba(109,203,150,.14)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-phase-badge{
 background:rgba(13,33,46,.88)!important;
 color:#f0d49a!important;
 border-color:#bd9757!important;
}
/* Four KPI icon wells, maintaining category semantics. */
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-kpis article{
 --au-accent:#e8c98b!important;
 --au-tint:#4b412f!important;
 --au-halo:rgba(147,117,71,.11)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-kpis article.tone-rose{
 --au-accent:#edbbc7!important;
 --au-tint:#4d3543!important;
 --au-halo:rgba(148,94,116,.10)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-kpis article.tone-green{
 --au-accent:#b8e5cd!important;
 --au-tint:#234b3e!important;
 --au-halo:rgba(82,139,110,.10)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-kpis article.tone-purple{
 --au-accent:#d0bfe9!important;
 --au-tint:#423c58!important;
 --au-halo:rgba(119,103,158,.10)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-kpi-icon{
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.055),0 3px 9px rgba(0,8,20,.15)!important;
}
/* Read-only notice and query filters. */
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-governance-note>svg{
 color:#aac9e1!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-readonly-pill{
 background:#274258!important;
 color:#d9e8f2!important;
 border-color:#5e7b8f!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-filters :is(input,select),
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-page-size select{
 color-scheme:dark!important;
}
/* Ensure field text remains legible even when host form CSS overrides inherited color. */
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-filters :is(input,select),
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-page-size select{
 color:#edf4f9!important;
 -webkit-text-fill-color:#edf4f9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 select option{
 background:#19394e!important;
 color:#eef5fa!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-filters label>svg{
 color:#d8b575!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-filter-actions button.is-primary{
 background:linear-gradient(120deg,#dab06c,#c99e56)!important;
 color:#152c3e!important;
 border-color:#bd9759!important;
 box-shadow:0 4px 10px rgba(0,8,20,.16)!important;
}
/* Action badges, tone by operation: security blue, created/approved green,
   changed blue, denied/failed red; no high-key pastel fills. */
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-action{
 background:#304a5f!important;
 color:#cbdce8!important;
 box-shadow:inset 0 0 0 1px #648095!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-action.tone-security{
 background:#2a4364!important;
 color:#c4d8f2!important;
 box-shadow:inset 0 0 0 1px #627eaa!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-action.tone-success{
 background:#244b3d!important;
 color:#bce9d0!important;
 box-shadow:inset 0 0 0 1px #5c937a!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-action.tone-blue{
 background:#29465f!important;
 color:#c5daf1!important;
 box-shadow:inset 0 0 0 1px #5f7d9a!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-action.tone-danger{
 background:#4c3440!important;
 color:#efbdc9!important;
 box-shadow:inset 0 0 0 1px #976a7b!important;
}
/* Outcome green means success, red means failure; neutral outcome is slate. */
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-outcome{
 background:#344b5d!important;
 color:#d2e0e9!important;
 box-shadow:inset 0 0 0 1px #687e8e!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-outcome.is-success{
 background:#244b3b!important;
 color:#bee7ce!important;
 box-shadow:inset 0 0 0 1px #5a8e74!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-outcome.is-failure{
 background:#4d333e!important;
 color:#efbcc7!important;
 box-shadow:inset 0 0 0 1px #9a6876!important;
}
/* Inspect remains a neutral action, ledger stays read-only. */
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-detail-button{
 background:#1d3b50!important;
 color:#e9f1f7!important;
 border-color:#57788d!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-detail-button:hover{
 background:#294a5f!important;
 border-color:#b29763!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-pagination-controls button.is-current{
 background:linear-gradient(120deg,#dbb16e,#c99d54)!important;
 color:#152d3e!important;
 border-color:#be9858!important;
 box-shadow:0 3px 9px rgba(0,8,20,.14)!important;
}
/* Alerts and read-only inspection drawer, no changes to open/close logic. */
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-error{
 background:#4a333e!important;
 color:#f0c0ca!important;
 border-color:#996a79!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-error button{
 background:#254357!important;
 color:#edf5fa!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-empty svg{
 color:#dcb878!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-empty button{
 background:#24455a!important;
 color:#edf5fa!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-json-card pre{
 background:#0e293c!important;
 color:#dceaf5!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-audit-v1451 .thrs-audit-detail-error{
 color:#efb9c4!important;
}
/* Paint only: no geometry, layout, hero SVG, records, permissions or Light Mode. */
