/* Water Connect — Flotte & carte machines */

.wt-fleet-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1rem;
  min-height: 520px;
}

@media (max-width: 992px) {
  .wt-fleet-layout {
    grid-template-columns: 1fr;
  }
}

.wt-fleet-map-wrap {
  position: relative;
  min-height: 520px;
}

.wt-fleet-map {
  height: 520px;
  border-radius: var(--wt-radius);
  border: 1px solid var(--wt-border);
  overflow: hidden;
  background: var(--wt-surface3);
}

.wt-fleet-legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.wt-fleet-legend-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wt-text-muted);
  margin-bottom: 0.4rem;
}

.wt-fleet-legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.wt-fleet-legend-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--wt-text);
}

.wt-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.wt-legend-low { background: #1D9E75; }
.wt-legend-medium { background: var(--wt-accent); }
.wt-legend-high { background: #EF9F27; }
.wt-legend-critical { background: #E24B4A; }
.wt-legend-offline { background: #64748b; }

.wt-list-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.wt-fleet-div-icon {
  background: transparent !important;
  border: none !important;
}

.wt-map-marker {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wt-map-marker span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--marker-color, #1D9E75);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.wt-map-marker.wt-marker-pulse span {
  animation: wt-marker-pulse 1.6s ease-out infinite;
}

@keyframes wt-marker-pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 75, 74, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(226, 75, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 75, 74, 0); }
}

.wt-fleet-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 520px;
  overflow-y: auto;
}

.wt-fleet-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .wt-fleet-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wt-fleet-kpi {
  background: var(--wt-surface3);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  padding: 0.85rem 1rem;
}

.wt-fleet-kpi-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wt-text-muted);
  margin-bottom: 0.25rem;
}

.wt-fleet-kpi-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wt-text);
}

.wt-machine-card {
  background: var(--wt-surface3);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--trans);
}

.wt-machine-card:hover,
.wt-machine-card.active {
  border-color: var(--wt-accent);
  box-shadow: var(--wt-glow);
}

.wt-machine-card.risk-critical { border-color: rgba(226, 75, 74, 0.5); }
.wt-machine-card.risk-high { border-color: rgba(239, 159, 39, 0.45); }

.wt-health-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.wt-health-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.wt-health-low { background: var(--wt-success); }
.wt-health-medium { background: var(--wt-warning); }
.wt-health-high { background: #e67e22; }
.wt-health-critical { background: var(--wt-danger); }

.wt-prevention-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.wt-prevention-item {
  background: var(--wt-surface3);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.35rem;
}

.wt-prevention-item.priority-critical { border-color: rgba(226, 75, 74, 0.45); }
.wt-prevention-item.priority-high { border-color: rgba(239, 159, 39, 0.4); }

.wt-prevention-meta {
  font-size: 0.75rem;
  color: var(--wt-text-muted);
}

.wt-fleet-marker-popup {
  font-size: 0.85rem;
  line-height: 1.5;
  min-width: 180px;
}

.wt-client-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .wt-client-hero {
    grid-template-columns: 1fr;
  }
}

.wt-panne-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.wt-panne-card {
  transition: var(--trans);
}

.wt-panne-reason {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--wt-radius-sm);
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--wt-danger);
}

.wt-client-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
