/* ============================================
   MODULES — Leave, Onboarding, Offboarding,
   Training, Team, Settings, Dashboard items
   ============================================ */

/* ---- DASHBOARD — Request List ---- */
.request-list { display: flex; flex-direction: column; gap: var(--space-3); }

.request-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--surface);
}
.request-item:last-child { border-bottom: none; }

.request-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.request-name { font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--navy); }
.request-meta { font-size: var(--text-xs); color: var(--text-muted); }
.request-actions { display: flex; gap: var(--space-2); }

/* ---- DASHBOARD — Pipeline List ---- */
.pipeline-list { display: flex; flex-direction: column; gap: var(--space-4); }

.pipeline-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--surface);
}
.pipeline-item:last-child { border-bottom: none; }

.pipeline-info {
  width: 140px;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  flex-shrink: 0;
}
.pipeline-name { font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--navy); }
.pipeline-meta { font-size: var(--text-xs); color: var(--text-muted); }

/* ---- DASHBOARD — Training List ---- */
.training-list { display: flex; flex-direction: column; gap: var(--space-3); }

.training-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.training-item--overdue { background: var(--error-light); }

.training-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}
.training-icon--error   { background: var(--error);   color: white; }
.training-icon--warning { background: var(--warning); color: white; }
.training-icon--info    { background: var(--info);    color: white; }

.training-info { flex: 1; display: flex; flex-direction: column; }
.training-name { font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--navy); }
.training-meta { font-size: var(--text-xs); color: var(--text-muted); }

/* ---- DASHBOARD — Headcount ---- */
.headcount-grid { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }

.headcount-dept { display: flex; align-items: center; gap: var(--space-3); }
.dept-name { width: 90px; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary); flex-shrink: 0; }
.dept-bar-wrap { flex: 1; height: 6px; background: var(--surface-mid); border-radius: var(--radius-full); overflow: hidden; }
.dept-bar { height: 100%; background: var(--primary); border-radius: var(--radius-full); }
.dept-count { width: 24px; font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--navy); text-align: right; }

.headcount-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
.headcount-total strong { font-size: var(--text-lg); color: var(--navy); font-weight: var(--weight-extra); }

/* ---- CALENDAR ---- */
.calendar-placeholder { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.calendar-header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.calendar-header-row h3 { font-size: var(--text-lg); font-weight: var(--weight-bold); }

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
  margin-bottom: var(--space-2);
}
.cal-days-header span {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--text-muted);
  padding: var(--space-2) 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-1);
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  flex-direction: column;
  gap: 2px;
}
.cal-day:hover { background: var(--surface); }
.cal-day.empty { pointer-events: none; }
.cal-day.today { background: var(--primary); color: white; font-weight: var(--weight-bold); }
.cal-day.leave-day { background: var(--primary-light); color: var(--primary-dark); font-weight: var(--weight-semi); }

.leave-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }

.cal-legend { display: flex; gap: var(--space-5); margin-top: var(--space-5); }
.legend-item { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-muted); font-weight: var(--weight-medium); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot--teal   { background: var(--primary); }
.legend-dot--amber  { background: var(--warning); }
.legend-dot--info   { background: var(--info); }

/* ---- ONBOARDING ---- */
.onboard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.onboard-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.onboard-identity { display: flex; align-items: center; gap: var(--space-3); }
.onboard-name { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--navy); }
.onboard-role { font-size: var(--text-sm); color: var(--text-muted); }

.onboard-meta {
  display: flex;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

.onboard-progress { display: flex; flex-direction: column; gap: var(--space-2); }

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: var(--space-2); }

.checklist-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

.checklist-item--done { color: var(--text-muted); text-decoration: line-through; }

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  background: var(--success);
  color: white;
}

.check-icon--empty {
  background: transparent;
  border: 1.5px solid var(--border-mid);
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- OFFBOARDING ---- */
.offboard-list { display: flex; flex-direction: column; gap: var(--space-5); }

.offboard-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  max-width: 720px;
}

.offboard-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.offboard-dates { text-align: right; }
.offboard-date-label { display: block; font-size: var(--text-xs); font-weight: var(--weight-semi); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.offboard-date { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--navy); }

/* Offboard phases / timeline */
.offboard-phases { display: flex; flex-direction: column; gap: 0; position: relative; margin-bottom: var(--space-4); }

.offboard-phase {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  position: relative;
}
.offboard-phase:last-child { padding-bottom: 0; }

.offboard-phase::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.offboard-phase:last-child::before { display: none; }

.phase-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
}
.phase-dot--done   { background: var(--success); border-color: var(--success); }
.phase-dot--active { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }

.offboard-phase--done .phase-body .phase-name { color: var(--text-muted); }
.offboard-phase--active .phase-body .phase-name { color: var(--primary); font-weight: var(--weight-bold); }

.phase-body { display: flex; flex-direction: column; }
.phase-name { font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--text-primary); }
.phase-date { font-size: var(--text-xs); color: var(--text-muted); }

/* ---- TRAINING COURSES ---- */
.training-course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.training-course-card--overdue { border-color: var(--error); }

.course-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.course-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.course-icon--error   { background: var(--error-light); }
.course-icon--warning { background: var(--warning-light); }
.course-icon--info    { background: var(--info-light); }
.course-icon--success { background: var(--success-light); }

.course-header > div:nth-child(2) { flex: 1; }
.course-name { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--navy); }
.course-cadence { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

.course-progress-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
}

.course-staff { display: flex; align-items: center; gap: var(--space-2); }
.staff-label { font-size: var(--text-xs); color: var(--text-muted); }

.course-actions { display: flex; gap: var(--space-3); }

/* ---- TEAM ---- */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
  transition: box-shadow var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); }

.team-name { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--navy); }
.team-role { font-size: var(--text-sm); color: var(--text-secondary); }
.team-dept {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--primary);
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}
.team-actions { margin-top: var(--space-2); }

/* ---- SETTINGS ---- */
.settings-card {
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.settings-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }

.settings-icon { font-size: 28px; margin-bottom: var(--space-1); }
.settings-label { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--navy); }
.settings-desc { font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================
   VIEW TOGGLE — Manager / Personal
   ============================================ */

.view-toggle-wrap {
  padding: var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--navy-light);
}

.view-toggle {
  display: flex;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.vt-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 4px;
  background: transparent;
  border: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: var(--weight-semi);
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all var(--transition);
}

.vt-btn:hover { color: rgba(255,255,255,0.85); }

.vt-btn.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(18,22,56,0.18);
}

/* Topbar view pill */
.topbar-view-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-mid);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--text-secondary);
}

.tvp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tvp-dot--manager { background: var(--primary); }
.tvp-dot--personal { background: var(--info); }

/* Nav badge */
.nav-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: var(--weight-bold);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--warning);
  color: white;
}
.nav-badge--error { background: var(--error); }

/* ============================================
   LOCATION TAG
   ============================================ */

.location-tag {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--text-muted);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.location-tag--hybrid { background: var(--info-light); color: var(--info); }

.team-location {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  margin-top: 2px;
}

/* ============================================
   PERSONAL VIEW — Profile Strip
   ============================================ */

.profile-strip {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  color: white;
}

.profile-strip__identity {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.profile-strip .avatar { background: var(--primary); font-size: 20px; }

.profile-strip__name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: white;
  letter-spacing: -0.01em;
}

.profile-strip__meta {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.profile-strip__stats {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.pstat { text-align: center; }
.pstat-val { display: block; font-size: var(--text-2xl); font-weight: var(--weight-extra); color: white; letter-spacing: -0.02em; line-height: 1; }
.pstat-label { display: block; font-size: var(--text-xs); color: rgba(255,255,255,0.55); margin-top: 4px; font-weight: var(--weight-medium); white-space: nowrap; }
.pstat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

/* ============================================
   PERSONAL VIEW — Leave Balance
   ============================================ */

.my-leave-balance { display: flex; flex-direction: column; gap: var(--space-3); }
.leave-bal-item { display: flex; align-items: center; gap: var(--space-3); }
.leave-bal-label { width: 100px; font-size: var(--text-xs); font-weight: var(--weight-semi); color: var(--text-muted); flex-shrink: 0; }
.leave-bal-bar { flex: 1; height: 7px; background: var(--surface-mid); border-radius: var(--radius-full); overflow: hidden; }
.leave-bal-fill { height: 100%; background: var(--primary); border-radius: var(--radius-full); }
.leave-bal-fill--amber { background: var(--warning); }
.leave-bal-nums { font-size: var(--text-xs); color: var(--text-secondary); font-weight: var(--weight-medium); white-space: nowrap; }

/* Personal leave summary strip */
.my-leave-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.leave-summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.ls-num {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extra);
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.ls-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: var(--weight-semi);
  margin-top: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   MY DOCUMENTS
   ============================================ */

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.doc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.doc-card--upload {
  border-style: dashed;
  background: var(--surface);
  align-items: center;
  text-align: center;
  justify-content: center;
}

.doc-icon { font-size: 28px; }
.doc-name { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--navy); }
.doc-meta { font-size: var(--text-xs); color: var(--text-muted); }
.doc-status { margin-top: auto; }

/* Profile form */
.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   ONBOARDING WIZARD SHELL
   ============================================ */

.wizard-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font);
}

.wizard-sidebar {
  width: 240px;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.wizard-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  border-bottom: 1px solid var(--navy-light);
}

.wizard-steps {
  flex: 1;
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.wstep {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.45);
  position: relative;
  transition: all var(--transition);
}

.wstep.active { color: white; }
.wstep.done { color: rgba(255,255,255,0.7); }

.wstep-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.wstep.active .wstep-dot { background: var(--primary); box-shadow: 0 0 0 3px rgba(31,175,140,0.3); }
.wstep.done .wstep-dot { background: var(--success); }

.wizard-help {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--navy-light);
}

.wizard-help-icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.wizard-help-label { font-size: 11px; font-weight: 600; color: white; }
.wizard-help-sub { font-size: 10px; color: rgba(255,255,255,0.5); }

.wizard-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
}

/* Wizard step content area */
.wizard-step { display: none; flex: 1; overflow-y: auto; padding: var(--space-12) var(--space-10); }
.wizard-step.active { display: flex; flex-direction: column; }

/* Welcome step */
.wizard-welcome { max-width: 580px; }
.wizard-welcome-badge {
  display: inline-flex;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.wizard-welcome-title { font-size: var(--text-3xl); font-weight: var(--weight-extra); color: var(--navy); letter-spacing: -0.02em; margin-bottom: var(--space-4); }
.wizard-welcome-sub { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.7; margin-bottom: var(--space-6); }

.wizard-welcome-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-6); }
.wcard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.wcard-icon { font-size: 24px; }
.wcard strong { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--navy); }
.wcard p { font-size: var(--text-xs); color: var(--text-muted); margin: 0; }

/* Wizard form content */
.wizard-content { max-width: 620px; width: 100%; }
.wizard-header { margin-bottom: var(--space-6); }
.wizard-header h2 { font-size: var(--text-2xl); font-weight: var(--weight-extra); color: var(--navy); letter-spacing: -0.02em; margin-bottom: var(--space-2); }
.wizard-header p { font-size: var(--text-base); color: var(--text-muted); }
.wizard-form { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6); border: 1px solid var(--border); }

/* RTW options */
.rtw-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.rtw-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}
.rtw-card:hover { border-color: var(--primary); }
.rtw-card--selected { border-color: var(--primary); background: var(--primary-light); }
.rtw-icon { font-size: 24px; }
.rtw-label { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--navy); }
.rtw-sub { font-size: var(--text-xs); color: var(--text-muted); }
.rtw-check {
  position: absolute;
  top: 10px; right: 10px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.rtw-card--selected .rtw-check { opacity: 1; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-mid);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: all var(--transition);
  margin-bottom: var(--space-4);
}
.upload-zone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.upload-zone__inner { padding: var(--space-8); text-align: center; }
.upload-icon { font-size: 28px; margin-bottom: var(--space-3); }
.upload-label { font-size: var(--text-sm); color: var(--text-secondary); font-weight: var(--weight-medium); }
.upload-browse { color: var(--primary); font-weight: var(--weight-bold); cursor: pointer; }
.upload-hint { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-2); }

/* Uploaded files */
.uploaded-files { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }
.uploaded-file {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--success-light);
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--success);
}
.uploaded-file span { flex: 1; }

/* Policy list */
.policy-list { display: flex; flex-direction: column; gap: var(--space-4); }
.policy-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  transition: border-color var(--transition);
}
.policy-item.confirmed { border-color: var(--success); background: var(--success-light); }
.policy-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.policy-body { flex: 1; }
.policy-name { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--navy); }
.policy-desc { font-size: var(--text-sm); color: var(--text-muted); margin: 4px 0 var(--space-3); }
.policy-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.policy-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: bold;
  margin-top: 2px;
}
.policy-item.confirmed .policy-check::after { content: '✓'; color: var(--success); font-size: 18px; }

/* IT checklist */
.it-checklist { display: flex; flex-direction: column; gap: var(--space-3); }
.it-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.it-item--done { background: var(--success-light); border-color: var(--success); }
.it-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: bold;
  background: var(--surface-mid);
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}
.it-icon--done { background: var(--success); color: white; }
.it-body { flex: 1; }
.it-name { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--navy); }
.it-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* Training wizard list */
.training-wizard-list { display: flex; flex-direction: column; gap: var(--space-4); }
.tw-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.tw-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.tw-icon--error { background: var(--error-light); }
.tw-icon--warning { background: var(--warning-light); }
.tw-icon--info { background: var(--info-light); }
.tw-body { flex: 1; }
.tw-name { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--navy); }
.tw-meta { font-size: var(--text-xs); color: var(--text-muted); margin: 3px 0; }
.tw-desc { font-size: var(--text-sm); color: var(--text-secondary); }
.tw-actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); flex-shrink: 0; padding-top: 2px; }

/* Done screen */
.wizard-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  padding-top: var(--space-8);
}

.done-circle { margin-bottom: var(--space-5); }
.done-title { font-size: var(--text-3xl); font-weight: var(--weight-extra); color: var(--navy); letter-spacing: -0.02em; margin-bottom: var(--space-3); }
.done-sub { font-size: var(--text-base); color: var(--text-muted); margin-bottom: var(--space-6); }

.done-items { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-8); width: 100%; text-align: left; }
.done-item {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm); color: var(--text-secondary);
}
.done-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.done-dot--warn { background: var(--warning); }
.done-dot--info { background: var(--info); }

.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* Wizard footer nav */
.wizard-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.wizard-progress-bar { height: 3px; background: var(--surface-mid); }
.wizard-progress-fill { height: 100%; background: var(--primary); transition: width 0.3s ease; }

.wizard-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
}

.wizard-step-counter { font-size: var(--text-xs); font-weight: var(--weight-semi); color: var(--text-muted); }

/* Modal wide variant */
.modal--wide { max-width: 680px; }

/* Responsive wizard */
@media (max-width: 768px) {
  .wizard-sidebar { display: none; }
  .wizard-step { padding: var(--space-6) var(--space-5); }
  .wizard-welcome-cards { grid-template-columns: 1fr; }
  .rtw-options { grid-template-columns: 1fr 1fr; }
  .profile-form-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .my-leave-summary { grid-template-columns: repeat(2, 1fr); }
  .profile-strip { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .profile-strip__stats { gap: var(--space-4); }
}

/* ============================================
   ACCESSNI STEP
   ============================================ */

.accessni-explainer { margin-bottom: var(--space-5); }

.ani-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.ani-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ani-info-icon { font-size: 22px; }
.ani-info-label { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--navy); }
.ani-info-desc { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.6; }

.ani-status-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.ani-choice {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}
.ani-choice:hover { border-color: var(--primary); }
.ani-choice--selected { border-color: var(--primary); background: var(--primary-light); }
.ani-choice--selected .rtw-check { opacity: 1; }

.ani-choice-icon { font-size: 22px; }
.ani-choice-label { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--navy); }
.ani-choice-sub { font-size: var(--text-xs); color: var(--text-muted); }

@media (max-width: 680px) {
  .ani-info-row { grid-template-columns: 1fr; }
  .ani-status-choice { grid-template-columns: 1fr; }
}

/* ============================================
   ABSENCE — RTW Interviews, Bradford, History
   ============================================ */

.rtw-interview-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.rtw-int-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-4);
}

.rtw-int-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--surface);
  border-bottom: 1px solid var(--surface);
  margin-bottom: var(--space-5);
}

.rtw-int-form { padding-top: var(--space-2); }
.rtw-form-title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-4);
}

/* RTW re-verify section */
.rtw-check-section {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-5) 0;
  border-left: 3px solid var(--info);
}
.rtw-check-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.rtw-check-icon { font-size: 22px; flex-shrink: 0; }
.rtw-check-title { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--navy); }
.rtw-check-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* Bradford explainer */
.bradford-explainer {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  color: white;
}
.bradford-formula {
  font-size: var(--text-xl);
  font-weight: var(--weight-extra);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.bradford-desc { font-size: var(--text-sm); color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ============================================
   GRIEVANCE & DISCIPLINARY
   ============================================ */

.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.case-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.case-type-badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.case-type-badge--grievance  { background: var(--info-light);    color: var(--info); }
.case-type-badge--disciplinary { background: var(--error-light);  color: var(--error); }

.case-identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
}
.case-person-name { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--navy); }
.case-person-role { font-size: var(--text-xs); color: var(--text-muted); }

.case-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.case-detail-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  font-size: var(--text-sm);
}
.case-detail-label {
  width: 180px;
  flex-shrink: 0;
  font-weight: var(--weight-semi);
  color: var(--text-muted);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.case-detail-val { color: var(--text-primary); font-weight: var(--weight-medium); }

/* Case timeline */
.case-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: var(--space-4);
}

.case-event {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  position: relative;
}
.case-event:last-child { padding-bottom: 0; }
.case-event::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.case-event:last-child::before { display: none; }

.case-event-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--white);
  flex-shrink: 0;
  margin-top: 2px;
}
.case-event-dot--done   { background: var(--success); border-color: var(--success); }
.case-event-dot--active { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }

.case-event-body { display: flex; flex-direction: column; }
.case-event--done .case-event-name { color: var(--text-muted); }
.case-event--active .case-event-name { color: var(--primary); font-weight: var(--weight-bold); }
.case-event-name { font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--text-primary); }
.case-event-date { font-size: var(--text-xs); color: var(--text-muted); }

/* Policy reference card */
.policy-reference-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.policy-reference-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-5);
}

.proc-steps { display: flex; flex-direction: column; gap: var(--space-4); }
.proc-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}
.proc-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm); font-weight: var(--weight-bold);
  flex-shrink: 0;
}
.proc-step-body { flex: 1; }
.proc-step-name { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--navy); }
.proc-step-desc { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 4px; }

/* ============================================
   WIZARD — Terms, Pension, Radio, Rights, DSE
   ============================================ */

/* Written statement of particulars */
.terms-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.terms-grid { display: flex; flex-direction: column; }
.terms-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--surface);
  font-size: var(--text-sm);
}
.terms-row:last-child { border-bottom: none; }
.terms-label { font-weight: var(--weight-semi); color: var(--text-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.terms-value { color: var(--text-primary); font-weight: var(--weight-medium); line-height: 1.5; }

/* Pension cards */
.pension-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}
.pension-info-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.pension-info-icon { font-size: 24px; margin-bottom: var(--space-2); }
.pension-info-label { font-size: var(--text-xs); font-weight: var(--weight-semi); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 4px; }
.pension-info-value { font-size: var(--text-2xl); font-weight: var(--weight-extra); color: var(--navy); letter-spacing: -0.02em; line-height: 1; }
.pension-info-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

.pension-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all var(--transition);
}
.pension-option:hover { border-color: var(--primary); }
.pension-option--selected { border-color: var(--primary); background: var(--primary-light); }
.pension-option-icon { font-size: 22px; flex-shrink: 0; }
.pension-option-label { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--navy); }
.pension-option-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 4px; }
.pension-selected-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; }

/* Radio groups for tax / student loan */
.radio-group { display: flex; flex-direction: column; gap: var(--space-3); }
.radio-group--inline { flex-direction: row; flex-wrap: wrap; gap: var(--space-2); }
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: border-color var(--transition);
}
.radio-option:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.radio-option--compact { padding: var(--space-2) var(--space-3); font-size: var(--text-sm); font-weight: var(--weight-medium); }
.radio-option input { margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.radio-label { font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--navy); }
.radio-sub { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.radio-body { display: flex; flex-direction: column; }

/* Confirm checkbox */
.confirm-check-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.confirm-check-label input { margin-top: 3px; flex-shrink: 0; accent-color: var(--primary); width: 16px; height: 16px; }

/* Statutory rights cards */
.rights-section { display: flex; flex-direction: column; gap: var(--space-3); }
.rights-title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}
.right-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}
.right-card-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.right-card-body { flex: 1; }
.right-card-name { font-size: var(--text-sm); font-weight: var(--weight-bold); color: var(--navy); margin-bottom: 4px; }
.right-card-desc { font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }

/* DSE assessment */
.dse-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}
.dse-section-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--navy);
  margin-bottom: var(--space-4);
}
.dse-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--surface);
  gap: var(--space-4);
}
.dse-question:last-child { border-bottom: none; }
.dse-q-label { font-size: var(--text-sm); color: var(--text-secondary); flex: 1; }
.dse-options { display: flex; gap: var(--space-2); flex-shrink: 0; }
.dse-btn {
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-mid);
  background: transparent;
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.dse-btn:hover { border-color: var(--primary); color: var(--primary); }
.dse-btn--selected { background: var(--primary); border-color: var(--primary); color: white; }

/* Probation bar (onboarding card) */
.probation-bar {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}
.prob-label { font-size: var(--text-xs); font-weight: var(--weight-semi); color: var(--text-muted); margin-bottom: var(--space-2); }
.prob-track {
  height: 6px;
  background: var(--surface-mid);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 4px;
}
.prob-fill {
  height: 100%;
  background: var(--info);
  border-radius: var(--radius-full);
}
.prob-dates {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
}
