/* Zahnlager dark appearance — quiet navy, one coherent palette across screens. */
.zl-appearance-preferences{margin-bottom:12px;padding:16px;border:1px solid #dfe8ed;border-radius:14px;background:#fff}
.zl-appearance-heading{display:flex;align-items:center;gap:9px;color:var(--zl-accent-primary,#003b61)}
.zl-appearance-heading h3{margin:0 0 11px;font-size:16px}
.zl-appearance-preferences label{display:block;margin:4px 0 7px;font-size:13px;font-weight:650;color:#36566a}
.zl-appearance-preferences select{display:block;width:100%;min-height:46px;padding:10px 12px;border-radius:12px;border:1px solid #c7d9e3;background:#f8fbfd;color:#173d55;font-size:16px}
.zl-appearance-preferences p{font-size:12px;line-height:1.5;margin:9px 0 0;color:#617b8b}
html[data-zl-theme="dark"]{--zl-night-bg:#091b28;--zl-night-surface:#102b3a;--zl-night-raised:#173746;--zl-night-line:#365363;--zl-night-ink:#e5f0f6;--zl-night-muted:#aec3ce;--zl-night-blue:#275f82;--zl-accent-primary:#aacfe3!important;--zl-accent-light:#81b0ca!important;--zl-accent-soft:rgba(78,139,170,.2)!important;background:var(--zl-night-bg)!important;color:var(--zl-night-ink)!important}
html[data-zl-theme="dark"] body{background:var(--zl-night-bg)!important;color:var(--zl-night-ink)!important}
html[data-zl-theme="dark"] :is(main,#app,.shell-workspace,#warehouseLayout,#warehouseList,#warehouseDetail,#moreContent,#workspace-lager,#workspace-aufgaben,#workspace-mehr){color:var(--zl-night-ink)}
html[data-zl-theme="dark"] :is(.card,.cat-detail,.article-stock-card,.account-panel,.menu-section-target,.ux-admin-section,.native-menu-group,.inventory-kpis,.account-summary,#appSettingsCard .delight-preferences,.zl-appearance-preferences,.cat-grid div,.cat-batch){background:var(--zl-night-surface)!important;color:var(--zl-night-ink)!important;border-color:var(--zl-night-line)!important;box-shadow:none!important}
html[data-zl-theme="dark"] :is(h1,h2,h3,h4,b,strong,label,.shell-page-title,.cat-detail-head h3,.zl-main-title){color:var(--zl-night-ink)}
html[data-zl-theme="dark"] :is(.muted,small,.cat-main small,.cat-stock small,.cat-expiry,.cat-ref,.cat-meta,.cat-detail-head small,.cat-batch small,.cat-grid small,.shell-more-link small,.native-recent-item small,.zl-home-head p,.zl-home-action small){color:var(--zl-night-muted)!important}
html[data-zl-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select){background:#173343!important;color:var(--zl-night-ink)!important;border-color:#486678!important;-webkit-text-fill-color:var(--zl-night-ink)!important}
html[data-zl-theme="dark"] :is(input,textarea)::placeholder{color:#a0b8c4!important;opacity:1}
html[data-zl-theme="dark"] :is(button,.secondary){background:#235576;color:#f1f8fc;border-color:#476e85}
html[data-zl-theme="dark"] :is(button.ghost,.native-link,.shell-back){background:transparent;color:#b2d5e8}
html[data-zl-theme="dark"] :is(.shell-filter-bar>select,#app.shell-ready .shell-filter-bar>select){background-color:#1a3b4c!important;border-color:#406073!important;color:#edf6fa!important;background-image:none!important;-webkit-text-fill-color:#edf6fa!important}
html[data-zl-theme="dark"] #app.shell-ready .shell-filter-bar>#shellCategory.all-articles-selected{background-color:#285c7c!important;border-color:#4e819f!important}
html[data-zl-theme="dark"] #app.shell-ready #shellCategory option{background:#173343!important;color:#edf5fa!important}
html[data-zl-theme="dark"] :is(.ux-filter-chips span,.ux-filter-summary,#catalogFiltersSummary,.cat-list-footer,.cat-stats div,.item-identity-hint,.load-error,.search-empty){background:#153141!important;color:#d4e5ed!important;border-color:#3b5c70!important}
html[data-zl-theme="dark"] #app.shell-ready .catalog-card:not(.catalog-ultra) #catalogList .cat-item,
html[data-zl-theme="dark"] .catalog-card:not(.catalog-ultra) #catalogList .cat-item{background:#102b3a!important;color:#e9f2f7!important;border-bottom:1px solid #365363!important}
html[data-zl-theme="dark"] #app.shell-ready .catalog-card:not(.catalog-ultra) #catalogList .cat-item.bulk-selected{background:#214657!important;box-shadow:inset 3px 0 #8bb6cf!important}
html[data-zl-theme="dark"] #catalogList .cat-item .cat-stock b{color:#dcecf4!important}
html[data-zl-theme="dark"] #catalogList .cat-item .cat-state{background:transparent!important}
html[data-zl-theme="dark"] #catalogList .cat-item .cat-state.out{color:#ffb6a8!important}
html[data-zl-theme="dark"] #catalogList .cat-item .cat-state.low{color:#ffd78a!important}
html[data-zl-theme="dark"] #catalogList .cat-item .cat-state.ok{color:#9fdcc0!important}
html[data-zl-theme="dark"] :is(.cat-photo-empty,#app.shell-ready #catalogList .cat-photo-link,#app.shell-ready #catalogList .cat-photo-empty){background:#1d3a49!important;border-color:#436071!important}
html[data-zl-theme="dark"] #catalogList .cat-bulk-tick{background:#183443!important;border-color:#7196aa!important;color:transparent}
html[data-zl-theme="dark"] #catalogList .bulk-selected .cat-bulk-tick{background:#92c3dc!important;color:#09283b!important;border-color:#92c3dc!important}
html[data-zl-theme="dark"] :is(#quickSearch,#quickSearchPanel,.quick-search-panel,.search-history-popover,#searchHistoryCard,#results){background:#102b3a!important;color:#e4eff5!important;border-color:#3b5b6d!important}
html[data-zl-theme="dark"] body.shell-active #quickSearch #q{background:transparent!important;color:#e5f0f6!important;-webkit-text-fill-color:#e5f0f6!important}
html[data-zl-theme="dark"] body.shell-active #quickSearch .search-icon-button{color:#b7d7e9!important}
html[data-zl-theme="dark"] :is(.search-history-item,.native-recent-item,.zl-smart-suggestion,.quick-search-result,.search-result){background:#173748!important;color:#e6f0f5!important;border-color:#38596b!important}
html[data-zl-theme="dark"] #zlStaffHome{background:linear-gradient(145deg,#112d3c,#0d2533)!important;border-color:#36596a!important;box-shadow:0 6px 20px rgba(0,0,0,.14)!important}
html[data-zl-theme="dark"] #zlStaffHome :is(.zl-home-head h3,.zl-home-action strong){color:#e5f1f6!important}
html[data-zl-theme="dark"] #zlStaffHome :is(.zl-home-action,.zl-admin-shortcut,.zl-home-links button,.zl-mode-end){background:#173747!important;color:#dceef6!important;border-color:#45677a!important;box-shadow:none!important}
html[data-zl-theme="dark"] #zlStaffHome .zl-home-action .zl-action-symbol{background:#254b60!important;color:#b7d7ea!important}
html[data-zl-theme="dark"] #zlStaffHome .zl-home-action small{color:#abc0cb!important}
html[data-zl-theme="dark"] #zlStaffHome .zl-mode-state{background:#1a4255!important;border-color:#51758a!important;color:#e8f3f8!important}
html[data-zl-theme="dark"] #zlStaffHome .zl-mode-state small{color:#bfd2dc!important}
html[data-zl-theme="dark"] :is(.shell-more-link,.native-menu-row,.native-side-link,.shell-task,.native-link,.surface-close,.zl-browse-toggle){background:#153444!important;color:#e0edf5!important;border-color:#37596b!important}
html[data-zl-theme="dark"] #workspaceNav{background:rgba(12,32,44,.94)!important;border-color:#2f5062!important;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
html[data-zl-theme="dark"] #workspaceNav :is(button,svg){color:#b4d1df!important}
html[data-zl-theme="dark"] #workspaceNav button[aria-selected="true"]{background:#254c62!important;color:#f3f9fc!important}
html[data-zl-theme="dark"] :is(#nativeSidebar,.native-side-brand,.shell-account,.app-footer){background:#0e2635!important;color:#bfd6e2!important;border-color:#365769!important}
html[data-zl-theme="dark"] :is(#articleSheet,dialog,.booking-sheet,.cat-image-modal-card,.zl-quick-correction){background:#102b3a!important;color:#e6f1f6!important;border-color:#456677!important}
html[data-zl-theme="dark"] :is(.booking-sheet.daily-booking-dialog,dialog.article-policy-dialog,dialog.order-record-dialog,.daily-booking-dialog>header,dialog.article-policy-dialog>header){background:#102b3a!important;color:#e6f1f6!important;border-color:#456677!important}
html[data-zl-theme="dark"] :is(.booking-sheet label.booking-quantity,.booking-sheet .ux-delivery-choice,.booking-sheet .ux-batch-choice,.native-group-body,.article-policy-dialog .policy-panel){background:#173646!important;color:#dcecf4!important;border-color:#476a7d!important}
html[data-zl-theme="dark"] :is(.booking-sheet.daily-booking-dialog>header b,.article-policy-dialog>header b,.order-record-dialog.daily-booking-dialog>header b){color:#e5eff7!important}
html[data-zl-theme="dark"] :is(.booking-sheet .booking-stepper button,.article-policy-dialog .policy-stepper button){background:#204459!important;color:#d7eaf4!important}
html[data-zl-theme="dark"] :is(.cat-edit-note,.item-identity-hint,.scan-tools,.stock-detail,.inventory-progress,.daily-overview,.account-help,.maintenance-panel,.zl-mat-group,.zl-mat-detail,.zl-mat-editor-host,.zl-mat-review){background:#173746!important;color:#d5e7ef!important;border-color:#406174!important}
html[data-zl-theme="dark"] :is(.zl-mat-rack,.zl-mat-content,.zl-mat-legend,.zl-mat-variant,.zl-mat-cell,.zl-mat-shade,.zl-mat-item){background:#133242!important;color:#dfedf4!important;border-color:#46697b!important}
html[data-zl-theme="dark"] :is(.zl-mat-content button,.zl-mat-rack button,.zl-mat-detail button){color:#e6f3f8;border-color:#52758a}
html[data-zl-theme="dark"] #bulkSelection>.bulk-toggle{color:#a9c8dc!important}
html[data-zl-theme="dark"] #bulkSelection [data-choices]{background:#112f40!important;color:#dae9f2!important;border-color:#426273!important}
html[data-zl-theme="dark"] #bulkSelection .bulk-selected-count{color:#d6e9f5!important;background:transparent!important}
html[data-zl-theme="dark"] #bulkSelection .bulk-secondary{color:#b9d8e9!important;background:transparent!important}
html[data-zl-theme="dark"] #bulkSelection .bulk-primary{background:#275f82!important;color:#f0f8fb!important;border-color:#537f9b!important}
html[data-zl-theme="dark"] #bulkSelection .bulk-edit-form{background:#173645!important;border-color:#486778!important;color:#dcecf4!important}
html[data-zl-theme="dark"] #bulkSelection :is(.bulk-edit-form h3,.bulk-field,.bulk-help){color:#dcecf4!important}
html[data-zl-theme="dark"] .zl-appearance-heading{color:#b7d8ea}
html[data-zl-theme="dark"] .zl-appearance-preferences :is(label,p){color:#bfd0da!important}
html[data-zl-theme="dark"] .zl-appearance-preferences select{background:#183a4a!important;color:#eff7fc!important;border-color:#52768a!important}
html[data-zl-theme="dark"] .brand-logo{background:#f5f9fb;border-radius:12px;padding:3px;box-sizing:border-box}
html[data-zl-theme="dark"] :focus-visible{outline-color:#97cbe5!important}
@media(prefers-reduced-motion:reduce){html[data-zl-theme="dark"] *{transition:none!important}}

/* 2.15.163 — True-black night mode. Keep controls subtly layered, not blue-filled. */
html[data-zl-theme="dark"]{
  --zl-night-bg:#000;
  --zl-night-surface:#101114;
  --zl-night-raised:#1b1d21;
  --zl-night-line:#35383e;
  --zl-night-ink:#f2f4f6;
  --zl-night-muted:#b2bec7;
  --zl-night-blue:#315c78;
  --zl-accent-primary:#c2dff0!important;
  --zl-accent-light:#9bc2da!important;
  --zl-accent-soft:rgba(132,179,207,.13)!important;
  background:#000!important;
  color-scheme:dark;
}
html[data-zl-theme="dark"] :is(body,main,header,#app,.shell-workspace,#warehouseLayout,#warehouseList,#workspace-lager,#workspace-aufgaben,#workspace-mehr){
  background:#000!important;color:var(--zl-night-ink)!important;
}
html[data-zl-theme="dark"] :is(.card,.catalog-card,.cat-detail,.article-stock-card,.account-panel,.menu-section-target,.ux-admin-section,.native-menu-group,.inventory-kpis,.account-summary,.zl-appearance-preferences,.cat-grid div,.cat-batch,dialog,#articleSheet,.booking-sheet,.cat-image-modal-card,.zl-quick-correction){
  background:var(--zl-night-surface)!important;
  color:var(--zl-night-ink)!important;
  border-color:var(--zl-night-line)!important;
  box-shadow:none!important;
}
html[data-zl-theme="dark"] :is(h1,h2,h3,h4,b,strong,label,.shell-page-title,.zl-main-title){color:var(--zl-night-ink)!important}
html[data-zl-theme="dark"] :is(.muted,small,.cat-ref,.cat-meta,.cat-expiry,.cat-detail-head small,.cat-grid small,.shell-more-link small,.shell-task small){color:var(--zl-night-muted)!important}
html[data-zl-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select){
  background:#1b1d21!important;border-color:#45494f!important;
  color:var(--zl-night-ink)!important;-webkit-text-fill-color:var(--zl-night-ink)!important;
}
html[data-zl-theme="dark"] :is(input,textarea)::placeholder{color:#adb6bd!important;opacity:1}
html[data-zl-theme="dark"] :is(button,.secondary){background:#24282d;color:#f2f5f7;border-color:#484d54}
html[data-zl-theme="dark"] :is(button.ghost,.native-link,.shell-back){background:transparent;color:#c1d8e6}
html[data-zl-theme="dark"] :is(.ux-filter-chips span,.ux-filter-summary,#catalogFiltersSummary,.cat-list-footer,.cat-stats div,.item-identity-hint,.load-error,.search-empty){
  background:#15171a!important;color:#d5dce2!important;border-color:#373a40!important;
}
html[data-zl-theme="dark"] #app.shell-ready .shell-filter-bar>select,
html[data-zl-theme="dark"] .shell-filter-bar>select,
html[data-zl-theme="dark"] #app.shell-ready .shell-filter-bar>#catalogFilterButton{
  background-color:#1b1e22!important;color:#eef2f6!important;
  -webkit-text-fill-color:#eef2f6!important;border-color:#41464d!important;
}
html[data-zl-theme="dark"] #app.shell-ready .shell-filter-bar>#shellCategory.all-articles-selected{
  background-color:#2b4c63!important;border-color:#56809a!important;color:#fff!important;
}
html[data-zl-theme="dark"] :is(#shellCategory,#catalogManufacturer,#catalogScope,#catalogDensity,#catalogStatus,#catalogSortSelect) option,
html[data-zl-theme="dark"] #catalogFilterDialog option{
  background:#1b1d21!important;color:#f2f4f6!important;
}
html[data-zl-theme="dark"] #catalogList .cat-item,
html[data-zl-theme="dark"] #app.shell-ready .catalog-card:not(.catalog-ultra) #catalogList .cat-item{
  background:#101114!important;color:#f1f3f5!important;border-color:#30343a!important;
}
html[data-zl-theme="dark"] #app.shell-ready .catalog-card:not(.catalog-ultra) #catalogList .cat-item.bulk-selected,
html[data-zl-theme="dark"] #catalogList .cat-item.bulk-selected{background:#24313a!important;box-shadow:inset 3px 0 #8eb8d0!important}
html[data-zl-theme="dark"] :is(.cat-photo-empty,#app.shell-ready #catalogList .cat-photo-link,#app.shell-ready #catalogList .cat-photo-empty){background:#202329!important;border-color:#414750!important}
html[data-zl-theme="dark"] #catalogList .cat-bulk-tick{background:#1b1d21!important;border-color:#71808b!important}
html[data-zl-theme="dark"] #catalogList .bulk-selected .cat-bulk-tick{background:#a1c9df!important;border-color:#a1c9df!important;color:#111820!important}

/* Recent search: the whole row, both ends and the remove button share one dark surface. */
html[data-zl-theme="dark"] :is(#quickSearch,#quickSearchPanel,.quick-search-panel,.search-history-popover,#searchHistoryCard,#results,.zl-smart-suggestions){
  background:#101114!important;color:#f1f3f6!important;border-color:#383c42!important;
}
html[data-zl-theme="dark"] #searchHistoryCard .search-history-head,
html[data-zl-theme="dark"] #searchHistoryCard .search-history-head b{color:#eef1f4!important}
html[data-zl-theme="dark"] #searchHistoryCard .search-history-clear{color:#bac4cc!important}
html[data-zl-theme="dark"] #searchHistoryCard .search-history-clear:is(:hover,:focus-visible){background:#272b30!important;color:#fff!important}
html[data-zl-theme="dark"] #searchHistoryCard .native-history-row{
  display:flex;align-items:stretch;min-width:0;overflow:hidden;
  padding:0!important;gap:0!important;margin:6px 0!important;
  background:#1b1d21!important;border:1px solid #3a3e44!important;border-radius:13px!important;
  box-shadow:none!important;
}
html[data-zl-theme="dark"] #searchHistoryCard .search-history-item{
  flex:1;min-width:0;margin:0!important;padding:11px 13px!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  color:#f1f3f6!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #searchHistoryCard .search-history-item :is(b,strong){color:#f1f3f6!important}
html[data-zl-theme="dark"] #searchHistoryCard .search-history-item small{color:#afbbc5!important}
html[data-zl-theme="dark"] #searchHistoryCard .history-icon{color:#97b8ca!important}
html[data-zl-theme="dark"] #searchHistoryCard button.native-history-remove{
  display:grid;place-items:center;flex:none;align-self:stretch;
  height:auto!important;min-height:44px!important;
  background:#1b1d21!important;color:#cad4db!important;
  border:0!important;border-left:1px solid #3a3e44!important;
  border-radius:0!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #searchHistoryCard :is(.search-history-item,button.native-history-remove):is(:hover,:focus-visible){background:#2a2d33!important}
html[data-zl-theme="dark"] #searchHistoryCard .native-recent-item,
html[data-zl-theme="dark"] #zlStaffHome #nativeRecent .native-recent-item{
  background:#1b1d21!important;color:#f1f3f6!important;border-color:#393c42!important;
}
html[data-zl-theme="dark"] #zlStaffHome #nativeRecent .native-recent-item :is(b,small){color:#e5edf2!important}
html[data-zl-theme="dark"] #zlStaffHome #nativeRecent .native-recent-item>.ux-icon{background:#292d32!important;color:#bdd6e4!important}
html[data-zl-theme="dark"] #quickSearch .zl-smart-suggestions{background:#15171a!important;border-color:#3b3e45!important;box-shadow:none!important}
html[data-zl-theme="dark"] #quickSearch .zl-smart-suggestion{background:transparent!important;color:#eef2f6!important;border-color:#353940!important}
html[data-zl-theme="dark"] #quickSearch .zl-smart-suggestion:is(:hover,:focus-visible,:active){background:#252a2e!important}
html[data-zl-theme="dark"] #quickSearch .zl-smart-description strong{color:#eef2f6!important}
html[data-zl-theme="dark"] #quickSearch .zl-smart-description small{color:#aebbc5!important}
html[data-zl-theme="dark"] #quickSearch .zl-smart-stock{background:#26343d!important;color:#cce5f2!important}
html[data-zl-theme="dark"] #quickSearch .zl-smart-stock.is-empty{background:#362a2d!important;color:#f3b9c1!important}
html[data-zl-theme="dark"] #quickSearch .zl-smart-more{background:#22272b!important;color:#c7e1f0!important;border-color:#3c434b!important}
html[data-zl-theme="dark"] #quickSearch .zl-smart-more:hover{background:#30373e!important}
html[data-zl-theme="dark"] #quickSearch .zl-search-results-count{color:#b7c7d2!important}

/* Filter dialog: subordinate fields, lists and native option menus stay dark. */
html[data-zl-theme="dark"] #catalogFilterDialog,
html[data-zl-theme="dark"] #catalogFilterDialog :is(header,footer,section,fieldset,.filter-section,.filter-group,.filter-options,.filter-content,.filter-body,.filter-footer){
  background:#121417!important;color:#f1f3f6!important;border-color:#373b42!important;
}
html[data-zl-theme="dark"] #catalogFilterDialog :is(label,legend,h2,h3,h4,strong,b){color:#f0f3f5!important}
html[data-zl-theme="dark"] #catalogFilterDialog :is(p,small,.muted){color:#b6c0c8!important}
html[data-zl-theme="dark"] #catalogFilterDialog :is(button,select,input:not([type="checkbox"]):not([type="radio"]),textarea){
  background:#202328!important;color:#f2f4f7!important;border-color:#464b53!important;
  -webkit-text-fill-color:#f2f4f7!important;
}
html[data-zl-theme="dark"] #catalogFilterDialog :is(input[type="checkbox"],input[type="radio"]){accent-color:#8ebad5;color-scheme:dark}
html[data-zl-theme="dark"] #catalogFilterDialog :is(button,[role="option"],[role="tab"]):is([aria-selected="true"],[aria-pressed="true"],[data-active="true"],.active,.selected){
  background:#31546b!important;color:#fff!important;border-color:#7199b1!important;
}
html[data-zl-theme="dark"] #catalogFilterDialog :is(button,[role="option"],[role="tab"]):is(:hover,:focus-visible){background:#2a3035!important;color:#fff!important}
html[data-zl-theme="dark"] #catalogFilterDialog :is(button,[role="option"],[role="tab"]):is([aria-selected="true"],[aria-pressed="true"],.active,.selected):is(:hover,:focus-visible){background:#3b647d!important}
html[data-zl-theme="dark"] #catalogFilterDialog #filterApply{background:#315d7a!important;color:#fff!important;border-color:#527d97!important}
html[data-zl-theme="dark"] #catalogFilterDialog :is(.filter-chip,.filter-pill,.filter-badge){background:#26333c!important;color:#d4eaf4!important;border-color:#536776!important}
html[data-zl-theme="dark"] #catalogFilterDialog :is([role="listbox"],[role="menu"],[role="menuitem"],[role="option"],details,summary,ul,li,.filter-row,.filter-option,.filter-accordion,.filter-submenu,.filter-subsection){
  background:#1b1e22!important;color:#eef2f5!important;border-color:#3c4148!important;
}
html[data-zl-theme="dark"] #catalogFilterDialog :is([role="menuitem"],[role="option"],.filter-option):is(:hover,:focus-visible,[aria-checked="true"],[aria-selected="true"]){background:#304756!important;color:#fff!important}

/* Tasks, More, navigation and daily home: nearly black cards with readable labels. */
html[data-zl-theme="dark"] :is(.shell-more-link,.native-menu-row,.native-side-link,.shell-task,.native-link,.surface-close,.zl-browse-toggle){
  background:#17191d!important;color:#eef2f5!important;border-color:#383c43!important;
}
html[data-zl-theme="dark"] :is(.shell-more-link,.native-menu-row,.native-side-link,.shell-task):is(:hover,:focus-visible){background:#25282d!important}
html[data-zl-theme="dark"] :is(.shell-more-link,.native-menu-row,.native-side-link,.shell-task) :is(b,strong,svg){color:#edf3f6!important}
html[data-zl-theme="dark"] :is(#taskHub,#moreHub,#moreContent,.subpages,.subpage-section){color:#eff2f5!important}
html[data-zl-theme="dark"] :is(#reorderCard,#operationsCard,#moreContent .card,.inventory-kpis,.native-group-body){background:#101114!important;border-color:#373a40!important}
html[data-zl-theme="dark"] #zlStaffHome{background:linear-gradient(145deg,#111316,#08090b)!important;border-color:#30343a!important;box-shadow:none!important}
html[data-zl-theme="dark"] #zlStaffHome :is(.zl-home-action,.zl-admin-shortcut,.zl-home-links button,.zl-mode-end){
  background:#1b1d21!important;color:#eff3f5!important;border-color:#3e434a!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #zlStaffHome :is(.zl-home-action,.zl-admin-shortcut,.zl-home-links button,.zl-mode-end):is(:hover,:active,:focus-visible){background:#292d32!important}
html[data-zl-theme="dark"] #zlStaffHome .zl-home-action[aria-pressed="true"]{background:#263743!important;border-color:#7398af!important;box-shadow:none!important}
html[data-zl-theme="dark"] #zlStaffHome .zl-home-action .zl-action-symbol{background:#292e35!important;color:#c2dfef!important}
html[data-zl-theme="dark"] #zlStaffHome .zl-mode-state{background:#191d21!important;border-color:#41464e!important;color:#eaf0f4!important;box-shadow:none!important}
html[data-zl-theme="dark"] #zlStaffHome .zl-mode-state :is(strong,small){color:#e0e9f0!important}
html[data-zl-theme="dark"] #zlStaffHome .zl-mode-actions button[data-zl-action="scan"]{background:#315d7a!important;border-color:#658ca5!important;color:#fff!important;box-shadow:none!important}
html[data-zl-theme="dark"] #workspaceNav{background:rgba(8,9,11,.96)!important;border-color:#34383e!important}
html[data-zl-theme="dark"] #workspaceNav button[aria-selected="true"]{background:#272e34!important;color:#f7f9fa!important}
html[data-zl-theme="dark"] :is(#nativeSidebar,.native-side-brand,.shell-account,.app-footer){background:#08090b!important;border-color:#35383f!important;color:#d0d8de!important}

/* Form, settings, administrative panels, lists and secondary controls. */
html[data-zl-theme="dark"] :is(.login-card,.login-brand,.login-fields,.category-management-card,.category-manager-body,.category-admin-row,.maintenance-panel,.maintenance-file-picker,.maintenance-file-selection,.activity-filters,.admin-user-create,.inventory-progress,.daily-overview,.stock-detail,.scan-tools,.cat-edit,.native-group-body,.account-help){
  background:#16181c!important;color:#edf1f5!important;
  border-color:#3d4148!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] :is(.login-field,.login-divider,.catalog-view-controls,.catalog-filter-storage,.category-add-row,.maintenance-actions,.subpage-heading,.native-scan-note){
  color:#e7eef3!important;border-color:#3e434a!important;
}
html[data-zl-theme="dark"] :is(.login-brand p,.login-heading p,.login-hint,.login-private,.maintenance-version,.maintenance-file-name,.maintenance-feedback,.inventory-progress small,.account-help p,.cat-edit p){color:#b3c0c9!important}
html[data-zl-theme="dark"] :is(.login-passkey,.login-submit,.maintenance-primary,.maintenance-file-picker,.category-admin-row button,.admin-user-create button){
  background:#263a49!important;color:#edf5fa!important;border-color:#597b91!important;
}
html[data-zl-theme="dark"] :is(.login-passkey,.maintenance-file-picker,.category-admin-row button):is(:hover,:focus-visible){background:#304c60!important}
html[data-zl-theme="dark"] :is(.item,.reorder-item,.daily-overview .item,.maintenance-recovery,.cat-batch,.cat-grid,.native-menu-group,.native-group-body,.stock-detail,.cat-stats div){
  background:#191b1f!important;color:#e9eef2!important;border-color:#3b4047!important;
}
html[data-zl-theme="dark"] :is(.item,.reorder-item,.subpage-section,.maintenance-panel,.category-admin-row,.cat-edit,.native-menu-row) :is(h2,h3,h4,b,strong,legend,label){color:#f0f3f6!important}
html[data-zl-theme="dark"] :is(.item,.reorder-item,.subpage-section,.maintenance-panel,.category-admin-row,.cat-edit,.native-menu-row) :is(p,small,summary){color:#b6c2cb!important}
html[data-zl-theme="dark"] :is(.cat-edit,.maintenance-panel,.subpage-section,.ux-admin-section,.account-panel,.category-management-card) :is(input,select,textarea){
  background:#1e2126!important;color:#f2f4f6!important;border-color:#50565d!important;
}
html[data-zl-theme="dark"] :is(.cat-edit,.maintenance-panel,.subpage-section,.ux-admin-section,.account-panel,.category-management-card) :is(input[type="checkbox"],input[type="radio"]){accent-color:#a5c8dd!important;color-scheme:dark}
html[data-zl-theme="dark"] :is(.maintenance-panel,.subpage-section,.ux-admin-section,.account-panel,.cat-detail) :is(table,thead,tbody,tr,th,td){background:#14161a!important;color:#dce5ec!important;border-color:#393e45!important}
html[data-zl-theme="dark"] :is(.maintenance-panel,.subpage-section,.ux-admin-section,.account-panel,.cat-detail) :is(th,thead){background:#24272c!important;color:#f1f3f5!important}
html[data-zl-theme="dark"] :is(.danger,.maintenance-caution,.backup-warning){background:#382428!important;color:#ffbdc5!important;border-color:#85545e!important}
html[data-zl-theme="dark"] :is(.cat-error,.load-error,.bulk-feedback.is-error){background:#322227!important;color:#ffc2cb!important;border-color:#764550!important}
html[data-zl-theme="dark"] :is(.maintenance-feedback,.bulk-feedback,.zl-mat-feedback):not(.is-error):not(.error){color:#b5d6c6!important}
html[data-zl-theme="dark"] :is(button:disabled,input:disabled,select:disabled){opacity:.58}

/* Implant / composite matrices must not retain bright white tiles. */
html[data-zl-theme="dark"] #zlMaterialOverview{--mat-navy:#d5e8f4;--mat-muted:#b1bec7;--mat-line:#40444a;background:#0d0e10!important;border-color:#363a40!important;color:#ecf1f5!important;box-shadow:none!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-kind,.zl-mat-group,.zl-mat-rack,.zl-mat-content,.zl-mat-detail,.zl-mat-editor,.zl-mat-article,.zl-mat-review details,.zl-mat-batches,.zl-mat-summary span,.zl-mat-cell,.zl-mat-shade){
  background:#1b1d21!important;border-color:#41454c!important;color:#eaf1f5!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-head h3,.zl-mat-group h4,.zl-mat-rack-head strong,.zl-mat-detail h4,.zl-mat-article-main strong,.zl-mat-article-stock b,.zl-mat-editor-top strong,.zl-mat-cell strong){color:#f1f4f6!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-head p,.zl-mat-head small,.zl-mat-article-main span,.zl-mat-article-main small,.zl-mat-review p,.zl-mat-editor p,.zl-mat-legend,.zl-mat-rack-head span){color:#b3c0c8!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-variant-meta{color:#b6c6d0!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-dim-section.is-rare{border-color:#41454c!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-prosthetic-grid :is(.zl-mat-axis-length,.zl-mat-axis-diameter){color:#d5e8f4!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-prosthetic-grid .zl-mat-matrix-ref{color:#b5c7d2!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-dim-rare-heading{background:#33291f!important;border-color:#685236!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-dim-rare-heading strong{color:#f5c98c!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-dim-rare-heading small{color:#dbb992!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-settings{background:rgba(24,26,31,.97)!important;color:#eaf1f5!important;border-color:#626c76!important;outline-color:#444c56!important;box-shadow:0 30px 75px #000c,0 7px 20px #0008,inset 0 1px rgba(255,255,255,.08)!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-settings-group{background:#1b1d21!important;color:#eaf1f5!important;border-color:#41454c!important;box-shadow:none!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-settings-scrim{background:rgba(0,0,0,.63)!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-settings-head strong,.zl-mat-settings-subtitle strong,.zl-mat-settings-group-label>span:nth-child(2)){color:#f1f4f6!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-settings-subtitle small,.zl-mat-settings-group label,.zl-mat-settings-bottom span){color:#aebfc9!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-settings-view,.zl-mat-settings-subtitle){border-color:#41454c!important;color:#eaf1f5!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-settings-view>div,.zl-mat-group-picture,.zl-mat-order-buttons button){background:#292d33!important;border-color:#50565d!important;color:#cce3f0!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-settings-view button{color:#c3d3dd!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-settings-view button[aria-pressed=true]{background:#345c77!important;color:#fff!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-settings-hint{color:#aabac5!important;border-color:#41454c!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-settings-group select{background:#23272d!important;border-color:#50565d!important;color:#eff4f7!important;color-scheme:dark}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-settings-head button,.zl-mat-settings-bottom button){color:#b5d4e5!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-head-actions button[data-mat-action=settings] svg{background:transparent!important;border:0!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-head-actions button,.zl-mat-paging button,.zl-mat-article-actions button.zl-mat-subtle,.zl-mat-review-list button,.zl-mat-review-actions button,.zl-mat-editor-actions button){background:#252930!important;color:#e7eff4!important;border-color:#50565d!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-head-actions button:is(:hover,[aria-expanded=true]){background:#324450!important;border-color:#7093a7!important;box-shadow:0 4px 14px #0007!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-order-count{background:#46718a!important;color:#fff!important;border-color:#1d2228!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-article-links button{background:#263c4b!important;color:#eaf3f8!important;border-color:#607d8f!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-article-links button[data-mat-article-edit]{background:#252930!important;color:#eaf3f8!important;border-color:#50565d!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-kind button[aria-pressed="true"],.zl-mat-article-actions button:not(.zl-mat-subtle),.zl-mat-assign-button){background:#345c77!important;color:#fff!important;border-color:#587d96!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-cell.low{background:#30271c!important;color:#f6cb83!important;border-color:#775c36!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-cell.empty{background:#302126!important;color:#ffc1cd!important;border-color:#71434e!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-cell.missing{background:repeating-linear-gradient(130deg,#1d2024,#1d2024 8px,#262a2f 8px,#262a2f 16px)!important;color:#aab5bd!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-available-candidate strong{color:#b5c6d0!important}
html[data-zl-theme="dark"] #zlMaterialOverview button.zl-mat-cell.missing.zl-mat-ref-known{background:#1d302c!important;border-color:#477567!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-ref-known small{color:#afe1cd!important}
html[data-zl-theme="dark"] #zlMaterialOverview button.zl-mat-available-candidate:hover{border-color:#85a8be!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-cell.low,.zl-mat-cell.empty) strong{color:inherit!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-cell.low small{color:#f6cb83!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-cell.empty small{color:#ffc1cd!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-editor :is(input,select){background:#202329!important;color:#f1f4f6!important;border-color:#535a63!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-detail-head button svg,.zl-mat-head-actions button svg){background:#292d33!important;border-color:#4c5159!important;color:#d5eaf5!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-order-draft,.zl-mat-missing-create,.zl-mat-order-line){background:#1b1d21!important;border-color:#424b52!important;color:#eaf1f5!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-order-head strong,.zl-mat-order-maker h4,.zl-mat-order-line b){color:#e3eff6!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-order-head p,.zl-mat-order-foot,.zl-mat-order-empty,.zl-mat-missing-form p,.zl-mat-order-line small){color:#afc1cc!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-order-line input,.zl-mat-order-compose input,.zl-mat-missing-form input,.zl-mat-missing-form select){background:#23272d!important;color:#eef5f9!important;border-color:#50565d!important;color-scheme:dark}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-order-contact{background:#23272d!important;border-color:#50565d!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-order-contact strong{color:#eef5f9!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-order-contact :is(span,small){color:#b2c5d1!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-order-maker{border-color:#41454c!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-order-trigger{background:#293c4a!important;color:#e1f1f8!important;border-color:#4e6b7e!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-order-compose-actions button{background:#273e4c!important;border-color:#587588!important;color:#e5f4fc!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-order-compose-actions button.primary{background:#345c77!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-order-compose button.zl-mat-order-record{color:#b5cfdd!important;border-color:#546f80!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-ref-panel{background:#1e3136!important;border-color:#3b626d!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-ref-panel>strong{color:#c9e7eb!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-ref-panel p,.zl-mat-ref-panel label,.zl-mat-ref-selected small){color:#b2cbd1!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-ref-panel a{color:#a4d9ef!important}
html[data-zl-theme="dark"] #zlMaterialOverview :is(.zl-mat-ref-panel select,.zl-mat-ref-selected,.zl-mat-missing-form input[readonly]){background:#26363b!important;border-color:#526c75!important;color:#e8f4f5!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-ref-manual-toggle{color:#b4cfd8!important}
html[data-zl-theme="dark"] #zlMaterialOverview .zl-mat-article-actions button.zl-mat-order-add{background:#33422d!important;border-color:#648053!important;color:#d7f1ca!important}

/* The top-left brand mark is white only in night mode. */
html[data-zl-theme="dark"] :is(header .brand-logo,.shell-page-title .shell-logo){
  filter:brightness(0) invert(1)!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}

/* Floating context menus remain visually distinct from dark page cards. */
html[data-zl-theme="dark"] :is(#catalogFilterDialog,#searchHistoryCard.search-history-popover){
  background:rgba(27,30,35,.97)!important;border-color:#59636d!important;
  box-shadow:0 22px 55px #000b,0 5px 16px #0007!important;
  -webkit-backdrop-filter:blur(18px) saturate(1.1);backdrop-filter:blur(18px) saturate(1.1);
}
html[data-zl-theme="dark"] #catalogFilterDialog::backdrop{background:rgba(0,0,0,.6);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
html[data-zl-theme="dark"] :focus-visible{outline-color:#a4d1e9!important}

/* 2.15.164 — Stronger selectors for legacy task, order, search-history and
   administration rules that used white backgrounds with !important. */
html[data-zl-theme="dark"] #app.shell-ready #workspace-aufgaben #taskHub > button.shell-task,
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr #moreHub > button.shell-more-link{
  background:#1a1d21!important;background-image:none!important;
  color:#f2f4f6!important;border:1px solid #393e45!important;
  box-shadow:none!important;
}
html[data-zl-theme="dark"] #app.shell-ready #workspace-aufgaben #taskHub > button.shell-task:is(:hover,:focus-visible),
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr #moreHub > button.shell-more-link:is(:hover,:focus-visible){
  background:#282d33!important;border-color:#617888!important;
}
html[data-zl-theme="dark"] #app.shell-ready #workspace-aufgaben #taskHub > button.shell-task :is(b,strong,span,svg),
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr #moreHub > button.shell-more-link :is(b,strong,span,svg){color:#f0f3f5!important}
html[data-zl-theme="dark"] #app.shell-ready #workspace-aufgaben #taskHub > button.shell-task small,
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr #moreHub > button.shell-more-link small{color:#b7c4ce!important}
html[data-zl-theme="dark"] #app.shell-ready #workspace-aufgaben #taskHub > button.shell-task > strong{
  background:#2c4558!important;color:#f5f8fa!important;border:1px solid #4f6b7e!important;
  box-shadow:none!important;
}
html[data-zl-theme="dark"] #app.shell-ready #workspace-aufgaben #taskHub > button.shell-task > svg{color:#b8d4e4!important}

/* Order cards and expiration rows: eliminate white-on-white content. */
html[data-zl-theme="dark"] #app.shell-ready #operationsCard #op-orders > .operation-row,
html[data-zl-theme="dark"] #app.shell-ready #operationsCard #op-expiry .operation-row,
html[data-zl-theme="dark"] #app.shell-ready #reorderCard .reorder-item,
html[data-zl-theme="dark"] #app.shell-ready #moreActivity #op-activity .activity-entry{
  background:#1a1c20!important;background-image:none!important;
  color:#e8eef3!important;border:1px solid #3b4047!important;
  box-shadow:none!important;
}
html[data-zl-theme="dark"] #app.shell-ready #operationsCard .operation-row :is(b,strong,h3,h4),
html[data-zl-theme="dark"] #app.shell-ready #moreActivity #op-activity .activity-entry :is(b,strong){color:#f2f4f6!important}
html[data-zl-theme="dark"] #app.shell-ready #operationsCard .operation-row :is(p,small,.ux-order-remaining,.ux-order-meta),
html[data-zl-theme="dark"] #app.shell-ready #moreActivity #op-activity .activity-entry :is(p,small,time){color:#b7c4cc!important}
html[data-zl-theme="dark"] #app.shell-ready #operationsCard .operation-row .ux-order-remaining strong{color:#e9f3fa!important}
html[data-zl-theme="dark"] #app.shell-ready #operationsCard .operation-row [class*="progress"]{
  background:#272b30!important;background-image:none!important;
  color:#d9e3e9!important;border-color:#424850!important;
}
html[data-zl-theme="dark"] #app.shell-ready #operationsCard .operation-row [class*="progress"] :is(b,strong,span,small){color:#e3edf3!important}
html[data-zl-theme="dark"] #app.shell-ready #operationsCard .operation-row [class*="fill"]{background:#527c94!important}
html[data-zl-theme="dark"] #app.shell-ready #operationsCard #receivingToggle{
  background:#283e4e!important;color:#e8f3f8!important;border-color:#536d7e!important;
}
html[data-zl-theme="dark"] #app.shell-ready #operationsCard .operation-row .receive-order{
  background:#315d4c!important;color:#e6faee!important;border-color:#5d9278!important;
}
html[data-zl-theme="dark"] #app.shell-ready #operationsCard .operation-row .ux-order-more,
html[data-zl-theme="dark"] #app.shell-ready #operationsCard .operation-row .ux-order-more summary{
  background:transparent!important;color:#c0d6e4!important;border-color:#424850!important;
}
html[data-zl-theme="dark"] #app.shell-ready #operationsCard .operation-row .ux-order-more button{background:#2c3036!important;color:#f2f4f6!important}

/* Recent searches: remove the white wrapper behind otherwise dark rows. */
html[data-zl-theme="dark"] #app.shell-ready #searchHistoryCard #searchHistoryList{
  background:transparent!important;background-image:none!important;
  padding:0!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;outline:0!important;overflow:visible!important;
}
html[data-zl-theme="dark"] #app.shell-ready #searchHistoryCard #searchHistoryList::before,
html[data-zl-theme="dark"] #app.shell-ready #searchHistoryCard #searchHistoryList::after,
html[data-zl-theme="dark"] #app.shell-ready #searchHistoryCard #searchHistoryList .native-history-row::before,
html[data-zl-theme="dark"] #app.shell-ready #searchHistoryCard #searchHistoryList .native-history-row::after{content:none!important;display:none!important}
html[data-zl-theme="dark"] #app.shell-ready #searchHistoryCard #searchHistoryList .native-history-row{
  margin:6px 0!important;padding:0!important;background:#1a1c20!important;
  border:1px solid #3e4249!important;box-shadow:none!important;outline:none!important;
  border-radius:13px!important;overflow:hidden!important;
}
html[data-zl-theme="dark"] #app.shell-ready #searchHistoryCard #searchHistoryList .search-history-item,
html[data-zl-theme="dark"] #app.shell-ready #searchHistoryCard #searchHistoryList button.native-history-remove{
  background:#1a1c20!important;color:#eef2f5!important;box-shadow:none!important;
}

/* More > subpages > Administration, settings and nested menus. */
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr :is(#moreContent,#administration,#appSettingsCard,#securityCard,#inventoryCard,#moreActivity,.ux-admin-content){
  background:#0f1114!important;color:#ecf1f4!important;border-color:#353940!important;
}
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr :is(.card,.native-menu-group,.native-menu-row,.ux-admin-section,.menu-section-target,.account-panel,.maintenance-panel,.category-management-card,.category-admin-row,.design-card,details){
  background:#191b1f!important;background-image:none!important;
  color:#ecf0f4!important;border-color:#3d4249!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr :is(.native-menu-row,.shell-more-link,summary,button):is(:hover,:focus-visible){border-color:#657b8a!important}
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr :is(.native-menu-row,.ux-admin-section,.maintenance-panel,.account-panel) :is(h2,h3,h4,b,strong,legend,label,summary){color:#f0f3f5!important}
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr :is(.native-menu-row,.ux-admin-section,.maintenance-panel,.account-panel) :is(p,small,em){color:#b8c3cb!important}
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea){
  background:#23262c!important;color:#f3f5f7!important;-webkit-text-fill-color:#f3f5f7!important;
  border-color:#505761!important;
}
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr :is(.native-menu-row,.maintenance-file-picker,.maintenance-primary,.native-side-admin){
  background:#252a30!important;color:#e5eff5!important;border-color:#525e68!important;
}
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr :is(.native-menu-row,.maintenance-primary,.maintenance-file-picker) :is(svg,span){color:inherit!important}
html[data-zl-theme="dark"] #app.shell-ready #workspace-mehr :is(.backup-warning,.maintenance-caution){background:#39292c!important;color:#ffc4ca!important;border-color:#84535c!important}

/* Article details: dark outer cards, not only dark rows within white cards. */
html[data-zl-theme="dark"] #app.shell-ready #catalogDetail,
html[data-zl-theme="dark"] #articleSheet #catalogDetail,
html[data-zl-theme="dark"] #app.shell-ready #catalogDetail :is(.native-article-nav,.cat-detail-head,.article-stock-card,.daily-overview,.daily-batch-list,.daily-details,.native-order-details,.native-danger-details,.native-history-link,.cat-grid){
  background:#15171a!important;background-image:none!important;
  color:#eef2f5!important;border-color:#3d4249!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #app.shell-ready #catalogDetail :is(.daily-batch-list,.daily-details,.native-order-details,.native-danger-details,.native-history-link) > summary,
html[data-zl-theme="dark"] #app.shell-ready #catalogDetail .native-history-link{
  background:#1c1f23!important;color:#eff3f6!important;border-color:#454a52!important;
}
html[data-zl-theme="dark"] #app.shell-ready #catalogDetail :is(.native-article-nav button,.native-article-nav .native-link){
  background:#20242a!important;color:#d8ebf6!important;border-color:#414a52!important;
}
html[data-zl-theme="dark"] #app.shell-ready #catalogDetail .cat-grid > div{
  background:#17191d!important;color:#f1f3f5!important;border-color:#40444b!important;
}
html[data-zl-theme="dark"] #app.shell-ready #catalogDetail .cat-grid > div :is(b,strong){color:#f0f4f7!important}
html[data-zl-theme="dark"] #app.shell-ready #catalogDetail .cat-grid > div small{color:#afbec8!important}
html[data-zl-theme="dark"] #app.shell-ready #catalogDetail :is(.daily-details,.daily-batch-list,.article-stock-card) :is(h3,h4,b,strong,summary){color:#eef3f6!important}
html[data-zl-theme="dark"] #app.shell-ready #catalogDetail .cat-detail-actions button{
  background:#2b3035!important;color:#ffbfc9!important;border-color:#82535c!important;
}
@media(max-width:760px){
  html[data-zl-theme="dark"] #app.shell-ready #catalogDetail .cat-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  html[data-zl-theme="dark"] #app.shell-ready #catalogDetail .cat-grid > div{
    display:flex!important;flex-wrap:wrap!important;align-items:center!important;
    justify-content:space-between!important;gap:8px 12px!important;
    min-width:0!important;width:100%!important;box-sizing:border-box!important;
  }
  html[data-zl-theme="dark"] #app.shell-ready #catalogDetail .cat-grid > div > b{
    min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;
    word-break:normal!important;text-align:right!important;white-space:normal!important;
  }
}

/* Startbereich: Bestands-Pills, Link zum Artikelüberblick und Scan-Fallback. */
html[data-zl-theme="dark"] #app.shell-ready #zlStaffHome #nativeRecent > h3{
  color:#dce8f0!important;
}
html[data-zl-theme="dark"] #app.shell-ready #zlStaffHome #nativeRecent .native-recent-item > small{
  background:#2b3e4d!important;color:#e9f4f9!important;
  border:1px solid #536b7c!important;
}
html[data-zl-theme="dark"] #app.shell-ready #zlStaffHome #nativeRecent .native-recent-item > span > small{
  background:transparent!important;color:#b9c6d0!important;
}
html[data-zl-theme="dark"] #app.shell-ready #zlStaffHome .zl-browse-toggle{
  background:#202328!important;color:#c8deeb!important;
  border:1px solid #3d464d!important;
}
html[data-zl-theme="dark"] #app.shell-ready #zlStaffHome .zl-browse-toggle:is(:hover,:focus-visible){background:#2b3238!important}
html[data-zl-theme="dark"] #app.shell-ready #quickSearch .zl-scan-fallback button{
  background:#22272c!important;color:#c4d7e2!important;
  border:1px solid #485965!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #app.shell-ready #quickSearch .zl-scan-fallback button strong{
  color:#d6ebf6!important;
}
html[data-zl-theme="dark"] #app.shell-ready #quickSearch .zl-scan-fallback button:is(:hover,:focus-visible){background:#303840!important}

/* 2.15.165 — iPhone article details live in #articleSheet OUTSIDE #app.
   This separate scope is essential: #app.shell-ready rules cannot match here. */
html[data-zl-theme="dark"] #articleSheet,
html[data-zl-theme="dark"] #articleSheet #catalogDetail{
  background:#0d0f11!important;color:#eef2f5!important;
  border-color:#3c4147!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #articleSheet #catalogDetail :is(.native-article-nav,.cat-detail-head,.article-stock-card,.daily-overview,.daily-batch-list,.daily-details,.native-order-details,.native-danger-details,.native-history-link,.cat-grid){
  background:#191b1f!important;background-image:none!important;
  color:#f0f3f6!important;border-color:#40454c!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #articleSheet #catalogDetail :is(.daily-details,.daily-batch-list,.native-order-details,.native-danger-details) > summary,
html[data-zl-theme="dark"] #articleSheet #catalogDetail .native-history-link{
  background:#202328!important;color:#f2f5f7!important;
  border-color:#464b52!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #articleSheet #catalogDetail :is(.native-article-nav button,.native-form-nav button){
  background:#25292e!important;color:#e8f1f6!important;border-color:#4a5158!important;
}
html[data-zl-theme="dark"] #articleSheet #catalogDetail :is(.daily-details,.daily-batch-list,.native-order-details) :is(h3,h4,b,strong,legend,summary){color:#f1f5f7!important}
html[data-zl-theme="dark"] #articleSheet #catalogDetail :is(.daily-details,.daily-batch-list,.native-order-details) :is(p,small){color:#b7c4cd!important}
html[data-zl-theme="dark"] #articleSheet #catalogDetail .cat-grid > div{
  background:#171a1e!important;color:#eef2f5!important;
  border-color:#3e444b!important;box-shadow:none!important;
}
html[data-zl-theme="dark"] #articleSheet #catalogDetail .cat-grid > div :is(b,strong){color:#f0f3f5!important}
html[data-zl-theme="dark"] #articleSheet #catalogDetail .cat-grid > div small{color:#b2c0c9!important}
html[data-zl-theme="dark"] #articleSheet #catalogDetail .native-order-details :is(.policy-panel,.policy-card,.policy-section,.policy-summary,.policy-body,.stock-policy,.item-policy){
  background:#202328!important;color:#e9eef2!important;
  border-color:#40474e!important;
}
html[data-zl-theme="dark"] #articleSheet #catalogDetail .native-order-details :is(button,a){
  background:#26313a!important;color:#d0e9f6!important;
  border-color:#4a6475!important;
}
html[data-zl-theme="dark"] #articleSheet #catalogDetail .native-order-details > :not(summary){
  color:#e8eef2!important;
}
html[data-zl-theme="dark"] #articleSheet #catalogDetail .native-danger-details .catalog-delete-btn{
  background:#37282b!important;color:#ffc6cd!important;border-color:#85545e!important;
}
@media(max-width:760px){
  html[data-zl-theme="dark"] #articleSheet #catalogDetail .cat-grid{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
  }
  html[data-zl-theme="dark"] #articleSheet #catalogDetail .cat-grid > div{
    display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;
    align-items:center!important;gap:8px 12px!important;
    min-width:0!important;width:100%!important;box-sizing:border-box!important;
  }
  html[data-zl-theme="dark"] #articleSheet #catalogDetail .cat-grid > div > b{
    min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important;
    white-space:normal!important;text-align:right!important;
  }
}
