/* 5.2: scoped People screen; approved Funnel rules remain unchanged. */
.crm-people-pilot{color:#102d50}.crm-people-pilot #app{grid-template-columns:200px minmax(0,1fr)}
.crm-people-pilot.pilot-collapsed #app{grid-template-columns:56px minmax(0,1fr)}
.crm-people-pilot .pilot-nav{width:200px;padding:14px 8px}.crm-people-pilot.pilot-collapsed .pilot-nav{width:56px;padding:14px 4px}
.crm-people-pilot.pilot-collapsed .pilot-rail-button{padding:12px;gap:0}.crm-people-pilot .pilot-submenu button.active{background:#e8f3fc;color:#005a9e;font-weight:600;box-shadow:inset 3px 0 #0078d4}
.crm-people-pilot .workspace.people-main{padding:14px 16px;min-width:0;overflow:auto}.crm-people-pilot .content-card{padding:0;border:0;background:transparent;min-width:0;box-shadow:none}
.people-workspace{min-width:0}.people-commandbar{display:flex;align-items:center;gap:12px;min-height:62px;padding:12px 14px;box-sizing:border-box;background:#fff;border:1px solid #c5d5e6;border-radius:6px;margin-bottom:12px}
.people-commandbar h1{font:650 24px/1.25 'Segoe UI',Arial,sans-serif;margin:0;padding-right:14px;border-right:1px solid #dce5ef;color:#102d50}.people-count{font-size:12px;color:#526b85;white-space:nowrap}
.people-search{display:flex;align-items:center;gap:8px;flex:1;max-width:340px;min-width:170px;margin-left:auto;padding:0 10px;height:36px;border:1px solid #c5d5e6;border-radius:5px;background:white;color:#60748a;box-sizing:border-box}.people-search input{border:0;background:transparent;font:12px 'Segoe UI',Arial,sans-serif;width:100%;min-width:0;padding:0;height:32px;color:#102d50;outline:none}.people-search:focus-within{outline:2px solid #0078d459;border-color:#0078d4}
.people-commandbar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;flex:none}
.people-workspace button,.people-dialog button{font:12px 'Segoe UI',Arial,sans-serif;min-height:36px;border:1px solid #c5d5e6;border-radius:5px;background:white;color:#102d50;padding:7px 11px;cursor:pointer;box-sizing:border-box}.people-commandbar button{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.people-workspace button:hover,.people-dialog button:hover{background:#edf3f9;border-color:#9fb8d1}.people-workspace button:focus-visible,.people-dialog button:focus-visible,.people-workspace select:focus-visible{outline:3px solid #0078d459;outline-offset:2px}
.people-commandbar .people-primary{background:#0078d4;color:white;border-color:#0078d4;font-weight:600}.people-commandbar .people-primary:hover{background:#0067b8}
.people-filters[hidden]{display:none}.people-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;background:#fff;border:1px solid #d4e0ec;padding:14px;border-radius:6px;margin-bottom:12px}.people-filters label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#526b85}.people-filters select{height:36px;min-width:170px;max-width:100%;font:12px 'Segoe UI',Arial,sans-serif;color:#102d50;border:1px solid #c5d5e6;border-radius:4px;background:#fff;padding:6px}.people-filters .people-check{flex-direction:row;align-items:center;height:36px}.people-check input{width:16px;height:16px}
.people-list-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#234565;margin:16px 1px 10px}.people-list-meta small,.people-list-meta>span:last-child{font-size:11px;color:#60748a}
.people-table-scroll{max-width:100%;overflow:auto;background:#fff;border:1px solid #d4e0ec;border-radius:6px}.people-table{border-collapse:collapse;width:100%;margin:0;min-width:1100px;font-size:12px;table-layout:auto}.people-table thead{background:#f4f7fb}.people-table th{padding:10px 12px;white-space:nowrap;color:#526b85;font-size:11px;font-weight:600;text-align:left;border-bottom:1px solid #d4e0ec}.people-table th button{border:0;padding:0;background:transparent;min-height:28px;font-size:11px;font-weight:600;display:flex;gap:12px;align-items:center}.people-table th button span{color:#60748a}.people-table td{padding:13px 12px;border-bottom:1px solid #e8edf3;color:#284662;vertical-align:middle;white-space:nowrap}.people-table tr:last-child td{border-bottom:0}.people-table tbody tr:hover{background:#f8fbff}.people-table .people-name{border:0;padding:0;background:transparent;color:#005a9e;font-weight:600;min-height:24px;text-align:left}.people-table td:first-child small{display:block;font-size:10px;color:#687f96;margin-top:3px}.people-table .people-open{height:30px;min-height:30px;background:#e8f3fc;border-color:#b5d2eb;color:#005a9e}.people-neutral{background:#f0f3f7;color:#526b85;font-size:10px;padding:4px 7px;border-radius:4px}.people-footnote{font-size:11px;color:#60748a;line-height:1.6;margin:12px 0}.people-empty{padding:32px 16px;text-align:center;white-space:normal;color:#526b85}.people-empty strong{font-size:14px;color:#102d50}.people-empty p{font-size:12px}
.people-dialog{width:min(860px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);padding:0;border:1px solid #c5d5e6;border-radius:8px;background:white;color:#102d50;font-family:'Segoe UI',Arial,sans-serif;box-shadow:0 20px 80px #102d5033;box-sizing:border-box}.people-dialog::backdrop{background:#102d5059}.people-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #dce5ef;gap:16px}.people-dialog header small{font-size:10px;color:#60748a;letter-spacing:.8px}.people-dialog h2{font-size:22px;margin:6px 0 0;line-height:1.3}.people-dialog header button{font-size:23px;padding:0;width:36px;flex:none}.people-dialog-body{padding:0 24px 16px}.people-dialog section{padding:18px 0;border-bottom:1px solid #e8edf3}.people-dialog h3{font-size:13px;margin:0 0 12px;color:#102d50}.people-dialog p{font-size:12px;line-height:1.6}.people-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px;margin:0}.people-detail-grid dt{font-size:10px;color:#60748a;margin-bottom:4px}.people-detail-grid dd{font-size:12px;margin:0;overflow-wrap:anywhere}.people-related,.people-history{list-style:none;margin:0;padding:0}.people-related li,.people-history li{padding:10px 12px;background:#f6f9fc;border-left:3px solid #b7d8f2;margin-bottom:8px;border-radius:3px;font-size:12px}.people-related span,.people-related small,.people-history small{display:block;margin-top:5px;color:#60748a;font-size:11px}.people-history p{margin:6px 0}.people-detail-empty{margin:0;background:#f7f9fc;padding:10px 12px;color:#60748a;border-radius:4px}.people-dialog>footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 24px;background:#f7f9fc;border-top:1px solid #dce5ef;font-size:10px;color:#60748a}
@media(min-width:701px){.crm-people-pilot.pilot-collapsed .pilot-nav{overflow:visible;z-index:40}.crm-people-pilot.pilot-collapsed .pilot-submenu:not([hidden]){position:fixed;left:56px;top:110px;width:210px;padding:8px;background:white;border:1px solid #c5d5e6;border-radius:5px;box-shadow:0 8px 24px #102d5020;max-height:calc(100dvh - 160px);overflow:auto;z-index:45}}
@media(max-width:1100px){.people-commandbar{flex-wrap:wrap}.people-search{max-width:none}.people-filters label{flex:1;min-width:160px}}
@media(max-width:700px){.crm-people-pilot #app,.crm-people-pilot.pilot-collapsed #app{grid-template-columns:minmax(0,1fr)}.crm-people-pilot .pilot-nav,.crm-people-pilot.pilot-collapsed .pilot-nav{width:100%;padding:6px 8px}.crm-people-pilot .workspace.people-main{padding:12px}.crm-people-pilot .pilot-toggle{display:block}.people-commandbar{gap:10px;padding:12px;align-items:center}.people-commandbar h1{font-size:22px}.people-search{order:2;min-width:0;flex-basis:100%;margin-left:0}.people-commandbar [data-people-action=filters]{order:3;flex:1}.people-commandbar .people-primary{order:3;flex:1}.people-count{font-size:11px}.people-table{min-width:0;display:block}.people-table thead{display:none}.people-table tbody{display:grid;gap:10px;background:#f5f7fa}.people-table tr{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px;border:1px solid #d4e0ec;border-radius:5px;background:#fff;min-width:0}.people-table td{display:block;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;min-width:0;font-size:11px}.people-table td::before{content:attr(data-label);display:block;font-size:9px;color:#60748a;margin-bottom:4px}.people-table td:first-child{grid-column:1/-1}.people-table .people-name{font-size:13px}.people-table-scroll{border:0;overflow:visible}.people-table tr:has(.people-empty){display:block}.people-list-meta{gap:5px}.people-dialog>header,.people-dialog>footer{padding:14px 16px}.people-dialog-body{padding:0 16px 12px}.people-dialog h2{font-size:18px}.people-dialog>footer span{max-width:180px}.people-detail-grid{gap:14px}.people-dialog{max-height:calc(100dvh - 24px)}
}
/* Mobile sorting stays available when the table header becomes a card list. */
.people-mobile-sort{display:none}@media(max-width:700px){.people-mobile-sort{display:flex;align-items:center;gap:8px;margin:10px 0;font-size:11px}.people-mobile-sort select{min-width:0;flex:1;height:34px;border:1px solid #c5d5e6;border-radius:4px;background:white;color:#102d50}}

.crm-people-pilot.pilot-collapsed .pilot-submenu:not([hidden]){display:block!important}
@media(max-width:700px){.crm-people-pilot.pilot-collapsed .pilot-nav{overflow:visible;z-index:40}.crm-people-pilot.pilot-collapsed .pilot-submenu:not([hidden]){left:12px;right:12px;top:106px!important;width:auto;max-width:none}}
