/* Microsoft-style person profile card (student / employee quick view) */

.js-person-profile-card {
    cursor: pointer;
}

a.js-person-profile-card {
    color: inherit;
}

a.js-person-profile-card:hover {
    color: var(--usm-primary-color, #0078d4);
    text-decoration: underline;
}

img.js-person-profile-card,
.user-list tbody td > img.js-person-profile-card {
    border-radius: 50%;
    object-fit: cover;
    width: 36px;
    height: 36px;
    max-width: 36px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

img.js-person-profile-card:hover,
.user-list tbody td > img.js-person-profile-card:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 2px var(--usm-primary-color, #0078d4);
}

.c-employee-banner__user-photo-btn.js-person-profile-card {
    cursor: pointer;
}

.c-employee-banner__user-photo-btn.js-person-profile-card:hover .c-employee-banner__user-photo {
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.28);
}

.ppc-modal .modal-dialog {
    max-width: 640px;
}

.ppc-card {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1.6px 6px rgba(0, 0, 0, 0.12);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color: #242424;
}

.ppc-hero {
    position: relative;
    height: 92px;
    background:
        linear-gradient(135deg, var(--usm-primary-color, #0078d4) 0%, #004578 100%);
}

.ppc-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.22), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
}

.ppc-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    filter: invert(1);
    opacity: 0.85;
}

.ppc-close:hover {
    opacity: 1;
}

.ppc-identity {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    padding: 0 24px 8px;
    margin-top: -52px;
    position: relative;
    z-index: 1;
}

.ppc-avatar {
    flex: 0 0 104px;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #f3f2f1;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.ppc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ppc-identity-text {
    min-width: 0;
    padding-bottom: 6px;
    flex: 1;
}

.ppc-name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ppc-subtitle {
    margin: 2px 0 8px;
    font-size: 0.92rem;
    color: #605e5c;
}

.ppc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.ppc-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.ppc-pill--ok {
    background: #dff6dd;
    color: #0b6a0b;
}

.ppc-pill--off {
    background: #fde7e9;
    color: #a4262c;
}

.ppc-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 4px;
    background: #f3f2f1;
    color: #323130;
    font-size: 0.72rem;
    font-weight: 600;
}

.ppc-body {
    padding: 12px 24px 8px;
    max-height: min(58vh, 520px);
    overflow-y: auto;
}

.ppc-section {
    margin-bottom: 16px;
}

.ppc-section-title {
    margin: 0 0 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #605e5c;
}

.ppc-contact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ppc-contact-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
}

.ppc-contact-row:hover {
    background: #f3f2f1;
    text-decoration: none;
    color: inherit;
}

.ppc-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8f3fc;
    color: var(--usm-primary-color, #0078d4);
    flex: 0 0 28px;
}

.ppc-contact-label {
    display: block;
    font-size: 0.68rem;
    color: #605e5c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ppc-contact-value {
    display: block;
    font-size: 0.88rem;
    color: #201f1e;
    word-break: break-word;
}

.ppc-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.ppc-fact-label {
    display: block;
    font-size: 0.68rem;
    color: #605e5c;
    margin-bottom: 2px;
}

.ppc-fact-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: #201f1e;
    word-break: break-word;
}

.ppc-people {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ppc-person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #edebe9;
    border-radius: 8px;
    background: #faf9f8;
}

.ppc-person img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 40px;
}

.ppc-person-role {
    display: block;
    font-size: 0.68rem;
    color: #605e5c;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ppc-person-name {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    color: #201f1e;
}

.ppc-person-extra {
    display: block;
    font-size: 0.75rem;
    color: #605e5c;
}

.ppc-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 24px 16px;
    border-top: 1px solid #edebe9;
    background: #faf9f8;
}

.ppc-btn {
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 14px;
}

.ppc-btn-primary {
    background: var(--usm-primary-color, #0078d4);
    border-color: var(--usm-primary-color, #0078d4);
    color: #fff;
}

.ppc-btn-primary:hover {
    filter: brightness(0.92);
    color: #fff;
}

@media (max-width: 576px) {
    .ppc-identity {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -44px;
    }

    .ppc-meta,
    .ppc-identity-text {
        justify-content: center;
    }

    .ppc-facts,
    .ppc-people {
        grid-template-columns: 1fr;
    }

    .ppc-footer {
        flex-direction: column-reverse;
    }

    .ppc-footer .btn {
        width: 100%;
    }
}
