/* THRS V14.76 — Surveys: Dark Mode palette only.
   The existing V14.38 clipboard/wave hero, component geometry, RTL rules,
   KPI data, workflow and permissions, filtering/export, results, pagination,
   count and Light Mode remain unchanged. Paint rules are page and theme scoped. */
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys {
  --sv38-paper:#142d40!important;
  --sv38-soft:#203d51!important;
  --sv38-ink:#edf4f8!important;
  --sv38-muted:#c1d1dc!important;
  --sv38-border:#4c6b80!important;
  --sv38-shadow:0 8px 20px rgba(0,8,20,.24),inset 0 1px 0 rgba(255,255,255,.035)!important;
  color-scheme:dark!important;
}
/* Preserve hero clipboard/waves. Adjust only bright yellow Create button. */
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys>.thrs-surveys-premium-hero>.thrs-btn {
  background:linear-gradient(130deg,#dfb86d,#cba051)!important;
  border-color:#c39c58!important;
  color:#132b3e!important;
  box-shadow:0 5px 14px rgba(0,8,20,.20)!important;
}
/* Metric cards retain same 4 colors but use subdued dark icon backgrounds. */
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-metric {
  --sv38-accent:#b2c8e5!important;
  --sv38-icon-bg:#2b4359!important;
  --sv38-tint:rgba(87,121,163,.11)!important;
  border-color:#4c6b80!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-metric-green {
  --sv38-accent:#a7dec3!important;
  --sv38-icon-bg:#1f4a3e!important;
  --sv38-tint:rgba(72,139,110,.11)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-metric-amber {
  --sv38-accent:#e4c482!important;
  --sv38-icon-bg:#4b4031!important;
  --sv38-tint:rgba(158,125,76,.11)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-metric-purple {
  --sv38-accent:#c4b8e2!important;
  --sv38-icon-bg:#3c3b57!important;
  --sv38-tint:rgba(129,107,161,.11)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-metric-icon {
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 4px 10px rgba(0,8,20,.15)!important;
}
/* Filter dropdown option menus previously forced light mode even on dark. */
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-filter>select {
  color-scheme:dark!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-filter>select option {
  background:#19374b!important;
  color:#eaf4f9!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-toolbar-actions>.thrs-btn {
  background:#1e3c51!important;
  border-color:#58778a!important;
  color:#e9f4f9!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-toolbar-actions>.thrs-btn:last-child {
  background:#173449!important;
  border-color:#53758b!important;
  color:#eaf3f9!important;
}
/* Survey rows keep the existing table density, text and all actions. */
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys table.thrs-surveys-table thead tr {
  background:#1a394e!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys table.thrs-surveys-table tbody tr:nth-child(odd) td {
  background:#142f43!important;
  border-bottom-color:#405f73!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys table.thrs-surveys-table tbody tr:nth-child(even) td {
  background:#203d51!important;
  border-bottom-color:#4a697e!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys table.thrs-surveys-table tbody tr:hover td {
  background:#29495d!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-status-active {
  background:#194538!important;
  color:#b8e6d0!important;
  box-shadow:inset 0 0 0 1px #4e8b71!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-status-draft {
  background:#493b2b!important;
  color:#edcf99!important;
  box-shadow:inset 0 0 0 1px #94784d!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-status-closed {
  background:#273f52!important;
  color:#c5dbea!important;
  box-shadow:inset 0 0 0 1px #58788e!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-rate-track {
  background:#3c5669!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-rate-track i {
  background:linear-gradient(90deg,#4b997a,#81b99e)!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-actions>.thrs-btn-primary {
  background:#17384e!important;
  border-color:#59798d!important;
  color:#e9f3f8!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-actions>.thrs-btn-secondary {
  background:#203e51!important;
  border-color:#59798d!important;
  color:#eaf4f9!important;
}
/* Original pagination remains unchanged in geometry. */
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-pagination button {
  background:#18374a!important;
  border-color:#58778a!important;
  color:#e7eff5!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-pagination [aria-current="page"] {
  background:linear-gradient(120deg,#dfb76b,#cba051)!important;
  border-color:#ae894d!important;
  color:#112b3e!important;
}
/* Results/employee assigned views previously carry inline pale cards.
   Only those exact light inline fill values are recolored. */
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-results [style*="#f8fafc"],
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-results [style*="248, 250, 252"] {
  background:#1b394d!important;
  color:#e8f2f8!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-assigned-grid [style*="#f8fafc"],
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-assigned-grid [style*="248, 250, 252"] {
  background:#1f3d50!important;
  color:#e8f2f8!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-assigned-grid [style*="#ede9fe"],
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-assigned-grid [style*="237, 233, 254"] {
  background:#3a3852!important;
  color:#d7cbee!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-assigned-grid [style*="#dcfce7"],
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-assigned-grid [style*="220, 252, 231"] {
  background:#194538!important;
  color:#b8e6d0!important;
}
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-assigned-grid button[style*="background: rgb(255, 255, 255)"],
html[data-theme="dark"] body .thrs-shell .thrs-page-surveys .thrs-surveys-assigned-grid button[style*="background: #fff"] {
  background:#203e52!important;
  color:#eaf4f9!important;
}
/* V14.38 layout, hero art, data binding and Light Mode are not altered. */
