/* The recruiter's decision timeline, copied from SmartSearch.RecruitOS
   ClientApp/src/components/JobApplicants/pipeline/pipeline.css (commit 553c38f6, 2026-10-12), lines 1-327: the type
   scale, timeline, quotes and reasons. The ss-ui-toolkit tokens they read are declared below with the
   toolkit's values. */
.rc-applicants {
  /* Values from the recruitOS UI toolkit's design tokens (ss-ui-toolkit 1.7.0, src/styles/colors.css). */
  --color-white: #fff;
  --color-gray-300: #ddd;
  --color-gray-400: #ccc;
  --color-gray-600: #6b7280;
  --color-text-primary: #1e293b;
  --color-text-secondary: #1f2937;
  --color-success-light: #d1fae5;
  --color-error-light: #fee2e2;
  --color-error-border: #dc2626;
  --color-pill-success-text: #2e7d32;
  --color-pill-error-text: #b42318;
}

/* Submitted, Rejected and Coordinate row expansions: two open columns (a vertical decision timeline
   at the left, the bucket's own content at the right) divided by hairlines, never boxed cards, and
   a footer bar only when there is something to do. The timeline, quote and feedback treatments are
   ported from RecruitOS.Extension (DecisionTimeline, TimelineQuote, HmFeedbackBox) on its toolkit
   --color-* tokens, which the island entry loads.

   Every type decision lives in the scale below; nothing else in this file sets a font-size,
   font-weight, font-family or line-height of its own.

   Scoped under .rc-applicants so nothing leaks into the Razor page the island is embedded in. The
   Didn't move forward dialog portals to document.body, outside that scope, so it carries its own
   class and reads only the global toolkit tokens and the same scale. */

.rc-applicants,
.rc-applicants__loop-dialog {
  /* ── Type scale ─────────────────────────────────────────────────────── */
  --px-font: 'Poppins', Helvetica, Arial, sans-serif;
  --px-leading: 1.4;
  --px-size-label: 10px;
  --px-size-meta: 11px;
  --px-size-body: 12px;
  --px-weight-regular: 400;
  --px-weight-link: 500;
  --px-weight-strong: 600;
  --px-tracking-label: 0.06em;
  --px-color-text: var(--color-text-primary);
  --px-color-muted: var(--color-text-tertiary);
  --px-color-link: var(--color-primary);
  /* Text on the light tints: the plain success green and critical red fall short of AA there. */
  --px-color-approved: var(--color-pill-success-text);
  --px-color-declined: var(--color-pill-error-text);
}

.rc-applicants .rc-applicants__journey,
.rc-applicants .rc-applicants__journey :is(button, input, textarea),
.rc-applicants__loop-dialog,
.rc-applicants__loop-dialog :is(button, input, textarea) {
  font-family: var(--px-font);
  line-height: var(--px-leading);
}

.rc-applicants .rc-applicants__journey {
  min-width: 0;
  padding: 0 4px;
  color: var(--px-color-text);
  font-size: var(--px-size-body);
  font-weight: var(--px-weight-regular);
}

/* ── The scale, as classes ────────────────────────────────────────────── */

/* Section label: Timeline, Candidate, What they saw. */
.rc-applicants .x-label {
  margin: 0 0 8px;
  color: var(--px-color-muted);
  font-size: var(--px-size-label);
  font-weight: var(--px-weight-strong);
  letter-spacing: var(--px-tracking-label);
  text-transform: uppercase;
}

.rc-applicants .x-body {
  margin: 0;
  font-size: var(--px-size-body);
}

.rc-applicants .x-meta {
  margin: 2px 0 0;
  color: var(--px-color-muted);
  font-size: var(--px-size-meta);
}

/* The one link style: contact links and the card toggle alike. */
.rc-applicants .rc-applicants__journey .x-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--px-color-link);
  font-size: var(--px-size-body);
  font-weight: var(--px-weight-link);
  text-decoration: none;
  cursor: pointer;
}

.rc-applicants .rc-applicants__journey .x-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.rc-applicants .rc-applicants__journey .x-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.rc-applicants .rc-applicants__journey .x-link > i {
  font-size: var(--px-size-label);
}

/* ── Frame: two open columns ──────────────────────────────────────────── */

.rc-applicants .x-pipe {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  align-items: start;
}

.rc-applicants .x-pipe__timeline {
  min-width: 0;
  padding-right: 32px;
}

.rc-applicants .x-pipe__side {
  min-width: 0;
  padding-left: 32px;
  border-left: 1px solid var(--rc-line);
}

.rc-applicants .x-timeline__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

/* The read-only submitted card sits in the right column at its own width, always in view. */
.rc-applicants .x-pipe__side > .x-snapshot-card {
  max-width: 360px;
}

/* ── Decision timeline ────────────────────────────────────────────────────
   An 8px dot on a 1px connector, the title at the left with its short date at the right, and under
   it what was said. The dot only repeats the step's text in color, and carries its own text label. */

.rc-applicants .x-timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rc-applicants .x-timeline__step {
  position: relative;
  padding: 0 0 12px 18px;
}

.rc-applicants .x-timeline__step:last-child {
  padding-bottom: 0;
}

.rc-applicants .x-timeline__dot {
  position: absolute;
  top: 4px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gray-400);
}

.rc-applicants .x-timeline__step--awaiting .x-timeline__dot {
  background: var(--color-warning);
}

.rc-applicants .x-timeline__step--approved .x-timeline__dot {
  background: var(--color-success);
}

.rc-applicants .x-timeline__step--rejected .x-timeline__dot {
  background: var(--color-critical);
}

/* The step still to come: a hollow gray dot, a dashed connector into it, a muted title. */
.rc-applicants .x-timeline__step--pending .x-timeline__dot {
  box-sizing: border-box;
  border: 1px solid var(--color-gray-600);
  background: var(--color-white);
}

.rc-applicants .x-timeline__step--pending .x-timeline__title {
  color: var(--px-color-muted);
  font-weight: var(--px-weight-regular);
}

.rc-applicants .x-timeline__step:has(+ .x-timeline__step--pending)::before {
  width: 0;
  background: none;
  border-left: 1px dashed var(--color-gray-400);
}

.rc-applicants .x-timeline__step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 0;
  left: 3.5px;
  width: 1px;
  background: var(--color-gray-300);
}

.rc-applicants .x-timeline__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.rc-applicants .x-timeline__title {
  font-size: var(--px-size-body);
  font-weight: var(--px-weight-strong);
}

.rc-applicants .x-timeline__title--approved {
  color: var(--px-color-approved);
}

.rc-applicants .x-timeline__date {
  flex-shrink: 0;
  color: var(--px-color-muted);
  font-size: var(--px-size-body);
}

/* A date with a full-date tooltip: the dotted underline says there is more to read. */
.rc-applicants .x-timeline__date--detailed {
  border-radius: 2px;
  text-decoration: underline dotted var(--color-gray-400);
  text-underline-offset: 2px;
  cursor: default;
}

.rc-applicants .x-timeline__date--detailed:hover,
.rc-applicants .x-timeline__date--detailed:focus-visible {
  color: var(--color-text-secondary);
}

.rc-applicants .x-timeline__date--detailed:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

/* How long the step took to reach the next one, beside the connector. */
.rc-applicants .x-timeline__elapsed {
  display: block;
  margin-top: 4px;
}

/* The ticking counter keeps equal-width digits so the line does not jitter every second. */
.rc-applicants .x-timeline__elapsed--live {
  font-variant-numeric: tabular-nums;
}

/* ── Quotes: one component, tinted to the decision ────────────────────── */

.rc-applicants .x-box {
  margin-top: 4px;
  padding: 6px 10px;
  border-radius: 6px;
}

/* A move the recruiter made by hand: their note in neutral gray, tinted to no decision. */
.rc-applicants .x-box--neutral {
  background: var(--color-gray-100);
}

.rc-applicants .x-box--approved {
  background: var(--color-success-light);
}

.rc-applicants .x-box--rejected {
  background: var(--color-error-light);
}

.rc-applicants .x-quote {
  margin: 0;
  font-size: var(--px-size-body);
  font-style: italic;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rc-applicants .x-quote__mark {
  margin-right: 6px;
  font-size: var(--px-size-label);
  opacity: 0.7;
}

.rc-applicants .x-quote__mark--close {
  margin: 0 0 0 4px;
}

.rc-applicants .x-box--neutral .x-quote__mark {
  color: var(--color-gray-600);
}

.rc-applicants .x-box--approved .x-quote__mark {
  color: var(--px-color-approved);
}

.rc-applicants .x-box--rejected .x-quote__mark {
  color: var(--px-color-declined);
}

/* A hiring manager's pass: the quote, a dashed divider only when both parts exist, then the reasons as small text. */
.rc-applicants .x-box__divider {
  margin: 6px 0;
  border-top: 1px dashed var(--color-error-border);
  opacity: 0.4;
}

.rc-applicants .x-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  color: var(--px-color-declined);
  font-size: var(--px-size-meta);
  list-style: none;
}

/* A muted dot between reasons. After, not before, so a wrapped line never starts with one. */
.rc-applicants .x-reasons li:not(:last-child)::after {
  content: '\00b7';
  margin-left: 6px;
  color: var(--px-color-muted);
}
