/* NodeXL task-pane design. Ported from the approved mockup. Loaded after
   Bootstrap so it re-skins the existing views with the NodeXL palette. */

:root {
    --nx-blue: #215E9E;
    --nx-deep: #123F6B;
    --nx-cyan: #149AAB;
    --ink: #1B2A38;
    --slate: #5C6E7E;
    --line: #DBE3EC;
    --paper: #EEF3F8;
    --good: #2E9E63;
    --warn: #C9821F;
    --crit: #CE4B3C;
    --run: #149AAB;
    --nx-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

html, body, #app { height: 100%; }

body {
    font-family: var(--nx-font);
    color: var(--ink);
    background: #fff;
    margin: 0;
    /* Task pane never scrolls at the body level — the view body (.nx-body)
       scrolls internally, and only when its content overflows. */
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Override app.css's #app { width:100vw; height:100vh }. The viewport units
   include the scrollbar gutter, which forces phantom scrollbars in the pane;
   percentages fill the pane exactly. */
#app { width: 100%; overflow: hidden; }

.nx-loading {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    font-size: 14px;
}

/* ---- shell fills the whole task pane ---- */
.nx-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ---- branded header (replaces the nav bar) ---- */
/* width/height are pinned here to override app.css's leaky `header { width:100vw;
   height:10rem }` element rule (the template CSS matches this <header>). */
/* LIGHT since 2026-09-24 (Marc: "make the header a lighter color (white?)"):
   the edition logo is drawn for a light background, and a white plate in a
   dark band looked like a patch. White, with a hairline under it to part it
   from the paper-grey body; everything that used to be white-on-blue — the
   account line, Sign out, the tabs — is re-inked below. */
.nx-head {
    background: #fff;
    color: var(--ink);
    padding: 7px 14px 0;
    border-bottom: 1px solid var(--line);
    width: auto;
    height: auto;
    flex: none;
}
.nx-brand { display: flex; align-items: center; gap: 9px; }
.nx-glyph { flex: none; }
/* The add-in icon (Images/Button32x32.png) as the header logo. Sized here because app.css
   still has the Blazor sample's `header img { width: 25%; max-width: 150px }`. */
.nx-head img.nx-glyph { width: 26px; height: 26px; max-width: none; display: block; }
/* The edition logo (2026-09-23): 300x105 scaled to the 26 px the icon had, so
   about 74 px wide — less than the icon + "NodeXL Pro" text it replaces.
   It briefly sat on a white plate in the dark band (2026-09-24, morning); with
   the band itself white now, it needs none. */
.nx-head img.nx-logo { height: 26px; width: auto; max-width: none; display: block; }
.nx-name { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.nx-name b { font-weight: 700; }
.nx-account { margin-left: auto; display: flex; align-items: center; }
.nx-account .small, .nx-account .text-muted { color: var(--slate) !important; font-size: 11px; }
.nx-account .btn-sm { padding: 2px 9px; font-size: 11px; }
.nx-account .btn-outline-secondary { color: var(--nx-blue); border-color: #C9D3DC; background: #fff; }
.nx-account .btn-outline-secondary:hover { background: var(--paper); border-color: var(--nx-blue); color: var(--nx-blue); }

/* ---- header tabs (replaced the title line, 2026-09-14) ----
   Scoped to .nx-head: Graph Options has its own light .nx-tabs/.nx-tab further
   down, and being later in the file it used to override these, which is why the
   header's unselected tabs came out slate grey instead of white. */
.nx-head .nx-tabs { margin-top: 5px; display: flex; align-items: flex-end; gap: 2px; min-width: 0; overflow: hidden; border-bottom: 0; }
/* The pinned three never shrink (a 1 px squeeze would put an ellipsis on
   "Graph"); only the fourth, whose label is whatever was opened last, gives. */
.nx-head .nx-tab { flex: 0 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; appearance: none; margin: 0;
          background: transparent; border: 0; border-bottom: 2px solid transparent; border-radius: 4px 4px 0 0;
          padding: 4px 10px 6px; font-size: 12.5px; font-weight: 500; color: var(--slate); cursor: pointer; line-height: 1.3; }
/* On the light band (2026-09-24): slate when idle, NodeXL blue when hovered or
   selected, the selected one underlined in blue — the same idiom as the Graph
   Options tabs further down, so the pane has one tab language. The underline
   sits ON the header's bottom hairline (padding-bottom 6 + border 2 = the
   band's edge), the usual "tab is part of the page below" cue. */
.nx-head .nx-tab-latest { flex: 0 1 auto; min-width: 3rem; }
.nx-head .nx-tab:hover { color: var(--nx-blue); background: #F3F7FB; }
.nx-head .nx-tab.active { color: var(--nx-blue); font-weight: 600; background: transparent; border-color: transparent; border-bottom-color: var(--nx-blue); }
.nx-head .nx-tab:focus-visible { outline: 2px solid var(--nx-blue); outline-offset: -2px; }

/* ---- scrollable body ---- */
/* min-height:0 lets this flex child shrink below its content, so it scrolls
   internally only when the content actually overflows (no phantom scrollbar). */
.nx-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; background: var(--paper); }
.nx-body .container { padding: 0; max-width: none; width: auto; }

/* ---- status strip ---- */
/* width/min-height/margin pinned to override app.css's leaky
   `footer { width:100vw; min-height:5rem; margin-top:2em }` element rule. */
.nx-status {
    border-top: 1px solid var(--line);
    padding: 8px 14px;
    font-size: 11px;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 8px;
    background: #FAFCFE;
    width: auto;
    min-height: 0;
    margin: 0;
    flex: none;
}
.nx-sdot { width: 7px; height: 7px; border-radius: 50%; background: #C4D0DB; }
.nx-sdot.busy { background: var(--run); }

/* ---- re-skin the existing Bootstrap views with the NodeXL palette ---- */
.btn-primary { background: var(--nx-blue); border-color: var(--nx-blue); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: #1B5088 !important; border-color: #1B5088 !important; }
.btn-outline-primary { color: var(--nx-blue); border-color: var(--nx-blue); }
.btn-outline-primary:hover { background: var(--nx-blue); border-color: var(--nx-blue); }
.btn-outline-secondary { color: var(--slate); border-color: #C7D3DE; }
.btn-outline-secondary:hover { background: var(--slate); border-color: var(--slate); }
.text-primary { color: var(--nx-blue) !important; }
a { color: var(--nx-blue); }
.form-control:focus, .form-select:focus {
    border-color: var(--nx-blue);
    box-shadow: 0 0 0 .2rem rgba(33,94,158,.2);
}
.badge.bg-success { background-color: var(--good) !important; }
.badge.bg-secondary { background-color: #4E6B85 !important; }

/* view headings sized for a task pane */
.nx-body h1, .nx-body h3 { font-size: 16px; font-weight: 600; color: var(--nx-deep); margin: 0 0 8px; }
.nx-body p, .nx-body .lead { font-size: 12.5px; color: var(--slate); line-height: 1.5; }
.nx-body label.form-label { font-size: 11.5px; font-weight: 600; color: #3A4A58; }

/* reusable card/note for polished views */
.nx-note {
    margin-top: 12px;
    font-size: 11px;
    color: #7C8EA0;
    background: #F5F8FB;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    line-height: 1.5;
}

/* ---- metric checklist (Graph Metrics view) ---- */
.nx-metrics { margin: 4px 0 10px; }

.nx-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 6px;
    cursor: pointer;
    background: #fff;
    transition: border-color .12s, background .12s;
}
.nx-check:hover { border-color: #C3D4E3; background: #F8FBFD; }
.nx-check > input { margin-top: 2px; accent-color: var(--nx-blue); width: 15px; height: 15px; flex: none; }
.nx-check.nx-plain { margin-top: 2px; }

.nx-cbody { flex: 1; min-width: 0; }
.nx-ct { font-size: 12.5px; color: #2B3A48; display: flex; align-items: center; gap: 6px; }
.nx-cd { font-size: 10.5px; color: #8496A6; margin-top: 1px; display: block; }

/* A step made of parts (Automate's Graph metrics, 2026-09-23): the chevron is
   the context menu's, and the parts are indented under the row in the same
   band the menu uses for a submenu, so the two read as one idiom. */
.nx-expand { flex: none; width: 20px; height: 20px; margin: -3px 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 5px; background: transparent; color: #6B7C8C; cursor: pointer; }
.nx-expand:hover, .nx-expand:focus-visible { background: #EEF3F8; color: var(--nx-blue); outline: none; }
.nx-expand svg { transition: transform .15s; }
.nx-expand.open svg { transform: rotate(90deg); }
.nx-substeps { margin: -2px 0 8px 24px; padding: 4px 0 2px 10px; border-left: 2px solid #E3EAF0; }
.nx-substep { display: flex; gap: 9px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px;
  margin-bottom: 4px; background: #FAFCFE; }
.nx-substep .nx-ct { font-size: 12px; }
.nx-substep .nx-bar { margin-top: 5px; height: 6px; }
.nx-substep .nx-bar > i { height: 4px; }
.nx-substep.queued { border-color: #D3DEE8; }
.nx-substep.queued .nx-cd { color: #A2B2C0; font-style: italic; }
.nx-substep.running { border-color: #B7D0E6; background: #F6FAFD; }
.nx-substep.done { border-color: #BFE3CD; }
.nx-substep.done .nx-bar > i { background: var(--good); }
.nx-substep.failed { border-color: #E5B7B0; }
.nx-substep.failed .nx-cd { color: var(--crit); font-weight: 600; }
.nx-substep-note { font-size: 11px; color: #8496A6; font-style: italic; padding: 2px 8px 6px; }

/* Tabs — Graph Options is the first page with enough settings to need them.
   A 320px task pane cannot show four groups at once, and the desktop dialog they
   come from is itself a TabControl, so the shape is the port's, not an
   invention. */
.nx-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--line);
}
.nx-tab {
    appearance: none;
    background: none;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 6px 11px;
    margin-bottom: -1px;
    font-size: 12px;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
}
.nx-tab:hover { color: var(--nx-blue); background: #F8FBFD; }
.nx-tab.active {
    color: var(--nx-deep);
    background: #fff;
    border-color: var(--line);
    border-bottom-color: #fff;
}

/* A labelled control on one line, with the label a fixed width so a column of
   them lines up. Wraps rather than overflowing when the pane is narrow. */
.nx-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 7px;
}
.nx-field > label {
    flex: 0 0 8.5rem;
    font-size: 11.5px;
    font-weight: 600;
    color: #3A4A58;
}
.nx-field > input[type="number"] { width: 5.5rem; }
/* A group box, as the desktop dialogs draw one: a bordered block with its
   caption cut into the top edge (Graph Options > Graph type, Marc 2026-10-27,
   "to make it more distinguishable"). Bootstrap resets <legend> to a floated
   full-width block, hence the overrides. */
.nx-groupbox { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px 8px; margin: 0 0 10px; min-width: 0; }
.nx-groupbox > legend { float: none; width: auto; padding: 0 5px; margin: 0 0 2px -5px;
  font-size: 11.5px; font-weight: 600; color: #3A4A58; line-height: 1.3; }
.nx-groupbox > .nx-field { margin-bottom: 4px; }
/* An inline radio with its caption, for a choice that sits on one field row
   (Graph Options > Graph type, 2026-10-27). */
.nx-field > .nx-radio { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #2B3A48; cursor: pointer; }
.nx-field > .nx-radio > input { accent-color: var(--nx-blue); margin: 0; }
.nx-field > input[type="color"] {
    width: 2.6rem; height: 1.7rem; padding: 1px;
    border: 1px solid var(--line); border-radius: 4px; background: #fff;
}
.nx-field > input:not([type="color"]), .nx-field > select {
    font-size: 12px;
    padding: 3px 6px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
}
.nx-field > input[type="url"] { flex: 1; min-width: 8rem; }
.nx-field > .nx-cd { margin-top: 0; display: inline; }

.nx-badge {
    font-size: 9px; letter-spacing: .06em; text-transform: uppercase;
    padding: 2px 6px; border-radius: 20px; font-weight: 600; white-space: nowrap;
    background: #EAF1F7; color: #4E6B85;
}
.nx-badge.slow { background: #FBF1E1; color: #9A7220; }
.nx-badge.pro { background: #EDE7F6; color: #5E35B1; }

/* A metric the deployed build cannot compute (Pro-only, in a Basic build).
   Greyed rather than hidden, so the capability stays discoverable. Purely
   presentational: the Basic wasm contains no code for these, so it refuses them
   whatever the UI shows. */
.nx-check.unavailable { opacity: .55; }
.nx-check.unavailable .nx-cd { font-style: italic; }
.nx-check.unavailable input { cursor: not-allowed; }
/* same treatment for the motif cards, which are not nx-check rows */
.nx-motif-card.unavailable { opacity: .55; }
.nx-motif-card.unavailable .nx-cd { font-style: italic; }
.nx-motif-card.unavailable input { cursor: not-allowed; }

/* queued / running / done / failed row accents */
.nx-check.queued { border-color: #D3DEE8; }
.nx-check.queued .nx-cd { color: #A2B2C0; font-style: italic; }
.nx-check.running { border-color: #B7D0E6; background: #F6FAFD; }
.nx-check.done { border-color: #BFE3CD; }
.nx-check.failed { border-color: #E5B7B0; }
/* Automate: the buttons at a row's right-hand end — Options…, and Run again
   under it while the task's last outcome is "failed" (2026-10-04). Stacked, and
   stretched to one width, so the column the Options… buttons make down the list
   stays straight and the message keeps its width. */
.nx-rowbtns { display: flex; flex-direction: column; align-items: stretch; gap: 4px;
  align-self: center; flex: none; }
.nx-rowbtns .btn { white-space: nowrap; }
/* Graph pane: the zoom-to-extent button in the canvas's top-left corner. Sits
   above sigma's canvases and the group-box overlay (z-index), translucent until
   hovered so it does not compete with the graph. */
/* Sigma's exclusive container, filling the shell that carries the border and
   the size. It is SEPARATE from the shell because sigma's kill() empties its
   container completely — see the note in GraphView.razor. */
.nx-graph-surface { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }

.nx-zoom-extent { position: absolute; top: 8px; left: 8px; z-index: 5; width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; padding: 0;
  border: 1px solid rgba(33, 94, 158, .45); border-radius: 6px; background: rgba(255, 255, 255, .65);
  color: var(--nx-blue); opacity: .55; cursor: pointer; transition: opacity .15s, background .15s; }
.nx-zoom-extent:hover, .nx-zoom-extent:focus-visible { opacity: 1; background: #fff; outline: none; }
.nx-zoom-extent:disabled { opacity: .25; cursor: default; }
/* Dynamic Filters toggle: third corner button over the canvas, under Move. "On"
   is solid blue like Move's, because it changes what is on screen. The panel it
   opens is styled in DynamicFilters.razor.css. */
.nx-filters-toggle { top: 80px; }
.nx-filters-toggle.active, .nx-filters-toggle.active:hover, .nx-filters-toggle.active:focus-visible {
  opacity: 1; background: var(--nx-blue); color: #fff; border-color: var(--nx-blue); }

/* Zoom slider (2026-11-01): the fourth corner control, under the Dynamic
   Filters toggle (8 / 44 / 80 / 116px). One translucent plate like the
   buttons, holding "+", a vertical track and "-". The range is a horizontal
   input ROTATED -90deg (right end up), not writing-mode:vertical-lr, which
   older WebView2/Office-on-the-web browsers do not apply to a range; a
   rotated input works everywhere and keeps ArrowRight/ArrowUp = in. The
   wrapper .nx-zoom-track reserves the rotated box's real footprint (30 wide,
   100 tall) so the layout does not see the pre-rotation 100x30. */
.nx-zoom-slider { position: absolute; top: 116px; left: 8px; z-index: 5; width: 30px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; padding: 2px 0;
  border: 1px solid rgba(33, 94, 158, .45); border-radius: 6px; background: rgba(255, 255, 255, .65);
  color: var(--nx-blue); opacity: .55; transition: opacity .15s, background .15s; }
.nx-zoom-slider:hover, .nx-zoom-slider:focus-within { opacity: 1; background: #fff; }
.nx-zoom-slider:has(:disabled) { opacity: .25; }
.nx-zoom-step { width: 26px; height: 22px; display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
.nx-zoom-step:hover, .nx-zoom-step:focus-visible { background: rgba(33, 94, 158, .12); outline: none; }
.nx-zoom-step:disabled { cursor: default; }
.nx-zoom-track { position: relative; width: 30px; height: 100px; flex: none; }
.nx-zoom-range { position: absolute; left: 50%; top: 50%; width: 92px; height: 18px; margin: -9px 0 0 -46px;
  transform: rotate(-90deg); cursor: pointer; accent-color: var(--nx-blue); }
.nx-zoom-range:disabled { cursor: default; }

/* ---- The action bar above AND below a long checklist (Automate, Graph Metrics):
   the select-all checkbox at the left, the buttons pushed to the right; wraps
   under it when the pane is narrow. ---- */
.nx-actionbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nx-actionbar-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.nx-selectall { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px;
  color: var(--ink); cursor: pointer; user-select: none; white-space: nowrap; }
.nx-selectall.disabled { color: #9AA7B3; cursor: default; }
.nx-selectall input { width: 14px; height: 14px; margin: 0; flex: none; cursor: inherit; accent-color: var(--nx-blue); }
/* "Some selected": HTML's indeterminate is a DOM property Blazor cannot bind, so
   the dash is drawn here. */
.nx-selectall input.partial { appearance: none; -webkit-appearance: none; border-radius: 2.5px;
  background: var(--nx-blue) linear-gradient(#fff, #fff) center / 8px 2px no-repeat; }
.nx-selectall.disabled input.partial { background-color: #9AA7B3; }

/* ---- Context menu (Shared/ContextMenu.razor; first user: the graph pane) ----
   position:fixed and clamped into the window by placeContextMenu, because the
   pane is narrow and the menu tall. Submenus open IN PLACE for the same reason. */
.nx-ctx-backdrop { position: fixed; inset: 0; z-index: 1090; background: transparent; }
.nx-ctx { position: fixed; z-index: 1091; min-width: 210px; max-width: min(300px, calc(100vw - 8px));
  overflow-y: auto; padding: 4px 0; background: #fff; color: var(--ink);
  border: 1px solid #C9D3DC; border-radius: 6px; box-shadow: 0 8px 24px rgba(16, 38, 60, .22);
  font-size: 12.5px; outline: none; }
.nx-ctx-item { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 5px 12px; border: 0; background: none; color: inherit; font: inherit;
  text-align: left; cursor: default; }
.nx-ctx-item:hover:not(:disabled), .nx-ctx-item:focus-visible { background: #E8F0F8; outline: none; }
.nx-ctx-item:disabled { color: #9AA7B3; }
/* The shortcut at an item's right (2026-09-24), in the muted small type the
   desktop uses for its "Ctrl+A"; plain text, no key-cap chrome. */
.nx-ctx-kbd { flex: none; margin-left: auto; font: inherit; font-size: 11px; color: #8496A6; letter-spacing: .02em; }
.nx-ctx-item:disabled .nx-ctx-kbd { color: #B9C3CC; }
.nx-ctx-parent svg { flex: none; transition: transform .12s; }
.nx-ctx-parent.open { font-weight: 600; }
.nx-ctx-parent.open svg { transform: rotate(90deg); }
.nx-ctx-sub { background: #F5F8FB; border-top: 1px solid #E3EAF0; border-bottom: 1px solid #E3EAF0; }
.nx-ctx-sub .nx-ctx-item { padding-left: 26px; }
.nx-ctx-item.checked { position: relative; font-weight: 600; }
.nx-ctx-item.checked::before { content: ""; position: absolute; left: 11px; top: 50%; width: 9px; height: 5px;
  border-left: 2px solid var(--nx-blue); border-bottom: 2px solid var(--nx-blue);
  transform: translateY(-70%) rotate(-45deg); }
.nx-ctx-sep { height: 1px; margin: 4px 0; background: #E3EAF0; }

/* A small modal over the pane (Select Subgraphs). */
.nx-modal-backdrop { position: fixed; inset: 0; z-index: 1050; display: flex; align-items: center;
  justify-content: center; background: rgba(0, 0, 0, .45); }
.nx-modal { background: #fff; color: #111; padding: 1rem 1.25rem; border-radius: 6px; min-width: 260px;
  max-width: 92%; max-height: 92%; overflow: auto; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }

/* Move selected vertices: the same corner button, one row down. It is a TOGGLE,
   so "on" has to be unmistakable — solid blue, full opacity — because it changes
   what a drag does. */
.nx-move-vertices { top: 44px; }

/* Vertex tooltip (graph-interop _wireTooltip): the Vertices sheet's "Tooltip"
   cell, shown beside the pointer when it rests on a vertex. Inside the graph
   container, above the canvases and the corner buttons; pre-line so a cell with
   line breaks keeps them; never wider than the pane. */
.nx-tooltip { position: absolute; z-index: 20; max-width: min(280px, calc(100% - 16px));
  padding: 5px 8px; background: #fff; color: var(--ink); border: 1px solid #C9D3DC;
  border-radius: 4px; box-shadow: 0 4px 14px rgba(16, 38, 60, .18);
  font-size: 12px; line-height: 1.35; white-space: pre-line; overflow-wrap: anywhere;
  pointer-events: none; }
.nx-tooltip[hidden] { display: none; }

/* Selection box (graph-interop _wireMarquee): Shift+drag on the graph
   background. Dashed like the desktop's marquee, over the canvases but under
   the corner buttons, and transparent to the mouse so the drag underneath it
   keeps running. */
.nx-marquee { position: absolute; z-index: 15; pointer-events: none;
  border: 1px dashed var(--nx-blue); background: rgba(33, 94, 158, .10); }   /* --nx-blue at 10% */
.nx-marquee[hidden] { display: none; }
.nx-move-vertices.active, .nx-move-vertices.active:hover, .nx-move-vertices.active:focus-visible {
  opacity: 1; background: var(--nx-blue); color: #fff; border-color: var(--nx-blue); }

/* Autofill Columns: the table hugs its content instead of stretching to the pane,
   so Clear/Options stay beside the source-column dropdown at any pane width
   (Marc, 2026-09-17). */
.nx-autofill { width: auto; }

.nx-autofill td:first-child { padding-right: 1rem; }
/* Shrink-wraps the table + its button row, so the row's right edge is the table's
   right edge and Clear All / Reset All sit under the Options column. */
/* Block-level (not inline-block: that sat on one line with the Edges/Vertices/Groups
   button group and dropped it to the bottom), shrink-wrapped with width: max-content. */
.nx-autofill-wrap { display: block; width: max-content; max-width: 100%; }

/* A failed row's message reads as an error: red, bold, a notch larger than the
   grey description it replaces (Marc, 2026-09-17: Graph Metrics + Automate). */
.nx-check.failed .nx-cd { color: var(--crit); font-weight: 600; font-size: 11.5px; }

/* per-metric progress bar (shown while a metric runs, and when it finishes) */
/* display:block matters: a <span> is inline, and overflow:hidden does not clip
   an inline box, so the indeterminate slide (translateX to 300%) escaped the
   bar and ran across the pane. As a block the bar is the clipping box. */
.nx-bar {
    display: block;
    margin-top: 7px; height: 7px; border-radius: 5px;
    background: #EAF0F5; overflow: hidden; position: relative;
}
.nx-bar > i {
    display: block; height: 5px; width: 0; border-radius: 5px;
    background: linear-gradient(90deg, var(--nx-blue), var(--nx-cyan));
    transition: width .3s;
}
.nx-check.done .nx-bar > i { background: var(--good); }
.nx-bar.err > i { background: var(--crit); }

/* indeterminate: metrics without a progress hook (PageRank, clusters, …) show
   a sliding bar while their worker computes. */
.nx-bar.indet > i { width: 40%; transition: none; animation: nx-indet 1.1s ease-in-out infinite; }
@keyframes nx-indet {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(300%); }
}

.nx-msg { font-size: 12px; color: var(--slate); margin-top: 8px; }
.nx-msg.nx-msg-error, .nx-msg.text-danger { color: var(--crit) !important; font-weight: 600; font-size: 13px; }
.nx-msg.nx-msg-error em, .nx-msg.text-danger em { font-style: normal; }

/* ---- "start new groups at these values" list (Group by Vertex Attribute) ---- */
.nx-minvals { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.nx-minvals-add { display: flex; gap: 6px; }
.nx-minvals-add input { flex: 1; min-width: 0; }
.nx-minvals-add .btn { white-space: nowrap; flex: none; }
.nx-minvals-list { height: 120px; }
.nx-minvals-btns { display: flex; gap: 6px; }
.nx-minvals-btns .btn { flex: 1; }

/* ---- motif cards (Group by Motif): image on the left, controls on the right ---- */
.nx-motif-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 6px;
    background: #fff;
}
.nx-motif-img {
    flex: none;
    width: 116px;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}
.nx-motif-text { flex: 1; min-width: 0; }
.nx-motif-head { display: flex; align-items: center; gap: 8px; }
.nx-motif-head input { accent-color: var(--nx-blue); width: 15px; height: 15px; flex: none; }

.nx-motif-range {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    margin-top: 6px; font-size: 11.5px; color: var(--slate);
}
.nx-motif-range input { width: 68px; }

/* ---- a run's progress on an importer page: text ABOVE the bar, percentage at
   the right, the same .nx-bar as Graph Metrics and Automate (Bluesky first,
   2026-09-18). Text inside a bar is unreadable over the unfilled part. ---- */
.nx-progress { max-width: 100%; }
.nx-progress-head {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 12.5px; color: var(--ink, #1B2A3A);
}
.nx-progress-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.nx-progress-pct { flex: none; font-variant-numeric: tabular-nums; color: var(--slate); }
.nx-progress .nx-bar { margin-top: 5px; height: 9px; }
.nx-progress .nx-bar > i { height: 9px; }

/* ---- overall progress in the footer status strip ---- */
.nx-stext { flex: none; }
.nx-scount { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--slate); }
.nx-bar.overall {
    flex: none; width: 96px; height: 7px; margin-top: 0;
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
