/* org-chart.css - extracted from mesh-PO_sheet.html */

body.role-preparer #ocEditBtn { display: none !important; }
.oc-topbar { height: 44px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 14px; flex-shrink: 0; gap: 10px; }
.oc-title { font-size: 13px; font-weight: 600; color: #111827; }
.oc-edit-btn { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 11px; color: #374151; cursor: pointer; background: white; margin-left: auto; }
.oc-edit-btn:hover { border-color: #4f6ef7; color: #4f6ef7; }
.oc-tree-wrap { flex: 1; overflow: auto; padding: 20px; }
.oc-grid { display: flex; flex-direction: column; gap: 20px; }
.oc-entity-row { display: flex; flex-direction: column; gap: 10px; }
.oc-entity-head { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.oc-entity-name { font-size: 13px; font-weight: 600; color: #111827; }
.oc-entity-meta { font-size: 11px; color: #9ca3af; font-weight: 500; }
.oc-entity-rule { flex: 1; height: 1px; background: #e5e7eb; }
.oc-entity-cards { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.oc-org-card { border: 1px solid #e5e7eb; border-radius: 10px; background: white; overflow: hidden; min-width: 260px; max-width: 380px; flex: 1 1 300px; }
.oc-org-header { padding: 10px 14px; font-size: 13px; font-weight: 600; color: #111827; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; gap: 6px; background: #f9fafb; }
.oc-org-header .oc-org-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.oc-org-header .oc-ic { font-size: 12px; color: #9ca3af; font-weight: 400; margin-left: 2px; }
.oc-org-body { padding: 0; }
.oc-dept-section { border-bottom: 1px solid #f3f4f6; }
.oc-dept-section:last-child { border-bottom: none; }
.oc-dept-header { padding: 7px 14px; font-size: 11px; font-weight: 600; color: #6b7280; text-transform: uppercase; letter-spacing: 0.3px; display: flex; align-items: center; gap: 5px; background: #fafafa; cursor: pointer; }
.oc-dept-header:hover { background: #f3f4f6; }
.oc-dept-header .oc-ic { font-size: 11px; color: #9ca3af; font-weight: 400; text-transform: none; letter-spacing: 0; }
.oc-dept-header .oc-dept-toggle { font-size: 9px; color: #c4c9d4; margin-left: auto; transition: transform .15s; }
.oc-dept-header .oc-dept-toggle.collapsed { transform: rotate(-90deg); }
.oc-dept-body { }
.oc-dept-body.collapsed { display: none; }
.oc-dept-section .oc-dept-section { border-bottom: none; }
.oc-dept-section .oc-dept-section > .oc-dept-header { padding-left: 28px; font-size: 10px; background: #f9fafb; }
.oc-dept-section .oc-dept-section .oc-dept-section > .oc-dept-header { padding-left: 42px; }
.oc-dept-section .oc-dept-section .oc-dept-section .oc-dept-section > .oc-dept-header { padding-left: 56px; }
.oc-prep-row { display: flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 12px; cursor: pointer; position: relative; border-bottom: 1px solid #f3f4f6; }
.oc-prep-row:last-child { border-bottom: none; }
.oc-prep-row:hover { background: #f3f4f6; }
.oc-leaf-group { display: flex; border-bottom: 1px solid #f3f4f6; }
.oc-leaf-group:last-child { border-bottom: none; }
.oc-leaf-left { flex: 1; min-width: 0; }
.oc-leaf-row { display: flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 11px; border-bottom: 1px solid #f9fafb; }
.oc-leaf-row:last-child { border-bottom: none; }
.oc-leaf-row:hover { background: #f9fafb; }
.oc-leaf-acct { color: #6b7280; min-width: 70px; }
.oc-leaf-prep-wrap { display: flex; align-items: center; gap: 4px; }
.oc-leaf-rev-merged { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 6px 10px; border-left: 1px solid #f0f0f0; min-width: 70px; flex-shrink: 0; }
.oc-leaf-rev-chip { display: flex; align-items: center; gap: 4px; font-size: 10px; color: #6b7280; white-space: nowrap; }
.oc-leaf-rev-ava { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 700; color: white; flex-shrink: 0; }
.oc-preparer-icon { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 600; color: white; flex-shrink: 0; }
.oc-preparer-icon.unassigned { background: #d1d5db !important; font-size: 9px; }
.oc-prep-name { font-weight: 500; color: #374151; }
.oc-prep-name.agent { color: #4f6ef7; }
.oc-prep-ic { font-size: 11px; color: #9ca3af; font-weight: 400; margin-left: 1px; }
.oc-prep-actions { display: flex; gap: 1px; margin-left: auto; opacity: 0; transition: opacity .1s; }
.oc-prep-row:hover .oc-prep-actions { opacity: 1; }
.oc-prep-act { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; color: #c4c9d4; cursor: pointer; border-radius: 4px; border: none; background: none; padding: 0; }
.oc-prep-act:hover { color: #4f6ef7; background: #eef2ff; }
.oc-prep-act.del:hover { color: #ef4444; background: #fef2f2; }
.oc-prep-vendors { padding: 2px 10px 6px 34px; display: none; }
.oc-prep-vendors.open { display: block; }
.oc-v-row { font-size: 11px; color: #6b7280; padding: 2px 0; display: flex; align-items: center; gap: 5px; }
.oc-v-dot { width: 4px; height: 4px; border-radius: 50%; background: #d1d5db; flex-shrink: 0; }
.oc-assign-select { height: 22px; border: 1px solid #e5e7eb; border-radius: 4px; font-size: 10px; color: #6b7280; background: white; cursor: pointer; padding: 0 4px; font-family: inherit; outline: none; }
.oc-assign-select:hover { border-color: #4f6ef7; }
.oc-assign-select:focus { border-color: #4f6ef7; box-shadow: 0 0 0 2px rgba(79,110,247,0.1); }
.oc-vcheck { padding: 4px 8px 6px; border-top: 1px solid #e5e7eb; background: white; }
.oc-vcheck-row { display: flex; align-items: center; gap: 7px; padding: 3px 4px; border-radius: 4px; cursor: pointer; font-size: 11px; color: #374151; }
.oc-vcheck-row:hover { background: #f9fafb; }
.oc-vcheck-row input[type=checkbox] { width: 13px; height: 13px; accent-color: #4f6ef7; cursor: pointer; margin: 0; flex-shrink: 0; }
.oc-vcheck-row.taken { color: #c4c9d4; }
.oc-vcheck-row.taken input[type=checkbox] { accent-color: #d1d5db; }
.oc-vcheck-from { font-size: 10px; color: #c4c9d4; margin-left: auto; }
.oc-add-prep { padding: 5px 10px; border-top: 1px solid #f3f4f6; }
.oc-add-prep-btn { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px dashed #d1d5db; border-radius: 5px; background: none; font-size: 10px; color: #9ca3af; cursor: pointer; font-family: inherit; }
.oc-add-prep-btn:hover { border-color: #4f6ef7; color: #4f6ef7; }
.oc-add-prep-select { height: 28px; border: 1px solid #4f6ef7; border-radius: 6px; padding: 0 6px; font-size: 11px; color: #111827; outline: none; font-family: inherit; box-shadow: 0 0 0 2px rgba(79,110,247,0.1); background: white; cursor: pointer; max-width: 140px; }
.oc-prep-confirm { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.oc-confirm-btn { height: 22px; padding: 0 8px; border: 1px solid #16a34a; border-radius: 4px; background: #f0fdf4; color: #16a34a; font-size: 10px; font-weight: 600; cursor: pointer; font-family: inherit; display: flex; align-items: center; gap: 3px; }
.oc-confirm-btn:hover { background: #16a34a; color: white; }
.oc-confirm-btn svg { flex-shrink: 0; }
.oc-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 500; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.oc-modal-overlay.hidden { display: none; }
.oc-input-card { width: 620px; height: 80vh; background: white; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,0.18); padding: 20px 24px 20px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; transition: width 0.25s ease; }
.oc-input-card.wide { width: 960px; }
.oc-input-card > .oc-step-panel { overflow-y: auto; flex: 1; min-height: 0; }
.oc-input-header h2 { font-size: 18px; font-weight: 600; color: #0f172a; margin-bottom: 4px; }
.oc-input-header p { font-size: 13px; color: #71717a; line-height: 1.5; }
.oc-input-section { border-top: 1px solid #e5e5e5; padding-top: 16px; }
.oc-input-section-title { font-size: 14px; font-weight: 500; color: #0a0a0a; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.oc-preview-sub { margin-left: auto; font-size: 11px; color: #9ca3af; font-weight: 400; }
.oc-steps { display: flex; align-items: center; gap: 10px; padding: 0 2px; }
.oc-step { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #9ca3af; font-weight: 500; }
.oc-step.active { color: #111827; }
.oc-step.done { color: #4f6ef7; }
.oc-step-num { width: 20px; height: 20px; border-radius: 50%; background: #f1f5f9; color: #9ca3af; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.oc-step.active .oc-step-num { background: #4f6ef7; color: white; }
.oc-step.done .oc-step-num { background: #e0e7ff; color: #4f6ef7; }
.oc-step-line { flex: 1; height: 1px; background: #e5e7eb; }
.oc-step-panel { border-top: 1px solid #e5e5e5; padding-top: 16px; }
.oc-branch { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px 12px; margin-bottom: 10px; background: #fafbfc; }
.oc-branch-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.oc-branch-label { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; }
.oc-branch-name { flex: 1; height: 28px; border: 1px solid #e5e5e5; border-radius: 6px; padding: 0 9px; font-size: 12px; color: #111827; background: white; outline: none; font-family: inherit; font-weight: 500; }
.oc-branch-name:focus { border-color: #4f6ef7; box-shadow: 0 0 0 2px rgba(79,110,247,0.1); }
.oc-branch-name::placeholder { color: #cbd5e1; font-weight: 400; }
.oc-branch-del { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: #cbd5e1; cursor: pointer; border-radius: 5px; border: none; background: none; flex-shrink: 0; }
.oc-branch-del:hover { color: #ef4444; background: #fef2f2; }
.oc-lrow { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.oc-lrow-handle { width: 12px; height: 12px; color: #cbd5e1; cursor: grab; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.oc-lrow select { flex: 1; height: 34px; border: 1px solid #e5e5e5; border-radius: 8px; padding: 0 10px; font-size: 13px; color: #111827; background: white; outline: none; font-family: inherit; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }
.oc-lrow select:focus { border-color: #4f6ef7; box-shadow: 0 0 0 2px rgba(79,110,247,0.1); }
.oc-lrow-badge { font-size: 11px; color: #9ca3af; white-space: nowrap; }
.oc-preview { max-height: 320px; overflow-y: auto; border: 1px solid #f1f5f9; border-radius: 8px; padding: 10px 12px; background: #fafbfc; }
.oc-ptree { font-size: 12px; }
.oc-pnode { padding: 3px 0; }
.oc-pnode-row { display: flex; align-items: center; gap: 8px; }
.oc-pnode-caret { width: 12px; height: 12px; color: #9ca3af; cursor: pointer; flex-shrink: 0; transition: transform 0.15s; display: flex; align-items: center; justify-content: center; }
.oc-pnode-caret.collapsed { transform: rotate(-90deg); }
.oc-pnode-caret.empty { visibility: hidden; }
.oc-pnode-name { color: #111827; font-weight: 500; }
.oc-pnode-level { color: #9ca3af; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-left: 2px; }
.oc-pnode-count { color: #6b7280; font-size: 11px; margin-left: auto; }
.oc-pnode-children { padding-left: 20px; border-left: 1px dashed #e5e7eb; margin-left: 5px; }
.oc-pnode-children.hidden { display: none; }
.oc-preview-empty { text-align: center; color: #9ca3af; font-size: 12px; padding: 20px; }
.oc-assign-panel { border: 1px solid #f1f5f9; border-radius: 10px; background: #fafbfc; padding: 14px 16px; }
.oc-assign-stage { display: flex; gap: 24px; min-height: 100%; }
.oc-assign-col { display: flex; flex-direction: column; gap: 8px; position: relative; }
.oc-assign-left { flex: 1; min-width: 0; }
.oc-assign-right { width: 210px; flex-shrink: 0; position: sticky; top: 0; align-self: flex-start; background: #fafbfc; display: flex; flex-direction: column; gap: 14px; }
.oc-assign-col-head { font-size: 10px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 2px; margin-bottom: 2px; }
.oc-right-section { display: flex; flex-direction: column; gap: 6px; }
.oc-right-sep { height: 1px; background: #e5e7eb; margin: 4px 0; }
.oc-right-done { height: 30px; border-radius: 6px; border: 1px solid #4f6ef7; background: #4f6ef7; color: white; font-size: 11px; font-weight: 600; cursor: pointer; display: none; font-family: inherit; }
.oc-right-done:hover { background: #3b5ce4; }
.oc-right-done.show { display: block; }
.oc-ecard { background: white; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px 12px; }
.oc-ecard-head { font-size: 12px; font-weight: 600; color: #111827; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.oc-ecard-dot { width: 7px; height: 7px; border-radius: 50%; background: #4f6ef7; }
.oc-ntile { display: flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 6px; cursor: pointer; border: 1px solid #e5e7eb; background: white; margin: 3px 0; transition: all 0.15s; font-size: 12px; color: #111827; position: relative; }
.oc-ntile:hover { border-color: #c7d2fe; background: #f8f9ff; }
.oc-ntile.selected { border-color: #4f6ef7; background: white; }
.oc-ntile.multi-selected { border-color: #c7d2fe; background: white; }
.oc-ntile.child-of-selected { border-left: 2px solid #4f6ef7; background: #fafbff; }
.oc-ntile.dimmed { opacity: 0.35; }
.oc-ntile.assignable { border-color: #c7d2fe; background: #f8f9ff; animation: ntile-pulse 1.5s ease-in-out infinite; }
.oc-ntile.owned-by-selected { background: #fafbfc; }
.oc-ntile-name { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-ntile-caret { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; color: #9ca3af; flex-shrink: 0; transition: transform 0.12s; cursor: pointer; border-radius: 3px; }
.oc-ntile-caret:hover { color: #4f6ef7; background: #eef2ff; }
.oc-ntile-caret.collapsed { transform: rotate(-90deg); }
.oc-ntile-caret.empty { visibility: hidden; }
.oc-ntile-check { width: 12px; height: 12px; color: #16a34a; flex-shrink: 0; }
.oc-ntile-chips { display: flex; gap: 2px; flex-shrink: 0; align-items: center; }
.oc-ntile-chip { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 700; color: white; flex-shrink: 0; border: 1.5px solid white; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.08); }
.oc-ntile-chip.reviewer { opacity: 0.7; }
.oc-ntile-role-label { font-size: 8px; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.oc-ntile-unassigned { font-size: 9px; color: #9ca3af; background: #f3f4f6; border-radius: 3px; padding: 1px 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.oc-ptile { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 36px; border-radius: 8px; cursor: pointer; border: 1px solid #e5e7eb; background: white; transition: all 0.15s; position: relative; }
.oc-ptile:hover { border-color: #c7d2fe; }
.oc-ptile.selected { border-color: #4f6ef7; background: #eef2ff; box-shadow: 0 0 0 2px rgba(79,110,247,0.15); }
.oc-ptile.dimmed { opacity: 0.35; }
.oc-ptile.highlighted { background: #f0fdf4; border-color: #16a34a; }
.oc-ptile-check { color: #16a34a; font-size: 12px; font-weight: 700; flex-shrink: 0; display: none; }
.oc-ptile.highlighted .oc-ptile-check { display: block; }
.oc-ptile-ava { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; color: white; flex-shrink: 0; }
.oc-ptile-name { flex: 1; font-size: 11px; font-weight: 500; color: #111827; }
.oc-ptile-count { font-size: 10px; color: #9ca3af; font-weight: 500; min-width: 16px; text-align: right; }
.oc-assign-hint { font-size: 11px; color: #9ca3af; margin-top: 10px; padding: 0 2px; }
.oc-sankey-wrap { border: 1px solid #f1f5f9; border-radius: 10px; background: #fafbfc; padding: 16px; min-height: 300px; }
.oc-sankey-wrap svg { display: block; }
.oc-sankey-wrap .sk-band { cursor: pointer; transition: opacity 0.12s; }
.oc-sankey-wrap .sk-band:hover { opacity: 0.85 !important; }
.oc-sankey-wrap .sk-label { font-family: -apple-system, sans-serif; font-size: 11px; fill: #111827; font-weight: 500; }
.oc-sankey-wrap .sk-label-sm { font-family: -apple-system, sans-serif; font-size: 10px; fill: #6b7280; }
.oc-sankey-wrap .sk-node { fill: none; cursor: pointer; }
.oc-sankey-wrap .sk-node:hover { fill: rgba(79,110,247,0.06); }
.oc-assign-hint kbd { font-family: inherit; font-size: 10px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 3px; padding: 1px 5px; color: #6b7280; }
.oc-inode { position: relative; }
.oc-inode-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.oc-inode-dot { width: 12px; height: 12px; background: #f1f5f9; border-radius: 2px; flex-shrink: 0; }
.oc-inode-input { flex: 1; height: 34px; border: 1px solid #e5e5e5; border-radius: 8px; padding: 0 10px; font-size: 13px; color: #111827; background: white; outline: none; font-family: inherit; }
.oc-inode-input:focus { border-color: #4f6ef7; box-shadow: 0 0 0 2px rgba(79,110,247,0.1); }
.oc-inode-badge { font-size: 11px; color: #9ca3af; white-space: nowrap; padding-right: 2px; }
.oc-inode-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: #cbd5e1; cursor: pointer; border-radius: 5px; flex-shrink: 0; border: none; background: none; }
.oc-inode-btn:hover { color: #4f6ef7; background: #eef2ff; }
.oc-inode-btn.del:hover { color: #ef4444; background: #fef2f2; }
.oc-ichildren { padding-left: 22px; border-left: 1px solid #cbd5e1; margin-left: 5px; }
.oc-add-row { display: flex; gap: 8px; padding-top: 8px; }
.oc-add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #e5e5e5; border-radius: 8px; background: white; font-size: 12px; color: #0a0a0a; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,0.05); font-weight: 500; font-family: inherit; }
.oc-add-btn:hover { border-color: #4f6ef7; color: #4f6ef7; }
.oc-input-footer { display: flex; gap: 12px; padding-top: 12px; border-top: 1px solid #e5e5e5; }
.oc-btn-cancel { flex: 1; height: 38px; border: 1px solid #e5e5e5; border-radius: 8px; background: white; font-size: 13px; color: #345def; cursor: pointer; font-weight: 500; font-family: inherit; }
.oc-btn-cancel:hover { background: #f9fafb; }
.oc-btn-apply { flex: 1; height: 38px; border: 1px solid #345def; border-radius: 8px; background: #345def; font-size: 13px; color: white; cursor: pointer; font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.05); font-family: inherit; }
.oc-btn-apply:hover { background: #2a4dcc; }
.oc-footer { height: 26px; border-top: 1px solid #f3f4f6; display: flex; align-items: center; padding: 0 14px; font-size: 10px; color: #9ca3af; background: #fafafa; flex-shrink: 0; }
