/* ============================================================
   PEOPLE PAGE STYLES
   Page-level layout for the People section: header, tab
   navigation, tab-badge, tab-content area, and placeholder.
   Component styles live in:
     css/components/employee-table.css
     css/components/employee-detail-panel.css
     css/components/invite-modal.css
     css/components/org-chart-embed.css
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.people-page {
    margin: 0 auto;
}

/* ── Header: title + invite button ───────────────────────── */
.people-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.people-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-1) 0;
}

.people-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin: 0;
}

.people-invite-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

/* ── Tab bar ──────────────────────────────────────────────── */
.people-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-6);
}

.people-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    margin-bottom: -1px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: inherit;
    white-space: nowrap;
}

.people-tab:hover {
    color: var(--color-text-primary);
}

.people-tab--active {
    color: var(--color-text-primary);
    font-weight: 600;
    border-bottom-color: var(--color-accent);
}

/* ── Tab badge (pending count) ────────────────────────────── */
.people-tab-badge {
    background: var(--color-accent);
    color: #fff;
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    line-height: 1.4;
}

/* ── Tab content area ─────────────────────────────────────── */
.people-tab-content {
    min-height: 400px;
}

/* ── Placeholder text (tabs not yet built) ────────────────── */
.people-placeholder {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    padding: var(--space-10) 0;
    text-align: center;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .people-header {
        flex-direction: column;
        gap: var(--space-3);
    }

    .people-invite-btn {
        width: 100%;
        justify-content: center;
    }

    .people-tab {
        padding: var(--space-2) var(--space-3);
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 640px) {
    .people-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .people-tabs::-webkit-scrollbar {
        display: none;
    }

    .people-tab {
        flex-shrink: 0;
        white-space: nowrap;
    }
}
