/* ============================================
   MSFG Dashboard - Employee Directory & Contact Cards
   HR dropdown, employee cards, contact modals
   ============================================ */

/* ========================================
   EMPLOYEE DIRECTORY (HR dropdown)
======================================== */
.employee-card-link {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem !important;
}

.employee-avatar-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green-bright, #8cc63e);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    flex-shrink: 0;
}

.employee-link-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.employee-link-info strong {
    font-size: 0.82rem;
}

.employee-link-info small {
    font-size: 0.7rem;
    opacity: 0.65;
}

/* ── Contact Card Modal ── */
.contact-card-header {
    text-align: center;
    padding: 24px 20px 16px;
}

.contact-card-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(140, 198, 62, .9);
    margin-bottom: 14px;
}

.contact-card-avatar-initials {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(140, 198, 62, .18);
    border: 4px solid rgba(140, 198, 62, .9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 700;
    color: var(--msfg-teal, #104547);
    margin-bottom: 14px;
}

.contact-card-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--msfg-teal, #104547);
    margin: 0 0 4px;
}

.contact-card-role {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}

.contact-card-grid {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.contact-card-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.contact-card-item i {
    width: 18px;
    text-align: center;
    color: var(--msfg-teal, #104547);
    opacity: 0.7;
}

.contact-card-item a {
    color: var(--text-primary, #333);
    text-decoration: none;
}

.contact-card-item a:hover {
    color: var(--msfg-teal, #104547);
    text-decoration: underline;
}

.contact-card-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px;
    border-top: 1px solid var(--border-light, #eee);
    border-bottom: 1px solid var(--border-light, #eee);
    margin-bottom: 16px;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,.05);
    font-size: 16px;
    transition: transform .15s, opacity .15s;
    text-decoration: none;
}

.social-icon-link:hover {
    transform: scale(1.15);
    opacity: .85;
}

.contact-card-section {
    padding: 0 24px 16px;
}

.signature-preview {
    background: #fafbf8;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    max-height: 220px;
    overflow-y: auto;
    transform: scale(0.75);
    transform-origin: top left;
    width: 133.33%;
}

.signature-preview a {
    pointer-events: none;
}

/* ── Copy-for-Outlook button (below signature) ── */
.signature-copy-btn {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--green-bright, #8cc63e);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 2px 6px rgba(140, 198, 62, .35);
}

.signature-copy-btn:hover {
    background: #7ab32f;
    box-shadow: 0 3px 10px rgba(140, 198, 62, .5);
}

.signature-copy-btn:active {
    transform: scale(0.97);
}

.signature-copy-btn.is-copied {
    background: var(--msfg-teal, #104547);
    box-shadow: 0 2px 6px rgba(16, 69, 71, .4);
}

/* ── Contact-card close button (X) — large, green, top-left ── */
.contacts-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px;
    font-size: 30px;
    line-height: 1;
    color: #fff;
    background: var(--green-bright, #8cc63e);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(140, 198, 62, .45);
    transition: background .15s, transform .15s, box-shadow .15s;
    z-index: 20;
}

.contacts-modal-close:hover {
    background: #6fa728;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(140, 198, 62, .6);
}

.contacts-modal-close:active {
    transform: scale(0.96);
}
