/* Mirror Hub — Jobs board (/jobs).
   Inventory + sales management surface. Editorial-meets-terminal:
   tabular-nums on every number, hairline rows, plum hover, mono ids. */

.jb-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 22px 28px 60px;
  gap: 18px;
  overflow-y: auto;
}

/* ── Filter bar ─────────────────────────────────────────────────────── */
.jb-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.jb-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--mh-border);
  border-radius: var(--mh-r-input);
  height: var(--mh-row-h);
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  color: var(--mh-text-mute);
  transition: border-color var(--mh-dur), color var(--mh-dur);
}
.jb-search:focus-within {
  border-color: var(--mh-plum);
  color: var(--mh-plum);
}
.jb-search input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  height: 100%;
  color: var(--mh-text);
  font-size: 13px;
  font-family: var(--mh-mono);
}
.jb-search input::placeholder { color: var(--mh-text-faint); }
.jb-spacer { flex: 1; }
.jb-total {
  font-size: 11px;
  color: var(--mh-text-mute);
  padding-right: 6px;
}

/* ── Table ──────────────────────────────────────────────────────────── */
.jb-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--mh-bg);
}
.jb-table thead th {
  font-family: var(--mh-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mh-text-mute);
  font-weight: 500;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mh-line);
  background: var(--mh-bg);
  position: sticky;
  top: 0;
  z-index: 1;
}
.jb-table thead th.jb-num { text-align: right; }

.jb-row {
  cursor: pointer;
  transition: background var(--mh-dur);
}
.jb-row:hover { background: var(--mh-plum-soft); }
.jb-row td {
  padding: 12px;
  border-bottom: 1px solid var(--mh-line);
  vertical-align: middle;
  font-size: 12.5px;
}

.jb-thumb {
  width: 44px; height: 44px;
  border-radius: var(--mh-r-input);
  overflow: hidden;
  background: var(--mh-card);
  border: 1px solid var(--mh-line);
}
.jb-thumb img,
.jb-thumb svg {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.jb-id { color: var(--mh-plum-bright); font-size: 11px; }
.jb-sku-cell { line-height: 1.3; }
.jb-sku {
  color: var(--mh-plum-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.jb-id-sub {
  color: var(--mh-text-faint);
  font-size: 9.5px;
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.jb-title-line {
  color: var(--mh-text);
  font-size: 13px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jb-flowline {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}
.jb-flow {
  font-size: 9px;
}

.jb-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}
.jb-num-good { color: var(--mh-good); }
.jb-num-bad  { color: var(--mh-danger); }
.jb-num-mute { color: var(--mh-text-mute); }

.jb-when {
  text-align: left;
  color: var(--mh-text-mute);
  font-size: 11px;
}

.jb-loading,
.jb-error {
  text-align: center;
  padding: 28px;
  color: var(--mh-text-mute);
  font-size: 12px;
}
.jb-error { color: var(--mh-danger); }

.jb-empty {
  margin: 60px auto;
  max-width: 480px;
  text-align: center;
  color: var(--mh-text-mute);
  font-size: 12px;
  padding: 18px 22px;
  border: 1px dashed var(--mh-line);
  border-radius: var(--mh-r-card);
}

.jb-pagebar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  padding-top: 6px;
  font-size: 11px;
  color: var(--mh-text-mute);
}
