/* Audit, jobs and operational table rules. */
.defect-message-cell {
  min-width: 260px;
  white-space: pre-wrap;
  color: var(--muted);
}

.audit-filter-form {
  margin: 0 0 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) minmax(150px, auto);
  gap: 12px;
  align-items: end;
}

.audit-visit-filter-form {
  grid-template-columns: repeat(5, minmax(120px, 1fr)) minmax(150px, auto);
}

.admin-filter-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.admin-filter-field span {
  min-height: 1.1em;
}

.audit-filter-form input,
.audit-filter-form select,
.jobs-filter-form input,
.jobs-filter-form select,
.jobs-recovery-form input,
.jobs-recovery-form select {
  width: 100%;
  min-width: 0;
}

.audit-filter-form button,
.jobs-filter-form button,
.jobs-recovery-form button {
  width: 100%;
  min-height: 48px;
  align-self: end;
}

.jobs-filter-form {
  margin: 0 0 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 260px)) minmax(150px, 220px);
  gap: 12px;
  align-items: end;
  justify-content: start;
}

.jobs-recovery-form {
  margin: 0 0 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(210px, max-content);
  gap: 12px;
  align-items: end;
  justify-content: start;
}

.jobs-table {
  min-width: 1220px;
}

.jobs-table td {
  overflow-wrap: anywhere;
}

.job-progress-cell {
  display: grid;
  gap: 6px;
  min-width: 120px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.job-progress-bar {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(24, 48, 45, 0.1);
}

.job-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.audit-table {
  min-width: 1120px;
  table-layout: fixed;
}

.audit-table:not(.visit-table) th:nth-child(1) {
  width: 130px;
}

.audit-table:not(.visit-table) th:nth-child(2) {
  width: 100px;
}

.audit-table:not(.visit-table) th:nth-child(3) {
  width: 240px;
}

.audit-table:not(.visit-table) th:nth-child(4) {
  width: 250px;
}

.audit-table:not(.visit-table) th:nth-child(5) {
  width: 110px;
}

.audit-table td,
.audit-table code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.audit-table code {
  white-space: normal;
}

.audit-context-cell {
  min-width: 300px;
}

.audit-context-list {
  margin: 0;
  display: grid;
  gap: 8px;
}

.audit-context-list div {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid #edf2f6;
  border-radius: 12px;
  background: #f8fafc;
}

.audit-context-list dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.audit-context-list dd {
  margin: 0;
  max-height: 8.4em;
  overflow: auto;
  overflow-wrap: anywhere;
  color: #2b3942;
  font-size: 0.86rem;
  line-height: 1.38;
}
