/* Parlaiment networks table — the SHARED table of networks every control surface shows.
 * Defined columns, sorting from the column titles with each filter inside its title, a paged
 * footer; the name opens the network's room, "visit" its face; quiet zebra rows and room to breathe. The behaviors are networks.js. Every
 * color, font and spacing is a platform token. */

.nt { display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1; }
.nt-scroll { overflow: auto; min-height: 0; flex: 1; border: 1px solid var(--t-border); border-radius: 8px; background: var(--t-white, #fff); }
.nt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--t-text-sm, 14px); }
.nt-table thead th { position: sticky; background: var(--t-white, #fff); z-index: 1; text-align: left; font-weight: 600; color: var(--t-text-2); }
.nt-heads th { top: 0; padding: 10px 8px 8px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; vertical-align: top; border-bottom: 1px solid var(--t-border); }
.nt-heads .nt-sort { display: block; }
.nt-heads .nt-q, .nt-heads .nt-pick { margin-top: 6px; font-weight: 400; letter-spacing: 0; text-transform: none; min-width: 7em; }
.nt-sort { background: none; border: 0; padding: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; text-transform: inherit; }
.nt-sort:hover { color: var(--t-blue); }
.nt-sort::after { content: "\2195"; margin-inline-start: 5px; color: var(--t-text-3); font-size: 10px; }
th[aria-sort="ascending"] .nt-sort::after { content: "\2191"; color: var(--t-blue); }
th[aria-sort="descending"] .nt-sort::after { content: "\2193"; color: var(--t-blue); }
th[aria-sort] .nt-sort { color: var(--t-blue); }
.nt-q, .nt-pick {
  width: 100%; box-sizing: border-box; padding: 5px 8px; font: inherit; font-size: 13px;
  border: 1px solid var(--t-border); border-radius: 6px; background: var(--t-white, #fff); color: var(--t-text);
}
.nt-q:focus, .nt-pick:focus { outline: 2px solid var(--t-blue-dark, #1d4ed8); outline-offset: 1px; }
.nt-table tbody td { padding: 8px 8px; border-top: 1px solid var(--t-border-light, #eef0f2); vertical-align: middle; }
.nt-table tbody tr:nth-child(even) td { background: var(--t-bg-alt, #f8f9fa); }
.nt-table tbody tr:hover td { background: var(--t-blue-tint, #eef4fc); }
.nt-name { font-weight: 600; color: var(--t-text); }
.nt-name a { color: var(--t-text); text-decoration: none; }
.nt-name a:hover { color: var(--t-blue); text-decoration: underline; }
.nt-schema { font-family: var(--t-font-mono); font-size: 12px; color: var(--t-text-3); }
.nt-chip { display: inline-block; white-space: nowrap; font-size: 11px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--t-border); color: var(--t-text-2); background: var(--t-white, #fff); }
.nt-chip.owner, .nt-chip.both { border-color: var(--t-green, #28a745); color: var(--t-green-dark, #1e7a34); }
.nt-chip.none { border-style: dashed; }
.nt-chip.type { color: var(--t-text-3); }
.nt-chip.running { border-color: var(--t-green, #28a745); color: var(--t-green-dark, #1e7a34); }
.nt-chip.suspended { border-color: var(--t-warning, #d97706); color: var(--t-warning-dark, #92400e); }
.nt-chip.down, .nt-chip.archived { color: var(--t-text-3); }
.nt-chip.running::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--t-green, #28a745); margin-inline-end: 5px; vertical-align: 1px; }
.nt-when { white-space: nowrap; color: var(--t-text-2); font-variant-numeric: tabular-nums; font-size: 13px; }
.nt-open, .nt-acts { white-space: nowrap; }
.nt-open a { margin-inline-end: 8px; }
.nt-open .is-none, .nt-acts .is-none { color: var(--t-text-3); }
.nt-owner { color: var(--t-text-2); }
.nt-table tbody tr.is-marked td { background: var(--t-warning-tint, #fff7e6); box-shadow: inset 3px 0 0 var(--t-warning, #d97706); }
.nt-act { font: inherit; font-size: 12px; padding: 2px 7px; margin-inline-end: 4px; border: 1px solid var(--t-border); border-radius: 6px; background: var(--t-white, #fff); color: var(--t-text); cursor: pointer; }
.nt-act:hover { border-color: var(--t-blue); color: var(--t-blue); }
.nt-act[data-act="delete"] { color: var(--t-error, #b42318); }
.nt-act[data-act="delete"]:hover { border-color: var(--t-error, #b42318); }
.nt-act[data-act="leave"] { color: var(--t-text-2); }
.nt-chip.mark { border-style: dotted; }
.nt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--t-text-sm, 14px); color: var(--t-text-2); }
.nt-test { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nt-chip.test { border-style: dotted; color: var(--t-text-3); }
.nt-pages { display: inline-flex; align-items: center; gap: 8px; }
.nt-pages button { font: inherit; font-size: 13px; padding: 4px 10px; border: 1px solid var(--t-border); border-radius: 6px; background: var(--t-white, #fff); color: var(--t-text); cursor: pointer; }
.nt-pages button:hover:not([disabled]) { color: var(--t-blue); border-color: var(--t-blue); }
.nt-pages button[disabled] { opacity: .45; cursor: not-allowed; }
.nt-per { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--t-border); border-radius: 6px; background: var(--t-white, #fff); color: var(--t-text); }
.nt-empty td, .nt-err td { padding: 18px 12px; color: var(--t-text-2); }
.nt-err td { color: var(--t-error, #b42318); }
@media (max-width: 900px) {
  .nt-table { font-size: 13px; }
  .nt-heads th, .nt-table tbody td { padding: 8px; }
  .nt-heads .nt-q, .nt-heads .nt-pick { min-width: 0; }
}
