/* hiring-module.css — internal review inbox (Director+). Token-driven
   (var(--rr-*)) per repo convention — survives the pending Neon Glass merge. */

.hm-section { padding: 4px 2px 40px; }

.hm-stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 18px; }

.hm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hm-tab { background: transparent; border: 1px solid var(--rr-border); color: var(--rr-text-muted); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-family: inherit; cursor: pointer; }
.hm-tab-active { background: rgba(242,57,247,0.14); border-color: var(--rr-pink); color: var(--rr-text); }

.hm-list { display: flex; flex-direction: column; gap: 8px; }
.hm-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--rr-panel); border: 1px solid var(--rr-border); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.hm-row.is-unread .hm-row-name { font-weight: 800; }
.hm-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rr-pink); box-shadow: 0 0 8px var(--rr-pink); flex-shrink: 0; margin-right: -4px; }
.hm-row-main { min-width: 0; }
.hm-row-name { font-size: 14.5px; }
.hm-row-meta { font-size: 12px; color: var(--rr-text-muted); margin-top: 3px; }
.hm-row-side { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.hm-detail-head { margin-bottom: 14px; }
.hm-back { background: none; border: none; color: var(--rr-cyan); font-family: inherit; font-size: 13px; cursor: pointer; padding: 0 0 10px; display: block; }
.hm-detail-title { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.hm-detail-sub { font-size: 12.5px; color: var(--rr-text-muted); margin-top: 6px; }
.hm-detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .hm-detail-grid { grid-template-columns: 1fr; } }

.hm-block-title { font-weight: 700; font-size: 13.5px; color: var(--rr-text-dim); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .3px; }
.hm-answer { padding: 10px 0; border-bottom: 1px solid var(--rr-border); }
.hm-answer:last-child { border-bottom: none; }
.hm-answer-q { font-size: 13px; color: var(--rr-text-muted); margin-bottom: 4px; }
.hm-answer-a { font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.hm-video-dur { font-size: 11px; color: var(--rr-text-muted); }

.hm-avail-grid { display: grid; grid-template-columns: 44px repeat(3, 1fr); gap: 4px; font-size: 11px; }
.hm-avail-h { text-align: center; color: var(--rr-text-muted); }
.hm-avail-hrs { display: block; font-size: 10px; color: var(--rr-text-dim); }
.hm-avail-day { color: var(--rr-text-dim); font-weight: 600; display: flex; align-items: center; }
.hm-avail-cell { aspect-ratio: 1.6; border-radius: 6px; border: 1px solid var(--rr-border); background: rgba(0,0,0,0.2); }
.hm-avail-cell.is-on { background: rgba(88,249,244,0.22); border-color: var(--rr-cyan); }
.hm-avail-note { font-size: 12px; color: var(--rr-text-muted); margin-top: 10px; }

.hm-note-add { display: flex; gap: 8px; margin-bottom: 12px; }
.hm-note-add input { flex: 1; background: rgba(0,0,0,0.25); border: 1px solid var(--rr-border); border-radius: 8px; padding: 8px 10px; color: var(--rr-text); font-family: inherit; }
.hm-timeline { max-height: 340px; overflow-y: auto; }
.hm-tl-row { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--rr-border); font-size: 12.5px; }
.hm-tl-row:last-child { border-bottom: none; }
.hm-tl-time { color: var(--rr-text-muted); font-size: 11px; }

.hm-decision-bar { position: sticky; bottom: 0; display: flex; gap: 10px; flex-wrap: wrap; background: var(--rr-panel-2); border: 1px solid var(--rr-border); border-radius: 14px; padding: 12px; margin-top: 16px; }

.hm-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; }
.hm-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 201; width: min(720px, 94vw); max-height: 88vh; overflow-y: auto; background: var(--rr-violet-2); border: 1px solid var(--rr-border); border-radius: 16px; padding: 22px; box-shadow: 0 24px 80px rgba(0,0,0,0.55); }
.hm-modal-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hm-modal-h h3 { font-size: 18px; }
.hm-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .hm-two-col { grid-template-columns: 1fr; } }
.hm-modal-x { cursor: pointer; color: var(--rr-text-muted); font-size: 16px; }
.hm-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.hm-field { margin-bottom: 12px; }
.hm-field label { display: block; font-size: 12px; color: var(--rr-text-dim); margin-bottom: 5px; font-weight: 600; }
.hm-field input, .hm-field select, .hm-field textarea { width: 100%; background: rgba(0,0,0,0.28); border: 1px solid var(--rr-border); border-radius: 9px; padding: 9px 11px; color: var(--rr-text); font-family: inherit; font-size: 13.5px; }
.hm-field textarea { min-height: 80px; resize: vertical; }
.hm-preview { background: rgba(0,0,0,0.25); border-radius: 10px; padding: 12px; margin-top: 8px; }
.hm-preview-subject { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
/* The letters are real email HTML written for a white inbox — preview them on
   white so directors read exactly what the applicant will see. */
.hm-preview-body { background: #ffffff; color: #333; border-radius: 8px; padding: 16px; font-size: 13.5px; line-height: 1.5; max-height: 340px; overflow-y: auto; }
.hm-preview-body a { color: #6d28d9; }

.hm-templates { max-width: 620px; }
.hm-tmpl-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rr-border); cursor: pointer; }
.hm-tmpl-row:last-child { border-bottom: none; }
.hm-edit-link { color: var(--rr-cyan); font-size: 12.5px; }
.hm-tmpl-edit { max-width: 620px; }

.hm-chip { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: rgba(88,249,244,0.12); border: 1px solid var(--rr-border-cyan); color: var(--rr-light-cyan); }
.hm-position-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hm-position-side { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.hm-position-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.hm-filter-pill { background: transparent; border: 1px solid var(--rr-border); color: var(--rr-text-muted); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-family: inherit; cursor: pointer; }
.hm-filter-pill.is-active { background: rgba(242,57,247,0.14); border-color: var(--rr-pink); color: var(--rr-text); }

.hm-shift-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-shift-chip { background: transparent; border: 1px solid var(--rr-border); color: var(--rr-text-muted); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-family: inherit; cursor: pointer; }
.hm-shift-chip.is-on { background: rgba(242,57,247,0.14); border-color: var(--rr-pink); color: var(--rr-text); }

/* ── Onboarding Packet Composer (Task 3b) — 2-step hire modal ─────────── */
.hm-hire-to { font-size: 13.5px; color: var(--rr-text); padding: 8px 0; }
/* Scoped to the composer's "Body … Edit as plain text" label only — do NOT
   redefine the shared `.hm-field label` rule (display:block, line 62), it's
   used by every field label in the interview/reject/talentpool/positions/
   templates modals too and a blanket override there silently breaks their
   layout. */
.hm-body-label { display: flex; align-items: center; justify-content: space-between; }
.hm-plaintext-toggle { background: none; border: none; color: var(--rr-cyan); font-size: 11.5px; font-family: inherit; font-weight: 600; cursor: pointer; padding: 0; text-transform: none; letter-spacing: 0; }
/* Editable HTML body — .hm-preview-body already forces a white background
   ("real email HTML written for a white inbox", see that rule above); this
   just adds the affordances an editable surface needs on top of it. */
.hm-hire-html { min-height: 220px; cursor: text; }
.hm-hire-html:focus { outline: 2px solid var(--rr-cyan); outline-offset: 2px; }
.hm-hire-plaintext { min-height: 220px; font-family: monospace; font-size: 12.5px; }

.hm-warnbox { background: rgba(255,194,75,0.10); border: 1px solid rgba(255,194,75,0.35); border-radius: 10px; padding: 10px 12px; margin: 4px 0 14px; }
.hm-warn-row { color: var(--rr-warn); font-size: 12.5px; line-height: 1.6; }

/* Phase 4b — re-key CTA (hiring detail "Onboarding" card) + confirm modal */
.hm-rekey-cta { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rr-border); }
.hm-rekey-note { font-size: 12.5px; color: var(--rr-text-muted); line-height: 1.55; margin: 0 0 10px; }
.hm-rekey-warn { color: var(--rr-warn); font-size: 13px; font-weight: 600; }

.hm-checklist { display: flex; flex-direction: column; gap: 9px; margin-bottom: 4px; }
.hm-check-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; cursor: pointer; }
.hm-check-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--rr-pink); cursor: pointer; flex-shrink: 0; }

.hm-hire-step2-sub { font-size: 13px; color: var(--rr-text-muted); line-height: 1.55; margin: 0 0 16px; }
.hm-deliver-actions { display: flex; flex-direction: column; gap: 10px; }

.hm-doc-link { background: none; border: 0; padding: 0; color: var(--rr-accent, #29b6f6); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.hm-doc-link:hover { text-decoration: underline; }
