/* Admin People page — unified directory styling */

.people-filters-card {
    margin-bottom: 18px;
}

.people-search-wrap {
    margin-bottom: 14px;
}

.people-search-wrap input[type="search"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
}
.people-search-wrap input[type="search"]:focus {
    outline: none;
    border-color: var(--tl-blue);
    box-shadow: 0 0 0 2px rgba(31, 73, 125, 0.12);
}

.people-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: flex-end;
}
.people-filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-700);
    font-family: 'Oswald', sans-serif;
}
.people-filters select {
    padding: 6px 10px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    background: var(--white);
    min-width: 140px;
}

.people-summary {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-700);
}
.people-clear-btn {
    background: none;
    border: 1px solid var(--gray-200);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: var(--font-body);
}
.people-clear-btn:hover {
    border-color: var(--crimson);
    color: var(--crimson);
}

.people-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.people-table thead th {
    text-align: left;
    padding: 10px 12px;
    background: var(--gray-50);
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}
.people-table tbody td {
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}
.people-table tbody tr {
    cursor: pointer;
    transition: background 0.12s;
}
.people-table tbody tr:hover { background: var(--gray-50); }

.people-name { font-weight: 600; color: var(--brown-dark); }
.people-name-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.people-contact { font-size: 0.78rem; color: var(--gray-700); margin-top: 4px; line-height: 1.4; }
.people-contact > span { display: inline-block; margin-right: 10px; }

.people-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.people-type-invite { background: #FFF8E1; color: #876237; }
.people-type-user { background: #E8F0FA; color: #1F497D; }
.people-type-trailman { background: #f0fdf4; color: #2D5E2A; }
.people-type-familyMember { background: #F4EEE6; color: #5A4F40; }

.people-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.people-status-active { background: #f0fdf4; color: #2D5E2A; }
.people-status-pending { background: #FFF8E1; color: #876237; }
.people-status-in_progress { background: #FFEDD5; color: #9A3412; }
.people-status-complete { background: #f0fdf4; color: #2D5E2A; }
.people-status-inactive { background: #ECECEC; color: #4A453D; }

.people-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--gray-500);
}

.people-meta-pill {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 500;
}

.people-ra-badge {
    display: inline-block;
    margin-left: 6px;
    color: #2D5E2A;
    font-size: 0.78rem;
    font-weight: 600;
}

.inactive-row.people-inactive { opacity: 0.55; }

@media (max-width: 720px) {
    .people-filters { gap: 10px; }
    .people-filters select { min-width: 0; }
    .people-table thead { display: none; }
    .people-table tbody td { display: block; padding: 4px 0; border: none; }
    .people-table tbody tr {
        display: block;
        padding: 12px;
        border-bottom: 1px solid var(--gray-100);
    }
}
