/* HR Records (People) page — page-specific widgets.
 * Loads AFTER styles.css + marketing.css. LIGHT theme — never with page.css. */

/* Panels here are shorter than a full app screen; the 460px floor on
 * .mockup__body would leave dead space under them. */
.mockup__body.pm { min-height: 0; }

/* ── Shared avatar ─────────────────────────────────────────────── */
.hav { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; background: var(--grad); flex: none; }
.hav--lg { width: 46px; height: 46px; font-size: 15px; }

/* ── Employee 360 profile (hero) ───────────────────────────────── */
.emp__head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.emp__id { flex: 1; min-width: 0; }
.emp__name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.emp__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.emp__badge { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 5px 11px; white-space: nowrap; color: #067a55; background: rgba(16, 185, 129, 0.11); border: 1px solid rgba(16, 185, 129, 0.3); }
.emp__tabs { display: flex; gap: 2px; overflow-x: auto; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.emp__tab { padding: 11px 11px 9px; font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.emp__tab--on { color: var(--brand); border-bottom-color: var(--brand); background: var(--surface); }
.emp__tab--ext { color: var(--muted-2); }
.emp__strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 13px 18px 0; }
.emp__strip b { font-size: 13px; color: var(--ink); }
.emp__strip span { font-size: 11.5px; color: var(--muted); }
.emp__prog { flex: 1; min-width: 120px; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.emp__prog i { display: block; height: 100%; width: 40%; background: var(--grad); }
.emp__foot { padding: 4px 18px 16px; font-size: 11.5px; color: var(--muted); }

/* ── Journey steps ─────────────────────────────────────────────── */
.jrny { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 6px; }
.jstep { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 13px; font-size: 13px; box-shadow: var(--shadow-sm); }
.jstep__day { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 7px; white-space: nowrap; text-align: center; flex: none; }
.jstep__day--pre { color: #6b4bff; background: rgba(124, 92, 255, 0.09); border-color: rgba(124, 92, 255, 0.28); }
.jstep__t { flex: 1; min-width: 0; }
.jstep__t b { display: block; font-weight: 650; color: var(--ink); }
.jstep__t span { font-size: 11.5px; color: var(--muted); }
.jstep__type { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 8px; white-space: nowrap; }
.jstep__st { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.jstep__st--done { color: #059669; }
.jstep__st--wait { color: #b45309; }
.jstep__st--todo { color: var(--muted-2); }

/* ── Stacked templates ─────────────────────────────────────────── */
.stk { padding: 16px; }
.stk__srcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stk__src { border: 1px dashed var(--line-2); border-radius: 11px; background: var(--surface-2); padding: 10px 11px; }
.stk__src b { display: block; font-size: 12.5px; color: var(--ink); }
.stk__src span { font-size: 10.5px; color: var(--muted); }
.stk__mid { display: flex; align-items: center; gap: 10px; margin: 12px 0; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.stk__mid::before, .stk__mid::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.stk__out { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stk__row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line-2); font-size: 12.5px; }
.stk__row:last-child { border-bottom: 0; }
.stk__row b { color: var(--ink); font-weight: 650; }
.stk__row--gone b { color: var(--muted-2); text-decoration: line-through; }
.stk__from { margin-left: auto; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.stk__act { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 3px 7px; white-space: nowrap; }
.stk__act--add { color: #0d96b5; background: rgba(33, 212, 253, 0.16); }
.stk__act--rep { color: #6b4bff; background: rgba(124, 92, 255, 0.13); }
.stk__act--rem { color: #c0392b; background: rgba(225, 29, 72, 0.09); }

/* ── Document vault ────────────────────────────────────────────── */
.docs { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.docs__row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 10px 12px; font-size: 12.5px; }
.docs__ico { font-size: 15px; flex: none; }
.docs__t { flex: 1; min-width: 0; }
.docs__t b { display: block; color: var(--ink); font-weight: 650; }
.docs__t span { font-size: 11px; color: var(--muted); }
.docs__exp { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.docs__exp--red { color: #b42318; background: rgba(225, 29, 72, 0.1); }
.docs__exp--amber { color: #b45309; background: rgba(245, 158, 11, 0.14); }
.docs__exp--ok { color: var(--muted); background: var(--surface-2); }
.docs__lock { font-size: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }

/* ── Activation triage ─────────────────────────────────────────── */
.trg { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.trg__row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 10px 12px; font-size: 12.5px; }
.trg__n { flex: 1; min-width: 0; }
.trg__n b { display: block; color: var(--ink); font-weight: 650; }
.trg__n span { font-size: 10.5px; color: var(--muted); font-style: italic; }
.trg__out { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--muted); }
.trg__out--staff { color: #067a55; background: rgba(16, 185, 129, 0.11); border-color: rgba(16, 185, 129, 0.3); }
.trg__out--ext { color: #0d96b5; background: rgba(33, 212, 253, 0.14); border-color: rgba(33, 212, 253, 0.32); }
.trg__out--former { color: #b45309; background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.32); }
.trg__note { display: flex; align-items: center; gap: 9px; margin-top: 2px; border-radius: 11px; padding: 11px 13px; font-size: 12px; color: var(--ink-2); background: var(--grad-soft); border: 1px solid var(--line); }

/* ── Org chart ─────────────────────────────────────────────────── */
.org { padding: 22px 16px; display: flex; flex-direction: column; align-items: center; }
.org__node { border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow-sm); padding: 8px 12px; text-align: center; min-width: 116px; }
.org__node b { display: block; font-size: 12px; color: var(--ink); }
.org__node span { font-size: 10px; color: var(--muted); }
.org__node--root { border-color: rgba(124, 92, 255, 0.35); background: var(--grad-soft); }
.org__stem { width: 2px; height: 18px; background: var(--line-2); }
.org__kids { display: flex; gap: 12px; width: 100%; padding-top: 18px; position: relative; }
.org__kids::before { content: ''; position: absolute; top: 0; left: 16.6%; right: 16.6%; height: 2px; background: var(--line-2); }
.org__kid { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.org__kid::before { content: ''; position: absolute; top: -18px; left: calc(50% - 1px); width: 2px; height: 18px; background: var(--line-2); }
.org__sub { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.org__leaf { font-size: 11px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 9px; white-space: nowrap; }
.org__hint { margin-top: 16px; font-size: 11.5px; color: var(--muted); text-align: center; }

/* ── HR console ────────────────────────────────────────────────── */
.hrc { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.hrc__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hrc__tile { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 13px; box-shadow: var(--shadow-sm); }
.hrc__num { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.hrc__num--warn { color: #b45309; }
.hrc__num--mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 17px; font-weight: 600; }
.hrc__lbl { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.hrc__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hrc__list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.hrc__lhead { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 10px 13px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.hrc__lrow { display: flex; align-items: center; gap: 9px; padding: 9px 13px; font-size: 12.5px; border-bottom: 1px solid var(--line-2); }
.hrc__lrow:last-child { border-bottom: 0; }
.hrc__lrow span { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrc__when { margin-left: auto; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--muted); white-space: nowrap; }
.hrc__when--warn { color: #b45309; }

/* ── Cross-links to the rest of the suite ──────────────────────── */
.suite { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.suite__card { display: block; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.suite__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.suite__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--grad-soft); margin-bottom: 13px; }
.suite__card h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; }
.suite__card p { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 10px; }
.suite__more { font-size: 13px; font-weight: 700; color: var(--brand); }

@media (max-width: 760px) {
  .stk__srcs { grid-template-columns: 1fr; }
  .hrc__tiles { grid-template-columns: repeat(2, 1fr); }
  .hrc__lists { grid-template-columns: 1fr; }
  .org__kids { gap: 8px; }
  .org__node { min-width: 92px; padding: 7px 8px; }
  .emp__head { flex-wrap: wrap; }
}

/* Video — same shape as the eSign/EHR page's player so the site reads as one
   system. Dark video background so letterboxing doesn't flash white. */
.hr-video { max-width: 880px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--grad-soft); box-shadow: var(--shadow-lg); }
.hr-video video { display: block; width: 100%; height: auto; background: #0b0d12; }
.hr-video__cap { text-align: center; font-size: 13px; color: var(--muted); margin: 14px auto 0; }
