/* ZaPhi Manager v0.22.49 · letzte Kundendaten-Schicht und Plancraft-Bestandsstatus. */
html[data-zaphi-theme="dark"] #page-customers :where(
  .customer-profile,.profile-section,.contact-card,.billing-card,.unassigned,.phone-chip,
  .v20-object-search-tools,.v194-object-tools,.v20-tenant-list-toggle,
  .v217-customer-panel-content,.v217-customer-pane,.v217-object-owner-field,
  .v213-customer-portal-section,.v213-portal-boundary,.v213-portal-access-row,
  .v213-portal-requests>div,.v224-object-summary,.v224-am-masterdata-note,
  .v224-derived-tenants,.v224-derived-head,.zfr-object,.zfr-object-detail
){background:#1b2229!important;color:#edf2f6!important;border-color:#3b4651!important}

html[data-zaphi-theme="dark"] #page-customers :where(
  .v20-object-search-tools,.v194-object-tools,.v20-tenant-list-toggle,
  .v213-portal-boundary,.v224-object-summary,.v224-derived-head
){background:#202830!important}

html[data-zaphi-theme="dark"] #page-customers .v20-object-search-tools{
  box-shadow:0 4px 15px rgba(0,0,0,.18)!important;
}
html[data-zaphi-theme="dark"] #page-customers :where(
  .v20-object-search-label,.v224-object-summary strong,.v224-derived-head strong,
  .contact-card h4,.billing-card h4,.v213-portal-boundary
){color:#edf2f6!important}
html[data-zaphi-theme="dark"] #page-customers :where(
  .contact-card .role,.billing-card .billing-label,.v224-object-summary span,
  .v224-derived-head span,.v213-customer-portal-section .profile-section-head small,
  .v213-portal-access-row small,.v213-portal-requests small,.zfr-readonly-note
){color:#aeb8c2!important}

html[data-zaphi-theme="dark"] #page-customers :where(.v224-source-badge,.source-pill){
  background:#28323b!important;color:#c5ced6!important;border-color:#46525e!important;
}
html[data-zaphi-theme="dark"] #page-customers :where(.address-suggestions,.address-suggestion){
  background:#202830!important;color:#edf2f6!important;border-color:#3b4651!important;
}
html[data-zaphi-theme="dark"] #page-customers .address-suggestion:hover{background:#28323b!important}

html[data-zaphi-theme="dark"] #page-customers .v217-customer-panel-tabs>button:not(.active){
  background:#202830!important;color:#edf2f6!important;border-color:#46525e!important;
}
html[data-zaphi-theme="dark"] #page-customers .v217-customer-panel-tabs>button.active{
  background:#30241c!important;color:#fff!important;border-color:#c66a28!important;
}
html[data-zaphi-theme="dark"] #page-customers button:not(.primary):not(.active):not(.v20-inline-status){
  background:#202830!important;color:#edf2f6!important;border-color:#46525e!important;
}
html[data-zaphi-theme="dark"] #page-customers button:not(.primary):not(.active):not(.v20-inline-status):hover{
  background:#28323b!important;color:#fff!important;border-color:#697784!important;
}

html[data-zaphi-theme="dark"] #page-customers .v213-portal-state{background:#28323b!important;color:#c5ced6!important}
html[data-zaphi-theme="dark"] #page-customers .v213-portal-state.active{background:#20392c!important;color:#8fd2aa!important}
html[data-zaphi-theme="dark"] #page-customers .v213-portal-state.pending{background:#1d3042!important;color:#9bc1e5!important}
html[data-zaphi-theme="dark"] #page-customers :where(.v213-portal-state.error,.v213-portal-state.expired){background:#402326!important;color:#f0afb0!important}
html[data-zaphi-theme="dark"] #page-customers .v213-portal-state.revoked{background:#2a3036!important;color:#aeb8c2!important}

html[data-zaphi-theme="dark"] .v2249-pc-integrity{border-color:#46525e!important}
html[data-zaphi-theme="dark"] .v2249-pc-integrity>div:first-child>b{display:block;margin-top:6px;color:#f2d38b!important}
html[data-zaphi-theme="dark"] .v2249-pc-integrity.mismatch{background:#3b311d!important;border-color:#80672a!important}
html[data-zaphi-theme="dark"] .v2249-pc-integrity.source-missing{background:#402326!important;border-color:#82444a!important}
