/* Scoped to personnel pages: other lists, drawers and forms keep their styles. */
#page-people,.personnel-v2,.personnel-edit-modal{--pv-primary:#0F7868;--pv-border:#E5E6EB;--pv-bg:#F7F8FA;--pv-muted:#86909C;--pv-text:#1D2129;--pv-danger:#E54848;--pv-soft:#E5F3EF;--pv-warning:#FFF5E8;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif}
#page-people .page-heading{margin-bottom:24px;gap:24px}
#page-people{padding-top:8px;margin-right:8px}
#page-people .toolbar{padding:16px;gap:8px;border-bottom:1px solid var(--pv-border);margin:0;flex-wrap:wrap}
#page-people .toolbar .search{flex:1 1 320px;width:360px;max-width:480px}
#page-people .toolbar .ui-select{width:144px;min-width:144px}
#page-people .toolbar .ui-select:has(select[aria-label="店盈通编码"]){width:176px;min-width:176px}
#page-people .tool-surface{padding:0;border:1px solid var(--pv-border);border-radius:8px;background:#fff;overflow:visible;box-shadow:0 1px 3px #1d212908}
#page-people table{table-layout:fixed;min-width:1184px;font-size:13px}
#page-people th{height:44px;font-size:12px;padding:12px 16px}
#page-people td{height:88px;padding:16px;font-size:13px;vertical-align:middle;white-space:normal;border-bottom:1px solid var(--pv-border)}
#page-people tbody tr:nth-child(even){background:#FAFBFC}
#page-people tbody tr:hover{background:#f3f9f7}
#page-people .pv-name{font-size:14px;font-weight:600;padding:0;border:0;background:none;text-align:left;cursor:pointer}
#page-people .pv-name:hover{color:var(--pv-primary)}
#page-people td small{display:block;font-size:11px;line-height:1.6;color:var(--pv-muted);overflow-wrap:anywhere}
#page-people .pv-employee-code{display:block;overflow-wrap:anywhere;line-height:1.7}
#page-people .pv-account{font-size:13px;display:block;margin-bottom:4px;overflow-wrap:anywhere}
#page-people .pv-scope{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.7}
#page-people td:first-child,#page-people th:first-child{position:sticky;left:0;z-index:1;background:#fff}
#page-people td:last-child,#page-people th:last-child{position:sticky;right:0;z-index:1;background:#fff;box-shadow:-4px 0 8px #1d212904}
#page-people th:first-child,#page-people th:last-child{background:#F2F3F5}
#page-people tr:nth-child(even) td:first-child,#page-people tr:nth-child(even) td:last-child{background:#FAFBFC}
#page-people .pv-actions{display:flex;justify-content:flex-end;gap:16px;white-space:nowrap}
#page-people .pv-actions .text-button{font-size:13px;margin:0}
.pv-badge{display:inline-flex;padding:2px 6px;border-radius:4px;background:#F2F3F5;color:#4E5969;font-size:12px;line-height:1.6;white-space:nowrap}
.pv-badge.green{color:#0F7868;background:#E5F3EF}.pv-badge.orange{color:#A25500;background:#FFF5E8}
.pv-quiet{color:#86909C;font-size:12px}.pv-danger{color:#E54848;font-size:12px}
#person-drawer.personnel-v2{width:640px;max-width:100vw;background:#fff;color:var(--pv-text)}
.personnel-v2 .drawer-header{padding:20px 24px;min-height:76px;border-bottom:1px solid var(--pv-border)}
.personnel-v2 .drawer-header h2{font-size:18px}.personnel-v2 #drawer-content{padding:24px;overscroll-behavior:contain}
.personnel-v2 .drawer-header .icon-button,.personnel-edit-modal .modal-header .icon-button{border:0;background:none}
body:has(.personnel-v2.show) .drawer-mask{background:rgba(29,33,41,.48)}
.personnel-v2 .pv-summary{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.personnel-v2 .pv-summary>div{flex:1}.personnel-v2 .pv-summary strong{font-size:18px;font-weight:600}
.personnel-v2 .pv-summary small{display:block;font-size:12px;color:var(--pv-muted);margin-top:4px}
.personnel-v2 .pv-avatar{display:grid;place-items:center;width:40px;height:40px;border-radius:8px;background:var(--pv-soft);color:var(--pv-primary);font-size:16px;font-weight:600}
.personnel-v2 .pv-meta{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}
.personnel-v2 .pv-meta>div{min-width:0}.personnel-v2 .pv-meta span{display:block;font-size:12px;color:var(--pv-muted);margin-bottom:4px}
.personnel-v2 .pv-meta strong{display:block;font-size:13px;font-weight:400;line-height:1.6;overflow-wrap:anywhere}
.personnel-v2 .pv-tabs{display:flex;gap:24px;border-bottom:1px solid var(--pv-border);margin:24px 0}
.personnel-v2 .pv-tabs button{padding:12px 0;border:0;border-bottom:2px solid transparent;font-size:14px;color:#4E5969;background:none;cursor:pointer}
.personnel-v2 .pv-tabs [aria-selected=true]{border-color:var(--pv-primary);color:var(--pv-primary);font-weight:600}
.personnel-v2 .pv-section{padding:0;margin:0 0 24px}.personnel-v2 h3{font-size:14px;font-weight:600;margin:0}
.personnel-v2 .pv-between{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.personnel-v2 .pv-appointment{padding:16px;border:1px solid var(--pv-border);border-radius:8px;margin-top:12px;background:#fff}
.personnel-v2 .pv-appointment-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.personnel-v2 .pv-appointment-head strong{font-size:14px;font-weight:600}.personnel-v2 .pv-appointment-head p{font-size:12px;color:#4E5969;margin:8px 0 0}
.personnel-v2 .pv-flex,.personnel-edit-modal .pv-flex{display:flex;align-items:center;gap:8px}
.personnel-v2 .pv-appointment-head .button{height:32px;min-height:32px;padding:0 12px;font-size:12px}
.personnel-v2 .appointment-menu summary{height:32px;width:32px;border:1px solid var(--pv-border);border-radius:8px}
.personnel-v2 .appointment-menu-panel button{min-height:40px}
.personnel-v2 .pv-map-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0 8px}.personnel-v2 .pv-map-row strong{font-size:16px;font-weight:600}
.personnel-v2 .pv-source-store{color:#4E5969;font-size:12px;margin:8px 0 0}
.personnel-v2 .pv-sync{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--pv-muted);margin-top:16px}
.personnel-v2 .pv-sync button{margin-left:auto}
.personnel-v2 .pv-kv{display:flex;justify-content:space-between;gap:24px;padding:12px 0;font-size:13px}.personnel-v2 .pv-kv span{color:#86909C}.personnel-v2 .pv-kv strong{font-weight:400;overflow-wrap:anywhere;text-align:right}
.personnel-v2 .pv-event{padding:16px 0;border-bottom:1px solid var(--pv-border);font-size:13px}.personnel-v2 .pv-event small{display:block;margin:8px 0;color:#86909C;font-size:12px}.personnel-v2 pre{white-space:pre-wrap;overflow-wrap:anywhere}
.personnel-v2 .pv-empty{text-align:center;padding:24px 16px;color:#86909C}
.personnel-v2 .drawer-footer{min-height:72px;padding:16px 24px;gap:8px}
.personnel-v2 .drawer-footer>.cell-sub{font-size:11px}
.personnel-edit-modal .modal{width:min(720px,calc(100vw - 32px));max-width:none;border-radius:8px}
.personnel-edit-modal .modal-header{padding:20px 24px}.personnel-edit-modal .modal-header h2{font-size:18px}
.personnel-edit-modal .modal-body{padding:24px}.personnel-edit-modal .form-note{padding:12px 16px;background:var(--pv-bg);border:0;border-radius:8px;font-size:12px;margin:0 0 24px}
.personnel-edit-modal .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}.personnel-edit-modal .field{margin:0;min-width:0}.personnel-edit-modal .field>label{font-size:13px;font-weight:400;color:#4E5969;margin-bottom:8px}
.personnel-edit-modal [data-pv-check]{flex-shrink:0;white-space:nowrap}
.personnel-edit-modal .ui-trigger:disabled{background:var(--pv-bg);color:var(--pv-muted);cursor:not-allowed}
.personnel-edit-modal [data-pv-leave][hidden]{display:none}
.personnel-edit-modal .field input:not([type=radio]):not([type=checkbox]){height:36px;border:1px solid var(--pv-border);border-radius:8px;padding:0 12px;min-width:0;font:inherit}
.personnel-edit-modal .field small{font-size:12px;color:var(--pv-muted);display:block;margin-top:6px;line-height:1.6}
.personnel-edit-modal .field em{color:var(--pv-danger);font-style:normal;margin-right:4px}
.personnel-edit-modal .pv-radios{display:flex;gap:24px;align-items:center;min-height:36px}
.personnel-edit-modal .pv-radios label,.personnel-edit-modal .pv-confirm{display:flex;gap:8px;align-items:center;font-size:13px}
.personnel-edit-modal input[type=radio],.personnel-edit-modal input[type=checkbox]{width:16px;height:16px;accent-color:var(--pv-primary);margin:0;flex-shrink:0}
.personnel-edit-modal .pv-confirm{margin-top:12px;font-size:12px}.personnel-edit-modal .pv-tip{padding:12px 16px;background:var(--pv-soft);border-radius:8px;font-size:12px;margin-top:8px}.personnel-edit-modal .pv-tip.warning{background:var(--pv-warning);color:#8E530E}
.personnel-edit-modal input:disabled{background:var(--pv-bg);color:var(--pv-muted);cursor:not-allowed}.personnel-edit-modal .modal-footer{padding:16px 24px;min-height:72px}
@media(max-width:600px){.personnel-v2 #drawer-content{padding:16px}.personnel-v2 .pv-meta{gap:16px}.personnel-v2 .pv-appointment-head{gap:8px;flex-wrap:wrap}.personnel-v2 .drawer-footer>.cell-sub{display:none}.personnel-edit-modal .form-grid{grid-template-columns:1fr}.personnel-edit-modal .modal-body{padding:16px}}
