/* WWS RE LEUCHTET 2026 · v3.18.2 · GPS/Karten Contrast Hotfix
   Scope: only employee area in actual dark mode.
   Keep status and button semantics unchanged; do not modify route/GPS logic.
   Rule: opaque dark UI surfaces + readable light text. */
html[data-theme="dark"] .night-ops .staff-map-panel {
  color: #f4f7fc !important;
  background: #141e2b !important;
  border-color: #375064 !important;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-map-key,
html[data-theme="dark"] .night-ops .staff-map-panel .staff-map-key > span {
  color: #d4e3f2 !important;
  opacity: 1 !important;
  font-weight: 750;
  line-height: 1.55;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-dot-target,
html[data-theme="dark"] .night-ops .staff-map-panel .staff-dot-person {
  border-color: #f3f7ff !important;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-route-status {
  background: #202c3b !important;
  border: 1px solid #496175 !important;
  color: #f5f8fc !important;
  font-weight: 650;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-route-status strong {
  color: #94e7f3 !important;
}
/* First action = restart GPS permission. Dark cyan primary action. */
html[data-theme="dark"] .night-ops .staff-map-panel .staff-gps-retry:not(.staff-manual-start) {
  background: #153544 !important;
  background-image: none !important;
  color: #f5fbff !important;
  border: 1px solid #68c7db !important;
  box-shadow: inset 0 1px 0 #ffffff0f !important;
  opacity: 1;
}
/* Second action = user places a manual position. Distinct, readable secondary. */
html[data-theme="dark"] .night-ops .staff-map-panel .staff-gps-retry.staff-manual-start {
  background: #1a2634 !important;
  background-image: none !important;
  color: #f0f5fc !important;
  border: 1px solid #5b7188 !important;
  box-shadow: none !important;
  opacity: 1;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-gps-retry {
  -webkit-text-fill-color: currentColor;
  min-height: 50px;
  font-weight: 800;
  text-shadow: none !important;
  overflow-wrap: anywhere;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-gps-retry:not(.staff-manual-start):hover:not(:disabled) {
  background: #1d4555 !important;
  border-color: #a0eff8 !important;
  box-shadow: 0 0 0 1px #75cddb4c !important;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-gps-retry.staff-manual-start:hover:not(:disabled) {
  background: #23364a !important;
  border-color: #93b5ce !important;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-gps-retry:active:not(:disabled) {
  transform: scale(.99);
  filter: brightness(1.12);
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-gps-retry:focus-visible {
  outline: 3px solid #a6edff !important;
  outline-offset: 3px !important;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-gps-retry:disabled {
  opacity: .85 !important;
  color: #d9e6f1 !important;
  background: #22313d !important;
  border-color: #6b8290 !important;
  cursor: wait;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-gps-retry[hidden] {
  display: none !important;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-map-caption {
  color: #c9d9e8 !important;
  background: #1b2634 !important;
  border: 1px solid #2e4153 !important;
  border-radius: 9px;
  padding: 10px 12px;
  line-height: 1.65;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-map-caption b,
html[data-theme="dark"] .night-ops .staff-map-panel .staff-map-caption strong {
  color: #f3f8fc !important;
}
html[data-theme="dark"] .night-ops .staff-map-panel .staff-map-unknown {
  color: #edf4fa !important;
  background: #1c2b3b !important;
  border: 1px dashed #68849b !important;
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] .night-ops .staff-map-panel .staff-gps-retry { transition: none !important; }
}
