/* screens-netmon-events.css · NETMON กฎ trap/syslog + การรับต่อ poller (M15 lane N2 · 07-space-netmon.md §3.1 §9 · DESIGN-TOKENS.md)
   สีจากตัวแปรของชุดสีเท่านั้น · ตัวอักษร ≥ 12px · เป้ากด ≥ 24px · ไม่มี style ในหน้า (CSP) · จอ 375px ไม่เลื่อนแนวนอนทั้งหน้า */

.nm-ev-top { align-items: flex-start; }
.nm-ev-top .nm-lede { flex: 1 1 320px; margin: 0; }
.nm-ev-match code, .nm-ev-code, .nm input[name="match_text"], .nm input[name="match_oid"], .nm textarea[name="sample"] {
  font-family: var(--font-mono); font-size: 12.5px;
}
.nm-ev-match code, .nm-ev-code { background: var(--surf2); color: var(--ink); padding: 1px 4px; border-radius: var(--r-sm); overflow-wrap: anywhere; word-break: break-word; }
.nm-ev-code { display: inline-block; max-width: 100%; white-space: pre-wrap; }
/* หัวแถวของตารางกฎเป็น nowrap (screens-core) · สิ่งที่กฎข้อความจับตัดบรรทัดได้ ไม่ดันตารางให้กว้าง */
.nm-table th[scope="row"] .nm-ev-match { display: inline-block; white-space: normal; max-width: 46ch; line-height: 1.5; }
.nm-table th[scope="row"] .nm-ev-match code { word-break: break-all; }
.nm-ev-kinds { margin: 0 0 8px; }
/* ฟอร์มเพิ่มกฎ: สองกลุ่ม · ช่องเรียงเป็นตาราง (คำอธิบายใต้ช่อง ไม่ดันแถวเหลื่อม) */
.nm-ev-rform { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 0; min-width: 0; }
.nm-ev-fs { margin: 0; padding: 12px 14px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); min-width: 0; }
.nm-ev-fs legend { padding: 0 6px; font-weight: 600; font-size: 14px; color: var(--ink); }
.nm-ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; align-items: start; }
.nm-ev-grid > label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; min-width: 0; }
.nm-ev-grid > .nm-check { flex-direction: row; align-items: center; gap: 8px; min-height: 28px; }
.nm-ev-grid .nm-ev-full, .nm-ev-grid > .nm-ev-err { grid-column: 1 / -1; }
.nm-ev-grid input[type="text"], .nm-ev-grid input[type="number"], .nm-ev-grid select, .nm-ev-grid textarea { width: 100%; }
.nm-ev-err { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; }
.nm-ev-kinds a.btn { min-height: 32px; }
.nm-ev-list { list-style: none; margin: 0; padding: 0; }
.nm-ev-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nm-ev-item:last-child { border-bottom: 0; }
.nm-ev-who { flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.nm-ev-who p { margin: 4px 0 0; }
.nm-ev-form { flex: 1 1 420px; margin: 0; }
.nm-ev-codes { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .nm-ev-form > label { flex: 1 1 100%; }
}
