/* The tabs the candidate, role and client pages share (app/views/admin/shared/).
   Rules are scoped under each page's drawer so they keep the precedence the
   pages' own rules had. */

/* ---- Internal Notes tab (_notes_pane), on all three pages ---- */
#view-notes,
#view-notes h4,
#view-notes p,
#view-notes span,
#view-notes textarea,
#view-notes input {
    font-family: 'Mulish', sans-serif !important;
}
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-pane { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.02); min-height: 560px; box-sizing: border-box; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-header { border-bottom: 1px solid var(--tpt-surface-muted); padding-bottom: 14px; margin-bottom: 20px; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-title { font-size: 1.2rem; font-weight: 800; color: var(--tpt-text); margin: 0; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-hint { margin: 0; font-size: 0.78rem; color: var(--tpt-text-subtle); }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-field { margin-bottom: 12px; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-input { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--tpt-border-strong); border-radius: 8px; font-size: 0.85rem; font-family: inherit; color: var(--tpt-text); resize: vertical; line-height: 1.4; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-actions { justify-content: flex-end; margin-bottom: 40px; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-save { background: var(--tpt-accent); color: #FFF; border: none; font-weight: 700; font-size: 0.82rem; padding: 9px 18px; border-radius: 6px; cursor: pointer; box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05); }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-timeline { position: relative; padding-left: 20px; flex-direction: column; gap: 24px; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-axis { position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--tpt-surface-muted); z-index: 1; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-entry { position: relative; z-index: 2; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-dot { position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--tpt-accent); border: 2px solid var(--tpt-surface); box-shadow: 0 0 0 1px var(--tpt-accent-line); }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-card { background: var(--tpt-surface-sunken); border: 1px solid var(--tpt-border); border-radius: 8px; padding: 14px; flex-direction: column; gap: 8px; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-text { margin: 0; font-size: 0.88rem; color: var(--tpt-text); white-space: pre-wrap; line-height: 1.4; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-meta { align-items: center; justify-content: space-between; border-top: 1px solid var(--tpt-surface-muted); padding-top: 8px; margin-top: 2px; }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-author { font-size: 0.72rem; font-weight: 600; color: var(--tpt-text-muted); }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-meta-icon { margin-right: 4px; color: var(--tpt-text-faint); }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-time { font-size: 0.72rem; color: var(--tpt-text-subtle); }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-empty { text-align: center; padding: 32px 0; color: var(--tpt-text-subtle); }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-empty-icon { font-size: 1.5rem; margin-bottom: 8px; color: var(--tpt-border-strong); }
:is(#candidate-drawer-overlay, #role-drawer-container, #client-drawer-container) .record-notes-empty-text { margin: 0; font-size: 0.8rem; }

/* ---- Ownership tab (_owner_pane), on the role and client pages ---- */
:is(#role-drawer-container, #client-drawer-container) .record-tab-card { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.03); flex-direction: column; gap: 20px; }
:is(#role-drawer-container, #client-drawer-container) .record-tab-title { font-size: 0.85rem; font-weight: 700; color: var(--tpt-text); }
:is(#role-drawer-container, #client-drawer-container) .record-form-label { font-size: 0.75rem; font-weight: 700; color: var(--tpt-text-strong); margin-bottom: 6px; }
:is(#role-drawer-container, #client-drawer-container) .record-form-save { background: var(--tpt-accent); color: #FFF; border: none; font-weight: 700; font-size: 0.85rem; padding: 10px 18px; border-radius: 8px; cursor: pointer; }
:is(#role-drawer-container, #client-drawer-container) .record-owner-header { border-bottom: 1px solid var(--tpt-surface-muted); padding-bottom: 12px; }
:is(#role-drawer-container, #client-drawer-container) .record-owner-hint { margin: 4px 0 0 0; font-size: 0.78rem; color: var(--tpt-text-subtle); }
:is(#role-drawer-container, #client-drawer-container) .record-owner-current { align-items: center; gap: 12px; }
:is(#role-drawer-container, #client-drawer-container) .record-owner-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--tpt-accent-tint); color: var(--tpt-accent); font-weight: 800; font-size: 0.85rem; align-items: center; justify-content: center; }
:is(#role-drawer-container, #client-drawer-container) .record-owner-name { margin: 0; font-size: 0.95rem; font-weight: 700; color: var(--tpt-text); }
:is(#role-drawer-container, #client-drawer-container) .record-owner-email { margin: 0; font-size: 0.8rem; color: var(--tpt-text-subtle); }
:is(#role-drawer-container, #client-drawer-container) .record-owner-form-row { gap: 12px; align-items: flex-end; flex-wrap: wrap; }
:is(#role-drawer-container, #client-drawer-container) .record-owner-field { flex: 1; min-width: 220px; }
:is(#role-drawer-container, #client-drawer-container) select.record-owner-select { padding: 10px 14px; border: 1px solid var(--tpt-border-strong); border-radius: 8px; font-size: 0.85rem; background: var(--tpt-surface); }
:is(#role-drawer-container, #client-drawer-container) .record-owner-note { margin: 10px 0 0 0; font-size: 0.75rem; color: var(--tpt-text-subtle); }

/* ---- Activity tab (_activity_pane), on the role and client pages ---- */
/* The client page names its Activity tab's font without the system fallbacks. */
#client-drawer-container #view-activity,
#client-drawer-container #view-activity span,
#client-drawer-container #view-activity div {
    font-family: 'Mulish', sans-serif !important;
}
:is(#role-drawer-container, #client-drawer-container) .record-activity-card { background: var(--tpt-surface); border: 1px solid var(--tpt-border); border-radius: 12px; padding: 24px; box-shadow: 0px 4px 12px rgba(16, 24, 40, 0.03); flex-direction: column; gap: 4px; }
:is(#role-drawer-container, #client-drawer-container) .record-activity-entry { gap: 16px; position: relative; }
:is(#role-drawer-container, #client-drawer-container) .record-activity-rail { flex-direction: column; align-items: center; width: 12px; }
:is(#role-drawer-container, #client-drawer-container) .record-activity-dot { background: var(--tpt-accent); width: 8px; height: 8px; border-radius: 50%; border: 2px solid #FFF; box-shadow: 0 0 0 1px #FF6C08; flex-shrink: 0; margin-top: 5px; }
:is(#role-drawer-container, #client-drawer-container) .record-activity-body { padding-bottom: 20px; }
:is(#role-drawer-container, #client-drawer-container) .record-activity-text { font-size: 0.85rem; font-weight: 700; color: var(--tpt-text); line-height: 1.4; }
:is(#role-drawer-container, #client-drawer-container) .record-activity-meta { gap: 12px; align-items: center; margin-top: 4px; }
:is(#role-drawer-container, #client-drawer-container) .record-activity-time { font-size: 0.75rem; color: var(--tpt-text-subtle); }
:is(#role-drawer-container, #client-drawer-container) .record-activity-fallback-body { padding-bottom: 8px; }
:is(#role-drawer-container, #client-drawer-container) .record-activity-fallback-text { font-size: 0.85rem; font-weight: 700; color: var(--tpt-text); line-height: 1.3; }
:is(#role-drawer-container, #client-drawer-container) .record-activity-fallback-time { font-size: 0.75rem; color: var(--tpt-text-subtle); margin-top: 4px; }

/* ---- Delete confirmation (_confirm_dialog), on the candidate and client pages ---- */
#custom-confirm-modal .record-confirm-box { background: var(--tpt-surface); width: 100%; max-width: 400px; border-radius: 12px; padding: 24px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.15); }
#custom-confirm-modal .record-confirm-title { margin: 0 0 8px 0; font-size: 1.1rem; font-weight: 700; color: var(--tpt-text); }
#custom-confirm-modal .record-confirm-body { margin: 0 0 24px 0; font-size: 0.85rem; color: var(--tpt-text-muted); line-height: 1.4; }
#custom-confirm-modal .record-confirm-actions { justify-content: flex-end; gap: 12px; }
#custom-confirm-modal .record-confirm-cancel { background: var(--tpt-surface); border: 1px solid var(--tpt-border-strong); color: var(--tpt-text-strong); padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
#custom-confirm-modal .record-confirm-delete { background: #D92D20; border: 1px solid var(--tpt-critical); color: #FFF; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
