/* Production tab (certificates.js). The run table, the verdict pills, the
   customer tag and the three empty states are in run-table.css, which the unit
   page loads too; this sheet is the tab's own layout and the browse table's
   controls. Palette + resets + .btn* come from theme.css. */

.certs-root {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--lf-nav-h) - var(--lf-strip-h, 0px)); /* minus the section strip, if shown */
  /* The whole column scrolls: the lookup answer and the browse table share one
     scroll rather than nesting two, so a long list under a long answer is one
     page to read. */
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.certs-top {
  background: var(--lf-panel);
  border-bottom: 1px solid var(--lf-border);
  padding: 12px 20px;
  flex-shrink: 0;
}
.certs-top h1 { font-size: 17px; font-weight: 700; color: var(--lf-text); }

.certs-intro {
  color: var(--lf-text-muted);
  font-size: 12px;
  line-height: 1.6;
  padding: 14px 20px 0;
  max-width: 760px;
  flex-shrink: 0;
}
.certs-intro strong { color: var(--lf-text); }

.certs-hint, .certs-loading { color: var(--lf-text-muted); font-size: 13px; }
.certs-error {
  color: var(--lf-danger, #c0392b);
  font-size: 13px;
  padding: 10px 12px;
  border: 1px solid var(--lf-border);
  border-radius: 8px;
  background: var(--lf-panel);
}
/* The browse table under the lookup */
.certs-browse {
  flex: 0 0 auto;
  padding: 4px 20px 32px;
  border-top: 1px solid var(--lf-border);
}
.certs-browse-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 16px 0 10px;
}
.certs-browse-head h2 { font-size: 15px; font-weight: 700; color: var(--lf-text); }
.certs-browse-tools { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.certs-browse-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--lf-text-muted);
}
.certs-select {
  background: var(--lf-panel);
  border: 1px solid var(--lf-border);
  border-radius: 8px;
  color: var(--lf-text);
  font-size: 13px;
  padding: 6px 8px;
}
.certs-select:focus { outline: 2px solid var(--lf-accent); outline-offset: -1px; }
.certs-list-stale { opacity: .55; }
.certs-row-id {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--lf-accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.certs-row-id:hover { filter: brightness(1.15); }
.certs-browse-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  max-width: 980px;
}
.certs-browse-count { font-size: 12px; color: var(--lf-text-muted); }
.certs-browse-pager { display: inline-flex; gap: 8px; }
.certs-browse-omitted {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--lf-text-muted);
}
.certs-browse-omitted[hidden] { display: none; }
