/* ShiftLynx V1.5 — Employee assignment model */
.employee-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.employee-section-heading h4 { margin: 0 0 5px; }
.employee-section-heading p { margin: 0; color: var(--muted); line-height: 1.5; }
.employee-model-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(37, 131, 255, .28);
  border-radius: 999px;
  color: #72c8ff;
  background: rgba(37, 131, 255, .09);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.employee-explainer-card {
  display: flex;
  gap: 13px;
  margin: 0 0 18px;
  padding: 15px 16px;
  border: 1px solid rgba(18, 214, 181, .2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(18,214,181,.08), rgba(37,131,255,.05));
}
.employee-explainer-card svg { width: 20px; height: 20px; color: var(--teal); flex: 0 0 auto; margin-top: 2px; }
.employee-explainer-card strong { display: block; margin-bottom: 4px; }
.employee-explainer-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.employee-role-model-section label small,
.employee-cover-editor label small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.employee-cover-item {
  align-items: center;
}
.employee-cover-item > div {
  display: grid;
  gap: 3px;
}
.employee-cover-item span { color: #d8e8f7; }
.employee-cover-item small { color: var(--muted); }
.employee-cover-shift-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #9edcff;
  background: rgba(37,131,255,.1);
  font-size: .7rem;
  font-weight: 750;
}
@media (max-width: 680px) {
  .employee-section-heading { flex-direction: column; }
}

/* =========================================================
   ShiftLynx Premium Employee Directory — Sprint 8.1
========================================================= */
.employee-directory-shell {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(25, 180, 255, .09), transparent 32%),
    linear-gradient(145deg, rgba(5, 18, 31, .96), rgba(2, 10, 18, .98));
}

.employee-directory-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(92, 189, 255, .13);
}

.employee-directory-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.employee-directory-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #32cbff;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.employee-directory-header h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.employee-directory-header p {
  max-width: 650px;
  margin: 7px 0 0;
  color: #87a7c2;
  line-height: 1.55;
}

.employee-directory-tools {
  width: min(410px, 100%);
}

.employee-search-box {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid rgba(74, 157, 217, .24);
  border-radius: 15px;
  background: rgba(1, 9, 17, .72);
  transition: .2s ease;
}

.employee-search-box:focus-within {
  border-color: rgba(40, 199, 255, .62);
  box-shadow: 0 0 0 4px rgba(40, 199, 255, .08);
}

.employee-search-box svg {
  width: 18px;
  color: #5e87a7;
}

.employee-search-box .search-input {
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.employee-summary-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.employee-summary-card {
  min-height: 94px;
  padding: 17px 18px;
  border: 1px solid rgba(69, 139, 190, .2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(10, 34, 55, .82), rgba(4, 18, 31, .86));
  box-shadow: 0 13px 36px rgba(0, 0, 0, .18);
}

.employee-summary-card span {
  color: #82a2bb;
  font-size: .78rem;
  font-weight: 700;
}

.employee-summary-card strong {
  display: block;
  margin-top: 7px;
  color: #f7fbff;
  font-size: 1.65rem;
  line-height: 1;
}

.employee-summary-card.success strong { color: #49e9ae; }
.employee-summary-card.cyan strong { color: #38cbff; }
.employee-summary-card.warning strong { color: #ffc55f; }

.employee-card-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.employee-premium-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(61, 151, 214, .22);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(7, 28, 46, .97), rgba(2, 13, 23, .98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.employee-premium-card:hover,
.employee-premium-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(43, 198, 255, .52);
  box-shadow: 0 24px 58px rgba(0, 0, 0, .34), 0 0 0 1px rgba(43, 198, 255, .05);
  outline: none;
}

.employee-card-glow {
  position: absolute;
  width: 190px;
  height: 190px;
  top: -110px;
  right: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 190, 255, .13), transparent 68%);
  pointer-events: none;
}

.employee-premium-header,
.employee-premium-footer,
.employee-role-strip,
.employee-metric-grid {
  position: relative;
  z-index: 1;
}

.employee-premium-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.employee-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 13px;
}

.employee-premium-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(64, 207, 255, .35);
  border-radius: 16px;
  color: white;
  background: linear-gradient(145deg, #17488e, #256df2 58%, #16bdf4);
  box-shadow: 0 10px 26px rgba(20, 117, 244, .25);
  font-weight: 900;
}

.employee-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.employee-name-line h4 {
  overflow: hidden;
  margin: 0;
  color: #fff;
  font-size: 1.04rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.employee-status-dot.active { background: #24e69f; box-shadow: 0 0 12px rgba(36, 230, 159, .7); }
.employee-status-dot.inactive { background: #ffae55; }

.employee-identity p {
  margin: 4px 0 7px;
  color: #9bb8ce;
  font-size: .82rem;
}

.employee-department-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #59d3ff;
  font-size: .72rem;
  font-weight: 800;
}
.employee-department-label svg { width: 13px; }

.employee-card-statuses {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.employee-setup-badge,
.employee-ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 850;
  white-space: nowrap;
}
.employee-setup-badge { color: #ffca6c; background: rgba(255, 173, 55, .1); }
.employee-ready-badge { color: #67efbd; background: rgba(29, 213, 151, .1); }
.employee-setup-badge svg,
.employee-ready-badge svg { width: 12px; }

.employee-role-strip {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  border: 1px solid rgba(71, 145, 197, .17);
  border-radius: 16px;
  background: rgba(1, 11, 20, .48);
}

.employee-role-strip > div > span,
.employee-metric > span {
  display: block;
  margin-bottom: 6px;
  color: #6f91ab;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.employee-role-strip strong {
  color: #edf8ff;
  font-size: .83rem;
}

.employee-cover-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.employee-cover-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #b9dcf2;
  background: rgba(126, 95, 255, .13);
  font-size: .69rem;
  font-weight: 800;
}
.employee-cover-chip.regular { background: rgba(22, 194, 222, .12); }
.employee-cover-chip small { color: #7f9eb6; font-size: .58rem; }
.employee-muted-value { color: #7896ac; font-size: .75rem; }

.employee-metric-grid {
  display: grid;
  grid-template-columns: .8fr .85fr 1.35fr;
  gap: 10px;
}

.employee-metric {
  min-width: 0;
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(66, 139, 190, .15);
  border-radius: 15px;
  background: rgba(6, 23, 37, .62);
}

.employee-metric strong {
  color: #fff;
  font-size: 1rem;
}
.employee-metric strong small { color: #7ea3bd; font-size: .68rem; }
.employee-metric p { margin: 5px 0 0; color: #6f8da3; font-size: .67rem; }
.employee-metric button {
  display: block;
  margin-top: 5px;
  padding: 0;
  border: 0;
  color: #37caff;
  background: transparent;
  font-size: .67rem;
  font-weight: 800;
  cursor: pointer;
}

.employee-metric .availability-preview {
  gap: 4px;
}
.employee-metric .day-pill {
  padding: 4px 6px;
  color: #8edcff;
  background: rgba(30, 150, 232, .12);
  font-size: .62rem;
}

.employee-premium-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid rgba(66, 139, 190, .14);
}

.employee-profile-btn,
.employee-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid rgba(70, 161, 222, .23);
  border-radius: 11px;
  color: #dff4ff;
  background: rgba(9, 37, 59, .72);
  cursor: pointer;
  transition: .18s ease;
}
.employee-profile-btn { padding: 0 13px; font-size: .75rem; font-weight: 850; }
.employee-profile-btn svg { width: 15px; }
.employee-icon-btn { width: 38px; padding: 0; }
.employee-icon-btn svg { width: 15px; }
.employee-profile-btn:hover,
.employee-icon-btn:hover { border-color: #29c4ff; background: rgba(16, 68, 103, .78); }
.employee-icon-btn.danger:hover { color: #ff8c99; border-color: rgba(255, 84, 102, .55); background: rgba(96, 18, 30, .35); }
.employee-card-actions { display: flex; gap: 7px; }

.employee-empty-premium {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  padding: 60px 20px;
  color: #88a9c0;
  text-align: center;
}
.employee-empty-premium strong { margin-top: 13px; color: white; font-size: 1rem; }
.employee-empty-premium p { margin: 6px 0 0; }
.employee-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #44cdff;
  background: rgba(23, 156, 225, .12);
}

@media (max-width: 1250px) {
  .employee-card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .employee-directory-shell { padding: 18px; }
  .employee-directory-header { align-items: stretch; flex-direction: column; }
  .employee-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .employee-premium-header { flex-direction: column; }
  .employee-card-statuses { justify-items: start; grid-auto-flow: column; }
  .employee-role-strip,
  .employee-metric-grid { grid-template-columns: 1fr; }
}
.invite-access-section {
  border: 1px solid rgba(47, 184, 255, 0.18);
  background:
    linear-gradient(
      180deg,
      rgba(5, 23, 38, 0.82),
      rgba(3, 17, 29, 0.72)
    );
}

.invite-toggle-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 184, 255, 0.22);
  border-radius: 14px;
  cursor: pointer;
  background: rgba(5, 18, 30, 0.72);
}

.invite-toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.invite-toggle-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #1e293b;
  position: relative;
  flex-shrink: 0;
  transition: 0.2s ease;
}

.invite-toggle-ui::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: 0.2s ease;
}

.invite-toggle-card input:checked + .invite-toggle-ui {
  background: #138bff;
}

.invite-toggle-card input:checked + .invite-toggle-ui::after {
  transform: translateX(20px);
  background: #ffffff;
}

.invite-toggle-copy {
  display: grid;
  gap: 4px;
}

.invite-toggle-copy strong {
  color: #ffffff;
}

.invite-toggle-copy span {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.45;
}

.employee-invite-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.employee-invite-fields[hidden] {
  display: none;
}

.invite-help {
  grid-column: 1 / -1;
  color: #7dd3fc;
  font-size: 0.88rem;
  line-height: 1.5;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.18);
}

@media (max-width: 700px) {
  .employee-invite-fields {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   EMPLOYEE ADD / EDIT WIZARD — V1.4.6
========================================================= */

.employee-wizard-modal {
  width: min(1040px, calc(100vw - 40px));
  max-width: 1040px;
  max-height: min(92vh, 940px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.employee-wizard-modal .modal-header {
  flex: 0 0 auto;
}

.employee-wizard-modal #employeeForm {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.employee-wizard-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 24px;
}

.employee-wizard-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 2px 14px;
}

.employee-wizard-kicker {
  display: block;
  margin-bottom: 5px;
  color: #38bdf8;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.employee-wizard-topbar h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.22rem;
}

.employee-wizard-topbar p {
  max-width: 620px;
  margin: 6px 0 0;
  color: #94a3b8;
  line-height: 1.5;
}

.employee-wizard-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(56, 189, 248, .2);
  border-radius: 999px;
  background: rgba(14, 165, 233, .08);
  color: #7dd3fc;
  font-size: .82rem;
  font-weight: 700;
}

.employee-wizard-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  padding: 10px 0 20px;
}

.employee-wizard-progress > i {
  height: 2px;
  margin: 0 8px;
  background: rgba(148, 163, 184, .16);
}

.employee-wizard-progress-item {
  appearance: none;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: default;
}

.employee-wizard-progress-item span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 50%;
  background: #07131f;
  font-size: .82rem;
  font-weight: 800;
  transition: .2s ease;
}

.employee-wizard-progress-item small {
  font-size: .72rem;
  font-weight: 700;
}

.employee-wizard-progress-item.active,
.employee-wizard-progress-item.complete {
  color: #7dd3fc;
}

.employee-wizard-progress-item.active span {
  border-color: #0ea5e9;
  background: #0b72e7;
  color: white;
  box-shadow: 0 0 0 5px rgba(14, 165, 233, .12);
}

.employee-wizard-progress-item.complete {
  cursor: pointer;
}

.employee-wizard-progress-item.complete span {
  border-color: rgba(34, 197, 94, .4);
  background: rgba(34, 197, 94, .14);
  color: #86efac;
}

.employee-wizard-viewport {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 4px 20px;
  scrollbar-gutter: stable;
}

.employee-wizard-track {
  position: relative;
}

.employee-wizard-panel {
  display: none;
  animation: employeeWizardIn .24s ease both;
}

.employee-wizard-panel.active {
  display: grid;
  gap: 18px;
}

.employee-wizard-panel .form-section {
  padding: 22px;
  border-radius: 18px;
  background: rgba(2, 10, 19, .62);
}

.employee-wizard-panel label {
  gap: 8px;
}

.invite-access-section {
  border-color: rgba(14, 165, 233, .28) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 233, .12), transparent 42%),
    rgba(2, 10, 19, .72) !important;
}

.invite-toggle-card {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
  padding: 16px;
  border: 1px solid rgba(56, 189, 248, .22);
  border-radius: 14px;
  background: rgba(5, 18, 30, .72);
  cursor: pointer;
}

.invite-toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.invite-toggle-ui {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #1e293b;
  transition: .2s ease;
}

.invite-toggle-ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: .2s ease;
}

.invite-toggle-card input:checked + .invite-toggle-ui {
  background: #0b72e7;
}

.invite-toggle-card input:checked + .invite-toggle-ui::after {
  transform: translateX(20px);
  background: white;
}

.invite-toggle-copy {
  display: grid;
  gap: 4px;
}

.invite-toggle-copy strong { color: #f8fafc; }
.invite-toggle-copy span { color: #94a3b8; font-size: .9rem; line-height: 1.45; }

.employee-invite-fields {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
  margin-top: 16px;
}

.employee-invite-fields[hidden] { display: none; }

.invite-help {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid rgba(14, 165, 233, .18);
  border-radius: 12px;
  background: rgba(14, 165, 233, .08);
  color: #7dd3fc;
  font-size: .87rem;
  line-height: 1.5;
}

.employee-review-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(34, 197, 94, .22);
  border-radius: 16px;
  background: rgba(34, 197, 94, .07);
}

.employee-review-icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: rgba(34, 197, 94, .14);
  color: #86efac;
}

.employee-review-card strong { color: #f8fafc; }
.employee-review-card p { margin: 4px 0 0; color: #94a3b8; line-height: 1.45; }

.employee-wizard-actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 18px 24px;
  border-top: 1px solid rgba(148, 163, 184, .14);
  background: rgba(3, 12, 22, .96);
}

.employee-wizard-action-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.employee-wizard-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
}

@keyframes employeeWizardIn {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 760px) {
  .employee-wizard-modal {
    width: calc(100vw - 18px);
    max-height: calc(100dvh - 18px);
  }

  .employee-wizard-shell { padding: 0 14px; }
  .employee-wizard-topbar { gap: 12px; }
  .employee-wizard-count { display: none; }
  .employee-wizard-progress-item small { display: none; }
  .employee-wizard-progress > i { margin: 0 4px; }
  .employee-wizard-panel .form-section { padding: 16px; }
  .employee-invite-fields { grid-template-columns: 1fr; }
  .employee-wizard-actions { padding: 14px; }
  .employee-wizard-actions > #cancelEmployeeModal { display: none; }
  .employee-wizard-action-group { width: 100%; }
  .employee-wizard-action-group button { flex: 1; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .employee-wizard-panel { animation: none; }
}
