/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}:root{color-scheme:light;--page: #f9f9f7;--surface-1: #fcfcfb;--text-primary: #0b0b0b;--text-secondary: #52514e;--muted: #898781;--grid: #e1e0d9;--baseline: #c3c2b7;--border: rgba(11, 11, 11, .1);--series-1: #2a78d6;--series-2: #eb6834;--status-good: #0ca30c;--status-warning: #fab219;--status-critical: #d03b3b;--accent: #2a78d6}@media (prefers-color-scheme: dark){:root{color-scheme:dark;--page: #0d0d0d;--surface-1: #1a1a19;--text-primary: #ffffff;--text-secondary: #c3c2b7;--muted: #898781;--grid: #2c2c2a;--baseline: #383835;--border: rgba(255, 255, 255, .1);--series-1: #3987e5;--series-2: #d95926;--accent: #3987e5}}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;background:var(--page);color:var(--text-primary);font-size:14px;line-height:1.5}a{color:var(--accent);text-decoration:none}.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 24px;border-bottom:1px solid var(--border);background:var(--surface-1)}.topbar h1{font-size:16px;margin:0}.topnav{display:flex;gap:4px;margin-right:auto;margin-left:24px}.topnav a{padding:4px 10px;border-radius:6px;color:var(--text-secondary);border:1px solid transparent}.topnav a.active{border-color:var(--baseline);color:var(--text-primary)}.nav-badge{display:inline-block;margin-left:6px;padding:0 6px;border-radius:999px;background:var(--status-critical);color:#fff;font-size:11px;font-weight:600;line-height:16px;vertical-align:1px}.container{max-width:1100px;margin:0 auto;padding:24px}.card{background:var(--surface-1);border:1px solid var(--border);border-radius:8px;padding:16px;margin-bottom:16px}.card h2{font-size:14px;font-weight:600;margin:0 0 12px;color:var(--text-secondary)}table{width:100%;border-collapse:collapse}th{text-align:left;font-weight:600;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em;padding:8px 12px;border-bottom:1px solid var(--grid)}td{padding:10px 12px;border-bottom:1px solid var(--grid);color:var(--text-primary)}tr.clickable{cursor:pointer}tr.clickable:hover td{background:color-mix(in srgb,var(--accent) 6%,transparent)}.numeric{font-variant-numeric:tabular-nums}.status{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--text-secondary)}.status .dot{width:8px;height:8px;border-radius:50%;flex:none}.status.online .dot{background:var(--status-good)}.status.stale .dot{background:var(--status-warning)}.status.offline .dot{background:var(--muted)}.status.up .dot{background:var(--status-good)}.status.down .dot{background:var(--status-critical)}.status.pending .dot{background:var(--status-warning)}.status.unknown .dot,.status.disabled .dot{background:var(--muted)}.status.unassigned .dot{background:var(--status-warning)}button{font:inherit;padding:8px 14px;border-radius:6px;border:1px solid var(--border);background:var(--accent);color:#fff;cursor:pointer}button.secondary{background:transparent;color:var(--text-primary)}button:disabled{opacity:.55;cursor:default}input,textarea,select{font:inherit;padding:8px 10px;border-radius:6px;border:1px solid var(--baseline);background:var(--surface-1);color:var(--text-primary);width:100%;resize:vertical}select{width:auto}.row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.row-actions button{padding:4px 10px;font-size:12px}.edit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:12px}.edit-grid label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.edit-grid .edit-notes{grid-column:1 / -1}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center}.login-box{width:320px;display:flex;flex-direction:column;gap:12px}.error{color:var(--status-critical);font-size:13px}.detail-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.meta-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px 24px}.meta-grid .label{font-size:12px;color:var(--muted)}.charts{display:grid;grid-template-columns:1fr;gap:16px}@media (min-width: 900px){.charts{grid-template-columns:1fr 1fr}}.range-picker{display:inline-flex;gap:4px}.range-picker button{background:transparent;color:var(--text-secondary);border:1px solid transparent;padding:4px 10px}.range-picker button.active{border-color:var(--baseline);color:var(--text-primary)}.tabs{display:flex;gap:4px;margin-bottom:12px}.tabs button{background:transparent;color:var(--text-secondary);border:1px solid transparent}.tabs button.active{border-color:var(--baseline);color:var(--text-primary)}.page-tabs{margin:20px 0 16px;border-bottom:1px solid var(--baseline);padding-bottom:8px;flex-wrap:wrap}.page-tabs button{padding:6px 12px}.scroll-table{max-height:420px;overflow-y:auto}.filter-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:12px}.filter-bar input[type=search]{width:240px}.filter-bar .muted{font-size:12px;margin-left:auto}.filter-bar button{padding:6px 12px;font-size:12px}.filter-bar .filter-check{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-secondary);white-space:nowrap;cursor:pointer}.filter-bar .filter-check input[type=checkbox]{width:auto}th.sortable{cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}th.sortable:hover{color:var(--text-primary)}.muted{color:var(--muted)}.tile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.tile{border:1px solid var(--border);border-radius:8px;padding:10px 12px}.tile .label{font-size:12px;color:var(--muted)}.tile .value{font-size:20px;font-weight:600}.tile .value.alert:after{content:" ⚠"}.tile .value.alert,.backup-old{color:var(--status-critical)}.level{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--text-secondary);white-space:nowrap}.level .dot{width:8px;height:8px;border-radius:50%;flex:none}.level.critical .dot{background:var(--status-critical)}.level.warning .dot{background:var(--status-warning)}.level.info .dot{background:var(--muted)}tr.alert-ack td{opacity:.55}.alert-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--status-critical);margin-left:6px;vertical-align:1px}.rule-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--grid)}.rule-toggle{display:flex;align-items:flex-start;gap:10px;cursor:pointer;max-width:380px}.rule-toggle input[type=checkbox]{width:auto;margin-top:3px}.rule-fields{display:flex;gap:12px;flex-wrap:wrap}.rule-fields label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.rule-fields input{width:130px}.rule-fields .field-toggle input[type=checkbox]{width:auto;margin-top:8px}.rule-actions{display:flex;align-items:center;gap:12px;padding-top:12px}
