/* HR review (/xignsys/hr): next steps per application, the info below the
   table and the HR WORKS dialog. Form fields, the login card and messages
   come from booth.css; colours are the --xs-* tokens from xs.css. */

.hr-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hr-actions small {
  flex-basis: 100%;
  color: var(--xs-muted);
  font-size: 13px;
  text-align: right;
}

.hr-actions small.hr-fail {
  color: var(--xs-bad-text);
}

.hr-notice {
  margin-bottom: 20px;
}

.hr-info {
  margin-top: 20px;
}

.hr-info p {
  margin: 0 0 6px;
}

.hr-fingerprint {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.hr-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 28px;
  border: 1px solid var(--xs-line);
  border-radius: var(--xs-radius);
  background: var(--xs-card);
  color: var(--xs-text);
  box-shadow: var(--xs-shadow);
}

.hr-dialog::backdrop {
  background: rgba(11, 11, 12, 0.45);
}

.hr-dialog h2 {
  margin: 0;
}

/* Fields side by side stay top-aligned when one has a hint below. */
.hr-dialog .bs-field {
  align-content: start;
}

.hr-verified {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--xs-surface);
}

.hr-verified .bs-label-small {
  margin: 0 0 10px;
}

.hr-dialog__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 560px) {
  .hr-dialog {
    padding: 20px 16px;
  }

  .hr-dialog .bs-row {
    grid-template-columns: 1fr;
  }

  .hr-dialog__buttons {
    flex-direction: column-reverse;
  }
}
