/* 조직도 탭(테마방 3단계, 2026-10-20) — 왼쪽 나무 · 오른쪽 사람. 색은 교단 CI(Denim #2F557F) 기준 */
.office-org-root { flex: 1; min-height: 0; }
.org-layout { display: flex; gap: 12px; height: 100%; min-height: 420px; }
.org-side { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; min-height: 0; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 10px; }
.org-tools { display: flex; gap: 6px; flex-shrink: 0; margin-bottom: 8px; }
.org-search { flex: 1; min-width: 0; }
.org-admin-btn { white-space: nowrap; }
.org-tree { flex: 1; min-height: 0; overflow-y: auto; }
.org-node { display: flex; align-items: center; gap: 4px; padding: 5px 6px; border-radius: 6px; cursor: pointer; font-size: 13px; color: #2d3748; }
.org-node:hover { background: #f1f5f9; }
.org-node.is-sel { background: #e2ebf4; font-weight: 700; color: #1f2a37; }
.org-chev { border: none; background: transparent; width: 16px; padding: 0; color: #8a94a3; font-size: 11px; cursor: pointer; flex-shrink: 0; }
.org-node-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-node-count { font-size: 11.5px; color: #8a94a3; white-space: nowrap; }
.org-main { flex: 1; min-width: 0; min-height: 0; overflow-y: auto; background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 12px 14px; }
.org-main-title { font-size: 15px; font-weight: 700; color: #1f2a37; margin-bottom: 8px; }
.org-group-title { font-size: 12.5px; font-weight: 700; color: #2F557F; margin: 12px 0 4px; padding-bottom: 3px; border-bottom: 1px solid #edf2f7; }
.org-person { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 4px; border: none; background: transparent; border-radius: 8px; cursor: pointer; text-align: left; font-family: inherit; }
.org-person:hover { background: #f1f5f9; }
.org-person-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.org-person-name { font-size: 13.5px; font-weight: 600; color: #1f2a37; }
.org-person-sub { font-size: 12px; color: #6b7684; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-badge-pastor { background: #4B207F; white-space: nowrap; }
.org-badge-staff { background: #2F557F; white-space: nowrap; }
.org-unit-hit { display: block; width: 100%; text-align: left; border: none; background: #f7fafc; border-radius: 6px; padding: 6px 8px; margin-bottom: 4px; cursor: pointer; font-family: inherit; font-size: 13px; color: #2F557F; }
.org-empty { color: #8a94a3; font-size: 13px; padding: 24px 4px; }
/* 관리 창 */
.org-admin-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; border: 1px solid #e3e8ef; background: #fff; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-family: inherit; }
.org-admin-item:hover { border-color: #2F557F; background: #f7fafc; }
.org-sync { max-height: 60vh; overflow-y: auto; }
.org-sync-sec { border: 1px solid #edf2f7; border-radius: 8px; padding: 6px 10px; margin-bottom: 6px; }
.org-sync-sec summary { cursor: pointer; font-weight: 600; font-size: 13px; color: #34495e; }
.org-sync-row { font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid #f7fafc; }
.org-mem-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.org-mem-name { width: 90px; flex-shrink: 0; font-size: 13px; font-weight: 600; }
.org-mem-hits { margin-top: 4px; }
.org-picker { max-height: 220px; overflow-y: auto; }
@media (max-width: 700px) {
  .org-layout { flex-direction: column; height: auto; }
  .org-side { width: auto; max-height: 45vh; }
  .org-main { min-height: 300px; }
}
/* 2026-10-20 구조 바꿈 — 골라서 반영 미리보기·개인 카드 관리 단추 */
.org-sync-row { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.org-sync-sec summary input { vertical-align: -2px; }
.org-sync-locked { color: #8a5a00; }
.org-card-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
/* 이름 앞 사진 아이콘(2026-10-20) — 둥근 네모. 사진이 없으면 회색 사람 모양. 크기는 각 자리의 .oc-avatar 크기를 따른다 */
.oc-avatar.oc-avatar-icon { position: relative; border-radius: 9px; background: #e9edf2; overflow: visible; }
.oc-avatar-icon img, .oc-avatar-icon svg { width: 100%; height: 100%; display: block; border-radius: 9px; object-fit: cover; }
.om-card .oc-avatar.oc-avatar-icon { border-radius: 14px; }
.om-card .oc-avatar-icon img, .om-card .oc-avatar-icon svg { border-radius: 14px; }
/* 「미가입」 배지(2026-10-20) — 로그인 계정이 없는 사람. 이름 바로 옆, 줄바꿈 없이 */
.org-badge-unjoined { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; background: #eef1f4; color: #6b7684; border: 1px solid #d5dbe2; font-size: 10.5px; font-weight: 600; line-height: 17px; vertical-align: 1px; white-space: nowrap; }
/* 채팅 시작하기 — 사람 고르기 창(2026-10-20, office-chat-picker.js) */
.modal.ocp-modal { width: min(900px, 96vw); max-width: 900px; }
.ocp-more { margin: 4px 0 10px; }
.ocp-more summary { cursor: pointer; font-size: 12.5px; color: #2F557F; }
.ocp-filters { display: grid; grid-template-columns: 1.4fr 1.6fr auto; gap: 8px; margin-bottom: 10px; }
.ocp-note { margin: 10px 2px 0; padding: 8px 12px; background: #f4f7fa; border-radius: 8px; }
.ocp-filters .btn { white-space: nowrap; }
.ocp-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.ocp-left, .ocp-right { border: 1px solid #e3e8ef; border-radius: 10px; background: #fff; min-width: 0; }
.ocp-tree { max-height: 190px; overflow-y: auto; padding: 6px; border-bottom: 1px solid #edf2f7; }
.ocp-list-head { font-size: 12.5px; font-weight: 700; color: #34495e; padding: 8px 10px 4px; }
.ocp-list { max-height: 300px; overflow-y: auto; padding: 0 6px 6px; }
.ocp-right { padding-bottom: 6px; max-height: 520px; overflow-y: auto; }
.ocp-empty { padding: 40px 10px; text-align: center; }
.ocp-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px; border: none; background: transparent; border-radius: 8px; cursor: pointer; text-align: left; font-family: inherit; }
.ocp-row:hover { background: #f1f5f9; }
.ocp-row.is-picked { background: #e2ebf4; }
.ocp-row.is-picked::after { content: '✓'; margin-left: auto; color: #2F557F; font-weight: 700; }
.ocp-row.is-off { cursor: default; opacity: .55; }
.ocp-row.is-off:hover { background: transparent; }
.ocp-row .oc-avatar, .ocp-picked .oc-avatar { width: 32px; height: 32px; }
.ocp-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ocp-name { font-size: 13.5px; font-weight: 600; color: #1f2a37; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocp-sub { font-size: 11.5px; color: #6b7684; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocp-picked { display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
.ocp-picked .ocp-name { flex: 1; }
@media (max-width: 700px) {
  .ocp-filters { grid-template-columns: 1fr 1fr; }
  .ocp-cols { grid-template-columns: 1fr; }
  .modal.ocp-modal { width: 100vw; max-width: 100vw; }
}
