/* Network log panel - shared by index.html (footer panel) and network.html (full page).
   Dark palette matching the dashboard's footer chrome; --tl-purple comes from
   /portal-header.css, which both pages load first. */
.live-logs-indicator--on { background: #2ecc71; box-shadow: 0 0 6px #2ecc71; }
.live-logs-indicator--wait { background: #f5a623; }
.live-logs-count { font-weight: 500; color: #7d8aa3; font-size: 12px; }

/* Network log (Chrome DevTools Protocol) inside the footer panel. Same dark
   palette as the header; the table is a fixed-height scroller so a chatty app
   never grows the page. */
.live-logs-body.netlog-body { padding: 0; text-align: left; font-style: normal; }
.netlog-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 8px 12px; background: #16213e; border-bottom: 1px solid #0f3460; font-size: 12px; color: #a8b2c1;
}
.netlog-toolbar .grow { flex: 1; min-width: 120px; }
.netlog-state { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.netlog-target { color: #7d8aa3; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.netlog-btn {
  border: 1px solid #3b3e4c; background: #262832; color: #dfe2ee; border-radius: 8px;
  padding: 5px 10px; font-size: 12px; cursor: pointer; font-family: inherit; transition: filter .15s;
}
.netlog-btn:hover { filter: brightness(1.2); }
.netlog-btn:disabled { opacity: .5; cursor: not-allowed; }
.netlog-btn--primary { background: var(--tl-purple); border-color: var(--tl-purple); color: #fff; }
.netlog-filter {
  padding: 5px 9px; border-radius: 8px; font-size: 12px; font-family: inherit; min-width: 160px;
  background: #262832; color: #dfe2ee; border: 1px solid #3b3e4c;
}
.netlog-filter:focus { outline: none; border-color: var(--tl-purple); }
.netlog-hint { padding: 14px 16px; color: #a8b2c1; font-size: 12px; line-height: 1.5; }
.netlog-hint code { background: #0f1a33; padding: 1px 5px; border-radius: 4px; color: #dfe2ee; }
.netlog-scroll { max-height: 320px; overflow: auto; background: #12131c; }
.netlog-table { width: 100%; border-collapse: collapse; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.netlog-table th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 600; font-size: 11px; letter-spacing: .3px;
  color: #7d8aa3; background: #1a1a2e; padding: 6px 8px; border-bottom: 1px solid #0f3460; white-space: nowrap;
}
.netlog-table td { padding: 4px 8px; border-bottom: 1px solid #1f2233; color: #c9cede; white-space: nowrap; vertical-align: top; }
.netlog-table td.url { white-space: normal; word-break: break-all; max-width: 520px; }
.netlog-table td.url .host { color: #7d8aa3; }
.netlog-table td.num { text-align: right; color: #9aa3b8; }
.netlog-table tr { cursor: pointer; }
.netlog-table tr:hover td { background: #1b1d2b; }
.netlog-table tr.sel td { background: #24203b; }
.netlog-table tr.err td { color: #ff8a80; }
.netlog-table tr.pending td { color: #7d8aa3; font-style: italic; }
.st-2 { color: #2ecc71; } .st-3 { color: #f5a623; } .st-4, .st-5 { color: #ff8a80; }
.netlog-detail { border-top: 1px solid #0f3460; background: #0f1a33; max-height: 300px; overflow: auto; font-size: 12px; }
.netlog-detail-head { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #16213e; color: #a8b2c1; position: sticky; top: 0; }
.netlog-detail-head .grow { flex: 1; word-break: break-all; color: #dfe2ee; font-family: ui-monospace, Menlo, Consolas, monospace; }
.netlog-detail h4 { margin: 10px 12px 4px; font-size: 11px; letter-spacing: .4px; color: #7d8aa3; text-transform: uppercase; }
.netlog-detail pre {
  margin: 0 12px 8px; padding: 8px 10px; background: #12131c; border-radius: 6px; color: #c9cede;
  font-size: 11px; line-height: 1.45; white-space: pre-wrap; word-break: break-all; max-height: 200px; overflow: auto;
}
.netlog-detail .kv { color: #c9cede; } .netlog-detail .kv b { color: #9fb4ff; font-weight: 600; }
.netlog-note { color: #7d8aa3; font-style: italic; }
