/* BioStudio AI — Inventory. GraphPad-style shell: blue ribbon on top, gray
   Navigator on the left, white sheet area, sheet tabs and a status bar at the
   bottom. No right-hand sidebars. Theme-aware via the OS `.dark` class. */

.inventory-root {
  /* This class lands on the window body itself. It must stay inside the window
     manager's flex layout — absolute positioning here would cover the native
     title bar, hiding pin / minimize / maximize / close and blocking the drag
     region. The app's own shell is what fills this box. */
  position: relative;
  inset: auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.inv-app {
  --iv-blue: #2f6bd4;
  --iv-blue-dk: #21508f;
  --iv-amber: #b06f16;
  --iv-bg: #f4f6fa;
  --iv-surface: #ffffff;
  --iv-nav-bg: #eef1f6;
  --iv-line: #d7dce6;
  --iv-ink: #1f2733;
  --iv-ink-soft: #6c7686;
  --iv-hover: #e4ebf7;
  --iv-active: #d6e4fb;
  --iv-warn: #b06f16;
  --iv-warn-bg: rgba(214, 158, 46, 0.14);
  --iv-bad: #c0392b;
  --iv-bad-bg: rgba(192, 57, 43, 0.12);
  --iv-ok: #1a8f4c;
  --iv-ok-bg: rgba(26, 143, 76, 0.12);
  --iv-shadow: 0 1px 3px rgba(20, 40, 80, 0.12);

  /* Fills the window body via flex rather than absolute inset, so a project
     context bar above it still gets its space. */
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  color: var(--iv-ink);
  background: var(--iv-bg);
  overflow: hidden;
}

.dark .inv-app {
  --iv-bg: #1a1d24;
  --iv-surface: #20242d;
  --iv-nav-bg: #181b21;
  --iv-line: #333a47;
  --iv-ink: #e8ecf3;
  --iv-ink-soft: #9aa5b5;
  --iv-hover: #2a3140;
  --iv-active: #2f3e58;
  --iv-warn: #e0b155;
  --iv-bad: #e77b6f;
  --iv-ok: #5ec98b;
  --iv-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* --- Ribbon --------------------------------------------------------------- */

.inv-ribbon-host { flex: 0 0 auto; z-index: 6; }
.inv-ribbon { background: var(--iv-surface); border-bottom: 1px solid var(--iv-line); box-shadow: var(--iv-shadow); }

.inv-ribbon-strip {
  display: flex; align-items: stretch; gap: 8px;
  background: linear-gradient(180deg, var(--iv-blue), var(--iv-blue-dk));
  color: #fff; padding: 0 8px; height: 26px;
}
.inv-ribbon-brand { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; padding-right: 6px; }
.inv-ribbon-mark { color: #bfe0ff; font-size: 13px; }
.inv-ribbon-tabs { display: flex; align-items: stretch; gap: 1px; flex: 1; }
.inv-ribbon-tab {
  border: none; background: transparent; color: rgba(255,255,255,.82);
  padding: 0 11px; font-size: 11.5px; font-weight: 600; cursor: pointer;
  border-bottom: 2px solid transparent; line-height: 24px;
}
.inv-ribbon-tab:hover { background: rgba(255,255,255,.12); color: #fff; }
.inv-ribbon-tab.active { color: #fff; border-bottom-color: #fff; background: rgba(255,255,255,.16); }
.inv-ribbon-strip-right { display: flex; align-items: center; gap: 8px; }
.inv-ribbon-scope { font-size: 11px; color: rgba(255,255,255,.85); white-space: nowrap; }

.inv-ribbon-body {
  display: flex; align-items: stretch; gap: 0;
  padding: 3px 2px 0; overflow-x: auto; width: 100%; box-sizing: border-box;
}
.inv-ribbon-group {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0 6px; border-right: 1px solid var(--iv-line);
  flex: 0 0 auto; width: max-content; min-width: 0;
}
.inv-ribbon-group:last-child { border-right: none; }
.inv-ribbon-items { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.inv-ribbon-items.wrap { flex-wrap: wrap; max-width: 430px; }
.inv-ribbon-smallcol { display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.inv-ribbon-grouplabel {
  text-align: center; font-size: 9px; color: var(--iv-ink-soft);
  padding: 2px 0 2px; white-space: nowrap; line-height: 1.2;
  max-width: 190px; overflow: hidden; text-overflow: ellipsis;
}

.inv-rib-big {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  width: 64px; min-height: 44px; padding: 3px 2px; gap: 1px;
  border: 1px solid transparent; border-radius: 5px; background: transparent;
  color: var(--iv-ink); cursor: pointer; font-size: 9.5px; line-height: 1.15; text-align: center;
}
.inv-rib-big:hover:not(.disabled) { background: var(--iv-hover); border-color: var(--iv-line); }
.inv-rib-big .inv-rib-icon { color: var(--iv-blue); display: inline-flex; }
.inv-rib-big .inv-rib-icon svg { width: 18px; height: 18px; }
.inv-rib-big.primary { background: var(--iv-active); border-color: #b9d2f6; font-weight: 600; }
.inv-rib-big.primary .inv-rib-icon { color: var(--iv-blue-dk); }
.inv-rib-big.danger .inv-rib-icon { color: var(--iv-bad); }
.inv-rib-label {
  max-width: 100%; overflow: hidden; overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.inv-rib-small {
  display: flex; align-items: center; gap: 4px;
  padding: 2px 6px 2px 4px; border: 1px solid transparent; border-radius: 4px;
  background: transparent; color: var(--iv-ink); cursor: pointer; font-size: 10.5px;
  max-width: 140px; text-align: left; min-height: 17px; white-space: nowrap; line-height: 1.15;
}
.inv-rib-small:hover:not(.disabled) { background: var(--iv-hover); border-color: var(--iv-line); }
.inv-rib-small .inv-rib-icon-sm { color: var(--iv-blue); display: inline-flex; flex: 0 0 auto; }
.inv-rib-small.danger, .inv-rib-small.danger .inv-rib-icon-sm { color: var(--iv-bad); }
.inv-rib-icon svg, .inv-rib-icon-sm svg { display: block; }
.inv-rib-icon-sm svg { width: 13px; height: 13px; }

.inv-rib-big.disabled, .inv-rib-small.disabled { opacity: .38; cursor: default; }

.inv-rib-control { display: flex; flex-direction: column; gap: 1px; padding: 0 3px; }
.inv-rib-control > span { font-size: 9px; color: var(--iv-ink-soft); }
.inv-rib-search, .inv-rib-barcode, .inv-rib-select {
  border: 1px solid var(--iv-line); border-radius: 4px; background: var(--iv-surface);
  color: var(--iv-ink); font: inherit; font-size: 11.5px; padding: 2px 6px; height: 22px;
}
.inv-rib-search { width: 240px; }
.inv-rib-barcode { width: 130px; }
.inv-rib-select { max-width: 168px; }
.inv-rib-search:focus, .inv-rib-barcode:focus, .inv-rib-select:focus {
  outline: none; border-color: var(--iv-blue); box-shadow: 0 0 0 2px rgba(47,107,212,.18);
}
.inv-rib-select:disabled { opacity: .45; }

/* --- Body: navigator + main ---------------------------------------------- */

.inv-body { flex: 1; display: flex; min-height: 0; }

.inv-nav {
  width: 230px; flex: 0 0 230px;
  background: var(--iv-nav-bg); border-right: 1px solid var(--iv-line);
  overflow-y: auto; overflow-x: hidden; padding-bottom: 8px;
}
.inv-nav[hidden] { display: none; }

.inv-nav-section { padding-bottom: 4px; border-bottom: 1px solid var(--iv-line); margin-bottom: 2px; }
.inv-nav-section:last-child { border-bottom: none; }
.inv-nav-sechead {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--iv-ink-soft);
}
.inv-nav-seclabel { flex: 1; }
.inv-nav-count { background: var(--iv-line); color: var(--iv-ink-soft); border-radius: 8px; font-size: 9.5px; padding: 0 6px; font-weight: 700; }

.inv-nav-item {
  display: flex; align-items: center; gap: 7px; width: 100%;
  padding: 4px 8px 4px 10px; border: none; border-left: 3px solid transparent;
  background: transparent; color: var(--iv-ink); font: inherit; font-size: 12px;
  cursor: pointer; text-align: left;
}
.inv-nav-item:hover { background: var(--iv-hover); }
.inv-nav-item.active { background: var(--iv-active); border-left-color: var(--iv-blue); font-weight: 600; }
.inv-nav-item.depth-1 { padding-left: 22px; font-size: 11.5px; }
.inv-nav-ico { display: inline-flex; width: 14px; flex: 0 0 14px; color: var(--iv-blue); font-size: 12px; }
.inv-nav-ico svg { width: 14px; height: 14px; }
.inv-nav-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-nav-badge {
  background: var(--iv-line); color: var(--iv-ink-soft); border-radius: 8px;
  font-size: 9.5px; font-weight: 700; padding: 0 5px; flex: 0 0 auto;
}
.inv-nav-item.active .inv-nav-badge { background: var(--iv-blue); color: #fff; }

.inv-main {
  flex: 1; min-width: 0; overflow: auto;
  background: var(--iv-bg); padding: 14px 16px 20px;
}

/* --- Sheet furniture ----------------------------------------------------- */

.inv-sheet-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 12px;
}
.inv-sheet-title { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.inv-sheet-sub { margin: 2px 0 0; font-size: 12px; color: var(--iv-ink-soft); }
.inv-sheet-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-muted { color: var(--iv-ink-soft); font-size: 12.5px; margin: 0; }
.inv-hint { margin: 8px 0 0; font-size: 11.5px; color: var(--iv-ink-soft); }
.inv-note {
  margin: 0 0 10px; padding: 6px 10px; font-size: 12px;
  border-left: 3px solid var(--iv-blue); background: var(--iv-active); border-radius: 0 5px 5px 0;
}
.inv-desc { margin: 0 0 12px; font-size: 13px; }

.inv-linkbtn {
  border: 1px solid var(--iv-line); border-radius: 5px; background: var(--iv-surface);
  color: var(--iv-ink); font: inherit; font-size: 12px; padding: 4px 11px; cursor: pointer;
}
.inv-linkbtn:hover { background: var(--iv-hover); border-color: var(--iv-blue); }
.inv-linkbtn.primary { background: var(--iv-blue); border-color: var(--iv-blue-dk); color: #fff; font-weight: 600; }
.inv-linkbtn.primary:hover { background: var(--iv-blue-dk); }
.inv-linkbtn.danger { color: var(--iv-bad); border-color: var(--iv-bad); }
.inv-linkbtn.danger:hover { background: var(--iv-bad-bg); }

.inv-empty {
  display: grid; justify-items: center; gap: 6px;
  padding: 48px 20px; text-align: center; color: var(--iv-ink-soft);
}
.inv-empty-ico { color: var(--iv-blue); opacity: .7; }
.inv-empty-ico svg { width: 34px; height: 34px; }
.inv-empty-title { font-size: 15px; font-weight: 700; color: var(--iv-ink); }
.inv-empty-sub { font-size: 12.5px; max-width: 440px; }
.inv-empty .inv-linkbtn { margin-top: 8px; }

/* --- Panels & metrics ---------------------------------------------------- */

.inv-panel {
  background: var(--iv-surface); border: 1px solid var(--iv-line);
  border-radius: 8px; padding: 10px 12px 12px; margin-bottom: 12px;
}
.inv-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.inv-panel-head h3 { margin: 0; font-size: 12.5px; font-weight: 700; }
.inv-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.inv-panel-grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.inv-panel-grid .inv-panel { margin-bottom: 0; }

.inv-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: 8px; margin-bottom: 14px; }
.inv-metric {
  border: 1px solid var(--iv-line); border-radius: 8px; padding: 8px 10px;
  background: var(--iv-surface); min-height: 58px;
}
.inv-metric.clickable { cursor: pointer; }
.inv-metric.clickable:hover { border-color: var(--iv-blue); background: var(--iv-hover); }
.inv-metric strong { display: block; font-size: 21px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.inv-metric span { font-size: 11px; color: var(--iv-ink-soft); }
.inv-metric.warn { border-color: var(--iv-warn); background: var(--iv-warn-bg); }
.inv-metric.warn strong { color: var(--iv-warn); }
.inv-metric.bad { border-color: var(--iv-bad); background: var(--iv-bad-bg); }
.inv-metric.bad strong { color: var(--iv-bad); }

.inv-card-list { display: grid; gap: 2px; }
.inv-row-btn {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 6px 7px; border: 1px solid transparent; border-radius: 6px;
  background: transparent; color: inherit; cursor: pointer; font: inherit;
}
.inv-row-btn:hover { border-color: var(--iv-line); background: var(--iv-hover); }
.inv-row-ico { font-size: 15px; flex: 0 0 auto; }
.inv-row-main { display: grid; min-width: 0; flex: 1; }
.inv-row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.inv-row-main small { color: var(--iv-ink-soft); font-size: 11px; }

.inv-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; }
.inv-cat-tile {
  display: grid; justify-items: center; gap: 1px; padding: 8px 6px;
  border: 1px solid var(--iv-line); border-radius: 8px; background: var(--iv-surface);
  color: inherit; cursor: pointer; font: inherit;
}
.inv-cat-tile:hover { border-color: var(--iv-blue); background: var(--iv-hover); }
.inv-cat-tile strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.inv-cat-tile span:last-child { font-size: 10.5px; color: var(--iv-ink-soft); text-align: center; }
.inv-cat-ico { font-size: 14px; }

/* --- Chips & status pills ------------------------------------------------ */

.inv-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.inv-chip {
  font-size: 10px; line-height: 1.65; padding: 0 6px; border-radius: 999px;
  border: 1px solid var(--iv-line); white-space: nowrap;
}
.inv-chip.warn { border-color: var(--iv-warn); background: var(--iv-warn-bg); color: var(--iv-warn); }
.inv-chip.bad { border-color: var(--iv-bad); background: var(--iv-bad-bg); color: var(--iv-bad); }
.inv-chip.ok { border-color: var(--iv-ok); background: var(--iv-ok-bg); color: var(--iv-ok); }
.inv-chip.info { border-color: var(--iv-blue); background: var(--iv-active); color: var(--iv-blue-dk); }
.dark .inv-chip.info { color: #b9d2f6; }

.inv-status {
  font-size: 11px; padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--iv-line); background: var(--iv-hover);
}
.inv-status.available { border-color: var(--iv-ok); background: var(--iv-ok-bg); color: var(--iv-ok); }
.inv-status.in_use { border-color: var(--iv-blue); background: var(--iv-active); color: var(--iv-blue-dk); }
.dark .inv-status.in_use { color: #b9d2f6; }
.inv-status.maintenance { border-color: var(--iv-warn); background: var(--iv-warn-bg); color: var(--iv-warn); }
.inv-status.out_of_service, .inv-status.retired { border-color: var(--iv-bad); background: var(--iv-bad-bg); color: var(--iv-bad); }

/* --- Tables -------------------------------------------------------------- */

.inv-table-wrap {
  overflow-x: auto; background: var(--iv-surface);
  border: 1px solid var(--iv-line); border-radius: 8px;
}
.inv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.inv-table th {
  position: sticky; top: 0; z-index: 1;
  background: var(--iv-nav-bg); border-bottom: 1px solid var(--iv-line);
  padding: 6px 10px; text-align: left; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: var(--iv-ink-soft); white-space: nowrap;
}
.inv-table td { padding: 5px 10px; border-bottom: 1px solid var(--iv-line); vertical-align: middle; }
.inv-table tbody tr:last-child td { border-bottom: none; }
.inv-table th.num, .inv-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.inv-table th.inv-th-ico, .inv-table td.inv-td-ico { width: 26px; text-align: center; padding-right: 0; }
.inv-tr { cursor: pointer; }
.inv-tr:hover { background: var(--iv-hover); }
.inv-tr.selected { background: var(--iv-active); }
.inv-tr.selected td { border-bottom-color: #b9d2f6; }
.inv-cell-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inv-cell-strong { font-weight: 600; }
.inv-loc-name { font-weight: 600; }

/* --- Item detail --------------------------------------------------------- */

.inv-detail-head { margin-bottom: 12px; }
.inv-back {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px;
  border: none; background: transparent; color: var(--iv-blue);
  font: inherit; font-size: 12px; cursor: pointer; padding: 0;
}
.inv-back:hover { text-decoration: underline; }
.inv-back svg { width: 14px; height: 14px; }
.inv-detail-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.inv-detail-title h2 { margin: 0; font-size: 19px; font-weight: 700; }
.inv-detail-ico { font-size: 24px; }
.inv-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; margin-bottom: 12px; }
.inv-detail-grid .inv-panel { margin-bottom: 0; }
.inv-details { display: grid; gap: 0; }
.inv-detail {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 4px 0; border-bottom: 1px dashed var(--iv-line); font-size: 12.5px;
}
.inv-detail:last-child { border-bottom: none; }
.inv-detail > span { color: var(--iv-ink-soft); flex: 0 0 auto; }
.inv-detail strong { text-align: right; font-weight: 600; word-break: break-word; }
.inv-notes { white-space: pre-wrap; font-size: 12.5px; margin: 0; }

.inv-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.inv-tag {
  font-size: 11px; padding: 1px 8px; border-radius: 999px;
  border: 1px solid var(--iv-line); background: var(--iv-surface);
  color: inherit; font-family: inherit; cursor: pointer;
}
.inv-tag:hover { border-color: var(--iv-blue); background: var(--iv-hover); }

/* --- Forms --------------------------------------------------------------- */

.inv-form { max-width: 1180px; }
.inv-form-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.inv-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 12px; align-items: start; }
.inv-form-group {
  background: var(--iv-surface); border: 1px solid var(--iv-line);
  border-radius: 8px; padding: 10px 12px 12px;
}
.inv-form-grouptitle {
  margin: 0 0 8px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; color: var(--iv-ink-soft);
}
.inv-form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-form-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inv-form-field > span { font-size: 11px; color: var(--iv-ink-soft); }
.inv-form-field:has(.inv-textarea) { grid-column: 1 / -1; }
.inv-form-hint { font-size: 10.5px; color: var(--iv-ink-soft); }
.inv-form-actions, .inv-form-foot { display: flex; gap: 6px; flex-wrap: wrap; }
.inv-form-foot { margin-top: 14px; }

.inv-input {
  border: 1px solid var(--iv-line); border-radius: 5px;
  background: var(--iv-surface); color: var(--iv-ink);
  font: inherit; font-size: 12.5px; padding: 4px 7px; width: 100%; box-sizing: border-box;
}
.inv-input:focus { outline: none; border-color: var(--iv-blue); box-shadow: 0 0 0 2px rgba(47,107,212,.18); }
.inv-textarea { resize: vertical; font-family: inherit; }
.inv-check { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding-top: 14px; }
.inv-import-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; margin-top: 8px;
}
.inv-import-result { margin-top: 8px; font-size: 12.5px; }
.inv-import-errors { margin: 4px 0 0 16px; padding: 0; color: var(--iv-bad); }
.inv-colgrid { display: flex; flex-wrap: wrap; gap: 5px; }
.inv-colgrid code {
  font-size: 11px; padding: 1px 7px; border-radius: 4px;
  background: var(--iv-nav-bg); border: 1px solid var(--iv-line);
}

/* --- Sheet tabs + status bar -------------------------------------------- */

.inv-sheettabs {
  display: flex; align-items: stretch; gap: 2px; flex: 0 0 auto;
  padding: 3px 6px 0; background: var(--iv-nav-bg);
  border-top: 1px solid var(--iv-line); overflow-x: auto;
}
.inv-sheettab {
  display: flex; align-items: center; gap: 5px;
  border: 1px solid var(--iv-line); border-bottom: none;
  border-radius: 6px 6px 0 0; background: var(--iv-bg); color: var(--iv-ink-soft);
  font: inherit; font-size: 11.5px; padding: 3px 9px; cursor: pointer;
  max-width: 200px; white-space: nowrap;
}
.inv-sheettab:hover { background: var(--iv-hover); color: var(--iv-ink); }
.inv-sheettab.active { background: var(--iv-surface); color: var(--iv-ink); font-weight: 600; border-color: var(--iv-blue); border-bottom: 2px solid var(--iv-surface); }
.inv-sheettab-ico { display: inline-flex; color: var(--iv-blue); }
.inv-sheettab-ico svg { width: 13px; height: 13px; }
.inv-sheettab-label { overflow: hidden; text-overflow: ellipsis; }
.inv-sheettab-close { color: var(--iv-ink-soft); font-size: 14px; line-height: 1; padding: 0 1px; border-radius: 3px; }
.inv-sheettab-close:hover { background: var(--iv-bad-bg); color: var(--iv-bad); }

.inv-statusbar {
  display: flex; align-items: center; gap: 12px; flex: 0 0 auto;
  height: 22px; padding: 0 10px; background: var(--iv-surface);
  border-top: 1px solid var(--iv-line); font-size: 11px; color: var(--iv-ink-soft);
}
.inv-status-spacer { flex: 1; }
.inv-status-cell { white-space: nowrap; }
.inv-status-cell.warn { color: var(--iv-warn); font-weight: 600; }

/* --- Narrow windows ----------------------------------------------------- */

@media (max-width: 900px) {
  .inv-nav { width: 176px; flex-basis: 176px; }
  .inv-rib-search { width: 150px; }
  .inv-form-fields { grid-template-columns: 1fr; }
}
