/* ZaPhi Manager v0.22.50 · Dark-Mode-Abschluss.
   Reine Darstellungsschicht; Import- und Datenlogik bleiben unverändert. */

/* Belege */
html[data-zaphi-theme="dark"] #page-receipts :where(.v203-receipt-drop,.v210-local-receipt-hint){
  background:#202830!important;color:#edf2f6!important;border-color:#46525e!important;
}
html[data-zaphi-theme="dark"] #page-receipts .v203-drop-icon{background:#28323b!important;color:#9fc2df!important}
html[data-zaphi-theme="dark"] #page-receipts :where(.v203-receipt-drop small,.v210-local-receipt-hint){color:#aeb8c2!important}
html[data-zaphi-theme="dark"] #page-receipts .v210-local-receipt-hint strong{color:#edf2f6!important}

/* DATANORM-Import und Katalogbrowser */
html[data-zaphi-theme="dark"] #page-master :where(
  .datanorm-drop,.datanorm-result,.dn-stat,.dn-browser-card,.dn-browser-head,.dn-browser,
  .dn-tree-pane,.dn-tree-title,.dn-tree,.dn-catalog-pane,.dn-catalog-toolbar,
  .dn-catalog-title,.dn-catalog-scroll,.dn-pager,.dn-detail-box
){background:#1b2229!important;color:#edf2f6!important;border-color:#3b4651!important}
html[data-zaphi-theme="dark"] #page-master :where(.dn-browser-head,.dn-tree-title,.dn-catalog-toolbar,.dn-pager,.dn-detail-box){background:#202830!important}
html[data-zaphi-theme="dark"] #page-master .datanorm-drop{background:#202830!important;border-color:#566574!important}
html[data-zaphi-theme="dark"] #page-master :where(.datanorm-drop:hover,.datanorm-drop.drag){background:#382b21!important;border-color:#f47b20!important}
html[data-zaphi-theme="dark"] #page-master :where(.datanorm-drop small,.dn-kicker,.dn-tree-title span,.dn-tree-count,.dn-pager span,.dn-detail-box small){color:#aeb8c2!important}
html[data-zaphi-theme="dark"] #page-master :where(.dn-root-row,.dn-group-row){background:transparent!important;color:#edf2f6!important;border-color:transparent!important}
html[data-zaphi-theme="dark"] #page-master :where(.dn-root-row:hover,.dn-group-row:hover){background:#28323b!important}
html[data-zaphi-theme="dark"] #page-master .dn-group-row.active{background:#382b21!important;color:#ffb47d!important}
html[data-zaphi-theme="dark"] #page-master .dn-catalog-table tr.dn-article-row:hover>td{background:#302820!important;color:#fff!important}

/* Zeiterfassung */
html[data-zaphi-theme="dark"] #page-time .v16-release-note{background:#1d3042!important;color:#c7d9e8!important;border-color:#47627a!important}
html[data-zaphi-theme="dark"] #page-time .v16-release-badge{background:#254159!important;color:#d8e9f6!important;border-color:#557690!important}

/* Planer – Kartenzeile und Bediengruppen */
html[data-zaphi-theme="dark"] #page-planner :where(.v213-map-collapsed,.v20-planner-time-range,.v20-planner-zoom){background:#202830!important;color:#edf2f6!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] #page-planner :where(.v20-planner-time-range label,.v20-planner-zoom label,.v20-planner-zoom output){color:#c5ced6!important}

/* Vorgänge: neutrale Kennzahl dunkel, Statusfarben lesbar, Zeilen-Hover sichtbar. */
html[data-zaphi-theme="dark"] #page-cases :where(.v212-case-kpi.orange,.v212-case-kpi.orange.active){background:#1b2229!important;color:#edf2f6!important;border-color:#3b4651!important;box-shadow:none!important}
html[data-zaphi-theme="dark"] #page-cases .v20-inline-status{background:color-mix(in srgb,var(--v20-status) 28%,#202830)!important;color:#f7f9fb!important;border-color:color-mix(in srgb,var(--v20-status) 70%,#aeb8c2)!important}
html[data-zaphi-theme="dark"] #page-cases .v20-case-table tbody tr.clickable{transition:background-color .14s ease,box-shadow .14s ease}
html[data-zaphi-theme="dark"] #page-cases .v20-case-table tbody tr.clickable:hover>td{background:#302820!important;color:#fff!important}
html[data-zaphi-theme="dark"] #page-cases .v20-case-table tbody tr.clickable:hover{box-shadow:inset 4px 0 #f47b20}

/* Kundendaten */
html[data-zaphi-theme="dark"] #page-customers :where(.v19-internal-note,.v213-portal-boundary){background:#202830!important;color:#edf2f6!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] #page-customers .v19-internal-note{box-shadow:inset 4px 0 #f47b20}

/* Einstellungen */
html[data-zaphi-theme="dark"] #page-settings .upload-button{background:#202830!important;color:#edf2f6!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] #page-settings .upload-button:hover{background:#28323b!important;border-color:#697784!important}

/* Vorgangsakte */
html[data-zaphi-theme="dark"] :where(.v194-case-meta,.v218-original-option,.v218-storage-summary){background:#202830!important;color:#edf2f6!important;border-color:#46525e!important}
html[data-zaphi-theme="dark"] :where(.v194-case-meta.v194-stale-yellow,.v218-storage-summary.warning){background:#3b311d!important;color:#f2d38b!important;border-color:#80672a!important}
html[data-zaphi-theme="dark"] .v194-case-meta.v194-stale-red{background:#402326!important;color:#f0afb0!important;border-color:#82444a!important}
html[data-zaphi-theme="dark"] :where(.v218-original-option small,.v218-storage-summary small){color:#aeb8c2!important}

