/* Connect HR - People, records and the org chart (port of Frank's stage 1 screens, look of People.dc.html and
   OrgChart.dc.html). Scoped to hr-p- / hr-av / hr-flag / hr-tree classes so it sits beside connect-hr.css. */
.hr-av { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font: 800 12px var(--f-head); color: #fff; flex: none; }
.hr-av.lg { width: 56px; height: 56px; font-size: 18px; }
.hr-av.xl { width: 64px; height: 64px; font-size: 22px; }
.hr-flag { display: inline-flex; align-items: center; height: 16px; padding: 0 5px; border-radius: 4px; font-size: 9px; font-weight: 700; letter-spacing: .04em; background: #2a2d31; color: #fff; vertical-align: middle; }
.hr-flag.f2 { background: #0b7a3e; } .hr-flag.f3 { background: #2f6fb5; } .hr-flag.f4 { background: #b45309; } .hr-flag.f0 { background: #ECF0F1; color: #5B636B; }
.hr-p-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.hr-p-bar .hr-input { min-width: 0; }
.hr-p-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 14px; align-items: start; }
.hr-p-grid > * { min-width: 0; }
@media (max-width: 1000px) { .hr-p-grid { grid-template-columns: minmax(0, 1fr); } }
.hr-p-card { position: sticky; top: 14px; }
.hr-p-f { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #EEF0F3; font-size: 13px; line-height: 1.4; }
.hr-p-f:last-child { border-bottom: 0; }
.hr-p-f .l { width: 120px; flex: none; color: var(--muted); font-size: 12px; }
.hr-p-f .v { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.hr-p-who { font-size: 11px; color: var(--muted); background: #F3F5F7; border-radius: 999px; padding: 2px 8px; }
.hr-p-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.hr-p-head h2 { margin: 0; }
.hr-p-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.hr-p-tile { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.hr-p-tile.sel, .hr-table tr.sel td { background: var(--brand-tint); }
.hr-p-grp { font: 700 13px var(--f-head); margin: 14px 0 8px; color: var(--ink); }
.hr-p-hid { border: 1px dashed #D7DBE2; border-radius: 14px; padding: 16px; background: #FAFBFC; }
.hr-p-banner { background: #E8F0FB; color: #1E4F8A; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.hr-p-eye { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid #EEF0F3; }
.hr-p-eye:last-child { border-bottom: 0; }
.hr-p-eye small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.hr-p-dots { letter-spacing: .2em; color: var(--muted); }
.hr-p-ib { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 7px; border: 1px solid #D7DBE2; background: #fff; color: var(--ink); font: 500 12px var(--f-body); text-decoration: none; cursor: pointer; }
.hr-p-ib:hover { border-color: var(--ink); }
.hr-p-ib[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
details.hr-p-more { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
details.hr-p-more > summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.hr-p-node { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; background: #fff; font-size: 12px; display: inline-flex; flex-direction: column; }
.hr-p-node.me { border: 2px solid var(--ink); }
.hr-p-node span { color: var(--muted); }
.hr-p-vline { width: 2px; height: 12px; background: var(--line); margin-left: 18px; display: block; }
.hr-p-soon { border: 1px dashed #D7DBE2; border-radius: 14px; padding: 12px 14px; color: var(--muted); font-size: 12px; }
.hr-p-soon b { color: var(--ink); font-size: 13px; }
/* org chart */
.hr-oc { overflow-x: auto; padding-bottom: 10px; }
.hr-oc-root { display: flex; flex-direction: column; align-items: center; min-width: fit-content; }
.hr-oc-row { display: flex; flex-wrap: nowrap; gap: 10px; align-items: flex-start; justify-content: center; }
.hr-oc-col { display: flex; flex-direction: column; align-items: center; width: 222px; }
.hr-oc-vl { width: 2px; height: 14px; background: var(--line); display: block; }
.hr-oc-hl { height: 2px; background: var(--line); display: block; }
.hr-oc-dh { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hr-oc-p { width: 212px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; text-align: left; }
.hr-oc-p.top { border: 2px solid var(--ink); }
.hr-oc-p.dashed { border-style: dashed; }
.hr-oc-p.dim { opacity: .35; }
.hr-oc-p.hit { box-shadow: 0 0 0 3px var(--brand); }
.hr-oc-p.sel { background: var(--brand-tint); }
.hr-oc-p .n { font-weight: 700; font-size: 13px; }
.hr-oc-p .n a { color: var(--ink); text-decoration: none; }
.hr-oc-p .n a:hover { text-decoration: underline; }
.hr-oc-p .t { font-size: 11px; color: var(--muted); }
.hr-oc-p .warn { font-size: 11px; color: #9A5B00; font-weight: 600; }
.hr-oc-p .act { display: flex; gap: 5px; flex-wrap: wrap; }
.hr-oc-tree { list-style: none; margin: 8px 0 0 18px; padding: 0 0 0 16px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.hr-oc-tree > li { position: relative; list-style: none; }
.hr-oc-tree > li::before { content: ""; position: absolute; left: -16px; top: 22px; width: 14px; height: 2px; background: var(--line); }
.hr-oc-tree .hr-oc-p { width: auto; min-width: 0; }
.hr-oc-p .act { flex-wrap: nowrap; }
.hr-oc-p .act .hr-p-ib { height: 24px; padding: 0 7px; font-size: 11px; }
a.hr-btn { display: inline-flex; align-items: center; text-decoration: none; }
.hr-p-rhead { display: flex; flex-direction: row; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-start; text-align: left; margin-bottom: 14px; }
.hr-p-rhead > .who { flex: 1 1 300px; min-width: 0; }
.hr-scroll { position: relative; } /* keeps screen-reader-only header labels inside the scrolling box on phones */
