/* in2tek netportal: tilføjelser oven på smartcloud styles.css + fluent.css */
.inline { display: inline; margin: 0; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 10px; }
.mb { margin-bottom: 16px; }
.narrow { max-width: 680px; }
.btnlink { display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.ghost .ic, .primary .ic { width: 16px; height: 16px; vertical-align: -3px; }
.cmd-i .ic, .ni .ic, .rl-i .ic, .ph-icon .ic { width: 1em; height: 1em; }
.ph-icon .ic { width: 32px; height: 32px; stroke-width: 1.1; }
.ni .ic, .cmd-i .ic { width: 20px; height: 20px; }
.rl-i .ic { width: 18px; height: 18px; }
.flash { margin: 0 0 12px; }
.note.info { background: var(--accent-soft); color: var(--fg); border-left: 4px solid var(--accent); display: flex; align-items: center; gap: 8px; }
.ok-t { color: var(--ok); font-weight: 600; }
.warn-t { color: var(--warn); font-weight: 600; }
.bad-t { color: var(--bad); font-weight: 600; }
.tiles4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { text-decoration: none !important; color: var(--fg); }
.tile-bad .tile-num { color: var(--bad); }
.tile-warn .tile-num { color: var(--warn); }
.clickrow { cursor: pointer; }
.devtable td { white-space: normal; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv4 { grid-template-columns: repeat(4, max-content 1fr); }
.sechead { margin: 0 0 8px; }
h2.sechead { margin-top: 4px; }
.aclgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; margin-bottom: 20px; }
.wanrow td { background: var(--accent-soft); }
.chips .search { height: 28px; min-height: 28px; max-width: 260px; }
.login-brand { font-size: 18px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.jumpbad { color: #ff99a4 !important; font-weight: 600; }

/* spinner */
.spin::before, span.spin:empty { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -1px; }
.st.spin::before { background: none; }
@keyframes sp { to { transform: rotate(360deg); } }

/* oppetids-tidslinje */
.tl { display: flex; gap: 1px; height: 22px; margin-top: 4px; }
.tl-b { flex: 1; border-radius: 1px; background: var(--surface3); }
.tl-b.ok { background: var(--ok); }
.tl-b.warn { background: var(--warn); }
.tl-b.bad { background: var(--bad); }
.tl-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }

/* konfiguration og diff */
pre.cfg { background: var(--surface); box-shadow: var(--shadow2); border-radius: 4px; padding: 12px 16px; overflow: auto; max-height: 75vh; font: 12.5px/1.45 var(--mono); white-space: pre; }
pre.diff span { display: block; }
pre.diff .add { background: var(--ok-soft); color: var(--ok); }
pre.diff .del { background: var(--bad-soft); color: var(--bad); }
pre.diff .hunk { color: var(--accent); }

/* dialoger */
dialog.dlg { border: 0; border-radius: 8px; box-shadow: var(--shadow16); padding: 24px; background: var(--surface); color: var(--fg); width: min(560px, calc(100vw - 32px)); }
dialog.dlg::backdrop { background: rgba(0, 0, 0, .35); }
dialog.dlg h2 { margin: 0 0 16px; font-size: 18px; }
.dlg-actions { display: flex; gap: 8px; margin-top: 16px; }
.formgrid { grid-template-columns: max-content minmax(0, 1fr); }
.formgrid input, .formgrid select { width: 100%; }
.thumb { max-height: 48px; max-width: 160px; }
.devphoto { max-width: 100%; max-height: 260px; display: block; margin: 0 auto 12px; border-radius: 4px; }

/* frontvisning (SVG) */
.fp-wrap { overflow-x: auto; }
.fp { display: block; max-width: 1100px; font-family: var(--font); }
.fp-chassis { fill: #2b3640; stroke: #1a2128; stroke-width: 1.5; }
.fp-bezel { fill: #36434f; stroke: #46545f; }
.fp-logo { fill: #ffffff; font-size: 20px; font-weight: 700; letter-spacing: .02em; }
.fp-model { fill: #c9d3dc; font-size: 12px; font-weight: 600; }
.fp-ledl { fill: #c9d3dc; font-size: 9px; }
.fp-glabel { fill: #c9d3dc; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.fp-gline { stroke: #6b7a86; stroke-width: 1; }
.fp-cage { fill: #11171c; stroke: #8796a3; stroke-width: 1; }
.fp-port .fp-led { fill: #3a454e; }
.fp-port.up .fp-led { fill: #3fd06a; }
.fp-port.up .fp-cage { stroke: #3fd06a; }
.fp-port.admin .fp-cage { fill: #0b0f12; stroke: #4a555e; stroke-dasharray: 2 2; }
.fp-port.wan .fp-cage { stroke: #479ef5; stroke-width: 2.5; }
.fp-port:hover .fp-cage { stroke: #fff; }
.fp-plabel { fill: #c9d3dc; font-size: 9.5px; }
.fp-plabel.wan { fill: #8cc4ff; font-weight: 700; }
.fp-led.sys { fill: #3fd06a; }
.fp-ant rect { fill: #11171c; stroke: #8796a3; }
.fp-ant.up .fp-led { fill: #3fd06a; }
.fp-ant .fp-led { fill: #3a454e; }
.fp-ant.wan rect { stroke: #479ef5; stroke-width: 2; }
.fp-legend { fill: var(--muted); font-size: 11px; }

@media (max-width: 900px) {
  .tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv4 { grid-template-columns: max-content 1fr; }
  .formgrid { grid-template-columns: minmax(0, 1fr); }
}
