/* Personnel and recruitment share the Ofis palette and form controls. */
@import url('/field-assets.css');
#teams,#hr{--forest:#164e48;--ink:#173c38;--line:#d5e4df;--muted:#536b65;min-width:0;color:var(--ink)}
#teams [hidden],#hr [hidden]{display:none!important}
#teams .crew-picks{display:flex;flex-wrap:wrap;gap:3px;align-items:center;border-bottom:1px solid var(--line);padding:0 0 8px;margin:0 0 14px}
#teams .crew-picks button{border:0;border-radius:8px;background:transparent;color:#4c655e;padding:7px 13px;min-height:36px;font-weight:600}
#teams .crew-picks button[aria-pressed=true]{background:#1c5048;color:white}
.staff-hub h2,#hr h2{font-size:1.15rem;letter-spacing:-.025em;margin:0}
.staff-summary,.hr-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);background:white;border-radius:13px;margin-bottom:14px;overflow:hidden}
.staff-kpi,.hr-stats>div{padding:15px 19px;min-width:0;position:relative}
.staff-kpi+.staff-kpi:before,.hr-stats>div+div:before{content:'';position:absolute;left:0;top:18%;bottom:18%;width:1px;background:var(--line)}
.staff-kpi>span{display:flex;align-items:center;gap:7px;font-size:.83rem;color:var(--muted);font-weight:600}.staff-kpi .icon{width:16px;height:16px;color:#297363}
.staff-kpi strong,.hr-stats strong{display:block;margin-top:4px;font-size:clamp(1.55rem,3vw,2.1rem);line-height:1.05;font-variant-numeric:tabular-nums;letter-spacing:-.04em}
.staff-charts{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:14px}
.activity-panel,.personal-analytics{background:linear-gradient(110deg,#103c39 0%,#17544d 78%,#1e6257 100%);color:white;border-radius:14px;padding:18px 21px 12px}
.activity-panel h2,.personal-analytics h3{color:white;margin:0}.staff-charthead,.staff-directory,.profile-actions,.staff-directory>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.staff-period{display:flex;gap:2px;padding:3px;background:#092c2b88;border-radius:8px}
.staff-period button{background:transparent;color:#d3eae0;border:0;min-height:28px;font-size:.76rem;padding:2px 9px;white-space:nowrap}
.staff-period button[aria-pressed=true]{background:#e0f5e8;color:#133d32}
.chart-number{font-size:2.1rem;font-weight:700;letter-spacing:-.04em;line-height:1.15;margin:7px 0 2px}.chart-number small{font-size:.79rem;letter-spacing:0;color:#d0e7df;font-weight:500}
.staff-plot svg{display:block;width:100%;height:82px;overflow:visible}.staff-plot .gridline{stroke:#ffffff25;stroke-dasharray:3 6}.staff-plot .line{fill:none;stroke:#91ebc6;stroke-width:2.8;stroke-linejoin:round;vector-effect:non-scaling-stroke}.staff-plot .area{fill:#92e8be21}.staff-plot circle{fill:#afecca;stroke:#154c43;stroke-width:1}.axis{display:flex;justify-content:space-between;color:#b7d8cb;font-size:.68rem}
.load-panel,.profile-block{background:white;border-radius:14px;border:1px solid var(--line);padding:18px 20px;min-width:0}
.load-list{display:grid;gap:13px;margin:20px 0 5px}.load-row{display:grid;grid-template-columns:61px minmax(10px,1fr) 2.8em;gap:8px;align-items:center;font-size:.81rem}.load-row>b{text-align:right}
.tone-office{--tone:#356b60;--wash:#deeee6}.tone-field{--tone:#397799;--wash:#e0eef5}.tone-delivery{--tone:#a76a32;--wash:#f8ead6}.tone-install{--tone:#75578b;--wash:#eee5f2}
.load-row progress{appearance:none;border:0;background:#eef3f1;border-radius:9px;overflow:hidden;width:100%;height:7px}.load-row progress::-webkit-progress-bar{background:#edf2f0}.load-row progress::-webkit-progress-value{background:var(--tone,#467466);border-radius:8px}.load-row progress::-moz-progress-bar{background:var(--tone,#467466)}
.staff-directory{margin:22px 0 12px}.staff-directory>div{max-width:100%}.staff-directory select,.staff-search input{min-height:36px;font-size:.82rem}
.staff-directory>div{display:grid;grid-template-columns:minmax(140px,205px) minmax(120px,150px)}.staff-search{position:relative}.staff-search input{padding-left:34px;max-width:200px}.staff-search .icon{position:absolute;width:14px;height:14px;top:50%;left:11px;transform:translateY(-50%);color:#557169}
.staff-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:12px}
.staff-card{display:block;text-align:left;border:1px solid var(--line);background:white;border-radius:13px;padding:0;overflow:hidden;min-width:0;transition:border-color .15s,box-shadow .15s;color:var(--ink)}
.staff-card:hover,.staff-card:focus-visible{border-color:#639c88;background:#fff;box-shadow:0 3px 15px #103d3212}
.staff-cardhead,.profile-head{display:flex;align-items:center;gap:11px}.staff-cardhead{padding:16px 15px 10px}.staff-initial{flex:none;display:inline-grid;place-items:center;background:var(--wash,#e2ede9);color:var(--tone,#2b6453);width:39px;height:39px;border-radius:12px;font-size:.92rem;font-weight:750}
.staff-id{min-width:0;flex:1}.staff-id strong,.staff-id small,.detail-row small,.doc-list small,.asset-line small,.candidate-line small{display:block;overflow-wrap:anywhere}
.staff-id strong{font-size:.99rem}.staff-id small,.staff-cardfoot small,.detail-row small,.doc-list small,.asset-line small,.candidate-line small{font-size:.76rem;color:var(--muted,#526d62);font-weight:450}
.staff-cardhead>.icon{width:15px;color:#648376}.staff-facts{display:grid;grid-template-columns:repeat(3,1fr);padding:6px 15px 13px;gap:7px}
.staff-facts>span{font-size:.72rem;color:#546d65;font-weight:500}.staff-facts b{display:block;font-size:1.3rem;color:#183e36}
.staff-cardfoot{border-top:1px solid #e8efec;background:#f8fbf9;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 15px;font-size:.77rem}.staff-cardfoot .icon{width:13px;height:13px;vertical-align:middle}.staff-cardfoot>span{color:#285a4d}
.staff-dialog,.hr-dialog{padding:0;border:1px solid #c7d9d1;border-radius:16px;color:#163c34;max-height:90dvh;width:min(680px,94vw);max-width:94vw;overflow:auto;background:#f6f9f7;box-shadow:0 18px 85px #08271e3d}
.staff-dialog::backdrop,.hr-dialog::backdrop{background:#102e29aa}
.profile-head,.hr-dialog>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;padding:15px 21px;background:white;border-bottom:1px solid #d5e2dc}
.profile-head h2,.hr-dialog>header h2{margin:0;color:#183e36;font-size:1.28rem}
.profile-head button,.hr-dialog [data-dismiss]{margin-left:auto;border:0;min-width:36px;font-size:1.5rem;padding:0}
.profile-body,.hr-pane{padding:16px;display:grid;gap:13px}.profile-pair,.hr-formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.personal-analytics h3,.profile-block h3{margin:0}.personal-analytics .section-head{margin:0;color:#cce8d9}.personal-analytics .section-head span{font-size:.8rem}
.personal-metrics{display:flex;gap:6px 16px;flex-wrap:wrap;padding:7px 0;color:#e6f6ec;font-size:.81rem}
.profile-block h3{font-size:1rem}.profile-block em{font-size:.77rem;font-style:normal;color:#27604d;background:#e9f4ee;padding:2px 7px;border-radius:8px}
.detail-row,.asset-line,.doc-list a,.candidate-line{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e3eae5;padding:10px 0;overflow-wrap:anywhere}.detail-row strong,.doc-list strong,.asset-line strong{font-size:.87rem}.detail-row:last-child,.candidate-line:last-child{border-bottom:0}
.profile-actions{justify-content:flex-start;flex-wrap:wrap}.own-staff{margin:0 0 12px}
.hr-stats{background:linear-gradient(115deg,#103c39,#19564e);color:white}.hr-stats small{color:#cbe1d8;font-size:.8rem}.hr-stats>div+div:before{background:#ffffff32}.hr-pool .section-head select{width:auto;max-width:55%}
.hr-poolfilter{display:flex;gap:8px;margin:12px 0}.candidate-line{min-height:61px;width:100%;border:0;border-radius:0;border-bottom:1px solid #e1ebe4;background:white;text-align:left}.candidate-line>span:nth-child(2){flex:1}.stage-chip{border-radius:12px;background:#e2efe6;color:#32644e;font-size:.74rem;padding:4px 9px}
.hr-pane form{display:grid;gap:11px}.hr-formgrid .wide{grid-column:1/-1}.hr-actions{display:flex;justify-content:flex-end;padding-top:4px}.hr-formgrid label{min-width:0}.hr-dialog details,.hr-filebody{min-width:0}
.hr-group,.upload-box,.asset-line,.doc-list{background:white;border:1px solid #d8e4de;border-radius:10px;padding:12px;margin:0 0 8px}
.hr-group summary{cursor:pointer;font-weight:650}.hr-group[open] summary{margin-bottom:12px}.hr-error{color:#963a2f;padding:0 16px;margin:0 0 9px}.hr-error:empty{display:none}
.hr-dialog .hr-tabs{position:static;display:flex;flex-wrap:wrap;gap:4px}.hr-tabs button{color:#274e43;background:white;border:1px solid #bfd3c9;min-height:35px;padding:5px 10px}.hr-tabs button[aria-pressed=true]{color:white;background:#225e50}.hr-asset-entry{border:1px solid #c6d9ce;border-radius:8px;padding:11px}.hr-asset-entry legend{padding:0 5px}.doc-list a{color:#245c4a;text-decoration:none}.doc-list b{font-size:.78rem;white-space:nowrap}
@media(max-width:820px){.staff-kpi,.hr-stats>div{padding:12px}.activity-panel,.load-panel{padding:15px}.staff-charts{grid-template-columns:1.2fr 1fr}.staff-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.staff-summary,.hr-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.staff-kpi:nth-child(n+3),.hr-stats>div:nth-child(n+3){border-top:1px solid var(--line)}.staff-charts,.profile-pair,.hr-formgrid{grid-template-columns:1fr}.staff-directory{align-items:flex-start;flex-direction:column}.staff-directory>div{width:100%;grid-template-columns:1fr 1fr}.staff-directory>div>*{min-width:0;flex:1}.staff-cards{grid-template-columns:1fr}.load-list{gap:8px;margin:10px 0 0}#teams .crew-picks button{padding:5px 7px;font-size:.78rem}#teams .crew-picks .icon{display:none}.profile-head,.hr-dialog>header{padding:11px 12px}.profile-body,.hr-pane{padding:11px}.staff-dialog,.hr-dialog{max-height:94dvh}.profile-actions button{flex:1}.hr-poolfilter{flex-wrap:wrap}.hr-pane input[type=file]{max-width:100%}#hr .titlebar{align-items:flex-start;flex-wrap:wrap}.hr-stats>div:nth-child(n+3){border-color:#ffffff25}.crew-filters input,.hr-dialog input,.hr-dialog select{min-width:0}}
.hr-funnel{background:white;border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin-bottom:14px}.hr-funnel>div{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:10px}.hr-funnel button{display:flex;align-items:center;justify-content:space-between;padding:9px;gap:5px;background:#eef5f1;color:#264e40;border:1px solid transparent}.hr-funnel button[aria-pressed=true]{background:#24564b;color:white}.hr-funnel small{font-size:.78rem}.hr-clear{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:.74rem;margin-top:4px}.hr-clear input{width:auto;min-height:0}
@media(max-width:620px){.hr-funnel>div{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}.hr-funnel{padding:12px}}
@media(min-width:621px){.hr-funnel>div{grid-template-columns:repeat(auto-fit,minmax(108px,1fr))}}
.hr-filebody .hr-actors{margin:12px 0;display:flex;flex-wrap:wrap;gap:12px 24px;padding:12px;border-block:1px solid var(--line)}
.hr-actors dt{font-size:.78rem;color:var(--muted)}.hr-actors dd{margin:3px 0 0;font-weight:600}
.hr-actions{flex-wrap:wrap;gap:6px}
@media(prefers-reduced-motion:reduce){.staff-card{transition:none}}

.crew-board.tone-office{--deep:#153e37;--mid:#21574b;--bar:#9ee4bd}
.crew-board.tone-field{--deep:#17384e;--mid:#24556b;--bar:#91d9e7}
.crew-board.tone-delivery{--deep:#493321;--mid:#674a30;--bar:#f2c485}
.crew-board.tone-install{--deep:#3e304d;--mid:#594263;--bar:#ddbaee}
#teams .crew-board{min-width:0;padding:clamp(12px,2vw,22px);border-radius:16px}
.crew-heading-inner,.crew-person-head,.crew-section-title,.crew-trend-head,.crew-directory-head,.crew-person-trend,.crew-person footer{display:flex;align-items:center;gap:11px;min-width:0}
.crew-heading-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:13px;background:var(--wash);color:var(--tone);flex:none}
.crew-heading-icon .icon{width:25px;height:25px}.crew-heading h2{margin:0;font-size:1.38rem;letter-spacing:-.035em}.crew-heading small,.crew-person-head small,.crew-directory-head small,.crew-section-title small{color:#536b65;font-size:.79rem}
.crew-board .crew-toolbar{border-block:1px solid #e4ece8;padding:10px 0;margin:13px 0;align-items:center}
.crew-board .crew-filters label{min-width:100px;font-size:.74rem}.crew-filters select{min-height:34px}
.crew-board .crew-content{gap:12px;min-width:0}.crew-metrics{display:flex;gap:5px;flex-wrap:wrap}
.crew-metrics button{border:1px solid #d7e1dd;border-radius:20px;color:#3f5650;background:white;font-size:.8rem;min-height:32px;padding:5px 13px}
.crew-metrics button[aria-pressed=true]{color:var(--deep);background:var(--wash);border-color:var(--tone);font-weight:700}
.crew-insights{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:12px;align-items:start}.crew-insights.crew-single{grid-template-columns:minmax(0,1fr)}
.crew-trend,.crew-compare{min-width:0;border-radius:14px;padding:16px 18px}
.crew-trend{background:linear-gradient(112deg,var(--deep),var(--mid));color:white}.crew-trend h3,.crew-compare h3,.crew-directory-head h3,.crew-person h3{margin:0;letter-spacing:-.02em;line-height:1.25}
.crew-trend h3{color:white;font-size:1.04rem}.crew-trend-head{justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 12px}.crew-trend-head>span{font-size:.75rem;color:#ffffffe0;overflow-wrap:anywhere}
.crew-total{font-size:clamp(2rem,3vw,2.75rem);letter-spacing:-.055em;line-height:1.1;display:block;margin:7px 0 10px;font-variant-numeric:tabular-nums}
.crew-daily-plot{display:flex;position:relative;gap:6px}.crew-bars{width:100%;min-width:0;height:84px;fill:var(--bar)}.crew-guides{stroke:#ffffff38;stroke-dasharray:3 5;fill:none}
.crew-y,.crew-x{font-size:.7rem;color:#ffffffe3;font-variant-numeric:tabular-nums}.crew-y{min-width:1.2em;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end}.crew-x{display:flex;justify-content:space-between;gap:5px;margin:4px 0 0 20px}
.crew-no-activity{position:absolute;top:34%;left:22px;background:var(--deep);padding:4px 9px;color:white;border-radius:5px}
.crew-data summary{width:fit-content;cursor:pointer;color:#fff;font-size:.75rem;padding:8px 2px 0}.crew-data dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:5px;margin:9px 0 0}.crew-data dl div{padding:5px;border:1px solid #ffffff3a;border-radius:5px}.crew-data dt{font-size:.73rem}.crew-data dd{font-weight:700;margin:0}
.crew-compare{border:1px solid var(--line);align-self:stretch}.crew-section-title,.crew-directory-head{justify-content:space-between;gap:6px;flex-wrap:wrap}
.crew-section-title h3,.crew-directory-head h3{font-size:1.02rem}.crew-compare p{font-size:.78rem;margin:4px 0 10px;color:var(--muted)}
.crew-ranking{display:grid;gap:2px}.crew-ranking button{display:grid;grid-template-columns:1fr auto;gap:4px 8px;width:100%;min-width:0;text-align:left;background:white;border:1px solid transparent;padding:6px;border-radius:7px;font-size:.82rem;color:var(--ink)}
.crew-ranking button:hover,.crew-ranking button[aria-pressed=true]{background:var(--wash)}.crew-ranking span{overflow-wrap:anywhere}.crew-ranking b{font-variant-numeric:tabular-nums}
.crew-ranking progress{grid-column:1/-1;appearance:none;display:block;width:100%;height:6px;border:0;border-radius:6px;background:#ecf1ee;overflow:hidden}
.crew-ranking progress::-webkit-progress-bar{background:#ecf1ee}.crew-ranking progress::-webkit-progress-value{background:var(--tone);border-radius:6px}.crew-ranking progress::-moz-progress-bar{background:var(--tone);border-radius:6px}
.crew-directory-head{margin:6px 0 0}.crew-roster{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:10px}
#teams .crew-person{overflow:hidden;display:flex;flex-direction:column;padding:0;background:white;border:1px solid var(--line);border-radius:13px}
.crew-person-head{padding:13px 14px 4px}.crew-person h3{font-size:.98rem;overflow-wrap:anywhere}.crew-person .staff-initial{width:35px;height:35px;font-size:.77rem}
.crew-person-trend{margin:9px 14px;padding:8px 10px;justify-content:space-between;background:var(--wash);color:var(--deep);border-radius:8px}
.crew-person-trend b,.crew-person-trend small{display:block}.crew-person-trend b{font-size:1.25rem;font-variant-numeric:tabular-nums}.crew-person-trend small{font-size:.72rem}
.crew-spark{width:40%;height:30px}.crew-spark polyline{fill:none;stroke:var(--tone);stroke-width:2;stroke-linejoin:round}.crew-spark polygon{fill:var(--tone);opacity:.1}.spark-base{stroke:var(--tone);opacity:.3}
#teams .crew-person dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 10px;margin:0;padding:1px 14px 11px}
#teams .crew-person dl div{display:flex;align-items:baseline;justify-content:space-between;gap:5px}#teams .crew-person dt{font-size:.74rem;color:var(--muted)}#teams .crew-person dd{margin:0;font-size:.91rem;color:var(--ink)}
.crew-person footer{margin-top:auto;border-top:1px solid #e4ece8;padding:5px 9px;justify-content:space-between;flex-wrap:wrap;gap:4px}
.crew-person footer button{font-size:.77rem;min-height:31px;border:0;display:inline-flex;align-items:center;gap:6px;background:transparent;color:var(--deep);padding:4px 6px}.crew-person footer button:hover{background:var(--wash)}.crew-person footer .icon{width:13px;height:13px}
.crew-list-title{font-size:1rem;margin:0}.crew-list-title small{color:var(--muted);font-size:.78rem}.crew-task i{width:33px;height:33px;display:grid;place-items:center;flex:none;color:var(--tone);background:var(--wash);border-radius:9px}
.crew-content .crew-task{padding:9px 4px}.crew-task .task-owner{margin-left:auto;color:var(--muted);font-size:.76rem}.crew-task>.icon{margin-left:0}
.crew-job{border-left:3px solid var(--tone)}.crew-empty{text-align:center;border:1px dashed var(--line);background:#fafcfb;padding:25px 14px;border-radius:14px}.crew-empty>.icon{color:var(--tone);width:30px;height:30px}.crew-empty h3{font-size:1rem;margin:8px 0 12px}
@media(max-width:760px){.crew-insights{grid-template-columns:minmax(0,1fr)}.crew-compare,.crew-trend{padding:14px}.crew-heading-inner{gap:8px}.crew-heading h2{font-size:1.18rem}.crew-task .task-owner{max-width:36%}}
@media(max-width:420px){#teams .crew-board{padding:10px}.crew-toolbar .trade-filters{width:100%}.crew-toolbar .trade-filters button{flex:1}.crew-person footer button{min-height:36px}.crew-board .crew-filters label{min-width:0}.crew-roster{grid-template-columns:minmax(0,1fr)}.crew-metrics button{padding:5px 10px}}
