/* Area: registration — styles (classes start with xreg-). */

/* bulk selection on the Candidates list */
.xreg-sel .cand-row { position: relative; padding-left: 50px; }
.xreg-tick { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px;
  border: 2px solid var(--line-strong); background: var(--paper); display: grid; place-items: center; color: transparent; cursor: pointer; z-index: 1; }
.xreg-tick:hover { border-color: var(--navy); }
.xreg-tick.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.xreg-bulktop { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 2px 0 8px; }
.xreg-bulkbar { position: sticky; bottom: 14px; z-index: 8; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px; padding: 10px 12px; box-shadow: 0 10px 30px -12px rgba(11, 31, 75, .45); }
.xreg-bulkbar[hidden] { display: none; }
.xreg-bulkn { font-size: 14px; margin-right: 4px; }
.xreg-bulkn strong { font-size: 18px; color: var(--navy); }
.xreg-skip { max-height: 260px; overflow: auto; margin: 6px 0 0; padding-left: 18px; font-size: 13.5px; }
@media (max-width: 900px) { .xreg-bulkbar { bottom: calc(var(--tab-h, 64px) + 10px + env(safe-area-inset-bottom)); } }
@media (max-width: 760px) {
  .xreg-sel .cand-row { padding-left: 48px; }
  .xreg-bulkbar .btn { flex: 1 1 auto; }
  .xreg-bulkn { flex-basis: 100%; }
}

/* verify checklist */
.xreg-checks { display: flex; flex-direction: column; gap: 8px; }
.xreg-check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.xreg-check input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.xreg-check span { display: flex; flex-direction: column; }
.xreg-check:has(input:checked) { border-color: var(--leaf); background: color-mix(in srgb, var(--leaf-soft) 50%, transparent); }
.xreg-thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.xreg-thumb { width: 140px; display: flex; flex-direction: column; gap: 4px; }
.xreg-thumb > :first-child { width: 140px; height: 140px; border-radius: 12px; background: var(--chip); display: grid; place-items: center; object-fit: cover; text-align: center; padding: 6px; }
.xreg-thumb img { padding: 0 !important; }

/* candidate page section */
.xreg-line { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.xreg-line svg { flex: none; margin-top: 2px; }
.xreg-line.good svg { color: var(--leaf); }
.xreg-line.bad svg { color: var(--red); }
.xreg-docs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.xreg-miss { color: var(--red); font-weight: 600; }
.xreg-ok { color: var(--leaf); font-weight: 600; }
.xreg-offers { display: flex; flex-direction: column; gap: 4px; }
.xreg-hist pre { white-space: pre-wrap; font: 13px/1.5 var(--font); margin: 6px 0 0; color: var(--mute); }
.xreg-pin { color: var(--leaf); min-height: 1em; }

/* duplicates */
.xreg-dgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xreg-dside { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .xreg-dgrid { grid-template-columns: 1fr; } }

/* setup */
.xreg-rules { display: flex; flex-direction: column; }
.xreg-rule { display: grid; grid-template-columns: minmax(0, 2fr) 90px 90px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.xreg-rule:last-child { border-bottom: 0; }
.xreg-rule-name { display: flex; flex-direction: column; min-width: 0; align-self: center; }
.xreg-rule input, .xreg-rule select { min-height: 40px; width: 100%; }
.xreg-num { max-width: 90px; }
.xreg-add { margin-top: 10px; }
@media (max-width: 760px) {
  .xreg-rule { grid-template-columns: 1fr 1fr; }
  .xreg-rule-name { grid-column: 1 / -1; }
  .xreg-rule .btn { grid-column: 1 / -1; justify-self: start; }
  .xreg-num { max-width: none; }
}

/* trainee app: invite a friend */
.xreg-refcode { font: 800 28px/1.2 var(--font); letter-spacing: .12em; color: var(--navy); background: var(--gold-soft); border: 1px dashed var(--gold);
  border-radius: 12px; padding: 10px 14px; text-align: center; margin: 8px 0; }
@media (prefers-color-scheme: dark) { .xreg-refcode { color: var(--gold-light); } }

/* report and lists: wide tables scroll inside their card on a phone */
.xreg-report .card, .xreg-report .cards-2 > *, .page-body > .card { min-width: 0; }
