/* A thin layer over Bootstrap; the design work is Bootstrap's. */

.generator-card {
  height: 100%;
  transition: border-color .12s ease-in-out;
}

.generator-card:hover {
  border-color: var(--bs-primary);
}

/* Job progress log ------------------------------------------------------- */

#job-log {
  max-height: 22rem;
  overflow-y: auto;
  font-size: .875rem;
}

#job-log .log-entry {
  padding: .2rem 0;
  border-bottom: 1px solid var(--bs-border-color-translucent);
}

#job-log .log-entry:last-child {
  border-bottom: 0;
}

#job-log .log-entry.level-warning { color: var(--bs-warning-text-emphasis); }
#job-log .log-entry.level-error   { color: var(--bs-danger-text-emphasis); }

.log-seq {
  display: inline-block;
  min-width: 2.2rem;
  color: var(--bs-secondary-color);
  font-variant-numeric: tabular-nums;
}

/* Long German field values in the preview table need to wrap. */
.vvt-preview td {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Plausibility findings, grouped per Datenbestand ------------------------- */

.issue-groups > li {
  margin-bottom: .5rem;
}

.issue-groups > li:last-child {
  margin-bottom: 0;
}

.issue-subject {
  font-weight: 600;
}

.issue-groups ul {
  margin-bottom: 0;
}

/* Native <dialog> ---------------------------------------------------------
   Bootstrap ships no styles for it (and we vendor its CSS only, no JS), so
   the modal chrome is here rather than in a .modal component. */

.injust-dialog {
  width: min(46rem, calc(100vw - 2rem));
  padding: 1.25rem 1.5rem;
  border: 0;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--bs-box-shadow-lg);
  color: var(--bs-body-color);
  background-color: var(--bs-body-bg);
}

.injust-dialog::backdrop {
  background-color: rgb(0 0 0 / .5);
}

/* Imported values can be long; the columns must not force the dialog wider
   than the viewport. */
.injust-dialog td,
.injust-dialog th {
  word-break: break-word;
}
