/* Sevendyne Jobs — operator workspace (sidebar + iframe), embedded in platform host */
.sf-jw-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.sf-jw {
  display: flex;
  flex: 1;
  min-height: 0;
  background: #0b1120;
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.sf-jw__aside {
  width: 240px;
  max-width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e293b;
  background: #0f172a;
}

.sf-jw__brand {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #1e293b;
}

.sf-jw__brand strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a78bfa;
}

.sf-jw__brand span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  color: #64748b;
}

.sf-jw__nav {
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sf-jw__tab[hidden] {
  display: none !important;
}

.sf-jw__tab {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.sf-jw__tab small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: #64748b;
}

.sf-jw__tab:hover {
  background: #1e293b;
  color: #f8fafc;
}

.sf-jw__tab[aria-current='page'] {
  background: #4f46e5;
  border-color: #6366f1;
  color: #fff;
}

.sf-jw__tab[aria-current='page'] small {
  color: rgba(255, 255, 255, 0.75);
}

.sf-jw__people {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.5rem 0.65rem 0.75rem;
  border-top: 1px solid #1e293b;
}

.sf-jw__people-title {
  margin: 0 0 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.sf-jw__candidate-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sf-jw__person {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  background: #0b1120;
  color: #e2e8f0;
  cursor: pointer;
  font-family: inherit;
}

.sf-jw__person small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.65rem;
  color: #64748b;
}

.sf-jw__person:hover {
  border-color: #6366f1;
  background: #1e293b;
}

.sf-jw__person--active,
.sf-jw__person[aria-current='page'] {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.2);
}

.sf-jw__person-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.sf-jw__empty {
  margin: 0;
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.4;
}

.sf-jw__hint {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #64748b;
  border-top: 1px solid #1e293b;
}

.sf-jw__footer {
  margin-top: auto;
  padding: 0.65rem 0.65rem 0.5rem;
  border-top: 1px solid #1e293b;
}

.sf-jw__logout {
  display: block;
  width: 100%;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.15);
  cursor: pointer;
}

.sf-jw__logout:hover {
  color: #fecaca;
  border-color: #f87171;
  background: rgba(127, 29, 29, 0.28);
}

.sf-jw__account {
  margin: 0;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sf-jw__account summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.sf-jw__account form {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sf-jw__account input {
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

.sf-jw__account #sf-jw-password-msg {
  display: none;
  font-size: 0.75rem;
  margin: 0;
}

.sf-jw__account #sf-jw-password-msg:not([hidden]) {
  display: block;
}

.sf-jw__account .sf-jw__tab {
  margin: 0;
}

.sf-jw__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.sf-jw__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #fff;
  min-height: 0;
}

html.empever-embed .sf-jw {
  min-height: 100vh;
}

@media (max-width: 768px) {
  .sf-jw {
    flex-direction: column;
  }
  .sf-jw__aside {
    width: 100%;
    max-width: none;
    border-right: none;
    border-bottom: 1px solid #1e293b;
  }
  .sf-jw__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sf-jw__tab {
    flex: 1;
    min-width: 8rem;
  }
}

/* Candidate workspace — left nav + main (mirrors employer shell) */
.sf-cw-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.sf-cw {
  display: flex;
  flex: 1;
  min-height: 0;
}

.sf-cw__aside {
  display: flex;
  flex-direction: column;
}

.sf-cw__aside .sf-jw__nav {
  flex: 1;
  overflow-y: auto;
}

.sf-cw__main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem;
  overflow-y: auto;
  background: #f8fafc;
  font-size: 1rem;
  line-height: 1.55;
}

.sf-candidate-dash-main h1 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.sf-cd-workspace-head {
  margin-bottom: 1rem;
}

.sf-cd-workspace-head[hidden] {
  display: none !important;
}

.sf-cd-panel-intro {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.92rem;
}

.sf-cd-account-link-wrap {
  margin: 0 0 1.25rem;
}

.sf-cd-account-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #4f46e5;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sf-cd-account-link:hover {
  color: #4338ca;
}

.sf-candidate-dash-main .sf-cd-form,
.sf-candidate-dash-main p {
  font-size: 1rem;
}

.sf-cd-readiness {
  max-width: 52rem;
}

.sf-cd-readiness__hero {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.sf-cd-readiness__eyebrow {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sf-cd-readiness__score {
  margin: 0.15rem 0 0.75rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.sf-cd-readiness__score span {
  font-size: 1.125rem;
  font-weight: 600;
  color: #64748b;
}

.sf-cd-readiness__meter {
  height: 0.55rem;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.sf-cd-readiness__meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #22c55e);
  border-radius: 999px;
}

.sf-cd-readiness__badge {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: #475569;
}

.sf-cd-readiness__badge--ready {
  color: #15803d;
  font-weight: 600;
}

.sf-cd-readiness__next {
  margin: 0;
  font-size: 1rem;
  color: #334155;
}

.sf-cd-readiness__next-btn {
  border: none;
  background: none;
  color: #4f46e5;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.sf-cd-readiness__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.75rem;
}

.sf-cd-readiness-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sf-cd-readiness-card:hover {
  border-color: #6366f1;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
}

.sf-cd-readiness-card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.sf-cd-readiness-card__status {
  font-size: 1rem;
  color: #0f172a;
}

.sf-cd-readiness-card__detail {
  font-size: 0.9375rem;
  color: #64748b;
}

.sf-cd-gate {
  margin-bottom: 0.75rem;
}

.sf-cd-gate__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  max-width: 36rem;
}

.sf-cd-gate__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.sf-cd-gate__msg {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #475569;
}

.sf-cd-gate__btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #4f46e5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.sf-cd-gate__btn:hover {
  background: #4338ca;
}

.sf-cd-training-panel {
  min-height: min(72vh, 720px);
}

.sf-cw__main.sf-candidate-dash-main:has(.sf-cd-training-panel:not([hidden])) {
  max-width: none;
  padding: 1rem 1.25rem;
}

.sf-jw__tab {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.sf-cw__aside .sf-jw__tab--active,
.sf-cw__aside .sf-cd-tab--active {
  background: #4f46e5;
  border-color: #6366f1;
  color: #fff;
}

/* Employer roster embed — cards left, filters right */
.sf-roster-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.25rem;
  align-items: start;
  padding: 0.75rem 1rem 1.5rem;
}

.sf-roster-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.sf-roster-admin-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sf-roster-select-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
}

.sf-roster-select {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.sf-roster-select input[type='checkbox'],
.sf-roster-select-all input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  accent-color: #dc2626;
  cursor: pointer;
}

.sf-roster-btn--danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.sf-roster-btn--danger:hover:not(:disabled) {
  background: #fee2e2;
  border-color: #fca5a5;
}

.sf-roster-btn--danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sf-roster-admin-mode .sf-roster-card__top {
  align-items: flex-start;
}

.sf-roster-count {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.sf-roster-split__tiles {
  min-width: 0;
}

.sf-roster-split__tiles .candidates-header p {
  margin: 0;
}

.sf-roster-split--employer .sf-roster-split__tiles .candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.sf-roster-split--employer .sf-roster-split__tiles .candidate-card,
.sf-roster-split--employer .sf-roster-split__tiles .sf-roster-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.sf-roster-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.15rem 1.2rem 1.2rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sf-roster-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.sf-roster-card.sf-tile--selected,
.sf-roster-card.sf-match-highlight {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.sf-roster-card__top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.sf-roster-card__top .candidate-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
}

.sf-roster-card__head {
  min-width: 0;
  flex: 1;
}

.sf-roster-card__head h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #0f172a;
  font-weight: 700;
}

.sf-roster-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.sf-roster-match {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
}

.sf-roster-card__facts {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.sf-roster-card__facts li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: #64748b;
}

.sf-roster-card__facts strong {
  color: #334155;
  font-weight: 600;
  text-align: right;
}

.sf-roster-card .candidate-skills {
  margin-bottom: 1rem;
}

.sf-roster-card .candidate-skills strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
}

.sf-roster-card .skills-tags {
  gap: 0.35rem;
}

.sf-roster-card .skill-tag {
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
}

.sf-roster-card .skill-tag--more {
  background: #eef2ff;
  color: #4338ca;
}

.sf-roster-card .candidate-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
  margin-bottom: 0;
}

.sf-roster-btn {
  width: 100%;
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sf-roster-btn--primary {
  border: 1px solid #4f46e5;
  background: #4f46e5;
  color: #fff;
}

.sf-roster-btn--primary:hover {
  background: #4338ca;
  border-color: #4338ca;
}

.sf-roster-btn--ghost {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
}

.sf-roster-btn--ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.sf-roster-split--employer .sf-roster-split__tiles .candidate-actions {
  margin-top: auto;
}

.sf-roster-split--compact .sf-roster-split__tiles .candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}

.sf-roster-split--compact .sf-roster-split__tiles .candidate-card {
  padding: 0.65rem;
}

.sf-roster-split--compact .sf-roster-split__tiles .candidate-card.sf-tile--selected {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.sf-roster-split--compact .sf-roster-split__tiles .candidate-header h3 {
  font-size: 0.9rem;
}

.sf-roster-split--compact .sf-roster-split__tiles .candidate-details,
.sf-roster-split--compact .sf-roster-split__tiles .candidate-contact-locked,
.sf-roster-split--compact .sf-roster-split__tiles .candidate-footer,
.sf-roster-split--compact .sf-roster-split__tiles .candidate-actions .btn-secondary {
  display: none;
}

.sf-roster-split__tiles .sf-pipeline-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.sf-roster-split__tiles .featured-footnote {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
  font-size: 0.8125rem;
  color: #64748b;
}

.sf-candidates-embed .page-header {
  padding: 0.85rem 1rem 0.35rem;
}

.sf-candidates-embed .page-header h1 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.sf-candidates-embed .page-header .section-subtitle {
  font-size: 0.8125rem;
  margin-bottom: 0;
}

.sf-roster-split__filters {
  position: sticky;
  top: 0.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.sf-roster-split__filters .filters-container {
  flex-direction: column;
  align-items: stretch;
}

@media (max-width: 900px) {
  .sf-roster-split {
    grid-template-columns: 1fr;
  }
}

/* Employer documents dashboard (embed) */
.sf-ed-shell {
  margin: 0;
  min-height: 100vh;
  background: #0b1120;
  color: #e2e8f0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.sf-ed {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
}

.sf-ed__header {
  margin-bottom: 1.25rem;
}

.sf-ed__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f1f5f9;
}

.sf-ed__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.sf-ed__loading,
.sf-ed__error {
  font-size: 0.9rem;
  color: #94a3b8;
}

.sf-ed__error {
  color: #fca5a5;
}

.sf-ed__grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sf-ed__card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.sf-ed__card-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c4b5fd;
}

.sf-ed__empty {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.sf-ed__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sf-ed__list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.875rem;
  line-height: 1.45;
}

.sf-ed__list a {
  color: #93c5fd;
}

.sf-ed__download {
  color: #93c5fd;
  font-weight: 600;
  white-space: nowrap;
}

.sf-ed__table a.sf-ed__download {
  color: #93c5fd;
}

.sf-ed__table-wrap {
  overflow-x: auto;
}

.sf-ed__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.sf-ed__table th,
.sf-ed__table td {
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid #1e293b;
}

.sf-ed__table th {
  color: #94a3b8;
  font-weight: 600;
}

.sf-ed__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.sf-ed__stat {
  background: #1e293b;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
}

.sf-ed__stat strong {
  display: block;
  font-size: 1.35rem;
  color: #f8fafc;
}

.sf-ed__stat span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.sf-ed__profile-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.875rem;
}

.sf-ed__profile-label {
  color: #94a3b8;
}

.sf-ed__profile-value {
  color: #f1f5f9;
  text-align: right;
}

.sf-ed__hint-inline {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}
