:root {
  --presenter-portal-alert: #F54334;
}

/* Profile Card */
.sidebar_panel.sidebar_profile {
    background: #fff;
    border: 1px solid #e8e8ee;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(16,24,40,.06);
    padding: 20px;
    position: relative;
    overflow: hidden;
  }
  
  /* Top title hidden (sections have their own headings) */
  .sidebar_panel.sidebar_profile > h3 { 
    display: none;
  }
  
  /* Photo */
  .profile_photo {
    display: grid;
    place-items: center;
    margin-top: 6px;
    margin-bottom: 14px;
    position: relative;
  }
  .profile_photo .personPhoto {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #f3f5f9;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
  }
  
  /* Floating edit button on photo */
  .profile_pic_edit_btn {
    position: absolute;
    inset: auto 18px 6px auto; /* bottom-right of the photo area */
    z-index: 2;
  }
  .profile_pic_edit_btn a {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #0ea5e9;
    box-shadow: 0 2px 8px rgba(14,165,233,.35);
    transition: transform .12s ease;
  }
  .profile_pic_edit_btn a:hover { transform: translateY(-1px); }
  .profile_pic_edit_btn img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
  
  /* Name & org block (auto pulled from contact list first 3 items) */
  .profile_name {
    text-align: center;
    margin: 2px 0 14px;
  }
  .profile_name .name { font: 700 20px/1.2 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial; color:#111827; }
  .profile_name .role { color:#475569; font-size: 13px; margin-top: 4px; }
  
  /* Sections */
  .profile_contact,
  .profile_bio,
  .profile_social_media {
    background: #fff;
    border: 1px solid #eef0f5;
    border-radius: 12px;
    padding: 14px 14px 12px;
    margin-top: 12px;
  }
  
  .contact_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
  }
  .contact_header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color:#111827;
  }
  .contact_header a {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid #e6e9f2;
    background: #f8fafc;
    transition: background .15s ease, transform .12s ease;
  }
  .contact_header a:hover { background:#eef6ff; transform: translateY(-1px); }
  .contact_header img { width: 14px; height: 14px; }
  
  /* Lists */
  .profile_list,
  .social_list {
    list-style: none;
    margin: 0;
    padding: 0;
    color:#334155;
    font-size: 14px;
  }
  .profile_list li + li,
  .social_list li + li { margin-top: 6px; }
  
  /* Bio */
  .profile_bio p { margin: 0; color:#334155; font-size:14px; }
  
  /* Empty states */
  .is-empty { color:#94a3b8; font-style: italic; }
  
  /* Responsive */
  @media (max-width: 860px) {
    .sidebar_panel.sidebar_profile { border-radius: 12px; padding:16px; }
    .profile_photo .personPhoto { width: 96px; height: 96px; }
  }

  /* Session/Staff Summary Page */

.summary-container {
    margin-bottom: 2rem;
    border: 2px solid #f1f1f1;
    background-color: #fcfcfc;
    padding: .5rem 1rem;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
}

.summary-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
}

.summary-header h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.summary-header div {
    min-width: 230px;
}

.summary-section-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.summary-section {
    padding: .5rem 1rem;
    border-bottom: 1px solid #e1e1e1;
}

.summary-section:not(.summary-incomplete):last-child {
    border-bottom: none;
}

.summary-section-container .summary-label {
    font-weight: 700;
    margin-bottom: .5rem;
    font-size: 1.35rem;
}

.summary-incomplete {
    border: 2px solid var(--presenter-portal-alert);
}

.summary-value p {
    margin-top: 1rem;
}


@media screen and (max-width: 900px) {
    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .summary-header h2 {
        font-size: 1.75rem;
    }
}

/* Email History */
#viewEmailPopup table {
    width: 100%;
}

.email-history-headers div {
    font-weight: 600;
    font-size: 1.2rem;
}
.email-history-headers, .email-history-rows {
    display: grid;
    grid-template-columns: .25fr 1fr 5fr 1fr;
    border-bottom: 1px solid #f1f1f1;
    padding-top: .5rem;
    padding-bottom: .5rem;
    place-items: center;
    column-gap: 1rem;
    padding-bottom: 1rem;
}

.email-history-rows:nth-child(odd) {
    background-color: #f7f7f7;
}
@media screen and (max-width: 650px) {
    .viewEmailDialog {
        width: 90% !important;
    }
    #viewEmailPopup {
        padding: .5em;
    }
    .email-history-headers {
        grid-template-columns: .25fr 2fr 5fr;
    }
    .email-history-rows {
        grid-template-columns: .25fr 1fr 5fr;
        row-gap: 1rem;
      }
      .email-history-rows > :nth-child(4n) {
        grid-column: 1 / -1;   /* make the “last column” items span underneath */
      }
    
}
  