/* Enterprise-lag (Fluent 2-designsprog): neutrale flader, 4px radius, tætte tabeller, kommandolinjer.
   Indlæses efter styles.css og overstyrer tokens og basiskomponenter. */
:root {
  --bg: #faf9f8; --surface: #ffffff; --surface2: #f5f5f5; --surface3: #ebebeb; --fg: #242424; --muted: #616161; --line: #e0e0e0; --line-strong: #d1d1d1;
  --accent: #0f6cbd; --accent-hover: #115ea3; --accent-fg: #ffffff; --accent-soft: #ebf3fc;
  --ok: #107c10; --ok-soft: #f1faf1; --warn: #bc4b09; --warn-soft: #fff9f5; --bad: #c50f1f; --bad-soft: #fdf3f4;
  --header-bg: #1b1a19; --header-fg: #ffffff; --header-input: #3b3a39;
  --nav-w: 232px; --nav-rail: 48px; --top-h: 40px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  --shadow2: 0 1px 2px rgba(0,0,0,.14), 0 0 2px rgba(0,0,0,.12);
  --shadow8: 0 4px 8px rgba(0,0,0,.14), 0 0 2px rgba(0,0,0,.12);
  --shadow16: 0 8px 16px rgba(0,0,0,.14), 0 0 2px rgba(0,0,0,.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1f1f; --surface: #292929; --surface2: #333333; --surface3: #3d3d3d; --fg: #ffffff; --muted: #adadad; --line: #3d3d3d; --line-strong: #525252;
    --accent: #479ef5; --accent-hover: #62abf5; --accent-fg: #0a0a0a; --accent-soft: #0e2a47;
    --ok: #54b054; --ok-soft: #052505; --warn: #faa06b; --warn-soft: #411200; --bad: #f1707b; --bad-soft: #3b0509;
    --header-bg: #0a0a0a; --header-input: #292929;
  }
}
body { font: 14px/20px var(--font); }
h1 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: 0; margin: 0; }
h2 { font-size: 16px; line-height: 22px; font-weight: 600; }
h3 { font-size: 14px; line-height: 20px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--fg); margin: 0 0 8px; }
.lede { font-size: 14px; }

/* ---------- topbjælke ---------- */
.top { height: var(--top-h); background: var(--header-bg); color: var(--header-fg); border-bottom: 0; gap: 8px; padding: 0 8px; }
.top a, .top button { color: var(--header-fg); }
.navtoggle { display: inline-grid; place-items: center; width: 40px; height: 40px; background: none; border: 0; font-size: 18px; }
.navtoggle:hover, .topbtn:hover { background: rgba(255,255,255,.1); }
.brand { font-size: 15px; font-weight: 600; gap: 8px; color: var(--header-fg); padding: 0 8px; white-space: nowrap; }
.mark { width: 16px; height: 16px; border-radius: 3px; background: linear-gradient(135deg, #479ef5 0 50%, #54b054 50% 100%); }
.gsearch { margin: 0 auto; max-width: 560px; }
.gsearch input { height: 28px; padding: 4px 10px 4px 32px; background: var(--header-input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='%23c8c8c8'%3E%3Cpath d='M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E") no-repeat 10px center;
  border: 1px solid transparent; border-radius: 4px; color: #fff; font-size: 13px; }
.gsearch input::placeholder { color: #c8c8c8; }
.gsearch input:focus { background-color: var(--surface); color: var(--fg); border-color: var(--accent); }
.gresults { color: var(--fg); border-radius: 4px; box-shadow: var(--shadow16); }
.gresults button, .gresults a { color: var(--fg); }
.ghit.on { background: var(--surface2); }
.who { gap: 0; margin-left: 0; position: relative; }
.topbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; background: none; border: 0; font-size: 13px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: #0f6cbd; color: #fff; font-size: 12px; font-weight: 600; flex: none; }
.who-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 15px; }
.who-text small { font-size: 11px; opacity: .75; }
.usermenu { position: absolute; right: 0; top: calc(var(--top-h) + 2px); width: 280px; background: var(--surface); color: var(--fg); border-radius: 4px;
  box-shadow: var(--shadow16); padding: 16px; z-index: 30; }
.usermenu .avatar { width: 48px; height: 48px; font-size: 18px; }
.usermenu .um-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.usermenu a, .usermenu button { color: var(--accent); }
.um-actions { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }

/* ---------- venstremenu ---------- */
.body { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
.shell.rail .body { grid-template-columns: var(--nav-rail) minmax(0, 1fr); }
.side { top: var(--top-h); height: calc(100vh - var(--top-h)); padding: 6px 0 16px; gap: 0; background: var(--surface); border-right: 1px solid var(--line); }
.sitem, .sitem.parent { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-radius: 0; font-weight: 400; color: var(--fg); position: relative; white-space: nowrap; }
.sitem:hover, .sitem.parent:hover { background: var(--surface2); }
.sitem.on { background: var(--surface2); color: var(--fg); font-weight: 600; }
.sitem.on::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent); }
.sitem.top { font-weight: 400; }
.sitem.top.on { font-weight: 600; }
.ni { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 20px; color: var(--accent); flex: none; }
.ssec { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.shead { font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--muted); padding: 4px 12px; border-radius: 0; height: 28px; }
.shead:hover { background: none; color: var(--fg); }
.schildren { margin: 0; border-left: 0; padding-left: 0; }
.sitem.child { height: 32px; padding-left: 44px; font-size: 13px; }
.sitem.child.on { background: var(--surface2); }
.sitem .chev { margin-left: auto; color: var(--muted); }
.sitem.parent .chev { order: 3; }
.foldernav { margin: 0 0 4px 44px; border-left: 1px solid var(--line); }
.fitem { border-radius: 0; }
.fitem.on { background: var(--surface2); }
.fitem.on .flabel { color: var(--fg); }
.shell.rail .side .slabel, .shell.rail .side .shead, .shell.rail .side .chev, .shell.rail .side .schildren, .shell.rail .side .foldernav { display: none; }
.shell.rail .side .sitem { justify-content: center; padding: 0; }
.shell.rail .ssec { margin-top: 4px; padding-top: 4px; }

/* ---------- indhold ---------- */
.main { max-width: none; padding: 16px 24px 48px; }
.ph { margin: -16px -24px 16px; padding: 8px 24px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.ph-crumbs { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 4px; min-height: 18px; }
.ph-crumb { display: inline-flex; gap: 4px; align-items: center; }
.ph-crumb a { color: var(--accent); }
.ph-sep { color: var(--muted); }
.ph-title { display: flex; gap: 12px; align-items: center; padding: 4px 0 8px; }
.ph-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; font-size: 32px; color: var(--accent); flex: none; }
.ph-sub { font-size: 12px; color: var(--muted); }
.cmdbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 4px 0 6px; margin: 0 -8px; }
.cmd { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 8px; background: none; border: 0; border-radius: 4px; color: var(--fg); font-size: 14px; white-space: nowrap; }
.cmd:hover:not(:disabled) { background: var(--surface2); text-decoration: none; }
.cmd:disabled { color: var(--muted); cursor: default; }
.cmd-i { display: inline-grid; place-items: center; font-size: 20px; color: var(--accent); }
.cmd:disabled .cmd-i { color: var(--muted); }
.cmd.danger .cmd-i { color: var(--bad); }
.cmd-sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }

/* knapper og felter (Fluent) */
.primary { border-radius: 4px; padding: 5px 16px; min-height: 32px; font-weight: 600; background: var(--accent); }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.ghost { border-radius: 4px; padding: 5px 12px; min-height: 32px; border-color: var(--line-strong); background: var(--surface); font-weight: 600; }
.ghost.sm, button.sm, .primary.sm { min-height: 24px; padding: 2px 8px; font-size: 12px; }
input, select, textarea { border-radius: 4px; border-color: var(--line-strong); border-bottom-color: #616161; min-height: 32px; padding: 5px 10px; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom: 2px solid var(--accent); }

/* kort, fliser, tabeller */
.card, .cap, .capcount, .tile, .pcard, .relcard, .dhcpbox { border-radius: 4px; box-shadow: var(--shadow2); border-color: transparent; }
.tile.on { box-shadow: inset 0 0 0 2px var(--accent); }
.tablewrap { border-radius: 4px; box-shadow: var(--shadow2); border: 0; }
th { font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--fg); padding: 8px 12px; border-bottom: 1px solid var(--line-strong); }
td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover td { background: var(--surface2); }
tr.sel td { background: var(--accent-soft); }
.pill { border-radius: 4px; font-weight: 600; padding: 1px 8px; }
.badge { border-radius: 4px; }
.tabs { border-bottom: 1px solid var(--line); }
.tab { font-weight: 400; color: var(--fg); }
.tab.on { font-weight: 600; border-bottom-width: 3px; }
.empty { border-radius: 4px; }
.err, .note, .confirm { border-radius: 4px; }
.err { border-left: 4px solid var(--bad); }
.note.ok { border-left: 4px solid var(--ok); }
.tile-label, .cap-label, .rellabel { text-transform: none; letter-spacing: 0; font-size: 12px; }

/* status-ikon i tekst (Azure: farvet prik + tekst) */
.st { display: inline-flex; align-items: center; gap: 6px; }
.st::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.st.ok::before { background: var(--ok); }
.st.warn::before { background: var(--warn); }
.st.bad::before { background: var(--bad); }

/* Essentials */
.ess { background: var(--surface); box-shadow: var(--shadow2); border-radius: 4px; padding: 12px 16px; margin-bottom: 16px; }
.ess-h { font-size: 14px; margin: 0 0 8px; }
.ess-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.ess-col { margin: 0; }
.ess-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px; padding: 3px 0; }
.ess-row dt { color: var(--muted); }
.ess-row dd { margin: 0; overflow-wrap: anywhere; }

/* ressourceside med venstremenu */
.rl { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; margin: -16px -24px 0; min-height: calc(100vh - 180px); }
.rl-menu { background: var(--surface); border-right: 1px solid var(--line); padding: 8px 0; }
.rl-gh { font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 16px 4px; }
.rl-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 16px; background: none; border: 0; text-align: left; color: var(--fg); position: relative; }
.rl-item:hover { background: var(--surface2); }
.rl-item.on { background: var(--surface2); font-weight: 600; }
.rl-item.on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: var(--accent); }
.rl-i { display: inline-grid; place-items: center; font-size: 18px; color: var(--accent); }
.rl-body { padding: 16px 24px; min-width: 0; }
.ph.flush { margin-bottom: 0; }

@media (max-width: 900px) {
  .side { top: var(--top-h); }
  .shell.rail .body { grid-template-columns: minmax(0, 1fr); }
  .who-text { display: none; }
  .rl { grid-template-columns: minmax(0, 1fr); }
  .rl-menu { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .rl-group { display: contents; }
  .rl-gh { display: none; }
  .rl-item { width: auto; white-space: nowrap; }
  .ess-grid { grid-template-columns: minmax(0, 1fr); }
  .main { padding: 16px; }
  .ph { margin: -16px -16px 16px; padding: 8px 16px 0; }
}

/* sider der endnu bruger det gamle .head-mønster får samme sidehoved-bånd */
.main > section > .head:first-child, .main > section > .relpath:first-child + .head { margin: -16px -24px 16px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); align-items: center; }
.main > section > .relpath:first-child { margin: -16px -24px 0; padding: 8px 24px 0; background: var(--surface); }
.main > section > .head:first-child .lede { margin: 2px 0 0; font-size: 12px; }
@media (max-width: 900px) { .main > section > .head:first-child { margin: -16px -16px 16px; padding: 12px 16px; } }
.pcard h2 { font-size: 16px; }
.stats dd { font-size: 20px; font-weight: 600; }
.tile-num { font-weight: 600; }
.login { background: var(--bg); }
.loginbox { border-radius: 4px; box-shadow: var(--shadow16); border: 0; padding: 32px; }

/* status som prik + tekst (ikke farvede piller) */
.pill:not(.tenant):not(.sp) { background: none; padding: 0; font-weight: 400; color: var(--fg); display: inline-flex; align-items: center; gap: 6px; }
.pill:not(.tenant):not(.sp)::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.pill.ok:not(.tenant)::before { background: var(--ok); }
.pill.warn:not(.tenant)::before { background: var(--warn); }
.pill.bad:not(.tenant)::before { background: var(--bad); }
.pill.sp { background: var(--surface2); color: var(--muted); }
.pill.tenant { background: var(--accent-soft); color: var(--accent); }
.ghost.danger { border-color: var(--line-strong); color: var(--bad); }
.ghost.danger:hover { background: var(--bad-soft); }

/* filter-chips, sortering, valg og sideinddeling */
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 10px; border-radius: 14px; background: var(--surface3); font-size: 13px; cursor: pointer; }
.chip.on { background: var(--accent-soft); color: var(--accent); }
.chip-k { font-weight: 600; white-space: nowrap; }
.chip select { border: 0; background: transparent; min-height: 0; padding: 2px 4px; font: inherit; color: inherit; cursor: pointer; max-width: 200px; }
.chip select:focus { border: 0; outline: 2px solid var(--accent); border-radius: 4px; }
.chips-count { color: var(--muted); font-size: 13px; margin-left: 4px; }
.toolbar .chips { margin: 0; }
.thsort { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; display: inline-flex; gap: 4px; cursor: pointer; }
.thsort:hover { color: var(--accent); }
.sortarrow { color: var(--accent); width: 10px; }
.selcol { width: 36px; padding-right: 0; }
.selcol input { width: 16px; height: 16px; min-height: 0; accent-color: var(--accent); cursor: pointer; }
.pager { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pager-nav { display: inline-flex; align-items: center; gap: 10px; }
.nowrap { white-space: nowrap; }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split-detail { position: sticky; top: calc(var(--top-h) + 16px); }
.tb-right { margin-left: auto; }
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } .split-detail { position: static; } }

.dt-top { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; }
.dt-top .search { flex: 1 1 260px; max-width: 480px; margin: 0; }
.dt-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.dt-filters .chips { margin: 0; }

/* ===== farver pr. ressourcetype (afdæmpet liv) ===== */
:root { --t-blue: #0f6cbd; --t-teal: #038387; --t-green: #107c10; --t-purple: #8764b8; --t-indigo: #4f52b2; --t-orange: #ca5010; --t-amber: #b38700; --t-slate: #5c6670; }
@media (prefers-color-scheme: dark) { :root { --t-blue: #479ef5; --t-teal: #4bc6c9; --t-green: #54b054; --t-purple: #b696e5; --t-indigo: #9a9cf0; --t-orange: #f7894a; --t-amber: #e8c547; --t-slate: #a6b0ba; } }
.ic.t-blue { color: var(--t-blue); } .ic.t-teal { color: var(--t-teal); } .ic.t-green { color: var(--t-green); } .ic.t-purple { color: var(--t-purple); }
.ic.t-indigo { color: var(--t-indigo); } .ic.t-orange { color: var(--t-orange); } .ic.t-amber { color: var(--t-amber); } .ic.t-slate { color: var(--t-slate); }
.cmd-i .ic, .rl-i .ic, .top .ic { color: inherit; }
.ni { color: inherit; }
.side .ni .ic.t-plain { color: var(--accent); }
.ph-icon, .tile-icon { border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ph-icon { width: 44px; height: 44px; font-size: 28px; }
.ph-icon:has(.t-teal), .tile-icon:has(.t-teal) { background: color-mix(in srgb, var(--t-teal) 12%, transparent); }
.ph-icon:has(.t-green), .tile-icon:has(.t-green) { background: color-mix(in srgb, var(--t-green) 12%, transparent); }
.ph-icon:has(.t-purple), .tile-icon:has(.t-purple) { background: color-mix(in srgb, var(--t-purple) 12%, transparent); }
.ph-icon:has(.t-indigo), .tile-icon:has(.t-indigo) { background: color-mix(in srgb, var(--t-indigo) 12%, transparent); }
.ph-icon:has(.t-orange), .tile-icon:has(.t-orange) { background: color-mix(in srgb, var(--t-orange) 12%, transparent); }
.ph-icon:has(.t-amber), .tile-icon:has(.t-amber) { background: color-mix(in srgb, var(--t-amber) 14%, transparent); }
.ph-icon:has(.t-slate), .tile-icon:has(.t-slate) { background: color-mix(in srgb, var(--t-slate) 12%, transparent); }
.tile { position: relative; padding-left: 66px; min-height: 92px; justify-content: center; }
.tile-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; font-size: 22px; }
.tile, .pcard, .card, .cmd, .sitem, .rl-item, tbody tr td, .chip, .primary, .ghost { transition: background-color .12s ease, box-shadow .15s ease, border-color .12s ease, transform .15s ease; }
button.tile:hover, a.pcard:hover { box-shadow: var(--shadow8); transform: translateY(-1px); }
.ph { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 5%, var(--surface)) 0%, var(--surface) 75%); }

/* ===== faner (pivot) ===== */
.pivot { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 14px; }
.pivot button { background: none; border: 0; padding: 8px 12px; font: inherit; color: var(--fg); position: relative; cursor: pointer; }
.pivot button:hover { color: var(--accent); }
.pivot button.on { font-weight: 600; }
.pivot button.on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--accent); }

/* ===== panel fra højre ===== */
.panel-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 40; display: flex; justify-content: flex-end; animation: fadein .15s ease; }
.panel { width: min(560px, 100vw); height: 100%; background: var(--surface); box-shadow: -8px 0 24px rgba(0,0,0,.18); display: flex; flex-direction: column; animation: slidein .2s cubic-bezier(.1,.9,.2,1); }
.panel.wide { width: min(840px, 100vw); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 18px 24px 10px; }
.panel-head h2 { font-size: 20px; line-height: 28px; margin: 0; }
.panel-x { background: none; border: 0; font-size: 16px; width: 32px; height: 32px; border-radius: 4px; color: var(--fg); cursor: pointer; flex: none; }
.panel-x:hover { background: var(--surface2); }
.panel-steps { display: flex; gap: 4px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.panel-step { padding: 8px 10px; position: relative; color: var(--muted); }
.panel-step.on { color: var(--fg); font-weight: 600; }
.panel-step.on::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--accent); }
.panel-body { flex: 1; overflow-y: auto; padding: 16px 24px 24px; }
.panel-foot { display: flex; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--surface); }
body.panel-open { overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field > label { font-weight: 600; font-size: 14px; }
.field .req { color: var(--bad); }
.field .hint { font-size: 12px; color: var(--muted); }
.psec { font-size: 14px; margin: 18px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.psec:first-child { margin-top: 0; }
.checks.col { flex-direction: column; gap: 6px; }
.review { margin: 12px 0 0; }
.review-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.review-row dt { color: var(--muted); }
.review-row dd { margin: 0; overflow-wrap: anywhere; }
.plainlist { list-style: none; padding: 0; margin: 8px 0; }
.plainlist li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.note:not(.ok):not(.warn) { background: var(--accent-soft); border-left: 4px solid var(--accent); }
@keyframes slidein { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ===== notifikationer ===== */
.bell { position: relative; }
.bellbtn { width: 40px; justify-content: center; padding: 0; position: relative; }
.bellbtn .ni { font-size: 20px; color: #fff; }
.bell-badge { position: absolute; top: 6px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #0f6cbd; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.bell-badge.run { background: #ca5010; }
.ni.spin .ic { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.notes { position: absolute; right: 0; top: calc(var(--top-h) + 2px); width: 380px; max-height: 70vh; overflow-y: auto; background: var(--surface); color: var(--fg);
  border-radius: 4px; box-shadow: var(--shadow16); padding: 14px 16px; z-index: 35; animation: fadein .12s ease; }
.notes-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.notes-head h2 { font-size: 16px; margin: 0; }
.notes .link { color: var(--accent); }
.note-item { padding: 10px 0; border-top: 1px solid var(--line); }
.note-title { font-weight: 600; }
.note-meta { font-size: 12px; color: var(--muted); margin: 2px 0 0 16px; }
.note-detail { font-size: 13px; margin: 4px 0 0 16px; overflow-wrap: anywhere; }
.toast { position: fixed; right: 16px; top: calc(var(--top-h) + 12px); width: 380px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--fg);
  border-radius: 4px; box-shadow: var(--shadow16); padding: 12px 40px 12px 14px; z-index: 45; border-left: 4px solid var(--ok); animation: slidein .2s ease; }
.toast.failed { border-left-color: var(--bad); }
.toast .panel-x { position: absolute; right: 6px; top: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

.pc-title { display: flex; align-items: center; gap: 12px; }
.pc-icon { position: static; transform: none; flex: none; }

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

/* hardware ("Edit settings") */
.cmdbar.inline { margin: 0 0 8px; padding: 0; }
table.hw td { vertical-align: middle; }
.hw-k { width: 220px; white-space: nowrap; }
.hw-i { display: inline-grid; place-items: center; width: 28px; font-size: 18px; vertical-align: middle; margin-right: 6px; }
.hw-act { width: 80px; text-align: right; }

/* verificering (kode + nedtælling) */
.vd-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fadein .12s ease; }
.vd { width: min(420px, 100%); background: var(--surface); color: var(--fg); border-radius: 8px; box-shadow: var(--shadow16); padding: 22px 24px; border-top: 4px solid var(--accent); }
.vd.danger { border-top-color: var(--bad); }
.vd h2 { margin: 0 0 6px; font-size: 20px; }
.vd-action { font-weight: 600; margin: 0 0 10px; }
.vd-code { display: flex; gap: 10px; justify-content: center; margin: 10px 0 14px; }
.vd-code span { font: 600 28px var(--mono); width: 44px; text-align: center; padding: 6px 0; border-radius: 6px; background: var(--surface2); letter-spacing: 0; user-select: none; }
.vd-inputs { display: flex; gap: 10px; justify-content: center; margin-bottom: 16px; }
.vd-inputs input { width: 48px; height: 52px; text-align: center; font: 600 24px var(--mono); padding: 0; }
.vd-inputs input.bad { border-color: var(--bad); border-bottom-color: var(--bad); }
.vd-foot { display: flex; gap: 8px; justify-content: flex-end; }
.vd-ring { height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin: 14px 0; }
.vd-ring span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; animation: shrink linear forwards; }
.vd.danger .vd-ring span { background: var(--bad); }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* mappetræ */
.tree-tools { display: flex; gap: 14px; align-items: center; margin: 0 0 8px; }
.tree .fold { background: none; border: 0; width: 22px; height: 22px; padding: 0; border-radius: 4px; color: var(--muted); cursor: pointer; vertical-align: middle; }
.tree .fold:hover:not(:disabled) { background: var(--surface3); color: var(--fg); }
.tree .fold:disabled { cursor: default; }
.folderrow { cursor: default; }
.folderrow:hover td { background: var(--surface2); }
.folderlink { font-size: 14px; }
.tree td { padding-top: 6px; padding-bottom: 6px; }

.tablewrap.loading { opacity: .6; transition: opacity .15s; }

/* mapper og VM'er i træet: samme Fluent-ikoner og rækker som resten af portalen */
.fi { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 18px; margin-right: 8px; vertical-align: -4px; flex: none; }
.fi.vmi { font-size: 16px; }
.folderrow td, .folderrow:hover td { background: transparent; }
.folderrow:hover td { background: var(--surface2); }
.tree tr.folderrow td { border-bottom: 1px solid var(--line); }
.folderlink { color: var(--fg); font-weight: 600; }
.folderlink:hover { color: var(--accent); text-decoration: underline; }
.tree .indent.d1 { width: 22px; } .tree .indent.d2 { width: 44px; } .tree .indent.d3 { width: 66px; } .tree .indent.d4 { width: 88px; }
.tree .indent.d5 { width: 110px; } .tree .indent.d6 { width: 132px; } .tree .indent.d7 { width: 154px; }
.foldernav .fi { width: 18px; font-size: 16px; margin-right: 6px; }
.foldernav .flabel { gap: 0; }

.tree tr.folderrow { background: transparent; }
.tree tr.folderrow:hover td { background: var(--surface2); }

/* ===== front view (C9300) ===== */
.fv-wrap { overflow-x: auto; }
.fv { display: block; max-width: none; font-family: var(--font); }
.fv-host { font: 600 14px var(--font); fill: var(--accent); cursor: pointer; }
.fv-host:hover { text-decoration: underline; }
.fv-meta { font: 11px var(--font); fill: var(--muted); }
.fv-chassis { fill: var(--surface); stroke: var(--fg); stroke-width: 2; }
.fv-ear, .fv-screw { stroke: var(--fg); fill: none; stroke-width: 1; }
.fv-brand { font: 700 9px var(--font); fill: var(--fg); }
.fv-sub { font: 7px var(--font); fill: var(--muted); }
.fv-led { fill: var(--surface2); stroke: var(--muted); stroke-width: .8; }
.fv-led.on { fill: var(--ok); stroke: var(--ok); }
.fv-block, .fv-module { fill: none; stroke: var(--line-strong); stroke-width: 1; }
.fv-module { stroke-dasharray: 3 2; }
.fv-port { cursor: pointer; }
.fv-port rect:first-child { fill: var(--surface); stroke: var(--muted); stroke-width: 1; }
.fv-port text { font: 600 7px var(--mono); fill: var(--muted); pointer-events: none; }
.fv-port .fv-latch { fill: var(--muted); stroke: none; }
.fv-port.up rect:first-child { fill: color-mix(in srgb, var(--ok) 22%, var(--surface)); stroke: var(--ok); }
.fv-port.up text { fill: var(--fg); }
.fv-port.admin-down rect:first-child { fill: var(--surface2); stroke: var(--line-strong); stroke-dasharray: 2 1.5; }
.fv-port.cable-up rect:first-child { fill: var(--ok); stroke: var(--ok); stroke-width: 1.6; }
.fv-port.cable-up text, .fv-port.cable-down text { fill: #fff; }
.fv-port.cable-up .fv-latch, .fv-port.cable-down .fv-latch { fill: #fff; }
.fv-port.cable-down rect:first-child { fill: var(--bad); stroke: var(--bad); stroke-width: 1.6; animation: fvblink .9s steps(1) infinite; }
.fv-port:hover rect:first-child { stroke: var(--accent); stroke-width: 2; }
.fv-port.lit rect:first-child { stroke: var(--accent); stroke-width: 3; animation: fvpulse .6s ease-in-out infinite; }
.fv-cable { cursor: pointer; }
.fv-cable-hit { fill: none; stroke: transparent; stroke-width: 10; }
.fv-cable-line { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linejoin: round; }
.fv-cable.down .fv-cable-line { stroke: var(--bad); stroke-dasharray: 6 4; animation: fvblink .9s steps(1) infinite; }
.fv-cable:hover .fv-cable-line { stroke-width: 3.5; }
.fv-cable.lit .fv-cable-line { stroke: var(--accent); stroke-width: 4; }
.fv-cable-tag { fill: var(--surface); stroke: var(--ok); stroke-width: 1.5; }
.fv-cable.down .fv-cable-tag { stroke: var(--bad); }
.fv-cable.lit .fv-cable-tag { stroke: var(--accent); }
.fv-cable-num { font: 700 8px var(--mono); fill: var(--fg); pointer-events: none; }
.fv-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 12px; margin-top: 10px; }
.fv-sw { display: inline-block; width: 14px; height: 11px; border-radius: 2px; vertical-align: -1px; margin-right: 5px; border: 1px solid var(--muted); background: var(--surface); }
.fv-sw.cable-up { background: var(--ok); border-color: var(--ok); }
.fv-sw.cable-down { background: var(--bad); border-color: var(--bad); }
.fv-sw.up { background: color-mix(in srgb, var(--ok) 22%, var(--surface)); border-color: var(--ok); }
.fv-sw.admin-down { background: var(--surface2); border-style: dashed; }
@keyframes fvblink { 50% { opacity: .25; } }
@keyframes fvpulse { 50% { stroke-width: 1.5; } }

/* bagside: PSU, blæsere, temperatur */
.fv-rear-bg { fill: var(--surface2); stroke: var(--line-strong); stroke-width: 1; }
.fv-rear-k { font: 700 7px var(--font); fill: var(--muted); letter-spacing: .05em; }
.fv-rear-warn { font: 600 8px var(--font); fill: var(--warn); }
.fv-hw rect, .fv-hw circle { stroke-width: 1.3; }
.fv-hw text { font: 600 8px var(--font); }
.fv-hw.ok rect, .fv-hw.ok circle { fill: color-mix(in srgb, var(--ok) 18%, var(--surface)); stroke: var(--ok); }
.fv-hw.ok text { fill: var(--fg); }
.fv-hw.empty rect { fill: var(--surface); stroke: var(--line-strong); stroke-dasharray: 3 2; }
.fv-hw.empty text { fill: var(--muted); font-weight: 400; }
.fv-hw.bad rect, .fv-hw.bad circle { fill: var(--bad); stroke: var(--bad); animation: fvblink .9s steps(1) infinite; }
.fv-hw.bad text { fill: #fff; }
.fv-fan-blade { stroke: var(--ok); stroke-width: 1.4; fill: none; }
.fv-hw.bad .fv-fan-blade { stroke: #fff; }
.fv-temps { font: 8px var(--mono); fill: var(--muted); }
.fv-temps .bad { fill: var(--bad); font-weight: 700; }
.fv-fault { fill: none; stroke: var(--bad); stroke-width: 3; animation: fvblink .9s steps(1) infinite; }
.fv-sw.hwbad { background: var(--bad); border-color: var(--bad); }
.fv-sw.empty { background: var(--surface); border-style: dashed; }

/* out-of-band konsolvindue */
.oobc { position: fixed; inset: 0; display: flex; flex-direction: column; background: #0c0c0c; }
.oobc-bar { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: #1b1a19; color: #fff; flex-wrap: wrap; }
.oobc-title { font-weight: 600; margin-right: 8px; }
.oobc-bar .st { color: #fff; font-size: 12px; }
.oobc-sp { flex: 1; }
.oobc-bar button { background: #3b3a39; color: #fff; border: 0; border-radius: 4px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
.oobc-bar button:hover { background: #504f4e; }
.oobc-bar input { width: 220px; min-height: 26px; padding: 3px 8px; background: #292827; color: #fff; border: 1px solid #504f4e; font-size: 13px; }
.oobc-term { flex: 1; padding: 6px; min-height: 0; }
.oobc-term .xterm { height: 100%; }

/* konsol-ikon (Cisco konsolkabel-blå) */
:root { --console-blue: #4fa3d9; }
.fv-con { cursor: pointer; }
.fv-con rect { fill: var(--console-blue); stroke: #2f7fb5; stroke-width: 1; }
.fv-con path { stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fv-con:hover rect, .fv-con:focus rect { fill: #3b8fc6; }
.fv-con:focus { outline: none; }
.fv-con:focus rect { stroke: var(--fg); stroke-width: 2; }

/* hostname = sort tekst; Remote console = separat blå knap */
.fv-host { fill: var(--fg); }
.fv-host:hover { fill: var(--accent); }
.fv-con rect:first-child { fill: var(--console-blue); stroke: #2f7fb5; stroke-width: 1; }
.fv-con .fv-con-ic { fill: none; stroke: #fff; stroke-width: 1.4; }
.fv-con path { stroke: #fff; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fv-con-txt { font: 600 11px var(--font); fill: #fff; pointer-events: none; }
.fv-con:hover rect:first-child, .fv-con:focus rect:first-child { fill: #3b8fc6; }

/* tydelig blink når en port eller et kabel er valgt */
:root { --fv-hl: #ffb900; }
.fv-port.lit rect:first-child { fill: var(--fv-hl) !important; stroke: #8a6100 !important; stroke-width: 3 !important; animation: fvhl .5s steps(1) infinite !important; }
.fv-port.lit text { fill: #000 !important; }
.fv-cable.lit .fv-cable-line { stroke: var(--fv-hl) !important; stroke-width: 6 !important; stroke-dasharray: none !important; animation: fvhl .5s steps(1) infinite !important; }
.fv-cable.lit .fv-cable-tag { fill: var(--fv-hl); stroke: #8a6100; animation: fvhl .5s steps(1) infinite; }
.fv-cable.lit .fv-cable-num { fill: #000; }
@keyframes fvhl { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .fv-port.lit rect:first-child, .fv-cable.lit .fv-cable-line, .fv-cable.lit .fv-cable-tag { animation: none !important; } }

/* brand: Service Portal + organisation */
.brand-org { font-weight: 400; opacity: .75; margin-left: 8px; padding-left: 9px; border-left: 1px solid rgba(255,255,255,.35); }
.login .brand-org { border-left-color: var(--line-strong); color: var(--muted); opacity: 1; }

.isis-af .badge { margin-right: 4px; }
.badge.v6 { border-color: var(--t-purple); color: var(--t-purple); }
