/* ZaPhi Manager v0.22.51 · verbleibende Dialog- und Einstellungsflächen im Dark Mode. */

/* Neuer Vorgang */
html[data-zaphi-theme="dark"] .modal .field:has(>#v12CaseTitle){background:#302820!important;border-color:#a96b3d!important}
html[data-zaphi-theme="dark"] .modal .v09-case-drop{background:#202830!important;color:#edf2f6!important;border-color:#566574!important}
html[data-zaphi-theme="dark"] .modal .v09-case-drop:hover,
html[data-zaphi-theme="dark"] .modal .v09-case-drop.drag{background:#382b21!important;border-color:#f47b20!important}
html[data-zaphi-theme="dark"] .modal .v09-case-drop .muted{color:#aeb8c2!important}

/* Arbeitsabläufe und digitales Aufmaß */
html[data-zaphi-theme="dark"] #page-settings :where(.v213-measurement-workflow-settings,.v215-workflow-config,.v212-module-employees){background:#1b2229!important;color:#edf2f6!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] #page-settings .v213-measurement-workflow-settings .notice{background:#202830!important;color:#edf2f6!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] #page-settings .v215-workflow-config input:disabled{background:#171d23!important;color:#89949e!important}

/* Intelligente Dateierkennung */
html[data-zaphi-theme="dark"] #page-settings :where(.v217-ai-flow span,.v217-ai-config-status){background:#202830!important;color:#edf2f6!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] #page-settings .v217-ai-modes>label:has(input:checked){background:#382b21!important}
html[data-zaphi-theme="dark"] #page-settings .v217-ai-config-status.warn{background:#3b311d!important;color:#f2d38b!important;border-color:#80672a!important}
html[data-zaphi-theme="dark"] #page-settings .v217-ai-config-status.ok{background:#20392c!important;color:#8fd2aa!important;border-color:#3d6352!important}
html[data-zaphi-theme="dark"] #page-settings .v217-ai-config-status.error{background:#402326!important;color:#f0afb0!important;border-color:#82444a!important}

/* Briefpapier-Bedienfelder; die eigentlichen Papier-Vorschauen bleiben bewusst weiß. */
html[data-zaphi-theme="dark"] #page-settings .stationery-group{background:#1b2229!important;color:#edf2f6!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] #page-settings .stationery-controls{background:#101419!important}

/* Buchhaltung */
html[data-zaphi-theme="dark"] #page-settings :where(.v210-provider-option,.v210-transfer-kpis>div,.v210-provider-specific,.v210-document-transfer){background:#202830!important;color:#edf2f6!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] #page-settings .v210-provider-option:hover{background:#28323b!important;border-color:#697784!important}
html[data-zaphi-theme="dark"] #page-settings .v210-provider-option.selected{background:#1d3042!important;border-color:#5f86a6!important;box-shadow:0 0 0 1px #5f86a6!important}
html[data-zaphi-theme="dark"] #page-settings :where(.v210-provider-option strong,.v210-transfer-kpis strong,.v210-document-transfer>span:first-child){color:#edf2f6!important}
html[data-zaphi-theme="dark"] #page-settings :where(.v210-provider-option small,.v210-transfer-kpis span,.v210-document-transfer small){color:#aeb8c2!important}

/* Kalkulation und Lohngruppen */
html[data-zaphi-theme="dark"] #page-settings :where(.v215-calculation-grid output,.v215-wage-row output){background:#202830!important;color:#edf2f6!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] #page-settings :where(.v215-calculation-grid output span,.v215-wage-row output span){color:#aeb8c2!important}
html[data-zaphi-theme="dark"] #page-settings :where(.v215-calculation-grid output strong,.v215-wage-row output strong){color:#edf2f6!important}

/* Datenübernahme: leere Kalenderfläche und Schalter. */
html[data-zaphi-theme="dark"] #page-settings [data-v20-settings-panel="data-import"] :where(.table-wrap,.empty,.v218-source-area){background:#202830!important;color:#aeb8c2!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] #page-settings [data-v20-settings-panel="data-import"] input[type="checkbox"]{accent-color:#f47b20}

