.desktop-cockpit .alarm-rules-page {
  display: grid;
  gap: 16px;
  min-width: 0;
  min-height: calc(100vh - 108px);
  padding: 24px;
  border: 1px solid rgba(10, 61, 98, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(42, 78, 105, 0.1);
  color: #183349;
}
.desktop-cockpit .alarm-rules-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 1px solid rgba(10, 61, 98, 0.1); }
.desktop-cockpit .alarm-rules-kicker { display: block; margin-bottom: 4px; color: #1687ad; font-size: 13px; font-weight: 700; }
.desktop-cockpit .alarm-rules-head h2 { margin: 0; color: #102f46; font-size: 26px; line-height: 1.25; }
.desktop-cockpit .alarm-rules-head p { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 6px 0 0; color: #6b7f90; font-size: 14px; }
.desktop-cockpit .alarm-rules-head p span::before { content: "·"; margin-right: 12px; color: #9aabba; }
.desktop-cockpit .alarm-rules-meta { display: grid; gap: 5px; min-width: 250px; color: #718596; font-size: 12px; text-align: right; }
.desktop-cockpit .alarm-rules-intro { padding: 14px 16px; border-left: 4px solid #d8922b; border-radius: 6px; background: #fff8e9; color: #6f4b17; }
.desktop-cockpit .alarm-rules-intro strong { color: #854d0e; }
.desktop-cockpit .alarm-rules-intro p { margin: 5px 0 0; line-height: 1.6; }
.desktop-cockpit .alarm-rules-table-wrap { overflow-x: auto; border: 1px solid #d8e2ea; border-radius: 8px; background: #fff; }
.desktop-cockpit .alarm-rules-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.desktop-cockpit .alarm-rules-table th { padding: 12px 14px; background: #f1f6f9; color: #526a7c; font-size: 12px; text-align: left; }
.desktop-cockpit .alarm-rules-table td { padding: 10px 12px; border-top: 1px solid #e5edf2; vertical-align: middle; }
.desktop-cockpit .alarm-rules-table td:nth-child(1) { width: 19%; }
.desktop-cockpit .alarm-rules-table td:nth-child(2) { width: 19%; }
.desktop-cockpit .alarm-rules-table td:nth-child(3) { width: 22%; }
.desktop-cockpit .alarm-rules-table td:nth-child(4) { width: 36%; }
.desktop-cockpit .alarm-rules-table input { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #cfdce5; border-radius: 6px; background: #fbfdfe; color: #203b4d; font: inherit; }
.desktop-cockpit .alarm-rules-table input:focus { border-color: #3987ad; outline: 3px solid rgba(57, 135, 173, 0.14); }
.desktop-cockpit .alarm-rules-remove { width: 30px; height: 30px; border: 1px solid #fecaca; border-radius: 5px; background: #fff1f2; color: #b42318; font-size: 20px; line-height: 1; cursor: pointer; }
.desktop-cockpit .alarm-rules-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.desktop-cockpit .alarm-rules-actions span { flex: 1 1 260px; color: #718596; font-size: 12px; }
.desktop-cockpit .alarm-rules-actions .btn.primary { margin-left: auto; }
.desktop-cockpit .alarm-rules-readonly { padding: 13px 14px; border-radius: 6px; background: #f1f6f9; color: #64788a; font-size: 13px; }
.desktop-cockpit .alarm-rules-empty, .desktop-cockpit .alarm-rules-loading, .desktop-cockpit .alarm-rules-empty-state, .desktop-cockpit .alarm-rules-error { padding: 34px 18px; color: #718596; text-align: center; }
.desktop-cockpit .alarm-rules-empty-state { align-self: center; justify-self: center; width: min(520px, 100%); border: 1px dashed #c6d7e0; border-radius: 8px; background: #fbfdfe; }
.desktop-cockpit .alarm-rules-empty-state strong { color: #31536b; font-size: 18px; }
.desktop-cockpit .alarm-rules-empty-state p { margin: 8px 0 0; }
.desktop-cockpit .alarm-rules-error { border: 1px solid #fecaca; border-radius: 6px; background: #fff1f2; color: #b42318; }
.desktop-cockpit .alarm-rules-error button { display: block; margin: 12px auto 0; padding: 7px 12px; border: 1px solid #fca5a5; border-radius: 5px; background: #fff; color: #b42318; cursor: pointer; }
@media (max-width: 800px) {
  .desktop-cockpit .alarm-rules-page { padding: 16px; }
  .desktop-cockpit .alarm-rules-head { flex-direction: column; }
  .desktop-cockpit .alarm-rules-meta { min-width: 0; text-align: left; }
  .desktop-cockpit .alarm-rules-actions .btn.primary { margin-left: 0; }
}
