.noc-wrap {
  display: grid;
  gap: 14px;
}

.noc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.noc-stat {
  padding: 12px 14px;
  border: 1px solid var(--border-color, #2a2f3a);
  border-radius: 8px;
  background: var(--bg-card, transparent);
}

.noc-stat .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.noc-stat .value {
  font-size: 1.4rem;
  font-weight: 650;
  line-height: 1.1;
}

.noc-stat.is-firing .value { color: var(--status-danger, #ef4444); }
.noc-stat.is-ack .value { color: var(--status-warning, #f59e0b); }
.noc-stat.is-ok .value { color: var(--status-success, #22c55e); }

.noc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.noc-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 120px;
}

.noc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 12px;
  align-items: start;
}

@media (max-width: 960px) {
  .noc-layout {
    grid-template-columns: 1fr;
  }
}

.noc-table-wrap {
  overflow: auto;
  max-height: min(70vh, 720px);
  border: 1px solid var(--border-color, #2a2f3a);
  border-radius: 8px;
}

.noc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.noc-table th,
.noc-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color, #2a2f3a);
  text-align: left;
  vertical-align: top;
}

.noc-table th {
  position: sticky;
  top: 0;
  background: var(--bg-elevated, #151922);
  z-index: 1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.noc-table tbody tr {
  cursor: pointer;
}

.noc-table tbody tr:hover,
.noc-table tbody tr.is-selected {
  background: rgba(255, 215, 0, 0.06);
}

.noc-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.noc-pill.status-firing { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.noc-pill.status-acknowledged { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.noc-pill.status-resolved { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.noc-pill.status-pending { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

.noc-pill.sev-critical { color: #f87171; }
.noc-pill.sev-high { color: #fb923c; }
.noc-pill.sev-warning { color: #fbbf24; }
.noc-pill.sev-info { color: #94a3b8; }

.noc-detail {
  border: 1px solid var(--border-color, #2a2f3a);
  border-radius: 8px;
  padding: 14px;
  min-height: 240px;
}

.noc-detail h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.noc-detail .meta {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.noc-detail .meta strong {
  color: var(--text-primary, inherit);
  font-weight: 600;
}

.noc-detail pre {
  margin: 0;
  padding: 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  overflow: auto;
  font-size: 12px;
  max-height: 220px;
}

.noc-evidence {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.noc-evidence a {
  color: var(--accent-primary, #ffd700);
}
