/* "IT" bölməsi (kabinet, yalnız Admin) — bax js/network.js. Rənglər transkript bölməsi ilə eyni palitradadır. */

.net-app { --net-navy: #16345f; --net-navy2: #1f4f8f; --net-teal: #1e9bb8; --net-line: #e3eaf2; --net-soft: #6b7c93; --net-ink: #17283f;
  --net-ok: #12794a; --net-warn: #b26a00; --net-bad: #b3261e; display: block; }

.net-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.net-tab {
  border: 1px solid var(--net-line); background: #fff; color: var(--net-ink); border-radius: 999px; padding: 0.5rem 1.05rem;
  font: 600 0.88rem var(--font-body); cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.net-tab:hover { border-color: var(--net-navy2); }
.net-tab.is-active { background: var(--net-navy); border-color: var(--net-navy); color: #fff; }

.net-status { min-height: 1.3rem; margin: 0 0 0.75rem; font-size: 0.9rem; color: var(--net-soft); }
.net-status:empty { display: none; }
.net-status.is-success { color: var(--net-ok); }
.net-status.is-error { color: var(--net-bad); }

.net-muted { color: var(--net-soft); font-size: 0.85em; }
.net-mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.85em; }
.net-num { text-align: right; white-space: nowrap; }
.net-empty { padding: 1.4rem 1rem; text-align: center; color: var(--net-soft); }

/* agent vəziyyət sətri */
.net-agent-line { padding: 0.65rem 0.9rem; margin-bottom: 0.9rem; border-radius: 0.75rem; background: #eef4fb; border: 1px solid var(--net-line); font-size: 0.9rem; line-height: 1.5; }
.net-agent-line.is-ok { background: #e9f7f0; border-color: #bfe6d2; }
.net-agent-line.is-warn { background: #fff6e5; border-color: #f2d9a6; }
.net-agent-line.is-bad { background: #fdecea; border-color: #f4c3be; }
.net-link { border: 0; background: none; padding: 0; color: var(--net-navy2); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.net-dot { display: inline-block; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #b9c3d0; vertical-align: middle; }
.net-dot.is-on { background: #1fb86b; box-shadow: 0 0 0 3px rgba(31, 184, 107, 0.2); }
.net-dot.is-bad { background: var(--net-bad); }

/* xülasə kartları */
.net-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 0.65rem; margin-bottom: 1rem; }
.net-card { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.75rem 0.9rem; border: 1px solid var(--net-line); border-radius: 0.85rem; background: #fff; }
.net-card-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--net-soft); }
.net-card-value { font-size: 1.55rem; font-weight: 800; color: var(--net-navy); line-height: 1.2; }
.net-card-value small { font-size: 0.45em; font-weight: 600; color: var(--net-soft); }
.net-card.is-ok .net-card-value { color: var(--net-ok); }
.net-card.is-warn .net-card-value { color: var(--net-warn); }
.net-card.is-bad { border-color: #f4c3be; background: #fff5f4; }
.net-card.is-bad .net-card-value { color: var(--net-bad); }

/* panel və qrafik */
.net-panel { padding: 1rem 1.1rem; margin-bottom: 1rem; border: 1px solid var(--net-line); border-radius: 0.9rem; background: #fff; }
.net-panel h4 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--net-navy); }
.net-panel p { margin: 0.3rem 0; line-height: 1.55; font-size: 0.92rem; }
.net-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.3rem 1rem; }
.net-chart svg { width: 100%; height: 150px; display: block; }
.net-grid { stroke: #e9eef5; stroke-width: 1; }
.net-axis { font: 400 9px var(--font-body); fill: #8a98ab; }
.net-line { fill: none; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.net-line--net { stroke: #1f4f8f; }
.net-line--gw { stroke: #1e9bb8; }
.net-loss { fill: rgba(179, 38, 30, 0.35); }
.net-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; margin-top: 0.3rem; font-size: 0.8rem; color: var(--net-soft); }
.net-key { display: inline-block; width: 1.1rem; height: 0.28rem; border-radius: 2px; margin-left: 0.4rem; }
.net-key--net { background: #1f4f8f; }
.net-key--gw { background: #1e9bb8; }
.net-key--loss { background: rgba(179, 38, 30, 0.55); height: 0.7rem; width: 0.3rem; }

/* siyahı */
.net-listbar { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.8rem; }
.net-search { flex: 1 1 240px; max-width: 380px; padding: 0.6rem 0.85rem; border: 1px solid var(--net-line); border-radius: 0.75rem; font: 400 0.92rem var(--font-body); background: #fff; }
.net-search:focus, .net-field input:focus, .net-field textarea:focus { outline: 2px solid var(--net-teal); outline-offset: 1px; border-color: var(--net-teal); }
.net-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.net-chip { border: 1px solid var(--net-line); background: #fff; color: var(--net-ink); border-radius: 999px; padding: 0.38rem 0.8rem; font: 600 0.82rem var(--font-body); cursor: pointer; }
.net-chip span { margin-left: 0.25rem; padding: 0.05rem 0.4rem; border-radius: 999px; background: #eef1f6; color: var(--net-soft); font-size: 0.78em; }
.net-chip.is-active { background: var(--net-navy); border-color: var(--net-navy); color: #fff; }
.net-chip.is-active span { background: rgba(255, 255, 255, 0.2); color: #fff; }

.net-table-wrap { overflow-x: auto; border: 1px solid var(--net-line); border-radius: 0.9rem; background: #fff; }
.net-table { width: 100%; border-collapse: collapse; margin: 0; }
.net-table th { padding: 0.6rem 0.5rem; text-align: left; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--net-soft); border-bottom: 1px solid var(--net-line); white-space: nowrap; }
.net-table td { padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--net-line); font-size: 0.9rem; vertical-align: middle; }
.net-table tr.is-unknown td:first-child { box-shadow: inset 3px 0 0 #e8a33a; }
.net-table tr.is-offline td { color: #7d8aa0; }
.net-actions { white-space: nowrap; text-align: right; }
.net-device { min-width: 150px; }
.net-addr { white-space: nowrap; }
.net-table td:nth-child(4), .net-table td:nth-child(5) { white-space: nowrap; }

.net-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; background: #eef1f6; color: var(--net-soft); font-size: 0.72rem; font-weight: 700; }
.net-badge--ok { background: #e3f6ec; color: var(--net-ok); }
.net-badge--warn { background: #fff0d6; color: var(--net-warn); }

.net-btn { border: 1px solid var(--net-line); background: #fff; color: var(--net-ink); border-radius: 0.6rem; padding: 0.34rem 0.62rem; font: 600 0.82rem var(--font-body); cursor: pointer; }
.net-btn:hover { border-color: var(--net-navy2); background: #f3f7fc; }
.net-x { border: 0; background: none; color: #9aa6b8; font-size: 1.2rem; line-height: 1; padding: 0.2rem 0.45rem; cursor: pointer; border-radius: 0.4rem; }
.net-x:hover { color: var(--net-bad); background: #fdecea; }

/* agent sekməsi */
.net-key-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.net-keybox { margin-top: 0.9rem; padding: 0.8rem 0.9rem; border: 1px dashed #e8a33a; border-radius: 0.75rem; background: #fffaf0; }
.net-keyrow { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.net-keyrow code { flex: 1 1 280px; padding: 0.5rem 0.7rem; border-radius: 0.5rem; background: #fff; border: 1px solid var(--net-line); word-break: break-all; font-size: 0.85rem; }
.net-steps { margin: 0.4rem 0 0.4rem 1.2rem; padding: 0; line-height: 1.6; font-size: 0.92rem; }
.net-steps li { margin-bottom: 0.7rem; }
.net-pre { margin: 0.4rem 0; padding: 0.65rem 0.8rem; border-radius: 0.6rem; background: #0f2540; color: #e6f0fb; font: 400 0.82rem ui-monospace, "Cascadia Mono", Consolas, monospace; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* redaktə pəncərəsi (body-yə qoyulur) */
.net-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(10, 22, 40, 0.62); }
.net-modal[hidden] { display: none; }
.net-modal-card { width: min(480px, 100%); max-height: 94vh; overflow: auto; padding: 1.2rem 1.3rem; border-radius: 1rem; background: #fff; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6); }
.net-modal-card h3 { margin: 0 0 0.2rem; color: var(--net-navy, #16345f); }
.net-field { display: flex; flex-direction: column; gap: 0.25rem; margin: 0.7rem 0; font-size: 0.85rem; font-weight: 600; color: #4a5b73; }
.net-field input, .net-field textarea { padding: 0.55rem 0.7rem; border: 1px solid #e3eaf2; border-radius: 0.6rem; font: 400 0.92rem var(--font-body); }
.net-check { display: flex; gap: 0.5rem; align-items: center; margin: 0.6rem 0; font-size: 0.9rem; cursor: pointer; }
.net-modal-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; }

@media (max-width: 720px) {
  .net-search { max-width: none; }
  .net-card-value { font-size: 1.3rem; }
}

/* Admin üçün xidmət keçidləri (domen, server, poçt) — IT bölməsinin yuxarısında (bax login.html #cabItLinks). */
.it-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; margin: 0.2rem 0 1.2rem; }
.it-links[hidden] { display: none; }
.it-links .it-link, .it-links .it-link:hover, .it-links .it-link * { text-decoration: none; }
.it-link { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 0.9rem; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(0, 34, 63, 0.05); transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.it-link:hover { border-color: var(--cyan-solid); box-shadow: 0 10px 22px -14px rgba(0, 34, 63, 0.35); transform: translateY(-2px); }
.it-link:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.it-link__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 0.8rem; background: rgba(38, 210, 255, 0.16); color: #0a6b8a; }
.it-link__icon svg { width: 1.35rem; height: 1.35rem; }
.it-link__text { display: grid; min-width: 0; line-height: 1.25; }
.it-link__text strong { font-size: 0.98rem; }
.it-link__text small { color: var(--ink-soft); font-size: 0.8rem; }
.it-link__go { margin-left: auto; color: var(--ink-soft); font-size: 1.1rem; }
.it-link:hover .it-link__go { color: var(--navy); }
.it-link__due { display: inline-block; margin-top: 0.35rem; padding: 0.22rem 0.6rem; border-radius: 0.55rem; background: var(--bg-alt); color: var(--ink); font-size: 0.76rem; font-weight: 600; line-height: 1.35; justify-self: start; }
.it-link__due[hidden] { display: none; }
.it-link__due.is-soon { background: #fdf1d3; color: #7a4a00; }
.it-link__due.is-urgent { background: #fde8e6; color: #b42318; }
