/* alerts screen styles (team round, 23.11.2026). Loaded after screens.css; prefix screen-only classes.
   Replaces in screens.css (W3-A can delete): .alerts-tbl .al-main, .rules-tbl .rl-main, .rules-tbl tr.rule-off, .src-link, .rule-when. */
.al-tbl, .al-rtbl, .al-htbl { table-layout: fixed; width: 100%; }
.al-tbl td, .al-rtbl td, .al-htbl td { white-space: normal; vertical-align: middle; padding-top: 8px; padding-bottom: 8px; }
/* Active: Alert | Source | Since | State | Actions */
.al-tbl th:nth-child(2), .al-tbl td:nth-child(2) { width: 150px; }
.al-tbl th:nth-child(3), .al-tbl td:nth-child(3) { width: 108px; }
.al-tbl td.al-since { white-space: nowrap; }
.al-tbl th:nth-child(4), .al-tbl td:nth-child(4) { width: 132px; }
.al-tbl th:nth-child(5), .al-tbl td:nth-child(5) { width: 298px; padding-left: 4px; }
/* Rules: On | Rule | Severity | Notifies | Channels | Edit */
.al-rtbl th:nth-child(1), .al-rtbl td:nth-child(1) { width: 60px; }
.al-rtbl th:nth-child(3), .al-rtbl td:nth-child(3) { width: 104px; }
.al-rtbl th:nth-child(4), .al-rtbl td:nth-child(4) { width: 140px; }
.al-rtbl th:nth-child(5), .al-rtbl td:nth-child(5) { width: 200px; }
.al-rtbl th:nth-child(6), .al-rtbl td:nth-child(6) { width: 84px; }
.al-rtbl tr.al-off td:nth-child(n+2) { opacity: 0.5; }
/* History: Alert | Source | Resolved | Duration | Resolved By | Note */
.al-htbl th:nth-child(2), .al-htbl td:nth-child(2) { width: 170px; }
.al-htbl th:nth-child(3), .al-htbl td:nth-child(3) { width: 140px; }
.al-htbl th:nth-child(4), .al-htbl td:nth-child(4) { width: 96px; }
.al-htbl th:nth-child(5), .al-htbl td:nth-child(5) { width: 150px; }
.al-htbl th:nth-child(6), .al-htbl td:nth-child(6) { width: 26%; }

.al-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.al-text { min-width: 0; flex: 1; }
.al-title { font-weight: 600; overflow-wrap: break-word; }
.al-detail { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
.al-tbl .al-detail { display: block; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: break-word; } /* Active: the full message wraps, never cut (W4 closing G2 #6) */
.al-htbl .al-detail { font-size: var(--fs-sm); color: var(--text-secondary); margin-top: 0; }
.al-sub { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.4; margin-top: 2px; }
.al-changed { font-size: var(--fs-xs); color: var(--warning); margin-top: 2px; }
.al-src { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; color: var(--text-primary); white-space: nowrap; }
.al-src svg { width: 12px; height: 12px; color: var(--text-muted); flex: none; }
.al-src:hover svg { color: var(--accent); }
.al-tbl .actions { flex-wrap: nowrap; justify-content: flex-start; }
.al-rtbl .actions { flex-wrap: nowrap; justify-content: flex-end; }
.al-when { font-size: var(--fs-sm); color: var(--text-secondary); line-height: 1.5; }
.al-rv { width: 120px; }
.card.al-empty { padding: 0; }
