/* base.css - extracted from mesh-PO_sheet.html */

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 12px; color: #111827; display: flex; height: 100vh; overflow: hidden; }
.sidebar { width: 48px; background: #1a2744; display: flex; flex-direction: column; align-items: center; padding: 8px 0; flex-shrink: 0; }
.sb-logo { width: 28px; height: 28px; background: transparent; border-radius: 7px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.sb-icon { width: 34px; height: 34px; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); cursor: pointer; margin-bottom: 2px; transition: background 0.12s, color 0.12s, transform 0.12s cubic-bezier(0.32, 0.72, 0, 1); }
.sb-icon:active { transform: scale(0.88); }
.sb-add { transition: background 0.12s, color 0.12s, transform 0.18s cubic-bezier(0.32, 0.72, 0, 1); }
.sb-add:hover svg { transform: rotate(90deg); }
.sb-add svg { transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1); }
.sb-icon:hover { background: rgba(255,255,255,0.09); color: rgba(255,255,255,0.75); }
.sb-icon.on { background: rgba(255,255,255,0.11); color: white; }
.sb-avatar { width: 28px; height: 28px; border-radius: 50%; background: #0ea5e9; display: flex; align-items: center; justify-content: center; color: white; font-size: 9.5px; font-weight: 600; margin-top: auto; margin-bottom: 8px; cursor: pointer; transition: box-shadow 0.12s, background 0.2s; position: relative; }
.sb-avatar:hover { box-shadow: 0 0 0 2px rgba(255,255,255,0.2); }
.sb-role-dot { position: absolute; bottom: -2px; right: -2px; width: 11px; height: 11px; border-radius: 50%; background: #10b981; border: 2px solid #1a2744; transition: background 0.2s; }
.sb-role-dot.dri { background: #f59e0b; }
.sb-role-dot.preparer { background: #10b981; }
body.role-preparer #sbAccess,
body.role-dri #sbAccess { display: none !important; }
body.role-dri #sbAddTask,
body.role-dri #sbSheet,
body.role-dri #sbOrg,
body.role-dri #sbInt { display: none !important; }
.sb-icon#sbDri { display: none; }
body.role-dri .sb-icon#sbDri { display: flex; }
.role-popover { position: fixed; left: 56px; bottom: 8px; width: 280px; background: white; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08); padding: 6px; z-index: 1000; display: none; border: 1px solid #e5e7eb; }
.role-popover.on { display: block; animation: rpSlide 0.14s ease-out; }
@keyframes rpSlide { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.rp-head { padding: 10px 10px 10px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #f3f4f6; margin-bottom: 4px; }
.rp-avatar { width: 36px; height: 36px; border-radius: 50%; background: #0ea5e9; display: flex; align-items: center; justify-content: center; color: white; font-size: 12px; font-weight: 600; flex-shrink: 0; transition: background 0.2s; }
.rp-head-txt { flex: 1; min-width: 0; }
.rp-name { font-size: 12.5px; font-weight: 600; color: #111827; line-height: 1.2; }
.rp-email { font-size: 11px; color: #6b7280; line-height: 1.2; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-section-lbl { font-size: 10px; color: #9ca3af; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; padding: 8px 10px 4px; }
.rp-role { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; transition: background 0.1s; }
.rp-role:hover { background: #f9fafb; }
.rp-role.active { background: #eff6ff; }
.rp-role-ico { width: 30px; height: 30px; border-radius: 7px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; color: #4f6ef7; flex-shrink: 0; }
.rp-role.active .rp-role-ico { background: #dbeafe; color: #2563eb; }
.rp-role-ico.dri { color: #d97706; background: #fff7ed; }
.rp-role.active .rp-role-ico.dri { background: #fed7aa; color: #9a3412; }
.rp-role-body { flex: 1; min-width: 0; }
.rp-role-name { font-size: 12.5px; font-weight: 600; color: #111827; line-height: 1.2; display: flex; align-items: center; gap: 6px; }
.rp-role-desc { font-size: 11px; color: #6b7280; line-height: 1.35; margin-top: 3px; }
.rp-role-check { color: #2563eb; flex-shrink: 0; opacity: 0; }
.rp-role.active .rp-role-check { opacity: 1; }
.rp-foot { padding: 7px 10px; border-top: 1px solid #f3f4f6; margin-top: 4px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #6b7280; cursor: pointer; border-radius: 6px; }
.rp-foot:hover { background: #f9fafb; color: #374151; }
.shell { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: white; }
.topbar { height: 44px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 14px; flex-shrink: 0; }
.bc { display: flex; align-items: center; font-size: 12px; color: #6b7280; }
.bc-app { display: flex; align-items: center; gap: 3px; font-weight: 600; color: #111827; cursor: pointer; }
.bc-sep { color: #d1d5db; margin: 0 5px; }
.bc-crumb { cursor: pointer; }
.bc-crumb:hover { color: #374151; }
.bc-current { color: #111827; font-weight: 500; }
.upd-badge { display: inline-flex; align-items: center; gap: 3px; background: #eef2ff; color: #345DEF; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 9px; margin-left: 7px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.topbar-right > .ra-btn,
.topbar-right > .ra-wrap { margin-left: 12px; }
.ttab { padding: 4px 9px; border-radius: 5px; font-size: 12px; color: #6b7280; cursor: pointer; }
.ttab:hover { background: #f3f4f6; color: #374151; }
.ttab.on { background: #f3f4f6; color: #111827; font-weight: 500; }
.exp-btn { display: flex; align-items: center; gap: 4px; padding: 3px 9px; border: 1px solid #e5e7eb; border-radius: 5px; background: white; font-size: 11px; color: #374151; cursor: pointer; }
.exp-btn:hover { background: #f9fafb; }
.wv-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 6px; }
.wv-tab { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 500; color: #6b7280; cursor: pointer; background: transparent; border: none; font-family: inherit; transition: background 0.12s, color 0.12s, box-shadow 0.12s; }
.wv-tab:hover { color: #374151; }
.wv-tab.on { background: white; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.wv-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.wv-dot-live { background: #4f6ef7; }
.wv-dot-test { background: #d97706; }
.wv-test-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 14px; padding: 0 4px; background: #fef3c7; color: #92400e; font-size: 9.5px; font-weight: 700; border-radius: 999px; line-height: 1; margin-left: 1px; }
.wv-tab.on .wv-test-count { background: #fde68a; }
.test-banner { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%); border-bottom: 1px solid #fde68a; color: #78350f; font-size: 12px; flex-shrink: 0; line-height: 1.4; }
.test-mode tbody tr.row-test-affected td.col-po { box-shadow: inset 3px 0 0 #4f6ef7; }
.test-mode tbody tr.row-test-affected td.col-po,
.test-mode tbody tr.row-test-affected td.col-amount,
.test-mode tbody tr.row-test-affected td.col-expl { background: #fafbff !important; }
.test-mode tbody tr.row-test-affected:hover td.col-po,
.test-mode tbody tr.row-test-affected:hover td.col-amount,
.test-mode tbody tr.row-test-affected:hover td.col-expl { background: #f0f4ff !important; }
.test-mode .cell-test-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4f6ef7; margin-right: 5px; vertical-align: middle; flex-shrink: 0; }
.test-mode .cell-test-amt-was { color: #9ca3af; text-decoration: line-through; font-weight: 400; margin-right: 4px; }
.test-mode .cell-test-rule-tag { display: inline-flex; align-items: center; padding: 1px 6px; background: #eff6ff; color: #1e40af; font-size: 10px; font-weight: 600; border-radius: 4px; margin-left: 6px; }
.main-area.drawer-open .table-wrap { max-width: calc(100% - 480px); }
.main-area.drawer-open td.col-cmt,
.main-area.drawer-open td.col-status,
.main-area.drawer-open td.col-reviewer,
.main-area.drawer-open td.col-preparer,
.main-area.drawer-open th.col-cmt,
.main-area.drawer-open th.col-status,
.main-area.drawer-open th.col-reviewer,
.main-area.drawer-open th.col-preparer { position: static !important; }
.sheet { border-collapse: collapse; font-size: 12px; width: max-content; }
.sheet th, .sheet td { border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }
.lrow th { background: #f9fafb; color: #9ca3af; font-weight: 400; font-size: 10px; text-align: center; padding: 2px 0; height: 20px; position: sticky; top: 0; z-index: 12; border-bottom: none; min-width: 100px; }
.lrow th.rn-col { min-width: 40px; width: 40px; }
.lrow th.c-on { background: #4f6ef7; color: white; }
.nrow th { background: #f9fafb; color: #374151; font-weight: 500; font-size: 11px; padding: 0; position: sticky; top: 20px; z-index: 12; white-space: nowrap; border-top: 1px solid #e5e7eb; }
.nrow th.c-on { background: #eef2ff; }
.nrow th.rn-col { min-width: 40px; width: 40px; }
.ch { display: flex; align-items: center; padding: 4px 8px; gap: 4px; }
.ch-txt { flex: 1; text-align: left; }
.ch-arr { font-size: 8px; color: #c4c9d4; opacity: 0; cursor: pointer; }
th:hover .ch-arr { opacity: 1; }
.c-on .ch-arr { opacity: 1; color: #4f6ef7; }
.sheet td { padding: 0 9px; color: #111827; vertical-align: middle; height: 34px; }
.sheet tbody tr:hover td { background: #f7f8fc; }
.sheet tbody tr:hover .rn { background: #eceef5; }
.sheet tbody tr:hover td.col-amount,
.sheet tbody tr:hover td.col-expl { background: #f3f5ff !important; }
.sheet tbody tr:hover td.col-preparer,
.sheet tbody tr:hover td.col-reviewer,
.sheet tbody tr:hover td.col-cmt { background: #f7f8fc !important; }
.sheet tbody td.col-amount { background: #fafbff !important; }
.sheet tbody td.col-expl { background: #fafbff !important; }
.sheet tbody td.col-status.ls-approved { background: #f0fdf4 !important; }
.sheet tbody td.col-status.ls-posted { background: #ecfdf5 !important; }
.sheet tbody td.col-status.ls-needs_review { background: #eef2ff !important; }
.sheet tbody td.col-status.ls-pending_preparer { background: #fffbeb !important; }
.sheet tbody td.col-status.ls-reviewed_comments { background: #fdf2f8 !important; }
.sheet tbody td.col-status.ls-blocked { background: #fff4f4 !important; }
.sheet tbody td.col-status.ls-no_action { background: #fafafa !important; }
.sheet tbody tr:hover td.col-status.ls-posted { background: #d1fae5 !important; }
.sheet tbody tr:hover td.col-status.ls-approved { background: #e7fbec !important; }
.sheet tbody tr:hover td.col-status.ls-needs_review { background: #e2e9ff !important; }
.sheet tbody tr:hover td.col-status.ls-pending_preparer { background: #fef4d8 !important; }
.sheet tbody tr:hover td.col-status.ls-reviewed_comments { background: #fce7f3 !important; }
.sheet tbody tr:hover td.col-status.ls-blocked { background: #fee8e8 !important; }
.sheet tbody tr:hover td.col-status.ls-no_action { background: #f3f4f6 !important; }
th.col-po { background: #f9fafb !important; z-index: 13; }
th.col-amount { background: #f9fafb !important; z-index: 13; }
th.col-expl { background: #f9fafb !important; z-index: 13; }
.po-cell { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.po-dot { width: 6px; height: 6px; border-radius: 50%; background: #345DEF; flex-shrink: 0; }
.po-dot-red { width: 6px; height: 6px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.old-v { text-decoration: line-through; color: #b0b7c3; font-size: 11px; margin-right: 5px; white-space: nowrap; }
.new-v { font-weight: 500; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 10px; font-size: 10px; font-weight: 500; }
.pill-p { background: #eff6ff; color: #4f6ef7; }
.pill-esc { background: #fee2e2; color: #dc2626; }
.pill-ovr { background: #fff7ed; color: #ea580c; }
.pill-rej { background: #fee2e2; color: #dc2626; }
.pill-app { background: #f0fdf4; color: #16a34a; }
.expl { max-width: 300px; white-space: normal; line-height: 1.45; font-size: 11px; color: #4b5563; padding: 5px 9px !important; height: auto !important; background: inherit; }
th.col-cmt { background: #f9fafb !important; z-index: 13; min-width: 32px !important; }
.active-po .col-cmt { background: #eef2ff !important; }
th.col-preparer { background: #f9fafb !important; z-index: 13; border-left: 1.5px solid #c4c9d4 !important; }
th.col-reviewer { background: #f9fafb !important; z-index: 13; }
th.col-status { background: #f9fafb !important; z-index: 13; }
th.col-drop-active .ch-txt { color: #4f6ef7; }
th.col-drop-active .ch-arr { opacity: 1 !important; color: #4f6ef7 !important; }
.assignee-wrap { display: flex; align-items: center; gap: 5px; padding: 0 9px; }
.assignee-name { flex: 1; color: #374151; }
.unassigned { color: #dc2626 !important; font-style: italic; }
.status-ctrl-sel.s-approved { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }
.status-ctrl-sel.s-posted { border-color: #047857; color: #047857; background: #ecfdf5; }
.status-ctrl-sel.s-needs-review { border-color: #4f6ef7; color: #4f6ef7; background: #f0f4ff; }
.status-ctrl-sel.s-pending-prep { border-color: #d97706; color: #d97706; background: #fffbeb; }
.status-ctrl-sel.s-reviewed-comments { border-color: #db2777; color: #db2777; background: #fdf2f8; }
.status-ctrl-sel.s-blocked { border-color: #dc2626; color: #dc2626; background: #fff4f4; }
.status-ctrl-sel.s-no-action { color: #9ca3af; }
.age-green { color: #16a34a; font-weight: 500; }
.age-amber { color: #d97706; font-weight: 500; }
.age-red { color: #dc2626; font-weight: 500; }
.agent-toast { position: fixed; bottom: 72px; right: 20px; background: #111827; color: white; padding: 8px 14px; border-radius: 7px; font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.2); transform: translateY(8px); opacity: 0; transition: transform 0.2s ease, opacity 0.2s ease; z-index: 500; pointer-events: none; }
.agent-toast.show { transform: translateY(0); opacity: 1; }
.confirm-icon { width: 40px; height: 40px; border-radius: 50%; background: #fef2f2; color: #dc2626; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.btabs { border-top: 1px solid #e5e7eb; display: flex; align-items: center; padding: 0 14px; background: white; flex-shrink: 0; height: 36px; }
.btab.on { color: #4f6ef7; border-bottom-color: #4f6ef7; font-weight: 500; }
.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; gap: 6px; }
.footer-upd { color: #345DEF; font-weight: 600; }
.footer-clr { color: #9ca3af; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.footer-clr:hover { color: #6b7280; }
.filt-dot { display: none; width: 5px; height: 5px; border-radius: 50%; background: #4f6ef7; margin-left: 3px; }
.filt-dot.show { display: inline-block; }
.fpanel { position: fixed; background: white; border: 1px solid #e5e7eb; border-radius: 7px; box-shadow: 0 6px 20px rgba(0,0,0,0.11); width: 272px; z-index: 300; display: none; }
.fpanel.open { display: block; }
.fp-sec { padding: 10px 11px; border-bottom: 1px solid #f3f4f6; }
.fp-lbl { font-size: 10px; color: #9ca3af; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.fp-select-wrap { position: relative; }
.fp-sel-trig { display: flex; align-items: center; justify-content: space-between; padding: 5px 8px; border: 1px solid #e5e7eb; border-radius: 5px; font-size: 12px; color: #111827; cursor: pointer; background: white; user-select: none; }
.fp-sel-trig.sel { border-color: #4f6ef7; }
.fp-sel-chv { color: #9ca3af; font-size: 8px; }
.fp-drop { position: absolute; left: 0; right: 0; top: calc(100% + 3px); background: white; border: 1px solid #e5e7eb; border-radius: 5px; box-shadow: 0 4px 12px rgba(0,0,0,0.09); z-index: 20; display: none; }
.fp-drop.open { display: block; }
.fopt { padding: 6px 10px; font-size: 12px; color: #374151; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.fopt:hover { background: #f5f6fa; }
.fopt.on { background: #eef2ff; color: #4f6ef7; font-weight: 500; }
.fopt.chg-opt { color: #345DEF; }
.fdot { width: 6px; height: 6px; border-radius: 50%; background: #345DEF; flex-shrink: 0; }
.fdivider { height: 1px; background: #f3f4f6; }
.cval-input { width: 100%; margin-top: 6px; padding: 5px 8px; border: 1px solid #e5e7eb; border-radius: 5px; font-size: 12px; outline: none; display: none; }
.cval-input.show { display: block; }
.fp-search { width: 100%; padding: 5px 8px; border: 1px solid #e5e7eb; border-radius: 5px; font-size: 12px; outline: none; margin-bottom: 6px; }
.fp-links { display: flex; gap: 8px; margin-bottom: 7px; }
.fp-lnk { font-size: 11px; color: #4f6ef7; cursor: pointer; text-decoration: underline; }
.vlist { max-height: 130px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.vi { display: flex; align-items: center; gap: 6px; padding: 3px; border-radius: 3px; cursor: pointer; }
.vi:hover { background: #f9fafb; }
.vi input { accent-color: #4f6ef7; width: 12px; height: 12px; }
.vdot { width: 6px; height: 6px; border-radius: 50%; background: #345DEF; flex-shrink: 0; }
.vsp { width: 6px; flex-shrink: 0; }
.vlbl { font-size: 12px; color: #111827; flex: 1; }
.fp-acts { display: flex; gap: 7px; padding: 9px 11px; }
.fp-ok { flex: 1; background: #4f6ef7; color: white; border: none; border-radius: 5px; padding: 6px 10px; font-size: 12px; font-weight: 500; cursor: pointer; }
.fp-ok:hover { background: #4060e8; }
.fp-cancel { padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 5px; background: white; font-size: 12px; color: #374151; cursor: pointer; }
.overview-panel { flex: 1; display: none; background: #f4f6fa; overflow-y: auto; }
.overview-panel.active { display: block; padding: 24px 28px; }
.ov-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.ov-card { background: white; border: 1px solid #e5e7eb; border-radius: 10px; padding: 20px 22px; display: flex; flex-direction: column; min-height: 0; }
.ov-card-title { font-size: 13px; font-weight: 600; color: #111827; }
.ov-card-sub { font-size: 11px; color: #9ca3af; margin-top: 1px; }
.ov-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.ring-wrap { display: flex; align-items: center; gap: 28px; flex: 1; min-height: 0; }
.ring-svg-wrap { align-self: stretch; display: flex; align-items: center; flex-shrink: 0; }
.ring-kpis { display: flex; flex-direction: column; gap: 16px; flex: 1; justify-content: center; }
.rkpi { display: flex; align-items: center; gap: 10px; cursor: default; padding: 4px 6px; border-radius: 6px; margin: -4px -6px; transition: background 0.12s; }
.rkpi:hover { background: #f9fafb; }
.rkpi-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.rkpi-pct { font-size: 13px; color: #9ca3af; min-width: 36px; }
.rkpi-label { font-size: 13px; color: #6b7280; flex: 1; }
.rkpi-count { font-size: 17px; font-weight: 700; line-height: 1; min-width: 24px; text-align: right; }
.rkpi-stale-sep { height: 1px; background: #f3f4f6; margin: 4px 0; }
.rkpi-stale { display: flex; align-items: center; gap: 10px; cursor: default; padding: 3px 5px; border-radius: 5px; margin: -3px -5px; transition: background 0.12s; }
.rkpi-stale:hover { background: #fef9ec; }
.rkpi-stale-label { font-size: 13px; color: #6b7280; flex: 1; }
.rkpi-stale-count { font-size: 17px; font-weight: 700; line-height: 1; min-width: 24px; text-align: right; }
.rkpi-open { display: flex; align-items: center; gap: 10px; cursor: default; padding: 3px 5px; border-radius: 5px; margin: -3px -5px; transition: background 0.12s; }
.rkpi-open:hover { background: #eef2ff; }
.stale-tip { position: fixed; background: white; color: #111827; border: 1px solid #e5e7eb; border-radius: 9px; padding: 12px 14px; font-size: 11px; z-index: 400; min-width: 300px; max-width: 360px; box-shadow: 0 4px 20px rgba(0,0,0,0.10); pointer-events: none; }
.stale-tip-title { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.stale-tip-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid #f3f4f6; }
.stale-tip-row:last-child { border-bottom: none; padding-bottom: 0; }
.stale-tip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.stale-tip-po { font-size: 11px; font-weight: 600; color: #111827; min-width: 54px; }
.stale-tip-sup { flex: 1; font-size: 11px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stale-tip-badge { font-size: 10px; font-weight: 500; padding: 1px 6px; border-radius: 3px; white-space: nowrap; }
.stale-tip-date { font-size: 10px; color: #9ca3af; min-width: 40px; text-align: right; }
.cp-kpis { display: flex; align-items: center; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #f3f4f6; }
.cp-kpi { flex: 1; text-align: center; }
.cp-kpi-val { font-size: 22px; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.cp-kpi-lbl { font-size: 10px; color: #9ca3af; }
.cp-kpi-div { width: 1px; height: 30px; background: #f3f4f6; }
.pace-legend { display: flex; align-items: center; gap: 12px; font-size: 10px; color: #9ca3af; margin-top: 4px; }
.pace-leg-item { display: flex; align-items: center; gap: 5px; }
.pace-leg-bar { width: 9px; height: 9px; border-radius: 2px; background: #4f6ef7; }
.pace-leg-dash { width: 14px; height: 0; border-top: 2px dashed #d97706; }
.pace-chart-wrap { position: relative; }
.dept-tbl { width: 100%; border-collapse: collapse; }
.dept-tbl th { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; padding: 0 10px 9px; text-align: left; border-bottom: 1px solid #f3f4f6; white-space: nowrap; }
.dept-tbl th.r { text-align: right; }
.dept-tbl td { font-size: 12px; color: #374151; padding: 9px 10px; border-bottom: 1px solid #f9fafb; vertical-align: middle; }
.dept-tbl tr:last-child td { border-bottom: none; }
.dept-tbl tr:hover td { background: #fafafa; }
.dept-pbar-wrap { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.dept-pbar { width: 80px; height: 5px; background: #f3f4f6; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.dept-pbar-fill { height: 100%; border-radius: 3px; }
.health-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.h-green { background: #f0fdf4; color: #16a34a; }
.h-yellow { background: #fffbeb; color: #d97706; }
.h-red { background: #fff4f4; color: #dc2626; }
.blocker-type-bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.blocker-type-label { display: flex; justify-content: space-between; font-size: 12px; color: #374151; margin-bottom: 5px; }
.blocker-type-count { color: #9ca3af; font-size: 11px; }
.blocker-pbar { width: 100%; height: 6px; background: #f3f4f6; border-radius: 3px; overflow: hidden; }
.blocker-pbar-fill { height: 100%; border-radius: 3px; }
.aging-tbl { width: 100%; border-collapse: collapse; }
.aging-tbl th { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; padding: 0 10px 9px; text-align: left; border-bottom: 1px solid #f3f4f6; white-space: nowrap; }
.aging-tbl td { font-size: 12px; color: #374151; padding: 9px 10px; border-bottom: 1px solid #f9fafb; vertical-align: middle; }
.aging-tbl tr:last-child td { border-bottom: none; }
.days-badge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.days-red { background: #fff4f4; color: #dc2626; }
.days-yellow { background: #fffbeb; color: #d97706; }
.action-btn { font-size: 11px; padding: 4px 10px; border-radius: 5px; border: 1px solid #e5e7eb; background: white; color: #374151; cursor: pointer; font-weight: 500; transition: background 0.1s; }
.action-btn:hover { background: #f9fafb; }
.action-btn-primary { background: #4f6ef7; color: white; border-color: #4f6ef7; }
.action-btn-primary:hover { background: #4060e8; }
.pace-tooltip { position: absolute; background: white; color: #111827; border: 1px solid #e5e7eb; padding: 11px 14px; border-radius: 8px; font-size: 11px; line-height: 1; pointer-events: none; z-index: 100; min-width: 178px; box-shadow: 0 4px 16px rgba(0,0,0,0.09); }
.tt-date { font-size: 12px; font-weight: 600; color: #111827; margin-bottom: 8px; padding-bottom: 7px; border-bottom: 1px solid #f3f4f6; }
.tt-row { display: flex; justify-content: space-between; gap: 14px; margin-top: 5px; }
.tt-lbl { color: #9ca3af; }
.tt-val { font-weight: 600; color: #374151; }
.tt-up { color: #16a34a; }
.tt-dn { color: #dc2626; }
.tt-pos { color: #16a34a; }
.tt-neg { color: #dc2626; }
.integration-page { flex: 1; display: none; flex-direction: column; overflow: hidden; background: #fafafa; }
.integration-page.active { display: flex; }
.integration-detail-page { flex: 1; display: none; flex-direction: column; overflow: hidden; background: #fafafa; }
.integration-detail-page.active { display: flex; }
.integration-page .np-section { display: none; }
.orgchart-page { flex: 1; display: none; flex-direction: column; overflow: hidden; background: white; }
.orgchart-page.active { display: flex; }
.ring-toggle { display: inline-flex; background: #f3f4f6; border-radius: 6px; padding: 2px; gap: 2px; }
.ring-toggle button { background: transparent; border: 0; font-family: inherit; font-size: 10px; font-weight: 500; color: #6b7280; padding: 4px 9px; border-radius: 4px; cursor: pointer; transition: all 0.12s; }
.ring-toggle button:hover { color: #111827; }
.ring-toggle button.active { background: white; color: #111827; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.main-area { flex: 1; display: flex; overflow: hidden; position: relative; }
.cmt-icon { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; color: #c4c9d4; cursor: pointer; position: relative; }
.cmt-icon:hover { background: #f3f4f6; color: #6b7280; }
.cmt-icon .cmt-dot { position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: #dc2626; display: none; }
.cmt-icon.has-unresolved .cmt-dot { display: block; }
.cmt-icon.has-unresolved { color: #6b7280; }
.cmt-icon.resolved-only { opacity: 0; }
tr:hover .cmt-icon.resolved-only { opacity: 1; }
.cmt-icon.no-comments { opacity: 0; }
tr:hover .cmt-icon.no-comments { opacity: 0.5; }
tr:hover .cmt-icon.no-comments:hover { opacity: 1; }
.cmt-count { position: absolute; top: 0; right: -2px; background: #dc2626; color: white; font-size: 8px; min-width: 12px; height: 12px; border-radius: 6px; display: none; align-items: center; justify-content: center; padding: 0 2px; font-weight: 600; line-height: 1; }
.has-unresolved .cmt-count { display: flex; }
.main-drawer.open { transform: translateX(0); box-shadow: -8px 0 24px rgba(17, 24, 39, 0.08); pointer-events: auto; }
.thread-area { flex: 1; overflow-y: auto; padding: 14px; }
.msg { margin-bottom: 14px; }
.msg:last-child { margin-bottom: 0; }
.msg-header { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.msg-av { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 8px; font-weight: 600; flex-shrink: 0; }
.msg-name { font-size: 11px; font-weight: 600; color: #111827; }
.msg-role { font-size: 9px; color: #9ca3af; font-weight: 500; background: #f3f4f6; padding: 1px 5px; border-radius: 3px; }
.msg-time { font-size: 10px; color: #c4c9d4; margin-left: auto; }
.msg-body { margin-left: 30px; padding: 9px 11px; background: #f9fafb; border-radius: 7px; font-size: 11px; line-height: 1.5; color: #374151; border: 1px solid #f3f4f6; }
.msg-body.agent-msg { background: #eef2ff; border-color: #dde4ff; }
.msg.resolved .msg-body { opacity: 0.55; }
.msg.resolved .msg-name { opacity: 0.55; }
.msg-actions { display: flex; align-items: center; gap: 6px; margin-left: 30px; margin-top: 3px; }
.msg-resolve-btn { font-size: 10px; color: #9ca3af; cursor: pointer; border: none; background: none; font-family: inherit; padding: 2px 0; }
.msg-resolve-btn:hover { color: #16a34a; }
.msg-resolved { font-size: 10px; color: #16a34a; display: flex; align-items: center; gap: 3px; }
.reply-area { border-top: 1px solid #e5e7eb; padding: 10px 14px; flex-shrink: 0; background: #fafafa; }
.reply-wrap { border: 1px solid #e5e7eb; border-radius: 7px; background: white; overflow: hidden; }
.reply-wrap:focus-within { border-color: #4f6ef7; box-shadow: 0 0 0 2px rgba(79,110,247,0.08); }
.reply-input { width: 100%; border: none; outline: none; padding: 9px 11px; font-size: 11px; font-family: inherit; color: #111827; resize: none; min-height: 56px; max-height: 120px; }
.reply-input::placeholder { color: #c4c9d4; }
.reply-btn { padding: 4px 13px; border: none; border-radius: 5px; background: #4f6ef7; color: white; font-size: 11px; font-weight: 500; cursor: pointer; font-family: inherit; }
.reply-btn:hover { background: #3d5bd9; }
.reply-btn:disabled { background: #c7d2fe; cursor: default; }
.empty-thread { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; color: #c4c9d4; text-align: center; }
.empty-thread svg { margin-bottom: 8px; }
.empty-thread p { font-size: 11px; margin-top: 4px; }
.active-po td { background: #eef2ff !important; }
.active-po .col-amount, .active-po .col-expl, .active-po .col-preparer, .active-po .col-reviewer, .active-po .col-status, .active-po .col-cmt { background: #eef2ff !important; }
.nrow th:hover .col-type { opacity: 0.85; }
.sheet tbody td.src-col { color: #6b7280; cursor: default; }
.row-menu.on { display: block; }
.sheet tbody td.col-amount,
.sheet tbody td.col-expl { cursor: text; }
.sheet tbody td.col-amount:hover,
.sheet tbody td.col-expl:hover { box-shadow: inset 0 0 0 1px rgba(79,110,247,0.35); }
textarea.cell-edit { min-height: 54px; line-height: 1.45; resize: vertical; }
.checklist-drawer.open { width: 280px; }
.sb-icon.on { background: rgba(255,255,255,0.12); }
th.col-health { background: #f9fafb !important; z-index: 13; }
.sheet tbody tr:hover td.col-po,
.sheet tbody tr:hover td.col-health { background: #f7f8fc !important; }
.health-ring-text { font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; color: #374151; line-height: 1; }
.health-ring.green  .health-ring-track { stroke: #dcfce7; }
.health-ring.green  .health-ring-fill { stroke: #16a34a; }
.health-ring.yellow .health-ring-track { stroke: #fef3c7; }
.health-ring.yellow .health-ring-fill { stroke: #d97706; }
.health-ring.orange .health-ring-track { stroke: #ffedd5; }
.health-ring.orange .health-ring-fill { stroke: #ea580c; }
.health-ring.red    .health-ring-track { stroke: #fee2e2; }
.health-ring.red    .health-ring-fill { stroke: #dc2626; }
.out-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 9px; font-size: 10px; font-weight: 500; border: 1px solid transparent; white-space: nowrap; }
.out-pill.replied { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.out-pill.sent { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.out-pill.notsent { background: #f9fafb; color: #6b7280; border-color: #e5e7eb; }
.services-y { color: #16a34a; font-weight: 500; }
.services-n { color: #dc2626; font-weight: 500; }
#vendorPanel .data-tbl td[style*="max-width"] { max-width: 260px !important; }
.act-btn { width: 22px; height: 22px; border: none; background: transparent; border-radius: 4px; color: #9ca3af; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.act-btn:hover { background: #f3f4f6; color: #374151; }
.act-btn.danger:hover { background: #fee2e2; color: #dc2626; }
.act-btn.primary { color: #4f6ef7; }
.act-btn.primary:hover { background: #eef2ff; color: #4f6ef7; }
.exc-filter-bar { padding: 8px 16px; border-bottom: 1px solid #f3f4f6; flex-shrink: 0; background: white; }
.exc-filter { width: 360px; padding: 7px 14px; border: 1px solid #e5e7eb; border-radius: 999px; font-size: 12px; outline: none; font-family: inherit; background: white; }
.exc-filter:focus { border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79,110,247,0.12); }
.access-page { flex: 1; display: none; flex-direction: column; overflow: hidden; background: white; }
.access-page.active { display: flex; }
table.acl { width: 100%; border-collapse: collapse; }
table.acl thead th { position: sticky; top: 0; z-index: 10; background: #f9fafb; border-bottom: 1px solid #e5e7eb; padding: 8px 14px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; color: #9ca3af; text-align: left; white-space: nowrap; }
table.acl thead th .th-dot { display: inline-block; width: 6px; height: 6px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
table.acl tbody tr { border-bottom: 1px solid #f3f4f6; }
table.acl tbody tr:hover { background: #f7f8fc; }
table.acl td { padding: 10px 14px; vertical-align: top; }
table.acl td.acl-td-mem { white-space: nowrap; width: 220px; }
table.acl td.acl-td-role { white-space: nowrap; width: 130px; vertical-align: middle; }
table.acl td.acl-td-cat { min-width: 200px; }
table.acl tbody tr:hover .acl-add { opacity: 1; pointer-events: auto; }
table.acl tbody tr:has(.acl-add-dd.open) .acl-add { opacity: 1; pointer-events: auto; }
.ra-wrap { position: relative; margin-left: 8px; display: inline-flex; align-items: center; }
.ra-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 6px; border: none; background: #4f6ef7; color: white; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background 0.12s, transform 0.12s; }
.ra-btn:hover { background: #3d5bd9; }
.ra-btn:active { transform: scale(0.96); }
.ra-menu { position: absolute; top: calc(100% + 4px); right: 0; min-width: 240px; background: white; border: 1px solid #c7d2fe; border-radius: 8px; box-shadow: 0 4px 16px rgba(17,24,39,0.10); padding: 4px; z-index: 50; opacity: 0; pointer-events: none; transform: translateY(-4px); transition: opacity 0.14s ease, transform 0.14s ease; }
.ra-menu.on { opacity: 1; pointer-events: auto; transform: translateY(0); }
.ra-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 5px; font-size: 12px; color: #111827; cursor: pointer; transition: background 0.1s; }
.ra-item:hover { background: #f3f4f6; }
.ra-item svg { color: #6b7280; flex-shrink: 0; }
.ra-item + .ra-item { border-top: 1px solid #f3f4f6; border-radius: 0; }
.ra-count { color: #4f6ef7; font-weight: 600; }
.journals-page { flex: 1; display: none; flex-direction: column; overflow: hidden; background: #fafafa; position: relative; }
body.is-journals #raWrap { display: none !important; }
body.is-policy #raWrap { display: none !important; }
body.is-policy-detail #wvSwitch { display: inline-flex !important; }
#wvSwitch { display: none; }
body.test-mode .pol-rule[draggable="true"] { cursor: grab; }
body.test-mode .pol-rule[draggable="true"]:active { cursor: grabbing; }
body.test-mode .pol-rule[draggable="true"] .pol-rule-num { cursor: grab; }
body.test-mode .pol-rule[draggable="true"]:hover .pol-rule-num .pol-num-text { opacity: 0; }
body.test-mode .pol-rule[draggable="true"]:hover .pol-rule-num .pol-num-handle { display: inline-flex; }
body.test-mode .pol-rule.is-dragging { opacity: 0.45; cursor: grabbing !important; }
body.test-mode .pol-rule.drop-before { box-shadow: inset 0 3px 0 0 #4f6ef7 !important; }
body.test-mode .pol-rule.drop-after { box-shadow: inset 0 -3px 0 0 #4f6ef7 !important; }
body.test-mode .pol-rule[draggable="true"] input,
body.test-mode .pol-rule[draggable="true"] select,
body.test-mode .pol-rule[draggable="true"] textarea,
body.test-mode .pol-rule[draggable="true"] button { cursor: auto; }
.rs-pill { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 1.55; letter-spacing: 0.01em; white-space: nowrap; }
.rs-pill .rs-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.rs-pill.rs-live { background: #eff6ff; color: #1e40af; }
.rs-pill.rs-live      .rs-dot { background: #4f6ef7; }
.rs-pill.rs-in-review { background: #fffbeb; color: #92400e; }
.rs-pill.rs-in-review .rs-dot { background: #d97706; }
.rs-pill.rs-approved { background: #f0fdf4; color: #166534; }
.rs-pill.rs-approved  .rs-dot { background: #16a34a; }
.rs-pill.rs-rejected { background: #fef2f2; color: #b91c1c; }
.rs-pill.rs-rejected  .rs-dot { background: #dc2626; }
.rs-pill.rs-draft { background: #f3f4f6; color: #4b5563; }
.rs-pill.rs-draft     .rs-dot { background: #9ca3af; }
.rm-avatar[data-who="EC"] { background: #0ea5e9; }
.rm-avatar[data-who="SK"] { background: #e879a0; }
.rm-avatar[data-who="AR"] { background: #f59e0b; }
.rm-avatar[data-who="CM"] { background: #10b981; }
.rm-avatar[data-who="JL"] { background: #8b5cf6; }
.rm-avatar[data-who="MT"] { background: #f97316; }
.rm-avatar[data-who="SL"] { background: #a855f7; }
.rm-avatar[data-who="TN"] { background: #6366f1; }
.rm-avatar[data-who="SY"] { background: #94a3b8; }
.ppi-check { width: 14px; flex-shrink: 0; color: #4f6ef7; opacity: 0; padding-top: 3px; }
.ppi-body { flex: 1; min-width: 0; }
.ppi-row1 { display: flex; align-items: center; gap: 8px; }
.ppi-name { font-size: 13.5px; font-weight: 600; color: #111827; }
.ppi-ver { font-size: 10.5px; font-weight: 600; color: #4f6ef7; background: #eef2ff; padding: 1px 6px; border-radius: 999px; }
.ppi-row2 { display: flex; align-items: center; gap: 12px; margin-top: 3px; font-size: 11.5px; color: #6b7280; }
.ppi-meta-sep { color: #d1d5db; }
.ppi-check { width: 14px; flex-shrink: 0; color: #4f6ef7; opacity: 0; padding-top: 3px; }
.ppi-body { flex: 1; min-width: 0; }
.ppi-row1 { display: flex; align-items: center; gap: 8px; }
.ppi-name { font-size: 13.5px; font-weight: 600; color: #111827; }
.ppi-ver { font-size: 10.5px; font-weight: 600; color: #4f6ef7; background: #eef2ff; padding: 1px 6px; border-radius: 999px; }
.ppi-row2 { display: flex; align-items: center; gap: 12px; margin-top: 3px; font-size: 11.5px; color: #6b7280; }
.ppi-meta-sep { color: #d1d5db; }
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: padding-box;
  transition: background-color 0.25s ease;
}
.scrollbar-near::-webkit-scrollbar-thumb,
.is-scrolling::-webkit-scrollbar-thumb {
  background-color: rgba(15, 23, 42, 0.22);
}
.scrollbar-near::-webkit-scrollbar-thumb:hover,
.is-scrolling::-webkit-scrollbar-thumb:hover {
  background-color: rgba(15, 23, 42, 0.40);
}
* { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.scrollbar-near, .is-scrolling { scrollbar-color: rgba(15, 23, 42, 0.22) transparent; }
.ov-greet { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 20px; flex-wrap: wrap; }
.ov-greet-left { display: flex; flex-direction: column; gap: 3px; }
.ov-greet-hi { font-size: 18px; font-weight: 600; color: #111827; letter-spacing: -0.01em; }
.ov-greet-sub { font-size: 12px; color: #6b7280; }
.ov-greet-right { display: flex; align-items: center; gap: 10px; }
.ov-greet-label { font-size: 11px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.prep-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.prep-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; background: white; border: 1px solid #e5e7eb; border-radius: 999px; font-size: 11px; color: #374151; font-weight: 500; }
.prep-chip-ava { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: white; flex-shrink: 0; }
.prep-chip-count { font-size: 10px; color: #9ca3af; font-weight: 500; }
.prep-chip.agent { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.prep-chip.agent .prep-chip-ava { background: #4f6ef7; }
