/* Google Workspace sign-in and "Who has access" (P1.2510 round 13). Classes only (strict CSP). */

.signin-google[hidden], .key-or[hidden], #key-fields[hidden], #signin-who[hidden], #signin-error[hidden] { display: none; }
.signin-google { margin: 0 0 12px; }
.btn-google { display: inline-block; background: #1a5276; color: white; padding: 10px 18px; font-weight: 600; text-decoration: none; border-radius: 6px; }
.btn-google:hover { background: #154360; }
.btn-google:focus-visible { outline: 2px solid #1a5276; outline-offset: 2px; }
.signin-google .key-patient { margin: 12px 0 0; }
.key-or { margin: 16px 0 8px; font-weight: 600; color: #2c3e50; }

.staff-panel { background: white; border-radius: 8px; padding: 16px 20px; margin: 0 0 16px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.staff-panel[hidden] { display: none; }
.staff-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.staff-title { margin: 0; font-size: 1.1rem; color: #1a5276; }
.staff-subtitle { margin: 16px 0 8px; font-size: 1rem; color: #2c3e50; }
.staff-note { margin: 12px 0 0; padding: 8px 12px; color: #1a5276; background: #e8f4fd; border-left: 3px solid #1a5276; border-radius: 0 4px 4px 0; }
.staff-note.staff-note-error { color: #922b21; background: #fdecea; border-left-color: #c0392b; }
.staff-invite { margin: 8px 0 0; padding: 8px 12px; font-weight: 600; color: #1d6a39; background: #eafaf1; border-left: 3px solid #27ae60; border-radius: 0 4px 4px 0; }
.staff-form .staff-note, .staff-form .staff-invite { flex: 1 0 100%; margin: 4px 0 0; overflow-wrap: anywhere; }
.staff-row-note { flex: 1 0 100%; margin: 0; padding: 6px 10px; color: #1a5276; background: #e8f4fd; border-left: 3px solid #1a5276; border-radius: 0 4px 4px 0; }
.staff-row-note.staff-note-error { color: #922b21; background: #fdecea; border-left-color: #c0392b; }
.staff-reason { font-size: 0.9rem; color: #5d6d7e; }
.staff-hint { flex: 1 0 100%; margin: 0; font-size: 0.9rem; color: #5d6d7e; }
.staff-hint[hidden], .staff-note[hidden], .staff-invite[hidden] { display: none; }
.staff-list { list-style: none; margin: 12px 0 0; padding: 0; }
.staff-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-top: 1px solid #e1e8ed; }
.staff-row-removed { color: #5d6d7e; }
.staff-info { display: flex; flex-wrap: wrap; gap: 2px 12px; min-width: 0; flex: 1 1 260px; }
.staff-name { font-weight: 600; color: #2c3e50; overflow-wrap: anywhere; }
.staff-row-removed .staff-name { color: #5d6d7e; }
.staff-role, .staff-state, .staff-email { font-size: 0.9rem; overflow-wrap: anywhere; }
.staff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.staff-confirm-text { font-weight: 600; color: #922b21; }
.btn-staff { background: white; color: #1a5276; border: 1px solid #1a5276; padding: 5px 12px; }
.btn-staff-primary { background: #1a5276; color: white; }
.btn-staff-danger { background: #922b21; border-color: #922b21; color: white; }
.staff-form { margin-top: 8px; padding-top: 4px; border-top: 1px solid #e1e8ed; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.staff-form .staff-subtitle { flex: 1 0 100%; }
.staff-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 180px; min-width: 0; }
.staff-label { font-weight: 600; color: #2c3e50; font-size: 0.9rem; }
.staff-input { padding: 8px 10px; border: 1px solid #aab7c4; border-radius: 6px; font-size: 0.95rem; min-width: 0; }
.staff-field .staff-input { width: 100%; min-width: 0; box-sizing: border-box; }
/* P3.4862: the long role text ("Covering physician or NP/PA (Provider)") gets a whole row
   under ~1000 px (this is also what 200% zoom of a 1280 px window reaches). */
@media (max-width: 1000px) {
  .staff-field-role { flex: 1 0 100%; }
}

@media (max-width: 640px) {
  .staff-panel { padding: 12px; }
  .staff-actions { width: 100%; }
}

/* P3.4861: a session that ended is information, not a wrong key (no red). */
.session-ended-note { margin: 0 0 12px; padding: 8px 12px; color: #1a5276; background: #e8f4fd; border-left: 3px solid #1a5276; border-radius: 0 4px 4px 0; }
.session-ended-note[hidden] { display: none; }
