/* Empever 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 {
  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: auto 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.68rem;
  line-height: 1.45;
  color: #64748b;
  border-top: 1px solid #1e293b;
}

.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__main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem;
  overflow-y: auto;
  background: #f8fafc;
}

.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) 280px;
  gap: 1rem;
  align-items: start;
}

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

.sf-roster-split__tiles .candidates-header p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #64748b;
}

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

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

.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;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.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.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.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;
  }
}
