/* Network Tools tab (src/js/nt/*.js): the shared pieces. A page's own
   styles go at the end of this file under its section, prefixed .nt-<page>. */

.nt-subnav { margin-bottom: 16px; flex-wrap: wrap; }
.nt-error { background: var(--panel); border: 1px solid var(--critical); border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; }

/* messages */
.nt-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: var(--bg); color: var(--muted); }
.nt-note-ok { color: var(--text); box-shadow: inset 3px 0 0 #2f9e6b; }
.nt-note-error { color: var(--text); box-shadow: inset 3px 0 0 var(--critical); }

/* search, inputs */
.nt-search { margin-left: auto; min-width: 240px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; }
.field input, .field select, .field textarea { font: inherit; font-size: 14px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.7; }

/* status pills (filters) and badges (table cells) */
.nt-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.nt-pill { font: inherit; font-size: 13px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; cursor: pointer; }
.nt-pill.active { border-color: var(--accent); background: rgba(57, 135, 229, 0.15); }
.nt-pill-n { color: var(--muted); margin-left: 4px; }
.nt-badge { display: inline-block; font-size: 12px; white-space: nowrap; border: 1px solid var(--border); border-radius: 999px; padding: 1px 9px; }
/* status by stage: a mark beside the text, never colored text */
.nt-badge.nt-st-complete, .nt-pill.nt-st-complete { box-shadow: inset 3px 0 0 #2f9e6b; }
.nt-badge.nt-st-zia_deployed, .nt-badge.nt-st-zpa_deployed, .nt-pill.nt-st-zia_deployed, .nt-pill.nt-st-zpa_deployed { box-shadow: inset 3px 0 0 var(--accent); }
.nt-badge.nt-st-pilot, .nt-badge.nt-st-pilot_complete, .nt-pill.nt-st-pilot, .nt-pill.nt-st-pilot_complete { box-shadow: inset 3px 0 0 var(--warn); }

/* progress bar (width set from JS through CSSOM, which the CSP allows) */
.nt-progress { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.nt-progress-bar { height: 100%; width: 0; background: var(--accent); border-radius: 4px; }

/* tables */
th.nt-sortable { cursor: pointer; user-select: none; }
th.nt-sortable[aria-sort="ascending"]::after { content: " ↑"; }
th.nt-sortable[aria-sort="descending"]::after { content: " ↓"; }
tr.nt-selected td { background: rgba(57, 135, 229, 0.12); }

/* edit dialogs */
dialog.nt-dialog { width: min(720px, 94vw); }
.nt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.nt-form .nt-wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .nt-form { grid-template-columns: 1fr; } }
