/* Devices View Stylesheet - VMS 4.0 */

.devices-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr 340px;
  gap: 15px;
  height: calc(100vh - 165px);
  overflow: hidden;
}

.nvr-list-card, .cctv-list-card, .cctv-config-card {
  padding: 15px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nvr-cards-list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.nvr-topo-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.nvr-topo-card:hover, .nvr-topo-card.active {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 10px var(--primary-glow);
}

.nvr-topo-head {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: #fff;
  margin-bottom: 6px;
}

.nvr-topo-meta {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* CCTV Table styles are globally inherited from main.css */

/* Config Form */
.config-form-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.form-section-title {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  border-bottom: 1px solid rgba(0,242,254,0.15);
  padding-bottom: 4px;
}

.form-row-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-field.full {
  grid-column: 1 / 3;
}

.form-actions-row {
  display: flex;
  justify-content: flex-end;
}
