/* Lesbarkeitskorrektur fuer Patientenakten > Pruefungen & Fristen.
   Bewusst nur Kontrast/Textfarben: Layout, Abstaende und Funktionen bleiben unveraendert. */

:root[data-theme='light'] .patient-operations-center {
  --worklist-readable-text: #24384d;
  --worklist-readable-strong: #173149;
  --worklist-readable-muted: #53697d;
  color: var(--worklist-readable-text) !important;
}

:root[data-theme='light'] .patient-operations-head h2,
:root[data-theme='light'] .patient-worklist-kpis button:not(.active),
:root[data-theme='light'] .patient-quality-list header strong,
:root[data-theme='light'] .patient-document-review-main header strong,
:root[data-theme='light'] .patient-duplicate-groups header strong,
:root[data-theme='light'] .patient-expiry-list header strong,
:root[data-theme='light'] .patient-worklist-modal h3 {
  color: var(--worklist-readable-strong) !important;
}

:root[data-theme='light'] .patient-worklist-kpis button:not(.active) span {
  color: #385169 !important;
}

:root[data-theme='light'] .patient-worklist-kpis button:not(.active) strong {
  color: #173149 !important;
}

:root[data-theme='light'] .patient-operations-head > div > span,
:root[data-theme='light'] .patient-operations-head p,
:root[data-theme='light'] .patient-quality-list header span,
:root[data-theme='light'] .patient-document-review-main header span,
:root[data-theme='light'] .patient-duplicate-records span,
:root[data-theme='light'] .patient-duplicate-records small,
:root[data-theme='light'] .patient-document-review-main small,
:root[data-theme='light'] .patient-worklist-toolbar > div,
:root[data-theme='light'] .patient-select-all,
:root[data-theme='light'] .patient-quality-list dt,
:root[data-theme='light'] .patient-expiry-list dt,
:root[data-theme='light'] .patient-expiry-intro span,
:root[data-theme='light'] .patient-expiry-stages small,
:root[data-theme='light'] .patient-expiry-list header div span,
:root[data-theme='light'] .patient-expiry-list > article > small,
:root[data-theme='light'] .patient-worklist-empty,
:root[data-theme='light'] .patient-worklist-loading,
:root[data-theme='light'] .patient-worklist-toolbar label,
:root[data-theme='light'] .patient-worklist-form-grid label {
  color: var(--worklist-readable-muted) !important;
}

:root[data-theme='light'] .patient-quality-list dd,
:root[data-theme='light'] .patient-expiry-list dd,
:root[data-theme='light'] .patient-duplicate-records strong,
:root[data-theme='light'] .patient-worklist-toolbar select,
:root[data-theme='light'] .patient-worklist-search input,
:root[data-theme='light'] .patient-worklist-form-grid input,
:root[data-theme='light'] .patient-worklist-modal textarea {
  color: #2d455b !important;
}

:root[data-theme='light'] .patient-worklist-search input::placeholder {
  color: #687e91 !important;
  opacity: 1 !important;
}

:root[data-theme='light'] .patient-worklist-kpis button.active,
:root[data-theme='light'] .patient-worklist-kpis button.active span,
:root[data-theme='light'] .patient-worklist-kpis button.active strong {
  color: #fff !important;
}

:root[data-theme='dark'] .patient-operations-center {
  --worklist-readable-text: #edf3f8;
  --worklist-readable-strong: #f7f9fb;
  --worklist-readable-muted: #b6c4d0;
  color: var(--worklist-readable-text) !important;
}

:root[data-theme='dark'] .patient-operations-head h2,
:root[data-theme='dark'] .patient-worklist-kpis button:not(.active),
:root[data-theme='dark'] .patient-quality-list header strong,
:root[data-theme='dark'] .patient-document-review-main header strong,
:root[data-theme='dark'] .patient-duplicate-groups header strong,
:root[data-theme='dark'] .patient-expiry-list header strong,
:root[data-theme='dark'] .patient-worklist-modal h3 {
  color: var(--worklist-readable-strong) !important;
}

:root[data-theme='dark'] .patient-worklist-kpis button:not(.active) span,
:root[data-theme='dark'] .patient-worklist-kpis button:not(.active) strong {
  color: #edf3f8 !important;
}

:root[data-theme='dark'] .patient-operations-head > div > span,
:root[data-theme='dark'] .patient-operations-head p,
:root[data-theme='dark'] .patient-quality-list header span,
:root[data-theme='dark'] .patient-document-review-main header span,
:root[data-theme='dark'] .patient-duplicate-records span,
:root[data-theme='dark'] .patient-duplicate-records small,
:root[data-theme='dark'] .patient-document-review-main small,
:root[data-theme='dark'] .patient-worklist-toolbar > div,
:root[data-theme='dark'] .patient-select-all,
:root[data-theme='dark'] .patient-quality-list dt,
:root[data-theme='dark'] .patient-expiry-list dt,
:root[data-theme='dark'] .patient-expiry-intro span,
:root[data-theme='dark'] .patient-expiry-stages small,
:root[data-theme='dark'] .patient-expiry-list header div span,
:root[data-theme='dark'] .patient-expiry-list > article > small,
:root[data-theme='dark'] .patient-worklist-empty,
:root[data-theme='dark'] .patient-worklist-loading,
:root[data-theme='dark'] .patient-worklist-toolbar label,
:root[data-theme='dark'] .patient-worklist-form-grid label {
  color: var(--worklist-readable-muted) !important;
}

:root[data-theme='dark'] .patient-quality-list dd,
:root[data-theme='dark'] .patient-expiry-list dd,
:root[data-theme='dark'] .patient-duplicate-records strong,
:root[data-theme='dark'] .patient-worklist-toolbar select,
:root[data-theme='dark'] .patient-worklist-search input,
:root[data-theme='dark'] .patient-worklist-form-grid input,
:root[data-theme='dark'] .patient-worklist-modal textarea {
  color: #dde7ef !important;
}

:root[data-theme='dark'] .patient-worklist-search input::placeholder {
  color: #aebdc9 !important;
  opacity: 1 !important;
}

:root[data-theme='dark'] .patient-worklist-kpis button.active,
:root[data-theme='dark'] .patient-worklist-kpis button.active span,
:root[data-theme='dark'] .patient-worklist-kpis button.active strong {
  color: #fff !important;
}
