html,
body {
  overflow-x: clip;
}

#equipment-upgraded-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

#equipment-upgraded-grid > * {
  opacity: 1 !important;
  transform: none !important;
}

#equipment-system-section > div > :first-child {
  opacity: 1 !important;
  transform: none !important;
}

.oek-scada-equipment-card > div:first-child {
  background: #060e1e;
}

.oek-scada-panel-image {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.oek-scada-panel-image img {
  display: block;
  width: 100%;
  height: auto;
}

.oek-scada-panel-image span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  border-radius: 8px;
  color: #dbeafe;
  background: rgba(6, 14, 30, 0.82);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (min-width: 640px) {
  #equipment-upgraded-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #equipment-upgraded-grid .oek-scada-equipment-card {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  #equipment-upgraded-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #equipment-upgraded-grid .oek-scada-equipment-card {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  #equipment-upgraded-grid .oek-scada-equipment-card > div:first-child {
    flex: 1 1 auto;
    min-height: 0;
    height: auto !important;
  }

  #equipment-upgraded-grid .oek-scada-equipment-card > div:first-child img {
    height: 100%;
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oek-scada-equipment-card img {
    transition: none !important;
  }
}
